Api-roll 62: 2018-05-04 (#49)
diff --git a/generated/googleapis/CHANGELOG.md b/generated/googleapis/CHANGELOG.md index 753cfc8..32b4d41 100644 --- a/generated/googleapis/CHANGELOG.md +++ b/generated/googleapis/CHANGELOG.md
@@ -1,3 +1,74 @@ +## 0.51.0 + +* [api-new] cloudresourcemanager:v2 +* [api-new] dfareporting:v3_1 +* [api-new] dlp:v2 +* [api-new] jobs:v2 +* [api-new] servicebroker:v1 +* [api-new] tpu:v1 +* [api-new] videointelligence:v1 +* [api] adexchangebuyer:v1_4 +* [api] admin:directory_v1 +* [api] analytics:v3 +* [api] androiddeviceprovisioning:v1 +* [api] androidenterprise:v1 +* [api] androidmanagement:v1 +* [api] androidpublisher:v2 +* [api] appengine:v1 +* [api] bigquerydatatransfer:v1 +* [api] bigquery:v2 +* [api] cloudbilling:v1 +* [api] cloudbuild:v1 +* [api] cloudfunctions:v1 +* [api] cloudiot:v1 +* [api] cloudkms:v1 +* [api] compute:v1 +* [api] container:v1 +* [api] content:v2 +* [api] content:v2sandbox +* [api] customsearch:v1 +* [api] dataproc:v1 +* [api] datastore:v1 +* [api] deploymentmanager:v2 +* [api] dns:v1 +* [api] firebasedynamiclinks:v1 +* [api] genomics:v1 +* [api] identitytoolkit:v3 +* [api] logging:v2 +* [api] manufacturers:v1 +* [api] ml:v1 +* [api] monitoring:v3 +* [api] oslogin:v1 +* [api] partners:v2 +* [api] people:v1 +* [api] poly:v1 +* [api] servicemanagement:v1 +* [api] serviceuser:v1 +* [api] sheets:v4 +* [api] slides:v1 +* [api] sourcerepo:v1 +* [api] speech:v1 +* [api] testing:v1 +* [api] vault:v1 +* [api] vision:v1 +* [api] youtube:v3 +* [api-breaking] analytics:v3 +* [api-breaking] androidpublisher:v2 +* [api-breaking] bigquery:v2 +* [api-breaking] classroom:v1 +* [api-breaking] cloudiot:v1 +* [api-breaking] deploymentmanager:v2 +* [api-breaking] manufacturers:v1 +* [api-breaking] serviceconsumermanagement:v1 +* [api-breaking] servicemanagement:v1 +* [api-breaking] serviceuser:v1 +* [api-breaking] sourcerepo:v1 +* [api-breaking] speech:v1 +* [api-breaking] surveys:v2 +* [api-breaking] youtube:v3 +* [api-removed] cloudresourcemanager:v2beta1 +* [api-removed] serviceusage:v1 + ## 0.50.4 * Re-generated with updated code generator to support the dataWrapper feature
diff --git a/generated/googleapis/README.md b/generated/googleapis/README.md index c20db2b..cec59a1 100644 --- a/generated/googleapis/README.md +++ b/generated/googleapis/README.md
@@ -68,7 +68,7 @@ The following is a list of APIs that are currently available inside this package. -####  Google Abusive Experience Report API - abusiveexperiencereport v1 +####  Abusive Experience Report API - abusiveexperiencereport v1 View Abusive Experience Report data, and get a list of sites that have a significant number of abusive experiences. @@ -105,7 +105,7 @@ Official API documentation: https://developers.google.com/ad-exchange/seller-rest/ -####  Google Ad Experience Report API - adexperiencereport v1 +####  Ad Experience Report API - adexperiencereport v1 View Ad Experience Report data, and get a list of sites that have a significant number of annoying ads. @@ -119,7 +119,7 @@ ####  Admin Directory API - admin directory_v1 -The Admin SDK Directory API lets you view and manage enterprise resources such as users and groups, administrative notifications, security features, and more. +Manages enterprise resources such as users and groups, administrative notifications, security features, and more. Official API documentation: https://developers.google.com/admin-sdk/directory/ @@ -147,7 +147,7 @@ Official API documentation: https://developers.google.com/analytics/ -####  Google Analytics Reporting API - analyticsreporting v4 +####  Analytics Reporting API - analyticsreporting v4 Accesses Analytics report data. @@ -177,7 +177,13 @@ Official API documentation: https://developers.google.com/android-publisher -####  Google App Engine Admin API - appengine v1 +####  Google Play Developer API - androidpublisher v3 + +Lets Android application developers access their Google Play accounts. + +Official API documentation: https://developers.google.com/android-publisher + +####  App Engine Admin API - appengine v1 The App Engine Admin API enables developers to provision and manage their App Engine applications. @@ -225,6 +231,12 @@ Official API documentation: https://developers.google.com/google-apps/calendar/firstapp +####  Hangouts Chat API - chat v1 + +Enables bots to fetch information and perform actions in the new Hangouts Chat. + +Official API documentation: https://developers.google.com/hangouts/chat + ####  Google Civic Information API - civicinfo v2 Provides polling places, early vote locations, contest data, election officials, and government representatives for U.S. residential addresses. @@ -237,14 +249,14 @@ Official API documentation: https://developers.google.com/classroom/ -####  Google Cloud Billing API - cloudbilling v1 +####  Cloud Billing API - cloudbilling v1 Allows developers to manage billing for their Google Cloud Platform projects programmatically. Official API documentation: https://cloud.google.com/billing/ -####  Google Cloud Container Builder API - cloudbuild v1 +####  Cloud Container Builder API - cloudbuild v1 Builds container images in the cloud. @@ -255,34 +267,34 @@ Examines the call stack and variables of a running application without stopping or slowing it down. -Official API documentation: http://cloud.google.com/debugger +Official API documentation: https://cloud.google.com/debugger -####  Google Cloud Functions API - cloudfunctions v1 +####  Cloud Functions API - cloudfunctions v1 -API for managing lightweight user-provided functions executed in response to events. +Manages lightweight user-provided functions executed in response to events. Official API documentation: https://cloud.google.com/functions -####  Google Cloud IoT API - cloudiot v1 +####  Cloud IoT API - cloudiot v1 Registers and manages IoT (Internet of Things) devices that connect to the Google Cloud Platform. Official API documentation: https://cloud.google.com/iot -####  Google Cloud Key Management Service (KMS) API - cloudkms v1 +####  Cloud Key Management Service (KMS) API - cloudkms v1 Manages encryption for your cloud services the same way you do on-premises. You can generate, use, rotate, and destroy AES256 encryption keys. Official API documentation: https://cloud.google.com/kms/ -####  Google Cloud Resource Manager API - cloudresourcemanager v1 +####  Cloud Resource Manager API - cloudresourcemanager v1 The Google Cloud Resource Manager API provides methods for creating, reading, and updating project metadata. Official API documentation: https://cloud.google.com/resource-manager -####  Google Cloud Resource Manager API - cloudresourcemanager v2beta1 +####  Cloud Resource Manager API - cloudresourcemanager v2 The Google Cloud Resource Manager API provides methods for creating, reading, and updating project metadata. @@ -315,7 +327,7 @@ Official API documentation: https://developers.google.com/compute/docs/reference/latest/ -####  Google Kubernetes Engine API - container v1 +####  Kubernetes Engine API - container v1 The Google Kubernetes Engine API is used for building and managing container based applications, powered by the open source Kubernetes technology. @@ -339,13 +351,13 @@ Official API documentation: https://developers.google.com/custom-search/v1/using_rest -####  Google Cloud Dataproc API - dataproc v1 +####  Cloud Dataproc API - dataproc v1 Manages Hadoop-based clusters and jobs on Google Cloud Platform. Official API documentation: https://cloud.google.com/dataproc/ -####  Google Cloud Datastore API - datastore v1 +####  Cloud Datastore API - datastore v1 Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application. @@ -370,6 +382,18 @@ Official API documentation: https://developers.google.com/doubleclick-advertisers/ +####  DCM/DFA Reporting And Trafficking API - dfareporting v3.1 + +Manages your DoubleClick Campaign Manager ad campaigns and reports. + +Official API documentation: https://developers.google.com/doubleclick-advertisers/ + +####  Dialogflow API - dialogflow v2 + +An end-to-end development suite for conversational interfaces (e.g., chatbots, voice-powered apps and devices). + +Official API documentation: https://cloud.google.com/dialogflow-enterprise/ + ####  Digital Asset Links API - digitalassetlinks v1 API for discovering relationships between online assets such as web sites or mobile apps. @@ -382,6 +406,12 @@ Official API documentation: https://developers.google.com/discovery/ +####  Cloud Data Loss Prevention (DLP) API - dlp v2 + +Provides methods for detection, risk analysis, and de-identification of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories. + +Official API documentation: https://cloud.google.com/dlp/docs/ + ####  Google Cloud DNS API - dns v1 Configures and serves authoritative DNS records. @@ -491,7 +521,7 @@ Official API documentation: https://developers.google.com/google-apps/groups-settings/get_started -####  Google Identity and Access Management (IAM) API - iam v1 +####  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. @@ -503,13 +533,20 @@ Official API documentation: https://developers.google.com/identity-toolkit/v3/ +####  Cloud Job Discovery - jobs v2 + +Cloud Job Discovery provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters. + + +Official API documentation: https://cloud.google.com/job-discovery/docs + ####  Knowledge Graph Search API - kgsearch v1 Searches the Google Knowledge Graph for entities. Official API documentation: https://developers.google.com/knowledge-graph/ -####  Google Cloud Natural Language API - language v1 +####  Cloud Natural Language API - language v1 Provides natural language understanding technologies to developers. Examples include sentiment analysis, entity recognition, entity sentiment analysis, and text annotations. @@ -539,7 +576,7 @@ Official API documentation: https://developers.google.com/glass -####  Google Cloud Machine Learning Engine - ml v1 +####  Cloud Machine Learning Engine - ml v1 An API to enable creating and using machine learning models. @@ -557,7 +594,7 @@ Official API documentation: https://developers.google.com/accounts/docs/OAuth2 -####  Google Cloud OS Login API - oslogin v1 +####  Cloud OS Login API - oslogin v1 Manages OS login configuration for Google account users. @@ -575,13 +612,19 @@ Official API documentation: https://developers.google.com/speed/docs/insights/v2/getting-started +####  PageSpeed Insights API - pagespeedonline v4 + +Analyzes the performance of a web page and provides tailored suggestions to make that page faster. + +Official API documentation: https://developers.google.com/speed/docs/insights/v4/getting-started + ####  Google Partners API - partners v2 Searches certified companies and creates contact leads with them, and also audits the usage of clients. Official API documentation: https://developers.google.com/partners/ -####  Google People API - people v1 +####  People API - people v1 Provides access to information about profiles and contacts. @@ -618,7 +661,7 @@ Official API documentation: https://developers.google.com/prediction/docs/developer-guide -####  Google Cloud Pub/Sub API - pubsub v1 +####  Cloud Pub/Sub API - pubsub v1 Provides reliable, many-to-many, asynchronous messaging between applications. @@ -631,21 +674,22 @@ Official API documentation: https://developers.google.com/google-apps/reseller/ -####  Google Cloud Runtime Configuration API - runtimeconfig v1 +####  Cloud Runtime Configuration API - runtimeconfig v1 The Runtime Configurator allows you to dynamically configure and expose variables through Google Cloud Platform. In addition, you can also set Watchers and Waiters that will watch for changes to your data and return based on certain conditions. Official API documentation: https://cloud.google.com/deployment-manager/runtime-configurator/ -####  Google Safe Browsing API - safebrowsing v4 +####  Safe Browsing API - safebrowsing v4 Enables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources. Official API documentation: https://developers.google.com/safe-browsing/ -####  Google Apps Script API - script v1 +####  Apps Script API - script v1 -An API for managing and executing Google Apps Script projects. +An API for managing and executing Google Apps Script projects. <aside class="note"><b>Note</b>: In order to use this API in your apps, you must <a href="/apps-script/api/how-tos/enable#using_the_apps_script_api_in_your_app"> enable it for use</a>. To allow other apps to manage your scripts, you must <a href="/apps-script/api/how-tos/enable#granting_third-party_applications_access_to_your_script_projects"> grant them access</a>.</aside> + Official API documentation: https://developers.google.com/apps-script/api/ @@ -655,31 +699,34 @@ Official API documentation: https://developers.google.com/webmaster-tools/search-console-api/ +####  Service Broker API - servicebroker v1 + +The Google Cloud Platform Service Broker API provides Google hosted +implementation of the Open Service Broker API +(https://www.openservicebrokerapi.org/). + + +Official API documentation: https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker + ####  Service Consumer Management API - serviceconsumermanagement v1 Provides management methods for configuring service producer resources on Google Cloud. Official API documentation: https://cloud.google.com/service-consumer-management/docs/overview -####  Google Service Control API - servicecontrol v1 +####  Service Control API - servicecontrol v1 Google Service Control provides control plane functionality to managed services, such as logging, monitoring, and status checks. Official API documentation: https://cloud.google.com/service-control/ -####  Google Service Management API - servicemanagement v1 +####  Service Management API - servicemanagement v1 Google Service Management allows service producers to publish their services on Google Cloud Platform so that they can be discovered and used by service consumers. Official API documentation: https://cloud.google.com/service-management/ -####  Service Usage API - serviceusage v1 - -Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use. - -Official API documentation: https://cloud.google.com/service-usage/ - -####  Google Service User API - serviceuser v1 +####  Service User API - serviceuser v1 Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use. @@ -715,7 +762,7 @@ Official API documentation: https://cloud.google.com/spanner/ -####  Google Cloud Speech API - speech v1 +####  Cloud Speech API - speech v1 Converts audio to text by applying powerful neural network models. @@ -727,7 +774,7 @@ Official API documentation: https://developers.google.com/storage/docs/json_api/ -####  Google Storage Transfer API - storagetransfer v1 +####  Storage Transfer API - storagetransfer v1 Transfers data from external data sources to a Google Cloud Storage bucket or between Google Cloud Storage buckets. @@ -762,12 +809,18 @@ Official API documentation: https://developers.google.com/google-apps/tasks/firstapp -####  Google Cloud Testing API - testing v1 +####  Cloud Testing API - testing v1 Allows developers to run automated tests for their mobile applications on Google infrastructure. Official API documentation: https://developers.google.com/cloud-test-lab/ +####  Cloud TPU API - tpu v1 + +TPU API provides customers with access to Google TPU technology. + +Official API documentation: https://cloud.google.com/tpu/ + ####  Google Cloud Translation API - translate v2 The Google Cloud Translation API lets websites and programs integrate with @@ -781,13 +834,19 @@ Official API documentation: https://developers.google.com/url-shortener/v1/getting_started -####  Google Vault API - vault v1 +####  G Suite Vault API - vault v1 Archiving and eDiscovery for G Suite. Official API documentation: https://developers.google.com/vault -####  Google Cloud Vision API - vision v1 +####  Cloud Video Intelligence API - videointelligence v1 + +Cloud Video Intelligence API. + +Official API documentation: https://cloud.google.com/video-intelligence/docs/ + +####  Cloud Vision API - vision v1 Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications. @@ -817,6 +876,12 @@ Official API documentation: http://developers.google.com/youtube/analytics/ +####  YouTube Analytics API - youtubeAnalytics v2 + +Retrieves your YouTube Analytics data. + +Official API documentation: https://developers.google.com/youtube/analytics + ####  YouTube Reporting API - youtubereporting v1 Schedules reporting jobs containing your YouTube Analytics data and downloads the resulting bulk data reports in the form of CSV files.
diff --git a/generated/googleapis/lib/abusiveexperiencereport/v1.dart b/generated/googleapis/lib/abusiveexperiencereport/v1.dart index 9933c2d..cbe9f3b 100644 --- a/generated/googleapis/lib/abusiveexperiencereport/v1.dart +++ b/generated/googleapis/lib/abusiveexperiencereport/v1.dart
@@ -135,6 +135,7 @@ } /// Response message for GetSiteSummary. +/// Do not confuse with same message in google.ads.experiencereport.v1 class SiteSummaryResponse { /// The status of the site reviewed for the abusive experiences. /// Possible string values are:
diff --git a/generated/googleapis/lib/adexchangebuyer/v1_4.dart b/generated/googleapis/lib/adexchangebuyer/v1_4.dart index b72156a..9459bba 100644 --- a/generated/googleapis/lib/adexchangebuyer/v1_4.dart +++ b/generated/googleapis/lib/adexchangebuyer/v1_4.dart
@@ -2194,6 +2194,13 @@ /// Configuration data for an Ad Exchange buyer account. class Account { + /// When this is false, bid requests that include a deal ID for a private + /// auction or preferred deal are always sent to your bidder. When true, all + /// active pretargeting configs will be applied to private auctions and + /// preferred deals. Programmatic Guaranteed deals (when enabled) are always + /// sent to your bidder. + core.bool applyPretargetingToNonGuaranteedDeals; + /// Your bidder locations that have distinct URLs. core.List<AccountBidderLocation> bidderLocation; @@ -2226,6 +2233,10 @@ Account(); Account.fromJson(core.Map _json) { + if (_json.containsKey("applyPretargetingToNonGuaranteedDeals")) { + applyPretargetingToNonGuaranteedDeals = + _json["applyPretargetingToNonGuaranteedDeals"]; + } if (_json.containsKey("bidderLocation")) { bidderLocation = (_json["bidderLocation"] as core.List) .map<AccountBidderLocation>( @@ -2258,6 +2269,10 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (applyPretargetingToNonGuaranteedDeals != null) { + _json["applyPretargetingToNonGuaranteedDeals"] = + applyPretargetingToNonGuaranteedDeals; + } if (bidderLocation != null) { _json["bidderLocation"] = bidderLocation.map((value) => (value).toJson()).toList(); @@ -2983,8 +2998,8 @@ } } -/// If nativeAd is set, HTMLSnippet and the videoURL outside of nativeAd should -/// not be set. (The videoURL inside nativeAd can be set.) +/// If nativeAd is set, HTMLSnippet, videoVastXML, and the videoURL outside of +/// nativeAd should not be set. (The videoURL inside nativeAd can be set.) class CreativeNativeAd { core.String advertiser; @@ -3265,7 +3280,7 @@ /// A creative and its classification data. class Creative { /// The HTML snippet that displays the ad when inserted in the web page. If - /// set, videoURL should not be set. + /// set, videoURL, videoVastXML, and nativeAd should not be set. core.String HTMLSnippet; /// Account id. @@ -3334,8 +3349,8 @@ /// set in requests. core.List<core.String> languages; - /// If nativeAd is set, HTMLSnippet and the videoURL outside of nativeAd - /// should not be set. (The videoURL inside nativeAd can be set.) + /// If nativeAd is set, HTMLSnippet, videoVastXML, 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 @@ -3375,11 +3390,16 @@ /// requests. core.int version; - /// 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. + /// The URL to fetch a video ad. If set, HTMLSnippet, videoVastXML, and + /// nativeAd should not be set. Note, this is different from + /// resource.native_ad.video_url above. core.String videoURL; + /// The contents of a VAST document for a video ad. This document should + /// conform to the VAST 2.0 or 3.0 standard. If set, HTMLSnippet, videoURL, + /// and nativeAd and should not be set. + core.String videoVastXML; + /// Ad width. core.int width; @@ -3480,6 +3500,9 @@ if (_json.containsKey("videoURL")) { videoURL = _json["videoURL"]; } + if (_json.containsKey("videoVastXML")) { + videoVastXML = _json["videoVastXML"]; + } if (_json.containsKey("width")) { width = _json["width"]; } @@ -3571,6 +3594,9 @@ if (videoURL != null) { _json["videoURL"] = videoURL; } + if (videoVastXML != null) { + _json["videoVastXML"] = videoVastXML; + } if (width != null) { _json["width"] = width; } @@ -6785,6 +6811,8 @@ /// The daypart targeting to include / exclude. Filled in when the key is /// GOOG_DAYPART_TARGETING. TargetingValueDayPartTargeting dayPartTargetingValue; + TargetingValueDemogAgeCriteria demogAgeCriteriaValue; + TargetingValueDemogGenderCriteria demogGenderCriteriaValue; /// The long value to exclude/include. core.String longValue; @@ -6803,6 +6831,14 @@ dayPartTargetingValue = new TargetingValueDayPartTargeting.fromJson( _json["dayPartTargetingValue"]); } + if (_json.containsKey("demogAgeCriteriaValue")) { + demogAgeCriteriaValue = new TargetingValueDemogAgeCriteria.fromJson( + _json["demogAgeCriteriaValue"]); + } + if (_json.containsKey("demogGenderCriteriaValue")) { + demogGenderCriteriaValue = new TargetingValueDemogGenderCriteria.fromJson( + _json["demogGenderCriteriaValue"]); + } if (_json.containsKey("longValue")) { longValue = _json["longValue"]; } @@ -6820,6 +6856,12 @@ if (dayPartTargetingValue != null) { _json["dayPartTargetingValue"] = (dayPartTargetingValue).toJson(); } + if (demogAgeCriteriaValue != null) { + _json["demogAgeCriteriaValue"] = (demogAgeCriteriaValue).toJson(); + } + if (demogGenderCriteriaValue != null) { + _json["demogGenderCriteriaValue"] = (demogGenderCriteriaValue).toJson(); + } if (longValue != null) { _json["longValue"] = longValue; } @@ -6830,7 +6872,11 @@ } } +/// Next Id: 7 class TargetingValueCreativeSize { + /// The formats allowed by the publisher. + core.List<core.String> allowedFormats; + /// For video size type, the list of companion sizes. core.List<TargetingValueSize> companionSizes; @@ -6850,6 +6896,10 @@ TargetingValueCreativeSize(); TargetingValueCreativeSize.fromJson(core.Map _json) { + if (_json.containsKey("allowedFormats")) { + allowedFormats = + (_json["allowedFormats"] as core.List).cast<core.String>(); + } if (_json.containsKey("companionSizes")) { companionSizes = (_json["companionSizes"] as core.List) .map<TargetingValueSize>( @@ -6873,6 +6923,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (allowedFormats != null) { + _json["allowedFormats"] = allowedFormats; + } if (companionSizes != null) { _json["companionSizes"] = companionSizes.map((value) => (value).toJson()).toList(); @@ -6973,6 +7026,50 @@ } } +class TargetingValueDemogAgeCriteria { + core.List<core.String> demogAgeCriteriaIds; + + TargetingValueDemogAgeCriteria(); + + TargetingValueDemogAgeCriteria.fromJson(core.Map _json) { + if (_json.containsKey("demogAgeCriteriaIds")) { + demogAgeCriteriaIds = + (_json["demogAgeCriteriaIds"] as core.List).cast<core.String>(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (demogAgeCriteriaIds != null) { + _json["demogAgeCriteriaIds"] = demogAgeCriteriaIds; + } + return _json; + } +} + +class TargetingValueDemogGenderCriteria { + core.List<core.String> demogGenderCriteriaIds; + + TargetingValueDemogGenderCriteria(); + + TargetingValueDemogGenderCriteria.fromJson(core.Map _json) { + if (_json.containsKey("demogGenderCriteriaIds")) { + demogGenderCriteriaIds = + (_json["demogGenderCriteriaIds"] as core.List).cast<core.String>(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (demogGenderCriteriaIds != null) { + _json["demogGenderCriteriaIds"] = demogGenderCriteriaIds; + } + return _json; + } +} + class TargetingValueSize { /// The height of the creative. core.int height;
diff --git a/generated/googleapis/lib/adexperiencereport/v1.dart b/generated/googleapis/lib/adexperiencereport/v1.dart index dfa92b8..209d5ea 100644 --- a/generated/googleapis/lib/adexperiencereport/v1.dart +++ b/generated/googleapis/lib/adexperiencereport/v1.dart
@@ -223,6 +223,7 @@ } /// Response message for GetSiteSummary. +/// Do not confuse with same message in google.chrome.abusiveexperiencereport.v1 class SiteSummaryResponse { /// Summary for the desktop review of the site. PlatformSummary desktopSummary;
diff --git a/generated/googleapis/lib/admin/directory_v1.dart b/generated/googleapis/lib/admin/directory_v1.dart index 2e1021d..56564f2 100644 --- a/generated/googleapis/lib/admin/directory_v1.dart +++ b/generated/googleapis/lib/admin/directory_v1.dart
@@ -17,9 +17,8 @@ const core.String USER_AGENT = 'dart-api-client admin/directory_v1'; -/// The Admin SDK Directory API lets you view and manage enterprise resources -/// such as users and groups, administrative notifications, security features, -/// and more. +/// Manages enterprise resources such as users and groups, administrative +/// notifications, security features, and more. class AdminApi { /// View and manage customer related information static const AdminDirectoryCustomerScope = @@ -1473,7 +1472,7 @@ return _response.then((data) => new Group.fromJson(data)); } - /// Retrieve all groups in a domain (paginated) + /// Retrieve all groups of a domain or of a user given a userKey (paginated) /// /// Request parameters: /// @@ -1486,10 +1485,24 @@ /// /// [maxResults] - Maximum number of results to return. Default is 200 /// + /// [orderBy] - Column to use for sorting results + /// Possible string values are: + /// - "email" : Email of the group. + /// /// [pageToken] - Token to specify next page in the list /// - /// [userKey] - Email or immutable ID of the user if only those groups are to - /// be listed, the given user is a member of. If ID, it should match with id + /// [query] - Query string search. Should be of the form "". Complete + /// documentation is at + /// https://developers.google.com/admin-sdk/directory/v1/guides/search-users + /// + /// [sortOrder] - Whether to return results in ascending or descending order. + /// Only of use when orderBy is also used + /// Possible string values are: + /// - "ASCENDING" : Ascending order. + /// - "DESCENDING" : Descending order. + /// + /// [userKey] - Email or immutable Id of the user if only those groups are to + /// be listed, the given user is a member of. If Id, it should match with id /// of user object /// /// [$fields] - Selector specifying which fields to include in a partial @@ -1506,7 +1519,10 @@ {core.String customer, core.String domain, core.int maxResults, + core.String orderBy, core.String pageToken, + core.String query, + core.String sortOrder, core.String userKey, core.String $fields}) { var _url = null; @@ -1525,9 +1541,18 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (query != null) { + _queryParams["query"] = [query]; + } + if (sortOrder != null) { + _queryParams["sortOrder"] = [sortOrder]; + } if (userKey != null) { _queryParams["userKey"] = [userKey]; } @@ -1899,13 +1924,16 @@ return _response.then((data) => new Member.fromJson(data)); } - /// Checks Membership of an user within a Group + /// Checks whether the given user is a member of the group. Membership can be + /// direct or nested. /// /// Request parameters: /// - /// [groupKey] - Email or immutable Id of the group + /// [groupKey] - Identifies the group in the API request. The value can be the + /// group's email address, group alias, or the unique group ID. /// - /// [memberKey] - Email or immutable Id of the member + /// [memberKey] - Identifies the user member in the API request. The value can + /// be the user's primary email address, alias, or unique ID. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -2005,6 +2033,9 @@ /// /// [groupKey] - Email or immutable ID of the group /// + /// [includeDerivedMembership] - Whether to list indirect memberships. + /// Default: false. + /// /// [maxResults] - Maximum number of results to return. Default is 200 /// /// [pageToken] - Token to specify next page in the list @@ -2022,7 +2053,8 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<Members> list(core.String groupKey, - {core.int maxResults, + {core.bool includeDerivedMembership, + core.int maxResults, core.String pageToken, core.String roles, core.String $fields}) { @@ -2036,6 +2068,11 @@ if (groupKey == null) { throw new core.ArgumentError("Parameter groupKey is required."); } + if (includeDerivedMembership != null) { + _queryParams["includeDerivedMembership"] = [ + "${includeDerivedMembership}" + ]; + } if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } @@ -3405,6 +3442,11 @@ /// account administrator, you can also use the my_customer alias to represent /// your account's customer ID. /// + /// [maxResults] - Maximum number of results to return. + /// Value must be between "1" and "500". + /// + /// [pageToken] - Token to specify the next page in the list. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -3415,7 +3457,8 @@ /// /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. - async.Future<Buildings> list(core.String customer, {core.String $fields}) { + async.Future<Buildings> list(core.String customer, + {core.int maxResults, core.String pageToken, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -3426,6 +3469,12 @@ if (customer == null) { throw new core.ArgumentError("Parameter customer is required."); } + if (maxResults != null) { + _queryParams["maxResults"] = ["${maxResults}"]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -3752,8 +3801,11 @@ /// [query] - String query used to filter results. Should be of the form /// "field operator value" where field can be any of supported fields and /// operators can be any of supported operations. Operators include '=' for - /// exact match and ':' for prefix match where applicable. For prefix match, - /// the value should always be followed by a *. + /// exact match and ':' for prefix match or HAS match where applicable. For + /// prefix match, the value should always be followed by a *. Supported fields + /// include generatedResourceName, name, buildingId, + /// featureInstances.feature.name. For example buildingId=US-NYC-9TH AND + /// featureInstances.feature.name:Phone. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -4109,6 +4161,9 @@ /// account administrator, you can also use the my_customer alias to represent /// your account's customer ID. /// + /// [maxResults] - Maximum number of results to return. + /// Value must be between "1" and "500". + /// /// [pageToken] - Token to specify the next page in the list. /// /// [$fields] - Selector specifying which fields to include in a partial @@ -4122,7 +4177,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<Features> list(core.String customer, - {core.String pageToken, core.String $fields}) { + {core.int maxResults, core.String pageToken, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -4133,6 +4188,9 @@ if (customer == null) { throw new core.ArgumentError("Parameter customer is required."); } + if (maxResults != null) { + _queryParams["maxResults"] = ["${maxResults}"]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -7387,7 +7445,7 @@ /// Date and time the file was created core.DateTime createTime; - /// File downlod URL + /// File download URL core.String downloadUrl; /// File name @@ -7463,12 +7521,24 @@ } } +/// Trusted Platform Module (TPM) (Read-only) class ChromeOsDeviceTpmVersionInfo { + /// TPM family. core.String family; + + /// TPM firmware version. core.String firmwareVersion; + + /// TPM manufacturer code. core.String manufacturer; + + /// TPM specification level. core.String specLevel; + + /// TPM model number. core.String tpmModel; + + /// Vendor-specific information such as Vendor ID. core.String vendorSpecific; ChromeOsDeviceTpmVersionInfo(); @@ -7598,6 +7668,8 @@ /// Final date the device will be supported (Read-only) core.DateTime supportEndDate; + + /// Trusted Platform Module (TPM) (Read-only) ChromeOsDeviceTpmVersionInfo tpmVersionInfo; /// Will Chromebook auto renew after support end date (Read-only) @@ -8377,6 +8449,8 @@ /// JSON template for a "feature instance". class FeatureInstance { + /// The feature that this is an instance of. A calendar resource may have + /// multiple instances of a feature. Feature feature; FeatureInstance(); @@ -8762,7 +8836,8 @@ /// JSON template for Has Member response in Directory API. class MembersHasMember { - /// Identifies whether given user is a member or not. + /// Identifies whether the given user is a member of the group. Membership can + /// be direct or nested. core.bool isMember; MembersHasMember(); @@ -10015,6 +10090,9 @@ /// JSON template for Schema resource in Directory API. class Schema { + /// Display name for the schema. + core.String displayName; + /// ETag of the resource. core.String etag; @@ -10033,6 +10111,9 @@ Schema(); Schema.fromJson(core.Map _json) { + if (_json.containsKey("displayName")) { + displayName = _json["displayName"]; + } if (_json.containsKey("etag")) { etag = _json["etag"]; } @@ -10055,6 +10136,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (displayName != null) { + _json["displayName"] = displayName; + } if (etag != null) { _json["etag"] = etag; } @@ -10114,6 +10198,9 @@ /// JSON template for FieldSpec resource for Schemas in Directory API. class SchemaFieldSpec { + /// Display Name of the field. + core.String displayName; + /// ETag of the resource. core.String etag; @@ -10147,6 +10234,9 @@ SchemaFieldSpec(); SchemaFieldSpec.fromJson(core.Map _json) { + if (_json.containsKey("displayName")) { + displayName = _json["displayName"]; + } if (_json.containsKey("etag")) { etag = _json["etag"]; } @@ -10180,6 +10270,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (displayName != null) { + _json["displayName"] = displayName; + } if (etag != null) { _json["etag"] = etag; } @@ -11879,6 +11972,9 @@ /// The path to the home directory for this account. core.String homeDirectory; + /// The operating system type for this account. + core.String operatingSystemType; + /// If this is user's primary account within the SystemId. core.bool primary; @@ -11909,6 +12005,9 @@ if (_json.containsKey("homeDirectory")) { homeDirectory = _json["homeDirectory"]; } + if (_json.containsKey("operatingSystemType")) { + operatingSystemType = _json["operatingSystemType"]; + } if (_json.containsKey("primary")) { primary = _json["primary"]; } @@ -11941,6 +12040,9 @@ if (homeDirectory != null) { _json["homeDirectory"] = homeDirectory; } + if (operatingSystemType != null) { + _json["operatingSystemType"] = operatingSystemType; + } if (primary != null) { _json["primary"] = primary; }
diff --git a/generated/googleapis/lib/admin/reports_v1.dart b/generated/googleapis/lib/admin/reports_v1.dart index 2083d7d..5e7b556 100644 --- a/generated/googleapis/lib/admin/reports_v1.dart +++ b/generated/googleapis/lib/admin/reports_v1.dart
@@ -61,7 +61,7 @@ /// [applicationName] - Application name for which the events are to be /// retrieved. /// Value must have pattern - /// "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)". + /// "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)|(jamboard)|(meet)". /// /// [actorIpAddress] - IP Address of host where the event was performed. /// Supports both IPv4 and IPv6 addresses. @@ -180,7 +180,7 @@ /// [applicationName] - Application name for which the events are to be /// retrieved. /// Value must have pattern - /// "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)". + /// "(admin)|(calendar)|(drive)|(login)|(mobile)|(token)|(groups)|(saml)|(chat)|(gplus)|(rules)|(jamboard)|(meet)". /// /// [actorIpAddress] - IP Address of host where the event was performed. /// Supports both IPv4 and IPv6 addresses.
diff --git a/generated/googleapis/lib/analytics/v3.dart b/generated/googleapis/lib/analytics/v3.dart index 46c562e..641919e 100644 --- a/generated/googleapis/lib/analytics/v3.dart +++ b/generated/googleapis/lib/analytics/v3.dart
@@ -50,6 +50,10 @@ static const AnalyticsReadonlyScope = "https://www.googleapis.com/auth/analytics.readonly"; + /// Manage Google Analytics user deletion requests + static const AnalyticsUserDeletionScope = + "https://www.googleapis.com/auth/analytics.user.deletion"; + final commons.ApiRequester _requester; DataResourceApi get data => new DataResourceApi(_requester); @@ -57,6 +61,8 @@ MetadataResourceApi get metadata => new MetadataResourceApi(_requester); ProvisioningResourceApi get provisioning => new ProvisioningResourceApi(_requester); + UserDeletionResourceApi get userDeletion => + new UserDeletionResourceApi(_requester); AnalyticsApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", @@ -5957,7 +5963,7 @@ _queryParams["fields"] = [$fields]; } - _url = 'provisioning/createAccount'; + _url = 'provisioning/createAccountTree'; var _response = _requester.request(_url, "POST", body: _body, @@ -5969,6 +5975,65 @@ } } +class UserDeletionResourceApi { + final commons.ApiRequester _requester; + + UserDeletionUserDeletionRequestResourceApi get userDeletionRequest => + new UserDeletionUserDeletionRequestResourceApi(_requester); + + UserDeletionResourceApi(commons.ApiRequester client) : _requester = client; +} + +class UserDeletionUserDeletionRequestResourceApi { + final commons.ApiRequester _requester; + + UserDeletionUserDeletionRequestResourceApi(commons.ApiRequester client) + : _requester = client; + + /// Insert or update a user deletion requests. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [UserDeletionRequest]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<UserDeletionRequest> upsert(UserDeletionRequest request, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'userDeletion/userDeletionRequests:upsert'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new UserDeletionRequest.fromJson(data)); + } +} + /// Child link for an account entry. Points to the list of web properties for /// this account. class AccountChildLink { @@ -6403,56 +6468,42 @@ } class AccountTreeRequestAccountSettings { - core.bool admobReporting; - core.bool sharingWithGoogleAnySales; - core.bool sharingWithGoogleProducts; - core.bool sharingWithGoogleSales; - core.bool sharingWithGoogleSupport; - core.bool sharingWithOthers; + core.bool shareAnonymouslyWithOthers; + core.bool shareWithGoogleProducts; + core.bool shareWithSpecialists; + core.bool shareWithSupport; AccountTreeRequestAccountSettings(); AccountTreeRequestAccountSettings.fromJson(core.Map _json) { - if (_json.containsKey("admobReporting")) { - admobReporting = _json["admobReporting"]; + if (_json.containsKey("shareAnonymouslyWithOthers")) { + shareAnonymouslyWithOthers = _json["shareAnonymouslyWithOthers"]; } - if (_json.containsKey("sharingWithGoogleAnySales")) { - sharingWithGoogleAnySales = _json["sharingWithGoogleAnySales"]; + if (_json.containsKey("shareWithGoogleProducts")) { + shareWithGoogleProducts = _json["shareWithGoogleProducts"]; } - if (_json.containsKey("sharingWithGoogleProducts")) { - sharingWithGoogleProducts = _json["sharingWithGoogleProducts"]; + if (_json.containsKey("shareWithSpecialists")) { + shareWithSpecialists = _json["shareWithSpecialists"]; } - if (_json.containsKey("sharingWithGoogleSales")) { - sharingWithGoogleSales = _json["sharingWithGoogleSales"]; - } - if (_json.containsKey("sharingWithGoogleSupport")) { - sharingWithGoogleSupport = _json["sharingWithGoogleSupport"]; - } - if (_json.containsKey("sharingWithOthers")) { - sharingWithOthers = _json["sharingWithOthers"]; + if (_json.containsKey("shareWithSupport")) { + shareWithSupport = _json["shareWithSupport"]; } } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (admobReporting != null) { - _json["admobReporting"] = admobReporting; + if (shareAnonymouslyWithOthers != null) { + _json["shareAnonymouslyWithOthers"] = shareAnonymouslyWithOthers; } - if (sharingWithGoogleAnySales != null) { - _json["sharingWithGoogleAnySales"] = sharingWithGoogleAnySales; + if (shareWithGoogleProducts != null) { + _json["shareWithGoogleProducts"] = shareWithGoogleProducts; } - if (sharingWithGoogleProducts != null) { - _json["sharingWithGoogleProducts"] = sharingWithGoogleProducts; + if (shareWithSpecialists != null) { + _json["shareWithSpecialists"] = shareWithSpecialists; } - if (sharingWithGoogleSales != null) { - _json["sharingWithGoogleSales"] = sharingWithGoogleSales; - } - if (sharingWithGoogleSupport != null) { - _json["sharingWithGoogleSupport"] = sharingWithGoogleSupport; - } - if (sharingWithOthers != null) { - _json["sharingWithOthers"] = sharingWithOthers; + if (shareWithSupport != null) { + _json["shareWithSupport"] = shareWithSupport; } return _json; } @@ -6529,56 +6580,42 @@ } class AccountTreeResponseAccountSettings { - core.bool admobReporting; - core.bool sharingWithGoogleAnySales; - core.bool sharingWithGoogleProducts; - core.bool sharingWithGoogleSales; - core.bool sharingWithGoogleSupport; - core.bool sharingWithOthers; + core.bool shareAnonymouslyWithOthers; + core.bool shareWithGoogleProducts; + core.bool shareWithSpecialists; + core.bool shareWithSupport; AccountTreeResponseAccountSettings(); AccountTreeResponseAccountSettings.fromJson(core.Map _json) { - if (_json.containsKey("admobReporting")) { - admobReporting = _json["admobReporting"]; + if (_json.containsKey("shareAnonymouslyWithOthers")) { + shareAnonymouslyWithOthers = _json["shareAnonymouslyWithOthers"]; } - if (_json.containsKey("sharingWithGoogleAnySales")) { - sharingWithGoogleAnySales = _json["sharingWithGoogleAnySales"]; + if (_json.containsKey("shareWithGoogleProducts")) { + shareWithGoogleProducts = _json["shareWithGoogleProducts"]; } - if (_json.containsKey("sharingWithGoogleProducts")) { - sharingWithGoogleProducts = _json["sharingWithGoogleProducts"]; + if (_json.containsKey("shareWithSpecialists")) { + shareWithSpecialists = _json["shareWithSpecialists"]; } - if (_json.containsKey("sharingWithGoogleSales")) { - sharingWithGoogleSales = _json["sharingWithGoogleSales"]; - } - if (_json.containsKey("sharingWithGoogleSupport")) { - sharingWithGoogleSupport = _json["sharingWithGoogleSupport"]; - } - if (_json.containsKey("sharingWithOthers")) { - sharingWithOthers = _json["sharingWithOthers"]; + if (_json.containsKey("shareWithSupport")) { + shareWithSupport = _json["shareWithSupport"]; } } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (admobReporting != null) { - _json["admobReporting"] = admobReporting; + if (shareAnonymouslyWithOthers != null) { + _json["shareAnonymouslyWithOthers"] = shareAnonymouslyWithOthers; } - if (sharingWithGoogleAnySales != null) { - _json["sharingWithGoogleAnySales"] = sharingWithGoogleAnySales; + if (shareWithGoogleProducts != null) { + _json["shareWithGoogleProducts"] = shareWithGoogleProducts; } - if (sharingWithGoogleProducts != null) { - _json["sharingWithGoogleProducts"] = sharingWithGoogleProducts; + if (shareWithSpecialists != null) { + _json["shareWithSpecialists"] = shareWithSpecialists; } - if (sharingWithGoogleSales != null) { - _json["sharingWithGoogleSales"] = sharingWithGoogleSales; - } - if (sharingWithGoogleSupport != null) { - _json["sharingWithGoogleSupport"] = sharingWithGoogleSupport; - } - if (sharingWithOthers != null) { - _json["sharingWithOthers"] = sharingWithOthers; + if (shareWithSupport != null) { + _json["shareWithSupport"] = shareWithSupport; } return _json; } @@ -13284,6 +13321,98 @@ } } +/// User ID. +class UserDeletionRequestId { + /// Type of user + core.String type; + + /// The User's id + core.String userId; + + UserDeletionRequestId(); + + UserDeletionRequestId.fromJson(core.Map _json) { + if (_json.containsKey("type")) { + type = _json["type"]; + } + if (_json.containsKey("userId")) { + userId = _json["userId"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (type != null) { + _json["type"] = type; + } + if (userId != null) { + _json["userId"] = userId; + } + return _json; + } +} + +/// JSON template for a user deletion request resource. +class UserDeletionRequest { + /// This marks the point in time for which all user data before should be + /// deleted + core.DateTime deletionRequestTime; + + /// Firebase Project Id + core.String firebaseProjectId; + + /// User ID. + UserDeletionRequestId id; + + /// Value is "analytics#userDeletionRequest". + core.String kind; + + /// Web property ID of the form UA-XXXXX-YY. + core.String webPropertyId; + + UserDeletionRequest(); + + UserDeletionRequest.fromJson(core.Map _json) { + if (_json.containsKey("deletionRequestTime")) { + deletionRequestTime = core.DateTime.parse(_json["deletionRequestTime"]); + } + if (_json.containsKey("firebaseProjectId")) { + firebaseProjectId = _json["firebaseProjectId"]; + } + if (_json.containsKey("id")) { + id = new UserDeletionRequestId.fromJson(_json["id"]); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("webPropertyId")) { + webPropertyId = _json["webPropertyId"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (deletionRequestTime != null) { + _json["deletionRequestTime"] = (deletionRequestTime).toIso8601String(); + } + if (firebaseProjectId != null) { + _json["firebaseProjectId"] = firebaseProjectId; + } + if (id != null) { + _json["id"] = (id).toJson(); + } + if (kind != null) { + _json["kind"] = kind; + } + if (webPropertyId != null) { + _json["webPropertyId"] = webPropertyId; + } + return _json; + } +} + /// JSON template for a user reference. class UserRef { /// Email ID of this user. @@ -13678,6 +13807,18 @@ /// Time this web property was created. core.DateTime created; + /// Set to true to reset the retention period of the user identifier with each + /// new event from that user (thus setting the expiration date to current time + /// plus retention period). + /// Set to false to delete data associated with the user identifer + /// automatically after the rentention period. + /// This property cannot be set on insert. + core.bool dataRetentionResetOnNewActivity; + + /// The length of time for which user and event data is retained. + /// This property cannot be set on insert. + core.String dataRetentionTtl; + /// Default view (profile) ID. core.String defaultProfileId; @@ -13733,6 +13874,13 @@ if (_json.containsKey("created")) { created = core.DateTime.parse(_json["created"]); } + if (_json.containsKey("dataRetentionResetOnNewActivity")) { + dataRetentionResetOnNewActivity = + _json["dataRetentionResetOnNewActivity"]; + } + if (_json.containsKey("dataRetentionTtl")) { + dataRetentionTtl = _json["dataRetentionTtl"]; + } if (_json.containsKey("defaultProfileId")) { defaultProfileId = _json["defaultProfileId"]; } @@ -13789,6 +13937,13 @@ if (created != null) { _json["created"] = (created).toIso8601String(); } + if (dataRetentionResetOnNewActivity != null) { + _json["dataRetentionResetOnNewActivity"] = + dataRetentionResetOnNewActivity; + } + if (dataRetentionTtl != null) { + _json["dataRetentionTtl"] = dataRetentionTtl; + } if (defaultProfileId != null) { _json["defaultProfileId"] = defaultProfileId; }
diff --git a/generated/googleapis/lib/analyticsreporting/v4.dart b/generated/googleapis/lib/analyticsreporting/v4.dart index 9a268b4..af02b26 100644 --- a/generated/googleapis/lib/analyticsreporting/v4.dart +++ b/generated/googleapis/lib/analyticsreporting/v4.dart
@@ -1455,7 +1455,7 @@ /// Page size is for paging and specifies the maximum number of returned rows. /// Page size should be >= 0. A query returns the default of 1,000 rows. - /// The Analytics Core Reporting API returns a maximum of 10,000 rows per + /// The Analytics Core Reporting API returns a maximum of 100,000 rows per /// request, no matter how many you ask for. It can also return fewer rows /// than requested, if there aren't as many dimension segments as you expect. /// For instance, there are fewer than 300 possible values for `ga:country`,
diff --git a/generated/googleapis/lib/androiddeviceprovisioning/v1.dart b/generated/googleapis/lib/androiddeviceprovisioning/v1.dart index 5147f02..2f2bd8c 100644 --- a/generated/googleapis/lib/androiddeviceprovisioning/v1.dart +++ b/generated/googleapis/lib/androiddeviceprovisioning/v1.dart
@@ -820,7 +820,7 @@ /// /// Request parameters: /// - /// [partnerId] - The ID of the partner. + /// [partnerId] - Required. The ID of the reseller partner. /// Value must have pattern "^[^/]+$". /// /// [$fields] - Selector specifying which fields to include in a partial @@ -868,13 +868,15 @@ PartnersDevicesResourceApi(commons.ApiRequester client) : _requester = client; - /// Claim the device identified by device identifier. + /// Claims a device for a customer and adds it to zero-touch enrollment. If + /// the + /// device is already claimed by another customer, the call returns an error. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [partnerId] - ID of the partner. + /// [partnerId] - Required. The ID of the reseller partner. /// Value must have pattern "^[^/]+$". /// /// [$fields] - Selector specifying which fields to include in a partial @@ -920,13 +922,15 @@ return _response.then((data) => new ClaimDeviceResponse.fromJson(data)); } - /// Claim devices asynchronously. + /// Claims a batch of devices for a customer asynchronously. Adds the devices + /// to zero-touch enrollment. To learn more, read [Long‑running batch + /// operations](/zero-touch/guides/how-it-works#operations). /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [partnerId] - Partner ID. + /// [partnerId] - Required. The ID of the reseller partner. /// Value must have pattern "^[^/]+$". /// /// [$fields] - Selector specifying which fields to include in a partial @@ -972,13 +976,13 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Find devices by device identifier. + /// Finds devices by hardware identifiers, such as IMEI. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [partnerId] - ID of the partner. + /// [partnerId] - Required. The ID of the reseller partner. /// Value must have pattern "^[^/]+$". /// /// [$fields] - Selector specifying which fields to include in a partial @@ -1025,13 +1029,16 @@ (data) => new FindDevicesByDeviceIdentifierResponse.fromJson(data)); } - /// Find devices by ownership. + /// Finds devices claimed for customers. The results only contain devices + /// registered to the reseller that's identified by the `partnerId` argument. + /// The customer's devices purchased from other resellers don't appear in the + /// results. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [partnerId] - ID of the partner. + /// [partnerId] - Required. The ID of the reseller partner. /// Value must have pattern "^[^/]+$". /// /// [$fields] - Selector specifying which fields to include in a partial @@ -1078,11 +1085,12 @@ .then((data) => new FindDevicesByOwnerResponse.fromJson(data)); } - /// Get a device. + /// Gets a device. /// /// Request parameters: /// - /// [name] - Resource name in `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. + /// [name] - Required. The device API resource name in the format + /// `partners/[PARTNER_ID]/devices/[DEVICE_ID]`. /// Value must have pattern "^partners/[^/]+/devices/[^/]+$". /// /// [$fields] - Selector specifying which fields to include in a partial @@ -1121,17 +1129,17 @@ return _response.then((data) => new Device.fromJson(data)); } - /// Update the metadata. + /// Updates reseller metadata associated with the device. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [metadataOwnerId] - The owner of the newly set metadata. Set this to the - /// partner ID. + /// [metadataOwnerId] - Required. The owner of the newly set metadata. Set + /// this to the partner ID. /// Value must have pattern "^[^/]+$". /// - /// [deviceId] - ID of the partner. + /// [deviceId] - Required. The ID of the reseller partner. /// Value must have pattern "^[^/]+$". /// /// [$fields] - Selector specifying which fields to include in a partial @@ -1182,14 +1190,14 @@ return _response.then((data) => new DeviceMetadata.fromJson(data)); } - /// Unclaim the device identified by the `device_id` or the - /// `deviceIdentifier`. + /// Unclaims a device from a customer and removes it from zero-touch + /// enrollment. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [partnerId] - ID of the partner. + /// [partnerId] - Required. The ID of the reseller partner. /// Value must have pattern "^[^/]+$". /// /// [$fields] - Selector specifying which fields to include in a partial @@ -1235,13 +1243,16 @@ return _response.then((data) => new Empty.fromJson(data)); } - /// Unclaim devices asynchronously. + /// Unclaims a batch of devices for a customer asynchronously. Removes the + /// devices from zero-touch enrollment. To learn more, read [Long‑running + /// batch + /// operations](/zero-touch/guides/how-it-works#operations). /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [partnerId] - Partner ID. + /// [partnerId] - Required. The reseller partner ID. /// Value must have pattern "^[^/]+$". /// /// [$fields] - Selector specifying which fields to include in a partial @@ -1287,13 +1298,16 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Set metadata in batch asynchronously. + /// Updates the reseller metadata attached to a batch of devices. This method + /// updates devices asynchronously and returns an `Operation` that can be used + /// to track progress. Read [Long‑running batch + /// operations](/zero-touch/guides/how-it-works#operations). /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [partnerId] - Partner ID. + /// [partnerId] - Required. The reseller partner ID. /// Value must have pattern "^[^/]+$". /// /// [$fields] - Selector specifying which fields to include in a partial @@ -1342,13 +1356,13 @@ /// Request message to claim a device on behalf of a customer. class ClaimDeviceRequest { - /// The customer to claim for. + /// Required. The ID of the customer for whom the device is being claimed. core.String customerId; - /// The device identifier of the device to claim. + /// Required. The device identifier of the device to claim. DeviceIdentifier deviceIdentifier; - /// The section to claim. + /// Required. The section type of the device's provisioning record. /// Possible string values are: /// - "SECTION_TYPE_UNSPECIFIED" : Unspecified section type. /// - "SECTION_TYPE_ZERO_TOUCH" : Zero-touch enrollment section type. @@ -1418,9 +1432,11 @@ } } -/// Request to claim devices asynchronously in batch. +/// Request to claim devices asynchronously in batch. Claiming a device adds the +/// device to zero-touch enrollment and shows the device in the customer's view +/// of the portal. class ClaimDevicesRequest { - /// List of claims. + /// Required. A list of device claims. core.List<PartnerClaim> claims; ClaimDevicesRequest(); @@ -1469,6 +1485,21 @@ /// delete, and edit your organization's portal users. core.List<core.String> ownerEmails; + /// Output only. Whether any user from the company has accepted the latest + /// Terms of Service (ToS). See + /// TermsStatus. + /// Possible string values are: + /// - "TERMS_STATUS_UNSPECIFIED" : Default value. This value should never be + /// set if the enum is present. + /// - "TERMS_STATUS_NOT_ACCEPTED" : None of the company's users have accepted + /// the ToS. + /// - "TERMS_STATUS_ACCEPTED" : One (or more) of the company's users has + /// accepted the ToS. + /// - "TERMS_STATUS_STALE" : None of the company's users has accepted the + /// current ToS but at least one + /// user accepted a previous ToS. + core.String termsStatus; + Company(); Company.fromJson(core.Map _json) { @@ -1487,6 +1518,9 @@ if (_json.containsKey("ownerEmails")) { ownerEmails = (_json["ownerEmails"] as core.List).cast<core.String>(); } + if (_json.containsKey("termsStatus")) { + termsStatus = _json["termsStatus"]; + } } core.Map<core.String, core.Object> toJson() { @@ -1507,6 +1541,9 @@ if (ownerEmails != null) { _json["ownerEmails"] = ownerEmails; } + if (termsStatus != null) { + _json["termsStatus"] = termsStatus; + } return _json; } } @@ -2111,12 +2148,16 @@ } } -/// Long running operation metadata. +/// Tracks the status of a long-running operation to asynchronously update a +/// batch of reseller metadata attached to devices. To learn more, read +/// [Long‑running batch operations](/zero-touch/guides/how-it-works#operations). class DevicesLongRunningOperationMetadata { - /// Number of devices parsed in your requests. + /// The number of metadata updates in the operation. This might be different + /// from the number of updates in the request if the API can't parse some of + /// the updates. core.int devicesCount; - /// The overall processing status. + /// The processing status of the operation. /// Possible string values are: /// - "BATCH_PROCESS_STATUS_UNSPECIFIED" : Invalid code. Shouldn't be used. /// - "BATCH_PROCESS_PENDING" : Pending. @@ -2126,7 +2167,9 @@ /// check the `response` field for the result of every item. core.String processingStatus; - /// Processing progress from 0 to 100. + /// The processing progress of the operation. Measured as a number from 0 to + /// 100. A value of 10O doesnt always mean the operation completed—check for + /// the inclusion of a `done` field. core.int progress; DevicesLongRunningOperationMetadata(); @@ -2159,14 +2202,17 @@ } } -/// Long running operation response. +/// Tracks the status of a long-running operation to claim, unclaim, or attach +/// metadata to devices. To learn more, read +/// [Long‑running batch operations](/zero-touch/guides/how-it-works#operations). class DevicesLongRunningOperationResponse { - /// Processing status for each device. - /// One `PerDeviceStatus` per device. The order is the same as in your - /// requests. + /// The processing status for each device in the operation. + /// One `PerDeviceStatus` per device. The list order matches the items in the + /// original request. core.List<OperationPerDevice> perDeviceStatus; - /// Number of succeesfully processed ones. + /// A summary of how many items in the operation the server processed + /// successfully. Updated as the operation progresses. core.int successCount; DevicesLongRunningOperationResponse(); @@ -2197,7 +2243,8 @@ } } -/// An EMM's DPC ([device policy controller](/android/work/dpc/build-dpc)). +/// An EMM's DPC ([device policy +/// controller](http://developer.android.com/work/dpc/build-dpc.html)). /// Zero-touch enrollment installs a DPC (listed in the `Configuration`) on a /// device to maintain the customer's mobile policies. All the DPCs listed by /// the @@ -2271,13 +2318,14 @@ /// Request to find devices. class FindDevicesByDeviceIdentifierRequest { - /// The device identifier to search. + /// Required. The device identifier to search for. DeviceIdentifier deviceIdentifier; - /// Number of devices to show. + /// Required. The maximum number of devices to show in a page of results. Must + /// be between 1 and 100 inclusive. core.String limit; - /// Page token. + /// A token specifying which result page to return. core.String pageToken; FindDevicesByDeviceIdentifierRequest(); @@ -2316,7 +2364,8 @@ /// Found devices. core.List<Device> devices; - /// Page token of the next page. + /// A token used to access the next page of results. Omitted if no further + /// results are available. core.String nextPageToken; FindDevicesByDeviceIdentifierResponse(); @@ -2347,16 +2396,17 @@ /// Request to find devices by customers. class FindDevicesByOwnerRequest { - /// List of customer IDs to search for. + /// Required. The list of customer IDs to search for. core.List<core.String> customerId; - /// The number of devices to show in the result. + /// Required. The maximum number of devices to show in a page of results. Must + /// be between 1 and 100 inclusive. core.String limit; - /// Page token. + /// A token specifying which result page to return. core.String pageToken; - /// The section type. + /// Required. The section type of the device's provisioning record. /// Possible string values are: /// - "SECTION_TYPE_UNSPECIFIED" : Unspecified section type. /// - "SECTION_TYPE_ZERO_TOUCH" : Zero-touch enrollment section type. @@ -2400,10 +2450,11 @@ /// Response containing found devices. class FindDevicesByOwnerResponse { - /// Devices found. + /// The customer's devices. core.List<Device> devices; - /// Page token of the next page. + /// A token used to access the next page of results. + /// Omitted if no further results are available. core.String nextPageToken; FindDevicesByOwnerResponse(); @@ -2434,7 +2485,7 @@ /// Response message of all customers related to this partner. class ListCustomersResponse { - /// List of customers related to this partner. + /// List of customers related to this reseller partner. core.List<Company> customers; ListCustomersResponse(); @@ -2537,18 +2588,19 @@ } } -/// Operation the server received for every device. +/// A task for each device in the operation. Corresponds to each device +/// change in the request. class OperationPerDevice { - /// Request to claim a device. + /// A copy of the original device-claim request received by the server. PartnerClaim claim; - /// Processing result for every device. + /// The processing result for each device. PerDeviceStatusInBatch result; - /// Request to unclaim a device. + /// A copy of the original device-unclaim request received by the server. PartnerUnclaim unclaim; - /// Request to set metadata for a device. + /// A copy of the original metadata-update request received by the server. UpdateMetadataArguments updateMetadata; OperationPerDevice(); @@ -2590,16 +2642,16 @@ /// Identifies one claim request. class PartnerClaim { - /// Customer ID to claim for. + /// Required. The ID of the customer for whom the device is being claimed. core.String customerId; - /// Device identifier of the device. + /// Required. Device identifier of the device. DeviceIdentifier deviceIdentifier; - /// Metadata to set at claim. + /// Required. The metadata to attach to the device at claim. DeviceMetadata deviceMetadata; - /// Section type to claim. + /// Required. The section type of the device's provisioning record. /// Possible string values are: /// - "SECTION_TYPE_UNSPECIFIED" : Unspecified section type. /// - "SECTION_TYPE_ZERO_TOUCH" : Zero-touch enrollment section type. @@ -2650,7 +2702,7 @@ /// Device identifier of the device. DeviceIdentifier deviceIdentifier; - /// Section type to unclaim. + /// Required. The section type of the device's provisioning record. /// Possible string values are: /// - "SECTION_TYPE_UNSPECIFIED" : Unspecified section type. /// - "SECTION_TYPE_ZERO_TOUCH" : Zero-touch enrollment section type. @@ -2687,18 +2739,18 @@ } } -/// Stores the processing result for each device. +/// Captures the processing status for each device in the operation. class PerDeviceStatusInBatch { - /// Device ID of the device if process succeeds. + /// If processing succeeds, the device ID of the device. core.String deviceId; - /// Error identifier. + /// If processing fails, the error type. core.String errorIdentifier; - /// Error message. + /// If processing fails, a developer message explaining what went wrong. core.String errorMessage; - /// Process result. + /// The result status of the device after processing. /// Possible string values are: /// - "SINGLE_DEVICE_STATUS_UNSPECIFIED" : Invalid code. Shouldn't be used. /// - "SINGLE_DEVICE_STATUS_UNKNOWN_ERROR" : Unknown error. @@ -2864,7 +2916,7 @@ /// The device identifier you used when you claimed this device. DeviceIdentifier deviceIdentifier; - /// The section type to unclaim for. + /// Required. The section type of the device's provisioning record. /// Possible string values are: /// - "SECTION_TYPE_UNSPECIFIED" : Unspecified section type. /// - "SECTION_TYPE_ZERO_TOUCH" : Zero-touch enrollment section type. @@ -2903,7 +2955,7 @@ /// Request to unclaim devices asynchronously in batch. class UnclaimDevicesRequest { - /// List of devices to unclaim. + /// Required. The list of devices to unclaim. core.List<PartnerUnclaim> unclaims; UnclaimDevicesRequest(); @@ -2928,7 +2980,7 @@ /// Request to update device metadata in batch. class UpdateDeviceMetadataInBatchRequest { - /// List of metadata updates. + /// Required. The list of metadata updates. core.List<UpdateMetadataArguments> updates; UpdateDeviceMetadataInBatchRequest(); @@ -2954,7 +3006,7 @@ /// Request to set metadata for a device. class UpdateDeviceMetadataRequest { - /// The metdata to set. + /// Required. The metdata to attach to the device. DeviceMetadata deviceMetadata; UpdateDeviceMetadataRequest(); @@ -2983,7 +3035,7 @@ /// Device identifier. DeviceIdentifier deviceIdentifier; - /// The metadata to update. + /// Required. The metadata to update. DeviceMetadata deviceMetadata; UpdateMetadataArguments();
diff --git a/generated/googleapis/lib/androidenterprise/v1.dart b/generated/googleapis/lib/androidenterprise/v1.dart index 4193203..d9738fc 100644 --- a/generated/googleapis/lib/androidenterprise/v1.dart +++ b/generated/googleapis/lib/androidenterprise/v1.dart
@@ -802,7 +802,7 @@ return _response.then((data) => new Enterprise.fromJson(data)); } - /// Returns the Android Device Policy config resource. + /// Deprecated and unused. /// /// Request parameters: /// @@ -1230,10 +1230,7 @@ return _response.then((data) => new EnterpriseAccount.fromJson(data)); } - /// Sets the Android Device Policy config resource. EMM may use this method to - /// enable or disable Android Device Policy support for the specified - /// enterprise. To learn more about managing devices and apps with Android - /// Device Policy, see the Android Management API. + /// Deprecated and unused. /// /// [request] - The metadata request object. /// @@ -5139,16 +5136,13 @@ } } -/// The Android Device Policy configuration of an enterprise. +/// Deprecated and unused. class AndroidDevicePolicyConfig { /// Identifies what kind of resource this is. Value: the fixed string /// "androidenterprise#androidDevicePolicyConfig". core.String kind; - /// The state of Android Device Policy. "enabled" indicates that Android - /// Device Policy is enabled for the enterprise and the EMM is allowed to - /// manage devices with Android Device Policy, while "disabled" means that it - /// cannot. + /// Deprecated and unused. core.String state; AndroidDevicePolicyConfig(); @@ -6407,6 +6401,41 @@ } } +/// Maintenance window for managed Google Play Accounts. This allows Play store +/// to update the apps on the foreground in the designated window. +class MaintenanceWindow { + /// Duration of the maintenance window, in milliseconds. The duration must be + /// between 30 minutes and 24 hours (inclusive). + core.String durationMs; + + /// Start time of the maintenance window, in milliseconds after midnight on + /// the device. Windows can span midnight. + core.String startTimeAfterMidnightMs; + + MaintenanceWindow(); + + MaintenanceWindow.fromJson(core.Map _json) { + if (_json.containsKey("durationMs")) { + durationMs = _json["durationMs"]; + } + if (_json.containsKey("startTimeAfterMidnightMs")) { + startTimeAfterMidnightMs = _json["startTimeAfterMidnightMs"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (durationMs != null) { + _json["durationMs"] = durationMs; + } + if (startTimeAfterMidnightMs != null) { + _json["startTimeAfterMidnightMs"] = startTimeAfterMidnightMs; + } + return _json; + } +} + /// A managed configuration resource contains the set of managed properties /// defined by the app developer in the app's managed configurations schema, as /// well as any configuration variables defined for the user. @@ -7130,15 +7159,24 @@ /// The device policy for a given managed device. class Policy { + /// The auto-update policy for apps installed on the device. "choiceToTheUser" + /// allows the device's user to configure the app update policy. "always" + /// enables auto updates. "never" disables auto updates. "wifiOnly" enables + /// auto updates only when the device is connected to wifi. + core.String autoUpdatePolicy; + + /// The maintenance window defining when apps running in the foreground should + /// be updated. + MaintenanceWindow maintenanceWindow; + /// The availability granted to the device for the specified products. "all" /// gives the device access to all products, regardless of approval status. - /// "allApproved" entitles the device to access all products that are approved - /// for the enterprise. "allApproved" and "all" do not enable automatic - /// visibility of "alpha" or "beta" tracks. "whitelist" grants the device - /// access the products specified in productPolicy[]. Only products that are - /// approved or products that were previously approved (products with revoked - /// approval) by the enterprise can be whitelisted. If no value is provided, - /// the availability set at the user level is applied by default. + /// "all" does not enable automatic visibility of "alpha" or "beta" tracks. + /// "whitelist" grants the device access the products specified in + /// productPolicy[]. Only products that are approved or products that were + /// previously approved (products with revoked approval) by the enterprise can + /// be whitelisted. If no value is provided, the availability set at the user + /// level is applied by default. core.String productAvailabilityPolicy; /// The list of product policies. @@ -7147,6 +7185,13 @@ Policy(); Policy.fromJson(core.Map _json) { + if (_json.containsKey("autoUpdatePolicy")) { + autoUpdatePolicy = _json["autoUpdatePolicy"]; + } + if (_json.containsKey("maintenanceWindow")) { + maintenanceWindow = + new MaintenanceWindow.fromJson(_json["maintenanceWindow"]); + } if (_json.containsKey("productAvailabilityPolicy")) { productAvailabilityPolicy = _json["productAvailabilityPolicy"]; } @@ -7160,6 +7205,12 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (autoUpdatePolicy != null) { + _json["autoUpdatePolicy"] = autoUpdatePolicy; + } + if (maintenanceWindow != null) { + _json["maintenanceWindow"] = (maintenanceWindow).toJson(); + } if (productAvailabilityPolicy != null) { _json["productAvailabilityPolicy"] = productAvailabilityPolicy; }
diff --git a/generated/googleapis/lib/androidmanagement/v1.dart b/generated/googleapis/lib/androidmanagement/v1.dart index a5b7d3f..12637c8 100644 --- a/generated/googleapis/lib/androidmanagement/v1.dart +++ b/generated/googleapis/lib/androidmanagement/v1.dart
@@ -59,13 +59,13 @@ /// /// Request parameters: /// - /// [signupUrlName] - The name of the SignupUrl used to sign up for the - /// enterprise. + /// [projectId] - The ID of the Google Cloud Platform project which will own + /// the enterprise. /// /// [enterpriseToken] - The enterprise token appended to the callback URL. /// - /// [projectId] - The ID of the Google Cloud Platform project which will own - /// the enterprise. + /// [signupUrlName] - The name of the SignupUrl used to sign up for the + /// enterprise. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -78,9 +78,9 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<Enterprise> create(Enterprise request, - {core.String signupUrlName, + {core.String projectId, core.String enterpriseToken, - core.String projectId, + core.String signupUrlName, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -92,14 +92,14 @@ if (request != null) { _body = convert.json.encode((request).toJson()); } - if (signupUrlName != null) { - _queryParams["signupUrlName"] = [signupUrlName]; + if (projectId != null) { + _queryParams["projectId"] = [projectId]; } if (enterpriseToken != null) { _queryParams["enterpriseToken"] = [enterpriseToken]; } - if (projectId != null) { - _queryParams["projectId"] = [projectId]; + if (signupUrlName != null) { + _queryParams["signupUrlName"] = [signupUrlName]; } if ($fields != null) { _queryParams["fields"] = [$fields]; @@ -435,12 +435,12 @@ /// enterprises/{enterpriseId}. /// Value must have pattern "^enterprises/[^/]+$". /// - /// [pageSize] - The requested page size. The actual page size may be fixed to - /// a min or max value. - /// /// [pageToken] - A token identifying a page of results returned by the /// server. /// + /// [pageSize] - The requested page size. The actual page size may be fixed to + /// a min or max value. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -452,7 +452,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<ListDevicesResponse> list(core.String parent, - {core.int pageSize, core.String pageToken, core.String $fields}) { + {core.String pageToken, core.int pageSize, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -463,12 +463,12 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -708,12 +708,12 @@ /// [name] - The name of the operation's parent resource. /// Value must have pattern "^enterprises/[^/]+/devices/[^/]+/operations$". /// + /// [pageToken] - The standard list page token. + /// /// [pageSize] - The standard list page size. /// /// [filter] - The standard list filter. /// - /// [pageToken] - The standard list page token. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -725,9 +725,9 @@ /// 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 pageToken, + core.int pageSize, core.String filter, - core.String pageToken, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -739,15 +739,15 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } if (filter != null) { _queryParams["filter"] = [filter]; } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -972,12 +972,12 @@ /// enterprises/{enterpriseId}. /// Value must have pattern "^enterprises/[^/]+$". /// - /// [pageSize] - The requested page size. The actual page size may be fixed to - /// a min or max value. - /// /// [pageToken] - A token identifying a page of results returned by the /// server. /// + /// [pageSize] - The requested page size. The actual page size may be fixed to + /// a min or max value. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -989,7 +989,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<ListPoliciesResponse> list(core.String parent, - {core.int pageSize, core.String pageToken, core.String $fields}) { + {core.String pageToken, core.int pageSize, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -1000,12 +1000,12 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1315,6 +1315,50 @@ } } +/// An app-related event. +class ApplicationEvent { + /// The creation time of the event. + core.String createTime; + + /// App event type. + /// Possible string values are: + /// - "APPLICATION_EVENT_TYPE_UNSPECIFIED" : This value is disallowed. + /// - "INSTALLED" : The app was installed. + /// - "CHANGED" : The app was changed, for example, a component was enabled or + /// disabled. + /// - "DATA_CLEARED" : The app data was cleared. + /// - "REMOVED" : The app was removed. + /// - "REPLACED" : A new version of the app has been installed, replacing the + /// old version. + /// - "RESTARTED" : The app was restarted. + /// - "PINNED" : The app was pinned to the foreground. + /// - "UNPINNED" : The app was unpinned. + core.String eventType; + + ApplicationEvent(); + + ApplicationEvent.fromJson(core.Map _json) { + if (_json.containsKey("createTime")) { + createTime = _json["createTime"]; + } + if (_json.containsKey("eventType")) { + eventType = _json["eventType"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (createTime != null) { + _json["createTime"] = createTime; + } + if (eventType != null) { + _json["eventType"] = eventType; + } + return _json; + } +} + /// A permission required by the app. class ApplicationPermission { /// A longer description of the permission, providing more detail on what it @@ -1361,7 +1405,8 @@ class ApplicationPolicy { /// The default policy for all permissions requested by the app. If specified, /// this overrides the policy-level default_permission_policy which applies to - /// all apps. + /// all apps. It does not override the permission_grants which applies to all + /// apps. /// Possible string values are: /// - "PERMISSION_POLICY_UNSPECIFIED" : Policy not specified. If no policy is /// specified for a permission at any level, then the PROMPT behavior is used @@ -1374,6 +1419,9 @@ /// The scopes delegated to the app from Android Device Policy. core.List<core.String> delegatedScopes; + /// Whether the app should be disabled, but app data is preserved. + core.bool disabled; + /// The type of installation to perform. /// Possible string values are: /// - "INSTALL_TYPE_UNSPECIFIED" : No automatic installation is performed. Any @@ -1416,7 +1464,8 @@ core.String packageName; /// Explicit permission grants or denials for the app. These values override - /// the default_permission_policy. + /// the default_permission_policy and permission_grants which apply to all + /// apps. core.List<PermissionGrant> permissionGrants; ApplicationPolicy(); @@ -1429,6 +1478,9 @@ delegatedScopes = (_json["delegatedScopes"] as core.List).cast<core.String>(); } + if (_json.containsKey("disabled")) { + disabled = _json["disabled"]; + } if (_json.containsKey("installType")) { installType = _json["installType"]; } @@ -1461,6 +1513,9 @@ if (delegatedScopes != null) { _json["delegatedScopes"] = delegatedScopes; } + if (disabled != null) { + _json["disabled"] = disabled; + } if (installType != null) { _json["installType"] = installType; } @@ -1484,6 +1539,181 @@ } } +/// Information reported about an installed app. +class ApplicationReport { + /// The source of the package. + /// Possible string values are: + /// - "APPLICATION_SOURCE_UNSPECIFIED" : The app was sideloaded from an + /// unspecified source. + /// - "SYSTEM_APP_FACTORY_VERSION" : This is a system app from the device's + /// factory image. + /// - "SYSTEM_APP_UPDATED_VERSION" : This is an updated system app. + /// - "INSTALLED_FROM_PLAY_STORE" : The app was installed from the Google Play + /// Store. + core.String applicationSource; + + /// The display name of the app. + core.String displayName; + + /// List of app events. The most recent 20 events are stored in the list. + core.List<ApplicationEvent> events; + + /// The package name of the app that installed this app. + core.String installerPackageName; + + /// Package name of the app. + core.String packageName; + + /// The SHA-256 hash of the app's APK file, which can be used to verify the + /// app hasn't been modified. Each byte of the hash value is represented as a + /// two-digit hexadecimal number. + core.String packageSha256Hash; + + /// The SHA-1 hash of each android.content.pm.Signature + /// (https://developer.android.com/reference/android/content/pm/Signature.html) + /// associated with the app package. Each byte of each hash value is + /// represented as a two-digit hexadecimal number. + core.List<core.String> signingKeyCertFingerprints; + + /// Application state. + /// Possible string values are: + /// - "INSTALLED" : App is installed on the device + /// - "REMOVED" : App was removed from the device + core.String state; + + /// The app version code, which can be used to determine whether one version + /// is more recent than another. + core.int versionCode; + + /// The app version as displayed to the user. + core.String versionName; + + ApplicationReport(); + + ApplicationReport.fromJson(core.Map _json) { + if (_json.containsKey("applicationSource")) { + applicationSource = _json["applicationSource"]; + } + if (_json.containsKey("displayName")) { + displayName = _json["displayName"]; + } + if (_json.containsKey("events")) { + events = (_json["events"] as core.List) + .map<ApplicationEvent>( + (value) => new ApplicationEvent.fromJson(value)) + .toList(); + } + if (_json.containsKey("installerPackageName")) { + installerPackageName = _json["installerPackageName"]; + } + if (_json.containsKey("packageName")) { + packageName = _json["packageName"]; + } + if (_json.containsKey("packageSha256Hash")) { + packageSha256Hash = _json["packageSha256Hash"]; + } + if (_json.containsKey("signingKeyCertFingerprints")) { + signingKeyCertFingerprints = + (_json["signingKeyCertFingerprints"] as core.List) + .cast<core.String>(); + } + if (_json.containsKey("state")) { + state = _json["state"]; + } + if (_json.containsKey("versionCode")) { + versionCode = _json["versionCode"]; + } + if (_json.containsKey("versionName")) { + versionName = _json["versionName"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (applicationSource != null) { + _json["applicationSource"] = applicationSource; + } + if (displayName != null) { + _json["displayName"] = displayName; + } + if (events != null) { + _json["events"] = events.map((value) => (value).toJson()).toList(); + } + if (installerPackageName != null) { + _json["installerPackageName"] = installerPackageName; + } + if (packageName != null) { + _json["packageName"] = packageName; + } + if (packageSha256Hash != null) { + _json["packageSha256Hash"] = packageSha256Hash; + } + if (signingKeyCertFingerprints != null) { + _json["signingKeyCertFingerprints"] = signingKeyCertFingerprints; + } + if (state != null) { + _json["state"] = state; + } + if (versionCode != null) { + _json["versionCode"] = versionCode; + } + if (versionName != null) { + _json["versionName"] = versionName; + } + return _json; + } +} + +/// A rule for automatically choosing a private key and certificate to +/// authenticate the device to a server. +class ChoosePrivateKeyRule { + /// The package names for which outgoing requests are subject to this rule. If + /// no package names are specified, then the rule applies to all packages. For + /// each package name listed, the rule applies to that package and all other + /// packages that shared the same Android UID. The SHA256 hash of the signing + /// key signatures of each package_name will be verified against those + /// provided by Play + core.List<core.String> packageNames; + + /// The alias of the private key to be used. + core.String privateKeyAlias; + + /// The URL pattern to match against the URL of the outgoing request. The + /// pattern may contain asterisk (*) wildcards. Any URL is matched if + /// unspecified. + core.String urlPattern; + + ChoosePrivateKeyRule(); + + ChoosePrivateKeyRule.fromJson(core.Map _json) { + if (_json.containsKey("packageNames")) { + packageNames = (_json["packageNames"] as core.List).cast<core.String>(); + } + if (_json.containsKey("privateKeyAlias")) { + privateKeyAlias = _json["privateKeyAlias"]; + } + if (_json.containsKey("urlPattern")) { + urlPattern = _json["urlPattern"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (packageNames != null) { + _json["packageNames"] = packageNames; + } + if (privateKeyAlias != null) { + _json["privateKeyAlias"] = privateKeyAlias; + } + if (urlPattern != null) { + _json["urlPattern"] = urlPattern; + } + return _json; + } +} + /// A command. class Command { /// The timestamp at which the command was created. The timestamp is @@ -1495,6 +1725,19 @@ /// unspecified is ten minutes. There is no maximum duration. core.String duration; + /// If the command failed, an error code explaining the failure. This is not + /// set when the command is cancelled by the caller. + /// Possible string values are: + /// - "COMMAND_ERROR_CODE_UNSPECIFIED" : There was no error. + /// - "UNKNOWN" : An unknown error occurred. + /// - "API_LEVEL" : The API level of the device does not support this command. + /// - "MANAGEMENT_MODE" : The management mode (profile owner, device owner, + /// etc.) does not support the command. + /// - "INVALID_VALUE" : The command has an invalid parameter value. + /// - "UNSUPPORTED" : The device doesn't support the command. Updating Android + /// Device Policy to the latest version may resolve the issue. + core.String errorCode; + /// For commands of type RESET_PASSWORD, optionally specifies the new /// password. core.String newPassword; @@ -1510,6 +1753,11 @@ /// - "REBOOT" : Reboot the device. Only supported on API level 24+. core.String type; + /// The resource name of the user that owns the device in the form + /// enterprises/{enterpriseId}/users/{userId}. This is automatically generated + /// by the server based on the device the command is sent to. + core.String userName; + Command(); Command.fromJson(core.Map _json) { @@ -1519,6 +1767,9 @@ if (_json.containsKey("duration")) { duration = _json["duration"]; } + if (_json.containsKey("errorCode")) { + errorCode = _json["errorCode"]; + } if (_json.containsKey("newPassword")) { newPassword = _json["newPassword"]; } @@ -1529,6 +1780,9 @@ if (_json.containsKey("type")) { type = _json["type"]; } + if (_json.containsKey("userName")) { + userName = _json["userName"]; + } } core.Map<core.String, core.Object> toJson() { @@ -1540,6 +1794,9 @@ if (duration != null) { _json["duration"] = duration; } + if (errorCode != null) { + _json["errorCode"] = errorCode; + } if (newPassword != null) { _json["newPassword"] = newPassword; } @@ -1549,6 +1806,9 @@ if (type != null) { _json["type"] = type; } + if (userName != null) { + _json["userName"] = userName; + } return _json; } } @@ -1613,6 +1873,10 @@ /// The API level of the Android platform version running on the device. core.int apiLevel; + /// Reports for apps installed on the device. This information is only + /// available when application_reports_enabled is true in the device's policy. + core.List<ApplicationReport> applicationReports; + /// The name of the policy currently applied to the device. core.String appliedPolicyName; @@ -1742,6 +2006,12 @@ if (_json.containsKey("apiLevel")) { apiLevel = _json["apiLevel"]; } + if (_json.containsKey("applicationReports")) { + applicationReports = (_json["applicationReports"] as core.List) + .map<ApplicationReport>( + (value) => new ApplicationReport.fromJson(value)) + .toList(); + } if (_json.containsKey("appliedPolicyName")) { appliedPolicyName = _json["appliedPolicyName"]; } @@ -1841,6 +2111,10 @@ if (apiLevel != null) { _json["apiLevel"] = apiLevel; } + if (applicationReports != null) { + _json["applicationReports"] = + applicationReports.map((value) => (value).toJson()).toList(); + } if (appliedPolicyName != null) { _json["appliedPolicyName"] = appliedPolicyName; } @@ -2220,9 +2494,7 @@ /// The configuration applied to an enterprise. class Enterprise { - /// Whether permissions for apps installed via policy are automatically - /// approved. If enabled, you must display an app's permissions to the - /// enterprise admin before setting the app to be installed in a policy. + /// Deprecated and unused. core.bool appAutoApprovalEnabled; /// The types of Google Pub/Sub notifications enabled for the enterprise. @@ -2251,6 +2523,10 @@ /// notifications are enabled. core.String pubsubTopic; + /// Terms and conditions that must be accepted when provisioning a device for + /// this enterprise. A page of terms is generated for each value in this list. + core.List<TermsAndConditions> termsAndConditions; + Enterprise(); Enterprise.fromJson(core.Map _json) { @@ -2276,6 +2552,12 @@ if (_json.containsKey("pubsubTopic")) { pubsubTopic = _json["pubsubTopic"]; } + if (_json.containsKey("termsAndConditions")) { + termsAndConditions = (_json["termsAndConditions"] as core.List) + .map<TermsAndConditions>( + (value) => new TermsAndConditions.fromJson(value)) + .toList(); + } } core.Map<core.String, core.Object> toJson() { @@ -2302,6 +2584,10 @@ if (pubsubTopic != null) { _json["pubsubTopic"] = pubsubTopic; } + if (termsAndConditions != null) { + _json["termsAndConditions"] = + termsAndConditions.map((value) => (value).toJson()).toList(); + } return _json; } } @@ -3029,8 +3315,8 @@ /// - "NON_COMPLIANCE_REASON_UNSPECIFIED" : This value is disallowed. /// - "API_LEVEL" : The setting is not supported in the API level of the /// Android version running on the device. - /// - "ADMIN_TYPE" : The admin type (profile owner, device owner, etc.) - /// doesn't support the setting. + /// - "MANAGEMENT_MODE" : The management mode (profile owner, device owner, + /// etc.) doesn't support the setting. /// - "USER_ACTION" : The user has not taken required action to comply with /// the setting. /// - "INVALID_VALUE" : The setting has an invalid value. @@ -3115,8 +3401,8 @@ /// - "NON_COMPLIANCE_REASON_UNSPECIFIED" : This value is disallowed. /// - "API_LEVEL" : The setting is not supported in the API level of the /// Android version running on the device. - /// - "ADMIN_TYPE" : The admin type (profile owner, device owner, etc.) - /// doesn't support the setting. + /// - "MANAGEMENT_MODE" : The management mode (profile owner, device owner, + /// etc.) doesn't support the setting. /// - "USER_ACTION" : The user has not taken required action to comply with /// the setting. /// - "INVALID_VALUE" : The setting has an invalid value. @@ -3529,6 +3815,17 @@ /// specified, then the device only uses the production track. core.List<core.String> androidDevicePolicyTracks; + /// The app auto update policy, which controls when automatic app updates can + /// be applied. + /// Possible string values are: + /// - "APP_AUTO_UPDATE_POLICY_UNSPECIFIED" : The auto-update policy is not + /// set. Equivalent to CHOICE_TO_THE_USER. + /// - "CHOICE_TO_THE_USER" : The user can control auto-updates. + /// - "NEVER" : Apps are never auto-updated. + /// - "WIFI_ONLY" : Apps are auto-updated over Wi-Fi only. + /// - "ALWAYS" : Apps are auto-updated at any time. Data charges may apply. + core.String appAutoUpdatePolicy; + /// Policy applied to apps. core.List<ApplicationPolicy> applications; @@ -3559,6 +3856,12 @@ /// Whether configuring cell broadcast is disabled. core.bool cellBroadcastsConfigDisabled; + /// Rules for automatically choosing a private key and certificate to + /// authenticate the device to a server. The rules are ordered by increasing + /// precedence, so if an outgoing request matches more than one rule, the last + /// rule defines which private key to use. + core.List<ChoosePrivateKeyRule> choosePrivateKeyRules; + /// Rules declaring which mitigating actions to take when a device is not /// compliant with its policy. When the conditions for multiple rules are /// satisfied, all of the mitigating actions for the rules are taken. There is @@ -3587,6 +3890,19 @@ /// - "DENY" : Automatically deny a permission. core.String defaultPermissionPolicy; + /// The device owner information to be shown on the lock screen. + UserFacingMessage deviceOwnerLockScreenInfo; + + /// Whether encryption is enabled + /// Possible string values are: + /// - "ENCRYPTION_POLICY_UNSPECIFIED" : This value is ignored, i.e. no + /// encryption required + /// - "ENABLED_WITHOUT_PASSWORD" : Encryption required but no password + /// required to boot + /// - "ENABLED_WITH_PASSWORD" : Encryption required with password required to + /// boot + core.String encryptionPolicy; + /// Whether app verification is force-enabled. core.bool ensureVerifyAppsEnabled; @@ -3624,6 +3940,17 @@ /// block access to device settings. core.bool kioskCustomLauncherEnabled; + /// The degree of location detection enabled. The user may change the value + /// unless the user is otherwise blocked from accessing device settings. + /// Possible string values are: + /// - "LOCATION_MODE_UNSPECIFIED" : The current device value is not modified. + /// - "HIGH_ACCURACY" : All location detection methods are enabled, including + /// GPS, networks, and other sensors. + /// - "SENSORS_ONLY" : Only GPS and other sensors are enabled. + /// - "BATTERY_SAVING" : Only the network location provider is enabled. + /// - "OFF" : Location detection is disabled. + core.String locationMode; + /// A message displayed to the user in the device administators settings /// screen. UserFacingMessage longSupportMessage; @@ -3682,6 +4009,11 @@ /// Default intent handler activities. core.List<PersistentPreferredActivity> persistentPreferredActivities; + /// Allows showing UI on a device for a user to choose a private key alias if + /// there are no matching rules in ChoosePrivateKeyRules. For devices below + /// Android P, setting this may leave enterprise keys vulnerable. + core.bool privateKeySelectionEnabled; + /// The network-independent global HTTP proxy. Typically proxies should be /// configured per-network in open_network_configuration. However for unusual /// configurations like general internal filtering a global HTTP proxy may be @@ -3704,10 +4036,18 @@ /// Whether changing the wallpaper is disabled. core.bool setWallpaperDisabled; + /// Whether location sharing is disabled. + core.bool shareLocationDisabled; + /// A message displayed to the user in the settings screen wherever /// functionality has been disabled by the admin. UserFacingMessage shortSupportMessage; + /// Flag to skip hints on the first use. Enterprise admin can enable the + /// system recommendation for apps to skip their user tutorial and other + /// introductory hints on first start-up. + core.bool skipFirstUseHintsEnabled; + /// Whether sending and receiving SMS messages is disabled. core.bool smsDisabled; @@ -3742,6 +4082,9 @@ /// Whether transferring files over USB is disabled. core.bool usbFileTransferDisabled; + /// Whether USB storage is enabled. + core.bool usbMassStorageEnabled; + /// The version of the policy. This is a read-only field. The version is /// incremented each time the policy is updated. core.String version; @@ -3778,6 +4121,9 @@ androidDevicePolicyTracks = (_json["androidDevicePolicyTracks"] as core.List).cast<core.String>(); } + if (_json.containsKey("appAutoUpdatePolicy")) { + appAutoUpdatePolicy = _json["appAutoUpdatePolicy"]; + } if (_json.containsKey("applications")) { applications = (_json["applications"] as core.List) .map<ApplicationPolicy>( @@ -3806,6 +4152,12 @@ if (_json.containsKey("cellBroadcastsConfigDisabled")) { cellBroadcastsConfigDisabled = _json["cellBroadcastsConfigDisabled"]; } + if (_json.containsKey("choosePrivateKeyRules")) { + choosePrivateKeyRules = (_json["choosePrivateKeyRules"] as core.List) + .map<ChoosePrivateKeyRule>( + (value) => new ChoosePrivateKeyRule.fromJson(value)) + .toList(); + } if (_json.containsKey("complianceRules")) { complianceRules = (_json["complianceRules"] as core.List) .map<ComplianceRule>((value) => new ComplianceRule.fromJson(value)) @@ -3826,6 +4178,13 @@ if (_json.containsKey("defaultPermissionPolicy")) { defaultPermissionPolicy = _json["defaultPermissionPolicy"]; } + if (_json.containsKey("deviceOwnerLockScreenInfo")) { + deviceOwnerLockScreenInfo = + new UserFacingMessage.fromJson(_json["deviceOwnerLockScreenInfo"]); + } + if (_json.containsKey("encryptionPolicy")) { + encryptionPolicy = _json["encryptionPolicy"]; + } if (_json.containsKey("ensureVerifyAppsEnabled")) { ensureVerifyAppsEnabled = _json["ensureVerifyAppsEnabled"]; } @@ -3855,6 +4214,9 @@ if (_json.containsKey("kioskCustomLauncherEnabled")) { kioskCustomLauncherEnabled = _json["kioskCustomLauncherEnabled"]; } + if (_json.containsKey("locationMode")) { + locationMode = _json["locationMode"]; + } if (_json.containsKey("longSupportMessage")) { longSupportMessage = new UserFacingMessage.fromJson(_json["longSupportMessage"]); @@ -3905,6 +4267,9 @@ (value) => new PersistentPreferredActivity.fromJson(value)) .toList(); } + if (_json.containsKey("privateKeySelectionEnabled")) { + privateKeySelectionEnabled = _json["privateKeySelectionEnabled"]; + } if (_json.containsKey("recommendedGlobalProxy")) { recommendedGlobalProxy = new ProxyInfo.fromJson(_json["recommendedGlobalProxy"]); @@ -3924,10 +4289,16 @@ if (_json.containsKey("setWallpaperDisabled")) { setWallpaperDisabled = _json["setWallpaperDisabled"]; } + if (_json.containsKey("shareLocationDisabled")) { + shareLocationDisabled = _json["shareLocationDisabled"]; + } if (_json.containsKey("shortSupportMessage")) { shortSupportMessage = new UserFacingMessage.fromJson(_json["shortSupportMessage"]); } + if (_json.containsKey("skipFirstUseHintsEnabled")) { + skipFirstUseHintsEnabled = _json["skipFirstUseHintsEnabled"]; + } if (_json.containsKey("smsDisabled")) { smsDisabled = _json["smsDisabled"]; } @@ -3957,6 +4328,9 @@ if (_json.containsKey("usbFileTransferDisabled")) { usbFileTransferDisabled = _json["usbFileTransferDisabled"]; } + if (_json.containsKey("usbMassStorageEnabled")) { + usbMassStorageEnabled = _json["usbMassStorageEnabled"]; + } if (_json.containsKey("version")) { version = _json["version"]; } @@ -3990,6 +4364,9 @@ if (androidDevicePolicyTracks != null) { _json["androidDevicePolicyTracks"] = androidDevicePolicyTracks; } + if (appAutoUpdatePolicy != null) { + _json["appAutoUpdatePolicy"] = appAutoUpdatePolicy; + } if (applications != null) { _json["applications"] = applications.map((value) => (value).toJson()).toList(); @@ -4016,6 +4393,10 @@ if (cellBroadcastsConfigDisabled != null) { _json["cellBroadcastsConfigDisabled"] = cellBroadcastsConfigDisabled; } + if (choosePrivateKeyRules != null) { + _json["choosePrivateKeyRules"] = + choosePrivateKeyRules.map((value) => (value).toJson()).toList(); + } if (complianceRules != null) { _json["complianceRules"] = complianceRules.map((value) => (value).toJson()).toList(); @@ -4035,6 +4416,12 @@ if (defaultPermissionPolicy != null) { _json["defaultPermissionPolicy"] = defaultPermissionPolicy; } + if (deviceOwnerLockScreenInfo != null) { + _json["deviceOwnerLockScreenInfo"] = (deviceOwnerLockScreenInfo).toJson(); + } + if (encryptionPolicy != null) { + _json["encryptionPolicy"] = encryptionPolicy; + } if (ensureVerifyAppsEnabled != null) { _json["ensureVerifyAppsEnabled"] = ensureVerifyAppsEnabled; } @@ -4062,6 +4449,9 @@ if (kioskCustomLauncherEnabled != null) { _json["kioskCustomLauncherEnabled"] = kioskCustomLauncherEnabled; } + if (locationMode != null) { + _json["locationMode"] = locationMode; + } if (longSupportMessage != null) { _json["longSupportMessage"] = (longSupportMessage).toJson(); } @@ -4106,6 +4496,9 @@ .map((value) => (value).toJson()) .toList(); } + if (privateKeySelectionEnabled != null) { + _json["privateKeySelectionEnabled"] = privateKeySelectionEnabled; + } if (recommendedGlobalProxy != null) { _json["recommendedGlobalProxy"] = (recommendedGlobalProxy).toJson(); } @@ -4124,9 +4517,15 @@ if (setWallpaperDisabled != null) { _json["setWallpaperDisabled"] = setWallpaperDisabled; } + if (shareLocationDisabled != null) { + _json["shareLocationDisabled"] = shareLocationDisabled; + } if (shortSupportMessage != null) { _json["shortSupportMessage"] = (shortSupportMessage).toJson(); } + if (skipFirstUseHintsEnabled != null) { + _json["skipFirstUseHintsEnabled"] = skipFirstUseHintsEnabled; + } if (smsDisabled != null) { _json["smsDisabled"] = smsDisabled; } @@ -4154,6 +4553,9 @@ if (usbFileTransferDisabled != null) { _json["usbFileTransferDisabled"] = usbFileTransferDisabled; } + if (usbMassStorageEnabled != null) { + _json["usbMassStorageEnabled"] = usbMassStorageEnabled; + } if (version != null) { _json["version"] = version; } @@ -4493,6 +4895,9 @@ /// Settings controlling the behavior of status reports. class StatusReportingSettings { + /// Whether app reports are enabled. + core.bool applicationReportsEnabled; + /// Whether device settings reporting is enabled. core.bool deviceSettingsEnabled; @@ -4517,6 +4922,9 @@ StatusReportingSettings(); StatusReportingSettings.fromJson(core.Map _json) { + if (_json.containsKey("applicationReportsEnabled")) { + applicationReportsEnabled = _json["applicationReportsEnabled"]; + } if (_json.containsKey("deviceSettingsEnabled")) { deviceSettingsEnabled = _json["deviceSettingsEnabled"]; } @@ -4543,6 +4951,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (applicationReportsEnabled != null) { + _json["applicationReportsEnabled"] = applicationReportsEnabled; + } if (deviceSettingsEnabled != null) { _json["deviceSettingsEnabled"] = deviceSettingsEnabled; } @@ -4626,6 +5037,39 @@ } } +/// A terms and conditions page to be accepted during provisioning. +class TermsAndConditions { + /// A well-formatted HTML string. It will be parsed on the client with + /// android.text.Html#fromHtml. + UserFacingMessage content; + + /// A short header which appears above the HTML content. + UserFacingMessage header; + + TermsAndConditions(); + + TermsAndConditions.fromJson(core.Map _json) { + if (_json.containsKey("content")) { + content = new UserFacingMessage.fromJson(_json["content"]); + } + if (_json.containsKey("header")) { + header = new UserFacingMessage.fromJson(_json["header"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (content != null) { + _json["content"] = (content).toJson(); + } + if (header != null) { + _json["header"] = (header).toJson(); + } + return _json; + } +} + /// Provides a user-facing message with locale info. The maximum message length /// is 4096 characters. class UserFacingMessage {
diff --git a/generated/googleapis/lib/androidpublisher/v2.dart b/generated/googleapis/lib/androidpublisher/v2.dart index 4b509e4..41999ff 100644 --- a/generated/googleapis/lib/androidpublisher/v2.dart +++ b/generated/googleapis/lib/androidpublisher/v2.dart
@@ -33,10 +33,9 @@ final commons.ApiRequester _requester; EditsResourceApi get edits => new EditsResourceApi(_requester); - EntitlementsResourceApi get entitlements => - new EntitlementsResourceApi(_requester); InappproductsResourceApi get inappproducts => new InappproductsResourceApi(_requester); + OrdersResourceApi get orders => new OrdersResourceApi(_requester); PurchasesResourceApi get purchases => new PurchasesResourceApi(_requester); ReviewsResourceApi get reviews => new ReviewsResourceApi(_requester); @@ -53,6 +52,8 @@ EditsApklistingsResourceApi get apklistings => new EditsApklistingsResourceApi(_requester); EditsApksResourceApi get apks => new EditsApksResourceApi(_requester); + EditsBundlesResourceApi get bundles => + new EditsBundlesResourceApi(_requester); EditsDeobfuscationfilesResourceApi get deobfuscationfiles => new EditsDeobfuscationfilesResourceApi(_requester); EditsDetailsResourceApi get details => @@ -943,6 +944,138 @@ } } +class EditsBundlesResourceApi { + final commons.ApiRequester _requester; + + EditsBundlesResourceApi(commons.ApiRequester client) : _requester = client; + + /// Request parameters: + /// + /// [packageName] - Unique identifier for the Android app that is being + /// updated; for example, "com.spiffygame". + /// + /// [editId] - Unique identifier for this edit. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [BundlesListResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<BundlesListResponse> list( + core.String packageName, core.String editId, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$packageName') + + '/edits/' + + commons.Escaper.ecapeVariable('$editId') + + '/bundles'; + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new BundlesListResponse.fromJson(data)); + } + + /// Request parameters: + /// + /// [packageName] - Unique identifier for the Android app that is being + /// updated; for example, "com.spiffygame". + /// + /// [editId] - Unique identifier for this edit. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// [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 [Bundle]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<Bundle> upload(core.String packageName, core.String editId, + {core.String $fields, + commons.UploadOptions uploadOptions: commons.UploadOptions.Default, + commons.Media uploadMedia}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _uploadMedia = uploadMedia; + _uploadOptions = uploadOptions; + + if (_uploadMedia == null) { + _url = commons.Escaper.ecapeVariable('$packageName') + + '/edits/' + + commons.Escaper.ecapeVariable('$editId') + + '/bundles'; + } else if (_uploadOptions is commons.ResumableUploadOptions) { + _url = '/resumable/upload/androidpublisher/v2/applications/' + + commons.Escaper.ecapeVariable('$packageName') + + '/edits/' + + commons.Escaper.ecapeVariable('$editId') + + '/bundles'; + } else { + _url = '/upload/androidpublisher/v2/applications/' + + commons.Escaper.ecapeVariable('$packageName') + + '/edits/' + + commons.Escaper.ecapeVariable('$editId') + + '/bundles'; + } + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Bundle.fromJson(data)); + } +} + class EditsDeobfuscationfilesResourceApi { final commons.ApiRequester _requester; @@ -2311,8 +2444,8 @@ /// [editId] - Unique identifier for this edit. /// /// [track] - The track to read or modify. Acceptable values are: "alpha", - /// "beta", "production" or "rollout". - /// Value must have pattern "(alpha|beta|production|rollout)". + /// "beta", "production", "rollout" or "internal". + /// Value must have pattern "(alpha|beta|production|rollout|internal)". /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -2372,8 +2505,8 @@ /// [editId] - Unique identifier for this edit. /// /// [track] - The track to read or modify. Acceptable values are: "alpha", - /// "beta", "production" or "rollout". - /// Value must have pattern "(alpha|beta|production|rollout)". + /// "beta", "production", "rollout" or "internal". + /// Value must have pattern "(alpha|beta|production|rollout|internal)". /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -2436,8 +2569,8 @@ /// [editId] - Unique identifier for this edit. /// /// [track] - The track to read or modify. Acceptable values are: "alpha", - /// "beta", "production" or "rollout". - /// Value must have pattern "(alpha|beta|production|rollout)". + /// "beta", "production", "rollout" or "internal". + /// Value must have pattern "(alpha|beta|production|rollout|internal)". /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -2506,9 +2639,7 @@ /// /// [editId] - Unique identifier for this edit. /// - /// [track] - The track to read or modify. Acceptable values are: "alpha", - /// "beta", "production" or "rollout". - /// Value must have pattern "(alpha|beta|production|rollout)". + /// [track] - The track to read or modify. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -2624,9 +2755,7 @@ /// /// [editId] - Unique identifier for this edit. /// - /// [track] - The track to read or modify. Acceptable values are: "alpha", - /// "beta", "production" or "rollout". - /// Value must have pattern "(alpha|beta|production|rollout)". + /// [track] - The track to read or modify. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -2692,9 +2821,7 @@ /// /// [editId] - Unique identifier for this edit. /// - /// [track] - The track to read or modify. Acceptable values are: "alpha", - /// "beta", "production" or "rollout". - /// Value must have pattern "(alpha|beta|production|rollout)". + /// [track] - The track to read or modify. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -2748,82 +2875,6 @@ } } -class EntitlementsResourceApi { - final commons.ApiRequester _requester; - - EntitlementsResourceApi(commons.ApiRequester client) : _requester = client; - - /// Lists the user's current inapp item or subscription entitlements - /// - /// Request parameters: - /// - /// [packageName] - The package name of the application the inapp product was - /// sold in (for example, 'com.some.thing'). - /// - /// [maxResults] - null - /// - /// [productId] - The product id of the inapp product (for example, 'sku1'). - /// This can be used to restrict the result set. - /// - /// [startIndex] - null - /// - /// [token] - null - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [EntitlementsListResponse]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future<EntitlementsListResponse> list(core.String packageName, - {core.int maxResults, - core.String productId, - core.int startIndex, - core.String token, - core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - 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 (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (productId != null) { - _queryParams["productId"] = [productId]; - } - if (startIndex != null) { - _queryParams["startIndex"] = ["${startIndex}"]; - } - if (token != null) { - _queryParams["token"] = [token]; - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _url = commons.Escaper.ecapeVariable('$packageName') + '/entitlements'; - - var _response = _requester.request(_url, "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response - .then((data) => new EntitlementsListResponse.fromJson(data)); - } -} - class InappproductsResourceApi { final commons.ApiRequester _requester; @@ -3190,6 +3241,74 @@ } } +class OrdersResourceApi { + final commons.ApiRequester _requester; + + OrdersResourceApi(commons.ApiRequester client) : _requester = client; + + /// Refund a user's subscription or in-app purchase order. + /// + /// Request parameters: + /// + /// [packageName] - The package name of the application for which this + /// subscription or in-app item was purchased (for example, 'com.some.thing'). + /// + /// [orderId] - The order ID provided to the user when the subscription or + /// in-app order was purchased. + /// + /// [revoke] - Whether to revoke the purchased item. If set to true, access to + /// the subscription or in-app item will be terminated immediately. If the + /// item is a recurring subscription, all future payments will also be + /// terminated. Consumed in-app items need to be handled by developer's app. + /// (optional) + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future refund(core.String packageName, core.String orderId, + {core.bool revoke, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (orderId == null) { + throw new core.ArgumentError("Parameter orderId is required."); + } + if (revoke != null) { + _queryParams["revoke"] = ["${revoke}"]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _downloadOptions = null; + + _url = commons.Escaper.ecapeVariable('$packageName') + + '/orders/' + + commons.Escaper.ecapeVariable('$orderId') + + ':refund'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => null); + } +} + class PurchasesResourceApi { final commons.ApiRequester _requester; @@ -4174,6 +4293,82 @@ } } +class Bundle { + /// A sha1 hash of the upload payload, encoded as a hex string and matching + /// the output of the sha1sum command. + core.String sha1; + + /// A sha256 hash of the upload payload, encoded as a hex string and matching + /// the output of the sha256sum command. + core.String sha256; + + /// The version code of the Android App Bundle. As specified in the Android + /// App Bundle's base module APK manifest file. + core.int versionCode; + + Bundle(); + + Bundle.fromJson(core.Map _json) { + if (_json.containsKey("sha1")) { + sha1 = _json["sha1"]; + } + if (_json.containsKey("sha256")) { + sha256 = _json["sha256"]; + } + if (_json.containsKey("versionCode")) { + versionCode = _json["versionCode"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (sha1 != null) { + _json["sha1"] = sha1; + } + if (sha256 != null) { + _json["sha256"] = sha256; + } + if (versionCode != null) { + _json["versionCode"] = versionCode; + } + return _json; + } +} + +class BundlesListResponse { + core.List<Bundle> bundles; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "androidpublisher#bundlesListResponse". + core.String kind; + + BundlesListResponse(); + + BundlesListResponse.fromJson(core.Map _json) { + if (_json.containsKey("bundles")) { + bundles = (_json["bundles"] as core.List) + .map<Bundle>((value) => new Bundle.fromJson(value)) + .toList(); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (bundles != null) { + _json["bundles"] = bundles.map((value) => (value).toJson()).toList(); + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + class Comment { /// A comment from a developer. DeveloperComment developerComment; @@ -4394,97 +4589,6 @@ } } -/// An Entitlement resource indicates a user's current entitlement to an inapp -/// item or subscription. -class Entitlement { - /// This kind represents an entitlement object in the androidpublisher - /// service. - core.String kind; - - /// The SKU of the product. - core.String productId; - - /// The type of the inapp product. Possible values are: - /// - In-app item: "inapp" - /// - Subscription: "subs" - core.String productType; - - /// The token which can be verified using the subscriptions or products API. - core.String token; - - Entitlement(); - - Entitlement.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("productId")) { - productId = _json["productId"]; - } - if (_json.containsKey("productType")) { - productType = _json["productType"]; - } - if (_json.containsKey("token")) { - token = _json["token"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (kind != null) { - _json["kind"] = kind; - } - if (productId != null) { - _json["productId"] = productId; - } - if (productType != null) { - _json["productType"] = productType; - } - if (token != null) { - _json["token"] = token; - } - return _json; - } -} - -class EntitlementsListResponse { - PageInfo pageInfo; - core.List<Entitlement> resources; - TokenPagination tokenPagination; - - EntitlementsListResponse(); - - EntitlementsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("pageInfo")) { - pageInfo = new PageInfo.fromJson(_json["pageInfo"]); - } - if (_json.containsKey("resources")) { - resources = (_json["resources"] as core.List) - .map<Entitlement>((value) => new Entitlement.fromJson(value)) - .toList(); - } - if (_json.containsKey("tokenPagination")) { - tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (pageInfo != null) { - _json["pageInfo"] = (pageInfo).toJson(); - } - if (resources != null) { - _json["resources"] = resources.map((value) => (value).toJson()).toList(); - } - if (tokenPagination != null) { - _json["tokenPagination"] = (tokenPagination).toJson(); - } - return _json; - } -} - class ExpansionFile { /// If set this field indicates that this APK has an Expansion File uploaded /// to it: this APK does not reference another APK's Expansion File. The @@ -5552,6 +5656,45 @@ } } +/// Information provided by the user when they complete the subscription +/// cancellation flow (cancellation reason survey). +class SubscriptionCancelSurveyResult { + /// The cancellation reason the user chose in the survey. Possible values are: + /// - Other + /// - I don't use this service enough + /// - Technical issues + /// - Cost-related reasons + /// - I found a better app + core.int cancelSurveyReason; + + /// The customized input cancel reason from the user. Only present when + /// cancelReason is 0. + core.String userInputCancelReason; + + SubscriptionCancelSurveyResult(); + + SubscriptionCancelSurveyResult.fromJson(core.Map _json) { + if (_json.containsKey("cancelSurveyReason")) { + cancelSurveyReason = _json["cancelSurveyReason"]; + } + if (_json.containsKey("userInputCancelReason")) { + userInputCancelReason = _json["userInputCancelReason"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (cancelSurveyReason != null) { + _json["cancelSurveyReason"] = cancelSurveyReason; + } + if (userInputCancelReason != null) { + _json["userInputCancelReason"] = userInputCancelReason; + } + return _json; + } +} + /// A SubscriptionDeferralInfo contains the data needed to defer a subscription /// purchase to a future expiry time. class SubscriptionDeferralInfo { @@ -5605,6 +5748,10 @@ /// - Subscription was canceled by the developer core.int cancelReason; + /// Information provided by the user when they complete the subscription + /// cancellation flow (cancellation reason survey). + SubscriptionCancelSurveyResult cancelSurveyResult; + /// ISO 3166-1 alpha-2 billing country/region code of the user at the time the /// subscription was granted. core.String countryCode; @@ -5613,10 +5760,22 @@ /// an order. core.String developerPayload; + /// The email address of the user when the subscription was purchased. Only + /// present for purchases made with 'Subscribe with Google'. + core.String emailAddress; + /// Time at which the subscription will expire, in milliseconds since the /// Epoch. core.String expiryTimeMillis; + /// The family name of the user when the subscription was purchased. Only + /// present for purchases made with 'Subscribe with Google'. + core.String familyName; + + /// The given name of the user when the subscription was purchased. Only + /// present for purchases made with 'Subscribe with Google'. + core.String givenName; + /// This kind represents a subscriptionPurchase object in the androidpublisher /// service. core.String kind; @@ -5655,6 +5814,14 @@ /// "GBP". core.String priceCurrencyCode; + /// The profile id of the user when the subscription was purchased. Only + /// present for purchases made with 'Subscribe with Google'. + core.String profileId; + + /// The profile name of the user when the subscription was purchased. Only + /// present for purchases made with 'Subscribe with Google'. + core.String profileName; + /// The type of purchase of the subscription. This field is only set if this /// purchase was not made using the standard in-app billing flow. Possible /// values are: @@ -5678,15 +5845,28 @@ if (_json.containsKey("cancelReason")) { cancelReason = _json["cancelReason"]; } + if (_json.containsKey("cancelSurveyResult")) { + cancelSurveyResult = new SubscriptionCancelSurveyResult.fromJson( + _json["cancelSurveyResult"]); + } if (_json.containsKey("countryCode")) { countryCode = _json["countryCode"]; } if (_json.containsKey("developerPayload")) { developerPayload = _json["developerPayload"]; } + if (_json.containsKey("emailAddress")) { + emailAddress = _json["emailAddress"]; + } if (_json.containsKey("expiryTimeMillis")) { expiryTimeMillis = _json["expiryTimeMillis"]; } + if (_json.containsKey("familyName")) { + familyName = _json["familyName"]; + } + if (_json.containsKey("givenName")) { + givenName = _json["givenName"]; + } if (_json.containsKey("kind")) { kind = _json["kind"]; } @@ -5705,6 +5885,12 @@ if (_json.containsKey("priceCurrencyCode")) { priceCurrencyCode = _json["priceCurrencyCode"]; } + if (_json.containsKey("profileId")) { + profileId = _json["profileId"]; + } + if (_json.containsKey("profileName")) { + profileName = _json["profileName"]; + } if (_json.containsKey("purchaseType")) { purchaseType = _json["purchaseType"]; } @@ -5725,15 +5911,27 @@ if (cancelReason != null) { _json["cancelReason"] = cancelReason; } + if (cancelSurveyResult != null) { + _json["cancelSurveyResult"] = (cancelSurveyResult).toJson(); + } if (countryCode != null) { _json["countryCode"] = countryCode; } if (developerPayload != null) { _json["developerPayload"] = developerPayload; } + if (emailAddress != null) { + _json["emailAddress"] = emailAddress; + } if (expiryTimeMillis != null) { _json["expiryTimeMillis"] = expiryTimeMillis; } + if (familyName != null) { + _json["familyName"] = familyName; + } + if (givenName != null) { + _json["givenName"] = givenName; + } if (kind != null) { _json["kind"] = kind; } @@ -5752,6 +5950,12 @@ if (priceCurrencyCode != null) { _json["priceCurrencyCode"] = priceCurrencyCode; } + if (profileId != null) { + _json["profileId"] = profileId; + } + if (profileName != null) { + _json["profileName"] = profileName; + } if (purchaseType != null) { _json["purchaseType"] = purchaseType; } @@ -5896,10 +6100,13 @@ } class Track { - /// Identifier for this track. One of "alpha", "beta", "production" or - /// "rollout". + /// Identifier for this track. core.String track; core.double userFraction; + + /// Version codes to make active on this track. Note that this list should + /// contain all versions you wish to be active, including those you wish to + /// retain from previous releases. core.List<core.int> versionCodes; Track();
diff --git a/generated/googleapis/lib/appengine/v1.dart b/generated/googleapis/lib/appengine/v1.dart index 82a76fe..b88cd3b 100644 --- a/generated/googleapis/lib/appengine/v1.dart +++ b/generated/googleapis/lib/appengine/v1.dart
@@ -1310,7 +1310,7 @@ AppsLocationsResourceApi(commons.ApiRequester client) : _requester = client; - /// Get information about a location. + /// Gets information about a location. /// /// Request parameters: /// @@ -2006,15 +2006,15 @@ /// /// [servicesId] - Part of `parent`. See documentation of `appsId`. /// + /// [pageToken] - Continuation token for fetching the next page of results. + /// + /// [pageSize] - Maximum results to return per page. + /// /// [view] - Controls the set of fields returned in the List response. /// Possible string values are: /// - "BASIC" : A BASIC. /// - "FULL" : A FULL. /// - /// [pageToken] - Continuation token for fetching the next page of results. - /// - /// [pageSize] - Maximum results to return per page. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -2027,9 +2027,9 @@ /// this method will complete with the same error. async.Future<ListVersionsResponse> list( core.String appsId, core.String servicesId, - {core.String view, - core.String pageToken, + {core.String pageToken, core.int pageSize, + core.String view, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -2044,15 +2044,15 @@ if (servicesId == null) { throw new core.ArgumentError("Parameter servicesId is required."); } - if (view != null) { - _queryParams["view"] = [view]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (view != null) { + _queryParams["view"] = [view]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -2074,38 +2074,37 @@ /// Updates the specified Version resource. You can specify the following /// fields depending on the App Engine environment and type of scaling that - /// the version resource uses: - /// serving_status - /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status): - /// For Version resources that use basic scaling, manual scaling, or run in - /// the App Engine flexible environment. + /// the version resource uses:Standard environment /// instance_class - /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.instance_class): - /// For Version resources that run in the App Engine standard environment. + /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.instance_class)automatic + /// scaling in the standard environment: /// automatic_scaling.min_idle_instances - /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): - /// For Version resources that use automatic scaling and run in the App - /// Engine standard environment. + /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) /// automatic_scaling.max_idle_instances - /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): - /// For Version resources that use automatic scaling and run in the App - /// Engine standard environment. + /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) + /// automaticScaling.standard_scheduler_settings.max_instances + /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) + /// automaticScaling.standard_scheduler_settings.min_instances + /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) + /// automaticScaling.standard_scheduler_settings.target_cpu_utilization + /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) + /// automaticScaling.standard_scheduler_settings.target_throughput_utilization + /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)basic + /// scaling or manual scaling in the standard environment: + /// serving_status + /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status)Flexible + /// environment + /// serving_status + /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status)automatic + /// scaling in the flexible environment: /// automatic_scaling.min_total_instances - /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): - /// For Version resources that use automatic scaling and run in the App - /// Engine flexible environment. + /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) /// automatic_scaling.max_total_instances - /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): - /// For Version resources that use automatic scaling and run in the App - /// Engine flexible environment. + /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) /// automatic_scaling.cool_down_period_sec - /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): - /// For Version resources that use automatic scaling and run in the App - /// Engine flexible environment. + /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) /// automatic_scaling.cpu_utilization.target_utilization - /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): - /// For Version resources that use automatic scaling and run in the App - /// Engine flexible environment. + /// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) /// /// [request] - The metadata request object. /// @@ -2630,7 +2629,7 @@ /// Location from which this application runs. Application instances run out /// of the data centers in the specified location, which is also where all of - /// the application's end user content is stored.Defaults to us-central1.View + /// the application's end user content is stored.Defaults to us-central.View /// the list of supported locations /// (https://cloud.google.com/appengine/docs/locations). core.String locationId; @@ -2771,6 +2770,12 @@ /// AuthorizedCertificate resource creation. Example: 12345.@OutputOnly core.String id; + /// Only applicable if this certificate is managed by App Engine. Managed + /// certificates are tied to the lifecycle of a DomainMapping and cannot be + /// updated or deleted via the AuthorizedCertificates API. If this certificate + /// is manually administered by the user, this field will be empty.@OutputOnly + ManagedCertificate managedCertificate; + /// Full path to the AuthorizedCertificate resource in the API. Example: /// apps/myapp/authorizedCertificates/12345.@OutputOnly core.String name; @@ -2806,6 +2811,10 @@ if (_json.containsKey("id")) { id = _json["id"]; } + if (_json.containsKey("managedCertificate")) { + managedCertificate = + new ManagedCertificate.fromJson(_json["managedCertificate"]); + } if (_json.containsKey("name")) { name = _json["name"]; } @@ -2836,6 +2845,9 @@ if (id != null) { _json["id"] = id; } + if (managedCertificate != null) { + _json["managedCertificate"] = (managedCertificate).toJson(); + } if (name != null) { _json["name"] = name; } @@ -3155,6 +3167,44 @@ } } +/// Options for the build operations performed as a part of the version +/// deployment. Only applicable for App Engine flexible environment when +/// creating a version using source code directly. +class CloudBuildOptions { + /// Path to the yaml file used in deployment, used to determine runtime + /// configuration details.Required for flexible environment builds.See + /// https://cloud.google.com/appengine/docs/standard/python/config/appref for + /// more details. + core.String appYamlPath; + + /// The Cloud Build timeout used as part of any dependent builds performed by + /// version creation. Defaults to 10 minutes. + core.String cloudBuildTimeout; + + CloudBuildOptions(); + + CloudBuildOptions.fromJson(core.Map _json) { + if (_json.containsKey("appYamlPath")) { + appYamlPath = _json["appYamlPath"]; + } + if (_json.containsKey("cloudBuildTimeout")) { + cloudBuildTimeout = _json["cloudBuildTimeout"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (appYamlPath != null) { + _json["appYamlPath"] = appYamlPath; + } + if (cloudBuildTimeout != null) { + _json["cloudBuildTimeout"] = cloudBuildTimeout; + } + return _json; + } +} + /// Docker image that is used to create a container and start a VM instance for /// the version that you deploy. Only applicable for instances running in the /// App Engine flexible environment. @@ -3216,6 +3266,31 @@ } /// Metadata for the given google.longrunning.Operation during a +/// google.appengine.v1.CreateVersionRequest. +class CreateVersionMetadataV1 { + /// The Cloud Build ID if one was created as part of the version create. + /// @OutputOnly + core.String cloudBuildId; + + CreateVersionMetadataV1(); + + CreateVersionMetadataV1.fromJson(core.Map _json) { + if (_json.containsKey("cloudBuildId")) { + cloudBuildId = _json["cloudBuildId"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (cloudBuildId != null) { + _json["cloudBuildId"] = cloudBuildId; + } + return _json; + } +} + +/// Metadata for the given google.longrunning.Operation during a /// google.appengine.v1alpha.CreateVersionRequest. class CreateVersionMetadataV1Alpha { /// The Cloud Build ID if one was created as part of the version create. @@ -3295,6 +3370,13 @@ /// Code and application artifacts used to deploy a version to App Engine. class Deployment { + /// Options for any Google Cloud Container Builder builds created as a part of + /// this deployment.Note that this is orthogonal to the build parameter, where + /// the deployment depends on an already existing cloud build. These options + /// will only be used if a new build is created, such as when deploying to the + /// App Engine flexible environment using files or zip. + CloudBuildOptions cloudBuildOptions; + /// The Docker image for the container that runs the version. Only applicable /// for instances running in the App Engine flexible environment. ContainerInfo container; @@ -3310,6 +3392,10 @@ Deployment(); Deployment.fromJson(core.Map _json) { + if (_json.containsKey("cloudBuildOptions")) { + cloudBuildOptions = + new CloudBuildOptions.fromJson(_json["cloudBuildOptions"]); + } if (_json.containsKey("container")) { container = new ContainerInfo.fromJson(_json["container"]); } @@ -3326,6 +3412,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (cloudBuildOptions != null) { + _json["cloudBuildOptions"] = (cloudBuildOptions).toJson(); + } if (container != null) { _json["container"] = (container).toJson(); } @@ -3470,12 +3559,20 @@ /// Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The /// Endpoints API Service provides tooling for serving Open API and gRPC -/// endpoints via an NGINX proxy.The fields here refer to the name and -/// configuration id of a "service" resource in the Service Management API +/// endpoints via an NGINX proxy. Only valid for App Engine Flexible environment +/// deployments.The fields here refer to the name and configuration ID of a +/// "service" resource in the Service Management API /// (https://cloud.google.com/service-management/overview). class EndpointsApiService { - /// Endpoints service configuration id as specified by the Service Management - /// API. For example "2016-09-19r1" + /// Endpoints service configuration ID as specified by the Service Management + /// API. For example "2016-09-19r1".By default, the rollout strategy for + /// Endpoints is RolloutStrategy.FIXED. This means that Endpoints starts up + /// with a particular configuration ID. When a new configuration is rolled + /// out, Endpoints must be given the new configuration ID. The config_id field + /// is used to give the configuration ID and is required in this + /// case.Endpoints also has a rollout strategy called RolloutStrategy.MANAGED. + /// When using this, Endpoints fetches the latest configuration and does not + /// need the configuration ID. In this case, config_id must be omitted. core.String configId; /// Endpoints service name which is the name of the "service" resource in the @@ -4429,6 +4526,10 @@ /// A resource that represents Google Cloud Platform location. class Location { + /// The friendly name for this location, typically a nearby city name. For + /// example, "Tokyo". + core.String displayName; + /// Cross-service attributes for the location. For example /// {"cloud.googleapis.com/region": "us-east1"} core.Map<core.String, core.String> labels; @@ -4450,6 +4551,9 @@ Location(); Location.fromJson(core.Map _json) { + if (_json.containsKey("displayName")) { + displayName = _json["displayName"]; + } if (_json.containsKey("labels")) { labels = (_json["labels"] as core.Map).cast<core.String, core.String>(); } @@ -4468,6 +4572,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (displayName != null) { + _json["displayName"] = displayName; + } if (labels != null) { _json["labels"] = labels; } @@ -4518,6 +4625,63 @@ } } +/// A certificate managed by App Engine. +class ManagedCertificate { + /// Time at which the certificate was last renewed. The renewal process is + /// fully managed. Certificate renewal will automatically occur before the + /// certificate expires. Renewal errors can be tracked via + /// ManagementStatus.@OutputOnly + core.String lastRenewalTime; + + /// Status of certificate management. Refers to the most recent certificate + /// acquisition or renewal attempt.@OutputOnly + /// Possible string values are: + /// - "MANAGEMENT_STATUS_UNSPECIFIED" + /// - "OK" : Certificate was successfully obtained and inserted into the + /// serving system. + /// - "PENDING" : Certificate is under active attempts to acquire or renew. + /// - "FAILED_RETRYING_NOT_VISIBLE" : Most recent renewal failed due to an + /// invalid DNS setup and will be retried. Renewal attempts will continue to + /// fail until the certificate domain's DNS configuration is fixed. The last + /// successfully provisioned certificate may still be serving. + /// - "FAILED_PERMANENT" : All renewal attempts have been exhausted, likely + /// due to an invalid DNS setup. + /// - "FAILED_RETRYING_CAA_FORBIDDEN" : Most recent renewal failed due to an + /// explicit CAA record that does not include the in-use CA, Let's Encrypt. + /// Renewals will continue to fail until the CAA is reconfigured. The last + /// successfully provisioned certificate may still be serving. + /// - "FAILED_RETRYING_CAA_CHECKING" : Most recent renewal failed due to a CAA + /// retrieval failure. This means that the domain's DNS provider does not + /// properly handle CAA records, failing requests for CAA records when no CAA + /// records are defined. Renewals will continue to fail until the DNS provider + /// is changed or a CAA record is added for the given domain. The last + /// successfully provisioned certificate may still be serving. + core.String status; + + ManagedCertificate(); + + ManagedCertificate.fromJson(core.Map _json) { + if (_json.containsKey("lastRenewalTime")) { + lastRenewalTime = _json["lastRenewalTime"]; + } + if (_json.containsKey("status")) { + status = _json["status"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (lastRenewalTime != null) { + _json["lastRenewalTime"] = lastRenewalTime; + } + if (status != null) { + _json["status"] = status; + } + return _json; + } +} + /// A service with manual scaling runs continuously, allowing you to perform /// complex initialization and rely on the state of its memory over time. class ManualScaling { @@ -4820,6 +4984,8 @@ /// Metadata for the given google.longrunning.Operation. class OperationMetadataV1 { + CreateVersionMetadataV1 createVersionMetadata; + /// Time that this operation completed.@OutputOnly core.String endTime; @@ -4847,6 +5013,10 @@ OperationMetadataV1(); OperationMetadataV1.fromJson(core.Map _json) { + if (_json.containsKey("createVersionMetadata")) { + createVersionMetadata = + new CreateVersionMetadataV1.fromJson(_json["createVersionMetadata"]); + } if (_json.containsKey("endTime")) { endTime = _json["endTime"]; } @@ -4873,6 +5043,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (createVersionMetadata != null) { + _json["createVersionMetadata"] = (createVersionMetadata).toJson(); + } if (endTime != null) { _json["endTime"] = endTime; } @@ -5439,15 +5612,47 @@ /// SSL configuration for a DomainMapping resource. class SslSettings { /// ID of the AuthorizedCertificate resource configuring SSL for the - /// application. Clearing this field will remove SSL support. Example: 12345. + /// application. Clearing this field will remove SSL support.By default, a + /// managed certificate is automatically created for every domain mapping. To + /// omit SSL support or to configure SSL manually, specify + /// SslManagementType.MANUAL on a CREATE or UPDATE request. You must be + /// authorized to administer the AuthorizedCertificate resource to manually + /// map it to a DomainMapping resource. Example: 12345. core.String certificateId; + /// ID of the managed AuthorizedCertificate resource currently being + /// provisioned, if applicable. Until the new managed certificate has been + /// successfully provisioned, the previous SSL state will be preserved. Once + /// the provisioning process completes, the certificate_id field will reflect + /// the new managed certificate and this field will be left empty. To remove + /// SSL support while there is still a pending managed certificate, clear the + /// certificate_id field with an UpdateDomainMappingRequest.@OutputOnly + core.String pendingManagedCertificateId; + + /// SSL management type for this domain. If AUTOMATIC, a managed certificate + /// is automatically provisioned. If MANUAL, certificate_id must be manually + /// specified in order to configure SSL for this domain. + /// Possible string values are: + /// - "SSL_MANAGEMENT_TYPE_UNSPECIFIED" : Defaults to AUTOMATIC. + /// - "AUTOMATIC" : SSL support for this domain is configured automatically. + /// The mapped SSL certificate will be automatically renewed. + /// - "MANUAL" : SSL support for this domain is configured manually by the + /// user. Either the domain has no SSL support or a user-obtained SSL + /// certificate has been explictly mapped to this domain. + core.String sslManagementType; + SslSettings(); SslSettings.fromJson(core.Map _json) { if (_json.containsKey("certificateId")) { certificateId = _json["certificateId"]; } + if (_json.containsKey("pendingManagedCertificateId")) { + pendingManagedCertificateId = _json["pendingManagedCertificateId"]; + } + if (_json.containsKey("sslManagementType")) { + sslManagementType = _json["sslManagementType"]; + } } core.Map<core.String, core.Object> toJson() { @@ -5456,6 +5661,12 @@ if (certificateId != null) { _json["certificateId"] = certificateId; } + if (pendingManagedCertificateId != null) { + _json["pendingManagedCertificateId"] = pendingManagedCertificateId; + } + if (sslManagementType != null) { + _json["sslManagementType"] = sslManagementType; + } return _json; } }
diff --git a/generated/googleapis/lib/bigquery/v2.dart b/generated/googleapis/lib/bigquery/v2.dart index 2c139a2..d3661df 100644 --- a/generated/googleapis/lib/bigquery/v2.dart +++ b/generated/googleapis/lib/bigquery/v2.dart
@@ -444,7 +444,8 @@ /// [jobId] - [Required] Job ID of the job to cancel /// /// [location] - [Experimental] The geographic location of the job. Required - /// except for US and EU. + /// except for US and EU. See details at + /// https://cloud.google.com/bigquery/docs/dataset-locations#specifying_your_location. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -505,7 +506,8 @@ /// [jobId] - [Required] Job ID of the requested job /// /// [location] - [Experimental] The geographic location of the job. Required - /// except for US and EU. + /// except for US and EU. See details at + /// https://cloud.google.com/bigquery/docs/dataset-locations#specifying_your_location. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -562,7 +564,8 @@ /// [jobId] - [Required] Job ID of the query job /// /// [location] - [Experimental] The geographic location where the job should - /// run. Required except for US and EU. + /// run. Required except for US and EU. See details at + /// https://cloud.google.com/bigquery/docs/dataset-locations#specifying_your_location. /// /// [maxResults] - Maximum number of results to read /// @@ -722,8 +725,16 @@ /// [allUsers] - Whether to display jobs owned by all users in the project. /// Default false /// + /// [maxCreationTime] - Max value for job creation time, in milliseconds since + /// the POSIX epoch. If set, only jobs created before or at this timestamp are + /// returned + /// /// [maxResults] - Maximum number of results to return /// + /// [minCreationTime] - Min value for job creation time, in milliseconds since + /// the POSIX epoch. If set, only jobs created after or at this timestamp are + /// returned + /// /// [pageToken] - Page token, returned by a previous call, to request the next /// page of results /// @@ -746,7 +757,9 @@ /// this method will complete with the same error. async.Future<JobList> list(core.String projectId, {core.bool allUsers, + core.String maxCreationTime, core.int maxResults, + core.String minCreationTime, core.String pageToken, core.String projection, core.List<core.String> stateFilter, @@ -764,9 +777,15 @@ if (allUsers != null) { _queryParams["allUsers"] = ["${allUsers}"]; } + if (maxCreationTime != null) { + _queryParams["maxCreationTime"] = [maxCreationTime]; + } if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (minCreationTime != null) { + _queryParams["minCreationTime"] = [minCreationTime]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -1725,6 +1744,31 @@ } } +class Clustering { + /// [Repeated] One or more fields on which data should be clustered. Only + /// top-level, non-repeated, simple-type fields are supported. The order of + /// the fields will determine how clusters will be generated, so it is + /// important. + core.List<core.String> fields; + + Clustering(); + + Clustering.fromJson(core.Map _json) { + if (_json.containsKey("fields")) { + fields = (_json["fields"] as core.List).cast<core.String>(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (fields != null) { + _json["fields"] = fields; + } + return _json; + } +} + class CsvOptions { /// [Optional] Indicates if BigQuery should accept rows that are missing /// trailing optional columns. If true, BigQuery treats missing trailing @@ -1948,8 +1992,9 @@ /// modified, in milliseconds since the epoch. core.String lastModifiedTime; - /// The geographic location where the dataset should reside. Possible values - /// include EU and US. The default value is US. + /// The geographic location where the dataset should reside. The default value + /// is US. See details at + /// https://cloud.google.com/bigquery/docs/dataset-locations. core.String location; /// [Output-only] A URL that can be used to access the resource again. You can @@ -2338,7 +2383,7 @@ /// Relative amount of time the slowest shard spent on CPU-bound tasks. core.double computeRatioMax; - /// Stage end time in milliseconds. + /// Stage end time represented as milliseconds since epoch. core.String endMs; /// Unique ID for stage within plan. @@ -2377,7 +2422,7 @@ /// Total number of bytes written to shuffle and spilled to disk. core.String shuffleOutputBytesSpilled; - /// Stage start time in milliseconds. + /// Stage start time represented as milliseconds since epoch. core.String startMs; /// Current status for the stage. @@ -2937,6 +2982,10 @@ } class GoogleSheetsOptions { + /// [Experimental] [Optional] Range of a sheet to query from. Only used when + /// non-empty. Typical format: !: + core.String range; + /// [Optional] The number of rows at the top of a sheet that BigQuery will /// skip when reading the data. The default value is 0. This property is /// useful if you have header rows that should be skipped. When autodetect is @@ -2953,6 +3002,9 @@ GoogleSheetsOptions(); GoogleSheetsOptions.fromJson(core.Map _json) { + if (_json.containsKey("range")) { + range = _json["range"]; + } if (_json.containsKey("skipLeadingRows")) { skipLeadingRows = _json["skipLeadingRows"]; } @@ -2961,6 +3013,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (range != null) { + _json["range"] = range; + } if (skipLeadingRows != null) { _json["skipLeadingRows"] = skipLeadingRows; } @@ -3278,10 +3333,15 @@ /// newline characters in a CSV file. The default value is false. core.bool allowQuotedNewlines; - /// Indicates if we should automatically infer the options and schema for CSV - /// and JSON sources. + /// [Optional] Indicates if we should automatically infer the options and + /// schema for CSV and JSON sources. core.bool autodetect; + /// [Experimental] Clustering specification for the destination table. Must be + /// specified with time-based partitioning, data in the table will be first + /// partitioned and subsequently clustered. + Clustering clustering; + /// [Optional] Specifies whether the job is allowed to create new tables. The /// following values are supported: CREATE_IF_NEEDED: If the table does not /// exist, BigQuery creates the table. CREATE_NEVER: The table must already @@ -3402,8 +3462,7 @@ /// the '*' wildcard character is not allowed. core.List<core.String> sourceUris; - /// If specified, configures time-based partitioning for the destination - /// table. + /// Time-based partitioning specification for the destination table. TimePartitioning timePartitioning; /// [Optional] Specifies the action that occurs if the destination table @@ -3429,6 +3488,9 @@ if (_json.containsKey("autodetect")) { autodetect = _json["autodetect"]; } + if (_json.containsKey("clustering")) { + clustering = new Clustering.fromJson(_json["clustering"]); + } if (_json.containsKey("createDisposition")) { createDisposition = _json["createDisposition"]; } @@ -3508,6 +3570,9 @@ if (autodetect != null) { _json["autodetect"] = autodetect; } + if (clustering != null) { + _json["clustering"] = (clustering).toJson(); + } if (createDisposition != null) { _json["createDisposition"] = createDisposition; } @@ -3583,6 +3648,11 @@ /// size. core.bool allowLargeResults; + /// [Experimental] Clustering specification for the destination table. Must be + /// specified with time-based partitioning, data in the table will be first + /// partitioned and subsequently clustered. + Clustering clustering; + /// [Optional] Specifies whether the job is allowed to create new tables. The /// following values are supported: CREATE_IF_NEEDED: If the table does not /// exist, BigQuery creates the table. CREATE_NEVER: The table must already @@ -3656,8 +3726,7 @@ /// as if it were a standard BigQuery table. core.Map<core.String, ExternalDataConfiguration> tableDefinitions; - /// If specified, configures time-based partitioning for the destination - /// table. + /// Time-based partitioning specification for the destination table. TimePartitioning timePartitioning; /// Specifies whether to use BigQuery's legacy SQL dialect for this query. The @@ -3695,6 +3764,9 @@ if (_json.containsKey("allowLargeResults")) { allowLargeResults = _json["allowLargeResults"]; } + if (_json.containsKey("clustering")) { + clustering = new Clustering.fromJson(_json["clustering"]); + } if (_json.containsKey("createDisposition")) { createDisposition = _json["createDisposition"]; } @@ -3771,6 +3843,9 @@ if (allowLargeResults != null) { _json["allowLargeResults"] = allowLargeResults; } + if (clustering != null) { + _json["clustering"] = (clustering).toJson(); + } if (createDisposition != null) { _json["createDisposition"] = createDisposition; } @@ -4077,7 +4152,8 @@ core.String jobId; /// [Experimental] The geographic location of the job. Required except for US - /// and EU. + /// and EU. See details at + /// https://cloud.google.com/bigquery/docs/dataset-locations#specifying_your_location. core.String location; /// [Required] The ID of the project containing this job. @@ -4204,6 +4280,38 @@ } } +class JobStatistics2ReservationUsage { + /// [Output-only] Reservation name or "unreserved" for on-demand resources + /// usage. + core.String name; + + /// [Output-only] Slot-milliseconds the job spent in the given reservation. + core.String slotMs; + + JobStatistics2ReservationUsage(); + + JobStatistics2ReservationUsage.fromJson(core.Map _json) { + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("slotMs")) { + slotMs = _json["slotMs"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (name != null) { + _json["name"] = name; + } + if (slotMs != null) { + _json["slotMs"] = slotMs; + } + return _json; + } +} + class JobStatistics2 { /// [Output-only] Billing tier for the job. core.int billingTier; @@ -4239,6 +4347,9 @@ /// than 50 tables will not have a complete list. core.List<TableReference> referencedTables; + /// [Output-only] Job resource usage breakdown by reservation. + core.List<JobStatistics2ReservationUsage> reservationUsage; + /// [Output-only] The schema of the results. Present only for successful dry /// run of non-legacy SQL queries. TableSchema schema; @@ -4266,6 +4377,10 @@ /// [Output-only] Total bytes processed for the job. core.String totalBytesProcessed; + /// [Output-only] Total number of partitions processed from all partitioned + /// tables referenced in the job. + core.String totalPartitionsProcessed; + /// [Output-only] Slot-milliseconds for the job. core.String totalSlotMs; @@ -4305,6 +4420,12 @@ .map<TableReference>((value) => new TableReference.fromJson(value)) .toList(); } + if (_json.containsKey("reservationUsage")) { + reservationUsage = (_json["reservationUsage"] as core.List) + .map<JobStatistics2ReservationUsage>( + (value) => new JobStatistics2ReservationUsage.fromJson(value)) + .toList(); + } if (_json.containsKey("schema")) { schema = new TableSchema.fromJson(_json["schema"]); } @@ -4323,6 +4444,9 @@ if (_json.containsKey("totalBytesProcessed")) { totalBytesProcessed = _json["totalBytesProcessed"]; } + if (_json.containsKey("totalPartitionsProcessed")) { + totalPartitionsProcessed = _json["totalPartitionsProcessed"]; + } if (_json.containsKey("totalSlotMs")) { totalSlotMs = _json["totalSlotMs"]; } @@ -4362,6 +4486,10 @@ _json["referencedTables"] = referencedTables.map((value) => (value).toJson()).toList(); } + if (reservationUsage != null) { + _json["reservationUsage"] = + reservationUsage.map((value) => (value).toJson()).toList(); + } if (schema != null) { _json["schema"] = (schema).toJson(); } @@ -4377,6 +4505,9 @@ if (totalBytesProcessed != null) { _json["totalBytesProcessed"] = totalBytesProcessed; } + if (totalPartitionsProcessed != null) { + _json["totalPartitionsProcessed"] = totalPartitionsProcessed; + } if (totalSlotMs != null) { _json["totalSlotMs"] = totalSlotMs; } @@ -5160,18 +5291,19 @@ } class QueryTimelineSample { - /// Total number of active workers. This does not correspond directly to slot - /// usage. This is the largest value observed since the last sample. - core.String activeInputs; + /// Total number of units currently being processed by workers. This does not + /// correspond directly to slot usage. This is the largest value observed + /// since the last sample. + core.String activeUnits; /// Total parallel units of work completed by this query. - core.String completedInputs; + core.String completedUnits; /// Milliseconds elapsed since the start of query execution. core.String elapsedMs; /// Total parallel units of work remaining for the active stages. - core.String pendingInputs; + core.String pendingUnits; /// Cumulative slot-ms consumed by the query. core.String totalSlotMs; @@ -5179,17 +5311,17 @@ QueryTimelineSample(); QueryTimelineSample.fromJson(core.Map _json) { - if (_json.containsKey("activeInputs")) { - activeInputs = _json["activeInputs"]; + if (_json.containsKey("activeUnits")) { + activeUnits = _json["activeUnits"]; } - if (_json.containsKey("completedInputs")) { - completedInputs = _json["completedInputs"]; + if (_json.containsKey("completedUnits")) { + completedUnits = _json["completedUnits"]; } if (_json.containsKey("elapsedMs")) { elapsedMs = _json["elapsedMs"]; } - if (_json.containsKey("pendingInputs")) { - pendingInputs = _json["pendingInputs"]; + if (_json.containsKey("pendingUnits")) { + pendingUnits = _json["pendingUnits"]; } if (_json.containsKey("totalSlotMs")) { totalSlotMs = _json["totalSlotMs"]; @@ -5199,17 +5331,17 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (activeInputs != null) { - _json["activeInputs"] = activeInputs; + if (activeUnits != null) { + _json["activeUnits"] = activeUnits; } - if (completedInputs != null) { - _json["completedInputs"] = completedInputs; + if (completedUnits != null) { + _json["completedUnits"] = completedUnits; } if (elapsedMs != null) { _json["elapsedMs"] = elapsedMs; } - if (pendingInputs != null) { - _json["pendingInputs"] = pendingInputs; + if (pendingUnits != null) { + _json["pendingUnits"] = pendingUnits; } if (totalSlotMs != null) { _json["totalSlotMs"] = totalSlotMs; @@ -5263,6 +5395,11 @@ } class Table { + /// [Experimental] Clustering specification for the table. Must be specified + /// with time-based partitioning, data in the table will be first partitioned + /// and subsequently clustered. + Clustering clustering; + /// [Output-only] The time when this table was created, in milliseconds since /// the epoch. core.String creationTime; @@ -5339,7 +5476,7 @@ /// [Required] Reference describing the ID of this table. TableReference tableReference; - /// If specified, configures time-based partitioning for this table. + /// Time-based partitioning specification for this table. TimePartitioning timePartitioning; /// [Output-only] Describes the table type. The following values are @@ -5355,6 +5492,9 @@ Table(); Table.fromJson(core.Map _json) { + if (_json.containsKey("clustering")) { + clustering = new Clustering.fromJson(_json["clustering"]); + } if (_json.containsKey("creationTime")) { creationTime = _json["creationTime"]; } @@ -5429,6 +5569,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (clustering != null) { + _json["clustering"] = (clustering).toJson(); + } if (creationTime != null) { _json["creationTime"] = creationTime; } @@ -5850,6 +5993,9 @@ } class TableListTables { + /// [Experimental] Clustering specification for this table, if configured. + Clustering clustering; + /// The time when this table was created, in milliseconds since the epoch. core.String creationTime; @@ -5874,7 +6020,7 @@ /// A reference uniquely identifying the table. TableReference tableReference; - /// The time-based partitioning for this table. + /// The time-based partitioning specification for this table, if configured. TimePartitioning timePartitioning; /// The type of table. Possible values are: TABLE, VIEW. @@ -5886,6 +6032,9 @@ TableListTables(); TableListTables.fromJson(core.Map _json) { + if (_json.containsKey("clustering")) { + clustering = new Clustering.fromJson(_json["clustering"]); + } if (_json.containsKey("creationTime")) { creationTime = _json["creationTime"]; } @@ -5922,6 +6071,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (clustering != null) { + _json["clustering"] = (clustering).toJson(); + } if (creationTime != null) { _json["creationTime"] = creationTime; } @@ -6109,14 +6261,16 @@ } class TimePartitioning { - /// [Optional] Number of milliseconds for which to keep the storage for a - /// partition. + /// [Optional] Number of milliseconds for which to keep the storage for + /// partitions in the table. The storage in a partition will have an + /// expiration time of its partition time plus this value. core.String expirationMs; /// [Experimental] [Optional] If not set, the table is partitioned by pseudo - /// column '_PARTITIONTIME'; if set, the table is partitioned by this field. - /// The field must be a top-level TIMESTAMP or DATE field. Its mode must be - /// NULLABLE or REQUIRED. + /// column, referenced via either '_PARTITIONTIME' as TIMESTAMP type, or + /// '_PARTITIONDATE' as DATE type. If field is specified, the table is instead + /// partitioned by this field. The field must be a top-level TIMESTAMP or DATE + /// field. Its mode must be NULLABLE or REQUIRED. core.String field; /// [Experimental] [Optional] If set to true, queries over this table require
diff --git a/generated/googleapis/lib/bigquerydatatransfer/v1.dart b/generated/googleapis/lib/bigquerydatatransfer/v1.dart index 1ad4c8f..9191251 100644 --- a/generated/googleapis/lib/bigquerydatatransfer/v1.dart +++ b/generated/googleapis/lib/bigquerydatatransfer/v1.dart
@@ -174,6 +174,9 @@ /// Must be in the form: `projects/{project_id}` /// Value must have pattern "^projects/[^/]+$". /// + /// [pageSize] - Page size. The default page size is the maximum value of 1000 + /// results. + /// /// [pageToken] - Pagination token, which can be used to request a specific /// page /// of `ListDataSourcesRequest` list results. For multiple-page @@ -181,9 +184,6 @@ /// a `next_page` token, which can be used as the /// `page_token` value to request the next page of list results. /// - /// [pageSize] - Page size. The default page size is the maximum value of 1000 - /// results. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -195,7 +195,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<ListDataSourcesResponse> list(core.String parent, - {core.String pageToken, core.int pageSize, core.String $fields}) { + {core.int pageSize, core.String pageToken, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -206,12 +206,12 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -241,7 +241,7 @@ ProjectsLocationsResourceApi(commons.ApiRequester client) : _requester = client; - /// Get information about a location. + /// Gets information about a location. /// /// Request parameters: /// @@ -543,7 +543,7 @@ /// /// [parent] - The BigQuery project id where the transfer configuration should /// be created. - /// Must be in the format /projects/{project_id}/locations/{location_id} + /// Must be in the format projects/{project_id}/locations/{location_id} /// If specified location and location of the destination bigquery dataset /// do not match - the request will fail. /// Value must have pattern "^projects/[^/]+/locations/[^/]+$". @@ -713,6 +713,9 @@ /// should be returned: `projects/{project_id}`. /// Value must have pattern "^projects/[^/]+/locations/[^/]+$". /// + /// [dataSourceIds] - When specified, only configurations of requested data + /// sources are returned. + /// /// [pageToken] - Pagination token, which can be used to request a specific /// page /// of `ListTransfersRequest` list results. For multiple-page @@ -723,9 +726,6 @@ /// [pageSize] - Page size. The default page size is the maximum value of 1000 /// results. /// - /// [dataSourceIds] - When specified, only configurations of requested data - /// sources are returned. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -737,9 +737,9 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListTransferConfigsResponse> list(core.String parent, - {core.String pageToken, + {core.List<core.String> dataSourceIds, + core.String pageToken, core.int pageSize, - core.List<core.String> dataSourceIds, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -751,15 +751,15 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } + if (dataSourceIds != null) { + _queryParams["dataSourceIds"] = dataSourceIds; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (dataSourceIds != null) { - _queryParams["dataSourceIds"] = dataSourceIds; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -794,6 +794,8 @@ /// Value must have pattern /// "^projects/[^/]+/locations/[^/]+/transferConfigs/[^/]+$". /// + /// [updateMask] - Required list of fields to be updated in this request. + /// /// [authorizationCode] - Optional OAuth2 authorization code to use with this /// transfer configuration. /// If it is provided, the transfer configuration will be associated with the @@ -812,8 +814,6 @@ /// returned in the title bar of the browser, with the page text prompting /// the user to copy the code and paste it in the application. /// - /// [updateMask] - Required list of fields to be updated in this request. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -825,8 +825,8 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<TransferConfig> patch(TransferConfig request, core.String name, - {core.String authorizationCode, - core.String updateMask, + {core.String updateMask, + core.String authorizationCode, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -841,12 +841,12 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } - if (authorizationCode != null) { - _queryParams["authorizationCode"] = [authorizationCode]; - } if (updateMask != null) { _queryParams["updateMask"] = [updateMask]; } + if (authorizationCode != null) { + _queryParams["authorizationCode"] = [authorizationCode]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1208,7 +1208,7 @@ /// /// [parent] - The BigQuery project id where the transfer configuration should /// be created. - /// Must be in the format /projects/{project_id}/locations/{location_id} + /// Must be in the format projects/{project_id}/locations/{location_id} /// If specified location and location of the destination bigquery dataset /// do not match - the request will fail. /// Value must have pattern "^projects/[^/]+$". @@ -1376,6 +1376,12 @@ /// should be returned: `projects/{project_id}`. /// Value must have pattern "^projects/[^/]+$". /// + /// [pageSize] - Page size. The default page size is the maximum value of 1000 + /// results. + /// + /// [dataSourceIds] - When specified, only configurations of requested data + /// sources are returned. + /// /// [pageToken] - Pagination token, which can be used to request a specific /// page /// of `ListTransfersRequest` list results. For multiple-page @@ -1383,12 +1389,6 @@ /// a `next_page` token, which can be used as the /// `page_token` value to request the next page of list results. /// - /// [pageSize] - Page size. The default page size is the maximum value of 1000 - /// results. - /// - /// [dataSourceIds] - When specified, only configurations of requested data - /// sources are returned. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -1400,9 +1400,9 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListTransferConfigsResponse> list(core.String parent, - {core.String pageToken, - core.int pageSize, + {core.int pageSize, core.List<core.String> dataSourceIds, + core.String pageToken, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -1414,15 +1414,15 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } if (dataSourceIds != null) { _queryParams["dataSourceIds"] = dataSourceIds; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1456,8 +1456,6 @@ /// config. /// Value must have pattern "^projects/[^/]+/transferConfigs/[^/]+$". /// - /// [updateMask] - Required list of fields to be updated in this request. - /// /// [authorizationCode] - Optional OAuth2 authorization code to use with this /// transfer configuration. /// If it is provided, the transfer configuration will be associated with the @@ -1476,6 +1474,8 @@ /// returned in the title bar of the browser, with the page text prompting /// the user to copy the code and paste it in the application. /// + /// [updateMask] - Required list of fields to be updated in this request. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -1487,8 +1487,8 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<TransferConfig> patch(TransferConfig request, core.String name, - {core.String updateMask, - core.String authorizationCode, + {core.String authorizationCode, + core.String updateMask, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -1503,12 +1503,12 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } - if (updateMask != null) { - _queryParams["updateMask"] = [updateMask]; - } if (authorizationCode != null) { _queryParams["authorizationCode"] = [authorizationCode]; } + if (updateMask != null) { + _queryParams["updateMask"] = [updateMask]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1955,7 +1955,7 @@ /// The minimum interval for scheduler to schedule runs. core.String minimumScheduleInterval; - /// Data source resource name. + /// Output only. Data source resource name. core.String name; /// Data source parameters. @@ -1972,13 +1972,10 @@ /// When set to `true`, user can override default schedule. core.bool supportsCustomSchedule; - /// Indicates whether the data source supports multiple transfers - /// to different BigQuery targets. + /// Deprecated. This field has no effect. core.bool supportsMultipleTransfers; - /// Transfer type. Currently supports only batch transfers, - /// which are transfers that use the BigQuery batch APIs (load or - /// query) to ingest the data. + /// Deprecated. This field has no effect. /// Possible string values are: /// - "TRANSFER_TYPE_UNSPECIFIED" : Invalid or Unknown transfer type /// placeholder. @@ -1989,7 +1986,7 @@ core.String transferType; /// The number of seconds to wait for an update from the data source - /// before BigQuery marks the transfer as failed. + /// before the Data Transfer Service marks the transfer as FAILED. core.int updateDeadlineSeconds; DataSource(); @@ -2132,7 +2129,7 @@ /// Parameter display name in the user interface. core.String displayName; - /// When parameter is a record, describes child fields. + /// Deprecated. This field has no effect. core.List<DataSourceParameter> fields; /// Cannot be changed after initial creation. @@ -2147,11 +2144,10 @@ /// Parameter identifier. core.String paramId; - /// If set to true, schema should be taken from the parent with the same - /// parameter_id. Only applicable when parameter type is RECORD. + /// Deprecated. This field has no effect. core.bool recurse; - /// Can parameter have multiple values. + /// Deprecated. This field has no effect. core.bool repeated; /// Is parameter required. @@ -2165,7 +2161,7 @@ /// Will be serialized to json as string. /// - "DOUBLE" : Double precision floating point parameter. /// - "BOOLEAN" : Boolean parameter. - /// - "RECORD" : Record parameter. + /// - "RECORD" : Deprecated. This field has no effect. /// - "PLUS_PAGE" : Page ID for a Google+ Page. core.String type; @@ -2494,6 +2490,10 @@ /// A resource that represents Google Cloud Platform location. class Location { + /// The friendly name for this location, typically a nearby city name. + /// For example, "Tokyo". + core.String displayName; + /// Cross-service attributes for the location. For example /// /// {"cloud.googleapis.com/region": "us-east1"} @@ -2516,6 +2516,9 @@ Location(); Location.fromJson(core.Map _json) { + if (_json.containsKey("displayName")) { + displayName = _json["displayName"]; + } if (_json.containsKey("labels")) { labels = (_json["labels"] as core.Map).cast<core.String, core.String>(); } @@ -2534,6 +2537,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (displayName != null) { + _json["displayName"] = displayName; + } if (labels != null) { _json["labels"] = labels; } @@ -2720,7 +2726,6 @@ /// When a new transfer configuration is created, the specified /// `destination_dataset_id` is created when needed and shared with the /// appropriate data source service account. -/// Next id: 21 class TransferConfig { /// The number of days to look back to automatically refresh the data. /// For example, if `data_refresh_window_days = 10`, then every day @@ -2936,7 +2941,6 @@ } /// Represents a data transfer run. -/// Next id: 27 class TransferRun { /// Output only. Data source id. core.String dataSourceId;
diff --git a/generated/googleapis/lib/calendar/v3.dart b/generated/googleapis/lib/calendar/v3.dart index 55ba1ed..0becb80 100644 --- a/generated/googleapis/lib/calendar/v3.dart +++ b/generated/googleapis/lib/calendar/v3.dart
@@ -4923,7 +4923,9 @@ /// is False. core.bool organizer; - /// Whether the attendee is a resource. Read-only. The default is False. + /// Whether the attendee is a resource. Can only be set when the attendee is + /// added to the event for the first time. Subsequent modifications are + /// ignored. Optional. The default is False. core.bool resource; /// The attendee's response status. Possible values are:
diff --git a/generated/googleapis/lib/classroom/v1.dart b/generated/googleapis/lib/classroom/v1.dart index 3ddc768..7f8338f 100644 --- a/generated/googleapis/lib/classroom/v1.dart +++ b/generated/googleapis/lib/classroom/v1.dart
@@ -123,8 +123,6 @@ new CoursesStudentsResourceApi(_requester); CoursesTeachersResourceApi get teachers => new CoursesTeachersResourceApi(_requester); - CoursesTopicsResourceApi get topics => - new CoursesTopicsResourceApi(_requester); CoursesResourceApi(commons.ApiRequester client) : _requester = client; @@ -299,18 +297,6 @@ /// /// Request parameters: /// - /// [teacherId] - Restricts returned courses to those having a teacher with - /// the specified - /// identifier. 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 - /// - /// [courseStates] - Restricts returned courses to those in one of the - /// specified states - /// The default value is ACTIVE, ARCHIVED, PROVISIONED, DECLINED. - /// /// [studentId] - Restricts returned courses to those having a student with /// the specified /// identifier. The identifier can be one of the following: @@ -333,6 +319,18 @@ /// /// The server may return fewer than the specified number of results. /// + /// [teacherId] - Restricts returned courses to those having a teacher with + /// the specified + /// identifier. 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 + /// + /// [courseStates] - Restricts returned courses to those in one of the + /// specified states + /// The default value is ACTIVE, ARCHIVED, PROVISIONED, DECLINED. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -344,11 +342,11 @@ /// 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 teacherId, - core.List<core.String> courseStates, - core.String studentId, + {core.String studentId, core.String pageToken, core.int pageSize, + core.String teacherId, + core.List<core.String> courseStates, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -357,12 +355,6 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (teacherId != null) { - _queryParams["teacherId"] = [teacherId]; - } - if (courseStates != null) { - _queryParams["courseStates"] = courseStates; - } if (studentId != null) { _queryParams["studentId"] = [studentId]; } @@ -372,6 +364,12 @@ if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (teacherId != null) { + _queryParams["teacherId"] = [teacherId]; + } + if (courseStates != null) { + _queryParams["courseStates"] = courseStates; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1778,6 +1776,15 @@ /// This may be set to the string literal `"-"` to request student work for /// all course work in the specified course. /// + /// [late] - Requested lateness value. If specified, returned student + /// submissions are + /// restricted by the requested value. + /// If unspecified, submissions are returned regardless of `late` value. + /// Possible string values are: + /// - "LATE_VALUES_UNSPECIFIED" : A LATE_VALUES_UNSPECIFIED. + /// - "LATE_ONLY" : A LATE_ONLY. + /// - "NOT_LATE_ONLY" : A NOT_LATE_ONLY. + /// /// [pageToken] - nextPageToken /// value returned from a previous /// list call, @@ -1805,15 +1812,6 @@ /// * the email address of the user /// * the string literal `"me"`, indicating the requesting user /// - /// [late] - Requested lateness value. If specified, returned student - /// submissions are - /// restricted by the requested value. - /// If unspecified, submissions are returned regardless of `late` value. - /// Possible string values are: - /// - "LATE_VALUES_UNSPECIFIED" : A LATE_VALUES_UNSPECIFIED. - /// - "LATE_ONLY" : A LATE_ONLY. - /// - "NOT_LATE_ONLY" : A NOT_LATE_ONLY. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -1826,11 +1824,11 @@ /// this method will complete with the same error. async.Future<ListStudentSubmissionsResponse> list( core.String courseId, core.String courseWorkId, - {core.String pageToken, + {core.String late, + core.String pageToken, core.List<core.String> states, core.int pageSize, core.String userId, - core.String late, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -1845,6 +1843,9 @@ if (courseWorkId == null) { throw new core.ArgumentError("Parameter courseWorkId is required."); } + if (late != null) { + _queryParams["late"] = [late]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -1857,9 +1858,6 @@ if (userId != null) { _queryParams["userId"] = [userId]; } - if (late != null) { - _queryParams["late"] = [late]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -2832,6 +2830,10 @@ /// This identifier can be either the Classroom-assigned identifier or an /// alias. /// + /// [pageSize] - Maximum number of items to return. Zero means no maximum. + /// + /// The server may return fewer than the specified number of results. + /// /// [pageToken] - nextPageToken /// value returned from a previous /// list call, indicating that @@ -2840,10 +2842,6 @@ /// The list request must be /// otherwise identical to the one that resulted in this token. /// - /// [pageSize] - Maximum number of items to return. Zero means no maximum. - /// - /// The server may return fewer than the specified number of results. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -2855,7 +2853,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<ListTeachersResponse> list(core.String courseId, - {core.String pageToken, core.int pageSize, core.String $fields}) { + {core.int pageSize, core.String pageToken, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -2866,12 +2864,12 @@ if (courseId == null) { throw new core.ArgumentError("Parameter courseId is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -2890,144 +2888,6 @@ } } -class CoursesTopicsResourceApi { - final commons.ApiRequester _requester; - - CoursesTopicsResourceApi(commons.ApiRequester client) : _requester = client; - - /// Returns a topic. - /// - /// This method returns the following error codes: - /// - /// * `PERMISSION_DENIED` if the requesting user is not permitted to access - /// the - /// requested course or topic, or for access errors. - /// * `INVALID_ARGUMENT` if the request is malformed. - /// * `NOT_FOUND` if the requested course or topic does not exist. - /// - /// Request parameters: - /// - /// [courseId] - Identifier of the course. - /// - /// [id] - Identifier of the topic. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [Topic]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future<Topic> get(core.String courseId, core.String id, - {core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (courseId == null) { - throw new core.ArgumentError("Parameter courseId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _url = 'v1/courses/' + - commons.Escaper.ecapeVariable('$courseId') + - '/topics/' + - 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 Topic.fromJson(data)); - } - - /// Returns the list of topics that the requester is permitted to view. - /// - /// This method returns the following error codes: - /// - /// * `PERMISSION_DENIED` if the requesting user is not permitted to access - /// the requested course or for access errors. - /// * `INVALID_ARGUMENT` if the request is malformed. - /// * `NOT_FOUND` if the requested course does not exist. - /// - /// Request parameters: - /// - /// [courseId] - Identifier of the course. - /// This identifier can be either the Classroom-assigned identifier or an - /// alias. - /// - /// [pageToken] - nextPageToken - /// value returned from a previous - /// list call, - /// indicating that the subsequent page of results should be returned. - /// - /// The list request - /// must be otherwise identical to the one that resulted in this token. - /// - /// [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. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [ListTopicResponse]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future<ListTopicResponse> list(core.String courseId, - {core.String pageToken, core.int pageSize, core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (courseId == null) { - throw new core.ArgumentError("Parameter courseId is required."); - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _url = - 'v1/courses/' + commons.Escaper.ecapeVariable('$courseId') + '/topics'; - - var _response = _requester.request(_url, "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ListTopicResponse.fromJson(data)); - } -} - class InvitationsResourceApi { final commons.ApiRequester _requester; @@ -5151,7 +5011,8 @@ /// if specifying a year/month where the day is not significant. core.int day; - /// Month of year. Must be from 1 to 12. + /// Month of year. Must be from 1 to 12, or 0 if specifying a date without a + /// month. core.int month; /// Year of date. Must be from 1 to 9999, or 0 if specifying a date without @@ -6134,41 +5995,6 @@ } } -/// Response when listing topics. -class ListTopicResponse { - /// Token identifying the next page of results to return. If empty, no further - /// results are available. - core.String nextPageToken; - - /// Topic items that match the request. - core.List<Topic> topic; - - ListTopicResponse(); - - ListTopicResponse.fromJson(core.Map _json) { - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("topic")) { - topic = (_json["topic"] as core.List) - .map<Topic>((value) => new Topic.fromJson(value)) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (topic != null) { - _json["topic"] = topic.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - /// Material attached to course work. /// /// When creating attachments, setting the `form` field is not supported. @@ -7105,65 +6931,6 @@ } } -/// Topic created by a teacher for the course -class Topic { - /// Identifier of the course. - /// - /// Read-only. - core.String courseId; - - /// The name of the topic, generated by the user. - /// Leading and trailing whitespaces, if any, will be trimmed. Also, multiple - /// consecutive whitespaces will be collapsed into one inside the name. - /// Topic names are case sensitive, and must be no longer than 100 characters. - core.String name; - - /// Unique identifier for the topic. - /// - /// Read-only. - core.String topicId; - - /// The time the topic was last updated by the system. - /// - /// Read-only. - core.String updateTime; - - Topic(); - - Topic.fromJson(core.Map _json) { - if (_json.containsKey("courseId")) { - courseId = _json["courseId"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("topicId")) { - topicId = _json["topicId"]; - } - if (_json.containsKey("updateTime")) { - updateTime = _json["updateTime"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (courseId != null) { - _json["courseId"] = courseId; - } - if (name != null) { - _json["name"] = name; - } - if (topicId != null) { - _json["topicId"] = topicId; - } - if (updateTime != null) { - _json["updateTime"] = updateTime; - } - return _json; - } -} - /// Request to turn in a student submission. class TurnInStudentSubmissionRequest { TurnInStudentSubmissionRequest();
diff --git a/generated/googleapis/lib/cloudbilling/v1.dart b/generated/googleapis/lib/cloudbilling/v1.dart index d82b8f9..fa1dbaa 100644 --- a/generated/googleapis/lib/cloudbilling/v1.dart +++ b/generated/googleapis/lib/cloudbilling/v1.dart
@@ -45,9 +45,62 @@ BillingAccountsResourceApi(commons.ApiRequester client) : _requester = client; + /// Creates a billing account. + /// This method can only be used to create + /// [billing subaccounts](https://cloud.google.com/billing/docs/concepts) + /// for GCP resellers. + /// When creating a subaccount, the current authenticated user must have the + /// `billing.accounts.update` IAM permission on the master account, which is + /// typically given to billing account + /// [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). + /// + /// > This method is currently in + /// > [Beta](https://cloud.google.com/terms/launch-stages). + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [BillingAccount]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<BillingAccount> create(BillingAccount request, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/billingAccounts'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new BillingAccount.fromJson(data)); + } + /// Gets information about a billing account. The current authenticated user - /// must be an [owner of the billing - /// account](https://support.google.com/cloud/answer/4430947). + /// must be a [viewer of the billing + /// account](https://cloud.google.com/billing/docs/how-to/billing-access). /// /// Request parameters: /// @@ -92,11 +145,76 @@ return _response.then((data) => new BillingAccount.fromJson(data)); } - /// Lists the billing accounts that the current authenticated user - /// [owns](https://support.google.com/cloud/answer/4430947). + /// Gets the access control policy for a billing account. + /// The caller must have the `billing.accounts.getIamPolicy` permission on the + /// account, which is often given to billing account + /// [viewers](https://cloud.google.com/billing/docs/how-to/billing-access). + /// + /// > This method is currently in + /// > [Beta](https://cloud.google.com/terms/launch-stages). /// /// Request parameters: /// + /// [resource] - REQUIRED: The resource for which the policy is being + /// requested. + /// See the operation documentation for the appropriate value for this field. + /// Value must have pattern "^billingAccounts/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _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)); + } + + /// Lists the billing accounts that the current authenticated user has + /// permission to + /// [view](https://cloud.google.com/billing/docs/how-to/billing-access). + /// + /// Request parameters: + /// + /// [filter] - Options for how to filter the returned billing accounts. + /// Currently this only supports filtering for + /// [subaccounts](https://cloud.google.com/billing/docs/concepts) under a + /// single provided reseller billing account. + /// (e.g. "master_billing_account=billingAccounts/012345-678901-ABCDEF"). + /// Boolean algebra and other fields are not currently supported. + /// + /// > This field is currently in + /// > [Beta](https://cloud.google.com/terms/launch-stages). + /// /// [pageToken] - A token identifying a page of results to return. This should /// be a /// `next_page_token` value returned from a previous `ListBillingAccounts` @@ -117,7 +235,10 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListBillingAccountsResponse> list( - {core.String pageToken, core.int pageSize, core.String $fields}) { + {core.String filter, + core.String pageToken, + core.int pageSize, + core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -125,6 +246,9 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -146,6 +270,191 @@ return _response .then((data) => new ListBillingAccountsResponse.fromJson(data)); } + + /// Updates a billing account's fields. + /// Currently the only field that can be edited is `display_name`. + /// The current authenticated user must have the `billing.accounts.update` + /// IAM permission, which is typically given to the + /// [administrator](https://cloud.google.com/billing/docs/how-to/billing-access) + /// of the billing account. + /// + /// > This method is currently in + /// > [Beta](https://cloud.google.com/terms/launch-stages). + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name of the billing account resource to be updated. + /// Value must have pattern "^billingAccounts/[^/]+$". + /// + /// [updateMask] - The update mask applied to the resource. + /// Only "display_name" is currently supported. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [BillingAccount]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<BillingAccount> patch(BillingAccount request, core.String name, + {core.String updateMask, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if (updateMask != null) { + _queryParams["updateMask"] = [updateMask]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, "PATCH", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new BillingAccount.fromJson(data)); + } + + /// Sets the access control policy for a billing account. Replaces any + /// existing + /// policy. + /// The caller must have the `billing.accounts.setIamPolicy` permission on the + /// account, which is often given to billing account + /// [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). + /// + /// > This method is currently in + /// > [Beta](https://cloud.google.com/terms/launch-stages). + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [resource] - REQUIRED: The resource for which the policy is being + /// specified. + /// See the operation documentation for the appropriate value for this field. + /// Value must have pattern "^billingAccounts/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _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)); + } + + /// Tests the access control policy for a billing account. This method takes + /// the resource and a set of permissions as input and returns the subset of + /// the input permissions that the caller is allowed for that resource. + /// + /// > This method is currently in + /// > [Beta](https://cloud.google.com/terms/launch-stages). + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [resource] - REQUIRED: The resource for which the policy detail is being + /// requested. + /// See the operation documentation for the appropriate value for this field. + /// Value must have pattern "^billingAccounts/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _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 BillingAccountsProjectsResourceApi { @@ -155,9 +464,9 @@ : _requester = client; /// Lists the projects associated with a billing account. The current - /// authenticated user must have the "billing.resourceAssociations.list" IAM + /// authenticated user must have the `billing.resourceAssociations.list` IAM /// permission, which is often given to billing account - /// [viewers](https://support.google.com/cloud/answer/4430947). + /// [viewers](https://cloud.google.com/billing/docs/how-to/billing-access). /// /// Request parameters: /// @@ -285,14 +594,14 @@ /// /// *Note:* Incurred charges that have not yet been reported in the /// transaction - /// history of the Google Cloud Console may be billed to the new billing + /// history of the GCP Console might be billed to the new billing /// account, even if the charge occurred before the new billing account was /// assigned to the project. /// /// The current authenticated user must have ownership privileges for both the /// [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo /// ) and the [billing - /// account](https://support.google.com/cloud/answer/4430947). + /// account](https://cloud.google.com/billing/docs/how-to/billing-access). /// /// You can disable billing on the project by setting the /// `billing_account_name` field to empty. This action disassociates the @@ -371,13 +680,13 @@ /// /// Request parameters: /// + /// [pageSize] - Requested page size. Defaults to 5000. + /// /// [pageToken] - A token identifying a page of results to return. This should /// be a /// `next_page_token` value returned from a previous `ListServices` /// call. If unspecified, the first page of results is returned. /// - /// [pageSize] - Requested page size. Defaults to 5000. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -389,7 +698,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<ListServicesResponse> list( - {core.String pageToken, core.int pageSize, core.String $fields}) { + {core.int pageSize, core.String pageToken, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -397,12 +706,12 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -432,11 +741,6 @@ /// Example: "services/DA34-426B-A397" /// Value must have pattern "^services/[^/]+$". /// - /// [currencyCode] - The ISO 4217 currency code for the pricing info in the - /// response proto. - /// Will use the conversion rate as of start_time. - /// Optional. If not specified USD will be used. - /// /// [endTime] - Optional exclusive end time of the time range for which the /// pricing /// versions will be returned. Timestamps in the future are not allowed. @@ -460,6 +764,11 @@ /// /// [pageSize] - Requested page size. Defaults to 5000. /// + /// [currencyCode] - The ISO 4217 currency code for the pricing info in the + /// response proto. + /// Will use the conversion rate as of start_time. + /// Optional. If not specified USD will be used. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -471,11 +780,11 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListSkusResponse> list(core.String parent, - {core.String currencyCode, - core.String endTime, + {core.String endTime, core.String pageToken, core.String startTime, core.int pageSize, + core.String currencyCode, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -487,9 +796,6 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (currencyCode != null) { - _queryParams["currencyCode"] = [currencyCode]; - } if (endTime != null) { _queryParams["endTime"] = [endTime]; } @@ -502,6 +808,9 @@ if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (currencyCode != null) { + _queryParams["currencyCode"] = [currencyCode]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -569,15 +878,168 @@ } } -/// A billing account in [Google Cloud -/// Console](https://console.cloud.google.com/). You can assign a billing -/// account -/// to one or more projects. +/// Specifies the audit configuration for a service. +/// The configuration determines which permission types are logged, and what +/// identities, if any, are exempted from logging. +/// An AuditConfig must have one or more AuditLogConfigs. +/// +/// If there are AuditConfigs for both `allServices` and a specific service, +/// the union of the two AuditConfigs is used for that service: the log_types +/// specified in each AuditConfig are enabled, and the exempted_members in each +/// AuditLogConfig are exempted. +/// +/// Example Policy with multiple AuditConfigs: +/// +/// { +/// "audit_configs": [ +/// { +/// "service": "allServices" +/// "audit_log_configs": [ +/// { +/// "log_type": "DATA_READ", +/// "exempted_members": [ +/// "user:foo@gmail.com" +/// ] +/// }, +/// { +/// "log_type": "DATA_WRITE", +/// }, +/// { +/// "log_type": "ADMIN_READ", +/// } +/// ] +/// }, +/// { +/// "service": "fooservice.googleapis.com" +/// "audit_log_configs": [ +/// { +/// "log_type": "DATA_READ", +/// }, +/// { +/// "log_type": "DATA_WRITE", +/// "exempted_members": [ +/// "user:bar@gmail.com" +/// ] +/// } +/// ] +/// } +/// ] +/// } +/// +/// For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ +/// logging. It also exempts foo@gmail.com from DATA_READ logging, and +/// bar@gmail.com from DATA_WRITE logging. +class AuditConfig { + /// The configuration for logging of each type of permission. + core.List<AuditLogConfig> auditLogConfigs; + + /// Specifies a service that will be enabled for audit logging. + /// For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + /// `allServices` is a special value that covers all services. + core.String service; + + AuditConfig(); + + AuditConfig.fromJson(core.Map _json) { + if (_json.containsKey("auditLogConfigs")) { + auditLogConfigs = (_json["auditLogConfigs"] as core.List) + .map<AuditLogConfig>((value) => new AuditLogConfig.fromJson(value)) + .toList(); + } + if (_json.containsKey("service")) { + service = _json["service"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (auditLogConfigs != null) { + _json["auditLogConfigs"] = + auditLogConfigs.map((value) => (value).toJson()).toList(); + } + if (service != null) { + _json["service"] = service; + } + return _json; + } +} + +/// Provides the configuration for logging a type of permissions. +/// Example: +/// +/// { +/// "audit_log_configs": [ +/// { +/// "log_type": "DATA_READ", +/// "exempted_members": [ +/// "user:foo@gmail.com" +/// ] +/// }, +/// { +/// "log_type": "DATA_WRITE", +/// } +/// ] +/// } +/// +/// This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting +/// foo@gmail.com from DATA_READ logging. +class AuditLogConfig { + /// Specifies the identities that do not cause logging for this type of + /// permission. + /// Follows the same format of Binding.members. + core.List<core.String> exemptedMembers; + + /// The log type that this config enables. + /// Possible string values are: + /// - "LOG_TYPE_UNSPECIFIED" : Default case. Should never be this. + /// - "ADMIN_READ" : Admin reads. Example: CloudIAM getIamPolicy + /// - "DATA_WRITE" : Data writes. Example: CloudSQL Users create + /// - "DATA_READ" : Data reads. Example: CloudSQL Users list + core.String logType; + + AuditLogConfig(); + + AuditLogConfig.fromJson(core.Map _json) { + if (_json.containsKey("exemptedMembers")) { + exemptedMembers = + (_json["exemptedMembers"] as core.List).cast<core.String>(); + } + if (_json.containsKey("logType")) { + logType = _json["logType"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (exemptedMembers != null) { + _json["exemptedMembers"] = exemptedMembers; + } + if (logType != null) { + _json["logType"] = logType; + } + return _json; + } +} + +/// A billing account in [GCP Console](https://console.cloud.google.com/). +/// You can assign a billing account to one or more projects. class BillingAccount { /// The display name given to the billing account, such as `My Billing - /// Account`. This name is displayed in the Google Cloud Console. + /// Account`. This name is displayed in the GCP Console. core.String displayName; + /// If this account is a + /// [subaccount](https://cloud.google.com/billing/docs/concepts), then this + /// will be the resource name of the master billing account that it is being + /// resold through. + /// Otherwise this will be empty. + /// + /// > This field is currently in + /// > [Beta](https://cloud.google.com/terms/launch-stages). + core.String masterBillingAccount; + /// The resource name of the billing account. The resource name has the form /// `billingAccounts/{billing_account_id}`. For example, /// `billingAccounts/012345-567890-ABCDEF` would be the resource name for @@ -595,6 +1057,9 @@ if (_json.containsKey("displayName")) { displayName = _json["displayName"]; } + if (_json.containsKey("masterBillingAccount")) { + masterBillingAccount = _json["masterBillingAccount"]; + } if (_json.containsKey("name")) { name = _json["name"]; } @@ -609,6 +1074,9 @@ if (displayName != null) { _json["displayName"] = displayName; } + if (masterBillingAccount != null) { + _json["masterBillingAccount"] = masterBillingAccount; + } if (name != null) { _json["name"] = name; } @@ -619,6 +1087,61 @@ } } +/// 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`. + /// Required + core.String role; + + Binding(); + + Binding.fromJson(core.Map _json) { + if (_json.containsKey("members")) { + members = (_json["members"] as core.List).cast<core.String>(); + } + if (_json.containsKey("role")) { + role = _json["role"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (members != null) { + _json["members"] = members; + } + if (role != null) { + _json["role"] = role; + } + return _json; + } +} + /// Represents the category hierarchy of a SKU. class Category { /// The type of product the SKU refers to. @@ -868,6 +1391,112 @@ } } +/// 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/docs). +class Policy { + /// Specifies cloud audit logging configuration for this policy. + core.List<AuditConfig> auditConfigs; + + /// Associates a list of `members` to a `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("+", "-"); + } + + /// Deprecated. + core.int version; + + Policy(); + + Policy.fromJson(core.Map _json) { + if (_json.containsKey("auditConfigs")) { + auditConfigs = (_json["auditConfigs"] as core.List) + .map<AuditConfig>((value) => new AuditConfig.fromJson(value)) + .toList(); + } + if (_json.containsKey("bindings")) { + bindings = (_json["bindings"] as core.List) + .map<Binding>((value) => new Binding.fromJson(value)) + .toList(); + } + if (_json.containsKey("etag")) { + etag = _json["etag"]; + } + if (_json.containsKey("version")) { + version = _json["version"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + 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 (version != null) { + _json["version"] = version; + } + return _json; + } +} + /// Expresses a mathematical pricing formula. For Example:- /// /// `usage_unit: GBy` @@ -1047,7 +1676,7 @@ } } -/// Encapsulation of billing information for a Cloud Console project. A project +/// Encapsulation of billing information for a GCP Console project. A project /// has at most one associated billing account at a time (but a billing account /// can be assigned to multiple projects). class ProjectBillingInfo { @@ -1152,6 +1781,46 @@ } } +/// Request message for `SetIamPolicy` method. +class SetIamPolicyRequest { + /// REQUIRED: The complete policy to be applied to the `resource`. The size of + /// the policy is limited to a few 10s of KB. An empty policy is a + /// valid policy but certain Cloud Platform services (such as Projects) + /// might reject them. + Policy policy; + + /// OPTIONAL: A FieldMask specifying which fields of the policy to modify. + /// Only + /// the fields in the mask will be modified. If no mask is provided, the + /// following default mask is used: + /// paths: "bindings, etag" + /// This field is only used by Cloud IAM. + core.String updateMask; + + SetIamPolicyRequest(); + + SetIamPolicyRequest.fromJson(core.Map _json) { + if (_json.containsKey("policy")) { + policy = new Policy.fromJson(_json["policy"]); + } + if (_json.containsKey("updateMask")) { + updateMask = _json["updateMask"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (policy != null) { + _json["policy"] = (policy).toJson(); + } + if (updateMask != null) { + _json["updateMask"] = updateMask; + } + return _json; + } +} + /// Encapsulates a single SKU in Google Cloud Platform class Sku { /// The category hierarchy of this SKU, purely for organizational purpose. @@ -1239,6 +1908,56 @@ } } +/// Request message for `TestIamPermissions` method. +class TestIamPermissionsRequest { + /// The set of permissions to check for the `resource`. Permissions with + /// wildcards (such as '*' or 'storage.*') are not allowed. For more + /// information see + /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + core.List<core.String> permissions; + + TestIamPermissionsRequest(); + + TestIamPermissionsRequest.fromJson(core.Map _json) { + if (_json.containsKey("permissions")) { + permissions = (_json["permissions"] as core.List).cast<core.String>(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (permissions != null) { + _json["permissions"] = permissions; + } + return _json; + } +} + +/// Response message for `TestIamPermissions` method. +class TestIamPermissionsResponse { + /// A subset of `TestPermissionsRequest.permissions` that the caller is + /// allowed. + core.List<core.String> permissions; + + TestIamPermissionsResponse(); + + TestIamPermissionsResponse.fromJson(core.Map _json) { + if (_json.containsKey("permissions")) { + permissions = (_json["permissions"] as core.List).cast<core.String>(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (permissions != null) { + _json["permissions"] = permissions; + } + return _json; + } +} + /// The price rate indicating starting usage and its corresponding price. class TierRate { /// Usage is priced at this rate only after this amount.
diff --git a/generated/googleapis/lib/cloudbuild/v1.dart b/generated/googleapis/lib/cloudbuild/v1.dart index 2cd7f04..aa7d64f 100644 --- a/generated/googleapis/lib/cloudbuild/v1.dart +++ b/generated/googleapis/lib/cloudbuild/v1.dart
@@ -159,12 +159,12 @@ /// [name] - The name of the operation's parent resource. /// Value must have pattern "^operations$". /// - /// [filter] - The standard list filter. - /// /// [pageToken] - The standard list page token. /// /// [pageSize] - The standard list page size. /// + /// [filter] - The standard list filter. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -176,9 +176,9 @@ /// 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.String filter, - core.String pageToken, + {core.String pageToken, core.int pageSize, + core.String filter, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -190,15 +190,15 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -231,7 +231,7 @@ ProjectsBuildsResourceApi(commons.ApiRequester client) : _requester = client; - /// Cancels a requested build in progress. + /// Cancels a build in progress. /// /// [request] - The metadata request object. /// @@ -291,9 +291,9 @@ /// Starts a build with the specified configuration. /// - /// The long-running Operation returned by this method will include the ID of - /// the build, which can be passed to GetBuild to determine its status (e.g., - /// success or failure). + /// This method returns a long-running `Operation`, which includes the build + /// ID. Pass the build ID to `GetBuild` to determine the build status (such as + /// `SUCCESS` or `FAILURE`). /// /// [request] - The metadata request object. /// @@ -345,8 +345,8 @@ /// Returns information about a previously requested build. /// - /// The Build that is returned includes its status (e.g., success or failure, - /// or in-progress), and timing information. + /// The `Build` that is returned includes its status (such as `SUCCESS`, + /// `FAILURE`, or `WORKING`), and timing information. /// /// Request parameters: /// @@ -406,12 +406,12 @@ /// /// [projectId] - ID of the project. /// + /// [filter] - The raw filter text to constrain the results. + /// /// [pageToken] - Token to provide to skip to a particular spot in the list. /// /// [pageSize] - Number of results to return in the list. /// - /// [filter] - The raw filter text to constrain the results. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -423,9 +423,9 @@ /// 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.String pageToken, + {core.String filter, + core.String pageToken, core.int pageSize, - core.String filter, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -437,15 +437,15 @@ if (projectId == null) { throw new core.ArgumentError("Parameter projectId is required."); } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -463,18 +463,18 @@ return _response.then((data) => new ListBuildsResponse.fromJson(data)); } - /// Creates a new build based on the given build. + /// Creates a new build based on the specified build. /// - /// This API creates a new build using the original build request, which may + /// This method creates a new build using the original build request, which + /// may /// or may not result in an identical build. /// /// For triggered builds: /// - /// * Triggered builds resolve to a precise revision, so a retry of a - /// triggered - /// build will result in a build that uses the same revision. + /// * Triggered builds resolve to a precise revision; therefore a retry of a + /// triggered build will result in a build that uses the same revision. /// - /// For non-triggered builds that specify RepoSource: + /// For non-triggered builds that specify `RepoSource`: /// /// * If the original build built from the tip of a branch, the retried build /// will build from the tip of that branch, which may not be the same revision @@ -482,12 +482,12 @@ /// * If the original build specified a commit sha or revision ID, the retried /// build will use the identical source. /// - /// For builds that specify StorageSource: + /// For builds that specify `StorageSource`: /// - /// * If the original build pulled source from Cloud Storage without - /// specifying - /// the generation of the object, the new build will use the current object, - /// which may be different from the original build source. + /// * If the original build pulled source from Google Cloud Storage without + /// specifying the generation of the object, the new build will use the + /// current + /// object, which may be different from the original build source. /// * If the original build pulled source from Cloud Storage and specified the /// generation of the object, the new build will attempt to use the same /// object, which may or may not be available depending on the bucket's @@ -556,7 +556,7 @@ ProjectsTriggersResourceApi(commons.ApiRequester client) : _requester = client; - /// Creates a new BuildTrigger. + /// Creates a new `BuildTrigger`. /// /// This API is experimental. /// @@ -608,7 +608,7 @@ return _response.then((data) => new BuildTrigger.fromJson(data)); } - /// Deletes an BuildTrigger by its project ID and trigger ID. + /// Deletes a `BuildTrigger` by its project ID and trigger ID. /// /// This API is experimental. /// @@ -616,7 +616,7 @@ /// /// [projectId] - ID of the project that owns the trigger. /// - /// [triggerId] - ID of the BuildTrigger to delete. + /// [triggerId] - ID of the `BuildTrigger` to delete. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -661,7 +661,7 @@ return _response.then((data) => new Empty.fromJson(data)); } - /// Gets information about a BuildTrigger. + /// Returns information about a `BuildTrigger`. /// /// This API is experimental. /// @@ -669,7 +669,7 @@ /// /// [projectId] - ID of the project that owns the trigger. /// - /// [triggerId] - ID of the BuildTrigger to get. + /// [triggerId] - ID of the `BuildTrigger` to get. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -714,7 +714,7 @@ return _response.then((data) => new BuildTrigger.fromJson(data)); } - /// Lists existing BuildTrigger. + /// Lists existing `BuildTrigger`s. /// /// This API is experimental. /// @@ -762,7 +762,7 @@ .then((data) => new ListBuildTriggersResponse.fromJson(data)); } - /// Updates an BuildTrigger by its project ID and trigger ID. + /// Updates a `BuildTrigger` by its project ID and trigger ID. /// /// This API is experimental. /// @@ -772,7 +772,7 @@ /// /// [projectId] - ID of the project that owns the trigger. /// - /// [triggerId] - ID of the BuildTrigger to update. + /// [triggerId] - ID of the `BuildTrigger` to update. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -821,7 +821,7 @@ return _response.then((data) => new BuildTrigger.fromJson(data)); } - /// Runs a BuildTrigger at a particular source revision. + /// Runs a `BuildTrigger` at a particular source revision. /// /// [request] - The metadata request object. /// @@ -880,13 +880,149 @@ } } +/// Files in the workspace to upload to Cloud Storage upon successful +/// completion of all build steps. +class ArtifactObjects { + /// Cloud Storage bucket and optional object path, in the form + /// "gs://bucket/path/to/somewhere/". (see [Bucket Name + /// Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). + /// + /// Files in the workspace matching any path pattern will be uploaded to + /// Cloud Storage with this location as a prefix. + core.String location; + + /// Path globs used to match files in the build's workspace. + core.List<core.String> paths; + + /// Stores timing information for pushing all artifact objects. + /// @OutputOnly + TimeSpan timing; + + ArtifactObjects(); + + ArtifactObjects.fromJson(core.Map _json) { + if (_json.containsKey("location")) { + location = _json["location"]; + } + if (_json.containsKey("paths")) { + paths = (_json["paths"] as core.List).cast<core.String>(); + } + if (_json.containsKey("timing")) { + timing = new TimeSpan.fromJson(_json["timing"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (location != null) { + _json["location"] = location; + } + if (paths != null) { + _json["paths"] = paths; + } + if (timing != null) { + _json["timing"] = (timing).toJson(); + } + return _json; + } +} + +/// An artifact that was uploaded during a build. This +/// is a single record in the artifact manifest JSON file. +class ArtifactResult { + /// The file hash of the artifact. + core.List<FileHashes> fileHash; + + /// The path of an artifact in a Google Cloud Storage bucket, with the + /// generation number. For example, + /// `gs://mybucket/path/to/output.jar#generation`. + core.String location; + + ArtifactResult(); + + ArtifactResult.fromJson(core.Map _json) { + if (_json.containsKey("fileHash")) { + fileHash = (_json["fileHash"] as core.List) + .map<FileHashes>((value) => new FileHashes.fromJson(value)) + .toList(); + } + if (_json.containsKey("location")) { + location = _json["location"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (fileHash != null) { + _json["fileHash"] = fileHash.map((value) => (value).toJson()).toList(); + } + if (location != null) { + _json["location"] = location; + } + return _json; + } +} + +/// Artifacts produced by a build that should be uploaded upon +/// successful completion of all build steps. +class Artifacts { + /// 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; + + /// A list of objects to be uploaded to Cloud Storage upon successful + /// completion of all build steps. + /// + /// Files in the workspace matching specified paths globs will be uploaded to + /// the specified Cloud Storage location using the builder service account's + /// credentials. + /// + /// The location and generation of the uploaded objects will be stored in the + /// Build resource's results field. + /// + /// If any objects fail to be pushed, the build is marked FAILURE. + ArtifactObjects objects; + + Artifacts(); + + Artifacts.fromJson(core.Map _json) { + if (_json.containsKey("images")) { + images = (_json["images"] as core.List).cast<core.String>(); + } + if (_json.containsKey("objects")) { + objects = new ArtifactObjects.fromJson(_json["objects"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (images != null) { + _json["images"] = images; + } + if (objects != null) { + _json["objects"] = (objects).toJson(); + } + return _json; + } +} + /// A build resource in the Container Builder API. /// -/// 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. +/// 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 where to store +/// the built artifacts. /// -/// Fields can include the following variables which will be expanded when the +/// Fields can include the following variables, which will be expanded when the /// build is created: /// /// - $PROJECT_ID: the project ID of the build. @@ -898,7 +1034,11 @@ /// resolved from the specified branch or tag. /// - $SHORT_SHA: first 7 characters of $REVISION_ID or $COMMIT_SHA. class Build { - /// The ID of the BuildTrigger that triggered this build, if it was + /// Artifacts produced by the build that should be uploaded upon + /// successful completion of all build steps. + Artifacts artifacts; + + /// The ID of the `BuildTrigger` that triggered this build, if it was /// triggered automatically. /// @OutputOnly core.String buildTriggerId; @@ -921,12 +1061,13 @@ /// A list of images to be pushed upon the successful completion of all build /// steps. /// - /// The images will be pushed using the builder service account's credentials. + /// The images are pushed using the builder service account's credentials. /// - /// The digests of the pushed images will be stored in the Build resource's + /// 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. + /// If any of the images fail to be pushed, the build status is marked + /// `FAILURE`. core.List<core.String> images; /// URL to logs for this build in Google Cloud Console. @@ -951,10 +1092,10 @@ /// @OutputOnly Results results; - /// Secrets to decrypt using Cloud KMS. + /// Secrets to decrypt using Cloud Key Management Service. core.List<Secret> secrets; - /// Describes where to find the source files to build. + /// The location of the source files to build. Source source; /// A permanent fixed identifier for source. @@ -969,31 +1110,31 @@ /// @OutputOnly /// Possible string values are: /// - "STATUS_UNKNOWN" : Status of the build is unknown. - /// - "QUEUED" : Build is queued; work has not yet begun. - /// - "WORKING" : Build is being executed. - /// - "SUCCESS" : Build finished successfully. - /// - "FAILURE" : Build failed to complete successfully. - /// - "INTERNAL_ERROR" : Build failed due to an internal cause. - /// - "TIMEOUT" : Build took longer than was allowed. - /// - "CANCELLED" : Build was canceled by a user. + /// - "QUEUED" : Build or step is queued; work has not yet begun. + /// - "WORKING" : Build or step is being executed. + /// - "SUCCESS" : Build or step finished successfully. + /// - "FAILURE" : Build or step failed to complete successfully. + /// - "INTERNAL_ERROR" : Build or step failed due to an internal cause. + /// - "TIMEOUT" : Build or step took longer than was allowed. + /// - "CANCELLED" : Build or step was canceled by a user. core.String status; /// Customer-readable message about the current status. /// @OutputOnly core.String statusDetail; - /// Describes the operations to be performed on the workspace. + /// Required. The operations to be performed on the workspace. core.List<BuildStep> steps; - /// Substitutions data for Build resource. + /// Substitutions data for `Build` resource. core.Map<core.String, core.String> substitutions; - /// Tags for annotation of a Build. These are not docker tags. + /// Tags for annotation of a `Build`. These are not docker tags. core.List<core.String> tags; /// Amount of time that this build should be allowed to run, to second /// granularity. If this amount of time elapses, work on the build will cease - /// and the build status will be TIMEOUT. + /// and the build status will be `TIMEOUT`. /// /// Default time is ten minutes. core.String timeout; @@ -1004,7 +1145,7 @@ /// * PUSH: time to push all specified images. /// * FETCHSOURCE: time to fetch source. /// - /// If the build does not specify source, or does not specify images, + /// If the build does not specify source or images, /// these keys will not be included. /// @OutputOnly core.Map<core.String, TimeSpan> timing; @@ -1012,6 +1153,9 @@ Build(); Build.fromJson(core.Map _json) { + if (_json.containsKey("artifacts")) { + artifacts = new Artifacts.fromJson(_json["artifacts"]); + } if (_json.containsKey("buildTriggerId")) { buildTriggerId = _json["buildTriggerId"]; } @@ -1088,6 +1232,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (artifacts != null) { + _json["artifacts"] = (artifacts).toJson(); + } if (buildTriggerId != null) { _json["buildTriggerId"] = buildTriggerId; } @@ -1192,7 +1339,7 @@ /// more than the maximum are rejected with an error. core.String diskSizeGb; - /// LogStreamingOption to define build log streaming behavior to Google Cloud + /// Option to define build log streaming behavior to Google Cloud /// Storage. /// Possible string values are: /// - "STREAM_DEFAULT" : Service may automatically determine build log @@ -1219,7 +1366,8 @@ /// Requested hash for SourceProvenance. core.List<core.String> sourceProvenanceHash; - /// SubstitutionOption to allow unmatch substitutions. + /// Option to specify behavior when there is an error in the substitution + /// checks. /// Possible string values are: /// - "MUST_MATCH" : Fails the build if error in substitutions checks, like /// missing @@ -1276,14 +1424,14 @@ } } -/// BuildStep describes a step to perform in the build pipeline. +/// A step in the build pipeline. class BuildStep { /// 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, + /// If the image used to run the step's container has an entrypoint, the + /// `args` + /// are used as arguments to that entrypoint. If the image does not define + /// an entrypoint, the first element in args is used as the entrypoint, /// and the remainder will be used as arguments. core.List<core.String> args; @@ -1293,15 +1441,17 @@ /// directory. If this value is absolute, it may be outside the build's /// working /// directory, in which case the contents of the path may not be persisted - /// across build step executions, unless a volume for that path is specified. + /// across build step executions, unless a `volume` for that path is + /// specified. /// - /// If the build specifies a RepoSource with dir and a step with a dir which - /// specifies an absolute path, the RepoSource dir is ignored for the step's - /// execution. + /// If the build specifies a `RepoSource` with `dir` and a step with a `dir`, + /// which specifies an absolute path, the `RepoSource` `dir` is ignored for + /// the step's execution. core.String dir; - /// Optional entrypoint to be used instead of the build step image's default - /// If unset, the image's default will be used. + /// Entrypoint to be used instead of the build step image's default + /// entrypoint. + /// If unset, the image's default entrypoint is used. core.String entrypoint; /// A list of environment variable definitions to be used when running a step. @@ -1311,13 +1461,14 @@ /// being given the value "VALUE". core.List<core.String> env; - /// Optional unique identifier for this build step, used in wait_for to + /// Unique identifier for this build step, used in `wait_for` to /// reference this build step as a dependency. core.String id; - /// The name of the container image that will run this particular build step. + /// Required. 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 + /// If the image is 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. /// @@ -1335,10 +1486,32 @@ /// later build step. core.String name; - /// A list of environment variables which are encrypted using a Cloud KMS - /// crypto key. These values must be specified in the build's secrets. + /// A list of environment variables which are encrypted using a Cloud Key + /// Management Service crypto key. These values must be specified in the + /// build's `Secret`. core.List<core.String> secretEnv; + /// Status of the build step. At this time, build step status is only updated + /// on build completion; step status is not updated in real-time as the build + /// progresses. + /// @OutputOnly + /// Possible string values are: + /// - "STATUS_UNKNOWN" : Status of the build is unknown. + /// - "QUEUED" : Build or step is queued; work has not yet begun. + /// - "WORKING" : Build or step is being executed. + /// - "SUCCESS" : Build or step finished successfully. + /// - "FAILURE" : Build or step failed to complete successfully. + /// - "INTERNAL_ERROR" : Build or step failed due to an internal cause. + /// - "TIMEOUT" : Build or step took longer than was allowed. + /// - "CANCELLED" : Build or step was canceled by a user. + core.String status; + + /// Time limit for executing this build step. If not defined, the step has no + /// time limit and will be allowed to continue to run until either it + /// completes + /// or the build itself times out. + core.String timeout; + /// Stores timing information for executing this build step. /// @OutputOnly TimeSpan timing; @@ -1354,10 +1527,10 @@ core.List<Volume> volumes; /// The ID(s) of the step(s) that this build step depends on. - /// This build step will not start until all the build steps in wait_for - /// have completed successfully. If wait_for is empty, this build step will - /// start when all previous build steps in the Build.Steps list have completed - /// successfully. + /// This build step will not start until all the build steps in `wait_for` + /// have completed successfully. If `wait_for` is empty, this build step will + /// start when all previous build steps in the `Build.Steps` list have + /// completed successfully. core.List<core.String> waitFor; BuildStep(); @@ -1384,6 +1557,12 @@ if (_json.containsKey("secretEnv")) { secretEnv = (_json["secretEnv"] as core.List).cast<core.String>(); } + if (_json.containsKey("status")) { + status = _json["status"]; + } + if (_json.containsKey("timeout")) { + timeout = _json["timeout"]; + } if (_json.containsKey("timing")) { timing = new TimeSpan.fromJson(_json["timing"]); } @@ -1421,6 +1600,12 @@ if (secretEnv != null) { _json["secretEnv"] = secretEnv; } + if (status != null) { + _json["status"] = status; + } + if (timeout != null) { + _json["timeout"] = timeout; + } if (timing != null) { _json["timing"] = (timing).toJson(); } @@ -1531,7 +1716,7 @@ } } -/// BuiltImage describes an image built by the pipeline. +/// An image built by the pipeline. class BuiltImage { /// Docker Registry 2.0 digest. core.String digest; @@ -1653,6 +1838,7 @@ /// Possible string values are: /// - "NONE" : No hash requested. /// - "SHA256" : Use a sha256 hash. + /// - "MD5" : Use a md5 hash. core.String type; /// The hash value. @@ -1690,9 +1876,9 @@ } } -/// Response containing existing BuildTriggers. +/// Response containing existing `BuildTriggers`. class ListBuildTriggersResponse { - /// BuildTriggers for the project, sorted by create_time descending. + /// `BuildTriggers` for the project, sorted by `create_time` descending. core.List<BuildTrigger> triggers; ListBuildTriggersResponse(); @@ -1717,7 +1903,7 @@ /// Response including listed builds. class ListBuildsResponse { - /// Builds will be sorted by create_time, descending. + /// Builds will be sorted by `create_time`, descending. core.List<Build> builds; /// Token to receive the next page of results. @@ -1867,8 +2053,7 @@ } } -/// RepoSource describes the location of the source in a Google Cloud Source -/// Repository. +/// Location of the source in a Google Cloud Source Repository. class RepoSource { /// Name of the branch to build. core.String branchName; @@ -1878,16 +2063,16 @@ /// Directory, relative to the source root, in which to run the build. /// - /// This must be a relative path. If a step's dir is specified and is an + /// This must be a relative path. If a step's `dir` is specified and is an /// absolute path, this value is ignored for that step's execution. core.String dir; - /// ID of the project that owns the repo. If omitted, the project ID - /// requesting - /// the build is assumed. + /// ID of the project that owns the Cloud Source Repository. If omitted, the + /// project ID requesting the build is assumed. core.String projectId; - /// Name of the repo. If omitted, the name "default" is assumed. + /// Name of the Cloud Source Repository. If omitted, the name "default" is + /// assumed. core.String repoName; /// Name of the tag to build. @@ -1941,17 +2126,27 @@ } } -/// Results describes the artifacts created by the build pipeline. +/// Artifacts created by the build pipeline. class Results { - /// List of build step digests, in order corresponding to build step indices. + /// Path to the artifact manifest. Only populated when artifacts are uploaded. + core.String artifactManifest; + + /// List of build step digests, in the order corresponding to build step + /// indices. core.List<core.String> buildStepImages; - /// Images that were built as a part of the build. + /// Container images that were built as a part of the build. core.List<BuiltImage> images; + /// Number of artifacts uploaded. Only populated when artifacts are uploaded. + core.String numArtifacts; + Results(); Results.fromJson(core.Map _json) { + if (_json.containsKey("artifactManifest")) { + artifactManifest = _json["artifactManifest"]; + } if (_json.containsKey("buildStepImages")) { buildStepImages = (_json["buildStepImages"] as core.List).cast<core.String>(); @@ -1961,22 +2156,31 @@ .map<BuiltImage>((value) => new BuiltImage.fromJson(value)) .toList(); } + if (_json.containsKey("numArtifacts")) { + numArtifacts = _json["numArtifacts"]; + } } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (artifactManifest != null) { + _json["artifactManifest"] = artifactManifest; + } if (buildStepImages != null) { _json["buildStepImages"] = buildStepImages; } if (images != null) { _json["images"] = images.map((value) => (value).toJson()).toList(); } + if (numArtifacts != null) { + _json["numArtifacts"] = numArtifacts; + } return _json; } } -/// RetryBuildRequest specifies a build to retry. +/// Specifies a build to retry. class RetryBuildRequest { RetryBuildRequest(); @@ -1989,7 +2193,7 @@ } } -/// Secret pairs a set of secret environment variables containing encrypted +/// Pairs a set of secret environment variables containing encrypted /// values with the Cloud KMS key to use to decrypt the value. class Secret { /// Cloud KMS key name to use to decrypt these envs. @@ -2029,10 +2233,10 @@ } } -/// Source describes the location of the source in a supported storage -/// service. +/// Location of the source in a supported storage service. class Source { - /// If provided, get source from this location in a Cloud Repo. + /// If provided, get the source from this location in a Cloud Source + /// Repository. RepoSource repoSource; /// If provided, get the source from this location in Google Cloud Storage. @@ -2067,22 +2271,23 @@ class SourceProvenance { /// Hash(es) of the build source, which can be used to verify that the /// original - /// source integrity was maintained in the build. Note that FileHashes will - /// only be populated if BuildOptions has requested a SourceProvenanceHash. + /// source integrity was maintained in the build. Note that `FileHashes` will + /// only be populated if `BuildOptions` has requested a + /// `SourceProvenanceHash`. /// /// The keys to this map are file paths used as build source and the values /// contain the hash values for those files. /// /// If the build source came in a single package such as a gzipped tarfile - /// (.tar.gz), the FileHash will be for the single path to that file. + /// (`.tar.gz`), the `FileHash` will be for the single path to that file. /// @OutputOnly core.Map<core.String, FileHashes> fileHashes; - /// A copy of the build's source.repo_source, if exists, with any + /// A copy of the build's `source.repo_source`, if exists, with any /// revisions resolved. RepoSource resolvedRepoSource; - /// A copy of the build's source.storage_source, if exists, with any + /// A copy of the build's `source.storage_source`, if exists, with any /// generations resolved. StorageSource resolvedStorageSource; @@ -2226,10 +2431,9 @@ } } -/// StorageSource describes the location of the source in an archive file in -/// Google Cloud Storage. +/// Location of the source in an archive file in Google Cloud Storage. class StorageSource { - /// Google Cloud Storage bucket containing source (see + /// Google Cloud Storage bucket containing the source (see /// [Bucket Name /// Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). core.String bucket; @@ -2238,9 +2442,10 @@ /// omitted, the latest generation will be used. core.String generation; - /// Google Cloud Storage object containing source. + /// Google Cloud Storage object containing the source. /// - /// This object must be a gzipped archive file (.tar.gz) containing source to + /// This object must be a gzipped archive file (`.tar.gz`) containing source + /// to /// build. core.String object; @@ -2274,7 +2479,7 @@ } } -/// Stores start and end times for a build execution phase. +/// Start and end times for a build execution phase. class TimeSpan { /// End of time span. core.String endTime;
diff --git a/generated/googleapis/lib/clouddebugger/v2.dart b/generated/googleapis/lib/clouddebugger/v2.dart index 9e0c328..dc640fb 100644 --- a/generated/googleapis/lib/clouddebugger/v2.dart +++ b/generated/googleapis/lib/clouddebugger/v2.dart
@@ -138,6 +138,12 @@ /// /// [debuggeeId] - Identifies the debuggee. /// + /// [waitToken] - A token that, if specified, blocks the method call until the + /// list + /// of active breakpoints has changed, or a server-selected timeout has + /// expired. The value should be set from the `next_wait_token` field in + /// the last response. The initial value should be set to `"init"`. + /// /// [successOnTimeout] - If set to `true` (recommended), returns /// `google.rpc.Code.OK` status and /// sets the `wait_expired` response field to `true` when the server-selected @@ -146,12 +152,6 @@ /// If set to `false` (deprecated), returns `google.rpc.Code.ABORTED` status /// when the server-selected timeout has expired. /// - /// [waitToken] - A token that, if specified, blocks the method call until the - /// list - /// of active breakpoints has changed, or a server-selected timeout has - /// expired. The value should be set from the `next_wait_token` field in - /// the last response. The initial value should be set to `"init"`. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -163,8 +163,8 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListActiveBreakpointsResponse> list(core.String debuggeeId, - {core.bool successOnTimeout, - core.String waitToken, + {core.String waitToken, + core.bool successOnTimeout, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -176,12 +176,12 @@ if (debuggeeId == null) { throw new core.ArgumentError("Parameter debuggeeId is required."); } - if (successOnTimeout != null) { - _queryParams["successOnTimeout"] = ["${successOnTimeout}"]; - } if (waitToken != null) { _queryParams["waitToken"] = [waitToken]; } + if (successOnTimeout != null) { + _queryParams["successOnTimeout"] = ["${successOnTimeout}"]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -290,6 +290,9 @@ /// /// Request parameters: /// + /// [clientVersion] - The client version making the call. + /// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). + /// /// [includeInactive] - When set to `true`, the result includes all debuggees. /// Otherwise, the /// result includes only debuggees that are active. @@ -297,9 +300,6 @@ /// [project] - Project number of a Google Cloud project whose debuggees to /// list. /// - /// [clientVersion] - The client version making the call. - /// Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -311,9 +311,9 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListDebuggeesResponse> list( - {core.bool includeInactive, + {core.String clientVersion, + core.bool includeInactive, core.String project, - core.String clientVersion, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -322,15 +322,15 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (clientVersion != null) { + _queryParams["clientVersion"] = [clientVersion]; + } if (includeInactive != null) { _queryParams["includeInactive"] = ["${includeInactive}"]; } if (project != null) { _queryParams["project"] = [project]; } - if (clientVersion != null) { - _queryParams["clientVersion"] = [clientVersion]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -733,7 +733,8 @@ /// `expressions` = `[ message.id, message.count ]`. core.String logMessageFormat; - /// The stack at breakpoint time. + /// The stack at breakpoint time, where stack_frames[0] represents the most + /// recently entered function. core.List<StackFrame> stackFrames; /// Breakpoint status.
diff --git a/generated/googleapis/lib/cloudfunctions/v1.dart b/generated/googleapis/lib/cloudfunctions/v1.dart index 3207fff..f574561 100644 --- a/generated/googleapis/lib/cloudfunctions/v1.dart +++ b/generated/googleapis/lib/cloudfunctions/v1.dart
@@ -16,8 +16,7 @@ const core.String USER_AGENT = 'dart-api-client cloudfunctions/v1'; -/// API for managing lightweight user-provided functions executed in response to -/// events. +/// Manages lightweight user-provided functions executed in response to events. class CloudfunctionsApi { /// View and manage your data across Google Cloud Platform services static const CloudPlatformScope = @@ -476,7 +475,7 @@ /// When making a HTTP PUT request, these two headers need to be specified: /// /// * `content-type: application/zip` - /// * `x-google-content-length-range: 0,104857600` + /// * `x-goog-content-length-range: 0,104857600` /// /// [request] - The metadata request object. /// @@ -793,6 +792,10 @@ /// globally and match pattern `projects / * /locations / * /functions / * ` core.String name; + /// The runtime in which the function is going to run. If empty, defaults to + /// Node.js 6. + core.String runtime; + /// Output only. The email of the function's service account. core.String serviceAccountEmail; @@ -858,6 +861,9 @@ if (_json.containsKey("name")) { name = _json["name"]; } + if (_json.containsKey("runtime")) { + runtime = _json["runtime"]; + } if (_json.containsKey("serviceAccountEmail")) { serviceAccountEmail = _json["serviceAccountEmail"]; } @@ -909,6 +915,9 @@ if (name != null) { _json["name"] = name; } + if (runtime != null) { + _json["runtime"] = runtime; + } if (serviceAccountEmail != null) { _json["serviceAccountEmail"] = serviceAccountEmail; } @@ -1264,6 +1273,10 @@ /// A resource that represents Google Cloud Platform location. class Location { + /// The friendly name for this location, typically a nearby city name. + /// For example, "Tokyo". + core.String displayName; + /// Cross-service attributes for the location. For example /// /// {"cloud.googleapis.com/region": "us-east1"} @@ -1286,6 +1299,9 @@ Location(); Location.fromJson(core.Map _json) { + if (_json.containsKey("displayName")) { + displayName = _json["displayName"]; + } if (_json.containsKey("labels")) { labels = (_json["labels"] as core.Map).cast<core.String, core.String>(); } @@ -1304,6 +1320,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (displayName != null) { + _json["displayName"] = displayName; + } if (labels != null) { _json["labels"] = labels; }
diff --git a/generated/googleapis/lib/cloudiot/v1.dart b/generated/googleapis/lib/cloudiot/v1.dart index 60ece2d..43a3da6 100644 --- a/generated/googleapis/lib/cloudiot/v1.dart +++ b/generated/googleapis/lib/cloudiot/v1.dart
@@ -61,6 +61,8 @@ ProjectsLocationsRegistriesDevicesResourceApi get devices => new ProjectsLocationsRegistriesDevicesResourceApi(_requester); + ProjectsLocationsRegistriesGroupsResourceApi get groups => + new ProjectsLocationsRegistriesGroupsResourceApi(_requester); ProjectsLocationsRegistriesResourceApi(commons.ApiRequester client) : _requester = client; @@ -274,17 +276,17 @@ /// `projects/example-project/locations/us-central1`. /// Value must have pattern "^projects/[^/]+/locations/[^/]+$". /// - /// [pageToken] - The value returned by the last - /// `ListDeviceRegistriesResponse`; indicates - /// that this is a continuation of a prior `ListDeviceRegistries` call, and - /// that the system should return the next page of data. - /// /// [pageSize] - The maximum number of registries to return in the response. /// If this value /// is zero, the service will select a default size. A call may return fewer /// objects than requested, but if there is a non-empty `page_token`, it /// indicates that more entries are available. /// + /// [pageToken] - The value returned by the last + /// `ListDeviceRegistriesResponse`; indicates + /// that this is a continuation of a prior `ListDeviceRegistries` call, and + /// that the system should return the next page of data. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -296,7 +298,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<ListDeviceRegistriesResponse> list(core.String parent, - {core.String pageToken, core.int pageSize, core.String $fields}) { + {core.int pageSize, core.String pageToken, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -307,12 +309,12 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -685,6 +687,10 @@ /// Value must have pattern /// "^projects/[^/]+/locations/[^/]+/registries/[^/]+$". /// + /// [deviceNumIds] - A list of device numerical ids. If empty, it will ignore + /// this field. This + /// field cannot hold more than 10,000 entries. + /// /// [pageToken] - The value returned by the last `ListDevicesResponse`; /// indicates /// that this is a continuation of a prior `ListDevices` call, and @@ -706,10 +712,6 @@ /// For example, `['device0', 'device12']`. This field cannot hold more than /// 10,000 entries. /// - /// [deviceNumIds] - A list of device numerical ids. If empty, it will ignore - /// this field. This - /// field cannot hold more than 10,000 entries. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -721,11 +723,11 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListDevicesResponse> list(core.String parent, - {core.String pageToken, + {core.List<core.String> deviceNumIds, + core.String pageToken, core.String fieldMask, core.int pageSize, core.List<core.String> deviceIds, - core.List<core.String> deviceNumIds, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -737,6 +739,9 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } + if (deviceNumIds != null) { + _queryParams["deviceNumIds"] = deviceNumIds; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -749,9 +754,6 @@ if (deviceIds != null) { _queryParams["deviceIds"] = deviceIds; } - if (deviceNumIds != null) { - _queryParams["deviceNumIds"] = deviceNumIds; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -843,7 +845,7 @@ /// [updateMask] - Only updates the `device` fields indicated by this mask. /// The field mask must not be empty, and it must not contain fields that /// are immutable or only set by the server. - /// Mutable top-level fields: `credentials`, `enabled_state`, and `metadata` + /// Mutable top-level fields: `credentials`, `blocked`, and `metadata` /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1023,149 +1025,555 @@ } } -/// Specifies the audit configuration for a service. -/// The configuration determines which permission types are logged, and what -/// identities, if any, are exempted from logging. -/// An AuditConfig must have one or more AuditLogConfigs. -/// -/// If there are AuditConfigs for both `allServices` and a specific service, -/// the union of the two AuditConfigs is used for that service: the log_types -/// specified in each AuditConfig are enabled, and the exempted_members in each -/// AuditLogConfig are exempted. -/// -/// Example Policy with multiple AuditConfigs: -/// -/// { -/// "audit_configs": [ -/// { -/// "service": "allServices" -/// "audit_log_configs": [ -/// { -/// "log_type": "DATA_READ", -/// "exempted_members": [ -/// "user:foo@gmail.com" -/// ] -/// }, -/// { -/// "log_type": "DATA_WRITE", -/// }, -/// { -/// "log_type": "ADMIN_READ", -/// } -/// ] -/// }, -/// { -/// "service": "fooservice.googleapis.com" -/// "audit_log_configs": [ -/// { -/// "log_type": "DATA_READ", -/// }, -/// { -/// "log_type": "DATA_WRITE", -/// "exempted_members": [ -/// "user:bar@gmail.com" -/// ] -/// } -/// ] -/// } -/// ] -/// } -/// -/// For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ -/// logging. It also exempts foo@gmail.com from DATA_READ logging, and -/// bar@gmail.com from DATA_WRITE logging. -class AuditConfig { - /// The configuration for logging of each type of permission. - /// Next ID: 4 - core.List<AuditLogConfig> auditLogConfigs; +class ProjectsLocationsRegistriesGroupsResourceApi { + final commons.ApiRequester _requester; - /// Specifies a service that will be enabled for audit logging. - /// For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - /// `allServices` is a special value that covers all services. - core.String service; + ProjectsLocationsRegistriesGroupsDevicesResourceApi get devices => + new ProjectsLocationsRegistriesGroupsDevicesResourceApi(_requester); - AuditConfig(); + ProjectsLocationsRegistriesGroupsResourceApi(commons.ApiRequester client) + : _requester = client; - AuditConfig.fromJson(core.Map _json) { - if (_json.containsKey("auditLogConfigs")) { - auditLogConfigs = (_json["auditLogConfigs"] as core.List) - .map<AuditLogConfig>((value) => new AuditLogConfig.fromJson(value)) - .toList(); + /// Gets the access control policy for a resource. + /// Returns an empty policy if the resource exists and does not have a policy + /// set. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [resource] - REQUIRED: The resource for which the policy is being + /// requested. + /// See the operation documentation for the appropriate value for this field. + /// Value must have pattern + /// "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); } - if (_json.containsKey("service")) { - service = _json["service"]; + if (resource == null) { + throw new core.ArgumentError("Parameter resource is required."); } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _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)); } - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (auditLogConfigs != null) { - _json["auditLogConfigs"] = - auditLogConfigs.map((value) => (value).toJson()).toList(); + /// 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. + /// See the operation documentation for the appropriate value for this field. + /// Value must have pattern + /// "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); } - if (service != null) { - _json["service"] = service; + if (resource == null) { + throw new core.ArgumentError("Parameter resource is required."); } - return _json; + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _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. + /// If the resource does not exist, this will return an empty set of + /// permissions, not a NOT_FOUND error. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [resource] - REQUIRED: The resource for which the policy detail is being + /// requested. + /// See the operation documentation for the appropriate value for this field. + /// Value must have pattern + /// "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _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)); } } -/// Provides the configuration for logging a type of permissions. -/// Example: -/// -/// { -/// "audit_log_configs": [ -/// { -/// "log_type": "DATA_READ", -/// "exempted_members": [ -/// "user:foo@gmail.com" -/// ] -/// }, -/// { -/// "log_type": "DATA_WRITE", -/// } -/// ] -/// } -/// -/// This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting -/// foo@gmail.com from DATA_READ logging. -class AuditLogConfig { - /// Specifies the identities that do not cause logging for this type of - /// permission. - /// Follows the same format of Binding.members. - core.List<core.String> exemptedMembers; +class ProjectsLocationsRegistriesGroupsDevicesResourceApi { + final commons.ApiRequester _requester; - /// The log type that this config enables. - /// Possible string values are: - /// - "LOG_TYPE_UNSPECIFIED" : Default case. Should never be this. - /// - "ADMIN_READ" : Admin reads. Example: CloudIAM getIamPolicy - /// - "DATA_WRITE" : Data writes. Example: CloudSQL Users create - /// - "DATA_READ" : Data reads. Example: CloudSQL Users list - core.String logType; + ProjectsLocationsRegistriesGroupsDevicesConfigVersionsResourceApi + get configVersions => + new ProjectsLocationsRegistriesGroupsDevicesConfigVersionsResourceApi( + _requester); + ProjectsLocationsRegistriesGroupsDevicesStatesResourceApi get states => + new ProjectsLocationsRegistriesGroupsDevicesStatesResourceApi(_requester); - AuditLogConfig(); + ProjectsLocationsRegistriesGroupsDevicesResourceApi( + commons.ApiRequester client) + : _requester = client; - AuditLogConfig.fromJson(core.Map _json) { - if (_json.containsKey("exemptedMembers")) { - exemptedMembers = - (_json["exemptedMembers"] as core.List).cast<core.String>(); + /// Deletes a device. + /// + /// Request parameters: + /// + /// [name] - The name of the device. For example, + /// `projects/p0/locations/us-central1/registries/registry0/devices/device0` + /// or + /// `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + /// Value must have pattern + /// "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+/devices/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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, {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (_json.containsKey("logType")) { - logType = _json["logType"]; + if ($fields != null) { + _queryParams["fields"] = [$fields]; } + + _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)); } - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (exemptedMembers != null) { - _json["exemptedMembers"] = exemptedMembers; + /// Gets details about a device. + /// + /// Request parameters: + /// + /// [name] - The name of the device. For example, + /// `projects/p0/locations/us-central1/registries/registry0/devices/device0` + /// or + /// `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + /// Value must have pattern + /// "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+/devices/[^/]+$". + /// + /// [fieldMask] - The fields of the `Device` resource to be returned in the + /// response. If the + /// field mask is unset or empty, all fields are returned. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [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<Device> get(core.String name, + {core.String fieldMask, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (logType != null) { - _json["logType"] = logType; + if (fieldMask != null) { + _queryParams["fieldMask"] = [fieldMask]; } - return _json; + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _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 Device.fromJson(data)); + } + + /// Modifies the configuration for the device, which is eventually sent from + /// the Cloud IoT Core servers. Returns the modified configuration version and + /// its metadata. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name of the device. For example, + /// `projects/p0/locations/us-central1/registries/registry0/devices/device0` + /// or + /// `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + /// Value must have pattern + /// "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+/devices/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [DeviceConfig]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<DeviceConfig> modifyCloudToDeviceConfig( + ModifyCloudToDeviceConfigRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + + commons.Escaper.ecapeVariableReserved('$name') + + ':modifyCloudToDeviceConfig'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new DeviceConfig.fromJson(data)); + } + + /// Updates a device. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The resource path name. For example, + /// `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or + /// `projects/p1/locations/us-central1/registries/registry0/devices/{num_id}`. + /// When `name` is populated as a response from the service, it always ends + /// in the device numeric ID. + /// Value must have pattern + /// "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+/devices/[^/]+$". + /// + /// [updateMask] - Only updates the `device` fields indicated by this mask. + /// The field mask must not be empty, and it must not contain fields that + /// are immutable or only set by the server. + /// Mutable top-level fields: `credentials`, `blocked`, and `metadata` + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [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<Device> patch(Device request, core.String name, + {core.String updateMask, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if (updateMask != null) { + _queryParams["updateMask"] = [updateMask]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, "PATCH", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Device.fromJson(data)); + } +} + +class ProjectsLocationsRegistriesGroupsDevicesConfigVersionsResourceApi { + final commons.ApiRequester _requester; + + ProjectsLocationsRegistriesGroupsDevicesConfigVersionsResourceApi( + commons.ApiRequester client) + : _requester = client; + + /// Lists the last few versions of the device configuration in descending + /// order (i.e.: newest first). + /// + /// Request parameters: + /// + /// [name] - The name of the device. For example, + /// `projects/p0/locations/us-central1/registries/registry0/devices/device0` + /// or + /// `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + /// Value must have pattern + /// "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+/devices/[^/]+$". + /// + /// [numVersions] - The number of versions to list. Versions are listed in + /// decreasing order of + /// the version number. The maximum number of versions retained is 10. If this + /// value is zero, it will return all the versions available. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ListDeviceConfigVersionsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<ListDeviceConfigVersionsResponse> list(core.String name, + {core.int numVersions, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (numVersions != null) { + _queryParams["numVersions"] = ["${numVersions}"]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + + commons.Escaper.ecapeVariableReserved('$name') + + '/configVersions'; + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response + .then((data) => new ListDeviceConfigVersionsResponse.fromJson(data)); + } +} + +class ProjectsLocationsRegistriesGroupsDevicesStatesResourceApi { + final commons.ApiRequester _requester; + + ProjectsLocationsRegistriesGroupsDevicesStatesResourceApi( + commons.ApiRequester client) + : _requester = client; + + /// Lists the last few versions of the device state in descending order (i.e.: + /// newest first). + /// + /// Request parameters: + /// + /// [name] - The name of the device. For example, + /// `projects/p0/locations/us-central1/registries/registry0/devices/device0` + /// or + /// `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`. + /// Value must have pattern + /// "^projects/[^/]+/locations/[^/]+/registries/[^/]+/groups/[^/]+/devices/[^/]+$". + /// + /// [numStates] - The number of states to list. States are listed in + /// descending order of + /// update time. The maximum number of states retained is 10. If this + /// value is zero, it will return all the states available. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ListDeviceStatesResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<ListDeviceStatesResponse> list(core.String name, + {core.int numStates, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (numStates != null) { + _queryParams["numStates"] = ["${numStates}"]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/states'; + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response + .then((data) => new ListDeviceStatesResponse.fromJson(data)); } } @@ -1181,7 +1589,7 @@ /// 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`. + /// account. For example, `alice@gmail.com` . /// /// /// * `serviceAccount:{emailid}`: An email address that represents a service @@ -1296,9 +1704,8 @@ /// interpreted or indexed by Cloud IoT Core. It can be used to add contextual /// information for the device. /// - /// Keys must conform to the regular expression [a-zA-Z0-9-_]+ and be less - /// than - /// 128 bytes in length. + /// Keys must conform to the regular expression a-zA-Z+ and + /// be less than 128 bytes in length. /// /// Values are free-form strings. Each value must be less than or equal to 32 /// KB in size. @@ -1563,11 +1970,12 @@ /// The configuration for notification of telemetry events received from the /// device. All telemetry events that were successfully published by the /// device and acknowledged by Cloud IoT Core are guaranteed to be - /// delivered to Cloud Pub/Sub. Only the first configuration is used. If you - /// try to publish a device telemetry event using MQTT without specifying a - /// Cloud Pub/Sub topic for the device's registry, the connection closes - /// automatically. If you try to do so using an HTTP connection, an error - /// is returned. + /// delivered to Cloud Pub/Sub. If multiple configurations match a message, + /// only the first matching configuration is used. If you try to publish a + /// device telemetry event using MQTT without specifying a Cloud Pub/Sub topic + /// for the device's registry, the connection closes automatically. If you try + /// to do so using an HTTP connection, an error is returned. Up to 10 + /// configurations may be provided. core.List<EventNotificationConfig> eventNotificationConfigs; /// The DeviceService (HTTP) configuration for this device registry. @@ -1717,11 +2125,16 @@ } } -/// The configuration to forward telemetry events. +/// The configuration for forwarding telemetry events. class EventNotificationConfig { /// A Cloud Pub/Sub topic name. For example, /// `projects/myProject/topics/deviceEvents`. core.String pubsubTopicName; + + /// If the subfolder name matches this string exactly, this configuration will + /// be used. The string must not include the leading '/' character. If empty, + /// all strings are matched. This field is used only for telemetry events; + /// subfolders are not supported for state changes. core.String subfolderMatches; EventNotificationConfig(); @@ -1996,14 +2409,14 @@ /// specify access control policies for Cloud Platform resources. /// /// -/// A `Policy` consists of a list of `bindings`. A `Binding` binds a list of +/// 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** +/// **JSON Example** /// /// { /// "bindings": [ @@ -2013,7 +2426,7 @@ /// "user:mike@example.com", /// "group:admins@example.com", /// "domain:google.com", -/// "serviceAccount:my-other-app@appspot.gserviceaccount.com", +/// "serviceAccount:my-other-app@appspot.gserviceaccount.com" /// ] /// }, /// { @@ -2023,12 +2436,23 @@ /// ] /// } /// +/// **YAML Example** +/// +/// bindings: +/// - members: +/// - user:mike@example.com +/// - group:admins@example.com +/// - domain:google.com +/// - serviceAccount:my-other-app@appspot.gserviceaccount.com +/// role: roles/owner +/// - members: +/// - user:sean@example.com +/// role: roles/viewer +/// +/// /// For a description of IAM and its features, see the /// [IAM developer's guide](https://cloud.google.com/iam/docs). class Policy { - /// Specifies cloud audit logging configuration for this policy. - core.List<AuditConfig> auditConfigs; - /// Associates a list of `members` to a `role`. /// `bindings` with no members will result in an error. core.List<Binding> bindings; @@ -2060,11 +2484,6 @@ Policy(); Policy.fromJson(core.Map _json) { - if (_json.containsKey("auditConfigs")) { - auditConfigs = (_json["auditConfigs"] as core.List) - .map<AuditConfig>((value) => new AuditConfig.fromJson(value)) - .toList(); - } if (_json.containsKey("bindings")) { bindings = (_json["bindings"] as core.List) .map<Binding>((value) => new Binding.fromJson(value)) @@ -2081,10 +2500,6 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (auditConfigs != null) { - _json["auditConfigs"] = - auditConfigs.map((value) => (value).toJson()).toList(); - } if (bindings != null) { _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); } @@ -2233,23 +2648,12 @@ /// might reject them. Policy policy; - /// OPTIONAL: A FieldMask specifying which fields of the policy to modify. - /// Only - /// the fields in the mask will be modified. If no mask is provided, the - /// following default mask is used: - /// paths: "bindings, etag" - /// This field is only used by Cloud IAM. - core.String updateMask; - SetIamPolicyRequest(); SetIamPolicyRequest.fromJson(core.Map _json) { if (_json.containsKey("policy")) { policy = new Policy.fromJson(_json["policy"]); } - if (_json.containsKey("updateMask")) { - updateMask = _json["updateMask"]; - } } core.Map<core.String, core.Object> toJson() { @@ -2258,9 +2662,6 @@ if (policy != null) { _json["policy"] = (policy).toJson(); } - if (updateMask != null) { - _json["updateMask"] = updateMask; - } return _json; } }
diff --git a/generated/googleapis/lib/cloudkms/v1.dart b/generated/googleapis/lib/cloudkms/v1.dart index af850d3..d7af333 100644 --- a/generated/googleapis/lib/cloudkms/v1.dart +++ b/generated/googleapis/lib/cloudkms/v1.dart
@@ -52,7 +52,7 @@ ProjectsLocationsResourceApi(commons.ApiRequester client) : _requester = client; - /// Get information about a location. + /// Gets information about a location. /// /// Request parameters: /// @@ -781,14 +781,14 @@ /// `projects / * /locations / * /keyRings / * `. /// Value must have pattern "^projects/[^/]+/locations/[^/]+/keyRings/[^/]+$". /// + /// [pageToken] - Optional pagination token, returned earlier via + /// ListCryptoKeysResponse.next_page_token. + /// /// [pageSize] - Optional limit on the number of CryptoKeys to include in the /// response. Further CryptoKeys can subsequently be obtained by /// including the ListCryptoKeysResponse.next_page_token in a subsequent /// request. If unspecified, the server will pick an appropriate default. /// - /// [pageToken] - Optional pagination token, returned earlier via - /// ListCryptoKeysResponse.next_page_token. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -800,7 +800,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<ListCryptoKeysResponse> list(core.String parent, - {core.int pageSize, core.String pageToken, core.String $fields}) { + {core.String pageToken, core.int pageSize, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -811,12 +811,12 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1243,15 +1243,15 @@ /// Value must have pattern /// "^projects/[^/]+/locations/[^/]+/keyRings/[^/]+/cryptoKeys/[^/]+$". /// + /// [pageToken] - Optional pagination token, returned earlier via + /// ListCryptoKeyVersionsResponse.next_page_token. + /// /// [pageSize] - Optional limit on the number of CryptoKeyVersions to /// include in the response. Further CryptoKeyVersions can /// subsequently be obtained by including the /// ListCryptoKeyVersionsResponse.next_page_token in a subsequent request. /// If unspecified, the server will pick an appropriate default. /// - /// [pageToken] - Optional pagination token, returned earlier via - /// ListCryptoKeyVersionsResponse.next_page_token. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -1263,7 +1263,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<ListCryptoKeyVersionsResponse> list(core.String parent, - {core.int pageSize, core.String pageToken, core.String $fields}) { + {core.String pageToken, core.int pageSize, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -1274,12 +1274,12 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1364,7 +1364,7 @@ } /// Restore a CryptoKeyVersion in the - /// DESTROY_SCHEDULED, + /// DESTROY_SCHEDULED /// state. /// /// Upon restoration of the CryptoKeyVersion, state @@ -1474,7 +1474,6 @@ /// bar@gmail.com from DATA_WRITE logging. class AuditConfig { /// The configuration for logging of each type of permission. - /// Next ID: 4 core.List<AuditLogConfig> auditLogConfigs; /// Specifies a service that will be enabled for audit logging. @@ -1579,7 +1578,7 @@ /// 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`. + /// account. For example, `alice@gmail.com` . /// /// /// * `serviceAccount:{emailid}`: An email address that represents a service @@ -2207,6 +2206,10 @@ /// A resource that represents Google Cloud Platform location. class Location { + /// The friendly name for this location, typically a nearby city name. + /// For example, "Tokyo". + core.String displayName; + /// Cross-service attributes for the location. For example /// /// {"cloud.googleapis.com/region": "us-east1"} @@ -2229,6 +2232,9 @@ Location(); Location.fromJson(core.Map _json) { + if (_json.containsKey("displayName")) { + displayName = _json["displayName"]; + } if (_json.containsKey("labels")) { labels = (_json["labels"] as core.Map).cast<core.String, core.String>(); } @@ -2247,6 +2253,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (displayName != null) { + _json["displayName"] = displayName; + } if (labels != null) { _json["labels"] = labels; } @@ -2267,14 +2276,14 @@ /// specify access control policies for Cloud Platform resources. /// /// -/// A `Policy` consists of a list of `bindings`. A `Binding` binds a list of +/// 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** +/// **JSON Example** /// /// { /// "bindings": [ @@ -2284,7 +2293,7 @@ /// "user:mike@example.com", /// "group:admins@example.com", /// "domain:google.com", -/// "serviceAccount:my-other-app@appspot.gserviceaccount.com", +/// "serviceAccount:my-other-app@appspot.gserviceaccount.com" /// ] /// }, /// { @@ -2294,6 +2303,20 @@ /// ] /// } /// +/// **YAML Example** +/// +/// bindings: +/// - members: +/// - user:mike@example.com +/// - group:admins@example.com +/// - domain:google.com +/// - serviceAccount:my-other-app@appspot.gserviceaccount.com +/// role: roles/owner +/// - members: +/// - user:sean@example.com +/// role: roles/viewer +/// +/// /// For a description of IAM and its features, see the /// [IAM developer's guide](https://cloud.google.com/iam/docs). class Policy {
diff --git a/generated/googleapis/lib/cloudresourcemanager/v1.dart b/generated/googleapis/lib/cloudresourcemanager/v1.dart index 5cfd1ed..3f2450e 100644 --- a/generated/googleapis/lib/cloudresourcemanager/v1.dart +++ b/generated/googleapis/lib/cloudresourcemanager/v1.dart
@@ -485,15 +485,15 @@ /// /// Request parameters: /// + /// [pageSize] - The maximum number of items to return. This is a suggestion + /// for the server. + /// /// [parent] - The name of the resource to list all attached Liens. /// For example, `projects/1234`. /// /// [pageToken] - The `next_page_token` value returned from a previous List /// request, if any. /// - /// [pageSize] - The maximum number of items to return. This is a suggestion - /// for the server. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -505,9 +505,9 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListLiensResponse> list( - {core.String parent, + {core.int pageSize, + core.String parent, core.String pageToken, - core.int pageSize, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -516,15 +516,15 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if (parent != null) { _queryParams["parent"] = [parent]; } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1268,7 +1268,13 @@ /// /// Authorization requires the Google IAM permission /// `resourcemanager.projects.create` on the specified parent for the new - /// project. + /// project. The parent is identified by a specified ResourceId, + /// which must include both an ID and a type, such as organization. + /// + /// This method does not associate the new project with a billing account. + /// You can set or update the billing account associated with a project using + /// the [`projects.updateBillingInfo`] + /// (/billing/reference/rest/v1/projects/updateBillingInfo) method. /// /// [request] - The metadata request object. /// @@ -1312,11 +1318,7 @@ /// Marks the Project identified by the specified /// `project_id` (for example, `my-project-123`) for deletion. - /// This method will only affect the Project if the following criteria are - /// met: - /// - /// + The Project does not have a billing account associated with it. - /// + The Project has a lifecycle state of + /// This method will only affect the Project if it has a lifecycle state of /// ACTIVE. /// /// This method changes the Project's lifecycle state from @@ -1879,9 +1881,11 @@ /// must be granted the owner role using the Cloud Platform Console and must /// explicitly accept the invitation. /// - /// + Invitations to grant the owner role cannot be sent using - /// `setIamPolicy()`; - /// they must be sent only using the Cloud Platform Console. + /// + You can only grant ownership of a project to a member by using the + /// GCP Console. Inviting a member will deliver an invitation email that + /// they must accept. An invitation email is not generated if you are + /// granting a role other than owner, or if both the member you are inviting + /// and the project are part of your organization. /// /// + Membership changes that leave the project without any owners that have /// accepted the Terms of Service (ToS) will be rejected. @@ -2258,7 +2262,6 @@ /// bar@gmail.com from DATA_WRITE logging. class AuditConfig { /// The configuration for logging of each type of permission. - /// Next ID: 4 core.List<AuditLogConfig> auditLogConfigs; /// Specifies a service that will be enabled for audit logging. @@ -2363,7 +2366,7 @@ /// 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`. + /// account. For example, `alice@gmail.com` . /// /// /// * `serviceAccount:{emailid}`: An email address that represents a service @@ -2778,7 +2781,7 @@ class GetAncestryResponse { /// Ancestors are ordered from bottom to top of the resource hierarchy. The /// first ancestor is the project itself, followed by the project's parent, - /// etc. + /// etc.. core.List<Ancestor> ancestor; GetAncestryResponse(); @@ -2885,7 +2888,7 @@ core.String parent; /// Concise user-visible strings indicating why an action cannot be performed - /// on a resource. Maximum lenth of 200 characters. + /// on a resource. Maximum length of 200 characters. /// /// Example: 'Holds production API key' core.String reason; @@ -3639,7 +3642,7 @@ /// will /// be deleted. class OrganizationOwner { - /// The Google for Work customer id used in the Directory API. + /// The G Suite customer id used in the Directory API. core.String directoryCustomerId; OrganizationOwner(); @@ -3664,14 +3667,14 @@ /// specify access control policies for Cloud Platform resources. /// /// -/// A `Policy` consists of a list of `bindings`. A `Binding` binds a list of +/// 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** +/// **JSON Example** /// /// { /// "bindings": [ @@ -3681,7 +3684,7 @@ /// "user:mike@example.com", /// "group:admins@example.com", /// "domain:google.com", -/// "serviceAccount:my-other-app@appspot.gserviceaccount.com", +/// "serviceAccount:my-other-app@appspot.gserviceaccount.com" /// ] /// }, /// { @@ -3691,6 +3694,20 @@ /// ] /// } /// +/// **YAML Example** +/// +/// bindings: +/// - members: +/// - user:mike@example.com +/// - group:admins@example.com +/// - domain:google.com +/// - serviceAccount:my-other-app@appspot.gserviceaccount.com +/// role: roles/owner +/// - members: +/// - user:sean@example.com +/// role: roles/viewer +/// +/// /// For a description of IAM and its features, see the /// [IAM developer's guide](https://cloud.google.com/iam/docs). class Policy { @@ -4012,7 +4029,7 @@ /// /// /// Organizations may be filtered by `owner.directoryCustomerId` or by - /// `domain`, where the domain is a Google for Work domain, for example: + /// `domain`, where the domain is a G Suite domain, for example: /// /// |Filter|Description| /// |------|-----------|
diff --git a/generated/googleapis/lib/cloudresourcemanager/v2beta1.dart b/generated/googleapis/lib/cloudresourcemanager/v2beta1.dart deleted file mode 100644 index 7ca21f1..0000000 --- a/generated/googleapis/lib/cloudresourcemanager/v2beta1.dart +++ /dev/null
@@ -1,1716 +0,0 @@ -// This is a generated file (see the discoveryapis_generator project). - -// ignore_for_file: unnecessary_cast - -library googleapis.cloudresourcemanager.v2beta1; - -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 cloudresourcemanager/v2beta1'; - -/// The Google Cloud Resource Manager API provides methods for creating, -/// reading, and updating project metadata. -class CloudresourcemanagerApi { - /// 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; - - FoldersResourceApi get folders => new FoldersResourceApi(_requester); - - CloudresourcemanagerApi(http.Client client, - {core.String rootUrl: "https://cloudresourcemanager.googleapis.com/", - core.String servicePath: ""}) - : _requester = - new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); -} - -class FoldersResourceApi { - final commons.ApiRequester _requester; - - FoldersResourceApi(commons.ApiRequester client) : _requester = client; - - /// Creates a Folder in the resource hierarchy. - /// Returns an Operation which can be used to track the progress of the - /// folder creation workflow. - /// Upon success the Operation.response field will be populated with the - /// created Folder. - /// - /// In order to succeed, the addition of this new Folder must not violate - /// the Folder naming, height or fanout constraints. - /// - /// + The Folder's display_name must be distinct from all other Folder's that - /// share its parent. - /// + The addition of the Folder must not cause the active Folder hierarchy - /// to exceed a height of 4. Note, the full active + deleted Folder hierarchy - /// is allowed to reach a height of 8; this provides additional headroom when - /// moving folders that contain deleted folders. - /// + The addition of the Folder must not cause the total number of Folders - /// under its parent to exceed 100. - /// - /// If the operation fails due to a folder constraint violation, - /// a PreconditionFailure explaining the violation will be returned. - /// If the failure occurs synchronously then the PreconditionFailure - /// will be returned via the Status.details field and if it occurs - /// asynchronously then the PreconditionFailure will be returned - /// via the the Operation.error field. - /// - /// The caller must have `resourcemanager.folders.create` permission on the - /// identified parent. - /// - /// [request] - The metadata request object. - /// - /// Request parameters: - /// - /// [parent] - The resource name of the new Folder's parent. - /// Must be of the form `folders/{folder_id}` or `organizations/{org_id}`. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// 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(Folder request, - {core.String parent, core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - 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) { - _queryParams["parent"] = [parent]; - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _url = 'v2beta1/folders'; - - var _response = _requester.request(_url, "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Operation.fromJson(data)); - } - - /// Requests deletion of a Folder. The Folder is moved into the - /// DELETE_REQUESTED state - /// immediately, and is deleted approximately 30 days later. This method may - /// only be called on an empty Folder in the - /// ACTIVE state, where a Folder is empty if - /// it doesn't contain any Folders or Projects in the - /// ACTIVE state. - /// The caller must have `resourcemanager.folders.delete` permission on the - /// identified folder. - /// - /// Request parameters: - /// - /// [name] - the resource name of the Folder to be deleted. - /// Must be of the form `folders/{folder_id}`. - /// Value must have pattern "^folders/[^/]+$". - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [Folder]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future<Folder> delete(core.String name, {core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - 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 ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _url = 'v2beta1/' + 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 Folder.fromJson(data)); - } - - /// Retrieves a Folder identified by the supplied resource name. - /// Valid Folder resource names have the format `folders/{folder_id}` - /// (for example, `folders/1234`). - /// The caller must have `resourcemanager.folders.get` permission on the - /// identified folder. - /// - /// Request parameters: - /// - /// [name] - The resource name of the Folder to retrieve. - /// Must be of the form `folders/{folder_id}`. - /// Value must have pattern "^folders/[^/]+$". - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [Folder]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future<Folder> get(core.String name, {core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - 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 ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _url = 'v2beta1/' + 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 Folder.fromJson(data)); - } - - /// Gets the access control policy for a Folder. The returned policy may be - /// empty if no such policy or resource exists. The `resource` field should - /// be the Folder's resource name, e.g. "folders/1234". - /// The caller must have `resourcemanager.folders.getIamPolicy` permission - /// on the identified folder. - /// - /// [request] - The metadata request object. - /// - /// Request parameters: - /// - /// [resource] - REQUIRED: The resource for which the policy is being - /// requested. - /// See the operation documentation for the appropriate value for this field. - /// Value must have pattern "^folders/[^/]+$". - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// 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, - {core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - 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."); - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _url = 'v2beta1/' + - 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)); - } - - /// Lists the Folders that are direct descendants of supplied parent resource. - /// List provides a strongly consistent view of the Folders underneath - /// the specified parent resource. - /// List returns Folders sorted based upon the (ascending) lexical ordering - /// of their display_name. - /// The caller must have `resourcemanager.folders.list` permission on the - /// identified parent. - /// - /// Request parameters: - /// - /// [showDeleted] - Controls whether Folders in the - /// DELETE_REQUESTED - /// state should be returned. Defaults to false. This field is optional. - /// - /// [pageToken] - A pagination token returned from a previous call to - /// `ListFolders` - /// that indicates where this listing should continue from. - /// This field is optional. - /// - /// [pageSize] - The maximum number of Folders to return in the response. - /// This field is optional. - /// - /// [parent] - The resource name of the Organization or Folder whose Folders - /// are - /// being listed. - /// Must be of the form `folders/{folder_id}` or `organizations/{org_id}`. - /// Access to this method is controlled by checking the - /// `resourcemanager.folders.list` permission on the `parent`. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [ListFoldersResponse]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future<ListFoldersResponse> list( - {core.bool showDeleted, - core.String pageToken, - core.int pageSize, - core.String parent, - core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (showDeleted != null) { - _queryParams["showDeleted"] = ["${showDeleted}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - if (parent != null) { - _queryParams["parent"] = [parent]; - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _url = 'v2beta1/folders'; - - var _response = _requester.request(_url, "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ListFoldersResponse.fromJson(data)); - } - - /// Moves a Folder under a new resource parent. - /// Returns an Operation which can be used to track the progress of the - /// folder move workflow. - /// Upon success the Operation.response field will be populated with the - /// moved Folder. - /// Upon failure, a FolderOperationError categorizing the failure cause will - /// be returned - if the failure occurs synchronously then the - /// FolderOperationError will be returned via the Status.details field - /// and if it occurs asynchronously then the FolderOperation will be returned - /// via the the Operation.error field. - /// In addition, the Operation.metadata field will be populated with a - /// FolderOperation message as an aid to stateless clients. - /// Folder moves will be rejected if they violate either the naming, height - /// or fanout constraints described in the - /// CreateFolder documentation. - /// The caller must have `resourcemanager.folders.move` permission on the - /// folder's current and proposed new parent. - /// - /// [request] - The metadata request object. - /// - /// Request parameters: - /// - /// [name] - The resource name of the Folder to move. - /// Must be of the form folders/{folder_id} - /// Value must have pattern "^folders/[^/]+$". - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// 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> move(MoveFolderRequest request, core.String name, - {core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - 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."); - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _url = - 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name') + ':move'; - - var _response = _requester.request(_url, "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Operation.fromJson(data)); - } - - /// Updates a Folder, changing its display_name. - /// Changes to the folder display_name will be rejected if they violate either - /// the display_name formatting rules or naming constraints described in the - /// CreateFolder documentation. - /// - /// The Folder's display name must start and end with a letter or digit, - /// may contain letters, digits, spaces, hyphens and underscores and can be - /// no longer than 30 characters. This is captured by the regular expression: - /// [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?. - /// The caller must have `resourcemanager.folders.update` permission on the - /// identified folder. - /// - /// If the update fails due to the unique name constraint then a - /// PreconditionFailure explaining this violation will be returned - /// in the Status.details field. - /// - /// [request] - The metadata request object. - /// - /// Request parameters: - /// - /// [name] - Output only. The resource name of the Folder. - /// Its format is `folders/{folder_id}`, for example: "folders/1234". - /// Value must have pattern "^folders/[^/]+$". - /// - /// [updateMask] - Fields to be updated. - /// Only the `display_name` can be updated. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [Folder]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future<Folder> patch(Folder request, core.String name, - {core.String updateMask, core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - 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."); - } - if (updateMask != null) { - _queryParams["updateMask"] = [updateMask]; - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); - - var _response = _requester.request(_url, "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Folder.fromJson(data)); - } - - /// Search for folders that match specific filter criteria. - /// Search provides an eventually consistent view of the folders a user has - /// access to which meet the specified filter criteria. - /// - /// This will only return folders on which the caller has the - /// permission `resourcemanager.folders.get`. - /// - /// [request] - The metadata request object. - /// - /// Request parameters: - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [SearchFoldersResponse]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future<SearchFoldersResponse> search(SearchFoldersRequest request, - {core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.json.encode((request).toJson()); - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _url = 'v2beta1/folders:search'; - - var _response = _requester.request(_url, "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new SearchFoldersResponse.fromJson(data)); - } - - /// Sets the access control policy on a Folder, replacing any existing policy. - /// The `resource` field should be the Folder's resource name, e.g. - /// "folders/1234". - /// The caller must have `resourcemanager.folders.setIamPolicy` permission - /// on the identified folder. - /// - /// [request] - The metadata request object. - /// - /// Request parameters: - /// - /// [resource] - REQUIRED: The resource for which the policy is being - /// specified. - /// See the operation documentation for the appropriate value for this field. - /// Value must have pattern "^folders/[^/]+$". - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// 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, - {core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - 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."); - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _url = 'v2beta1/' + - 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 Folder. - /// The `resource` field should be the Folder's resource name, - /// e.g. "folders/1234". - /// - /// There are no permissions required for making this API call. - /// - /// [request] - The metadata request object. - /// - /// Request parameters: - /// - /// [resource] - REQUIRED: The resource for which the policy detail is being - /// requested. - /// See the operation documentation for the appropriate value for this field. - /// Value must have pattern "^folders/[^/]+$". - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// 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, - {core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - 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."); - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _url = 'v2beta1/' + - 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)); - } - - /// Cancels the deletion request for a Folder. This method may only be - /// called on a Folder in the - /// DELETE_REQUESTED state. - /// In order to succeed, the Folder's parent must be in the - /// ACTIVE state. - /// In addition, reintroducing the folder into the tree must not violate - /// folder naming, height and fanout constraints described in the - /// CreateFolder documentation. - /// The caller must have `resourcemanager.folders.undelete` permission on the - /// identified folder. - /// - /// [request] - The metadata request object. - /// - /// Request parameters: - /// - /// [name] - The resource name of the Folder to undelete. - /// Must be of the form `folders/{folder_id}`. - /// Value must have pattern "^folders/[^/]+$". - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [Folder]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future<Folder> undelete(UndeleteFolderRequest request, core.String name, - {core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - 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."); - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _url = 'v2beta1/' + - commons.Escaper.ecapeVariableReserved('$name') + - ':undelete'; - - var _response = _requester.request(_url, "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Folder.fromJson(data)); - } -} - -/// Specifies the audit configuration for a service. -/// The configuration determines which permission types are logged, and what -/// identities, if any, are exempted from logging. -/// An AuditConfig must have one or more AuditLogConfigs. -/// -/// If there are AuditConfigs for both `allServices` and a specific service, -/// the union of the two AuditConfigs is used for that service: the log_types -/// specified in each AuditConfig are enabled, and the exempted_members in each -/// AuditLogConfig are exempted. -/// -/// Example Policy with multiple AuditConfigs: -/// -/// { -/// "audit_configs": [ -/// { -/// "service": "allServices" -/// "audit_log_configs": [ -/// { -/// "log_type": "DATA_READ", -/// "exempted_members": [ -/// "user:foo@gmail.com" -/// ] -/// }, -/// { -/// "log_type": "DATA_WRITE", -/// }, -/// { -/// "log_type": "ADMIN_READ", -/// } -/// ] -/// }, -/// { -/// "service": "fooservice.googleapis.com" -/// "audit_log_configs": [ -/// { -/// "log_type": "DATA_READ", -/// }, -/// { -/// "log_type": "DATA_WRITE", -/// "exempted_members": [ -/// "user:bar@gmail.com" -/// ] -/// } -/// ] -/// } -/// ] -/// } -/// -/// For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ -/// logging. It also exempts foo@gmail.com from DATA_READ logging, and -/// bar@gmail.com from DATA_WRITE logging. -class AuditConfig { - /// The configuration for logging of each type of permission. - /// Next ID: 4 - core.List<AuditLogConfig> auditLogConfigs; - - /// Specifies a service that will be enabled for audit logging. - /// For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. - /// `allServices` is a special value that covers all services. - core.String service; - - AuditConfig(); - - AuditConfig.fromJson(core.Map _json) { - if (_json.containsKey("auditLogConfigs")) { - auditLogConfigs = (_json["auditLogConfigs"] as core.List) - .map<AuditLogConfig>((value) => new AuditLogConfig.fromJson(value)) - .toList(); - } - if (_json.containsKey("service")) { - service = _json["service"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (auditLogConfigs != null) { - _json["auditLogConfigs"] = - auditLogConfigs.map((value) => (value).toJson()).toList(); - } - if (service != null) { - _json["service"] = service; - } - return _json; - } -} - -/// Provides the configuration for logging a type of permissions. -/// Example: -/// -/// { -/// "audit_log_configs": [ -/// { -/// "log_type": "DATA_READ", -/// "exempted_members": [ -/// "user:foo@gmail.com" -/// ] -/// }, -/// { -/// "log_type": "DATA_WRITE", -/// } -/// ] -/// } -/// -/// This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting -/// foo@gmail.com from DATA_READ logging. -class AuditLogConfig { - /// Specifies the identities that do not cause logging for this type of - /// permission. - /// Follows the same format of Binding.members. - core.List<core.String> exemptedMembers; - - /// The log type that this config enables. - /// Possible string values are: - /// - "LOG_TYPE_UNSPECIFIED" : Default case. Should never be this. - /// - "ADMIN_READ" : Admin reads. Example: CloudIAM getIamPolicy - /// - "DATA_WRITE" : Data writes. Example: CloudSQL Users create - /// - "DATA_READ" : Data reads. Example: CloudSQL Users list - core.String logType; - - AuditLogConfig(); - - AuditLogConfig.fromJson(core.Map _json) { - if (_json.containsKey("exemptedMembers")) { - exemptedMembers = - (_json["exemptedMembers"] as core.List).cast<core.String>(); - } - if (_json.containsKey("logType")) { - logType = _json["logType"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (exemptedMembers != null) { - _json["exemptedMembers"] = exemptedMembers; - } - if (logType != null) { - _json["logType"] = logType; - } - 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`. - /// Required - core.String role; - - Binding(); - - Binding.fromJson(core.Map _json) { - if (_json.containsKey("members")) { - members = (_json["members"] as core.List).cast<core.String>(); - } - if (_json.containsKey("role")) { - role = _json["role"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (members != null) { - _json["members"] = members; - } - if (role != null) { - _json["role"] = role; - } - return _json; - } -} - -/// A Folder in an Organization's resource hierarchy, used to -/// organize that Organization's resources. -class Folder { - /// Output only. Timestamp when the Folder was created. Assigned by the - /// server. - core.String createTime; - - /// The folder’s display name. - /// A folder’s display name must be unique amongst its siblings, e.g. - /// no two folders with the same parent can share the same display name. - /// The display name must start and end with a letter or digit, may contain - /// letters, digits, spaces, hyphens and underscores and can be no longer - /// than 30 characters. This is captured by the regular expression: - /// [\p{L}\p{N}]({\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?. - core.String displayName; - - /// Output only. The lifecycle state of the folder. - /// Updates to the lifecycle_state must be performed via - /// DeleteFolder and - /// UndeleteFolder. - /// Possible string values are: - /// - "LIFECYCLE_STATE_UNSPECIFIED" : Unspecified state. - /// - "ACTIVE" : The normal and active state. - /// - "DELETE_REQUESTED" : The folder has been marked for deletion by the - /// user. - core.String lifecycleState; - - /// Output only. The resource name of the Folder. - /// Its format is `folders/{folder_id}`, for example: "folders/1234". - core.String name; - - /// The Folder’s parent's resource name. - /// Updates to the folder's parent must be performed via - /// MoveFolder. - core.String parent; - - Folder(); - - Folder.fromJson(core.Map _json) { - if (_json.containsKey("createTime")) { - createTime = _json["createTime"]; - } - if (_json.containsKey("displayName")) { - displayName = _json["displayName"]; - } - if (_json.containsKey("lifecycleState")) { - lifecycleState = _json["lifecycleState"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("parent")) { - parent = _json["parent"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (createTime != null) { - _json["createTime"] = createTime; - } - if (displayName != null) { - _json["displayName"] = displayName; - } - if (lifecycleState != null) { - _json["lifecycleState"] = lifecycleState; - } - if (name != null) { - _json["name"] = name; - } - if (parent != null) { - _json["parent"] = parent; - } - return _json; - } -} - -/// 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" : Operation type not specified. - /// - "CREATE" : A create folder operation. - /// - "MOVE" : A move folder operation. - core.String operationType; - - /// The resource name of the folder's parent. - /// Only applicable when the operation_type is MOVE. - 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<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - 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" : The error type was unrecognized or - /// unspecified. - /// - "ACTIVE_FOLDER_HEIGHT_VIOLATION" : The attempted action would violate - /// the max folder depth constraint. - /// - "MAX_CHILD_FOLDERS_VIOLATION" : The attempted action would violate the - /// max child folders constraint. - /// - "FOLDER_NAME_UNIQUENESS_VIOLATION" : The attempted action would violate - /// the locally-unique folder - /// display_name constraint. - /// - "RESOURCE_DELETED_VIOLATION" : The resource being moved has been - /// deleted. - /// - "PARENT_DELETED_VIOLATION" : The resource a folder was being added to - /// has been deleted. - /// - "CYCLE_INTRODUCED_VIOLATION" : The attempted action would introduce - /// cycle in resource path. - /// - "FOLDER_BEING_MOVED_VIOLATION" : The attempted action would move a - /// folder that is already being moved. - /// - "FOLDER_TO_DELETE_NON_EMPTY_VIOLATION" : The folder the caller is trying - /// to delete contains active resources. - /// - "DELETED_FOLDER_HEIGHT_VIOLATION" : The attempted action would violate - /// the max deleted folder depth - /// constraint. - core.String errorMessageId; - - FolderOperationError(); - - FolderOperationError.fromJson(core.Map _json) { - if (_json.containsKey("errorMessageId")) { - errorMessageId = _json["errorMessageId"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (errorMessageId != null) { - _json["errorMessageId"] = errorMessageId; - } - return _json; - } -} - -/// Request message for `GetIamPolicy` method. -class GetIamPolicyRequest { - GetIamPolicyRequest(); - - GetIamPolicyRequest.fromJson(core.Map _json) {} - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - return _json; - } -} - -/// The ListFolders response message. -class ListFoldersResponse { - /// A possibly paginated list of Folders that are direct descendants of - /// the specified parent resource. - core.List<Folder> folders; - - /// A pagination token returned from a previous call to `ListFolders` - /// that indicates from where listing should continue. - /// This field is optional. - core.String nextPageToken; - - ListFoldersResponse(); - - ListFoldersResponse.fromJson(core.Map _json) { - if (_json.containsKey("folders")) { - folders = (_json["folders"] as core.List) - .map<Folder>((value) => new Folder.fromJson(value)) - .toList(); - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (folders != null) { - _json["folders"] = folders.map((value) => (value).toJson()).toList(); - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/// The MoveFolder request message. -class MoveFolderRequest { - /// The resource name of the Folder or Organization to reparent - /// the folder under. - /// Must be of the form `folders/{folder_id}` or `organizations/{org_id}`. - core.String destinationParent; - - MoveFolderRequest(); - - MoveFolderRequest.fromJson(core.Map _json) { - if (_json.containsKey("destinationParent")) { - destinationParent = _json["destinationParent"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (destinationParent != null) { - _json["destinationParent"] = destinationParent; - } - 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"] as core.Map).cast<core.String, core.Object>(); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("response")) { - response = - (_json["response"] as core.Map).cast<core.String, core.Object>(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - 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; - } -} - -/// 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/docs). -class Policy { - /// Specifies cloud audit logging configuration for this policy. - core.List<AuditConfig> auditConfigs; - - /// Associates a list of `members` to a `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("+", "-"); - } - - /// Deprecated. - core.int version; - - Policy(); - - Policy.fromJson(core.Map _json) { - if (_json.containsKey("auditConfigs")) { - auditConfigs = (_json["auditConfigs"] as core.List) - .map<AuditConfig>((value) => new AuditConfig.fromJson(value)) - .toList(); - } - if (_json.containsKey("bindings")) { - bindings = (_json["bindings"] as core.List) - .map<Binding>((value) => new Binding.fromJson(value)) - .toList(); - } - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("version")) { - version = _json["version"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - 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 (version != null) { - _json["version"] = version; - } - return _json; - } -} - -/// 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<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (createTime != null) { - _json["createTime"] = createTime; - } - if (gettable != null) { - _json["gettable"] = gettable; - } - if (ready != null) { - _json["ready"] = ready; - } - return _json; - } -} - -/// The request message for searching folders. -class SearchFoldersRequest { - /// The maximum number of folders to return in the response. - /// This field is optional. - core.int pageSize; - - /// A pagination token returned from a previous call to `SearchFolders` - /// that indicates from where search should continue. - /// This field is optional. - core.String pageToken; - - /// Search criteria used to select the Folders to return. - /// If no search criteria is specified then all accessible folders will be - /// returned. - /// - /// Query expressions can be used to restrict results based upon displayName, - /// lifecycleState and parent, where the operators `=`, `NOT`, `AND` and `OR` - /// can be used along with the suffix wildcard symbol `*`. - /// - /// Some example queries are: - /// - /// |Query | Description| - /// |----- | -----------| - /// |displayName=Test*|Folders whose display name starts with "Test".| - /// |lifecycleState=ACTIVE|Folders whose lifecycleState is ACTIVE.| - /// |parent=folders/123|Folders whose parent is "folders/123".| - /// |parent=folders/123 AND lifecycleState=ACTIVE|Active folders whose parent - /// is "folders/123".| - core.String query; - - SearchFoldersRequest(); - - SearchFoldersRequest.fromJson(core.Map _json) { - if (_json.containsKey("pageSize")) { - pageSize = _json["pageSize"]; - } - if (_json.containsKey("pageToken")) { - pageToken = _json["pageToken"]; - } - if (_json.containsKey("query")) { - query = _json["query"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (pageSize != null) { - _json["pageSize"] = pageSize; - } - if (pageToken != null) { - _json["pageToken"] = pageToken; - } - if (query != null) { - _json["query"] = query; - } - return _json; - } -} - -/// The response message for searching folders. -class SearchFoldersResponse { - /// A possibly paginated folder search results. - /// the specified parent resource. - core.List<Folder> folders; - - /// A pagination token returned from a previous call to `SearchFolders` - /// that indicates from where searching should continue. - /// This field is optional. - core.String nextPageToken; - - SearchFoldersResponse(); - - SearchFoldersResponse.fromJson(core.Map _json) { - if (_json.containsKey("folders")) { - folders = (_json["folders"] as core.List) - .map<Folder>((value) => new Folder.fromJson(value)) - .toList(); - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (folders != null) { - _json["folders"] = folders.map((value) => (value).toJson()).toList(); - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/// Request message for `SetIamPolicy` method. -class SetIamPolicyRequest { - /// REQUIRED: The complete policy to be applied to the `resource`. The size of - /// the policy is limited to a few 10s of KB. An empty policy is a - /// valid policy but certain Cloud Platform services (such as Projects) - /// might reject them. - Policy policy; - - /// OPTIONAL: A FieldMask specifying which fields of the policy to modify. - /// Only - /// the fields in the mask will be modified. If no mask is provided, the - /// following default mask is used: - /// paths: "bindings, etag" - /// This field is only used by Cloud IAM. - core.String updateMask; - - SetIamPolicyRequest(); - - SetIamPolicyRequest.fromJson(core.Map _json) { - if (_json.containsKey("policy")) { - policy = new Policy.fromJson(_json["policy"]); - } - if (_json.containsKey("updateMask")) { - updateMask = _json["updateMask"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (policy != null) { - _json["policy"] = (policy).toJson(); - } - if (updateMask != null) { - _json["updateMask"] = updateMask; - } - 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` that 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. -/// -/// - 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 is 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"] as core.List) - .map<core.Map<core.String, core.Object>>( - (value) => (value as core.Map).cast<core.String, core.Object>()) - .toList(); - } - if (_json.containsKey("message")) { - message = _json["message"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (code != null) { - _json["code"] = code; - } - if (details != null) { - _json["details"] = details; - } - if (message != null) { - _json["message"] = message; - } - return _json; - } -} - -/// Request message for `TestIamPermissions` method. -class TestIamPermissionsRequest { - /// The set of permissions to check for the `resource`. Permissions with - /// wildcards (such as '*' or 'storage.*') are not allowed. For more - /// information see - /// [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - core.List<core.String> permissions; - - TestIamPermissionsRequest(); - - TestIamPermissionsRequest.fromJson(core.Map _json) { - if (_json.containsKey("permissions")) { - permissions = (_json["permissions"] as core.List).cast<core.String>(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (permissions != null) { - _json["permissions"] = permissions; - } - return _json; - } -} - -/// Response message for `TestIamPermissions` method. -class TestIamPermissionsResponse { - /// A subset of `TestPermissionsRequest.permissions` that the caller is - /// allowed. - core.List<core.String> permissions; - - TestIamPermissionsResponse(); - - TestIamPermissionsResponse.fromJson(core.Map _json) { - if (_json.containsKey("permissions")) { - permissions = (_json["permissions"] as core.List).cast<core.String>(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (permissions != null) { - _json["permissions"] = permissions; - } - return _json; - } -} - -/// The UndeleteFolder request message. -class UndeleteFolderRequest { - UndeleteFolderRequest(); - - UndeleteFolderRequest.fromJson(core.Map _json) {} - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - return _json; - } -}
diff --git a/generated/googleapis/lib/cloudtrace/v1.dart b/generated/googleapis/lib/cloudtrace/v1.dart index b530afb..efcc30c 100644 --- a/generated/googleapis/lib/cloudtrace/v1.dart +++ b/generated/googleapis/lib/cloudtrace/v1.dart
@@ -171,6 +171,20 @@ /// /// [projectId] - ID of the Cloud project where the trace data is stored. /// + /// [orderBy] - Field used to sort the returned traces. Optional. + /// Can be one of the following: + /// + /// * `trace_id` + /// * `name` (`name` field of root span in the trace) + /// * `duration` (difference between `end_time` and `start_time` fields of + /// the root span) + /// * `start` (`start_time` field of the root span) + /// + /// Descending order can be specified by appending `desc` to the sort field + /// (for example, `name desc`). + /// + /// Only one sort field is permitted. + /// /// [filter] - An optional filter against labels for the request. /// /// By default, searches use prefix matching. To specify exact match, prepend @@ -228,20 +242,6 @@ /// - "ROOTSPAN" : A ROOTSPAN. /// - "COMPLETE" : A COMPLETE. /// - /// [orderBy] - Field used to sort the returned traces. Optional. - /// Can be one of the following: - /// - /// * `trace_id` - /// * `name` (`name` field of root span in the trace) - /// * `duration` (difference between `end_time` and `start_time` fields of - /// the root span) - /// * `start` (`start_time` field of the root span) - /// - /// Descending order can be specified by appending `desc` to the sort field - /// (for example, `name desc`). - /// - /// Only one sort field is permitted. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -253,13 +253,13 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListTracesResponse> list(core.String projectId, - {core.String filter, + {core.String orderBy, + core.String filter, core.String endTime, core.String startTime, core.String pageToken, core.int pageSize, core.String view, - core.String orderBy, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -271,6 +271,9 @@ if (projectId == null) { throw new core.ArgumentError("Parameter projectId is required."); } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (filter != null) { _queryParams["filter"] = [filter]; } @@ -289,9 +292,6 @@ if (view != null) { _queryParams["view"] = [view]; } - if (orderBy != null) { - _queryParams["orderBy"] = [orderBy]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -338,7 +338,7 @@ /// retrieving additional traces. core.String nextPageToken; - /// List of trace records returned. + /// List of trace records as specified by the view parameter. core.List<Trace> traces; ListTracesResponse(); @@ -463,9 +463,11 @@ /// * `/http/client_region` /// * `/http/host` /// * `/http/method` + /// * `/http/path` /// * `/http/redirected_url` /// * `/http/request/size` /// * `/http/response/size` + /// * `/http/route` /// * `/http/status_code` /// * `/http/url` /// * `/http/user_agent`
diff --git a/generated/googleapis/lib/compute/v1.dart b/generated/googleapis/lib/compute/v1.dart index f8954c7..ebbe5fd 100644 --- a/generated/googleapis/lib/compute/v1.dart +++ b/generated/googleapis/lib/compute/v1.dart
@@ -83,6 +83,8 @@ new InterconnectLocationsResourceApi(_requester); InterconnectsResourceApi get interconnects => new InterconnectsResourceApi(_requester); + LicenseCodesResourceApi get licenseCodes => + new LicenseCodesResourceApi(_requester); LicensesResourceApi get licenses => new LicensesResourceApi(_requester); MachineTypesResourceApi get machineTypes => new MachineTypesResourceApi(_requester); @@ -94,6 +96,10 @@ new RegionBackendServicesResourceApi(_requester); RegionCommitmentsResourceApi get regionCommitments => new RegionCommitmentsResourceApi(_requester); + RegionDiskTypesResourceApi get regionDiskTypes => + new RegionDiskTypesResourceApi(_requester); + RegionDisksResourceApi get regionDisks => + new RegionDisksResourceApi(_requester); RegionInstanceGroupManagersResourceApi get regionInstanceGroupManagers => new RegionInstanceGroupManagersResourceApi(_requester); RegionInstanceGroupsResourceApi get regionInstanceGroups => @@ -106,6 +112,8 @@ SnapshotsResourceApi get snapshots => new SnapshotsResourceApi(_requester); SslCertificatesResourceApi get sslCertificates => new SslCertificatesResourceApi(_requester); + SslPoliciesResourceApi get sslPolicies => + new SslPoliciesResourceApi(_requester); SubnetworksResourceApi get subnetworks => new SubnetworksResourceApi(_requester); TargetHttpProxiesResourceApi get targetHttpProxies => @@ -149,30 +157,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -251,8 +256,7 @@ .then((data) => new AcceleratorTypeAggregatedList.fromJson(data)); } - /// Returns the specified accelerator type. Get a list of available - /// accelerator types by making a list() request. + /// Returns the specified accelerator type. /// /// Request parameters: /// @@ -325,30 +329,27 @@ /// [zone] - The name of the zone for this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -444,30 +445,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -771,30 +769,27 @@ /// [region] - Name of the region for this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -890,30 +885,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -1069,7 +1061,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified autoscaler resource. Get a list of available + /// Returns the specified autoscaler resource. Gets a list of available /// autoscalers by making a list() request. /// /// Request parameters: @@ -1220,30 +1212,27 @@ /// [zone] - Name of the zone for this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -1567,7 +1556,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified BackendBucket resource. Get a list of available + /// Returns the specified BackendBucket resource. Gets a list of available /// backend buckets by making a list() request. /// /// Request parameters: @@ -1698,30 +1687,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -1965,30 +1951,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -2136,7 +2119,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified BackendService resource. Get a list of available + /// Returns the specified BackendService resource. Gets a list of available /// backend services by making a list() request. /// /// Request parameters: @@ -2334,30 +2317,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -2605,30 +2585,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -2704,7 +2681,7 @@ return _response.then((data) => new DiskTypeAggregatedList.fromJson(data)); } - /// Returns the specified disk type. Get a list of available disk types by + /// Returns the specified disk type. Gets a list of available disk types by /// making a list() request. /// /// Request parameters: @@ -2778,30 +2755,27 @@ /// [zone] - The name of the zone for this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -2897,30 +2871,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -3165,7 +3136,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns a specified persistent disk. Get a list of available persistent + /// Returns a specified persistent disk. Gets a list of available persistent /// disks by making a list() request. /// /// Request parameters: @@ -3324,30 +3295,27 @@ /// [zone] - The name of the zone for this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -3802,30 +3770,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -4069,30 +4034,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -4399,30 +4361,27 @@ /// [region] - Name of the region scoping this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -4665,7 +4624,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified address resource. Get a list of available addresses + /// Returns the specified address resource. Gets a list of available addresses /// by making a list() request. /// /// Request parameters: @@ -4794,30 +4753,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -4970,7 +4926,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified GlobalForwardingRule resource. Get a list of + /// Returns the specified GlobalForwardingRule resource. Gets a list of /// available forwarding rules by making a list() request. /// /// Request parameters: @@ -5102,30 +5058,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -5295,30 +5248,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -5447,7 +5397,7 @@ return _response.then((data) => null); } - /// Retrieves the specified Operations resource. Get a list of operations by + /// Retrieves the specified Operations resource. Gets a list of operations by /// making a list() request. /// /// Request parameters: @@ -5510,30 +5460,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -5684,8 +5631,8 @@ 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. + /// Returns the specified HealthCheck resource. Gets a list of available + /// health checks by making a list() request. /// /// Request parameters: /// @@ -5814,30 +5761,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -6143,7 +6087,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified HttpHealthCheck resource. Get a list of available + /// Returns the specified HttpHealthCheck resource. Gets a list of available /// HTTP health checks by making a list() request. /// /// Request parameters: @@ -6275,30 +6219,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -6605,7 +6546,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified HttpsHealthCheck resource. Get a list of available + /// Returns the specified HttpsHealthCheck resource. Gets a list of available /// HTTPS health checks by making a list() request. /// /// Request parameters: @@ -6737,30 +6678,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -7143,7 +7081,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified image. Get a list of available images by making a + /// Returns the specified image. Gets a list of available images by making a /// list() request. /// /// Request parameters: @@ -7336,30 +7274,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -7612,30 +7547,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -7892,8 +7824,9 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns all of the details about the specified managed instance group. Get - /// a list of available managed instance groups by making a list() request. + /// Returns all of the details about the specified managed instance group. + /// Gets a list of available managed instance groups by making a list() + /// request. /// /// Request parameters: /// @@ -8050,30 +7983,27 @@ /// /// [zone] - The name of the zone where the managed instance group is located. /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -8726,30 +8656,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -8905,7 +8832,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified instance group. Get a list of available instance + /// Returns the specified instance group. Gets a list of available instance /// groups by making a list() request. /// /// Request parameters: @@ -9053,30 +8980,27 @@ /// /// [zone] - The name of the zone where the instance group is located. /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -9173,30 +9097,27 @@ /// [instanceGroup] - The name of the instance group from which you want to /// generate a list of included instances. /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -9549,7 +9470,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified instance template. Get a list of available instance + /// Returns the specified instance template. Gets a list of available instance /// templates by making a list() request. /// /// Request parameters: @@ -9683,30 +9604,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -9893,30 +9811,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -10011,6 +9926,9 @@ /// [instance] - The instance name for this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// + /// [forceAttach] - Whether to force attach the disk even if it's currently + /// attached to another instance. This is only available for regional disks. + /// /// [requestId] - An optional request ID to identify requests. Specify a /// unique request ID so that if you must retry your request, the server will /// know to ignore the request if it has already been completed. @@ -10036,7 +9954,7 @@ /// this method will complete with the same error. async.Future<Operation> attachDisk(AttachedDisk request, core.String project, core.String zone, core.String instance, - {core.String requestId, core.String $fields}) { + {core.bool forceAttach, core.String requestId, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -10056,6 +9974,9 @@ if (instance == null) { throw new core.ArgumentError("Parameter instance is required."); } + if (forceAttach != null) { + _queryParams["forceAttach"] = ["${forceAttach}"]; + } if (requestId != null) { _queryParams["requestId"] = [requestId]; } @@ -10339,8 +10260,8 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified Instance resource. Get a list of available instances - /// by making a list() request. + /// Returns the specified Instance resource. Gets a list of available + /// instances by making a list() request. /// /// Request parameters: /// @@ -10507,6 +10428,16 @@ /// The request ID must be a valid UUID with the exception that zero UUID is /// not supported (00000000-0000-0000-0000-000000000000). /// + /// [sourceInstanceTemplate] - Specifies instance template to create the + /// instance. + /// + /// This field is optional. It can be a full or partial URL. For example, the + /// following are all valid URLs to an instance template: + /// - + /// https://www.googleapis.com/compute/v1/projects/project/global/global/instanceTemplates/instanceTemplate + /// - projects/project/global/global/instanceTemplates/instanceTemplate + /// - global/instancesTemplates/instanceTemplate + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -10519,7 +10450,9 @@ /// this method will complete with the same error. async.Future<Operation> insert( Instance request, core.String project, core.String zone, - {core.String requestId, core.String $fields}) { + {core.String requestId, + core.String sourceInstanceTemplate, + core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -10539,6 +10472,9 @@ if (requestId != null) { _queryParams["requestId"] = [requestId]; } + if (sourceInstanceTemplate != null) { + _queryParams["sourceInstanceTemplate"] = [sourceInstanceTemplate]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -10568,30 +10504,27 @@ /// [zone] - The name of the zone for this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -10689,30 +10622,27 @@ /// the request should span over all instances in the container. /// Value must have pattern "-|[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -11756,8 +11686,8 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Starts an instance that was stopped using the using the instances().stop - /// method. For more information, see Restart an instance. + /// Starts an instance that was stopped using the instances().stop method. For + /// more information, see Restart an instance. /// /// Request parameters: /// @@ -11836,8 +11766,8 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Starts an instance that was stopped using the using the instances().stop - /// method. For more information, see Restart an instance. + /// Starts an instance that was stopped using the instances().stop method. For + /// more information, see Restart an instance. /// /// [request] - The metadata request object. /// @@ -12106,6 +12036,102 @@ downloadOptions: _downloadOptions); return _response.then((data) => new Operation.fromJson(data)); } + + /// Updates an instance's network interface. This method follows 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])?))". + /// + /// [zone] - The name of the zone for this request. + /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + /// + /// [instance] - The instance name for this request. + /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + /// + /// [networkInterface] - The name of the network interface to update. + /// + /// [requestId] - An optional request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> updateNetworkInterface( + NetworkInterface request, + core.String project, + core.String zone, + core.String instance, + core.String networkInterface, + {core.String requestId, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (zone == null) { + throw new core.ArgumentError("Parameter zone is required."); + } + if (instance == null) { + throw new core.ArgumentError("Parameter instance is required."); + } + if (networkInterface == null) { + throw new core.ArgumentError("Parameter networkInterface is required."); + } + _queryParams["networkInterface"] = [networkInterface]; + if (requestId != null) { + _queryParams["requestId"] = [requestId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/zones/' + + commons.Escaper.ecapeVariable('$zone') + + '/instances/' + + commons.Escaper.ecapeVariable('$instance') + + '/updateNetworkInterface'; + + var _response = _requester.request(_url, "PATCH", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } } class InterconnectAttachmentsResourceApi { @@ -12122,30 +12148,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -12455,30 +12478,27 @@ /// [region] - Name of the region for this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -12561,6 +12581,96 @@ return _response .then((data) => new InterconnectAttachmentList.fromJson(data)); } + + /// Updates the specified interconnect attachment with the data included in + /// the request. This method supports PATCH semantics and uses the JSON merge + /// patch format and processing rules. + /// + /// [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])?". + /// + /// [interconnectAttachment] - Name of the interconnect attachment to patch. + /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + /// + /// [requestId] - An optional request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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( + InterconnectAttachment request, + core.String project, + core.String region, + core.String interconnectAttachment, + {core.String requestId, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (interconnectAttachment == null) { + throw new core.ArgumentError( + "Parameter interconnectAttachment is required."); + } + if (requestId != null) { + _queryParams["requestId"] = [requestId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/regions/' + + commons.Escaper.ecapeVariable('$region') + + '/interconnectAttachments/' + + commons.Escaper.ecapeVariable('$interconnectAttachment'); + + var _response = _requester.request(_url, "PATCH", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } } class InterconnectLocationsResourceApi { @@ -12569,8 +12679,8 @@ InterconnectLocationsResourceApi(commons.ApiRequester client) : _requester = client; - /// Returns the details for the specified interconnect location. Get a list of - /// available interconnect locations by making a list() request. + /// Returns the details for the specified interconnect location. Gets a list + /// of available interconnect locations by making a list() request. /// /// Request parameters: /// @@ -12634,30 +12744,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -12939,30 +13046,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -13116,11 +13220,201 @@ } } +class LicenseCodesResourceApi { + final commons.ApiRequester _requester; + + LicenseCodesResourceApi(commons.ApiRequester client) : _requester = client; + + /// Return a specified license code. License codes are mirrored across all + /// projects that have permissions to read the License Code. + /// + /// 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])?))". + /// + /// [licenseCode] - Number corresponding to the License code resource to + /// return. + /// Value must have pattern "[0-9]{0,61}?". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [LicenseCode]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<LicenseCode> get(core.String project, core.String licenseCode, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (licenseCode == null) { + throw new core.ArgumentError("Parameter licenseCode is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/global/licenseCodes/' + + commons.Escaper.ecapeVariable('$licenseCode'); + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new LicenseCode.fromJson(data)); + } + + /// 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-z0-9_]{0,62}[a-z0-9])?". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/global/licenseCodes/' + + 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)); + } +} + class LicensesResourceApi { final commons.ApiRequester _requester; LicensesResourceApi(commons.ApiRequester client) : _requester = client; + /// Deletes the specified license. + /// + /// 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])?))". + /// + /// [license] - Name of the license resource to delete. + /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + /// + /// [requestId] - An optional request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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 license, + {core.String requestId, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (license == null) { + throw new core.ArgumentError("Parameter license is required."); + } + if (requestId != null) { + _queryParams["requestId"] = [requestId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/global/licenses/' + + commons.Escaper.ecapeVariable('$license'); + + 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 License resource. /// /// Request parameters: @@ -13173,6 +13467,241 @@ downloadOptions: _downloadOptions); return _response.then((data) => new License.fromJson(data)); } + + /// Create a License resource in the specified project. + /// + /// [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])?))". + /// + /// [requestId] - An optional request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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(License request, core.String project, + {core.String requestId, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (requestId != null) { + _queryParams["requestId"] = [requestId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/licenses'; + + 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 licenses available in the specified project. This + /// method does not get any licenses that belong to other projects, including + /// licenses attached to publicly-available images, like Debian 9. If you want + /// to get a list of publicly-available licenses, use this method to make a + /// request to the respective image project, such as debian-cloud or + /// windows-cloud. + /// + /// 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] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. + /// + /// For example, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. + /// + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. + /// + /// To filter on multiple expressions, provide each separate expression within + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). + /// + /// [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. Acceptable values are 0 to + /// 500, inclusive. (Default: 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. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [LicensesListResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<LicensesListResponse> list(core.String project, + {core.String filter, + core.int maxResults, + core.String orderBy, + core.String pageToken, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/licenses'; + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new LicensesListResponse.fromJson(data)); + } + + /// 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-z0-9_]{0,62}[a-z0-9])?". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/global/licenses/' + + 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)); + } } class MachineTypesResourceApi { @@ -13188,30 +13717,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -13289,7 +13815,7 @@ .then((data) => new MachineTypeAggregatedList.fromJson(data)); } - /// Returns the specified machine type. Get a list of available machine types + /// Returns the specified machine type. Gets a list of available machine types /// by making a list() request. /// /// Request parameters: @@ -13363,30 +13889,27 @@ /// [zone] - The name of the zone for this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -13619,7 +14142,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified network. Get a list of available networks by making + /// Returns the specified network. Gets a list of available networks by making /// a list() request. /// /// Request parameters: @@ -13748,30 +14271,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -14379,7 +14899,7 @@ return _response.then((data) => new Project.fromJson(data)); } - /// Get the shared VPC host project that this project links to. May be empty + /// Gets the shared VPC host project that this project links to. May be empty /// if no link exists. /// /// Request parameters: @@ -14424,7 +14944,7 @@ return _response.then((data) => new Project.fromJson(data)); } - /// Get service resources (a.k.a service project) associated with this host + /// Gets service resources (a.k.a service project) associated with this host /// project. /// /// Request parameters: @@ -14494,7 +15014,7 @@ return _response.then((data) => new ProjectsGetXpnResources.fromJson(data)); } - /// List all shared VPC host projects visible to the user in an organization. + /// Lists all shared VPC host projects visible to the user in an organization. /// /// [request] - The metadata request object. /// @@ -15076,30 +15596,27 @@ /// [region] - Name of the region scoping this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -15661,30 +16178,27 @@ /// [region] - Name of the region scoping this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -15954,30 +16468,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -16055,7 +16566,7 @@ .then((data) => new CommitmentAggregatedList.fromJson(data)); } - /// Returns the specified commitment resource. Get a list of available + /// Returns the specified commitment resource. Gets a list of available /// commitments by making a list() request. /// /// Request parameters: @@ -16206,30 +16717,27 @@ /// [region] - Name of the region for this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -16312,6 +16820,856 @@ } } +class RegionDiskTypesResourceApi { + final commons.ApiRequester _requester; + + RegionDiskTypesResourceApi(commons.ApiRequester client) : _requester = client; + + /// Returns the specified regional disk type. Gets a list of available disk + /// types 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])?))". + /// + /// [region] - The name of the region for this request. + /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + /// + /// [diskType] - Name of the disk type to return. + /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [DiskType]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<DiskType> get( + core.String project, core.String region, core.String diskType, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (diskType == null) { + throw new core.ArgumentError("Parameter diskType is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/regions/' + + commons.Escaper.ecapeVariable('$region') + + '/diskTypes/' + + commons.Escaper.ecapeVariable('$diskType'); + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new DiskType.fromJson(data)); + } + + /// Retrieves a list of regional disk types 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])?))". + /// + /// [region] - The name of the region for this request. + /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + /// + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. + /// + /// For example, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. + /// + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. + /// + /// To filter on multiple expressions, provide each separate expression within + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). + /// + /// [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. Acceptable values are 0 to + /// 500, inclusive. (Default: 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. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [RegionDiskTypeList]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<RegionDiskTypeList> list(core.String project, core.String region, + {core.String filter, + core.int maxResults, + core.String orderBy, + core.String pageToken, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } + if (maxResults != null) { + _queryParams["maxResults"] = ["${maxResults}"]; + } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/regions/' + + commons.Escaper.ecapeVariable('$region') + + '/diskTypes'; + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new RegionDiskTypeList.fromJson(data)); + } +} + +class RegionDisksResourceApi { + final commons.ApiRequester _requester; + + RegionDisksResourceApi(commons.ApiRequester client) : _requester = client; + + /// Creates a snapshot of this regional disk. + /// + /// [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 for this request. + /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + /// + /// [disk] - Name of the regional persistent disk to snapshot. + /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + /// + /// [requestId] - An optional request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> createSnapshot(Snapshot request, core.String project, + core.String region, core.String disk, + {core.String requestId, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (disk == null) { + throw new core.ArgumentError("Parameter disk is required."); + } + if (requestId != null) { + _queryParams["requestId"] = [requestId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/regions/' + + commons.Escaper.ecapeVariable('$region') + + '/disks/' + + commons.Escaper.ecapeVariable('$disk') + + '/createSnapshot'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Deletes the specified regional persistent disk. Deleting a regional disk + /// removes all the replicas of its data permanently and is irreversible. + /// However, deleting a disk does not delete any snapshots previously made + /// from the disk. You must separately delete snapshots. + /// + /// 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 for this request. + /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + /// + /// [disk] - Name of the regional persistent disk to delete. + /// + /// [requestId] - An optional request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Operation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<Operation> delete( + core.String project, core.String region, core.String disk, + {core.String requestId, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (disk == null) { + throw new core.ArgumentError("Parameter disk is required."); + } + if (requestId != null) { + _queryParams["requestId"] = [requestId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/regions/' + + commons.Escaper.ecapeVariable('$region') + + '/disks/' + + commons.Escaper.ecapeVariable('$disk'); + + 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 a specified regional persistent disk. + /// + /// 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 for this request. + /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + /// + /// [disk] - Name of the regional persistent disk to return. + /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Disk]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<Disk> get( + core.String project, core.String region, core.String disk, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (disk == null) { + throw new core.ArgumentError("Parameter disk is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/regions/' + + commons.Escaper.ecapeVariable('$region') + + '/disks/' + + commons.Escaper.ecapeVariable('$disk'); + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Disk.fromJson(data)); + } + + /// Creates a persistent regional disk in the specified project using the data + /// included in the request. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [project] - Project ID for this request. + /// Value must have pattern + /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + /// + /// [region] - Name of the region for this request. + /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + /// + /// [requestId] - An optional request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + /// [sourceImage] - Optional. Source image to restore onto a disk. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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( + Disk request, core.String project, core.String region, + {core.String requestId, core.String sourceImage, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (requestId != null) { + _queryParams["requestId"] = [requestId]; + } + if (sourceImage != null) { + _queryParams["sourceImage"] = [sourceImage]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/regions/' + + commons.Escaper.ecapeVariable('$region') + + '/disks'; + + 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 persistent disks contained within the specified + /// region. + /// + /// Request parameters: + /// + /// [project] - Project ID for this request. + /// Value must have pattern + /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + /// + /// [region] - Name of the region for this request. + /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + /// + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. + /// + /// For example, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. + /// + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. + /// + /// To filter on multiple expressions, provide each separate expression within + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). + /// + /// [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. Acceptable values are 0 to + /// 500, inclusive. (Default: 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. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [DiskList]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// 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 region, + {core.String filter, + core.int maxResults, + core.String orderBy, + core.String pageToken, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } + if (maxResults != null) { + _queryParams["maxResults"] = ["${maxResults}"]; + } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/regions/' + + commons.Escaper.ecapeVariable('$region') + + '/disks'; + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new DiskList.fromJson(data)); + } + + /// Resizes the specified regional persistent disk. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [project] - The 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 for this request. + /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + /// + /// [disk] - Name of the regional persistent disk. + /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + /// + /// [requestId] - An optional request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Operation]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<Operation> resize(RegionDisksResizeRequest request, + core.String project, core.String region, core.String disk, + {core.String requestId, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (disk == null) { + throw new core.ArgumentError("Parameter disk is required."); + } + if (requestId != null) { + _queryParams["requestId"] = [requestId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/regions/' + + commons.Escaper.ecapeVariable('$region') + + '/disks/' + + commons.Escaper.ecapeVariable('$disk') + + '/resize'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Sets the labels on the target regional disk. + /// + /// [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] - The region for this request. + /// Value must have pattern "[a-z](?:[-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])?". + /// + /// [requestId] - An optional request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> setLabels(RegionSetLabelsRequest request, + core.String project, core.String region, core.String resource, + {core.String requestId, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (resource == null) { + throw new core.ArgumentError("Parameter resource is required."); + } + if (requestId != null) { + _queryParams["requestId"] = [requestId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/regions/' + + commons.Escaper.ecapeVariable('$region') + + '/disks/' + + commons.Escaper.ecapeVariable('$resource') + + '/setLabels'; + + 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 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])?))". + /// + /// [region] - The name of the region for this request. + /// Value must have pattern "[a-z](?:[-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])?". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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 region, + core.String resource, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (resource == null) { + throw new core.ArgumentError("Parameter resource is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/regions/' + + commons.Escaper.ecapeVariable('$region') + + '/disks/' + + 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)); + } +} + class RegionInstanceGroupManagersResourceApi { final commons.ApiRequester _requester; @@ -16751,30 +18109,27 @@ /// /// [region] - Name of the region scoping this request. /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -17395,30 +18750,27 @@ /// /// [region] - Name of the region scoping this request. /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -17518,30 +18870,27 @@ /// [instanceGroup] - Name of the regional instance group for which we want to /// list the instances. /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -17866,30 +19215,27 @@ /// [region] - Name of the region for this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -17977,7 +19323,7 @@ RegionsResourceApi(commons.ApiRequester client) : _requester = client; - /// Returns the specified Region resource. Get a list of available regions by + /// Returns the specified Region resource. Gets a list of available regions by /// making a list() request. /// /// Request parameters: @@ -18039,30 +19385,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -18152,30 +19495,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -18329,7 +19669,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified Router resource. Get a list of available routers by + /// Returns the specified Router resource. Gets a list of available routers by /// making a list() request. /// /// Request parameters: @@ -18543,30 +19883,27 @@ /// [region] - Name of the region for this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -18961,7 +20298,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified Route resource. Get a list of available routes by + /// Returns the specified Route resource. Gets a list of available routes by /// making a list() request. /// /// Request parameters: @@ -19090,30 +20427,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -19270,8 +20604,8 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified Snapshot resource. Get a list of available snapshots - /// by making a list() request. + /// Returns the specified Snapshot resource. Gets a list of available + /// snapshots by making a list() request. /// /// Request parameters: /// @@ -19333,30 +20667,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -19569,8 +20900,8 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified SslCertificate resource. Get a list of available SSL - /// certificates by making a list() request. + /// Returns the specified SslCertificate resource. Gets a list of available + /// SSL certificates by making a list() request. /// /// Request parameters: /// @@ -19701,30 +21032,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -19802,6 +21130,491 @@ } } +class SslPoliciesResourceApi { + final commons.ApiRequester _requester; + + SslPoliciesResourceApi(commons.ApiRequester client) : _requester = client; + + /// Deletes the specified SSL policy. The SSL policy resource can be deleted + /// only if it is not in use by any TargetHttpsProxy or TargetSslProxy + /// resources. + /// + /// 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])?))". + /// + /// [sslPolicy] - Name of the SSL policy to delete. The name must be 1-63 + /// characters long, and comply with RFC1035. + /// + /// [requestId] - An optional request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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 sslPolicy, + {core.String requestId, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (sslPolicy == null) { + throw new core.ArgumentError("Parameter sslPolicy is required."); + } + if (requestId != null) { + _queryParams["requestId"] = [requestId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/global/sslPolicies/' + + commons.Escaper.ecapeVariable('$sslPolicy'); + + var _response = _requester.request(_url, "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Lists all of the ordered rules present in a single specified policy. + /// + /// 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])?))". + /// + /// [sslPolicy] - Name of the SSL policy to update. The name must be 1-63 + /// characters long, and comply with RFC1035. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [SslPolicy]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<SslPolicy> get(core.String project, core.String sslPolicy, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (sslPolicy == null) { + throw new core.ArgumentError("Parameter sslPolicy is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/global/sslPolicies/' + + commons.Escaper.ecapeVariable('$sslPolicy'); + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new SslPolicy.fromJson(data)); + } + + /// Returns the specified SSL policy resource. Gets a list of available SSL + /// policies by making a list() 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])?))". + /// + /// [requestId] - An optional request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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(SslPolicy request, core.String project, + {core.String requestId, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (requestId != null) { + _queryParams["requestId"] = [requestId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/sslPolicies'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Lists all the SSL policies that have been configured for 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] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. + /// + /// For example, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. + /// + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. + /// + /// To filter on multiple expressions, provide each separate expression within + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). + /// + /// [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. Acceptable values are 0 to + /// 500, inclusive. (Default: 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. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [SslPoliciesList]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<SslPoliciesList> list(core.String project, + {core.String filter, + core.int maxResults, + core.String orderBy, + core.String pageToken, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/sslPolicies'; + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new SslPoliciesList.fromJson(data)); + } + + /// Lists all features that can be specified in the SSL policy when using + /// custom profile. + /// + /// 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] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. + /// + /// For example, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. + /// + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. + /// + /// To filter on multiple expressions, provide each separate expression within + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). + /// + /// [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. Acceptable values are 0 to + /// 500, inclusive. (Default: 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. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [SslPoliciesListAvailableFeaturesResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<SslPoliciesListAvailableFeaturesResponse> listAvailableFeatures( + core.String project, + {core.String filter, + core.int maxResults, + core.String orderBy, + core.String pageToken, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/global/sslPolicies/listAvailableFeatures'; + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then( + (data) => new SslPoliciesListAvailableFeaturesResponse.fromJson(data)); + } + + /// Patches the specified SSL policy with 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])?))". + /// + /// [sslPolicy] - Name of the SSL policy to update. The name must be 1-63 + /// characters long, and comply with RFC1035. + /// + /// [requestId] - An optional request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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( + SslPolicy request, core.String project, core.String sslPolicy, + {core.String requestId, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (sslPolicy == null) { + throw new core.ArgumentError("Parameter sslPolicy is required."); + } + if (requestId != null) { + _queryParams["requestId"] = [requestId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/global/sslPolicies/' + + commons.Escaper.ecapeVariable('$sslPolicy'); + + var _response = _requester.request(_url, "PATCH", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } +} + class SubnetworksResourceApi { final commons.ApiRequester _requester; @@ -19815,30 +21628,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -20082,7 +21892,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified subnetwork. Get a list of available subnetworks + /// Returns the specified subnetwork. Gets a list of available subnetworks /// list() request. /// /// Request parameters: @@ -20233,30 +22043,27 @@ /// [region] - Name of the region scoping this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -20338,6 +22145,93 @@ return _response.then((data) => new SubnetworkList.fromJson(data)); } + /// Patches the specified subnetwork with the data included in the request. + /// Only the following fields within the subnetwork resource can be specified + /// in the request: secondary_ip_range, allow_subnet_cidr_routes_overlap and + /// role. It is also mandatory to specify the current fingeprint of the + /// subnetwork resource being patched. + /// + /// [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 patch. + /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + /// + /// [requestId] - An optional request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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(Subnetwork request, core.String project, + core.String region, core.String subnetwork, + {core.String requestId, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if (requestId != null) { + _queryParams["requestId"] = [requestId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/regions/' + + commons.Escaper.ecapeVariable('$region') + + '/subnetworks/' + + commons.Escaper.ecapeVariable('$subnetwork'); + + var _response = _requester.request(_url, "PATCH", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + /// Set whether VMs in this subnet can access Google services without /// assigning external IP addresses through Private Google Access. /// @@ -20504,7 +22398,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified TargetHttpProxy resource. Get a list of available + /// Returns the specified TargetHttpProxy resource. Gets a list of available /// target HTTP proxies by making a list() request. /// /// Request parameters: @@ -20636,30 +22530,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -20889,7 +22780,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified TargetHttpsProxy resource. Get a list of available + /// Returns the specified TargetHttpsProxy resource. Gets a list of available /// target HTTPS proxies by making a list() request. /// /// Request parameters: @@ -21021,30 +22912,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -21121,6 +23009,85 @@ return _response.then((data) => new TargetHttpsProxyList.fromJson(data)); } + /// Sets the QUIC override policy for TargetHttpsProxy. + /// + /// [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])?))". + /// + /// [targetHttpsProxy] - Name of the TargetHttpsProxy resource to set the QUIC + /// override policy for. The name should conform to RFC1035. + /// + /// [requestId] - An optional request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> setQuicOverride( + TargetHttpsProxiesSetQuicOverrideRequest request, + core.String project, + core.String targetHttpsProxy, + {core.String requestId, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (targetHttpsProxy == null) { + throw new core.ArgumentError("Parameter targetHttpsProxy is required."); + } + if (requestId != null) { + _queryParams["requestId"] = [requestId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/global/targetHttpsProxies/' + + commons.Escaper.ecapeVariable('$targetHttpsProxy') + + '/setQuicOverride'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + /// Replaces SslCertificates for TargetHttpsProxy. /// /// [request] - The metadata request object. @@ -21201,6 +23168,86 @@ return _response.then((data) => new Operation.fromJson(data)); } + /// Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the + /// server-side support for SSL features. This affects connections between + /// clients and the HTTPS proxy load balancer. They do not affect the + /// connection between the load balancer and the backends. + /// + /// [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])?))". + /// + /// [targetHttpsProxy] - Name of the TargetHttpsProxy resource whose SSL + /// policy is to be set. The name must be 1-63 characters long, and comply + /// with RFC1035. + /// + /// [requestId] - An optional request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> setSslPolicy(SslPolicyReference request, + core.String project, core.String targetHttpsProxy, + {core.String requestId, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (targetHttpsProxy == null) { + throw new core.ArgumentError("Parameter targetHttpsProxy is required."); + } + if (requestId != null) { + _queryParams["requestId"] = [requestId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/global/targetHttpsProxies/' + + commons.Escaper.ecapeVariable('$targetHttpsProxy') + + '/setSslPolicy'; + + 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 URL map for TargetHttpsProxy. /// /// [request] - The metadata request object. @@ -21292,30 +23339,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -21471,7 +23515,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified TargetInstance resource. Get a list of available + /// Returns the specified TargetInstance resource. Gets a list of available /// target instances by making a list() request. /// /// Request parameters: @@ -21623,30 +23667,27 @@ /// [zone] - Name of the zone scoping this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -21914,30 +23955,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -22093,8 +24131,8 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified target pool. Get a list of available target pools by - /// making a list() request. + /// Returns the specified target pool. Gets a list of available target pools + /// by making a list() request. /// /// Request parameters: /// @@ -22316,30 +24354,27 @@ /// [region] - Name of the region scoping this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -22763,7 +24798,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified TargetSslProxy resource. Get a list of available + /// Returns the specified TargetSslProxy resource. Gets a list of available /// target SSL proxies by making a list() request. /// /// Request parameters: @@ -22895,30 +24930,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -23234,6 +25266,85 @@ downloadOptions: _downloadOptions); return _response.then((data) => new Operation.fromJson(data)); } + + /// Sets the SSL policy for TargetSslProxy. The SSL policy specifies the + /// server-side support for SSL features. This affects connections between + /// clients and the SSL proxy load balancer. They do not affect the connection + /// between the load balancer and the backends. + /// + /// [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 SSL policy is + /// to be set. The name must be 1-63 characters long, and comply with RFC1035. + /// + /// [requestId] - An optional request ID to identify requests. Specify a + /// unique request ID so that if you must retry your request, the server will + /// know to ignore the request if it has already been completed. + /// + /// For example, consider a situation where you make an initial request and + /// the request times out. If you make the request again with the same request + /// ID, the server can check if original operation with the same request ID + /// was received, and if so, will ignore the second request. This prevents + /// clients from accidentally creating duplicate commitments. + /// + /// The request ID must be a valid UUID with the exception that zero UUID is + /// not supported (00000000-0000-0000-0000-000000000000). + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> setSslPolicy(SslPolicyReference request, + core.String project, core.String targetSslProxy, + {core.String requestId, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if (requestId != null) { + _queryParams["requestId"] = [requestId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/global/targetSslProxies/' + + commons.Escaper.ecapeVariable('$targetSslProxy') + + '/setSslPolicy'; + + 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 TargetTcpProxiesResourceApi { @@ -23312,7 +25423,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified TargetTcpProxy resource. Get a list of available + /// Returns the specified TargetTcpProxy resource. Gets a list of available /// target TCP proxies by making a list() request. /// /// Request parameters: @@ -23444,30 +25555,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -23719,30 +25827,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -23899,7 +26004,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified target VPN gateway. Get a list of available target + /// Returns the specified target VPN gateway. Gets a list of available target /// VPN gateways by making a list() request. /// /// Request parameters: @@ -24051,30 +26156,27 @@ /// [region] - Name of the region for this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -24232,8 +26334,8 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified UrlMap resource. Get a list of available URL maps by - /// making a list() request. + /// Returns the specified UrlMap resource. Gets a list of available URL maps + /// by making a list() request. /// /// Request parameters: /// @@ -24438,30 +26540,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -24766,30 +26865,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -24943,7 +27039,7 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Returns the specified VpnTunnel resource. Get a list of available VPN + /// Returns the specified VpnTunnel resource. Gets a list of available VPN /// tunnels by making a list() request. /// /// Request parameters: @@ -25095,30 +27191,27 @@ /// [region] - Name of the region for this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -25342,30 +27435,27 @@ /// [zone] - Name of the zone for request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -25453,7 +27543,7 @@ ZonesResourceApi(commons.ApiRequester client) : _requester = client; - /// Returns the specified Zone resource. Get a list of available zones by + /// Returns the specified Zone resource. Gets a list of available zones by /// making a list() request. /// /// Request parameters: @@ -25515,30 +27605,27 @@ /// 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. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -26230,7 +28317,7 @@ } class AcceleratorTypesScopedList { - /// [Output Only] List of accelerator types contained in this scope. + /// [Output Only] A list of accelerator types contained in this scope. core.List<AcceleratorType> acceleratorTypes; /// [Output Only] An informational warning that appears when the accelerator @@ -26385,8 +28472,8 @@ /// 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, + /// 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; @@ -26986,7 +29073,7 @@ } class AddressesScopedList { - /// [Output Only] List of addresses contained in this scope. + /// [Output Only] A list of addresses contained in this scope. core.List<Address> addresses; /// [Output Only] Informational warning which replaces the list of addresses @@ -27097,6 +29184,11 @@ /// cannot use your own keys to encrypt disks in a managed instance group. CustomerEncryptionKey diskEncryptionKey; + /// A list of features to enable on the guest operating system. Applicable + /// only for bootable images. Read Enabling guest operating system features + /// to see a list of available options. + core.List<GuestOsFeature> guestOsFeatures; + /// [Output Only] A zero-based index to this disk, where 0 is reserved for the /// boot disk. If you have many disks attached to an instance, each disk would /// have a unique index number. @@ -27169,6 +29261,11 @@ diskEncryptionKey = new CustomerEncryptionKey.fromJson(_json["diskEncryptionKey"]); } + if (_json.containsKey("guestOsFeatures")) { + guestOsFeatures = (_json["guestOsFeatures"] as core.List) + .map<GuestOsFeature>((value) => new GuestOsFeature.fromJson(value)) + .toList(); + } if (_json.containsKey("index")) { index = _json["index"]; } @@ -27211,6 +29308,10 @@ if (diskEncryptionKey != null) { _json["diskEncryptionKey"] = (diskEncryptionKey).toJson(); } + if (guestOsFeatures != null) { + _json["guestOsFeatures"] = + guestOsFeatures.map((value) => (value).toJson()).toList(); + } if (index != null) { _json["index"] = index; } @@ -27391,8 +29492,8 @@ /// 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, + /// 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; @@ -28037,7 +30138,7 @@ } class AutoscalersScopedList { - /// [Output Only] List of autoscalers contained in this scope. + /// [Output Only] A list of autoscalers contained in this scope. core.List<Autoscaler> autoscalers; /// [Output Only] Informational warning which replaces the list of autoscalers @@ -28443,8 +30544,8 @@ /// 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, + /// 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; @@ -28771,8 +30872,8 @@ /// 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, + /// 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; @@ -29555,7 +31656,7 @@ } class BackendServicesScopedList { - /// List of BackendServices contained in this scope. + /// A list of BackendServices contained in this scope. core.List<BackendService> backendServices; /// Informational warning which replaces the list of backend services when the @@ -29723,8 +31824,8 @@ /// 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, + /// 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; @@ -29741,7 +31842,7 @@ /// [Output Only] URL of the region where this commitment may be used. core.String region; - /// List of commitment amounts for particular resources. Note that VCPU and + /// A list of commitment amounts for particular resources. Note that VCPU and /// MEMORY resource commitments must occur together. core.List<ResourceCommitment> resources; @@ -30334,7 +32435,7 @@ } class CommitmentsScopedList { - /// [Output Only] List of commitments contained in this scope. + /// [Output Only] A list of commitments contained in this scope. core.List<Commitment> commitments; /// [Output Only] Informational warning which replaces the list of commitments @@ -30559,6 +32660,11 @@ /// need to provide a key to use the disk later. CustomerEncryptionKey diskEncryptionKey; + /// A list of features to enable on the guest operating system. Applicable + /// only for bootable images. Read Enabling guest operating system features + /// to see a list of available options. + core.List<GuestOsFeature> guestOsFeatures; + /// [Output Only] The unique identifier for the resource. This identifier is /// defined by the server. core.String id; @@ -30593,14 +32699,17 @@ /// [Output Only] Last detach timestamp in RFC3339 text format. core.String lastDetachTimestamp; + /// Integer license codes indicating which licenses are attached to this disk. + core.List<core.String> licenseCodes; + /// Any applicable publicly visible licenses. core.List<core.String> licenses; /// 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, + /// 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; @@ -30608,6 +32717,15 @@ /// Internal use only. core.String options; + /// [Output Only] URL of the region where the disk resides. Only applicable + /// for regional resources. You must specify this field as part of the HTTP + /// request URL. It is not settable as a field in the request body. + core.String region; + + /// URLs of the zones where the disk should be replicated to. Only applicable + /// for regional resources. + core.List<core.String> replicaZones; + /// [Output Only] Server-defined fully-qualified URL for this resource. core.String selfLink; @@ -30711,6 +32829,11 @@ diskEncryptionKey = new CustomerEncryptionKey.fromJson(_json["diskEncryptionKey"]); } + if (_json.containsKey("guestOsFeatures")) { + guestOsFeatures = (_json["guestOsFeatures"] as core.List) + .map<GuestOsFeature>((value) => new GuestOsFeature.fromJson(value)) + .toList(); + } if (_json.containsKey("id")) { id = _json["id"]; } @@ -30729,6 +32852,9 @@ if (_json.containsKey("lastDetachTimestamp")) { lastDetachTimestamp = _json["lastDetachTimestamp"]; } + if (_json.containsKey("licenseCodes")) { + licenseCodes = (_json["licenseCodes"] as core.List).cast<core.String>(); + } if (_json.containsKey("licenses")) { licenses = (_json["licenses"] as core.List).cast<core.String>(); } @@ -30738,6 +32864,12 @@ if (_json.containsKey("options")) { options = _json["options"]; } + if (_json.containsKey("region")) { + region = _json["region"]; + } + if (_json.containsKey("replicaZones")) { + replicaZones = (_json["replicaZones"] as core.List).cast<core.String>(); + } if (_json.containsKey("selfLink")) { selfLink = _json["selfLink"]; } @@ -30790,6 +32922,10 @@ if (diskEncryptionKey != null) { _json["diskEncryptionKey"] = (diskEncryptionKey).toJson(); } + if (guestOsFeatures != null) { + _json["guestOsFeatures"] = + guestOsFeatures.map((value) => (value).toJson()).toList(); + } if (id != null) { _json["id"] = id; } @@ -30808,6 +32944,9 @@ if (lastDetachTimestamp != null) { _json["lastDetachTimestamp"] = lastDetachTimestamp; } + if (licenseCodes != null) { + _json["licenseCodes"] = licenseCodes; + } if (licenses != null) { _json["licenses"] = licenses; } @@ -30817,6 +32956,12 @@ if (options != null) { _json["options"] = options; } + if (region != null) { + _json["region"] = region; + } + if (replicaZones != null) { + _json["replicaZones"] = replicaZones; + } if (selfLink != null) { _json["selfLink"] = selfLink; } @@ -31291,6 +33436,11 @@ /// [Output Only] Name of the resource. core.String name; + /// [Output Only] URL of the region where the disk type resides. Only + /// applicable for regional resources. You must specify this field as part of + /// the HTTP request URL. It is not settable as a field in the request body. + core.String region; + /// [Output Only] Server-defined URL for the resource. core.String selfLink; @@ -31327,6 +33477,9 @@ if (_json.containsKey("name")) { name = _json["name"]; } + if (_json.containsKey("region")) { + region = _json["region"]; + } if (_json.containsKey("selfLink")) { selfLink = _json["selfLink"]; } @@ -31362,6 +33515,9 @@ if (name != null) { _json["name"] = name; } + if (region != null) { + _json["region"] = region; + } if (selfLink != null) { _json["selfLink"] = selfLink; } @@ -31851,7 +34007,7 @@ } class DiskTypesScopedList { - /// [Output Only] List of disk types contained in this scope. + /// [Output Only] A list of disk types contained in this scope. core.List<DiskType> diskTypes; /// [Output Only] Informational warning which replaces the list of disk types @@ -32016,7 +34172,7 @@ } class DisksScopedList { - /// [Output Only] List of disks contained in this scope. + /// [Output Only] A list of disks contained in this scope. core.List<Disk> disks; /// [Output Only] Informational warning which replaces the list of disks when @@ -32169,8 +34325,8 @@ /// 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, + /// 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; @@ -32644,8 +34800,8 @@ /// 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, + /// 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; @@ -33304,7 +35460,7 @@ } class ForwardingRulesScopedList { - /// List of forwarding rules contained in this scope. + /// A list of forwarding rules contained in this scope. core.List<ForwardingRule> forwardingRules; /// Informational warning which replaces the list of forwarding rules when the @@ -33357,7 +35513,7 @@ /// A list of labels to apply for this resource. Each label key & value must /// 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 + /// 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. For example, "webserver-frontend": @@ -33395,6 +35551,8 @@ /// Possible string values are: /// - "FEATURE_TYPE_UNSPECIFIED" /// - "MULTI_IP_SUBNET" + /// - "SECURE_BOOT" + /// - "UEFI_COMPATIBLE" /// - "VIRTIO_SCSI_MULTIQUEUE" /// - "WINDOWS" core.String type; @@ -33581,8 +35739,8 @@ /// 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, + /// 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; @@ -34056,8 +36214,8 @@ /// 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, + /// 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; @@ -34386,8 +36544,8 @@ /// 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, + /// 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; @@ -34805,14 +36963,18 @@ /// setLabels method. core.Map<core.String, core.String> labels; + /// Integer license codes indicating which licenses are attached to this + /// image. + core.List<core.String> licenseCodes; + /// Any applicable license URI. core.List<core.String> licenses; /// 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, + /// 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; @@ -34858,6 +37020,23 @@ /// current or a previous instance of a given image name. core.String sourceImageId; + /// URL of the source snapshot used to create this image. This can be a full + /// or valid partial URL. You must provide exactly one of: + /// - this property, or + /// - the sourceImage property, or + /// - the rawDisk.source property, or + /// - the sourceDisk property in order to create an image. + core.String sourceSnapshot; + + /// The customer-supplied encryption key of the source snapshot. Required if + /// the source snapshot is protected by a customer-supplied encryption key. + CustomerEncryptionKey sourceSnapshotEncryptionKey; + + /// [Output Only] The ID value of the snapshot used to create this image. This + /// value may be used to determine whether the snapshot was taken from the + /// current or a previous instance of a given snapshot name. + core.String sourceSnapshotId; + /// The type of the image used to create this disk. The default and only value /// is RAW /// Possible string values are: @@ -34916,6 +37095,9 @@ if (_json.containsKey("labels")) { labels = (_json["labels"] as core.Map).cast<core.String, core.String>(); } + if (_json.containsKey("licenseCodes")) { + licenseCodes = (_json["licenseCodes"] as core.List).cast<core.String>(); + } if (_json.containsKey("licenses")) { licenses = (_json["licenses"] as core.List).cast<core.String>(); } @@ -34948,6 +37130,16 @@ if (_json.containsKey("sourceImageId")) { sourceImageId = _json["sourceImageId"]; } + if (_json.containsKey("sourceSnapshot")) { + sourceSnapshot = _json["sourceSnapshot"]; + } + if (_json.containsKey("sourceSnapshotEncryptionKey")) { + sourceSnapshotEncryptionKey = new CustomerEncryptionKey.fromJson( + _json["sourceSnapshotEncryptionKey"]); + } + if (_json.containsKey("sourceSnapshotId")) { + sourceSnapshotId = _json["sourceSnapshotId"]; + } if (_json.containsKey("sourceType")) { sourceType = _json["sourceType"]; } @@ -34996,6 +37188,9 @@ if (labels != null) { _json["labels"] = labels; } + if (licenseCodes != null) { + _json["licenseCodes"] = licenseCodes; + } if (licenses != null) { _json["licenses"] = licenses; } @@ -35026,6 +37221,16 @@ if (sourceImageId != null) { _json["sourceImageId"] = sourceImageId; } + if (sourceSnapshot != null) { + _json["sourceSnapshot"] = sourceSnapshot; + } + if (sourceSnapshotEncryptionKey != null) { + _json["sourceSnapshotEncryptionKey"] = + (sourceSnapshotEncryptionKey).toJson(); + } + if (sourceSnapshotId != null) { + _json["sourceSnapshotId"] = sourceSnapshotId; + } if (sourceType != null) { _json["sourceType"] = sourceType; } @@ -35244,7 +37449,8 @@ /// created before you can assign them. core.List<AttachedDisk> disks; - /// List of the type and count of accelerator cards attached to the instance. + /// A list of the type and count of accelerator cards attached to the + /// instance. core.List<AcceleratorConfig> guestAccelerators; /// [Output Only] The unique identifier for the resource. This identifier is @@ -35254,11 +37460,11 @@ /// [Output Only] Type of the resource. Always compute#instance for instances. core.String kind; - /// A fingerprint for this request, which is essentially a hash of the - /// metadata's contents and used for optimistic locking. The fingerprint is - /// initially generated by Compute Engine and changes after every request to - /// modify or update metadata. You must always provide an up-to-date - /// fingerprint hash in order to update or change metadata. + /// A fingerprint for this request, which is essentially a hash of the label's + /// contents and used for optimistic locking. The fingerprint is initially + /// generated by Compute Engine and changes after every request to modify or + /// update labels. You must always provide an up-to-date fingerprint hash in + /// order to update or change labels. /// /// To see the latest fingerprint, make get() request to the instance. core.String labelFingerprint; @@ -35308,7 +37514,7 @@ /// The name of the resource, provided by the client when initially creating /// the resource. The resource 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 + /// 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. @@ -35769,8 +37975,8 @@ /// belong. core.String network; - /// The URL of the region where the instance group is located (for regional - /// resources). + /// [Output Only] 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 @@ -35780,8 +37986,8 @@ /// [Output Only] The total number of instances in the instance group. core.int size; - /// The URL of the subnetwork to which all instances in the instance group - /// belong. + /// [Output Only] The URL of the subnetwork to which all instances in the + /// instance group belong. core.String subnetwork; /// [Output Only] The URL of the zone where the instance group is located (for @@ -36273,8 +38479,10 @@ /// create the resource. core.String description; - /// [Output Only] The fingerprint of the resource data. You can use this - /// optional field for optimistic locking when you update the resource. + /// Fingerprint of this resource. This field may be used in optimistic + /// locking. It will be ignored when inserting an InstanceGroupManager. An + /// up-to-date fingerprint must be provided in order to update the + /// InstanceGroupManager. core.String fingerprint; core.List<core.int> get fingerprintAsBytes { return convert.base64.decode(fingerprint); @@ -38291,8 +40499,8 @@ /// 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, + /// 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; @@ -38704,7 +40912,7 @@ } class InstancesScopedList { - /// [Output Only] List of instances contained in this scope. + /// [Output Only] A list of instances contained in this scope. core.List<Instance> instances; /// [Output Only] Informational warning which replaces the list of instances @@ -38778,7 +40986,8 @@ } class InstancesSetMachineResourcesRequest { - /// List of the type and count of accelerator cards attached to the instance. + /// A list of the type and count of accelerator cards attached to the + /// instance. core.List<AcceleratorConfig> guestAccelerators; InstancesSetMachineResourcesRequest(); @@ -38923,7 +41132,7 @@ /// exchanged over it. By default, the status is set to true. core.bool adminEnabled; - /// [Output Only] List of CircuitInfo objects, that describe the individual + /// [Output Only] A list of CircuitInfo objects, that describe the individual /// circuits in this LAG. core.List<InterconnectCircuitInfo> circuitInfos; @@ -38938,7 +41147,7 @@ /// create the resource. core.String description; - /// [Output Only] List of outages expected for this Interconnect. + /// [Output Only] A list of outages expected for this Interconnect. core.List<InterconnectOutageNotification> expectedOutages; /// [Output Only] IP address configured on the Google side of the Interconnect @@ -38962,6 +41171,7 @@ /// Possible string values are: /// - "DEDICATED" /// - "IT_PRIVATE" + /// - "PARTNER" core.String interconnectType; /// [Output Only] Type of the resource. Always compute#interconnect for @@ -38982,8 +41192,8 @@ /// 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, + /// 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; @@ -39016,6 +41226,13 @@ /// [Output Only] Server-defined URL for the resource. core.String selfLink; + /// [Output Only] The current state of whether or not this Interconnect is + /// functional. + /// Possible string values are: + /// - "ACTIVE" + /// - "UNPROVISIONED" + core.String state; + Interconnect(); Interconnect.fromJson(core.Map _json) { @@ -39089,6 +41306,9 @@ if (_json.containsKey("selfLink")) { selfLink = _json["selfLink"]; } + if (_json.containsKey("state")) { + state = _json["state"]; + } } core.Map<core.String, core.Object> toJson() { @@ -39159,6 +41379,9 @@ if (selfLink != null) { _json["selfLink"] = selfLink; } + if (state != null) { + _json["state"] = state; + } return _json; } } @@ -39168,6 +41391,36 @@ /// beta.interconnectAttachments ==) (== resource_for v1.interconnectAttachments /// ==) class InterconnectAttachment { + /// Determines whether this Attachment will carry packets. Not present for + /// PARTNER_PROVIDER. + core.bool adminEnabled; + + /// Provisioned bandwidth capacity for the interconnectAttachment. Can be set + /// by the partner to update the customer's provisioned bandwidth. Output only + /// for for PARTNER type, mutable for PARTNER_PROVIDER, not available for + /// DEDICATED. + /// Possible string values are: + /// - "BPS_100M" + /// - "BPS_10G" + /// - "BPS_1G" + /// - "BPS_200M" + /// - "BPS_2G" + /// - "BPS_300M" + /// - "BPS_400M" + /// - "BPS_500M" + /// - "BPS_50M" + /// - "BPS_5G" + core.String bandwidth; + + /// Up to 16 candidate prefixes that can be used to restrict the allocation of + /// cloudRouterIpAddress and customerRouterIpAddress for this attachment. All + /// prefixes must be within link-local address space (169.254.0.0/16) and must + /// be /29 or shorter (/28, /27, etc). Google will attempt to select an unused + /// /29 from the supplied candidate prefix(es). The request will fail if all + /// possible /29s are in use on Google?s edge. If not supplied, Google will + /// randomly select an unused /29 from all of link-local space. + core.List<core.String> candidateSubnets; + /// [Output Only] IPv4 address + prefix length to be configured on Cloud /// Router Interface for this interconnect attachment. core.String cloudRouterIpAddress; @@ -39182,6 +41435,19 @@ /// An optional description of this resource. core.String description; + /// Desired availability domain for the attachment. Only available for type + /// PARTNER, at creation time. For improved reliability, customers should + /// configure a pair of attachments with one per availability domain. The + /// selected availability domain will be provided to the Partner via the + /// pairing key so that the provisioned circuit will lie in the specified + /// domain. If not specified, the value will default to + /// AVAILABILITY_DOMAIN_ANY. + /// Possible string values are: + /// - "AVAILABILITY_DOMAIN_1" + /// - "AVAILABILITY_DOMAIN_2" + /// - "AVAILABILITY_DOMAIN_ANY" + core.String edgeAvailabilityDomain; + /// [Output Only] Google reference ID, to be used when raising support tickets /// with Google or otherwise to debug backend connectivity issues. core.String googleReferenceId; @@ -39201,8 +41467,8 @@ /// 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, + /// 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; @@ -39214,6 +41480,23 @@ /// - "OS_UNPROVISIONED" core.String operationalStatus; + /// [Output only for type PARTNER. Input only for PARTNER_PROVIDER. Not + /// present for DEDICATED]. The opaque identifier of an PARTNER attachment + /// used to initiate provisioning with a selected partner. Of the form + /// "XXXXX/region/domain" + core.String pairingKey; + + /// Optional BGP ASN for the router that should be supplied by a layer 3 + /// Partner if they configured BGP on behalf of the customer. Output only for + /// PARTNER type, input only for PARTNER_PROVIDER, not available for + /// DEDICATED. + core.String partnerAsn; + + /// Informational metadata about Partner attachments from Partners to display + /// to customers. Output only for for PARTNER type, mutable for + /// PARTNER_PROVIDER, not available for DEDICATED. + InterconnectAttachmentPartnerMetadata partnerMetadata; + /// [Output Only] Information specific to an InterconnectAttachment. This /// property is populated if the interconnect that this is attached to is of /// type DEDICATED. @@ -39233,9 +41516,42 @@ /// [Output Only] Server-defined URL for the resource. core.String selfLink; + /// [Output Only] The current state of this attachment's functionality. + /// Possible string values are: + /// - "ACTIVE" + /// - "DEFUNCT" + /// - "PARTNER_REQUEST_RECEIVED" + /// - "PENDING_CUSTOMER" + /// - "PENDING_PARTNER" + /// - "STATE_UNSPECIFIED" + /// - "UNPROVISIONED" + core.String state; + + /// + /// Possible string values are: + /// - "DEDICATED" + /// - "PARTNER" + /// - "PARTNER_PROVIDER" + core.String type; + + /// Available only for DEDICATED and PARTNER_PROVIDER. Desired VLAN tag for + /// this attachment, in the range 2-4094. This field refers to 802.1q VLAN + /// tag, also known as IEEE 802.1Q Only specified at creation time. + core.int vlanTag8021q; + InterconnectAttachment(); InterconnectAttachment.fromJson(core.Map _json) { + if (_json.containsKey("adminEnabled")) { + adminEnabled = _json["adminEnabled"]; + } + if (_json.containsKey("bandwidth")) { + bandwidth = _json["bandwidth"]; + } + if (_json.containsKey("candidateSubnets")) { + candidateSubnets = + (_json["candidateSubnets"] as core.List).cast<core.String>(); + } if (_json.containsKey("cloudRouterIpAddress")) { cloudRouterIpAddress = _json["cloudRouterIpAddress"]; } @@ -39248,6 +41564,9 @@ if (_json.containsKey("description")) { description = _json["description"]; } + if (_json.containsKey("edgeAvailabilityDomain")) { + edgeAvailabilityDomain = _json["edgeAvailabilityDomain"]; + } if (_json.containsKey("googleReferenceId")) { googleReferenceId = _json["googleReferenceId"]; } @@ -39266,6 +41585,16 @@ if (_json.containsKey("operationalStatus")) { operationalStatus = _json["operationalStatus"]; } + if (_json.containsKey("pairingKey")) { + pairingKey = _json["pairingKey"]; + } + if (_json.containsKey("partnerAsn")) { + partnerAsn = _json["partnerAsn"]; + } + if (_json.containsKey("partnerMetadata")) { + partnerMetadata = new InterconnectAttachmentPartnerMetadata.fromJson( + _json["partnerMetadata"]); + } if (_json.containsKey("privateInterconnectInfo")) { privateInterconnectInfo = new InterconnectAttachmentPrivateInfo.fromJson( _json["privateInterconnectInfo"]); @@ -39279,11 +41608,29 @@ if (_json.containsKey("selfLink")) { selfLink = _json["selfLink"]; } + if (_json.containsKey("state")) { + state = _json["state"]; + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + if (_json.containsKey("vlanTag8021q")) { + vlanTag8021q = _json["vlanTag8021q"]; + } } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (adminEnabled != null) { + _json["adminEnabled"] = adminEnabled; + } + if (bandwidth != null) { + _json["bandwidth"] = bandwidth; + } + if (candidateSubnets != null) { + _json["candidateSubnets"] = candidateSubnets; + } if (cloudRouterIpAddress != null) { _json["cloudRouterIpAddress"] = cloudRouterIpAddress; } @@ -39296,6 +41643,9 @@ if (description != null) { _json["description"] = description; } + if (edgeAvailabilityDomain != null) { + _json["edgeAvailabilityDomain"] = edgeAvailabilityDomain; + } if (googleReferenceId != null) { _json["googleReferenceId"] = googleReferenceId; } @@ -39314,6 +41664,15 @@ if (operationalStatus != null) { _json["operationalStatus"] = operationalStatus; } + if (pairingKey != null) { + _json["pairingKey"] = pairingKey; + } + if (partnerAsn != null) { + _json["partnerAsn"] = partnerAsn; + } + if (partnerMetadata != null) { + _json["partnerMetadata"] = (partnerMetadata).toJson(); + } if (privateInterconnectInfo != null) { _json["privateInterconnectInfo"] = (privateInterconnectInfo).toJson(); } @@ -39326,6 +41685,15 @@ if (selfLink != null) { _json["selfLink"] = selfLink; } + if (state != null) { + _json["state"] = state; + } + if (type != null) { + _json["type"] = type; + } + if (vlanTag8021q != null) { + _json["vlanTag8021q"] = vlanTag8021q; + } return _json; } } @@ -39704,6 +42072,54 @@ } } +/// Informational metadata about Partner attachments from Partners to display to +/// customers. These fields are propagated from PARTNER_PROVIDER attachments to +/// their corresponding PARTNER attachments. +class InterconnectAttachmentPartnerMetadata { + /// Plain text name of the Interconnect this attachment is connected to, as + /// displayed in the Partner?s portal. For instance ?Chicago 1?. This value + /// may be validated to match approved Partner values. + core.String interconnectName; + + /// Plain text name of the Partner providing this attachment. This value may + /// be validated to match approved Partner values. + core.String partnerName; + + /// URL of the Partner?s portal for this Attachment. Partners may customise + /// this to be a deep-link to the specific resource on the Partner portal. + /// This value may be validated to match approved Partner values. + core.String portalUrl; + + InterconnectAttachmentPartnerMetadata(); + + InterconnectAttachmentPartnerMetadata.fromJson(core.Map _json) { + if (_json.containsKey("interconnectName")) { + interconnectName = _json["interconnectName"]; + } + if (_json.containsKey("partnerName")) { + partnerName = _json["partnerName"]; + } + if (_json.containsKey("portalUrl")) { + portalUrl = _json["portalUrl"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (interconnectName != null) { + _json["interconnectName"] = interconnectName; + } + if (partnerName != null) { + _json["partnerName"] = partnerName; + } + if (portalUrl != null) { + _json["portalUrl"] = portalUrl; + } + return _json; + } +} + /// Information for an interconnect attachment when this belongs to an /// interconnect of type DEDICATED. class InterconnectAttachmentPrivateInfo { @@ -39839,7 +42255,7 @@ } class InterconnectAttachmentsScopedList { - /// List of interconnect attachments contained in this scope. + /// A list of interconnect attachments contained in this scope. core.List<InterconnectAttachment> interconnectAttachments; /// Informational warning which replaces the list of addresses when the list @@ -40505,7 +42921,7 @@ /// Description of a planned outage on this Interconnect. Next id: 9 class InterconnectOutageNotification { - /// Iff issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs + /// If issue_type is IT_PARTIAL_OUTAGE, a list of the Google-side circuit IDs /// that will be affected. core.List<core.String> affectedCircuits; @@ -40613,31 +43029,70 @@ /// charges a usage fee. core.bool chargesUseFee; + /// [Output Only] Creation timestamp in RFC3339 text format. + core.String creationTimestamp; + + /// An optional textual description of the resource; provided by the client + /// when the resource is created. + 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 resource. Always compute#license for licenses. core.String kind; + /// [Output Only] The unique code used to attach this license to images, + /// snapshots, and disks. + core.String licenseCode; + /// [Output Only] Name of the resource. The name is 1-63 characters long and /// complies with RFC1035. core.String name; + LicenseResourceRequirements resourceRequirements; /// [Output Only] Server-defined URL for the resource. core.String selfLink; + /// If false, licenses will not be copied from the source resource when + /// creating an image from a disk, disk from snapshot, or snapshot from disk. + core.bool transferable; + License(); License.fromJson(core.Map _json) { if (_json.containsKey("chargesUseFee")) { chargesUseFee = _json["chargesUseFee"]; } + 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("licenseCode")) { + licenseCode = _json["licenseCode"]; + } if (_json.containsKey("name")) { name = _json["name"]; } + if (_json.containsKey("resourceRequirements")) { + resourceRequirements = new LicenseResourceRequirements.fromJson( + _json["resourceRequirements"]); + } if (_json.containsKey("selfLink")) { selfLink = _json["selfLink"]; } + if (_json.containsKey("transferable")) { + transferable = _json["transferable"]; + } } core.Map<core.String, core.Object> toJson() { @@ -40646,15 +43101,377 @@ if (chargesUseFee != null) { _json["chargesUseFee"] = chargesUseFee; } + 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 (licenseCode != null) { + _json["licenseCode"] = licenseCode; + } + if (name != null) { + _json["name"] = name; + } + if (resourceRequirements != null) { + _json["resourceRequirements"] = (resourceRequirements).toJson(); + } + if (selfLink != null) { + _json["selfLink"] = selfLink; + } + if (transferable != null) { + _json["transferable"] = transferable; + } + return _json; + } +} + +class LicenseCode { + /// [Output Only] Creation timestamp in RFC3339 text format. + core.String creationTimestamp; + + /// [Output Only] Description of this License Code. + 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 resource. Always compute#licenseCode for licenses. + core.String kind; + + /// [Output Only] URL and description aliases of Licenses with the same + /// License Code. + core.List<LicenseCodeLicenseAlias> licenseAlias; + + /// [Output Only] Name of the resource. The name is 1-20 characters long and + /// must be a valid 64 bit integer. + core.String name; + + /// [Output Only] Server-defined URL for the resource. + core.String selfLink; + + /// [Output Only] Current state of this License Code. + /// Possible string values are: + /// - "DISABLED" + /// - "ENABLED" + /// - "RESTRICTED" + /// - "STATE_UNSPECIFIED" + /// - "TERMINATED" + core.String state; + + /// [Output Only] If true, the license will remain attached when creating + /// images or snapshots from disks. Otherwise, the license is not transferred. + core.bool transferable; + + LicenseCode(); + + LicenseCode.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("licenseAlias")) { + licenseAlias = (_json["licenseAlias"] as core.List) + .map<LicenseCodeLicenseAlias>( + (value) => new LicenseCodeLicenseAlias.fromJson(value)) + .toList(); + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("selfLink")) { + selfLink = _json["selfLink"]; + } + if (_json.containsKey("state")) { + state = _json["state"]; + } + if (_json.containsKey("transferable")) { + transferable = _json["transferable"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + 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 (licenseAlias != null) { + _json["licenseAlias"] = + licenseAlias.map((value) => (value).toJson()).toList(); + } if (name != null) { _json["name"] = name; } if (selfLink != null) { _json["selfLink"] = selfLink; } + if (state != null) { + _json["state"] = state; + } + if (transferable != null) { + _json["transferable"] = transferable; + } + return _json; + } +} + +class LicenseCodeLicenseAlias { + /// [Output Only] Description of this License Code. + core.String description; + + /// [Output Only] URL of license corresponding to this License Code. + core.String selfLink; + + LicenseCodeLicenseAlias(); + + LicenseCodeLicenseAlias.fromJson(core.Map _json) { + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("selfLink")) { + selfLink = _json["selfLink"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (description != null) { + _json["description"] = description; + } + if (selfLink != null) { + _json["selfLink"] = selfLink; + } + return _json; + } +} + +class LicenseResourceRequirements { + /// Minimum number of guest cpus required to use the Instance. Enforced at + /// Instance creation and Instance start. + core.int minGuestCpuCount; + + /// Minimum memory required to use the Instance. Enforced at Instance creation + /// and Instance start. + core.int minMemoryMb; + + LicenseResourceRequirements(); + + LicenseResourceRequirements.fromJson(core.Map _json) { + if (_json.containsKey("minGuestCpuCount")) { + minGuestCpuCount = _json["minGuestCpuCount"]; + } + if (_json.containsKey("minMemoryMb")) { + minMemoryMb = _json["minMemoryMb"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (minGuestCpuCount != null) { + _json["minGuestCpuCount"] = minGuestCpuCount; + } + if (minMemoryMb != null) { + _json["minMemoryMb"] = minMemoryMb; + } + return _json; + } +} + +class LicensesListResponseWarningData { + /// [Output Only] A key that provides more detail on the warning being + /// returned. For example, for warnings where there are no results in a list + /// request for a particular zone, this key might be scope and the key value + /// might be the zone name. Other examples might be a key indicating a + /// deprecated resource and a suggested replacement, or a warning about + /// invalid network settings (for example, if an instance attempts to perform + /// IP forwarding but is not enabled for IP forwarding). + core.String key; + + /// [Output Only] A warning data value corresponding to the key. + core.String value; + + LicensesListResponseWarningData(); + + LicensesListResponseWarningData.fromJson(core.Map _json) { + if (_json.containsKey("key")) { + key = _json["key"]; + } + if (_json.containsKey("value")) { + value = _json["value"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (key != null) { + _json["key"] = key; + } + if (value != null) { + _json["value"] = value; + } + return _json; + } +} + +/// [Output Only] Informational warning message. +class LicensesListResponseWarning { + /// [Output Only] A warning code, if applicable. For example, Compute Engine + /// returns NO_RESULTS_ON_PAGE if there are no results in the response. + /// Possible string values are: + /// - "CLEANUP_FAILED" + /// - "DEPRECATED_RESOURCE_USED" + /// - "DEPRECATED_TYPE_USED" + /// - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" + /// - "EXPERIMENTAL_TYPE_USED" + /// - "EXTERNAL_API_WARNING" + /// - "FIELD_VALUE_OVERRIDEN" + /// - "INJECTED_KERNELS_DEPRECATED" + /// - "MISSING_TYPE_DEPENDENCY" + /// - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" + /// - "NEXT_HOP_CANNOT_IP_FORWARD" + /// - "NEXT_HOP_INSTANCE_NOT_FOUND" + /// - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" + /// - "NEXT_HOP_NOT_RUNNING" + /// - "NOT_CRITICAL_ERROR" + /// - "NO_RESULTS_ON_PAGE" + /// - "REQUIRED_TOS_AGREEMENT" + /// - "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" + /// - "RESOURCE_NOT_DELETED" + /// - "SCHEMA_VALIDATION_IGNORED" + /// - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" + /// - "UNDECLARED_PROPERTIES" + /// - "UNREACHABLE" + core.String code; + + /// [Output Only] Metadata about this warning in key: value format. For + /// example: + /// "data": [ { "key": "scope", "value": "zones/us-east1-d" } + core.List<LicensesListResponseWarningData> data; + + /// [Output Only] A human-readable description of the warning code. + core.String message; + + LicensesListResponseWarning(); + + LicensesListResponseWarning.fromJson(core.Map _json) { + if (_json.containsKey("code")) { + code = _json["code"]; + } + if (_json.containsKey("data")) { + data = (_json["data"] as core.List) + .map<LicensesListResponseWarningData>( + (value) => new LicensesListResponseWarningData.fromJson(value)) + .toList(); + } + if (_json.containsKey("message")) { + message = _json["message"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (code != null) { + _json["code"] = code; + } + if (data != null) { + _json["data"] = data.map((value) => (value).toJson()).toList(); + } + if (message != null) { + _json["message"] = message; + } + return _json; + } +} + +class LicensesListResponse { + /// [Output Only] Unique identifier for the resource; defined by the server. + core.String id; + + /// A list of License resources. + core.List<License> items; + + /// [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; + + /// [Output Only] Informational warning message. + LicensesListResponseWarning warning; + + LicensesListResponse(); + + LicensesListResponse.fromJson(core.Map _json) { + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("items")) { + items = (_json["items"] as core.List) + .map<License>((value) => new License.fromJson(value)) + .toList(); + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("selfLink")) { + selfLink = _json["selfLink"]; + } + if (_json.containsKey("warning")) { + warning = new LicensesListResponseWarning.fromJson(_json["warning"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (id != null) { + _json["id"] = id; + } + if (items != null) { + _json["items"] = items.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (selfLink != null) { + _json["selfLink"] = selfLink; + } + if (warning != null) { + _json["warning"] = (warning).toJson(); + } return _json; } } @@ -40726,7 +43543,7 @@ /// [Output Only] Name of the resource. core.String name; - /// [Output Only] List of extended scratch disks assigned to the instance. + /// [Output Only] A list of extended scratch disks assigned to the instance. core.List<MachineTypeScratchDisks> scratchDisks; /// [Output Only] Server-defined URL for the resource. @@ -41319,7 +44136,7 @@ } class MachineTypesScopedList { - /// [Output Only] List of machine types contained in this scope. + /// [Output Only] A list of machine types contained in this scope. core.List<MachineType> machineTypes; /// [Output Only] An informational warning that appears when the machine types @@ -41353,6 +44170,7 @@ } } +/// Next available tag: 12 class ManagedInstance { /// [Output Only] The current action that the managed instance group has /// scheduled for the instance. Possible values: @@ -41713,13 +44531,13 @@ /// 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, + /// 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] List of network peerings for the resource. + /// [Output Only] A list of network peerings for the resource. core.List<NetworkPeering> peerings; /// The network-level routing configuration for this network. Used by Cloud @@ -41830,6 +44648,20 @@ /// specified for network interfaces on subnet-mode networks. core.List<AliasIpRange> aliasIpRanges; + /// Fingerprint hash of contents stored in this network interface. This field + /// will be ignored when inserting an Instance or adding a NetworkInterface. + /// An up-to-date fingerprint must be provided in order to update the + /// NetworkInterface. + core.String fingerprint; + core.List<core.int> get fingerprintAsBytes { + return convert.base64.decode(fingerprint); + } + + void set fingerprintAsBytes(core.List<core.int> _bytes) { + fingerprint = + convert.base64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); + } + /// [Output Only] Type of the resource. Always compute#networkInterface for /// network interfaces. core.String kind; @@ -41884,6 +44716,9 @@ .map<AliasIpRange>((value) => new AliasIpRange.fromJson(value)) .toList(); } + if (_json.containsKey("fingerprint")) { + fingerprint = _json["fingerprint"]; + } if (_json.containsKey("kind")) { kind = _json["kind"]; } @@ -41912,6 +44747,9 @@ _json["aliasIpRanges"] = aliasIpRanges.map((value) => (value).toJson()).toList(); } + if (fingerprint != null) { + _json["fingerprint"] = fingerprint; + } if (kind != null) { _json["kind"] = kind; } @@ -42127,7 +44965,7 @@ /// Name of this peering. Provided by the client when the peering is created. /// The name must comply with RFC1035. Specifically, the name must be 1-63 - /// characters long and match regular expression [a-z]([-a-z0-9]*[a-z0-9])? + /// characters long and match regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` /// which means the first character must be a lowercase letter, and all the /// following characters must be a dash, lowercase letter, or digit, except /// the last character, which cannot be a dash. @@ -42469,7 +45307,8 @@ /// beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== /// resource_for beta.zoneOperations ==) class Operation { - /// [Output Only] Reserved for future use. + /// [Output Only] The value of `requestId` if you provided it in the request. + /// Not present otherwise. core.String clientOperationId; /// [Deprecated] This field is deprecated. @@ -43202,7 +46041,7 @@ } class OperationsScopedList { - /// [Output Only] List of operations contained in this scope. + /// [Output Only] A list of operations contained in this scope. core.List<Operation> operations; /// [Output Only] Informational warning which replaces the list of operations @@ -43611,16 +46450,20 @@ /// - "INSTANCE_GROUP_MANAGERS" /// - "INSTANCE_TEMPLATES" /// - "INTERCONNECTS" + /// - "INTERCONNECT_ATTACHMENTS_PER_REGION" + /// - "INTERCONNECT_ATTACHMENTS_TOTAL_MBPS" /// - "INTERNAL_ADDRESSES" /// - "IN_USE_ADDRESSES" /// - "LOCAL_SSD_TOTAL_GB" /// - "NETWORKS" /// - "NVIDIA_K80_GPUS" /// - "NVIDIA_P100_GPUS" + /// - "NVIDIA_V100_GPUS" /// - "PREEMPTIBLE_CPUS" /// - "PREEMPTIBLE_LOCAL_SSD_GB" /// - "PREEMPTIBLE_NVIDIA_K80_GPUS" /// - "PREEMPTIBLE_NVIDIA_P100_GPUS" + /// - "PREEMPTIBLE_NVIDIA_V100_GPUS" /// - "REGIONAL_AUTOSCALERS" /// - "REGIONAL_INSTANCE_GROUP_MANAGERS" /// - "ROUTERS" @@ -44023,6 +46866,210 @@ } } +class RegionDiskTypeListWarningData { + /// [Output Only] A key that provides more detail on the warning being + /// returned. For example, for warnings where there are no results in a list + /// request for a particular zone, this key might be scope and the key value + /// might be the zone name. Other examples might be a key indicating a + /// deprecated resource and a suggested replacement, or a warning about + /// invalid network settings (for example, if an instance attempts to perform + /// IP forwarding but is not enabled for IP forwarding). + core.String key; + + /// [Output Only] A warning data value corresponding to the key. + core.String value; + + RegionDiskTypeListWarningData(); + + RegionDiskTypeListWarningData.fromJson(core.Map _json) { + if (_json.containsKey("key")) { + key = _json["key"]; + } + if (_json.containsKey("value")) { + value = _json["value"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (key != null) { + _json["key"] = key; + } + if (value != null) { + _json["value"] = value; + } + return _json; + } +} + +/// [Output Only] Informational warning message. +class RegionDiskTypeListWarning { + /// [Output Only] A warning code, if applicable. For example, Compute Engine + /// returns NO_RESULTS_ON_PAGE if there are no results in the response. + /// Possible string values are: + /// - "CLEANUP_FAILED" + /// - "DEPRECATED_RESOURCE_USED" + /// - "DEPRECATED_TYPE_USED" + /// - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" + /// - "EXPERIMENTAL_TYPE_USED" + /// - "EXTERNAL_API_WARNING" + /// - "FIELD_VALUE_OVERRIDEN" + /// - "INJECTED_KERNELS_DEPRECATED" + /// - "MISSING_TYPE_DEPENDENCY" + /// - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" + /// - "NEXT_HOP_CANNOT_IP_FORWARD" + /// - "NEXT_HOP_INSTANCE_NOT_FOUND" + /// - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" + /// - "NEXT_HOP_NOT_RUNNING" + /// - "NOT_CRITICAL_ERROR" + /// - "NO_RESULTS_ON_PAGE" + /// - "REQUIRED_TOS_AGREEMENT" + /// - "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" + /// - "RESOURCE_NOT_DELETED" + /// - "SCHEMA_VALIDATION_IGNORED" + /// - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" + /// - "UNDECLARED_PROPERTIES" + /// - "UNREACHABLE" + core.String code; + + /// [Output Only] Metadata about this warning in key: value format. For + /// example: + /// "data": [ { "key": "scope", "value": "zones/us-east1-d" } + core.List<RegionDiskTypeListWarningData> data; + + /// [Output Only] A human-readable description of the warning code. + core.String message; + + RegionDiskTypeListWarning(); + + RegionDiskTypeListWarning.fromJson(core.Map _json) { + if (_json.containsKey("code")) { + code = _json["code"]; + } + if (_json.containsKey("data")) { + data = (_json["data"] as core.List) + .map<RegionDiskTypeListWarningData>( + (value) => new RegionDiskTypeListWarningData.fromJson(value)) + .toList(); + } + if (_json.containsKey("message")) { + message = _json["message"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (code != null) { + _json["code"] = code; + } + if (data != null) { + _json["data"] = data.map((value) => (value).toJson()).toList(); + } + if (message != null) { + _json["message"] = message; + } + return _json; + } +} + +class RegionDiskTypeList { + /// [Output Only] Unique identifier for the resource; defined by the server. + core.String id; + + /// A list of DiskType resources. + core.List<DiskType> items; + + /// [Output Only] Type of resource. Always compute#regionDiskTypeList for + /// region disk types. + 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; + + /// [Output Only] Informational warning message. + RegionDiskTypeListWarning warning; + + RegionDiskTypeList(); + + RegionDiskTypeList.fromJson(core.Map _json) { + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("items")) { + items = (_json["items"] as core.List) + .map<DiskType>((value) => new DiskType.fromJson(value)) + .toList(); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("selfLink")) { + selfLink = _json["selfLink"]; + } + if (_json.containsKey("warning")) { + warning = new RegionDiskTypeListWarning.fromJson(_json["warning"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + 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; + } + if (warning != null) { + _json["warning"] = (warning).toJson(); + } + return _json; + } +} + +class RegionDisksResizeRequest { + /// The new size of the regional persistent disk, which is specified in GB. + core.String sizeGb; + + RegionDisksResizeRequest(); + + RegionDisksResizeRequest.fromJson(core.Map _json) { + if (_json.containsKey("sizeGb")) { + sizeGb = _json["sizeGb"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (sizeGb != null) { + _json["sizeGb"] = sizeGb; + } + return _json; + } +} + class RegionInstanceGroupListWarningData { /// [Output Only] A key that provides more detail on the warning being /// returned. For example, for warnings where there are no results in a list @@ -44438,7 +47485,7 @@ } class RegionInstanceGroupManagersListInstancesResponse { - /// List of managed instances. + /// A list of managed instances. core.List<ManagedInstance> managedInstances; RegionInstanceGroupManagersListInstancesResponse(); @@ -45001,6 +48048,50 @@ } } +class RegionSetLabelsRequest { + /// The fingerprint of the previous set of labels for this resource, used to + /// detect conflicts. The fingerprint is initially generated by Compute Engine + /// and changes after every request to modify or update labels. You must + /// always provide an up-to-date fingerprint hash in order to update or change + /// labels. Make a get() request to the resource to get the latest + /// fingerprint. + core.String labelFingerprint; + core.List<core.int> get labelFingerprintAsBytes { + return convert.base64.decode(labelFingerprint); + } + + void set labelFingerprintAsBytes(core.List<core.int> _bytes) { + labelFingerprint = + convert.base64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); + } + + /// The labels to set for this resource. + core.Map<core.String, core.String> labels; + + RegionSetLabelsRequest(); + + RegionSetLabelsRequest.fromJson(core.Map _json) { + if (_json.containsKey("labelFingerprint")) { + labelFingerprint = _json["labelFingerprint"]; + } + if (_json.containsKey("labels")) { + labels = (_json["labels"] as core.Map).cast<core.String, core.String>(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (labelFingerprint != null) { + _json["labelFingerprint"] = labelFingerprint; + } + if (labels != null) { + _json["labels"] = labels; + } + return _json; + } +} + /// Commitment for a particular resource (a Commitment is composed of one or /// more of these). class ResourceCommitment { @@ -45211,8 +48302,8 @@ /// 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, + /// 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; @@ -45591,8 +48682,8 @@ /// 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, + /// 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; @@ -45691,6 +48782,38 @@ } } +/// Description-tagged IP ranges for the router to advertise. +class RouterAdvertisedIpRange { + /// User-specified description for the IP range. + core.String description; + + /// The IP range to advertise. The value must be a CIDR-formatted string. + core.String range; + + RouterAdvertisedIpRange(); + + RouterAdvertisedIpRange.fromJson(core.Map _json) { + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("range")) { + range = _json["range"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (description != null) { + _json["description"] = description; + } + if (range != null) { + _json["range"] = range; + } + return _json; + } +} + class RouterAggregatedListWarningData { /// [Output Only] A key that provides more detail on the warning being /// returned. For example, for warnings where there are no results in a list @@ -45876,6 +48999,26 @@ } class RouterBgp { + /// User-specified flag to indicate which mode to use for advertisement. + /// Possible string values are: + /// - "CUSTOM" + /// - "DEFAULT" + core.String advertiseMode; + + /// User-specified list of prefix groups to advertise in custom mode. This + /// field can only be populated if advertise_mode is CUSTOM and is advertised + /// to all peers of the router. These groups will be advertised in addition to + /// any specified prefixes. Leave this field blank to advertise no custom + /// groups. + core.List<core.String> advertisedGroups; + + /// User-specified list of individual IP ranges to advertise in custom mode. + /// This field can only be populated if advertise_mode is CUSTOM and is + /// advertised to all peers of the router. These IP ranges will be advertised + /// in addition to any specified groups. Leave this field blank to advertise + /// no custom IP ranges. + core.List<RouterAdvertisedIpRange> advertisedIpRanges; + /// Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, /// either 16-bit or 32-bit. The value will be fixed for this router resource. /// All VPN tunnels that link to this router will have the same local ASN. @@ -45884,6 +49027,19 @@ RouterBgp(); RouterBgp.fromJson(core.Map _json) { + if (_json.containsKey("advertiseMode")) { + advertiseMode = _json["advertiseMode"]; + } + if (_json.containsKey("advertisedGroups")) { + advertisedGroups = + (_json["advertisedGroups"] as core.List).cast<core.String>(); + } + if (_json.containsKey("advertisedIpRanges")) { + advertisedIpRanges = (_json["advertisedIpRanges"] as core.List) + .map<RouterAdvertisedIpRange>( + (value) => new RouterAdvertisedIpRange.fromJson(value)) + .toList(); + } if (_json.containsKey("asn")) { asn = _json["asn"]; } @@ -45892,6 +49048,16 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (advertiseMode != null) { + _json["advertiseMode"] = advertiseMode; + } + if (advertisedGroups != null) { + _json["advertisedGroups"] = advertisedGroups; + } + if (advertisedIpRanges != null) { + _json["advertisedIpRanges"] = + advertisedIpRanges.map((value) => (value).toJson()).toList(); + } if (asn != null) { _json["asn"] = asn; } @@ -45900,6 +49066,26 @@ } class RouterBgpPeer { + /// User-specified flag to indicate which mode to use for advertisement. + /// Possible string values are: + /// - "CUSTOM" + /// - "DEFAULT" + core.String advertiseMode; + + /// User-specified list of prefix groups to advertise in custom mode. This + /// field can only be populated if advertise_mode is CUSTOM and overrides the + /// list defined for the router (in Bgp message). These groups will be + /// advertised in addition to any specified prefixes. Leave this field blank + /// to advertise no custom groups. + core.List<core.String> advertisedGroups; + + /// User-specified list of individual IP ranges to advertise in custom mode. + /// This field can only be populated if advertise_mode is CUSTOM and overrides + /// the list defined for the router (in Bgp message). These IP ranges will be + /// advertised in addition to any specified groups. Leave this field blank to + /// advertise no custom IP ranges. + core.List<RouterAdvertisedIpRange> advertisedIpRanges; + /// The priority of routes advertised to this BGP peer. In the case where /// there is more than one matching route of maximum length, the routes with /// lowest priority value win. @@ -45912,6 +49098,16 @@ /// supported. core.String ipAddress; + /// [Output Only] Type of how the resource/configuration of the BGP peer is + /// managed. MANAGED_BY_USER is the default value; MANAGED_BY_ATTACHMENT + /// represents an BGP peer that is automatically created for PARTNER + /// interconnectAttachment, Google will automatically create/delete this type + /// of BGP peer when the PARTNER interconnectAttachment is created/deleted. + /// Possible string values are: + /// - "MANAGED_BY_ATTACHMENT" + /// - "MANAGED_BY_USER" + core.String managementType; + /// Name of this BGP peer. The name must be 1-63 characters long and comply /// with RFC1035. core.String name; @@ -45927,6 +49123,19 @@ RouterBgpPeer(); RouterBgpPeer.fromJson(core.Map _json) { + if (_json.containsKey("advertiseMode")) { + advertiseMode = _json["advertiseMode"]; + } + if (_json.containsKey("advertisedGroups")) { + advertisedGroups = + (_json["advertisedGroups"] as core.List).cast<core.String>(); + } + if (_json.containsKey("advertisedIpRanges")) { + advertisedIpRanges = (_json["advertisedIpRanges"] as core.List) + .map<RouterAdvertisedIpRange>( + (value) => new RouterAdvertisedIpRange.fromJson(value)) + .toList(); + } if (_json.containsKey("advertisedRoutePriority")) { advertisedRoutePriority = _json["advertisedRoutePriority"]; } @@ -45936,6 +49145,9 @@ if (_json.containsKey("ipAddress")) { ipAddress = _json["ipAddress"]; } + if (_json.containsKey("managementType")) { + managementType = _json["managementType"]; + } if (_json.containsKey("name")) { name = _json["name"]; } @@ -45950,6 +49162,16 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (advertiseMode != null) { + _json["advertiseMode"] = advertiseMode; + } + if (advertisedGroups != null) { + _json["advertisedGroups"] = advertisedGroups; + } + if (advertisedIpRanges != null) { + _json["advertisedIpRanges"] = + advertisedIpRanges.map((value) => (value).toJson()).toList(); + } if (advertisedRoutePriority != null) { _json["advertisedRoutePriority"] = advertisedRoutePriority; } @@ -45959,6 +49181,9 @@ if (ipAddress != null) { _json["ipAddress"] = ipAddress; } + if (managementType != null) { + _json["managementType"] = managementType; + } if (name != null) { _json["name"] = name; } @@ -45989,6 +49214,17 @@ /// a VPN Tunnel or an interconnect attachment. core.String linkedVpnTunnel; + /// [Output Only] Type of how the resource/configuration of the interface is + /// managed. MANAGED_BY_USER is the default value; MANAGED_BY_ATTACHMENT + /// represents an interface that is automatically created for PARTNER type + /// interconnectAttachment, Google will automatically create/update/delete + /// this type of interface when the PARTNER interconnectAttachment is + /// created/provisioned/deleted. + /// Possible string values are: + /// - "MANAGED_BY_ATTACHMENT" + /// - "MANAGED_BY_USER" + core.String managementType; + /// Name of this interface entry. The name must be 1-63 characters long and /// comply with RFC1035. core.String name; @@ -46005,6 +49241,9 @@ if (_json.containsKey("linkedVpnTunnel")) { linkedVpnTunnel = _json["linkedVpnTunnel"]; } + if (_json.containsKey("managementType")) { + managementType = _json["managementType"]; + } if (_json.containsKey("name")) { name = _json["name"]; } @@ -46022,6 +49261,9 @@ if (linkedVpnTunnel != null) { _json["linkedVpnTunnel"] = linkedVpnTunnel; } + if (managementType != null) { + _json["managementType"] = managementType; + } if (name != null) { _json["name"] = name; } @@ -46540,7 +49782,7 @@ } class RoutersScopedList { - /// List of routers contained in this scope. + /// A list of routers contained in this scope. core.List<Router> routers; /// Informational warning which replaces the list of routers when the list is @@ -46836,6 +50078,10 @@ /// setLabels method. Label values may be empty. core.Map<core.String, core.String> labels; + /// [Output Only] Integer license codes indicating which licenses are attached + /// to this snapshot. + core.List<core.String> licenseCodes; + /// [Output Only] A list of public visible licenses that apply to this /// snapshot. This can be because the original image had licenses attached /// (such as a Windows image). @@ -46844,8 +50090,8 @@ /// 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, + /// 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; @@ -46928,6 +50174,9 @@ if (_json.containsKey("labels")) { labels = (_json["labels"] as core.Map).cast<core.String, core.String>(); } + if (_json.containsKey("licenseCodes")) { + licenseCodes = (_json["licenseCodes"] as core.List).cast<core.String>(); + } if (_json.containsKey("licenses")) { licenses = (_json["licenses"] as core.List).cast<core.String>(); } @@ -46986,6 +50235,9 @@ if (labels != null) { _json["labels"] = labels; } + if (licenseCodes != null) { + _json["licenseCodes"] = licenseCodes; + } if (licenses != null) { _json["licenses"] = licenses; } @@ -47230,8 +50482,8 @@ /// 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, + /// 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; @@ -47485,6 +50737,505 @@ } } +class SslPoliciesListWarningData { + /// [Output Only] A key that provides more detail on the warning being + /// returned. For example, for warnings where there are no results in a list + /// request for a particular zone, this key might be scope and the key value + /// might be the zone name. Other examples might be a key indicating a + /// deprecated resource and a suggested replacement, or a warning about + /// invalid network settings (for example, if an instance attempts to perform + /// IP forwarding but is not enabled for IP forwarding). + core.String key; + + /// [Output Only] A warning data value corresponding to the key. + core.String value; + + SslPoliciesListWarningData(); + + SslPoliciesListWarningData.fromJson(core.Map _json) { + if (_json.containsKey("key")) { + key = _json["key"]; + } + if (_json.containsKey("value")) { + value = _json["value"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (key != null) { + _json["key"] = key; + } + if (value != null) { + _json["value"] = value; + } + return _json; + } +} + +/// [Output Only] Informational warning message. +class SslPoliciesListWarning { + /// [Output Only] A warning code, if applicable. For example, Compute Engine + /// returns NO_RESULTS_ON_PAGE if there are no results in the response. + /// Possible string values are: + /// - "CLEANUP_FAILED" + /// - "DEPRECATED_RESOURCE_USED" + /// - "DEPRECATED_TYPE_USED" + /// - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" + /// - "EXPERIMENTAL_TYPE_USED" + /// - "EXTERNAL_API_WARNING" + /// - "FIELD_VALUE_OVERRIDEN" + /// - "INJECTED_KERNELS_DEPRECATED" + /// - "MISSING_TYPE_DEPENDENCY" + /// - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" + /// - "NEXT_HOP_CANNOT_IP_FORWARD" + /// - "NEXT_HOP_INSTANCE_NOT_FOUND" + /// - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" + /// - "NEXT_HOP_NOT_RUNNING" + /// - "NOT_CRITICAL_ERROR" + /// - "NO_RESULTS_ON_PAGE" + /// - "REQUIRED_TOS_AGREEMENT" + /// - "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" + /// - "RESOURCE_NOT_DELETED" + /// - "SCHEMA_VALIDATION_IGNORED" + /// - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" + /// - "UNDECLARED_PROPERTIES" + /// - "UNREACHABLE" + core.String code; + + /// [Output Only] Metadata about this warning in key: value format. For + /// example: + /// "data": [ { "key": "scope", "value": "zones/us-east1-d" } + core.List<SslPoliciesListWarningData> data; + + /// [Output Only] A human-readable description of the warning code. + core.String message; + + SslPoliciesListWarning(); + + SslPoliciesListWarning.fromJson(core.Map _json) { + if (_json.containsKey("code")) { + code = _json["code"]; + } + if (_json.containsKey("data")) { + data = (_json["data"] as core.List) + .map<SslPoliciesListWarningData>( + (value) => new SslPoliciesListWarningData.fromJson(value)) + .toList(); + } + if (_json.containsKey("message")) { + message = _json["message"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (code != null) { + _json["code"] = code; + } + if (data != null) { + _json["data"] = data.map((value) => (value).toJson()).toList(); + } + if (message != null) { + _json["message"] = message; + } + return _json; + } +} + +class SslPoliciesList { + /// [Output Only] Unique identifier for the resource; defined by the server. + core.String id; + + /// A list of SslPolicy resources. + core.List<SslPolicy> items; + + /// [Output Only] Type of the resource. Always compute#sslPoliciesList for + /// lists of sslPolicies. + 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; + + /// [Output Only] Informational warning message. + SslPoliciesListWarning warning; + + SslPoliciesList(); + + SslPoliciesList.fromJson(core.Map _json) { + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("items")) { + items = (_json["items"] as core.List) + .map<SslPolicy>((value) => new SslPolicy.fromJson(value)) + .toList(); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("selfLink")) { + selfLink = _json["selfLink"]; + } + if (_json.containsKey("warning")) { + warning = new SslPoliciesListWarning.fromJson(_json["warning"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + 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; + } + if (warning != null) { + _json["warning"] = (warning).toJson(); + } + return _json; + } +} + +class SslPoliciesListAvailableFeaturesResponse { + core.List<core.String> features; + + SslPoliciesListAvailableFeaturesResponse(); + + SslPoliciesListAvailableFeaturesResponse.fromJson(core.Map _json) { + if (_json.containsKey("features")) { + features = (_json["features"] as core.List).cast<core.String>(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (features != null) { + _json["features"] = features; + } + return _json; + } +} + +class SslPolicyWarningsData { + /// [Output Only] A key that provides more detail on the warning being + /// returned. For example, for warnings where there are no results in a list + /// request for a particular zone, this key might be scope and the key value + /// might be the zone name. Other examples might be a key indicating a + /// deprecated resource and a suggested replacement, or a warning about + /// invalid network settings (for example, if an instance attempts to perform + /// IP forwarding but is not enabled for IP forwarding). + core.String key; + + /// [Output Only] A warning data value corresponding to the key. + core.String value; + + SslPolicyWarningsData(); + + SslPolicyWarningsData.fromJson(core.Map _json) { + if (_json.containsKey("key")) { + key = _json["key"]; + } + if (_json.containsKey("value")) { + value = _json["value"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (key != null) { + _json["key"] = key; + } + if (value != null) { + _json["value"] = value; + } + return _json; + } +} + +class SslPolicyWarnings { + /// [Output Only] A warning code, if applicable. For example, Compute Engine + /// returns NO_RESULTS_ON_PAGE if there are no results in the response. + /// Possible string values are: + /// - "CLEANUP_FAILED" + /// - "DEPRECATED_RESOURCE_USED" + /// - "DEPRECATED_TYPE_USED" + /// - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" + /// - "EXPERIMENTAL_TYPE_USED" + /// - "EXTERNAL_API_WARNING" + /// - "FIELD_VALUE_OVERRIDEN" + /// - "INJECTED_KERNELS_DEPRECATED" + /// - "MISSING_TYPE_DEPENDENCY" + /// - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" + /// - "NEXT_HOP_CANNOT_IP_FORWARD" + /// - "NEXT_HOP_INSTANCE_NOT_FOUND" + /// - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" + /// - "NEXT_HOP_NOT_RUNNING" + /// - "NOT_CRITICAL_ERROR" + /// - "NO_RESULTS_ON_PAGE" + /// - "REQUIRED_TOS_AGREEMENT" + /// - "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" + /// - "RESOURCE_NOT_DELETED" + /// - "SCHEMA_VALIDATION_IGNORED" + /// - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" + /// - "UNDECLARED_PROPERTIES" + /// - "UNREACHABLE" + core.String code; + + /// [Output Only] Metadata about this warning in key: value format. For + /// example: + /// "data": [ { "key": "scope", "value": "zones/us-east1-d" } + core.List<SslPolicyWarningsData> data; + + /// [Output Only] A human-readable description of the warning code. + core.String message; + + SslPolicyWarnings(); + + SslPolicyWarnings.fromJson(core.Map _json) { + if (_json.containsKey("code")) { + code = _json["code"]; + } + if (_json.containsKey("data")) { + data = (_json["data"] as core.List) + .map<SslPolicyWarningsData>( + (value) => new SslPolicyWarningsData.fromJson(value)) + .toList(); + } + if (_json.containsKey("message")) { + message = _json["message"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (code != null) { + _json["code"] = code; + } + if (data != null) { + _json["data"] = data.map((value) => (value).toJson()).toList(); + } + if (message != null) { + _json["message"] = message; + } + return _json; + } +} + +/// A SSL policy specifies the server-side support for SSL features. This can be +/// attached to a TargetHttpsProxy or a TargetSslProxy. This affects connections +/// between clients and the HTTPS or SSL proxy load balancer. They do not affect +/// the connection between the load balancers and the backends. +class SslPolicy { + /// [Output Only] Creation timestamp in RFC3339 text format. + core.String creationTimestamp; + + /// A list of features enabled when the selected profile is CUSTOM. The + /// - method returns the set of features that can be specified in this list. + /// This field must be empty if the profile is not CUSTOM. + core.List<core.String> customFeatures; + + /// An optional description of this resource. Provide this property when you + /// create the resource. + core.String description; + + /// [Output Only] The list of features enabled in the SSL policy. + core.List<core.String> enabledFeatures; + + /// Fingerprint of this resource. A hash of the contents stored in this + /// object. This field is used in optimistic locking. This field will be + /// ignored when inserting a SslPolicy. An up-to-date fingerprint must be + /// provided in order to update the SslPolicy. + core.String fingerprint; + core.List<core.int> get fingerprintAsBytes { + return convert.base64.decode(fingerprint); + } + + void set fingerprintAsBytes(core.List<core.int> _bytes) { + fingerprint = + convert.base64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); + } + + /// [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#sslPolicyfor SSL + /// policies. + core.String kind; + + /// The minimum version of SSL protocol that can be used by the clients to + /// establish a connection with the load balancer. This can be one of TLS_1_0, + /// TLS_1_1, TLS_1_2. + /// Possible string values are: + /// - "TLS_1_0" + /// - "TLS_1_1" + /// - "TLS_1_2" + core.String minTlsVersion; + + /// Name of the resource. 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; + + /// Profile specifies the set of SSL features that can be used by the load + /// balancer when negotiating SSL with clients. This can be one of COMPATIBLE, + /// MODERN, RESTRICTED, or CUSTOM. If using CUSTOM, the set of SSL features to + /// enable must be specified in the customFeatures field. + /// Possible string values are: + /// - "COMPATIBLE" + /// - "CUSTOM" + /// - "MODERN" + /// - "RESTRICTED" + core.String profile; + + /// [Output Only] Server-defined URL for the resource. + core.String selfLink; + + /// [Output Only] If potential misconfigurations are detected for this SSL + /// policy, this field will be populated with warning messages. + core.List<SslPolicyWarnings> warnings; + + SslPolicy(); + + SslPolicy.fromJson(core.Map _json) { + if (_json.containsKey("creationTimestamp")) { + creationTimestamp = _json["creationTimestamp"]; + } + if (_json.containsKey("customFeatures")) { + customFeatures = + (_json["customFeatures"] as core.List).cast<core.String>(); + } + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("enabledFeatures")) { + enabledFeatures = + (_json["enabledFeatures"] as core.List).cast<core.String>(); + } + if (_json.containsKey("fingerprint")) { + fingerprint = _json["fingerprint"]; + } + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("minTlsVersion")) { + minTlsVersion = _json["minTlsVersion"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("profile")) { + profile = _json["profile"]; + } + if (_json.containsKey("selfLink")) { + selfLink = _json["selfLink"]; + } + if (_json.containsKey("warnings")) { + warnings = (_json["warnings"] as core.List) + .map<SslPolicyWarnings>( + (value) => new SslPolicyWarnings.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (creationTimestamp != null) { + _json["creationTimestamp"] = creationTimestamp; + } + if (customFeatures != null) { + _json["customFeatures"] = customFeatures; + } + if (description != null) { + _json["description"] = description; + } + if (enabledFeatures != null) { + _json["enabledFeatures"] = enabledFeatures; + } + if (fingerprint != null) { + _json["fingerprint"] = fingerprint; + } + if (id != null) { + _json["id"] = id; + } + if (kind != null) { + _json["kind"] = kind; + } + if (minTlsVersion != null) { + _json["minTlsVersion"] = minTlsVersion; + } + if (name != null) { + _json["name"] = name; + } + if (profile != null) { + _json["profile"] = profile; + } + if (selfLink != null) { + _json["selfLink"] = selfLink; + } + if (warnings != null) { + _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +class SslPolicyReference { + /// URL of the SSL policy resource. Set this to empty string to clear any + /// existing SSL policy associated with the target proxy resource. + core.String sslPolicy; + + SslPolicyReference(); + + SslPolicyReference.fromJson(core.Map _json) { + if (_json.containsKey("sslPolicy")) { + sslPolicy = _json["sslPolicy"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (sslPolicy != null) { + _json["sslPolicy"] = sslPolicy; + } + return _json; + } +} + /// A Subnetwork resource. (== resource_for beta.subnetworks ==) (== /// resource_for v1.subnetworks ==) class Subnetwork { @@ -47495,6 +51246,23 @@ /// create the resource. This field can be set only at resource creation time. core.String description; + /// Whether to enable flow logging for this subnetwork. + core.bool enableFlowLogs; + + /// Fingerprint of this resource. A hash of the contents stored in this + /// object. This field is used in optimistic locking. This field will be + /// ignored when inserting a Subnetwork. An up-to-date fingerprint must be + /// provided in order to update the Subnetwork. + core.String fingerprint; + core.List<core.int> get fingerprintAsBytes { + return convert.base64.decode(fingerprint); + } + + void set fingerprintAsBytes(core.List<core.int> _bytes) { + fingerprint = + convert.base64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); + } + /// [Output Only] The gateway address for default routes to reach destination /// addresses outside this subnetwork. core.String gatewayAddress; @@ -47517,7 +51285,7 @@ /// The name of the resource, provided by the client when initially creating /// the resource. 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 + /// 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. @@ -47556,6 +51324,12 @@ if (_json.containsKey("description")) { description = _json["description"]; } + if (_json.containsKey("enableFlowLogs")) { + enableFlowLogs = _json["enableFlowLogs"]; + } + if (_json.containsKey("fingerprint")) { + fingerprint = _json["fingerprint"]; + } if (_json.containsKey("gatewayAddress")) { gatewayAddress = _json["gatewayAddress"]; } @@ -47600,6 +51374,12 @@ if (description != null) { _json["description"] = description; } + if (enableFlowLogs != null) { + _json["enableFlowLogs"] = enableFlowLogs; + } + if (fingerprint != null) { + _json["fingerprint"] = fingerprint; + } if (gatewayAddress != null) { _json["gatewayAddress"] = gatewayAddress; } @@ -48173,7 +51953,7 @@ } class SubnetworksScopedList { - /// List of subnetworks contained in this scope. + /// A list of subnetworks contained in this scope. core.List<Subnetwork> subnetworks; /// An informational warning that appears when the list of addresses is empty. @@ -48299,10 +52079,10 @@ /// A set of instance tags. class Tags { /// Specifies a fingerprint for this request, which is essentially a hash of - /// the metadata's contents and used for optimistic locking. The fingerprint - /// is initially generated by Compute Engine and changes after every request - /// to modify or update metadata. You must always provide an up-to-date - /// fingerprint hash in order to update or change metadata. + /// the tags' contents and used for optimistic locking. The fingerprint is + /// initially generated by Compute Engine and changes after every request to + /// modify or update tags. You must always provide an up-to-date fingerprint + /// hash in order to update or change tags. /// /// To see the latest fingerprint, make get() request to the instance. core.String fingerprint; @@ -48365,8 +52145,8 @@ /// 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, + /// 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; @@ -48615,6 +52395,32 @@ } } +class TargetHttpsProxiesSetQuicOverrideRequest { + /// QUIC policy for the TargetHttpsProxy resource. + /// Possible string values are: + /// - "DISABLE" + /// - "ENABLE" + /// - "NONE" + core.String quicOverride; + + TargetHttpsProxiesSetQuicOverrideRequest(); + + TargetHttpsProxiesSetQuicOverrideRequest.fromJson(core.Map _json) { + if (_json.containsKey("quicOverride")) { + quicOverride = _json["quicOverride"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (quicOverride != null) { + _json["quicOverride"] = quicOverride; + } + return _json; + } +} + class TargetHttpsProxiesSetSslCertificatesRequest { /// New set of SslCertificate resources to associate with this /// TargetHttpsProxy resource. Currently exactly one SslCertificate resource @@ -48662,12 +52468,25 @@ /// 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, + /// 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 QUIC override policy for this TargetHttpsProxy resource. + /// This determines whether the load balancer will attempt to negotiate QUIC + /// with clients or not. Can specify one of NONE, ENABLE, or DISABLE. Specify + /// ENABLE to always enable QUIC, Enables QUIC when set to ENABLE, and + /// disables QUIC when set to DISABLE. If NONE is specified, uses the QUIC + /// policy with no user overrides, which is equivalent to DISABLE. Not + /// specifying this field is equivalent to specifying NONE. + /// Possible string values are: + /// - "DISABLE" + /// - "ENABLE" + /// - "NONE" + core.String quicOverride; + /// [Output Only] Server-defined URL for the resource. core.String selfLink; @@ -48676,6 +52495,11 @@ /// certificate must be specified. core.List<core.String> sslCertificates; + /// URL of SslPolicy resource that will be associated with the + /// TargetHttpsProxy resource. If not set, the TargetHttpsProxy resource will + /// not have any SSL policy configured. + core.String sslPolicy; + /// A fully-qualified or valid partial URL to the UrlMap resource that defines /// the mapping from URL to the BackendService. For example, the following are /// all valid URLs for specifying a URL map: @@ -48703,6 +52527,9 @@ if (_json.containsKey("name")) { name = _json["name"]; } + if (_json.containsKey("quicOverride")) { + quicOverride = _json["quicOverride"]; + } if (_json.containsKey("selfLink")) { selfLink = _json["selfLink"]; } @@ -48710,6 +52537,9 @@ sslCertificates = (_json["sslCertificates"] as core.List).cast<core.String>(); } + if (_json.containsKey("sslPolicy")) { + sslPolicy = _json["sslPolicy"]; + } if (_json.containsKey("urlMap")) { urlMap = _json["urlMap"]; } @@ -48733,12 +52563,18 @@ if (name != null) { _json["name"] = name; } + if (quicOverride != null) { + _json["quicOverride"] = quicOverride; + } if (selfLink != null) { _json["selfLink"] = selfLink; } if (sslCertificates != null) { _json["sslCertificates"] = sslCertificates; } + if (sslPolicy != null) { + _json["sslPolicy"] = sslPolicy; + } if (urlMap != null) { _json["urlMap"] = urlMap; } @@ -48962,8 +52798,8 @@ /// 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, + /// 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; @@ -49524,7 +53360,7 @@ } class TargetInstancesScopedList { - /// List of target instances contained in this scope. + /// A list of target instances contained in this scope. core.List<TargetInstance> targetInstances; /// Informational warning which replaces the list of addresses when the list @@ -49621,8 +53457,8 @@ /// 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, + /// 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; @@ -50356,7 +54192,7 @@ } class TargetPoolsScopedList { - /// List of target pools contained in this scope. + /// A list of target pools contained in this scope. core.List<TargetPool> targetPools; /// Informational warning which replaces the list of addresses when the list @@ -50505,8 +54341,8 @@ /// 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, + /// 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; @@ -50528,6 +54364,11 @@ /// to Backends. Currently exactly one SSL certificate must be specified. core.List<core.String> sslCertificates; + /// URL of SslPolicy resource that will be associated with the TargetSslProxy + /// resource. If not set, the TargetSslProxy resource will not have any SSL + /// policy configured. + core.String sslPolicy; + TargetSslProxy(); TargetSslProxy.fromJson(core.Map _json) { @@ -50559,6 +54400,9 @@ sslCertificates = (_json["sslCertificates"] as core.List).cast<core.String>(); } + if (_json.containsKey("sslPolicy")) { + sslPolicy = _json["sslPolicy"]; + } } core.Map<core.String, core.Object> toJson() { @@ -50591,6 +54435,9 @@ if (sslCertificates != null) { _json["sslCertificates"] = sslCertificates; } + if (sslPolicy != null) { + _json["sslPolicy"] = sslPolicy; + } return _json; } } @@ -50847,8 +54694,8 @@ /// 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, + /// 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; @@ -51134,8 +54981,8 @@ /// 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, + /// 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; @@ -51723,7 +55570,7 @@ } class TargetVpnGatewaysScopedList { - /// [Output Only] List of target vpn gateways contained in this scope. + /// [Output Only] A list of target vpn gateways contained in this scope. core.List<TargetVpnGateway> targetVpnGateways; /// [Output Only] Informational warning which replaces the list of addresses @@ -51801,6 +55648,52 @@ } } +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"] as core.List).cast<core.String>(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + 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"] as core.List).cast<core.String>(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (permissions != null) { + _json["permissions"] = permissions; + } + return _json; + } +} + /// A UrlMap resource. This resource defines the mapping from URL to the /// BackendService resource, based on the "longest-match" of the URL's host and /// path. @@ -51842,8 +55735,8 @@ /// 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, + /// 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; @@ -52366,8 +56259,8 @@ /// 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, + /// 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; @@ -53009,7 +56902,7 @@ } class VpnTunnelsScopedList { - /// List of vpn tunnels contained in this scope. + /// A list of vpn tunnels contained in this scope. core.List<VpnTunnel> vpnTunnels; /// Informational warning which replaces the list of addresses when the list
diff --git a/generated/googleapis/lib/container/v1.dart b/generated/googleapis/lib/container/v1.dart index 5bbd700..fea5e71 100644 --- a/generated/googleapis/lib/container/v1.dart +++ b/generated/googleapis/lib/container/v1.dart
@@ -37,12 +37,1843 @@ class ProjectsResourceApi { final commons.ApiRequester _requester; + ProjectsLocationsResourceApi get locations => + new ProjectsLocationsResourceApi(_requester); ProjectsZonesResourceApi get zones => new ProjectsZonesResourceApi(_requester); ProjectsResourceApi(commons.ApiRequester client) : _requester = client; } +class ProjectsLocationsResourceApi { + final commons.ApiRequester _requester; + + ProjectsLocationsClustersResourceApi get clusters => + new ProjectsLocationsClustersResourceApi(_requester); + ProjectsLocationsOperationsResourceApi get operations => + new ProjectsLocationsOperationsResourceApi(_requester); + + ProjectsLocationsResourceApi(commons.ApiRequester client) + : _requester = client; + + /// Returns configuration info about the Kubernetes Engine service. + /// + /// Request parameters: + /// + /// [name] - The name (project and location) of the server config to get + /// Specified in the format 'projects / * /locations / * '. + /// Value must have pattern "^projects/[^/]+/locations/[^/]+$". + /// + /// [zone] - Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) to return operations for. + /// This field has been deprecated and replaced by the name field. + /// + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project + /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ServerConfig]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<ServerConfig> getServerConfig(core.String name, + {core.String zone, core.String projectId, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (zone != null) { + _queryParams["zone"] = [zone]; + } + if (projectId != null) { + _queryParams["projectId"] = [projectId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + + commons.Escaper.ecapeVariableReserved('$name') + + '/serverConfig'; + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ServerConfig.fromJson(data)); + } +} + +class ProjectsLocationsClustersResourceApi { + final commons.ApiRequester _requester; + + ProjectsLocationsClustersNodePoolsResourceApi get nodePools => + new ProjectsLocationsClustersNodePoolsResourceApi(_requester); + + ProjectsLocationsClustersResourceApi(commons.ApiRequester client) + : _requester = client; + + /// Completes master IP rotation. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster id) of the cluster to + /// complete IP + /// rotation. Specified in the format 'projects / * /locations / * /clusters / + /// * '. + /// Value must have pattern "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> completeIpRotation( + CompleteIPRotationRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + + commons.Escaper.ecapeVariableReserved('$name') + + ':completeIpRotation'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Creates a cluster, consisting of the specified number and type of Google + /// Compute Engine instances. + /// + /// By default, the cluster is created in the project's + /// [default network](/compute/docs/networks-and-firewalls#networks). + /// + /// One firewall is added for the cluster. After cluster creation, + /// the cluster creates routes for each node to allow the containers + /// on that node to communicate with all other instances in the + /// cluster. + /// + /// Finally, an entry is added to the project's global metadata indicating + /// which CIDR range is being used by the cluster. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [parent] - The parent (project and location) where the cluster will be + /// created. + /// Specified in the format 'projects / * /locations / * '. + /// Value must have pattern "^projects/[^/]+/locations/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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( + CreateClusterRequest request, core.String parent, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = + 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/clusters'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Deletes the cluster, including the Kubernetes endpoint and all worker + /// nodes. + /// + /// Firewalls and routes that were configured during cluster creation + /// are also deleted. + /// + /// Other Google Compute Engine resources that might be in use by the cluster + /// (e.g. load balancer resources) will not be deleted if they weren't present + /// at the initial create time. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster) of the cluster to delete. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + /// Value must have pattern "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$". + /// + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project + /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. + /// + /// [zone] - Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + /// + /// [clusterId] - Deprecated. The name of the cluster to delete. + /// This field has been deprecated and replaced by the name field. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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 name, + {core.String projectId, + core.String zone, + core.String clusterId, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (projectId != null) { + _queryParams["projectId"] = [projectId]; + } + if (zone != null) { + _queryParams["zone"] = [zone]; + } + if (clusterId != null) { + _queryParams["clusterId"] = [clusterId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _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 Operation.fromJson(data)); + } + + /// Gets the details of a specific cluster. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster) of the cluster to retrieve. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + /// Value must have pattern "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$". + /// + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project + /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. + /// + /// [zone] - Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + /// + /// [clusterId] - Deprecated. The name of the cluster to retrieve. + /// This field has been deprecated and replaced by the name field. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Cluster]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<Cluster> get(core.String name, + {core.String projectId, + core.String zone, + core.String clusterId, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (projectId != null) { + _queryParams["projectId"] = [projectId]; + } + if (zone != null) { + _queryParams["zone"] = [zone]; + } + if (clusterId != null) { + _queryParams["clusterId"] = [clusterId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _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 Cluster.fromJson(data)); + } + + /// Lists all clusters owned by a project in either the specified zone or all + /// zones. + /// + /// Request parameters: + /// + /// [parent] - The parent (project and location) where the clusters will be + /// listed. + /// Specified in the format 'projects / * /locations / * '. + /// Location "-" matches all zones and all regions. + /// Value must have pattern "^projects/[^/]+/locations/[^/]+$". + /// + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project + /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the parent field. + /// + /// [zone] - Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides, or "-" for all zones. + /// This field has been deprecated and replaced by the parent field. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ListClustersResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// 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 parent, + {core.String projectId, core.String zone, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (projectId != null) { + _queryParams["projectId"] = [projectId]; + } + if (zone != null) { + _queryParams["zone"] = [zone]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = + 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/clusters'; + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListClustersResponse.fromJson(data)); + } + + /// Sets the addons for a specific cluster. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster) of the cluster to set + /// addons. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + /// Value must have pattern "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> setAddons( + SetAddonsConfigRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = + 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':setAddons'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Enables or disables the ABAC authorization mechanism on a cluster. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster id) of the cluster to set + /// legacy abac. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + /// Value must have pattern "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> setLegacyAbac( + SetLegacyAbacRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + + commons.Escaper.ecapeVariableReserved('$name') + + ':setLegacyAbac'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Sets the locations for a specific cluster. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster) of the cluster to set + /// locations. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + /// Value must have pattern "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> setLocations( + SetLocationsRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + + commons.Escaper.ecapeVariableReserved('$name') + + ':setLocations'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Sets the logging service for a specific cluster. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster) of the cluster to set + /// logging. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + /// Value must have pattern "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> setLogging( + SetLoggingServiceRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = + 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':setLogging'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Sets the maintenance policy for a cluster. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster id) of the cluster to set + /// maintenance + /// policy. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + /// Value must have pattern "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> setMaintenancePolicy( + SetMaintenancePolicyRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + + commons.Escaper.ecapeVariableReserved('$name') + + ':setMaintenancePolicy'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Used to set master auth materials. Currently supports :- + /// Changing the admin password for a specific cluster. + /// This can be either via password generation or explicitly set the password. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster) of the cluster to set auth. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + /// Value must have pattern "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> setMasterAuth( + SetMasterAuthRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + + commons.Escaper.ecapeVariableReserved('$name') + + ':setMasterAuth'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Sets the monitoring service for a specific cluster. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster) of the cluster to set + /// monitoring. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + /// Value must have pattern "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> setMonitoring( + SetMonitoringServiceRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + + commons.Escaper.ecapeVariableReserved('$name') + + ':setMonitoring'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Enables/Disables Network Policy for a cluster. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster id) of the cluster to set + /// networking + /// policy. Specified in the format 'projects / * /locations / * /clusters / * + /// '. + /// Value must have pattern "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> setNetworkPolicy( + SetNetworkPolicyRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + + commons.Escaper.ecapeVariableReserved('$name') + + ':setNetworkPolicy'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Sets labels on a cluster. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster id) of the cluster to set + /// labels. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + /// Value must have pattern "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> setResourceLabels( + SetLabelsRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + + commons.Escaper.ecapeVariableReserved('$name') + + ':setResourceLabels'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Start master IP rotation. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster id) of the cluster to start + /// IP + /// rotation. Specified in the format 'projects / * /locations / * /clusters / + /// * '. + /// Value must have pattern "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> startIpRotation( + StartIPRotationRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + + commons.Escaper.ecapeVariableReserved('$name') + + ':startIpRotation'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Updates the settings of a specific cluster. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster) of the cluster to update. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + /// Value must have pattern "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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(UpdateClusterRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, "PUT", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Updates the master for a specific cluster. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster) of the cluster to update. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + /// Value must have pattern "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> updateMaster( + UpdateMasterRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + + commons.Escaper.ecapeVariableReserved('$name') + + ':updateMaster'; + + 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 ProjectsLocationsClustersNodePoolsResourceApi { + final commons.ApiRequester _requester; + + ProjectsLocationsClustersNodePoolsResourceApi(commons.ApiRequester client) + : _requester = client; + + /// Creates a node pool for a cluster. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [parent] - The parent (project, location, cluster id) where the node pool + /// will be + /// created. Specified in the format + /// 'projects / * /locations / * /clusters / * /nodePools / * '. + /// Value must have pattern "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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( + CreateNodePoolRequest request, core.String parent, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = + 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/nodePools'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Deletes a node pool from a cluster. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster, node pool id) of the node + /// pool to + /// delete. Specified in the format + /// 'projects / * /locations / * /clusters / * /nodePools / * '. + /// Value must have pattern + /// "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$". + /// + /// [zone] - Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + /// + /// [clusterId] - Deprecated. The name of the cluster. + /// This field has been deprecated and replaced by the name field. + /// + /// [nodePoolId] - Deprecated. The name of the node pool to delete. + /// This field has been deprecated and replaced by the name field. + /// + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project + /// number](https://developers.google.com/console/help/new/#projectnumber). + /// This field has been deprecated and replaced by the name field. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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 name, + {core.String zone, + core.String clusterId, + core.String nodePoolId, + core.String projectId, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (zone != null) { + _queryParams["zone"] = [zone]; + } + if (clusterId != null) { + _queryParams["clusterId"] = [clusterId]; + } + if (nodePoolId != null) { + _queryParams["nodePoolId"] = [nodePoolId]; + } + if (projectId != null) { + _queryParams["projectId"] = [projectId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _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 Operation.fromJson(data)); + } + + /// Retrieves the node pool requested. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster, node pool id) of the node + /// pool to + /// get. Specified in the format + /// 'projects / * /locations / * /clusters / * /nodePools / * '. + /// Value must have pattern + /// "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$". + /// + /// [zone] - Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + /// + /// [clusterId] - Deprecated. The name of the cluster. + /// This field has been deprecated and replaced by the name field. + /// + /// [nodePoolId] - Deprecated. The name of the node pool. + /// This field has been deprecated and replaced by the name field. + /// + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project + /// number](https://developers.google.com/console/help/new/#projectnumber). + /// This field has been deprecated and replaced by the name field. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [NodePool]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<NodePool> get(core.String name, + {core.String zone, + core.String clusterId, + core.String nodePoolId, + core.String projectId, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (zone != null) { + _queryParams["zone"] = [zone]; + } + if (clusterId != null) { + _queryParams["clusterId"] = [clusterId]; + } + if (nodePoolId != null) { + _queryParams["nodePoolId"] = [nodePoolId]; + } + if (projectId != null) { + _queryParams["projectId"] = [projectId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _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 NodePool.fromJson(data)); + } + + /// Lists the node pools for a cluster. + /// + /// Request parameters: + /// + /// [parent] - The parent (project, location, cluster id) where the node pools + /// will be + /// listed. Specified in the format 'projects / * /locations / * /clusters / * + /// '. + /// Value must have pattern "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$". + /// + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project + /// number](https://developers.google.com/console/help/new/#projectnumber). + /// This field has been deprecated and replaced by the parent field. + /// + /// [zone] - Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the parent field. + /// + /// [clusterId] - Deprecated. The name of the cluster. + /// This field has been deprecated and replaced by the parent field. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ListNodePoolsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<ListNodePoolsResponse> list(core.String parent, + {core.String projectId, + core.String zone, + core.String clusterId, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (projectId != null) { + _queryParams["projectId"] = [projectId]; + } + if (zone != null) { + _queryParams["zone"] = [zone]; + } + if (clusterId != null) { + _queryParams["clusterId"] = [clusterId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = + 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/nodePools'; + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListNodePoolsResponse.fromJson(data)); + } + + /// Roll back the previously Aborted or Failed NodePool upgrade. + /// This will be an no-op if the last upgrade successfully completed. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster, node pool id) of the node + /// poll to + /// rollback upgrade. + /// Specified in the format 'projects / * /locations / * /clusters / * + /// /nodePools / * '. + /// Value must have pattern + /// "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> rollback( + RollbackNodePoolUpgradeRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':rollback'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Sets the autoscaling settings for a specific node pool. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster, node pool) of the node pool + /// to set + /// autoscaler settings. Specified in the format + /// 'projects / * /locations / * /clusters / * /nodePools / * '. + /// Value must have pattern + /// "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> setAutoscaling( + SetNodePoolAutoscalingRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + + commons.Escaper.ecapeVariableReserved('$name') + + ':setAutoscaling'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Sets the NodeManagement options for a node pool. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster, node pool id) of the node + /// pool to set + /// management properties. Specified in the format + /// 'projects / * /locations / * /clusters / * /nodePools / * '. + /// Value must have pattern + /// "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> setManagement( + SetNodePoolManagementRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + + commons.Escaper.ecapeVariableReserved('$name') + + ':setManagement'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Sets the size for a specific node pool. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster, node pool id) of the node + /// pool to set + /// size. + /// Specified in the format 'projects / * /locations / * /clusters / * + /// /nodePools / * '. + /// Value must have pattern + /// "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> setSize( + SetNodePoolSizeRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':setSize'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Updates the version and/or image type for a specific node pool. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, cluster, node pool) of the node pool + /// to + /// update. Specified in the format + /// 'projects / * /locations / * /clusters / * /nodePools / * '. + /// Value must have pattern + /// "^projects/[^/]+/locations/[^/]+/clusters/[^/]+/nodePools/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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( + UpdateNodePoolRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + 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 ProjectsLocationsOperationsResourceApi { + final commons.ApiRequester _requester; + + ProjectsLocationsOperationsResourceApi(commons.ApiRequester client) + : _requester = client; + + /// Cancels the specified operation. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, operation id) of the operation to + /// cancel. + /// Specified in the format 'projects / * /locations / * /operations / * '. + /// Value must have pattern + /// "^projects/[^/]+/locations/[^/]+/operations/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':cancel'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Empty.fromJson(data)); + } + + /// Gets the specified operation. + /// + /// Request parameters: + /// + /// [name] - The name (project, location, operation id) of the operation to + /// get. + /// Specified in the format 'projects / * /locations / * /operations / * '. + /// Value must have pattern + /// "^projects/[^/]+/locations/[^/]+/operations/[^/]+$". + /// + /// [operationId] - Deprecated. The server-assigned `name` of the operation. + /// This field has been deprecated and replaced by the name field. + /// + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project + /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. + /// + /// [zone] - Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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 name, + {core.String operationId, + core.String projectId, + core.String zone, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (operationId != null) { + _queryParams["operationId"] = [operationId]; + } + if (projectId != null) { + _queryParams["projectId"] = [projectId]; + } + if (zone != null) { + _queryParams["zone"] = [zone]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _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 Operation.fromJson(data)); + } + + /// Lists all operations in a project in a specific zone or all zones. + /// + /// Request parameters: + /// + /// [parent] - The parent (project and location) where the operations will be + /// listed. + /// Specified in the format 'projects / * /locations / * '. + /// Location "-" matches all zones and all regions. + /// Value must have pattern "^projects/[^/]+/locations/[^/]+$". + /// + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project + /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the parent field. + /// + /// [zone] - Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) to return operations for, or `-` for + /// all zones. This field has been deprecated and replaced by the parent + /// field. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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 parent, + {core.String projectId, core.String zone, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (projectId != null) { + _queryParams["projectId"] = [projectId]; + } + if (zone != null) { + _queryParams["zone"] = [zone]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + + commons.Escaper.ecapeVariableReserved('$parent') + + '/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)); + } +} + class ProjectsZonesResourceApi { final commons.ApiRequester _requester; @@ -57,12 +1888,17 @@ /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine - /// [zone](/compute/docs/zones#available) - /// to return operations for. + /// [zone] - Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) to return operations for. + /// This field has been deprecated and replaced by the name field. + /// + /// [name] - The name (project and location) of the server config to get + /// Specified in the format 'projects / * /locations / * '. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -76,7 +1912,7 @@ /// this method will complete with the same error. async.Future<ServerConfig> getServerconfig( core.String projectId, core.String zone, - {core.String $fields}) { + {core.String name, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -90,6 +1926,9 @@ if (zone == null) { throw new core.ArgumentError("Parameter zone is required."); } + if (name != null) { + _queryParams["name"] = [name]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -119,20 +1958,24 @@ ProjectsZonesClustersResourceApi(commons.ApiRequester client) : _requester = client; - /// Sets the addons of a specific cluster. + /// Sets the addons for a specific cluster. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [clusterId] - The name of the cluster to upgrade. + /// [clusterId] - Deprecated. The name of the cluster to upgrade. + /// This field has been deprecated and replaced by the name field. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -193,14 +2036,18 @@ /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://developers.google.com/console/help/new/#projectnumber). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [clusterId] - The name of the cluster. + /// [clusterId] - Deprecated. The name of the cluster. + /// This field has been deprecated and replaced by the name field. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -273,12 +2120,15 @@ /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the parent field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the parent field. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -340,14 +2190,21 @@ /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [clusterId] - The name of the cluster to delete. + /// [clusterId] - Deprecated. The name of the cluster to delete. + /// This field has been deprecated and replaced by the name field. + /// + /// [name] - The name (project, location, cluster) of the cluster to delete. + /// Specified in the format 'projects / * /locations / * /clusters / * '. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -361,7 +2218,7 @@ /// this method will complete with the same error. async.Future<Operation> delete( core.String projectId, core.String zone, core.String clusterId, - {core.String $fields}) { + {core.String name, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -378,6 +2235,9 @@ if (clusterId == null) { throw new core.ArgumentError("Parameter clusterId is required."); } + if (name != null) { + _queryParams["name"] = [name]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -402,14 +2262,21 @@ /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [clusterId] - The name of the cluster to retrieve. + /// [clusterId] - Deprecated. The name of the cluster to retrieve. + /// This field has been deprecated and replaced by the name field. + /// + /// [name] - The name (project, location, cluster) of the cluster to retrieve. + /// Specified in the format 'projects / * /locations / * /clusters / * '. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -423,7 +2290,7 @@ /// this method will complete with the same error. async.Future<Cluster> get( core.String projectId, core.String zone, core.String clusterId, - {core.String $fields}) { + {core.String name, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -440,6 +2307,9 @@ if (clusterId == null) { throw new core.ArgumentError("Parameter clusterId is required."); } + if (name != null) { + _queryParams["name"] = [name]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -466,14 +2336,18 @@ /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [clusterId] - The name of the cluster to update. + /// [clusterId] - Deprecated. The name of the cluster to update. + /// This field has been deprecated and replaced by the name field. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -533,12 +2407,20 @@ /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the parent field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides, or "-" for all zones. + /// This field has been deprecated and replaced by the parent field. + /// + /// [parent] - The parent (project and location) where the clusters will be + /// listed. + /// Specified in the format 'projects / * /locations / * '. + /// Location "-" matches all zones and all regions. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -552,7 +2434,7 @@ /// this method will complete with the same error. async.Future<ListClustersResponse> list( core.String projectId, core.String zone, - {core.String $fields}) { + {core.String parent, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -566,6 +2448,9 @@ if (zone == null) { throw new core.ArgumentError("Parameter zone is required."); } + if (parent != null) { + _queryParams["parent"] = [parent]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -585,20 +2470,24 @@ return _response.then((data) => new ListClustersResponse.fromJson(data)); } - /// Sets the locations of a specific cluster. + /// Sets the locations for a specific cluster. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [clusterId] - The name of the cluster to upgrade. + /// [clusterId] - Deprecated. The name of the cluster to upgrade. + /// This field has been deprecated and replaced by the name field. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -653,20 +2542,24 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Sets the logging service of a specific cluster. + /// Sets the logging service for a specific cluster. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [clusterId] - The name of the cluster to upgrade. + /// [clusterId] - Deprecated. The name of the cluster to upgrade. + /// This field has been deprecated and replaced by the name field. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -721,20 +2614,24 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Updates the master of a specific cluster. + /// Updates the master for a specific cluster. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [clusterId] - The name of the cluster to upgrade. + /// [clusterId] - Deprecated. The name of the cluster to upgrade. + /// This field has been deprecated and replaced by the name field. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -789,20 +2686,24 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Sets the monitoring service of a specific cluster. + /// Sets the monitoring service for a specific cluster. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [clusterId] - The name of the cluster to upgrade. + /// [clusterId] - Deprecated. The name of the cluster to upgrade. + /// This field has been deprecated and replaced by the name field. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -863,14 +2764,18 @@ /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://developers.google.com/console/help/new/#projectnumber). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [clusterId] - The name of the cluster. + /// [clusterId] - Deprecated. The name of the cluster. + /// This field has been deprecated and replaced by the name field. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -997,21 +2902,25 @@ } /// Used to set master auth materials. Currently supports :- - /// Changing the admin password of a specific cluster. + /// Changing the admin password for a specific cluster. /// This can be either via password generation or explicitly set the password. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [clusterId] - The name of the cluster to upgrade. + /// [clusterId] - Deprecated. The name of the cluster to upgrade. + /// This field has been deprecated and replaced by the name field. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1072,14 +2981,18 @@ /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://developers.google.com/console/help/new/#projectnumber). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [clusterId] - The name of the cluster. + /// [clusterId] - Deprecated. The name of the cluster. + /// This field has been deprecated and replaced by the name field. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1140,14 +3053,18 @@ /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://developers.google.com/console/help/new/#projectnumber). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [clusterId] - The name of the cluster. + /// [clusterId] - Deprecated. The name of the cluster. + /// This field has been deprecated and replaced by the name field. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1208,14 +3125,18 @@ /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [clusterId] - The name of the cluster to upgrade. + /// [clusterId] - Deprecated. The name of the cluster to upgrade. + /// This field has been deprecated and replaced by the name field. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1276,22 +3197,27 @@ ProjectsZonesClustersNodePoolsResourceApi(commons.ApiRequester client) : _requester = client; - /// Sets the autoscaling settings of a specific node pool. + /// Sets the autoscaling settings for a specific node pool. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [clusterId] - The name of the cluster to upgrade. + /// [clusterId] - Deprecated. The name of the cluster to upgrade. + /// This field has been deprecated and replaced by the name field. /// - /// [nodePoolId] - The name of the node pool to upgrade. + /// [nodePoolId] - Deprecated. The name of the node pool to upgrade. + /// This field has been deprecated and replaced by the name field. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1361,14 +3287,18 @@ /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://developers.google.com/console/help/new/#projectnumber). + /// This field has been deprecated and replaced by the parent field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the parent field. /// - /// [clusterId] - The name of the cluster. + /// [clusterId] - Deprecated. The name of the cluster. + /// This field has been deprecated and replaced by the parent field. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1427,16 +3357,26 @@ /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://developers.google.com/console/help/new/#projectnumber). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [clusterId] - The name of the cluster. + /// [clusterId] - Deprecated. The name of the cluster. + /// This field has been deprecated and replaced by the name field. /// - /// [nodePoolId] - The name of the node pool to delete. + /// [nodePoolId] - Deprecated. The name of the node pool to delete. + /// This field has been deprecated and replaced by the name field. + /// + /// [name] - The name (project, location, cluster, node pool id) of the node + /// pool to + /// delete. Specified in the format + /// 'projects / * /locations / * /clusters / * /nodePools / * '. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1450,7 +3390,7 @@ /// this method will complete with the same error. async.Future<Operation> delete(core.String projectId, core.String zone, core.String clusterId, core.String nodePoolId, - {core.String $fields}) { + {core.String name, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -1470,6 +3410,9 @@ if (nodePoolId == null) { throw new core.ArgumentError("Parameter nodePoolId is required."); } + if (name != null) { + _queryParams["name"] = [name]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1496,16 +3439,26 @@ /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://developers.google.com/console/help/new/#projectnumber). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [clusterId] - The name of the cluster. + /// [clusterId] - Deprecated. The name of the cluster. + /// This field has been deprecated and replaced by the name field. /// - /// [nodePoolId] - The name of the node pool. + /// [nodePoolId] - Deprecated. The name of the node pool. + /// This field has been deprecated and replaced by the name field. + /// + /// [name] - The name (project, location, cluster, node pool id) of the node + /// pool to + /// get. Specified in the format + /// 'projects / * /locations / * /clusters / * /nodePools / * '. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1519,7 +3472,7 @@ /// this method will complete with the same error. async.Future<NodePool> get(core.String projectId, core.String zone, core.String clusterId, core.String nodePoolId, - {core.String $fields}) { + {core.String name, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -1539,6 +3492,9 @@ if (nodePoolId == null) { throw new core.ArgumentError("Parameter nodePoolId is required."); } + if (name != null) { + _queryParams["name"] = [name]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1565,14 +3521,23 @@ /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://developers.google.com/console/help/new/#projectnumber). + /// This field has been deprecated and replaced by the parent field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the parent field. /// - /// [clusterId] - The name of the cluster. + /// [clusterId] - Deprecated. The name of the cluster. + /// This field has been deprecated and replaced by the parent field. + /// + /// [parent] - The parent (project, location, cluster id) where the node pools + /// will be + /// listed. Specified in the format 'projects / * /locations / * /clusters / * + /// '. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1586,7 +3551,7 @@ /// this method will complete with the same error. async.Future<ListNodePoolsResponse> list( core.String projectId, core.String zone, core.String clusterId, - {core.String $fields}) { + {core.String parent, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -1603,6 +3568,9 @@ if (clusterId == null) { throw new core.ArgumentError("Parameter clusterId is required."); } + if (parent != null) { + _queryParams["parent"] = [parent]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1631,16 +3599,21 @@ /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [clusterId] - The name of the cluster to rollback. + /// [clusterId] - Deprecated. The name of the cluster to rollback. + /// This field has been deprecated and replaced by the name field. /// - /// [nodePoolId] - The name of the node pool to rollback. + /// [nodePoolId] - Deprecated. The name of the node pool to rollback. + /// This field has been deprecated and replaced by the name field. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1710,16 +3683,21 @@ /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [clusterId] - The name of the cluster to update. + /// [clusterId] - Deprecated. The name of the cluster to update. + /// This field has been deprecated and replaced by the name field. /// - /// [nodePoolId] - The name of the node pool to update. + /// [nodePoolId] - Deprecated. The name of the node pool to update. + /// This field has been deprecated and replaced by the name field. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1783,22 +3761,27 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Sets the size of a specific node pool. + /// Sets the size for a specific node pool. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [clusterId] - The name of the cluster to update. + /// [clusterId] - Deprecated. The name of the cluster to update. + /// This field has been deprecated and replaced by the name field. /// - /// [nodePoolId] - The name of the node pool to update. + /// [nodePoolId] - Deprecated. The name of the node pool to update. + /// This field has been deprecated and replaced by the name field. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1862,22 +3845,27 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Updates the version and/or image type of a specific node pool. + /// Updates the version and/or image type for a specific node pool. /// /// [request] - The metadata request object. /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [clusterId] - The name of the cluster to upgrade. + /// [clusterId] - Deprecated. The name of the cluster to upgrade. + /// This field has been deprecated and replaced by the name field. /// - /// [nodePoolId] - The name of the node pool to upgrade. + /// [nodePoolId] - Deprecated. The name of the node pool to upgrade. + /// This field has been deprecated and replaced by the name field. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -1954,13 +3942,17 @@ /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the operation resides. + /// This field has been deprecated and replaced by the name field. /// - /// [operationId] - The server-assigned `name` of the operation. + /// [operationId] - Deprecated. The server-assigned `name` of the operation. + /// This field has been deprecated and replaced by the name field. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -2019,14 +4011,22 @@ /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. /// - /// [zone] - The name of the Google Compute Engine + /// [zone] - Deprecated. The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field has been deprecated and replaced by the name field. /// - /// [operationId] - The server-assigned `name` of the operation. + /// [operationId] - Deprecated. The server-assigned `name` of the operation. + /// This field has been deprecated and replaced by the name field. + /// + /// [name] - The name (project, location, operation id) of the operation to + /// get. + /// Specified in the format 'projects / * /locations / * /operations / * '. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -2040,7 +4040,7 @@ /// this method will complete with the same error. async.Future<Operation> get( core.String projectId, core.String zone, core.String operationId, - {core.String $fields}) { + {core.String name, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -2057,6 +4057,9 @@ if (operationId == null) { throw new core.ArgumentError("Parameter operationId is required."); } + if (name != null) { + _queryParams["name"] = [name]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -2081,12 +4084,20 @@ /// /// Request parameters: /// - /// [projectId] - The Google Developers Console [project ID or project + /// [projectId] - Deprecated. The Google Developers Console [project ID or + /// project /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the parent field. /// - /// [zone] - The name of the Google Compute Engine - /// [zone](/compute/docs/zones#available) - /// to return operations for, or `-` for all zones. + /// [zone] - Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) to return operations for, or `-` for + /// all zones. This field has been deprecated and replaced by the parent + /// field. + /// + /// [parent] - The parent (project and location) where the operations will be + /// listed. + /// Specified in the format 'projects / * /locations / * '. + /// Location "-" matches all zones and all regions. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -2100,7 +4111,7 @@ /// this method will complete with the same error. async.Future<ListOperationsResponse> list( core.String projectId, core.String zone, - {core.String $fields}) { + {core.String parent, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -2114,6 +4125,9 @@ if (zone == null) { throw new core.ArgumentError("Parameter zone is required."); } + if (parent != null) { + _queryParams["parent"] = [parent]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -2265,13 +4279,56 @@ /// CancelOperationRequest cancels a single operation. class CancelOperationRequest { + /// The name (project, location, operation id) of the operation to cancel. + /// Specified in the format 'projects / * /locations / * /operations / * '. + core.String name; + + /// Deprecated. The server-assigned `name` of the operation. + /// This field has been deprecated and replaced by the name field. + core.String operationId; + + /// Deprecated. The Google Developers Console [project ID or project + /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. + core.String projectId; + + /// Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the operation resides. + /// This field has been deprecated and replaced by the name field. + core.String zone; + CancelOperationRequest(); - CancelOperationRequest.fromJson(core.Map _json) {} + CancelOperationRequest.fromJson(core.Map _json) { + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("operationId")) { + operationId = _json["operationId"]; + } + if (_json.containsKey("projectId")) { + projectId = _json["projectId"]; + } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } + } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (name != null) { + _json["name"] = name; + } + if (operationId != null) { + _json["operationId"] = operationId; + } + if (projectId != null) { + _json["projectId"] = projectId; + } + if (zone != null) { + _json["zone"] = zone; + } return _json; } } @@ -2385,6 +4442,15 @@ /// found in validMasterVersions returned by getServerConfig. The version can /// be upgraded over time; such upgrades are reflected in /// currentMasterVersion and currentNodeVersion. + /// + /// Users may specify either explicit versions offered by + /// Kubernetes Engine or version aliases, which have the following behavior: + /// + /// - "latest": picks the highest valid Kubernetes version + /// - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + /// - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + /// - "1.X.Y-gke.N": picks an explicit Kubernetes version + /// - "","-": picks the default Kubernetes version core.String initialClusterVersion; /// The number of nodes to create in this cluster. You must ensure that your @@ -2409,6 +4475,12 @@ /// Configuration for the legacy ABAC authorization mode. LegacyAbac legacyAbac; + /// [Output only] The name of the Google Compute Engine + /// [zone](/compute/docs/regions-zones/regions-zones#available) or + /// [region](/compute/docs/regions-zones/regions-zones#available) in which + /// the cluster resides. + core.String location; + /// The list of Google Compute Engine /// [locations](/compute/docs/zones#available) in which the cluster's nodes /// should be located. @@ -2428,7 +4500,6 @@ /// The authentication information for accessing the master endpoint. MasterAuth masterAuth; - /// Master authorized networks is a Beta feature. /// The configuration options for master authorized networks feature. MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig; @@ -2508,6 +4579,9 @@ /// - "STOPPING" : The STOPPING state indicates the cluster is being deleted. /// - "ERROR" : The ERROR state indicates the cluster may be unusable. Details /// can be found in the `statusMessage` field. + /// - "DEGRADED" : The DEGRADED state indicates the cluster requires user + /// action to restore + /// full functionality. Details can be found in the `statusMessage` field. core.String status; /// [Output only] Additional information about the current status of this @@ -2522,6 +4596,7 @@ /// [Output only] The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the cluster /// resides. + /// This field is deprecated, use location instead. core.String zone; Cluster(); @@ -2577,6 +4652,9 @@ if (_json.containsKey("legacyAbac")) { legacyAbac = new LegacyAbac.fromJson(_json["legacyAbac"]); } + if (_json.containsKey("location")) { + location = _json["location"]; + } if (_json.containsKey("locations")) { locations = (_json["locations"] as core.List).cast<core.String>(); } @@ -2693,6 +4771,9 @@ if (legacyAbac != null) { _json["legacyAbac"] = (legacyAbac).toJson(); } + if (location != null) { + _json["location"] = location; + } if (locations != null) { _json["locations"] = locations; } @@ -2775,14 +4856,19 @@ /// This list must always include the cluster's primary zone. core.List<core.String> desiredLocations; - /// Master authorized networks is a Beta feature. /// The desired configuration options for master authorized networks feature. MasterAuthorizedNetworksConfig desiredMasterAuthorizedNetworksConfig; - /// The Kubernetes version to change the master to. The only valid value is - /// the - /// latest supported version. Use "-" to have the server automatically select - /// the latest version. + /// The Kubernetes version to change the master to. + /// + /// Users may specify either explicit versions offered by + /// Kubernetes Engine or version aliases, which have the following behavior: + /// + /// - "latest": picks the highest valid Kubernetes version + /// - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + /// - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + /// - "1.X.Y-gke.N": picks an explicit Kubernetes version + /// - "-": picks the default Kubernetes version core.String desiredMasterVersion; /// The monitoring service the cluster should use to write metrics. @@ -2805,8 +4891,16 @@ core.String desiredNodePoolId; /// The Kubernetes version to change the nodes to (typically an - /// upgrade). Use `-` to upgrade to the latest version supported by - /// the server. + /// upgrade). + /// + /// Users may specify either explicit versions offered by + /// Kubernetes Engine or version aliases, which have the following behavior: + /// + /// - "latest": picks the highest valid Kubernetes version + /// - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + /// - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + /// - "1.X.Y-gke.N": picks an explicit Kubernetes version + /// - "-": picks the Kubernetes master version core.String desiredNodeVersion; ClusterUpdate(); @@ -2884,13 +4978,58 @@ /// CompleteIPRotationRequest moves the cluster master back into single-IP mode. class CompleteIPRotationRequest { + /// Deprecated. The name of the cluster. + /// This field has been deprecated and replaced by the name field. + core.String clusterId; + + /// The name (project, location, cluster id) of the cluster to complete IP + /// rotation. Specified in the format 'projects / * /locations / * /clusters / + /// * '. + core.String name; + + /// Deprecated. The Google Developers Console [project ID or project + /// number](https://developers.google.com/console/help/new/#projectnumber). + /// This field has been deprecated and replaced by the name field. + core.String projectId; + + /// Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + core.String zone; + CompleteIPRotationRequest(); - CompleteIPRotationRequest.fromJson(core.Map _json) {} + CompleteIPRotationRequest.fromJson(core.Map _json) { + if (_json.containsKey("clusterId")) { + clusterId = _json["clusterId"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("projectId")) { + projectId = _json["projectId"]; + } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } + } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (clusterId != null) { + _json["clusterId"] = clusterId; + } + if (name != null) { + _json["name"] = name; + } + if (projectId != null) { + _json["projectId"] = projectId; + } + if (zone != null) { + _json["zone"] = zone; + } return _json; } } @@ -2901,12 +5040,36 @@ /// resource](/container-engine/reference/rest/v1/projects.zones.clusters) Cluster cluster; + /// The parent (project and location) where the cluster will be created. + /// Specified in the format 'projects / * /locations / * '. + core.String parent; + + /// Deprecated. The Google Developers Console [project ID or project + /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the parent field. + core.String projectId; + + /// Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the parent field. + core.String zone; + CreateClusterRequest(); CreateClusterRequest.fromJson(core.Map _json) { if (_json.containsKey("cluster")) { cluster = new Cluster.fromJson(_json["cluster"]); } + if (_json.containsKey("parent")) { + parent = _json["parent"]; + } + if (_json.containsKey("projectId")) { + projectId = _json["projectId"]; + } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } } core.Map<core.String, core.Object> toJson() { @@ -2915,29 +5078,82 @@ if (cluster != null) { _json["cluster"] = (cluster).toJson(); } + if (parent != null) { + _json["parent"] = parent; + } + if (projectId != null) { + _json["projectId"] = projectId; + } + if (zone != null) { + _json["zone"] = zone; + } return _json; } } /// CreateNodePoolRequest creates a node pool for a cluster. class CreateNodePoolRequest { + /// Deprecated. The name of the cluster. + /// This field has been deprecated and replaced by the parent field. + core.String clusterId; + /// The node pool to create. NodePool nodePool; + /// The parent (project, location, cluster id) where the node pool will be + /// created. Specified in the format + /// 'projects / * /locations / * /clusters / * /nodePools / * '. + core.String parent; + + /// Deprecated. The Google Developers Console [project ID or project + /// number](https://developers.google.com/console/help/new/#projectnumber). + /// This field has been deprecated and replaced by the parent field. + core.String projectId; + + /// Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the parent field. + core.String zone; + CreateNodePoolRequest(); CreateNodePoolRequest.fromJson(core.Map _json) { + if (_json.containsKey("clusterId")) { + clusterId = _json["clusterId"]; + } if (_json.containsKey("nodePool")) { nodePool = new NodePool.fromJson(_json["nodePool"]); } + if (_json.containsKey("parent")) { + parent = _json["parent"]; + } + if (_json.containsKey("projectId")) { + projectId = _json["projectId"]; + } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (clusterId != null) { + _json["clusterId"] = clusterId; + } if (nodePool != null) { _json["nodePool"] = (nodePool).toJson(); } + if (parent != null) { + _json["parent"] = parent; + } + if (projectId != null) { + _json["projectId"] = projectId; + } + if (zone != null) { + _json["zone"] = zone; + } return _json; } } @@ -3498,7 +5714,6 @@ } } -/// Master authorized networks is a Beta feature. /// Configuration options for the master authorized networks feature. Enabled /// master authorized networks will disallow all external traffic to access /// Kubernetes master through HTTPS except traffic from the given CIDR blocks, @@ -3648,6 +5863,7 @@ /// in length. These are reflected as part of a URL in the metadata server. /// Additionally, to avoid ambiguity, keys must not conflict with any other /// metadata keys for the project or be one of the reserved keys: + /// "cluster-location" /// "cluster-name" /// "cluster-uid" /// "configure-sh" @@ -4033,6 +6249,12 @@ /// [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. core.String endTime; + /// [Output only] The name of the Google Compute Engine + /// [zone](/compute/docs/regions-zones/regions-zones#available) or + /// [region](/compute/docs/regions-zones/regions-zones#available) in which + /// the cluster resides. + core.String location; + /// The server-assigned ID for the operation. core.String name; @@ -4082,6 +6304,7 @@ /// The name of the Google Compute Engine /// [zone](/compute/docs/zones#available) in which the operation /// is taking place. + /// This field is deprecated, use location instead. core.String zone; Operation(); @@ -4093,6 +6316,9 @@ if (_json.containsKey("endTime")) { endTime = _json["endTime"]; } + if (_json.containsKey("location")) { + location = _json["location"]; + } if (_json.containsKey("name")) { name = _json["name"]; } @@ -4128,6 +6354,9 @@ if (endTime != null) { _json["endTime"] = endTime; } + if (location != null) { + _json["location"] = location; + } if (name != null) { _json["name"] = name; } @@ -4160,13 +6389,69 @@ /// NodePool upgrade. This will be an no-op if the last upgrade successfully /// completed. class RollbackNodePoolUpgradeRequest { + /// Deprecated. The name of the cluster to rollback. + /// This field has been deprecated and replaced by the name field. + core.String clusterId; + + /// The name (project, location, cluster, node pool id) of the node poll to + /// rollback upgrade. + /// Specified in the format 'projects / * /locations / * /clusters / * + /// /nodePools / * '. + core.String name; + + /// Deprecated. The name of the node pool to rollback. + /// This field has been deprecated and replaced by the name field. + core.String nodePoolId; + + /// Deprecated. The Google Developers Console [project ID or project + /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. + core.String projectId; + + /// Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + core.String zone; + RollbackNodePoolUpgradeRequest(); - RollbackNodePoolUpgradeRequest.fromJson(core.Map _json) {} + RollbackNodePoolUpgradeRequest.fromJson(core.Map _json) { + if (_json.containsKey("clusterId")) { + clusterId = _json["clusterId"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("nodePoolId")) { + nodePoolId = _json["nodePoolId"]; + } + if (_json.containsKey("projectId")) { + projectId = _json["projectId"]; + } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } + } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (clusterId != null) { + _json["clusterId"] = clusterId; + } + if (name != null) { + _json["name"] = name; + } + if (nodePoolId != null) { + _json["nodePoolId"] = nodePoolId; + } + if (projectId != null) { + _json["projectId"] = projectId; + } + if (zone != null) { + _json["zone"] = zone; + } return _json; } } @@ -4239,12 +6524,43 @@ /// cluster. AddonsConfig addonsConfig; + /// Deprecated. The name of the cluster to upgrade. + /// This field has been deprecated and replaced by the name field. + core.String clusterId; + + /// The name (project, location, cluster) of the cluster to set addons. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + core.String name; + + /// Deprecated. The Google Developers Console [project ID or project + /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. + core.String projectId; + + /// Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + core.String zone; + SetAddonsConfigRequest(); SetAddonsConfigRequest.fromJson(core.Map _json) { if (_json.containsKey("addonsConfig")) { addonsConfig = new AddonsConfig.fromJson(_json["addonsConfig"]); } + if (_json.containsKey("clusterId")) { + clusterId = _json["clusterId"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("projectId")) { + projectId = _json["projectId"]; + } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } } core.Map<core.String, core.Object> toJson() { @@ -4253,6 +6569,18 @@ if (addonsConfig != null) { _json["addonsConfig"] = (addonsConfig).toJson(); } + if (clusterId != null) { + _json["clusterId"] = clusterId; + } + if (name != null) { + _json["name"] = name; + } + if (projectId != null) { + _json["projectId"] = projectId; + } + if (zone != null) { + _json["zone"] = zone; + } return _json; } } @@ -4261,6 +6589,10 @@ /// Engine cluster, which will in turn set them for Google Compute Engine /// resources used by that cluster class SetLabelsRequest { + /// Deprecated. The name of the cluster. + /// This field has been deprecated and replaced by the name field. + core.String clusterId; + /// The fingerprint of the previous set of labels for this resource, /// used to detect conflicts. The fingerprint is initially generated by /// Kubernetes Engine and changes after every request to modify or update @@ -4269,30 +6601,69 @@ /// resource to get the latest fingerprint. core.String labelFingerprint; + /// The name (project, location, cluster id) of the cluster to set labels. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + core.String name; + + /// Deprecated. The Google Developers Console [project ID or project + /// number](https://developers.google.com/console/help/new/#projectnumber). + /// This field has been deprecated and replaced by the name field. + core.String projectId; + /// The labels to set for that cluster. core.Map<core.String, core.String> resourceLabels; + /// Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + core.String zone; + SetLabelsRequest(); SetLabelsRequest.fromJson(core.Map _json) { + if (_json.containsKey("clusterId")) { + clusterId = _json["clusterId"]; + } if (_json.containsKey("labelFingerprint")) { labelFingerprint = _json["labelFingerprint"]; } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("projectId")) { + projectId = _json["projectId"]; + } if (_json.containsKey("resourceLabels")) { resourceLabels = (_json["resourceLabels"] as core.Map) .cast<core.String, core.String>(); } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (clusterId != null) { + _json["clusterId"] = clusterId; + } if (labelFingerprint != null) { _json["labelFingerprint"] = labelFingerprint; } + if (name != null) { + _json["name"] = name; + } + if (projectId != null) { + _json["projectId"] = projectId; + } if (resourceLabels != null) { _json["resourceLabels"] = resourceLabels; } + if (zone != null) { + _json["zone"] = zone; + } return _json; } } @@ -4301,29 +6672,77 @@ /// for /// a cluster. class SetLegacyAbacRequest { + /// Deprecated. The name of the cluster to update. + /// This field has been deprecated and replaced by the name field. + core.String clusterId; + /// Whether ABAC authorization will be enabled in the cluster. core.bool enabled; + /// The name (project, location, cluster id) of the cluster to set legacy + /// abac. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + core.String name; + + /// Deprecated. The Google Developers Console [project ID or project + /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. + core.String projectId; + + /// Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + core.String zone; + SetLegacyAbacRequest(); SetLegacyAbacRequest.fromJson(core.Map _json) { + if (_json.containsKey("clusterId")) { + clusterId = _json["clusterId"]; + } if (_json.containsKey("enabled")) { enabled = _json["enabled"]; } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("projectId")) { + projectId = _json["projectId"]; + } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (clusterId != null) { + _json["clusterId"] = clusterId; + } if (enabled != null) { _json["enabled"] = enabled; } + if (name != null) { + _json["name"] = name; + } + if (projectId != null) { + _json["projectId"] = projectId; + } + if (zone != null) { + _json["zone"] = zone; + } return _json; } } /// SetLocationsRequest sets the locations of the cluster. class SetLocationsRequest { + /// Deprecated. The name of the cluster to upgrade. + /// This field has been deprecated and replaced by the name field. + core.String clusterId; + /// The desired list of Google Compute Engine /// [locations](/compute/docs/zones#available) in which the cluster's nodes /// should be located. Changing the locations a cluster is in will result @@ -4333,26 +6752,69 @@ /// This list must always include the cluster's primary zone. core.List<core.String> locations; + /// The name (project, location, cluster) of the cluster to set locations. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + core.String name; + + /// Deprecated. The Google Developers Console [project ID or project + /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. + core.String projectId; + + /// Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + core.String zone; + SetLocationsRequest(); SetLocationsRequest.fromJson(core.Map _json) { + if (_json.containsKey("clusterId")) { + clusterId = _json["clusterId"]; + } if (_json.containsKey("locations")) { locations = (_json["locations"] as core.List).cast<core.String>(); } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("projectId")) { + projectId = _json["projectId"]; + } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (clusterId != null) { + _json["clusterId"] = clusterId; + } if (locations != null) { _json["locations"] = locations; } + if (name != null) { + _json["name"] = name; + } + if (projectId != null) { + _json["projectId"] = projectId; + } + if (zone != null) { + _json["zone"] = zone; + } return _json; } } /// SetLoggingServiceRequest sets the logging service of a cluster. class SetLoggingServiceRequest { + /// Deprecated. The name of the cluster to upgrade. + /// This field has been deprecated and replaced by the name field. + core.String clusterId; + /// The logging service the cluster should use to write metrics. /// Currently available options: /// @@ -4360,45 +6822,125 @@ /// * "none" - no metrics will be exported from the cluster core.String loggingService; + /// The name (project, location, cluster) of the cluster to set logging. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + core.String name; + + /// Deprecated. The Google Developers Console [project ID or project + /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. + core.String projectId; + + /// Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + core.String zone; + SetLoggingServiceRequest(); SetLoggingServiceRequest.fromJson(core.Map _json) { + if (_json.containsKey("clusterId")) { + clusterId = _json["clusterId"]; + } if (_json.containsKey("loggingService")) { loggingService = _json["loggingService"]; } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("projectId")) { + projectId = _json["projectId"]; + } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (clusterId != null) { + _json["clusterId"] = clusterId; + } if (loggingService != null) { _json["loggingService"] = loggingService; } + if (name != null) { + _json["name"] = name; + } + if (projectId != null) { + _json["projectId"] = projectId; + } + if (zone != null) { + _json["zone"] = zone; + } return _json; } } /// SetMaintenancePolicyRequest sets the maintenance policy for a cluster. class SetMaintenancePolicyRequest { + /// The name of the cluster to update. + core.String clusterId; + /// The maintenance policy to be set for the cluster. An empty field /// clears the existing maintenance policy. MaintenancePolicy maintenancePolicy; + /// The name (project, location, cluster id) of the cluster to set maintenance + /// policy. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + core.String name; + + /// The Google Developers Console [project ID or project + /// number](https://support.google.com/cloud/answer/6158840). + core.String projectId; + + /// The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + core.String zone; + SetMaintenancePolicyRequest(); SetMaintenancePolicyRequest.fromJson(core.Map _json) { + if (_json.containsKey("clusterId")) { + clusterId = _json["clusterId"]; + } if (_json.containsKey("maintenancePolicy")) { maintenancePolicy = new MaintenancePolicy.fromJson(_json["maintenancePolicy"]); } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("projectId")) { + projectId = _json["projectId"]; + } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (clusterId != null) { + _json["clusterId"] = clusterId; + } if (maintenancePolicy != null) { _json["maintenancePolicy"] = (maintenancePolicy).toJson(); } + if (name != null) { + _json["name"] = name; + } + if (projectId != null) { + _json["projectId"] = projectId; + } + if (zone != null) { + _json["zone"] = zone; + } return _json; } } @@ -4417,18 +6959,49 @@ /// one. core.String action; + /// Deprecated. The name of the cluster to upgrade. + /// This field has been deprecated and replaced by the name field. + core.String clusterId; + + /// The name (project, location, cluster) of the cluster to set auth. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + core.String name; + + /// Deprecated. The Google Developers Console [project ID or project + /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. + core.String projectId; + /// A description of the update. MasterAuth update; + /// Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + core.String zone; + SetMasterAuthRequest(); SetMasterAuthRequest.fromJson(core.Map _json) { if (_json.containsKey("action")) { action = _json["action"]; } + if (_json.containsKey("clusterId")) { + clusterId = _json["clusterId"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("projectId")) { + projectId = _json["projectId"]; + } if (_json.containsKey("update")) { update = new MasterAuth.fromJson(_json["update"]); } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } } core.Map<core.String, core.Object> toJson() { @@ -4437,15 +7010,31 @@ if (action != null) { _json["action"] = action; } + if (clusterId != null) { + _json["clusterId"] = clusterId; + } + if (name != null) { + _json["name"] = name; + } + if (projectId != null) { + _json["projectId"] = projectId; + } if (update != null) { _json["update"] = (update).toJson(); } + if (zone != null) { + _json["zone"] = zone; + } return _json; } } /// SetMonitoringServiceRequest sets the monitoring service of a cluster. class SetMonitoringServiceRequest { + /// Deprecated. The name of the cluster to upgrade. + /// This field has been deprecated and replaced by the name field. + core.String clusterId; + /// The monitoring service the cluster should use to write metrics. /// Currently available options: /// @@ -4453,43 +7042,126 @@ /// * "none" - no metrics will be exported from the cluster core.String monitoringService; + /// The name (project, location, cluster) of the cluster to set monitoring. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + core.String name; + + /// Deprecated. The Google Developers Console [project ID or project + /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. + core.String projectId; + + /// Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + core.String zone; + SetMonitoringServiceRequest(); SetMonitoringServiceRequest.fromJson(core.Map _json) { + if (_json.containsKey("clusterId")) { + clusterId = _json["clusterId"]; + } if (_json.containsKey("monitoringService")) { monitoringService = _json["monitoringService"]; } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("projectId")) { + projectId = _json["projectId"]; + } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (clusterId != null) { + _json["clusterId"] = clusterId; + } if (monitoringService != null) { _json["monitoringService"] = monitoringService; } + if (name != null) { + _json["name"] = name; + } + if (projectId != null) { + _json["projectId"] = projectId; + } + if (zone != null) { + _json["zone"] = zone; + } return _json; } } /// SetNetworkPolicyRequest enables/disables network policy for a cluster. class SetNetworkPolicyRequest { + /// Deprecated. The name of the cluster. + /// This field has been deprecated and replaced by the name field. + core.String clusterId; + + /// The name (project, location, cluster id) of the cluster to set networking + /// policy. Specified in the format 'projects / * /locations / * /clusters / * + /// '. + core.String name; + /// Configuration options for the NetworkPolicy feature. NetworkPolicy networkPolicy; + /// Deprecated. The Google Developers Console [project ID or project + /// number](https://developers.google.com/console/help/new/#projectnumber). + /// This field has been deprecated and replaced by the name field. + core.String projectId; + + /// Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + core.String zone; + SetNetworkPolicyRequest(); SetNetworkPolicyRequest.fromJson(core.Map _json) { + if (_json.containsKey("clusterId")) { + clusterId = _json["clusterId"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } if (_json.containsKey("networkPolicy")) { networkPolicy = new NetworkPolicy.fromJson(_json["networkPolicy"]); } + if (_json.containsKey("projectId")) { + projectId = _json["projectId"]; + } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (clusterId != null) { + _json["clusterId"] = clusterId; + } + if (name != null) { + _json["name"] = name; + } if (networkPolicy != null) { _json["networkPolicy"] = (networkPolicy).toJson(); } + if (projectId != null) { + _json["projectId"] = projectId; + } + if (zone != null) { + _json["zone"] = zone; + } return _json; } } @@ -4499,12 +7171,51 @@ /// Autoscaling configuration for the node pool. NodePoolAutoscaling autoscaling; + /// Deprecated. The name of the cluster to upgrade. + /// This field has been deprecated and replaced by the name field. + core.String clusterId; + + /// The name (project, location, cluster, node pool) of the node pool to set + /// autoscaler settings. Specified in the format + /// 'projects / * /locations / * /clusters / * /nodePools / * '. + core.String name; + + /// Deprecated. The name of the node pool to upgrade. + /// This field has been deprecated and replaced by the name field. + core.String nodePoolId; + + /// Deprecated. The Google Developers Console [project ID or project + /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. + core.String projectId; + + /// Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + core.String zone; + SetNodePoolAutoscalingRequest(); SetNodePoolAutoscalingRequest.fromJson(core.Map _json) { if (_json.containsKey("autoscaling")) { autoscaling = new NodePoolAutoscaling.fromJson(_json["autoscaling"]); } + if (_json.containsKey("clusterId")) { + clusterId = _json["clusterId"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("nodePoolId")) { + nodePoolId = _json["nodePoolId"]; + } + if (_json.containsKey("projectId")) { + projectId = _json["projectId"]; + } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } } core.Map<core.String, core.Object> toJson() { @@ -4513,6 +7224,21 @@ if (autoscaling != null) { _json["autoscaling"] = (autoscaling).toJson(); } + if (clusterId != null) { + _json["clusterId"] = clusterId; + } + if (name != null) { + _json["name"] = name; + } + if (nodePoolId != null) { + _json["nodePoolId"] = nodePoolId; + } + if (projectId != null) { + _json["projectId"] = projectId; + } + if (zone != null) { + _json["zone"] = zone; + } return _json; } } @@ -4520,23 +7246,78 @@ /// SetNodePoolManagementRequest sets the node management properties of a node /// pool. class SetNodePoolManagementRequest { + /// Deprecated. The name of the cluster to update. + /// This field has been deprecated and replaced by the name field. + core.String clusterId; + /// NodeManagement configuration for the node pool. NodeManagement management; + /// The name (project, location, cluster, node pool id) of the node pool to + /// set + /// management properties. Specified in the format + /// 'projects / * /locations / * /clusters / * /nodePools / * '. + core.String name; + + /// Deprecated. The name of the node pool to update. + /// This field has been deprecated and replaced by the name field. + core.String nodePoolId; + + /// Deprecated. The Google Developers Console [project ID or project + /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. + core.String projectId; + + /// Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + core.String zone; + SetNodePoolManagementRequest(); SetNodePoolManagementRequest.fromJson(core.Map _json) { + if (_json.containsKey("clusterId")) { + clusterId = _json["clusterId"]; + } if (_json.containsKey("management")) { management = new NodeManagement.fromJson(_json["management"]); } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("nodePoolId")) { + nodePoolId = _json["nodePoolId"]; + } + if (_json.containsKey("projectId")) { + projectId = _json["projectId"]; + } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (clusterId != null) { + _json["clusterId"] = clusterId; + } if (management != null) { _json["management"] = (management).toJson(); } + if (name != null) { + _json["name"] = name; + } + if (nodePoolId != null) { + _json["nodePoolId"] = nodePoolId; + } + if (projectId != null) { + _json["projectId"] = projectId; + } + if (zone != null) { + _json["zone"] = zone; + } return _json; } } @@ -4544,23 +7325,79 @@ /// SetNodePoolSizeRequest sets the size a node /// pool. class SetNodePoolSizeRequest { + /// Deprecated. The name of the cluster to update. + /// This field has been deprecated and replaced by the name field. + core.String clusterId; + + /// The name (project, location, cluster, node pool id) of the node pool to + /// set + /// size. + /// Specified in the format 'projects / * /locations / * /clusters / * + /// /nodePools / * '. + core.String name; + /// The desired node count for the pool. core.int nodeCount; + /// Deprecated. The name of the node pool to update. + /// This field has been deprecated and replaced by the name field. + core.String nodePoolId; + + /// Deprecated. The Google Developers Console [project ID or project + /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. + core.String projectId; + + /// Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + core.String zone; + SetNodePoolSizeRequest(); SetNodePoolSizeRequest.fromJson(core.Map _json) { + if (_json.containsKey("clusterId")) { + clusterId = _json["clusterId"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } if (_json.containsKey("nodeCount")) { nodeCount = _json["nodeCount"]; } + if (_json.containsKey("nodePoolId")) { + nodePoolId = _json["nodePoolId"]; + } + if (_json.containsKey("projectId")) { + projectId = _json["projectId"]; + } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (clusterId != null) { + _json["clusterId"] = clusterId; + } + if (name != null) { + _json["name"] = name; + } if (nodeCount != null) { _json["nodeCount"] = nodeCount; } + if (nodePoolId != null) { + _json["nodePoolId"] = nodePoolId; + } + if (projectId != null) { + _json["projectId"] = projectId; + } + if (zone != null) { + _json["zone"] = zone; + } return _json; } } @@ -4568,94 +7405,304 @@ /// StartIPRotationRequest creates a new IP for the cluster and then performs /// a node upgrade on each node pool to point to the new IP. class StartIPRotationRequest { + /// Deprecated. The name of the cluster. + /// This field has been deprecated and replaced by the name field. + core.String clusterId; + + /// The name (project, location, cluster id) of the cluster to start IP + /// rotation. Specified in the format 'projects / * /locations / * /clusters / + /// * '. + core.String name; + + /// Deprecated. The Google Developers Console [project ID or project + /// number](https://developers.google.com/console/help/new/#projectnumber). + /// This field has been deprecated and replaced by the name field. + core.String projectId; + + /// Whether to rotate credentials during IP rotation. + core.bool rotateCredentials; + + /// Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + core.String zone; + StartIPRotationRequest(); - StartIPRotationRequest.fromJson(core.Map _json) {} - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - return _json; - } -} - -/// UpdateClusterRequest updates the settings of a cluster. -class UpdateClusterRequest { - /// A description of the update. - ClusterUpdate update; - - UpdateClusterRequest(); - - UpdateClusterRequest.fromJson(core.Map _json) { - if (_json.containsKey("update")) { - update = new ClusterUpdate.fromJson(_json["update"]); + StartIPRotationRequest.fromJson(core.Map _json) { + if (_json.containsKey("clusterId")) { + clusterId = _json["clusterId"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("projectId")) { + projectId = _json["projectId"]; + } + if (_json.containsKey("rotateCredentials")) { + rotateCredentials = _json["rotateCredentials"]; + } + if (_json.containsKey("zone")) { + zone = _json["zone"]; } } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (clusterId != null) { + _json["clusterId"] = clusterId; + } + if (name != null) { + _json["name"] = name; + } + if (projectId != null) { + _json["projectId"] = projectId; + } + if (rotateCredentials != null) { + _json["rotateCredentials"] = rotateCredentials; + } + if (zone != null) { + _json["zone"] = zone; + } + return _json; + } +} + +/// UpdateClusterRequest updates the settings of a cluster. +class UpdateClusterRequest { + /// Deprecated. The name of the cluster to upgrade. + /// This field has been deprecated and replaced by the name field. + core.String clusterId; + + /// The name (project, location, cluster) of the cluster to update. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + core.String name; + + /// Deprecated. The Google Developers Console [project ID or project + /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. + core.String projectId; + + /// A description of the update. + ClusterUpdate update; + + /// Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + core.String zone; + + UpdateClusterRequest(); + + UpdateClusterRequest.fromJson(core.Map _json) { + if (_json.containsKey("clusterId")) { + clusterId = _json["clusterId"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("projectId")) { + projectId = _json["projectId"]; + } + if (_json.containsKey("update")) { + update = new ClusterUpdate.fromJson(_json["update"]); + } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (clusterId != null) { + _json["clusterId"] = clusterId; + } + if (name != null) { + _json["name"] = name; + } + if (projectId != null) { + _json["projectId"] = projectId; + } if (update != null) { _json["update"] = (update).toJson(); } + if (zone != null) { + _json["zone"] = zone; + } return _json; } } /// UpdateMasterRequest updates the master of the cluster. class UpdateMasterRequest { - /// The Kubernetes version to change the master to. Use "-" to have the server - /// automatically select the default version. + /// Deprecated. The name of the cluster to upgrade. + /// This field has been deprecated and replaced by the name field. + core.String clusterId; + + /// The Kubernetes version to change the master to. + /// + /// Users may specify either explicit versions offered by Kubernetes Engine or + /// version aliases, which have the following behavior: + /// + /// - "latest": picks the highest valid Kubernetes version + /// - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + /// - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + /// - "1.X.Y-gke.N": picks an explicit Kubernetes version + /// - "-": picks the default Kubernetes version core.String masterVersion; + /// The name (project, location, cluster) of the cluster to update. + /// Specified in the format 'projects / * /locations / * /clusters / * '. + core.String name; + + /// Deprecated. The Google Developers Console [project ID or project + /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. + core.String projectId; + + /// Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + core.String zone; + UpdateMasterRequest(); UpdateMasterRequest.fromJson(core.Map _json) { + if (_json.containsKey("clusterId")) { + clusterId = _json["clusterId"]; + } if (_json.containsKey("masterVersion")) { masterVersion = _json["masterVersion"]; } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("projectId")) { + projectId = _json["projectId"]; + } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (clusterId != null) { + _json["clusterId"] = clusterId; + } if (masterVersion != null) { _json["masterVersion"] = masterVersion; } + if (name != null) { + _json["name"] = name; + } + if (projectId != null) { + _json["projectId"] = projectId; + } + if (zone != null) { + _json["zone"] = zone; + } return _json; } } /// UpdateNodePoolRequests update a node pool's image and/or version. class UpdateNodePoolRequest { + /// Deprecated. The name of the cluster to upgrade. + /// This field has been deprecated and replaced by the name field. + core.String clusterId; + /// The desired image type for the node pool. core.String imageType; + /// The name (project, location, cluster, node pool) of the node pool to + /// update. Specified in the format + /// 'projects / * /locations / * /clusters / * /nodePools / * '. + core.String name; + + /// Deprecated. The name of the node pool to upgrade. + /// This field has been deprecated and replaced by the name field. + core.String nodePoolId; + /// The Kubernetes version to change the nodes to (typically an - /// upgrade). Use `-` to upgrade to the latest version supported by - /// the server. + /// upgrade). + /// + /// Users may specify either explicit versions offered by Kubernetes Engine or + /// version aliases, which have the following behavior: + /// + /// - "latest": picks the highest valid Kubernetes version + /// - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + /// - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + /// - "1.X.Y-gke.N": picks an explicit Kubernetes version + /// - "-": picks the Kubernetes master version core.String nodeVersion; + /// Deprecated. The Google Developers Console [project ID or project + /// number](https://support.google.com/cloud/answer/6158840). + /// This field has been deprecated and replaced by the name field. + core.String projectId; + + /// Deprecated. The name of the Google Compute Engine + /// [zone](/compute/docs/zones#available) in which the cluster + /// resides. + /// This field has been deprecated and replaced by the name field. + core.String zone; + UpdateNodePoolRequest(); UpdateNodePoolRequest.fromJson(core.Map _json) { + if (_json.containsKey("clusterId")) { + clusterId = _json["clusterId"]; + } if (_json.containsKey("imageType")) { imageType = _json["imageType"]; } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("nodePoolId")) { + nodePoolId = _json["nodePoolId"]; + } if (_json.containsKey("nodeVersion")) { nodeVersion = _json["nodeVersion"]; } + if (_json.containsKey("projectId")) { + projectId = _json["projectId"]; + } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (clusterId != null) { + _json["clusterId"] = clusterId; + } if (imageType != null) { _json["imageType"] = imageType; } + if (name != null) { + _json["name"] = name; + } + if (nodePoolId != null) { + _json["nodePoolId"] = nodePoolId; + } if (nodeVersion != null) { _json["nodeVersion"] = nodeVersion; } + if (projectId != null) { + _json["projectId"] = projectId; + } + if (zone != null) { + _json["zone"] = zone; + } return _json; } }
diff --git a/generated/googleapis/lib/content/v2.dart b/generated/googleapis/lib/content/v2.dart index 07f469f..97d238b 100644 --- a/generated/googleapis/lib/content/v2.dart +++ b/generated/googleapis/lib/content/v2.dart
@@ -32,7 +32,14 @@ DatafeedstatusesResourceApi get datafeedstatuses => new DatafeedstatusesResourceApi(_requester); InventoryResourceApi get inventory => new InventoryResourceApi(_requester); + LiasettingsResourceApi get liasettings => + new LiasettingsResourceApi(_requester); + OrderinvoicesResourceApi get orderinvoices => + new OrderinvoicesResourceApi(_requester); + OrderpaymentsResourceApi get orderpayments => + new OrderpaymentsResourceApi(_requester); OrdersResourceApi get orders => new OrdersResourceApi(_requester); + PosResourceApi get pos => new PosResourceApi(_requester); ProductsResourceApi get products => new ProductsResourceApi(_requester); ProductstatusesResourceApi get productstatuses => new ProductstatusesResourceApi(_requester); @@ -611,6 +618,9 @@ /// /// [accountId] - The ID of the account. /// + /// [destinations] - If set, only issues for the specified destinations are + /// returned, otherwise only issues for the Shopping destination. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -622,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<AccountStatus> get(core.String merchantId, core.String accountId, - {core.String $fields}) { + {core.List<core.String> destinations, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -636,6 +646,9 @@ if (accountId == null) { throw new core.ArgumentError("Parameter accountId is required."); } + if (destinations != null) { + _queryParams["destinations"] = destinations; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -660,6 +673,9 @@ /// [merchantId] - The ID of the managing account. This must be a multi-client /// account. /// + /// [destinations] - If set, only issues for the specified destinations are + /// returned, otherwise only issues for the Shopping destination. + /// /// [maxResults] - The maximum number of account statuses to return in the /// response, used for paging. /// @@ -676,7 +692,10 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<AccountstatusesListResponse> list(core.String merchantId, - {core.int maxResults, core.String pageToken, core.String $fields}) { + {core.List<core.String> destinations, + core.int maxResults, + core.String pageToken, + core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -687,6 +706,9 @@ if (merchantId == null) { throw new core.ArgumentError("Parameter merchantId is required."); } + if (destinations != null) { + _queryParams["destinations"] = destinations; + } if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } @@ -1116,6 +1138,65 @@ return _response.then((data) => null); } + /// Invokes a fetch for the datafeed in your Merchant Center account. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the account that manages the datafeed. This + /// account cannot be a multi-client account. + /// + /// [datafeedId] - The ID of the datafeed to be fetched. + /// + /// [dryRun] - Flag to run the request in dry-run mode. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [DatafeedsFetchNowResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<DatafeedsFetchNowResponse> fetchnow( + core.String merchantId, core.String datafeedId, + {core.bool dryRun, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (datafeedId == null) { + throw new core.ArgumentError("Parameter datafeedId is required."); + } + if (dryRun != null) { + _queryParams["dryRun"] = ["${dryRun}"]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/datafeeds/' + + commons.Escaper.ecapeVariable('$datafeedId') + + '/fetchNow'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response + .then((data) => new DatafeedsFetchNowResponse.fromJson(data)); + } + /// Retrieves a datafeed configuration from your Merchant Center account. /// /// Request parameters: @@ -1708,6 +1789,945 @@ } } +class LiasettingsResourceApi { + final commons.ApiRequester _requester; + + LiasettingsResourceApi(commons.ApiRequester client) : _requester = client; + + /// Retrieves and/or updates the LIA settings of multiple accounts in a single + /// request. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [dryRun] - Flag to run the request in dry-run mode. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [LiasettingsCustomBatchResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<LiasettingsCustomBatchResponse> custombatch( + LiasettingsCustomBatchRequest request, + {core.bool dryRun, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if (dryRun != null) { + _queryParams["dryRun"] = ["${dryRun}"]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'liasettings/batch'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response + .then((data) => new LiasettingsCustomBatchResponse.fromJson(data)); + } + + /// Retrieves the LIA settings of the account. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the managing account. If this parameter is not + /// the same as accountId, then this account must be a multi-client account + /// and accountId must be the ID of a sub-account of this account. + /// + /// [accountId] - The ID of the account for which to get or update LIA + /// settings. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [LiaSettings]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<LiaSettings> get(core.String merchantId, core.String accountId, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/liasettings/' + + commons.Escaper.ecapeVariable('$accountId'); + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new LiaSettings.fromJson(data)); + } + + /// Retrieves the list of accessible Google My Business accounts. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the managing account. If this parameter is not + /// the same as accountId, then this account must be a multi-client account + /// and accountId must be the ID of a sub-account of this account. + /// + /// [accountId] - The ID of the account for which to retrieve accessible + /// Google My Business accounts. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [LiasettingsGetAccessibleGmbAccountsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<LiasettingsGetAccessibleGmbAccountsResponse> + getaccessiblegmbaccounts(core.String merchantId, core.String accountId, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/liasettings/' + + commons.Escaper.ecapeVariable('$accountId') + + '/accessiblegmbaccounts'; + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => + new LiasettingsGetAccessibleGmbAccountsResponse.fromJson(data)); + } + + /// Lists the LIA settings of the sub-accounts in your Merchant Center + /// account. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the managing account. This must be a multi-client + /// account. + /// + /// [maxResults] - The maximum number of LIA settings to return in the + /// response, used for paging. + /// + /// [pageToken] - The token returned by the previous request. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [LiasettingsListResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<LiasettingsListResponse> list(core.String merchantId, + {core.int maxResults, core.String pageToken, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (maxResults != null) { + _queryParams["maxResults"] = ["${maxResults}"]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + '/liasettings'; + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new LiasettingsListResponse.fromJson(data)); + } + + /// Updates the LIA settings of the account. This method supports patch + /// semantics. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the managing account. If this parameter is not + /// the same as accountId, then this account must be a multi-client account + /// and accountId must be the ID of a sub-account of this account. + /// + /// [accountId] - The ID of the account for which to get or update LIA + /// settings. + /// + /// [dryRun] - Flag to run the request in dry-run mode. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [LiaSettings]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<LiaSettings> patch( + LiaSettings request, core.String merchantId, core.String accountId, + {core.bool dryRun, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if (dryRun != null) { + _queryParams["dryRun"] = ["${dryRun}"]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/liasettings/' + + commons.Escaper.ecapeVariable('$accountId'); + + var _response = _requester.request(_url, "PATCH", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new LiaSettings.fromJson(data)); + } + + /// Requests access to a specified Google My Business account. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the managing account. If this parameter is not + /// the same as accountId, then this account must be a multi-client account + /// and accountId must be the ID of a sub-account of this account. + /// + /// [accountId] - The ID of the account for which GMB access is requested. + /// + /// [gmbEmail] - The email of the Google My Business account. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [LiasettingsRequestGmbAccessResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<LiasettingsRequestGmbAccessResponse> requestgmbaccess( + core.String merchantId, core.String accountId, + {core.String gmbEmail, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if (gmbEmail != null) { + _queryParams["gmbEmail"] = [gmbEmail]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/liasettings/' + + commons.Escaper.ecapeVariable('$accountId') + + '/requestgmbaccess'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response + .then((data) => new LiasettingsRequestGmbAccessResponse.fromJson(data)); + } + + /// Requests inventory validation for the specified country. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the managing account. If this parameter is not + /// the same as accountId, then this account must be a multi-client account + /// and accountId must be the ID of a sub-account of this account. + /// + /// [accountId] - The ID of the account that manages the order. This cannot be + /// a multi-client account. + /// + /// [country] - The country for which inventory validation is requested. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [LiasettingsRequestInventoryVerificationResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<LiasettingsRequestInventoryVerificationResponse> + requestinventoryverification( + core.String merchantId, core.String accountId, core.String country, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if (country == null) { + throw new core.ArgumentError("Parameter country is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/liasettings/' + + commons.Escaper.ecapeVariable('$accountId') + + '/requestinventoryverification/' + + commons.Escaper.ecapeVariable('$country'); + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => + new LiasettingsRequestInventoryVerificationResponse.fromJson(data)); + } + + /// Sets the inventory verification contract for the specified country. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the managing account. If this parameter is not + /// the same as accountId, then this account must be a multi-client account + /// and accountId must be the ID of a sub-account of this account. + /// + /// [accountId] - The ID of the account that manages the order. This cannot be + /// a multi-client account. + /// + /// [contactEmail] - The email of the inventory verification contact. + /// + /// [contactName] - The name of the inventory verification contact. + /// + /// [country] - The country for which inventory verification is requested. + /// + /// [language] - The language for which inventory verification is requested. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [LiasettingsSetInventoryVerificationContactResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<LiasettingsSetInventoryVerificationContactResponse> + setinventoryverificationcontact( + core.String merchantId, core.String accountId, + {core.String contactEmail, + core.String contactName, + core.String country, + core.String language, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if (contactEmail != null) { + _queryParams["contactEmail"] = [contactEmail]; + } + if (contactName != null) { + _queryParams["contactName"] = [contactName]; + } + if (country != null) { + _queryParams["country"] = [country]; + } + if (language != null) { + _queryParams["language"] = [language]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/liasettings/' + + commons.Escaper.ecapeVariable('$accountId') + + '/setinventoryverificationcontact'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => + new LiasettingsSetInventoryVerificationContactResponse.fromJson(data)); + } + + /// Updates the LIA settings of the account. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the managing account. If this parameter is not + /// the same as accountId, then this account must be a multi-client account + /// and accountId must be the ID of a sub-account of this account. + /// + /// [accountId] - The ID of the account for which to get or update LIA + /// settings. + /// + /// [dryRun] - Flag to run the request in dry-run mode. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [LiaSettings]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<LiaSettings> update( + LiaSettings request, core.String merchantId, core.String accountId, + {core.bool dryRun, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if (dryRun != null) { + _queryParams["dryRun"] = ["${dryRun}"]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/liasettings/' + + commons.Escaper.ecapeVariable('$accountId'); + + var _response = _requester.request(_url, "PUT", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new LiaSettings.fromJson(data)); + } +} + +class OrderinvoicesResourceApi { + final commons.ApiRequester _requester; + + OrderinvoicesResourceApi(commons.ApiRequester client) : _requester = client; + + /// Creates a charge invoice for a shipment group, and triggers a charge + /// capture for non-facilitated payment orders. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the account that manages the order. This cannot + /// be a multi-client account. + /// + /// [orderId] - The ID of the order. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [OrderinvoicesCreateChargeInvoiceResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<OrderinvoicesCreateChargeInvoiceResponse> createchargeinvoice( + OrderinvoicesCreateChargeInvoiceRequest request, + core.String merchantId, + core.String orderId, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (orderId == null) { + throw new core.ArgumentError("Parameter orderId is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/orderinvoices/' + + commons.Escaper.ecapeVariable('$orderId') + + '/createChargeInvoice'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then( + (data) => new OrderinvoicesCreateChargeInvoiceResponse.fromJson(data)); + } + + /// Creates a refund invoice for one or more shipment groups, and triggers a + /// refund for non-facilitated payment orders. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the account that manages the order. This cannot + /// be a multi-client account. + /// + /// [orderId] - The ID of the order. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [OrderinvoicesCreateRefundInvoiceResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<OrderinvoicesCreateRefundInvoiceResponse> createrefundinvoice( + OrderinvoicesCreateRefundInvoiceRequest request, + core.String merchantId, + core.String orderId, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (orderId == null) { + throw new core.ArgumentError("Parameter orderId is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/orderinvoices/' + + commons.Escaper.ecapeVariable('$orderId') + + '/createRefundInvoice'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then( + (data) => new OrderinvoicesCreateRefundInvoiceResponse.fromJson(data)); + } +} + +class OrderpaymentsResourceApi { + final commons.ApiRequester _requester; + + OrderpaymentsResourceApi(commons.ApiRequester client) : _requester = client; + + /// Notify about successfully authorizing user's payment method for a given + /// amount. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the account that manages the order. This cannot + /// be a multi-client account. + /// + /// [orderId] - The ID of the order for for which payment authorization is + /// happening. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [OrderpaymentsNotifyAuthApprovedResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<OrderpaymentsNotifyAuthApprovedResponse> notifyauthapproved( + OrderpaymentsNotifyAuthApprovedRequest request, + core.String merchantId, + core.String orderId, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (orderId == null) { + throw new core.ArgumentError("Parameter orderId is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/orderpayments/' + + commons.Escaper.ecapeVariable('$orderId') + + '/notifyAuthApproved'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then( + (data) => new OrderpaymentsNotifyAuthApprovedResponse.fromJson(data)); + } + + /// Notify about failure to authorize user's payment method. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the account that manages the order. This cannot + /// be a multi-client account. + /// + /// [orderId] - The ID of the order for which payment authorization was + /// declined. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [OrderpaymentsNotifyAuthDeclinedResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<OrderpaymentsNotifyAuthDeclinedResponse> notifyauthdeclined( + OrderpaymentsNotifyAuthDeclinedRequest request, + core.String merchantId, + core.String orderId, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (orderId == null) { + throw new core.ArgumentError("Parameter orderId is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/orderpayments/' + + commons.Escaper.ecapeVariable('$orderId') + + '/notifyAuthDeclined'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then( + (data) => new OrderpaymentsNotifyAuthDeclinedResponse.fromJson(data)); + } + + /// Notify about charge on user's selected payments method. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the account that manages the order. This cannot + /// be a multi-client account. + /// + /// [orderId] - The ID of the order for which charge is happening. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [OrderpaymentsNotifyChargeResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<OrderpaymentsNotifyChargeResponse> notifycharge( + OrderpaymentsNotifyChargeRequest request, + core.String merchantId, + core.String orderId, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (orderId == null) { + throw new core.ArgumentError("Parameter orderId is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/orderpayments/' + + commons.Escaper.ecapeVariable('$orderId') + + '/notifyCharge'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response + .then((data) => new OrderpaymentsNotifyChargeResponse.fromJson(data)); + } + + /// Notify about refund on user's selected payments method. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the account that manages the order. This cannot + /// be a multi-client account. + /// + /// [orderId] - The ID of the order for which charge is happening. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [OrderpaymentsNotifyRefundResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<OrderpaymentsNotifyRefundResponse> notifyrefund( + OrderpaymentsNotifyRefundRequest request, + core.String merchantId, + core.String orderId, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (orderId == null) { + throw new core.ArgumentError("Parameter orderId is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/orderpayments/' + + commons.Escaper.ecapeVariable('$orderId') + + '/notifyRefund'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response + .then((data) => new OrderpaymentsNotifyRefundResponse.fromJson(data)); + } +} + class OrdersResourceApi { final commons.ApiRequester _requester; @@ -2925,6 +3945,421 @@ } } +class PosResourceApi { + final commons.ApiRequester _requester; + + PosResourceApi(commons.ApiRequester client) : _requester = client; + + /// Batches multiple POS-related calls in a single request. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [dryRun] - Flag to run the request in dry-run mode. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [PosCustomBatchResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<PosCustomBatchResponse> custombatch( + PosCustomBatchRequest request, + {core.bool dryRun, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if (dryRun != null) { + _queryParams["dryRun"] = ["${dryRun}"]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'pos/batch'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new PosCustomBatchResponse.fromJson(data)); + } + + /// Deletes a store for the given merchant. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the POS or inventory data provider. + /// + /// [targetMerchantId] - The ID of the target merchant. + /// + /// [storeCode] - A store code that is unique per merchant. + /// + /// [dryRun] - Flag to run the request in dry-run mode. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// 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 merchantId, core.String targetMerchantId, + core.String storeCode, + {core.bool dryRun, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (targetMerchantId == null) { + throw new core.ArgumentError("Parameter targetMerchantId is required."); + } + if (storeCode == null) { + throw new core.ArgumentError("Parameter storeCode is required."); + } + if (dryRun != null) { + _queryParams["dryRun"] = ["${dryRun}"]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _downloadOptions = null; + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/pos/' + + commons.Escaper.ecapeVariable('$targetMerchantId') + + '/store/' + + commons.Escaper.ecapeVariable('$storeCode'); + + var _response = _requester.request(_url, "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => null); + } + + /// Retrieves information about the given store. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the POS or inventory data provider. + /// + /// [targetMerchantId] - The ID of the target merchant. + /// + /// [storeCode] - A store code that is unique per merchant. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [PosStore]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<PosStore> get(core.String merchantId, + core.String targetMerchantId, core.String storeCode, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (targetMerchantId == null) { + throw new core.ArgumentError("Parameter targetMerchantId is required."); + } + if (storeCode == null) { + throw new core.ArgumentError("Parameter storeCode is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/pos/' + + commons.Escaper.ecapeVariable('$targetMerchantId') + + '/store/' + + commons.Escaper.ecapeVariable('$storeCode'); + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new PosStore.fromJson(data)); + } + + /// Creates a store for the given merchant. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the POS or inventory data provider. + /// + /// [targetMerchantId] - The ID of the target merchant. + /// + /// [dryRun] - Flag to run the request in dry-run mode. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [PosStore]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<PosStore> insert( + PosStore request, core.String merchantId, core.String targetMerchantId, + {core.bool dryRun, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (targetMerchantId == null) { + throw new core.ArgumentError("Parameter targetMerchantId is required."); + } + if (dryRun != null) { + _queryParams["dryRun"] = ["${dryRun}"]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/pos/' + + commons.Escaper.ecapeVariable('$targetMerchantId') + + '/store'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new PosStore.fromJson(data)); + } + + /// Submit inventory for the given merchant. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the POS or inventory data provider. + /// + /// [targetMerchantId] - The ID of the target merchant. + /// + /// [dryRun] - Flag to run the request in dry-run mode. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [PosInventoryResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<PosInventoryResponse> inventory(PosInventoryRequest request, + core.String merchantId, core.String targetMerchantId, + {core.bool dryRun, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (targetMerchantId == null) { + throw new core.ArgumentError("Parameter targetMerchantId is required."); + } + if (dryRun != null) { + _queryParams["dryRun"] = ["${dryRun}"]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/pos/' + + commons.Escaper.ecapeVariable('$targetMerchantId') + + '/inventory'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new PosInventoryResponse.fromJson(data)); + } + + /// Lists the stores of the target merchant. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the POS or inventory data provider. + /// + /// [targetMerchantId] - The ID of the target merchant. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [PosListResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<PosListResponse> list( + core.String merchantId, core.String targetMerchantId, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (targetMerchantId == null) { + throw new core.ArgumentError("Parameter targetMerchantId is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/pos/' + + commons.Escaper.ecapeVariable('$targetMerchantId') + + '/store'; + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new PosListResponse.fromJson(data)); + } + + /// Submit a sale event for the given merchant. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the POS or inventory data provider. + /// + /// [targetMerchantId] - The ID of the target merchant. + /// + /// [dryRun] - Flag to run the request in dry-run mode. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [PosSaleResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<PosSaleResponse> sale(PosSaleRequest request, + core.String merchantId, core.String targetMerchantId, + {core.bool dryRun, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (targetMerchantId == null) { + throw new core.ArgumentError("Parameter targetMerchantId is required."); + } + if (dryRun != null) { + _queryParams["dryRun"] = ["${dryRun}"]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/pos/' + + commons.Escaper.ecapeVariable('$targetMerchantId') + + '/sale'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new PosSaleResponse.fromJson(data)); + } +} + class ProductsResourceApi { final commons.ApiRequester _requester; @@ -3278,6 +4713,9 @@ /// /// [productId] - The REST id of the product. /// + /// [destinations] - If set, only issues for the specified destinations are + /// returned, otherwise only issues for the Shopping destination. + /// /// [includeAttributes] - Flag to include full product data in the result of /// this get request. The default value is false. /// @@ -3292,7 +4730,9 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ProductStatus> get(core.String merchantId, core.String productId, - {core.bool includeAttributes, core.String $fields}) { + {core.List<core.String> destinations, + core.bool includeAttributes, + core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -3306,6 +4746,9 @@ if (productId == null) { throw new core.ArgumentError("Parameter productId is required."); } + if (destinations != null) { + _queryParams["destinations"] = destinations; + } if (includeAttributes != null) { _queryParams["includeAttributes"] = ["${includeAttributes}"]; } @@ -3333,6 +4776,9 @@ /// [merchantId] - The ID of the account that contains the products. This /// account cannot be a multi-client account. /// + /// [destinations] - If set, only issues for the specified destinations are + /// returned, otherwise only issues for the Shopping destination. + /// /// [includeAttributes] - Flag to include full product data in the results of /// the list request. The default value is false. /// @@ -3356,7 +4802,8 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ProductstatusesListResponse> list(core.String merchantId, - {core.bool includeAttributes, + {core.List<core.String> destinations, + core.bool includeAttributes, core.bool includeInvalidInsertedItems, core.int maxResults, core.String pageToken, @@ -3371,6 +4818,9 @@ if (merchantId == null) { throw new core.ArgumentError("Parameter merchantId is required."); } + if (destinations != null) { + _queryParams["destinations"] = destinations; + } if (includeAttributes != null) { _queryParams["includeAttributes"] = ["${includeAttributes}"]; } @@ -3817,7 +5267,7 @@ /// Display name for the account. core.String name; - /// URL for individual seller reviews, i.e., reviews for each child account. + /// [DEPRECATED] This field is never returned and will be ignored if provided. core.String reviewsUrl; /// Client-specific, locally-unique, internal ID for the child account. @@ -3967,7 +5417,9 @@ } class AccountGoogleMyBusinessLink { - /// The GMB email address. + /// The GMB email address of which a specific account within a GMB account. A + /// sample account within a GMB account could be a business account with set + /// of locations, managed under the GMB account. core.String gmbEmail; /// Status of the link between this Merchant Center account and the GMB @@ -4103,6 +5555,9 @@ /// Country for which this issue is reported. core.String country; + /// The destination the issue applies to. + core.String destination; + /// Additional details about the issue. core.String detail; @@ -4121,6 +5576,9 @@ if (_json.containsKey("country")) { country = _json["country"]; } + if (_json.containsKey("destination")) { + destination = _json["destination"]; + } if (_json.containsKey("detail")) { detail = _json["detail"]; } @@ -4141,6 +5599,9 @@ if (country != null) { _json["country"] = country; } + if (destination != null) { + _json["destination"] = destination; + } if (detail != null) { _json["detail"] = detail; } @@ -4161,6 +5622,9 @@ /// Country for which this issue is reported. core.String country; + /// The destination the issue applies to. + core.String destination; + /// A more detailed description of the issue. core.String detail; @@ -4194,6 +5658,9 @@ if (_json.containsKey("country")) { country = _json["country"]; } + if (_json.containsKey("destination")) { + destination = _json["destination"]; + } if (_json.containsKey("detail")) { detail = _json["detail"]; } @@ -4232,6 +5699,9 @@ if (country != null) { _json["country"] = country; } + if (destination != null) { + _json["destination"] = destination; + } if (detail != null) { _json["detail"] = detail; } @@ -4831,6 +6301,10 @@ /// An entry ID, unique within the batch request. core.int batchId; + /// If set, only issues for the specified destinations are returned, otherwise + /// only issues for the Shopping destination. + core.List<core.String> destinations; + /// The ID of the managing account. core.String merchantId; @@ -4846,6 +6320,9 @@ if (_json.containsKey("batchId")) { batchId = _json["batchId"]; } + if (_json.containsKey("destinations")) { + destinations = (_json["destinations"] as core.List).cast<core.String>(); + } if (_json.containsKey("merchantId")) { merchantId = _json["merchantId"]; } @@ -4863,6 +6340,9 @@ if (batchId != null) { _json["batchId"] = batchId; } + if (destinations != null) { + _json["destinations"] = destinations; + } if (merchantId != null) { _json["merchantId"] = merchantId; } @@ -5200,6 +6680,37 @@ } } +class Amount { + /// Value before taxes. + Price pretax; + + /// Tax value. + Price tax; + + Amount(); + + Amount.fromJson(core.Map _json) { + if (_json.containsKey("pretax")) { + pretax = new Price.fromJson(_json["pretax"]); + } + if (_json.containsKey("tax")) { + tax = new Price.fromJson(_json["tax"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (pretax != null) { + _json["pretax"] = (pretax).toJson(); + } + if (tax != null) { + _json["tax"] = (tax).toJson(); + } + return _json; + } +} + class CarrierRate { /// Carrier service, such as "UPS" or "Fedex". The list of supported carriers /// can be retrieved via the getSupportedCarriers method. Required. @@ -5891,7 +7402,7 @@ /// The data feed to insert. Datafeed datafeed; - /// The ID of the data feed to get or delete. + /// The ID of the data feed to get, delete or fetch. core.String datafeedId; /// The ID of the managing account. @@ -6017,6 +7528,29 @@ } } +class DatafeedsFetchNowResponse { + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#datafeedsFetchNowResponse". + core.String kind; + + DatafeedsFetchNowResponse(); + + DatafeedsFetchNowResponse.fromJson(core.Map _json) { + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + class DatafeedsListResponse { /// Identifies what kind of resource this is. Value: the fixed string /// "content#datafeedsListResponse". @@ -6402,6 +7936,90 @@ } } +class GmbAccounts { + /// The ID of the account. + core.String accountId; + + /// A list of GMB accounts which are available to the merchant. + core.List<GmbAccountsGmbAccount> gmbAccounts; + + GmbAccounts(); + + GmbAccounts.fromJson(core.Map _json) { + if (_json.containsKey("accountId")) { + accountId = _json["accountId"]; + } + if (_json.containsKey("gmbAccounts")) { + gmbAccounts = (_json["gmbAccounts"] as core.List) + .map<GmbAccountsGmbAccount>( + (value) => new GmbAccountsGmbAccount.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (accountId != null) { + _json["accountId"] = accountId; + } + if (gmbAccounts != null) { + _json["gmbAccounts"] = + gmbAccounts.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +class GmbAccountsGmbAccount { + /// The email which identifies the GMB account. + core.String email; + + /// Number of listings under this account. + core.String listingCount; + + /// The name of the GMB account. + core.String name; + + /// The type of the GMB account (User or Business). + core.String type; + + GmbAccountsGmbAccount(); + + GmbAccountsGmbAccount.fromJson(core.Map _json) { + if (_json.containsKey("email")) { + email = _json["email"]; + } + if (_json.containsKey("listingCount")) { + listingCount = _json["listingCount"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (email != null) { + _json["email"] = email; + } + if (listingCount != null) { + _json["listingCount"] = listingCount; + } + if (name != null) { + _json["name"] = name; + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + /// A non-empty list of row or column headers for a table. Exactly one of /// prices, weights, numItems, postalCodeGroupNames, or locations must be set. class Headers { @@ -7086,6 +8704,750 @@ } } +class InvoiceSummary { + /// Summary of the total amounts of the additional charges. + core.List<InvoiceSummaryAdditionalChargeSummary> additionalChargeSummaries; + + /// Customer balance on this invoice. A positive amount means the customer is + /// paying, a negative one means the customer is receiving money. Note that it + /// must always be true that merchant_balance + customer_balance + + /// google_balance = 0. + Amount customerBalance; + + /// Google balance on this invoice. A positive amount means Google is paying, + /// a negative one means Google is receiving money. Note that it must always + /// be true that merchant_balance + customer_balance + google_balance = 0. + Amount googleBalance; + + /// Merchant balance on this invoice. A positive amount means the merchant is + /// paying, a negative one means the merchant is receiving money. Note that it + /// must always be true that merchant_balance + customer_balance + + /// google_balance = 0. + Amount merchantBalance; + + /// Total price for the product. + Amount productTotal; + + /// Summary for each promotion. + core.List<Promotion> promotionSummaries; + + InvoiceSummary(); + + InvoiceSummary.fromJson(core.Map _json) { + if (_json.containsKey("additionalChargeSummaries")) { + additionalChargeSummaries = + (_json["additionalChargeSummaries"] as core.List) + .map<InvoiceSummaryAdditionalChargeSummary>((value) => + new InvoiceSummaryAdditionalChargeSummary.fromJson(value)) + .toList(); + } + if (_json.containsKey("customerBalance")) { + customerBalance = new Amount.fromJson(_json["customerBalance"]); + } + if (_json.containsKey("googleBalance")) { + googleBalance = new Amount.fromJson(_json["googleBalance"]); + } + if (_json.containsKey("merchantBalance")) { + merchantBalance = new Amount.fromJson(_json["merchantBalance"]); + } + if (_json.containsKey("productTotal")) { + productTotal = new Amount.fromJson(_json["productTotal"]); + } + if (_json.containsKey("promotionSummaries")) { + promotionSummaries = (_json["promotionSummaries"] as core.List) + .map<Promotion>((value) => new Promotion.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (additionalChargeSummaries != null) { + _json["additionalChargeSummaries"] = + additionalChargeSummaries.map((value) => (value).toJson()).toList(); + } + if (customerBalance != null) { + _json["customerBalance"] = (customerBalance).toJson(); + } + if (googleBalance != null) { + _json["googleBalance"] = (googleBalance).toJson(); + } + if (merchantBalance != null) { + _json["merchantBalance"] = (merchantBalance).toJson(); + } + if (productTotal != null) { + _json["productTotal"] = (productTotal).toJson(); + } + if (promotionSummaries != null) { + _json["promotionSummaries"] = + promotionSummaries.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +class InvoiceSummaryAdditionalChargeSummary { + /// Total additional charge for this type. + Amount totalAmount; + + /// Type of the additional charge. + core.String type; + + InvoiceSummaryAdditionalChargeSummary(); + + InvoiceSummaryAdditionalChargeSummary.fromJson(core.Map _json) { + if (_json.containsKey("totalAmount")) { + totalAmount = new Amount.fromJson(_json["totalAmount"]); + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (totalAmount != null) { + _json["totalAmount"] = (totalAmount).toJson(); + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +class LiaAboutPageSettings { + /// The status of the verification process for the About page. + core.String status; + + /// The URL for the About page. + core.String url; + + LiaAboutPageSettings(); + + LiaAboutPageSettings.fromJson(core.Map _json) { + if (_json.containsKey("status")) { + status = _json["status"]; + } + if (_json.containsKey("url")) { + url = _json["url"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (status != null) { + _json["status"] = status; + } + if (url != null) { + _json["url"] = url; + } + return _json; + } +} + +class LiaCountrySettings { + /// The settings for the About page. + LiaAboutPageSettings about; + + /// CLDR country code (e.g. "US"). + core.String country; + + /// The status of the "Merchant hosted local storefront" feature. + core.bool hostedLocalStorefrontActive; + + /// LIA inventory verification settings. + LiaInventorySettings inventory; + + /// LIA "On Display To Order" settings. + LiaOnDisplayToOrderSettings onDisplayToOrder; + + /// The status of the "Store pickup" feature. + core.bool storePickupActive; + + LiaCountrySettings(); + + LiaCountrySettings.fromJson(core.Map _json) { + if (_json.containsKey("about")) { + about = new LiaAboutPageSettings.fromJson(_json["about"]); + } + if (_json.containsKey("country")) { + country = _json["country"]; + } + if (_json.containsKey("hostedLocalStorefrontActive")) { + hostedLocalStorefrontActive = _json["hostedLocalStorefrontActive"]; + } + if (_json.containsKey("inventory")) { + inventory = new LiaInventorySettings.fromJson(_json["inventory"]); + } + if (_json.containsKey("onDisplayToOrder")) { + onDisplayToOrder = + new LiaOnDisplayToOrderSettings.fromJson(_json["onDisplayToOrder"]); + } + if (_json.containsKey("storePickupActive")) { + storePickupActive = _json["storePickupActive"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (about != null) { + _json["about"] = (about).toJson(); + } + if (country != null) { + _json["country"] = country; + } + if (hostedLocalStorefrontActive != null) { + _json["hostedLocalStorefrontActive"] = hostedLocalStorefrontActive; + } + if (inventory != null) { + _json["inventory"] = (inventory).toJson(); + } + if (onDisplayToOrder != null) { + _json["onDisplayToOrder"] = (onDisplayToOrder).toJson(); + } + if (storePickupActive != null) { + _json["storePickupActive"] = storePickupActive; + } + return _json; + } +} + +class LiaInventorySettings { + /// The email of the contact for the inventory verification process. + core.String inventoryVerificationContactEmail; + + /// The name of the contact for the inventory verification process. + core.String inventoryVerificationContactName; + + /// The status of the verification contact. + core.String inventoryVerificationContactStatus; + + /// The status of the inventory verification process. + core.String status; + + LiaInventorySettings(); + + LiaInventorySettings.fromJson(core.Map _json) { + if (_json.containsKey("inventoryVerificationContactEmail")) { + inventoryVerificationContactEmail = + _json["inventoryVerificationContactEmail"]; + } + if (_json.containsKey("inventoryVerificationContactName")) { + inventoryVerificationContactName = + _json["inventoryVerificationContactName"]; + } + if (_json.containsKey("inventoryVerificationContactStatus")) { + inventoryVerificationContactStatus = + _json["inventoryVerificationContactStatus"]; + } + if (_json.containsKey("status")) { + status = _json["status"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (inventoryVerificationContactEmail != null) { + _json["inventoryVerificationContactEmail"] = + inventoryVerificationContactEmail; + } + if (inventoryVerificationContactName != null) { + _json["inventoryVerificationContactName"] = + inventoryVerificationContactName; + } + if (inventoryVerificationContactStatus != null) { + _json["inventoryVerificationContactStatus"] = + inventoryVerificationContactStatus; + } + if (status != null) { + _json["status"] = status; + } + return _json; + } +} + +class LiaOnDisplayToOrderSettings { + /// Shipping cost and policy URL. + core.String shippingCostPolicyUrl; + + /// The status of the ?On display to order? feature. + core.String status; + + LiaOnDisplayToOrderSettings(); + + LiaOnDisplayToOrderSettings.fromJson(core.Map _json) { + if (_json.containsKey("shippingCostPolicyUrl")) { + shippingCostPolicyUrl = _json["shippingCostPolicyUrl"]; + } + if (_json.containsKey("status")) { + status = _json["status"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (shippingCostPolicyUrl != null) { + _json["shippingCostPolicyUrl"] = shippingCostPolicyUrl; + } + if (status != null) { + _json["status"] = status; + } + return _json; + } +} + +class LiaSettings { + /// The ID of the account to which these LIA settings belong. Ignored upon + /// update, always present in get request responses. + core.String accountId; + + /// The LIA settings for each country. + core.List<LiaCountrySettings> countrySettings; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#liaSettings". + core.String kind; + + LiaSettings(); + + LiaSettings.fromJson(core.Map _json) { + if (_json.containsKey("accountId")) { + accountId = _json["accountId"]; + } + if (_json.containsKey("countrySettings")) { + countrySettings = (_json["countrySettings"] as core.List) + .map<LiaCountrySettings>( + (value) => new LiaCountrySettings.fromJson(value)) + .toList(); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (accountId != null) { + _json["accountId"] = accountId; + } + if (countrySettings != null) { + _json["countrySettings"] = + countrySettings.map((value) => (value).toJson()).toList(); + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + +class LiasettingsCustomBatchRequest { + /// The request entries to be processed in the batch. + core.List<LiasettingsCustomBatchRequestEntry> entries; + + LiasettingsCustomBatchRequest(); + + LiasettingsCustomBatchRequest.fromJson(core.Map _json) { + if (_json.containsKey("entries")) { + entries = (_json["entries"] as core.List) + .map<LiasettingsCustomBatchRequestEntry>( + (value) => new LiasettingsCustomBatchRequestEntry.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (entries != null) { + _json["entries"] = entries.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +class LiasettingsCustomBatchRequestEntry { + /// The ID of the account for which to get/update account shipping settings. + core.String accountId; + + /// An entry ID, unique within the batch request. + core.int batchId; + + /// Inventory validation contact email. Required only for + /// SetInventoryValidationContact. + core.String contactEmail; + + /// Inventory validation contact name. Required only for + /// SetInventoryValidationContact. + core.String contactName; + + /// The country code. Required only for RequestInventoryVerification. + core.String country; + + /// The GMB account. Required only for RequestGmbAccess. + core.String gmbEmail; + + /// The account Lia settings to update. Only defined if the method is update. + LiaSettings liaSettings; + + /// The ID of the managing account. + core.String merchantId; + core.String method; + + /// The ID of POS data provider. Required only for SetPosProvider. + core.String posDataProviderId; + + /// The account ID by which this merchant is known to the POS provider. + core.String posExternalAccountId; + + LiasettingsCustomBatchRequestEntry(); + + LiasettingsCustomBatchRequestEntry.fromJson(core.Map _json) { + if (_json.containsKey("accountId")) { + accountId = _json["accountId"]; + } + if (_json.containsKey("batchId")) { + batchId = _json["batchId"]; + } + if (_json.containsKey("contactEmail")) { + contactEmail = _json["contactEmail"]; + } + if (_json.containsKey("contactName")) { + contactName = _json["contactName"]; + } + if (_json.containsKey("country")) { + country = _json["country"]; + } + if (_json.containsKey("gmbEmail")) { + gmbEmail = _json["gmbEmail"]; + } + if (_json.containsKey("liaSettings")) { + liaSettings = new LiaSettings.fromJson(_json["liaSettings"]); + } + if (_json.containsKey("merchantId")) { + merchantId = _json["merchantId"]; + } + if (_json.containsKey("method")) { + method = _json["method"]; + } + if (_json.containsKey("posDataProviderId")) { + posDataProviderId = _json["posDataProviderId"]; + } + if (_json.containsKey("posExternalAccountId")) { + posExternalAccountId = _json["posExternalAccountId"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (accountId != null) { + _json["accountId"] = accountId; + } + if (batchId != null) { + _json["batchId"] = batchId; + } + if (contactEmail != null) { + _json["contactEmail"] = contactEmail; + } + if (contactName != null) { + _json["contactName"] = contactName; + } + if (country != null) { + _json["country"] = country; + } + if (gmbEmail != null) { + _json["gmbEmail"] = gmbEmail; + } + if (liaSettings != null) { + _json["liaSettings"] = (liaSettings).toJson(); + } + if (merchantId != null) { + _json["merchantId"] = merchantId; + } + if (method != null) { + _json["method"] = method; + } + if (posDataProviderId != null) { + _json["posDataProviderId"] = posDataProviderId; + } + if (posExternalAccountId != null) { + _json["posExternalAccountId"] = posExternalAccountId; + } + return _json; + } +} + +class LiasettingsCustomBatchResponse { + /// The result of the execution of the batch requests. + core.List<LiasettingsCustomBatchResponseEntry> entries; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#liasettingsCustomBatchResponse". + core.String kind; + + LiasettingsCustomBatchResponse(); + + LiasettingsCustomBatchResponse.fromJson(core.Map _json) { + if (_json.containsKey("entries")) { + entries = (_json["entries"] as core.List) + .map<LiasettingsCustomBatchResponseEntry>((value) => + new LiasettingsCustomBatchResponseEntry.fromJson(value)) + .toList(); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (entries != null) { + _json["entries"] = entries.map((value) => (value).toJson()).toList(); + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + +class LiasettingsCustomBatchResponseEntry { + /// The ID of the request entry to which this entry responds. + core.int batchId; + + /// A list of errors defined if, and only if, the request failed. + Errors errors; + + /// The the list of accessible GMB accounts. + GmbAccounts gmbAccounts; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#liasettingsCustomBatchResponseEntry". + core.String kind; + + /// The retrieved or updated Lia settings. + LiaSettings liaSettings; + + /// The list of POS data providers. + core.List<PosDataProviders> posDataProviders; + + LiasettingsCustomBatchResponseEntry(); + + LiasettingsCustomBatchResponseEntry.fromJson(core.Map _json) { + if (_json.containsKey("batchId")) { + batchId = _json["batchId"]; + } + if (_json.containsKey("errors")) { + errors = new Errors.fromJson(_json["errors"]); + } + if (_json.containsKey("gmbAccounts")) { + gmbAccounts = new GmbAccounts.fromJson(_json["gmbAccounts"]); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("liaSettings")) { + liaSettings = new LiaSettings.fromJson(_json["liaSettings"]); + } + if (_json.containsKey("posDataProviders")) { + posDataProviders = (_json["posDataProviders"] as core.List) + .map<PosDataProviders>( + (value) => new PosDataProviders.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (batchId != null) { + _json["batchId"] = batchId; + } + if (errors != null) { + _json["errors"] = (errors).toJson(); + } + if (gmbAccounts != null) { + _json["gmbAccounts"] = (gmbAccounts).toJson(); + } + if (kind != null) { + _json["kind"] = kind; + } + if (liaSettings != null) { + _json["liaSettings"] = (liaSettings).toJson(); + } + if (posDataProviders != null) { + _json["posDataProviders"] = + posDataProviders.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +class LiasettingsGetAccessibleGmbAccountsResponse { + /// The ID of the account. + core.String accountId; + + /// A list of GMB accounts which are available to the merchant. + core.List<GmbAccountsGmbAccount> gmbAccounts; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#liasettingsGetAccessibleGmbAccountsResponse". + core.String kind; + + LiasettingsGetAccessibleGmbAccountsResponse(); + + LiasettingsGetAccessibleGmbAccountsResponse.fromJson(core.Map _json) { + if (_json.containsKey("accountId")) { + accountId = _json["accountId"]; + } + if (_json.containsKey("gmbAccounts")) { + gmbAccounts = (_json["gmbAccounts"] as core.List) + .map<GmbAccountsGmbAccount>( + (value) => new GmbAccountsGmbAccount.fromJson(value)) + .toList(); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (accountId != null) { + _json["accountId"] = accountId; + } + if (gmbAccounts != null) { + _json["gmbAccounts"] = + gmbAccounts.map((value) => (value).toJson()).toList(); + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + +class LiasettingsListResponse { + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#liasettingsListResponse". + core.String kind; + + /// The token for the retrieval of the next page of LIA settings. + core.String nextPageToken; + core.List<LiaSettings> resources; + + LiasettingsListResponse(); + + LiasettingsListResponse.fromJson(core.Map _json) { + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("resources")) { + resources = (_json["resources"] as core.List) + .map<LiaSettings>((value) => new LiaSettings.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (kind != null) { + _json["kind"] = kind; + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (resources != null) { + _json["resources"] = resources.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +class LiasettingsRequestGmbAccessResponse { + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#liasettingsRequestGmbAccessResponse". + core.String kind; + + LiasettingsRequestGmbAccessResponse(); + + LiasettingsRequestGmbAccessResponse.fromJson(core.Map _json) { + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + +class LiasettingsRequestInventoryVerificationResponse { + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#liasettingsRequestInventoryVerificationResponse". + core.String kind; + + LiasettingsRequestInventoryVerificationResponse(); + + LiasettingsRequestInventoryVerificationResponse.fromJson(core.Map _json) { + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + +class LiasettingsSetInventoryVerificationContactResponse { + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#liasettingsSetInventoryVerificationContactResponse". + core.String kind; + + LiasettingsSetInventoryVerificationContactResponse(); + + LiasettingsSetInventoryVerificationContactResponse.fromJson(core.Map _json) { + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + class LocationIdSet { /// A non-empty list of location IDs. They must all be of the same location /// type (e.g., state). @@ -7459,9 +9821,9 @@ core.int quantity; /// The reason for the cancellation. Orders that are cancelled with a - /// noInventory reason will lead to the removal of the product from POG until - /// you make an update to that product. This will not affect your Shopping - /// ads. + /// noInventory reason will lead to the removal of the product from Shopping + /// Actions until you make an update to that product. This will not affect + /// your Shopping ads. core.String reason; /// The explanation of the reason. @@ -7510,18 +9872,19 @@ } class OrderCustomer { - /// Email address of the customer. + /// Email address that should be used for order related communications. In + /// certain cases this might not be a real users email, but a proxy email. core.String email; - /// If set, this indicates the user explicitly chose to opt in or out of - /// providing marketing rights to the merchant. If unset, this indicates the - /// user has already made this choice in a previous purchase, and was thus not - /// shown the marketing right opt in/out checkbox during the checkout flow. + /// Deprecated. Please use marketingRightsInfo instead. core.bool explicitMarketingPreference; /// Full name of the customer. core.String fullName; + /// Customer's marketing preferences. + OrderCustomerMarketingRightsInfo marketingRightsInfo; + OrderCustomer(); OrderCustomer.fromJson(core.Map _json) { @@ -7534,6 +9897,10 @@ if (_json.containsKey("fullName")) { fullName = _json["fullName"]; } + if (_json.containsKey("marketingRightsInfo")) { + marketingRightsInfo = new OrderCustomerMarketingRightsInfo.fromJson( + _json["marketingRightsInfo"]); + } } core.Map<core.String, core.Object> toJson() { @@ -7548,6 +9915,52 @@ if (fullName != null) { _json["fullName"] = fullName; } + if (marketingRightsInfo != null) { + _json["marketingRightsInfo"] = (marketingRightsInfo).toJson(); + } + return _json; + } +} + +class OrderCustomerMarketingRightsInfo { + /// Last known user selection regarding marketing preferences. In certain + /// cases this selection might not be known, so this field would be empty. + core.String explicitMarketingPreference; + + /// Timestamp when last time marketing preference was updated. Could be empty, + /// if user wasn't offered a selection yet. + core.String lastUpdatedTimestamp; + + /// Email address that can be used for marketing purposes. This field is only + /// filled when explicitMarketingPreference is equal to 'granted'. + core.String marketingEmailAddress; + + OrderCustomerMarketingRightsInfo(); + + OrderCustomerMarketingRightsInfo.fromJson(core.Map _json) { + if (_json.containsKey("explicitMarketingPreference")) { + explicitMarketingPreference = _json["explicitMarketingPreference"]; + } + if (_json.containsKey("lastUpdatedTimestamp")) { + lastUpdatedTimestamp = _json["lastUpdatedTimestamp"]; + } + if (_json.containsKey("marketingEmailAddress")) { + marketingEmailAddress = _json["marketingEmailAddress"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (explicitMarketingPreference != null) { + _json["explicitMarketingPreference"] = explicitMarketingPreference; + } + if (lastUpdatedTimestamp != null) { + _json["lastUpdatedTimestamp"] = lastUpdatedTimestamp; + } + if (marketingEmailAddress != null) { + _json["marketingEmailAddress"] = marketingEmailAddress; + } return _json; } } @@ -8573,6 +10986,506 @@ } } +class OrderinvoicesCreateChargeInvoiceRequest { + /// The ID of the invoice. + core.String invoiceId; + + /// Invoice summary. + InvoiceSummary invoiceSummary; + + /// Invoice details per line item. + core.List<ShipmentInvoiceLineItemInvoice> lineItemInvoices; + + /// The ID of the operation, unique across all operations for a given order. + core.String operationId; + + /// ID of the shipment group. + core.String shipmentGroupId; + + OrderinvoicesCreateChargeInvoiceRequest(); + + OrderinvoicesCreateChargeInvoiceRequest.fromJson(core.Map _json) { + if (_json.containsKey("invoiceId")) { + invoiceId = _json["invoiceId"]; + } + if (_json.containsKey("invoiceSummary")) { + invoiceSummary = new InvoiceSummary.fromJson(_json["invoiceSummary"]); + } + if (_json.containsKey("lineItemInvoices")) { + lineItemInvoices = (_json["lineItemInvoices"] as core.List) + .map<ShipmentInvoiceLineItemInvoice>( + (value) => new ShipmentInvoiceLineItemInvoice.fromJson(value)) + .toList(); + } + if (_json.containsKey("operationId")) { + operationId = _json["operationId"]; + } + if (_json.containsKey("shipmentGroupId")) { + shipmentGroupId = _json["shipmentGroupId"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (invoiceId != null) { + _json["invoiceId"] = invoiceId; + } + if (invoiceSummary != null) { + _json["invoiceSummary"] = (invoiceSummary).toJson(); + } + if (lineItemInvoices != null) { + _json["lineItemInvoices"] = + lineItemInvoices.map((value) => (value).toJson()).toList(); + } + if (operationId != null) { + _json["operationId"] = operationId; + } + if (shipmentGroupId != null) { + _json["shipmentGroupId"] = shipmentGroupId; + } + return _json; + } +} + +class OrderinvoicesCreateChargeInvoiceResponse { + /// The status of the execution. + core.String executionStatus; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#orderinvoicesCreateChargeInvoiceResponse". + core.String kind; + + OrderinvoicesCreateChargeInvoiceResponse(); + + OrderinvoicesCreateChargeInvoiceResponse.fromJson(core.Map _json) { + if (_json.containsKey("executionStatus")) { + executionStatus = _json["executionStatus"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (executionStatus != null) { + _json["executionStatus"] = executionStatus; + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + +class OrderinvoicesCreateRefundInvoiceRequest { + /// The ID of the invoice. + core.String invoiceId; + + /// The ID of the operation, unique across all operations for a given order. + core.String operationId; + + /// Option to create a refund-only invoice. Exactly one of refund_option and + /// return_option must be provided. + OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption + refundOnlyOption; + + /// Option to create an invoice for a refund and mark all items within the + /// invoice as returned. Exactly one of refund_option and return_option must + /// be provided. + OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption + returnOption; + + /// Invoice details for different shipment groups. + core.List<ShipmentInvoice> shipmentInvoices; + + OrderinvoicesCreateRefundInvoiceRequest(); + + OrderinvoicesCreateRefundInvoiceRequest.fromJson(core.Map _json) { + if (_json.containsKey("invoiceId")) { + invoiceId = _json["invoiceId"]; + } + if (_json.containsKey("operationId")) { + operationId = _json["operationId"]; + } + if (_json.containsKey("refundOnlyOption")) { + refundOnlyOption = + new OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption + .fromJson(_json["refundOnlyOption"]); + } + if (_json.containsKey("returnOption")) { + returnOption = + new OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption + .fromJson(_json["returnOption"]); + } + if (_json.containsKey("shipmentInvoices")) { + shipmentInvoices = (_json["shipmentInvoices"] as core.List) + .map<ShipmentInvoice>((value) => new ShipmentInvoice.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (invoiceId != null) { + _json["invoiceId"] = invoiceId; + } + if (operationId != null) { + _json["operationId"] = operationId; + } + if (refundOnlyOption != null) { + _json["refundOnlyOption"] = (refundOnlyOption).toJson(); + } + if (returnOption != null) { + _json["returnOption"] = (returnOption).toJson(); + } + if (shipmentInvoices != null) { + _json["shipmentInvoices"] = + shipmentInvoices.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +class OrderinvoicesCreateRefundInvoiceResponse { + /// The status of the execution. + core.String executionStatus; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#orderinvoicesCreateRefundInvoiceResponse". + core.String kind; + + OrderinvoicesCreateRefundInvoiceResponse(); + + OrderinvoicesCreateRefundInvoiceResponse.fromJson(core.Map _json) { + if (_json.containsKey("executionStatus")) { + executionStatus = _json["executionStatus"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (executionStatus != null) { + _json["executionStatus"] = executionStatus; + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + +class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption { + /// Optional description of the refund reason. + core.String description; + + /// Reason for the refund. + core.String reason; + + OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption(); + + OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption.fromJson( + core.Map _json) { + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("reason")) { + reason = _json["reason"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (description != null) { + _json["description"] = description; + } + if (reason != null) { + _json["reason"] = reason; + } + return _json; + } +} + +class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption { + /// Optional description of the return reason. + core.String description; + + /// Reason for the return. + core.String reason; + + OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption(); + + OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption.fromJson( + core.Map _json) { + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("reason")) { + reason = _json["reason"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (description != null) { + _json["description"] = description; + } + if (reason != null) { + _json["reason"] = reason; + } + return _json; + } +} + +class OrderpaymentsNotifyAuthApprovedRequest { + Price authAmountPretax; + Price authAmountTax; + + OrderpaymentsNotifyAuthApprovedRequest(); + + OrderpaymentsNotifyAuthApprovedRequest.fromJson(core.Map _json) { + if (_json.containsKey("authAmountPretax")) { + authAmountPretax = new Price.fromJson(_json["authAmountPretax"]); + } + if (_json.containsKey("authAmountTax")) { + authAmountTax = new Price.fromJson(_json["authAmountTax"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (authAmountPretax != null) { + _json["authAmountPretax"] = (authAmountPretax).toJson(); + } + if (authAmountTax != null) { + _json["authAmountTax"] = (authAmountTax).toJson(); + } + return _json; + } +} + +class OrderpaymentsNotifyAuthApprovedResponse { + /// The status of the execution. + core.String executionStatus; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#orderpaymentsNotifyAuthApprovedResponse". + core.String kind; + + OrderpaymentsNotifyAuthApprovedResponse(); + + OrderpaymentsNotifyAuthApprovedResponse.fromJson(core.Map _json) { + if (_json.containsKey("executionStatus")) { + executionStatus = _json["executionStatus"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (executionStatus != null) { + _json["executionStatus"] = executionStatus; + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + +class OrderpaymentsNotifyAuthDeclinedRequest { + /// Reason why payment authorization was declined. + core.String declineReason; + + OrderpaymentsNotifyAuthDeclinedRequest(); + + OrderpaymentsNotifyAuthDeclinedRequest.fromJson(core.Map _json) { + if (_json.containsKey("declineReason")) { + declineReason = _json["declineReason"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (declineReason != null) { + _json["declineReason"] = declineReason; + } + return _json; + } +} + +class OrderpaymentsNotifyAuthDeclinedResponse { + /// The status of the execution. + core.String executionStatus; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#orderpaymentsNotifyAuthDeclinedResponse". + core.String kind; + + OrderpaymentsNotifyAuthDeclinedResponse(); + + OrderpaymentsNotifyAuthDeclinedResponse.fromJson(core.Map _json) { + if (_json.containsKey("executionStatus")) { + executionStatus = _json["executionStatus"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (executionStatus != null) { + _json["executionStatus"] = executionStatus; + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + +class OrderpaymentsNotifyChargeRequest { + /// Whether charge was successful. + core.String chargeState; + + /// Invoice ID from orderInvoice service that corresponds to the charge. + core.String invoiceId; + + OrderpaymentsNotifyChargeRequest(); + + OrderpaymentsNotifyChargeRequest.fromJson(core.Map _json) { + if (_json.containsKey("chargeState")) { + chargeState = _json["chargeState"]; + } + if (_json.containsKey("invoiceId")) { + invoiceId = _json["invoiceId"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (chargeState != null) { + _json["chargeState"] = chargeState; + } + if (invoiceId != null) { + _json["invoiceId"] = invoiceId; + } + return _json; + } +} + +class OrderpaymentsNotifyChargeResponse { + /// The status of the execution. + core.String executionStatus; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#orderpaymentsNotifyChargeResponse". + core.String kind; + + OrderpaymentsNotifyChargeResponse(); + + OrderpaymentsNotifyChargeResponse.fromJson(core.Map _json) { + if (_json.containsKey("executionStatus")) { + executionStatus = _json["executionStatus"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (executionStatus != null) { + _json["executionStatus"] = executionStatus; + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + +class OrderpaymentsNotifyRefundRequest { + /// Invoice ID from orderInvoice service that corresponds to the charge. + core.String invoiceId; + + /// Whether refund was successful. + core.String refundState; + + OrderpaymentsNotifyRefundRequest(); + + OrderpaymentsNotifyRefundRequest.fromJson(core.Map _json) { + if (_json.containsKey("invoiceId")) { + invoiceId = _json["invoiceId"]; + } + if (_json.containsKey("refundState")) { + refundState = _json["refundState"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (invoiceId != null) { + _json["invoiceId"] = invoiceId; + } + if (refundState != null) { + _json["refundState"] = refundState; + } + return _json; + } +} + +class OrderpaymentsNotifyRefundResponse { + /// The status of the execution. + core.String executionStatus; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#orderpaymentsNotifyRefundResponse". + core.String kind; + + OrderpaymentsNotifyRefundResponse(); + + OrderpaymentsNotifyRefundResponse.fromJson(core.Map _json) { + if (_json.containsKey("executionStatus")) { + executionStatus = _json["executionStatus"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (executionStatus != null) { + _json["executionStatus"] = executionStatus; + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + class OrdersAcknowledgeRequest { /// The ID of the operation. Unique across all operations for a given order. core.String operationId; @@ -9642,6 +12555,10 @@ /// Line items to ship. core.List<OrderShipmentLineItemShipment> lineItems; + /// ID of the shipment group. Required for orders that use the orderinvoices + /// service. + core.String shipmentGroupId; + /// Deprecated. Please use shipmentInfo instead. The ID of the shipment. core.String shipmentId; @@ -9666,6 +12583,9 @@ (value) => new OrderShipmentLineItemShipment.fromJson(value)) .toList(); } + if (_json.containsKey("shipmentGroupId")) { + shipmentGroupId = _json["shipmentGroupId"]; + } if (_json.containsKey("shipmentId")) { shipmentId = _json["shipmentId"]; } @@ -9691,6 +12611,9 @@ if (lineItems != null) { _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList(); } + if (shipmentGroupId != null) { + _json["shipmentGroupId"] = shipmentGroupId; + } if (shipmentId != null) { _json["shipmentId"] = shipmentId; } @@ -10692,6 +13615,10 @@ /// The ID of the operation. Unique across all operations for a given order. core.String operationId; + /// ID of the shipment group. Required for orders that use the orderinvoices + /// service. + core.String shipmentGroupId; + /// Deprecated. Please use shipmentInfo instead. The ID of the shipment. core.String shipmentId; @@ -10719,6 +13646,9 @@ if (_json.containsKey("operationId")) { operationId = _json["operationId"]; } + if (_json.containsKey("shipmentGroupId")) { + shipmentGroupId = _json["shipmentGroupId"]; + } if (_json.containsKey("shipmentId")) { shipmentId = _json["shipmentId"]; } @@ -10747,6 +13677,9 @@ if (operationId != null) { _json["operationId"] = operationId; } + if (shipmentGroupId != null) { + _json["shipmentGroupId"] = shipmentGroupId; + } if (shipmentId != null) { _json["shipmentId"] = shipmentId; } @@ -11043,6 +13976,951 @@ } } +class PosCustomBatchRequest { + /// The request entries to be processed in the batch. + core.List<PosCustomBatchRequestEntry> entries; + + PosCustomBatchRequest(); + + PosCustomBatchRequest.fromJson(core.Map _json) { + if (_json.containsKey("entries")) { + entries = (_json["entries"] as core.List) + .map<PosCustomBatchRequestEntry>( + (value) => new PosCustomBatchRequestEntry.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (entries != null) { + _json["entries"] = entries.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +class PosCustomBatchRequestEntry { + /// An entry ID, unique within the batch request. + core.int batchId; + + /// The inventory to submit. Set this only if the method is inventory. + PosInventory inventory; + + /// The ID of the POS data provider. + core.String merchantId; + core.String method; + + /// The sale information to submit. Set this only if the method is sale. + PosSale sale; + + /// The store information to submit. Set this only if the method is insert. + PosStore store; + + /// The store code. Set this only if the method is delete or get. + core.String storeCode; + + /// The ID of the account for which to get/submit data. + core.String targetMerchantId; + + PosCustomBatchRequestEntry(); + + PosCustomBatchRequestEntry.fromJson(core.Map _json) { + if (_json.containsKey("batchId")) { + batchId = _json["batchId"]; + } + if (_json.containsKey("inventory")) { + inventory = new PosInventory.fromJson(_json["inventory"]); + } + if (_json.containsKey("merchantId")) { + merchantId = _json["merchantId"]; + } + if (_json.containsKey("method")) { + method = _json["method"]; + } + if (_json.containsKey("sale")) { + sale = new PosSale.fromJson(_json["sale"]); + } + if (_json.containsKey("store")) { + store = new PosStore.fromJson(_json["store"]); + } + if (_json.containsKey("storeCode")) { + storeCode = _json["storeCode"]; + } + if (_json.containsKey("targetMerchantId")) { + targetMerchantId = _json["targetMerchantId"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (batchId != null) { + _json["batchId"] = batchId; + } + if (inventory != null) { + _json["inventory"] = (inventory).toJson(); + } + if (merchantId != null) { + _json["merchantId"] = merchantId; + } + if (method != null) { + _json["method"] = method; + } + if (sale != null) { + _json["sale"] = (sale).toJson(); + } + if (store != null) { + _json["store"] = (store).toJson(); + } + if (storeCode != null) { + _json["storeCode"] = storeCode; + } + if (targetMerchantId != null) { + _json["targetMerchantId"] = targetMerchantId; + } + return _json; + } +} + +class PosCustomBatchResponse { + /// The result of the execution of the batch requests. + core.List<PosCustomBatchResponseEntry> entries; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#posCustomBatchResponse". + core.String kind; + + PosCustomBatchResponse(); + + PosCustomBatchResponse.fromJson(core.Map _json) { + if (_json.containsKey("entries")) { + entries = (_json["entries"] as core.List) + .map<PosCustomBatchResponseEntry>( + (value) => new PosCustomBatchResponseEntry.fromJson(value)) + .toList(); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (entries != null) { + _json["entries"] = entries.map((value) => (value).toJson()).toList(); + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + +class PosCustomBatchResponseEntry { + /// The ID of the request entry to which this entry responds. + core.int batchId; + + /// A list of errors defined if, and only if, the request failed. + Errors errors; + + /// The updated inventory information. + PosInventory inventory; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#posCustomBatchResponseEntry". + core.String kind; + + /// The updated sale information. + PosSale sale; + + /// The retrieved or updated store information. + PosStore store; + + PosCustomBatchResponseEntry(); + + PosCustomBatchResponseEntry.fromJson(core.Map _json) { + if (_json.containsKey("batchId")) { + batchId = _json["batchId"]; + } + if (_json.containsKey("errors")) { + errors = new Errors.fromJson(_json["errors"]); + } + if (_json.containsKey("inventory")) { + inventory = new PosInventory.fromJson(_json["inventory"]); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("sale")) { + sale = new PosSale.fromJson(_json["sale"]); + } + if (_json.containsKey("store")) { + store = new PosStore.fromJson(_json["store"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (batchId != null) { + _json["batchId"] = batchId; + } + if (errors != null) { + _json["errors"] = (errors).toJson(); + } + if (inventory != null) { + _json["inventory"] = (inventory).toJson(); + } + if (kind != null) { + _json["kind"] = kind; + } + if (sale != null) { + _json["sale"] = (sale).toJson(); + } + if (store != null) { + _json["store"] = (store).toJson(); + } + return _json; + } +} + +class PosDataProviders { + /// Country code. + core.String country; + + /// A list of POS data providers. + core.List<PosDataProvidersPosDataProvider> posDataProviders; + + PosDataProviders(); + + PosDataProviders.fromJson(core.Map _json) { + if (_json.containsKey("country")) { + country = _json["country"]; + } + if (_json.containsKey("posDataProviders")) { + posDataProviders = (_json["posDataProviders"] as core.List) + .map<PosDataProvidersPosDataProvider>( + (value) => new PosDataProvidersPosDataProvider.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (country != null) { + _json["country"] = country; + } + if (posDataProviders != null) { + _json["posDataProviders"] = + posDataProviders.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +class PosDataProvidersPosDataProvider { + /// The display name of Pos data Provider. + core.String displayName; + + /// The full name of this POS data Provider. + core.String fullName; + + /// The ID of the account. + core.String providerId; + + PosDataProvidersPosDataProvider(); + + PosDataProvidersPosDataProvider.fromJson(core.Map _json) { + if (_json.containsKey("displayName")) { + displayName = _json["displayName"]; + } + if (_json.containsKey("fullName")) { + fullName = _json["fullName"]; + } + if (_json.containsKey("providerId")) { + providerId = _json["providerId"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (displayName != null) { + _json["displayName"] = displayName; + } + if (fullName != null) { + _json["fullName"] = fullName; + } + if (providerId != null) { + _json["providerId"] = providerId; + } + return _json; + } +} + +/// The absolute quantity of an item available at the given store. +class PosInventory { + /// The two-letter ISO 639-1 language code for the item. + core.String contentLanguage; + + /// Global Trade Item Number. + core.String gtin; + + /// A unique identifier for the item. + core.String itemId; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#posInventory". + core.String kind; + + /// The current price of the item. + Price price; + + /// The available quantity of the item. + core.String quantity; + + /// The identifier of the merchant's store. Either a storeCode inserted via + /// the API or the code of the store in Google My Business. + core.String storeCode; + + /// The CLDR territory code for the item. + core.String targetCountry; + + /// The inventory timestamp, in ISO 8601 format. + core.String timestamp; + + PosInventory(); + + PosInventory.fromJson(core.Map _json) { + if (_json.containsKey("contentLanguage")) { + contentLanguage = _json["contentLanguage"]; + } + if (_json.containsKey("gtin")) { + gtin = _json["gtin"]; + } + if (_json.containsKey("itemId")) { + itemId = _json["itemId"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("price")) { + price = new Price.fromJson(_json["price"]); + } + if (_json.containsKey("quantity")) { + quantity = _json["quantity"]; + } + if (_json.containsKey("storeCode")) { + storeCode = _json["storeCode"]; + } + if (_json.containsKey("targetCountry")) { + targetCountry = _json["targetCountry"]; + } + if (_json.containsKey("timestamp")) { + timestamp = _json["timestamp"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (contentLanguage != null) { + _json["contentLanguage"] = contentLanguage; + } + if (gtin != null) { + _json["gtin"] = gtin; + } + if (itemId != null) { + _json["itemId"] = itemId; + } + if (kind != null) { + _json["kind"] = kind; + } + if (price != null) { + _json["price"] = (price).toJson(); + } + if (quantity != null) { + _json["quantity"] = quantity; + } + if (storeCode != null) { + _json["storeCode"] = storeCode; + } + if (targetCountry != null) { + _json["targetCountry"] = targetCountry; + } + if (timestamp != null) { + _json["timestamp"] = timestamp; + } + return _json; + } +} + +class PosInventoryRequest { + /// The two-letter ISO 639-1 language code for the item. + core.String contentLanguage; + + /// Global Trade Item Number. + core.String gtin; + + /// A unique identifier for the item. + core.String itemId; + + /// The current price of the item. + Price price; + + /// The available quantity of the item. + core.String quantity; + + /// The identifier of the merchant's store. Either a storeCode inserted via + /// the API or the code of the store in Google My Business. + core.String storeCode; + + /// The CLDR territory code for the item. + core.String targetCountry; + + /// The inventory timestamp, in ISO 8601 format. + core.String timestamp; + + PosInventoryRequest(); + + PosInventoryRequest.fromJson(core.Map _json) { + if (_json.containsKey("contentLanguage")) { + contentLanguage = _json["contentLanguage"]; + } + if (_json.containsKey("gtin")) { + gtin = _json["gtin"]; + } + if (_json.containsKey("itemId")) { + itemId = _json["itemId"]; + } + if (_json.containsKey("price")) { + price = new Price.fromJson(_json["price"]); + } + if (_json.containsKey("quantity")) { + quantity = _json["quantity"]; + } + if (_json.containsKey("storeCode")) { + storeCode = _json["storeCode"]; + } + if (_json.containsKey("targetCountry")) { + targetCountry = _json["targetCountry"]; + } + if (_json.containsKey("timestamp")) { + timestamp = _json["timestamp"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (contentLanguage != null) { + _json["contentLanguage"] = contentLanguage; + } + if (gtin != null) { + _json["gtin"] = gtin; + } + if (itemId != null) { + _json["itemId"] = itemId; + } + if (price != null) { + _json["price"] = (price).toJson(); + } + if (quantity != null) { + _json["quantity"] = quantity; + } + if (storeCode != null) { + _json["storeCode"] = storeCode; + } + if (targetCountry != null) { + _json["targetCountry"] = targetCountry; + } + if (timestamp != null) { + _json["timestamp"] = timestamp; + } + return _json; + } +} + +class PosInventoryResponse { + /// The two-letter ISO 639-1 language code for the item. + core.String contentLanguage; + + /// Global Trade Item Number. + core.String gtin; + + /// A unique identifier for the item. + core.String itemId; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#posInventoryResponse". + core.String kind; + + /// The current price of the item. + Price price; + + /// The available quantity of the item. + core.String quantity; + + /// The identifier of the merchant's store. Either a storeCode inserted via + /// the API or the code of the store in Google My Business. + core.String storeCode; + + /// The CLDR territory code for the item. + core.String targetCountry; + + /// The inventory timestamp, in ISO 8601 format. + core.String timestamp; + + PosInventoryResponse(); + + PosInventoryResponse.fromJson(core.Map _json) { + if (_json.containsKey("contentLanguage")) { + contentLanguage = _json["contentLanguage"]; + } + if (_json.containsKey("gtin")) { + gtin = _json["gtin"]; + } + if (_json.containsKey("itemId")) { + itemId = _json["itemId"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("price")) { + price = new Price.fromJson(_json["price"]); + } + if (_json.containsKey("quantity")) { + quantity = _json["quantity"]; + } + if (_json.containsKey("storeCode")) { + storeCode = _json["storeCode"]; + } + if (_json.containsKey("targetCountry")) { + targetCountry = _json["targetCountry"]; + } + if (_json.containsKey("timestamp")) { + timestamp = _json["timestamp"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (contentLanguage != null) { + _json["contentLanguage"] = contentLanguage; + } + if (gtin != null) { + _json["gtin"] = gtin; + } + if (itemId != null) { + _json["itemId"] = itemId; + } + if (kind != null) { + _json["kind"] = kind; + } + if (price != null) { + _json["price"] = (price).toJson(); + } + if (quantity != null) { + _json["quantity"] = quantity; + } + if (storeCode != null) { + _json["storeCode"] = storeCode; + } + if (targetCountry != null) { + _json["targetCountry"] = targetCountry; + } + if (timestamp != null) { + _json["timestamp"] = timestamp; + } + return _json; + } +} + +class PosListResponse { + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#posListResponse". + core.String kind; + core.List<PosStore> resources; + + PosListResponse(); + + PosListResponse.fromJson(core.Map _json) { + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("resources")) { + resources = (_json["resources"] as core.List) + .map<PosStore>((value) => new PosStore.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (kind != null) { + _json["kind"] = kind; + } + if (resources != null) { + _json["resources"] = resources.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/// The change of the available quantity of an item at the given store. +class PosSale { + /// The two-letter ISO 639-1 language code for the item. + core.String contentLanguage; + + /// Global Trade Item Number. + core.String gtin; + + /// A unique identifier for the item. + core.String itemId; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#posSale". + core.String kind; + + /// The price of the item. + Price price; + + /// The relative change of the available quantity. Negative for items sold. + core.String quantity; + + /// A unique ID to group items from the same sale event. + core.String saleId; + + /// The identifier of the merchant's store. Either a storeCode inserted via + /// the API or the code of the store in Google My Business. + core.String storeCode; + + /// The CLDR territory code for the item. + core.String targetCountry; + + /// The inventory timestamp, in ISO 8601 format. + core.String timestamp; + + PosSale(); + + PosSale.fromJson(core.Map _json) { + if (_json.containsKey("contentLanguage")) { + contentLanguage = _json["contentLanguage"]; + } + if (_json.containsKey("gtin")) { + gtin = _json["gtin"]; + } + if (_json.containsKey("itemId")) { + itemId = _json["itemId"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("price")) { + price = new Price.fromJson(_json["price"]); + } + if (_json.containsKey("quantity")) { + quantity = _json["quantity"]; + } + if (_json.containsKey("saleId")) { + saleId = _json["saleId"]; + } + if (_json.containsKey("storeCode")) { + storeCode = _json["storeCode"]; + } + if (_json.containsKey("targetCountry")) { + targetCountry = _json["targetCountry"]; + } + if (_json.containsKey("timestamp")) { + timestamp = _json["timestamp"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (contentLanguage != null) { + _json["contentLanguage"] = contentLanguage; + } + if (gtin != null) { + _json["gtin"] = gtin; + } + if (itemId != null) { + _json["itemId"] = itemId; + } + if (kind != null) { + _json["kind"] = kind; + } + if (price != null) { + _json["price"] = (price).toJson(); + } + if (quantity != null) { + _json["quantity"] = quantity; + } + if (saleId != null) { + _json["saleId"] = saleId; + } + if (storeCode != null) { + _json["storeCode"] = storeCode; + } + if (targetCountry != null) { + _json["targetCountry"] = targetCountry; + } + if (timestamp != null) { + _json["timestamp"] = timestamp; + } + return _json; + } +} + +class PosSaleRequest { + /// The two-letter ISO 639-1 language code for the item. + core.String contentLanguage; + + /// Global Trade Item Number. + core.String gtin; + + /// A unique identifier for the item. + core.String itemId; + + /// The price of the item. + Price price; + + /// The relative change of the available quantity. Negative for items sold. + core.String quantity; + + /// A unique ID to group items from the same sale event. + core.String saleId; + + /// The identifier of the merchant's store. Either a storeCode inserted via + /// the API or the code of the store in Google My Business. + core.String storeCode; + + /// The CLDR territory code for the item. + core.String targetCountry; + + /// The inventory timestamp, in ISO 8601 format. + core.String timestamp; + + PosSaleRequest(); + + PosSaleRequest.fromJson(core.Map _json) { + if (_json.containsKey("contentLanguage")) { + contentLanguage = _json["contentLanguage"]; + } + if (_json.containsKey("gtin")) { + gtin = _json["gtin"]; + } + if (_json.containsKey("itemId")) { + itemId = _json["itemId"]; + } + if (_json.containsKey("price")) { + price = new Price.fromJson(_json["price"]); + } + if (_json.containsKey("quantity")) { + quantity = _json["quantity"]; + } + if (_json.containsKey("saleId")) { + saleId = _json["saleId"]; + } + if (_json.containsKey("storeCode")) { + storeCode = _json["storeCode"]; + } + if (_json.containsKey("targetCountry")) { + targetCountry = _json["targetCountry"]; + } + if (_json.containsKey("timestamp")) { + timestamp = _json["timestamp"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (contentLanguage != null) { + _json["contentLanguage"] = contentLanguage; + } + if (gtin != null) { + _json["gtin"] = gtin; + } + if (itemId != null) { + _json["itemId"] = itemId; + } + if (price != null) { + _json["price"] = (price).toJson(); + } + if (quantity != null) { + _json["quantity"] = quantity; + } + if (saleId != null) { + _json["saleId"] = saleId; + } + if (storeCode != null) { + _json["storeCode"] = storeCode; + } + if (targetCountry != null) { + _json["targetCountry"] = targetCountry; + } + if (timestamp != null) { + _json["timestamp"] = timestamp; + } + return _json; + } +} + +class PosSaleResponse { + /// The two-letter ISO 639-1 language code for the item. + core.String contentLanguage; + + /// Global Trade Item Number. + core.String gtin; + + /// A unique identifier for the item. + core.String itemId; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#posSaleResponse". + core.String kind; + + /// The price of the item. + Price price; + + /// The relative change of the available quantity. Negative for items sold. + core.String quantity; + + /// A unique ID to group items from the same sale event. + core.String saleId; + + /// The identifier of the merchant's store. Either a storeCode inserted via + /// the API or the code of the store in Google My Business. + core.String storeCode; + + /// The CLDR territory code for the item. + core.String targetCountry; + + /// The inventory timestamp, in ISO 8601 format. + core.String timestamp; + + PosSaleResponse(); + + PosSaleResponse.fromJson(core.Map _json) { + if (_json.containsKey("contentLanguage")) { + contentLanguage = _json["contentLanguage"]; + } + if (_json.containsKey("gtin")) { + gtin = _json["gtin"]; + } + if (_json.containsKey("itemId")) { + itemId = _json["itemId"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("price")) { + price = new Price.fromJson(_json["price"]); + } + if (_json.containsKey("quantity")) { + quantity = _json["quantity"]; + } + if (_json.containsKey("saleId")) { + saleId = _json["saleId"]; + } + if (_json.containsKey("storeCode")) { + storeCode = _json["storeCode"]; + } + if (_json.containsKey("targetCountry")) { + targetCountry = _json["targetCountry"]; + } + if (_json.containsKey("timestamp")) { + timestamp = _json["timestamp"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (contentLanguage != null) { + _json["contentLanguage"] = contentLanguage; + } + if (gtin != null) { + _json["gtin"] = gtin; + } + if (itemId != null) { + _json["itemId"] = itemId; + } + if (kind != null) { + _json["kind"] = kind; + } + if (price != null) { + _json["price"] = (price).toJson(); + } + if (quantity != null) { + _json["quantity"] = quantity; + } + if (saleId != null) { + _json["saleId"] = saleId; + } + if (storeCode != null) { + _json["storeCode"] = storeCode; + } + if (targetCountry != null) { + _json["targetCountry"] = targetCountry; + } + if (timestamp != null) { + _json["timestamp"] = timestamp; + } + return _json; + } +} + +/// Store resource. +class PosStore { + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#posStore". + core.String kind; + + /// The street address of the store. + core.String storeAddress; + + /// A store identifier that is unique for the given merchant. + core.String storeCode; + + PosStore(); + + PosStore.fromJson(core.Map _json) { + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("storeAddress")) { + storeAddress = _json["storeAddress"]; + } + if (_json.containsKey("storeCode")) { + storeCode = _json["storeCode"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (kind != null) { + _json["kind"] = kind; + } + if (storeAddress != null) { + _json["storeAddress"] = storeAddress; + } + if (storeCode != null) { + _json["storeCode"] = storeCode; + } + return _json; + } +} + class PostalCodeGroup { /// The CLDR territory code of the country the postal code group applies to. /// Required. @@ -12326,6 +16204,9 @@ } class ProductStatusDataQualityIssue { + /// The destination the issue applies to. + core.String destination; + /// A more detailed error string. core.String detail; @@ -12353,6 +16234,9 @@ ProductStatusDataQualityIssue(); ProductStatusDataQualityIssue.fromJson(core.Map _json) { + if (_json.containsKey("destination")) { + destination = _json["destination"]; + } if (_json.containsKey("detail")) { detail = _json["detail"]; } @@ -12382,6 +16266,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (destination != null) { + _json["destination"] = destination; + } if (detail != null) { _json["detail"] = detail; } @@ -12466,9 +16353,18 @@ /// The error code of the issue. core.String code; + /// A short issue description in English. + core.String description; + /// The destination the issue applies to. core.String destination; + /// A detailed issue description in English. + core.String detail; + + /// The URL of a web page to help with resolving this issue. + core.String documentation; + /// Whether the issue can be resolved by the merchant. core.String resolution; @@ -12484,9 +16380,18 @@ if (_json.containsKey("code")) { code = _json["code"]; } + if (_json.containsKey("description")) { + description = _json["description"]; + } if (_json.containsKey("destination")) { destination = _json["destination"]; } + if (_json.containsKey("detail")) { + detail = _json["detail"]; + } + if (_json.containsKey("documentation")) { + documentation = _json["documentation"]; + } if (_json.containsKey("resolution")) { resolution = _json["resolution"]; } @@ -12504,9 +16409,18 @@ if (code != null) { _json["code"] = code; } + if (description != null) { + _json["description"] = description; + } if (destination != null) { _json["destination"] = destination; } + if (detail != null) { + _json["detail"] = detail; + } + if (documentation != null) { + _json["documentation"] = documentation; + } if (resolution != null) { _json["resolution"] = resolution; } @@ -12891,6 +16805,10 @@ class ProductstatusesCustomBatchRequestEntry { /// An entry ID, unique within the batch request. core.int batchId; + + /// If set, only issues for the specified destinations are returned, otherwise + /// only issues for the Shopping destination. + core.List<core.String> destinations; core.bool includeAttributes; /// The ID of the managing account. @@ -12906,6 +16824,9 @@ if (_json.containsKey("batchId")) { batchId = _json["batchId"]; } + if (_json.containsKey("destinations")) { + destinations = (_json["destinations"] as core.List).cast<core.String>(); + } if (_json.containsKey("includeAttributes")) { includeAttributes = _json["includeAttributes"]; } @@ -12926,6 +16847,9 @@ if (batchId != null) { _json["batchId"] = batchId; } + if (destinations != null) { + _json["destinations"] = destinations; + } if (includeAttributes != null) { _json["includeAttributes"] = includeAttributes; } @@ -13069,6 +16993,38 @@ } } +class Promotion { + /// Amount of the promotion. The values here are the promotion applied to the + /// unit price pretax and to the total of the tax amounts. + Amount promotionAmount; + + /// ID of the promotion. + core.String promotionId; + + Promotion(); + + Promotion.fromJson(core.Map _json) { + if (_json.containsKey("promotionAmount")) { + promotionAmount = new Amount.fromJson(_json["promotionAmount"]); + } + if (_json.containsKey("promotionId")) { + promotionId = _json["promotionId"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (promotionAmount != null) { + _json["promotionAmount"] = (promotionAmount).toJson(); + } + if (promotionId != null) { + _json["promotionId"] = promotionId; + } + return _json; + } +} + class RateGroup { /// A list of shipping labels defining the products to which this rate group /// applies to. This is a disjunction: only one of the labels has to match for @@ -13182,6 +17138,9 @@ /// Required. DeliveryTime deliveryTime; + /// Eligibility for this service. + core.String eligibility; + /// Minimum order value for this service. If set, indicates that customers /// will have to spend at least this amount. All prices within a service must /// have the same currency. @@ -13211,6 +17170,9 @@ if (_json.containsKey("deliveryTime")) { deliveryTime = new DeliveryTime.fromJson(_json["deliveryTime"]); } + if (_json.containsKey("eligibility")) { + eligibility = _json["eligibility"]; + } if (_json.containsKey("minimumOrderValue")) { minimumOrderValue = new Price.fromJson(_json["minimumOrderValue"]); } @@ -13239,6 +17201,9 @@ if (deliveryTime != null) { _json["deliveryTime"] = (deliveryTime).toJson(); } + if (eligibility != null) { + _json["eligibility"] = eligibility; + } if (minimumOrderValue != null) { _json["minimumOrderValue"] = (minimumOrderValue).toJson(); } @@ -13253,6 +17218,101 @@ } } +class ShipmentInvoice { + /// Invoice summary. + InvoiceSummary invoiceSummary; + + /// Invoice details per line item. + core.List<ShipmentInvoiceLineItemInvoice> lineItemInvoices; + + /// ID of the shipment group. + core.String shipmentGroupId; + + ShipmentInvoice(); + + ShipmentInvoice.fromJson(core.Map _json) { + if (_json.containsKey("invoiceSummary")) { + invoiceSummary = new InvoiceSummary.fromJson(_json["invoiceSummary"]); + } + if (_json.containsKey("lineItemInvoices")) { + lineItemInvoices = (_json["lineItemInvoices"] as core.List) + .map<ShipmentInvoiceLineItemInvoice>( + (value) => new ShipmentInvoiceLineItemInvoice.fromJson(value)) + .toList(); + } + if (_json.containsKey("shipmentGroupId")) { + shipmentGroupId = _json["shipmentGroupId"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (invoiceSummary != null) { + _json["invoiceSummary"] = (invoiceSummary).toJson(); + } + if (lineItemInvoices != null) { + _json["lineItemInvoices"] = + lineItemInvoices.map((value) => (value).toJson()).toList(); + } + if (shipmentGroupId != null) { + _json["shipmentGroupId"] = shipmentGroupId; + } + return _json; + } +} + +class ShipmentInvoiceLineItemInvoice { + /// ID of the line item. Either lineItemId or productId must be set. + core.String lineItemId; + + /// ID of the product. This is the REST ID used in the products service. + /// Either lineItemId or productId must be set. + core.String productId; + + /// Unit IDs to define specific units within the line item. + core.List<core.String> shipmentUnitIds; + + /// Invoice details for a single unit. + UnitInvoice unitInvoice; + + ShipmentInvoiceLineItemInvoice(); + + ShipmentInvoiceLineItemInvoice.fromJson(core.Map _json) { + if (_json.containsKey("lineItemId")) { + lineItemId = _json["lineItemId"]; + } + if (_json.containsKey("productId")) { + productId = _json["productId"]; + } + if (_json.containsKey("shipmentUnitIds")) { + shipmentUnitIds = + (_json["shipmentUnitIds"] as core.List).cast<core.String>(); + } + if (_json.containsKey("unitInvoice")) { + unitInvoice = new UnitInvoice.fromJson(_json["unitInvoice"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (lineItemId != null) { + _json["lineItemId"] = lineItemId; + } + if (productId != null) { + _json["productId"] = productId; + } + if (shipmentUnitIds != null) { + _json["shipmentUnitIds"] = shipmentUnitIds; + } + if (unitInvoice != null) { + _json["unitInvoice"] = (unitInvoice).toJson(); + } + return _json; + } +} + /// The merchant account's shipping settings. class ShippingSettings { /// The ID of the account to which these account shipping settings belong. @@ -13752,16 +17812,15 @@ /// Email address of the customer. core.String email; - /// If set, this indicates the user explicitly chose to opt in or out of - /// providing marketing rights to the merchant. If unset, this indicates the - /// user has already made this choice in a previous purchase, and was thus not - /// shown the marketing right opt in/out checkbox during the checkout flow. - /// Optional. + /// Deprecated. Please use marketingRightsInfo instead. core.bool explicitMarketingPreference; /// Full name of the customer. core.String fullName; + /// Customer's marketing preferences. + TestOrderCustomerMarketingRightsInfo marketingRightsInfo; + TestOrderCustomer(); TestOrderCustomer.fromJson(core.Map _json) { @@ -13774,6 +17833,10 @@ if (_json.containsKey("fullName")) { fullName = _json["fullName"]; } + if (_json.containsKey("marketingRightsInfo")) { + marketingRightsInfo = new TestOrderCustomerMarketingRightsInfo.fromJson( + _json["marketingRightsInfo"]); + } } core.Map<core.String, core.Object> toJson() { @@ -13788,6 +17851,42 @@ if (fullName != null) { _json["fullName"] = fullName; } + if (marketingRightsInfo != null) { + _json["marketingRightsInfo"] = (marketingRightsInfo).toJson(); + } + return _json; + } +} + +class TestOrderCustomerMarketingRightsInfo { + /// Last know user use selection regards marketing preferences. In certain + /// cases selection might not be known, so this field would be empty. + core.String explicitMarketingPreference; + + /// Timestamp when last time marketing preference was updated. Could be empty, + /// if user wasn't offered a selection yet. + core.String lastUpdatedTimestamp; + + TestOrderCustomerMarketingRightsInfo(); + + TestOrderCustomerMarketingRightsInfo.fromJson(core.Map _json) { + if (_json.containsKey("explicitMarketingPreference")) { + explicitMarketingPreference = _json["explicitMarketingPreference"]; + } + if (_json.containsKey("lastUpdatedTimestamp")) { + lastUpdatedTimestamp = _json["lastUpdatedTimestamp"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (explicitMarketingPreference != null) { + _json["explicitMarketingPreference"] = explicitMarketingPreference; + } + if (lastUpdatedTimestamp != null) { + _json["lastUpdatedTimestamp"] = lastUpdatedTimestamp; + } return _json; } } @@ -14044,6 +18143,151 @@ } } +class UnitInvoice { + /// Additional charges for a unit, e.g. shipping costs. + core.List<UnitInvoiceAdditionalCharge> additionalCharges; + + /// Promotions applied to a unit. + core.List<Promotion> promotions; + + /// Price of the unit, before applying taxes. + Price unitPricePretax; + + /// Tax amounts to apply to the unit price. + core.List<UnitInvoiceTaxLine> unitPriceTaxes; + + UnitInvoice(); + + UnitInvoice.fromJson(core.Map _json) { + if (_json.containsKey("additionalCharges")) { + additionalCharges = (_json["additionalCharges"] as core.List) + .map<UnitInvoiceAdditionalCharge>( + (value) => new UnitInvoiceAdditionalCharge.fromJson(value)) + .toList(); + } + if (_json.containsKey("promotions")) { + promotions = (_json["promotions"] as core.List) + .map<Promotion>((value) => new Promotion.fromJson(value)) + .toList(); + } + if (_json.containsKey("unitPricePretax")) { + unitPricePretax = new Price.fromJson(_json["unitPricePretax"]); + } + if (_json.containsKey("unitPriceTaxes")) { + unitPriceTaxes = (_json["unitPriceTaxes"] as core.List) + .map<UnitInvoiceTaxLine>( + (value) => new UnitInvoiceTaxLine.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (additionalCharges != null) { + _json["additionalCharges"] = + additionalCharges.map((value) => (value).toJson()).toList(); + } + if (promotions != null) { + _json["promotions"] = + promotions.map((value) => (value).toJson()).toList(); + } + if (unitPricePretax != null) { + _json["unitPricePretax"] = (unitPricePretax).toJson(); + } + if (unitPriceTaxes != null) { + _json["unitPriceTaxes"] = + unitPriceTaxes.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +class UnitInvoiceAdditionalCharge { + /// Amount of the additional charge. + Amount additionalChargeAmount; + + /// Promotions applied to the additional charge. + core.List<Promotion> additionalChargePromotions; + + /// Type of the additional charge. + core.String type; + + UnitInvoiceAdditionalCharge(); + + UnitInvoiceAdditionalCharge.fromJson(core.Map _json) { + if (_json.containsKey("additionalChargeAmount")) { + additionalChargeAmount = + new Amount.fromJson(_json["additionalChargeAmount"]); + } + if (_json.containsKey("additionalChargePromotions")) { + additionalChargePromotions = + (_json["additionalChargePromotions"] as core.List) + .map<Promotion>((value) => new Promotion.fromJson(value)) + .toList(); + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (additionalChargeAmount != null) { + _json["additionalChargeAmount"] = (additionalChargeAmount).toJson(); + } + if (additionalChargePromotions != null) { + _json["additionalChargePromotions"] = + additionalChargePromotions.map((value) => (value).toJson()).toList(); + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +class UnitInvoiceTaxLine { + /// Tax amount for the tax type. + Price taxAmount; + + /// Optional name of the tax type. + core.String taxName; + + /// Type of the tax. + core.String taxType; + + UnitInvoiceTaxLine(); + + UnitInvoiceTaxLine.fromJson(core.Map _json) { + if (_json.containsKey("taxAmount")) { + taxAmount = new Price.fromJson(_json["taxAmount"]); + } + if (_json.containsKey("taxName")) { + taxName = _json["taxName"]; + } + if (_json.containsKey("taxType")) { + taxType = _json["taxType"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (taxAmount != null) { + _json["taxAmount"] = (taxAmount).toJson(); + } + if (taxName != null) { + _json["taxName"] = taxName; + } + if (taxType != null) { + _json["taxType"] = taxType; + } + return _json; + } +} + /// The single value of a rate group or the value of a rate group table's cell. /// Exactly one of noShipping, flatRate, pricePercentage, carrierRateName, /// subtableName must be set.
diff --git a/generated/googleapis/lib/content/v2sandbox.dart b/generated/googleapis/lib/content/v2sandbox.dart index 4566966..86bd70b 100644 --- a/generated/googleapis/lib/content/v2sandbox.dart +++ b/generated/googleapis/lib/content/v2sandbox.dart
@@ -24,6 +24,10 @@ final commons.ApiRequester _requester; + OrderinvoicesResourceApi get orderinvoices => + new OrderinvoicesResourceApi(_requester); + OrderpaymentsResourceApi get orderpayments => + new OrderpaymentsResourceApi(_requester); OrdersResourceApi get orders => new OrdersResourceApi(_requester); ContentApi(http.Client client, @@ -33,6 +37,389 @@ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); } +class OrderinvoicesResourceApi { + final commons.ApiRequester _requester; + + OrderinvoicesResourceApi(commons.ApiRequester client) : _requester = client; + + /// Creates a charge invoice for a shipment group, and triggers a charge + /// capture for non-facilitated payment orders. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the account that manages the order. This cannot + /// be a multi-client account. + /// + /// [orderId] - The ID of the order. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [OrderinvoicesCreateChargeInvoiceResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<OrderinvoicesCreateChargeInvoiceResponse> createchargeinvoice( + OrderinvoicesCreateChargeInvoiceRequest request, + core.String merchantId, + core.String orderId, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (orderId == null) { + throw new core.ArgumentError("Parameter orderId is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/orderinvoices/' + + commons.Escaper.ecapeVariable('$orderId') + + '/createChargeInvoice'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then( + (data) => new OrderinvoicesCreateChargeInvoiceResponse.fromJson(data)); + } + + /// Creates a refund invoice for one or more shipment groups, and triggers a + /// refund for non-facilitated payment orders. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the account that manages the order. This cannot + /// be a multi-client account. + /// + /// [orderId] - The ID of the order. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [OrderinvoicesCreateRefundInvoiceResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<OrderinvoicesCreateRefundInvoiceResponse> createrefundinvoice( + OrderinvoicesCreateRefundInvoiceRequest request, + core.String merchantId, + core.String orderId, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (orderId == null) { + throw new core.ArgumentError("Parameter orderId is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/orderinvoices/' + + commons.Escaper.ecapeVariable('$orderId') + + '/createRefundInvoice'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then( + (data) => new OrderinvoicesCreateRefundInvoiceResponse.fromJson(data)); + } +} + +class OrderpaymentsResourceApi { + final commons.ApiRequester _requester; + + OrderpaymentsResourceApi(commons.ApiRequester client) : _requester = client; + + /// Notify about successfully authorizing user's payment method for a given + /// amount. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the account that manages the order. This cannot + /// be a multi-client account. + /// + /// [orderId] - The ID of the order for for which payment authorization is + /// happening. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [OrderpaymentsNotifyAuthApprovedResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<OrderpaymentsNotifyAuthApprovedResponse> notifyauthapproved( + OrderpaymentsNotifyAuthApprovedRequest request, + core.String merchantId, + core.String orderId, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (orderId == null) { + throw new core.ArgumentError("Parameter orderId is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/orderpayments/' + + commons.Escaper.ecapeVariable('$orderId') + + '/notifyAuthApproved'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then( + (data) => new OrderpaymentsNotifyAuthApprovedResponse.fromJson(data)); + } + + /// Notify about failure to authorize user's payment method. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the account that manages the order. This cannot + /// be a multi-client account. + /// + /// [orderId] - The ID of the order for which payment authorization was + /// declined. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [OrderpaymentsNotifyAuthDeclinedResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<OrderpaymentsNotifyAuthDeclinedResponse> notifyauthdeclined( + OrderpaymentsNotifyAuthDeclinedRequest request, + core.String merchantId, + core.String orderId, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (orderId == null) { + throw new core.ArgumentError("Parameter orderId is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/orderpayments/' + + commons.Escaper.ecapeVariable('$orderId') + + '/notifyAuthDeclined'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then( + (data) => new OrderpaymentsNotifyAuthDeclinedResponse.fromJson(data)); + } + + /// Notify about charge on user's selected payments method. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the account that manages the order. This cannot + /// be a multi-client account. + /// + /// [orderId] - The ID of the order for which charge is happening. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [OrderpaymentsNotifyChargeResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<OrderpaymentsNotifyChargeResponse> notifycharge( + OrderpaymentsNotifyChargeRequest request, + core.String merchantId, + core.String orderId, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (orderId == null) { + throw new core.ArgumentError("Parameter orderId is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/orderpayments/' + + commons.Escaper.ecapeVariable('$orderId') + + '/notifyCharge'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response + .then((data) => new OrderpaymentsNotifyChargeResponse.fromJson(data)); + } + + /// Notify about refund on user's selected payments method. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [merchantId] - The ID of the account that manages the order. This cannot + /// be a multi-client account. + /// + /// [orderId] - The ID of the order for which charge is happening. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [OrderpaymentsNotifyRefundResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<OrderpaymentsNotifyRefundResponse> notifyrefund( + OrderpaymentsNotifyRefundRequest request, + core.String merchantId, + core.String orderId, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if (merchantId == null) { + throw new core.ArgumentError("Parameter merchantId is required."); + } + if (orderId == null) { + throw new core.ArgumentError("Parameter orderId is required."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$merchantId') + + '/orderpayments/' + + commons.Escaper.ecapeVariable('$orderId') + + '/notifyRefund'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response + .then((data) => new OrderpaymentsNotifyRefundResponse.fromJson(data)); + } +} + class OrdersResourceApi { final commons.ApiRequester _requester; @@ -1250,6 +1637,37 @@ } } +class Amount { + /// Value before taxes. + Price pretax; + + /// Tax value. + Price tax; + + Amount(); + + Amount.fromJson(core.Map _json) { + if (_json.containsKey("pretax")) { + pretax = new Price.fromJson(_json["pretax"]); + } + if (_json.containsKey("tax")) { + tax = new Price.fromJson(_json["tax"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (pretax != null) { + _json["pretax"] = (pretax).toJson(); + } + if (tax != null) { + _json["tax"] = (tax).toJson(); + } + return _json; + } +} + /// An error returned by the API. class Error { /// The domain of the error. @@ -1334,6 +1752,120 @@ } } +class InvoiceSummary { + /// Summary of the total amounts of the additional charges. + core.List<InvoiceSummaryAdditionalChargeSummary> additionalChargeSummaries; + + /// Customer balance on this invoice. A positive amount means the customer is + /// paying, a negative one means the customer is receiving money. Note that it + /// must always be true that merchant_balance + customer_balance + + /// google_balance = 0. + Amount customerBalance; + + /// Google balance on this invoice. A positive amount means Google is paying, + /// a negative one means Google is receiving money. Note that it must always + /// be true that merchant_balance + customer_balance + google_balance = 0. + Amount googleBalance; + + /// Merchant balance on this invoice. A positive amount means the merchant is + /// paying, a negative one means the merchant is receiving money. Note that it + /// must always be true that merchant_balance + customer_balance + + /// google_balance = 0. + Amount merchantBalance; + + /// Total price for the product. + Amount productTotal; + + /// Summary for each promotion. + core.List<Promotion> promotionSummaries; + + InvoiceSummary(); + + InvoiceSummary.fromJson(core.Map _json) { + if (_json.containsKey("additionalChargeSummaries")) { + additionalChargeSummaries = + (_json["additionalChargeSummaries"] as core.List) + .map<InvoiceSummaryAdditionalChargeSummary>((value) => + new InvoiceSummaryAdditionalChargeSummary.fromJson(value)) + .toList(); + } + if (_json.containsKey("customerBalance")) { + customerBalance = new Amount.fromJson(_json["customerBalance"]); + } + if (_json.containsKey("googleBalance")) { + googleBalance = new Amount.fromJson(_json["googleBalance"]); + } + if (_json.containsKey("merchantBalance")) { + merchantBalance = new Amount.fromJson(_json["merchantBalance"]); + } + if (_json.containsKey("productTotal")) { + productTotal = new Amount.fromJson(_json["productTotal"]); + } + if (_json.containsKey("promotionSummaries")) { + promotionSummaries = (_json["promotionSummaries"] as core.List) + .map<Promotion>((value) => new Promotion.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (additionalChargeSummaries != null) { + _json["additionalChargeSummaries"] = + additionalChargeSummaries.map((value) => (value).toJson()).toList(); + } + if (customerBalance != null) { + _json["customerBalance"] = (customerBalance).toJson(); + } + if (googleBalance != null) { + _json["googleBalance"] = (googleBalance).toJson(); + } + if (merchantBalance != null) { + _json["merchantBalance"] = (merchantBalance).toJson(); + } + if (productTotal != null) { + _json["productTotal"] = (productTotal).toJson(); + } + if (promotionSummaries != null) { + _json["promotionSummaries"] = + promotionSummaries.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +class InvoiceSummaryAdditionalChargeSummary { + /// Total additional charge for this type. + Amount totalAmount; + + /// Type of the additional charge. + core.String type; + + InvoiceSummaryAdditionalChargeSummary(); + + InvoiceSummaryAdditionalChargeSummary.fromJson(core.Map _json) { + if (_json.containsKey("totalAmount")) { + totalAmount = new Amount.fromJson(_json["totalAmount"]); + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (totalAmount != null) { + _json["totalAmount"] = (totalAmount).toJson(); + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + class Order { /// Whether the order was acknowledged. core.bool acknowledged; @@ -1641,9 +2173,9 @@ core.int quantity; /// The reason for the cancellation. Orders that are cancelled with a - /// noInventory reason will lead to the removal of the product from POG until - /// you make an update to that product. This will not affect your Shopping - /// ads. + /// noInventory reason will lead to the removal of the product from Shopping + /// Actions until you make an update to that product. This will not affect + /// your Shopping ads. core.String reason; /// The explanation of the reason. @@ -1692,18 +2224,19 @@ } class OrderCustomer { - /// Email address of the customer. + /// Email address that should be used for order related communications. In + /// certain cases this might not be a real users email, but a proxy email. core.String email; - /// If set, this indicates the user explicitly chose to opt in or out of - /// providing marketing rights to the merchant. If unset, this indicates the - /// user has already made this choice in a previous purchase, and was thus not - /// shown the marketing right opt in/out checkbox during the checkout flow. + /// Deprecated. Please use marketingRightsInfo instead. core.bool explicitMarketingPreference; /// Full name of the customer. core.String fullName; + /// Customer's marketing preferences. + OrderCustomerMarketingRightsInfo marketingRightsInfo; + OrderCustomer(); OrderCustomer.fromJson(core.Map _json) { @@ -1716,6 +2249,10 @@ if (_json.containsKey("fullName")) { fullName = _json["fullName"]; } + if (_json.containsKey("marketingRightsInfo")) { + marketingRightsInfo = new OrderCustomerMarketingRightsInfo.fromJson( + _json["marketingRightsInfo"]); + } } core.Map<core.String, core.Object> toJson() { @@ -1730,6 +2267,52 @@ if (fullName != null) { _json["fullName"] = fullName; } + if (marketingRightsInfo != null) { + _json["marketingRightsInfo"] = (marketingRightsInfo).toJson(); + } + return _json; + } +} + +class OrderCustomerMarketingRightsInfo { + /// Last known user selection regarding marketing preferences. In certain + /// cases this selection might not be known, so this field would be empty. + core.String explicitMarketingPreference; + + /// Timestamp when last time marketing preference was updated. Could be empty, + /// if user wasn't offered a selection yet. + core.String lastUpdatedTimestamp; + + /// Email address that can be used for marketing purposes. This field is only + /// filled when explicitMarketingPreference is equal to 'granted'. + core.String marketingEmailAddress; + + OrderCustomerMarketingRightsInfo(); + + OrderCustomerMarketingRightsInfo.fromJson(core.Map _json) { + if (_json.containsKey("explicitMarketingPreference")) { + explicitMarketingPreference = _json["explicitMarketingPreference"]; + } + if (_json.containsKey("lastUpdatedTimestamp")) { + lastUpdatedTimestamp = _json["lastUpdatedTimestamp"]; + } + if (_json.containsKey("marketingEmailAddress")) { + marketingEmailAddress = _json["marketingEmailAddress"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (explicitMarketingPreference != null) { + _json["explicitMarketingPreference"] = explicitMarketingPreference; + } + if (lastUpdatedTimestamp != null) { + _json["lastUpdatedTimestamp"] = lastUpdatedTimestamp; + } + if (marketingEmailAddress != null) { + _json["marketingEmailAddress"] = marketingEmailAddress; + } return _json; } } @@ -2755,6 +3338,506 @@ } } +class OrderinvoicesCreateChargeInvoiceRequest { + /// The ID of the invoice. + core.String invoiceId; + + /// Invoice summary. + InvoiceSummary invoiceSummary; + + /// Invoice details per line item. + core.List<ShipmentInvoiceLineItemInvoice> lineItemInvoices; + + /// The ID of the operation, unique across all operations for a given order. + core.String operationId; + + /// ID of the shipment group. + core.String shipmentGroupId; + + OrderinvoicesCreateChargeInvoiceRequest(); + + OrderinvoicesCreateChargeInvoiceRequest.fromJson(core.Map _json) { + if (_json.containsKey("invoiceId")) { + invoiceId = _json["invoiceId"]; + } + if (_json.containsKey("invoiceSummary")) { + invoiceSummary = new InvoiceSummary.fromJson(_json["invoiceSummary"]); + } + if (_json.containsKey("lineItemInvoices")) { + lineItemInvoices = (_json["lineItemInvoices"] as core.List) + .map<ShipmentInvoiceLineItemInvoice>( + (value) => new ShipmentInvoiceLineItemInvoice.fromJson(value)) + .toList(); + } + if (_json.containsKey("operationId")) { + operationId = _json["operationId"]; + } + if (_json.containsKey("shipmentGroupId")) { + shipmentGroupId = _json["shipmentGroupId"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (invoiceId != null) { + _json["invoiceId"] = invoiceId; + } + if (invoiceSummary != null) { + _json["invoiceSummary"] = (invoiceSummary).toJson(); + } + if (lineItemInvoices != null) { + _json["lineItemInvoices"] = + lineItemInvoices.map((value) => (value).toJson()).toList(); + } + if (operationId != null) { + _json["operationId"] = operationId; + } + if (shipmentGroupId != null) { + _json["shipmentGroupId"] = shipmentGroupId; + } + return _json; + } +} + +class OrderinvoicesCreateChargeInvoiceResponse { + /// The status of the execution. + core.String executionStatus; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#orderinvoicesCreateChargeInvoiceResponse". + core.String kind; + + OrderinvoicesCreateChargeInvoiceResponse(); + + OrderinvoicesCreateChargeInvoiceResponse.fromJson(core.Map _json) { + if (_json.containsKey("executionStatus")) { + executionStatus = _json["executionStatus"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (executionStatus != null) { + _json["executionStatus"] = executionStatus; + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + +class OrderinvoicesCreateRefundInvoiceRequest { + /// The ID of the invoice. + core.String invoiceId; + + /// The ID of the operation, unique across all operations for a given order. + core.String operationId; + + /// Option to create a refund-only invoice. Exactly one of refund_option and + /// return_option must be provided. + OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption + refundOnlyOption; + + /// Option to create an invoice for a refund and mark all items within the + /// invoice as returned. Exactly one of refund_option and return_option must + /// be provided. + OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption + returnOption; + + /// Invoice details for different shipment groups. + core.List<ShipmentInvoice> shipmentInvoices; + + OrderinvoicesCreateRefundInvoiceRequest(); + + OrderinvoicesCreateRefundInvoiceRequest.fromJson(core.Map _json) { + if (_json.containsKey("invoiceId")) { + invoiceId = _json["invoiceId"]; + } + if (_json.containsKey("operationId")) { + operationId = _json["operationId"]; + } + if (_json.containsKey("refundOnlyOption")) { + refundOnlyOption = + new OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption + .fromJson(_json["refundOnlyOption"]); + } + if (_json.containsKey("returnOption")) { + returnOption = + new OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption + .fromJson(_json["returnOption"]); + } + if (_json.containsKey("shipmentInvoices")) { + shipmentInvoices = (_json["shipmentInvoices"] as core.List) + .map<ShipmentInvoice>((value) => new ShipmentInvoice.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (invoiceId != null) { + _json["invoiceId"] = invoiceId; + } + if (operationId != null) { + _json["operationId"] = operationId; + } + if (refundOnlyOption != null) { + _json["refundOnlyOption"] = (refundOnlyOption).toJson(); + } + if (returnOption != null) { + _json["returnOption"] = (returnOption).toJson(); + } + if (shipmentInvoices != null) { + _json["shipmentInvoices"] = + shipmentInvoices.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +class OrderinvoicesCreateRefundInvoiceResponse { + /// The status of the execution. + core.String executionStatus; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#orderinvoicesCreateRefundInvoiceResponse". + core.String kind; + + OrderinvoicesCreateRefundInvoiceResponse(); + + OrderinvoicesCreateRefundInvoiceResponse.fromJson(core.Map _json) { + if (_json.containsKey("executionStatus")) { + executionStatus = _json["executionStatus"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (executionStatus != null) { + _json["executionStatus"] = executionStatus; + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + +class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption { + /// Optional description of the refund reason. + core.String description; + + /// Reason for the refund. + core.String reason; + + OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption(); + + OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption.fromJson( + core.Map _json) { + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("reason")) { + reason = _json["reason"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (description != null) { + _json["description"] = description; + } + if (reason != null) { + _json["reason"] = reason; + } + return _json; + } +} + +class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption { + /// Optional description of the return reason. + core.String description; + + /// Reason for the return. + core.String reason; + + OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption(); + + OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption.fromJson( + core.Map _json) { + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("reason")) { + reason = _json["reason"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (description != null) { + _json["description"] = description; + } + if (reason != null) { + _json["reason"] = reason; + } + return _json; + } +} + +class OrderpaymentsNotifyAuthApprovedRequest { + Price authAmountPretax; + Price authAmountTax; + + OrderpaymentsNotifyAuthApprovedRequest(); + + OrderpaymentsNotifyAuthApprovedRequest.fromJson(core.Map _json) { + if (_json.containsKey("authAmountPretax")) { + authAmountPretax = new Price.fromJson(_json["authAmountPretax"]); + } + if (_json.containsKey("authAmountTax")) { + authAmountTax = new Price.fromJson(_json["authAmountTax"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (authAmountPretax != null) { + _json["authAmountPretax"] = (authAmountPretax).toJson(); + } + if (authAmountTax != null) { + _json["authAmountTax"] = (authAmountTax).toJson(); + } + return _json; + } +} + +class OrderpaymentsNotifyAuthApprovedResponse { + /// The status of the execution. + core.String executionStatus; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#orderpaymentsNotifyAuthApprovedResponse". + core.String kind; + + OrderpaymentsNotifyAuthApprovedResponse(); + + OrderpaymentsNotifyAuthApprovedResponse.fromJson(core.Map _json) { + if (_json.containsKey("executionStatus")) { + executionStatus = _json["executionStatus"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (executionStatus != null) { + _json["executionStatus"] = executionStatus; + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + +class OrderpaymentsNotifyAuthDeclinedRequest { + /// Reason why payment authorization was declined. + core.String declineReason; + + OrderpaymentsNotifyAuthDeclinedRequest(); + + OrderpaymentsNotifyAuthDeclinedRequest.fromJson(core.Map _json) { + if (_json.containsKey("declineReason")) { + declineReason = _json["declineReason"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (declineReason != null) { + _json["declineReason"] = declineReason; + } + return _json; + } +} + +class OrderpaymentsNotifyAuthDeclinedResponse { + /// The status of the execution. + core.String executionStatus; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#orderpaymentsNotifyAuthDeclinedResponse". + core.String kind; + + OrderpaymentsNotifyAuthDeclinedResponse(); + + OrderpaymentsNotifyAuthDeclinedResponse.fromJson(core.Map _json) { + if (_json.containsKey("executionStatus")) { + executionStatus = _json["executionStatus"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (executionStatus != null) { + _json["executionStatus"] = executionStatus; + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + +class OrderpaymentsNotifyChargeRequest { + /// Whether charge was successful. + core.String chargeState; + + /// Invoice ID from orderInvoice service that corresponds to the charge. + core.String invoiceId; + + OrderpaymentsNotifyChargeRequest(); + + OrderpaymentsNotifyChargeRequest.fromJson(core.Map _json) { + if (_json.containsKey("chargeState")) { + chargeState = _json["chargeState"]; + } + if (_json.containsKey("invoiceId")) { + invoiceId = _json["invoiceId"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (chargeState != null) { + _json["chargeState"] = chargeState; + } + if (invoiceId != null) { + _json["invoiceId"] = invoiceId; + } + return _json; + } +} + +class OrderpaymentsNotifyChargeResponse { + /// The status of the execution. + core.String executionStatus; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#orderpaymentsNotifyChargeResponse". + core.String kind; + + OrderpaymentsNotifyChargeResponse(); + + OrderpaymentsNotifyChargeResponse.fromJson(core.Map _json) { + if (_json.containsKey("executionStatus")) { + executionStatus = _json["executionStatus"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (executionStatus != null) { + _json["executionStatus"] = executionStatus; + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + +class OrderpaymentsNotifyRefundRequest { + /// Invoice ID from orderInvoice service that corresponds to the charge. + core.String invoiceId; + + /// Whether refund was successful. + core.String refundState; + + OrderpaymentsNotifyRefundRequest(); + + OrderpaymentsNotifyRefundRequest.fromJson(core.Map _json) { + if (_json.containsKey("invoiceId")) { + invoiceId = _json["invoiceId"]; + } + if (_json.containsKey("refundState")) { + refundState = _json["refundState"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (invoiceId != null) { + _json["invoiceId"] = invoiceId; + } + if (refundState != null) { + _json["refundState"] = refundState; + } + return _json; + } +} + +class OrderpaymentsNotifyRefundResponse { + /// The status of the execution. + core.String executionStatus; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "content#orderpaymentsNotifyRefundResponse". + core.String kind; + + OrderpaymentsNotifyRefundResponse(); + + OrderpaymentsNotifyRefundResponse.fromJson(core.Map _json) { + if (_json.containsKey("executionStatus")) { + executionStatus = _json["executionStatus"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (executionStatus != null) { + _json["executionStatus"] = executionStatus; + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + class OrdersAcknowledgeRequest { /// The ID of the operation. Unique across all operations for a given order. core.String operationId; @@ -3824,6 +4907,10 @@ /// Line items to ship. core.List<OrderShipmentLineItemShipment> lineItems; + /// ID of the shipment group. Required for orders that use the orderinvoices + /// service. + core.String shipmentGroupId; + /// Deprecated. Please use shipmentInfo instead. The ID of the shipment. core.String shipmentId; @@ -3848,6 +4935,9 @@ (value) => new OrderShipmentLineItemShipment.fromJson(value)) .toList(); } + if (_json.containsKey("shipmentGroupId")) { + shipmentGroupId = _json["shipmentGroupId"]; + } if (_json.containsKey("shipmentId")) { shipmentId = _json["shipmentId"]; } @@ -3873,6 +4963,9 @@ if (lineItems != null) { _json["lineItems"] = lineItems.map((value) => (value).toJson()).toList(); } + if (shipmentGroupId != null) { + _json["shipmentGroupId"] = shipmentGroupId; + } if (shipmentId != null) { _json["shipmentId"] = shipmentId; } @@ -4874,6 +5967,10 @@ /// The ID of the operation. Unique across all operations for a given order. core.String operationId; + /// ID of the shipment group. Required for orders that use the orderinvoices + /// service. + core.String shipmentGroupId; + /// Deprecated. Please use shipmentInfo instead. The ID of the shipment. core.String shipmentId; @@ -4901,6 +5998,9 @@ if (_json.containsKey("operationId")) { operationId = _json["operationId"]; } + if (_json.containsKey("shipmentGroupId")) { + shipmentGroupId = _json["shipmentGroupId"]; + } if (_json.containsKey("shipmentId")) { shipmentId = _json["shipmentId"]; } @@ -4929,6 +6029,9 @@ if (operationId != null) { _json["operationId"] = operationId; } + if (shipmentGroupId != null) { + _json["shipmentGroupId"] = shipmentGroupId; + } if (shipmentId != null) { _json["shipmentId"] = shipmentId; } @@ -5256,6 +6359,133 @@ } } +class Promotion { + /// Amount of the promotion. The values here are the promotion applied to the + /// unit price pretax and to the total of the tax amounts. + Amount promotionAmount; + + /// ID of the promotion. + core.String promotionId; + + Promotion(); + + Promotion.fromJson(core.Map _json) { + if (_json.containsKey("promotionAmount")) { + promotionAmount = new Amount.fromJson(_json["promotionAmount"]); + } + if (_json.containsKey("promotionId")) { + promotionId = _json["promotionId"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (promotionAmount != null) { + _json["promotionAmount"] = (promotionAmount).toJson(); + } + if (promotionId != null) { + _json["promotionId"] = promotionId; + } + return _json; + } +} + +class ShipmentInvoice { + /// Invoice summary. + InvoiceSummary invoiceSummary; + + /// Invoice details per line item. + core.List<ShipmentInvoiceLineItemInvoice> lineItemInvoices; + + /// ID of the shipment group. + core.String shipmentGroupId; + + ShipmentInvoice(); + + ShipmentInvoice.fromJson(core.Map _json) { + if (_json.containsKey("invoiceSummary")) { + invoiceSummary = new InvoiceSummary.fromJson(_json["invoiceSummary"]); + } + if (_json.containsKey("lineItemInvoices")) { + lineItemInvoices = (_json["lineItemInvoices"] as core.List) + .map<ShipmentInvoiceLineItemInvoice>( + (value) => new ShipmentInvoiceLineItemInvoice.fromJson(value)) + .toList(); + } + if (_json.containsKey("shipmentGroupId")) { + shipmentGroupId = _json["shipmentGroupId"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (invoiceSummary != null) { + _json["invoiceSummary"] = (invoiceSummary).toJson(); + } + if (lineItemInvoices != null) { + _json["lineItemInvoices"] = + lineItemInvoices.map((value) => (value).toJson()).toList(); + } + if (shipmentGroupId != null) { + _json["shipmentGroupId"] = shipmentGroupId; + } + return _json; + } +} + +class ShipmentInvoiceLineItemInvoice { + /// ID of the line item. Either lineItemId or productId must be set. + core.String lineItemId; + + /// ID of the product. This is the REST ID used in the products service. + /// Either lineItemId or productId must be set. + core.String productId; + + /// Unit IDs to define specific units within the line item. + core.List<core.String> shipmentUnitIds; + + /// Invoice details for a single unit. + UnitInvoice unitInvoice; + + ShipmentInvoiceLineItemInvoice(); + + ShipmentInvoiceLineItemInvoice.fromJson(core.Map _json) { + if (_json.containsKey("lineItemId")) { + lineItemId = _json["lineItemId"]; + } + if (_json.containsKey("productId")) { + productId = _json["productId"]; + } + if (_json.containsKey("shipmentUnitIds")) { + shipmentUnitIds = + (_json["shipmentUnitIds"] as core.List).cast<core.String>(); + } + if (_json.containsKey("unitInvoice")) { + unitInvoice = new UnitInvoice.fromJson(_json["unitInvoice"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (lineItemId != null) { + _json["lineItemId"] = lineItemId; + } + if (productId != null) { + _json["productId"] = productId; + } + if (shipmentUnitIds != null) { + _json["shipmentUnitIds"] = shipmentUnitIds; + } + if (unitInvoice != null) { + _json["unitInvoice"] = (unitInvoice).toJson(); + } + return _json; + } +} + class TestOrder { /// The details of the customer who placed the order. TestOrderCustomer customer; @@ -5373,16 +6603,15 @@ /// Email address of the customer. core.String email; - /// If set, this indicates the user explicitly chose to opt in or out of - /// providing marketing rights to the merchant. If unset, this indicates the - /// user has already made this choice in a previous purchase, and was thus not - /// shown the marketing right opt in/out checkbox during the checkout flow. - /// Optional. + /// Deprecated. Please use marketingRightsInfo instead. core.bool explicitMarketingPreference; /// Full name of the customer. core.String fullName; + /// Customer's marketing preferences. + TestOrderCustomerMarketingRightsInfo marketingRightsInfo; + TestOrderCustomer(); TestOrderCustomer.fromJson(core.Map _json) { @@ -5395,6 +6624,10 @@ if (_json.containsKey("fullName")) { fullName = _json["fullName"]; } + if (_json.containsKey("marketingRightsInfo")) { + marketingRightsInfo = new TestOrderCustomerMarketingRightsInfo.fromJson( + _json["marketingRightsInfo"]); + } } core.Map<core.String, core.Object> toJson() { @@ -5409,6 +6642,42 @@ if (fullName != null) { _json["fullName"] = fullName; } + if (marketingRightsInfo != null) { + _json["marketingRightsInfo"] = (marketingRightsInfo).toJson(); + } + return _json; + } +} + +class TestOrderCustomerMarketingRightsInfo { + /// Last know user use selection regards marketing preferences. In certain + /// cases selection might not be known, so this field would be empty. + core.String explicitMarketingPreference; + + /// Timestamp when last time marketing preference was updated. Could be empty, + /// if user wasn't offered a selection yet. + core.String lastUpdatedTimestamp; + + TestOrderCustomerMarketingRightsInfo(); + + TestOrderCustomerMarketingRightsInfo.fromJson(core.Map _json) { + if (_json.containsKey("explicitMarketingPreference")) { + explicitMarketingPreference = _json["explicitMarketingPreference"]; + } + if (_json.containsKey("lastUpdatedTimestamp")) { + lastUpdatedTimestamp = _json["lastUpdatedTimestamp"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (explicitMarketingPreference != null) { + _json["explicitMarketingPreference"] = explicitMarketingPreference; + } + if (lastUpdatedTimestamp != null) { + _json["lastUpdatedTimestamp"] = lastUpdatedTimestamp; + } return _json; } } @@ -5664,3 +6933,148 @@ return _json; } } + +class UnitInvoice { + /// Additional charges for a unit, e.g. shipping costs. + core.List<UnitInvoiceAdditionalCharge> additionalCharges; + + /// Promotions applied to a unit. + core.List<Promotion> promotions; + + /// Price of the unit, before applying taxes. + Price unitPricePretax; + + /// Tax amounts to apply to the unit price. + core.List<UnitInvoiceTaxLine> unitPriceTaxes; + + UnitInvoice(); + + UnitInvoice.fromJson(core.Map _json) { + if (_json.containsKey("additionalCharges")) { + additionalCharges = (_json["additionalCharges"] as core.List) + .map<UnitInvoiceAdditionalCharge>( + (value) => new UnitInvoiceAdditionalCharge.fromJson(value)) + .toList(); + } + if (_json.containsKey("promotions")) { + promotions = (_json["promotions"] as core.List) + .map<Promotion>((value) => new Promotion.fromJson(value)) + .toList(); + } + if (_json.containsKey("unitPricePretax")) { + unitPricePretax = new Price.fromJson(_json["unitPricePretax"]); + } + if (_json.containsKey("unitPriceTaxes")) { + unitPriceTaxes = (_json["unitPriceTaxes"] as core.List) + .map<UnitInvoiceTaxLine>( + (value) => new UnitInvoiceTaxLine.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (additionalCharges != null) { + _json["additionalCharges"] = + additionalCharges.map((value) => (value).toJson()).toList(); + } + if (promotions != null) { + _json["promotions"] = + promotions.map((value) => (value).toJson()).toList(); + } + if (unitPricePretax != null) { + _json["unitPricePretax"] = (unitPricePretax).toJson(); + } + if (unitPriceTaxes != null) { + _json["unitPriceTaxes"] = + unitPriceTaxes.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +class UnitInvoiceAdditionalCharge { + /// Amount of the additional charge. + Amount additionalChargeAmount; + + /// Promotions applied to the additional charge. + core.List<Promotion> additionalChargePromotions; + + /// Type of the additional charge. + core.String type; + + UnitInvoiceAdditionalCharge(); + + UnitInvoiceAdditionalCharge.fromJson(core.Map _json) { + if (_json.containsKey("additionalChargeAmount")) { + additionalChargeAmount = + new Amount.fromJson(_json["additionalChargeAmount"]); + } + if (_json.containsKey("additionalChargePromotions")) { + additionalChargePromotions = + (_json["additionalChargePromotions"] as core.List) + .map<Promotion>((value) => new Promotion.fromJson(value)) + .toList(); + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (additionalChargeAmount != null) { + _json["additionalChargeAmount"] = (additionalChargeAmount).toJson(); + } + if (additionalChargePromotions != null) { + _json["additionalChargePromotions"] = + additionalChargePromotions.map((value) => (value).toJson()).toList(); + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +class UnitInvoiceTaxLine { + /// Tax amount for the tax type. + Price taxAmount; + + /// Optional name of the tax type. + core.String taxName; + + /// Type of the tax. + core.String taxType; + + UnitInvoiceTaxLine(); + + UnitInvoiceTaxLine.fromJson(core.Map _json) { + if (_json.containsKey("taxAmount")) { + taxAmount = new Price.fromJson(_json["taxAmount"]); + } + if (_json.containsKey("taxName")) { + taxName = _json["taxName"]; + } + if (_json.containsKey("taxType")) { + taxType = _json["taxType"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (taxAmount != null) { + _json["taxAmount"] = (taxAmount).toJson(); + } + if (taxName != null) { + _json["taxName"] = taxName; + } + if (taxType != null) { + _json["taxType"] = taxType; + } + return _json; + } +}
diff --git a/generated/googleapis/lib/customsearch/v1.dart b/generated/googleapis/lib/customsearch/v1.dart index 5c526ab..f7e61d0 100644 --- a/generated/googleapis/lib/customsearch/v1.dart +++ b/generated/googleapis/lib/customsearch/v1.dart
@@ -31,6 +31,9 @@ class CseResourceApi { final commons.ApiRequester _requester; + CseSiterestrictResourceApi get siterestrict => + new CseSiterestrictResourceApi(_requester); + CseResourceApi(commons.ApiRequester client) : _requester = client; /// Returns metadata about the search performed, metadata about the custom @@ -353,6 +356,332 @@ } } +class CseSiterestrictResourceApi { + final commons.ApiRequester _requester; + + CseSiterestrictResourceApi(commons.ApiRequester client) : _requester = client; + + /// (Closed Beta API) Returns metadata about the search performed, metadata + /// about the custom search engine used for the search, and the search results + /// only for site-restrict cses. + /// + /// Request parameters: + /// + /// [q] - Query + /// + /// [c2coff] - Turns off the translation between zh-CN and zh-TW. + /// + /// [cr] - Country restrict(s). + /// + /// [cx] - The custom search engine ID to scope this search query + /// + /// [dateRestrict] - Specifies all search results are from a time period + /// + /// [exactTerms] - Identifies a phrase that all documents in the search + /// results must contain + /// + /// [excludeTerms] - Identifies a word or phrase that should not appear in any + /// documents in the search results + /// + /// [fileType] - Returns images of a specified type. Some of the allowed + /// values are: bmp, gif, png, jpg, svg, pdf, ... + /// + /// [filter] - Controls turning on or off the duplicate content filter. + /// Possible string values are: + /// - "0" : Turns off duplicate content filter. + /// - "1" : Turns on duplicate content filter. + /// + /// [gl] - Geolocation of end user. + /// + /// [googlehost] - The local Google domain to use to perform the search. + /// + /// [highRange] - Creates a range in form as_nlo value..as_nhi value and + /// attempts to append it to query + /// + /// [hl] - Sets the user interface language. + /// + /// [hq] - Appends the extra query terms to the query. + /// + /// [imgColorType] - Returns black and white, grayscale, or color images: + /// mono, gray, and color. + /// Possible string values are: + /// - "color" : color + /// - "gray" : gray + /// - "mono" : mono + /// + /// [imgDominantColor] - Returns images of a specific dominant color: yellow, + /// green, teal, blue, purple, pink, white, gray, black and brown. + /// Possible string values are: + /// - "black" : black + /// - "blue" : blue + /// - "brown" : brown + /// - "gray" : gray + /// - "green" : green + /// - "pink" : pink + /// - "purple" : purple + /// - "teal" : teal + /// - "white" : white + /// - "yellow" : yellow + /// + /// [imgSize] - Returns images of a specified size, where size can be one of: + /// icon, small, medium, large, xlarge, xxlarge, and huge. + /// Possible string values are: + /// - "huge" : huge + /// - "icon" : icon + /// - "large" : large + /// - "medium" : medium + /// - "small" : small + /// - "xlarge" : xlarge + /// - "xxlarge" : xxlarge + /// + /// [imgType] - Returns images of a type, which can be one of: clipart, face, + /// lineart, news, and photo. + /// Possible string values are: + /// - "clipart" : clipart + /// - "face" : face + /// - "lineart" : lineart + /// - "news" : news + /// - "photo" : photo + /// + /// [linkSite] - Specifies that all search results should contain a link to a + /// particular URL + /// + /// [lowRange] - Creates a range in form as_nlo value..as_nhi value and + /// attempts to append it to query + /// + /// [lr] - The language restriction for the search results + /// Possible string values are: + /// - "lang_ar" : Arabic + /// - "lang_bg" : Bulgarian + /// - "lang_ca" : Catalan + /// - "lang_cs" : Czech + /// - "lang_da" : Danish + /// - "lang_de" : German + /// - "lang_el" : Greek + /// - "lang_en" : English + /// - "lang_es" : Spanish + /// - "lang_et" : Estonian + /// - "lang_fi" : Finnish + /// - "lang_fr" : French + /// - "lang_hr" : Croatian + /// - "lang_hu" : Hungarian + /// - "lang_id" : Indonesian + /// - "lang_is" : Icelandic + /// - "lang_it" : Italian + /// - "lang_iw" : Hebrew + /// - "lang_ja" : Japanese + /// - "lang_ko" : Korean + /// - "lang_lt" : Lithuanian + /// - "lang_lv" : Latvian + /// - "lang_nl" : Dutch + /// - "lang_no" : Norwegian + /// - "lang_pl" : Polish + /// - "lang_pt" : Portuguese + /// - "lang_ro" : Romanian + /// - "lang_ru" : Russian + /// - "lang_sk" : Slovak + /// - "lang_sl" : Slovenian + /// - "lang_sr" : Serbian + /// - "lang_sv" : Swedish + /// - "lang_tr" : Turkish + /// - "lang_zh-CN" : Chinese (Simplified) + /// - "lang_zh-TW" : Chinese (Traditional) + /// + /// [num] - Number of search results to return + /// + /// [orTerms] - Provides additional search terms to check for in a document, + /// where each document in the search results must contain at least one of the + /// additional search terms + /// + /// [relatedSite] - Specifies that all search results should be pages that are + /// related to the specified URL + /// + /// [rights] - Filters based on licensing. Supported values include: + /// cc_publicdomain, cc_attribute, cc_sharealike, cc_noncommercial, + /// cc_nonderived and combinations of these. + /// + /// [safe] - Search safety level + /// Possible string values are: + /// - "high" : Enables highest level of safe search filtering. + /// - "medium" : Enables moderate safe search filtering. + /// - "off" : Disables safe search filtering. + /// + /// [searchType] - Specifies the search type: image. + /// Possible string values are: + /// - "image" : custom image search + /// + /// [siteSearch] - Specifies all search results should be pages from a given + /// site + /// + /// [siteSearchFilter] - Controls whether to include or exclude results from + /// the site named in the as_sitesearch parameter + /// Possible string values are: + /// - "e" : exclude + /// - "i" : include + /// + /// [sort] - The sort expression to apply to the results + /// + /// [start] - The index of the first result to return + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Search]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// 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> list(core.String q, + {core.String c2coff, + core.String cr, + core.String cx, + core.String dateRestrict, + core.String exactTerms, + core.String excludeTerms, + core.String fileType, + core.String filter, + core.String gl, + core.String googlehost, + core.String highRange, + core.String hl, + core.String hq, + core.String imgColorType, + core.String imgDominantColor, + core.String imgSize, + core.String imgType, + core.String linkSite, + core.String lowRange, + core.String lr, + core.int num, + core.String orTerms, + core.String relatedSite, + core.String rights, + core.String safe, + core.String searchType, + core.String siteSearch, + core.String siteSearchFilter, + core.String sort, + core.int start, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (q == null) { + throw new core.ArgumentError("Parameter q is required."); + } + _queryParams["q"] = [q]; + if (c2coff != null) { + _queryParams["c2coff"] = [c2coff]; + } + if (cr != null) { + _queryParams["cr"] = [cr]; + } + if (cx != null) { + _queryParams["cx"] = [cx]; + } + if (dateRestrict != null) { + _queryParams["dateRestrict"] = [dateRestrict]; + } + if (exactTerms != null) { + _queryParams["exactTerms"] = [exactTerms]; + } + if (excludeTerms != null) { + _queryParams["excludeTerms"] = [excludeTerms]; + } + if (fileType != null) { + _queryParams["fileType"] = [fileType]; + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } + if (gl != null) { + _queryParams["gl"] = [gl]; + } + if (googlehost != null) { + _queryParams["googlehost"] = [googlehost]; + } + if (highRange != null) { + _queryParams["highRange"] = [highRange]; + } + if (hl != null) { + _queryParams["hl"] = [hl]; + } + if (hq != null) { + _queryParams["hq"] = [hq]; + } + if (imgColorType != null) { + _queryParams["imgColorType"] = [imgColorType]; + } + if (imgDominantColor != null) { + _queryParams["imgDominantColor"] = [imgDominantColor]; + } + if (imgSize != null) { + _queryParams["imgSize"] = [imgSize]; + } + if (imgType != null) { + _queryParams["imgType"] = [imgType]; + } + if (linkSite != null) { + _queryParams["linkSite"] = [linkSite]; + } + if (lowRange != null) { + _queryParams["lowRange"] = [lowRange]; + } + if (lr != null) { + _queryParams["lr"] = [lr]; + } + if (num != null) { + _queryParams["num"] = ["${num}"]; + } + if (orTerms != null) { + _queryParams["orTerms"] = [orTerms]; + } + if (relatedSite != null) { + _queryParams["relatedSite"] = [relatedSite]; + } + if (rights != null) { + _queryParams["rights"] = [rights]; + } + if (safe != null) { + _queryParams["safe"] = [safe]; + } + if (searchType != null) { + _queryParams["searchType"] = [searchType]; + } + if (siteSearch != null) { + _queryParams["siteSearch"] = [siteSearch]; + } + if (siteSearchFilter != null) { + _queryParams["siteSearchFilter"] = [siteSearchFilter]; + } + if (sort != null) { + _queryParams["sort"] = [sort]; + } + if (start != null) { + _queryParams["start"] = ["${start}"]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/siterestrict'; + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Search.fromJson(data)); + } +} + class ContextFacets { core.String anchor; core.String label;
diff --git a/generated/googleapis/lib/dataproc/v1.dart b/generated/googleapis/lib/dataproc/v1.dart index d2907c3..050a5b8 100644 --- a/generated/googleapis/lib/dataproc/v1.dart +++ b/generated/googleapis/lib/dataproc/v1.dart
@@ -73,6 +73,15 @@ /// [region] - Required. The Cloud Dataproc region in which to handle the /// request. /// + /// [requestId] - Optional. A unique id used to identify the request. If the + /// server receives two CreateClusterRequest requests with the same id, then + /// the second request will be ignored and the first + /// google.longrunning.Operation created and stored in the backend is + /// returned.It is recommended to always set this value to a UUID + /// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must + /// contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and + /// hyphens (-). The maximum length is 40 characters. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -85,7 +94,7 @@ /// this method will complete with the same error. async.Future<Operation> create( Cluster request, core.String projectId, core.String region, - {core.String $fields}) { + {core.String requestId, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -102,6 +111,9 @@ if (region == null) { throw new core.ArgumentError("Parameter region is required."); } + if (requestId != null) { + _queryParams["requestId"] = [requestId]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -133,6 +145,15 @@ /// /// [clusterName] - Required. The cluster name. /// + /// [requestId] - Optional. A unique id used to identify the request. If the + /// server receives two DeleteClusterRequest requests with the same id, then + /// the second request will be ignored and the first + /// google.longrunning.Operation created and stored in the backend is + /// returned.It is recommended to always set this value to a UUID + /// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must + /// contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and + /// hyphens (-). The maximum length is 40 characters. + /// /// [clusterUuid] - Optional. Specifying the cluster_uuid means the RPC should /// fail (with error NOT_FOUND) if cluster with specified UUID does not exist. /// @@ -148,7 +169,7 @@ /// this method will complete with the same error. async.Future<Operation> delete( core.String projectId, core.String region, core.String clusterName, - {core.String clusterUuid, core.String $fields}) { + {core.String requestId, core.String clusterUuid, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -165,6 +186,9 @@ if (clusterName == null) { throw new core.ArgumentError("Parameter clusterName is required."); } + if (requestId != null) { + _queryParams["requestId"] = [requestId]; + } if (clusterUuid != null) { _queryParams["clusterUuid"] = [clusterUuid]; } @@ -327,6 +351,10 @@ /// [region] - Required. The Cloud Dataproc region in which to handle the /// request. /// + /// [pageToken] - Optional. The standard List page token. + /// + /// [pageSize] - Optional. 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 AND field = /// value ...where field is one of status.state, clusterName, or labels.[KEY], @@ -339,10 +367,6 @@ /// implicit AND operator.Example filter:status.state = ACTIVE AND clusterName /// = mycluster AND labels.env = staging AND labels.starred = * /// - /// [pageToken] - Optional. The standard List page token. - /// - /// [pageSize] - Optional. The standard List page size. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -355,9 +379,9 @@ /// this method will complete with the same error. async.Future<ListClustersResponse> list( core.String projectId, core.String region, - {core.String filter, - core.String pageToken, + {core.String pageToken, core.int pageSize, + core.String filter, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -372,15 +396,15 @@ if (region == null) { throw new core.ArgumentError("Parameter region is required."); } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -414,14 +438,6 @@ /// /// [clusterName] - Required. The cluster name. /// - /// [gracefulDecommissionTimeout] - Optional. Timeout for graceful YARN - /// decomissioning. Graceful decommissioning allows removing nodes from the - /// cluster without interrupting jobs in progress. Timeout specifies how long - /// to wait for jobs in progress to finish before forcefully removing nodes - /// (and potentially interrupting jobs). Default timeout is 0 (for forceful - /// decommission), and the maximum allowed timeout is 1 day.Only supported on - /// Dataproc image versions 1.2 and higher. - /// /// [updateMask] - Required. Specifies the path, relative to Cluster, of the /// field to update. For example, to change the number of workers in a cluster /// to 5, the update_mask parameter would be specified as @@ -455,6 +471,23 @@ /// <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td> /// <td>Resize secondary worker group</td> </tr> </tbody> </table> /// + /// [gracefulDecommissionTimeout] - Optional. Timeout for graceful YARN + /// decomissioning. Graceful decommissioning allows removing nodes from the + /// cluster without interrupting jobs in progress. Timeout specifies how long + /// to wait for jobs in progress to finish before forcefully removing nodes + /// (and potentially interrupting jobs). Default timeout is 0 (for forceful + /// decommission), and the maximum allowed timeout is 1 day.Only supported on + /// Dataproc image versions 1.2 and higher. + /// + /// [requestId] - Optional. A unique id used to identify the request. If the + /// server receives two UpdateClusterRequest requests with the same id, then + /// the second request will be ignored and the first + /// google.longrunning.Operation created and stored in the backend is + /// returned.It is recommended to always set this value to a UUID + /// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must + /// contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and + /// hyphens (-). The maximum length is 40 characters. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -467,8 +500,9 @@ /// this method will complete with the same error. async.Future<Operation> patch(Cluster request, core.String projectId, core.String region, core.String clusterName, - {core.String gracefulDecommissionTimeout, - core.String updateMask, + {core.String updateMask, + core.String gracefulDecommissionTimeout, + core.String requestId, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -489,13 +523,16 @@ if (clusterName == null) { throw new core.ArgumentError("Parameter clusterName is required."); } + if (updateMask != null) { + _queryParams["updateMask"] = [updateMask]; + } if (gracefulDecommissionTimeout != null) { _queryParams["gracefulDecommissionTimeout"] = [ gracefulDecommissionTimeout ]; } - if (updateMask != null) { - _queryParams["updateMask"] = [updateMask]; + if (requestId != null) { + _queryParams["requestId"] = [requestId]; } if ($fields != null) { _queryParams["fields"] = [$fields]; @@ -726,14 +763,6 @@ /// [region] - Required. The Cloud Dataproc region in which to handle the /// request. /// - /// [pageToken] - Optional. The page token, returned by a previous call, to - /// request the next page of results. - /// - /// [pageSize] - Optional. The number of results to return in each response. - /// - /// [clusterName] - Optional. If set, the returned jobs list includes only - /// jobs that were submitted to the named cluster. - /// /// [filter] - Optional. A filter constraining the jobs to list. Filters are /// case-sensitive and have the following syntax:field = value AND field = /// value ...where field is status.state or labels.[KEY], and [KEY] is a label @@ -751,6 +780,14 @@ /// - "ACTIVE" : A ACTIVE. /// - "NON_ACTIVE" : A NON_ACTIVE. /// + /// [pageToken] - Optional. The page token, returned by a previous call, to + /// request the next page of results. + /// + /// [pageSize] - Optional. The number of results to return in each response. + /// + /// [clusterName] - Optional. If set, the returned jobs list includes only + /// jobs that were submitted to the named cluster. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -762,11 +799,11 @@ /// 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.String pageToken, + {core.String filter, + core.String jobStateMatcher, + core.String pageToken, core.int pageSize, core.String clusterName, - core.String filter, - core.String jobStateMatcher, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -781,6 +818,12 @@ if (region == null) { throw new core.ArgumentError("Parameter region is required."); } + if (filter != null) { + _queryParams["filter"] = [filter]; + } + if (jobStateMatcher != null) { + _queryParams["jobStateMatcher"] = [jobStateMatcher]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -790,12 +833,6 @@ if (clusterName != null) { _queryParams["clusterName"] = [clusterName]; } - if (filter != null) { - _queryParams["filter"] = [filter]; - } - if (jobStateMatcher != null) { - _queryParams["jobStateMatcher"] = [jobStateMatcher]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1172,17 +1209,18 @@ } /// Specifies the type and number of accelerator cards attached to the instances -/// of an instance group (see GPUs on Compute Engine). +/// of an instance. See GPUs on Compute Engine. class AcceleratorConfig { /// The number of the accelerator cards of this type exposed to this instance. core.int acceleratorCount; /// Full URL, partial URI, or short name of the accelerator type resource to - /// expose to this instance. See Google Compute Engine AcceleratorTypes( - /// /compute/docs/reference/beta/acceleratorTypes)Examples * + /// expose to this instance. See Compute Engine AcceleratorTypes.Examples: /// https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 - /// * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 - /// * nvidia-tesla-k80 + /// projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 + /// nvidia-tesla-k80Auto Zone Exception: If you are using the Cloud Dataproc + /// Auto Zone Placement feature, you must use the short name of the + /// accelerator type resource, for example, nvidia-tesla-k80. core.String acceleratorTypeUri; AcceleratorConfig(); @@ -1223,7 +1261,7 @@ } /// Describes the identifying information, config, and status of a cluster of -/// Google Compute Engine instances. +/// Compute Engine instances. class Cluster { /// Required. The cluster name. Cluster names within a project must be unique. /// Names of deleted clusters can be reused. @@ -1325,16 +1363,16 @@ /// The cluster config. class ClusterConfig { - /// Optional. A Google Cloud Storage staging bucket used for sharing generated - /// SSH keys and config. If you do not specify a staging bucket, Cloud - /// Dataproc will determine an appropriate Cloud Storage location (US, ASIA, - /// or EU) for your cluster's staging bucket according to the Google Compute - /// Engine zone where your cluster is deployed, and then it will create and - /// manage this project-level, per-location bucket for you. + /// Optional. A Cloud Storage staging bucket used for sharing generated SSH + /// keys and config. If you do not specify a staging bucket, Cloud Dataproc + /// will determine an appropriate Cloud Storage location (US, ASIA, or EU) for + /// your cluster's staging bucket according to the Google Compute Engine zone + /// where your cluster is deployed, and then it will create and manage this + /// project-level, per-location bucket for you. core.String configBucket; - /// Required. The shared Google Compute Engine config settings for all - /// instances in a cluster. + /// Required. The shared Compute Engine config settings for all instances in a + /// cluster. GceClusterConfig gceClusterConfig; /// Optional. Commands to execute on each node after config is completed. By @@ -1350,19 +1388,19 @@ /// fi core.List<NodeInitializationAction> initializationActions; - /// Optional. The Google Compute Engine config settings for the master - /// instance in a cluster. + /// Optional. The Compute Engine config settings for the master instance in a + /// cluster. InstanceGroupConfig masterConfig; - /// Optional. The Google Compute Engine config settings for additional worker + /// Optional. The Compute Engine config settings for additional worker /// instances in a cluster. InstanceGroupConfig secondaryWorkerConfig; /// Optional. The config settings for software inside the cluster. SoftwareConfig softwareConfig; - /// Optional. The Google Compute Engine config settings for worker instances - /// in a cluster. + /// Optional. The Compute Engine config settings for worker instances in a + /// cluster. InstanceGroupConfig workerConfig; ClusterConfig(); @@ -1689,9 +1727,8 @@ /// The location of diagnostic output. class DiagnoseClusterResults { - /// 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. + /// Output only. The Cloud Storage URI of the diagnostic output. The output + /// report is a plain text file with a summary of collected diagnostics. core.String outputUri; DiagnoseClusterResults(); @@ -1767,8 +1804,8 @@ } } -/// Common config settings for resources of Google Compute Engine cluster -/// instances, applicable to all instances in the cluster. +/// Common config settings for resources of Compute Engine cluster instances, +/// applicable to all instances in the cluster. class GceClusterConfig { /// Optional. If true, all instances in the cluster will only have internal IP /// addresses. By default, clusters are not restricted to internal IP @@ -1778,12 +1815,12 @@ /// 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 + /// The 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; - /// Optional. The Google Compute Engine network to be used for machine + /// Optional. The 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 @@ -1795,8 +1832,8 @@ core.String networkUri; /// Optional. The service account of the instances. Defaults to the default - /// Google Compute Engine service account. Custom service accounts need - /// permissions equivalent to the folloing IAM roles: + /// Compute Engine service account. Custom service accounts need permissions + /// equivalent to the following IAM roles: /// roles/logging.logWriter /// roles/storage.objectAdmin(see /// https://cloud.google.com/compute/docs/access/service-accounts#custom_service_accounts @@ -1804,9 +1841,8 @@ /// [account_id]@[project_id].iam.gserviceaccount.com core.String serviceAccount; - /// Optional. The URIs of service account scopes to be included in Google - /// Compute Engine instances. The following base set of scopes is always - /// included: + /// Optional. The URIs of service account scopes to be included in 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.writeIf no scopes are specified, @@ -1817,7 +1853,7 @@ /// https://www.googleapis.com/auth/devstorage.full_control core.List<core.String> serviceAccountScopes; - /// Optional. The Google Compute Engine subnetwork to be used for machine + /// Optional. The Compute Engine subnetwork to be used for machine /// communications. Cannot be specified with network_uri.A full URL, partial /// URI, or short name are valid. Examples: /// https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0 @@ -1825,16 +1861,14 @@ /// sub0 core.String subnetworkUri; - /// The Google Compute Engine tags to add to all instances (see Tagging - /// instances). + /// The Compute Engine tags to add to all instances (see Tagging instances). core.List<core.String> tags; - /// Optional. The zone where the Google Compute Engine cluster will be - /// located. On a create request, it is required in the "global" region. If - /// omitted in a non-global Cloud Dataproc region, the service will pick a - /// zone in the corresponding Compute Engine region. On a get request, zone - /// will always be present.A full URL, partial URI, or short name are valid. - /// Examples: + /// Optional. The zone where the Compute Engine cluster will be located. On a + /// create request, it is required in the "global" region. If omitted in a + /// non-global Cloud Dataproc region, the service will pick a zone in the + /// corresponding Compute Engine region. On a get request, zone will always be + /// present.A full URL, partial URI, or short name are valid. Examples: /// https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] /// projects/[project_id]/zones/[zone] /// us-central1-f @@ -2084,10 +2118,10 @@ } } -/// Optional. The config settings for Google Compute Engine resources in an -/// instance group, such as a master or worker group. +/// Optional. The config settings for Compute Engine resources in an instance +/// group, such as a master or worker group. class InstanceGroupConfig { - /// Optional. The Google Compute Engine accelerator configuration for these + /// Optional. The Compute Engine accelerator configuration for these /// instances.Beta Feature: This feature is still under development. It may be /// changed before final release. core.List<AcceleratorConfig> accelerators; @@ -2095,29 +2129,29 @@ /// Optional. Disk option config settings. DiskConfig diskConfig; - /// Output only. The Google Compute Engine image resource used for cluster - /// instances. Inferred from SoftwareConfig.image_version. + /// Output only. The Compute Engine image resource used for cluster instances. + /// Inferred from SoftwareConfig.image_version. core.String imageUri; - /// 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). + /// Output only. The list of instance names. Cloud Dataproc derives the names + /// from cluster_name, num_instances, and the instance group. core.List<core.String> instanceNames; /// Optional. Specifies that this instance group contains preemptible /// instances. core.bool isPreemptible; - /// Optional. The Google Compute Engine machine type used for cluster - /// instances.A full URL, partial URI, or short name are valid. Examples: + /// Optional. The Compute Engine machine type used for cluster instances.A + /// full URL, partial URI, or short name are valid. Examples: /// https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 /// projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 - /// n1-standard-2 + /// n1-standard-2Auto Zone Exception: If you are using the Cloud Dataproc Auto + /// Zone Placement feature, you must use the short name of the machine type + /// resource, for example, n1-standard-2. core.String machineTypeUri; - /// Output only. The config for Google Compute Engine Instance Group Manager - /// that manages this group. This is only used for preemptible instance - /// groups. + /// Output only. The config for Compute Engine Instance Group Manager that + /// manages this group. This is only used for preemptible instance groups. ManagedGroupConfig managedGroupConfig; /// Optional. The number of VM instances in the instance group. For master @@ -2703,7 +2737,7 @@ /// Specifies an executable to run on a fully configured node and a timeout /// period for executable completion. class NodeInitializationAction { - /// Required. Google Cloud Storage URI of executable file. + /// Required. Cloud Storage URI of executable file. core.String executableFile; /// Optional. Amount of time executable has to complete. Default is 10 @@ -3041,9 +3075,10 @@ /// Specifies the selection and config of software inside the cluster. class SoftwareConfig { - /// Optional. The version of software inside the cluster. It must match the - /// regular expression [0-9]+\.[0-9]+. If unspecified, it defaults to the - /// latest version (see Cloud Dataproc Versioning). + /// Optional. The version of software inside the cluster. It must be one of + /// the supported Cloud Dataproc Versions, such as "1.2" (including a subminor + /// version, such as "1.2.29"), or the "preview" version. If unspecified, it + /// defaults to the latest version. core.String imageVersion; /// Optional. The properties to set on daemon config files.Property keys are @@ -3346,12 +3381,24 @@ /// Required. The job resource. Job job; + /// Optional. A unique id used to identify the request. If the server receives + /// two SubmitJobRequest requests with the same id, then the second request + /// will be ignored and the first Job created and stored in the backend is + /// returned.It is recommended to always set this value to a UUID + /// (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must + /// contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and + /// hyphens (-). The maximum length is 40 characters. + core.String requestId; + SubmitJobRequest(); SubmitJobRequest.fromJson(core.Map _json) { if (_json.containsKey("job")) { job = new Job.fromJson(_json["job"]); } + if (_json.containsKey("requestId")) { + requestId = _json["requestId"]; + } } core.Map<core.String, core.Object> toJson() { @@ -3360,6 +3407,9 @@ if (job != null) { _json["job"] = (job).toJson(); } + if (requestId != null) { + _json["requestId"] = requestId; + } return _json; } }
diff --git a/generated/googleapis/lib/datastore/v1.dart b/generated/googleapis/lib/datastore/v1.dart index 95205b6..810f817 100644 --- a/generated/googleapis/lib/datastore/v1.dart +++ b/generated/googleapis/lib/datastore/v1.dart
@@ -202,6 +202,123 @@ return _response.then((data) => new CommitResponse.fromJson(data)); } + /// Exports a copy of all or a subset of entities from Google Cloud Datastore + /// to another storage system, such as Google Cloud Storage. Recent updates to + /// entities may not be reflected in the export. The export occurs in the + /// background and its progress can be monitored and managed via the + /// Operation resource that is created. The output of an export may only be + /// used once the associated operation is done. If an export operation is + /// cancelled before completion it may leave partial data behind in Google + /// Cloud Storage. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [projectId] - Project ID against which to make the request. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> export( + GoogleDatastoreAdminV1ExportEntitiesRequest request, + core.String projectId, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/projects/' + + commons.Escaper.ecapeVariable('$projectId') + + ':export'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response + .then((data) => new GoogleLongrunningOperation.fromJson(data)); + } + + /// Imports entities into Google Cloud Datastore. Existing entities with the + /// same key are overwritten. The import occurs in the background and its + /// progress can be monitored and managed via the Operation resource that is + /// created. If an ImportEntities operation is cancelled, it is possible + /// that a subset of the data has already been imported to Cloud Datastore. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [projectId] - Project ID against which to make the request. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> import( + GoogleDatastoreAdminV1ImportEntitiesRequest request, + core.String projectId, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/projects/' + + commons.Escaper.ecapeVariable('$projectId') + + ':import'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response + .then((data) => new GoogleLongrunningOperation.fromJson(data)); + } + /// Looks up entities by key. /// /// [request] - The metadata request object. @@ -576,12 +693,12 @@ /// [name] - The name of the operation's parent resource. /// Value must have pattern "^projects/[^/]+$". /// + /// [filter] - The standard list filter. + /// /// [pageToken] - The standard list page token. /// /// [pageSize] - The standard list page size. /// - /// [filter] - The standard list filter. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -593,9 +710,9 @@ /// 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.String pageToken, + {core.String filter, + core.String pageToken, core.int pageSize, - core.String filter, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -607,15 +724,15 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1080,6 +1197,454 @@ } /// Metadata common to all Datastore Admin operations. +class GoogleDatastoreAdminV1CommonMetadata { + /// The time the operation ended, either successfully or otherwise. + core.String endTime; + + /// The client-assigned labels which were provided when the operation was + /// created. May also include additional labels. + core.Map<core.String, core.String> labels; + + /// The type of the operation. Can be used as a filter in + /// ListOperationsRequest. + /// Possible string values are: + /// - "OPERATION_TYPE_UNSPECIFIED" : Unspecified. + /// - "EXPORT_ENTITIES" : ExportEntities. + /// - "IMPORT_ENTITIES" : ImportEntities. + core.String operationType; + + /// The time that work began on the operation. + core.String startTime; + + /// The current state of the Operation. + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : Unspecified. + /// - "INITIALIZING" : Request is being prepared for processing. + /// - "PROCESSING" : Request is actively being processed. + /// - "CANCELLING" : Request is in the process of being cancelled after user + /// called + /// google.longrunning.Operations.CancelOperation on the operation. + /// - "FINALIZING" : Request has been processed and is in its finalization + /// stage. + /// - "SUCCESSFUL" : Request has completed successfully. + /// - "FAILED" : Request has finished being processed, but encountered an + /// error. + /// - "CANCELLED" : Request has finished being cancelled after user called + /// google.longrunning.Operations.CancelOperation. + core.String state; + + GoogleDatastoreAdminV1CommonMetadata(); + + GoogleDatastoreAdminV1CommonMetadata.fromJson(core.Map _json) { + if (_json.containsKey("endTime")) { + endTime = _json["endTime"]; + } + if (_json.containsKey("labels")) { + labels = (_json["labels"] as core.Map).cast<core.String, core.String>(); + } + if (_json.containsKey("operationType")) { + operationType = _json["operationType"]; + } + if (_json.containsKey("startTime")) { + startTime = _json["startTime"]; + } + if (_json.containsKey("state")) { + state = _json["state"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (endTime != null) { + _json["endTime"] = endTime; + } + if (labels != null) { + _json["labels"] = labels; + } + if (operationType != null) { + _json["operationType"] = operationType; + } + if (startTime != null) { + _json["startTime"] = startTime; + } + if (state != null) { + _json["state"] = state; + } + return _json; + } +} + +/// Identifies a subset of entities in a project. This is specified as +/// combinations of kinds and namespaces (either or both of which may be all, as +/// described in the following examples). +/// Example usage: +/// +/// Entire project: +/// kinds=[], namespace_ids=[] +/// +/// Kinds Foo and Bar in all namespaces: +/// kinds=['Foo', 'Bar'], namespace_ids=[] +/// +/// Kinds Foo and Bar only in the default namespace: +/// kinds=['Foo', 'Bar'], namespace_ids=[''] +/// +/// Kinds Foo and Bar in both the default and Baz namespaces: +/// kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] +/// +/// The entire Baz namespace: +/// kinds=[], namespace_ids=['Baz'] +class GoogleDatastoreAdminV1EntityFilter { + /// If empty, then this represents all kinds. + core.List<core.String> kinds; + + /// An empty list represents all namespaces. This is the preferred + /// usage for projects that don't use namespaces. + /// + /// An empty string element represents the default namespace. This should be + /// used if the project has data in non-default namespaces, but doesn't want + /// to + /// include them. + /// Each namespace in this list must be unique. + core.List<core.String> namespaceIds; + + GoogleDatastoreAdminV1EntityFilter(); + + GoogleDatastoreAdminV1EntityFilter.fromJson(core.Map _json) { + if (_json.containsKey("kinds")) { + kinds = (_json["kinds"] as core.List).cast<core.String>(); + } + if (_json.containsKey("namespaceIds")) { + namespaceIds = (_json["namespaceIds"] as core.List).cast<core.String>(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (kinds != null) { + _json["kinds"] = kinds; + } + if (namespaceIds != null) { + _json["namespaceIds"] = namespaceIds; + } + return _json; + } +} + +/// Metadata for ExportEntities operations. +class GoogleDatastoreAdminV1ExportEntitiesMetadata { + /// Metadata common to all Datastore Admin operations. + GoogleDatastoreAdminV1CommonMetadata common; + + /// Description of which entities are being exported. + GoogleDatastoreAdminV1EntityFilter entityFilter; + + /// Location for the export metadata and data files. This will be the same + /// value as the + /// google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix + /// field. The final output location is provided in + /// google.datastore.admin.v1.ExportEntitiesResponse.output_url. + core.String outputUrlPrefix; + + /// An estimate of the number of bytes processed. + GoogleDatastoreAdminV1Progress progressBytes; + + /// An estimate of the number of entities processed. + GoogleDatastoreAdminV1Progress progressEntities; + + GoogleDatastoreAdminV1ExportEntitiesMetadata(); + + GoogleDatastoreAdminV1ExportEntitiesMetadata.fromJson(core.Map _json) { + if (_json.containsKey("common")) { + common = + new GoogleDatastoreAdminV1CommonMetadata.fromJson(_json["common"]); + } + if (_json.containsKey("entityFilter")) { + entityFilter = new GoogleDatastoreAdminV1EntityFilter.fromJson( + _json["entityFilter"]); + } + if (_json.containsKey("outputUrlPrefix")) { + outputUrlPrefix = _json["outputUrlPrefix"]; + } + if (_json.containsKey("progressBytes")) { + progressBytes = + new GoogleDatastoreAdminV1Progress.fromJson(_json["progressBytes"]); + } + if (_json.containsKey("progressEntities")) { + progressEntities = new GoogleDatastoreAdminV1Progress.fromJson( + _json["progressEntities"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (common != null) { + _json["common"] = (common).toJson(); + } + if (entityFilter != null) { + _json["entityFilter"] = (entityFilter).toJson(); + } + if (outputUrlPrefix != null) { + _json["outputUrlPrefix"] = outputUrlPrefix; + } + if (progressBytes != null) { + _json["progressBytes"] = (progressBytes).toJson(); + } + if (progressEntities != null) { + _json["progressEntities"] = (progressEntities).toJson(); + } + return _json; + } +} + +/// The request for +/// google.datastore.admin.v1.DatastoreAdmin.ExportEntities. +class GoogleDatastoreAdminV1ExportEntitiesRequest { + /// Description of what data from the project is included in the export. + GoogleDatastoreAdminV1EntityFilter entityFilter; + + /// Client-assigned labels. + core.Map<core.String, core.String> labels; + + /// Location for the export metadata and data files. + /// + /// The full resource URL of the external storage location. Currently, only + /// Google Cloud Storage is supported. So output_url_prefix should be of the + /// form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the + /// name of the Cloud Storage bucket and `NAMESPACE_PATH` is an optional Cloud + /// Storage namespace path (this is not a Cloud Datastore namespace). For more + /// information about Cloud Storage namespace paths, see + /// [Object name + /// considerations](https://cloud.google.com/storage/docs/naming#object-considerations). + /// + /// The resulting files will be nested deeper than the specified URL prefix. + /// The final output URL will be provided in the + /// google.datastore.admin.v1.ExportEntitiesResponse.output_url field. That + /// value should be used for subsequent ImportEntities operations. + /// + /// By nesting the data files deeper, the same Cloud Storage bucket can be + /// used + /// in multiple ExportEntities operations without conflict. + core.String outputUrlPrefix; + + GoogleDatastoreAdminV1ExportEntitiesRequest(); + + GoogleDatastoreAdminV1ExportEntitiesRequest.fromJson(core.Map _json) { + if (_json.containsKey("entityFilter")) { + entityFilter = new GoogleDatastoreAdminV1EntityFilter.fromJson( + _json["entityFilter"]); + } + if (_json.containsKey("labels")) { + labels = (_json["labels"] as core.Map).cast<core.String, core.String>(); + } + if (_json.containsKey("outputUrlPrefix")) { + outputUrlPrefix = _json["outputUrlPrefix"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (entityFilter != null) { + _json["entityFilter"] = (entityFilter).toJson(); + } + if (labels != null) { + _json["labels"] = labels; + } + if (outputUrlPrefix != null) { + _json["outputUrlPrefix"] = outputUrlPrefix; + } + return _json; + } +} + +/// The response for +/// google.datastore.admin.v1.DatastoreAdmin.ExportEntities. +class GoogleDatastoreAdminV1ExportEntitiesResponse { + /// Location of the output metadata file. This can be used to begin an import + /// into Cloud Datastore (this project or another project). See + /// google.datastore.admin.v1.ImportEntitiesRequest.input_url. + /// Only present if the operation completed successfully. + core.String outputUrl; + + GoogleDatastoreAdminV1ExportEntitiesResponse(); + + GoogleDatastoreAdminV1ExportEntitiesResponse.fromJson(core.Map _json) { + if (_json.containsKey("outputUrl")) { + outputUrl = _json["outputUrl"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (outputUrl != null) { + _json["outputUrl"] = outputUrl; + } + return _json; + } +} + +/// Metadata for ImportEntities operations. +class GoogleDatastoreAdminV1ImportEntitiesMetadata { + /// Metadata common to all Datastore Admin operations. + GoogleDatastoreAdminV1CommonMetadata common; + + /// Description of which entities are being imported. + GoogleDatastoreAdminV1EntityFilter entityFilter; + + /// The location of the import metadata file. This will be the same value as + /// the google.datastore.admin.v1.ExportEntitiesResponse.output_url field. + core.String inputUrl; + + /// An estimate of the number of bytes processed. + GoogleDatastoreAdminV1Progress progressBytes; + + /// An estimate of the number of entities processed. + GoogleDatastoreAdminV1Progress progressEntities; + + GoogleDatastoreAdminV1ImportEntitiesMetadata(); + + GoogleDatastoreAdminV1ImportEntitiesMetadata.fromJson(core.Map _json) { + if (_json.containsKey("common")) { + common = + new GoogleDatastoreAdminV1CommonMetadata.fromJson(_json["common"]); + } + if (_json.containsKey("entityFilter")) { + entityFilter = new GoogleDatastoreAdminV1EntityFilter.fromJson( + _json["entityFilter"]); + } + if (_json.containsKey("inputUrl")) { + inputUrl = _json["inputUrl"]; + } + if (_json.containsKey("progressBytes")) { + progressBytes = + new GoogleDatastoreAdminV1Progress.fromJson(_json["progressBytes"]); + } + if (_json.containsKey("progressEntities")) { + progressEntities = new GoogleDatastoreAdminV1Progress.fromJson( + _json["progressEntities"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (common != null) { + _json["common"] = (common).toJson(); + } + if (entityFilter != null) { + _json["entityFilter"] = (entityFilter).toJson(); + } + if (inputUrl != null) { + _json["inputUrl"] = inputUrl; + } + if (progressBytes != null) { + _json["progressBytes"] = (progressBytes).toJson(); + } + if (progressEntities != null) { + _json["progressEntities"] = (progressEntities).toJson(); + } + return _json; + } +} + +/// The request for +/// google.datastore.admin.v1.DatastoreAdmin.ImportEntities. +class GoogleDatastoreAdminV1ImportEntitiesRequest { + /// Optionally specify which kinds/namespaces are to be imported. If provided, + /// the list must be a subset of the EntityFilter used in creating the export, + /// otherwise a FAILED_PRECONDITION error will be returned. If no filter is + /// specified then all entities from the export are imported. + GoogleDatastoreAdminV1EntityFilter entityFilter; + + /// The full resource URL of the external storage location. Currently, only + /// Google Cloud Storage is supported. So input_url should be of the form: + /// `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where + /// `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is + /// an optional Cloud Storage namespace path (this is not a Cloud Datastore + /// namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file + /// written + /// by the ExportEntities operation. For more information about Cloud Storage + /// namespace paths, see + /// [Object name + /// considerations](https://cloud.google.com/storage/docs/naming#object-considerations). + /// + /// For more information, see + /// google.datastore.admin.v1.ExportEntitiesResponse.output_url. + core.String inputUrl; + + /// Client-assigned labels. + core.Map<core.String, core.String> labels; + + GoogleDatastoreAdminV1ImportEntitiesRequest(); + + GoogleDatastoreAdminV1ImportEntitiesRequest.fromJson(core.Map _json) { + if (_json.containsKey("entityFilter")) { + entityFilter = new GoogleDatastoreAdminV1EntityFilter.fromJson( + _json["entityFilter"]); + } + if (_json.containsKey("inputUrl")) { + inputUrl = _json["inputUrl"]; + } + if (_json.containsKey("labels")) { + labels = (_json["labels"] as core.Map).cast<core.String, core.String>(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (entityFilter != null) { + _json["entityFilter"] = (entityFilter).toJson(); + } + if (inputUrl != null) { + _json["inputUrl"] = inputUrl; + } + if (labels != null) { + _json["labels"] = labels; + } + return _json; + } +} + +/// Measures the progress of a particular metric. +class GoogleDatastoreAdminV1Progress { + /// The amount of work that has been completed. Note that this may be greater + /// than work_estimated. + core.String workCompleted; + + /// An estimate of how much work needs to be performed. May be zero if the + /// work estimate is unavailable. + core.String workEstimated; + + GoogleDatastoreAdminV1Progress(); + + GoogleDatastoreAdminV1Progress.fromJson(core.Map _json) { + if (_json.containsKey("workCompleted")) { + workCompleted = _json["workCompleted"]; + } + if (_json.containsKey("workEstimated")) { + workEstimated = _json["workEstimated"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (workCompleted != null) { + _json["workCompleted"] = workCompleted; + } + if (workEstimated != null) { + _json["workEstimated"] = workEstimated; + } + return _json; + } +} + +/// Metadata common to all Datastore Admin operations. class GoogleDatastoreAdminV1beta1CommonMetadata { /// The time the operation ended, either successfully or otherwise. core.String endTime;
diff --git a/generated/googleapis/lib/deploymentmanager/v2.dart b/generated/googleapis/lib/deploymentmanager/v2.dart index dca43d8..31ae1a4 100644 --- a/generated/googleapis/lib/deploymentmanager/v2.dart +++ b/generated/googleapis/lib/deploymentmanager/v2.dart
@@ -127,7 +127,6 @@ /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". /// /// [deployment] - The name of the deployment for this request. - /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// /// [deletePolicy] - Sets the policy to use for deleting resources. /// Possible string values are: @@ -298,6 +297,11 @@ /// Value must have pattern /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". /// + /// [createPolicy] - Sets the policy to use for creating new resources. + /// Possible string values are: + /// - "ACQUIRE" + /// - "CREATE_OR_ACQUIRE" + /// /// [preview] - If set to true, creates a deployment and creates "shell" /// resources but does not actually instantiate these resources. This allows /// you to preview what your deployment looks like. After previewing a @@ -318,7 +322,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> insert(Deployment request, core.String project, - {core.bool preview, core.String $fields}) { + {core.String createPolicy, core.bool preview, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -332,6 +336,9 @@ if (project == null) { throw new core.ArgumentError("Parameter project is required."); } + if (createPolicy != null) { + _queryParams["createPolicy"] = [createPolicy]; + } if (preview != null) { _queryParams["preview"] = ["${preview}"]; } @@ -358,30 +365,27 @@ /// Value must have pattern /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -575,7 +579,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<Policy> setIamPolicy( - Policy request, core.String project, core.String resource, + GlobalSetPolicyRequest request, core.String project, core.String resource, {core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -904,30 +908,27 @@ /// [deployment] - The name of the deployment for this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -1076,30 +1077,27 @@ /// Value must have pattern /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -1253,30 +1251,27 @@ /// [deployment] - The name of the deployment for this request. /// Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -1373,30 +1368,27 @@ /// Value must have pattern /// "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". /// - /// [filter] - Sets a filter {expression} for filtering listed resources. Your - /// {expression} must be in the format: field_name comparison_string - /// literal_string. + /// [filter] - A filter expression that filters resources listed in the + /// response. The expression must specify the field name, a comparison + /// operator, and the value that you want to use for filtering. The value must + /// be a string, a number, or a boolean. The comparison operator must be + /// either =, !=, >, or <. /// - /// 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, if you are filtering Compute Engine instances, you can + /// exclude instances named example-instance by specifying name != + /// example-instance. /// - /// For example, to filter for instances that do not have a name of - /// example-instance, you would use 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. + /// You can also filter nested fields. For example, you could specify + /// scheduling.automaticRestart = false to include instances only if they are + /// not scheduled for automatic restarts. You can use filtering on nested + /// fields to filter based on resource labels. /// /// 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. + /// parentheses. For example, (scheduling.automaticRestart = true) + /// (cpuPlatform = "Intel Skylake"). By default, each expression is an AND + /// expression. However, you can include AND and OR expressions explicitly. + /// For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + /// Broadwell") AND (scheduling.automaticRestart = true). /// /// [maxResults] - The maximum number of results per page that should be /// returned. If the number of available results is larger than maxResults, @@ -1620,7 +1612,7 @@ /// 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`. + /// account. For example, `alice@gmail.com` . /// /// /// @@ -2188,6 +2180,60 @@ } } +class GlobalSetPolicyRequest { + /// Flatten Policy to create a backwacd compatible wire-format. Deprecated. + /// Use 'policy' to specify bindings. + core.List<Binding> bindings; + + /// Flatten Policy to create a backward compatible wire-format. Deprecated. + /// Use 'policy' to specify the etag. + 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("+", "-"); + } + + /// REQUIRED: The complete policy to be applied to the 'resource'. The size of + /// the policy is limited to a few 10s of KB. An empty policy is in general a + /// valid policy but certain services (like Projects) might reject them. + Policy policy; + + GlobalSetPolicyRequest(); + + GlobalSetPolicyRequest.fromJson(core.Map _json) { + if (_json.containsKey("bindings")) { + bindings = (_json["bindings"] as core.List) + .map<Binding>((value) => new Binding.fromJson(value)) + .toList(); + } + if (_json.containsKey("etag")) { + etag = _json["etag"]; + } + if (_json.containsKey("policy")) { + policy = new Policy.fromJson(_json["policy"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (bindings != null) { + _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); + } + if (etag != null) { + _json["etag"] = etag; + } + if (policy != null) { + _json["policy"] = (policy).toJson(); + } + return _json; + } +} + class ImportFile { /// The contents of the file. core.String content; @@ -2653,7 +2699,8 @@ /// beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== /// resource_for beta.zoneOperations ==) class Operation { - /// [Output Only] Reserved for future use. + /// [Output Only] The value of `requestId` if you provided it in the request. + /// Not present otherwise. core.String clientOperationId; /// [Deprecated] This field is deprecated. @@ -2944,18 +2991,26 @@ /// /// /// -/// A `Policy` consists of a list of `bindings`. A `Binding` binds a list of +/// 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** +/// **JSON 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"] } ] } /// +/// **YAML Example** +/// +/// bindings: - members: - user:mike@example.com - group:admins@example.com - +/// domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com +/// role: roles/owner - members: - user:sean@example.com role: roles/viewer +/// +/// +/// /// For a description of IAM and its features, see the [IAM developer's /// guide](https://cloud.google.com/iam/docs). class Policy {
diff --git a/generated/googleapis/lib/dfareporting/v2_8.dart b/generated/googleapis/lib/dfareporting/v2_8.dart index 2f35ecb..0e7d4cb 100644 --- a/generated/googleapis/lib/dfareporting/v2_8.dart +++ b/generated/googleapis/lib/dfareporting/v2_8.dart
@@ -1147,6 +1147,7 @@ /// - "APP_INTERSTITIAL" /// - "DISPLAY" /// - "DISPLAY_INTERSTITIAL" + /// - "IN_STREAM_AUDIO" /// - "IN_STREAM_VIDEO" /// /// [creativeIds] - Select only ads with these creative IDs assigned. @@ -12202,7 +12203,10 @@ return _response.then((data) => new Size.fromJson(data)); } - /// Retrieves a list of sizes, possibly filtered. + /// Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally + /// unique and may include values not currently in use by your account. Due to + /// this, the list of sizes returned by this method may differ from the list + /// seen in the Trafficking UI. /// /// Request parameters: /// @@ -14447,7 +14451,7 @@ /// left blank. core.String subaccountId; - /// Trafficker type of this user profile. + /// Trafficker type of this user profile. This is a read-only field. /// Possible string values are: /// - "EXTERNAL_TRAFFICKER" /// - "INTERNAL_NON_TRAFFICKER" @@ -14764,6 +14768,7 @@ /// - "APP_INTERSTITIAL" /// - "DISPLAY" /// - "DISPLAY_INTERSTITIAL" + /// - "IN_STREAM_AUDIO" /// - "IN_STREAM_VIDEO" core.String compatibility; @@ -15240,6 +15245,7 @@ /// - "APP_INTERSTITIAL" /// - "DISPLAY" /// - "DISPLAY_INTERSTITIAL" + /// - "IN_STREAM_AUDIO" /// - "IN_STREAM_VIDEO" core.String compatibility; @@ -17812,7 +17818,7 @@ /// Applicable to INSTREAM_VIDEO_REDIRECT creatives. core.String commercialId; - /// List of companion creatives assigned to an in-Stream videocreative. + /// List of companion creatives assigned to an in-Stream video creative. /// Acceptable values include IDs of existing flash and image creatives. /// Applicable to the following creative types: all VPAID and all /// INSTREAM_VIDEO with dynamicAssetSelection set to false. @@ -18046,6 +18052,7 @@ /// - "FLASH_INPAGE" /// - "HTML5_BANNER" /// - "IMAGE" + /// - "INSTREAM_AUDIO" /// - "INSTREAM_VIDEO" /// - "INSTREAM_VIDEO_REDIRECT" /// - "INTERNAL_REDIRECT" @@ -21686,6 +21693,7 @@ /// - "DBM_PARTNER" /// - "DCM_ACCOUNT" /// - "DCM_ADVERTISER" + /// - "DFP_NETWORK_CODE" /// - "ENCRYPTION_ENTITY_TYPE_UNKNOWN" core.String encryptionEntityType; @@ -25515,6 +25523,7 @@ /// - "APP_INTERSTITIAL" /// - "DISPLAY" /// - "DISPLAY_INTERSTITIAL" + /// - "IN_STREAM_AUDIO" /// - "IN_STREAM_VIDEO" core.String compatibility;
diff --git a/generated/googleapis/lib/dfareporting/v3_0.dart b/generated/googleapis/lib/dfareporting/v3_0.dart index f6e8feb..4392e5f 100644 --- a/generated/googleapis/lib/dfareporting/v3_0.dart +++ b/generated/googleapis/lib/dfareporting/v3_0.dart
@@ -1147,6 +1147,7 @@ /// - "APP_INTERSTITIAL" /// - "DISPLAY" /// - "DISPLAY_INTERSTITIAL" + /// - "IN_STREAM_AUDIO" /// - "IN_STREAM_VIDEO" /// /// [creativeIds] - Select only ads with these creative IDs assigned. @@ -12157,7 +12158,10 @@ return _response.then((data) => new Size.fromJson(data)); } - /// Retrieves a list of sizes, possibly filtered. + /// Retrieves a list of sizes, possibly filtered. Retrieved sizes are globally + /// unique and may include values not currently in use by your account. Due to + /// this, the list of sizes returned by this method may differ from the list + /// seen in the Trafficking UI. /// /// Request parameters: /// @@ -14402,7 +14406,7 @@ /// left blank. core.String subaccountId; - /// Trafficker type of this user profile. + /// Trafficker type of this user profile. This is a read-only field. /// Possible string values are: /// - "EXTERNAL_TRAFFICKER" /// - "INTERNAL_NON_TRAFFICKER" @@ -14719,6 +14723,7 @@ /// - "APP_INTERSTITIAL" /// - "DISPLAY" /// - "DISPLAY_INTERSTITIAL" + /// - "IN_STREAM_AUDIO" /// - "IN_STREAM_VIDEO" core.String compatibility; @@ -15195,6 +15200,7 @@ /// - "APP_INTERSTITIAL" /// - "DISPLAY" /// - "DISPLAY_INTERSTITIAL" + /// - "IN_STREAM_AUDIO" /// - "IN_STREAM_VIDEO" core.String compatibility; @@ -17821,7 +17827,7 @@ /// Applicable to INSTREAM_VIDEO_REDIRECT creatives. core.String commercialId; - /// List of companion creatives assigned to an in-Stream videocreative. + /// List of companion creatives assigned to an in-Stream video creative. /// Acceptable values include IDs of existing flash and image creatives. /// Applicable to the following creative types: all VPAID and all /// INSTREAM_VIDEO with dynamicAssetSelection set to false. @@ -18059,6 +18065,7 @@ /// - "FLASH_INPAGE" /// - "HTML5_BANNER" /// - "IMAGE" + /// - "INSTREAM_AUDIO" /// - "INSTREAM_VIDEO" /// - "INSTREAM_VIDEO_REDIRECT" /// - "INTERNAL_REDIRECT" @@ -21768,6 +21775,7 @@ /// - "DBM_PARTNER" /// - "DCM_ACCOUNT" /// - "DCM_ADVERTISER" + /// - "DFP_NETWORK_CODE" /// - "ENCRYPTION_ENTITY_TYPE_UNKNOWN" core.String encryptionEntityType; @@ -25583,6 +25591,7 @@ /// - "APP_INTERSTITIAL" /// - "DISPLAY" /// - "DISPLAY_INTERSTITIAL" + /// - "IN_STREAM_AUDIO" /// - "IN_STREAM_VIDEO" core.String compatibility;
diff --git a/generated/googleapis/lib/digitalassetlinks/v1.dart b/generated/googleapis/lib/digitalassetlinks/v1.dart index 28d59dd..412a191 100644 --- a/generated/googleapis/lib/digitalassetlinks/v1.dart +++ b/generated/googleapis/lib/digitalassetlinks/v1.dart
@@ -309,22 +309,6 @@ /// /// Request parameters: /// - /// [relation] - Use only associations that match the specified relation. - /// - /// See the [`Statement`](#Statement) message for a detailed definition of - /// relation strings. - /// - /// For a query to match a statement, one of the following must be true: - /// - /// * both the query's and the statement's relation strings match exactly, - /// or - /// * the query's relation string is empty or missing. - /// - /// Example: A query with relation - /// `delegate_permission/common.handle_all_urls` - /// matches an asset link with relation - /// `delegate_permission/common.handle_all_urls`. - /// /// [source_web_site] - Web assets are identified by a URL that contains only /// the scheme, hostname /// and port parts. The format is @@ -390,6 +374,22 @@ /// and represent the result as a hexstring (that is, uppercase hexadecimal /// representations of each octet, separated by colons). /// + /// [relation] - Use only associations that match the specified relation. + /// + /// See the [`Statement`](#Statement) message for a detailed definition of + /// relation strings. + /// + /// For a query to match a statement, one of the following must be true: + /// + /// * both the query's and the statement's relation strings match exactly, + /// or + /// * the query's relation string is empty or missing. + /// + /// Example: A query with relation + /// `delegate_permission/common.handle_all_urls` + /// matches an asset link with relation + /// `delegate_permission/common.handle_all_urls`. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -401,10 +401,10 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListResponse> list( - {core.String relation, - core.String source_web_site, + {core.String source_web_site, core.String source_androidApp_packageName, core.String source_androidApp_certificate_sha256Fingerprint, + core.String relation, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -413,9 +413,6 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (relation != null) { - _queryParams["relation"] = [relation]; - } if (source_web_site != null) { _queryParams["source.web.site"] = [source_web_site]; } @@ -429,6 +426,9 @@ source_androidApp_certificate_sha256Fingerprint ]; } + if (relation != null) { + _queryParams["relation"] = [relation]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; }
diff --git a/generated/googleapis/lib/dns/v1.dart b/generated/googleapis/lib/dns/v1.dart index 6a8a935..8fe0fd9 100644 --- a/generated/googleapis/lib/dns/v1.dart +++ b/generated/googleapis/lib/dns/v1.dart
@@ -37,6 +37,9 @@ final commons.ApiRequester _requester; ChangesResourceApi get changes => new ChangesResourceApi(_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); @@ -66,6 +69,10 @@ /// [managedZone] - Identifies the managed zone addressed by this request. Can /// be the managed zone name or id. /// + /// [clientOperationId] - For mutating operation requests only. An optional + /// identifier specified by the client. Must be unique for operation resources + /// in the Operations collection. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -78,7 +85,7 @@ /// this method will complete with the same error. async.Future<Change> create( Change request, core.String project, core.String managedZone, - {core.String $fields}) { + {core.String clientOperationId, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -95,6 +102,9 @@ if (managedZone == null) { throw new core.ArgumentError("Parameter managedZone is required."); } + if (clientOperationId != null) { + _queryParams["clientOperationId"] = [clientOperationId]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -125,6 +135,10 @@ /// [changeId] - The identifier of the requested change, from a previous /// ResourceRecordSetsChangeResponse. /// + /// [clientOperationId] - For mutating operation requests only. An optional + /// identifier specified by the client. Must be unique for operation resources + /// in the Operations collection. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -137,7 +151,7 @@ /// this method will complete with the same error. async.Future<Change> get( core.String project, core.String managedZone, core.String changeId, - {core.String $fields}) { + {core.String clientOperationId, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -154,6 +168,9 @@ if (changeId == null) { throw new core.ArgumentError("Parameter changeId is required."); } + if (clientOperationId != null) { + _queryParams["clientOperationId"] = [clientOperationId]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -255,6 +272,311 @@ } } +class DnsKeysResourceApi { + final commons.ApiRequester _requester; + + DnsKeysResourceApi(commons.ApiRequester client) : _requester = client; + + /// Fetch the representation of an existing DnsKey. + /// + /// Request parameters: + /// + /// [project] - Identifies the project addressed by this request. + /// + /// [managedZone] - Identifies the managed zone addressed by this request. Can + /// be the managed zone name or id. + /// + /// [dnsKeyId] - The identifier of the requested DnsKey. + /// + /// [clientOperationId] - For mutating operation requests only. An optional + /// identifier specified by the client. Must be unique for operation resources + /// in the Operations collection. + /// + /// [digestType] - An optional comma-separated list of digest types to compute + /// and display for key signing keys. If omitted, the recommended digest type + /// will be computed and displayed. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [DnsKey]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<DnsKey> get( + core.String project, core.String managedZone, core.String dnsKeyId, + {core.String clientOperationId, + core.String digestType, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (managedZone == null) { + throw new core.ArgumentError("Parameter managedZone is required."); + } + if (dnsKeyId == null) { + throw new core.ArgumentError("Parameter dnsKeyId is required."); + } + if (clientOperationId != null) { + _queryParams["clientOperationId"] = [clientOperationId]; + } + if (digestType != null) { + _queryParams["digestType"] = [digestType]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/managedZones/' + + commons.Escaper.ecapeVariable('$managedZone') + + '/dnsKeys/' + + commons.Escaper.ecapeVariable('$dnsKeyId'); + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new DnsKey.fromJson(data)); + } + + /// Enumerate DnsKeys to a ResourceRecordSet collection. + /// + /// Request parameters: + /// + /// [project] - Identifies the project addressed by this request. + /// + /// [managedZone] - Identifies the managed zone addressed by this request. Can + /// be the managed zone name or id. + /// + /// [digestType] - An optional comma-separated list of digest types to compute + /// and display for key signing keys. If omitted, the recommended digest type + /// will be computed and displayed. + /// + /// [maxResults] - Optional. Maximum number of results to be returned. If + /// unspecified, the server will decide how many results to return. + /// + /// [pageToken] - Optional. A tag returned by a previous list request that was + /// truncated. Use this parameter to continue a previous list request. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [DnsKeysListResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<DnsKeysListResponse> list( + core.String project, core.String managedZone, + {core.String digestType, + core.int maxResults, + core.String pageToken, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (managedZone == null) { + throw new core.ArgumentError("Parameter managedZone is required."); + } + if (digestType != null) { + _queryParams["digestType"] = [digestType]; + } + if (maxResults != null) { + _queryParams["maxResults"] = ["${maxResults}"]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/managedZones/' + + commons.Escaper.ecapeVariable('$managedZone') + + '/dnsKeys'; + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new DnsKeysListResponse.fromJson(data)); + } +} + +class ManagedZoneOperationsResourceApi { + final commons.ApiRequester _requester; + + ManagedZoneOperationsResourceApi(commons.ApiRequester client) + : _requester = client; + + /// Fetch the representation of an existing Operation. + /// + /// Request parameters: + /// + /// [project] - Identifies the project addressed by this request. + /// + /// [managedZone] - Identifies the managed zone addressed by this request. + /// + /// [operation] - Identifies the operation addressed by this request. + /// + /// [clientOperationId] - For mutating operation requests only. An optional + /// identifier specified by the client. Must be unique for operation resources + /// in the Operations collection. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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 project, core.String managedZone, core.String operation, + {core.String clientOperationId, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (managedZone == null) { + throw new core.ArgumentError("Parameter managedZone is required."); + } + if (operation == null) { + throw new core.ArgumentError("Parameter operation is required."); + } + if (clientOperationId != null) { + _queryParams["clientOperationId"] = [clientOperationId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/managedZones/' + + commons.Escaper.ecapeVariable('$managedZone') + + '/operations/' + + commons.Escaper.ecapeVariable('$operation'); + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Enumerate Operations for the given ManagedZone. + /// + /// Request parameters: + /// + /// [project] - Identifies the project addressed by this request. + /// + /// [managedZone] - Identifies the managed zone addressed by this request. + /// + /// [maxResults] - Optional. Maximum number of results to be returned. If + /// unspecified, the server will decide how many results to return. + /// + /// [pageToken] - Optional. A tag returned by a previous list request that was + /// truncated. Use this parameter to continue a previous list request. + /// + /// [sortBy] - Sorting criterion. The only supported values are START_TIME and + /// ID. + /// Possible string values are: + /// - "id" + /// - "startTime" + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ManagedZoneOperationsListResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<ManagedZoneOperationsListResponse> list( + core.String project, core.String managedZone, + {core.int maxResults, + core.String pageToken, + core.String sortBy, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (managedZone == null) { + throw new core.ArgumentError("Parameter managedZone is required."); + } + if (maxResults != null) { + _queryParams["maxResults"] = ["${maxResults}"]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (sortBy != null) { + _queryParams["sortBy"] = [sortBy]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/managedZones/' + + commons.Escaper.ecapeVariable('$managedZone') + + '/operations'; + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response + .then((data) => new ManagedZoneOperationsListResponse.fromJson(data)); + } +} + class ManagedZonesResourceApi { final commons.ApiRequester _requester; @@ -268,6 +590,10 @@ /// /// [project] - Identifies the project addressed by this request. /// + /// [clientOperationId] - For mutating operation requests only. An optional + /// identifier specified by the client. Must be unique for operation resources + /// in the Operations collection. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -279,7 +605,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<ManagedZone> create(ManagedZone request, core.String project, - {core.String $fields}) { + {core.String clientOperationId, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -293,6 +619,9 @@ if (project == null) { throw new core.ArgumentError("Parameter project is required."); } + if (clientOperationId != null) { + _queryParams["clientOperationId"] = [clientOperationId]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -317,6 +646,10 @@ /// [managedZone] - Identifies the managed zone addressed by this request. Can /// be the managed zone name or id. /// + /// [clientOperationId] - For mutating operation requests only. An optional + /// identifier specified by the client. Must be unique for operation resources + /// in the Operations collection. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -326,7 +659,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 delete(core.String project, core.String managedZone, - {core.String $fields}) { + {core.String clientOperationId, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -340,6 +673,9 @@ if (managedZone == null) { throw new core.ArgumentError("Parameter managedZone is required."); } + if (clientOperationId != null) { + _queryParams["clientOperationId"] = [clientOperationId]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -368,6 +704,10 @@ /// [managedZone] - Identifies the managed zone addressed by this request. Can /// be the managed zone name or id. /// + /// [clientOperationId] - For mutating operation requests only. An optional + /// identifier specified by the client. Must be unique for operation resources + /// in the Operations collection. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -379,7 +719,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<ManagedZone> get(core.String project, core.String managedZone, - {core.String $fields}) { + {core.String clientOperationId, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -393,6 +733,9 @@ if (managedZone == null) { throw new core.ArgumentError("Parameter managedZone is required."); } + if (clientOperationId != null) { + _queryParams["clientOperationId"] = [clientOperationId]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -473,6 +816,134 @@ return _response .then((data) => new ManagedZonesListResponse.fromJson(data)); } + + /// Apply a partial update to an existing ManagedZone. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [project] - Identifies the project addressed by this request. + /// + /// [managedZone] - Identifies the managed zone addressed by this request. Can + /// be the managed zone name or id. + /// + /// [clientOperationId] - For mutating operation requests only. An optional + /// identifier specified by the client. Must be unique for operation resources + /// in the Operations collection. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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( + ManagedZone request, core.String project, core.String managedZone, + {core.String clientOperationId, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (managedZone == null) { + throw new core.ArgumentError("Parameter managedZone is required."); + } + if (clientOperationId != null) { + _queryParams["clientOperationId"] = [clientOperationId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/managedZones/' + + commons.Escaper.ecapeVariable('$managedZone'); + + var _response = _requester.request(_url, "PATCH", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /// Update an existing ManagedZone. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [project] - Identifies the project addressed by this request. + /// + /// [managedZone] - Identifies the managed zone addressed by this request. Can + /// be the managed zone name or id. + /// + /// [clientOperationId] - For mutating operation requests only. An optional + /// identifier specified by the client. Must be unique for operation resources + /// in the Operations collection. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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( + ManagedZone request, core.String project, core.String managedZone, + {core.String clientOperationId, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (managedZone == null) { + throw new core.ArgumentError("Parameter managedZone is required."); + } + if (clientOperationId != null) { + _queryParams["clientOperationId"] = [clientOperationId]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = commons.Escaper.ecapeVariable('$project') + + '/managedZones/' + + commons.Escaper.ecapeVariable('$managedZone'); + + 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 ProjectsResourceApi { @@ -486,6 +957,10 @@ /// /// [project] - Identifies the project addressed by this request. /// + /// [clientOperationId] - For mutating operation requests only. An optional + /// identifier specified by the client. Must be unique for operation resources + /// in the Operations collection. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -496,7 +971,8 @@ /// /// 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 project, {core.String $fields}) { + async.Future<Project> get(core.String project, + {core.String clientOperationId, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -507,6 +983,9 @@ if (project == null) { throw new core.ArgumentError("Parameter project is required."); } + if (clientOperationId != null) { + _queryParams["clientOperationId"] = [clientOperationId]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -623,6 +1102,9 @@ /// Unique identifier for the resource; defined by the server (output only). core.String id; + /// If the DNS queries for the zone will be served. + core.bool isServing; + /// Identifies what kind of resource this is. Value: the fixed string /// "dns#change". core.String kind; @@ -655,6 +1137,9 @@ if (_json.containsKey("id")) { id = _json["id"]; } + if (_json.containsKey("isServing")) { + isServing = _json["isServing"]; + } if (_json.containsKey("kind")) { kind = _json["kind"]; } @@ -678,6 +1163,9 @@ if (id != null) { _json["id"] = id; } + if (isServing != null) { + _json["isServing"] = isServing; + } if (kind != null) { _json["kind"] = kind; } @@ -696,6 +1184,7 @@ class ChangesListResponse { /// The requested changes. core.List<Change> changes; + ResponseHeader header; /// Type of resource. core.String kind; @@ -720,6 +1209,9 @@ .map<Change>((value) => new Change.fromJson(value)) .toList(); } + if (_json.containsKey("header")) { + header = new ResponseHeader.fromJson(_json["header"]); + } if (_json.containsKey("kind")) { kind = _json["kind"]; } @@ -734,6 +1226,310 @@ if (changes != null) { _json["changes"] = changes.map((value) => (value).toJson()).toList(); } + if (header != null) { + _json["header"] = (header).toJson(); + } + if (kind != null) { + _json["kind"] = kind; + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + +/// A DNSSEC key pair. +class DnsKey { + /// String mnemonic specifying the DNSSEC algorithm of this key. Immutable + /// after creation time. + /// Possible string values are: + /// - "ecdsap256sha256" + /// - "ecdsap384sha384" + /// - "rsasha1" + /// - "rsasha256" + /// - "rsasha512" + core.String algorithm; + + /// The time that this resource was created in the control plane. This is in + /// RFC3339 text format. Output only. + core.String creationTime; + + /// A mutable string of at most 1024 characters associated with this resource + /// for the user's convenience. Has no effect on the resource's function. + core.String description; + + /// Cryptographic hashes of the DNSKEY resource record associated with this + /// DnsKey. These digests are needed to construct a DS record that points at + /// this DNS key. Output only. + core.List<DnsKeyDigest> digests; + + /// Unique identifier for the resource; defined by the server (output only). + core.String id; + + /// Active keys will be used to sign subsequent changes to the ManagedZone. + /// Inactive keys will still be present as DNSKEY Resource Records for the use + /// of resolvers validating existing signatures. + core.bool isActive; + + /// Length of the key in bits. Specified at creation time then immutable. + core.int keyLength; + + /// The key tag is a non-cryptographic hash of the a DNSKEY resource record + /// associated with this DnsKey. The key tag can be used to identify a DNSKEY + /// more quickly (but it is not a unique identifier). In particular, the key + /// tag is used in a parent zone's DS record to point at the DNSKEY in this + /// child ManagedZone. The key tag is a number in the range [0, 65535] and the + /// algorithm to calculate it is specified in RFC4034 Appendix B. Output only. + core.int keyTag; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "dns#dnsKey". + core.String kind; + + /// Base64 encoded public half of this key. Output only. + core.String publicKey; + + /// One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the + /// Secure Entry Point flag set and, when active, will be used to sign only + /// resource record sets of type DNSKEY. Otherwise, the Secure Entry Point + /// flag will be cleared and this key will be used to sign only resource + /// record sets of other types. Immutable after creation time. + /// Possible string values are: + /// - "keySigning" + /// - "zoneSigning" + core.String type; + + DnsKey(); + + DnsKey.fromJson(core.Map _json) { + if (_json.containsKey("algorithm")) { + algorithm = _json["algorithm"]; + } + if (_json.containsKey("creationTime")) { + creationTime = _json["creationTime"]; + } + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("digests")) { + digests = (_json["digests"] as core.List) + .map<DnsKeyDigest>((value) => new DnsKeyDigest.fromJson(value)) + .toList(); + } + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("isActive")) { + isActive = _json["isActive"]; + } + if (_json.containsKey("keyLength")) { + keyLength = _json["keyLength"]; + } + if (_json.containsKey("keyTag")) { + keyTag = _json["keyTag"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("publicKey")) { + publicKey = _json["publicKey"]; + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (algorithm != null) { + _json["algorithm"] = algorithm; + } + if (creationTime != null) { + _json["creationTime"] = creationTime; + } + if (description != null) { + _json["description"] = description; + } + if (digests != null) { + _json["digests"] = digests.map((value) => (value).toJson()).toList(); + } + if (id != null) { + _json["id"] = id; + } + if (isActive != null) { + _json["isActive"] = isActive; + } + if (keyLength != null) { + _json["keyLength"] = keyLength; + } + if (keyTag != null) { + _json["keyTag"] = keyTag; + } + if (kind != null) { + _json["kind"] = kind; + } + if (publicKey != null) { + _json["publicKey"] = publicKey; + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +class DnsKeyDigest { + /// The base-16 encoded bytes of this digest. Suitable for use in a DS + /// resource record. + core.String digest; + + /// Specifies the algorithm used to calculate this digest. + /// Possible string values are: + /// - "sha1" + /// - "sha256" + /// - "sha384" + core.String type; + + DnsKeyDigest(); + + DnsKeyDigest.fromJson(core.Map _json) { + if (_json.containsKey("digest")) { + digest = _json["digest"]; + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (digest != null) { + _json["digest"] = digest; + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +/// Parameters for DnsKey key generation. Used for generating initial keys for a +/// new ManagedZone and as default when adding a new DnsKey. +class DnsKeySpec { + /// String mnemonic specifying the DNSSEC algorithm of this key. + /// Possible string values are: + /// - "ecdsap256sha256" + /// - "ecdsap384sha384" + /// - "rsasha1" + /// - "rsasha256" + /// - "rsasha512" + core.String algorithm; + + /// Length of the keys in bits. + core.int keyLength; + + /// One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the + /// Secure Entry Point flag set and, when active, will be used to sign only + /// resource record sets of type DNSKEY. Otherwise, the Secure Entry Point + /// flag will be cleared and this key will be used to sign only resource + /// record sets of other types. + /// Possible string values are: + /// - "keySigning" + /// - "zoneSigning" + core.String keyType; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "dns#dnsKeySpec". + core.String kind; + + DnsKeySpec(); + + DnsKeySpec.fromJson(core.Map _json) { + if (_json.containsKey("algorithm")) { + algorithm = _json["algorithm"]; + } + if (_json.containsKey("keyLength")) { + keyLength = _json["keyLength"]; + } + if (_json.containsKey("keyType")) { + keyType = _json["keyType"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (algorithm != null) { + _json["algorithm"] = algorithm; + } + if (keyLength != null) { + _json["keyLength"] = keyLength; + } + if (keyType != null) { + _json["keyType"] = keyType; + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + +/// The response to a request to enumerate DnsKeys in a ManagedZone. +class DnsKeysListResponse { + /// The requested resources. + core.List<DnsKey> dnsKeys; + ResponseHeader header; + + /// Type of resource. + core.String kind; + + /// The presence of this field indicates that there exist more results + /// following your last page of results in pagination order. To fetch them, + /// make another list request using this value as your pagination token. + /// + /// In this way you can retrieve the complete contents of even very large + /// collections one page at a time. However, if the contents of the collection + /// change between the first and last paginated list request, the set of all + /// elements returned will be an inconsistent view of the collection. There is + /// no way to retrieve a "snapshot" of collections larger than the maximum + /// page size. + core.String nextPageToken; + + DnsKeysListResponse(); + + DnsKeysListResponse.fromJson(core.Map _json) { + if (_json.containsKey("dnsKeys")) { + dnsKeys = (_json["dnsKeys"] as core.List) + .map<DnsKey>((value) => new DnsKey.fromJson(value)) + .toList(); + } + if (_json.containsKey("header")) { + header = new ResponseHeader.fromJson(_json["header"]); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (dnsKeys != null) { + _json["dnsKeys"] = dnsKeys.map((value) => (value).toJson()).toList(); + } + if (header != null) { + _json["header"] = (header).toJson(); + } if (kind != null) { _json["kind"] = kind; } @@ -759,6 +1555,9 @@ /// The DNS name of this managed zone, for instance "example.com.". core.String dnsName; + /// DNSSEC configuration. + ManagedZoneDnsSecConfig dnssecConfig; + /// Unique identifier for the resource; defined by the server (output only) core.String id; @@ -766,6 +1565,9 @@ /// "dns#managedZone". core.String kind; + /// User labels. + core.Map<core.String, core.String> labels; + /// User assigned name for this resource. Must be unique within the project. /// The name must be 1-63 characters long, must begin with a letter, end with /// a letter or digit, and only contain lowercase letters, digits or dashes. @@ -792,12 +1594,19 @@ if (_json.containsKey("dnsName")) { dnsName = _json["dnsName"]; } + if (_json.containsKey("dnssecConfig")) { + dnssecConfig = + new ManagedZoneDnsSecConfig.fromJson(_json["dnssecConfig"]); + } if (_json.containsKey("id")) { id = _json["id"]; } if (_json.containsKey("kind")) { kind = _json["kind"]; } + if (_json.containsKey("labels")) { + labels = (_json["labels"] as core.Map).cast<core.String, core.String>(); + } if (_json.containsKey("name")) { name = _json["name"]; } @@ -821,12 +1630,18 @@ if (dnsName != null) { _json["dnsName"] = dnsName; } + if (dnssecConfig != null) { + _json["dnssecConfig"] = (dnssecConfig).toJson(); + } if (id != null) { _json["id"] = id; } if (kind != null) { _json["kind"] = kind; } + if (labels != null) { + _json["labels"] = labels; + } if (name != null) { _json["name"] = name; } @@ -840,7 +1655,131 @@ } } +class ManagedZoneDnsSecConfig { + /// Specifies parameters that will be used for generating initial DnsKeys for + /// this ManagedZone. Output only while state is not OFF. + core.List<DnsKeySpec> defaultKeySpecs; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "dns#managedZoneDnsSecConfig". + core.String kind; + + /// Specifies the mechanism used to provide authenticated denial-of-existence + /// responses. Output only while state is not OFF. + /// Possible string values are: + /// - "nsec" + /// - "nsec3" + core.String nonExistence; + + /// Specifies whether DNSSEC is enabled, and what mode it is in. + /// Possible string values are: + /// - "off" + /// - "on" + /// - "transfer" + core.String state; + + ManagedZoneDnsSecConfig(); + + ManagedZoneDnsSecConfig.fromJson(core.Map _json) { + if (_json.containsKey("defaultKeySpecs")) { + defaultKeySpecs = (_json["defaultKeySpecs"] as core.List) + .map<DnsKeySpec>((value) => new DnsKeySpec.fromJson(value)) + .toList(); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("nonExistence")) { + nonExistence = _json["nonExistence"]; + } + if (_json.containsKey("state")) { + state = _json["state"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (defaultKeySpecs != null) { + _json["defaultKeySpecs"] = + defaultKeySpecs.map((value) => (value).toJson()).toList(); + } + if (kind != null) { + _json["kind"] = kind; + } + if (nonExistence != null) { + _json["nonExistence"] = nonExistence; + } + if (state != null) { + _json["state"] = state; + } + return _json; + } +} + +class ManagedZoneOperationsListResponse { + ResponseHeader header; + + /// Type of resource. + core.String kind; + + /// The presence of this field indicates that there exist more results + /// following your last page of results in pagination order. To fetch them, + /// make another list request using this value as your page token. + /// + /// In this way you can retrieve the complete contents of even very large + /// collections one page at a time. However, if the contents of the collection + /// change between the first and last paginated list request, the set of all + /// elements returned will be an inconsistent view of the collection. There is + /// no way to retrieve a consistent snapshot of a collection larger than the + /// maximum page size. + core.String nextPageToken; + + /// The operation resources. + core.List<Operation> operations; + + ManagedZoneOperationsListResponse(); + + ManagedZoneOperationsListResponse.fromJson(core.Map _json) { + if (_json.containsKey("header")) { + header = new ResponseHeader.fromJson(_json["header"]); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("operations")) { + operations = (_json["operations"] as core.List) + .map<Operation>((value) => new Operation.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (header != null) { + _json["header"] = (header).toJson(); + } + if (kind != null) { + _json["kind"] = kind; + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (operations != null) { + _json["operations"] = + operations.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + class ManagedZonesListResponse { + ResponseHeader header; + /// Type of resource. core.String kind; @@ -862,6 +1801,9 @@ ManagedZonesListResponse(); ManagedZonesListResponse.fromJson(core.Map _json) { + if (_json.containsKey("header")) { + header = new ResponseHeader.fromJson(_json["header"]); + } if (_json.containsKey("kind")) { kind = _json["kind"]; } @@ -878,6 +1820,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (header != null) { + _json["header"] = (header).toJson(); + } if (kind != null) { _json["kind"] = kind; } @@ -892,6 +1837,171 @@ } } +/// An operation represents a successful mutation performed on a Cloud DNS +/// resource. Operations provide: - An audit log of server resource mutations. - +/// A way to recover/retry API calls in the case where the response is never +/// received by the caller. Use the caller specified client_operation_id. +class Operation { + /// Only populated if the operation targeted a DnsKey (output only). + OperationDnsKeyContext dnsKeyContext; + + /// Unique identifier for the resource. This is the client_operation_id if the + /// client specified it when the mutation was initiated, otherwise, it is + /// generated by the server. The name must be 1-63 characters long and match + /// the regular expression [-a-z0-9]? (output only) + core.String id; + + /// Identifies what kind of resource this is. Value: the fixed string + /// "dns#operation". + core.String kind; + + /// The time that this operation was started by the server. This is in RFC3339 + /// text format (output only). + core.String startTime; + + /// Status of the operation. Can be one of the following: "PENDING" or "DONE" + /// (output only). + /// Possible string values are: + /// - "done" + /// - "pending" + core.String status; + + /// Type of the operation. Operations include insert, update, and delete + /// (output only). + core.String type; + + /// User who requested the operation, for example: user@example.com. + /// cloud-dns-system for operations automatically done by the system. (output + /// only) + core.String user; + + /// Only populated if the operation targeted a ManagedZone (output only). + OperationManagedZoneContext zoneContext; + + Operation(); + + Operation.fromJson(core.Map _json) { + if (_json.containsKey("dnsKeyContext")) { + dnsKeyContext = + new OperationDnsKeyContext.fromJson(_json["dnsKeyContext"]); + } + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("startTime")) { + startTime = _json["startTime"]; + } + if (_json.containsKey("status")) { + status = _json["status"]; + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + if (_json.containsKey("user")) { + user = _json["user"]; + } + if (_json.containsKey("zoneContext")) { + zoneContext = + new OperationManagedZoneContext.fromJson(_json["zoneContext"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (dnsKeyContext != null) { + _json["dnsKeyContext"] = (dnsKeyContext).toJson(); + } + if (id != null) { + _json["id"] = id; + } + if (kind != null) { + _json["kind"] = kind; + } + if (startTime != null) { + _json["startTime"] = startTime; + } + if (status != null) { + _json["status"] = status; + } + if (type != null) { + _json["type"] = type; + } + if (user != null) { + _json["user"] = user; + } + if (zoneContext != null) { + _json["zoneContext"] = (zoneContext).toJson(); + } + return _json; + } +} + +class OperationDnsKeyContext { + /// The post-operation DnsKey resource. + DnsKey newValue; + + /// The pre-operation DnsKey resource. + DnsKey oldValue; + + OperationDnsKeyContext(); + + OperationDnsKeyContext.fromJson(core.Map _json) { + if (_json.containsKey("newValue")) { + newValue = new DnsKey.fromJson(_json["newValue"]); + } + if (_json.containsKey("oldValue")) { + oldValue = new DnsKey.fromJson(_json["oldValue"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (newValue != null) { + _json["newValue"] = (newValue).toJson(); + } + if (oldValue != null) { + _json["oldValue"] = (oldValue).toJson(); + } + return _json; + } +} + +class OperationManagedZoneContext { + /// The post-operation ManagedZone resource. + ManagedZone newValue; + + /// The pre-operation ManagedZone resource. + ManagedZone oldValue; + + OperationManagedZoneContext(); + + OperationManagedZoneContext.fromJson(core.Map _json) { + if (_json.containsKey("newValue")) { + newValue = new ManagedZone.fromJson(_json["newValue"]); + } + if (_json.containsKey("oldValue")) { + oldValue = new ManagedZone.fromJson(_json["oldValue"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (newValue != null) { + _json["newValue"] = (newValue).toJson(); + } + if (oldValue != null) { + _json["oldValue"] = (oldValue).toJson(); + } + return _json; + } +} + /// A project resource. The project is a top level container for resources /// including Cloud DNS ManagedZones. Projects can be created only in the APIs /// console. @@ -948,6 +2058,12 @@ /// Limits associated with a Project. class Quota { + /// Whether a black hole zone should suppress system zones for this project. + core.bool blackHoleHidesSystemZones; + + /// Maximum allowed number of DnsKeys per ManagedZone. + core.int dnsKeysPerManagedZone; + /// Identifies what kind of resource this is. Value: the fixed string /// "dns#quota". core.String kind; @@ -973,9 +2089,18 @@ /// bytes. core.int totalRrdataSizePerChange; + /// DNSSEC algorithm and key length types that can be used for DnsKeys. + core.List<DnsKeySpec> whitelistedKeySpecs; + Quota(); Quota.fromJson(core.Map _json) { + if (_json.containsKey("blackHoleHidesSystemZones")) { + blackHoleHidesSystemZones = _json["blackHoleHidesSystemZones"]; + } + if (_json.containsKey("dnsKeysPerManagedZone")) { + dnsKeysPerManagedZone = _json["dnsKeysPerManagedZone"]; + } if (_json.containsKey("kind")) { kind = _json["kind"]; } @@ -997,11 +2122,22 @@ if (_json.containsKey("totalRrdataSizePerChange")) { totalRrdataSizePerChange = _json["totalRrdataSizePerChange"]; } + if (_json.containsKey("whitelistedKeySpecs")) { + whitelistedKeySpecs = (_json["whitelistedKeySpecs"] as core.List) + .map<DnsKeySpec>((value) => new DnsKeySpec.fromJson(value)) + .toList(); + } } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (blackHoleHidesSystemZones != null) { + _json["blackHoleHidesSystemZones"] = blackHoleHidesSystemZones; + } + if (dnsKeysPerManagedZone != null) { + _json["dnsKeysPerManagedZone"] = dnsKeysPerManagedZone; + } if (kind != null) { _json["kind"] = kind; } @@ -1023,6 +2159,10 @@ if (totalRrdataSizePerChange != null) { _json["totalRrdataSizePerChange"] = totalRrdataSizePerChange; } + if (whitelistedKeySpecs != null) { + _json["whitelistedKeySpecs"] = + whitelistedKeySpecs.map((value) => (value).toJson()).toList(); + } return _json; } } @@ -1039,6 +2179,9 @@ /// As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1). core.List<core.String> rrdatas; + /// As defined in RFC 4034 (section 3.2). + core.List<core.String> signatureRrdatas; + /// Number of seconds that this ResourceRecordSet can be cached by resolvers. core.int ttl; @@ -1058,6 +2201,10 @@ if (_json.containsKey("rrdatas")) { rrdatas = (_json["rrdatas"] as core.List).cast<core.String>(); } + if (_json.containsKey("signatureRrdatas")) { + signatureRrdatas = + (_json["signatureRrdatas"] as core.List).cast<core.String>(); + } if (_json.containsKey("ttl")) { ttl = _json["ttl"]; } @@ -1078,6 +2225,9 @@ if (rrdatas != null) { _json["rrdatas"] = rrdatas; } + if (signatureRrdatas != null) { + _json["signatureRrdatas"] = signatureRrdatas; + } if (ttl != null) { _json["ttl"] = ttl; } @@ -1089,6 +2239,8 @@ } class ResourceRecordSetsListResponse { + ResponseHeader header; + /// Type of resource. core.String kind; @@ -1110,6 +2262,9 @@ ResourceRecordSetsListResponse(); ResourceRecordSetsListResponse.fromJson(core.Map _json) { + if (_json.containsKey("header")) { + header = new ResponseHeader.fromJson(_json["header"]); + } if (_json.containsKey("kind")) { kind = _json["kind"]; } @@ -1127,6 +2282,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (header != null) { + _json["header"] = (header).toJson(); + } if (kind != null) { _json["kind"] = kind; } @@ -1139,3 +2297,28 @@ return _json; } } + +/// Elements common to every response. +class ResponseHeader { + /// For mutating operation requests that completed successfully. This is the + /// client_operation_id if the client specified it, otherwise it is generated + /// by the server (output only). + core.String operationId; + + ResponseHeader(); + + ResponseHeader.fromJson(core.Map _json) { + if (_json.containsKey("operationId")) { + operationId = _json["operationId"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (operationId != null) { + _json["operationId"] = operationId; + } + return _json; + } +}
diff --git a/generated/googleapis/lib/doubleclicksearch/v2.dart b/generated/googleapis/lib/doubleclicksearch/v2.dart index d69faa9..7921185 100644 --- a/generated/googleapis/lib/doubleclicksearch/v2.dart +++ b/generated/googleapis/lib/doubleclicksearch/v2.dart
@@ -1448,6 +1448,7 @@ core.String operator; /// A list of values to filter the column value against. + /// The maximum number of filter values per request is 300. /// /// The values for Object must be JSON objects. It can consist of `num`, /// `String`, `bool` and `null` as well as `Map` and `List` values. @@ -1658,6 +1659,7 @@ /// columnName parameter is required. For saved columns only the /// savedColumnName parameter is required. Both columnName and savedColumnName /// cannot be set in the same stanza. + /// The maximum number of columns per request is 300. core.List<ReportApiColumnSpec> columns; /// Format that the report should be returned in. Currently csv or tsv is @@ -1665,6 +1667,7 @@ core.String downloadFormat; /// A list of filters to be applied to the report. + /// The maximum number of filters per request is 300. core.List<ReportRequestFilters> filters; /// Determines if removed entities should be included in the report. Defaults @@ -1682,6 +1685,7 @@ /// Synchronous report only. A list of columns and directions defining sorting /// to be performed on the report rows. + /// The maximum number of orderings per request is 300. core.List<ReportRequestOrderBy> orderBy; /// The reportScope is a set of IDs that are used to determine which subset of
diff --git a/generated/googleapis/lib/drive/v2.dart b/generated/googleapis/lib/drive/v2.dart index 010fec8..4599ad1 100644 --- a/generated/googleapis/lib/drive/v2.dart +++ b/generated/googleapis/lib/drive/v2.dart
@@ -3426,8 +3426,7 @@ return _response.then((data) => new PropertyList.fromJson(data)); } - /// Updates a property, or adds it if it doesn't exist. This method supports - /// patch semantics. + /// Updates a property. /// /// [request] - The metadata request object. /// @@ -3437,7 +3436,8 @@ /// /// [propertyKey] - The key of the property. /// - /// [visibility] - The visibility of the property. + /// [visibility] - The visibility of the property. Allowed values are PRIVATE + /// and PUBLIC. (Default: PRIVATE) /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -3489,7 +3489,7 @@ return _response.then((data) => new Property.fromJson(data)); } - /// Updates a property, or adds it if it doesn't exist. + /// Updates a property. /// /// [request] - The metadata request object. /// @@ -3499,7 +3499,8 @@ /// /// [propertyKey] - The key of the property. /// - /// [visibility] - The visibility of the property. + /// [visibility] - The visibility of the property. Allowed values are PRIVATE + /// and PUBLIC. (Default: PRIVATE) /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -8305,7 +8306,8 @@ /// The value of this property. core.String value; - /// The visibility of this property. + /// The visibility of this property. Allowed values are PRIVATE and PUBLIC. + /// (Default: PRIVATE) core.String visibility; Property();
diff --git a/generated/googleapis/lib/firebasedynamiclinks/v1.dart b/generated/googleapis/lib/firebasedynamiclinks/v1.dart index 887f2b1..cdc6cf3 100644 --- a/generated/googleapis/lib/firebasedynamiclinks/v1.dart +++ b/generated/googleapis/lib/firebasedynamiclinks/v1.dart
@@ -23,16 +23,83 @@ final commons.ApiRequester _requester; + ManagedShortLinksResourceApi get managedShortLinks => + new ManagedShortLinksResourceApi(_requester); ShortLinksResourceApi get shortLinks => new ShortLinksResourceApi(_requester); V1ResourceApi get v1 => new V1ResourceApi(_requester); FirebasedynamiclinksApi(http.Client client, - {core.String rootUrl: "https://firebasedynamiclinks-ipv6.googleapis.com/", + {core.String rootUrl: "https://firebasedynamiclinks.googleapis.com/", core.String servicePath: ""}) : _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); } +class ManagedShortLinksResourceApi { + final commons.ApiRequester _requester; + + ManagedShortLinksResourceApi(commons.ApiRequester client) + : _requester = client; + + /// Creates a managed 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. + /// + /// This differs from CreateShortDynamicLink in the following ways: + /// - The request will also contain a name for the link (non unique name + /// for the front end). + /// - The response must be authenticated with an auth token (generated with + /// the admin service account). + /// - The link will appear in the FDL list of links in the console front end. + /// + /// The Dynamic Link domain in the request must be owned by requester's + /// Firebase project. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [CreateManagedShortLinkResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<CreateManagedShortLinkResponse> create( + CreateManagedShortLinkRequest request, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/managedShortLinks:create'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response + .then((data) => new CreateManagedShortLinkResponse.fromJson(data)); + } +} + class ShortLinksResourceApi { final commons.ApiRequester _requester; @@ -278,18 +345,122 @@ } } -/// Request to create a short Dynamic Link. -class CreateShortDynamicLinkRequest { +/// Request to create a managed Short Dynamic Link. +class CreateManagedShortLinkRequest { /// Information about the Dynamic Link to be shortened. /// [Learn - /// more](https://firebase.google.com/docs/dynamic-links/android#create-a-dynamic-link-programmatically). + /// more](https://firebase.google.com/docs/reference/dynamic-links/link-shortener). 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). + /// more](https://firebase.google.com/docs/reference/dynamic-links/link-shortener). + core.String longDynamicLink; + + /// Link name to associate with the link. It's used for marketer to identify + /// manually-created links in the Firebase console + /// (https://console.firebase.google.com/). + /// Links must be named to be tracked. + core.String name; + + /// Short Dynamic Link suffix. Optional. + Suffix suffix; + + CreateManagedShortLinkRequest(); + + CreateManagedShortLinkRequest.fromJson(core.Map _json) { + if (_json.containsKey("dynamicLinkInfo")) { + dynamicLinkInfo = new DynamicLinkInfo.fromJson(_json["dynamicLinkInfo"]); + } + if (_json.containsKey("longDynamicLink")) { + longDynamicLink = _json["longDynamicLink"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("suffix")) { + suffix = new Suffix.fromJson(_json["suffix"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (dynamicLinkInfo != null) { + _json["dynamicLinkInfo"] = (dynamicLinkInfo).toJson(); + } + if (longDynamicLink != null) { + _json["longDynamicLink"] = longDynamicLink; + } + if (name != null) { + _json["name"] = name; + } + if (suffix != null) { + _json["suffix"] = (suffix).toJson(); + } + return _json; + } +} + +/// Response to create a short Dynamic Link. +class CreateManagedShortLinkResponse { + /// Short Dynamic Link value. e.g. https://abcd.app.goo.gl/wxyz + ManagedShortLink managedShortLink; + + /// Preview link to show the link flow chart. (debug info.) + core.String previewLink; + + /// Information about potential warnings on link creation. + core.List<DynamicLinkWarning> warning; + + CreateManagedShortLinkResponse(); + + CreateManagedShortLinkResponse.fromJson(core.Map _json) { + if (_json.containsKey("managedShortLink")) { + managedShortLink = + new ManagedShortLink.fromJson(_json["managedShortLink"]); + } + if (_json.containsKey("previewLink")) { + previewLink = _json["previewLink"]; + } + if (_json.containsKey("warning")) { + warning = (_json["warning"] as core.List) + .map<DynamicLinkWarning>( + (value) => new DynamicLinkWarning.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (managedShortLink != null) { + _json["managedShortLink"] = (managedShortLink).toJson(); + } + if (previewLink != null) { + _json["previewLink"] = previewLink; + } + if (warning != null) { + _json["warning"] = warning.map((value) => (value).toJson()).toList(); + } + 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/reference/dynamic-links/link-shortener). + 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/reference/dynamic-links/link-shortener). core.String longDynamicLink; /// Short Dynamic Link suffix. Optional. @@ -327,7 +498,7 @@ /// Response to create a short Dynamic Link. class CreateShortDynamicLinkResponse { - /// Preivew link to show the link flow chart. + /// Preview link to show the link flow chart. (debug info.) core.String previewLink; /// Short Dynamic Link value. e.g. https://abcd.app.goo.gl/wxyz @@ -501,8 +672,8 @@ /// - "IOS" : Represents iOS platform. /// All apps and browsers on iOS are classfied in this category. /// - "DESKTOP" : Represents desktop. - /// Note: other platforms like Windows, Blackberry, Amazon fall into this - /// category. + /// - "OTHER" : Platforms are not categorized as Android/iOS/Destop fall into + /// here. core.String platform; DynamicLinkEventStat(); @@ -549,6 +720,11 @@ /// [documentation](https://firebase.google.com/docs/dynamic-links/create-manually). DesktopInfo desktopInfo; + /// E.g. https://maps.app.goo.gl, https://maps.page.link, https://g.co/maps + /// More examples can be found in description of getNormalizedUriPrefix in + /// j/c/g/firebase/dynamiclinks/uri/DdlDomain.java + core.String domainUriPrefix; + /// Dynamic Links domain that the project owns, e.g. abcd.app.goo.gl /// [Learn /// more](https://firebase.google.com/docs/dynamic-links/android/receive) @@ -589,6 +765,9 @@ if (_json.containsKey("desktopInfo")) { desktopInfo = new DesktopInfo.fromJson(_json["desktopInfo"]); } + if (_json.containsKey("domainUriPrefix")) { + domainUriPrefix = _json["domainUriPrefix"]; + } if (_json.containsKey("dynamicLinkDomain")) { dynamicLinkDomain = _json["dynamicLinkDomain"]; } @@ -619,6 +798,9 @@ if (desktopInfo != null) { _json["desktopInfo"] = (desktopInfo).toJson(); } + if (domainUriPrefix != null) { + _json["domainUriPrefix"] = domainUriPrefix; + } if (dynamicLinkDomain != null) { _json["dynamicLinkDomain"] = dynamicLinkDomain; } @@ -911,6 +1093,13 @@ /// This message will be publicly visible. core.String matchMessage; + /// Which IP version the request was made from. + /// Possible string values are: + /// - "UNKNOWN_IP_VERSION" : Unset. + /// - "IP_V4" : Request made from an IPv4 IP address. + /// - "IP_V6" : Request made from an IPv6 IP address. + core.String requestIpVersion; + /// Entire FDL (short or long) attributed post-install via one of several /// techniques (fingerprint, copy unique). core.String requestedLink; @@ -958,6 +1147,9 @@ if (_json.containsKey("matchMessage")) { matchMessage = _json["matchMessage"]; } + if (_json.containsKey("requestIpVersion")) { + requestIpVersion = _json["requestIpVersion"]; + } if (_json.containsKey("requestedLink")) { requestedLink = _json["requestedLink"]; } @@ -1002,6 +1194,9 @@ if (matchMessage != null) { _json["matchMessage"] = matchMessage; } + if (requestIpVersion != null) { + _json["requestIpVersion"] = requestIpVersion; + } if (requestedLink != null) { _json["requestedLink"] = requestedLink; } @@ -1220,6 +1415,87 @@ } } +/// Managed Short Link. +class ManagedShortLink { + /// Creation timestamp of the short link. + core.String creationTime; + + /// Attributes that have been flagged about this short url. + core.List<core.String> flaggedAttribute; + + /// Full Dyamic Link info + DynamicLinkInfo info; + + /// Short durable link url, for example, "https://sample.app.goo.gl/xyz123". + /// + /// Required. + core.String link; + + /// Link name defined by the creator. + /// + /// Required. + core.String linkName; + + /// Visibility status of link. + /// Possible string values are: + /// - "UNSPECIFIED_VISIBILITY" : Visibility of the link is not specified. + /// - "UNARCHIVED" : Link created in console and should be shown in console. + /// - "ARCHIVED" : Link created in console and should not be shown in console + /// (but can + /// be shown in the console again if it is unarchived). + /// - "NEVER_SHOWN" : Link created outside of console and should never be + /// shown in console. + core.String visibility; + + ManagedShortLink(); + + ManagedShortLink.fromJson(core.Map _json) { + if (_json.containsKey("creationTime")) { + creationTime = _json["creationTime"]; + } + if (_json.containsKey("flaggedAttribute")) { + flaggedAttribute = + (_json["flaggedAttribute"] as core.List).cast<core.String>(); + } + if (_json.containsKey("info")) { + info = new DynamicLinkInfo.fromJson(_json["info"]); + } + if (_json.containsKey("link")) { + link = _json["link"]; + } + if (_json.containsKey("linkName")) { + linkName = _json["linkName"]; + } + if (_json.containsKey("visibility")) { + visibility = _json["visibility"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (creationTime != null) { + _json["creationTime"] = creationTime; + } + if (flaggedAttribute != null) { + _json["flaggedAttribute"] = flaggedAttribute; + } + if (info != null) { + _json["info"] = (info).toJson(); + } + if (link != null) { + _json["link"] = link; + } + if (linkName != null) { + _json["linkName"] = linkName; + } + if (visibility != null) { + _json["visibility"] = visibility; + } + return _json; + } +} + /// Information of navigation behavior. class NavigationInfo { /// If this option is on, FDL click will be forced to redirect rather than @@ -1288,10 +1564,13 @@ /// Short Dynamic Link suffix. class Suffix { + /// Only applies to Option.CUSTOM. + core.String customSuffix; + /// Suffix option. /// Possible string values are: /// - "OPTION_UNSPECIFIED" : The suffix option is not specified, performs as - /// NOT_GUESSABLE . + /// UNGUESSABLE . /// - "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. @@ -1302,11 +1581,18 @@ /// starting with a /// length of 4 chars. the length will increase when all the space is /// occupied. + /// - "CUSTOM" : Custom DDL suffix is a client specified string, for example, + /// "buy2get1free". + /// NOTE: custom suffix should only be available to managed short link + /// creation core.String option; Suffix(); Suffix.fromJson(core.Map _json) { + if (_json.containsKey("customSuffix")) { + customSuffix = _json["customSuffix"]; + } if (_json.containsKey("option")) { option = _json["option"]; } @@ -1315,6 +1601,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (customSuffix != null) { + _json["customSuffix"] = customSuffix; + } if (option != null) { _json["option"] = option; }
diff --git a/generated/googleapis/lib/firebaserules/v1.dart b/generated/googleapis/lib/firebaserules/v1.dart index 34dddb7..4da2f8c 100644 --- a/generated/googleapis/lib/firebaserules/v1.dart +++ b/generated/googleapis/lib/firebaserules/v1.dart
@@ -678,14 +678,6 @@ /// Format: `projects/{project_id}` /// Value must have pattern "^projects/[^/]+$". /// - /// [pageToken] - Next page token for loading the next batch of `Ruleset` - /// instances. - /// - /// [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 - /// than `page_size` due to the size of the output. To traverse all of the - /// releases, caller should iterate until the `page_token` is empty. - /// /// [filter] - `Ruleset` filter. The list method supports filters with /// restrictions on /// `Ruleset.name`. @@ -695,6 +687,14 @@ /// /// Example: `create_time > date("2017-01-01") AND name=UUID-*` /// + /// [pageToken] - Next page token for loading the next batch of `Ruleset` + /// instances. + /// + /// [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 + /// than `page_size` due to the size of the output. To traverse all of the + /// releases, caller should iterate until the `page_token` is empty. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -706,9 +706,9 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListRulesetsResponse> list(core.String name, - {core.String pageToken, + {core.String filter, + core.String pageToken, core.int pageSize, - core.String filter, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -720,15 +720,15 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; }
diff --git a/generated/googleapis/lib/genomics/v1.dart b/generated/googleapis/lib/genomics/v1.dart index 6d0ef14..62a664b 100644 --- a/generated/googleapis/lib/genomics/v1.dart +++ b/generated/googleapis/lib/genomics/v1.dart
@@ -656,10 +656,6 @@ /// Creates a new call set. /// - /// For the definitions of call sets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// [request] - The metadata request object. /// /// Request parameters: @@ -702,10 +698,6 @@ /// Deletes a call set. /// - /// For the definitions of call sets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Request parameters: /// /// [callSetId] - The ID of the call set to be deleted. @@ -748,10 +740,6 @@ /// Gets a call set by ID. /// - /// For the definitions of call sets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Request parameters: /// /// [callSetId] - The ID of the call set. @@ -794,10 +782,6 @@ /// Updates a call set. /// - /// For the definitions of call sets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// This method supports patch semantics. /// /// [request] - The metadata request object. @@ -857,10 +841,6 @@ /// Gets a list of call sets matching the criteria. /// - /// For the definitions of call sets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Implements /// [GlobalAllianceApi.searchCallSets](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/variantmethods.avdl#L178). /// @@ -913,10 +893,6 @@ /// Creates a new dataset. /// - /// For the definitions of datasets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// [request] - The metadata request object. /// /// Request parameters: @@ -964,10 +940,6 @@ /// datasets.undelete /// operation. /// - /// For the definitions of datasets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Request parameters: /// /// [datasetId] - The ID of the dataset to be deleted. @@ -1010,10 +982,6 @@ /// Gets a dataset by ID. /// - /// For the definitions of datasets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Request parameters: /// /// [datasetId] - The ID of the dataset. @@ -1060,10 +1028,6 @@ /// See <a href="/iam/docs/managing-policies#getting_a_policy">Getting a /// Policy</a> for more information. /// - /// For the definitions of datasets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// [request] - The metadata request object. /// /// Request parameters: @@ -1118,10 +1082,6 @@ /// Lists datasets within a project. /// - /// For the definitions of datasets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Request parameters: /// /// [pageToken] - The continuation token, which is used to page through large @@ -1183,10 +1143,6 @@ /// Updates a dataset. /// - /// For the definitions of datasets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// This method supports patch semantics. /// /// [request] - The metadata request object. @@ -1247,10 +1203,6 @@ /// Sets the access control policy on the specified dataset. Replaces any /// existing policy. /// - /// For the definitions of datasets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// See <a href="/iam/docs/managing-policies#setting_a_policy">Setting a /// Policy</a> for more information. /// @@ -1310,10 +1262,6 @@ /// See <a href="/iam/docs/managing-policies#testing_permissions">Testing /// Permissions</a> for more information. /// - /// For the definitions of datasets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// [request] - The metadata request object. /// /// Request parameters: @@ -1369,10 +1317,6 @@ /// Undeletes a dataset by restoring a dataset which was deleted via this API. /// - /// For the definitions of datasets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// This operation is only possible for a week after the deletion occurred. /// /// [request] - The metadata request object. @@ -1535,8 +1479,22 @@ /// [name] - The name of the operation's parent resource. /// Value must have pattern "^operations$". /// + /// [pageSize] - The maximum number of results to return. If unspecified, + /// defaults to + /// 256. The maximum value is 2048. + /// /// [filter] - A string for filtering Operations. - /// The following filter fields are supported: + /// In v2alpha1, the following filter fields are supported: + /// + /// * createTime: The time this job was created + /// * events: The set of event (names) that have occurred while running + /// the pipeline. The : operator can be used to determine if a + /// particular event has occurred. + /// * error: If the pipeline is running, this value is NULL. Once the + /// pipeline finishes, the value is the standard Google error code. + /// * labels.key or labels."key with space" where key is a label key. + /// + /// In v1 and v1alpha2, the following filter fields are supported: /// /// * projectId: Required. Corresponds to /// OperationMetadata.projectId. @@ -1557,10 +1515,6 @@ /// /// [pageToken] - The standard list page token. /// - /// [pageSize] - The maximum number of results to return. If unspecified, - /// defaults to - /// 256. The maximum value is 2048. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -1572,9 +1526,9 @@ /// 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.String filter, + {core.int pageSize, + core.String filter, core.String pageToken, - core.int pageSize, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -1586,15 +1540,15 @@ 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]; } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1621,10 +1575,6 @@ /// Deletes a read group set. /// - /// For the definitions of read group sets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Request parameters: /// /// [readGroupSetId] - The ID of the read group set to be deleted. The caller @@ -1671,10 +1621,6 @@ /// Exports a read group set to a BAM file in Google Cloud Storage. /// - /// For the definitions of read group sets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Note that currently there may be some differences between exported BAM /// files and the original BAM file at the time of import. See /// ImportReadGroupSets @@ -1733,10 +1679,6 @@ /// Gets a read group set by ID. /// - /// For the definitions of read group sets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Request parameters: /// /// [readGroupSetId] - The ID of the read group set. @@ -1782,10 +1724,6 @@ /// Creates read group sets by asynchronously importing the provided /// information. /// - /// For the definitions of read group sets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// The caller must have WRITE permissions to the dataset. /// /// ## Notes on [BAM](https://samtools.github.io/hts-specs/SAMv1.pdf) import @@ -1842,10 +1780,6 @@ /// Updates a read group set. /// - /// For the definitions of read group sets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// This method supports patch semantics. /// /// [request] - The metadata request object. @@ -1912,10 +1846,6 @@ /// Searches for read group sets matching the criteria. /// - /// For the definitions of read group sets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Implements /// [GlobalAllianceApi.searchReadGroupSets](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/readmethods.avdl#L135). /// @@ -1973,10 +1903,6 @@ /// correspond to a range of a reference sequence. Each bucket summarizes /// coverage information across its corresponding genomic range. /// - /// For the definitions of read group sets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Coverage is defined as the number of reads which are aligned to a given /// base in the reference sequence. Coverage buckets are available at several /// precomputed bucket widths, enabling retrieval of various coverage 'zoom @@ -1988,6 +1914,19 @@ /// [readGroupSetId] - Required. The ID of the read group set over which /// coverage is requested. /// + /// [start] - The start position of the range on the reference, 0-based + /// inclusive. If + /// specified, `referenceName` must also be specified. Defaults to 0. + /// + /// [targetBucketWidth] - The desired width of each reported coverage bucket + /// in base pairs. This + /// will be rounded down to the nearest precomputed bucket width; the value + /// of which is returned as `bucketWidth` in the response. Defaults + /// to infinity (each bucket spans an entire reference sequence) or the length + /// of the target range, if specified. The smallest precomputed + /// `bucketWidth` is currently 2048 base pairs; this is subject to + /// change. + /// /// [referenceName] - The name of the reference to query, within the reference /// set associated /// with this query. Optional. @@ -2006,19 +1945,6 @@ /// unspecified, /// defaults to 1024. The maximum value is 2048. /// - /// [start] - The start position of the range on the reference, 0-based - /// inclusive. If - /// specified, `referenceName` must also be specified. Defaults to 0. - /// - /// [targetBucketWidth] - The desired width of each reported coverage bucket - /// in base pairs. This - /// will be rounded down to the nearest precomputed bucket width; the value - /// of which is returned as `bucketWidth` in the response. Defaults - /// to infinity (each bucket spans an entire reference sequence) or the length - /// of the target range, if specified. The smallest precomputed - /// `bucketWidth` is currently 2048 base pairs; this is subject to - /// change. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -2030,12 +1956,12 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListCoverageBucketsResponse> list(core.String readGroupSetId, - {core.String referenceName, + {core.String start, + core.String targetBucketWidth, + core.String referenceName, core.String end, core.String pageToken, core.int pageSize, - core.String start, - core.String targetBucketWidth, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -2047,6 +1973,12 @@ if (readGroupSetId == null) { throw new core.ArgumentError("Parameter readGroupSetId is required."); } + if (start != null) { + _queryParams["start"] = [start]; + } + if (targetBucketWidth != null) { + _queryParams["targetBucketWidth"] = [targetBucketWidth]; + } if (referenceName != null) { _queryParams["referenceName"] = [referenceName]; } @@ -2059,12 +1991,6 @@ if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (start != null) { - _queryParams["start"] = [start]; - } - if (targetBucketWidth != null) { - _queryParams["targetBucketWidth"] = [targetBucketWidth]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -2091,10 +2017,6 @@ /// Gets a list of reads for one or more read group sets. /// - /// For the definitions of read group sets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Reads search operates over a genomic coordinate space of reference /// sequence /// & position defined over the reference sequences to which the requested @@ -2169,10 +2091,6 @@ /// Gets a reference. /// - /// For the definitions of references and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Implements /// [GlobalAllianceApi.getReference](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L158). /// @@ -2218,10 +2136,6 @@ /// Searches for references which match the given criteria. /// - /// For the definitions of references and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Implements /// [GlobalAllianceApi.searchReferences](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L146). /// @@ -2275,10 +2189,6 @@ /// Lists the bases in a reference, optionally restricted to a range. /// - /// For the definitions of references and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Implements /// [GlobalAllianceApi.getReferenceBases](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L221). /// @@ -2286,6 +2196,10 @@ /// /// [referenceId] - The ID of the reference. /// + /// [end] - The end position (0-based, exclusive) of this query. Defaults to + /// the length + /// of this reference. + /// /// [pageToken] - The continuation token, which is used to page through large /// result sets. /// To get the next page of results, set this parameter to the value of @@ -2299,10 +2213,6 @@ /// /// [start] - The start position (0-based) of this query. Defaults to 0. /// - /// [end] - The end position (0-based, exclusive) of this query. Defaults to - /// the length - /// of this reference. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -2314,10 +2224,10 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListBasesResponse> list(core.String referenceId, - {core.String pageToken, + {core.String end, + core.String pageToken, core.int pageSize, core.String start, - core.String end, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -2329,6 +2239,9 @@ if (referenceId == null) { throw new core.ArgumentError("Parameter referenceId is required."); } + if (end != null) { + _queryParams["end"] = [end]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -2338,9 +2251,6 @@ if (start != null) { _queryParams["start"] = [start]; } - if (end != null) { - _queryParams["end"] = [end]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -2366,10 +2276,6 @@ /// Gets a reference set. /// - /// For the definitions of references and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Implements /// [GlobalAllianceApi.getReferenceSet](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L83). /// @@ -2417,10 +2323,6 @@ /// Searches for reference sets which match the given criteria. /// - /// For the definitions of references and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Implements /// [GlobalAllianceApi.searchReferenceSets](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L71) /// @@ -2475,10 +2377,6 @@ /// Creates a new variant. /// - /// For the definitions of variants and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// [request] - The metadata request object. /// /// Request parameters: @@ -2521,10 +2419,6 @@ /// Deletes a variant. /// - /// For the definitions of variants and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Request parameters: /// /// [variantId] - The ID of the variant to be deleted. @@ -2567,10 +2461,6 @@ /// Gets a variant by ID. /// - /// For the definitions of variants and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Request parameters: /// /// [variantId] - The ID of the variant. @@ -2613,10 +2503,6 @@ /// Creates variant data by asynchronously importing the provided information. /// - /// For the definitions of variant sets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// The variants for import will be merged with any existing variant that /// matches its reference sequence, start, end, reference bases, and /// alternative bases. If no such variant exists, a new one will be created. @@ -2675,10 +2561,6 @@ /// Merges the given variants with existing variants. /// - /// For the definitions of variants and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Each variant will be /// merged with an existing variant that matches its reference sequence, /// start, end, reference bases, and alternative bases. If no such variant @@ -2808,10 +2690,6 @@ /// Updates a variant. /// - /// For the definitions of variants and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// This method supports patch semantics. Returns the modified variant without /// its calls. /// @@ -2872,10 +2750,6 @@ /// Gets a list of variants matching the criteria. /// - /// For the definitions of variants and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Implements /// [GlobalAllianceApi.searchVariants](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/variantmethods.avdl#L126). /// @@ -2928,10 +2802,6 @@ /// Creates a new variant set. /// - /// For the definitions of variant sets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// The provided variant set must have a valid `datasetId` set - all other /// fields are optional. Note that the `id` field will be ignored, as this is /// assigned by the server. @@ -2979,10 +2849,6 @@ /// Deletes a variant set including all variants, call sets, and calls within. /// This is not reversible. /// - /// For the definitions of variant sets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Request parameters: /// /// [variantSetId] - The ID of the variant set to be deleted. @@ -3025,10 +2891,6 @@ /// Exports variant set data to an external destination. /// - /// For the definitions of variant sets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// [request] - The metadata request object. /// /// Request parameters: @@ -3082,10 +2944,6 @@ /// Gets a variant set by ID. /// - /// For the definitions of variant sets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Request parameters: /// /// [variantSetId] - Required. The ID of the variant set. @@ -3129,10 +2987,6 @@ /// Updates a variant set using patch semantics. /// - /// For the definitions of variant sets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// [request] - The metadata request object. /// /// Request parameters: @@ -3194,10 +3048,6 @@ /// Returns a list of all variant sets matching search criteria. /// - /// For the definitions of variant sets and other genomics resources, see - /// [Fundamentals of Google - /// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) - /// /// Implements /// [GlobalAllianceApi.searchVariantSets](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/variantmethods.avdl#L49). /// @@ -3585,7 +3435,7 @@ /// 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`. + /// account. For example, `alice@gmail.com` . /// /// /// * `serviceAccount:{emailid}`: An email address that represents a service @@ -3630,9 +3480,6 @@ /// A call set is a collection of variant calls, typically for one sample. It /// belongs to a variant set. -/// -/// For more genomics resource definitions, see [Fundamentals of Google -/// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) class CallSet { /// The date this call set was created in milliseconds from the epoch. core.String created; @@ -3953,6 +3800,101 @@ } } +/// This event is generated when a container starts. +class ContainerStartedEvent { + /// The numeric ID of the action that started this container. + core.int actionId; + + /// The public IP address that can be used to connect to the container. This + /// field is only populated when at least one port mapping is present. If the + /// instance was created with a private address this field will be empty even + /// if port mappings exist. + core.String ipAddress; + + /// The container to host port mappings installed for this container. This + /// set will contain any ports exposed using the PUBLISH_EXPOSED_PORTS flag as + /// well as any specified in the Action definition. + core.Map<core.String, core.int> portMappings; + + ContainerStartedEvent(); + + ContainerStartedEvent.fromJson(core.Map _json) { + if (_json.containsKey("actionId")) { + actionId = _json["actionId"]; + } + if (_json.containsKey("ipAddress")) { + ipAddress = _json["ipAddress"]; + } + if (_json.containsKey("portMappings")) { + portMappings = + (_json["portMappings"] as core.Map).cast<core.String, core.int>(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (actionId != null) { + _json["actionId"] = actionId; + } + if (ipAddress != null) { + _json["ipAddress"] = ipAddress; + } + if (portMappings != null) { + _json["portMappings"] = portMappings; + } + return _json; + } +} + +/// This event is generated when a container exits. +class ContainerStoppedEvent { + /// The numeric ID of the action that started this container. + core.int actionId; + + /// The exit status of the container. + core.int exitStatus; + + /// The tail end of any content written to standard error by the container. + /// To prevent this from being recorded if the action is known to emit + /// large amounts of debugging noise or sensitive information, set the + /// DISABLE_STANDARD_ERROR_CAPTURE flag. + /// + /// Note that only a small amount of the end of the stream is captured here. + /// The entire stream is stored in the /google/logs directory mounted into + /// each action, and may be copied off the machine as described elsewhere. + core.String stderr; + + ContainerStoppedEvent(); + + ContainerStoppedEvent.fromJson(core.Map _json) { + if (_json.containsKey("actionId")) { + actionId = _json["actionId"]; + } + if (_json.containsKey("exitStatus")) { + exitStatus = _json["exitStatus"]; + } + if (_json.containsKey("stderr")) { + stderr = _json["stderr"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (actionId != null) { + _json["actionId"] = actionId; + } + if (exitStatus != null) { + _json["exitStatus"] = exitStatus; + } + if (stderr != null) { + _json["stderr"] = stderr; + } + return _json; + } +} + /// A bucket over which read coverage has been precomputed. A bucket corresponds /// to a specific range of the reference sequence. class CoverageBucket { @@ -3988,9 +3930,6 @@ } /// A Dataset is a collection of genomic data. -/// -/// For more genomics resource definitions, see [Fundamentals of Google -/// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) class Dataset { /// The time this dataset was created, in seconds from the epoch. core.String createTime; @@ -4040,6 +3979,44 @@ } } +/// This event is generated whenever a resource limitation or transient error +/// delays execution of a pipeline that was otherwise ready to run. +class DelayedEvent { + /// A textual description of the cause of the delay. The string may change + /// without notice since it is often generated by another service (such as + /// Compute Engine). + core.String cause; + + /// If the delay was caused by a resource shortage, this field lists the + /// Compute Engine metrics that are preventing this operation from running + /// (for example, CPUS or INSTANCES). If the particular metric is not known, + /// a single UNKNOWN metric will be present. + core.List<core.String> metrics; + + DelayedEvent(); + + DelayedEvent.fromJson(core.Map _json) { + if (_json.containsKey("cause")) { + cause = _json["cause"]; + } + if (_json.containsKey("metrics")) { + metrics = (_json["metrics"] as core.List).cast<core.String>(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (cause != null) { + _json["cause"] = cause; + } + if (metrics != null) { + _json["metrics"] = metrics; + } + 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: @@ -4092,6 +4069,52 @@ } } +/// Event carries information about events that occur during pipeline execution. +class Event { + /// A human readable description of the event. Note that these strings may + /// change at any time without notice. Any application logic must use the + /// information in the details field. + core.String description; + + /// Machine readable details about the event. + /// + /// 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> details; + + /// The time that the event occurred. + core.String timestamp; + + Event(); + + Event.fromJson(core.Map _json) { + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("details")) { + details = (_json["details"] as core.Map).cast<core.String, core.Object>(); + } + if (_json.containsKey("timestamp")) { + timestamp = _json["timestamp"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (description != null) { + _json["description"] = description; + } + if (details != null) { + _json["details"] = details; + } + if (timestamp != null) { + _json["timestamp"] = timestamp; + } + return _json; + } +} + class Exon { /// The end position of the exon on this annotation's reference sequence, /// 0-based exclusive. Note that this is relative to the reference start, and @@ -4350,6 +4373,172 @@ } } +/// This event is generated when the execution of a pipeline has failed. Note +/// that other events may continue to occur after this event. +class FailedEvent { + /// The human readable description of the cause of the failure. + core.String cause; + + /// The Google standard error code that best describes this failure. + /// Possible string values are: + /// - "OK" : Not an error; returned on success + /// + /// HTTP Mapping: 200 OK + /// - "CANCELLED" : The operation was cancelled, typically by the caller. + /// + /// HTTP Mapping: 499 Client Closed Request + /// - "UNKNOWN" : Unknown error. For example, this error may be returned when + /// a `Status` value received from another address space belongs to + /// an error space that is not known in this address space. Also + /// errors raised by APIs that do not return enough error information + /// may be converted to this error. + /// + /// HTTP Mapping: 500 Internal Server Error + /// - "INVALID_ARGUMENT" : The client specified an invalid argument. Note + /// that this differs + /// from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments + /// that are problematic regardless of the state of the system + /// (e.g., a malformed file name). + /// + /// HTTP Mapping: 400 Bad Request + /// - "DEADLINE_EXCEEDED" : The deadline expired before the operation could + /// complete. For operations + /// that change the state of the system, this error may be returned + /// even if the operation has completed successfully. For example, a + /// successful response from a server could have been delayed long + /// enough for the deadline to expire. + /// + /// HTTP Mapping: 504 Gateway Timeout + /// - "NOT_FOUND" : Some requested entity (e.g., file or directory) was not + /// found. + /// + /// Note to server developers: if a request is denied for an entire class + /// of users, such as gradual feature rollout or undocumented whitelist, + /// `NOT_FOUND` may be used. If a request is denied for some users within + /// a class of users, such as user-based access control, `PERMISSION_DENIED` + /// must be used. + /// + /// HTTP Mapping: 404 Not Found + /// - "ALREADY_EXISTS" : The entity that a client attempted to create (e.g., + /// file or directory) + /// already exists. + /// + /// HTTP Mapping: 409 Conflict + /// - "PERMISSION_DENIED" : The caller does not have permission to execute the + /// specified + /// operation. `PERMISSION_DENIED` must not be used for rejections + /// caused by exhausting some resource (use `RESOURCE_EXHAUSTED` + /// instead for those errors). `PERMISSION_DENIED` must not be + /// used if the caller can not be identified (use `UNAUTHENTICATED` + /// instead for those errors). This error code does not imply the + /// request is valid or the requested entity exists or satisfies + /// other pre-conditions. + /// + /// HTTP Mapping: 403 Forbidden + /// - "UNAUTHENTICATED" : The request does not have valid authentication + /// credentials for the + /// operation. + /// + /// HTTP Mapping: 401 Unauthorized + /// - "RESOURCE_EXHAUSTED" : Some resource has been exhausted, perhaps a + /// per-user quota, or + /// perhaps the entire file system is out of space. + /// + /// HTTP Mapping: 429 Too Many Requests + /// - "FAILED_PRECONDITION" : The operation was rejected because the system is + /// not in a state + /// required for the operation's execution. For example, the directory + /// to be deleted is non-empty, an rmdir operation is applied to + /// a non-directory, etc. + /// + /// Service implementors can use the following guidelines to decide + /// between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: + /// (a) Use `UNAVAILABLE` if the client can retry just the failing call. + /// (b) Use `ABORTED` if the client should retry at a higher level + /// (e.g., when a client-specified test-and-set fails, indicating the + /// client should restart a read-modify-write sequence). + /// (c) Use `FAILED_PRECONDITION` if the client should not retry until + /// the system state has been explicitly fixed. E.g., if an "rmdir" + /// fails because the directory is non-empty, `FAILED_PRECONDITION` + /// should be returned since the client should not retry unless + /// the files are deleted from the directory. + /// + /// HTTP Mapping: 400 Bad Request + /// - "ABORTED" : The operation was aborted, typically due to a concurrency + /// issue such as + /// a sequencer check failure or transaction abort. + /// + /// See the guidelines above for deciding between `FAILED_PRECONDITION`, + /// `ABORTED`, and `UNAVAILABLE`. + /// + /// HTTP Mapping: 409 Conflict + /// - "OUT_OF_RANGE" : The operation was attempted past the valid range. + /// E.g., seeking or + /// reading past end-of-file. + /// + /// Unlike `INVALID_ARGUMENT`, this error indicates a problem that may + /// be fixed if the system state changes. For example, a 32-bit file + /// system will generate `INVALID_ARGUMENT` if asked to read at an + /// offset that is not in the range [0,2^32-1], but it will generate + /// `OUT_OF_RANGE` if asked to read from an offset past the current + /// file size. + /// + /// There is a fair bit of overlap between `FAILED_PRECONDITION` and + /// `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific + /// error) when it applies so that callers who are iterating through + /// a space can easily look for an `OUT_OF_RANGE` error to detect when + /// they are done. + /// + /// HTTP Mapping: 400 Bad Request + /// - "UNIMPLEMENTED" : The operation is not implemented or is not + /// supported/enabled in this + /// service. + /// + /// HTTP Mapping: 501 Not Implemented + /// - "INTERNAL" : Internal errors. This means that some invariants expected + /// by the + /// underlying system have been broken. This error code is reserved + /// for serious errors. + /// + /// HTTP Mapping: 500 Internal Server Error + /// - "UNAVAILABLE" : The service is currently unavailable. This is most + /// likely a + /// transient condition, which can be corrected by retrying with + /// a backoff. + /// + /// See the guidelines above for deciding between `FAILED_PRECONDITION`, + /// `ABORTED`, and `UNAVAILABLE`. + /// + /// HTTP Mapping: 503 Service Unavailable + /// - "DATA_LOSS" : Unrecoverable data loss or corruption. + /// + /// HTTP Mapping: 500 Internal Server Error + core.String code; + + FailedEvent(); + + FailedEvent.fromJson(core.Map _json) { + if (_json.containsKey("cause")) { + cause = _json["cause"]; + } + if (_json.containsKey("code")) { + code = _json["code"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (cause != null) { + _json["cause"] = cause; + } + if (code != null) { + _json["code"] = code; + } + return _json; + } +} + /// Request message for `GetIamPolicy` method. class GetIamPolicyRequest { GetIamPolicyRequest(); @@ -4844,8 +5033,8 @@ /// The error result of the operation in case of failure or cancellation. Status error; - /// An OperationMetadata object. This will always be returned with the - /// Operation. + /// An OperationMetadata or Metadata object. This will always be returned with + /// the Operation. /// /// The values for Object must be JSON objects. It can consist of `num`, /// `String`, `bool` and `null` as well as `Map` and `List` values. @@ -5065,14 +5254,14 @@ /// specify access control policies for Cloud Platform resources. /// /// -/// A `Policy` consists of a list of `bindings`. A `Binding` binds a list of +/// 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** +/// **JSON Example** /// /// { /// "bindings": [ @@ -5082,7 +5271,7 @@ /// "user:mike@example.com", /// "group:admins@example.com", /// "domain:google.com", -/// "serviceAccount:my-other-app@appspot.gserviceaccount.com", +/// "serviceAccount:my-other-app@appspot.gserviceaccount.com" /// ] /// }, /// { @@ -5092,6 +5281,20 @@ /// ] /// } /// +/// **YAML Example** +/// +/// bindings: +/// - members: +/// - user:mike@example.com +/// - group:admins@example.com +/// - domain:google.com +/// - serviceAccount:my-other-app@appspot.gserviceaccount.com +/// role: roles/owner +/// - members: +/// - user:sean@example.com +/// role: roles/viewer +/// +/// /// For a description of IAM and its features, see the /// [IAM developer's guide](https://cloud.google.com/iam/docs). class Policy { @@ -5261,6 +5464,52 @@ } } +/// This event is generated when the worker starts pulling an image. +class PullStartedEvent { + /// The URI of the image that was pulled. + core.String imageUri; + + PullStartedEvent(); + + PullStartedEvent.fromJson(core.Map _json) { + if (_json.containsKey("imageUri")) { + imageUri = _json["imageUri"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (imageUri != null) { + _json["imageUri"] = imageUri; + } + return _json; + } +} + +/// This event is generated when the worker stops pulling an image. +class PullStoppedEvent { + /// The URI of the image that was pulled. + core.String imageUri; + + PullStoppedEvent(); + + PullStoppedEvent.fromJson(core.Map _json) { + if (_json.containsKey("imageUri")) { + imageUri = _json["imageUri"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (imageUri != null) { + _json["imageUri"] = imageUri; + } + return _json; + } +} + /// A 0-based half-open genomic coordinate range for search requests. class Range { /// The end position of the range on the reference, 0-based exclusive. @@ -5310,9 +5559,6 @@ /// file. A read belongs to exactly one read group and exactly one /// read group set. /// -/// For more genomics resource definitions, see [Fundamentals of Google -/// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) -/// /// ### Reverse-stranded reads /// /// Mapped reads (reads having a non-null `alignment`) can be aligned to either @@ -5727,9 +5973,6 @@ /// * A read group set belongs to one dataset. /// * A read group belongs to one read group set. /// * A read belongs to one read group. -/// -/// For more genomics resource definitions, see [Fundamentals of Google -/// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) class ReadGroupSet { /// The dataset to which this read group set belongs. core.String datasetId; @@ -5821,9 +6064,6 @@ /// reference coordinate space for other genomic annotations. A single reference /// might represent the human chromosome 1 or mitochandrial DNA, for instance. A /// reference belongs to one or more reference sets. -/// -/// For more genomics resource definitions, see [Fundamentals of Google -/// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) class Reference { /// The server-generated reference ID, unique across all references. core.String id; @@ -5944,9 +6184,6 @@ /// of the human genome. A reference set defines a common coordinate space for /// comparing reference-aligned experimental data. A reference set contains 1 or /// more references. -/// -/// For more genomics resource definitions, see [Fundamentals of Google -/// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) class ReferenceSet { /// Public id of this reference set, such as `GRCh37`. core.String assemblyId; @@ -7323,13 +7560,45 @@ } } +/// This event is generated when the execution of a container results in a +/// non-zero exit status that was not otherwise ignored. Execution will +/// continue, but only actions that are flagged as ALWAYS_RUN will be executed: +/// other actions will be skipped. +class UnexpectedExitStatusEvent { + /// The numeric ID of the action that started the container. + core.int actionId; + + /// The exit status of the container. + core.int exitStatus; + + UnexpectedExitStatusEvent(); + + UnexpectedExitStatusEvent.fromJson(core.Map _json) { + if (_json.containsKey("actionId")) { + actionId = _json["actionId"]; + } + if (_json.containsKey("exitStatus")) { + exitStatus = _json["exitStatus"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (actionId != null) { + _json["actionId"] = actionId; + } + if (exitStatus != null) { + _json["exitStatus"] = exitStatus; + } + return _json; + } +} + /// A variant represents a change in DNA sequence relative to a reference /// sequence. For example, a variant could represent a SNP or an insertion. /// Variants belong to a variant set. /// -/// For more genomics resource definitions, see [Fundamentals of Google -/// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) -/// /// Each of the calls on a variant represent a determination of genotype with /// respect to that variant. For example, a call might assign probability of /// 0.32 @@ -7733,9 +8002,6 @@ /// A variant set is a collection of call sets and variants. It contains summary /// statistics of those contents. A variant set belongs to a dataset. -/// -/// For more genomics resource definitions, see [Fundamentals of Google -/// Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) class VariantSet { /// The dataset to which this variant set belongs. core.String datasetId; @@ -7925,3 +8191,69 @@ return _json; } } + +/// This event is generated once a worker VM has been assigned to run the +/// pipeline. +class WorkerAssignedEvent { + /// The worker's instance name. + core.String instance; + + /// The zone the worker is running in. + core.String zone; + + WorkerAssignedEvent(); + + WorkerAssignedEvent.fromJson(core.Map _json) { + if (_json.containsKey("instance")) { + instance = _json["instance"]; + } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (instance != null) { + _json["instance"] = instance; + } + if (zone != null) { + _json["zone"] = zone; + } + return _json; + } +} + +/// This event is generated when the worker VM that was assigned to the pipeline +/// has been released (i.e., deleted). +class WorkerReleasedEvent { + /// The worker's instance name. + core.String instance; + + /// The zone the worker was running in. + core.String zone; + + WorkerReleasedEvent(); + + WorkerReleasedEvent.fromJson(core.Map _json) { + if (_json.containsKey("instance")) { + instance = _json["instance"]; + } + if (_json.containsKey("zone")) { + zone = _json["zone"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (instance != null) { + _json["instance"] = instance; + } + if (zone != null) { + _json["zone"] = zone; + } + return _json; + } +}
diff --git a/generated/googleapis/lib/gmail/v1.dart b/generated/googleapis/lib/gmail/v1.dart index ea17614..c29e26e 100644 --- a/generated/googleapis/lib/gmail/v1.dart +++ b/generated/googleapis/lib/gmail/v1.dart
@@ -5268,7 +5268,9 @@ /// A name that appears in the "From:" header for mail sent using this alias. /// For custom "from" addresses, when this is empty, Gmail will populate the /// "From:" header with the name that is used for the primary address - /// associated with the account. + /// associated with the account. If the admin has disabled the ability for + /// users to update their name format, requests to update this field for the + /// primary login will silently fail. core.String displayName; /// Whether this address is selected as the default "From:" address in
diff --git a/generated/googleapis/lib/groupssettings/v1.dart b/generated/googleapis/lib/groupssettings/v1.dart index dce0cf5..e7ba058 100644 --- a/generated/googleapis/lib/groupssettings/v1.dart +++ b/generated/googleapis/lib/groupssettings/v1.dart
@@ -254,7 +254,7 @@ core.String spamModerationLevel; /// Permissions to add members. Possible values are: ALL_MANAGERS_CAN_ADD - /// ALL_MEMBERS_CAN_ADD NONE_CAN_ADD + /// ALL_OWNERS_CAN_ADD ALL_MEMBERS_CAN_ADD NONE_CAN_ADD core.String whoCanAdd; /// Permission to contact owner of the group via web UI. Possible values are: @@ -263,7 +263,7 @@ core.String whoCanContactOwner; /// Permissions to invite members. Possible values are: ALL_MEMBERS_CAN_INVITE - /// ALL_MANAGERS_CAN_INVITE NONE_CAN_INVITE + /// ALL_MANAGERS_CAN_INVITE ALL_OWNERS_CAN_INVITE NONE_CAN_INVITE core.String whoCanInvite; /// Permissions to join the group. Possible values are: ANYONE_CAN_JOIN @@ -271,7 +271,7 @@ core.String whoCanJoin; /// Permission to leave the group. Possible values are: ALL_MANAGERS_CAN_LEAVE - /// ALL_MEMBERS_CAN_LEAVE NONE_CAN_LEAVE + /// ALL_OWNERS_CAN_LEAVE ALL_MEMBERS_CAN_LEAVE NONE_CAN_LEAVE core.String whoCanLeaveGroup; /// Permissions to post messages to the group. Possible values are: @@ -281,6 +281,7 @@ /// Permissions to view group. Possible values are: ANYONE_CAN_VIEW /// ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW + /// ALL_OWNERS_CAN_VIEW core.String whoCanViewGroup; /// Permissions to view membership. Possible values are:
diff --git a/generated/googleapis/lib/iam/v1.dart b/generated/googleapis/lib/iam/v1.dart index e384865..db2350a 100644 --- a/generated/googleapis/lib/iam/v1.dart +++ b/generated/googleapis/lib/iam/v1.dart
@@ -278,11 +278,6 @@ /// `projects/{PROJECT_ID}` /// Value must have pattern "^organizations/[^/]+$". /// - /// [showDeleted] - Include Roles that have been deleted. - /// - /// [pageToken] - Optional pagination token returned in an earlier - /// ListRolesResponse. - /// /// [pageSize] - Optional limit on the number of roles to include in the /// response. /// @@ -291,6 +286,11 @@ /// - "BASIC" : A BASIC. /// - "FULL" : A FULL. /// + /// [showDeleted] - Include Roles that have been deleted. + /// + /// [pageToken] - Optional pagination token returned in an earlier + /// ListRolesResponse. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -302,10 +302,10 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListRolesResponse> list(core.String parent, - {core.bool showDeleted, - core.String pageToken, - core.int pageSize, + {core.int pageSize, core.String view, + core.bool showDeleted, + core.String pageToken, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -317,18 +317,18 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (showDeleted != null) { - _queryParams["showDeleted"] = ["${showDeleted}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } if (view != null) { _queryParams["view"] = [view]; } + if (showDeleted != null) { + _queryParams["showDeleted"] = ["${showDeleted}"]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -691,8 +691,6 @@ /// `projects/{PROJECT_ID}` /// Value must have pattern "^projects/[^/]+$". /// - /// [showDeleted] - Include Roles that have been deleted. - /// /// [pageToken] - Optional pagination token returned in an earlier /// ListRolesResponse. /// @@ -704,6 +702,8 @@ /// - "BASIC" : A BASIC. /// - "FULL" : A FULL. /// + /// [showDeleted] - Include Roles that have been deleted. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -715,10 +715,10 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListRolesResponse> list(core.String parent, - {core.bool showDeleted, - core.String pageToken, + {core.String pageToken, core.int pageSize, core.String view, + core.bool showDeleted, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -730,9 +730,6 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (showDeleted != null) { - _queryParams["showDeleted"] = ["${showDeleted}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -742,6 +739,9 @@ if (view != null) { _queryParams["view"] = [view]; } + if (showDeleted != null) { + _queryParams["showDeleted"] = ["${showDeleted}"]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1883,7 +1883,6 @@ /// bar@gmail.com from DATA_WRITE logging. class AuditConfig { /// The configuration for logging of each type of permission. - /// Next ID: 4 core.List<AuditLogConfig> auditLogConfigs; /// Specifies a service that will be enabled for audit logging. @@ -2037,7 +2036,7 @@ /// 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`. + /// account. For example, `alice@gmail.com` . /// /// /// * `serviceAccount:{emailid}`: An email address that represents a service @@ -2456,14 +2455,14 @@ /// specify access control policies for Cloud Platform resources. /// /// -/// A `Policy` consists of a list of `bindings`. A `Binding` binds a list of +/// 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** +/// **JSON Example** /// /// { /// "bindings": [ @@ -2473,7 +2472,7 @@ /// "user:mike@example.com", /// "group:admins@example.com", /// "domain:google.com", -/// "serviceAccount:my-other-app@appspot.gserviceaccount.com", +/// "serviceAccount:my-other-app@appspot.gserviceaccount.com" /// ] /// }, /// { @@ -2483,6 +2482,20 @@ /// ] /// } /// +/// **YAML Example** +/// +/// bindings: +/// - members: +/// - user:mike@example.com +/// - group:admins@example.com +/// - domain:google.com +/// - serviceAccount:my-other-app@appspot.gserviceaccount.com +/// role: roles/owner +/// - members: +/// - user:sean@example.com +/// role: roles/viewer +/// +/// /// For a description of IAM and its features, see the /// [IAM developer's guide](https://cloud.google.com/iam/docs). class Policy { @@ -3062,7 +3075,7 @@ /// The private key data. Only provided in `CreateServiceAccountKey` /// responses. Make sure to keep the private key data secure because it /// allows for the assertion of the service account identity. - /// When decoded, the private key data can be used to authenticate with + /// When base64 decoded, the private key data can be used to authenticate with /// Google API client libraries and with /// <a href="/sdk/gcloud/reference/auth/activate-service-account">gcloud /// auth activate-service-account</a>.
diff --git a/generated/googleapis/lib/identitytoolkit/v3.dart b/generated/googleapis/lib/identitytoolkit/v3.dart index b58c5eb..b9d31b3 100644 --- a/generated/googleapis/lib/identitytoolkit/v3.dart +++ b/generated/googleapis/lib/identitytoolkit/v3.dart
@@ -1417,6 +1417,14 @@ /// The session_id passed by client. core.String sessionId; + /// For multi-tenant use cases, in order to construct sign-in URL with the + /// correct IDP parameters, Firebear needs to know which Tenant to retrieve + /// IDP configs from. + core.String tenantId; + + /// Tenant project number to be used for idp discovery. + core.String tenantProjectNumber; + IdentitytoolkitRelyingpartyCreateAuthUriRequest(); IdentitytoolkitRelyingpartyCreateAuthUriRequest.fromJson(core.Map _json) { @@ -1463,6 +1471,12 @@ if (_json.containsKey("sessionId")) { sessionId = _json["sessionId"]; } + if (_json.containsKey("tenantId")) { + tenantId = _json["tenantId"]; + } + if (_json.containsKey("tenantProjectNumber")) { + tenantProjectNumber = _json["tenantProjectNumber"]; + } } core.Map<core.String, core.Object> toJson() { @@ -1510,6 +1524,12 @@ if (sessionId != null) { _json["sessionId"] = sessionId; } + if (tenantId != null) { + _json["tenantId"] = tenantId; + } + if (tenantProjectNumber != null) { + _json["tenantProjectNumber"] = tenantProjectNumber; + } return _json; } } @@ -2463,6 +2483,14 @@ /// The photo url of the user. core.String photoUrl; + /// For multi-tenant use cases, in order to construct sign-in URL with the + /// correct IDP parameters, Firebear needs to know which Tenant to retrieve + /// IDP configs from. + core.String tenantId; + + /// Tenant project number to be used for idp discovery. + core.String tenantProjectNumber; + IdentitytoolkitRelyingpartySignupNewUserRequest(); IdentitytoolkitRelyingpartySignupNewUserRequest.fromJson(core.Map _json) { @@ -2502,6 +2530,12 @@ if (_json.containsKey("photoUrl")) { photoUrl = _json["photoUrl"]; } + if (_json.containsKey("tenantId")) { + tenantId = _json["tenantId"]; + } + if (_json.containsKey("tenantProjectNumber")) { + tenantProjectNumber = _json["tenantProjectNumber"]; + } } core.Map<core.String, core.Object> toJson() { @@ -2543,6 +2577,12 @@ if (photoUrl != null) { _json["photoUrl"] = photoUrl; } + if (tenantId != null) { + _json["tenantId"] = tenantId; + } + if (tenantProjectNumber != null) { + _json["tenantProjectNumber"] = tenantProjectNumber; + } return _json; } } @@ -2743,6 +2783,14 @@ /// Session ID, which should match the one in previous createAuthUri request. core.String sessionId; + /// For multi-tenant use cases, in order to construct sign-in URL with the + /// correct IDP parameters, Firebear needs to know which Tenant to retrieve + /// IDP configs from. + core.String tenantId; + + /// Tenant project number to be used for idp discovery. + core.String tenantProjectNumber; + IdentitytoolkitRelyingpartyVerifyAssertionRequest(); IdentitytoolkitRelyingpartyVerifyAssertionRequest.fromJson(core.Map _json) { @@ -2779,6 +2827,12 @@ if (_json.containsKey("sessionId")) { sessionId = _json["sessionId"]; } + if (_json.containsKey("tenantId")) { + tenantId = _json["tenantId"]; + } + if (_json.containsKey("tenantProjectNumber")) { + tenantProjectNumber = _json["tenantProjectNumber"]; + } } core.Map<core.String, core.Object> toJson() { @@ -2817,6 +2871,12 @@ if (sessionId != null) { _json["sessionId"] = sessionId; } + if (tenantId != null) { + _json["tenantId"] = tenantId; + } + if (tenantProjectNumber != null) { + _json["tenantProjectNumber"] = tenantProjectNumber; + } return _json; } } @@ -2903,6 +2963,14 @@ /// Whether return sts id token and refresh token instead of gitkit token. core.bool returnSecureToken; + /// For multi-tenant use cases, in order to construct sign-in URL with the + /// correct IDP parameters, Firebear needs to know which Tenant to retrieve + /// IDP configs from. + core.String tenantId; + + /// Tenant project number to be used for idp discovery. + core.String tenantProjectNumber; + IdentitytoolkitRelyingpartyVerifyPasswordRequest(); IdentitytoolkitRelyingpartyVerifyPasswordRequest.fromJson(core.Map _json) { @@ -2933,6 +3001,12 @@ if (_json.containsKey("returnSecureToken")) { returnSecureToken = _json["returnSecureToken"]; } + if (_json.containsKey("tenantId")) { + tenantId = _json["tenantId"]; + } + if (_json.containsKey("tenantProjectNumber")) { + tenantProjectNumber = _json["tenantProjectNumber"]; + } } core.Map<core.String, core.Object> toJson() { @@ -2965,6 +3039,12 @@ if (returnSecureToken != null) { _json["returnSecureToken"] = returnSecureToken; } + if (tenantId != null) { + _json["tenantId"] = tenantId; + } + if (tenantProjectNumber != null) { + _json["tenantProjectNumber"] = tenantProjectNumber; + } return _json; } }
diff --git a/generated/googleapis/lib/kgsearch/v1.dart b/generated/googleapis/lib/kgsearch/v1.dart index ee952fe..ea7aa84 100644 --- a/generated/googleapis/lib/kgsearch/v1.dart +++ b/generated/googleapis/lib/kgsearch/v1.dart
@@ -39,6 +39,10 @@ /// /// Request parameters: /// + /// [types] - Restricts returned entities with these types, e.g. Person + /// (as defined in http://schema.org/Person). If multiple types are specified, + /// returned entities will contain one or more of these types. + /// /// [indent] - Enables indenting of json results. /// /// [languages] - The list of language codes (defined in ISO 693) to run the @@ -56,10 +60,6 @@ /// /// [query] - The literal query string for search. /// - /// [types] - Restricts returned entities with these types, e.g. Person - /// (as defined in http://schema.org/Person). If multiple types are specified, - /// returned entities will contain one or more of these types. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -71,13 +71,13 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<SearchResponse> search( - {core.bool indent, + {core.List<core.String> types, + core.bool indent, core.List<core.String> languages, core.List<core.String> ids, core.int limit, core.bool prefix, core.String query, - core.List<core.String> types, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -86,6 +86,9 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (types != null) { + _queryParams["types"] = types; + } if (indent != null) { _queryParams["indent"] = ["${indent}"]; } @@ -104,9 +107,6 @@ if (query != null) { _queryParams["query"] = [query]; } - if (types != null) { - _queryParams["types"] = types; - } if ($fields != null) { _queryParams["fields"] = [$fields]; }
diff --git a/generated/googleapis/lib/language/v1.dart b/generated/googleapis/lib/language/v1.dart index 6625db3..3986ace 100644 --- a/generated/googleapis/lib/language/v1.dart +++ b/generated/googleapis/lib/language/v1.dart
@@ -821,7 +821,8 @@ /// the classifier is that this category represents the given text. core.double confidence; - /// The name of the category representing the document. + /// The name of the category representing the document, from the [predefined + /// taxonomy](/natural-language/docs/categories). core.String name; ClassificationCategory(); @@ -1026,6 +1027,7 @@ /// Represents the input to API methods. class Document { /// The content of the input in string format. + /// Cloud audit logging exempt since it is based on user data. core.String content; /// The Google Cloud Storage URI where the file content is located.
diff --git a/generated/googleapis/lib/logging/v2.dart b/generated/googleapis/lib/logging/v2.dart index 5c9c4d2..06fef0d 100644 --- a/generated/googleapis/lib/logging/v2.dart +++ b/generated/googleapis/lib/logging/v2.dart
@@ -437,15 +437,15 @@ /// /// 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. /// - /// [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. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -457,7 +457,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<ListLogsResponse> list(core.String parent, - {core.String pageToken, core.int pageSize, core.String $fields}) { + {core.int pageSize, core.String pageToken, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -468,12 +468,12 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -953,10 +953,12 @@ return _response.then((data) => new ListLogEntriesResponse.fromJson(data)); } - /// Log entry resourcesWrites log entries to Stackdriver Logging. This API - /// method is the only way to send log entries to Stackdriver Logging. This - /// method is used, directly or indirectly, by the Stackdriver Logging agent - /// (fluentd) and all logging libraries configured to use Stackdriver Logging. + /// Writes log entries to Stackdriver Logging. This API method is the only way + /// to send log entries to Stackdriver Logging. This method is used, directly + /// or indirectly, by the Stackdriver Logging agent (fluentd) and all logging + /// libraries configured to use Stackdriver Logging. A single request may + /// contain log entries for a maximum of 1000 different resources (projects, + /// organizations, billing accounts or folders) /// /// [request] - The metadata request object. /// @@ -1172,15 +1174,15 @@ /// /// Value must have pattern "^[^/]+/[^/]+$". /// - /// [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. /// + /// [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. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -1192,7 +1194,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<ListExclusionsResponse> list(core.String parent, - {core.int pageSize, core.String pageToken, core.String $fields}) { + {core.String pageToken, core.int pageSize, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -1203,12 +1205,12 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1475,15 +1477,15 @@ /// /// Value must have pattern "^folders/[^/]+$". /// + /// [pageSize] - Optional. The maximum number of results to return from this + /// request. Non-positive values are ignored. The presence of nextPageToken in + /// the response indicates that more results might be available. + /// /// [pageToken] - Optional. If present, then retrieve the next batch of /// results from the preceding call to this method. pageToken must be the /// value of nextPageToken from the previous response. The values of other /// method parameters should be identical to those in the previous call. /// - /// [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. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -1495,7 +1497,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<ListExclusionsResponse> list(core.String parent, - {core.String pageToken, core.int pageSize, core.String $fields}) { + {core.int pageSize, core.String pageToken, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -1506,12 +1508,12 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1665,15 +1667,15 @@ /// /// Value must have pattern "^folders/[^/]+$". /// + /// [pageSize] - Optional. The maximum number of results to return from this + /// request. Non-positive values are ignored. The presence of nextPageToken in + /// the response indicates that more results might be available. + /// /// [pageToken] - Optional. If present, then retrieve the next batch of /// results from the preceding call to this method. pageToken must be the /// value of nextPageToken from the previous response. The values of other /// method parameters should be identical to those in the previous call. /// - /// [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. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -1685,7 +1687,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<ListLogsResponse> list(core.String parent, - {core.String pageToken, core.int pageSize, core.String $fields}) { + {core.int pageSize, core.String pageToken, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -1696,12 +1698,12 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -2266,15 +2268,15 @@ /// /// 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. /// + /// [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. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -2286,7 +2288,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.int pageSize, core.String pageToken, core.String $fields}) { + {core.String pageToken, core.int pageSize, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -2294,12 +2296,12 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -2503,15 +2505,15 @@ /// /// 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. /// + /// [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. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -2523,7 +2525,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<ListExclusionsResponse> list(core.String parent, - {core.int pageSize, core.String pageToken, core.String $fields}) { + {core.String pageToken, core.int pageSize, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -2534,12 +2536,12 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -2694,15 +2696,15 @@ /// /// 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. /// + /// [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. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -2714,7 +2716,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<ListLogsResponse> list(core.String parent, - {core.int pageSize, core.String pageToken, core.String $fields}) { + {core.String pageToken, core.int pageSize, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -2725,12 +2727,12 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -3538,15 +3540,15 @@ /// /// 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. /// + /// [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. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -3558,7 +3560,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<ListLogsResponse> list(core.String parent, - {core.int pageSize, core.String pageToken, core.String $fields}) { + {core.String pageToken, core.int pageSize, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -3569,12 +3571,12 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -4040,15 +4042,15 @@ /// /// 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. /// + /// [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. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -4060,7 +4062,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 parent, - {core.int pageSize, core.String pageToken, core.String $fields}) { + {core.String pageToken, core.int pageSize, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -4071,12 +4073,12 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -5359,6 +5361,11 @@ /// with a leading slash will never return any results. core.String logName; + /// Output only. Additional metadata about the monitored resource. Only + /// k8s_container, k8s_pod, and k8s_node MonitoredResources have this field + /// populated. + MonitoredResourceMetadata metadata; + /// Optional. Information about an operation associated with the log entry, if /// applicable. LogEntryOperation operation; @@ -5373,10 +5380,10 @@ /// Output only. The time the log entry was received by Stackdriver Logging. core.String receiveTimestamp; - /// 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 primary 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 @@ -5412,11 +5419,13 @@ /// Optional. The time the event described by the log entry occurred. This /// time is used to compute the log entry's age and to enforce the logs /// retention period. If this field is omitted in a new log entry, then - /// Stackdriver Logging assigns it the current time.Incoming log entries - /// should have timestamps that are no more than the logs retention period in - /// the past, and no more than 24 hours in the future. Log entries outside - /// those time boundaries will not be available when calling entries.list, but - /// those log entries can still be exported with LogSinks. + /// Stackdriver Logging assigns it the current time. Timestamps have + /// nanosecond accuracy, but trailing zeros in the fractional seconds might be + /// omitted when the timestamp is displayed.Incoming log entries should have + /// timestamps that are no more than the logs retention period in the past, + /// and no more than 24 hours in the future. Log entries outside those time + /// boundaries will not be available when calling entries.list, but those log + /// entries can still be exported with LogSinks. core.String timestamp; /// Optional. Resource name of the trace associated with the log entry, if @@ -5444,6 +5453,9 @@ if (_json.containsKey("logName")) { logName = _json["logName"]; } + if (_json.containsKey("metadata")) { + metadata = new MonitoredResourceMetadata.fromJson(_json["metadata"]); + } if (_json.containsKey("operation")) { operation = new LogEntryOperation.fromJson(_json["operation"]); } @@ -5496,6 +5508,9 @@ if (logName != null) { _json["logName"] = logName; } + if (metadata != null) { + _json["metadata"] = (metadata).toJson(); + } if (operation != null) { _json["operation"] = (operation).toJson(); } @@ -5651,8 +5666,9 @@ /// Required. An advanced logs filter that matches the log entries to be /// excluded. By using the sample function, you can exclude less than 100% of /// the matching log entries. For example, the following filter matches 99% of - /// low-severity log entries from load balancers: - /// "resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)" + /// low-severity log entries from load + /// balancers:"resource.type=http_load_balancer severity<ERROR + /// sample(insertId, 0.99)" core.String filter; /// Required. A client-assigned identifier, such as "load-balancer-exclusion". @@ -6331,6 +6347,56 @@ } } +/// Auxiliary metadata for a MonitoredResource object. MonitoredResource objects +/// contain the minimum set of information to uniquely identify a monitored +/// resource instance. There is some other useful auxiliary metadata. Google +/// Stackdriver Monitoring & Logging uses an ingestion pipeline to extract +/// metadata for cloud resources of all types , and stores the metadata in this +/// message. +class MonitoredResourceMetadata { + /// Output only. Values for predefined system metadata labels. System labels + /// are a kind of metadata extracted by Google Stackdriver. Stackdriver + /// determines what system labels are useful and how to obtain their values. + /// Some examples: "machine_image", "vpc", "subnet_id", "security_group", + /// "name", etc. System label values can be only strings, Boolean values, or a + /// list of strings. For example: + /// { "name": "my-test-instance", + /// "security_group": ["a", "b", "c"], + /// "spot_instance": false } + /// + /// 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> systemLabels; + + /// Output only. A map of user-defined metadata labels. + core.Map<core.String, core.String> userLabels; + + MonitoredResourceMetadata(); + + MonitoredResourceMetadata.fromJson(core.Map _json) { + if (_json.containsKey("systemLabels")) { + systemLabels = + (_json["systemLabels"] as core.Map).cast<core.String, core.Object>(); + } + if (_json.containsKey("userLabels")) { + userLabels = + (_json["userLabels"] as core.Map).cast<core.String, core.String>(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (systemLabels != null) { + _json["systemLabels"] = systemLabels; + } + if (userLabels != null) { + _json["userLabels"] = userLabels; + } + return _json; + } +} + /// Complete log information about a single HTTP request to an App Engine /// application. class RequestLog {
diff --git a/generated/googleapis/lib/manufacturers/v1.dart b/generated/googleapis/lib/manufacturers/v1.dart index 1f2f839..80499fa 100644 --- a/generated/googleapis/lib/manufacturers/v1.dart +++ b/generated/googleapis/lib/manufacturers/v1.dart
@@ -141,6 +141,15 @@ /// https://support.google.com/manufacturers/answer/6124116#id. /// Value must have pattern "^[^/]+$". /// + /// [include] - The information to be included in the response. Only sections + /// listed here + /// will be returned. + /// + /// If this parameter is not specified, ATTRIBUTES and ISSUES are returned. + /// This behavior is temporary and will be removed once all clients are ready + /// or at the latest end of July 2018. After that no sections will be + /// returned. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -152,7 +161,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<Product> get(core.String parent, core.String name, - {core.String $fields}) { + {core.List<core.String> include, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -166,6 +175,9 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } + if (include != null) { + _queryParams["include"] = include; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -199,6 +211,15 @@ /// used for /// paging. /// + /// [include] - The information to be included in the response. Only sections + /// listed here + /// will be returned. + /// + /// If this parameter is not specified, ATTRIBUTES and ISSUES are returned. + /// This behavior is temporary and will be removed once all clients are ready + /// or at the latest end of July 2018. After that no sections will be + /// returned. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -210,7 +231,10 @@ /// 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.String pageToken, core.int pageSize, core.String $fields}) { + {core.String pageToken, + core.int pageSize, + core.List<core.String> include, + core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -227,6 +251,9 @@ if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (include != null) { + _queryParams["include"] = include; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -243,19 +270,21 @@ return _response.then((data) => new ListProductsResponse.fromJson(data)); } - /// Uploads the product in a Manufacturer Center account. + /// Inserts or updates the attributes of the product in a Manufacturer Center + /// account. /// - /// The checks at upload time are minimal. All required attributes need to be - /// present for a product to be valid. Issues may show up later - /// after the API has accepted a new upload for a product and it is possible - /// to - /// overwrite an existing valid product with an invalid product. To detect - /// this, you should retrieve the product and check it for issues once the - /// new version is available. + /// Creates a product with the provided attributes. If the product already + /// exists, then all attributes are replaced with the new ones. The checks at + /// upload time are minimal. All required attributes need to be present for a + /// product to be valid. Issues may show up later after the API has accepted a + /// new upload for a product and it is possible to overwrite an existing valid + /// product with an invalid product. To detect this, you should retrieve the + /// product and check it for issues once the new version is available. /// - /// Uploaded products first need to be processed before they can be + /// Uploaded attributes first need to be processed before they can be /// retrieved. Until then, new products will be unavailable, and retrieval - /// of uploaded products will return the original state of the product. + /// of previously uploaded products will return the original state of the + /// product. /// /// [request] - The metadata request object. /// @@ -289,7 +318,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<Empty> uploadProduct( + async.Future<Empty> update( Attributes request, core.String parent, core.String name, {core.String $fields}) { var _url = null; @@ -362,6 +391,9 @@ /// https://support.google.com/manufacturers/answer/6124116#disclosure. core.String disclosureDate; + /// A list of excluded destinations. + core.List<core.String> excludedDestination; + /// The rich format description of the product. For more information, see /// https://support.google.com/manufacturers/answer/6124116#featuredesc. core.List<FeatureDescription> featureDescription; @@ -386,6 +418,9 @@ /// https://support.google.com/manufacturers/answer/6124116#image. Image imageLink; + /// A list of included destinations. + core.List<core.String> includedDestination; + /// The item group id of the product. For more information, see /// https://support.google.com/manufacturers/answer/6124116#itemgroupid. core.String itemGroupId; @@ -492,6 +527,10 @@ if (_json.containsKey("disclosureDate")) { disclosureDate = _json["disclosureDate"]; } + if (_json.containsKey("excludedDestination")) { + excludedDestination = + (_json["excludedDestination"] as core.List).cast<core.String>(); + } if (_json.containsKey("featureDescription")) { featureDescription = (_json["featureDescription"] as core.List) .map<FeatureDescription>( @@ -513,6 +552,10 @@ if (_json.containsKey("imageLink")) { imageLink = new Image.fromJson(_json["imageLink"]); } + if (_json.containsKey("includedDestination")) { + includedDestination = + (_json["includedDestination"] as core.List).cast<core.String>(); + } if (_json.containsKey("itemGroupId")) { itemGroupId = _json["itemGroupId"]; } @@ -602,6 +645,9 @@ if (disclosureDate != null) { _json["disclosureDate"] = disclosureDate; } + if (excludedDestination != null) { + _json["excludedDestination"] = excludedDestination; + } if (featureDescription != null) { _json["featureDescription"] = featureDescription.map((value) => (value).toJson()).toList(); @@ -621,6 +667,9 @@ if (imageLink != null) { _json["imageLink"] = (imageLink).toJson(); } + if (includedDestination != null) { + _json["includedDestination"] = includedDestination; + } if (itemGroupId != null) { _json["itemGroupId"] = itemGroupId; } @@ -749,6 +798,43 @@ } } +/// The destination status. +class DestinationStatus { + /// The name of the destination. + core.String destination; + + /// The status of the destination. + /// Possible string values are: + /// - "UNKNOWN" : Unspecified status, never used. + /// - "ACTIVE" : The product is used for this destination. + /// - "PENDING" : The decision is still pending. + /// - "DISAPPROVED" : The product is disapproved. Please look at the issues. + core.String status; + + DestinationStatus(); + + DestinationStatus.fromJson(core.Map _json) { + if (_json.containsKey("destination")) { + destination = _json["destination"]; + } + if (_json.containsKey("status")) { + status = _json["status"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (destination != null) { + _json["destination"] = destination; + } + if (status != null) { + _json["status"] = status; + } + 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: @@ -890,6 +976,21 @@ /// Longer description of the issue focused on how to resolve it. core.String description; + /// The destination this issue applies to. + core.String destination; + + /// What needs to happen to resolve the issue. + /// Possible string values are: + /// - "RESOLUTION_UNSPECIFIED" : Unspecified resolution, never used. + /// - "USER_ACTION" : The user who provided the data must act in order to + /// resolve the issue + /// (for example by correcting some data). + /// - "PENDING_PROCESSING" : The issue will be resolved automatically (for + /// example image crawl or + /// Google review). No action is required now. Resolution might lead to + /// another issue (for example if crawl fails). + core.String resolution; + /// The severity of the issue. /// Possible string values are: /// - "SEVERITY_UNSPECIFIED" : Unspecified severity, never used. @@ -908,6 +1009,9 @@ /// The timestamp when this issue appeared. core.String timestamp; + /// Short title describing the nature of the issue. + core.String title; + /// The server-generated type of the issue, for example, /// “INCORRECT_TEXT_FORMATTING”, “IMAGE_NOT_SERVEABLE”, etc. core.String type; @@ -921,12 +1025,21 @@ if (_json.containsKey("description")) { description = _json["description"]; } + if (_json.containsKey("destination")) { + destination = _json["destination"]; + } + if (_json.containsKey("resolution")) { + resolution = _json["resolution"]; + } if (_json.containsKey("severity")) { severity = _json["severity"]; } if (_json.containsKey("timestamp")) { timestamp = _json["timestamp"]; } + if (_json.containsKey("title")) { + title = _json["title"]; + } if (_json.containsKey("type")) { type = _json["type"]; } @@ -941,12 +1054,21 @@ if (description != null) { _json["description"] = description; } + if (destination != null) { + _json["destination"] = destination; + } + if (resolution != null) { + _json["resolution"] = resolution; + } if (severity != null) { _json["severity"] = severity; } if (timestamp != null) { _json["timestamp"] = timestamp; } + if (title != null) { + _json["title"] = title; + } if (type != null) { _json["type"] = type; } @@ -1021,32 +1143,42 @@ /// Product data. class Product { + /// Attributes of the product uploaded to the Manufacturer Center. + Attributes attributes; + /// The content language of the product as a two-letter ISO 639-1 language /// code /// (for example, en). - /// @OutputOnly core.String contentLanguage; + /// The status of the destinations. + core.List<DestinationStatus> destinationStatuses; + /// 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 + /// + /// This field is deprecated and will be removed end of July 2018. Please use + /// attributes. 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 + /// + /// This field is deprecated and will be removed end of July 2018. Please use + /// attributes. core.List<core.String> manuallyDeletedAttributes; /// Attributes of the product provided manually via the Manufacturer Center /// UI. - /// @OutputOnly + /// + /// This field is deprecated and will be removed end of July 2018. Please use + /// attributes. Attributes manuallyProvidedAttributes; /// Name in the format `{target_country}:{content_language}:{product_id}`. @@ -1059,35 +1191,43 @@ /// /// `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. + /// + /// This field is deprecated and will be removed end of July 2018. Please use + /// attributes. Attributes uploadedAttributes; Product(); Product.fromJson(core.Map _json) { + if (_json.containsKey("attributes")) { + attributes = new Attributes.fromJson(_json["attributes"]); + } if (_json.containsKey("contentLanguage")) { contentLanguage = _json["contentLanguage"]; } + if (_json.containsKey("destinationStatuses")) { + destinationStatuses = (_json["destinationStatuses"] as core.List) + .map<DestinationStatus>( + (value) => new DestinationStatus.fromJson(value)) + .toList(); + } if (_json.containsKey("finalAttributes")) { finalAttributes = new Attributes.fromJson(_json["finalAttributes"]); } @@ -1124,9 +1264,16 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (attributes != null) { + _json["attributes"] = (attributes).toJson(); + } if (contentLanguage != null) { _json["contentLanguage"] = contentLanguage; } + if (destinationStatuses != null) { + _json["destinationStatuses"] = + destinationStatuses.map((value) => (value).toJson()).toList(); + } if (finalAttributes != null) { _json["finalAttributes"] = (finalAttributes).toJson(); }
diff --git a/generated/googleapis/lib/ml/v1.dart b/generated/googleapis/lib/ml/v1.dart index 7e6c2e1..3c3d6bb 100644 --- a/generated/googleapis/lib/ml/v1.dart +++ b/generated/googleapis/lib/ml/v1.dart
@@ -47,7 +47,7 @@ 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 + /// this information in order to grant the service account permissions for /// the Google Cloud Storage location where you put your model training code /// for training the model with Google Cloud Machine Learning. /// @@ -361,6 +361,13 @@ /// [parent] - Required. The name of the project for which to list jobs. /// 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. /// You can filter on the value of one or more attributes of the job object. /// For example, retrieve jobs with a job identifier that starts with @@ -370,20 +377,13 @@ /// <p><code>gcloud ml-engine jobs list --filter='jobId:rnn* /// AND state:FAILED'</code> /// <p>For more examples, see the guide to - /// <a href="/ml-engine/docs/monitor-training">monitoring jobs</a>. + /// <a href="/ml-engine/docs/tensorflow/monitor-training">monitoring jobs</a>. /// /// [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. /// - /// [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. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -395,9 +395,9 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<GoogleCloudMlV1ListJobsResponse> list(core.String parent, - {core.String filter, + {core.int pageSize, + core.String filter, core.String pageToken, - core.int pageSize, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -409,15 +409,15 @@ 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]; } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -611,6 +611,11 @@ /// listed (since some locations might be whitelisted for specific projects). /// Value must have pattern "^projects/[^/]+$". /// + /// [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. + /// /// [pageSize] - Optional. The number of locations to retrieve per "page" of /// results. If there /// are more remaining results than this number, the response message will @@ -618,11 +623,6 @@ /// /// 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. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -634,7 +634,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<GoogleCloudMlV1ListLocationsResponse> list(core.String parent, - {core.int pageSize, core.String pageToken, core.String $fields}) { + {core.String pageToken, core.int pageSize, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -645,12 +645,12 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -890,6 +890,8 @@ /// listed. /// Value must have pattern "^projects/[^/]+$". /// + /// [filter] - Optional. Specifies the subset of models 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 @@ -902,8 +904,6 @@ /// /// The default value is 20, and the maximum page size is 100. /// - /// [filter] - Optional. Specifies the subset of models to retrieve. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -915,9 +915,9 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<GoogleCloudMlV1ListModelsResponse> list(core.String parent, - {core.String pageToken, + {core.String filter, + core.String pageToken, core.int pageSize, - core.String filter, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -929,15 +929,15 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1327,6 +1327,8 @@ /// [parent] - Required. The name of the model for which to list the version. /// Value must have pattern "^projects/[^/]+/models/[^/]+$". /// + /// [filter] - Optional. Specifies the subset of versions 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 @@ -1339,8 +1341,6 @@ /// /// The default value is 20, and the maximum page size is 100. /// - /// [filter] - Optional. Specifies the subset of versions to retrieve. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -1352,9 +1352,9 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<GoogleCloudMlV1ListVersionsResponse> list(core.String parent, - {core.String pageToken, + {core.String filter, + core.String pageToken, core.int pageSize, - core.String filter, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -1366,15 +1366,15 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1693,12 +1693,12 @@ /// [name] - The name of the operation's parent resource. /// Value must have pattern "^projects/[^/]+$". /// + /// [filter] - The standard list filter. + /// /// [pageToken] - The standard list page token. /// /// [pageSize] - The standard list page size. /// - /// [filter] - The standard list filter. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -1710,9 +1710,9 @@ /// 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.String pageToken, + {core.String filter, + core.String pageToken, core.int pageSize, - core.String filter, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -1724,15 +1724,15 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1880,11 +1880,11 @@ /// Options for automatically scaling a model. class GoogleCloudMlV1AutoScaling { /// Optional. The minimum number of nodes to allocate for this model. These - /// nodes are always up, starting from the time the model is deployed, so the - /// cost of operating this model will be at least + /// nodes are always up, starting from the time the model is deployed. + /// Therefore, the cost of operating this model will be at least /// `rate` * `min_nodes` * number of hours since last billing cycle, - /// where `rate` is the cost per node-hour as documented in - /// [pricing](https://cloud.google.com/ml-engine/pricing#prediction_pricing), + /// where `rate` is the cost per node-hour as documented in the + /// [pricing guide](/ml-engine/docs/pricing), /// even if no predictions are performed. There is additional cost for each /// prediction performed. /// @@ -1897,6 +1897,22 @@ /// If not specified, `min_nodes` defaults to 0, in which case, when traffic /// to a model stops (and after a cool-down period), nodes will be shut down /// and no charges will be incurred until traffic to the model resumes. + /// + /// You can set `min_nodes` when creating the model version, and you can also + /// update `min_nodes` for an existing version: + /// <pre> + /// update_body.json: + /// { + /// 'autoScaling': { + /// 'minNodes': 5 + /// } + /// } + /// </pre> + /// HTTP request: + /// <pre> + /// PATCH https://ml.googleapis.com/v1/{name=projects / * /models / * + /// /versions / * }?update_mask=autoScaling.minNodes -d @./update_body.json + /// </pre> core.int minNodes; GoogleCloudMlV1AutoScaling(); @@ -1967,8 +1983,32 @@ } } +class GoogleCloudMlV1Config { + /// The service account Cloud ML uses to run on TPU node. + core.String tpuServiceAccount; + + GoogleCloudMlV1Config(); + + GoogleCloudMlV1Config.fromJson(core.Map _json) { + if (_json.containsKey("tpuServiceAccount")) { + tpuServiceAccount = _json["tpuServiceAccount"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (tpuServiceAccount != null) { + _json["tpuServiceAccount"] = tpuServiceAccount; + } + return _json; + } +} + /// Returns service account information associated with a project. class GoogleCloudMlV1GetConfigResponse { + GoogleCloudMlV1Config config; + /// The service account Cloud ML uses to access resources in the project. core.String serviceAccount; @@ -1978,6 +2018,9 @@ GoogleCloudMlV1GetConfigResponse(); GoogleCloudMlV1GetConfigResponse.fromJson(core.Map _json) { + if (_json.containsKey("config")) { + config = new GoogleCloudMlV1Config.fromJson(_json["config"]); + } if (_json.containsKey("serviceAccount")) { serviceAccount = _json["serviceAccount"]; } @@ -1989,6 +2032,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (config != null) { + _json["config"] = (config).toJson(); + } if (serviceAccount != null) { _json["serviceAccount"] = serviceAccount; } @@ -2073,6 +2119,19 @@ /// Represents a set of hyperparameters to optimize. class GoogleCloudMlV1HyperparameterSpec { + /// Optional. The search algorithm specified for the hyperparameter + /// tuning job. + /// Uses the default CloudML Engine hyperparameter tuning + /// algorithm if unspecified. + /// Possible string values are: + /// - "ALGORITHM_UNSPECIFIED" : The default algorithm used by hyperparameter + /// tuning service. + /// - "GRID_SEARCH" : Simple grid search within the feasible space. To use + /// grid search, + /// all parameters must be `INTEGER`, `CATEGORICAL`, or `DISCRETE`. + /// - "RANDOM_SEARCH" : Simple random search within the feasible space. + core.String algorithm; + /// Optional. Indicates if the hyperparameter tuning job enables auto trial /// early stopping. core.bool enableTrialEarlyStopping; @@ -2125,6 +2184,9 @@ GoogleCloudMlV1HyperparameterSpec(); GoogleCloudMlV1HyperparameterSpec.fromJson(core.Map _json) { + if (_json.containsKey("algorithm")) { + algorithm = _json["algorithm"]; + } if (_json.containsKey("enableTrialEarlyStopping")) { enableTrialEarlyStopping = _json["enableTrialEarlyStopping"]; } @@ -2154,6 +2216,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (algorithm != null) { + _json["algorithm"] = algorithm; + } if (enableTrialEarlyStopping != null) { _json["enableTrialEarlyStopping"] = enableTrialEarlyStopping; } @@ -2531,8 +2596,8 @@ /// Optional. The list of regions where the model is going to be deployed. /// Currently only one region per model is supported. /// Defaults to 'us-central1' if nothing is set. - /// See the <a href="/ml-engine/docs/regions">available regions</a> for - /// ML Engine services. + /// See the <a href="/ml-engine/docs/tensorflow/regions">available regions</a> + /// for ML Engine services. /// Note: /// * No matter where a model is deployed, it can always be accessed by /// users from anywhere, both for online and batch prediction. @@ -2690,7 +2755,7 @@ /// should not contain more than 1,000 values. core.List<core.double> discreteValues; - /// Required if typeis `DOUBLE` or `INTEGER`. This field + /// 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 maxValue; @@ -2850,15 +2915,15 @@ /// 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>"` + /// `"projects/YOUR_PROJECT/models/YOUR_MODEL"` 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. - /// See the <a href="/ml-engine/docs/regions">available regions</a> for - /// ML Engine services. + /// See the <a href="/ml-engine/docs/tensorflow/regions">available regions</a> + /// for ML Engine services. core.String region; /// Optional. The Google Cloud ML runtime version to use for this batch @@ -2886,7 +2951,7 @@ /// 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>"` + /// `"projects/YOUR_PROJECT/models/YOUR_MODEL/versions/YOUR_VERSION"` core.String versionName; GoogleCloudMlV1PredictionInput(); @@ -3037,7 +3102,8 @@ /// configuration /// file referenced from the --config command-line argument. For /// details, see the guide to -/// <a href="/ml-engine/docs/training-jobs">submitting a training job</a>. +/// <a href="/ml-engine/docs/tensorflow/training-jobs">submitting a training +/// job</a>. class GoogleCloudMlV1TrainingInput { /// Optional. Command line arguments to pass to the program. core.List<core.String> args; @@ -3047,7 +3113,8 @@ /// Optional. A Google Cloud Storage path in which to store training outputs /// and other data needed for training. This path is passed to your TensorFlow - /// program as the 'job_dir' command-line argument. The benefit of specifying + /// program as the '--job-dir' command-line argument. The benefit of + /// specifying /// this field is that Cloud ML validates the path for use in training. core.String jobDir; @@ -3077,44 +3144,48 @@ /// <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>. + /// memory of <i>complex_model_s</i>. /// </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>. + /// memory of <i>complex_model_m</i>. /// </dd> /// <dt>standard_gpu</dt> /// <dd> - /// A machine equivalent to <code suppresswarning="true">standard</code> that + /// A machine equivalent to <i>standard</i> that /// also includes a single NVIDIA Tesla K80 GPU. See more about - /// <a href="/ml-engine/docs/how-tos/using-gpus"> - /// using GPUs for training your model</a>. + /// <a href="/ml-engine/docs/tensorflow/using-gpus">using GPUs to + /// train your model</a>. /// </dd> /// <dt>complex_model_m_gpu</dt> /// <dd> - /// A machine equivalent to - /// <code suppresswarning="true">complex_model_m</code> that also includes + /// A machine equivalent to <i>complex_model_m</i> that also includes /// four NVIDIA Tesla K80 GPUs. /// </dd> /// <dt>complex_model_l_gpu</dt> /// <dd> - /// A machine equivalent to - /// <code suppresswarning="true">complex_model_l</code> that also includes + /// A machine equivalent to <i>complex_model_l</i> that also includes /// eight NVIDIA Tesla K80 GPUs. /// </dd> /// <dt>standard_p100</dt> /// <dd> - /// A machine equivalent to <code suppresswarning="true">standard</code> that + /// A machine equivalent to <i>standard</i> that /// also includes a single NVIDIA Tesla P100 GPU. The availability of these - /// GPUs is in the Beta launch stage. + /// GPUs is in the <i>Beta</i> launch stage. /// </dd> /// <dt>complex_model_m_p100</dt> /// <dd> - /// A machine equivalent to - /// <code suppresswarning="true">complex_model_m</code> that also includes + /// A machine equivalent to <i>complex_model_m</i> that also includes /// four NVIDIA Tesla P100 GPUs. The availability of these GPUs is in - /// the Beta launch stage. + /// the <i>Beta</i> launch stage. + /// </dd> + /// <dt>cloud_tpu</dt> + /// <dd> + /// A TPU VM including one Cloud TPU. The availability of Cloud TPU is in + /// <i>Beta</i> launch stage. See more about + /// <a href="/ml-engine/docs/tensorflow/using-tpus">using TPUs to train + /// your model</a>. /// </dd> /// </dl> /// @@ -3154,12 +3225,13 @@ core.String pythonVersion; /// Required. The Google Compute Engine region to run the training job in. - /// See the <a href="/ml-engine/docs/regions">available regions</a> for - /// ML Engine services. + /// See the <a href="/ml-engine/docs/tensorflow/regions">available regions</a> + /// for ML Engine services. core.String region; /// Optional. The Google Cloud ML runtime version to use for training. If not - /// set, Google Cloud ML will choose the latest stable version. + /// set, Google Cloud ML will choose a stable version, which is defined in the + /// documentation of runtime version list. core.String runtimeVersion; /// Required. Specifies the machine types, the number of replicas for workers @@ -3171,8 +3243,10 @@ /// - "STANDARD_1" : Many workers and a few parameter servers. /// - "PREMIUM_1" : A large number of workers with many parameter servers. /// - "BASIC_GPU" : A single worker instance [with a - /// GPU](/ml-engine/docs/how-tos/using-gpus). - /// - "BASIC_TPU" : A single worker instance with a [Cloud TPU](/tpu) + /// GPU](/ml-engine/docs/tensorflow/using-gpus). + /// - "BASIC_TPU" : A single worker instance with a + /// [Cloud TPU](/ml-engine/docs/tensorflow/using-tpus). + /// The availability of Cloud TPU is in <i>Beta</i> launch stage. /// - "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 @@ -3374,8 +3448,6 @@ /// 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-engine/reference/rest/v1/projects.models.versions/list). -/// -/// LINT.IfChange class GoogleCloudMlV1Version { /// Automatically scale the number of nodes used to serve the model in /// response to increases and decreases in traffic. Care should be @@ -3388,8 +3460,8 @@ /// Required. The Google Cloud Storage location of the trained model used to /// create the version. See the - /// [overview of model - /// deployment](/ml-engine/docs/concepts/deployment-overview) for more + /// [guide to model + /// deployment](/ml-engine/docs/tensorflow/deploying-models) for more /// information. /// /// When passing Version to @@ -3406,6 +3478,18 @@ /// Output only. The details of a failure or a cancellation. core.String errorMessage; + /// Optional. The machine learning framework Cloud ML Engine uses to train + /// this version of the model. Valid values are `TENSORFLOW`, `SCIKIT_LEARN`, + /// and `XGBOOST`. If you do not specify a framework, Cloud ML Engine uses + /// TensorFlow. If you choose `SCIKIT_LEARN` or `XGBOOST`, you must also set + /// the runtime version of the model to 1.4 or greater. + /// Possible string values are: + /// - "FRAMEWORK_UNSPECIFIED" + /// - "TENSORFLOW" + /// - "SCIKIT_LEARN" + /// - "XGBOOST" + core.String framework; + /// Output only. If true, this version will be used to handle prediction /// requests that do not specify a version. /// @@ -3429,6 +3513,13 @@ /// The version name must be unique within the model it is created in. core.String name; + /// Optional. The version of Python used in prediction. If not set, the + /// default + /// version is '2.7'. Python '3.5' is available when `runtime_version` is set + /// to '1.4' and above. Python '2.7' works with all supported runtime + /// versions. + core.String pythonVersion; + /// Optional. The Google Cloud ML runtime version to use for this deployment. /// If not set, Google Cloud ML will choose a version. core.String runtimeVersion; @@ -3469,6 +3560,9 @@ if (_json.containsKey("errorMessage")) { errorMessage = _json["errorMessage"]; } + if (_json.containsKey("framework")) { + framework = _json["framework"]; + } if (_json.containsKey("isDefault")) { isDefault = _json["isDefault"]; } @@ -3482,6 +3576,9 @@ if (_json.containsKey("name")) { name = _json["name"]; } + if (_json.containsKey("pythonVersion")) { + pythonVersion = _json["pythonVersion"]; + } if (_json.containsKey("runtimeVersion")) { runtimeVersion = _json["runtimeVersion"]; } @@ -3508,6 +3605,9 @@ if (errorMessage != null) { _json["errorMessage"] = errorMessage; } + if (framework != null) { + _json["framework"] = framework; + } if (isDefault != null) { _json["isDefault"] = isDefault; } @@ -3520,6 +3620,9 @@ if (name != null) { _json["name"] = name; } + if (pythonVersion != null) { + _json["pythonVersion"] = pythonVersion; + } if (runtimeVersion != null) { _json["runtimeVersion"] = runtimeVersion; } @@ -3530,6 +3633,152 @@ } } +/// Specifies the audit configuration for a service. +/// The configuration determines which permission types are logged, and what +/// identities, if any, are exempted from logging. +/// An AuditConfig must have one or more AuditLogConfigs. +/// +/// If there are AuditConfigs for both `allServices` and a specific service, +/// the union of the two AuditConfigs is used for that service: the log_types +/// specified in each AuditConfig are enabled, and the exempted_members in each +/// AuditLogConfig are exempted. +/// +/// Example Policy with multiple AuditConfigs: +/// +/// { +/// "audit_configs": [ +/// { +/// "service": "allServices" +/// "audit_log_configs": [ +/// { +/// "log_type": "DATA_READ", +/// "exempted_members": [ +/// "user:foo@gmail.com" +/// ] +/// }, +/// { +/// "log_type": "DATA_WRITE", +/// }, +/// { +/// "log_type": "ADMIN_READ", +/// } +/// ] +/// }, +/// { +/// "service": "fooservice.googleapis.com" +/// "audit_log_configs": [ +/// { +/// "log_type": "DATA_READ", +/// }, +/// { +/// "log_type": "DATA_WRITE", +/// "exempted_members": [ +/// "user:bar@gmail.com" +/// ] +/// } +/// ] +/// } +/// ] +/// } +/// +/// For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ +/// logging. It also exempts foo@gmail.com from DATA_READ logging, and +/// bar@gmail.com from DATA_WRITE logging. +class GoogleIamV1AuditConfig { + /// The configuration for logging of each type of permission. + core.List<GoogleIamV1AuditLogConfig> auditLogConfigs; + + /// Specifies a service that will be enabled for audit logging. + /// For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. + /// `allServices` is a special value that covers all services. + core.String service; + + GoogleIamV1AuditConfig(); + + GoogleIamV1AuditConfig.fromJson(core.Map _json) { + if (_json.containsKey("auditLogConfigs")) { + auditLogConfigs = (_json["auditLogConfigs"] as core.List) + .map<GoogleIamV1AuditLogConfig>( + (value) => new GoogleIamV1AuditLogConfig.fromJson(value)) + .toList(); + } + if (_json.containsKey("service")) { + service = _json["service"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (auditLogConfigs != null) { + _json["auditLogConfigs"] = + auditLogConfigs.map((value) => (value).toJson()).toList(); + } + if (service != null) { + _json["service"] = service; + } + return _json; + } +} + +/// Provides the configuration for logging a type of permissions. +/// Example: +/// +/// { +/// "audit_log_configs": [ +/// { +/// "log_type": "DATA_READ", +/// "exempted_members": [ +/// "user:foo@gmail.com" +/// ] +/// }, +/// { +/// "log_type": "DATA_WRITE", +/// } +/// ] +/// } +/// +/// This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting +/// foo@gmail.com from DATA_READ logging. +class GoogleIamV1AuditLogConfig { + /// Specifies the identities that do not cause logging for this type of + /// permission. + /// Follows the same format of Binding.members. + core.List<core.String> exemptedMembers; + + /// The log type that this config enables. + /// Possible string values are: + /// - "LOG_TYPE_UNSPECIFIED" : Default case. Should never be this. + /// - "ADMIN_READ" : Admin reads. Example: CloudIAM getIamPolicy + /// - "DATA_WRITE" : Data writes. Example: CloudSQL Users create + /// - "DATA_READ" : Data reads. Example: CloudSQL Users list + core.String logType; + + GoogleIamV1AuditLogConfig(); + + GoogleIamV1AuditLogConfig.fromJson(core.Map _json) { + if (_json.containsKey("exemptedMembers")) { + exemptedMembers = + (_json["exemptedMembers"] as core.List).cast<core.String>(); + } + if (_json.containsKey("logType")) { + logType = _json["logType"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (exemptedMembers != null) { + _json["exemptedMembers"] = exemptedMembers; + } + if (logType != null) { + _json["logType"] = logType; + } + return _json; + } +} + /// Associates `members` with a `role`. class GoogleIamV1Binding { /// Specifies the identities requesting access for a Cloud Platform resource. @@ -3542,7 +3791,7 @@ /// 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`. + /// account. For example, `alice@gmail.com` . /// /// /// * `serviceAccount:{emailid}`: An email address that represents a service @@ -3589,14 +3838,14 @@ /// specify access control policies for Cloud Platform resources. /// /// -/// A `Policy` consists of a list of `bindings`. A `Binding` binds a list of +/// 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** +/// **JSON Example** /// /// { /// "bindings": [ @@ -3606,7 +3855,7 @@ /// "user:mike@example.com", /// "group:admins@example.com", /// "domain:google.com", -/// "serviceAccount:my-other-app@appspot.gserviceaccount.com", +/// "serviceAccount:my-other-app@appspot.gserviceaccount.com" /// ] /// }, /// { @@ -3616,9 +3865,26 @@ /// ] /// } /// +/// **YAML Example** +/// +/// bindings: +/// - members: +/// - user:mike@example.com +/// - group:admins@example.com +/// - domain:google.com +/// - serviceAccount:my-other-app@appspot.gserviceaccount.com +/// role: roles/owner +/// - members: +/// - user:sean@example.com +/// role: roles/viewer +/// +/// /// For a description of IAM and its features, see the /// [IAM developer's guide](https://cloud.google.com/iam/docs). class GoogleIamV1Policy { + /// Specifies cloud audit logging configuration for this policy. + core.List<GoogleIamV1AuditConfig> auditConfigs; + /// Associates a list of `members` to a `role`. /// `bindings` with no members will result in an error. core.List<GoogleIamV1Binding> bindings; @@ -3650,6 +3916,12 @@ GoogleIamV1Policy(); GoogleIamV1Policy.fromJson(core.Map _json) { + if (_json.containsKey("auditConfigs")) { + auditConfigs = (_json["auditConfigs"] as core.List) + .map<GoogleIamV1AuditConfig>( + (value) => new GoogleIamV1AuditConfig.fromJson(value)) + .toList(); + } if (_json.containsKey("bindings")) { bindings = (_json["bindings"] as core.List) .map<GoogleIamV1Binding>( @@ -3667,6 +3939,10 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (auditConfigs != null) { + _json["auditConfigs"] = + auditConfigs.map((value) => (value).toJson()).toList(); + } if (bindings != null) { _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); } @@ -3688,12 +3964,23 @@ /// might reject them. GoogleIamV1Policy policy; + /// OPTIONAL: A FieldMask specifying which fields of the policy to modify. + /// Only + /// the fields in the mask will be modified. If no mask is provided, the + /// following default mask is used: + /// paths: "bindings, etag" + /// This field is only used by Cloud IAM. + core.String updateMask; + GoogleIamV1SetIamPolicyRequest(); GoogleIamV1SetIamPolicyRequest.fromJson(core.Map _json) { if (_json.containsKey("policy")) { policy = new GoogleIamV1Policy.fromJson(_json["policy"]); } + if (_json.containsKey("updateMask")) { + updateMask = _json["updateMask"]; + } } core.Map<core.String, core.Object> toJson() { @@ -3702,6 +3989,9 @@ if (policy != null) { _json["policy"] = (policy).toJson(); } + if (updateMask != null) { + _json["updateMask"] = updateMask; + } return _json; } }
diff --git a/generated/googleapis/lib/monitoring/v3.dart b/generated/googleapis/lib/monitoring/v3.dart index 7313b02..0e2ccb4 100644 --- a/generated/googleapis/lib/monitoring/v3.dart +++ b/generated/googleapis/lib/monitoring/v3.dart
@@ -52,6 +52,8 @@ class ProjectsResourceApi { final commons.ApiRequester _requester; + ProjectsAlertPoliciesResourceApi get alertPolicies => + new ProjectsAlertPoliciesResourceApi(_requester); ProjectsCollectdTimeSeriesResourceApi get collectdTimeSeries => new ProjectsCollectdTimeSeriesResourceApi(_requester); ProjectsGroupsResourceApi get groups => @@ -61,6 +63,11 @@ ProjectsMonitoredResourceDescriptorsResourceApi get monitoredResourceDescriptors => new ProjectsMonitoredResourceDescriptorsResourceApi(_requester); + ProjectsNotificationChannelDescriptorsResourceApi + get notificationChannelDescriptors => + new ProjectsNotificationChannelDescriptorsResourceApi(_requester); + ProjectsNotificationChannelsResourceApi get notificationChannels => + new ProjectsNotificationChannelsResourceApi(_requester); ProjectsTimeSeriesResourceApi get timeSeries => new ProjectsTimeSeriesResourceApi(_requester); ProjectsUptimeCheckConfigsResourceApi get uptimeCheckConfigs => @@ -69,6 +76,322 @@ ProjectsResourceApi(commons.ApiRequester client) : _requester = client; } +class ProjectsAlertPoliciesResourceApi { + final commons.ApiRequester _requester; + + ProjectsAlertPoliciesResourceApi(commons.ApiRequester client) + : _requester = client; + + /// Creates a new alerting policy. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The project in which to create the alerting policy. The format is + /// projects/[PROJECT_ID].Note that this field names the parent container in + /// which the alerting policy will be written, not the name of the created + /// policy. The alerting policy that is returned will have a name that + /// contains a normalized representation of this name as a prefix but adds a + /// suffix of the form /alertPolicies/[POLICY_ID], identifying the policy in + /// the container. + /// Value must have pattern "^projects/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [AlertPolicy]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<AlertPolicy> create(AlertPolicy request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v3/' + + commons.Escaper.ecapeVariableReserved('$name') + + '/alertPolicies'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new AlertPolicy.fromJson(data)); + } + + /// Deletes an alerting policy. + /// + /// Request parameters: + /// + /// [name] - The alerting policy to delete. The format is: + /// projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] + /// For more information, see AlertPolicy. + /// Value must have pattern "^projects/[^/]+/alertPolicies/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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, {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v3/' + 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)); + } + + /// Gets a single alerting policy. + /// + /// Request parameters: + /// + /// [name] - The alerting policy to retrieve. The format is + /// projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] + /// + /// Value must have pattern "^projects/[^/]+/alertPolicies/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [AlertPolicy]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<AlertPolicy> get(core.String name, {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v3/' + 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 AlertPolicy.fromJson(data)); + } + + /// Lists the existing alerting policies for the project. + /// + /// Request parameters: + /// + /// [name] - The project whose alert policies are to be listed. The format is + /// projects/[PROJECT_ID] + /// Note that this field names the parent container in which the alerting + /// policies to be listed are stored. To retrieve a single alerting policy by + /// name, use the GetAlertPolicy operation, instead. + /// Value must have pattern "^projects/[^/]+$". + /// + /// [filter] - If provided, this field specifies the criteria that must be met + /// by alert policies to be included in the response.For more details, see + /// sorting and filtering. + /// + /// [orderBy] - A comma-separated list of fields by which to sort the result. + /// Supports the same set of field references as the filter field. Entries can + /// be prefixed with a minus sign to sort by the field in descending order.For + /// more details, see sorting and filtering. + /// + /// [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 more results from the previous method + /// call. + /// + /// [pageSize] - The maximum number of results to return in a single response. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ListAlertPoliciesResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<ListAlertPoliciesResponse> list(core.String name, + {core.String filter, + core.String orderBy, + core.String pageToken, + core.int pageSize, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (filter != null) { + _queryParams["filter"] = [filter]; + } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v3/' + + commons.Escaper.ecapeVariableReserved('$name') + + '/alertPolicies'; + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response + .then((data) => new ListAlertPoliciesResponse.fromJson(data)); + } + + /// Updates an alerting policy. You can either replace the entire policy with + /// a new one or replace only certain fields in the current alerting policy by + /// specifying the fields to be updated via updateMask. Returns the updated + /// alerting policy. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - Required if the policy exists. The resource name for this policy. + /// The syntax is: + /// projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] + /// [ALERT_POLICY_ID] is assigned by Stackdriver Monitoring when the policy is + /// created. When calling the alertPolicies.create method, do not include the + /// name field in the alerting policy passed as part of the request. + /// Value must have pattern "^projects/[^/]+/alertPolicies/[^/]+$". + /// + /// [updateMask] - Optional. A list of alerting policy field names. If this + /// field is not empty, each listed field in the existing alerting policy is + /// set to the value of the corresponding field in the supplied policy + /// (alert_policy), or to the field's default value if the field is not in the + /// supplied alerting policy. Fields not listed retain their previous + /// value.Examples of valid field masks include display_name, documentation, + /// documentation.content, documentation.mime_type, user_labels, + /// user_label.nameofkey, enabled, conditions, combiner, etc.If this field is + /// empty, then the supplied alerting policy replaces the existing policy. It + /// is the same as deleting the existing policy and adding the supplied + /// policy, except for the following: + /// The new policy will have the same [ALERT_POLICY_ID] as the former policy. + /// This gives you continuity with the former policy in your notifications and + /// incidents. + /// Conditions in the new policy will keep their former [CONDITION_ID] if the + /// supplied condition includes the name field with that [CONDITION_ID]. If + /// the supplied condition omits the name field, then a new [CONDITION_ID] is + /// created. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [AlertPolicy]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<AlertPolicy> patch(AlertPolicy request, core.String name, + {core.String updateMask, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if (updateMask != null) { + _queryParams["updateMask"] = [updateMask]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, "PATCH", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new AlertPolicy.fromJson(data)); + } +} + class ProjectsCollectdTimeSeriesResourceApi { final commons.ApiRequester _requester; @@ -292,11 +615,6 @@ /// "projects/{project_id_or_number}". /// Value must have pattern "^projects/[^/]+$". /// - /// [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 - /// method call. - /// /// [pageSize] - A positive number that is the maximum number of results to /// return. /// @@ -318,6 +636,11 @@ /// returned by the childrenOfGroup filter, and includes children-of-children, /// and so forth. /// + /// [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 + /// method call. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -329,11 +652,11 @@ /// 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 pageToken, - core.int pageSize, + {core.int pageSize, core.String ancestorsOfGroup, core.String childrenOfGroup, core.String descendantsOfGroup, + core.String pageToken, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -345,9 +668,6 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } @@ -360,6 +680,9 @@ if (descendantsOfGroup != null) { _queryParams["descendantsOfGroup"] = [descendantsOfGroup]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -822,6 +1145,12 @@ /// "projects/{project_id_or_number}". /// Value must have pattern "^projects/[^/]+$". /// + /// [filter] - An optional filter describing the descriptors to be returned. + /// The filter can reference the descriptor's type and labels. For example, + /// the following filter returns only Google Compute Engine descriptors that + /// have an id label: + /// resource.type = starts_with("gce_") AND resource.label:id + /// /// [pageToken] - If this field is not empty then it must contain the /// nextPageToken value returned by a previous call to this method. Using this /// field causes the method to return additional results from the previous @@ -830,12 +1159,6 @@ /// [pageSize] - A positive number that is the maximum number of results to /// return. /// - /// [filter] - An optional filter describing the descriptors to be returned. - /// The filter can reference the descriptor's type and labels. For example, - /// the following filter returns only Google Compute Engine descriptors that - /// have an id label: - /// resource.type = starts_with("gce_") AND resource.label:id - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -847,9 +1170,9 @@ /// 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 pageToken, + {core.String filter, + core.String pageToken, core.int pageSize, - core.String filter, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -861,15 +1184,15 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -889,6 +1212,620 @@ } } +class ProjectsNotificationChannelDescriptorsResourceApi { + final commons.ApiRequester _requester; + + ProjectsNotificationChannelDescriptorsResourceApi(commons.ApiRequester client) + : _requester = client; + + /// Gets a single channel descriptor. The descriptor indicates which fields + /// are expected / permitted for a notification channel of the given type. + /// + /// Request parameters: + /// + /// [name] - The channel type for which to execute the request. The format is + /// projects/[PROJECT_ID]/notificationChannelDescriptors/{channel_type}. + /// Value must have pattern + /// "^projects/[^/]+/notificationChannelDescriptors/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [NotificationChannelDescriptor]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<NotificationChannelDescriptor> get(core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v3/' + 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 NotificationChannelDescriptor.fromJson(data)); + } + + /// Lists the descriptors for supported channel types. The use of descriptors + /// makes it possible for new channel types to be dynamically added. + /// + /// Request parameters: + /// + /// [name] - The REST resource name of the parent from which to retrieve the + /// notification channel descriptors. The expected syntax is: + /// projects/[PROJECT_ID] + /// Note that this names the parent container in which to look for the + /// descriptors; to retrieve a single descriptor by name, use the + /// GetNotificationChannelDescriptor operation, instead. + /// Value must have pattern "^projects/[^/]+$". + /// + /// [pageSize] - The maximum number of results to return in a single response. + /// If not set to a positive number, a reasonable value will be chosen by the + /// service. + /// + /// [pageToken] - If non-empty, page_token must contain a value returned as + /// the next_page_token in a previous response to request the next set of + /// results. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ListNotificationChannelDescriptorsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<ListNotificationChannelDescriptorsResponse> list( + core.String name, + {core.int pageSize, + core.String pageToken, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v3/' + + commons.Escaper.ecapeVariableReserved('$name') + + '/notificationChannelDescriptors'; + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => + new ListNotificationChannelDescriptorsResponse.fromJson(data)); + } +} + +class ProjectsNotificationChannelsResourceApi { + final commons.ApiRequester _requester; + + ProjectsNotificationChannelsResourceApi(commons.ApiRequester client) + : _requester = client; + + /// Creates a new notification channel, representing a single notification + /// endpoint such as an email address, SMS number, or pagerduty service. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The project on which to execute the request. The format is: + /// projects/[PROJECT_ID] + /// Note that this names the container into which the channel will be written. + /// This does not name the newly created channel. The resulting channel's name + /// will have a normalized version of this field as a prefix, but will add + /// /notificationChannels/[CHANNEL_ID] to identify the channel. + /// Value must have pattern "^projects/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [NotificationChannel]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<NotificationChannel> create( + NotificationChannel request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v3/' + + commons.Escaper.ecapeVariableReserved('$name') + + '/notificationChannels'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new NotificationChannel.fromJson(data)); + } + + /// Deletes a notification channel. + /// + /// Request parameters: + /// + /// [name] - The channel for which to execute the request. The format is + /// projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]. + /// Value must have pattern "^projects/[^/]+/notificationChannels/[^/]+$". + /// + /// [force] - If true, the notification channel will be deleted regardless of + /// its use in alert policies (the policies will be updated to remove the + /// channel). If false, channels that are still referenced by an existing + /// alerting policy will fail to be deleted in a delete operation. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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, + {core.bool force, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (force != null) { + _queryParams["force"] = ["${force}"]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v3/' + 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)); + } + + /// Gets a single notification channel. The channel includes the relevant + /// configuration details with which the channel was created. However, the + /// response may truncate or omit passwords, API keys, or other private key + /// matter and thus the response may not be 100% identical to the information + /// that was supplied in the call to the create method. + /// + /// Request parameters: + /// + /// [name] - The channel for which to execute the request. The format is + /// projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID]. + /// Value must have pattern "^projects/[^/]+/notificationChannels/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [NotificationChannel]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<NotificationChannel> get(core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v3/' + 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 NotificationChannel.fromJson(data)); + } + + /// Requests a verification code for an already verified channel that can then + /// be used in a call to VerifyNotificationChannel() on a different channel + /// with an equivalent identity in the same or in a different project. This + /// makes it possible to copy a channel between projects without requiring + /// manual reverification of the channel. If the channel is not in the + /// verified state, this method will fail (in other words, this may only be + /// used if the SendNotificationChannelVerificationCode and + /// VerifyNotificationChannel paths have already been used to put the given + /// channel into the verified state).There is no guarantee that the + /// verification codes returned by this method will be of a similar structure + /// or form as the ones that are delivered to the channel via + /// SendNotificationChannelVerificationCode; while VerifyNotificationChannel() + /// will recognize both the codes delivered via + /// SendNotificationChannelVerificationCode() and returned from + /// GetNotificationChannelVerificationCode(), it is typically the case that + /// the verification codes delivered via + /// SendNotificationChannelVerificationCode() will be shorter and also have a + /// shorter expiration (e.g. codes such as "G-123456") whereas + /// GetVerificationCode() will typically return a much longer, websafe base 64 + /// encoded string that has a longer expiration time. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The notification channel for which a verification code is to be + /// generated and retrieved. This must name a channel that is already + /// verified; if the specified channel is not verified, the request will fail. + /// Value must have pattern "^projects/[^/]+/notificationChannels/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [GetNotificationChannelVerificationCodeResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<GetNotificationChannelVerificationCodeResponse> + getVerificationCode(GetNotificationChannelVerificationCodeRequest request, + core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v3/' + + commons.Escaper.ecapeVariableReserved('$name') + + ':getVerificationCode'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => + new GetNotificationChannelVerificationCodeResponse.fromJson(data)); + } + + /// Lists the notification channels that have been created for the project. + /// + /// Request parameters: + /// + /// [name] - The project on which to execute the request. The format is + /// projects/[PROJECT_ID]. That is, this names the container in which to look + /// for the notification channels; it does not name a specific channel. To + /// query a specific channel by REST resource name, use the + /// GetNotificationChannel operation. + /// Value must have pattern "^projects/[^/]+$". + /// + /// [filter] - If provided, this field specifies the criteria that must be met + /// by notification channels to be included in the response.For more details, + /// see sorting and filtering. + /// + /// [orderBy] - A comma-separated list of fields by which to sort the result. + /// Supports the same set of fields as in filter. Entries can be prefixed with + /// a minus sign to sort in descending rather than ascending order.For more + /// details, see sorting and filtering. + /// + /// [pageToken] - If non-empty, page_token must contain a value returned as + /// the next_page_token in a previous response to request the next set of + /// results. + /// + /// [pageSize] - The maximum number of results to return in a single response. + /// If not set to a positive number, a reasonable value will be chosen by the + /// service. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ListNotificationChannelsResponse]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<ListNotificationChannelsResponse> list(core.String name, + {core.String filter, + core.String orderBy, + core.String pageToken, + core.int pageSize, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 (filter != null) { + _queryParams["filter"] = [filter]; + } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v3/' + + commons.Escaper.ecapeVariableReserved('$name') + + '/notificationChannels'; + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response + .then((data) => new ListNotificationChannelsResponse.fromJson(data)); + } + + /// Updates a notification channel. Fields not specified in the field mask + /// remain unchanged. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The full REST resource name for this channel. The syntax is: + /// projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID] + /// The [CHANNEL_ID] is automatically assigned by the server on creation. + /// Value must have pattern "^projects/[^/]+/notificationChannels/[^/]+$". + /// + /// [updateMask] - The fields to update. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [NotificationChannel]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<NotificationChannel> patch( + NotificationChannel request, core.String name, + {core.String updateMask, core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if (updateMask != null) { + _queryParams["updateMask"] = [updateMask]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, "PATCH", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new NotificationChannel.fromJson(data)); + } + + /// Causes a verification code to be delivered to the channel. The code can + /// then be supplied in VerifyNotificationChannel to verify the channel. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The notification channel to which to send a verification code. + /// Value must have pattern "^projects/[^/]+/notificationChannels/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> sendVerificationCode( + SendNotificationChannelVerificationCodeRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v3/' + + commons.Escaper.ecapeVariableReserved('$name') + + ':sendVerificationCode'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Empty.fromJson(data)); + } + + /// Verifies a NotificationChannel by proving receipt of the code delivered to + /// the channel as a result of calling + /// SendNotificationChannelVerificationCode. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The notification channel to verify. + /// Value must have pattern "^projects/[^/]+/notificationChannels/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [NotificationChannel]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<NotificationChannel> verify( + VerifyNotificationChannelRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + ':verify'; + + var _response = _requester.request(_url, "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new NotificationChannel.fromJson(data)); + } +} + class ProjectsTimeSeriesResourceApi { final commons.ApiRequester _requester; @@ -958,19 +1895,6 @@ /// "projects/{project_id_or_number}". /// Value must have pattern "^projects/[^/]+$". /// - /// [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. It is not possible to reduce across different resource types, - /// so this field implicitly contains resource.type. Fields not specified in - /// groupByFields are aggregated away. If groupByFields is not specified and - /// all the time series have the same resource type, then the time series are - /// aggregated into a single output time series. If crossSeriesReducer is not - /// defined, this field is ignored. - /// /// [interval_endTime] - Required. The end of the time interval. /// /// [aggregation_alignmentPeriod] - The alignment period for per-time series @@ -982,9 +1906,10 @@ /// an error is returned. /// /// [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. + /// return. If page_size is empty or more than 100,000 results, the effective + /// page_size is 100,000 results. If view is set to FULL, this is the maximum + /// number of Points returned. If view is set to HEADERS, this is the maximum + /// number of TimeSeries returned. /// /// [orderBy] - Unsupported: must be left blank. The points in each time /// series are returned in reverse time order. @@ -1019,11 +1944,6 @@ /// metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND /// metric.label.instance_name = "my-instance-name" /// - /// [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 - /// method call. - /// /// [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 @@ -1053,6 +1973,11 @@ /// - "ALIGN_PERCENTILE_05" : A ALIGN_PERCENTILE_05. /// - "ALIGN_PERCENT_CHANGE" : A ALIGN_PERCENT_CHANGE. /// + /// [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 + /// method call. + /// /// [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. @@ -1062,6 +1987,19 @@ /// - "FULL" : A FULL. /// - "HEADERS" : A HEADERS. /// + /// [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. It is not possible to reduce across different resource types, + /// so this field implicitly contains resource.type. Fields not specified in + /// groupByFields are aggregated away. If groupByFields is not specified and + /// all the time series have the same resource type, then the time series are + /// aggregated into a single output time series. If crossSeriesReducer is not + /// defined, this field is ignored. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -1073,17 +2011,17 @@ /// 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.List<core.String> aggregation_groupByFields, - core.String interval_endTime, + {core.String interval_endTime, core.String aggregation_alignmentPeriod, core.int pageSize, core.String orderBy, core.String aggregation_crossSeriesReducer, core.String filter, - core.String pageToken, core.String aggregation_perSeriesAligner, + core.String pageToken, core.String interval_startTime, core.String view, + core.List<core.String> aggregation_groupByFields, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -1095,9 +2033,6 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } - if (aggregation_groupByFields != null) { - _queryParams["aggregation.groupByFields"] = aggregation_groupByFields; - } if (interval_endTime != null) { _queryParams["interval.endTime"] = [interval_endTime]; } @@ -1120,20 +2055,23 @@ if (filter != null) { _queryParams["filter"] = [filter]; } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (aggregation_perSeriesAligner != null) { _queryParams["aggregation.perSeriesAligner"] = [ aggregation_perSeriesAligner ]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if (interval_startTime != null) { _queryParams["interval.startTime"] = [interval_startTime]; } if (view != null) { _queryParams["view"] = [view]; } + if (aggregation_groupByFields != null) { + _queryParams["aggregation.groupByFields"] = aggregation_groupByFields; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1439,16 +2377,16 @@ /// /// Request parameters: /// - /// [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 more results from the previous method - /// call. NOTE: this field is not yet implemented - /// /// [pageSize] - The maximum number of results to return in a single response. /// The server may further constrain the maximum number of results returned in /// a single page. If the page_size is <=0, the server will decide the number /// of results to be returned. NOTE: this field is not yet implemented /// + /// [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 more results from the previous method + /// call. NOTE: this field is not yet implemented + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -1460,7 +2398,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<ListUptimeCheckIpsResponse> list( - {core.String pageToken, core.int pageSize, core.String $fields}) { + {core.int pageSize, core.String pageToken, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -1468,12 +2406,12 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1491,6 +2429,399 @@ } } +/// Describes how to combine multiple time series to provide different views of +/// the data. Aggregation consists of an alignment step on individual time +/// series (alignment_period and per_series_aligner) followed by an optional +/// reduction step of the data across the aligned time series +/// (cross_series_reducer and group_by_fields). For more details, see +/// Aggregation. +class Aggregation { + /// 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. + core.String alignmentPeriod; + + /// 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. + /// Possible string values are: + /// - "REDUCE_NONE" : No cross-time series reduction. The output of the + /// aligner is returned. + /// - "REDUCE_MEAN" : Reduce by computing the mean across time series for each + /// alignment period. This reducer is valid for delta and gauge metrics with + /// numeric or distribution values. The value type of the output is DOUBLE. + /// - "REDUCE_MIN" : Reduce by computing the minimum across time series for + /// each alignment period. This reducer is valid for delta and gauge metrics + /// with numeric values. The value type of the output is the same as the value + /// type of the input. + /// - "REDUCE_MAX" : Reduce by computing the maximum across time series for + /// each alignment period. This reducer is valid for delta and gauge metrics + /// with numeric values. The value type of the output is the same as the value + /// type of the input. + /// - "REDUCE_SUM" : Reduce by computing the sum across time series for each + /// alignment period. This reducer is valid for delta and gauge metrics with + /// numeric and distribution values. The value type of the output is the same + /// as the value type of the input. + /// - "REDUCE_STDDEV" : Reduce by computing the standard deviation across time + /// series for each alignment period. This reducer is valid for delta and + /// gauge metrics with numeric or distribution values. The value type of the + /// output is DOUBLE. + /// - "REDUCE_COUNT" : Reduce by computing the count of data points across + /// time series for each alignment period. This reducer is valid for delta and + /// gauge metrics of numeric, Boolean, distribution, and string value type. + /// The value type of the output is INT64. + /// - "REDUCE_COUNT_TRUE" : Reduce by computing the count of True-valued data + /// points across time series for each alignment period. This reducer is valid + /// for delta and gauge metrics of Boolean value type. The value type of the + /// output is INT64. + /// - "REDUCE_COUNT_FALSE" : Reduce by computing the count of False-valued + /// data points across time series for each alignment period. This reducer is + /// valid for delta and gauge metrics of Boolean value type. The value type of + /// the output is INT64. + /// - "REDUCE_FRACTION_TRUE" : Reduce by computing the fraction of True-valued + /// data points across time series for each alignment period. This reducer is + /// valid for delta and gauge metrics of Boolean value type. The output value + /// is in the range 0, 1 and has value type DOUBLE. + /// - "REDUCE_PERCENTILE_99" : Reduce by computing 99th percentile of data + /// points across time series for each alignment period. This reducer is valid + /// for gauge and delta metrics of numeric and distribution type. The value of + /// the output is DOUBLE + /// - "REDUCE_PERCENTILE_95" : Reduce by computing 95th percentile of data + /// points across time series for each alignment period. This reducer is valid + /// for gauge and delta metrics of numeric and distribution type. The value of + /// the output is DOUBLE + /// - "REDUCE_PERCENTILE_50" : Reduce by computing 50th percentile of data + /// points across time series for each alignment period. This reducer is valid + /// for gauge and delta metrics of numeric and distribution type. The value of + /// the output is DOUBLE + /// - "REDUCE_PERCENTILE_05" : Reduce by computing 5th percentile of data + /// points across time series for each alignment period. This reducer is valid + /// for gauge and delta metrics of numeric and distribution type. The value of + /// the output is DOUBLE + core.String crossSeriesReducer; + + /// 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. It is not + /// possible to reduce across different resource types, so this field + /// implicitly contains resource.type. Fields not specified in groupByFields + /// are aggregated away. If groupByFields is not specified and all the time + /// series have the same resource type, then the time series are aggregated + /// into a single output time series. If crossSeriesReducer is not defined, + /// this field is ignored. + core.List<core.String> groupByFields; + + /// 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" : No alignment. Raw data is returned. Not valid if + /// cross-time series reduction is requested. The value type of the result is + /// the same as the value type of the input. + /// - "ALIGN_DELTA" : Align and convert to delta metric type. This alignment + /// is valid for cumulative metrics and delta metrics. Aligning an existing + /// delta metric to a delta metric requires that the alignment period be + /// increased. The value type of the result is the same as the value type of + /// the input.One can think of this aligner as a rate but without time units; + /// that is, the output is conceptually (second_point - first_point). + /// - "ALIGN_RATE" : Align and convert to a rate. This alignment is valid for + /// cumulative metrics and delta metrics with numeric values. The output is a + /// gauge metric with value type DOUBLE.One can think of this aligner as + /// conceptually providing the slope of the line that passes through the value + /// at the start and end of the window. In other words, this is conceptually + /// ((y1 - y0)/(t1 - t0)), and the output unit is one that has a "/time" + /// dimension.If, by rate, you are looking for percentage change, see the + /// ALIGN_PERCENT_CHANGE aligner option. + /// - "ALIGN_INTERPOLATE" : Align by interpolating between adjacent points + /// around the period boundary. This alignment is valid for gauge metrics with + /// numeric values. The value type of the result is the same as the value type + /// of the input. + /// - "ALIGN_NEXT_OLDER" : Align by shifting the oldest data point before the + /// period boundary to the boundary. This alignment is valid for gauge + /// metrics. The value type of the result is the same as the value type of the + /// input. + /// - "ALIGN_MIN" : Align time series via aggregation. The resulting data + /// point in the alignment period is the minimum of all data points in the + /// period. This alignment is valid for gauge and delta metrics with numeric + /// values. The value type of the result is the same as the value type of the + /// input. + /// - "ALIGN_MAX" : Align time series via aggregation. The resulting data + /// point in the alignment period is the maximum of all data points in the + /// period. This alignment is valid for gauge and delta metrics with numeric + /// values. The value type of the result is the same as the value type of the + /// input. + /// - "ALIGN_MEAN" : Align time series via aggregation. The resulting data + /// point in the alignment period is the average or arithmetic mean of all + /// data points in the period. This alignment is valid for gauge and delta + /// metrics with numeric values. The value type of the output is DOUBLE. + /// - "ALIGN_COUNT" : Align time series via aggregation. The resulting data + /// point in the alignment period is the count of all data points in the + /// period. This alignment is valid for gauge and delta metrics with numeric + /// or Boolean values. The value type of the output is INT64. + /// - "ALIGN_SUM" : Align time series via aggregation. The resulting data + /// point in the alignment period is the sum of all data points in the period. + /// This alignment is valid for gauge and delta metrics with numeric and + /// distribution values. The value type of the output is the same as the value + /// type of the input. + /// - "ALIGN_STDDEV" : Align time series via aggregation. The resulting data + /// point in the alignment period is the standard deviation of all data points + /// in the period. This alignment is valid for gauge and delta metrics with + /// numeric values. The value type of the output is DOUBLE. + /// - "ALIGN_COUNT_TRUE" : Align time series via aggregation. The resulting + /// data point in the alignment period is the count of True-valued data points + /// in the period. This alignment is valid for gauge metrics with Boolean + /// values. The value type of the output is INT64. + /// - "ALIGN_COUNT_FALSE" : Align time series via aggregation. The resulting + /// data point in the alignment period is the count of False-valued data + /// points in the period. This alignment is valid for gauge metrics with + /// Boolean values. The value type of the output is INT64. + /// - "ALIGN_FRACTION_TRUE" : Align time series via aggregation. The resulting + /// data point in the alignment period is the fraction of True-valued data + /// points in the period. This alignment is valid for gauge metrics with + /// Boolean values. The output value is in the range 0, 1 and has value type + /// DOUBLE. + /// - "ALIGN_PERCENTILE_99" : Align time series via aggregation. The resulting + /// data point in the alignment period is the 99th percentile of all data + /// points in the period. This alignment is valid for gauge and delta metrics + /// with distribution values. The output is a gauge metric with value type + /// DOUBLE. + /// - "ALIGN_PERCENTILE_95" : Align time series via aggregation. The resulting + /// data point in the alignment period is the 95th percentile of all data + /// points in the period. This alignment is valid for gauge and delta metrics + /// with distribution values. The output is a gauge metric with value type + /// DOUBLE. + /// - "ALIGN_PERCENTILE_50" : Align time series via aggregation. The resulting + /// data point in the alignment period is the 50th percentile of all data + /// points in the period. This alignment is valid for gauge and delta metrics + /// with distribution values. The output is a gauge metric with value type + /// DOUBLE. + /// - "ALIGN_PERCENTILE_05" : Align time series via aggregation. The resulting + /// data point in the alignment period is the 5th percentile of all data + /// points in the period. This alignment is valid for gauge and delta metrics + /// with distribution values. The output is a gauge metric with value type + /// DOUBLE. + /// - "ALIGN_PERCENT_CHANGE" : Align and convert to a percentage change. This + /// alignment is valid for gauge and delta metrics with numeric values. This + /// alignment conceptually computes the equivalent of "((current - + /// previous)/previous)*100" where previous value is determined based on the + /// alignmentPeriod. In the event that previous is 0 the calculated value is + /// infinity with the exception that if both (current - previous) and previous + /// are 0 the calculated value is 0. A 10 minute moving mean is computed at + /// each point of the time window prior to the above calculation to smooth the + /// metric and prevent false positives from very short lived spikes. Only + /// applicable for data that is >= 0. Any values < 0 are treated as no data. + /// While delta metrics are accepted by this alignment special care should be + /// taken that the values for the metric will always be positive. The output + /// is a gauge metric with value type DOUBLE. + core.String perSeriesAligner; + + Aggregation(); + + Aggregation.fromJson(core.Map _json) { + if (_json.containsKey("alignmentPeriod")) { + alignmentPeriod = _json["alignmentPeriod"]; + } + if (_json.containsKey("crossSeriesReducer")) { + crossSeriesReducer = _json["crossSeriesReducer"]; + } + if (_json.containsKey("groupByFields")) { + groupByFields = (_json["groupByFields"] as core.List).cast<core.String>(); + } + if (_json.containsKey("perSeriesAligner")) { + perSeriesAligner = _json["perSeriesAligner"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (alignmentPeriod != null) { + _json["alignmentPeriod"] = alignmentPeriod; + } + if (crossSeriesReducer != null) { + _json["crossSeriesReducer"] = crossSeriesReducer; + } + if (groupByFields != null) { + _json["groupByFields"] = groupByFields; + } + if (perSeriesAligner != null) { + _json["perSeriesAligner"] = perSeriesAligner; + } + return _json; + } +} + +/// A description of the conditions under which some aspect of your system is +/// considered to be "unhealthy" and the ways to notify people or services about +/// this state. For an overview of alert policies, see Introduction to Alerting. +class AlertPolicy { + /// How to combine the results of multiple conditions to determine if an + /// incident should be opened. + /// Possible string values are: + /// - "COMBINE_UNSPECIFIED" : An unspecified combiner. + /// - "AND" : Combine conditions using the logical AND operator. An incident + /// is created only if all conditions are met simultaneously. This combiner is + /// satisfied if all conditions are met, even if they are met on completely + /// different resources. + /// - "OR" : Combine conditions using the logical OR operator. An incident is + /// created if any of the listed conditions is met. + /// - "AND_WITH_MATCHING_RESOURCE" : Combine conditions using logical AND + /// operator, but unlike the regular AND option, an incident is created only + /// if all conditions are met simultaneously on at least one resource. + core.String combiner; + + /// A list of conditions for the policy. The conditions are combined by AND or + /// OR according to the combiner field. If the combined conditions evaluate to + /// true, then an incident is created. A policy can have from one to six + /// conditions. + core.List<Condition> conditions; + + /// A read-only record of the creation of the alerting policy. If provided in + /// a call to create or update, this field will be ignored. + MutationRecord creationRecord; + + /// A short name or phrase used to identify the policy in dashboards, + /// notifications, and incidents. To avoid confusion, don't use the same + /// display name for multiple policies in the same project. The name is + /// limited to 512 Unicode characters. + core.String displayName; + + /// Documentation that is included with notifications and incidents related to + /// this policy. Best practice is for the documentation to include information + /// to help responders understand, mitigate, escalate, and correct the + /// underlying problems detected by the alerting policy. Notification channels + /// that have limited capacity might not show this documentation. + Documentation documentation; + + /// Whether or not the policy is enabled. On write, the default interpretation + /// if unset is that the policy is enabled. On read, clients should not make + /// any assumption about the state if it has not been populated. The field + /// should always be populated on List and Get operations, unless a field + /// projection has been specified that strips it out. + core.bool enabled; + + /// A read-only record of the most recent change to the alerting policy. If + /// provided in a call to create or update, this field will be ignored. + MutationRecord mutationRecord; + + /// Required if the policy exists. The resource name for this policy. The + /// syntax is: + /// projects/[PROJECT_ID]/alertPolicies/[ALERT_POLICY_ID] + /// [ALERT_POLICY_ID] is assigned by Stackdriver Monitoring when the policy is + /// created. When calling the alertPolicies.create method, do not include the + /// name field in the alerting policy passed as part of the request. + core.String name; + + /// Identifies the notification channels to which notifications should be sent + /// when incidents are opened or closed or when new violations occur on an + /// already opened incident. Each element of this array corresponds to the + /// name field in each of the NotificationChannel objects that are returned + /// from the ListNotificationChannels method. The syntax of the entries in + /// this field is: + /// projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID] + core.List<core.String> notificationChannels; + + /// User-supplied key/value data to be used for organizing and identifying the + /// AlertPolicy objects.The field can contain up to 64 entries. Each key and + /// value is limited to 63 Unicode characters or 128 bytes, whichever is + /// smaller. Labels and values can contain only lowercase letters, numerals, + /// underscores, and dashes. Keys must begin with a letter. + core.Map<core.String, core.String> userLabels; + + AlertPolicy(); + + AlertPolicy.fromJson(core.Map _json) { + if (_json.containsKey("combiner")) { + combiner = _json["combiner"]; + } + if (_json.containsKey("conditions")) { + conditions = (_json["conditions"] as core.List) + .map<Condition>((value) => new Condition.fromJson(value)) + .toList(); + } + if (_json.containsKey("creationRecord")) { + creationRecord = new MutationRecord.fromJson(_json["creationRecord"]); + } + if (_json.containsKey("displayName")) { + displayName = _json["displayName"]; + } + if (_json.containsKey("documentation")) { + documentation = new Documentation.fromJson(_json["documentation"]); + } + if (_json.containsKey("enabled")) { + enabled = _json["enabled"]; + } + if (_json.containsKey("mutationRecord")) { + mutationRecord = new MutationRecord.fromJson(_json["mutationRecord"]); + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("notificationChannels")) { + notificationChannels = + (_json["notificationChannels"] as core.List).cast<core.String>(); + } + if (_json.containsKey("userLabels")) { + userLabels = + (_json["userLabels"] as core.Map).cast<core.String, core.String>(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (combiner != null) { + _json["combiner"] = combiner; + } + if (conditions != null) { + _json["conditions"] = + conditions.map((value) => (value).toJson()).toList(); + } + if (creationRecord != null) { + _json["creationRecord"] = (creationRecord).toJson(); + } + if (displayName != null) { + _json["displayName"] = displayName; + } + if (documentation != null) { + _json["documentation"] = (documentation).toJson(); + } + if (enabled != null) { + _json["enabled"] = enabled; + } + if (mutationRecord != null) { + _json["mutationRecord"] = (mutationRecord).toJson(); + } + if (name != null) { + _json["name"] = name; + } + if (notificationChannels != null) { + _json["notificationChannels"] = notificationChannels; + } + if (userLabels != null) { + _json["userLabels"] = userLabels; + } + return _json; + } +} + /// A type of authentication to perform against the specified resource or URL /// that uses username and password. Currently, only Basic authentication is /// supported in Uptime Monitoring. @@ -1807,11 +3138,81 @@ } } +/// A condition is a true/false test that determines when an alerting policy +/// should open an incident. If a condition evaluates to true, it signifies that +/// something is wrong. +class Condition { + /// A condition that checks that a time series continues to receive new data + /// points. + MetricAbsence conditionAbsent; + + /// A condition that compares a time series against a threshold. + MetricThreshold conditionThreshold; + + /// A short name or phrase used to identify the condition in dashboards, + /// notifications, and incidents. To avoid confusion, don't use the same + /// display name for multiple conditions in the same policy. + core.String displayName; + + /// Required if the condition exists. The unique resource name for this + /// condition. Its syntax is: + /// projects/[PROJECT_ID]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID] + /// [CONDITION_ID] is assigned by Stackdriver Monitoring when the condition is + /// created as part of a new or updated alerting policy.When calling the + /// alertPolicies.create method, do not include the name field in the + /// conditions of the requested alerting policy. Stackdriver Monitoring + /// creates the condition identifiers and includes them in the new policy.When + /// calling the alertPolicies.update method to update a policy, including a + /// condition name causes the existing condition to be updated. Conditions + /// without names are added to the updated policy. Existing conditions are + /// deleted if they are not updated.Best practice is to preserve + /// [CONDITION_ID] if you make only small changes, such as those to condition + /// thresholds, durations, or trigger values. Otherwise, treat the change as a + /// new condition and let the existing condition be deleted. + core.String name; + + Condition(); + + Condition.fromJson(core.Map _json) { + if (_json.containsKey("conditionAbsent")) { + conditionAbsent = new MetricAbsence.fromJson(_json["conditionAbsent"]); + } + if (_json.containsKey("conditionThreshold")) { + conditionThreshold = + new MetricThreshold.fromJson(_json["conditionThreshold"]); + } + if (_json.containsKey("displayName")) { + displayName = _json["displayName"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (conditionAbsent != null) { + _json["conditionAbsent"] = (conditionAbsent).toJson(); + } + if (conditionThreshold != null) { + _json["conditionThreshold"] = (conditionThreshold).toJson(); + } + if (displayName != null) { + _json["displayName"] = displayName; + } + if (name != null) { + _json["name"] = name; + } + return _json; + } +} + /// Used to perform string matching. Currently, this matches on the exact /// content. In the future, it can be expanded to allow for regular expressions /// and more complex matching. class ContentMatcher { - /// String content to match + /// String content to match (max 1024 bytes) core.String content; ContentMatcher(); @@ -1969,6 +3370,11 @@ /// provided. core.String count; + /// Must be in increasing order of |value| field. The current requirement + /// enforced by the backend is that at most one Exemplar will fall into any + /// bucket. + core.List<Exemplar> exemplars; + /// The arithmetic mean of the values in the population. If count is zero then /// this field must be zero. core.double mean; @@ -1998,6 +3404,11 @@ if (_json.containsKey("count")) { count = _json["count"]; } + if (_json.containsKey("exemplars")) { + exemplars = (_json["exemplars"] as core.List) + .map<Exemplar>((value) => new Exemplar.fromJson(value)) + .toList(); + } if (_json.containsKey("mean")) { mean = _json["mean"].toDouble(); } @@ -2021,6 +3432,9 @@ if (count != null) { _json["count"] = count; } + if (exemplars != null) { + _json["exemplars"] = exemplars.map((value) => (value).toJson()).toList(); + } if (mean != null) { _json["mean"] = mean; } @@ -2034,6 +3448,42 @@ } } +/// A content string and a MIME type that describes the content string's format. +class Documentation { + /// The text of the documentation, interpreted according to mime_type. The + /// content may not exceed 8,192 Unicode characters and may not exceed more + /// than 10,240 bytes when encoded in UTF-8 format, whichever is smaller. + core.String content; + + /// The format of the content field. Presently, only the value "text/markdown" + /// is supported. See Markdown (https://en.wikipedia.org/wiki/Markdown) for + /// more information. + core.String mimeType; + + Documentation(); + + Documentation.fromJson(core.Map _json) { + if (_json.containsKey("content")) { + content = _json["content"]; + } + if (_json.containsKey("mimeType")) { + mimeType = _json["mimeType"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (content != null) { + _json["content"] = content; + } + if (mimeType != null) { + _json["mimeType"] = mimeType; + } + 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: @@ -2053,6 +3503,63 @@ } } +/// Exemplars are example points that may be used to annotate aggregated +/// distribution values. They are metadata that gives information about a +/// particular value added to a Distribution bucket, such as a trace ID that was +/// active when a value was added. They may contain further information, such as +/// a example values and timestamps, origin, etc. +class Exemplar { + /// Contextual information about the example value. Examples are:Trace ID: + /// type.googleapis.com/google.devtools.cloudtrace.v1.TraceLiteral string: + /// type.googleapis.com/google.protobuf.StringValueLabels dropped during + /// aggregation: type.googleapis.com/google.monitoring.v3.DroppedLabelsThere + /// may be only a single attachment of any given message type in a single + /// exemplar, and this is enforced by the system. + /// + /// 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>> attachments; + + /// The observation (sampling) time of the above value. + core.String timestamp; + + /// Value of the exemplar point. This value determines to which bucket the + /// exemplar belongs. + core.double value; + + Exemplar(); + + Exemplar.fromJson(core.Map _json) { + if (_json.containsKey("attachments")) { + attachments = (_json["attachments"] as core.List) + .map<core.Map<core.String, core.Object>>( + (value) => (value as core.Map).cast<core.String, core.Object>()) + .toList(); + } + if (_json.containsKey("timestamp")) { + timestamp = _json["timestamp"]; + } + if (_json.containsKey("value")) { + value = _json["value"].toDouble(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (attachments != null) { + _json["attachments"] = attachments; + } + if (timestamp != null) { + _json["timestamp"] = timestamp; + } + if (value != null) { + _json["value"] = value; + } + return _json; + } +} + /// Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 /// (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < /// N-1): boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must @@ -2262,6 +3769,74 @@ } } +/// The GetNotificationChannelVerificationCode request. +class GetNotificationChannelVerificationCodeRequest { + /// The desired expiration time. If specified, the API will guarantee that the + /// returned code will not be valid after the specified timestamp; however, + /// the API cannot guarantee that the returned code will be valid for at least + /// as long as the requested time (the API puts an upper bound on the amount + /// of time for which a code may be valid). If omitted, a default expiration + /// will be used, which may be less than the max permissible expiration (so + /// specifying an expiration may extend the code's lifetime over omitting an + /// expiration, even though the API does impose an upper limit on the maximum + /// expiration that is permitted). + core.String expireTime; + + GetNotificationChannelVerificationCodeRequest(); + + GetNotificationChannelVerificationCodeRequest.fromJson(core.Map _json) { + if (_json.containsKey("expireTime")) { + expireTime = _json["expireTime"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (expireTime != null) { + _json["expireTime"] = expireTime; + } + return _json; + } +} + +/// The GetNotificationChannelVerificationCode request. +class GetNotificationChannelVerificationCodeResponse { + /// The verification code, which may be used to verify other channels that + /// have an equivalent identity (i.e. other channels of the same type with the + /// same fingerprint such as other email channels with the same email address + /// or other sms channels with the same number). + core.String code; + + /// The expiration time associated with the code that was returned. If an + /// expiration was provided in the request, this is the minimum of the + /// requested expiration in the request and the max permitted expiration. + core.String expireTime; + + GetNotificationChannelVerificationCodeResponse(); + + GetNotificationChannelVerificationCodeResponse.fromJson(core.Map _json) { + if (_json.containsKey("code")) { + code = _json["code"]; + } + if (_json.containsKey("expireTime")) { + expireTime = _json["expireTime"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (code != null) { + _json["code"] = code; + } + if (expireTime != null) { + _json["expireTime"] = expireTime; + } + return _json; + } +} + /// The description of a dynamic collection of monitored resources. Each group /// has a filter that is matched against monitored resources and their /// associated metadata. If a group's filter matches an available monitored @@ -2585,6 +4160,43 @@ } } +/// The protocol for the ListAlertPolicies response. +class ListAlertPoliciesResponse { + /// The returned alert policies. + core.List<AlertPolicy> alertPolicies; + + /// If there might be more results than were 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. + core.String nextPageToken; + + ListAlertPoliciesResponse(); + + ListAlertPoliciesResponse.fromJson(core.Map _json) { + if (_json.containsKey("alertPolicies")) { + alertPolicies = (_json["alertPolicies"] as core.List) + .map<AlertPolicy>((value) => new AlertPolicy.fromJson(value)) + .toList(); + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (alertPolicies != null) { + _json["alertPolicies"] = + alertPolicies.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + /// The ListGroupMembers response. class ListGroupMembersResponse { /// A set of monitored resources in the group. @@ -2745,8 +4357,89 @@ } } +/// The ListNotificationChannelDescriptors response. +class ListNotificationChannelDescriptorsResponse { + /// The monitored resource descriptors supported for the specified project, + /// optionally filtered. + core.List<NotificationChannelDescriptor> channelDescriptors; + + /// If not empty, indicates that there may be more results that match the + /// request. Use the value in the page_token field in a subsequent request to + /// fetch the next set of results. If empty, all results have been returned. + core.String nextPageToken; + + ListNotificationChannelDescriptorsResponse(); + + ListNotificationChannelDescriptorsResponse.fromJson(core.Map _json) { + if (_json.containsKey("channelDescriptors")) { + channelDescriptors = (_json["channelDescriptors"] as core.List) + .map<NotificationChannelDescriptor>( + (value) => new NotificationChannelDescriptor.fromJson(value)) + .toList(); + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (channelDescriptors != null) { + _json["channelDescriptors"] = + channelDescriptors.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + +/// The ListNotificationChannels response. +class ListNotificationChannelsResponse { + /// If not empty, indicates that there may be more results that match the + /// request. Use the value in the page_token field in a subsequent request to + /// fetch the next set of results. If empty, all results have been returned. + core.String nextPageToken; + + /// The notification channels defined for the specified project. + core.List<NotificationChannel> notificationChannels; + + ListNotificationChannelsResponse(); + + ListNotificationChannelsResponse.fromJson(core.Map _json) { + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("notificationChannels")) { + notificationChannels = (_json["notificationChannels"] as core.List) + .map<NotificationChannel>( + (value) => new NotificationChannel.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (notificationChannels != null) { + _json["notificationChannels"] = + notificationChannels.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + /// The ListTimeSeries response. class ListTimeSeriesResponse { + /// Query execution errors that may have caused the time series data returned + /// to be incomplete. + core.List<Status> executionErrors; + /// 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. @@ -2758,6 +4451,11 @@ ListTimeSeriesResponse(); ListTimeSeriesResponse.fromJson(core.Map _json) { + if (_json.containsKey("executionErrors")) { + executionErrors = (_json["executionErrors"] as core.List) + .map<Status>((value) => new Status.fromJson(value)) + .toList(); + } if (_json.containsKey("nextPageToken")) { nextPageToken = _json["nextPageToken"]; } @@ -2771,6 +4469,10 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (executionErrors != null) { + _json["executionErrors"] = + executionErrors.map((value) => (value).toJson()).toList(); + } if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } @@ -2908,6 +4610,82 @@ } } +/// A condition type that checks that monitored resources are reporting data. +/// The configuration defines a metric and a set of monitored resources. The +/// predicate is considered in violation when a time series for the specified +/// metric of a monitored resource does not include any data in the specified +/// duration. +class MetricAbsence { + /// Specifies the alignment of data points in individual time series as well + /// as how to combine the retrieved time series together (such as when + /// aggregating multiple streams on each resource to a single stream for each + /// resource or when aggregating streams across all members of a group of + /// resrouces). Multiple aggregations are applied in the order specified.This + /// field is similar to the one in the MetricService.ListTimeSeries request. + /// It is advisable to use the ListTimeSeries method when debugging this + /// field. + core.List<Aggregation> aggregations; + + /// The amount of time that a time series must fail to report new data to be + /// considered failing. Currently, only values that are a multiple of a + /// minute--e.g. 60, 120, or 300 seconds--are supported. If an invalid value + /// is given, an error will be returned. The Duration.nanos field is ignored. + core.String duration; + + /// A filter that identifies which time series should be compared with the + /// threshold.The filter is similar to the one that is specified in the + /// MetricService.ListTimeSeries request (that call is useful to verify the + /// time series that will be retrieved / processed) and must specify the + /// metric type and optionally may contain restrictions on resource type, + /// resource labels, and metric labels. This field may not exceed 2048 Unicode + /// characters in length. + core.String filter; + + /// The number/percent of time series for which the comparison must hold in + /// order for the condition to trigger. If unspecified, then the condition + /// will trigger if the comparison is true for any of the time series that + /// have been identified by filter and aggregations. + Trigger trigger; + + MetricAbsence(); + + MetricAbsence.fromJson(core.Map _json) { + if (_json.containsKey("aggregations")) { + aggregations = (_json["aggregations"] as core.List) + .map<Aggregation>((value) => new Aggregation.fromJson(value)) + .toList(); + } + if (_json.containsKey("duration")) { + duration = _json["duration"]; + } + if (_json.containsKey("filter")) { + filter = _json["filter"]; + } + if (_json.containsKey("trigger")) { + trigger = new Trigger.fromJson(_json["trigger"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (aggregations != null) { + _json["aggregations"] = + aggregations.map((value) => (value).toJson()).toList(); + } + if (duration != null) { + _json["duration"] = duration; + } + if (filter != null) { + _json["filter"] = filter; + } + if (trigger != null) { + _json["trigger"] = (trigger).toJson(); + } + return _json; + } +} + /// 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. @@ -3034,6 +4812,154 @@ } } +/// A condition type that compares a collection of time series against a +/// threshold. +class MetricThreshold { + /// Specifies the alignment of data points in individual time series as well + /// as how to combine the retrieved time series together (such as when + /// aggregating multiple streams on each resource to a single stream for each + /// resource or when aggregating streams across all members of a group of + /// resrouces). Multiple aggregations are applied in the order specified.This + /// field is similar to the one in the MetricService.ListTimeSeries request. + /// It is advisable to use the ListTimeSeries method when debugging this + /// field. + core.List<Aggregation> aggregations; + + /// The comparison to apply between the time series (indicated by filter and + /// aggregation) and the threshold (indicated by threshold_value). The + /// comparison is applied on each time series, with the time series on the + /// left-hand side and the threshold on the right-hand side.Only COMPARISON_LT + /// and COMPARISON_GT are supported currently. + /// Possible string values are: + /// - "COMPARISON_UNSPECIFIED" : No ordering relationship is specified. + /// - "COMPARISON_GT" : The left argument is greater than the right argument. + /// - "COMPARISON_GE" : The left argument is greater than or equal to the + /// right argument. + /// - "COMPARISON_LT" : The left argument is less than the right argument. + /// - "COMPARISON_LE" : The left argument is less than or equal to the right + /// argument. + /// - "COMPARISON_EQ" : The left argument is equal to the right argument. + /// - "COMPARISON_NE" : The left argument is not equal to the right argument. + core.String comparison; + + /// Specifies the alignment of data points in individual time series selected + /// by denominatorFilter as well as how to combine the retrieved time series + /// together (such as when aggregating multiple streams on each resource to a + /// single stream for each resource or when aggregating streams across all + /// members of a group of resources).When computing ratios, the aggregations + /// and denominator_aggregations fields must use the same alignment period and + /// produce time series that have the same periodicity and labels.This field + /// is similar to the one in the MetricService.ListTimeSeries request. It is + /// advisable to use the ListTimeSeries method when debugging this field. + core.List<Aggregation> denominatorAggregations; + + /// A filter that identifies a time series that should be used as the + /// denominator of a ratio that will be compared with the threshold. If a + /// denominator_filter is specified, the time series specified by the filter + /// field will be used as the numerator.The filter is similar to the one that + /// is specified in the MetricService.ListTimeSeries request (that call is + /// useful to verify the time series that will be retrieved / processed) and + /// must specify the metric type and optionally may contain restrictions on + /// resource type, resource labels, and metric labels. This field may not + /// exceed 2048 Unicode characters in length. + core.String denominatorFilter; + + /// The amount of time that a time series must violate the threshold to be + /// considered failing. Currently, only values that are a multiple of a + /// minute--e.g., 0, 60, 120, or 300 seconds--are supported. If an invalid + /// value is given, an error will be returned. When choosing a duration, it is + /// useful to keep in mind the frequency of the underlying time series data + /// (which may also be affected by any alignments specified in the + /// aggregations field); a good duration is long enough so that a single + /// outlier does not generate spurious alerts, but short enough that unhealthy + /// states are detected and alerted on quickly. + core.String duration; + + /// A filter that identifies which time series should be compared with the + /// threshold.The filter is similar to the one that is specified in the + /// MetricService.ListTimeSeries request (that call is useful to verify the + /// time series that will be retrieved / processed) and must specify the + /// metric type and optionally may contain restrictions on resource type, + /// resource labels, and metric labels. This field may not exceed 2048 Unicode + /// characters in length. + core.String filter; + + /// A value against which to compare the time series. + core.double thresholdValue; + + /// The number/percent of time series for which the comparison must hold in + /// order for the condition to trigger. If unspecified, then the condition + /// will trigger if the comparison is true for any of the time series that + /// have been identified by filter and aggregations, or by the ratio, if + /// denominator_filter and denominator_aggregations are specified. + Trigger trigger; + + MetricThreshold(); + + MetricThreshold.fromJson(core.Map _json) { + if (_json.containsKey("aggregations")) { + aggregations = (_json["aggregations"] as core.List) + .map<Aggregation>((value) => new Aggregation.fromJson(value)) + .toList(); + } + if (_json.containsKey("comparison")) { + comparison = _json["comparison"]; + } + if (_json.containsKey("denominatorAggregations")) { + denominatorAggregations = (_json["denominatorAggregations"] as core.List) + .map<Aggregation>((value) => new Aggregation.fromJson(value)) + .toList(); + } + if (_json.containsKey("denominatorFilter")) { + denominatorFilter = _json["denominatorFilter"]; + } + if (_json.containsKey("duration")) { + duration = _json["duration"]; + } + if (_json.containsKey("filter")) { + filter = _json["filter"]; + } + if (_json.containsKey("thresholdValue")) { + thresholdValue = _json["thresholdValue"].toDouble(); + } + if (_json.containsKey("trigger")) { + trigger = new Trigger.fromJson(_json["trigger"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (aggregations != null) { + _json["aggregations"] = + aggregations.map((value) => (value).toJson()).toList(); + } + if (comparison != null) { + _json["comparison"] = comparison; + } + if (denominatorAggregations != null) { + _json["denominatorAggregations"] = + denominatorAggregations.map((value) => (value).toJson()).toList(); + } + if (denominatorFilter != null) { + _json["denominatorFilter"] = denominatorFilter; + } + if (duration != null) { + _json["duration"] = duration; + } + if (filter != null) { + _json["filter"] = filter; + } + if (thresholdValue != null) { + _json["thresholdValue"] = thresholdValue; + } + if (trigger != null) { + _json["trigger"] = (trigger).toJson(); + } + 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 @@ -3211,6 +5137,257 @@ } } +/// Describes a change made to a configuration. +class MutationRecord { + /// When the change occurred. + core.String mutateTime; + + /// The email address of the user making the change. + core.String mutatedBy; + + MutationRecord(); + + MutationRecord.fromJson(core.Map _json) { + if (_json.containsKey("mutateTime")) { + mutateTime = _json["mutateTime"]; + } + if (_json.containsKey("mutatedBy")) { + mutatedBy = _json["mutatedBy"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (mutateTime != null) { + _json["mutateTime"] = mutateTime; + } + if (mutatedBy != null) { + _json["mutatedBy"] = mutatedBy; + } + return _json; + } +} + +/// A NotificationChannel is a medium through which an alert is delivered when a +/// policy violation is detected. Examples of channels include email, SMS, and +/// third-party messaging applications. Fields containing sensitive information +/// like authentication tokens or contact info are only partially populated on +/// retrieval. +class NotificationChannel { + /// An optional human-readable description of this notification channel. This + /// description may provide additional details, beyond the display name, for + /// the channel. This may not exceeed 1024 Unicode characters. + core.String description; + + /// An optional human-readable name for this notification channel. It is + /// recommended that you specify a non-empty and unique name in order to make + /// it easier to identify the channels in your project, though this is not + /// enforced. The display name is limited to 512 Unicode characters. + core.String displayName; + + /// Whether notifications are forwarded to the described channel. This makes + /// it possible to disable delivery of notifications to a particular channel + /// without removing the channel from all alerting policies that reference the + /// channel. This is a more convenient approach when the change is temporary + /// and you want to receive notifications from the same set of alerting + /// policies on the channel at some point in the future. + core.bool enabled; + + /// Configuration fields that define the channel and its behavior. The + /// permissible and required labels are specified in the + /// NotificationChannelDescriptor.labels of the NotificationChannelDescriptor + /// corresponding to the type field. + core.Map<core.String, core.String> labels; + + /// The full REST resource name for this channel. The syntax is: + /// projects/[PROJECT_ID]/notificationChannels/[CHANNEL_ID] + /// The [CHANNEL_ID] is automatically assigned by the server on creation. + core.String name; + + /// The type of the notification channel. This field matches the value of the + /// NotificationChannelDescriptor.type field. + core.String type; + + /// User-supplied key/value data that does not need to conform to the + /// corresponding NotificationChannelDescriptor's schema, unlike the labels + /// field. This field is intended to be used for organizing and identifying + /// the NotificationChannel objects.The field can contain up to 64 entries. + /// Each key and value is limited to 63 Unicode characters or 128 bytes, + /// whichever is smaller. Labels and values can contain only lowercase + /// letters, numerals, underscores, and dashes. Keys must begin with a letter. + core.Map<core.String, core.String> userLabels; + + /// Indicates whether this channel has been verified or not. On a + /// ListNotificationChannels or GetNotificationChannel operation, this field + /// is expected to be populated.If the value is UNVERIFIED, then it indicates + /// that the channel is non-functioning (it both requires verification and + /// lacks verification); otherwise, it is assumed that the channel works.If + /// the channel is neither VERIFIED nor UNVERIFIED, it implies that the + /// channel is of a type that does not require verification or that this + /// specific channel has been exempted from verification because it was + /// created prior to verification being required for channels of this + /// type.This field cannot be modified using a standard + /// UpdateNotificationChannel operation. To change the value of this field, + /// you must call VerifyNotificationChannel. + /// Possible string values are: + /// - "VERIFICATION_STATUS_UNSPECIFIED" : Sentinel value used to indicate that + /// the state is unknown, omitted, or is not applicable (as in the case of + /// channels that neither support nor require verification in order to + /// function). + /// - "UNVERIFIED" : The channel has yet to be verified and requires + /// verification to function. Note that this state also applies to the case + /// where the verification process has been initiated by sending a + /// verification code but where the verification code has not been submitted + /// to complete the process. + /// - "VERIFIED" : It has been proven that notifications can be received on + /// this notification channel and that someone on the project has access to + /// messages that are delivered to that channel. + core.String verificationStatus; + + NotificationChannel(); + + NotificationChannel.fromJson(core.Map _json) { + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("displayName")) { + displayName = _json["displayName"]; + } + if (_json.containsKey("enabled")) { + enabled = _json["enabled"]; + } + if (_json.containsKey("labels")) { + labels = (_json["labels"] as core.Map).cast<core.String, core.String>(); + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + if (_json.containsKey("userLabels")) { + userLabels = + (_json["userLabels"] as core.Map).cast<core.String, core.String>(); + } + if (_json.containsKey("verificationStatus")) { + verificationStatus = _json["verificationStatus"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (description != null) { + _json["description"] = description; + } + if (displayName != null) { + _json["displayName"] = displayName; + } + if (enabled != null) { + _json["enabled"] = enabled; + } + if (labels != null) { + _json["labels"] = labels; + } + if (name != null) { + _json["name"] = name; + } + if (type != null) { + _json["type"] = type; + } + if (userLabels != null) { + _json["userLabels"] = userLabels; + } + if (verificationStatus != null) { + _json["verificationStatus"] = verificationStatus; + } + return _json; + } +} + +/// A description of a notification channel. The descriptor includes the +/// properties of the channel and the set of labels or fields that must be +/// specified to configure channels of a given type. +class NotificationChannelDescriptor { + /// A human-readable description of the notification channel type. The + /// description may include a description of the properties of the channel and + /// pointers to external documentation. + core.String description; + + /// A human-readable name for the notification channel type. This form of the + /// name is suitable for a user interface. + core.String displayName; + + /// The set of labels that must be defined to identify a particular channel of + /// the corresponding type. Each label includes a description for how that + /// field should be populated. + core.List<LabelDescriptor> labels; + + /// The full REST resource name for this descriptor. The syntax is: + /// projects/[PROJECT_ID]/notificationChannelDescriptors/[TYPE] + /// In the above, [TYPE] is the value of the type field. + core.String name; + + /// The tiers that support this notification channel; the project service tier + /// must be one of the supported_tiers. + core.List<core.String> supportedTiers; + + /// The type of notification channel, such as "email", "sms", etc. + /// Notification channel types are globally unique. + core.String type; + + NotificationChannelDescriptor(); + + NotificationChannelDescriptor.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"] as core.List) + .map<LabelDescriptor>((value) => new LabelDescriptor.fromJson(value)) + .toList(); + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("supportedTiers")) { + supportedTiers = + (_json["supportedTiers"] as core.List).cast<core.String>(); + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + 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 (supportedTiers != null) { + _json["supportedTiers"] = supportedTiers; + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + /// A protocol buffer option, which can be attached to a message, field, /// enumeration, etc. class Option { @@ -3363,6 +5540,19 @@ } } +/// The SendNotificationChannelVerificationCode request. +class SendNotificationChannelVerificationCodeRequest { + SendNotificationChannelVerificationCodeRequest(); + + SendNotificationChannelVerificationCodeRequest.fromJson(core.Map _json) {} + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + return _json; + } +} + /// SourceContext represents information about the source of a protobuf element, /// like the file in which it is defined. class SourceContext { @@ -3645,6 +5835,41 @@ } } +/// Specifies how many time series must fail a predicate to trigger a condition. +/// If not specified, then a {count: 1} trigger is used. +class Trigger { + /// The absolute number of time series that must fail the predicate for the + /// condition to be triggered. + core.int count; + + /// The percentage of time series that must fail the predicate for the + /// condition to be triggered. + core.double percent; + + Trigger(); + + Trigger.fromJson(core.Map _json) { + if (_json.containsKey("count")) { + count = _json["count"]; + } + if (_json.containsKey("percent")) { + percent = _json["percent"].toDouble(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (count != null) { + _json["count"] = count; + } + if (percent != null) { + _json["percent"] = percent; + } + return _json; + } +} + /// A protocol buffer message type. class Type { /// The list of fields. @@ -3821,7 +6046,7 @@ /// How often, in seconds, the uptime check is performed. Currently, the only /// supported values are 60s (1 minute), 300s (5 minutes), 600s (10 minutes), - /// and 900s (15 minutes). Required. + /// and 900s (15 minutes). Optional, defaults to 300s. core.String period; /// The group resource associated with the configuration. @@ -3990,3 +6215,32 @@ return _json; } } + +/// The VerifyNotificationChannel request. +class VerifyNotificationChannelRequest { + /// The verification code that was delivered to the channel as a result of + /// invoking the SendNotificationChannelVerificationCode API method or that + /// was retrieved from a verified channel via + /// GetNotificationChannelVerificationCode. For example, one might have + /// "G-123456" or "TKNZGhhd2EyN3I1MnRnMjRv" (in general, one is only + /// guaranteed that the code is valid UTF-8; one should not make any + /// assumptions regarding the structure or format of the code). + core.String code; + + VerifyNotificationChannelRequest(); + + VerifyNotificationChannelRequest.fromJson(core.Map _json) { + if (_json.containsKey("code")) { + code = _json["code"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (code != null) { + _json["code"] = code; + } + return _json; + } +}
diff --git a/generated/googleapis/lib/oslogin/v1.dart b/generated/googleapis/lib/oslogin/v1.dart index 9c8eb14..d0131d7 100644 --- a/generated/googleapis/lib/oslogin/v1.dart +++ b/generated/googleapis/lib/oslogin/v1.dart
@@ -471,6 +471,15 @@ /// The path to the home directory for this account. core.String homeDirectory; + /// The operating system type where this account applies. + /// Possible string values are: + /// - "OPERATING_SYSTEM_TYPE_UNSPECIFIED" : The operating system type + /// associated with the user account information is + /// unspecified. + /// - "LINUX" : Linux user account information. + /// - "WINDOWS" : Windows user account information. + core.String operatingSystemType; + /// Only one POSIX account can be marked as primary. core.bool primary; @@ -502,6 +511,9 @@ if (_json.containsKey("homeDirectory")) { homeDirectory = _json["homeDirectory"]; } + if (_json.containsKey("operatingSystemType")) { + operatingSystemType = _json["operatingSystemType"]; + } if (_json.containsKey("primary")) { primary = _json["primary"]; } @@ -534,6 +546,9 @@ if (homeDirectory != null) { _json["homeDirectory"] = homeDirectory; } + if (operatingSystemType != null) { + _json["operatingSystemType"] = operatingSystemType; + } if (primary != null) { _json["primary"] = primary; }
diff --git a/generated/googleapis/lib/partners/v2.dart b/generated/googleapis/lib/partners/v2.dart index ee311a6..944c4f9 100644 --- a/generated/googleapis/lib/partners/v2.dart +++ b/generated/googleapis/lib/partners/v2.dart
@@ -49,11 +49,6 @@ /// /// Request parameters: /// - /// [requestMetadata_partnersSessionId] - Google Partners session ID. - /// - /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate - /// instead of the user's ID. - /// /// [pageToken] - A token identifying a page of results that the server /// returns. /// Typically, this is the value of `ListAnalyticsResponse.next_page_token` @@ -90,6 +85,11 @@ /// An identifier has multiple letters created by a team which redirected the /// traffic to us. /// + /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate + /// instead of the user's ID. + /// + /// [requestMetadata_partnersSessionId] - Google Partners session ID. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -101,15 +101,15 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListAnalyticsResponse> list( - {core.String requestMetadata_partnersSessionId, - core.String requestMetadata_userOverrides_userId, - core.String pageToken, + {core.String pageToken, core.int pageSize, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, + core.String requestMetadata_userOverrides_userId, + core.String requestMetadata_partnersSessionId, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -118,16 +118,6 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (requestMetadata_partnersSessionId != null) { - _queryParams["requestMetadata.partnersSessionId"] = [ - requestMetadata_partnersSessionId - ]; - } - if (requestMetadata_userOverrides_userId != null) { - _queryParams["requestMetadata.userOverrides.userId"] = [ - requestMetadata_userOverrides_userId - ]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -156,6 +146,16 @@ requestMetadata_trafficSource_trafficSubId ]; } + if (requestMetadata_userOverrides_userId != null) { + _queryParams["requestMetadata.userOverrides.userId"] = [ + requestMetadata_userOverrides_userId + ]; + } + if (requestMetadata_partnersSessionId != null) { + _queryParams["requestMetadata.partnersSessionId"] = [ + requestMetadata_partnersSessionId + ]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -245,17 +245,12 @@ /// [requestMetadata_userOverrides_ipAddress] - IP address to use instead of /// the user's geo-located IP address. /// - /// [currencyCode] - If the company's budget is in a different currency code - /// than this one, then - /// the converted budget is converted to this currency code. - /// /// [requestMetadata_experimentIds] - Experiment IDs the current request /// belongs to. /// - /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to - /// indicate where the traffic comes from. - /// An identifier has multiple letters created by a team which redirected the - /// traffic to us. + /// [currencyCode] - If the company's budget is in a different currency code + /// than this one, then + /// the converted budget is converted to this currency code. /// /// [orderBy] - How to order addresses within the returned company. Currently, /// only @@ -263,11 +258,16 @@ /// farthest in distance from given address and farthest to closest distance /// from given address respectively. /// - /// [requestMetadata_partnersSessionId] - Google Partners session ID. + /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to + /// indicate where the traffic comes from. + /// An identifier has multiple letters created by a team which redirected the + /// traffic to us. /// /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate /// instead of the user's ID. /// + /// [requestMetadata_partnersSessionId] - Google Partners session ID. + /// /// [view] - The view of `Company` resource to be returned. This must not be /// `COMPANY_VIEW_UNSPECIFIED`. /// Possible string values are: @@ -294,12 +294,12 @@ async.Future<GetCompanyResponse> get(core.String companyId, {core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_userOverrides_ipAddress, - core.String currencyCode, core.List<core.String> requestMetadata_experimentIds, - core.String requestMetadata_trafficSource_trafficSubId, + core.String currencyCode, core.String orderBy, - core.String requestMetadata_partnersSessionId, + core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_userOverrides_userId, + core.String requestMetadata_partnersSessionId, core.String view, core.String requestMetadata_locale, core.String address, @@ -324,31 +324,31 @@ requestMetadata_userOverrides_ipAddress ]; } - if (currencyCode != null) { - _queryParams["currencyCode"] = [currencyCode]; - } if (requestMetadata_experimentIds != null) { _queryParams["requestMetadata.experimentIds"] = requestMetadata_experimentIds; } + if (currencyCode != null) { + _queryParams["currencyCode"] = [currencyCode]; + } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (requestMetadata_trafficSource_trafficSubId != null) { _queryParams["requestMetadata.trafficSource.trafficSubId"] = [ requestMetadata_trafficSource_trafficSubId ]; } - if (orderBy != null) { - _queryParams["orderBy"] = [orderBy]; + if (requestMetadata_userOverrides_userId != null) { + _queryParams["requestMetadata.userOverrides.userId"] = [ + requestMetadata_userOverrides_userId + ]; } if (requestMetadata_partnersSessionId != null) { _queryParams["requestMetadata.partnersSessionId"] = [ requestMetadata_partnersSessionId ]; } - if (requestMetadata_userOverrides_userId != null) { - _queryParams["requestMetadata.userOverrides.userId"] = [ - requestMetadata_userOverrides_userId - ]; - } if (view != null) { _queryParams["view"] = [view]; } @@ -379,14 +379,14 @@ /// /// [requestMetadata_partnersSessionId] - Google Partners session ID. /// - /// [companyName] - Company name to search for. - /// /// [pageToken] - A token identifying a page of results that the server /// returns. /// Typically, this is the value of `ListCompaniesResponse.next_page_token` /// returned from the previous call to /// ListCompanies. /// + /// [companyName] - Company name to search for. + /// /// [industries] - List of industries the company can help with. /// /// [websiteUrl] - Website URL that will help to find a better matched @@ -439,11 +439,11 @@ /// - "COMPANY_VIEW_UNSPECIFIED" : A COMPANY_VIEW_UNSPECIFIED. /// - "CV_GOOGLE_PARTNER_SEARCH" : A CV_GOOGLE_PARTNER_SEARCH. /// - /// [requestMetadata_locale] - Locale to use for the current request. - /// /// [address] - The address to use when searching for companies. /// If not given, the geo-located address of the request is used. /// + /// [requestMetadata_locale] - Locale to use for the current request. + /// /// [minMonthlyBudget_units] - The whole units of the amount. /// For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. /// @@ -491,8 +491,8 @@ /// this method will complete with the same error. async.Future<ListCompaniesResponse> list( {core.String requestMetadata_partnersSessionId, - core.String companyName, core.String pageToken, + core.String companyName, core.List<core.String> industries, core.String websiteUrl, core.List<core.String> gpsMotivations, @@ -506,8 +506,8 @@ core.String requestMetadata_userOverrides_userId, core.String minMonthlyBudget_currencyCode, core.String view, - core.String requestMetadata_locale, core.String address, + core.String requestMetadata_locale, core.String minMonthlyBudget_units, core.int maxMonthlyBudget_nanos, core.List<core.String> services, @@ -528,12 +528,12 @@ requestMetadata_partnersSessionId ]; } - if (companyName != null) { - _queryParams["companyName"] = [companyName]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (companyName != null) { + _queryParams["companyName"] = [companyName]; + } if (industries != null) { _queryParams["industries"] = industries; } @@ -582,12 +582,12 @@ if (view != null) { _queryParams["view"] = [view]; } - if (requestMetadata_locale != null) { - _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; - } if (address != null) { _queryParams["address"] = [address]; } + if (requestMetadata_locale != null) { + _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; + } if (minMonthlyBudget_units != null) { _queryParams["minMonthlyBudget.units"] = [minMonthlyBudget_units]; } @@ -696,11 +696,11 @@ /// /// Request parameters: /// - /// [requestMetadata_partnersSessionId] - Google Partners session ID. - /// /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate /// instead of the user's ID. /// + /// [requestMetadata_partnersSessionId] - Google Partners session ID. + /// /// [pageToken] - A token identifying a page of results that the server /// returns. /// Typically, this is the value of `ListLeadsResponse.next_page_token` @@ -743,8 +743,8 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListLeadsResponse> list( - {core.String requestMetadata_partnersSessionId, - core.String requestMetadata_userOverrides_userId, + {core.String requestMetadata_userOverrides_userId, + core.String requestMetadata_partnersSessionId, core.String pageToken, core.int pageSize, core.String requestMetadata_trafficSource_trafficSourceId, @@ -761,16 +761,16 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (requestMetadata_partnersSessionId != null) { - _queryParams["requestMetadata.partnersSessionId"] = [ - requestMetadata_partnersSessionId - ]; - } if (requestMetadata_userOverrides_userId != null) { _queryParams["requestMetadata.userOverrides.userId"] = [ requestMetadata_userOverrides_userId ]; } + if (requestMetadata_partnersSessionId != null) { + _queryParams["requestMetadata.partnersSessionId"] = [ + requestMetadata_partnersSessionId + ]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -830,11 +830,11 @@ /// /// Request parameters: /// + /// [requestMetadata_partnersSessionId] - Google Partners session ID. + /// /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate /// instead of the user's ID. /// - /// [requestMetadata_partnersSessionId] - Google Partners session ID. - /// /// [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate /// where the traffic comes from. /// An identifier has multiple letters created by a team which redirected the @@ -864,8 +864,8 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListOffersResponse> list( - {core.String requestMetadata_userOverrides_userId, - core.String requestMetadata_partnersSessionId, + {core.String requestMetadata_partnersSessionId, + core.String requestMetadata_userOverrides_userId, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, @@ -879,16 +879,16 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (requestMetadata_userOverrides_userId != null) { - _queryParams["requestMetadata.userOverrides.userId"] = [ - requestMetadata_userOverrides_userId - ]; - } if (requestMetadata_partnersSessionId != null) { _queryParams["requestMetadata.partnersSessionId"] = [ requestMetadata_partnersSessionId ]; } + if (requestMetadata_userOverrides_userId != null) { + _queryParams["requestMetadata.userOverrides.userId"] = [ + requestMetadata_userOverrides_userId + ]; + } if (requestMetadata_trafficSource_trafficSourceId != null) { _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [ requestMetadata_trafficSource_trafficSourceId @@ -1123,6 +1123,16 @@ /// /// Request parameters: /// + /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate + /// instead of the user's ID. + /// + /// [requestMetadata_partnersSessionId] - Google Partners session ID. + /// + /// [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate + /// where the traffic comes from. + /// An identifier has multiple letters created by a team which redirected the + /// traffic to us. + /// /// [requestMetadata_locale] - Locale to use for the current request. /// /// [requestMetadata_userOverrides_ipAddress] - IP address to use instead of @@ -1136,16 +1146,6 @@ /// An identifier has multiple letters created by a team which redirected the /// traffic to us. /// - /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate - /// instead of the user's ID. - /// - /// [requestMetadata_partnersSessionId] - Google Partners session ID. - /// - /// [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate - /// where the traffic comes from. - /// An identifier has multiple letters created by a team which redirected the - /// traffic to us. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -1157,13 +1157,13 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListUserStatesResponse> list( - {core.String requestMetadata_locale, + {core.String requestMetadata_userOverrides_userId, + core.String requestMetadata_partnersSessionId, + core.String requestMetadata_trafficSource_trafficSourceId, + core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, - core.String requestMetadata_userOverrides_userId, - core.String requestMetadata_partnersSessionId, - core.String requestMetadata_trafficSource_trafficSourceId, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -1172,6 +1172,21 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (requestMetadata_userOverrides_userId != null) { + _queryParams["requestMetadata.userOverrides.userId"] = [ + requestMetadata_userOverrides_userId + ]; + } + if (requestMetadata_partnersSessionId != null) { + _queryParams["requestMetadata.partnersSessionId"] = [ + requestMetadata_partnersSessionId + ]; + } + if (requestMetadata_trafficSource_trafficSourceId != null) { + _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [ + requestMetadata_trafficSource_trafficSourceId + ]; + } if (requestMetadata_locale != null) { _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; } @@ -1189,21 +1204,6 @@ requestMetadata_trafficSource_trafficSubId ]; } - if (requestMetadata_userOverrides_userId != null) { - _queryParams["requestMetadata.userOverrides.userId"] = [ - requestMetadata_userOverrides_userId - ]; - } - if (requestMetadata_partnersSessionId != null) { - _queryParams["requestMetadata.partnersSessionId"] = [ - requestMetadata_partnersSessionId - ]; - } - if (requestMetadata_trafficSource_trafficSourceId != null) { - _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [ - requestMetadata_trafficSource_trafficSourceId - ]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1234,14 +1234,6 @@ /// [userId] - The ID of the user. Can be set to <code>me</code> to mean /// the currently authenticated user. /// - /// [requestMetadata_experimentIds] - Experiment IDs the current request - /// belongs to. - /// - /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to - /// indicate where the traffic comes from. - /// An identifier has multiple letters created by a team which redirected the - /// traffic to us. - /// /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate /// instead of the user's ID. /// @@ -1257,6 +1249,14 @@ /// [requestMetadata_userOverrides_ipAddress] - IP address to use instead of /// the user's geo-located IP address. /// + /// [requestMetadata_experimentIds] - Experiment IDs the current request + /// belongs to. + /// + /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to + /// indicate where the traffic comes from. + /// An identifier has multiple letters created by a team which redirected the + /// traffic to us. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -1269,13 +1269,13 @@ /// this method will complete with the same error. async.Future<CompanyRelation> createCompanyRelation( CompanyRelation request, core.String userId, - {core.List<core.String> requestMetadata_experimentIds, - core.String requestMetadata_trafficSource_trafficSubId, - core.String requestMetadata_userOverrides_userId, + {core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, + core.List<core.String> requestMetadata_experimentIds, + core.String requestMetadata_trafficSource_trafficSubId, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -1290,15 +1290,6 @@ if (userId == null) { throw new core.ArgumentError("Parameter userId is required."); } - if (requestMetadata_experimentIds != null) { - _queryParams["requestMetadata.experimentIds"] = - requestMetadata_experimentIds; - } - if (requestMetadata_trafficSource_trafficSubId != null) { - _queryParams["requestMetadata.trafficSource.trafficSubId"] = [ - requestMetadata_trafficSource_trafficSubId - ]; - } if (requestMetadata_userOverrides_userId != null) { _queryParams["requestMetadata.userOverrides.userId"] = [ requestMetadata_userOverrides_userId @@ -1322,6 +1313,15 @@ requestMetadata_userOverrides_ipAddress ]; } + if (requestMetadata_experimentIds != null) { + _queryParams["requestMetadata.experimentIds"] = + requestMetadata_experimentIds; + } + if (requestMetadata_trafficSource_trafficSubId != null) { + _queryParams["requestMetadata.trafficSource.trafficSubId"] = [ + requestMetadata_trafficSource_trafficSubId + ]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1359,11 +1359,11 @@ /// An identifier has multiple letters created by a team which redirected the /// traffic to us. /// + /// [requestMetadata_partnersSessionId] - Google Partners session ID. + /// /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate /// instead of the user's ID. /// - /// [requestMetadata_partnersSessionId] - Google Partners session ID. - /// /// [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate /// where the traffic comes from. /// An identifier has multiple letters created by a team which redirected the @@ -1384,8 +1384,8 @@ core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, - core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, + core.String requestMetadata_userOverrides_userId, core.String requestMetadata_trafficSource_trafficSourceId, core.String $fields}) { var _url = null; @@ -1415,16 +1415,16 @@ requestMetadata_trafficSource_trafficSubId ]; } - if (requestMetadata_userOverrides_userId != null) { - _queryParams["requestMetadata.userOverrides.userId"] = [ - requestMetadata_userOverrides_userId - ]; - } if (requestMetadata_partnersSessionId != null) { _queryParams["requestMetadata.partnersSessionId"] = [ requestMetadata_partnersSessionId ]; } + if (requestMetadata_userOverrides_userId != null) { + _queryParams["requestMetadata.userOverrides.userId"] = [ + requestMetadata_userOverrides_userId + ]; + } if (requestMetadata_trafficSource_trafficSourceId != null) { _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [ requestMetadata_trafficSource_trafficSourceId @@ -1455,6 +1455,14 @@ /// the currently /// authenticated user. /// + /// [requestMetadata_locale] - Locale to use for the current request. + /// + /// [requestMetadata_userOverrides_ipAddress] - IP address to use instead of + /// the user's geo-located IP address. + /// + /// [requestMetadata_experimentIds] - Experiment IDs the current request + /// belongs to. + /// /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to /// indicate where the traffic comes from. /// An identifier has multiple letters created by a team which redirected the @@ -1476,14 +1484,6 @@ /// An identifier has multiple letters created by a team which redirected the /// traffic to us. /// - /// [requestMetadata_locale] - Locale to use for the current request. - /// - /// [requestMetadata_userOverrides_ipAddress] - IP address to use instead of - /// the user's geo-located IP address. - /// - /// [requestMetadata_experimentIds] - Experiment IDs the current request - /// belongs to. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -1495,14 +1495,14 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<User> get(core.String userId, - {core.String requestMetadata_trafficSource_trafficSubId, + {core.String requestMetadata_locale, + core.String requestMetadata_userOverrides_ipAddress, + core.List<core.String> requestMetadata_experimentIds, + core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, core.String userView, core.String requestMetadata_trafficSource_trafficSourceId, - core.String requestMetadata_locale, - core.String requestMetadata_userOverrides_ipAddress, - core.List<core.String> requestMetadata_experimentIds, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -1514,6 +1514,18 @@ if (userId == null) { throw new core.ArgumentError("Parameter userId is required."); } + if (requestMetadata_locale != null) { + _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; + } + if (requestMetadata_userOverrides_ipAddress != null) { + _queryParams["requestMetadata.userOverrides.ipAddress"] = [ + requestMetadata_userOverrides_ipAddress + ]; + } + if (requestMetadata_experimentIds != null) { + _queryParams["requestMetadata.experimentIds"] = + requestMetadata_experimentIds; + } if (requestMetadata_trafficSource_trafficSubId != null) { _queryParams["requestMetadata.trafficSource.trafficSubId"] = [ requestMetadata_trafficSource_trafficSubId @@ -1537,18 +1549,6 @@ requestMetadata_trafficSource_trafficSourceId ]; } - if (requestMetadata_locale != null) { - _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; - } - if (requestMetadata_userOverrides_ipAddress != null) { - _queryParams["requestMetadata.userOverrides.ipAddress"] = [ - requestMetadata_userOverrides_ipAddress - ]; - } - if (requestMetadata_experimentIds != null) { - _queryParams["requestMetadata.experimentIds"] = - requestMetadata_experimentIds; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1681,19 +1681,11 @@ /// /// Request parameters: /// - /// [requestMetadata_experimentIds] - Experiment IDs the current request - /// belongs to. - /// - /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to - /// indicate where the traffic comes from. - /// An identifier has multiple letters created by a team which redirected the - /// traffic to us. + /// [requestMetadata_partnersSessionId] - Google Partners session ID. /// /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate /// instead of the user's ID. /// - /// [requestMetadata_partnersSessionId] - Google Partners session ID. - /// /// [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate /// where the traffic comes from. /// An identifier has multiple letters created by a team which redirected the @@ -1704,6 +1696,14 @@ /// [requestMetadata_userOverrides_ipAddress] - IP address to use instead of /// the user's geo-located IP address. /// + /// [requestMetadata_experimentIds] - Experiment IDs the current request + /// belongs to. + /// + /// [requestMetadata_trafficSource_trafficSubId] - Second level identifier to + /// indicate where the traffic comes from. + /// An identifier has multiple letters created by a team which redirected the + /// traffic to us. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -1715,13 +1715,13 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<GetPartnersStatusResponse> getPartnersstatus( - {core.List<core.String> requestMetadata_experimentIds, - core.String requestMetadata_trafficSource_trafficSubId, + {core.String requestMetadata_partnersSessionId, core.String requestMetadata_userOverrides_userId, - core.String requestMetadata_partnersSessionId, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, + core.List<core.String> requestMetadata_experimentIds, + core.String requestMetadata_trafficSource_trafficSubId, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -1730,13 +1730,9 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (requestMetadata_experimentIds != null) { - _queryParams["requestMetadata.experimentIds"] = - requestMetadata_experimentIds; - } - if (requestMetadata_trafficSource_trafficSubId != null) { - _queryParams["requestMetadata.trafficSource.trafficSubId"] = [ - requestMetadata_trafficSource_trafficSubId + if (requestMetadata_partnersSessionId != null) { + _queryParams["requestMetadata.partnersSessionId"] = [ + requestMetadata_partnersSessionId ]; } if (requestMetadata_userOverrides_userId != null) { @@ -1744,11 +1740,6 @@ requestMetadata_userOverrides_userId ]; } - if (requestMetadata_partnersSessionId != null) { - _queryParams["requestMetadata.partnersSessionId"] = [ - requestMetadata_partnersSessionId - ]; - } if (requestMetadata_trafficSource_trafficSourceId != null) { _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [ requestMetadata_trafficSource_trafficSourceId @@ -1762,6 +1753,15 @@ requestMetadata_userOverrides_ipAddress ]; } + if (requestMetadata_experimentIds != null) { + _queryParams["requestMetadata.experimentIds"] = + requestMetadata_experimentIds; + } + if (requestMetadata_trafficSource_trafficSubId != null) { + _queryParams["requestMetadata.trafficSource.trafficSubId"] = [ + requestMetadata_trafficSource_trafficSubId + ]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1785,11 +1785,6 @@ /// /// Request parameters: /// - /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate - /// instead of the user's ID. - /// - /// [requestMetadata_partnersSessionId] - Google Partners session ID. - /// /// [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate /// where the traffic comes from. /// An identifier has multiple letters created by a team which redirected the @@ -1811,6 +1806,11 @@ /// An identifier has multiple letters created by a team which redirected the /// traffic to us. /// + /// [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate + /// instead of the user's ID. + /// + /// [requestMetadata_partnersSessionId] - Google Partners session ID. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -1822,14 +1822,14 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<Company> updateCompanies(Company request, - {core.String requestMetadata_userOverrides_userId, - core.String requestMetadata_partnersSessionId, - core.String requestMetadata_trafficSource_trafficSourceId, + {core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.String updateMask, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, + core.String requestMetadata_userOverrides_userId, + core.String requestMetadata_partnersSessionId, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -1841,16 +1841,6 @@ if (request != null) { _body = convert.json.encode((request).toJson()); } - if (requestMetadata_userOverrides_userId != null) { - _queryParams["requestMetadata.userOverrides.userId"] = [ - requestMetadata_userOverrides_userId - ]; - } - if (requestMetadata_partnersSessionId != null) { - _queryParams["requestMetadata.partnersSessionId"] = [ - requestMetadata_partnersSessionId - ]; - } if (requestMetadata_trafficSource_trafficSourceId != null) { _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [ requestMetadata_trafficSource_trafficSourceId @@ -1876,6 +1866,16 @@ requestMetadata_trafficSource_trafficSubId ]; } + if (requestMetadata_userOverrides_userId != null) { + _queryParams["requestMetadata.userOverrides.userId"] = [ + requestMetadata_userOverrides_userId + ]; + } + if (requestMetadata_partnersSessionId != null) { + _queryParams["requestMetadata.partnersSessionId"] = [ + requestMetadata_partnersSessionId + ]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -2515,6 +2515,9 @@ /// auto-approved for associating with this company. core.List<core.String> autoApprovalEmailDomains; + /// Whether the company's badge authority is in AWN + core.bool badgeAuthorityInAwn; + /// Partner badge tier /// Possible string values are: /// - "BADGE_TIER_NONE" : Tier badge is not set. @@ -2603,6 +2606,9 @@ autoApprovalEmailDomains = (_json["autoApprovalEmailDomains"] as core.List).cast<core.String>(); } + if (_json.containsKey("badgeAuthorityInAwn")) { + badgeAuthorityInAwn = _json["badgeAuthorityInAwn"]; + } if (_json.containsKey("badgeTier")) { badgeTier = _json["badgeTier"]; } @@ -2686,6 +2692,9 @@ if (autoApprovalEmailDomains != null) { _json["autoApprovalEmailDomains"] = autoApprovalEmailDomains; } + if (badgeAuthorityInAwn != null) { + _json["badgeAuthorityInAwn"] = badgeAuthorityInAwn; + } if (badgeTier != null) { _json["badgeTier"] = badgeTier; } @@ -3117,7 +3126,8 @@ /// if specifying a year/month where the day is not significant. core.int day; - /// Month of year. Must be from 1 to 12. + /// Month of year. Must be from 1 to 12, or 0 if specifying a date without a + /// month. core.int month; /// Year of date. Must be from 1 to 9999, or 0 if specifying a date without @@ -5260,6 +5270,10 @@ /// A resource representing a user of the Partners platform. class User { + /// Whether or not the user has opted to share their Academy for Ads info with + /// Google Partners. + core.bool afaInfoShared; + /// This is the list of AdWords Manager Accounts the user has edit access to. /// If the user has edit access to multiple accounts, the user can choose the /// preferred account and we use this when a personal account is needed. Can @@ -5310,6 +5324,9 @@ User(); User.fromJson(core.Map _json) { + if (_json.containsKey("afaInfoShared")) { + afaInfoShared = _json["afaInfoShared"]; + } if (_json.containsKey("availableAdwordsManagerAccounts")) { availableAdwordsManagerAccounts = (_json["availableAdwordsManagerAccounts"] as core.List) @@ -5356,6 +5373,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (afaInfoShared != null) { + _json["afaInfoShared"] = afaInfoShared; + } if (availableAdwordsManagerAccounts != null) { _json["availableAdwordsManagerAccounts"] = availableAdwordsManagerAccounts .map((value) => (value).toJson())
diff --git a/generated/googleapis/lib/people/v1.dart b/generated/googleapis/lib/people/v1.dart index b7dc8c5..1849f14 100644 --- a/generated/googleapis/lib/people/v1.dart +++ b/generated/googleapis/lib/people/v1.dart
@@ -78,11 +78,11 @@ /// /// Request parameters: /// - /// [resourceNames] - The resource names of the contact groups to get. - /// /// [maxMembers] - Specifies the maximum number of members to return for each /// group. /// + /// [resourceNames] - The resource names of the contact groups to get. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -94,8 +94,8 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<BatchGetContactGroupsResponse> batchGet( - {core.List<core.String> resourceNames, - core.int maxMembers, + {core.int maxMembers, + core.List<core.String> resourceNames, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -104,12 +104,12 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (resourceNames != null) { - _queryParams["resourceNames"] = resourceNames; - } if (maxMembers != null) { _queryParams["maxMembers"] = ["${maxMembers}"]; } + if (resourceNames != null) { + _queryParams["resourceNames"] = resourceNames; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -275,16 +275,16 @@ /// /// Request parameters: /// - /// [pageToken] - The next_page_token value returned from a previous call to - /// [ListContactGroups](/people/api/rest/v1/contactgroups/list). - /// Requests the next page of resources. - /// /// [pageSize] - The maximum number of resources to return. /// /// [syncToken] - A sync token, returned by a previous call to /// `contactgroups.list`. /// Only resources changed since the sync token was created will be returned. /// + /// [pageToken] - The next_page_token value returned from a previous call to + /// [ListContactGroups](/people/api/rest/v1/contactgroups/list). + /// Requests the next page of resources. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -296,9 +296,9 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListContactGroupsResponse> list( - {core.String pageToken, - core.int pageSize, + {core.int pageSize, core.String syncToken, + core.String pageToken, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -307,15 +307,15 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } if (syncToken != null) { _queryParams["syncToken"] = [syncToken]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -568,7 +568,8 @@ /// /// [personFields] - **Required.** A field mask to restrict which fields on /// the person are - /// returned. Valid values are: + /// returned. Multiple fields can be specified by separating them with commas. + /// Valid values are: /// /// * addresses /// * ageRanges @@ -594,9 +595,11 @@ /// * relationshipInterests /// * relationshipStatuses /// * residences + /// * sipAddresses /// * skills /// * taglines /// * urls + /// * userDefined /// /// [requestMask_includeField] - **Required.** Comma-separated list of person /// fields to be included in the @@ -658,7 +661,8 @@ /// /// [personFields] - **Required.** A field mask to restrict which fields on /// each person are - /// returned. Valid values are: + /// returned. Multiple fields can be specified by separating them with commas. + /// Valid values are: /// /// * addresses /// * ageRanges @@ -684,9 +688,11 @@ /// * relationshipInterests /// * relationshipStatuses /// * residences + /// * sipAddresses /// * skills /// * taglines /// * urls + /// * userDefined /// /// [requestMask_includeField] - **Required.** Comma-separated list of person /// fields to be included in the @@ -776,12 +782,12 @@ /// /// [updatePersonFields] - **Required.** A field mask to restrict which fields /// on the person are - /// updated. Valid values are: + /// updated. Multiple fields can be specified by separating them with commas. + /// All updated fields will be replaced. Valid values are: /// /// * addresses /// * biographies /// * birthdays - /// * braggingRights /// * emailAddresses /// * events /// * genders @@ -795,8 +801,9 @@ /// * phoneNumbers /// * relations /// * residences - /// * skills + /// * sipAddresses /// * urls + /// * userDefined /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -861,14 +868,6 @@ /// `people/me` is valid. /// Value must have pattern "^people/[^/]+$". /// - /// [sortOrder] - The order in which the connections should be sorted. - /// Defaults to - /// `LAST_MODIFIED_ASCENDING`. - /// Possible string values are: - /// - "LAST_MODIFIED_ASCENDING" : A LAST_MODIFIED_ASCENDING. - /// - "FIRST_NAME_ASCENDING" : A FIRST_NAME_ASCENDING. - /// - "LAST_NAME_ASCENDING" : A LAST_NAME_ASCENDING. - /// /// [requestSyncToken] - Whether the response should include a sync token, /// which can be used to get /// all changes since the last request. For subsequent sync requests use the @@ -893,7 +892,8 @@ /// /// [personFields] - **Required.** A field mask to restrict which fields on /// each person are - /// returned. Valid values are: + /// returned. Multiple fields can be specified by separating them with commas. + /// Valid values are: /// /// * addresses /// * ageRanges @@ -919,9 +919,19 @@ /// * relationshipInterests /// * relationshipStatuses /// * residences + /// * sipAddresses /// * skills /// * taglines /// * urls + /// * userDefined + /// + /// [sortOrder] - The order in which the connections should be sorted. + /// Defaults to + /// `LAST_MODIFIED_ASCENDING`. + /// Possible string values are: + /// - "LAST_MODIFIED_ASCENDING" : A LAST_MODIFIED_ASCENDING. + /// - "FIRST_NAME_ASCENDING" : A FIRST_NAME_ASCENDING. + /// - "LAST_NAME_ASCENDING" : A LAST_NAME_ASCENDING. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -934,13 +944,13 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListConnectionsResponse> list(core.String resourceName, - {core.String sortOrder, - core.bool requestSyncToken, + {core.bool requestSyncToken, core.String pageToken, core.int pageSize, core.String requestMask_includeField, core.String syncToken, core.String personFields, + core.String sortOrder, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -952,9 +962,6 @@ if (resourceName == null) { throw new core.ArgumentError("Parameter resourceName is required."); } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } if (requestSyncToken != null) { _queryParams["requestSyncToken"] = ["${requestSyncToken}"]; } @@ -973,6 +980,9 @@ if (personFields != null) { _queryParams["personFields"] = [personFields]; } + if (sortOrder != null) { + _queryParams["sortOrder"] = [sortOrder]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1030,8 +1040,8 @@ /// The street address. core.String streetAddress; - /// The type of the address. The type can be custom or predefined. - /// Possible values include, but are not limited to, the following: + /// The type of the address. The type can be custom or one of these predefined + /// values: /// /// * `home` /// * `work` @@ -1409,8 +1419,7 @@ /// A Google contact group membership. class ContactGroupMembership { /// The contact group ID for the contact group membership. The contact group - /// ID can be custom or predefined. Possible values include, but are not - /// limited to, the following: + /// ID can be custom or one of these predefined values: /// /// * `myContacts` /// * `starred` @@ -1589,7 +1598,8 @@ /// if specifying a year/month where the day is not significant. core.int day; - /// Month of year. Must be from 1 to 12. + /// Month of year. Must be from 1 to 12, or 0 if specifying a date without a + /// month. core.int month; /// Year of date. Must be from 1 to 9999, or 0 if specifying a date without @@ -1661,8 +1671,8 @@ /// Metadata about the email address. FieldMetadata metadata; - /// The type of the email address. The type can be custom or predefined. - /// Possible values include, but are not limited to, the following: + /// The type of the email address. The type can be custom or one of these + /// predefined values: /// /// * `home` /// * `work` @@ -1747,8 +1757,8 @@ /// Metadata about the event. FieldMetadata metadata; - /// The type of the event. The type can be custom or predefined. - /// Possible values include, but are not limited to, the following: + /// The type of the event. The type can be custom or one of these predefined + /// values: /// /// * `anniversary` /// * `other` @@ -1843,9 +1853,8 @@ /// Metadata about the gender. FieldMetadata metadata; - /// The gender for the person. The gender can be custom or predefined. - /// Possible values include, but are not limited to, the - /// following: + /// The gender for the person. The gender can be custom or one of these + /// predefined values: /// /// * `male` /// * `female` @@ -1920,8 +1929,8 @@ /// Metadata about the IM client. FieldMetadata metadata; - /// The protocol of the IM client. The protocol can be custom or predefined. - /// Possible values include, but are not limited to, the following: + /// The protocol of the IM client. The protocol can be custom or one of these + /// predefined values: /// /// * `aim` /// * `msn` @@ -1934,8 +1943,8 @@ /// * `netMeeting` core.String protocol; - /// The type of the IM client. The type can be custom or predefined. - /// Possible values include, but are not limited to, the following: + /// The type of the IM client. The type can be custom or one of these + /// predefined values: /// /// * `home` /// * `work` @@ -2217,7 +2226,9 @@ } } -/// A request to modify an existing contact group's members. +/// A request to modify an existing contact group's members. Contacts can be +/// removed from any group but they can only be added to a user group or +/// myContacts or starred system groups. class ModifyContactGroupMembersRequest { /// The resource names of the contact people to add in the form of in the form /// `people/`<var>person_id</var>. @@ -2548,8 +2559,8 @@ /// The person's job title at the organization. core.String title; - /// The type of the organization. The type can be custom or predefined. - /// Possible values include, but are not limited to, the following: + /// The type of the organization. The type can be custom or one of these + /// predefined values: /// /// * `work` /// * `school` @@ -2749,6 +2760,9 @@ /// `people/`<var>person_id</var>. core.String resourceName; + /// The person's SIP addresses. + core.List<SipAddress> sipAddresses; + /// The person's skills. core.List<Skill> skills; @@ -2893,6 +2907,11 @@ if (_json.containsKey("resourceName")) { resourceName = _json["resourceName"]; } + if (_json.containsKey("sipAddresses")) { + sipAddresses = (_json["sipAddresses"] as core.List) + .map<SipAddress>((value) => new SipAddress.fromJson(value)) + .toList(); + } if (_json.containsKey("skills")) { skills = (_json["skills"] as core.List) .map<Skill>((value) => new Skill.fromJson(value)) @@ -3010,6 +3029,10 @@ if (resourceName != null) { _json["resourceName"] = resourceName; } + if (sipAddresses != null) { + _json["sipAddresses"] = + sipAddresses.map((value) => (value).toJson()).toList(); + } if (skills != null) { _json["skills"] = skills.map((value) => (value).toJson()).toList(); } @@ -3177,8 +3200,8 @@ /// Metadata about the phone number. FieldMetadata metadata; - /// The type of the phone number. The type can be custom or predefined. - /// Possible values include, but are not limited to, the following: + /// The type of the phone number. The type can be custom or one of these + /// predefined values: /// /// * `home` /// * `work` @@ -3332,9 +3355,9 @@ /// The name of the other person this relation refers to. core.String person; - /// The person's relation to the other person. The type can be custom or - /// predefined. - /// Possible values include, but are not limited to, the following values: + /// The person's relation to the other person. The type can be custom or one + /// of + /// these predefined values: /// /// * `spouse` /// * `child` @@ -3400,8 +3423,7 @@ /// The kind of relationship the person is looking for. The value can be /// custom - /// or predefined. Possible values include, but are not limited to, the - /// following values: + /// or one of these predefined values: /// /// * `friend` /// * `date` @@ -3448,8 +3470,8 @@ /// Metadata about the relationship status. FieldMetadata metadata; - /// The relationship status. The value can be custom or predefined. - /// Possible values include, but are not limited to, the following: + /// The relationship status. The value can be custom or one of these + /// predefined values: /// /// * `single` /// * `inARelationship` @@ -3534,6 +3556,66 @@ } } +/// A person's SIP address. Session Initial Protocol addresses are used for VoIP +/// communications to make voice or video calls over the internet. +class SipAddress { + /// The read-only type of the SIP address translated and formatted in the + /// viewer's account locale or the `Accept-Language` HTTP header locale. + core.String formattedType; + + /// Metadata about the SIP address. + FieldMetadata metadata; + + /// The type of the SIP address. The type can be custom or or one of these + /// predefined values: + /// + /// * `home` + /// * `work` + /// * `mobile` + /// * `other` + core.String type; + + /// The SIP address in the + /// [RFC 3261 19.1](https://tools.ietf.org/html/rfc3261#section-19.1) SIP URI + /// format. + core.String value; + + SipAddress(); + + SipAddress.fromJson(core.Map _json) { + if (_json.containsKey("formattedType")) { + formattedType = _json["formattedType"]; + } + if (_json.containsKey("metadata")) { + metadata = new FieldMetadata.fromJson(_json["metadata"]); + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + if (_json.containsKey("value")) { + value = _json["value"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (formattedType != null) { + _json["formattedType"] = formattedType; + } + if (metadata != null) { + _json["metadata"] = (metadata).toJson(); + } + if (type != null) { + _json["type"] = type; + } + if (value != null) { + _json["value"] = value; + } + return _json; + } +} + /// A skill that the person has. class Skill { /// Metadata about the skill. @@ -3782,7 +3864,8 @@ } } -/// A request to update an existing contact group. Only the name can be updated. +/// A request to update an existing user contact group. All updated fields will +/// be replaced. class UpdateContactGroupRequest { /// The contact group to update. ContactGroup contactGroup; @@ -3814,8 +3897,8 @@ /// Metadata about the URL. FieldMetadata metadata; - /// The type of the URL. The type can be custom or predefined. - /// Possible values include, but are not limited to, the following: + /// The type of the URL. The type can be custom or one of these predefined + /// values: /// /// * `home` /// * `work`
diff --git a/generated/googleapis/lib/poly/v1.dart b/generated/googleapis/lib/poly/v1.dart index b40abcc..508340e 100644 --- a/generated/googleapis/lib/poly/v1.dart +++ b/generated/googleapis/lib/poly/v1.dart
@@ -88,32 +88,6 @@ /// /// Request parameters: /// - /// [category] - Filter assets based on the specified category. Supported - /// values are: - /// `animals`, `architecture`, `art`, `food`, `nature`, `objects`, `people`, - /// `scenes`, - /// `technology`, and `transport`. - /// - /// [maxComplexity] - Returns assets that are of the specified complexity or - /// less. Defaults to - /// COMPLEX. For example, a request for - /// MEDIUM assets also includes - /// SIMPLE assets. - /// Possible string values are: - /// - "COMPLEXITY_UNSPECIFIED" : A COMPLEXITY_UNSPECIFIED. - /// - "COMPLEX" : A COMPLEX. - /// - "MEDIUM" : A MEDIUM. - /// - "SIMPLE" : A SIMPLE. - /// - /// [pageToken] - Specifies a continuation token from a previous search whose - /// results were - /// split into multiple pages. To get the next page, submit the same request - /// specifying the value from next_page_token. - /// - /// [pageSize] - The maximum number of assets to be returned. This value must - /// be between `1` - /// and `100`. Defaults to `20`. - /// /// [keywords] - One or more search terms to be matched against all text that /// Poly has /// indexed for assets, which includes display_name, @@ -130,6 +104,32 @@ /// /// [curated] - Return only assets that have been curated by the Poly team. /// + /// [category] - Filter assets based on the specified category. Supported + /// values are: + /// `animals`, `architecture`, `art`, `food`, `nature`, `objects`, `people`, + /// `scenes`, + /// `technology`, and `transport`. + /// + /// [pageToken] - Specifies a continuation token from a previous search whose + /// results were + /// split into multiple pages. To get the next page, submit the same request + /// specifying the value from next_page_token. + /// + /// [maxComplexity] - Returns assets that are of the specified complexity or + /// less. Defaults to + /// COMPLEX. For example, a request for + /// MEDIUM assets also includes + /// SIMPLE assets. + /// Possible string values are: + /// - "COMPLEXITY_UNSPECIFIED" : A COMPLEXITY_UNSPECIFIED. + /// - "COMPLEX" : A COMPLEX. + /// - "MEDIUM" : A MEDIUM. + /// - "SIMPLE" : A SIMPLE. + /// + /// [pageSize] - The maximum number of assets to be returned. This value must + /// be between `1` + /// and `100`. Defaults to `20`. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -141,14 +141,14 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListAssetsResponse> list( - {core.String category, - core.String maxComplexity, - core.String pageToken, - core.int pageSize, - core.String keywords, + {core.String keywords, core.String orderBy, core.String format, core.bool curated, + core.String category, + core.String pageToken, + core.String maxComplexity, + core.int pageSize, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -157,18 +157,6 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (category != null) { - _queryParams["category"] = [category]; - } - if (maxComplexity != null) { - _queryParams["maxComplexity"] = [maxComplexity]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (keywords != null) { _queryParams["keywords"] = [keywords]; } @@ -181,6 +169,18 @@ if (curated != null) { _queryParams["curated"] = ["${curated}"]; } + if (category != null) { + _queryParams["category"] = [category]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (maxComplexity != null) { + _queryParams["maxComplexity"] = [maxComplexity]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -227,10 +227,6 @@ /// an OAuth token with the request. /// Value must have pattern "^users/[^/]+$". /// - /// [orderBy] - Specifies an ordering for assets. Acceptable values are: - /// `BEST`, `NEWEST`, `OLDEST`. Defaults to `BEST`, which ranks assets - /// based on a combination of popularity and other features. - /// /// [format] - Return only assets with the matching format. Acceptable values /// are: /// `BLOCKS`, `FBX`, `GLTF`, `GLTF2`, `OBJ`, and `TILT`. @@ -252,6 +248,10 @@ /// - "PUBLISHED" : A PUBLISHED. /// - "PRIVATE" : A PRIVATE. /// + /// [orderBy] - Specifies an ordering for assets. Acceptable values are: + /// `BEST`, `NEWEST`, `OLDEST`. Defaults to `BEST`, which ranks assets + /// based on a combination of popularity and other features. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -263,11 +263,11 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListUserAssetsResponse> list(core.String name, - {core.String orderBy, - core.String format, + {core.String format, core.String pageToken, core.int pageSize, core.String visibility, + core.String orderBy, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -279,9 +279,6 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } - if (orderBy != null) { - _queryParams["orderBy"] = [orderBy]; - } if (format != null) { _queryParams["format"] = [format]; } @@ -294,6 +291,9 @@ if (visibility != null) { _queryParams["visibility"] = [visibility]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -328,6 +328,14 @@ /// an OAuth token with the request. /// Value must have pattern "^users/[^/]+$". /// + /// [pageSize] - The maximum number of assets to be returned. This value must + /// be between `1` + /// and `100`. Defaults to `20`. + /// + /// [format] - Return only assets with the matching format. Acceptable values + /// are: + /// `BLOCKS`, `FBX`, `GLTF`, `GLTF2`, `OBJ`, `TILT`. + /// /// [orderBy] - Specifies an ordering for assets. Acceptable values are: /// `BEST`, `NEWEST`, `OLDEST`, 'LIKED_TIME'. Defaults to `LIKED_TIME`, which /// ranks assets based on how recently they were liked. @@ -338,14 +346,6 @@ /// specifying the value from /// next_page_token. /// - /// [pageSize] - The maximum number of assets to be returned. This value must - /// be between `1` - /// and `100`. Defaults to `20`. - /// - /// [format] - Return only assets with the matching format. Acceptable values - /// are: - /// `BLOCKS`, `FBX`, `GLTF`, `GLTF2`, `OBJ`, `TILT`. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -357,10 +357,10 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListLikedAssetsResponse> list(core.String name, - {core.String orderBy, - core.String pageToken, - core.int pageSize, + {core.int pageSize, core.String format, + core.String orderBy, + core.String pageToken, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -372,18 +372,18 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } - if (orderBy != null) { - _queryParams["orderBy"] = [orderBy]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } if (format != null) { _queryParams["format"] = [format]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -572,6 +572,87 @@ } } +/// A message generated by the asset import process. +class AssetImportMessage { + /// The code associated with this message. + /// Possible string values are: + /// - "CODE_UNSPECIFIED" : Unknown error code. + /// - "NO_IMPORTABLE_FILE" : The asset import did not include any file that we + /// can import (i.e. an OBJ + /// file). + /// - "EMPTY_MODEL" : When generating the preview for the import, no geometry + /// was found. + /// - "OBJ_PARSE_ERROR" : A problem was encountered while parsing the OBJ + /// file. The converter makes + /// a 'best effort' attempt to continue when encountering such issues. In + /// some cases the resulting preview model may still be acceptable. The + /// details can be found in the parse error message. + /// - "EXPIRED" : The importer was not able to import the model before the + /// expiration time. + /// - "IMAGE_ERROR" : The importer encountered a problem reading an image + /// file. + /// - "EXTRA_FILES_WITH_ARCHIVE" : Multiple files were encountered in addition + /// to a ZIP archive. When + /// uploading an archive only one file is permitted. + /// - "DEFAULT_MATERIALS" : Default materials are used in the model. This + /// means that one or more + /// faces is using default materials either because no usemtl statement was + /// specified or because the requested material was not found due to a + /// missing material file or bad material name. This does not cover the case + /// of missing textures. + /// - "FATAL_ERROR" : The importer encountered a fatal error and was unable to + /// import the + /// model. + /// - "INVALID_ELEMENT_TYPE" : The import includes a file of an unsupported + /// element type. The file path + /// is specified. + core.String code; + + /// An optional file path. Only present for those error codes that specify it. + core.String filePath; + + /// An optional image error. Only present for INVALID_IMAGE_FILE. + ImageError imageError; + + /// An optional OBJ parse error. Only present for OBJ_PARSE_ERROR. + ObjParseError objParseError; + + AssetImportMessage(); + + AssetImportMessage.fromJson(core.Map _json) { + if (_json.containsKey("code")) { + code = _json["code"]; + } + if (_json.containsKey("filePath")) { + filePath = _json["filePath"]; + } + if (_json.containsKey("imageError")) { + imageError = new ImageError.fromJson(_json["imageError"]); + } + if (_json.containsKey("objParseError")) { + objParseError = new ObjParseError.fromJson(_json["objParseError"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (code != null) { + _json["code"] = code; + } + if (filePath != null) { + _json["filePath"] = filePath; + } + if (imageError != null) { + _json["imageError"] = (imageError).toJson(); + } + if (objParseError != null) { + _json["objParseError"] = (objParseError).toJson(); + } + return _json; + } +} + /// Represents a file in Poly, which can be a root, /// resource, or thumbnail file. class File { @@ -720,6 +801,44 @@ } } +/// A message resulting from reading an image file. +class ImageError { + /// The type of image error encountered. Optional for older image errors. + /// Possible string values are: + /// - "CODE_UNSPECIFIED" : Unknown error code. + /// - "INVALID_IMAGE" : We were unable to read the image file. + /// - "IMAGE_TOO_BIG" : The image size is too large. + /// - "WRONG_IMAGE_TYPE" : The image data does not match the expected MIME + /// type of the image. + core.String code; + + /// The file path in the import of the image that was rejected. + core.String filePath; + + ImageError(); + + ImageError.fromJson(core.Map _json) { + if (_json.containsKey("code")) { + code = _json["code"]; + } + if (_json.containsKey("filePath")) { + filePath = _json["filePath"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (code != null) { + _json["code"] = code; + } + if (filePath != null) { + _json["filePath"] = filePath; + } + return _json; + } +} + /// A response message from a request to list. class ListAssetsResponse { /// A list of assets that match the criteria specified in the request. @@ -859,6 +978,118 @@ } } +/// Details of an error resulting from parsing an OBJ file +class ObjParseError { + /// The type of problem found (required). + /// Possible string values are: + /// - "CODE_UNSPECIFIED" : Unknown error code. + /// - "INCONSISTENT_VERTEX_REFS" : Vertex references are specified in an + /// inconsistent style for a face (e.g. + /// some vertices specify texture vertices but some don't). + /// - "INVALID_COMMAND" : The command is invalid. + /// - "INVALID_NUMBER" : A invalid number was specified. + /// - "INVALID_VERTEX_REF" : An invalid vertex reference was specified. + /// - "MISSING_GEOMETRIC_VERTEX" : A vertex reference does not specify a + /// geometric vertex. + /// - "MISSING_TOKEN" : An expected token was not found. + /// - "TOO_FEW_DIMENSIONS" : The vertex specified too few dimensions for its + /// usage. + /// - "TOO_FEW_VERTICES" : The face specified too few vertices. + /// - "TOO_MANY_DIMENSIONS" : The vertex specified too many dimensions for its + /// usage. + /// - "UNSUPPORTED_COMMAND" : This command is a valid OBJ command but is not + /// supported. This error is + /// only generated for the first instance of such a command. + /// - "UNUSED_TOKENS" : This line ended with unparsed token characters. + /// - "VERTEX_NOT_FOUND" : The specified vertex was not found. + /// - "NUMBER_OUT_OF_RANGE" : The specified number was too large or small for + /// its usage. + /// - "INVALID_VALUE" : The specified parameter value was not recognized. + /// - "INVALID_TEXTURE_OPTION" : The specified texture option is not valid. + /// - "TOO_MANY_PROBLEMS" : The maximum number of problems to report was + /// reached. Parsing continues, + /// but further problems will be ignored. + /// - "MISSING_FILE_NAME" : An expected file name was not specified. + /// - "FILE_NOT_FOUND" : The specified file was not found in the import. + /// - "UNKNOWN_MATERIAL" : The specified material was not found in any + /// material definition in the + /// import. + /// - "NO_MATERIAL_DEFINED" : Material parameters were specified before the + /// first material definition. + /// - "INVALID_SMOOTHING_GROUP" : The smoothing group is not valid. + /// - "MISSING_VERTEX_COLORS" : Vertex colors were specified for only some + /// vertices of a face. + /// - "FILE_SUBSTITUTION" : A missing file was found at a different file path. + /// - "LINE_TOO_LONG" : A line in an OBJ or MTL file exceeded the maximum line + /// length. + /// - "INVALID_FILE_PATH" : The file path was invalid. Only relative paths are + /// supported. + core.String code; + + /// The ending character index at which the problem was found. + core.int endIndex; + + /// The file path in which the problem was found. + core.String filePath; + + /// The text of the line. Note that this may be truncated if the line was very + /// long. This may not include the error if it occurs after line truncation. + core.String line; + + /// Line number at which the problem was found. + core.int lineNumber; + + /// The starting character index at which the problem was found. + core.int startIndex; + + ObjParseError(); + + ObjParseError.fromJson(core.Map _json) { + if (_json.containsKey("code")) { + code = _json["code"]; + } + if (_json.containsKey("endIndex")) { + endIndex = _json["endIndex"]; + } + if (_json.containsKey("filePath")) { + filePath = _json["filePath"]; + } + if (_json.containsKey("line")) { + line = _json["line"]; + } + if (_json.containsKey("lineNumber")) { + lineNumber = _json["lineNumber"]; + } + if (_json.containsKey("startIndex")) { + startIndex = _json["startIndex"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (code != null) { + _json["code"] = code; + } + if (endIndex != null) { + _json["endIndex"] = endIndex; + } + if (filePath != null) { + _json["filePath"] = filePath; + } + if (line != null) { + _json["line"] = line; + } + if (lineNumber != null) { + _json["lineNumber"] = lineNumber; + } + if (startIndex != null) { + _json["startIndex"] = startIndex; + } + return _json; + } +} + /// Hints for displaying the asset, based on information available when the /// asset /// was uploaded. @@ -965,6 +1196,64 @@ } } +/// A response message from a request to list. +/// This is returned in the response field of the Operation. +class StartAssetImportResponse { + /// The id of newly created asset. If this is empty when the operation is + /// complete it means the import failed. Please refer to the + /// asset_import_message field to understand what went wrong. + core.String assetId; + + /// The id of the asset import. + core.String assetImportId; + + /// The message from the asset import. This will contain any warnings + /// (or - in the case of failure - errors) that occurred during import. + core.List<AssetImportMessage> assetImportMessages; + + /// The publish URL for the asset. + core.String publishUrl; + + StartAssetImportResponse(); + + StartAssetImportResponse.fromJson(core.Map _json) { + if (_json.containsKey("assetId")) { + assetId = _json["assetId"]; + } + if (_json.containsKey("assetImportId")) { + assetImportId = _json["assetImportId"]; + } + if (_json.containsKey("assetImportMessages")) { + assetImportMessages = (_json["assetImportMessages"] as core.List) + .map<AssetImportMessage>( + (value) => new AssetImportMessage.fromJson(value)) + .toList(); + } + if (_json.containsKey("publishUrl")) { + publishUrl = _json["publishUrl"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (assetId != null) { + _json["assetId"] = assetId; + } + if (assetImportId != null) { + _json["assetImportId"] = assetImportId; + } + if (assetImportMessages != null) { + _json["assetImportMessages"] = + assetImportMessages.map((value) => (value).toJson()).toList(); + } + if (publishUrl != null) { + _json["publishUrl"] = publishUrl; + } + return _json; + } +} + /// Data about the user's asset. class UserAsset { /// An Asset.
diff --git a/generated/googleapis/lib/pubsub/v1.dart b/generated/googleapis/lib/pubsub/v1.dart index b723ae4..edc84f2 100644 --- a/generated/googleapis/lib/pubsub/v1.dart +++ b/generated/googleapis/lib/pubsub/v1.dart
@@ -56,22 +56,23 @@ ProjectsSnapshotsResourceApi(commons.ApiRequester client) : _requester = client; - /// Creates a snapshot from the requested subscription. + /// Creates a snapshot from the requested subscription.<br><br> + /// <b>ALPHA:</b> This feature is part of an alpha release. This API might be + /// changed in backward-incompatible ways and is not recommended for + /// production + /// use. It is not subject to any SLA or deprecation policy. /// If the snapshot already exists, returns `ALREADY_EXISTS`. /// If the requested subscription doesn't exist, returns `NOT_FOUND`. /// If the backlog in the subscription is too old -- and the resulting /// snapshot /// would expire in less than 1 hour -- then `FAILED_PRECONDITION` is /// returned. - /// See also the `Snapshot.expire_time` field. - /// - /// If the name is not provided in the request, the server will assign a - /// random + /// See also the `Snapshot.expire_time` field. If the name is not provided in + /// the request, the server will assign a random /// name for this snapshot on the same project as the subscription, conforming - /// to the - /// [resource name - /// format](https://cloud.google.com/pubsub/docs/overview#names). The - /// generated + /// to the [resource name + /// format](https://cloud.google.com/pubsub/docs/overview#names). + /// The generated /// name is populated in the returned Snapshot object. Note that for REST API /// requests, you must specify a name in the request. /// @@ -127,7 +128,12 @@ return _response.then((data) => new Snapshot.fromJson(data)); } - /// Removes an existing snapshot. All messages retained in the snapshot + /// Removes an existing snapshot. <br><br> + /// <b>ALPHA:</b> This feature is part of an alpha release. This API might be + /// changed in backward-incompatible ways and is not recommended for + /// production + /// use. It is not subject to any SLA or deprecation policy. + /// When the snapshot is deleted, all messages retained in the snapshot /// are immediately dropped. After a snapshot is deleted, a new one may be /// created with the same name, but the new one has no association with the /// old @@ -175,7 +181,11 @@ return _response.then((data) => new Empty.fromJson(data)); } - /// Gets the configuration details of a snapshot. + /// Gets the configuration details of a snapshot.<br><br> + /// <b>ALPHA:</b> This feature is part of an alpha release. This API might be + /// changed in backward-incompatible ways and is not recommended for + /// production + /// use. It is not subject to any SLA or deprecation policy. /// /// Request parameters: /// @@ -269,7 +279,11 @@ return _response.then((data) => new Policy.fromJson(data)); } - /// Lists the existing snapshots. + /// Lists the existing snapshots.<br><br> + /// <b>ALPHA:</b> This feature is part of an alpha release. This API might be + /// changed in backward-incompatible ways and is not recommended for + /// production + /// use. It is not subject to any SLA or deprecation policy. /// /// Request parameters: /// @@ -329,8 +343,12 @@ return _response.then((data) => new ListSnapshotsResponse.fromJson(data)); } - /// Updates an existing snapshot. Note that certain properties of a - /// snapshot are not modifiable. + /// Updates an existing snapshot.<br><br> + /// <b>ALPHA:</b> This feature is part of an alpha release. This API might be + /// changed in backward-incompatible ways and is not recommended for + /// production + /// use. It is not subject to any SLA or deprecation policy. + /// Note that certain properties of a snapshot are not modifiable. /// /// [request] - The metadata request object. /// @@ -561,7 +579,8 @@ return _response.then((data) => new Empty.fromJson(data)); } - /// Creates a subscription to a given topic. + /// Creates a subscription to a given topic. See the + /// <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>. /// If the subscription already exists, returns `ALREADY_EXISTS`. /// If the corresponding topic doesn't exist, returns `NOT_FOUND`. /// @@ -779,13 +798,13 @@ /// Format is `projects/{project}`. /// Value must have pattern "^projects/[^/]+$". /// - /// [pageSize] - Maximum number of subscriptions to return. - /// /// [pageToken] - The value returned by the last `ListSubscriptionsResponse`; /// indicates that /// this is a continuation of a prior `ListSubscriptions` call, and that the /// system should return the next page of data. /// + /// [pageSize] - Maximum number of subscriptions to return. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -797,7 +816,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<ListSubscriptionsResponse> list(core.String project, - {core.int pageSize, core.String pageToken, core.String $fields}) { + {core.String pageToken, core.int pageSize, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -808,12 +827,12 @@ if (project == null) { throw new core.ArgumentError("Parameter project is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1059,7 +1078,11 @@ } /// Seeks an existing subscription to a point in time or to a given snapshot, - /// whichever is provided in the request. + /// whichever is provided in the request.<br><br> + /// <b>ALPHA:</b> This feature is part of an alpha release. This API might be + /// changed in backward-incompatible ways and is not recommended for + /// production + /// use. It is not subject to any SLA or deprecation policy. /// /// [request] - The metadata request object. /// @@ -1237,7 +1260,8 @@ ProjectsTopicsResourceApi(commons.ApiRequester client) : _requester = client; - /// Creates the given topic with the given name. + /// Creates the given topic with the given name. See the + /// <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>. /// /// [request] - The metadata request object. /// @@ -1668,7 +1692,11 @@ ProjectsTopicsSnapshotsResourceApi(commons.ApiRequester client) : _requester = client; - /// Lists the names of the snapshots on this topic. + /// Lists the names of the snapshots on this topic.<br><br> + /// <b>ALPHA:</b> This feature is part of an alpha release. This API might be + /// changed in backward-incompatible ways and is not recommended for + /// production + /// use. It is not subject to any SLA or deprecation policy. /// /// Request parameters: /// @@ -1834,7 +1862,7 @@ /// 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`. + /// account. For example, `alice@gmail.com` . /// /// /// * `serviceAccount:{emailid}`: An email address that represents a service @@ -1877,7 +1905,11 @@ } } -/// Request for the `CreateSnapshot` method. +/// Request for the `CreateSnapshot` method.<br><br> +/// <b>ALPHA:</b> This feature is part of an alpha release. This API might be +/// changed in +/// backward-incompatible ways and is not recommended for production use. +/// It is not subject to any SLA or deprecation policy. class CreateSnapshotRequest { /// The subscription whose backlog the snapshot retains. /// Specifically, the created snapshot is guaranteed to retain: @@ -1929,7 +1961,10 @@ } } -/// Response for the `ListSnapshots` method. +/// Response for the `ListSnapshots` method.<br><br> +/// <b>ALPHA:</b> This feature is part of an alpha release. This API might be +/// changed in backward-incompatible ways and is not recommended for production +/// use. It is not subject to any SLA or deprecation policy. class ListSnapshotsResponse { /// If not empty, indicates that there may be more snapshot that match the /// request; this value should be passed in a new `ListSnapshotsRequest`. @@ -2001,7 +2036,10 @@ } } -/// Response for the `ListTopicSnapshots` method. +/// Response for the `ListTopicSnapshots` method.<br><br> +/// <b>ALPHA:</b> This feature is part of an alpha release. This API might be +/// changed in backward-incompatible ways and is not recommended for production +/// use. It is not subject to any SLA or deprecation policy. class ListTopicSnapshotsResponse { /// If not empty, indicates that there may be more snapshots that match /// the request; this value should be passed in a new @@ -2174,14 +2212,14 @@ /// specify access control policies for Cloud Platform resources. /// /// -/// A `Policy` consists of a list of `bindings`. A `Binding` binds a list of +/// 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** +/// **JSON Example** /// /// { /// "bindings": [ @@ -2191,7 +2229,7 @@ /// "user:mike@example.com", /// "group:admins@example.com", /// "domain:google.com", -/// "serviceAccount:my-other-app@appspot.gserviceaccount.com", +/// "serviceAccount:my-other-app@appspot.gserviceaccount.com" /// ] /// }, /// { @@ -2201,6 +2239,20 @@ /// ] /// } /// +/// **YAML Example** +/// +/// bindings: +/// - members: +/// - user:mike@example.com +/// - group:admins@example.com +/// - domain:google.com +/// - serviceAccount:my-other-app@appspot.gserviceaccount.com +/// role: roles/owner +/// - members: +/// - user:sean@example.com +/// role: roles/viewer +/// +/// /// For a description of IAM and its features, see the /// [IAM developer's guide](https://cloud.google.com/iam/docs). class Policy { @@ -2532,7 +2584,10 @@ } } -/// Request for the `Seek` method. +/// Request for the `Seek` method.<br><br> +/// <b>ALPHA:</b> This feature is part of an alpha release. This API might be +/// changed in backward-incompatible ways and is not recommended for production +/// use. It is not subject to any SLA or deprecation policy. class SeekRequest { /// The snapshot to seek to. The snapshot's topic must be the same as that of /// the provided subscription. @@ -2614,7 +2669,10 @@ } } -/// A snapshot resource. +/// A snapshot resource.<br><br> +/// <b>ALPHA:</b> This feature is part of an alpha release. This API might be +/// changed in backward-incompatible ways and is not recommended for production +/// use. It is not subject to any SLA or deprecation policy. class Snapshot { /// The snapshot is guaranteed to exist up until this time. /// A newly-created snapshot expires no later than 7 days from the time of its @@ -2700,7 +2758,11 @@ /// `Seek` /// can be done. Defaults to 7 days. Cannot be more than 7 days or less than /// 10 - /// minutes. + /// minutes.<br><br> + /// <b>ALPHA:</b> This feature is part of an alpha release. This API might be + /// changed in backward-incompatible ways and is not recommended for + /// production + /// use. It is not subject to any SLA or deprecation policy. core.String messageRetentionDuration; /// The name of the subscription. It must have the format @@ -2720,7 +2782,11 @@ /// messages are not expunged from the subscription's backlog, even if they /// are /// acknowledged, until they fall out of the `message_retention_duration` - /// window. + /// window.<br><br> + /// <b>ALPHA:</b> This feature is part of an alpha release. This API might be + /// changed in backward-incompatible ways and is not recommended for + /// production + /// use. It is not subject to any SLA or deprecation policy. core.bool retainAckedMessages; /// The name of the topic from which this subscription is receiving messages. @@ -2855,9 +2921,12 @@ } } -/// Request for the UpdateSnapshot method. +/// Request for the UpdateSnapshot method.<br><br> +/// <b>ALPHA:</b> This feature is part of an alpha release. This API might be +/// changed in backward-incompatible ways and is not recommended for production +/// use. It is not subject to any SLA or deprecation policy. class UpdateSnapshotRequest { - /// The updated snpashot object. + /// The updated snapshot object. Snapshot snapshot; /// Indicates which fields in the provided snapshot to update.
diff --git a/generated/googleapis/lib/runtimeconfig/v1.dart b/generated/googleapis/lib/runtimeconfig/v1.dart index 130bc90..d696169 100644 --- a/generated/googleapis/lib/runtimeconfig/v1.dart +++ b/generated/googleapis/lib/runtimeconfig/v1.dart
@@ -166,12 +166,12 @@ /// [name] - The name of the operation's parent resource. /// Value must have pattern "^operations$". /// + /// [pageSize] - The standard list page size. + /// /// [filter] - The standard list filter. /// /// [pageToken] - The standard list page token. /// - /// [pageSize] - The standard list page size. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -183,9 +183,9 @@ /// 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.String filter, + {core.int pageSize, + core.String filter, core.String pageToken, - core.int pageSize, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -197,15 +197,15 @@ 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]; } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; }
diff --git a/generated/googleapis/lib/safebrowsing/v4.dart b/generated/googleapis/lib/safebrowsing/v4.dart index fd78583..2c891e0 100644 --- a/generated/googleapis/lib/safebrowsing/v4.dart +++ b/generated/googleapis/lib/safebrowsing/v4.dart
@@ -888,6 +888,7 @@ /// - "SUBRESOURCE_FILTER" : Patterns to be used for activating the /// subresource filter. Interstitial /// will not be shown for patterns from this list. + /// - "SUSPICIOUS" : Entities that are suspected to present a threat. core.String threatType; ListUpdateRequest(); @@ -1019,6 +1020,7 @@ /// - "SUBRESOURCE_FILTER" : Patterns to be used for activating the /// subresource filter. Interstitial /// will not be shown for patterns from this list. + /// - "SUSPICIOUS" : Entities that are suspected to present a threat. core.String threatType; ListUpdateResponse(); @@ -1475,6 +1477,7 @@ /// - "SUBRESOURCE_FILTER" : Patterns to be used for activating the /// subresource filter. Interstitial /// will not be shown for patterns from this list. + /// - "SUSPICIOUS" : Entities that are suspected to present a threat. core.String threatType; /// Details about the user that encountered the threat. @@ -1636,6 +1639,7 @@ /// - "SUBRESOURCE_FILTER" : Patterns to be used for activating the /// subresource filter. Interstitial /// will not be shown for patterns from this list. + /// - "SUSPICIOUS" : Entities that are suspected to present a threat. core.String threatType; ThreatListDescriptor(); @@ -1727,6 +1731,7 @@ /// - "SUBRESOURCE_FILTER" : Patterns to be used for activating the /// subresource filter. Interstitial /// will not be shown for patterns from this list. + /// - "SUSPICIOUS" : Entities that are suspected to present a threat. core.String threatType; ThreatMatch();
diff --git a/generated/googleapis/lib/script/v1.dart b/generated/googleapis/lib/script/v1.dart index a9f5715..4dd7798 100644 --- a/generated/googleapis/lib/script/v1.dart +++ b/generated/googleapis/lib/script/v1.dart
@@ -16,7 +16,13 @@ const core.String USER_AGENT = 'dart-api-client script/v1'; -/// An API for managing and executing Google Apps Script projects. +/// An API for managing and executing Google Apps Script projects. <aside +/// class="note"><b>Note</b>: In order to use this API in your apps, you must <a +/// href="/apps-script/api/how-tos/enable#using_the_apps_script_api_in_your_app"> +/// enable it for use</a>. To allow other apps to manage your scripts, you must +/// <a +/// href="/apps-script/api/how-tos/enable#granting_third-party_applications_access_to_your_script_projects"> +/// grant them access</a>.</aside> class ScriptApi { /// Read, send, delete, and manage your email static const MailGoogleComScope = "https://mail.google.com/"; @@ -80,6 +86,18 @@ /// /// Request parameters: /// + /// [userProcessFilter_deploymentId] - Optional field used to limit returned + /// processes to those originating from + /// projects with a specific deployment ID. + /// + /// [pageToken] - The token for continuing a previous list request on the next + /// page. This + /// should be set to the value of `nextPageToken` from a previous response. + /// + /// [userProcessFilter_endTime] - Optional field used to limit returned + /// processes to those that completed + /// on or before the given timestamp. + /// /// [pageSize] - The maximum number of returned processes per page of results. /// Defaults to /// 50. @@ -90,7 +108,7 @@ /// /// [userProcessFilter_projectName] - Optional field used to limit returned /// processes to those originating from - /// projects with a specific project name. + /// projects with project names containing a specific string. /// /// [userProcessFilter_userAccessLevels] - Optional field used to limit /// returned processes to those having one of @@ -104,25 +122,13 @@ /// processes to those originating from /// projects with a specific script ID. /// - /// [userProcessFilter_statuses] - Optional field used to limit returned - /// processes to those having one of - /// the specified process statuses. - /// /// [userProcessFilter_types] - Optional field used to limit returned /// processes to those having one of /// the specified process types. /// - /// [userProcessFilter_deploymentId] - Optional field used to limit returned - /// processes to those originating from - /// projects with a specific deployment ID. - /// - /// [userProcessFilter_endTime] - Optional field used to limit returned - /// processes to those that completed - /// on or before the given timestamp. - /// - /// [pageToken] - The token for continuing a previous list request on the next - /// page. This - /// should be set to the value of `nextPageToken` from a previous response. + /// [userProcessFilter_statuses] - Optional field used to limit returned + /// processes to those having one of + /// the specified process statuses. /// /// [$fields] - Selector specifying which fields to include in a partial /// response. @@ -135,17 +141,17 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListUserProcessesResponse> list( - {core.int pageSize, + {core.String userProcessFilter_deploymentId, + core.String pageToken, + core.String userProcessFilter_endTime, + core.int pageSize, core.String userProcessFilter_startTime, core.String userProcessFilter_projectName, core.List<core.String> userProcessFilter_userAccessLevels, core.String userProcessFilter_functionName, core.String userProcessFilter_scriptId, - core.List<core.String> userProcessFilter_statuses, core.List<core.String> userProcessFilter_types, - core.String userProcessFilter_deploymentId, - core.String userProcessFilter_endTime, - core.String pageToken, + core.List<core.String> userProcessFilter_statuses, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -154,6 +160,17 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (userProcessFilter_deploymentId != null) { + _queryParams["userProcessFilter.deploymentId"] = [ + userProcessFilter_deploymentId + ]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (userProcessFilter_endTime != null) { + _queryParams["userProcessFilter.endTime"] = [userProcessFilter_endTime]; + } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } @@ -179,22 +196,11 @@ if (userProcessFilter_scriptId != null) { _queryParams["userProcessFilter.scriptId"] = [userProcessFilter_scriptId]; } - if (userProcessFilter_statuses != null) { - _queryParams["userProcessFilter.statuses"] = userProcessFilter_statuses; - } if (userProcessFilter_types != null) { _queryParams["userProcessFilter.types"] = userProcessFilter_types; } - if (userProcessFilter_deploymentId != null) { - _queryParams["userProcessFilter.deploymentId"] = [ - userProcessFilter_deploymentId - ]; - } - if (userProcessFilter_endTime != null) { - _queryParams["userProcessFilter.endTime"] = [userProcessFilter_endTime]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; + if (userProcessFilter_statuses != null) { + _queryParams["userProcessFilter.statuses"] = userProcessFilter_statuses; } if ($fields != null) { _queryParams["fields"] = [$fields]; @@ -217,6 +223,28 @@ /// /// Request parameters: /// + /// [scriptProcessFilter_functionName] - Optional field used to limit returned + /// processes to those originating from + /// a script function with the given function name. + /// + /// [scriptProcessFilter_startTime] - Optional field used to limit returned + /// processes to those that were + /// started on or after the given timestamp. + /// + /// [scriptProcessFilter_deploymentId] - Optional field used to limit returned + /// processes to those originating from + /// projects with a specific deployment ID. + /// + /// [scriptId] - The script ID of the project whose processes are listed. + /// + /// [scriptProcessFilter_types] - Optional field used to limit returned + /// processes to those having one of + /// the specified process types. + /// + /// [pageToken] - The token for continuing a previous list request on the next + /// page. This + /// should be set to the value of `nextPageToken` from a previous response. + /// /// [pageSize] - The maximum number of returned processes per page of results. /// Defaults to /// 50. @@ -233,28 +261,6 @@ /// processes to those having one of /// the specified process statuses. /// - /// [scriptProcessFilter_startTime] - Optional field used to limit returned - /// processes to those that were - /// started on or after the given timestamp. - /// - /// [scriptProcessFilter_functionName] - Optional field used to limit returned - /// processes to those originating from - /// a script function with the given function name. - /// - /// [scriptProcessFilter_types] - Optional field used to limit returned - /// processes to those having one of - /// the specified process types. - /// - /// [scriptId] - The script ID of the project whose processes are listed. - /// - /// [scriptProcessFilter_deploymentId] - Optional field used to limit returned - /// processes to those originating from - /// projects with a specific deployment ID. - /// - /// [pageToken] - The token for continuing a previous list request on the next - /// page. This - /// should be set to the value of `nextPageToken` from a previous response. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -266,16 +272,16 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListScriptProcessesResponse> listScriptProcesses( - {core.int pageSize, + {core.String scriptProcessFilter_functionName, + core.String scriptProcessFilter_startTime, + core.String scriptProcessFilter_deploymentId, + core.String scriptId, + core.List<core.String> scriptProcessFilter_types, + core.String pageToken, + core.int pageSize, core.String scriptProcessFilter_endTime, core.List<core.String> scriptProcessFilter_userAccessLevels, core.List<core.String> scriptProcessFilter_statuses, - core.String scriptProcessFilter_startTime, - core.String scriptProcessFilter_functionName, - core.List<core.String> scriptProcessFilter_types, - core.String scriptId, - core.String scriptProcessFilter_deploymentId, - core.String pageToken, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -284,6 +290,30 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (scriptProcessFilter_functionName != null) { + _queryParams["scriptProcessFilter.functionName"] = [ + scriptProcessFilter_functionName + ]; + } + if (scriptProcessFilter_startTime != null) { + _queryParams["scriptProcessFilter.startTime"] = [ + scriptProcessFilter_startTime + ]; + } + if (scriptProcessFilter_deploymentId != null) { + _queryParams["scriptProcessFilter.deploymentId"] = [ + scriptProcessFilter_deploymentId + ]; + } + if (scriptId != null) { + _queryParams["scriptId"] = [scriptId]; + } + if (scriptProcessFilter_types != null) { + _queryParams["scriptProcessFilter.types"] = scriptProcessFilter_types; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } @@ -300,30 +330,6 @@ _queryParams["scriptProcessFilter.statuses"] = scriptProcessFilter_statuses; } - if (scriptProcessFilter_startTime != null) { - _queryParams["scriptProcessFilter.startTime"] = [ - scriptProcessFilter_startTime - ]; - } - if (scriptProcessFilter_functionName != null) { - _queryParams["scriptProcessFilter.functionName"] = [ - scriptProcessFilter_functionName - ]; - } - if (scriptProcessFilter_types != null) { - _queryParams["scriptProcessFilter.types"] = scriptProcessFilter_types; - } - if (scriptId != null) { - _queryParams["scriptId"] = [scriptId]; - } - if (scriptProcessFilter_deploymentId != null) { - _queryParams["scriptProcessFilter.deploymentId"] = [ - scriptProcessFilter_deploymentId - ]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -497,6 +503,9 @@ /// /// [scriptId] - Required field indicating the script to get metrics for. /// + /// [metricsFilter_deploymentId] - Optional field indicating a specific + /// deployment to retrieve metrics from. + /// /// [metricsGranularity] - Required field indicating what granularity of /// metrics are returned. /// Possible string values are: @@ -504,9 +513,6 @@ /// - "WEEKLY" : A WEEKLY. /// - "DAILY" : A DAILY. /// - /// [metricsFilter_deploymentId] - Optional field indicating a specific - /// deployment to retrieve metrics from. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -518,8 +524,8 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<Metrics> getMetrics(core.String scriptId, - {core.String metricsGranularity, - core.String metricsFilter_deploymentId, + {core.String metricsFilter_deploymentId, + core.String metricsGranularity, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -531,12 +537,12 @@ if (scriptId == null) { throw new core.ArgumentError("Parameter scriptId is required."); } - if (metricsGranularity != null) { - _queryParams["metricsGranularity"] = [metricsGranularity]; - } if (metricsFilter_deploymentId != null) { _queryParams["metricsFilter.deploymentId"] = [metricsFilter_deploymentId]; } + if (metricsGranularity != null) { + _queryParams["metricsGranularity"] = [metricsGranularity]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -774,13 +780,13 @@ /// /// [scriptId] - The script project's Drive ID. /// - /// [pageSize] - The maximum number of deployments on each returned page. - /// Defaults to 50. - /// /// [pageToken] - The token for continuing a previous list request on the next /// page. This /// should be set to the value of `nextPageToken` from a previous response. /// + /// [pageSize] - The maximum number of deployments on each returned page. + /// Defaults to 50. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -792,7 +798,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<ListDeploymentsResponse> list(core.String scriptId, - {core.int pageSize, core.String pageToken, core.String $fields}) { + {core.String pageToken, core.int pageSize, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -803,12 +809,12 @@ if (scriptId == null) { throw new core.ArgumentError("Parameter scriptId is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1854,6 +1860,7 @@ /// - "FAILED" : The process failed. /// - "TIMED_OUT" : The process timed out. /// - "UNKNOWN" : Process status unknown. + /// - "DELAYED" : The process is delayed, waiting for quota. core.String processStatus; /// The executions type. @@ -1865,6 +1872,8 @@ /// - "TRIGGER" : The process was started from an event-based trigger. /// - "WEBAPP" : The process was started from a web app entry point. /// - "EDITOR" : The process was started using the Apps Script IDE. + /// - "SIMPLE_TRIGGER" : The process was started from a GSuite simple trigger. + /// - "MENU" : The process was started from a GSuite menu item. core.String processType; /// Name of the script being executed. @@ -2373,13 +2382,12 @@ } } -/// A representation of a execution of an Apps Script function that is started -/// using run. The execution response does not arrive until the function -/// finishes executing. The maximum execution runtime is listed in the [Apps -/// Script quotas -/// guide](/apps-script/guides/services/quotas#current_limitations). <p>After -/// the execution is started, it can have one of four outcomes:</p> <ul> <li> If -/// the script function returns successfully, the +/// A representation of an execution of an Apps Script function started with +/// run. The execution response does not arrive until the function finishes +/// executing. The maximum execution runtime is listed in the [Apps Script +/// quotas guide](/apps-script/guides/services/quotas#current_limitations). +/// <p>After execution has started, it can have one of four outcomes:</p> <ul> +/// <li> If the script function returns successfully, the /// response field contains an /// ExecutionResponse object /// with the function's return value in the object's `result` field.</li> @@ -2564,9 +2572,9 @@ /// throws an exception, the response body's error field contains this `Status` /// object. class Status { - /// The status code. For this API, this value either: <ul> <li> 3, indicating - /// an `INVALID_ARGUMENT` error, or</li> <li> 1, indicating a `CANCELLED` - /// execution.</li> </ul> + /// The status code. For this API, this value either: <ul> <li> 10, indicating + /// a `SCRIPT_TIMEOUT` error,</li> <li> 3, indicating an `INVALID_ARGUMENT` + /// error, or</li> <li> 1, indicating a `CANCELLED` execution.</li> </ul> core.int code; /// An array that contains a single ExecutionError object that provides @@ -2577,9 +2585,8 @@ core.List<core.Map<core.String, core.Object>> details; /// A developer-facing error message, which is in English. Any user-facing - /// error message is localized and sent in the - /// [google.rpc.Status.details](google.rpc.Status.details) field, or localized - /// by the client. + /// error message is localized and sent in the details field, or localized by + /// the client. core.String message; Status();
diff --git a/generated/googleapis/lib/serviceconsumermanagement/v1.dart b/generated/googleapis/lib/serviceconsumermanagement/v1.dart index 9a26c2f..0543856 100644 --- a/generated/googleapis/lib/serviceconsumermanagement/v1.dart +++ b/generated/googleapis/lib/serviceconsumermanagement/v1.dart
@@ -292,8 +292,9 @@ /// /// [pageSize] - The maximum number of results returned by this request. /// Currently, the - /// default maximum is set to 1000. If page_size is not provided or provided a - /// number larger than 1000, it will be automatically set to 1000. + /// default maximum is set to 1000. If page_size is not provided or the size + /// provided is a number larger than 1000, it will be automatically set to + /// 1000. /// /// Optional. /// @@ -302,7 +303,7 @@ /// must be in the format: `field_name=literal_string`. The `field_name` is /// the /// name of the field you want to compare. Supported fields are - /// `tenant_resources.tag` and`tenant_resources.resource`. + /// `tenant_resources.tag` and `tenant_resources.resource`. /// /// For example, to search tenancy units that contain at least one tenant /// resource with given tag 'xyz', use query `tenant_resources.tag=xyz`. @@ -374,10 +375,10 @@ : _requester = client; /// Add a new tenant project to the tenancy unit. - /// There can be at most 512 tenant projects in a tenancy units. - /// If there are previously failed AddTenantProject calls, you might need to - /// call RemoveTenantProject first to clean them before you can make another - /// AddTenantProject with the same tag. + /// There can be at most 512 tenant projects in a tenancy unit. + /// If there are previously failed `AddTenantProject` calls, you might need to + /// call `RemoveTenantProject` first to clean them before you can make another + /// `AddTenantProject` with the same tag. /// Operation<response: Empty>. /// /// [request] - The metadata request object. @@ -488,8 +489,9 @@ return _response.then((data) => new TenancyUnit.fromJson(data)); } - /// Delete tenancy unit. Before the tenancy unit is deleted, there should be - /// no tenant resource in it. + /// Delete a tenancy unit. Before the tenancy unit is deleted, there should + /// be + /// no tenant resources in it. /// Operation<response: Empty>. /// /// Request parameters: @@ -533,10 +535,10 @@ return _response.then((data) => new Operation.fromJson(data)); } - /// Find tenancy unit for a service and consumer. - /// This method should not be used in producers' runtime path, e.g. finding - /// the tenant project number when creating VMs. Producers should persist - /// the tenant project information after the project is created. + /// Find the tenancy unit for a service and consumer. + /// This method should not be used in producers' runtime path, for example + /// finding the tenant project number when creating VMs. Producers should + /// persist the tenant project information after the project is created. /// /// Request parameters: /// @@ -669,7 +671,7 @@ } } -/// Request to add a newly created and configured tenant project to tenancy +/// Request to add a newly created and configured tenant project to a tenancy /// unit. class AddTenantProjectRequest { /// Configuration of the new tenant project that will be added to tenancy unit @@ -1027,19 +1029,9 @@ /// If a method doesn't have any auth requirements, request credentials will be /// ignored. class AuthenticationRule { - /// Whether to allow requests without a credential. The credential can be - /// an OAuth token, Google cookies (first-party auth) or EndUserCreds. - /// - /// For requests without credentials, if the service control environment is - /// specified, each incoming request **must** be associated with a service - /// consumer. This can be done by passing an API key that belongs to a - /// consumer - /// project. + /// If true, the service accepts API keys without any other credential. core.bool allowWithoutCredential; - /// Configuration for custom authentication. - CustomAuthRequirements customAuth; - /// The requirements for OAuth credentials. OAuthRequirements oauth; @@ -1057,9 +1049,6 @@ if (_json.containsKey("allowWithoutCredential")) { allowWithoutCredential = _json["allowWithoutCredential"]; } - if (_json.containsKey("customAuth")) { - customAuth = new CustomAuthRequirements.fromJson(_json["customAuth"]); - } if (_json.containsKey("oauth")) { oauth = new OAuthRequirements.fromJson(_json["oauth"]); } @@ -1079,9 +1068,6 @@ if (allowWithoutCredential != null) { _json["allowWithoutCredential"] = allowWithoutCredential; } - if (customAuth != null) { - _json["customAuth"] = (customAuth).toJson(); - } if (oauth != null) { _json["oauth"] = (oauth).toJson(); } @@ -1318,7 +1304,7 @@ } } -/// Describes billing configuration for new a Tenant Project +/// Describes billing configuration for a new tenant project. class BillingConfig { /// Name of the billing account. /// For example `billingAccounts/012345-567890-ABCDEF`. @@ -1547,13 +1533,13 @@ /// Request to create a tenancy unit for a consumer of a service. class CreateTenancyUnitRequest { - /// Optional producer provided identifier of the tenancy unit - /// Must be no longer than 40 characters and preferably URI friendly - /// If it is not provided, UID for the tenancy unit will be auto generated + /// Optional producer provided identifier of the tenancy unit. + /// Must be no longer than 40 characters and preferably URI friendly. + /// If it is not provided, a UID for the tenancy unit will be auto generated. /// It must be unique across a service. /// If the tenancy unit already exists for the service and consumer pair, - /// CreateTenancyUnit will return existing tenancy unit if provided identifier - /// is identical or empty, otherwise the call will fail. + /// `CreateTenancyUnit` will return the existing tenancy unit if the provided + /// identifier is identical or empty, otherwise the call will fail. core.String tenancyUnitId; CreateTenancyUnitRequest(); @@ -1574,31 +1560,6 @@ } } -/// Configuration for a custom authentication provider. -class CustomAuthRequirements { - /// A configuration string containing connection information for the - /// authentication provider, typically formatted as a SmartService string - /// (go/smartservice). - core.String provider; - - CustomAuthRequirements(); - - CustomAuthRequirements.fromJson(core.Map _json) { - if (_json.containsKey("provider")) { - provider = _json["provider"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (provider != null) { - _json["provider"] = provider; - } - return _json; - } -} - /// Customize service error responses. For example, list any service /// specific protobuf types that can appear in error detail lists of /// error responses. @@ -1754,9 +1715,7 @@ /// <pre><code>[display text][fully.qualified.proto.name]</code></pre> /// Text can be excluded from doc using the following notation: /// <pre><code>(-- internal comment --)</code></pre> -/// Comments can be made conditional using a visibility label. The below -/// text will be only rendered if the `BETA` label is available: -/// <pre><code>(--BETA: comment for BETA users --)</code></pre> +/// /// A few directives are available in documentation. Note that /// directives must appear on a single line to be properly /// identified. The `include` directive includes a markdown file from @@ -2823,7 +2782,7 @@ /// Pagination token for large results. core.String nextPageToken; - /// Tenancy Units matching the request. + /// Tenancy units matching the request. core.List<TenancyUnit> tenancyUnits; ListTenancyUnitsResponse(); @@ -4059,7 +4018,7 @@ /// Translates to IAM Policy bindings (without auditing at this level) class PolicyBinding { /// Uses the same format as in IAM policy. - /// `member` must include both prefix and id. E.g., `user:{emailId}`, + /// `member` must include both prefix and ID. For example, `user:{emailId}`, /// `serviceAccount:{emailId}`, `group:{emailId}`. core.List<core.String> members; @@ -4533,9 +4492,6 @@ /// Configuration controlling usage of this service. Usage usage; - /// API visibility configuration. - Visibility visibility; - Service(); Service.fromJson(core.Map _json) { @@ -4642,9 +4598,6 @@ if (_json.containsKey("usage")) { usage = new Usage.fromJson(_json["usage"]); } - if (_json.containsKey("visibility")) { - visibility = new Visibility.fromJson(_json["visibility"]); - } } core.Map<core.String, core.Object> toJson() { @@ -4736,9 +4689,6 @@ if (usage != null) { _json["usage"] = (usage).toJson(); } - if (visibility != null) { - _json["visibility"] = (visibility).toJson(); - } return _json; } } @@ -4749,10 +4699,11 @@ /// The email format of the service account will be /// "<account-id>@<tenant-project-id>.iam.gserviceaccount.com". /// This account id has to be unique within tenant project and producers - /// have to guarantee it. + /// have to guarantee it. And it must be 6-30 characters long, and matches the + /// regular expression `[a-z]([-a-z0-9]*[a-z0-9])`. core.String accountId; - /// Roles for the service account above on tenant project. + /// Roles for the associated service account for the tenant project. core.List<core.String> tenantProjectRoles; ServiceAccountConfig(); @@ -5090,8 +5041,8 @@ /// Representation of a tenancy unit. class TenancyUnit { - /// @OutputOnly Cloud resource One Platform Name of the consumer of this - /// service. For example 'projects/123456'. + /// @OutputOnly Cloud resource name of the consumer of this service. + /// For example 'projects/123456'. core.String consumer; /// @OutputOnly The time this tenancy unit was created. @@ -5106,7 +5057,7 @@ core.String service; /// Resources constituting the tenancy unit. - /// There can be at most 512 tenant resources in a tenancy units. + /// There can be at most 512 tenant resources in a tenancy unit. core.List<TenantResource> tenantResources; TenancyUnit(); @@ -5161,7 +5112,7 @@ /// removal. class TenantProjectConfig { /// Billing account properties. - /// It may be specified explicitly, or created from the specified group + /// It might be specified explicitly, or created from the specified group /// during provisioning BillingConfig billingConfig; @@ -5180,7 +5131,7 @@ /// Google Cloud API names of services that will be activated on this project /// during provisioning. If any of these services can not be activated, - /// addTenantProject method will fail. + /// request will fail. /// For example: 'compute.googleapis.com','cloudfunctions.googleapis.com' core.List<core.String> services; @@ -5238,7 +5189,7 @@ } /// Describes policy settings that need to be applied to a newly -/// created Tenant Project. +/// created tenant project. class TenantProjectPolicy { /// Policy bindings to be applied to the tenant project, in addition to the /// 'roles/owner' role granted to the Service Consumer Management service @@ -5272,7 +5223,7 @@ /// Resource constituting the TenancyUnit. class TenantResource { /// @OutputOnly Identifier of the tenant resource. - /// For cloud projects it is in the form 'projects/{number}'. + /// For cloud projects, it is in the form 'projects/{number}'. /// For example 'projects/123456'. core.String resource; @@ -5519,100 +5470,3 @@ return _json; } } - -/// `Visibility` defines restrictions for the visibility of service -/// elements. Restrictions are specified using visibility labels -/// (e.g., TRUSTED_TESTER) that are elsewhere linked to users and projects. -/// -/// Users and projects can have access to more than one visibility label. The -/// effective visibility for multiple labels is the union of each label's -/// elements, plus any unrestricted elements. -/// -/// If an element and its parents have no restrictions, visibility is -/// unconditionally granted. -/// -/// Example: -/// -/// visibility: -/// rules: -/// - selector: google.calendar.Calendar.EnhancedSearch -/// restriction: TRUSTED_TESTER -/// - selector: google.calendar.Calendar.Delegate -/// restriction: GOOGLE_INTERNAL -/// -/// Here, all methods are publicly visible except for the restricted methods -/// EnhancedSearch and Delegate. -class Visibility { - /// A list of visibility rules that apply to individual API elements. - /// - /// **NOTE:** All service configuration rules follow "last one wins" order. - core.List<VisibilityRule> rules; - - Visibility(); - - Visibility.fromJson(core.Map _json) { - if (_json.containsKey("rules")) { - rules = (_json["rules"] as core.List) - .map<VisibilityRule>((value) => new VisibilityRule.fromJson(value)) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (rules != null) { - _json["rules"] = rules.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/// A visibility rule provides visibility configuration for an individual API -/// element. -class VisibilityRule { - /// 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. - /// - /// Example: - /// - /// visibility: - /// rules: - /// - selector: google.calendar.Calendar.EnhancedSearch - /// restriction: GOOGLE_INTERNAL, TRUSTED_TESTER - /// - /// Removing GOOGLE_INTERNAL from this restriction will break clients that - /// rely on this method and only had access to it through GOOGLE_INTERNAL. - core.String restriction; - - /// Selects methods, messages, fields, enums, etc. to which this rule applies. - /// - /// Refer to selector for syntax details. - core.String selector; - - VisibilityRule(); - - VisibilityRule.fromJson(core.Map _json) { - if (_json.containsKey("restriction")) { - restriction = _json["restriction"]; - } - if (_json.containsKey("selector")) { - selector = _json["selector"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (restriction != null) { - _json["restriction"] = restriction; - } - if (selector != null) { - _json["selector"] = selector; - } - return _json; - } -}
diff --git a/generated/googleapis/lib/servicecontrol/v1.dart b/generated/googleapis/lib/servicecontrol/v1.dart index 1f47f07..84a6321 100644 --- a/generated/googleapis/lib/servicecontrol/v1.dart +++ b/generated/googleapis/lib/servicecontrol/v1.dart
@@ -108,19 +108,23 @@ return _response.then((data) => new AllocateQuotaResponse.fromJson(data)); } - /// Checks an operation with Google Service Control to decide whether - /// the given operation should proceed. It should be called before the - /// operation is executed. + /// Checks whether an operation on a service should be allowed to proceed + /// based on the configuration of the service and related policies. It must be + /// called before the operation is executed. /// /// If feasible, the client should cache the check results and reuse them for - /// 60 seconds. In case of server errors, the client can rely on the cached - /// results for longer time. + /// 60 seconds. In case of any server errors, the client should rely on the + /// cached results for much longer time to avoid outage. + /// WARNING: There is general 60s delay for the configuration and policy + /// propagation, therefore callers MUST NOT depend on the `Check` method + /// having + /// the latest policy information. /// /// NOTE: the CheckRequest has the size limit of 64KB. /// /// This method requires the `servicemanagement.services.check` permission /// on the specified service. For more information, see - /// [Google Cloud IAM](https://cloud.google.com/iam). + /// [Cloud IAM](https://cloud.google.com/iam). /// /// [request] - The metadata request object. /// @@ -910,6 +914,8 @@ /// LoquatV2. /// - "SECURITY_POLICY_VIOLATED" : Request is not allowed as per security /// policies defined in Org Policy. + /// - "INVALID_CREDENTIAL" : The credential in the request can not be + /// verified. /// - "NAMESPACE_LOOKUP_UNAVAILABLE" : The backend server for looking up /// project id/number is unavailable. /// - "SERVICE_STATUS_UNAVAILABLE" : The backend server for checking service @@ -1862,7 +1868,8 @@ /// - `servicecontrol.googleapis.com/service_agent` describing the service /// used to handle the API request (e.g. ESP), /// - `servicecontrol.googleapis.com/platform` describing the platform - /// where the API is served (e.g. GAE, GCE, GKE). + /// where the API is served, such as App Engine, Compute Engine, or + /// Kubernetes Engine. core.Map<core.String, core.String> labels; /// Represents information to be logged. @@ -1910,6 +1917,7 @@ core.String resourceContainer; /// The resources that are involved in the operation. + /// The maximum supported number of entries in this field is 100. core.List<ResourceInfo> resources; /// Required. Start time of the operation.
diff --git a/generated/googleapis/lib/servicemanagement/v1.dart b/generated/googleapis/lib/servicemanagement/v1.dart index 42f0e91..cf0b45c 100644 --- a/generated/googleapis/lib/servicemanagement/v1.dart +++ b/generated/googleapis/lib/servicemanagement/v1.dart
@@ -516,8 +516,6 @@ /// [overview](/service-management/overview) /// for naming requirements. For example: `example.googleapis.com`. /// - /// [configId] - The id of the service configuration resource. - /// /// [view] - Specifies which parts of the Service Config should be returned in /// the /// response. @@ -525,6 +523,8 @@ /// - "BASIC" : A BASIC. /// - "FULL" : A FULL. /// + /// [configId] - The id of the service configuration resource. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -536,7 +536,7 @@ /// If the used [http_1.Client] completes with an error when making a REST /// call, this method will complete with the same error. async.Future<Service> getConfig(core.String serviceName, - {core.String configId, core.String view, core.String $fields}) { + {core.String view, core.String configId, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -547,12 +547,12 @@ if (serviceName == null) { throw new core.ArgumentError("Parameter serviceName is required."); } - if (configId != null) { - _queryParams["configId"] = [configId]; - } if (view != null) { _queryParams["view"] = [view]; } + if (configId != null) { + _queryParams["configId"] = [configId]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -638,10 +638,6 @@ /// /// Request parameters: /// - /// [pageSize] - Requested size of the next page of data. - /// - /// [producerProjectId] - Include services produced by the specified project. - /// /// [consumerId] - Include services consumed by the specified consumer. /// /// The Google Service Management implementation accepts the following @@ -652,6 +648,10 @@ /// previous list /// call. /// + /// [pageSize] - Requested size of the next page of data. + /// + /// [producerProjectId] - Include services produced by the specified project. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -663,10 +663,10 @@ /// If the used [http_1.Client] completes with an error when making a REST /// call, this method will complete with the same error. async.Future<ListServicesResponse> list( - {core.int pageSize, - core.String producerProjectId, - core.String consumerId, + {core.String consumerId, core.String pageToken, + core.int pageSize, + core.String producerProjectId, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -675,18 +675,18 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - if (producerProjectId != null) { - _queryParams["producerProjectId"] = [producerProjectId]; - } if (consumerId != null) { _queryParams["consumerId"] = [consumerId]; } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (producerProjectId != null) { + _queryParams["producerProjectId"] = [producerProjectId]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -881,6 +881,10 @@ /// configuration to backend systems please call /// CreateServiceRollout. /// + /// Only the 100 most recent service configurations and ones referenced by + /// existing rollouts are kept for each service. The rest will be deleted + /// eventually. + /// /// [request] - The metadata request object. /// /// Request parameters: @@ -1062,6 +1066,10 @@ /// other services, /// please call CreateServiceRollout. /// + /// Only the 100 most recent configuration sources and ones referenced by + /// existing service configurtions are kept for each service. The rest will be + /// deleted eventually. + /// /// Operation<response: SubmitConfigSourceResponse> /// /// [request] - The metadata request object. @@ -1310,6 +1318,10 @@ /// Operations will be automatically cancelled so that the latest Rollout will /// not be blocked by previous Rollouts. /// + /// Only the 100 most recent (in any state) and the last 10 successful (if not + /// already part of the set of 100 most recent) rollouts are kept for each + /// service. The rest will be deleted eventually. + /// /// Operation<response: Rollout> /// /// [request] - The metadata request object. @@ -1684,7 +1696,6 @@ /// bar@gmail.com from DATA_WRITE logging. class AuditConfig { /// The configuration for logging of each type of permission. - /// Next ID: 4 core.List<AuditLogConfig> auditLogConfigs; /// Specifies a service that will be enabled for audit logging. @@ -1985,19 +1996,9 @@ /// If a method doesn't have any auth requirements, request credentials will be /// ignored. class AuthenticationRule { - /// Whether to allow requests without a credential. The credential can be - /// an OAuth token, Google cookies (first-party auth) or EndUserCreds. - /// - /// For requests without credentials, if the service control environment is - /// specified, each incoming request **must** be associated with a service - /// consumer. This can be done by passing an API key that belongs to a - /// consumer - /// project. + /// If true, the service accepts API keys without any other credential. core.bool allowWithoutCredential; - /// Configuration for custom authentication. - CustomAuthRequirements customAuth; - /// The requirements for OAuth credentials. OAuthRequirements oauth; @@ -2015,9 +2016,6 @@ if (_json.containsKey("allowWithoutCredential")) { allowWithoutCredential = _json["allowWithoutCredential"]; } - if (_json.containsKey("customAuth")) { - customAuth = new CustomAuthRequirements.fromJson(_json["customAuth"]); - } if (_json.containsKey("oauth")) { oauth = new OAuthRequirements.fromJson(_json["oauth"]); } @@ -2037,9 +2035,6 @@ if (allowWithoutCredential != null) { _json["allowWithoutCredential"] = allowWithoutCredential; } - if (customAuth != null) { - _json["customAuth"] = (customAuth).toJson(); - } if (oauth != null) { _json["oauth"] = (oauth).toJson(); } @@ -2257,13 +2252,6 @@ /// Associates `members` with a `role`. class Binding { - /// The condition that is associated with this binding. - /// NOTE: an unsatisfied condition will not allow user access via current - /// binding. Different bindings, including their conditions, are examined - /// independently. - /// This field is only visible as GOOGLE_INTERNAL or CONDITION_TRUSTED_TESTER. - Expr condition; - /// Specifies the identities requesting access for a Cloud Platform resource. /// `members` can have the following values: /// @@ -2274,7 +2262,7 @@ /// 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`. + /// account. For example, `alice@gmail.com` . /// /// /// * `serviceAccount:{emailid}`: An email address that represents a service @@ -2296,9 +2284,6 @@ Binding(); Binding.fromJson(core.Map _json) { - if (_json.containsKey("condition")) { - condition = new Expr.fromJson(_json["condition"]); - } if (_json.containsKey("members")) { members = (_json["members"] as core.List).cast<core.String>(); } @@ -2310,9 +2295,6 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (condition != null) { - _json["condition"] = (condition).toJson(); - } if (members != null) { _json["members"] = members; } @@ -2592,6 +2574,26 @@ /// /// Available context types are defined in package /// `google.rpc.context`. +/// +/// This also provides mechanism to whitelist any protobuf message extension +/// that +/// can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and +/// “x-goog-ext-<extension_id>-jspb” format. For example, list any service +/// specific protobuf types that can appear in grpc metadata as follows in your +/// yaml file: +/// +/// Example: +/// +/// context: +/// rules: +/// - selector: "google.example.library.v1.LibraryService.CreateBook" +/// allowed_request_extensions: +/// - google.foo.v1.NewExtension +/// allowed_response_extensions: +/// - google.foo.v1.NewExtension +/// +/// You can also specify extension ID instead of fully qualified extension name +/// here. class Context { /// A list of RPC context rules that apply to individual API methods. /// @@ -2621,6 +2623,14 @@ /// A context rule provides information about the context for an individual API /// element. class ContextRule { + /// A list of full type names or extension IDs of extensions allowed in grpc + /// side channel from client to backend. + core.List<core.String> allowedRequestExtensions; + + /// A list of full type names or extension IDs of extensions allowed in grpc + /// side channel from backend to client. + core.List<core.String> allowedResponseExtensions; + /// A list of full type names of provided contexts. core.List<core.String> provided; @@ -2635,6 +2645,14 @@ ContextRule(); ContextRule.fromJson(core.Map _json) { + if (_json.containsKey("allowedRequestExtensions")) { + allowedRequestExtensions = + (_json["allowedRequestExtensions"] as core.List).cast<core.String>(); + } + if (_json.containsKey("allowedResponseExtensions")) { + allowedResponseExtensions = + (_json["allowedResponseExtensions"] as core.List).cast<core.String>(); + } if (_json.containsKey("provided")) { provided = (_json["provided"] as core.List).cast<core.String>(); } @@ -2649,6 +2667,12 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (allowedRequestExtensions != null) { + _json["allowedRequestExtensions"] = allowedRequestExtensions; + } + if (allowedResponseExtensions != null) { + _json["allowedResponseExtensions"] = allowedResponseExtensions; + } if (provided != null) { _json["provided"] = provided; } @@ -2688,31 +2712,6 @@ } } -/// Configuration for a custom authentication provider. -class CustomAuthRequirements { - /// A configuration string containing connection information for the - /// authentication provider, typically formatted as a SmartService string - /// (go/smartservice). - core.String provider; - - CustomAuthRequirements(); - - CustomAuthRequirements.fromJson(core.Map _json) { - if (_json.containsKey("provider")) { - provider = _json["provider"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (provider != null) { - _json["provider"] = provider; - } - return _json; - } -} - /// Customize service error responses. For example, list any service /// specific protobuf types that can appear in error detail lists of /// error responses. @@ -2957,9 +2956,7 @@ /// <pre><code>[display text][fully.qualified.proto.name]</code></pre> /// Text can be excluded from doc using the following notation: /// <pre><code>(-- internal comment --)</code></pre> -/// Comments can be made conditional using a visibility label. The below -/// text will be only rendered if the `BETA` label is available: -/// <pre><code>(--BETA: comment for BETA users --)</code></pre> +/// /// A few directives are available in documentation. Note that /// directives must appear on a single line to be properly /// identified. The `include` directive includes a markdown file from @@ -3350,68 +3347,6 @@ } } -/// Represents an expression text. Example: -/// -/// title: "User account presence" -/// description: "Determines whether the request has a user account" -/// expression: "size(request.user) > 0" -class Expr { - /// An optional description of the expression. This is a longer text which - /// describes the expression, e.g. when hovered over it in a UI. - core.String description; - - /// Textual representation of an expression in - /// Common Expression Language syntax. - /// - /// The application context of the containing message determines which - /// well-known feature set of CEL is supported. - core.String expression; - - /// An optional string indicating the location of the expression for error - /// reporting, e.g. a file name and a position in the file. - core.String location; - - /// An optional title for the expression, i.e. a short string describing - /// its purpose. This can be used e.g. in UIs which allow to enter the - /// expression. - core.String title; - - Expr(); - - Expr.fromJson(core.Map _json) { - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("expression")) { - expression = _json["expression"]; - } - if (_json.containsKey("location")) { - location = _json["location"]; - } - if (_json.containsKey("title")) { - title = _json["title"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (description != null) { - _json["description"] = description; - } - if (expression != null) { - _json["expression"] = expression; - } - if (location != null) { - _json["location"] = location; - } - if (title != null) { - _json["title"] = title; - } - return _json; - } -} - /// A single field of a message type. class Field { /// The field cardinality. @@ -5541,14 +5476,14 @@ /// specify access control policies for Cloud Platform resources. /// /// -/// A `Policy` consists of a list of `bindings`. A `Binding` binds a list of +/// 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** +/// **JSON Example** /// /// { /// "bindings": [ @@ -5558,7 +5493,7 @@ /// "user:mike@example.com", /// "group:admins@example.com", /// "domain:google.com", -/// "serviceAccount:my-other-app@appspot.gserviceaccount.com", +/// "serviceAccount:my-other-app@appspot.gserviceaccount.com" /// ] /// }, /// { @@ -5568,6 +5503,20 @@ /// ] /// } /// +/// **YAML Example** +/// +/// bindings: +/// - members: +/// - user:mike@example.com +/// - group:admins@example.com +/// - domain:google.com +/// - serviceAccount:my-other-app@appspot.gserviceaccount.com +/// role: roles/owner +/// - members: +/// - user:sean@example.com +/// role: roles/viewer +/// +/// /// For a description of IAM and its features, see the /// [IAM developer's guide](https://cloud.google.com/iam/docs). class Policy { @@ -6135,9 +6084,6 @@ /// Configuration controlling usage of this service. Usage usage; - /// API visibility configuration. - Visibility visibility; - Service(); Service.fromJson(core.Map _json) { @@ -6244,9 +6190,6 @@ if (_json.containsKey("usage")) { usage = new Usage.fromJson(_json["usage"]); } - if (_json.containsKey("visibility")) { - visibility = new Visibility.fromJson(_json["visibility"]); - } } core.Map<core.String, core.Object> toJson() { @@ -6338,9 +6281,6 @@ if (usage != null) { _json["usage"] = (usage).toJson(); } - if (visibility != null) { - _json["visibility"] = (visibility).toJson(); - } return _json; } } @@ -7121,100 +7061,3 @@ return _json; } } - -/// `Visibility` defines restrictions for the visibility of service -/// elements. Restrictions are specified using visibility labels -/// (e.g., TRUSTED_TESTER) that are elsewhere linked to users and projects. -/// -/// Users and projects can have access to more than one visibility label. The -/// effective visibility for multiple labels is the union of each label's -/// elements, plus any unrestricted elements. -/// -/// If an element and its parents have no restrictions, visibility is -/// unconditionally granted. -/// -/// Example: -/// -/// visibility: -/// rules: -/// - selector: google.calendar.Calendar.EnhancedSearch -/// restriction: TRUSTED_TESTER -/// - selector: google.calendar.Calendar.Delegate -/// restriction: GOOGLE_INTERNAL -/// -/// Here, all methods are publicly visible except for the restricted methods -/// EnhancedSearch and Delegate. -class Visibility { - /// A list of visibility rules that apply to individual API elements. - /// - /// **NOTE:** All service configuration rules follow "last one wins" order. - core.List<VisibilityRule> rules; - - Visibility(); - - Visibility.fromJson(core.Map _json) { - if (_json.containsKey("rules")) { - rules = (_json["rules"] as core.List) - .map<VisibilityRule>((value) => new VisibilityRule.fromJson(value)) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (rules != null) { - _json["rules"] = rules.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/// A visibility rule provides visibility configuration for an individual API -/// element. -class VisibilityRule { - /// 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. - /// - /// Example: - /// - /// visibility: - /// rules: - /// - selector: google.calendar.Calendar.EnhancedSearch - /// restriction: GOOGLE_INTERNAL, TRUSTED_TESTER - /// - /// Removing GOOGLE_INTERNAL from this restriction will break clients that - /// rely on this method and only had access to it through GOOGLE_INTERNAL. - core.String restriction; - - /// Selects methods, messages, fields, enums, etc. to which this rule applies. - /// - /// Refer to selector for syntax details. - core.String selector; - - VisibilityRule(); - - VisibilityRule.fromJson(core.Map _json) { - if (_json.containsKey("restriction")) { - restriction = _json["restriction"]; - } - if (_json.containsKey("selector")) { - selector = _json["selector"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (restriction != null) { - _json["restriction"] = restriction; - } - if (selector != null) { - _json["selector"] = selector; - } - return _json; - } -}
diff --git a/generated/googleapis/lib/serviceusage/v1.dart b/generated/googleapis/lib/serviceusage/v1.dart deleted file mode 100644 index c06c211..0000000 --- a/generated/googleapis/lib/serviceusage/v1.dart +++ /dev/null
@@ -1,5333 +0,0 @@ -// This is a generated file (see the discoveryapis_generator project). - -// ignore_for_file: unnecessary_cast - -library googleapis.serviceusage.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_1; - -export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' - show ApiRequestError, DetailedApiRequestError; - -const core.String USER_AGENT = 'dart-api-client serviceusage/v1'; - -/// Enables services that service consumers want to use on Google Cloud -/// Platform, lists the available or enabled services, or disables services that -/// service consumers no longer use. -class ServiceusageApi { - /// 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"; - - /// Manage your Google API service configuration - static const ServiceManagementScope = - "https://www.googleapis.com/auth/service.management"; - - final commons.ApiRequester _requester; - - OperationsResourceApi get operations => new OperationsResourceApi(_requester); - ServicesResourceApi get services => new ServicesResourceApi(_requester); - - ServiceusageApi(http_1.Client client, - {core.String rootUrl: "https://serviceusage.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/.+$". - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [Empty]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http_1.Client] completes with an error when making a REST - /// call, this method will complete with the same error. - async.Future<Empty> cancel(CancelOperationRequest request, core.String name, - {core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - 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."); - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _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/.+$". - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [Empty]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http_1.Client] completes with an error when making a REST - /// call, this method will complete with the same error. - async.Future<Empty> delete(core.String name, {core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - 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 ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _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)); - } - - /// Gets the latest state of a long-running operation. Clients can use this - /// method to poll the operation result at intervals as recommended by the API - /// service. - /// - /// Request parameters: - /// - /// [name] - The name of the operation resource. - /// Value must have pattern "^operations/[^/]+$". - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [Operation]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http_1.Client] completes with an error when making a REST - /// call, this method will complete with the same error. - async.Future<Operation> get(core.String name, {core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - 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 ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _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 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 allows API services to override the binding - /// to use different resource name schemes, such as `users / * /operations`. - /// To - /// override the binding, API services can add a binding such as - /// `"/v1/{name=users / * }/operations"` to their service configuration. - /// For backwards compatibility, the default name includes the operations - /// collection id, however overriding users must ensure the name binding - /// is the parent resource, without the operations collection id. - /// - /// Request parameters: - /// - /// [filter] - The standard list filter. - /// - /// [name] - The name of the operation's parent resource. - /// - /// [pageToken] - The standard list page token. - /// - /// [pageSize] - The standard list page size. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [ListOperationsResponse]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http_1.Client] completes with an error when making a REST - /// call, this method will complete with the same error. - async.Future<ListOperationsResponse> list( - {core.String filter, - core.String name, - core.String pageToken, - core.int pageSize, - core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (filter != null) { - _queryParams["filter"] = [filter]; - } - if (name != null) { - _queryParams["name"] = [name]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _url = 'v1/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)); - } -} - -class ServicesResourceApi { - final commons.ApiRequester _requester; - - ServicesResourceApi(commons.ApiRequester client) : _requester = client; - - /// Disable a service so it can no longer be used with a - /// project. This prevents unintended usage that may cause unexpected billing - /// charges or security leaks. - /// - /// It is not valid to call the disable method on a service that is not - /// currently enabled. Callers will receive a FAILED_PRECONDITION status if - /// the target service is not currently enabled. - /// - /// Operation<response: google.protobuf.Empty> - /// - /// [request] - The metadata request object. - /// - /// Request parameters: - /// - /// [name] - Name of the consumer and service to disable the service on. - /// - /// The enable and disable methods currently only support projects. - /// - /// An example name would be: - /// projects/123/services/serviceusage.googleapis.com - /// Value must have pattern "^[^/]+/[^/]+/services/[^/]+$". - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [Operation]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http_1.Client] completes with an error when making a REST - /// call, this method will complete with the same error. - async.Future<Operation> disable( - DisableServiceRequest request, core.String name, - {core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - 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."); - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':disable'; - - var _response = _requester.request(_url, "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Operation.fromJson(data)); - } - - /// Enable a service so it can be used with a project. - /// See [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for - /// more information. - /// - /// Operation<response: google.protobuf.Empty> - /// - /// [request] - The metadata request object. - /// - /// Request parameters: - /// - /// [name] - Name of the consumer and service to enable the service on. - /// - /// The enable and disable methods currently only support projects. - /// - /// Enabling a service requires that the service is public or is shared with - /// the user enabling the service. - /// - /// An example name would be: - /// projects/123/services/serviceusage.googleapis.com - /// Value must have pattern "^[^/]+/[^/]+/services/[^/]+$". - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [Operation]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http_1.Client] completes with an error when making a REST - /// call, this method will complete with the same error. - async.Future<Operation> enable(EnableServiceRequest request, core.String name, - {core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - 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."); - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':enable'; - - 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 service definition and EnabledState for a given service. - /// - /// Request parameters: - /// - /// [name] - Name of the consumer and service to get the ConsumerState for. - /// - /// An example name would be: - /// projects/123/services/serviceusage.googleapis.com - /// Value must have pattern "^[^/]+/[^/]+/services/[^/]+$". - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [ServiceState]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http_1.Client] completes with an error when making a REST - /// call, this method will complete with the same error. - async.Future<ServiceState> get(core.String name, {core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - 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 ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _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 ServiceState.fromJson(data)); - } - - /// List enabled services. - /// - /// Request parameters: - /// - /// [parent] - Parent to search for services on. - /// - /// An example name would be: - /// projects/123 - /// Value must have pattern "^[^/]+/[^/]+$". - /// - /// [pageToken] - Token identifying which result to start with; returned by a - /// previous list - /// call. - /// - /// [pageSize] - Requested size of the next page of data. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [ListEnabledServicesResponse]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http_1.Client] completes with an error when making a REST - /// call, this method will complete with the same error. - async.Future<ListEnabledServicesResponse> listEnabled(core.String parent, - {core.String pageToken, core.int pageSize, core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - 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 (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _url = 'v1/' + - commons.Escaper.ecapeVariableReserved('$parent') + - '/services:enabled'; - - var _response = _requester.request(_url, "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response - .then((data) => new ListEnabledServicesResponse.fromJson(data)); - } - - /// Search available services. - /// - /// When no filter is specified, returns all accessible services. This - /// includes - /// public services and services for which the calling user has the - /// "servicemanagement.services.bind" permission. - /// - /// Request parameters: - /// - /// [pageToken] - Token identifying which result to start with; returned by a - /// previous search - /// call. - /// - /// [pageSize] - Requested size of the next page of data. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [SearchServicesResponse]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http_1.Client] completes with an error when making a REST - /// call, this method will complete with the same error. - async.Future<SearchServicesResponse> search( - {core.String pageToken, core.int pageSize, core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _url = 'v1/services:search'; - - var _response = _requester.request(_url, "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new SearchServicesResponse.fromJson(data)); - } -} - -/// Api is a light-weight descriptor for an API Interface. -/// -/// Interfaces are also described as "protocol buffer services" in some -/// contexts, -/// such as by the "service" keyword in a .proto file, but they are different -/// from API Services, which represent a concrete implementation of an interface -/// as opposed to simply a description of methods and bindings. They are also -/// sometimes simply referred to as "APIs" in other contexts, such as the name -/// of -/// this message itself. See https://cloud.google.com/apis/design/glossary for -/// detailed terminology. -class Api { - /// The methods of this interface, in unspecified order. - core.List<Method> methods; - - /// Included interfaces. See Mixin. - core.List<Mixin> mixins; - - /// The fully qualified name of this interface, including package name - /// followed by the interface's simple name. - core.String name; - - /// Any metadata attached to the interface. - core.List<Option> options; - - /// Source context for the protocol buffer service represented by this - /// message. - SourceContext sourceContext; - - /// The source syntax of the service. - /// Possible string values are: - /// - "SYNTAX_PROTO2" : Syntax `proto2`. - /// - "SYNTAX_PROTO3" : Syntax `proto3`. - core.String syntax; - - /// A version string for this interface. If specified, must have the form - /// `major-version.minor-version`, as in `1.10`. If the minor version is - /// omitted, it defaults to zero. If the entire version field is empty, the - /// major version is derived from the package name, as outlined below. If the - /// field is not empty, the version in the package name will be verified to be - /// consistent with what is provided here. - /// - /// The versioning schema uses [semantic - /// versioning](http://semver.org) where the major version number - /// indicates a breaking change and the minor version an additive, - /// non-breaking change. Both version numbers are signals to users - /// what to expect from different versions, and should be carefully - /// chosen based on the product plan. - /// - /// The major version is also reflected in the package name of the - /// interface, which must end in `v<major-version>`, as in - /// `google.feature.v1`. For major versions 0 and 1, the suffix can - /// be omitted. Zero major versions must only be used for - /// experimental, non-GA interfaces. - core.String version; - - Api(); - - Api.fromJson(core.Map _json) { - if (_json.containsKey("methods")) { - methods = (_json["methods"] as core.List) - .map<Method>((value) => new Method.fromJson(value)) - .toList(); - } - if (_json.containsKey("mixins")) { - mixins = (_json["mixins"] as core.List) - .map<Mixin>((value) => new Mixin.fromJson(value)) - .toList(); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("options")) { - options = (_json["options"] as core.List) - .map<Option>((value) => new Option.fromJson(value)) - .toList(); - } - if (_json.containsKey("sourceContext")) { - sourceContext = new SourceContext.fromJson(_json["sourceContext"]); - } - if (_json.containsKey("syntax")) { - syntax = _json["syntax"]; - } - if (_json.containsKey("version")) { - version = _json["version"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (methods != null) { - _json["methods"] = methods.map((value) => (value).toJson()).toList(); - } - if (mixins != null) { - _json["mixins"] = mixins.map((value) => (value).toJson()).toList(); - } - if (name != null) { - _json["name"] = name; - } - if (options != null) { - _json["options"] = options.map((value) => (value).toJson()).toList(); - } - if (sourceContext != null) { - _json["sourceContext"] = (sourceContext).toJson(); - } - if (syntax != null) { - _json["syntax"] = syntax; - } - if (version != null) { - _json["version"] = version; - } - return _json; - } -} - -/// Configuration for an anthentication provider, including support for -/// [JSON Web Token -/// (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). -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; - - /// Redirect URL if JWT token is required but no present or is expired. - /// Implement authorizationUrl of securityDefinitions in OpenAPI spec. - core.String authorizationUrl; - - /// The unique identifier of the auth provider. It will be referred to by - /// `AuthRequirement.provider_id`. - /// - /// Example: "bookstore_auth". - core.String id; - - /// Identifies the principal that issued the JWT. See - /// https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 - /// Usually a URL or an email address. - /// - /// Example: https://securetoken.google.com - /// Example: 1234567-compute@developer.gserviceaccount.com - core.String issuer; - - /// URL of the provider's public key set to validate signature of the JWT. See - /// [OpenID - /// Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). - /// Optional if the key set document: - /// - can be retrieved from - /// [OpenID - /// Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html - /// of the issuer. - /// - can be inferred from the email domain of the issuer (e.g. a Google - /// service account). - /// - /// Example: https://www.googleapis.com/oauth2/v1/certs - core.String jwksUri; - - AuthProvider(); - - AuthProvider.fromJson(core.Map _json) { - if (_json.containsKey("audiences")) { - audiences = _json["audiences"]; - } - if (_json.containsKey("authorizationUrl")) { - authorizationUrl = _json["authorizationUrl"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("issuer")) { - issuer = _json["issuer"]; - } - if (_json.containsKey("jwksUri")) { - jwksUri = _json["jwksUri"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (audiences != null) { - _json["audiences"] = audiences; - } - if (authorizationUrl != null) { - _json["authorizationUrl"] = authorizationUrl; - } - if (id != null) { - _json["id"] = id; - } - if (issuer != null) { - _json["issuer"] = issuer; - } - if (jwksUri != null) { - _json["jwksUri"] = jwksUri; - } - return _json; - } -} - -/// User-defined authentication requirements, including support for -/// [JSON Web Token -/// (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). -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 - /// 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; - - /// id from authentication provider. - /// - /// Example: - /// - /// provider_id: bookstore_auth - core.String providerId; - - AuthRequirement(); - - AuthRequirement.fromJson(core.Map _json) { - if (_json.containsKey("audiences")) { - audiences = _json["audiences"]; - } - if (_json.containsKey("providerId")) { - providerId = _json["providerId"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (audiences != null) { - _json["audiences"] = audiences; - } - if (providerId != null) { - _json["providerId"] = providerId; - } - return _json; - } -} - -/// `Authentication` defines the authentication configuration for an API. -/// -/// Example for an API targeted for external use: -/// -/// name: calendar.googleapis.com -/// authentication: -/// providers: -/// - id: google_calendar_auth -/// jwks_uri: https://www.googleapis.com/oauth2/v1/certs -/// issuer: https://securetoken.google.com -/// rules: -/// - selector: "*" -/// requirements: -/// provider_id: google_calendar_auth -class Authentication { - /// Defines a set of authentication providers that a service supports. - core.List<AuthProvider> providers; - - /// A list of authentication rules that apply to individual API methods. - /// - /// **NOTE:** All service configuration rules follow "last one wins" order. - core.List<AuthenticationRule> rules; - - Authentication(); - - Authentication.fromJson(core.Map _json) { - if (_json.containsKey("providers")) { - providers = (_json["providers"] as core.List) - .map<AuthProvider>((value) => new AuthProvider.fromJson(value)) - .toList(); - } - if (_json.containsKey("rules")) { - rules = (_json["rules"] as core.List) - .map<AuthenticationRule>( - (value) => new AuthenticationRule.fromJson(value)) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (providers != null) { - _json["providers"] = providers.map((value) => (value).toJson()).toList(); - } - if (rules != null) { - _json["rules"] = rules.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/// Authentication rules for the service. -/// -/// By default, if a method has any authentication requirements, every request -/// must include a valid credential matching one of the requirements. -/// It's an error to include more than one kind of credential in a single -/// request. -/// -/// If a method doesn't have any auth requirements, request credentials will be -/// ignored. -class AuthenticationRule { - /// Whether to allow requests without a credential. The credential can be - /// an OAuth token, Google cookies (first-party auth) or EndUserCreds. - /// - /// For requests without credentials, if the service control environment is - /// specified, each incoming request **must** be associated with a service - /// consumer. This can be done by passing an API key that belongs to a - /// consumer - /// project. - core.bool allowWithoutCredential; - - /// Configuration for custom authentication. - CustomAuthRequirements customAuth; - - /// The requirements for OAuth credentials. - OAuthRequirements oauth; - - /// Requirements for additional authentication providers. - core.List<AuthRequirement> requirements; - - /// Selects the methods to which this rule applies. - /// - /// Refer to selector for syntax details. - core.String selector; - - AuthenticationRule(); - - AuthenticationRule.fromJson(core.Map _json) { - if (_json.containsKey("allowWithoutCredential")) { - allowWithoutCredential = _json["allowWithoutCredential"]; - } - if (_json.containsKey("customAuth")) { - customAuth = new CustomAuthRequirements.fromJson(_json["customAuth"]); - } - if (_json.containsKey("oauth")) { - oauth = new OAuthRequirements.fromJson(_json["oauth"]); - } - if (_json.containsKey("requirements")) { - requirements = (_json["requirements"] as core.List) - .map<AuthRequirement>((value) => new AuthRequirement.fromJson(value)) - .toList(); - } - if (_json.containsKey("selector")) { - selector = _json["selector"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (allowWithoutCredential != null) { - _json["allowWithoutCredential"] = allowWithoutCredential; - } - if (customAuth != null) { - _json["customAuth"] = (customAuth).toJson(); - } - if (oauth != null) { - _json["oauth"] = (oauth).toJson(); - } - if (requirements != null) { - _json["requirements"] = - requirements.map((value) => (value).toJson()).toList(); - } - if (selector != null) { - _json["selector"] = selector; - } - return _json; - } -} - -/// Configuration of authorization. -/// -/// This section determines the authorization provider, if unspecified, then no -/// authorization check will be done. -/// -/// Example: -/// -/// experimental: -/// authorization: -/// provider: firebaserules.googleapis.com -class AuthorizationConfig { - /// The name of the authorization provider, such as - /// firebaserules.googleapis.com. - core.String provider; - - AuthorizationConfig(); - - AuthorizationConfig.fromJson(core.Map _json) { - if (_json.containsKey("provider")) { - provider = _json["provider"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (provider != null) { - _json["provider"] = provider; - } - return _json; - } -} - -/// Authorization rule for API services. -/// -/// It specifies the permission(s) required for an API element for the overall -/// API request to succeed. It is typically used to mark request message fields -/// that contain the name of the resource and indicates the permissions that -/// will be checked on that resource. -/// -/// For example: -/// -/// package google.storage.v1; -/// -/// message CopyObjectRequest { -/// string source = 1 [ -/// (google.api.authz).permissions = "storage.objects.get"]; -/// -/// string destination = 2 [ -/// (google.api.authz).permissions = -/// "storage.objects.create,storage.objects.update"]; -/// } -class AuthorizationRule { - /// The required permissions. The acceptable values vary depend on the - /// authorization system used. For Google APIs, it should be a comma-separated - /// Google IAM permission values. When multiple permissions are listed, the - /// semantics is not defined by the system. Additional documentation must - /// be provided manually. - core.String permissions; - - /// Selects the API elements to which this rule applies. - /// - /// Refer to selector for syntax details. - core.String selector; - - AuthorizationRule(); - - AuthorizationRule.fromJson(core.Map _json) { - if (_json.containsKey("permissions")) { - permissions = _json["permissions"]; - } - if (_json.containsKey("selector")) { - selector = _json["selector"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (permissions != null) { - _json["permissions"] = permissions; - } - if (selector != null) { - _json["selector"] = selector; - } - return _json; - } -} - -/// `Backend` defines the backend configuration for a service. -class Backend { - /// A list of API backend rules that apply to individual API methods. - /// - /// **NOTE:** All service configuration rules follow "last one wins" order. - core.List<BackendRule> rules; - - Backend(); - - Backend.fromJson(core.Map _json) { - if (_json.containsKey("rules")) { - rules = (_json["rules"] as core.List) - .map<BackendRule>((value) => new BackendRule.fromJson(value)) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (rules != null) { - _json["rules"] = rules.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/// A backend rule provides configuration for an individual API element. -class BackendRule { - /// The address of the API backend. - core.String address; - - /// The number of seconds to wait for a response from a request. The default - /// deadline for gRPC is infinite (no deadline) and HTTP requests is 5 - /// seconds. - core.double deadline; - - /// Minimum deadline in seconds needed for this method. Calls having deadline - /// value lower than this will be rejected. - core.double minDeadline; - - /// Selects the methods to which this rule applies. - /// - /// Refer to selector for syntax details. - core.String selector; - - BackendRule(); - - BackendRule.fromJson(core.Map _json) { - if (_json.containsKey("address")) { - address = _json["address"]; - } - if (_json.containsKey("deadline")) { - deadline = _json["deadline"].toDouble(); - } - if (_json.containsKey("minDeadline")) { - minDeadline = _json["minDeadline"].toDouble(); - } - if (_json.containsKey("selector")) { - selector = _json["selector"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (address != null) { - _json["address"] = address; - } - if (deadline != null) { - _json["deadline"] = deadline; - } - if (minDeadline != null) { - _json["minDeadline"] = minDeadline; - } - if (selector != null) { - _json["selector"] = selector; - } - return _json; - } -} - -/// Billing related configuration of the service. -/// -/// The following example shows how to configure monitored resources and metrics -/// for billing: -/// -/// monitored_resources: -/// - type: library.googleapis.com/branch -/// labels: -/// - key: /city -/// description: The city where the library branch is located in. -/// - key: /name -/// description: The name of the branch. -/// metrics: -/// - name: library.googleapis.com/book/borrowed_count -/// metric_kind: DELTA -/// value_type: INT64 -/// billing: -/// consumer_destinations: -/// - monitored_resource: library.googleapis.com/branch -/// metrics: -/// - library.googleapis.com/book/borrowed_count -class Billing { - /// Billing configurations for sending metrics to the consumer project. - /// There can be multiple consumer destinations per service, each one must - /// have - /// a different monitored resource type. A metric can be used in at most - /// one consumer destination. - core.List<BillingDestination> consumerDestinations; - - Billing(); - - Billing.fromJson(core.Map _json) { - if (_json.containsKey("consumerDestinations")) { - consumerDestinations = (_json["consumerDestinations"] as core.List) - .map<BillingDestination>( - (value) => new BillingDestination.fromJson(value)) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (consumerDestinations != null) { - _json["consumerDestinations"] = - consumerDestinations.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/// Configuration of a specific billing destination (Currently only support -/// bill against consumer project). -class BillingDestination { - /// Names of the metrics to report to this billing destination. - /// Each name must be defined in Service.metrics section. - core.List<core.String> metrics; - - /// The monitored resource type. The type must be defined in - /// Service.monitored_resources section. - core.String monitoredResource; - - BillingDestination(); - - BillingDestination.fromJson(core.Map _json) { - if (_json.containsKey("metrics")) { - metrics = (_json["metrics"] as core.List).cast<core.String>(); - } - if (_json.containsKey("monitoredResource")) { - monitoredResource = _json["monitoredResource"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (metrics != null) { - _json["metrics"] = metrics; - } - if (monitoredResource != null) { - _json["monitoredResource"] = monitoredResource; - } - return _json; - } -} - -/// The request message for Operations.CancelOperation. -class CancelOperationRequest { - CancelOperationRequest(); - - CancelOperationRequest.fromJson(core.Map _json) {} - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - return _json; - } -} - -/// `Context` defines which contexts an API requests. -/// -/// Example: -/// -/// context: -/// rules: -/// - selector: "*" -/// requested: -/// - google.rpc.context.ProjectContext -/// - google.rpc.context.OriginContext -/// -/// The above specifies that all methods in the API request -/// `google.rpc.context.ProjectContext` and -/// `google.rpc.context.OriginContext`. -/// -/// Available context types are defined in package -/// `google.rpc.context`. -/// -/// This also provides mechanism to whitelist any protobuf message extension -/// that -/// can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and -/// “x-goog-ext-<extension_id>-jspb” format. For example, list any service -/// specific protobuf types that can appear in grpc metadata as follows in your -/// yaml file: -/// -/// Example: -/// -/// context: -/// rules: -/// - selector: "google.example.library.v1.LibraryService.CreateBook" -/// allowed_request_extensions: -/// - google.foo.v1.NewExtension -/// allowed_response_extensions: -/// - google.foo.v1.NewExtension -/// -/// You can also specify extension ID instead of fully qualified extension name -/// here. -class Context { - /// A list of RPC context rules that apply to individual API methods. - /// - /// **NOTE:** All service configuration rules follow "last one wins" order. - core.List<ContextRule> rules; - - Context(); - - Context.fromJson(core.Map _json) { - if (_json.containsKey("rules")) { - rules = (_json["rules"] as core.List) - .map<ContextRule>((value) => new ContextRule.fromJson(value)) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (rules != null) { - _json["rules"] = rules.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/// A context rule provides information about the context for an individual API -/// element. -class ContextRule { - /// A list of full type names or extension IDs of extensions allowed in grpc - /// side channel from client to backend. - core.List<core.String> allowedRequestExtensions; - - /// A list of full type names or extension IDs of extensions allowed in grpc - /// side channel from backend to client. - core.List<core.String> allowedResponseExtensions; - - /// A list of full type names of provided contexts. - core.List<core.String> provided; - - /// A list of full type names of requested contexts. - core.List<core.String> requested; - - /// Selects the methods to which this rule applies. - /// - /// Refer to selector for syntax details. - core.String selector; - - ContextRule(); - - ContextRule.fromJson(core.Map _json) { - if (_json.containsKey("allowedRequestExtensions")) { - allowedRequestExtensions = - (_json["allowedRequestExtensions"] as core.List).cast<core.String>(); - } - if (_json.containsKey("allowedResponseExtensions")) { - allowedResponseExtensions = - (_json["allowedResponseExtensions"] as core.List).cast<core.String>(); - } - if (_json.containsKey("provided")) { - provided = (_json["provided"] as core.List).cast<core.String>(); - } - if (_json.containsKey("requested")) { - requested = (_json["requested"] as core.List).cast<core.String>(); - } - if (_json.containsKey("selector")) { - selector = _json["selector"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (allowedRequestExtensions != null) { - _json["allowedRequestExtensions"] = allowedRequestExtensions; - } - if (allowedResponseExtensions != null) { - _json["allowedResponseExtensions"] = allowedResponseExtensions; - } - if (provided != null) { - _json["provided"] = provided; - } - if (requested != null) { - _json["requested"] = requested; - } - if (selector != null) { - _json["selector"] = selector; - } - return _json; - } -} - -/// Selects and configures the service controller used by the service. The -/// service controller handles features like abuse, quota, billing, logging, -/// monitoring, etc. -class Control { - /// The service control environment to use. If empty, no control plane - /// feature (like quota and billing) will be enabled. - core.String environment; - - Control(); - - Control.fromJson(core.Map _json) { - if (_json.containsKey("environment")) { - environment = _json["environment"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (environment != null) { - _json["environment"] = environment; - } - return _json; - } -} - -/// Configuration for a custom authentication provider. -class CustomAuthRequirements { - /// A configuration string containing connection information for the - /// authentication provider, typically formatted as a SmartService string - /// (go/smartservice). - core.String provider; - - CustomAuthRequirements(); - - CustomAuthRequirements.fromJson(core.Map _json) { - if (_json.containsKey("provider")) { - provider = _json["provider"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (provider != null) { - _json["provider"] = provider; - } - return _json; - } -} - -/// Customize service error responses. For example, list any service -/// specific protobuf types that can appear in error detail lists of -/// error responses. -/// -/// Example: -/// -/// custom_error: -/// types: -/// - google.foo.v1.CustomError -/// - google.foo.v1.AnotherError -class CustomError { - /// The list of custom error rules that apply to individual API messages. - /// - /// **NOTE:** All service configuration rules follow "last one wins" order. - core.List<CustomErrorRule> rules; - - /// The list of custom error detail types, e.g. 'google.foo.v1.CustomError'. - core.List<core.String> types; - - CustomError(); - - CustomError.fromJson(core.Map _json) { - if (_json.containsKey("rules")) { - rules = (_json["rules"] as core.List) - .map<CustomErrorRule>((value) => new CustomErrorRule.fromJson(value)) - .toList(); - } - if (_json.containsKey("types")) { - types = (_json["types"] as core.List).cast<core.String>(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (rules != null) { - _json["rules"] = rules.map((value) => (value).toJson()).toList(); - } - if (types != null) { - _json["types"] = types; - } - return _json; - } -} - -/// A custom error rule. -class CustomErrorRule { - /// Mark this message as possible payload in error response. Otherwise, - /// objects of this type will be filtered when they appear in error payload. - core.bool isErrorType; - - /// Selects messages to which this rule applies. - /// - /// Refer to selector for syntax details. - core.String selector; - - CustomErrorRule(); - - CustomErrorRule.fromJson(core.Map _json) { - if (_json.containsKey("isErrorType")) { - isErrorType = _json["isErrorType"]; - } - if (_json.containsKey("selector")) { - selector = _json["selector"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (isErrorType != null) { - _json["isErrorType"] = isErrorType; - } - if (selector != null) { - _json["selector"] = selector; - } - return _json; - } -} - -/// A custom pattern is used for defining custom HTTP verb. -class CustomHttpPattern { - /// The name of this custom HTTP verb. - core.String kind; - - /// The path matched by this custom verb. - core.String path; - - CustomHttpPattern(); - - CustomHttpPattern.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("path")) { - path = _json["path"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (kind != null) { - _json["kind"] = kind; - } - if (path != null) { - _json["path"] = path; - } - return _json; - } -} - -/// Request message for DisableService. -class DisableServiceRequest { - DisableServiceRequest(); - - DisableServiceRequest.fromJson(core.Map _json) {} - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - return _json; - } -} - -/// `Documentation` provides the information for describing a service. -/// -/// Example: -/// <pre><code>documentation: -/// summary: > -/// The Google Calendar API gives access -/// to most calendar features. -/// pages: -/// - name: Overview -/// content: (== include google/foo/overview.md ==) -/// - name: Tutorial -/// content: (== include google/foo/tutorial.md ==) -/// subpages; -/// - name: Java -/// content: (== include google/foo/tutorial_java.md ==) -/// rules: -/// - selector: google.calendar.Calendar.Get -/// description: > -/// ... -/// - selector: google.calendar.Calendar.Put -/// description: > -/// ... -/// </code></pre> -/// Documentation is provided in markdown syntax. In addition to -/// standard markdown features, definition lists, tables and fenced -/// code blocks are supported. Section headers can be provided and are -/// interpreted relative to the section nesting of the context where -/// a documentation fragment is embedded. -/// -/// Documentation from the IDL is merged with documentation defined -/// via the config at normalization time, where documentation provided -/// by config rules overrides IDL provided. -/// -/// A number of constructs specific to the API platform are supported -/// in documentation text. -/// -/// In order to reference a proto element, the following -/// notation can be used: -/// <pre><code>[fully.qualified.proto.name][]</code></pre> -/// To override the display text used for the link, this can be used: -/// <pre><code>[display text][fully.qualified.proto.name]</code></pre> -/// Text can be excluded from doc using the following notation: -/// <pre><code>(-- internal comment --)</code></pre> -/// Comments can be made conditional using a visibility label. The below -/// text will be only rendered if the `BETA` label is available: -/// <pre><code>(--BETA: comment for BETA users --)</code></pre> -/// A few directives are available in documentation. Note that -/// directives must appear on a single line to be properly -/// identified. The `include` directive includes a markdown file from -/// an external source: -/// <pre><code>(== include path/to/file ==)</code></pre> -/// The `resource_for` directive marks a message to be the resource of -/// a collection in REST view. If it is not specified, tools attempt -/// to infer the resource from the operations in a collection: -/// <pre><code>(== resource_for v1.shelves.books ==)</code></pre> -/// The directive `suppress_warning` does not directly affect documentation -/// and is documented together with service config validation. -class Documentation { - /// The URL to the root of documentation. - core.String documentationRootUrl; - - /// Declares a single overview page. For example: - /// <pre><code>documentation: - /// summary: ... - /// overview: (== include overview.md ==) - /// </code></pre> - /// This is a shortcut for the following declaration (using pages style): - /// <pre><code>documentation: - /// summary: ... - /// pages: - /// - name: Overview - /// content: (== include overview.md ==) - /// </code></pre> - /// Note: you cannot specify both `overview` field and `pages` field. - core.String overview; - - /// The top level pages for the documentation set. - core.List<Page> pages; - - /// A list of documentation rules that apply to individual API elements. - /// - /// **NOTE:** All service configuration rules follow "last one wins" order. - core.List<DocumentationRule> rules; - - /// A short summary of what the service does. Can only be provided by - /// plain text. - core.String summary; - - Documentation(); - - Documentation.fromJson(core.Map _json) { - if (_json.containsKey("documentationRootUrl")) { - documentationRootUrl = _json["documentationRootUrl"]; - } - if (_json.containsKey("overview")) { - overview = _json["overview"]; - } - if (_json.containsKey("pages")) { - pages = (_json["pages"] as core.List) - .map<Page>((value) => new Page.fromJson(value)) - .toList(); - } - if (_json.containsKey("rules")) { - rules = (_json["rules"] as core.List) - .map<DocumentationRule>( - (value) => new DocumentationRule.fromJson(value)) - .toList(); - } - if (_json.containsKey("summary")) { - summary = _json["summary"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (documentationRootUrl != null) { - _json["documentationRootUrl"] = documentationRootUrl; - } - if (overview != null) { - _json["overview"] = overview; - } - if (pages != null) { - _json["pages"] = pages.map((value) => (value).toJson()).toList(); - } - if (rules != null) { - _json["rules"] = rules.map((value) => (value).toJson()).toList(); - } - if (summary != null) { - _json["summary"] = summary; - } - return _json; - } -} - -/// A documentation rule provides information about individual API elements. -class DocumentationRule { - /// Deprecation description of the selected element(s). It can be provided if - /// an - /// element is marked as `deprecated`. - core.String deprecationDescription; - - /// Description of the selected API(s). - core.String description; - - /// The selector is a comma-separated list of patterns. Each pattern is a - /// qualified name of the element which may end in "*", indicating a wildcard. - /// Wildcards are only allowed at the end and for a whole component of the - /// qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". To - /// specify a default for all applicable elements, the whole pattern "*" - /// is used. - core.String selector; - - DocumentationRule(); - - DocumentationRule.fromJson(core.Map _json) { - if (_json.containsKey("deprecationDescription")) { - deprecationDescription = _json["deprecationDescription"]; - } - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("selector")) { - selector = _json["selector"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (deprecationDescription != null) { - _json["deprecationDescription"] = deprecationDescription; - } - if (description != null) { - _json["description"] = description; - } - if (selector != null) { - _json["selector"] = selector; - } - 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<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - return _json; - } -} - -/// Request message for EnableService. -class EnableServiceRequest { - EnableServiceRequest(); - - EnableServiceRequest.fromJson(core.Map _json) {} - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - return _json; - } -} - -/// The EnabledState reflects whether the service has been explicitly enabled or -/// not. -class EnabledState { - /// Whether or not the service has been explicitly enabled. - /// Possible string values are: - /// - "ENABLED_UNSPECIFIED" : The default value, which indicates that the - /// enabled state of the service - /// is unknown or unspecified. - /// - "DISABLED" : The service has not been made available for use for the - /// consumer. - /// - "ENABLED" : The service was explicitly enabled for use by a consumer. - core.String state; - - EnabledState(); - - EnabledState.fromJson(core.Map _json) { - if (_json.containsKey("state")) { - state = _json["state"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (state != null) { - _json["state"] = state; - } - return _json; - } -} - -/// `Endpoint` describes a network endpoint that serves a set of APIs. -/// A service may expose any number of endpoints, and all endpoints share the -/// same service configuration, such as quota configuration and monitoring -/// configuration. -/// -/// Example service configuration: -/// -/// name: library-example.googleapis.com -/// endpoints: -/// # Below entry makes 'google.example.library.v1.Library' -/// # API be served from endpoint address library-example.googleapis.com. -/// # It also allows HTTP OPTIONS calls to be passed to the backend, for -/// # it to decide whether the subsequent cross-origin request is -/// # allowed to proceed. -/// - name: library-example.googleapis.com -/// allow_cors: true -class Endpoint { - /// DEPRECATED: This field is no longer supported. Instead of using aliases, - /// please specify multiple google.api.Endpoint for each of the intended - /// aliases. - /// - /// Additional names that this endpoint will be hosted on. - core.List<core.String> aliases; - - /// Allowing - /// [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka - /// cross-domain traffic, would allow the backends served from this endpoint - /// to - /// receive and respond to HTTP OPTIONS requests. The response will be used by - /// the browser to determine whether the subsequent cross-origin request is - /// allowed to proceed. - core.bool allowCors; - - /// The list of features enabled on this endpoint. - core.List<core.String> features; - - /// The canonical name of this endpoint. - core.String name; - - /// The specification of an Internet routable address of API frontend that - /// will - /// handle requests to this [API - /// Endpoint](https://cloud.google.com/apis/design/glossary). - /// It should be either a valid IPv4 address or a fully-qualified domain name. - /// For example, "8.8.8.8" or "myservice.appspot.com". - core.String target; - - Endpoint(); - - Endpoint.fromJson(core.Map _json) { - if (_json.containsKey("aliases")) { - aliases = (_json["aliases"] as core.List).cast<core.String>(); - } - if (_json.containsKey("allowCors")) { - allowCors = _json["allowCors"]; - } - if (_json.containsKey("features")) { - features = (_json["features"] as core.List).cast<core.String>(); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("target")) { - target = _json["target"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (aliases != null) { - _json["aliases"] = aliases; - } - if (allowCors != null) { - _json["allowCors"] = allowCors; - } - if (features != null) { - _json["features"] = features; - } - if (name != null) { - _json["name"] = name; - } - if (target != null) { - _json["target"] = target; - } - return _json; - } -} - -/// Enum type definition. -class Enum { - /// Enum value definitions. - core.List<EnumValue> enumvalue; - - /// Enum type name. - core.String name; - - /// Protocol buffer options. - core.List<Option> options; - - /// The source context. - SourceContext sourceContext; - - /// The source syntax. - /// Possible string values are: - /// - "SYNTAX_PROTO2" : Syntax `proto2`. - /// - "SYNTAX_PROTO3" : Syntax `proto3`. - core.String syntax; - - Enum(); - - Enum.fromJson(core.Map _json) { - if (_json.containsKey("enumvalue")) { - enumvalue = (_json["enumvalue"] as core.List) - .map<EnumValue>((value) => new EnumValue.fromJson(value)) - .toList(); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("options")) { - options = (_json["options"] as core.List) - .map<Option>((value) => new Option.fromJson(value)) - .toList(); - } - if (_json.containsKey("sourceContext")) { - sourceContext = new SourceContext.fromJson(_json["sourceContext"]); - } - if (_json.containsKey("syntax")) { - syntax = _json["syntax"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (enumvalue != null) { - _json["enumvalue"] = enumvalue.map((value) => (value).toJson()).toList(); - } - if (name != null) { - _json["name"] = name; - } - if (options != null) { - _json["options"] = options.map((value) => (value).toJson()).toList(); - } - if (sourceContext != null) { - _json["sourceContext"] = (sourceContext).toJson(); - } - if (syntax != null) { - _json["syntax"] = syntax; - } - return _json; - } -} - -/// Enum value definition. -class EnumValue { - /// Enum value name. - core.String name; - - /// Enum value number. - core.int number; - - /// Protocol buffer options. - core.List<Option> options; - - EnumValue(); - - EnumValue.fromJson(core.Map _json) { - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("number")) { - number = _json["number"]; - } - if (_json.containsKey("options")) { - options = (_json["options"] as core.List) - .map<Option>((value) => new Option.fromJson(value)) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (name != null) { - _json["name"] = name; - } - if (number != null) { - _json["number"] = number; - } - if (options != null) { - _json["options"] = options.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/// Experimental service configuration. These configuration options can -/// only be used by whitelisted users. -class Experimental { - /// Authorization configuration. - AuthorizationConfig authorization; - - Experimental(); - - Experimental.fromJson(core.Map _json) { - if (_json.containsKey("authorization")) { - authorization = new AuthorizationConfig.fromJson(_json["authorization"]); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (authorization != null) { - _json["authorization"] = (authorization).toJson(); - } - return _json; - } -} - -/// A single field of a message type. -class Field { - /// The field cardinality. - /// Possible string values are: - /// - "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; - - /// The string value of the default value of this field. Proto2 syntax only. - core.String defaultValue; - - /// The field JSON name. - core.String jsonName; - - /// The field type. - /// Possible string values are: - /// - "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. - core.String name; - - /// The field number. - core.int number; - - /// 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; - - /// The protocol buffer options. - core.List<Option> options; - - /// Whether to use alternative packed wire representation. - core.bool packed; - - /// The field type URL, without the scheme, for message or enumeration - /// types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. - core.String typeUrl; - - Field(); - - Field.fromJson(core.Map _json) { - if (_json.containsKey("cardinality")) { - cardinality = _json["cardinality"]; - } - if (_json.containsKey("defaultValue")) { - defaultValue = _json["defaultValue"]; - } - if (_json.containsKey("jsonName")) { - jsonName = _json["jsonName"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("number")) { - number = _json["number"]; - } - if (_json.containsKey("oneofIndex")) { - oneofIndex = _json["oneofIndex"]; - } - if (_json.containsKey("options")) { - options = (_json["options"] as core.List) - .map<Option>((value) => new Option.fromJson(value)) - .toList(); - } - if (_json.containsKey("packed")) { - packed = _json["packed"]; - } - if (_json.containsKey("typeUrl")) { - typeUrl = _json["typeUrl"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (cardinality != null) { - _json["cardinality"] = cardinality; - } - if (defaultValue != null) { - _json["defaultValue"] = defaultValue; - } - if (jsonName != null) { - _json["jsonName"] = jsonName; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (number != null) { - _json["number"] = number; - } - if (oneofIndex != null) { - _json["oneofIndex"] = oneofIndex; - } - if (options != null) { - _json["options"] = options.map((value) => (value).toJson()).toList(); - } - if (packed != null) { - _json["packed"] = packed; - } - if (typeUrl != null) { - _json["typeUrl"] = typeUrl; - } - return _json; - } -} - -/// `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: 3 -/// name: calendar.googleapis.com -/// title: Google Calendar API -/// apis: -/// - name: google.calendar.v3.Calendar -/// authentication: -/// providers: -/// - id: google_calendar_auth -/// jwks_uri: https://www.googleapis.com/oauth2/v1/certs -/// issuer: https://securetoken.google.com -/// rules: -/// - selector: "*" -/// requirements: -/// provider_id: google_calendar_auth -class GoogleApiService { - /// A list of API interfaces exported by this service. Only the `name` field - /// of the google.protobuf.Api needs to be provided by the configuration - /// author, as the remaining fields will be derived from the IDL during the - /// normalization process. It is an error to specify an API interface here - /// which cannot be resolved against the associated IDL files. - core.List<Api> apis; - - /// Auth configuration. - Authentication authentication; - - /// API backend configuration. - Backend backend; - - /// Billing configuration. - Billing billing; - - /// The semantic version of the service configuration. The config version - /// affects the interpretation of the service configuration. For example, - /// certain features are enabled by default for certain config versions. - /// The latest config version is `3`. - core.int configVersion; - - /// Context configuration. - Context context; - - /// Configuration for the service control plane. - Control control; - - /// Custom error configuration. - CustomError customError; - - /// Additional API documentation. - Documentation documentation; - - /// Configuration for network endpoints. If this is empty, then an endpoint - /// with the same name as the service is automatically generated to service - /// all - /// defined APIs. - core.List<Endpoint> endpoints; - - /// A list of all enum types included in this API service. Enums - /// referenced directly or indirectly by the `apis` are automatically - /// included. Enums which are not referenced but shall be included - /// should be listed here by name. Example: - /// - /// enums: - /// - name: google.someapi.v1.SomeEnum - core.List<Enum> enums; - - /// Experimental configuration. - Experimental experimental; - - /// HTTP configuration. - Http http; - - /// A unique ID for a specific instance of this message, typically assigned - /// by the client for tracking purpose. If empty, the server may choose to - /// generate one instead. - core.String id; - - /// Logging configuration. - Logging logging; - - /// Defines the logs used by this service. - core.List<LogDescriptor> logs; - - /// Defines the metrics used by this service. - core.List<MetricDescriptor> metrics; - - /// Defines the monitored resources used by this service. This is required - /// by the Service.monitoring and Service.logging configurations. - core.List<MonitoredResourceDescriptor> monitoredResources; - - /// Monitoring configuration. - Monitoring monitoring; - - /// The DNS address at which this service is available, - /// e.g. `calendar.googleapis.com`. - core.String name; - - /// The Google project that owns this service. - core.String producerProjectId; - - /// Quota configuration. - Quota quota; - - /// Output only. The source information for this configuration if available. - SourceInfo sourceInfo; - - /// System parameter configuration. - SystemParameters systemParameters; - - /// A list of all proto message types included in this API service. - /// It serves similar purpose as [google.api.Service.types], except that - /// these types are not needed by user-defined APIs. Therefore, they will not - /// show up in the generated discovery doc. This field should only be used - /// to define system APIs in ESF. - core.List<Type> systemTypes; - - /// The product title for this service. - core.String title; - - /// A list of all proto message types included in this API service. - /// Types referenced directly or indirectly by the `apis` are - /// automatically included. Messages which are not referenced but - /// shall be included, such as types used by the `google.protobuf.Any` type, - /// should be listed here by name. Example: - /// - /// types: - /// - name: google.protobuf.Int32 - core.List<Type> types; - - /// Configuration controlling usage of this service. - Usage usage; - - /// API visibility configuration. - Visibility visibility; - - GoogleApiService(); - - GoogleApiService.fromJson(core.Map _json) { - if (_json.containsKey("apis")) { - apis = (_json["apis"] as core.List) - .map<Api>((value) => new Api.fromJson(value)) - .toList(); - } - if (_json.containsKey("authentication")) { - authentication = new Authentication.fromJson(_json["authentication"]); - } - if (_json.containsKey("backend")) { - backend = new Backend.fromJson(_json["backend"]); - } - if (_json.containsKey("billing")) { - billing = new Billing.fromJson(_json["billing"]); - } - if (_json.containsKey("configVersion")) { - configVersion = _json["configVersion"]; - } - if (_json.containsKey("context")) { - context = new Context.fromJson(_json["context"]); - } - if (_json.containsKey("control")) { - control = new Control.fromJson(_json["control"]); - } - if (_json.containsKey("customError")) { - customError = new CustomError.fromJson(_json["customError"]); - } - if (_json.containsKey("documentation")) { - documentation = new Documentation.fromJson(_json["documentation"]); - } - if (_json.containsKey("endpoints")) { - endpoints = (_json["endpoints"] as core.List) - .map<Endpoint>((value) => new Endpoint.fromJson(value)) - .toList(); - } - if (_json.containsKey("enums")) { - enums = (_json["enums"] as core.List) - .map<Enum>((value) => new Enum.fromJson(value)) - .toList(); - } - if (_json.containsKey("experimental")) { - experimental = new Experimental.fromJson(_json["experimental"]); - } - if (_json.containsKey("http")) { - http = new Http.fromJson(_json["http"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("logging")) { - logging = new Logging.fromJson(_json["logging"]); - } - if (_json.containsKey("logs")) { - logs = (_json["logs"] as core.List) - .map<LogDescriptor>((value) => new LogDescriptor.fromJson(value)) - .toList(); - } - if (_json.containsKey("metrics")) { - metrics = (_json["metrics"] as core.List) - .map<MetricDescriptor>( - (value) => new MetricDescriptor.fromJson(value)) - .toList(); - } - if (_json.containsKey("monitoredResources")) { - monitoredResources = (_json["monitoredResources"] as core.List) - .map<MonitoredResourceDescriptor>( - (value) => new MonitoredResourceDescriptor.fromJson(value)) - .toList(); - } - if (_json.containsKey("monitoring")) { - monitoring = new Monitoring.fromJson(_json["monitoring"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("producerProjectId")) { - producerProjectId = _json["producerProjectId"]; - } - if (_json.containsKey("quota")) { - quota = new Quota.fromJson(_json["quota"]); - } - if (_json.containsKey("sourceInfo")) { - sourceInfo = new SourceInfo.fromJson(_json["sourceInfo"]); - } - if (_json.containsKey("systemParameters")) { - systemParameters = - new SystemParameters.fromJson(_json["systemParameters"]); - } - if (_json.containsKey("systemTypes")) { - systemTypes = (_json["systemTypes"] as core.List) - .map<Type>((value) => new Type.fromJson(value)) - .toList(); - } - if (_json.containsKey("title")) { - title = _json["title"]; - } - if (_json.containsKey("types")) { - types = (_json["types"] as core.List) - .map<Type>((value) => new Type.fromJson(value)) - .toList(); - } - if (_json.containsKey("usage")) { - usage = new Usage.fromJson(_json["usage"]); - } - if (_json.containsKey("visibility")) { - visibility = new Visibility.fromJson(_json["visibility"]); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (apis != null) { - _json["apis"] = apis.map((value) => (value).toJson()).toList(); - } - if (authentication != null) { - _json["authentication"] = (authentication).toJson(); - } - if (backend != null) { - _json["backend"] = (backend).toJson(); - } - if (billing != null) { - _json["billing"] = (billing).toJson(); - } - if (configVersion != null) { - _json["configVersion"] = configVersion; - } - if (context != null) { - _json["context"] = (context).toJson(); - } - if (control != null) { - _json["control"] = (control).toJson(); - } - if (customError != null) { - _json["customError"] = (customError).toJson(); - } - if (documentation != null) { - _json["documentation"] = (documentation).toJson(); - } - if (endpoints != null) { - _json["endpoints"] = endpoints.map((value) => (value).toJson()).toList(); - } - if (enums != null) { - _json["enums"] = enums.map((value) => (value).toJson()).toList(); - } - if (experimental != null) { - _json["experimental"] = (experimental).toJson(); - } - if (http != null) { - _json["http"] = (http).toJson(); - } - if (id != null) { - _json["id"] = id; - } - if (logging != null) { - _json["logging"] = (logging).toJson(); - } - if (logs != null) { - _json["logs"] = logs.map((value) => (value).toJson()).toList(); - } - if (metrics != null) { - _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); - } - if (monitoredResources != null) { - _json["monitoredResources"] = - monitoredResources.map((value) => (value).toJson()).toList(); - } - if (monitoring != null) { - _json["monitoring"] = (monitoring).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (producerProjectId != null) { - _json["producerProjectId"] = producerProjectId; - } - if (quota != null) { - _json["quota"] = (quota).toJson(); - } - if (sourceInfo != null) { - _json["sourceInfo"] = (sourceInfo).toJson(); - } - if (systemParameters != null) { - _json["systemParameters"] = (systemParameters).toJson(); - } - if (systemTypes != null) { - _json["systemTypes"] = - systemTypes.map((value) => (value).toJson()).toList(); - } - if (title != null) { - _json["title"] = title; - } - if (types != null) { - _json["types"] = types.map((value) => (value).toJson()).toList(); - } - if (usage != null) { - _json["usage"] = (usage).toJson(); - } - if (visibility != null) { - _json["visibility"] = (visibility).toJson(); - } - return _json; - } -} - -/// Defines the HTTP configuration for an API service. It contains a list of -/// HttpRule, each specifying the mapping of an RPC method -/// to one or more HTTP REST API methods. -class Http { - /// When set to true, URL path parmeters will be fully URI-decoded except in - /// cases of single segment matches in reserved expansion, where "%2F" will be - /// left encoded. - /// - /// The default behavior is to not decode RFC 6570 reserved characters in - /// multi - /// segment matches. - core.bool fullyDecodeReservedExpansion; - - /// A list of HTTP configuration rules that apply to individual API methods. - /// - /// **NOTE:** All service configuration rules follow "last one wins" order. - core.List<HttpRule> rules; - - Http(); - - Http.fromJson(core.Map _json) { - if (_json.containsKey("fullyDecodeReservedExpansion")) { - fullyDecodeReservedExpansion = _json["fullyDecodeReservedExpansion"]; - } - if (_json.containsKey("rules")) { - rules = (_json["rules"] as core.List) - .map<HttpRule>((value) => new HttpRule.fromJson(value)) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (fullyDecodeReservedExpansion != null) { - _json["fullyDecodeReservedExpansion"] = fullyDecodeReservedExpansion; - } - if (rules != null) { - _json["rules"] = rules.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/// `HttpRule` defines the mapping of an RPC method to one or more HTTP -/// REST API methods. The mapping specifies how different portions of the RPC -/// request message are mapped to URL path, URL query parameters, and -/// HTTP request body. The mapping is typically specified as an -/// `google.api.http` annotation on the RPC method, -/// see "google/api/annotations.proto" for details. -/// -/// The mapping consists of a field specifying the path template and -/// method kind. The path template can refer to fields in the request -/// message, as in the example below which describes a REST GET -/// operation on a resource collection of messages: -/// -/// -/// service Messaging { -/// rpc GetMessage(GetMessageRequest) returns (Message) { -/// option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}"; -/// } -/// } -/// message GetMessageRequest { -/// message SubMessage { -/// string subfield = 1; -/// } -/// string message_id = 1; // mapped to the URL -/// SubMessage sub = 2; // `sub.subfield` is url-mapped -/// } -/// message Message { -/// string text = 1; // content of the resource -/// } -/// -/// The same http annotation can alternatively be expressed inside the -/// `GRPC API Configuration` YAML file. -/// -/// http: -/// rules: -/// - selector: <proto_package_name>.Messaging.GetMessage -/// get: /v1/messages/{message_id}/{sub.subfield} -/// -/// This definition enables an automatic, bidrectional mapping of HTTP -/// JSON to RPC. Example: -/// -/// HTTP | RPC -/// -----|----- -/// `GET /v1/messages/123456/foo` | `GetMessage(message_id: "123456" sub: -/// SubMessage(subfield: "foo"))` -/// -/// In general, not only fields but also field paths can be referenced -/// from a path pattern. Fields mapped to the path pattern cannot be -/// repeated and must have a primitive (non-message) type. -/// -/// Any fields in the request message which are not bound by the path -/// pattern automatically become (optional) HTTP query -/// parameters. Assume the following definition of the request message: -/// -/// -/// service Messaging { -/// rpc GetMessage(GetMessageRequest) returns (Message) { -/// option (google.api.http).get = "/v1/messages/{message_id}"; -/// } -/// } -/// message GetMessageRequest { -/// message SubMessage { -/// string subfield = 1; -/// } -/// string message_id = 1; // mapped to the URL -/// int64 revision = 2; // becomes a parameter -/// SubMessage sub = 3; // `sub.subfield` becomes a parameter -/// } -/// -/// -/// This enables a HTTP JSON to RPC mapping as below: -/// -/// HTTP | RPC -/// -----|----- -/// `GET /v1/messages/123456?revision=2&sub.subfield=foo` | -/// `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: -/// "foo"))` -/// -/// Note that fields which are mapped to HTTP parameters must have a -/// primitive type or a repeated primitive type. Message types are not -/// allowed. In the case of a repeated type, the parameter can be -/// repeated in the URL, as in `...?param=A¶m=B`. -/// -/// For HTTP method kinds which allow a request body, the `body` field -/// specifies the mapping. Consider a REST update method on the -/// message resource collection: -/// -/// -/// service Messaging { -/// rpc UpdateMessage(UpdateMessageRequest) returns (Message) { -/// option (google.api.http) = { -/// put: "/v1/messages/{message_id}" -/// body: "message" -/// }; -/// } -/// } -/// message UpdateMessageRequest { -/// string message_id = 1; // mapped to the URL -/// Message message = 2; // mapped to the body -/// } -/// -/// -/// The following HTTP JSON to RPC mapping is enabled, where the -/// representation of the JSON in the request body is determined by -/// protos JSON encoding: -/// -/// HTTP | RPC -/// -----|----- -/// `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: -/// "123456" message { text: "Hi!" })` -/// -/// The special name `*` can be used in the body mapping to define that -/// every field not bound by the path template should be mapped to the -/// request body. This enables the following alternative definition of -/// the update method: -/// -/// service Messaging { -/// rpc UpdateMessage(Message) returns (Message) { -/// option (google.api.http) = { -/// put: "/v1/messages/{message_id}" -/// body: "*" -/// }; -/// } -/// } -/// message Message { -/// string message_id = 1; -/// string text = 2; -/// } -/// -/// -/// The following HTTP JSON to RPC mapping is enabled: -/// -/// HTTP | RPC -/// -----|----- -/// `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: -/// "123456" text: "Hi!")` -/// -/// Note that when using `*` in the body mapping, it is not possible to -/// have HTTP parameters, as all fields not bound by the path end in -/// the body. This makes this option more rarely used in practice of -/// defining REST APIs. The common usage of `*` is in custom methods -/// which don't use the URL at all for transferring data. -/// -/// It is possible to define multiple HTTP methods for one RPC by using -/// the `additional_bindings` option. Example: -/// -/// service Messaging { -/// rpc GetMessage(GetMessageRequest) returns (Message) { -/// option (google.api.http) = { -/// get: "/v1/messages/{message_id}" -/// additional_bindings { -/// get: "/v1/users/{user_id}/messages/{message_id}" -/// } -/// }; -/// } -/// } -/// message GetMessageRequest { -/// string message_id = 1; -/// string user_id = 2; -/// } -/// -/// -/// This enables the following two alternative HTTP JSON to RPC -/// mappings: -/// -/// HTTP | RPC -/// -----|----- -/// `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` -/// `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: -/// "123456")` -/// -/// # Rules for HTTP mapping -/// -/// The rules for mapping HTTP path, query parameters, and body fields -/// to the request message are as follows: -/// -/// 1. The `body` field specifies either `*` or a field path, or is -/// omitted. If omitted, it indicates there is no HTTP request body. -/// 2. Leaf fields (recursive expansion of nested messages in the -/// request) can be classified into three types: -/// (a) Matched in the URL template. -/// (b) Covered by body (if body is `*`, everything except (a) fields; -/// else everything under the body field) -/// (c) All other fields. -/// 3. URL query parameters found in the HTTP request are mapped to (c) fields. -/// 4. Any body sent with an HTTP request can contain only (b) fields. -/// -/// The syntax of the path template is as follows: -/// -/// Template = "/" Segments [ Verb ] ; -/// Segments = Segment { "/" Segment } ; -/// Segment = "*" | "**" | LITERAL | Variable ; -/// Variable = "{" FieldPath [ "=" Segments ] "}" ; -/// FieldPath = IDENT { "." IDENT } ; -/// Verb = ":" LITERAL ; -/// -/// The syntax `*` matches a single path segment. The syntax `**` matches zero -/// or more path segments, which must be the last part of the path except the -/// `Verb`. The syntax `LITERAL` matches literal text in the path. -/// -/// The syntax `Variable` matches part of the URL path as specified by its -/// template. A variable template must not contain other variables. If a -/// variable -/// matches a single path segment, its template may be omitted, e.g. `{var}` -/// is equivalent to `{var=*}`. -/// -/// If a variable contains exactly one path segment, such as `"{var}"` or -/// `"{var=*}"`, when such a variable is expanded into a URL path, all -/// characters -/// except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the -/// Discovery Document as `{var}`. -/// -/// If a variable contains one or more path segments, such as `"{var=foo / * }"` -/// or `"{var=**}"`, when such a variable is expanded into a URL path, all -/// characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables -/// show up in the Discovery Document as `{+var}`. -/// -/// NOTE: While the single segment variable matches the semantics of -/// [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 -/// Simple String Expansion, the multi segment variable **does not** match -/// RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion -/// does not expand special characters like `?` and `#`, which would lead -/// to invalid URLs. -/// -/// NOTE: the field paths in variables and in the `body` must not refer to -/// repeated fields or map fields. -class HttpRule { - /// Additional HTTP bindings for the selector. Nested bindings must - /// not contain an `additional_bindings` field themselves (that is, - /// the nesting may only be one level deep). - core.List<HttpRule> additionalBindings; - - /// Specifies the permission(s) required for an API element for the overall - /// API request to succeed. It is typically used to mark request message - /// fields - /// that contain the name of the resource and indicates the permissions that - /// will be checked on that resource. - core.List<AuthorizationRule> authorizations; - - /// The name of the request field whose value is mapped to the HTTP body, or - /// `*` for mapping all fields not captured by the path pattern to the HTTP - /// body. NOTE: the referred field must not be a repeated field and must be - /// present at the top-level of request message type. - core.String body; - - /// The custom pattern is used for specifying an HTTP method that is not - /// included in the `pattern` field, such as HEAD, or "*" to leave the - /// HTTP method unspecified for this rule. The wild-card rule is useful - /// for services that provide content to Web (HTML) clients. - CustomHttpPattern custom; - - /// Used for deleting a resource. - core.String delete; - - /// Used for listing and getting information about resources. - core.String get; - - /// Use this only for Scotty Requests. Do not use this for bytestream methods. - /// For media support, add instead [][google.bytestream.RestByteStream] as an - /// API to your configuration. - MediaDownload mediaDownload; - - /// Use this only for Scotty Requests. Do not use this for media support using - /// Bytestream, add instead - /// [][google.bytestream.RestByteStream] as an API to your - /// configuration for Bytestream methods. - MediaUpload mediaUpload; - - /// Used for updating a resource. - core.String patch; - - /// Used for creating a resource. - core.String post; - - /// Used for updating a resource. - core.String put; - - /// DO NOT USE. This is an experimental field. - /// - /// Optional. The REST collection name is by default derived from the URL - /// pattern. If specified, this field overrides the default collection name. - /// Example: - /// - /// rpc AddressesAggregatedList(AddressesAggregatedListRequest) - /// returns (AddressesAggregatedListResponse) { - /// option (google.api.http) = { - /// get: "/v1/projects/{project_id}/aggregated/addresses" - /// rest_collection: "projects.addresses" - /// }; - /// } - /// - /// This method has the automatically derived collection name - /// "projects.aggregated". Because, semantically, this rpc is actually an - /// operation on the "projects.addresses" collection, the `rest_collection` - /// field is configured to override the derived collection name. - core.String restCollection; - - /// DO NOT USE. This is an experimental field. - /// - /// Optional. The rest method name is by default derived from the URL - /// pattern. If specified, this field overrides the default method name. - /// Example: - /// - /// rpc CreateResource(CreateResourceRequest) - /// returns (CreateResourceResponse) { - /// option (google.api.http) = { - /// post: "/v1/resources", - /// body: "resource", - /// rest_method_name: "insert" - /// }; - /// } - /// - /// This method has the automatically derived rest method name - /// "create", but for backwards compatibility with apiary, it is specified as - /// insert. - core.String restMethodName; - - /// Selects methods to which this rule applies. - /// - /// Refer to selector for syntax details. - core.String selector; - - HttpRule(); - - HttpRule.fromJson(core.Map _json) { - if (_json.containsKey("additionalBindings")) { - additionalBindings = (_json["additionalBindings"] as core.List) - .map<HttpRule>((value) => new HttpRule.fromJson(value)) - .toList(); - } - if (_json.containsKey("authorizations")) { - authorizations = (_json["authorizations"] as core.List) - .map<AuthorizationRule>( - (value) => new AuthorizationRule.fromJson(value)) - .toList(); - } - if (_json.containsKey("body")) { - body = _json["body"]; - } - if (_json.containsKey("custom")) { - custom = new CustomHttpPattern.fromJson(_json["custom"]); - } - if (_json.containsKey("delete")) { - delete = _json["delete"]; - } - if (_json.containsKey("get")) { - get = _json["get"]; - } - if (_json.containsKey("mediaDownload")) { - mediaDownload = new MediaDownload.fromJson(_json["mediaDownload"]); - } - if (_json.containsKey("mediaUpload")) { - mediaUpload = new MediaUpload.fromJson(_json["mediaUpload"]); - } - if (_json.containsKey("patch")) { - patch = _json["patch"]; - } - if (_json.containsKey("post")) { - post = _json["post"]; - } - if (_json.containsKey("put")) { - put = _json["put"]; - } - if (_json.containsKey("restCollection")) { - restCollection = _json["restCollection"]; - } - if (_json.containsKey("restMethodName")) { - restMethodName = _json["restMethodName"]; - } - if (_json.containsKey("selector")) { - selector = _json["selector"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (additionalBindings != null) { - _json["additionalBindings"] = - additionalBindings.map((value) => (value).toJson()).toList(); - } - if (authorizations != null) { - _json["authorizations"] = - authorizations.map((value) => (value).toJson()).toList(); - } - if (body != null) { - _json["body"] = body; - } - if (custom != null) { - _json["custom"] = (custom).toJson(); - } - if (delete != null) { - _json["delete"] = delete; - } - if (get != null) { - _json["get"] = get; - } - if (mediaDownload != null) { - _json["mediaDownload"] = (mediaDownload).toJson(); - } - if (mediaUpload != null) { - _json["mediaUpload"] = (mediaUpload).toJson(); - } - if (patch != null) { - _json["patch"] = patch; - } - if (post != null) { - _json["post"] = post; - } - if (put != null) { - _json["put"] = put; - } - if (restCollection != null) { - _json["restCollection"] = restCollection; - } - if (restMethodName != null) { - _json["restMethodName"] = restMethodName; - } - if (selector != null) { - _json["selector"] = selector; - } - 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<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (description != null) { - _json["description"] = description; - } - if (key != null) { - _json["key"] = key; - } - if (valueType != null) { - _json["valueType"] = valueType; - } - return _json; - } -} - -/// Response message for ListEnabledServices. -class ListEnabledServicesResponse { - /// Token that can be passed to `ListEnabledServices` to resume a paginated - /// query. - core.String nextPageToken; - - /// The state of the enabled services for the requested parent. - core.List<ServiceState> services; - - ListEnabledServicesResponse(); - - ListEnabledServicesResponse.fromJson(core.Map _json) { - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("services")) { - services = (_json["services"] as core.List) - .map<ServiceState>((value) => new ServiceState.fromJson(value)) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (services != null) { - _json["services"] = services.map((value) => (value).toJson()).toList(); - } - 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"] as core.List) - .map<Operation>((value) => new Operation.fromJson(value)) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (operations != null) { - _json["operations"] = - operations.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/// A description of a log type. Example in YAML format: -/// -/// - name: library.googleapis.com/activity_history -/// description: The history of borrowing and returning library items. -/// display_name: Activity -/// labels: -/// - key: /customer_id -/// description: Identifier of a library customer -class LogDescriptor { - /// A human-readable description of this log. This information appears in - /// the documentation and can contain details. - core.String description; - - /// The human-readable name for this log. This information appears on - /// the user interface and should be concise. - core.String displayName; - - /// The set of labels that are available to describe a specific log entry. - /// Runtime requests that contain labels not specified here are - /// considered invalid. - core.List<LabelDescriptor> labels; - - /// The name of the log. It must be less than 512 characters long and can - /// include the following characters: upper- and lower-case alphanumeric - /// characters [A-Za-z0-9], and punctuation characters including - /// slash, underscore, hyphen, period [/_-.]. - core.String name; - - LogDescriptor(); - - LogDescriptor.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"] as core.List) - .map<LabelDescriptor>((value) => new LabelDescriptor.fromJson(value)) - .toList(); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - 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; - } - return _json; - } -} - -/// 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 `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 -/// labels: -/// - key: /city -/// description: The city where the library branch is located in. -/// - key: /name -/// description: The name of the branch. -/// logs: -/// - name: activity_history -/// labels: -/// - key: /customer_id -/// - name: purchase_history -/// logging: -/// producer_destinations: -/// - monitored_resource: library.googleapis.com/branch -/// logs: -/// - activity_history -/// - purchase_history -/// consumer_destinations: -/// - monitored_resource: library.googleapis.com/branch -/// logs: -/// - activity_history -class Logging { - /// Logging configurations for sending logs to the consumer project. - /// There can be multiple consumer destinations, each one must have a - /// different monitored resource type. A log can be used in at most - /// one consumer destination. - core.List<LoggingDestination> consumerDestinations; - - /// Logging configurations for sending logs to the producer project. - /// There can be multiple producer destinations, each one must have a - /// different monitored resource type. A log can be used in at most - /// one producer destination. - core.List<LoggingDestination> producerDestinations; - - Logging(); - - Logging.fromJson(core.Map _json) { - if (_json.containsKey("consumerDestinations")) { - consumerDestinations = (_json["consumerDestinations"] as core.List) - .map<LoggingDestination>( - (value) => new LoggingDestination.fromJson(value)) - .toList(); - } - if (_json.containsKey("producerDestinations")) { - producerDestinations = (_json["producerDestinations"] as core.List) - .map<LoggingDestination>( - (value) => new LoggingDestination.fromJson(value)) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (consumerDestinations != null) { - _json["consumerDestinations"] = - consumerDestinations.map((value) => (value).toJson()).toList(); - } - if (producerDestinations != null) { - _json["producerDestinations"] = - producerDestinations.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/// Configuration of a specific logging destination (the producer project -/// or the consumer project). -class LoggingDestination { - /// Names of the logs to be sent to this destination. Each name must - /// 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 - /// Service.monitored_resources section. - core.String monitoredResource; - - LoggingDestination(); - - LoggingDestination.fromJson(core.Map _json) { - if (_json.containsKey("logs")) { - logs = (_json["logs"] as core.List).cast<core.String>(); - } - if (_json.containsKey("monitoredResource")) { - monitoredResource = _json["monitoredResource"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (logs != null) { - _json["logs"] = logs; - } - if (monitoredResource != null) { - _json["monitoredResource"] = monitoredResource; - } - return _json; - } -} - -/// Defines the Media configuration for a service in case of a download. -/// Use this only for Scotty Requests. Do not use this for media support using -/// Bytestream, add instead [][google.bytestream.RestByteStream] as an API to -/// your configuration for Bytestream methods. -class MediaDownload { - /// A boolean that determines whether a notification for the completion of a - /// download should be sent to the backend. - core.bool completeNotification; - - /// DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED. - /// - /// Specify name of the download service if one is used for download. - core.String downloadService; - - /// Name of the Scotty dropzone to use for the current API. - core.String dropzone; - - /// Whether download is enabled. - core.bool enabled; - - /// Optional maximum acceptable size for direct download. - /// The size is specified in bytes. - core.String maxDirectDownloadSize; - - /// A boolean that determines if direct download from ESF should be used for - /// download of this media. - core.bool useDirectDownload; - - MediaDownload(); - - MediaDownload.fromJson(core.Map _json) { - if (_json.containsKey("completeNotification")) { - completeNotification = _json["completeNotification"]; - } - if (_json.containsKey("downloadService")) { - downloadService = _json["downloadService"]; - } - if (_json.containsKey("dropzone")) { - dropzone = _json["dropzone"]; - } - if (_json.containsKey("enabled")) { - enabled = _json["enabled"]; - } - if (_json.containsKey("maxDirectDownloadSize")) { - maxDirectDownloadSize = _json["maxDirectDownloadSize"]; - } - if (_json.containsKey("useDirectDownload")) { - useDirectDownload = _json["useDirectDownload"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (completeNotification != null) { - _json["completeNotification"] = completeNotification; - } - if (downloadService != null) { - _json["downloadService"] = downloadService; - } - if (dropzone != null) { - _json["dropzone"] = dropzone; - } - if (enabled != null) { - _json["enabled"] = enabled; - } - if (maxDirectDownloadSize != null) { - _json["maxDirectDownloadSize"] = maxDirectDownloadSize; - } - if (useDirectDownload != null) { - _json["useDirectDownload"] = useDirectDownload; - } - return _json; - } -} - -/// Defines the Media configuration for a service in case of an upload. -/// Use this only for Scotty Requests. Do not use this for media support using -/// Bytestream, add instead [][google.bytestream.RestByteStream] as an API to -/// your configuration for Bytestream methods. -class MediaUpload { - /// A boolean that determines whether a notification for the completion of an - /// upload should be sent to the backend. These notifications will not be seen - /// by the client and will not consume quota. - core.bool completeNotification; - - /// Name of the Scotty dropzone to use for the current API. - core.String dropzone; - - /// Whether upload is enabled. - core.bool enabled; - - /// Optional maximum acceptable size for an upload. - /// The size is specified in bytes. - core.String maxSize; - - /// An array of mimetype patterns. Esf will only accept uploads that match one - /// of the given patterns. - core.List<core.String> mimeTypes; - - /// Whether to receive a notification for progress changes of media upload. - core.bool progressNotification; - - /// Whether to receive a notification on the start of media upload. - core.bool startNotification; - - /// DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED. - /// - /// Specify name of the upload service if one is used for upload. - core.String uploadService; - - MediaUpload(); - - MediaUpload.fromJson(core.Map _json) { - if (_json.containsKey("completeNotification")) { - completeNotification = _json["completeNotification"]; - } - if (_json.containsKey("dropzone")) { - dropzone = _json["dropzone"]; - } - if (_json.containsKey("enabled")) { - enabled = _json["enabled"]; - } - if (_json.containsKey("maxSize")) { - maxSize = _json["maxSize"]; - } - if (_json.containsKey("mimeTypes")) { - mimeTypes = (_json["mimeTypes"] as core.List).cast<core.String>(); - } - if (_json.containsKey("progressNotification")) { - progressNotification = _json["progressNotification"]; - } - if (_json.containsKey("startNotification")) { - startNotification = _json["startNotification"]; - } - if (_json.containsKey("uploadService")) { - uploadService = _json["uploadService"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (completeNotification != null) { - _json["completeNotification"] = completeNotification; - } - if (dropzone != null) { - _json["dropzone"] = dropzone; - } - if (enabled != null) { - _json["enabled"] = enabled; - } - if (maxSize != null) { - _json["maxSize"] = maxSize; - } - if (mimeTypes != null) { - _json["mimeTypes"] = mimeTypes; - } - if (progressNotification != null) { - _json["progressNotification"] = progressNotification; - } - if (startNotification != null) { - _json["startNotification"] = startNotification; - } - if (uploadService != null) { - _json["uploadService"] = uploadService; - } - return _json; - } -} - -/// Method represents a method of an API interface. -class Method { - /// The simple name of this method. - core.String name; - - /// Any metadata attached to the method. - core.List<Option> options; - - /// If true, the request is streamed. - core.bool requestStreaming; - - /// A URL of the input message type. - core.String requestTypeUrl; - - /// If true, the response is streamed. - core.bool responseStreaming; - - /// The URL of the output message type. - core.String responseTypeUrl; - - /// The source syntax of this method. - /// Possible string values are: - /// - "SYNTAX_PROTO2" : Syntax `proto2`. - /// - "SYNTAX_PROTO3" : Syntax `proto3`. - core.String syntax; - - Method(); - - Method.fromJson(core.Map _json) { - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("options")) { - options = (_json["options"] as core.List) - .map<Option>((value) => new Option.fromJson(value)) - .toList(); - } - if (_json.containsKey("requestStreaming")) { - requestStreaming = _json["requestStreaming"]; - } - if (_json.containsKey("requestTypeUrl")) { - requestTypeUrl = _json["requestTypeUrl"]; - } - if (_json.containsKey("responseStreaming")) { - responseStreaming = _json["responseStreaming"]; - } - if (_json.containsKey("responseTypeUrl")) { - responseTypeUrl = _json["responseTypeUrl"]; - } - if (_json.containsKey("syntax")) { - syntax = _json["syntax"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (name != null) { - _json["name"] = name; - } - if (options != null) { - _json["options"] = options.map((value) => (value).toJson()).toList(); - } - if (requestStreaming != null) { - _json["requestStreaming"] = requestStreaming; - } - if (requestTypeUrl != null) { - _json["requestTypeUrl"] = requestTypeUrl; - } - if (responseStreaming != null) { - _json["responseStreaming"] = responseStreaming; - } - if (responseTypeUrl != null) { - _json["responseTypeUrl"] = responseTypeUrl; - } - if (syntax != null) { - _json["syntax"] = syntax; - } - return _json; - } -} - -/// 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. - core.String description; - - /// A concise name for the metric, which can be displayed in user interfaces. - /// Use sentence case without an ending period, for example "Request count". - /// This field is optional but it is recommended to be set for any metrics - /// associated with user-visible concepts, such as Quota. - core.String displayName; - - /// 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. - /// - "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 resource name of the metric descriptor. - core.String name; - - /// The metric type, including its DNS name prefix. The type is not - /// URL-encoded. All user-defined custom 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 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 '}'. - /// * `1` represents dimensionless value 1, such as in `1/s`. - /// * `%` represents dimensionless value 1/100, and annotates values giving - /// a percentage. - 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. - /// 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; - - MetricDescriptor(); - - MetricDescriptor.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"] as core.List) - .map<LabelDescriptor>((value) => new LabelDescriptor.fromJson(value)) - .toList(); - } - if (_json.containsKey("metricKind")) { - metricKind = _json["metricKind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - if (_json.containsKey("unit")) { - unit = _json["unit"]; - } - if (_json.containsKey("valueType")) { - valueType = _json["valueType"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (description != null) { - _json["description"] = description; - } - if (displayName != null) { - _json["displayName"] = displayName; - } - if (labels != null) { - _json["labels"] = labels.map((value) => (value).toJson()).toList(); - } - if (metricKind != null) { - _json["metricKind"] = metricKind; - } - if (name != null) { - _json["name"] = name; - } - if (type != null) { - _json["type"] = type; - } - if (unit != null) { - _json["unit"] = unit; - } - if (valueType != null) { - _json["valueType"] = valueType; - } - return _json; - } -} - -/// Bind API methods to metrics. Binding a method to a metric causes that -/// metric's configured quota behaviors to apply to the method call. -class MetricRule { - /// Metrics to update when the selected methods are called, and the associated - /// cost applied to each metric. - /// - /// The key of the map is the metric name, and the values are the amount - /// increased for the metric against which the quota limits are defined. - /// The value must not be negative. - core.Map<core.String, core.String> metricCosts; - - /// Selects the methods to which this rule applies. - /// - /// Refer to selector for syntax details. - core.String selector; - - MetricRule(); - - MetricRule.fromJson(core.Map _json) { - if (_json.containsKey("metricCosts")) { - metricCosts = - (_json["metricCosts"] as core.Map).cast<core.String, core.String>(); - } - if (_json.containsKey("selector")) { - selector = _json["selector"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (metricCosts != null) { - _json["metricCosts"] = metricCosts; - } - if (selector != null) { - _json["selector"] = selector; - } - return _json; - } -} - -/// Declares an API Interface to be included in this interface. The including -/// interface must redeclare all the methods from the included interface, but -/// documentation and options are inherited as follows: -/// -/// - If after comment and whitespace stripping, the documentation -/// string of the redeclared method is empty, it will be inherited -/// from the original method. -/// -/// - Each annotation belonging to the service config (http, -/// visibility) which is not set in the redeclared method will be -/// inherited. -/// -/// - If an http annotation is inherited, the path pattern will be -/// modified as follows. Any version prefix will be replaced by the -/// version of the including interface plus the root path if -/// specified. -/// -/// Example of a simple mixin: -/// -/// package google.acl.v1; -/// service AccessControl { -/// // Get the underlying ACL object. -/// rpc GetAcl(GetAclRequest) returns (Acl) { -/// option (google.api.http).get = "/v1/{resource=**}:getAcl"; -/// } -/// } -/// -/// package google.storage.v2; -/// service Storage { -/// // rpc GetAcl(GetAclRequest) returns (Acl); -/// -/// // Get a data record. -/// rpc GetData(GetDataRequest) returns (Data) { -/// option (google.api.http).get = "/v2/{resource=**}"; -/// } -/// } -/// -/// Example of a mixin configuration: -/// -/// apis: -/// - name: google.storage.v2.Storage -/// mixins: -/// - name: google.acl.v1.AccessControl -/// -/// The mixin construct implies that all methods in `AccessControl` are -/// also declared with same name and request/response types in -/// `Storage`. A documentation generator or annotation processor will -/// see the effective `Storage.GetAcl` method after inherting -/// documentation and annotations as follows: -/// -/// service Storage { -/// // Get the underlying ACL object. -/// rpc GetAcl(GetAclRequest) returns (Acl) { -/// option (google.api.http).get = "/v2/{resource=**}:getAcl"; -/// } -/// ... -/// } -/// -/// Note how the version in the path pattern changed from `v1` to `v2`. -/// -/// If the `root` field in the mixin is specified, it should be a -/// relative path under which inherited HTTP paths are placed. Example: -/// -/// apis: -/// - name: google.storage.v2.Storage -/// mixins: -/// - name: google.acl.v1.AccessControl -/// root: acls -/// -/// This implies the following inherited HTTP annotation: -/// -/// service Storage { -/// // Get the underlying ACL object. -/// rpc GetAcl(GetAclRequest) returns (Acl) { -/// option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; -/// } -/// ... -/// } -class Mixin { - /// The fully qualified name of the interface which is included. - core.String name; - - /// If non-empty specifies a path under which inherited HTTP paths - /// are rooted. - core.String root; - - Mixin(); - - Mixin.fromJson(core.Map _json) { - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("root")) { - root = _json["root"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (name != null) { - _json["name"] = name; - } - if (root != null) { - _json["root"] = root; - } - 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"] as core.List) - .map<LabelDescriptor>((value) => new LabelDescriptor.fromJson(value)) - .toList(); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - 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; - } -} - -/// Monitoring configuration of the service. -/// -/// The example below shows how to configure monitored resources and metrics -/// for monitoring. In the example, a monitored resource and two metrics are -/// defined. The `library.googleapis.com/book/returned_count` metric is sent -/// to both producer and consumer projects, whereas the -/// `library.googleapis.com/book/overdue_count` metric is only sent to the -/// consumer project. -/// -/// monitored_resources: -/// - type: library.googleapis.com/branch -/// labels: -/// - key: /city -/// description: The city where the library branch is located in. -/// - key: /name -/// description: The name of the branch. -/// metrics: -/// - name: library.googleapis.com/book/returned_count -/// metric_kind: DELTA -/// value_type: INT64 -/// labels: -/// - key: /customer_id -/// - name: library.googleapis.com/book/overdue_count -/// metric_kind: GAUGE -/// value_type: INT64 -/// labels: -/// - key: /customer_id -/// monitoring: -/// producer_destinations: -/// - monitored_resource: library.googleapis.com/branch -/// metrics: -/// - library.googleapis.com/book/returned_count -/// consumer_destinations: -/// - monitored_resource: library.googleapis.com/branch -/// metrics: -/// - library.googleapis.com/book/returned_count -/// - library.googleapis.com/book/overdue_count -class Monitoring { - /// Monitoring configurations for sending metrics to the consumer project. - /// There can be multiple consumer destinations, each one must have a - /// different monitored resource type. A metric can be used in at most - /// one consumer destination. - core.List<MonitoringDestination> consumerDestinations; - - /// Monitoring configurations for sending metrics to the producer project. - /// There can be multiple producer destinations, each one must have a - /// different monitored resource type. A metric can be used in at most - /// one producer destination. - core.List<MonitoringDestination> producerDestinations; - - Monitoring(); - - Monitoring.fromJson(core.Map _json) { - if (_json.containsKey("consumerDestinations")) { - consumerDestinations = (_json["consumerDestinations"] as core.List) - .map<MonitoringDestination>( - (value) => new MonitoringDestination.fromJson(value)) - .toList(); - } - if (_json.containsKey("producerDestinations")) { - producerDestinations = (_json["producerDestinations"] as core.List) - .map<MonitoringDestination>( - (value) => new MonitoringDestination.fromJson(value)) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (consumerDestinations != null) { - _json["consumerDestinations"] = - consumerDestinations.map((value) => (value).toJson()).toList(); - } - if (producerDestinations != null) { - _json["producerDestinations"] = - producerDestinations.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/// Configuration of a specific monitoring destination (the producer project -/// or the consumer project). -class MonitoringDestination { - /// Names of the metrics to report to this monitoring destination. - /// Each name must be defined in Service.metrics section. - core.List<core.String> metrics; - - /// The monitored resource type. The type must be defined in - /// Service.monitored_resources section. - core.String monitoredResource; - - MonitoringDestination(); - - MonitoringDestination.fromJson(core.Map _json) { - if (_json.containsKey("metrics")) { - metrics = (_json["metrics"] as core.List).cast<core.String>(); - } - if (_json.containsKey("monitoredResource")) { - monitoredResource = _json["monitoredResource"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (metrics != null) { - _json["metrics"] = metrics; - } - if (monitoredResource != null) { - _json["monitoredResource"] = monitoredResource; - } - return _json; - } -} - -/// OAuth scopes are a way to define data and permissions on data. For example, -/// there are scopes defined for "Read-only access to Google Calendar" and -/// "Access to Cloud Platform". Users can consent to a scope for an application, -/// giving it permission to access that data on their behalf. -/// -/// OAuth scope specifications should be fairly coarse grained; a user will need -/// to see and understand the text description of what your scope means. -/// -/// In most cases: use one or at most two OAuth scopes for an entire family of -/// products. If your product has multiple APIs, you should probably be sharing -/// the OAuth scope across all of those APIs. -/// -/// When you need finer grained OAuth consent screens: talk with your product -/// management about how developers will use them in practice. -/// -/// Please note that even though each of the canonical scopes is enough for a -/// request to be accepted and passed to the backend, a request can still fail -/// due to the backend requiring additional scopes or permissions. -class OAuthRequirements { - /// The list of publicly documented OAuth scopes that are allowed access. An - /// OAuth token containing any of these scopes will be accepted. - /// - /// Example: - /// - /// canonical_scopes: https://www.googleapis.com/auth/calendar, - /// https://www.googleapis.com/auth/calendar.read - core.String canonicalScopes; - - OAuthRequirements(); - - OAuthRequirements.fromJson(core.Map _json) { - if (_json.containsKey("canonicalScopes")) { - canonicalScopes = _json["canonicalScopes"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (canonicalScopes != null) { - _json["canonicalScopes"] = canonicalScopes; - } - 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"] as core.Map).cast<core.String, core.Object>(); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("response")) { - response = - (_json["response"] as core.Map).cast<core.String, core.Object>(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - 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 metadata associated with a long running operation resource. -class OperationMetadata { - /// Percentage of completion of this operation, ranging from 0 to 100. - core.int progressPercentage; - - /// The full name of the resources that this operation is directly - /// associated with. - core.List<core.String> resourceNames; - - /// The start time of the operation. - core.String startTime; - - /// Detailed status information for each step. The order is undetermined. - core.List<Step> steps; - - OperationMetadata(); - - OperationMetadata.fromJson(core.Map _json) { - if (_json.containsKey("progressPercentage")) { - progressPercentage = _json["progressPercentage"]; - } - if (_json.containsKey("resourceNames")) { - resourceNames = (_json["resourceNames"] as core.List).cast<core.String>(); - } - if (_json.containsKey("startTime")) { - startTime = _json["startTime"]; - } - if (_json.containsKey("steps")) { - steps = (_json["steps"] as core.List) - .map<Step>((value) => new Step.fromJson(value)) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (progressPercentage != null) { - _json["progressPercentage"] = progressPercentage; - } - if (resourceNames != null) { - _json["resourceNames"] = resourceNames; - } - if (startTime != null) { - _json["startTime"] = startTime; - } - if (steps != null) { - _json["steps"] = steps.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/// A protocol buffer option, which can be attached to a message, field, -/// enumeration, etc. -class Option { - /// The option's name. For protobuf built-in options (options defined in - /// descriptor.proto), this is the short name. For example, `"map_entry"`. - /// For custom options, it should be the fully-qualified name. For example, - /// `"google.api.http"`. - core.String name; - - /// The option's value packed in an Any message. If the value is a primitive, - /// the corresponding wrapper type defined in google/protobuf/wrappers.proto - /// should be used. If the value is an enum, it should be stored as an int32 - /// value using the google.protobuf.Int32Value type. - /// - /// The values for Object must be JSON objects. It can consist of `num`, - /// `String`, `bool` and `null` as well as `Map` and `List` values. - core.Map<core.String, core.Object> value; - - Option(); - - Option.fromJson(core.Map _json) { - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("value")) { - value = (_json["value"] as core.Map).cast<core.String, core.Object>(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (name != null) { - _json["name"] = name; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -} - -/// Represents a documentation page. A page can contain subpages to represent -/// nested documentation set structure. -class Page { - /// The Markdown content of the page. You can use <code>(== include {path} - /// ==)</code> - /// to include content from a Markdown file. - core.String content; - - /// The name of the page. It will be used as an identity of the page to - /// generate URI of the page, text of the link to this page in navigation, - /// etc. The full page name (start from the root page name to this page - /// concatenated with `.`) can be used as reference to the page in your - /// documentation. For example: - /// <pre><code>pages: - /// - name: Tutorial - /// content: (== include tutorial.md ==) - /// subpages: - /// - name: Java - /// content: (== include tutorial_java.md ==) - /// </code></pre> - /// You can reference `Java` page using Markdown reference link syntax: - /// `Java`. - core.String name; - - /// Subpages of this page. The order of subpages specified here will be - /// honored in the generated docset. - core.List<Page> subpages; - - Page(); - - Page.fromJson(core.Map _json) { - if (_json.containsKey("content")) { - content = _json["content"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("subpages")) { - subpages = (_json["subpages"] as core.List) - .map<Page>((value) => new Page.fromJson(value)) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (content != null) { - _json["content"] = content; - } - if (name != null) { - _json["name"] = name; - } - if (subpages != null) { - _json["subpages"] = subpages.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/// The published version of a Service that is managed by -/// Google Service Management. -class PublishedService { - /// The resource name of the service. - /// - /// A valid name would be: - /// - services/serviceusage.googleapis.com - core.String name; - - /// The service's published configuration. - GoogleApiService service; - - PublishedService(); - - PublishedService.fromJson(core.Map _json) { - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("service")) { - service = new GoogleApiService.fromJson(_json["service"]); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (name != null) { - _json["name"] = name; - } - if (service != null) { - _json["service"] = (service).toJson(); - } - return _json; - } -} - -/// Quota configuration helps to achieve fairness and budgeting in service -/// usage. -/// -/// The quota configuration works this way: -/// - The service configuration defines a set of metrics. -/// - For API calls, the quota.metric_rules maps methods to metrics with -/// corresponding costs. -/// - The quota.limits defines limits on the metrics, which will be used for -/// quota checks at runtime. -/// -/// An example quota configuration in yaml format: -/// -/// quota: -/// -/// - name: apiWriteQpsPerProject -/// metric: library.googleapis.com/write_calls -/// unit: "1/min/{project}" # rate limit for consumer projects -/// values: -/// STANDARD: 10000 -/// -/// -/// # The metric rules bind all methods to the read_calls metric, -/// # except for the UpdateBook and DeleteBook methods. These two methods -/// # are mapped to the write_calls metric, with the UpdateBook method -/// # consuming at twice rate as the DeleteBook method. -/// metric_rules: -/// - selector: "*" -/// metric_costs: -/// library.googleapis.com/read_calls: 1 -/// - selector: google.example.library.v1.LibraryService.UpdateBook -/// metric_costs: -/// library.googleapis.com/write_calls: 2 -/// - selector: google.example.library.v1.LibraryService.DeleteBook -/// metric_costs: -/// library.googleapis.com/write_calls: 1 -/// -/// Corresponding Metric definition: -/// -/// metrics: -/// - name: library.googleapis.com/read_calls -/// display_name: Read requests -/// metric_kind: DELTA -/// value_type: INT64 -/// -/// - name: library.googleapis.com/write_calls -/// display_name: Write requests -/// metric_kind: DELTA -/// value_type: INT64 -class Quota { - /// List of `QuotaLimit` definitions for the service. - core.List<QuotaLimit> limits; - - /// List of `MetricRule` definitions, each one mapping a selected method to - /// one - /// or more metrics. - core.List<MetricRule> metricRules; - - Quota(); - - Quota.fromJson(core.Map _json) { - if (_json.containsKey("limits")) { - limits = (_json["limits"] as core.List) - .map<QuotaLimit>((value) => new QuotaLimit.fromJson(value)) - .toList(); - } - if (_json.containsKey("metricRules")) { - metricRules = (_json["metricRules"] as core.List) - .map<MetricRule>((value) => new MetricRule.fromJson(value)) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (limits != null) { - _json["limits"] = limits.map((value) => (value).toJson()).toList(); - } - if (metricRules != null) { - _json["metricRules"] = - metricRules.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/// `QuotaLimit` defines a specific limit that applies over a specified duration -/// for a limit type. There can be at most one limit for a duration and limit -/// type combination defined within a `QuotaGroup`. -class QuotaLimit { - /// Default number of tokens that can be consumed during the specified - /// duration. This is the number of tokens assigned when a client - /// application developer activates the service for his/her project. - /// - /// Specifying a value of 0 will block all requests. This can be used if you - /// are provisioning quota to selected consumers and blocking others. - /// Similarly, a value of -1 will indicate an unlimited quota. No other - /// negative values are allowed. - /// - /// Used by group-based quotas only. - core.String defaultLimit; - - /// Optional. User-visible, extended description for this quota limit. - /// Should be used only when more context is needed to understand this limit - /// than provided by the limit's display name (see: `display_name`). - core.String description; - - /// User-visible display name for this limit. - /// Optional. If not set, the UI will provide a default display name based on - /// the quota configuration. This field can be used to override the default - /// display name generated from the configuration. - core.String displayName; - - /// Duration of this limit in textual notation. Example: "100s", "24h", "1d". - /// For duration longer than a day, only multiple of days is supported. We - /// support only "100s" and "1d" for now. Additional support will be added in - /// the future. "0" indicates indefinite duration. - /// - /// Used by group-based quotas only. - core.String duration; - - /// Free tier value displayed in the Developers Console for this limit. - /// The free tier is the number of tokens that will be subtracted from the - /// billed amount when billing is enabled. - /// This field can only be set on a limit with duration "1d", in a billable - /// group; it is invalid on any other limit. If this field is not set, it - /// defaults to 0, indicating that there is no free tier for this service. - /// - /// Used by group-based quotas only. - core.String freeTier; - - /// Maximum number of tokens that can be consumed during the specified - /// duration. Client application developers can override the default limit up - /// to this maximum. If specified, this value cannot be set to a value less - /// than the default limit. If not specified, it is set to the default limit. - /// - /// To allow clients to apply overrides with no upper bound, set this to -1, - /// indicating unlimited maximum quota. - /// - /// Used by group-based quotas only. - core.String maxLimit; - - /// The name of the metric this quota limit applies to. The quota limits with - /// the same metric will be checked together during runtime. The metric must - /// be - /// defined within the service config. - core.String metric; - - /// Name of the quota limit. - /// - /// The name must be provided, and it must be unique within the service. The - /// name can only include alphanumeric characters as well as '-'. - /// - /// The maximum length of the limit name is 64 characters. - core.String name; - - /// Specify the unit of the quota limit. It uses the same syntax as - /// Metric.unit. The supported unit kinds are determined by the quota - /// backend system. - /// - /// Here are some examples: - /// * "1/min/{project}" for quota per minute per project. - /// - /// Note: the order of unit components is insignificant. - /// The "1" at the beginning is required to follow the metric unit syntax. - core.String unit; - - /// Tiered limit values. You must specify this as a key:value pair, with an - /// integer value that is the maximum number of requests allowed for the - /// specified unit. Currently only STANDARD is supported. - core.Map<core.String, core.String> values; - - QuotaLimit(); - - QuotaLimit.fromJson(core.Map _json) { - if (_json.containsKey("defaultLimit")) { - defaultLimit = _json["defaultLimit"]; - } - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("displayName")) { - displayName = _json["displayName"]; - } - if (_json.containsKey("duration")) { - duration = _json["duration"]; - } - if (_json.containsKey("freeTier")) { - freeTier = _json["freeTier"]; - } - if (_json.containsKey("maxLimit")) { - maxLimit = _json["maxLimit"]; - } - if (_json.containsKey("metric")) { - metric = _json["metric"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("unit")) { - unit = _json["unit"]; - } - if (_json.containsKey("values")) { - values = (_json["values"] as core.Map).cast<core.String, core.String>(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (defaultLimit != null) { - _json["defaultLimit"] = defaultLimit; - } - if (description != null) { - _json["description"] = description; - } - if (displayName != null) { - _json["displayName"] = displayName; - } - if (duration != null) { - _json["duration"] = duration; - } - if (freeTier != null) { - _json["freeTier"] = freeTier; - } - if (maxLimit != null) { - _json["maxLimit"] = maxLimit; - } - if (metric != null) { - _json["metric"] = metric; - } - if (name != null) { - _json["name"] = name; - } - if (unit != null) { - _json["unit"] = unit; - } - if (values != null) { - _json["values"] = values; - } - return _json; - } -} - -/// Response message for SearchServices. -class SearchServicesResponse { - /// Token that can be passed to `SearchServices` to resume a paginated query. - core.String nextPageToken; - - /// The state of services available publicly or available to the authenticated - /// caller. - core.List<PublishedService> services; - - SearchServicesResponse(); - - SearchServicesResponse.fromJson(core.Map _json) { - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("services")) { - services = (_json["services"] as core.List) - .map<PublishedService>( - (value) => new PublishedService.fromJson(value)) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (services != null) { - _json["services"] = services.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/// The properties of a consumer with respect to a Service. -class ServiceState { - /// Reflects whether or not the service has been explicitly enabled. - EnabledState enabled; - - /// The resource name of the consumer and service. - /// - /// A valid name would be: - /// - projects/123/services/serviceusage.googleapis.com - core.String name; - - /// The published version of the consumed service. - PublishedService service; - - ServiceState(); - - ServiceState.fromJson(core.Map _json) { - if (_json.containsKey("enabled")) { - enabled = new EnabledState.fromJson(_json["enabled"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("service")) { - service = new PublishedService.fromJson(_json["service"]); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (enabled != null) { - _json["enabled"] = (enabled).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (service != null) { - _json["service"] = (service).toJson(); - } - return _json; - } -} - -/// `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_context.proto"`. - core.String fileName; - - SourceContext(); - - SourceContext.fromJson(core.Map _json) { - if (_json.containsKey("fileName")) { - fileName = _json["fileName"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (fileName != null) { - _json["fileName"] = fileName; - } - return _json; - } -} - -/// Source information used to create a Service Config -class SourceInfo { - /// All files used during config generation. - /// - /// 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>> sourceFiles; - - SourceInfo(); - - SourceInfo.fromJson(core.Map _json) { - if (_json.containsKey("sourceFiles")) { - sourceFiles = (_json["sourceFiles"] as core.List) - .map<core.Map<core.String, core.Object>>( - (value) => (value as core.Map).cast<core.String, core.Object>()) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (sourceFiles != null) { - _json["sourceFiles"] = sourceFiles; - } - 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` that 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. -/// -/// - 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 is 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"] as core.List) - .map<core.Map<core.String, core.Object>>( - (value) => (value as core.Map).cast<core.String, core.Object>()) - .toList(); - } - if (_json.containsKey("message")) { - message = _json["message"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (code != null) { - _json["code"] = code; - } - if (details != null) { - _json["details"] = details; - } - if (message != null) { - _json["message"] = message; - } - return _json; - } -} - -/// Represents the status of one operation step. -class Step { - /// The short description of the step. - core.String description; - - /// The status code. - /// Possible string values are: - /// - "STATUS_UNSPECIFIED" : Unspecifed code. - /// - "DONE" : The operation or step has completed without errors. - /// - "NOT_STARTED" : The operation or step has not started yet. - /// - "IN_PROGRESS" : The operation or step is in progress. - /// - "FAILED" : The operation or step has completed with errors. If the - /// operation is - /// rollbackable, the rollback completed with errors too. - /// - "CANCELLED" : The operation or step has completed with cancellation. - core.String status; - - Step(); - - Step.fromJson(core.Map _json) { - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("status")) { - status = _json["status"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (description != null) { - _json["description"] = description; - } - if (status != null) { - _json["status"] = status; - } - return _json; - } -} - -/// Define a parameter's name and location. The parameter may be passed as -/// either -/// an HTTP header or a URL query parameter, and if both are passed the behavior -/// is implementation-dependent. -class SystemParameter { - /// Define the HTTP header name to use for the parameter. It is case - /// insensitive. - core.String httpHeader; - - /// Define the name of the parameter, such as "api_key" . It is case - /// sensitive. - core.String name; - - /// Define the URL query parameter name to use for the parameter. It is case - /// sensitive. - core.String urlQueryParameter; - - SystemParameter(); - - SystemParameter.fromJson(core.Map _json) { - if (_json.containsKey("httpHeader")) { - httpHeader = _json["httpHeader"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("urlQueryParameter")) { - urlQueryParameter = _json["urlQueryParameter"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (httpHeader != null) { - _json["httpHeader"] = httpHeader; - } - if (name != null) { - _json["name"] = name; - } - if (urlQueryParameter != null) { - _json["urlQueryParameter"] = urlQueryParameter; - } - return _json; - } -} - -/// Define a system parameter rule mapping system parameter definitions to -/// methods. -class SystemParameterRule { - /// Define parameters. Multiple names may be defined for a parameter. - /// For a given method call, only one of them should be used. If multiple - /// names are used the behavior is implementation-dependent. - /// If none of the specified names are present the behavior is - /// parameter-dependent. - core.List<SystemParameter> parameters; - - /// Selects the methods to which this rule applies. Use '*' to indicate all - /// methods in all APIs. - /// - /// Refer to selector for syntax details. - core.String selector; - - SystemParameterRule(); - - SystemParameterRule.fromJson(core.Map _json) { - if (_json.containsKey("parameters")) { - parameters = (_json["parameters"] as core.List) - .map<SystemParameter>((value) => new SystemParameter.fromJson(value)) - .toList(); - } - if (_json.containsKey("selector")) { - selector = _json["selector"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (parameters != null) { - _json["parameters"] = - parameters.map((value) => (value).toJson()).toList(); - } - if (selector != null) { - _json["selector"] = selector; - } - return _json; - } -} - -/// ### System parameter configuration -/// -/// A system parameter is a special kind of parameter defined by the API -/// system, not by an individual API. It is typically mapped to an HTTP header -/// and/or a URL query parameter. This configuration specifies which methods -/// change the names of the system parameters. -class SystemParameters { - /// Define system parameters. - /// - /// The parameters defined here will override the default parameters - /// implemented by the system. If this field is missing from the service - /// config, default system parameters will be used. Default system parameters - /// and names is implementation-dependent. - /// - /// Example: define api key for all methods - /// - /// system_parameters - /// rules: - /// - selector: "*" - /// parameters: - /// - name: api_key - /// url_query_parameter: api_key - /// - /// - /// Example: define 2 api key names for a specific method. - /// - /// system_parameters - /// rules: - /// - selector: "/ListShelves" - /// parameters: - /// - name: api_key - /// http_header: Api-Key1 - /// - name: api_key - /// http_header: Api-Key2 - /// - /// **NOTE:** All service configuration rules follow "last one wins" order. - core.List<SystemParameterRule> rules; - - SystemParameters(); - - SystemParameters.fromJson(core.Map _json) { - if (_json.containsKey("rules")) { - rules = (_json["rules"] as core.List) - .map<SystemParameterRule>( - (value) => new SystemParameterRule.fromJson(value)) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (rules != null) { - _json["rules"] = rules.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/// A protocol buffer message type. -class Type { - /// The list of fields. - core.List<Field> fields; - - /// The fully qualified message name. - core.String name; - - /// The list of types appearing in `oneof` definitions in this type. - core.List<core.String> oneofs; - - /// The protocol buffer options. - core.List<Option> options; - - /// The source context. - SourceContext sourceContext; - - /// The source syntax. - /// Possible string values are: - /// - "SYNTAX_PROTO2" : Syntax `proto2`. - /// - "SYNTAX_PROTO3" : Syntax `proto3`. - core.String syntax; - - Type(); - - Type.fromJson(core.Map _json) { - if (_json.containsKey("fields")) { - fields = (_json["fields"] as core.List) - .map<Field>((value) => new Field.fromJson(value)) - .toList(); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("oneofs")) { - oneofs = (_json["oneofs"] as core.List).cast<core.String>(); - } - if (_json.containsKey("options")) { - options = (_json["options"] as core.List) - .map<Option>((value) => new Option.fromJson(value)) - .toList(); - } - if (_json.containsKey("sourceContext")) { - sourceContext = new SourceContext.fromJson(_json["sourceContext"]); - } - if (_json.containsKey("syntax")) { - syntax = _json["syntax"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (fields != null) { - _json["fields"] = fields.map((value) => (value).toJson()).toList(); - } - if (name != null) { - _json["name"] = name; - } - if (oneofs != null) { - _json["oneofs"] = oneofs; - } - if (options != null) { - _json["options"] = options.map((value) => (value).toJson()).toList(); - } - if (sourceContext != null) { - _json["sourceContext"] = (sourceContext).toJson(); - } - if (syntax != null) { - _json["syntax"] = syntax; - } - return _json; - } -} - -/// Configuration controlling usage of a service. -class Usage { - /// The full resource name of a channel used for sending notifications to the - /// service producer. - /// - /// Google Service Management currently only supports - /// [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification - /// channel. To use Google Cloud Pub/Sub as the channel, this must be the name - /// of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format - /// documented in https://cloud.google.com/pubsub/docs/overview. - core.String producerNotificationChannel; - - /// Requirements that must be satisfied before a consumer project can use the - /// service. Each requirement is of the form <service.name>/<requirement-id>; - /// for example 'serviceusage.googleapis.com/billing-enabled'. - core.List<core.String> requirements; - - /// A list of usage rules that apply to individual API methods. - /// - /// **NOTE:** All service configuration rules follow "last one wins" order. - core.List<UsageRule> rules; - - Usage(); - - Usage.fromJson(core.Map _json) { - if (_json.containsKey("producerNotificationChannel")) { - producerNotificationChannel = _json["producerNotificationChannel"]; - } - if (_json.containsKey("requirements")) { - requirements = (_json["requirements"] as core.List).cast<core.String>(); - } - if (_json.containsKey("rules")) { - rules = (_json["rules"] as core.List) - .map<UsageRule>((value) => new UsageRule.fromJson(value)) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (producerNotificationChannel != null) { - _json["producerNotificationChannel"] = producerNotificationChannel; - } - if (requirements != null) { - _json["requirements"] = requirements; - } - if (rules != null) { - _json["rules"] = rules.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/// Usage configuration rules for the service. -/// -/// NOTE: Under development. -/// -/// -/// Use this rule to configure unregistered calls for the service. Unregistered -/// calls are calls that do not contain consumer project identity. -/// (Example: calls that do not contain an API key). -/// By default, API methods do not allow unregistered calls, and each method -/// call -/// must be identified by a consumer project identity. Use this rule to -/// allow/disallow unregistered calls. -/// -/// Example of an API that wants to allow unregistered calls for entire service. -/// -/// usage: -/// rules: -/// - selector: "*" -/// allow_unregistered_calls: true -/// -/// Example of a method that wants to allow unregistered calls. -/// -/// usage: -/// rules: -/// - selector: "google.example.library.v1.LibraryService.CreateBook" -/// allow_unregistered_calls: true -class UsageRule { - /// If true, the selected method allows unregistered calls, e.g. calls - /// that don't identify any user or application. - core.bool allowUnregisteredCalls; - - /// Selects the methods to which this rule applies. Use '*' to indicate all - /// methods in all APIs. - /// - /// Refer to selector for syntax details. - core.String selector; - - /// If true, the selected method should skip service control and the control - /// plane features, such as quota and billing, will not be available. - /// This flag is used by Google Cloud Endpoints to bypass checks for internal - /// methods, such as service health check methods. - core.bool skipServiceControl; - - UsageRule(); - - UsageRule.fromJson(core.Map _json) { - if (_json.containsKey("allowUnregisteredCalls")) { - allowUnregisteredCalls = _json["allowUnregisteredCalls"]; - } - if (_json.containsKey("selector")) { - selector = _json["selector"]; - } - if (_json.containsKey("skipServiceControl")) { - skipServiceControl = _json["skipServiceControl"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (allowUnregisteredCalls != null) { - _json["allowUnregisteredCalls"] = allowUnregisteredCalls; - } - if (selector != null) { - _json["selector"] = selector; - } - if (skipServiceControl != null) { - _json["skipServiceControl"] = skipServiceControl; - } - return _json; - } -} - -/// `Visibility` defines restrictions for the visibility of service -/// elements. Restrictions are specified using visibility labels -/// (e.g., TRUSTED_TESTER) that are elsewhere linked to users and projects. -/// -/// Users and projects can have access to more than one visibility label. The -/// effective visibility for multiple labels is the union of each label's -/// elements, plus any unrestricted elements. -/// -/// If an element and its parents have no restrictions, visibility is -/// unconditionally granted. -/// -/// Example: -/// -/// visibility: -/// rules: -/// - selector: google.calendar.Calendar.EnhancedSearch -/// restriction: TRUSTED_TESTER -/// - selector: google.calendar.Calendar.Delegate -/// restriction: GOOGLE_INTERNAL -/// -/// Here, all methods are publicly visible except for the restricted methods -/// EnhancedSearch and Delegate. -class Visibility { - /// A list of visibility rules that apply to individual API elements. - /// - /// **NOTE:** All service configuration rules follow "last one wins" order. - core.List<VisibilityRule> rules; - - Visibility(); - - Visibility.fromJson(core.Map _json) { - if (_json.containsKey("rules")) { - rules = (_json["rules"] as core.List) - .map<VisibilityRule>((value) => new VisibilityRule.fromJson(value)) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (rules != null) { - _json["rules"] = rules.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/// A visibility rule provides visibility configuration for an individual API -/// element. -class VisibilityRule { - /// 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. - /// - /// Example: - /// - /// visibility: - /// rules: - /// - selector: google.calendar.Calendar.EnhancedSearch - /// restriction: GOOGLE_INTERNAL, TRUSTED_TESTER - /// - /// Removing GOOGLE_INTERNAL from this restriction will break clients that - /// rely on this method and only had access to it through GOOGLE_INTERNAL. - core.String restriction; - - /// Selects methods, messages, fields, enums, etc. to which this rule applies. - /// - /// Refer to selector for syntax details. - core.String selector; - - VisibilityRule(); - - VisibilityRule.fromJson(core.Map _json) { - if (_json.containsKey("restriction")) { - restriction = _json["restriction"]; - } - if (_json.containsKey("selector")) { - selector = _json["selector"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (restriction != null) { - _json["restriction"] = restriction; - } - if (selector != null) { - _json["selector"] = selector; - } - return _json; - } -}
diff --git a/generated/googleapis/lib/serviceuser/v1.dart b/generated/googleapis/lib/serviceuser/v1.dart index 8cc7e01..d6bcf61 100644 --- a/generated/googleapis/lib/serviceuser/v1.dart +++ b/generated/googleapis/lib/serviceuser/v1.dart
@@ -187,12 +187,12 @@ /// - projects/my-project /// Value must have pattern "^projects/[^/]+$". /// + /// [pageSize] - Requested size of the next page of data. + /// /// [pageToken] - Token identifying which result to start with; returned by a /// previous list /// call. /// - /// [pageSize] - Requested size of the next page of data. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -204,7 +204,7 @@ /// If the used [http_1.Client] completes with an error when making a REST /// call, this method will complete with the same error. async.Future<ListEnabledServicesResponse> list(core.String parent, - {core.String pageToken, core.int pageSize, core.String $fields}) { + {core.int pageSize, core.String pageToken, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -215,12 +215,12 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -623,19 +623,9 @@ /// If a method doesn't have any auth requirements, request credentials will be /// ignored. class AuthenticationRule { - /// Whether to allow requests without a credential. The credential can be - /// an OAuth token, Google cookies (first-party auth) or EndUserCreds. - /// - /// For requests without credentials, if the service control environment is - /// specified, each incoming request **must** be associated with a service - /// consumer. This can be done by passing an API key that belongs to a - /// consumer - /// project. + /// If true, the service accepts API keys without any other credential. core.bool allowWithoutCredential; - /// Configuration for custom authentication. - CustomAuthRequirements customAuth; - /// The requirements for OAuth credentials. OAuthRequirements oauth; @@ -653,9 +643,6 @@ if (_json.containsKey("allowWithoutCredential")) { allowWithoutCredential = _json["allowWithoutCredential"]; } - if (_json.containsKey("customAuth")) { - customAuth = new CustomAuthRequirements.fromJson(_json["customAuth"]); - } if (_json.containsKey("oauth")) { oauth = new OAuthRequirements.fromJson(_json["oauth"]); } @@ -675,9 +662,6 @@ if (allowWithoutCredential != null) { _json["allowWithoutCredential"] = allowWithoutCredential; } - if (customAuth != null) { - _json["customAuth"] = (customAuth).toJson(); - } if (oauth != null) { _json["oauth"] = (oauth).toJson(); } @@ -910,6 +894,26 @@ /// /// Available context types are defined in package /// `google.rpc.context`. +/// +/// This also provides mechanism to whitelist any protobuf message extension +/// that +/// can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and +/// “x-goog-ext-<extension_id>-jspb” format. For example, list any service +/// specific protobuf types that can appear in grpc metadata as follows in your +/// yaml file: +/// +/// Example: +/// +/// context: +/// rules: +/// - selector: "google.example.library.v1.LibraryService.CreateBook" +/// allowed_request_extensions: +/// - google.foo.v1.NewExtension +/// allowed_response_extensions: +/// - google.foo.v1.NewExtension +/// +/// You can also specify extension ID instead of fully qualified extension name +/// here. class Context { /// A list of RPC context rules that apply to individual API methods. /// @@ -939,6 +943,14 @@ /// A context rule provides information about the context for an individual API /// element. class ContextRule { + /// A list of full type names or extension IDs of extensions allowed in grpc + /// side channel from client to backend. + core.List<core.String> allowedRequestExtensions; + + /// A list of full type names or extension IDs of extensions allowed in grpc + /// side channel from backend to client. + core.List<core.String> allowedResponseExtensions; + /// A list of full type names of provided contexts. core.List<core.String> provided; @@ -953,6 +965,14 @@ ContextRule(); ContextRule.fromJson(core.Map _json) { + if (_json.containsKey("allowedRequestExtensions")) { + allowedRequestExtensions = + (_json["allowedRequestExtensions"] as core.List).cast<core.String>(); + } + if (_json.containsKey("allowedResponseExtensions")) { + allowedResponseExtensions = + (_json["allowedResponseExtensions"] as core.List).cast<core.String>(); + } if (_json.containsKey("provided")) { provided = (_json["provided"] as core.List).cast<core.String>(); } @@ -967,6 +987,12 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (allowedRequestExtensions != null) { + _json["allowedRequestExtensions"] = allowedRequestExtensions; + } + if (allowedResponseExtensions != null) { + _json["allowedResponseExtensions"] = allowedResponseExtensions; + } if (provided != null) { _json["provided"] = provided; } @@ -1006,31 +1032,6 @@ } } -/// Configuration for a custom authentication provider. -class CustomAuthRequirements { - /// A configuration string containing connection information for the - /// authentication provider, typically formatted as a SmartService string - /// (go/smartservice). - core.String provider; - - CustomAuthRequirements(); - - CustomAuthRequirements.fromJson(core.Map _json) { - if (_json.containsKey("provider")) { - provider = _json["provider"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (provider != null) { - _json["provider"] = provider; - } - return _json; - } -} - /// Customize service error responses. For example, list any service /// specific protobuf types that can appear in error detail lists of /// error responses. @@ -1199,9 +1200,7 @@ /// <pre><code>[display text][fully.qualified.proto.name]</code></pre> /// Text can be excluded from doc using the following notation: /// <pre><code>(-- internal comment --)</code></pre> -/// Comments can be made conditional using a visibility label. The below -/// text will be only rendered if the `BETA` label is available: -/// <pre><code>(--BETA: comment for BETA users --)</code></pre> +/// /// A few directives are available in documentation. Note that /// directives must appear on a single line to be properly /// identified. The `include` directive includes a markdown file from @@ -3899,9 +3898,6 @@ /// Configuration controlling usage of this service. Usage usage; - /// API visibility configuration. - Visibility visibility; - Service(); Service.fromJson(core.Map _json) { @@ -4008,9 +4004,6 @@ if (_json.containsKey("usage")) { usage = new Usage.fromJson(_json["usage"]); } - if (_json.containsKey("visibility")) { - visibility = new Visibility.fromJson(_json["visibility"]); - } } core.Map<core.String, core.Object> toJson() { @@ -4102,9 +4095,6 @@ if (usage != null) { _json["usage"] = (usage).toJson(); } - if (visibility != null) { - _json["visibility"] = (visibility).toJson(); - } return _json; } } @@ -4659,100 +4649,3 @@ return _json; } } - -/// `Visibility` defines restrictions for the visibility of service -/// elements. Restrictions are specified using visibility labels -/// (e.g., TRUSTED_TESTER) that are elsewhere linked to users and projects. -/// -/// Users and projects can have access to more than one visibility label. The -/// effective visibility for multiple labels is the union of each label's -/// elements, plus any unrestricted elements. -/// -/// If an element and its parents have no restrictions, visibility is -/// unconditionally granted. -/// -/// Example: -/// -/// visibility: -/// rules: -/// - selector: google.calendar.Calendar.EnhancedSearch -/// restriction: TRUSTED_TESTER -/// - selector: google.calendar.Calendar.Delegate -/// restriction: GOOGLE_INTERNAL -/// -/// Here, all methods are publicly visible except for the restricted methods -/// EnhancedSearch and Delegate. -class Visibility { - /// A list of visibility rules that apply to individual API elements. - /// - /// **NOTE:** All service configuration rules follow "last one wins" order. - core.List<VisibilityRule> rules; - - Visibility(); - - Visibility.fromJson(core.Map _json) { - if (_json.containsKey("rules")) { - rules = (_json["rules"] as core.List) - .map<VisibilityRule>((value) => new VisibilityRule.fromJson(value)) - .toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (rules != null) { - _json["rules"] = rules.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/// A visibility rule provides visibility configuration for an individual API -/// element. -class VisibilityRule { - /// 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. - /// - /// Example: - /// - /// visibility: - /// rules: - /// - selector: google.calendar.Calendar.EnhancedSearch - /// restriction: GOOGLE_INTERNAL, TRUSTED_TESTER - /// - /// Removing GOOGLE_INTERNAL from this restriction will break clients that - /// rely on this method and only had access to it through GOOGLE_INTERNAL. - core.String restriction; - - /// Selects methods, messages, fields, enums, etc. to which this rule applies. - /// - /// Refer to selector for syntax details. - core.String selector; - - VisibilityRule(); - - VisibilityRule.fromJson(core.Map _json) { - if (_json.containsKey("restriction")) { - restriction = _json["restriction"]; - } - if (_json.containsKey("selector")) { - selector = _json["selector"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (restriction != null) { - _json["restriction"] = restriction; - } - if (selector != null) { - _json["selector"] = selector; - } - return _json; - } -}
diff --git a/generated/googleapis/lib/sheets/v4.dart b/generated/googleapis/lib/sheets/v4.dart index e7fd72b..106a625 100644 --- a/generated/googleapis/lib/sheets/v4.dart +++ b/generated/googleapis/lib/sheets/v4.dart
@@ -760,6 +760,20 @@ /// /// [spreadsheetId] - The ID of the spreadsheet to retrieve data from. /// + /// [ranges] - The A1 notation of the values to retrieve. + /// + /// [majorDimension] - The major dimension that results should use. + /// + /// For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, + /// then requesting `range=A1:B2,majorDimension=ROWS` will return + /// `[[1,2],[3,4]]`, + /// whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return + /// `[[1,3],[2,4]]`. + /// Possible string values are: + /// - "DIMENSION_UNSPECIFIED" : A DIMENSION_UNSPECIFIED. + /// - "ROWS" : A ROWS. + /// - "COLUMNS" : A COLUMNS. + /// /// [valueRenderOption] - How values should be represented in the output. /// The default render option is ValueRenderOption.FORMATTED_VALUE. /// Possible string values are: @@ -777,20 +791,6 @@ /// - "SERIAL_NUMBER" : A SERIAL_NUMBER. /// - "FORMATTED_STRING" : A FORMATTED_STRING. /// - /// [ranges] - The A1 notation of the values to retrieve. - /// - /// [majorDimension] - The major dimension that results should use. - /// - /// For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`, - /// then requesting `range=A1:B2,majorDimension=ROWS` will return - /// `[[1,2],[3,4]]`, - /// whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return - /// `[[1,3],[2,4]]`. - /// Possible string values are: - /// - "DIMENSION_UNSPECIFIED" : A DIMENSION_UNSPECIFIED. - /// - "ROWS" : A ROWS. - /// - "COLUMNS" : A COLUMNS. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -802,10 +802,10 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<BatchGetValuesResponse> batchGet(core.String spreadsheetId, - {core.String valueRenderOption, - core.String dateTimeRenderOption, - core.List<core.String> ranges, + {core.List<core.String> ranges, core.String majorDimension, + core.String valueRenderOption, + core.String dateTimeRenderOption, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -817,18 +817,18 @@ if (spreadsheetId == null) { throw new core.ArgumentError("Parameter spreadsheetId is required."); } - if (valueRenderOption != null) { - _queryParams["valueRenderOption"] = [valueRenderOption]; - } - if (dateTimeRenderOption != null) { - _queryParams["dateTimeRenderOption"] = [dateTimeRenderOption]; - } if (ranges != null) { _queryParams["ranges"] = ranges; } if (majorDimension != null) { _queryParams["majorDimension"] = [majorDimension]; } + if (valueRenderOption != null) { + _queryParams["valueRenderOption"] = [valueRenderOption]; + } + if (dateTimeRenderOption != null) { + _queryParams["dateTimeRenderOption"] = [dateTimeRenderOption]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1178,6 +1178,22 @@ /// /// [range] - The A1 notation of the values to update. /// + /// [valueInputOption] - How the input data should be interpreted. + /// Possible string values are: + /// - "INPUT_VALUE_OPTION_UNSPECIFIED" : A INPUT_VALUE_OPTION_UNSPECIFIED. + /// - "RAW" : A RAW. + /// - "USER_ENTERED" : A USER_ENTERED. + /// + /// [responseDateTimeRenderOption] - Determines how dates, times, and + /// durations in the response should be + /// rendered. This is ignored if response_value_render_option is + /// FORMATTED_VALUE. + /// The default dateTime render option is + /// DateTimeRenderOption.SERIAL_NUMBER. + /// Possible string values are: + /// - "SERIAL_NUMBER" : A SERIAL_NUMBER. + /// - "FORMATTED_STRING" : A FORMATTED_STRING. + /// /// [includeValuesInResponse] - Determines if the update response should /// include the values /// of the cells that were updated. By default, responses @@ -1194,22 +1210,6 @@ /// - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. /// - "FORMULA" : A FORMULA. /// - /// [valueInputOption] - How the input data should be interpreted. - /// Possible string values are: - /// - "INPUT_VALUE_OPTION_UNSPECIFIED" : A INPUT_VALUE_OPTION_UNSPECIFIED. - /// - "RAW" : A RAW. - /// - "USER_ENTERED" : A USER_ENTERED. - /// - /// [responseDateTimeRenderOption] - Determines how dates, times, and - /// durations in the response should be - /// rendered. This is ignored if response_value_render_option is - /// FORMATTED_VALUE. - /// The default dateTime render option is - /// [DateTimeRenderOption.SERIAL_NUMBER]. - /// Possible string values are: - /// - "SERIAL_NUMBER" : A SERIAL_NUMBER. - /// - "FORMATTED_STRING" : A FORMATTED_STRING. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -1222,10 +1222,10 @@ /// this method will complete with the same error. async.Future<UpdateValuesResponse> update( ValueRange request, core.String spreadsheetId, core.String range, - {core.bool includeValuesInResponse, - core.String responseValueRenderOption, - core.String valueInputOption, + {core.String valueInputOption, core.String responseDateTimeRenderOption, + core.bool includeValuesInResponse, + core.String responseValueRenderOption, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -1243,12 +1243,6 @@ if (range == null) { throw new core.ArgumentError("Parameter range is required."); } - if (includeValuesInResponse != null) { - _queryParams["includeValuesInResponse"] = ["${includeValuesInResponse}"]; - } - if (responseValueRenderOption != null) { - _queryParams["responseValueRenderOption"] = [responseValueRenderOption]; - } if (valueInputOption != null) { _queryParams["valueInputOption"] = [valueInputOption]; } @@ -1257,6 +1251,12 @@ responseDateTimeRenderOption ]; } + if (includeValuesInResponse != null) { + _queryParams["includeValuesInResponse"] = ["${includeValuesInResponse}"]; + } + if (responseValueRenderOption != null) { + _queryParams["responseValueRenderOption"] = [responseValueRenderOption]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1408,6 +1408,70 @@ } } +/// Creates a group over the specified range. +/// +/// If the requested range is a superset of the range of an existing group G, +/// then the depth of G is incremented and this new group G' has the +/// depth of that group. For example, a group [C:D, depth 1] + [B:E] results in +/// groups [B:E, depth 1] and [C:D, depth 2]. +/// If the requested range is a subset of the range of an existing group G, +/// then the depth of the new group G' becomes one greater than the depth of G. +/// For example, a group [B:E, depth 1] + [C:D] results in groups [B:E, depth 1] +/// and [C:D, depth 2]. +/// If the requested range starts before and ends within, or starts within and +/// ends after, the range of an existing group G, then the range of the existing +/// group G becomes the union of the ranges, and the new group G' has +/// depth one greater than the depth of G and range as the intersection of the +/// ranges. For example, a group [B:D, depth 1] + [C:E] results in groups [B:E, +/// depth 1] and [C:D, depth 2]. +class AddDimensionGroupRequest { + /// The range over which to create a group. + DimensionRange range; + + AddDimensionGroupRequest(); + + AddDimensionGroupRequest.fromJson(core.Map _json) { + if (_json.containsKey("range")) { + range = new DimensionRange.fromJson(_json["range"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (range != null) { + _json["range"] = (range).toJson(); + } + return _json; + } +} + +/// The result of adding a group. +class AddDimensionGroupResponse { + /// All groups of a dimension after adding a group to that dimension. + core.List<DimensionGroup> dimensionGroups; + + AddDimensionGroupResponse(); + + AddDimensionGroupResponse.fromJson(core.Map _json) { + if (_json.containsKey("dimensionGroups")) { + dimensionGroups = (_json["dimensionGroups"] as core.List) + .map<DimensionGroup>((value) => new DimensionGroup.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (dimensionGroups != null) { + _json["dimensionGroups"] = + dimensionGroups.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + /// Adds a filter view. class AddFilterViewRequest { /// The filter to add. The filterViewId @@ -1821,7 +1885,7 @@ /// The id of the banded range. core.int bandedRangeId; - /// Properties for column bands. These properties will be applied on a column- + /// Properties for column bands. These properties are 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; @@ -1829,7 +1893,7 @@ /// The range over which these properties are applied. GridRange range; - /// Properties for row bands. These properties will be applied on a row-by-row + /// Properties for row bands. These properties are 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; @@ -2044,6 +2108,10 @@ /// For example, if charting stock prices over time, multiple series may exist, /// one for the "Open Price", "High Price", "Low Price" and "Close Price". class BasicChartSeries { + /// The color for elements (i.e. bars, lines, points) associated with this + /// series. If empty, a default color is used. + Color color; + /// The line style of this series. Valid only if the /// chartType is AREA, /// LINE, or SCATTER. @@ -2103,6 +2171,9 @@ BasicChartSeries(); BasicChartSeries.fromJson(core.Map _json) { + if (_json.containsKey("color")) { + color = new Color.fromJson(_json["color"]); + } if (_json.containsKey("lineStyle")) { lineStyle = new LineStyle.fromJson(_json["lineStyle"]); } @@ -2120,6 +2191,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (color != null) { + _json["color"] = (color).toJson(); + } if (lineStyle != null) { _json["lineStyle"] = (lineStyle).toJson(); } @@ -2209,7 +2283,7 @@ core.List<BasicChartSeries> series; /// The stacked type for charts that support vertical stacking. - /// Applies to Area, Bar, Column, and Stepped Area charts. + /// Applies to Area, Bar, Column, Combo, and Stepped Area charts. /// Possible string values are: /// - "BASIC_CHART_STACKED_TYPE_UNSPECIFIED" : Default value, do not use. /// - "NOT_STACKED" : Series are not stacked. @@ -2671,7 +2745,7 @@ core.List<Request> requests; /// True if grid data should be returned. Meaningful only if - /// if include_spreadsheet_response is 'true'. + /// if include_spreadsheet_in_response is 'true'. /// This parameter is ignored if a field mask was set in the request. core.bool responseIncludeGridData; @@ -3247,7 +3321,8 @@ /// Supported by data validation. /// Requires a single ConditionValue, /// and the value must be a valid range in A1 notation. - /// - "ONE_OF_LIST" : The cell's value must in the list of condition values. + /// - "ONE_OF_LIST" : The cell's value must be in the list of condition + /// values. /// Supported by data validation. /// Supports any number of condition values, /// one per item in the list. @@ -3261,6 +3336,19 @@ /// - "CUSTOM_FORMULA" : The condition's formula must evaluate to true. /// Supported by data validation, conditional formatting and filters. /// Requires a single ConditionValue. + /// - "BOOLEAN" : The cell's value must be TRUE/FALSE or in the list of + /// condition values. + /// Supported by data validation. + /// Renders as a cell checkbox. + /// Supports zero, one or two ConditionValues. No + /// values indicates the cell must be TRUE or FALSE, where TRUE renders as + /// checked and FALSE renders as unchecked. One value indicates the cell + /// will render as checked when it contains that value and unchecked when it + /// is blank. Two values indicate that the cell will render as checked when + /// it contains the first value and unchecked when it contains the second + /// value. For example, ["Yes","No"] indicates that the cell will render a + /// checked box when it has the value "Yes" and an unchecked box when it has + /// the value "No". core.String type; /// The values of the condition. The number of supported values depends @@ -3298,7 +3386,7 @@ /// A rule that may or may not match, depending on the condition. class BooleanRule { /// The condition of the rule. If the condition evaluates to true, - /// the format will be applied. + /// the format is applied. BooleanCondition condition; /// The format to apply. @@ -3470,7 +3558,7 @@ ChartData domain; /// The data containing the bubble group IDs. All bubbles with the same group - /// ID will be drawn in the same color. If bubble_sizes is specified then + /// ID are drawn in the same color. If bubble_sizes is specified then /// this field must also be specified but may contain blank values. /// This field is optional. ChartData groupIds; @@ -3733,8 +3821,8 @@ /// This field is read-only. CellFormat effectiveFormat; - /// The effective value of the cell. For cells with formulas, this will be - /// the calculated value. For cells with literals, this will be + /// The effective value of the cell. For cells with formulas, this is + /// the calculated value. For cells with literals, this is /// the same as the user_entered_value. /// This field is read-only. ExtendedValue effectiveValue; @@ -3768,7 +3856,7 @@ /// the properties of the cell unless explicitly changed). /// /// When writing, the new runs will overwrite any prior runs. When writing a - /// new user_entered_value, previous runs will be erased. + /// new user_entered_value, previous runs are erased. core.List<TextFormatRun> textFormatRuns; /// The format the user entered for the cell. @@ -4062,7 +4150,8 @@ /// with length 1. /// The domain (if it exists) & all series must have the same number /// of source ranges. If using more than one source range, then the source - /// range at a given offset must be contiguous across the domain and series. + /// range at a given offset must be in order and contiguous across the domain + /// and series. /// /// For example, these are valid configurations: /// @@ -4168,6 +4257,9 @@ /// This field is optional. TextPosition titleTextPosition; + /// A treemap chart specification. + TreemapChartSpec treemapChart; + /// A waterfall chart specification. WaterfallChartSpec waterfallChart; @@ -4227,6 +4319,9 @@ if (_json.containsKey("titleTextPosition")) { titleTextPosition = new TextPosition.fromJson(_json["titleTextPosition"]); } + if (_json.containsKey("treemapChart")) { + treemapChart = new TreemapChartSpec.fromJson(_json["treemapChart"]); + } if (_json.containsKey("waterfallChart")) { waterfallChart = new WaterfallChartSpec.fromJson(_json["waterfallChart"]); } @@ -4286,6 +4381,9 @@ if (titleTextPosition != null) { _json["titleTextPosition"] = (titleTextPosition).toJson(); } + if (treemapChart != null) { + _json["treemapChart"] = (treemapChart).toJson(); + } if (waterfallChart != null) { _json["waterfallChart"] = (waterfallChart).toJson(); } @@ -4560,8 +4658,8 @@ core.String relativeDate; /// A value the condition is based on. - /// The value will be parsed as if the user typed into a cell. - /// Formulas are supported (and must begin with an `=`). + /// The value is parsed as if the user typed into a cell. + /// Formulas are supported (and must begin with an `=` or a '+'). core.String userEnteredValue; ConditionValue(); @@ -4596,7 +4694,7 @@ /// The formatting will vary based on the gradients in the rule. GradientRule gradientRule; - /// The ranges that will be formatted if the condition is true. + /// The ranges that are formatted if the condition is true. /// All the ranges must be on the same grid. core.List<GridRange> ranges; @@ -4973,6 +5071,84 @@ } } +/// Allows you to organize the date-time values in a source data column into +/// buckets based on selected parts of their date or time values. For example, +/// consider a pivot table showing sales transactions by date: +/// +/// +----------+--------------+ +/// | Date | SUM of Sales | +/// +----------+--------------+ +/// | 1/1/2017 | $621.14 | +/// | 2/3/2017 | $708.84 | +/// | 5/8/2017 | $326.84 | +/// ... +/// +----------+--------------+ +/// Applying a date-time group rule with a DateTimeRuleType of YEAR_MONTH +/// results in the following pivot table. +/// +/// +--------------+--------------+ +/// | Grouped Date | SUM of Sales | +/// +--------------+--------------+ +/// | 2017-Jan | $53,731.78 | +/// | 2017-Feb | $83,475.32 | +/// | 2017-Mar | $94,385.05 | +/// ... +/// +--------------+--------------+ +class DateTimeRule { + /// The type of date-time grouping to apply. + /// Possible string values are: + /// - "DATE_TIME_RULE_TYPE_UNSPECIFIED" : The default type, do not use. + /// - "SECOND" : Group dates by second, from 0 to 59. + /// - "MINUTE" : Group dates by minute, from 0 to 59. + /// - "HOUR" : Group dates by hour using a 24-hour system, from 0 to 23. + /// - "HOUR_MINUTE" : Group dates by hour and minute using a 24-hour system, + /// for example 19:45. + /// - "HOUR_MINUTE_AMPM" : Group dates by hour and minute using a 12-hour + /// system, for example 7:45 + /// PM. The AM/PM designation is translated based on the spreadsheet + /// locale. + /// - "DAY_OF_WEEK" : Group dates by day of week, for example Sunday. The days + /// of the week will + /// be translated based on the spreadsheet locale. + /// - "DAY_OF_YEAR" : Group dates by day of year, from 1 to 366. Note that + /// dates after Feb. 29 + /// fall in different buckets in leap years than in non-leap years. + /// - "DAY_OF_MONTH" : Group dates by day of month, from 1 to 31. + /// - "DAY_MONTH" : Group dates by day and month, for example 22-Nov. The + /// month is + /// translated based on the spreadsheet locale. + /// - "MONTH" : Group dates by month, for example Nov. The month is translated + /// based + /// on the spreadsheet locale. + /// - "QUARTER" : Group dates by quarter, for example Q1 (which represents + /// Jan-Mar). + /// - "YEAR" : Group dates by year, for example 2008. + /// - "YEAR_MONTH" : Group dates by year and month, for example 2008-Nov. The + /// month is + /// translated based on the spreadsheet locale. + /// - "YEAR_QUARTER" : Group dates by year and quarter, for example 2008 Q4. + /// - "YEAR_MONTH_DAY" : Group dates by year, month, and day, for example + /// 2008-11-22. + core.String type; + + DateTimeRule(); + + DateTimeRule.fromJson(core.Map _json) { + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + /// Removes the banded range with the given ID from the spreadsheet. class DeleteBandingRequest { /// The ID of the banded range to delete. @@ -5104,6 +5280,60 @@ } } +/// Deletes a group over the specified range by decrementing the depth of the +/// dimensions in the range. +/// +/// For example, assume the sheet has a depth-1 group over B:E and a depth-2 +/// group over C:D. Deleting a group over D:E leaves the sheet with a +/// depth-1 group over B:D and a depth-2 group over C:C. +class DeleteDimensionGroupRequest { + /// The range of the group to be deleted. + DimensionRange range; + + DeleteDimensionGroupRequest(); + + DeleteDimensionGroupRequest.fromJson(core.Map _json) { + if (_json.containsKey("range")) { + range = new DimensionRange.fromJson(_json["range"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (range != null) { + _json["range"] = (range).toJson(); + } + return _json; + } +} + +/// The result of deleting a group. +class DeleteDimensionGroupResponse { + /// All groups of a dimension after deleting a group from that dimension. + core.List<DimensionGroup> dimensionGroups; + + DeleteDimensionGroupResponse(); + + DeleteDimensionGroupResponse.fromJson(core.Map _json) { + if (_json.containsKey("dimensionGroups")) { + dimensionGroups = (_json["dimensionGroups"] as core.List) + .map<DimensionGroup>((value) => new DimensionGroup.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (dimensionGroups != null) { + _json["dimensionGroups"] = + dimensionGroups.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + /// Deletes the dimensions from the sheet. class DeleteDimensionRequest { /// The dimensions to delete from the sheet. @@ -5288,7 +5518,7 @@ /// metadata is associated with row 5 and another row is then subsequently /// inserted above row 5, that original metadata will still be associated with /// the row it was first associated with (what is now row 6). If the associated -/// object is deleted its metadata will be deleted too. +/// object is deleted its metadata is deleted too. class DeveloperMetadata { /// The location where the metadata is associated. DeveloperMetadataLocation location; @@ -5564,6 +5794,57 @@ } } +/// A group over an interval of rows or columns on a sheet, which can contain or +/// be contained within other groups. A group can be collapsed or expanded as a +/// unit on the sheet. +class DimensionGroup { + /// This field is true if this group is collapsed. A collapsed group remains + /// collapsed if an overlapping group at a shallower depth is expanded. + /// + /// A true value does not imply that all dimensions within the group are + /// hidden, since a dimension's visibility can change independently from this + /// group property. However, when this property is updated, all dimensions + /// within it are set to hidden if this field is true, or set to visible if + /// this field is false. + core.bool collapsed; + + /// The depth of the group, representing how many groups have a range that + /// wholly contains the range of this group. + core.int depth; + + /// The range over which this group exists. + DimensionRange range; + + DimensionGroup(); + + DimensionGroup.fromJson(core.Map _json) { + if (_json.containsKey("collapsed")) { + collapsed = _json["collapsed"]; + } + if (_json.containsKey("depth")) { + depth = _json["depth"]; + } + if (_json.containsKey("range")) { + range = new DimensionRange.fromJson(_json["range"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (collapsed != null) { + _json["collapsed"] = collapsed; + } + if (depth != null) { + _json["depth"] = depth; + } + if (range != null) { + _json["range"] = (range).toJson(); + } + return _json; + } +} + /// Properties about a dimension. class DimensionProperties { /// The developer metadata associated with a single row or column. @@ -5884,7 +6165,7 @@ /// The position of an embedded object such as a chart. class EmbeddedObjectPosition { - /// If true, the embedded object will be put on a new sheet whose ID + /// If true, the embedded object is put on a new sheet whose ID /// is chosen for you. Used only when writing. core.bool newSheet; @@ -6518,6 +6799,9 @@ /// The number of columns in the grid. core.int columnCount; + /// True if the column grouping control toggle is shown after the group. + core.bool columnGroupControlAfter; + /// The number of columns that are frozen in the grid. core.int frozenColumnCount; @@ -6530,12 +6814,18 @@ /// The number of rows in the grid. core.int rowCount; + /// True if the row grouping control toggle is shown after the group. + core.bool rowGroupControlAfter; + GridProperties(); GridProperties.fromJson(core.Map _json) { if (_json.containsKey("columnCount")) { columnCount = _json["columnCount"]; } + if (_json.containsKey("columnGroupControlAfter")) { + columnGroupControlAfter = _json["columnGroupControlAfter"]; + } if (_json.containsKey("frozenColumnCount")) { frozenColumnCount = _json["frozenColumnCount"]; } @@ -6548,6 +6838,9 @@ if (_json.containsKey("rowCount")) { rowCount = _json["rowCount"]; } + if (_json.containsKey("rowGroupControlAfter")) { + rowGroupControlAfter = _json["rowGroupControlAfter"]; + } } core.Map<core.String, core.Object> toJson() { @@ -6556,6 +6849,9 @@ if (columnCount != null) { _json["columnCount"] = columnCount; } + if (columnGroupControlAfter != null) { + _json["columnGroupControlAfter"] = columnGroupControlAfter; + } if (frozenColumnCount != null) { _json["frozenColumnCount"] = frozenColumnCount; } @@ -6568,6 +6864,9 @@ if (rowCount != null) { _json["rowCount"] = rowCount; } + if (rowGroupControlAfter != null) { + _json["rowGroupControlAfter"] = rowGroupControlAfter; + } return _json; } } @@ -6750,10 +7049,10 @@ /// Allows you to organize the numeric values in a source data column into /// buckets of a constant size. All values from HistogramRule.start to -/// HistogramRule.end will be placed into groups of size +/// HistogramRule.end are placed into groups of size /// HistogramRule.interval. In addition, all values below -/// HistogramRule.start will be placed in one group, and all values above -/// HistogramRule.end will be placed in another. Only +/// HistogramRule.start are placed in one group, and all values above +/// HistogramRule.end are placed in another. Only /// HistogramRule.interval is required, though if HistogramRule.start /// and HistogramRule.end are both provided, HistogramRule.start must /// be less than HistogramRule.end. For example, a pivot table showing @@ -6783,15 +7082,17 @@ /// | Grand Total | $29.12 | /// +-------------+-------------------+ class HistogramRule { - /// Optional. The maximum value at which items will be placed into buckets - /// of constant size. Values above end will be lumped into a single bucket. + /// The maximum value at which items are placed into buckets + /// of constant size. Values above end are lumped into a single bucket. + /// This field is optional. core.double end; - /// Required. The size of the buckets that will be created. Must be positive. + /// The size of the buckets that are created. Must be positive. core.double interval; - /// Optional. The minimum value at which items will be placed into buckets - /// of constant size. Values below start will be lumped into a single bucket. + /// The minimum value at which items are placed into buckets + /// of constant size. Values below start are lumped into a single bucket. + /// This field is optional. core.double start; HistogramRule(); @@ -6948,19 +7249,19 @@ /// How the value should be interpreted. /// Possible string values are: /// - "INTERPOLATION_POINT_TYPE_UNSPECIFIED" : The default value, do not use. - /// - "MIN" : The interpolation point will use the minimum value in the + /// - "MIN" : The interpolation point uses the minimum value in the /// cells over the range of the conditional format. - /// - "MAX" : The interpolation point will use the maximum value in the + /// - "MAX" : The interpolation point uses the maximum value in the /// cells over the range of the conditional format. - /// - "NUMBER" : The interpolation point will use exactly the value in + /// - "NUMBER" : The interpolation point uses exactly the value in /// InterpolationPoint.value. - /// - "PERCENT" : The interpolation point will be the given percentage over + /// - "PERCENT" : The interpolation point is the given percentage over /// all the cells in the range of the conditional format. /// This is equivalent to NUMBER if the value was: /// `=(MAX(FLATTEN(range)) * (value / 100)) /// + (MIN(FLATTEN(range)) * (1 - (value / 100)))` /// (where errors in the range are ignored when flattening). - /// - "PERCENTILE" : The interpolation point will be the given percentile + /// - "PERCENTILE" : The interpolation point is the given percentile /// over all the cells in the range of the conditional format. /// This is equivalent to NUMBER if the value was: /// `=PERCENTILE(FLATTEN(range), value / 100)` @@ -7096,7 +7397,7 @@ /// ... /// +-------+-------------------+ /// could be turned into a pivot table that aggregates population by time zone -/// by providing a list of groups (e.g. groupName = 'Central', +/// by providing a list of groups (for example, groupName = 'Central', /// items = ['AL', 'AR', 'IA', ...]) to a manual group rule. /// Note that a similar effect could be achieved by adding a time zone column /// to the source data and adjusting the pivot table. @@ -7802,7 +8103,7 @@ core.String label; /// True if the headings in this pivot group should be repeated. - /// This is only valid for row groupings and will be ignored by columns. + /// This is only valid for row groupings and is ignored by columns. /// /// By default, we minimize repitition of headings by not showing higher /// level headings where they are the same. For example, even though the @@ -7914,6 +8215,9 @@ /// the source data, though on any given column you may add both a /// PivotGroup that has a rule and a PivotGroup that does not. class PivotGroupRule { + /// A DateTimeRule. + DateTimeRule dateTimeRule; + /// A HistogramRule. HistogramRule histogramRule; @@ -7923,6 +8227,9 @@ PivotGroupRule(); PivotGroupRule.fromJson(core.Map _json) { + if (_json.containsKey("dateTimeRule")) { + dateTimeRule = new DateTimeRule.fromJson(_json["dateTimeRule"]); + } if (_json.containsKey("histogramRule")) { histogramRule = new HistogramRule.fromJson(_json["histogramRule"]); } @@ -7934,6 +8241,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (dateTimeRule != null) { + _json["dateTimeRule"] = (dateTimeRule).toJson(); + } if (histogramRule != null) { _json["histogramRule"] = (histogramRule).toJson(); } @@ -8028,7 +8338,7 @@ /// An optional mapping of filters per source column offset. /// - /// The filters will be applied before aggregating data into the pivot table. + /// The filters are applied before aggregating data into the pivot table. /// The map's key is the column offset of the source range that you want to /// filter, and the value is the criteria for that column. /// @@ -8116,7 +8426,7 @@ /// If specified, indicates that pivot values should be displayed as /// the result of a calculation with another pivot value. For example, if /// calculated_display_type is specified as PERCENT_OF_GRAND_TOTAL, all the - /// pivot values will be displayed as the percentage of the grand total. In + /// pivot values are displayed as the percentage of the grand total. In /// the Sheets UI, this is referred to as "Show As" in the value section of a /// pivot table. /// Possible string values are: @@ -8412,6 +8722,9 @@ /// Adds a new conditional format rule. AddConditionalFormatRuleRequest addConditionalFormatRule; + /// Creates a group over the specified range. + AddDimensionGroupRequest addDimensionGroup; + /// Adds a filter view. AddFilterViewRequest addFilterView; @@ -8461,6 +8774,9 @@ /// Deletes rows or columns in a sheet. DeleteDimensionRequest deleteDimension; + /// Deletes a group over the specified range. + DeleteDimensionGroupRequest deleteDimensionGroup; + /// Deletes an embedded object (e.g, chart, image) in a sheet. DeleteEmbeddedObjectRequest deleteEmbeddedObject; @@ -8542,6 +8858,9 @@ /// Updates an existing developer metadata entry UpdateDeveloperMetadataRequest updateDeveloperMetadata; + /// Updates the state of the specified group. + UpdateDimensionGroupRequest updateDimensionGroup; + /// Updates dimensions' properties. UpdateDimensionPropertiesRequest updateDimensionProperties; @@ -8576,6 +8895,10 @@ addConditionalFormatRule = new AddConditionalFormatRuleRequest.fromJson( _json["addConditionalFormatRule"]); } + if (_json.containsKey("addDimensionGroup")) { + addDimensionGroup = + new AddDimensionGroupRequest.fromJson(_json["addDimensionGroup"]); + } if (_json.containsKey("addFilterView")) { addFilterView = new AddFilterViewRequest.fromJson(_json["addFilterView"]); } @@ -8633,6 +8956,10 @@ deleteDimension = new DeleteDimensionRequest.fromJson(_json["deleteDimension"]); } + if (_json.containsKey("deleteDimensionGroup")) { + deleteDimensionGroup = new DeleteDimensionGroupRequest.fromJson( + _json["deleteDimensionGroup"]); + } if (_json.containsKey("deleteEmbeddedObject")) { deleteEmbeddedObject = new DeleteEmbeddedObjectRequest.fromJson( _json["deleteEmbeddedObject"]); @@ -8728,6 +9055,10 @@ updateDeveloperMetadata = new UpdateDeveloperMetadataRequest.fromJson( _json["updateDeveloperMetadata"]); } + if (_json.containsKey("updateDimensionGroup")) { + updateDimensionGroup = new UpdateDimensionGroupRequest.fromJson( + _json["updateDimensionGroup"]); + } if (_json.containsKey("updateDimensionProperties")) { updateDimensionProperties = new UpdateDimensionPropertiesRequest.fromJson( _json["updateDimensionProperties"]); @@ -8772,6 +9103,9 @@ if (addConditionalFormatRule != null) { _json["addConditionalFormatRule"] = (addConditionalFormatRule).toJson(); } + if (addDimensionGroup != null) { + _json["addDimensionGroup"] = (addDimensionGroup).toJson(); + } if (addFilterView != null) { _json["addFilterView"] = (addFilterView).toJson(); } @@ -8821,6 +9155,9 @@ if (deleteDimension != null) { _json["deleteDimension"] = (deleteDimension).toJson(); } + if (deleteDimensionGroup != null) { + _json["deleteDimensionGroup"] = (deleteDimensionGroup).toJson(); + } if (deleteEmbeddedObject != null) { _json["deleteEmbeddedObject"] = (deleteEmbeddedObject).toJson(); } @@ -8903,6 +9240,9 @@ if (updateDeveloperMetadata != null) { _json["updateDeveloperMetadata"] = (updateDeveloperMetadata).toJson(); } + if (updateDimensionGroup != null) { + _json["updateDimensionGroup"] = (updateDimensionGroup).toJson(); + } if (updateDimensionProperties != null) { _json["updateDimensionProperties"] = (updateDimensionProperties).toJson(); } @@ -8938,6 +9278,9 @@ /// A reply from adding a chart. AddChartResponse addChart; + /// A reply from adding a dimension group. + AddDimensionGroupResponse addDimensionGroup; + /// A reply from adding a filter view. AddFilterViewResponse addFilterView; @@ -8959,6 +9302,9 @@ /// A reply from deleting a developer metadata entry. DeleteDeveloperMetadataResponse deleteDeveloperMetadata; + /// A reply from deleting a dimension group. + DeleteDimensionGroupResponse deleteDimensionGroup; + /// A reply from duplicating a filter view. DuplicateFilterViewResponse duplicateFilterView; @@ -8986,6 +9332,10 @@ if (_json.containsKey("addChart")) { addChart = new AddChartResponse.fromJson(_json["addChart"]); } + if (_json.containsKey("addDimensionGroup")) { + addDimensionGroup = + new AddDimensionGroupResponse.fromJson(_json["addDimensionGroup"]); + } if (_json.containsKey("addFilterView")) { addFilterView = new AddFilterViewResponse.fromJson(_json["addFilterView"]); @@ -9014,6 +9364,10 @@ deleteDeveloperMetadata = new DeleteDeveloperMetadataResponse.fromJson( _json["deleteDeveloperMetadata"]); } + if (_json.containsKey("deleteDimensionGroup")) { + deleteDimensionGroup = new DeleteDimensionGroupResponse.fromJson( + _json["deleteDimensionGroup"]); + } if (_json.containsKey("duplicateFilterView")) { duplicateFilterView = new DuplicateFilterViewResponse.fromJson( _json["duplicateFilterView"]); @@ -9050,6 +9404,9 @@ if (addChart != null) { _json["addChart"] = (addChart).toJson(); } + if (addDimensionGroup != null) { + _json["addDimensionGroup"] = (addDimensionGroup).toJson(); + } if (addFilterView != null) { _json["addFilterView"] = (addFilterView).toJson(); } @@ -9072,6 +9429,9 @@ if (deleteDeveloperMetadata != null) { _json["deleteDeveloperMetadata"] = (deleteDeveloperMetadata).toJson(); } + if (deleteDimensionGroup != null) { + _json["deleteDimensionGroup"] = (deleteDimensionGroup).toJson(); + } if (duplicateFilterView != null) { _json["duplicateFilterView"] = (duplicateFilterView).toJson(); } @@ -9238,7 +9598,7 @@ /// A sheet in a spreadsheet. class Sheet { - /// The banded (i.e. alternating colors) ranges on this sheet. + /// The banded (alternating colors) ranges on this sheet. core.List<BandedRange> bandedRanges; /// The filter on this sheet, if any. @@ -9247,6 +9607,10 @@ /// The specifications of every chart on this sheet. core.List<EmbeddedChart> charts; + /// All column groups on this sheet, ordered by increasing range start index, + /// then by group depth. + core.List<DimensionGroup> columnGroups; + /// The conditional format rules in this sheet. core.List<ConditionalFormatRule> conditionalFormats; @@ -9275,6 +9639,11 @@ /// The protected ranges in this sheet. core.List<ProtectedRange> protectedRanges; + /// All row groups on this sheet, ordered by increasing range start index, + /// then + /// by group depth. + core.List<DimensionGroup> rowGroups; + Sheet(); Sheet.fromJson(core.Map _json) { @@ -9291,6 +9660,11 @@ .map<EmbeddedChart>((value) => new EmbeddedChart.fromJson(value)) .toList(); } + if (_json.containsKey("columnGroups")) { + columnGroups = (_json["columnGroups"] as core.List) + .map<DimensionGroup>((value) => new DimensionGroup.fromJson(value)) + .toList(); + } if (_json.containsKey("conditionalFormats")) { conditionalFormats = (_json["conditionalFormats"] as core.List) .map<ConditionalFormatRule>( @@ -9326,6 +9700,11 @@ .map<ProtectedRange>((value) => new ProtectedRange.fromJson(value)) .toList(); } + if (_json.containsKey("rowGroups")) { + rowGroups = (_json["rowGroups"] as core.List) + .map<DimensionGroup>((value) => new DimensionGroup.fromJson(value)) + .toList(); + } } core.Map<core.String, core.Object> toJson() { @@ -9341,6 +9720,10 @@ if (charts != null) { _json["charts"] = charts.map((value) => (value).toJson()).toList(); } + if (columnGroups != null) { + _json["columnGroups"] = + columnGroups.map((value) => (value).toJson()).toList(); + } if (conditionalFormats != null) { _json["conditionalFormats"] = conditionalFormats.map((value) => (value).toJson()).toList(); @@ -9366,6 +9749,9 @@ _json["protectedRanges"] = protectedRanges.map((value) => (value).toJson()).toList(); } + if (rowGroups != null) { + _json["rowGroups"] = rowGroups.map((value) => (value).toJson()).toList(); + } return _json; } } @@ -9383,12 +9769,12 @@ /// The index of the sheet within the spreadsheet. /// When adding or updating sheet properties, if this field - /// is excluded then the sheet will be added or moved to the end + /// is excluded then the sheet is added or moved to the end /// of the sheet list. When updating sheet indices or inserting /// sheets, movement is considered in "before the move" indexes. /// For example, if there were 3 sheets (S1, S2, S3) in order to /// move S1 ahead of S2 the index would have to be set to 2. A sheet - /// index update request will be ignored if the requested index is + /// index update request is ignored if the requested index is /// identical to the sheets current index or if the requested new /// index is equal to the current sheet index + 1. core.int index; @@ -9686,9 +10072,9 @@ core.String autoRecalc; /// The default format of all cells in the spreadsheet. - /// CellData.effectiveFormat will not be set if the - /// cell's format is equal to this default format. - /// This field is read-only. + /// CellData.effectiveFormat will not be set if + /// the cell's format is equal to this default format. This field is + /// read-only. CellFormat defaultFormat; /// Determines whether and how circular references are resolved with iterative @@ -10006,6 +10392,218 @@ } } +/// A color scale for a treemap chart. +class TreemapChartColorScale { + /// The background color for cells with a color value greater than or equal + /// to maxValue. Defaults to #109618 if not + /// specified. + Color maxValueColor; + + /// The background color for cells with a color value at the midpoint between + /// minValue and + /// maxValue. Defaults to #efe6dc if not + /// specified. + Color midValueColor; + + /// The background color for cells with a color value less than or equal to + /// minValue. Defaults to #dc3912 if not + /// specified. + Color minValueColor; + + /// The background color for cells that have no color data associated with + /// them. Defaults to #000000 if not specified. + Color noDataColor; + + TreemapChartColorScale(); + + TreemapChartColorScale.fromJson(core.Map _json) { + if (_json.containsKey("maxValueColor")) { + maxValueColor = new Color.fromJson(_json["maxValueColor"]); + } + if (_json.containsKey("midValueColor")) { + midValueColor = new Color.fromJson(_json["midValueColor"]); + } + if (_json.containsKey("minValueColor")) { + minValueColor = new Color.fromJson(_json["minValueColor"]); + } + if (_json.containsKey("noDataColor")) { + noDataColor = new Color.fromJson(_json["noDataColor"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (maxValueColor != null) { + _json["maxValueColor"] = (maxValueColor).toJson(); + } + if (midValueColor != null) { + _json["midValueColor"] = (midValueColor).toJson(); + } + if (minValueColor != null) { + _json["minValueColor"] = (minValueColor).toJson(); + } + if (noDataColor != null) { + _json["noDataColor"] = (noDataColor).toJson(); + } + return _json; + } +} + +/// A <a href="/chart/interactive/docs/gallery/treemap">Treemap chart</a>. +class TreemapChartSpec { + /// The data that determines the background color of each treemap data cell. + /// This field is optional. If not specified, size_data is used to + /// determine background colors. If specified, the data is expected to be + /// numeric. color_scale will determine how the values in this data map to + /// data cell background colors. + ChartData colorData; + + /// The color scale for data cells in the treemap chart. Data cells are + /// assigned colors based on their color values. These color values come from + /// color_data, or from size_data if color_data is not specified. + /// Cells with color values less than or equal to min_value will + /// have minValueColor as their + /// background color. Cells with color values greater than or equal to + /// max_value will have + /// maxValueColor as their background + /// color. Cells with color values between min_value and max_value will + /// have background colors on a gradient between + /// minValueColor and + /// maxValueColor, the midpoint of + /// the gradient being midValueColor. + /// Cells with missing or non-numeric color values will have + /// noDataColor as their background + /// color. + TreemapChartColorScale colorScale; + + /// The background color for header cells. + Color headerColor; + + /// True to hide tooltips. + core.bool hideTooltips; + + /// The number of additional data levels beyond the labeled levels to be shown + /// on the treemap chart. These levels are not interactive and are shown + /// without their labels. Defaults to 0 if not specified. + core.int hintedLevels; + + /// The data that contains the treemap cell labels. + ChartData labels; + + /// The number of data levels to show on the treemap chart. These levels are + /// interactive and are shown with their labels. Defaults to 2 if not + /// specified. + core.int levels; + + /// The maximum possible data value. Cells with values greater than this will + /// have the same color as cells with this value. If not specified, defaults + /// to the actual maximum value from color_data, or the maximum value from + /// size_data if color_data is not specified. + core.double maxValue; + + /// The minimum possible data value. Cells with values less than this will + /// have the same color as cells with this value. If not specified, defaults + /// to the actual minimum value from color_data, or the minimum value from + /// size_data if color_data is not specified. + core.double minValue; + + /// The data the contains the treemap cells' parent labels. + ChartData parentLabels; + + /// The data that determines the size of each treemap data cell. This data is + /// expected to be numeric. The cells corresponding to non-numeric or missing + /// data will not be rendered. If color_data is not specified, this data + /// is used to determine data cell background colors as well. + ChartData sizeData; + + /// The text format for all labels on the chart. + TextFormat textFormat; + + TreemapChartSpec(); + + TreemapChartSpec.fromJson(core.Map _json) { + if (_json.containsKey("colorData")) { + colorData = new ChartData.fromJson(_json["colorData"]); + } + if (_json.containsKey("colorScale")) { + colorScale = new TreemapChartColorScale.fromJson(_json["colorScale"]); + } + if (_json.containsKey("headerColor")) { + headerColor = new Color.fromJson(_json["headerColor"]); + } + if (_json.containsKey("hideTooltips")) { + hideTooltips = _json["hideTooltips"]; + } + if (_json.containsKey("hintedLevels")) { + hintedLevels = _json["hintedLevels"]; + } + if (_json.containsKey("labels")) { + labels = new ChartData.fromJson(_json["labels"]); + } + if (_json.containsKey("levels")) { + levels = _json["levels"]; + } + if (_json.containsKey("maxValue")) { + maxValue = _json["maxValue"].toDouble(); + } + if (_json.containsKey("minValue")) { + minValue = _json["minValue"].toDouble(); + } + if (_json.containsKey("parentLabels")) { + parentLabels = new ChartData.fromJson(_json["parentLabels"]); + } + if (_json.containsKey("sizeData")) { + sizeData = new ChartData.fromJson(_json["sizeData"]); + } + if (_json.containsKey("textFormat")) { + textFormat = new TextFormat.fromJson(_json["textFormat"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (colorData != null) { + _json["colorData"] = (colorData).toJson(); + } + if (colorScale != null) { + _json["colorScale"] = (colorScale).toJson(); + } + if (headerColor != null) { + _json["headerColor"] = (headerColor).toJson(); + } + if (hideTooltips != null) { + _json["hideTooltips"] = hideTooltips; + } + if (hintedLevels != null) { + _json["hintedLevels"] = hintedLevels; + } + if (labels != null) { + _json["labels"] = (labels).toJson(); + } + if (levels != null) { + _json["levels"] = levels; + } + if (maxValue != null) { + _json["maxValue"] = maxValue; + } + if (minValue != null) { + _json["minValue"] = minValue; + } + if (parentLabels != null) { + _json["parentLabels"] = (parentLabels).toJson(); + } + if (sizeData != null) { + _json["sizeData"] = (sizeData).toJson(); + } + if (textFormat != null) { + _json["textFormat"] = (textFormat).toJson(); + } + return _json; + } +} + /// Unmerges cells in the given range. class UnmergeCellsRequest { /// The range within which all cells should be unmerged. @@ -10431,6 +11029,41 @@ } } +/// Updates the state of the specified group. +class UpdateDimensionGroupRequest { + /// The group whose state should be updated. The range and depth of the group + /// should specify a valid group on the sheet, and all other fields updated. + DimensionGroup dimensionGroup; + + /// The fields that should be updated. At least one field must be specified. + /// The root `dimensionGroup` is implied and should not be specified. + /// A single `"*"` can be used as short-hand for listing every field. + core.String fields; + + UpdateDimensionGroupRequest(); + + UpdateDimensionGroupRequest.fromJson(core.Map _json) { + if (_json.containsKey("dimensionGroup")) { + dimensionGroup = new DimensionGroup.fromJson(_json["dimensionGroup"]); + } + if (_json.containsKey("fields")) { + fields = _json["fields"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (dimensionGroup != null) { + _json["dimensionGroup"] = (dimensionGroup).toJson(); + } + if (fields != null) { + _json["fields"] = fields; + } + return _json; + } +} + /// Updates properties of dimensions within the specified range. class UpdateDimensionPropertiesRequest { /// The fields that should be updated. At least one field must be specified. @@ -10985,9 +11618,9 @@ /// subtotal. Otherwise, the subtotal appears after the data point with /// this index. A series can have multiple subtotals at arbitrary indices, /// but subtotals do not affect the indices of the data points. For - /// example, if a series has 3 data points, their indices will always be 0, - /// 1, and 2, regardless of how many subtotals exist on the series or what - /// data points they are associated with. + /// example, if a series has three data points, their indices will always + /// be 0, 1, and 2, regardless of how many subtotals exist on the series or + /// what data points they are associated with. core.int subtotalIndex; WaterfallChartCustomSubtotal();
diff --git a/generated/googleapis/lib/slides/v1.dart b/generated/googleapis/lib/slides/v1.dart index 4f51080..cb34306 100644 --- a/generated/googleapis/lib/slides/v1.dart +++ b/generated/googleapis/lib/slides/v1.dart
@@ -137,8 +137,9 @@ .then((data) => new BatchUpdatePresentationResponse.fromJson(data)); } - /// Creates a new presentation using the title given in the request. Other - /// fields in the request are ignored. + /// Creates a new presentation using the title given in the request. If a + /// presentationId is provided, uses it as the ID of the new presentation. + /// Otherwise, a new presentationId is generated. /// Returns the created presentation. /// /// [request] - The metadata request object. @@ -742,10 +743,11 @@ /// /// The image is fetched once at insertion time and a copy is stored for /// display inside the presentation. Images must be less than 50MB in size, - /// cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF + /// cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or GIF /// format. /// - /// The provided URL can be at most 2 kB in length. + /// The provided URL can be at most 2 kB in length. The URL itself is saved + /// with the image, and exposed via the Image.source_url field. core.String url; CreateImageRequest(); @@ -1391,7 +1393,7 @@ /// Creates an embedded Google Sheets chart. /// /// NOTE: Chart creation requires at least one of the spreadsheets.readonly, -/// spreadsheets, drive.readonly, or drive OAuth scopes. +/// spreadsheets, drive.readonly, drive.file, or drive OAuth scopes. class CreateSheetsChartRequest { /// The ID of the specific chart in the Google Sheets spreadsheet. core.int chartId; @@ -2776,7 +2778,7 @@ } /// A PageElement kind representing a -/// line, curved connector, or bent connector. +/// non-connector line, straight connector, curved connector, or bent connector. class Line { /// The properties of the line. LineProperties lineProperties; @@ -2811,6 +2813,9 @@ /// - "CURVED_CONNECTOR_5" : Curved connector 5 form. Corresponds to ECMA-376 /// ST_ShapeType /// 'curvedConnector5'. + /// - "STRAIGHT_LINE" : Straight line. Corresponds to ECMA-376 ST_ShapeType + /// 'line'. This line + /// type is not a connector. core.String lineType; Line(); @@ -4385,6 +4390,9 @@ } /// Replaces all shapes that match the given criteria with the provided image. +/// +/// The images replacing the shapes are rectangular after being inserted into +/// the presentation and do not take on the forms of the shapes. class ReplaceAllShapesWithImageRequest { /// If set, this request will replace all of the shapes that contain the /// given text. @@ -4418,10 +4426,11 @@ /// /// The image is fetched once at insertion time and a copy is stored for /// display inside the presentation. Images must be less than 50MB in size, - /// cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF + /// cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or GIF /// format. /// - /// The provided URL can be at most 2 kB in length. + /// The provided URL can be at most 2 kB in length. The URL itself is saved + /// with the image, and exposed via the Image.source_url field. core.String imageUrl; /// If non-empty, limits the matches to page elements only on the given pages. @@ -4683,6 +4692,69 @@ } } +/// Replaces an existing image with a new image. +/// +/// Replacing an image removes some image effects from the existing image. +class ReplaceImageRequest { + /// The ID of the existing image that will be replaced. + core.String imageObjectId; + + /// The replacement method. + /// Possible string values are: + /// - "IMAGE_REPLACE_METHOD_UNSPECIFIED" : Unspecified image replace method. + /// This value must not be used. + /// - "CENTER_INSIDE" : Scales and centers the image to fit within the bounds + /// of the original + /// shape and maintains the image's aspect ratio. The rendered size of the + /// image may be smaller than the size of the shape. This is the default + /// method when one is not specified. + /// - "CENTER_CROP" : Scales and centers the image to fill the bounds of the + /// original shape. + /// The image may be cropped in order to fill the shape. The rendered size of + /// the image will be the same as that of the original shape. + core.String imageReplaceMethod; + + /// The URL of the new image. + /// + /// The image is fetched once at insertion time and a copy is stored for + /// display inside the presentation. Images must be less than 50MB in size, + /// cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or GIF + /// format. + /// + /// The provided URL can be at most 2 kB in length. The URL itself is saved + /// with the image, and exposed via the Image.source_url field. + core.String url; + + ReplaceImageRequest(); + + ReplaceImageRequest.fromJson(core.Map _json) { + if (_json.containsKey("imageObjectId")) { + imageObjectId = _json["imageObjectId"]; + } + if (_json.containsKey("imageReplaceMethod")) { + imageReplaceMethod = _json["imageReplaceMethod"]; + } + if (_json.containsKey("url")) { + url = _json["url"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (imageObjectId != null) { + _json["imageObjectId"] = imageObjectId; + } + if (imageReplaceMethod != null) { + _json["imageReplaceMethod"] = imageReplaceMethod; + } + if (url != null) { + _json["url"] = url; + } + return _json; + } +} + /// A single kind of update to apply to a presentation. class Request { /// Creates an image. @@ -4754,6 +4826,9 @@ /// Replaces all instances of specified text. ReplaceAllTextRequest replaceAllText; + /// Replaces an existing image with a new image. + ReplaceImageRequest replaceImage; + /// Ungroups objects, such as groups. UngroupObjectsRequest ungroupObjects; @@ -4890,6 +4965,9 @@ replaceAllText = new ReplaceAllTextRequest.fromJson(_json["replaceAllText"]); } + if (_json.containsKey("replaceImage")) { + replaceImage = new ReplaceImageRequest.fromJson(_json["replaceImage"]); + } if (_json.containsKey("ungroupObjects")) { ungroupObjects = new UngroupObjectsRequest.fromJson(_json["ungroupObjects"]); @@ -5032,6 +5110,9 @@ if (replaceAllText != null) { _json["replaceAllText"] = (replaceAllText).toJson(); } + if (replaceImage != null) { + _json["replaceImage"] = (replaceImage).toJson(); + } if (ungroupObjects != null) { _json["ungroupObjects"] = (ungroupObjects).toJson(); } @@ -6033,10 +6114,12 @@ /// The properties of Page that are only /// relevant for pages with page_type SLIDE. class SlideProperties { - /// The object ID of the layout that this slide is based on. + /// The object ID of the layout that this slide is based on. This property is + /// read-only. core.String layoutObjectId; - /// The object ID of the master that this slide is based on. + /// The object ID of the master that this slide is based on. This property is + /// read-only. core.String masterObjectId; /// The notes page that this slide is associated with. It defines the visual @@ -6048,7 +6131,7 @@ /// notes for this slide. The ID of this shape is identified by the /// speakerNotesObjectId field. /// The notes page is read-only except for the text content and styles of the - /// speaker notes shape. + /// speaker notes shape. This property is read-only. Page notesPage; SlideProperties(); @@ -6137,7 +6220,7 @@ /// /// The picture is fetched once at insertion time and a copy is stored for /// display inside the presentation. Pictures must be less than 50MB in size, - /// cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF + /// cannot exceed 25 megapixels, and must be in one of PNG, JPEG, or GIF /// format. /// /// The provided URL can be at most 2 kB in length. @@ -8199,24 +8282,71 @@ /// The properties of the Video. class VideoProperties { + /// Whether to enable video autoplay when the page is displayed in present + /// mode. Defaults to false. + core.bool autoPlay; + + /// The time at which to end playback, measured in seconds from the beginning + /// of the video. + /// If set, the end time should be after the start time. + /// If not set or if you set this to a value that exceeds the video's length, + /// the video will be played until its end. + core.int end; + + /// Whether to mute the audio during video playback. Defaults to false. + core.bool mute; + /// The outline of the video. The default outline matches the defaults for new /// videos created in the Slides editor. Outline outline; + /// The time at which to start playback, measured in seconds from the + /// beginning + /// of the video. + /// If set, the start time should be before the end time. + /// If you set this to a value that exceeds the video's length in seconds, the + /// video will be played from the last second. + /// If not set, the video will be played from the beginning. + core.int start; + VideoProperties(); VideoProperties.fromJson(core.Map _json) { + if (_json.containsKey("autoPlay")) { + autoPlay = _json["autoPlay"]; + } + if (_json.containsKey("end")) { + end = _json["end"]; + } + if (_json.containsKey("mute")) { + mute = _json["mute"]; + } if (_json.containsKey("outline")) { outline = new Outline.fromJson(_json["outline"]); } + if (_json.containsKey("start")) { + start = _json["start"]; + } } core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (autoPlay != null) { + _json["autoPlay"] = autoPlay; + } + if (end != null) { + _json["end"] = end; + } + if (mute != null) { + _json["mute"] = mute; + } if (outline != null) { _json["outline"] = (outline).toJson(); } + if (start != null) { + _json["start"] = start; + } return _json; } }
diff --git a/generated/googleapis/lib/sourcerepo/v1.dart b/generated/googleapis/lib/sourcerepo/v1.dart index a3c3421..c63b18a 100644 --- a/generated/googleapis/lib/sourcerepo/v1.dart +++ b/generated/googleapis/lib/sourcerepo/v1.dart
@@ -52,6 +52,102 @@ new ProjectsReposResourceApi(_requester); ProjectsResourceApi(commons.ApiRequester client) : _requester = client; + + /// Returns the Cloud Source Repositories configuration of the project. + /// + /// Request parameters: + /// + /// [name] - The name of the requested project. Values are of the form + /// `projects/<project>`. + /// Value must have pattern "^projects/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ProjectConfig]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<ProjectConfig> getConfig(core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/config'; + + var _response = _requester.request(_url, "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ProjectConfig.fromJson(data)); + } + + /// Updates the Cloud Source Repositories configuration of the project. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name of the requested project. Values are of the form + /// `projects/<project>`. + /// Value must have pattern "^projects/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [ProjectConfig]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<ProjectConfig> updateConfig( + UpdateProjectConfigRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/config'; + + var _response = _requester.request(_url, "PATCH", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ProjectConfig.fromJson(data)); + } } class ProjectsReposResourceApi { @@ -260,13 +356,13 @@ /// `projects/<project>`. /// Value must have pattern "^projects/[^/]+$". /// + /// [pageSize] - Maximum number of repositories to return; between 1 and 500. + /// If not set or zero, defaults to 100 at the server. + /// /// [pageToken] - Resume listing repositories where a prior ListReposResponse /// left off. This is an opaque token that must be obtained from /// a recent, prior ListReposResponse's next_page_token field. /// - /// [pageSize] - Maximum number of repositories to return; between 1 and 500. - /// If not set or zero, defaults to 100 at the server. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -278,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<ListReposResponse> list(core.String name, - {core.String pageToken, core.int pageSize, core.String $fields}) { + {core.int pageSize, core.String pageToken, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -289,12 +385,12 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -310,6 +406,56 @@ return _response.then((data) => new ListReposResponse.fromJson(data)); } + /// Updates information about a repo. + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [name] - The name of the requested repository. Values are of the form + /// `projects/<project>/repos/<repo>`. + /// Value must have pattern "^projects/[^/]+/repos/.+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// Completes with a [Repo]. + /// + /// Completes with a [commons.ApiRequestError] if the API endpoint returned an + /// error. + /// + /// If the used [http.Client] completes with an error when making a REST call, + /// this method will complete with the same error. + async.Future<Repo> patch(UpdateRepoRequest request, core.String name, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, "PATCH", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Repo.fromJson(data)); + } + /// Sets the access control policy on the specified resource. Replaces any /// existing policy. /// @@ -431,7 +577,7 @@ /// If there are AuditConfigs for both `allServices` and a specific service, /// the union of the two AuditConfigs is used for that service: the log_types /// specified in each AuditConfig are enabled, and the exempted_members in each -/// AuditConfig are exempted. +/// AuditLogConfig are exempted. /// /// Example Policy with multiple AuditConfigs: /// @@ -476,9 +622,7 @@ /// bar@gmail.com from DATA_WRITE logging. class AuditConfig { /// The configuration for logging of each type of permission. - /// Next ID: 4 core.List<AuditLogConfig> auditLogConfigs; - core.List<core.String> exemptedMembers; /// Specifies a service that will be enabled for audit logging. /// For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. @@ -493,10 +637,6 @@ .map<AuditLogConfig>((value) => new AuditLogConfig.fromJson(value)) .toList(); } - if (_json.containsKey("exemptedMembers")) { - exemptedMembers = - (_json["exemptedMembers"] as core.List).cast<core.String>(); - } if (_json.containsKey("service")) { service = _json["service"]; } @@ -509,9 +649,6 @@ _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson()).toList(); } - if (exemptedMembers != null) { - _json["exemptedMembers"] = exemptedMembers; - } if (service != null) { _json["service"] = service; } @@ -579,13 +716,6 @@ /// Associates `members` with a `role`. class Binding { - /// The condition that is associated with this binding. - /// NOTE: an unsatisfied condition will not allow user access via current - /// binding. Different bindings, including their conditions, are examined - /// independently. - /// This field is GOOGLE_INTERNAL. - Expr condition; - /// Specifies the identities requesting access for a Cloud Platform resource. /// `members` can have the following values: /// @@ -596,7 +726,7 @@ /// 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`. + /// account. For example, `alice@gmail.com` . /// /// /// * `serviceAccount:{emailid}`: An email address that represents a service @@ -618,9 +748,6 @@ Binding(); Binding.fromJson(core.Map _json) { - if (_json.containsKey("condition")) { - condition = new Expr.fromJson(_json["condition"]); - } if (_json.containsKey("members")) { members = (_json["members"] as core.List).cast<core.String>(); } @@ -632,9 +759,6 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (condition != null) { - _json["condition"] = (condition).toJson(); - } if (members != null) { _json["members"] = members; } @@ -666,68 +790,6 @@ } } -/// Represents an expression text. Example: -/// -/// title: "User account presence" -/// description: "Determines whether the request has a user account" -/// expression: "size(request.user) > 0" -class Expr { - /// An optional description of the expression. This is a longer text which - /// describes the expression, e.g. when hovered over it in a UI. - core.String description; - - /// Textual representation of an expression in - /// Common Expression Language syntax. - /// - /// The application context of the containing message determines which - /// well-known feature set of CEL is supported. - core.String expression; - - /// An optional string indicating the location of the expression for error - /// reporting, e.g. a file name and a position in the file. - core.String location; - - /// An optional title for the expression, i.e. a short string describing - /// its purpose. This can be used e.g. in UIs which allow to enter the - /// expression. - core.String title; - - Expr(); - - Expr.fromJson(core.Map _json) { - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("expression")) { - expression = _json["expression"]; - } - if (_json.containsKey("location")) { - location = _json["location"]; - } - if (_json.containsKey("title")) { - title = _json["title"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (description != null) { - _json["description"] = description; - } - if (expression != null) { - _json["expression"] = expression; - } - if (location != null) { - _json["location"] = location; - } - if (title != null) { - _json["title"] = title; - } - return _json; - } -} - /// Response for ListRepos. The size is not set in the returned repositories. class ListReposResponse { /// If non-empty, additional repositories exist within the project. These @@ -815,14 +877,14 @@ /// specify access control policies for Cloud Platform resources. /// /// -/// A `Policy` consists of a list of `bindings`. A `Binding` binds a list of +/// 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** +/// **JSON Example** /// /// { /// "bindings": [ @@ -832,7 +894,7 @@ /// "user:mike@example.com", /// "group:admins@example.com", /// "domain:google.com", -/// "serviceAccount:my-other-app@appspot.gserviceaccount.com", +/// "serviceAccount:my-other-app@appspot.gserviceaccount.com" /// ] /// }, /// { @@ -842,8 +904,22 @@ /// ] /// } /// +/// **YAML Example** +/// +/// bindings: +/// - members: +/// - user:mike@example.com +/// - group:admins@example.com +/// - domain:google.com +/// - serviceAccount:my-other-app@appspot.gserviceaccount.com +/// role: roles/owner +/// - members: +/// - user:sean@example.com +/// role: roles/viewer +/// +/// /// For a description of IAM and its features, see the -/// [IAM developer's guide](https://cloud.google.com/iam). +/// [IAM developer's guide](https://cloud.google.com/iam/docs). class Policy { /// Specifies cloud audit logging configuration for this policy. core.List<AuditConfig> auditConfigs; @@ -873,9 +949,7 @@ convert.base64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); } - core.bool iamOwned; - - /// Version of the `Policy`. The default version is 0. + /// Deprecated. core.int version; Policy(); @@ -894,9 +968,6 @@ if (_json.containsKey("etag")) { etag = _json["etag"]; } - if (_json.containsKey("iamOwned")) { - iamOwned = _json["iamOwned"]; - } if (_json.containsKey("version")) { version = _json["version"]; } @@ -915,9 +986,6 @@ if (etag != null) { _json["etag"] = etag; } - if (iamOwned != null) { - _json["iamOwned"] = iamOwned; - } if (version != null) { _json["version"] = version; } @@ -925,6 +993,104 @@ } } +/// Cloud Source Repositories configuration of a project. +class ProjectConfig { + /// Reject a Git push that contains a private key. + core.bool enablePrivateKeyCheck; + + /// The name of the project. Values are of the form `projects/<project>`. + core.String name; + + /// How this project publishes a change in the repositories through Cloud + /// Pub/Sub. Keyed by the topic names. + core.Map<core.String, PubsubConfig> pubsubConfigs; + + ProjectConfig(); + + ProjectConfig.fromJson(core.Map _json) { + if (_json.containsKey("enablePrivateKeyCheck")) { + enablePrivateKeyCheck = _json["enablePrivateKeyCheck"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("pubsubConfigs")) { + pubsubConfigs = commons.mapMap<core.Map, PubsubConfig>( + _json["pubsubConfigs"].cast<core.String, core.Map>(), + (core.Map item) => new PubsubConfig.fromJson(item)); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (enablePrivateKeyCheck != null) { + _json["enablePrivateKeyCheck"] = enablePrivateKeyCheck; + } + if (name != null) { + _json["name"] = name; + } + if (pubsubConfigs != null) { + _json["pubsubConfigs"] = + commons.mapMap<PubsubConfig, core.Map<core.String, core.Object>>( + pubsubConfigs, (PubsubConfig item) => (item).toJson()); + } + return _json; + } +} + +/// Configuration to publish a Cloud Pub/Sub message. +class PubsubConfig { + /// The format of the Cloud Pub/Sub messages. + /// Possible string values are: + /// - "MESSAGE_FORMAT_UNSPECIFIED" : Unspecified. + /// - "PROTOBUF" : The message payload is a serialized protocol buffer of + /// SourceRepoEvent. + /// - "JSON" : The message payload is a JSON string of SourceRepoEvent. + core.String messageFormat; + + /// Email address of the service account used for publishing Cloud Pub/Sub + /// messages. This service account needs to be in the same project as the + /// PubsubConfig. When added, the caller needs to have + /// iam.serviceAccounts.actAs permission on this service account. If + /// unspecified, it defaults to the compute engine default service account. + core.String serviceAccountEmail; + + /// A topic of Cloud Pub/Sub. Values are of the form + /// `projects/<project>/topics/<topic>`. The project needs to be the same + /// project as this config is in. + core.String topic; + + PubsubConfig(); + + PubsubConfig.fromJson(core.Map _json) { + if (_json.containsKey("messageFormat")) { + messageFormat = _json["messageFormat"]; + } + if (_json.containsKey("serviceAccountEmail")) { + serviceAccountEmail = _json["serviceAccountEmail"]; + } + if (_json.containsKey("topic")) { + topic = _json["topic"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (messageFormat != null) { + _json["messageFormat"] = messageFormat; + } + if (serviceAccountEmail != null) { + _json["serviceAccountEmail"] = serviceAccountEmail; + } + if (topic != null) { + _json["topic"] = topic; + } + return _json; + } +} + /// A repository (or repo) is a Git repository storing versioned source content. class Repo { /// How this repository mirrors a repository managed by another service. @@ -936,6 +1102,10 @@ /// eg, `projects/myproject/repos/name/with/slash` core.String name; + /// How this repository publishes a change in the repository through Cloud + /// Pub/Sub. Keyed by the topic names. + core.Map<core.String, PubsubConfig> pubsubConfigs; + /// The disk usage of the repo, in bytes. Read-only field. Size is only /// returned by GetRepo. core.String size; @@ -953,6 +1123,11 @@ if (_json.containsKey("name")) { name = _json["name"]; } + if (_json.containsKey("pubsubConfigs")) { + pubsubConfigs = commons.mapMap<core.Map, PubsubConfig>( + _json["pubsubConfigs"].cast<core.String, core.Map>(), + (core.Map item) => new PubsubConfig.fromJson(item)); + } if (_json.containsKey("size")) { size = _json["size"]; } @@ -970,6 +1145,11 @@ if (name != null) { _json["name"] = name; } + if (pubsubConfigs != null) { + _json["pubsubConfigs"] = + commons.mapMap<PubsubConfig, core.Map<core.String, core.Object>>( + pubsubConfigs, (PubsubConfig item) => (item).toJson()); + } if (size != null) { _json["size"] = size; } @@ -1069,3 +1249,71 @@ return _json; } } + +/// Request for UpdateProjectConfig. +class UpdateProjectConfigRequest { + /// The new configuration for the project. + ProjectConfig projectConfig; + + /// A FieldMask specifying which fields of the project_config to modify. Only + /// the fields in the mask will be modified. If no mask is provided, this + /// request is no-op. + core.String updateMask; + + UpdateProjectConfigRequest(); + + UpdateProjectConfigRequest.fromJson(core.Map _json) { + if (_json.containsKey("projectConfig")) { + projectConfig = new ProjectConfig.fromJson(_json["projectConfig"]); + } + if (_json.containsKey("updateMask")) { + updateMask = _json["updateMask"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (projectConfig != null) { + _json["projectConfig"] = (projectConfig).toJson(); + } + if (updateMask != null) { + _json["updateMask"] = updateMask; + } + return _json; + } +} + +/// Request for UpdateRepo. +class UpdateRepoRequest { + /// The new configuration for the repository. + Repo repo; + + /// A FieldMask specifying which fields of the repo to modify. Only the fields + /// in the mask will be modified. If no mask is provided, this request is + /// no-op. + core.String updateMask; + + UpdateRepoRequest(); + + UpdateRepoRequest.fromJson(core.Map _json) { + if (_json.containsKey("repo")) { + repo = new Repo.fromJson(_json["repo"]); + } + if (_json.containsKey("updateMask")) { + updateMask = _json["updateMask"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (repo != null) { + _json["repo"] = (repo).toJson(); + } + if (updateMask != null) { + _json["updateMask"] = updateMask; + } + return _json; + } +}
diff --git a/generated/googleapis/lib/spanner/v1.dart b/generated/googleapis/lib/spanner/v1.dart index 6e03911..3207d67 100644 --- a/generated/googleapis/lib/spanner/v1.dart +++ b/generated/googleapis/lib/spanner/v1.dart
@@ -434,6 +434,14 @@ /// requested. Values are of the form `projects/<project>`. /// Value must have pattern "^projects/[^/]+$". /// + /// [pageToken] - If non-empty, `page_token` should contain a + /// next_page_token from a + /// previous ListInstancesResponse. + /// + /// [pageSize] - Number of instances to be returned in the response. If 0 or + /// less, defaults + /// to the server's maximum allowed page size. + /// /// [filter] - An expression for filtering the results of the request. Filter /// rules are /// case insensitive. The fields eligible for filtering are: @@ -455,14 +463,6 @@ /// it has the label "env" with its value /// containing "dev". /// - /// [pageToken] - If non-empty, `page_token` should contain a - /// next_page_token from a - /// previous ListInstancesResponse. - /// - /// [pageSize] - Number of instances to be returned in the response. If 0 or - /// less, defaults - /// to the server's maximum allowed page size. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -474,9 +474,9 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListInstancesResponse> list(core.String parent, - {core.String filter, - core.String pageToken, + {core.String pageToken, core.int pageSize, + core.String filter, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -488,15 +488,15 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1005,14 +1005,14 @@ /// Values are of the form `projects/<project>/instances/<instance>`. /// Value must have pattern "^projects/[^/]+/instances/[^/]+$". /// - /// [pageSize] - Number of databases to be returned in the response. If 0 or - /// less, - /// defaults to the server's maximum allowed page size. - /// /// [pageToken] - If non-empty, `page_token` should contain a /// next_page_token from a /// previous ListDatabasesResponse. /// + /// [pageSize] - Number of databases to be returned in the response. If 0 or + /// less, + /// defaults to the server's maximum allowed page size. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -1024,7 +1024,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<ListDatabasesResponse> list(core.String parent, - {core.int pageSize, core.String pageToken, core.String $fields}) { + {core.String pageToken, core.int pageSize, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -1035,12 +1035,12 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1703,12 +1703,12 @@ return _response.then((data) => new Empty.fromJson(data)); } - /// Executes an SQL query, returning all rows in a single reply. This + /// Executes an SQL statement, returning all results in a single reply. This /// method cannot be used to return a result set larger than 10 MiB; /// if the query yields more data than that, the query fails with /// a `FAILED_PRECONDITION` error. /// - /// Queries inside read-write transactions might return `ABORTED`. If + /// Operations inside read-write transactions might return `ABORTED`. If /// this occurs, the application should restart the transaction from /// the beginning. See Transaction for more details. /// @@ -1879,14 +1879,6 @@ /// Value must have pattern /// "^projects/[^/]+/instances/[^/]+/databases/[^/]+$". /// - /// [pageToken] - If non-empty, `page_token` should contain a - /// next_page_token from a previous - /// ListSessionsResponse. - /// - /// [pageSize] - Number of sessions to be returned in the response. If 0 or - /// less, defaults - /// to the server's maximum allowed page size. - /// /// [filter] - An expression for filtering the results of the request. Filter /// rules are /// case insensitive. The fields eligible for filtering are: @@ -1899,6 +1891,14 @@ /// * `labels.env:dev` --> The session has the label "env" and the value of /// the label contains the string "dev". /// + /// [pageToken] - If non-empty, `page_token` should contain a + /// next_page_token from a previous + /// ListSessionsResponse. + /// + /// [pageSize] - Number of sessions to be returned in the response. If 0 or + /// less, defaults + /// to the server's maximum allowed page size. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -1910,9 +1910,9 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListSessionsResponse> list(core.String database, - {core.String pageToken, + {core.String filter, + core.String pageToken, core.int pageSize, - core.String filter, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -1924,15 +1924,15 @@ if (database == null) { throw new core.ArgumentError("Parameter database is required."); } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -2419,12 +2419,12 @@ /// [name] - The name of the operation's parent resource. /// Value must have pattern "^projects/[^/]+/instances/[^/]+/operations$". /// - /// [pageSize] - The standard list page size. - /// /// [filter] - The standard list filter. /// /// [pageToken] - The standard list page token. /// + /// [pageSize] - The standard list page size. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -2436,9 +2436,9 @@ /// 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 filter, core.String pageToken, + core.int pageSize, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -2450,15 +2450,15 @@ 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]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -2510,7 +2510,7 @@ /// 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`. + /// account. For example, `alice@gmail.com` . /// /// /// * `serviceAccount:{emailid}`: An email address that represents a service @@ -2912,6 +2912,8 @@ /// Arguments to delete operations. class Delete { /// Required. The primary keys of the rows within table to delete. + /// Delete is idempotent. The transaction will succeed even if some or all + /// rows do not exist. KeySet keySet; /// Required. The table whose rows will be deleted. @@ -2970,12 +2972,12 @@ /// of type `STRING` both appear in params as JSON strings. /// /// In these cases, `param_types` can be used to specify the exact - /// SQL type for some or all of the SQL query parameters. See the + /// SQL type for some or all of the SQL statement parameters. See the /// definition of Type for more information /// about SQL types. core.Map<core.String, Type> paramTypes; - /// The SQL query string can contain parameter placeholders. A parameter + /// The SQL string can contain parameter placeholders. A parameter /// placeholder consists of `'@'` followed by the parameter /// name. Parameter names consist of any combination of letters, /// numbers, and underscores. @@ -2984,7 +2986,7 @@ /// parameter name can be used more than once, for example: /// `"WHERE id > @msg_id AND id < @msg_id + 100"` /// - /// It is an error to execute an SQL query with unbound parameters. + /// It is an error to execute an SQL statement with unbound parameters. /// /// Parameter values are specified using `params`, which is a JSON /// object whose keys are parameter names, and whose values are the @@ -3012,21 +3014,18 @@ /// ResultSetStats. If partition_token is set, query_mode can only /// be set to QueryMode.NORMAL. /// Possible string values are: - /// - "NORMAL" : The default mode where only the query result, without any - /// information - /// about the query plan is returned. - /// - "PLAN" : This mode returns only the query plan, without any result rows - /// or + /// - "NORMAL" : The default mode. Only the statement results are returned. + /// - "PLAN" : This mode returns only the query plan, without any results or /// execution statistics information. /// - "PROFILE" : This mode returns both the query plan and the execution /// statistics along - /// with the result rows. + /// with the results. core.String queryMode; - /// If this request is resuming a previously interrupted SQL query + /// If this request is resuming a previously interrupted SQL statement /// execution, `resume_token` should be copied from the last /// PartialResultSet yielded before the interruption. Doing this - /// enables the new SQL query execution to resume where the last one left + /// enables the new SQL statement execution to resume where the last one left /// off. The rest of the request parameters must exactly match the /// request that yielded this token. core.String resumeToken; @@ -3039,7 +3038,7 @@ convert.base64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); } - /// Required. The SQL query string. + /// Required. The SQL string. core.String sql; /// The transaction to use. If none is provided, the default is a @@ -3898,7 +3897,7 @@ convert.base64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); } - /// Query plan and execution statistics for the query that produced this + /// Query plan and execution statistics for the statement that produced this /// streaming result set. These can be requested by setting /// ExecuteSqlRequest.query_mode and are sent /// only once with the last response in the stream. @@ -4062,13 +4061,19 @@ /// Options for a PartitionQueryRequest and /// PartitionReadRequest. class PartitionOptions { + /// **Note:** This hint is currently ignored by PartitionQuery and + /// PartitionRead requests. + /// /// The desired maximum number of partitions to return. For example, this may /// be set to the number of workers available. The default for this option /// is currently 10,000. The maximum value is currently 200,000. This is only - /// a hint. The actual number of partitions returned may be smaller than - /// this maximum count request. + /// a hint. The actual number of partitions returned may be smaller or larger + /// than this maximum count request. core.String maxPartitions; + /// **Note:** This hint is currently ignored by PartitionQuery and + /// PartitionRead requests. + /// /// The desired data size for each partition generated. The default for this /// option is currently 1 GiB. This is only a hint. The actual size of each /// partition may be smaller or larger than this size request. @@ -4424,14 +4429,14 @@ /// specify access control policies for Cloud Platform resources. /// /// -/// A `Policy` consists of a list of `bindings`. A `Binding` binds a list of +/// 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** +/// **JSON Example** /// /// { /// "bindings": [ @@ -4441,7 +4446,7 @@ /// "user:mike@example.com", /// "group:admins@example.com", /// "domain:google.com", -/// "serviceAccount:my-other-app@appspot.gserviceaccount.com", +/// "serviceAccount:my-other-app@appspot.gserviceaccount.com" /// ] /// }, /// { @@ -4451,6 +4456,20 @@ /// ] /// } /// +/// **YAML Example** +/// +/// bindings: +/// - members: +/// - user:mike@example.com +/// - group:admins@example.com +/// - domain:google.com +/// - serviceAccount:my-other-app@appspot.gserviceaccount.com +/// role: roles/owner +/// - members: +/// - user:sean@example.com +/// role: roles/viewer +/// +/// /// For a description of IAM and its features, see the /// [IAM developer's guide](https://cloud.google.com/iam/docs). class Policy { @@ -4812,8 +4831,8 @@ /// `String`, `bool` and `null` as well as `Map` and `List` values. core.List<core.List<core.Object>> rows; - /// Query plan and execution statistics for the query that produced this - /// result set. These can be requested by setting + /// Query plan and execution statistics for the SQL statement that + /// produced this result set. These can be requested by setting /// ExecuteSqlRequest.query_mode. ResultSetStats stats; @@ -5350,6 +5369,7 @@ /// read at timestamps in the past. Snapshot read-only /// transactions do not need to be committed. /// +/// /// For transactions that only read, snapshot read-only transactions /// provide simpler semantics and are almost always faster. In /// particular, read-only transactions do not take locks, so they do @@ -5543,6 +5563,8 @@ /// restriction also applies to in-progress reads and/or SQL queries whose /// timestamp become too old while executing. Reads and SQL queries with /// too-old read timestamps fail with the error `FAILED_PRECONDITION`. +/// +/// ## class TransactionOptions { /// Transaction will not write. /// @@ -5657,6 +5679,12 @@ /// - "TIMESTAMP" : Encoded as `string` in RFC 3339 timestamp format. The time /// zone /// must be present, and must be `"Z"`. + /// + /// If the schema has the column option + /// `allow_commit_timestamp=true`, the placeholder string + /// `"spanner.commit_timestamp()"` can be used to instruct the system + /// to insert the commit timestamp associated with the transaction + /// commit. /// - "DATE" : Encoded as `string` in RFC 3339 date format. /// - "STRING" : Encoded as `string`. /// - "BYTES" : Encoded as a base64-encoded `string`, as described in RFC
diff --git a/generated/googleapis/lib/speech/v1.dart b/generated/googleapis/lib/speech/v1.dart index e4fc241..c87b741 100644 --- a/generated/googleapis/lib/speech/v1.dart +++ b/generated/googleapis/lib/speech/v1.dart
@@ -352,24 +352,20 @@ /// Provides information to the recognizer that specifies how to process the /// request. class RecognitionConfig { - /// *Optional* If `true`, the top result includes a list of words and the - /// confidence for those words. If `false`, no word-level confidence - /// information is returned. The default is `false`. - core.bool enableWordConfidence; - /// *Optional* If `true`, the top result includes a list of words and /// the start and end time offsets (timestamps) for those words. If /// `false`, no word-level time offset information is returned. The default is /// `false`. core.bool enableWordTimeOffsets; - /// *Required* Encoding of audio data sent in all `RecognitionAudio` messages. + /// Encoding of audio data sent in all `RecognitionAudio` messages. + /// This field is optional for `FLAC` and `WAV` audio files and required + /// for all other audio formats. For details, see AudioEncoding. /// Possible string values are: /// - "ENCODING_UNSPECIFIED" : Not specified. /// - "LINEAR16" : Uncompressed 16-bit signed little-endian samples (Linear /// PCM). - /// - "FLAC" : [`FLAC`](https://xiph.org/flac/documentation.html) (Free - /// Lossless Audio + /// - "FLAC" : `FLAC` (Free Lossless Audio /// Codec) is the recommended encoding because it is /// lossless--therefore recognition is not compromised--and /// requires only about half the bandwidth of `LINEAR16`. `FLAC` stream @@ -422,11 +418,13 @@ /// won't be filtered out. core.bool profanityFilter; - /// *Required* Sample rate in Hertz of the audio data sent in all + /// Sample rate in Hertz of the audio data sent in all /// `RecognitionAudio` messages. Valid values are: 8000-48000. /// 16000 is optimal. For best results, set the sampling rate of the audio /// source to 16000 Hz. If that's not possible, use the native sample rate of /// the audio source (instead of re-sampling). + /// This field is optional for `FLAC` and `WAV` audio files and required + /// for all other audio formats. For details, see AudioEncoding. core.int sampleRateHertz; /// *Optional* A means to provide context to assist the speech recognition. @@ -435,9 +433,6 @@ RecognitionConfig(); RecognitionConfig.fromJson(core.Map _json) { - if (_json.containsKey("enableWordConfidence")) { - enableWordConfidence = _json["enableWordConfidence"]; - } if (_json.containsKey("enableWordTimeOffsets")) { enableWordTimeOffsets = _json["enableWordTimeOffsets"]; } @@ -466,9 +461,6 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (enableWordConfidence != null) { - _json["enableWordConfidence"] = enableWordConfidence; - } if (enableWordTimeOffsets != null) { _json["enableWordTimeOffsets"] = enableWordTimeOffsets; } @@ -532,7 +524,7 @@ /// contains the result as zero or more sequential `SpeechRecognitionResult` /// messages. class RecognizeResponse { - /// *Output-only* Sequential list of transcription results corresponding to + /// Output only. Sequential list of transcription results corresponding to /// sequential portions of audio. core.List<SpeechRecognitionResult> results; @@ -589,7 +581,7 @@ /// Alternative hypotheses (a.k.a. n-best list). class SpeechRecognitionAlternative { - /// *Output-only* The confidence estimate between 0.0 and 1.0. A higher number + /// Output only. The confidence estimate between 0.0 and 1.0. A higher number /// indicates an estimated greater likelihood that the recognized words are /// correct. This field is set only for the top alternative of a non-streaming /// result or, of a streaming result where `is_final=true`. @@ -600,11 +592,12 @@ /// set. core.double confidence; - /// *Output-only* Transcript text representing the words that the user spoke. + /// Output only. Transcript text representing the words that the user spoke. core.String transcript; - /// *Output-only* A list of word-specific information for each recognized - /// word. + /// Output only. A list of word-specific information for each recognized word. + /// Note: When enable_speaker_diarization is true, you will see all the words + /// from the beginning of the audio. core.List<WordInfo> words; SpeechRecognitionAlternative(); @@ -641,7 +634,7 @@ /// A speech recognition result corresponding to a portion of the audio. class SpeechRecognitionResult { - /// *Output-only* May contain one or more recognition hypotheses (up to the + /// Output only. May contain one or more recognition hypotheses (up to the /// maximum specified in `max_alternatives`). /// These alternatives are ordered in terms of accuracy, with the top (first) /// alternative being the most probable, as ranked by the recognizer. @@ -776,7 +769,7 @@ /// Word-specific information for recognized words. class WordInfo { - /// *Output-only* Time offset relative to the beginning of the audio, + /// Output only. Time offset relative to the beginning of the audio, /// and corresponding to the end of the spoken word. /// This field is only set if `enable_word_time_offsets=true` and only /// in the top hypothesis. @@ -784,7 +777,15 @@ /// vary. core.String endTime; - /// *Output-only* Time offset relative to the beginning of the audio, + /// Output only. A distinct integer value is assigned for every speaker within + /// the audio. This field specifies which one of those speakers was detected + /// to + /// have spoken this word. Value ranges from '1' to diarization_speaker_count. + /// speaker_tag is set if enable_speaker_diarization = 'true' and only in the + /// top alternative. + core.int speakerTag; + + /// Output only. Time offset relative to the beginning of the audio, /// and corresponding to the start of the spoken word. /// This field is only set if `enable_word_time_offsets=true` and only /// in the top hypothesis. @@ -792,7 +793,7 @@ /// vary. core.String startTime; - /// *Output-only* The word corresponding to this set of information. + /// Output only. The word corresponding to this set of information. core.String word; WordInfo(); @@ -801,6 +802,9 @@ if (_json.containsKey("endTime")) { endTime = _json["endTime"]; } + if (_json.containsKey("speakerTag")) { + speakerTag = _json["speakerTag"]; + } if (_json.containsKey("startTime")) { startTime = _json["startTime"]; } @@ -815,6 +819,9 @@ if (endTime != null) { _json["endTime"] = endTime; } + if (speakerTag != null) { + _json["speakerTag"] = speakerTag; + } if (startTime != null) { _json["startTime"] = startTime; }
diff --git a/generated/googleapis/lib/storage/v1.dart b/generated/googleapis/lib/storage/v1.dart index 30e0050..93d8a9f 100644 --- a/generated/googleapis/lib/storage/v1.dart +++ b/generated/googleapis/lib/storage/v1.dart
@@ -297,8 +297,7 @@ return _response.then((data) => new BucketAccessControls.fromJson(data)); } - /// Updates an ACL entry on the specified bucket. This method supports patch - /// semantics. + /// Patches an ACL entry on the specified bucket. /// /// [request] - The metadata request object. /// @@ -1508,8 +1507,7 @@ return _response.then((data) => new ObjectAccessControls.fromJson(data)); } - /// Updates a default object ACL entry on the specified bucket. This method - /// supports patch semantics. + /// Patches a default object ACL entry on the specified bucket. /// /// [request] - The metadata request object. /// @@ -2159,8 +2157,7 @@ return _response.then((data) => new ObjectAccessControls.fromJson(data)); } - /// Updates an ACL entry on the specified object. This method supports patch - /// semantics. + /// Patches an ACL entry on the specified object. /// /// [request] - The metadata request object. /// @@ -3089,6 +3086,10 @@ /// their name, truncated after the delimiter, returned in prefixes. Duplicate /// prefixes are omitted. /// + /// [includeTrailingDelimiter] - If true, objects that end in exactly one + /// instance of delimiter will have their metadata included in items in + /// addition to prefixes. + /// /// [maxResults] - Maximum number of items plus prefixes to return in a single /// page of responses. As duplicate prefixes are omitted, fewer total results /// may be returned than requested. The service will use this parameter or @@ -3122,6 +3123,7 @@ /// this method will complete with the same error. async.Future<Objects> list(core.String bucket, {core.String delimiter, + core.bool includeTrailingDelimiter, core.int maxResults, core.String pageToken, core.String prefix, @@ -3142,6 +3144,11 @@ if (delimiter != null) { _queryParams["delimiter"] = [delimiter]; } + if (includeTrailingDelimiter != null) { + _queryParams["includeTrailingDelimiter"] = [ + "${includeTrailingDelimiter}" + ]; + } if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } @@ -3820,6 +3827,10 @@ /// their name, truncated after the delimiter, returned in prefixes. Duplicate /// prefixes are omitted. /// + /// [includeTrailingDelimiter] - If true, objects that end in exactly one + /// instance of delimiter will have their metadata included in items in + /// addition to prefixes. + /// /// [maxResults] - Maximum number of items plus prefixes to return in a single /// page of responses. As duplicate prefixes are omitted, fewer total results /// may be returned than requested. The service will use this parameter or @@ -3853,6 +3864,7 @@ /// this method will complete with the same error. async.Future<Channel> watchAll(Channel request, core.String bucket, {core.String delimiter, + core.bool includeTrailingDelimiter, core.int maxResults, core.String pageToken, core.String prefix, @@ -3876,6 +3888,11 @@ if (delimiter != null) { _queryParams["delimiter"] = [delimiter]; } + if (includeTrailingDelimiter != null) { + _queryParams["includeTrailingDelimiter"] = [ + "${includeTrailingDelimiter}" + ]; + } if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } @@ -4055,12 +4072,10 @@ } } -/// Encryption configuration used by default for newly inserted objects, when no -/// encryption config is specified. +/// Encryption configuration for a bucket. class BucketEncryption { /// A Cloud KMS key that will be used to encrypt objects inserted into this - /// bucket, if no encryption method is specified. Limited availability; usable - /// only by enabled projects. + /// bucket, if no encryption method is specified. core.String defaultKmsKeyName; BucketEncryption(); @@ -4308,23 +4323,24 @@ } } -/// Defines the retention policy for a bucket. The Retention policy enforces a -/// minimum retention time for all objects contained in the bucket, based on -/// their creation time. Any attempt to overwrite or delete objects younger than -/// the retention period will result in a PERMISSION_DENIED error. An unlocked -/// retention policy can be modified or removed from the bucket via the -/// UpdateBucketMetadata RPC. A locked retention policy cannot be removed or -/// shortened in duration for the lifetime of the bucket. Attempting to remove -/// or decrease period of a locked retention policy will result in a +/// The bucket's retention policy. The retention policy enforces a minimum +/// retention time for all objects contained in the bucket, based on their +/// creation time. Any attempt to overwrite or delete objects younger than the +/// retention period will result in a PERMISSION_DENIED error. An unlocked +/// retention policy can be modified or removed from the bucket via a +/// storage.buckets.update operation. A locked retention policy cannot be +/// removed or shortened in duration for the lifetime of the bucket. Attempting +/// to remove or decrease period of a locked retention policy will result in a /// PERMISSION_DENIED error. class BucketRetentionPolicy { - /// The time from which policy was enforced and effective. RFC 3339 format. + /// Server-determined value that indicates the time from which policy was + /// enforced and effective. This value is in RFC 3339 format. core.DateTime effectiveTime; /// Once locked, an object retention policy cannot be modified. core.bool isLocked; - /// Specifies the duration that objects need to be retained. Retention + /// The duration in seconds that objects need to be retained. Retention /// duration must be greater than zero and less than 100 years. Note that /// enforcement of retention periods less than a day is not guaranteed. Such /// periods should only be used for testing purposes. @@ -4433,24 +4449,25 @@ /// The bucket's Cross-Origin Resource Sharing (CORS) configuration. core.List<BucketCors> cors; - /// Defines the default value for Event-Based hold on newly created objects in - /// this bucket. Event-Based hold is a way to retain objects indefinitely - /// until an event occurs, signified by the hold's release. After being - /// released, such objects will be subject to bucket-level retention (if any). - /// One sample use case of this flag is for banks to hold loan documents for - /// at least 3 years after loan is paid in full. Here bucket-level retention - /// is 3 years and the event is loan being paid in full. In this example these - /// objects will be held intact for any number of years until the event has - /// occurred (hold is released) and then 3 more years after that. Objects - /// under Event-Based hold cannot be deleted, overwritten or archived until - /// the hold is removed. + /// The default value for event-based hold on newly created objects in this + /// bucket. Event-based hold is a way to retain objects indefinitely until an + /// event occurs, signified by the hold's release. After being released, such + /// objects will be subject to bucket-level retention (if any). One sample use + /// case of this flag is for banks to hold loan documents for at least 3 years + /// after loan is paid in full. Here, bucket-level retention is 3 years and + /// the event is loan being paid in full. In this example, these objects will + /// be held intact for any number of years until the event has occurred + /// (event-based hold on the object is released) and then 3 more years after + /// that. That means retention duration of the objects begins from the moment + /// event-based hold transitioned from true to false. Objects under + /// event-based hold cannot be deleted, overwritten or archived until the hold + /// is removed. core.bool defaultEventBasedHold; /// 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. + /// Encryption configuration for a bucket. BucketEncryption encryption; /// HTTP 1.1 Entity tag for the bucket. @@ -4491,15 +4508,15 @@ /// The project number of the project the bucket belongs to. core.String projectNumber; - /// Defines the retention policy for a bucket. The Retention policy enforces a - /// minimum retention time for all objects contained in the bucket, based on - /// their creation time. Any attempt to overwrite or delete objects younger - /// than the retention period will result in a PERMISSION_DENIED error. An - /// unlocked retention policy can be modified or removed from the bucket via - /// the UpdateBucketMetadata RPC. A locked retention policy cannot be removed - /// or shortened in duration for the lifetime of the bucket. Attempting to - /// remove or decrease period of a locked retention policy will result in a - /// PERMISSION_DENIED error. + /// The bucket's retention policy. The retention policy enforces a minimum + /// retention time for all objects contained in the bucket, based on their + /// creation time. Any attempt to overwrite or delete objects younger than the + /// retention period will result in a PERMISSION_DENIED error. An unlocked + /// retention policy can be modified or removed from the bucket via a + /// storage.buckets.update operation. A locked retention policy cannot be + /// removed or shortened in duration for the lifetime of the bucket. + /// Attempting to remove or decrease period of a locked retention policy will + /// result in a PERMISSION_DENIED error. BucketRetentionPolicy retentionPolicy; /// The URI of this bucket. @@ -5399,15 +5416,17 @@ /// HTTP 1.1 Entity tag for the object. core.String etag; - /// Defines the Event-Based hold for an object. Event-Based hold is a way to - /// retain objects indefinitely until an event occurs, signified by the hold's - /// release. After being released, such objects will be subject to - /// bucket-level retention (if any). One sample use case of this flag is for - /// banks to hold loan documents for at least 3 years after loan is paid in - /// full. Here bucket-level retention is 3 years and the event is loan being - /// paid in full. In this example these objects will be held intact for any - /// number of years until the event has occurred (hold is released) and then 3 - /// more years after that. + /// Whether an object is under event-based hold. Event-based hold is a way to + /// retain objects until an event occurs, which is signified by the hold's + /// release (i.e. this value is set to false). After being released (set to + /// false), such objects will be subject to bucket-level retention (if any). + /// One sample use case of this flag is for banks to hold loan documents for + /// at least 3 years after loan is paid in full. Here, bucket-level retention + /// is 3 years and the event is the loan being paid in full. In this example, + /// these objects will be held intact for any number of years until the event + /// has occurred (event-based hold on the object is released) and then 3 more + /// years after that. That means retention duration of the objects begins from + /// the moment event-based hold transitioned from true to false. core.bool eventBasedHold; /// The content generation of this object. Used for object versioning. @@ -5446,12 +5465,13 @@ /// The owner of the object. This will always be the uploader of the object. ObjectOwner owner; - /// Specifies the earliest time that the object's retention period expires. - /// This value is server-determined and is in RFC 3339 format. Note 1: This - /// field is not provided for objects with an active Event-Based hold, since - /// retention expiration is unknown until the hold is removed. Note 2: This - /// value can be provided even when TemporaryHold is set (so that the user can - /// reason about policy without having to first unset the TemporaryHold). + /// A server-determined value that specifies the earliest time that the + /// object's retention period expires. This value is in RFC 3339 format. Note + /// 1: This field is not provided for objects with an active event-based hold, + /// since retention expiration is unknown until the hold is removed. Note 2: + /// This value can be provided even when temporary hold is set (so that the + /// user can reason about policy without having to first unset the temporary + /// hold). core.DateTime retentionExpirationTime; /// The link to this object. @@ -5463,11 +5483,12 @@ /// Storage class of the object. core.String storageClass; - /// Defines the temporary hold for an object. This flag is used to enforce a - /// temporary hold on an object. While it is set to true, the object is - /// protected against deletion and overwrites. A common use case of this flag - /// is regulatory investigations where objects need to be retained while the - /// investigation is ongoing. + /// Whether an object is under temporary hold. While this flag is set to true, + /// the object is protected against deletion and overwrites. A common use case + /// of this flag is regulatory investigations where objects need to be + /// retained while the investigation is ongoing. Note that unlike event-based + /// hold, temporary hold does not impact retention expiration time of an + /// object. core.bool temporaryHold; /// The creation time of the object in RFC 3339 format.
diff --git a/generated/googleapis/lib/storagetransfer/v1.dart b/generated/googleapis/lib/storagetransfer/v1.dart index 2bfc999..f2076fd 100644 --- a/generated/googleapis/lib/storagetransfer/v1.dart +++ b/generated/googleapis/lib/storagetransfer/v1.dart
@@ -203,6 +203,8 @@ /// /// Request parameters: /// + /// [pageToken] - The list page token. + /// /// [pageSize] - The list page size. The max allowed value is 256. /// /// [filter] - A list of query parameters specified as JSON text in the form @@ -216,8 +218,6 @@ /// and `job_statuses` are optional. The valid values for `job_statuses` are /// case-insensitive: `ENABLED`, `DISABLED`, and `DELETED`. /// - /// [pageToken] - The list page token. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -229,9 +229,9 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListTransferJobsResponse> list( - {core.int pageSize, + {core.String pageToken, + core.int pageSize, core.String filter, - core.String pageToken, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -240,15 +240,15 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } if (filter != null) { _queryParams["filter"] = [filter]; } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -474,6 +474,10 @@ /// [name] - The value `transferOperations`. /// Value must have pattern "^transferOperations$". /// + /// [pageToken] - The list page token. + /// + /// [pageSize] - The list page size. The max allowed value is 256. + /// /// [filter] - A list of query parameters specified as JSON text in the form /// of {\"project_id\" : \"my_project_id\", \"job_names\" : [\"jobid1\", /// \"jobid2\",...], \"operation_names\" : [\"opid1\", \"opid2\",...], @@ -482,10 +486,6 @@ /// must be specified with array notation. `job_names`, `operation_names`, and /// `transfer_statuses` are optional. /// - /// [pageToken] - The list page token. - /// - /// [pageSize] - The list page size. The max allowed value is 256. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -497,9 +497,9 @@ /// 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.String filter, - core.String pageToken, + {core.String pageToken, core.int pageSize, + core.String filter, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -511,15 +511,15 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -674,8 +674,8 @@ } } -/// An AwsS3Data can be a data source, but not a data sink. -/// In an AwsS3Data, an object's name is the S3 object's key name. +/// An AwsS3Data resource can be a data source, but not a data sink. +/// In an AwsS3Data resource, an object's name is the S3 object's key name. class AwsS3Data { /// AWS access key used to sign the API requests to the AWS S3 bucket. /// Permissions on the bucket must be granted to the access ID of the @@ -726,7 +726,8 @@ /// if specifying a year/month where the day is not significant. core.int day; - /// Month of year. Must be from 1 to 12. + /// Month of year. Must be from 1 to 12, or 0 if specifying a date without a + /// month. core.int month; /// Year of date. Must be from 1 to 9999, or 0 if specifying a date without @@ -997,14 +998,13 @@ } } -/// In a GcsData, an object's name is the Google Cloud Storage object's name and -/// its `lastModificationTime` refers to the object's updated time, which -/// changes -/// when the content or the metadata of the object is updated. +/// In a GcsData resource, an object's name is the Google Cloud Storage object's +/// name and its `lastModificationTime` refers to the object's updated time, +/// which changes when the content or the metadata of the object is updated. class GcsData { /// Google Cloud Storage bucket name (see /// [Bucket Name - /// Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). + /// Requirements](https://cloud.google.com/storage/docs/naming#requirements)). /// Required. core.String bucketName; @@ -1049,9 +1049,10 @@ } } -/// An HttpData specifies a list of objects on the web to be transferred over -/// HTTP. The information of the objects to be transferred is contained in a -/// file referenced by a URL. The first line in the file must be +/// An HttpData resource specifies a list of objects on the web to be +/// transferred +/// over HTTP. The information of the objects to be transferred is contained in +/// a file referenced by a URL. The first line in the file must be /// "TsvHttpData-1.0", which specifies the format of the file. Subsequent lines /// specify the information of the list of objects, one object per list entry. /// Each entry has the following tab-delimited fields: @@ -1069,8 +1070,7 @@ /// When transferring data based on a URL list, keep the following in mind: /// /// * When an object located at `http(s)://hostname:port/<URL-path>` is -/// transferred -/// to a data sink, the name of the object at the data sink is +/// transferred to a data sink, the name of the object at the data sink is /// `<hostname>/<URL-path>`. /// /// * If the specified size of an object does not match the actual size of the @@ -1813,7 +1813,8 @@ /// - "DELETED" : This is a soft delete state. After a transfer job is set to /// this /// state, the job and all the transfer executions are subject to - /// garbage collection. + /// garbage collection. Transfer jobs become eligible for garbage collection + /// 30 days after their status is set to `DELETED`. core.String status; /// Transfer specification.
diff --git a/generated/googleapis/lib/streetviewpublish/v1.dart b/generated/googleapis/lib/streetviewpublish/v1.dart index e7e194b..12b88b2 100644 --- a/generated/googleapis/lib/streetviewpublish/v1.dart +++ b/generated/googleapis/lib/streetviewpublish/v1.dart
@@ -461,10 +461,6 @@ /// /// Request parameters: /// - /// [photoIds] - Required. IDs of the Photos. For HTTP - /// GET requests, the URL query parameter should be - /// `photoIds=<id1>&photoIds=<id2>&...`. - /// /// [view] - Specifies if a download URL for the photo bytes should be /// returned in the /// Photo response. @@ -472,6 +468,10 @@ /// - "BASIC" : A BASIC. /// - "INCLUDE_DOWNLOAD_URL" : A INCLUDE_DOWNLOAD_URL. /// + /// [photoIds] - Required. IDs of the Photos. For HTTP + /// GET requests, the URL query parameter should be + /// `photoIds=<id1>&photoIds=<id2>&...`. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -483,8 +483,8 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<BatchGetPhotosResponse> batchGet( - {core.List<core.String> photoIds, - core.String view, + {core.String view, + core.List<core.String> photoIds, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -493,12 +493,12 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (photoIds != null) { - _queryParams["photoIds"] = photoIds; - } if (view != null) { _queryParams["view"] = [view]; } + if (photoIds != null) { + _queryParams["photoIds"] = photoIds; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -594,6 +594,11 @@ /// /// Request parameters: /// + /// [filter] - The filter expression. For example: + /// `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`. + /// + /// The only filter supported at the moment is `placeId`. + /// /// [pageToken] - The /// nextPageToken /// value returned from a previous @@ -613,11 +618,6 @@ /// - "BASIC" : A BASIC. /// - "INCLUDE_DOWNLOAD_URL" : A INCLUDE_DOWNLOAD_URL. /// - /// [filter] - The filter expression. For example: - /// `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`. - /// - /// The only filter supported at the moment is `placeId`. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -629,10 +629,10 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListPhotosResponse> list( - {core.String pageToken, + {core.String filter, + core.String pageToken, core.int pageSize, core.String view, - core.String filter, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -641,6 +641,9 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -650,9 +653,6 @@ if (view != null) { _queryParams["view"] = [view]; } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; }
diff --git a/generated/googleapis/lib/surveys/v2.dart b/generated/googleapis/lib/surveys/v2.dart index 9d99cdd..ecfa79d 100644 --- a/generated/googleapis/lib/surveys/v2.dart +++ b/generated/googleapis/lib/surveys/v2.dart
@@ -40,8 +40,6 @@ final commons.ApiRequester _requester; - MobileapppanelsResourceApi get mobileapppanels => - new MobileapppanelsResourceApi(_requester); ResultsResourceApi get results => new ResultsResourceApi(_requester); SurveysResourceApi get surveys => new SurveysResourceApi(_requester); @@ -52,161 +50,6 @@ 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. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// 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, {core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - 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."); - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _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 - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// 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, - core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - 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]; - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _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. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// 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, - {core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - 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."); - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _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; @@ -641,132 +484,6 @@ } } -/// 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"] as core.List).cast<core.String>(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - 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"] as core.List) - .map<MobileAppPanel>((value) => new MobileAppPanel.fromJson(value)) - .toList(); - } - if (_json.containsKey("tokenPagination")) { - tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - 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; @@ -1009,11 +726,6 @@ /// 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; @@ -1035,9 +747,6 @@ if (_json.containsKey("languages")) { languages = (_json["languages"] as core.List).cast<core.String>(); } - if (_json.containsKey("mobileAppPanelId")) { - mobileAppPanelId = _json["mobileAppPanelId"]; - } if (_json.containsKey("populationSource")) { populationSource = _json["populationSource"]; } @@ -1061,9 +770,6 @@ if (languages != null) { _json["languages"] = languages; } - if (mobileAppPanelId != null) { - _json["mobileAppPanelId"] = mobileAppPanelId; - } if (populationSource != null) { _json["populationSource"] = populationSource; } @@ -1080,10 +786,10 @@ /// 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 + /// *Deprecated* 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 @@ -1095,7 +801,8 @@ /// 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. + /// survey as long the incidence test was run within the last 21 days. This + /// will no longer be available after June 2018. core.String maxCostPerResponseNanos; /// Cost of survey in nano units of the given currency. DEPRECATED in favor of @@ -1522,8 +1229,9 @@ } 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. + /// *Deprecated* Threshold to start a survey automatically if the quoted + /// prices is less than or equal to this value. See Survey.Cost for more + /// details. This will no longer be available after June 2018. core.String maxCostPerResponseNanos; SurveysStartRequest();
diff --git a/generated/googleapis/lib/testing/v1.dart b/generated/googleapis/lib/testing/v1.dart index c73a012..5cfae3a 100644 --- a/generated/googleapis/lib/testing/v1.dart +++ b/generated/googleapis/lib/testing/v1.dart
@@ -317,6 +317,7 @@ /// - "ENVIRONMENT_TYPE_UNSPECIFIED" : A ENVIRONMENT_TYPE_UNSPECIFIED. /// - "ANDROID" : A ANDROID. /// - "NETWORK_CONFIGURATION" : A NETWORK_CONFIGURATION. + /// - "PROVIDED_SOFTWARE" : A PROVIDED_SOFTWARE. /// /// [projectId] - For authorization, the cloud project requesting the /// TestEnvironmentCatalog. @@ -772,6 +773,11 @@ /// Examples: "default", "preview", "deprecated" core.List<core.String> tags; + /// True if and only if tests with this model DO NOT have video output. + /// See also TestSpecification.disable_video_recording + /// @OutputOnly + core.bool videoRecordingNotSupported; + AndroidModel(); AndroidModel.fromJson(core.Map _json) { @@ -812,6 +818,9 @@ if (_json.containsKey("tags")) { tags = (_json["tags"] as core.List).cast<core.String>(); } + if (_json.containsKey("videoRecordingNotSupported")) { + videoRecordingNotSupported = _json["videoRecordingNotSupported"]; + } } core.Map<core.String, core.Object> toJson() { @@ -853,6 +862,9 @@ if (tags != null) { _json["tags"] = tags; } + if (videoRecordingNotSupported != null) { + _json["videoRecordingNotSupported"] = videoRecordingNotSupported; + } return _json; } } @@ -890,6 +902,11 @@ /// Optional core.List<RoboDirective> roboDirectives; + /// A JSON file with a sequence of actions Robo should perform as a prologue + /// for the crawl. + /// Optional + FileReference roboScript; + /// The intents used to launch the app for the crawl. /// If none are provided, then the main launcher activity is launched. /// If some are provided, then only those provided are launched (the main @@ -919,6 +936,9 @@ .map<RoboDirective>((value) => new RoboDirective.fromJson(value)) .toList(); } + if (_json.containsKey("roboScript")) { + roboScript = new FileReference.fromJson(_json["roboScript"]); + } if (_json.containsKey("startingIntents")) { startingIntents = (_json["startingIntents"] as core.List) .map<RoboStartingIntent>( @@ -949,6 +969,9 @@ _json["roboDirectives"] = roboDirectives.map((value) => (value).toJson()).toList(); } + if (roboScript != null) { + _json["roboScript"] = (roboScript).toJson(); + } if (startingIntents != null) { _json["startingIntents"] = startingIntents.map((value) => (value).toJson()).toList(); @@ -1148,6 +1171,40 @@ } } +/// An Android package file to install. +class Apk { + /// The path to an APK to be installed on the device before the test begins. + /// Optional + FileReference location; + + /// The java package for the APK to be installed. + /// Optional, value is determined by examining the application's manifest. + core.String packageName; + + Apk(); + + Apk.fromJson(core.Map _json) { + if (_json.containsKey("location")) { + location = new FileReference.fromJson(_json["location"]); + } + if (_json.containsKey("packageName")) { + packageName = _json["packageName"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (location != null) { + _json["location"] = (location).toJson(); + } + if (packageName != null) { + _json["packageName"] = packageName; + } + return _json; + } +} + /// Android application details based on application manifest and apk archive /// contents class ApkDetail { @@ -1387,7 +1444,8 @@ /// if specifying a year/month where the day is not significant. core.int day; - /// Month of year. Must be from 1 to 12. + /// Month of year. Must be from 1 to 12, or 0 if specifying a date without a + /// month. core.int month; /// Year of date. Must be from 1 to 9999, or 0 if specifying a date without @@ -1429,12 +1487,18 @@ /// A reference to an opaque binary blob file ObbFile obbFile; + /// A reference to a regular file + RegularFile regularFile; + DeviceFile(); DeviceFile.fromJson(core.Map _json) { if (_json.containsKey("obbFile")) { obbFile = new ObbFile.fromJson(_json["obbFile"]); } + if (_json.containsKey("regularFile")) { + regularFile = new RegularFile.fromJson(_json["regularFile"]); + } } core.Map<core.String, core.Object> toJson() { @@ -1443,6 +1507,9 @@ if (obbFile != null) { _json["obbFile"] = (obbFile).toJson(); } + if (regularFile != null) { + _json["regularFile"] = (regularFile).toJson(); + } return _json; } } @@ -1930,6 +1997,81 @@ } } +/// The currently provided software environment on the devices under test. +class ProvidedSoftwareCatalog { + /// A string representing the current version of Android Test Orchestrator + /// that + /// is provided by TestExecutionService. Example: "1.0.2 beta" + core.String orchestratorVersion; + + ProvidedSoftwareCatalog(); + + ProvidedSoftwareCatalog.fromJson(core.Map _json) { + if (_json.containsKey("orchestratorVersion")) { + orchestratorVersion = _json["orchestratorVersion"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (orchestratorVersion != null) { + _json["orchestratorVersion"] = orchestratorVersion; + } + return _json; + } +} + +/// A file or directory to install on the device before the test starts +class RegularFile { + /// Required + FileReference content; + + /// Where to put the content on the device. Must be an absolute, whitelisted + /// path. If the file exists, it will be replaced. + /// The following device-side directories and any of their subdirectories are + /// whitelisted: + /// <p>${EXTERNAL_STORAGE}, or /sdcard</p> + /// <p>${ANDROID_DATA}/local/tmp, or /data/local/tmp</p> + /// <p>Specifying a path outside of these directory trees is invalid. + /// + /// <p> The paths /sdcard and /data will be made available and treated as + /// implicit path substitutions. E.g. if /sdcard on a particular device does + /// not map to external storage, the system will replace it with the external + /// storage path prefix for that device and copy the file there. + /// + /// <p> It is strongly advised to use the <a href= + /// "http://developer.android.com/reference/android/os/Environment.html"> + /// Environment API</a> in app and test code to access files on the device in + /// a + /// portable way. + /// Required + core.String devicePath; + + RegularFile(); + + RegularFile.fromJson(core.Map _json) { + if (_json.containsKey("content")) { + content = new FileReference.fromJson(_json["content"]); + } + if (_json.containsKey("devicePath")) { + devicePath = _json["devicePath"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (content != null) { + _json["content"] = (content).toJson(); + } + if (devicePath != null) { + _json["devicePath"] = devicePath; + } + return _json; + } +} + /// Locations where the results of running the test are stored. class ResultStorage { /// Required. @@ -2128,6 +2270,13 @@ /// @OutputOnly core.List<core.String> progressMessages; + /// Indicates that video will not be recorded for this execution either + /// because + /// the user chose to disable it or the device does not support it. + /// See AndroidModel.video_recording_not_supported + /// @OutputOnly + core.bool videoRecordingDisabled; + TestDetails(); TestDetails.fromJson(core.Map _json) { @@ -2138,6 +2287,9 @@ progressMessages = (_json["progressMessages"] as core.List).cast<core.String>(); } + if (_json.containsKey("videoRecordingDisabled")) { + videoRecordingDisabled = _json["videoRecordingDisabled"]; + } } core.Map<core.String, core.Object> toJson() { @@ -2149,6 +2301,9 @@ if (progressMessages != null) { _json["progressMessages"] = progressMessages; } + if (videoRecordingDisabled != null) { + _json["videoRecordingDisabled"] = videoRecordingDisabled; + } return _json; } } @@ -2161,6 +2316,9 @@ /// Supported network configurations NetworkConfigurationCatalog networkConfigurationCatalog; + /// The software test environment provided by TestExecutionService. + ProvidedSoftwareCatalog softwareCatalog; + TestEnvironmentCatalog(); TestEnvironmentCatalog.fromJson(core.Map _json) { @@ -2172,6 +2330,10 @@ networkConfigurationCatalog = new NetworkConfigurationCatalog.fromJson( _json["networkConfigurationCatalog"]); } + if (_json.containsKey("softwareCatalog")) { + softwareCatalog = + new ProvidedSoftwareCatalog.fromJson(_json["softwareCatalog"]); + } } core.Map<core.String, core.Object> toJson() { @@ -2184,6 +2346,9 @@ _json["networkConfigurationCatalog"] = (networkConfigurationCatalog).toJson(); } + if (softwareCatalog != null) { + _json["softwareCatalog"] = (softwareCatalog).toJson(); + } return _json; } } @@ -2397,9 +2562,14 @@ /// allowed. /// - "TEST_ONLY_APK" : The APK is marked as "testOnly". /// NOT USED + /// - "MALFORMED_IPA" : The input IPA could not be parsed. + /// NOT USED /// - "NO_CODE_APK" : APK contains no code. /// See also /// https://developer.android.com/guide/topics/manifest/application-element.html#code + /// - "INVALID_INPUT_APK" : Either the provided input APK path was malformed, + /// the APK file does not exist, or the user does not have permission to + /// access the APK file. core.String invalidMatrixDetails; /// The cloud project that owns the test matrix. @@ -2551,12 +2721,17 @@ } } -/// A description of how to set up the device prior to running the test +/// A description of how to set up the Android device prior to running the test. class TestSetup { /// The device will be logged in on this account for the duration of the test. /// Optional Account account; + /// APKs to install in addition to those being directly tested. + /// Currently capped at 100. + /// Optional + core.List<Apk> additionalApks; + /// List of directories on the device to upload to GCS at the end of the test; /// they must be absolute paths under /sdcard or /data/local/tmp. /// Path names are restricted to characters a-z A-Z 0-9 _ - . + and / @@ -2588,6 +2763,11 @@ if (_json.containsKey("account")) { account = new Account.fromJson(_json["account"]); } + if (_json.containsKey("additionalApks")) { + additionalApks = (_json["additionalApks"] as core.List) + .map<Apk>((value) => new Apk.fromJson(value)) + .toList(); + } if (_json.containsKey("directoriesToPull")) { directoriesToPull = (_json["directoriesToPull"] as core.List).cast<core.String>(); @@ -2614,6 +2794,10 @@ if (account != null) { _json["account"] = (account).toJson(); } + if (additionalApks != null) { + _json["additionalApks"] = + additionalApks.map((value) => (value).toJson()).toList(); + } if (directoriesToPull != null) { _json["directoriesToPull"] = directoriesToPull; } @@ -2661,7 +2845,8 @@ /// Disables video recording; may reduce test latency. core.bool disableVideoRecording; - /// Test setup requirements e.g. files to install, bootstrap scripts + /// Test setup requirements for Android e.g. files to install, bootstrap + /// scripts. /// Optional TestSetup testSetup;
diff --git a/generated/googleapis/lib/translate/v2.dart b/generated/googleapis/lib/translate/v2.dart index 43476aa..1a59fad 100644 --- a/generated/googleapis/lib/translate/v2.dart +++ b/generated/googleapis/lib/translate/v2.dart
@@ -212,6 +212,12 @@ /// one of the /// language codes listed in Language Support. /// + /// [source] - The language of the source text, set to one of the language + /// codes listed in + /// Language Support. If the source language is not specified, the API will + /// attempt to identify the source language automatically and return it within + /// the response. + /// /// [cid] - The customization id for translate /// /// [format] - The format of the source text, in either HTML (default) or @@ -225,12 +231,6 @@ /// are /// listed in public documentation. /// - /// [source] - The language of the source text, set to one of the language - /// codes listed in - /// Language Support. If the source language is not specified, the API will - /// attempt to identify the source language automatically and return it within - /// the response. - /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -243,10 +243,10 @@ /// this method will complete with the same error. async.Future<TranslationsListResponse> list( core.List<core.String> q, core.String target, - {core.List<core.String> cid, + {core.String source, + core.List<core.String> cid, core.String format, core.String model, - core.String source, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -263,6 +263,9 @@ throw new core.ArgumentError("Parameter target is required."); } _queryParams["target"] = [target]; + if (source != null) { + _queryParams["source"] = [source]; + } if (cid != null) { _queryParams["cid"] = cid; } @@ -272,9 +275,6 @@ if (model != null) { _queryParams["model"] = [model]; } - if (source != null) { - _queryParams["source"] = [source]; - } if ($fields != null) { _queryParams["fields"] = [$fields]; }
diff --git a/generated/googleapis/lib/vault/v1.dart b/generated/googleapis/lib/vault/v1.dart index ce5ea15..87c6c05 100644 --- a/generated/googleapis/lib/vault/v1.dart +++ b/generated/googleapis/lib/vault/v1.dart
@@ -287,15 +287,6 @@ /// /// Request parameters: /// - /// [state] - If set, list only matters with that specific state. The default - /// is listing - /// matters of all states. - /// Possible string values are: - /// - "STATE_UNSPECIFIED" : A STATE_UNSPECIFIED. - /// - "OPEN" : A OPEN. - /// - "CLOSED" : A CLOSED. - /// - "DELETED" : A DELETED. - /// /// [pageToken] - The pagination token as returned in the response. /// /// [pageSize] - The number of matters to return in the response. @@ -307,6 +298,15 @@ /// - "BASIC" : A BASIC. /// - "FULL" : A FULL. /// + /// [state] - If set, list only matters with that specific state. The default + /// is listing + /// matters of all states. + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : A STATE_UNSPECIFIED. + /// - "OPEN" : A OPEN. + /// - "CLOSED" : A CLOSED. + /// - "DELETED" : A DELETED. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -318,10 +318,10 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListMattersResponse> list( - {core.String state, - core.String pageToken, + {core.String pageToken, core.int pageSize, core.String view, + core.String state, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); @@ -330,9 +330,6 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (state != null) { - _queryParams["state"] = [state]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -342,6 +339,9 @@ if (view != null) { _queryParams["view"] = [view]; } + if (state != null) { + _queryParams["state"] = [state]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -677,6 +677,12 @@ /// /// [holdId] - The hold ID. /// + /// [view] - Specifies which parts of the Hold to return. + /// Possible string values are: + /// - "HOLD_VIEW_UNSPECIFIED" : A HOLD_VIEW_UNSPECIFIED. + /// - "BASIC_HOLD" : A BASIC_HOLD. + /// - "FULL_HOLD" : A FULL_HOLD. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -688,7 +694,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<Hold> get(core.String matterId, core.String holdId, - {core.String $fields}) { + {core.String view, core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -702,6 +708,9 @@ if (holdId == null) { throw new core.ArgumentError("Parameter holdId is required."); } + if (view != null) { + _queryParams["view"] = [view]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -734,6 +743,12 @@ /// 100 inclusive. /// Leaving this empty, or as 0, is the same as page_size = 100. /// + /// [view] - Specifies which parts of the Hold to return. + /// Possible string values are: + /// - "HOLD_VIEW_UNSPECIFIED" : A HOLD_VIEW_UNSPECIFIED. + /// - "BASIC_HOLD" : A BASIC_HOLD. + /// - "FULL_HOLD" : A FULL_HOLD. + /// /// [$fields] - Selector specifying which fields to include in a partial /// response. /// @@ -745,7 +760,10 @@ /// If the used [http.Client] completes with an error when making a REST call, /// this method will complete with the same error. async.Future<ListHoldsResponse> list(core.String matterId, - {core.String pageToken, core.int pageSize, core.String $fields}) { + {core.String pageToken, + core.int pageSize, + core.String view, + core.String $fields}) { var _url = null; var _queryParams = new core.Map<core.String, core.List<core.String>>(); var _uploadMedia = null; @@ -762,6 +780,9 @@ if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (view != null) { + _queryParams["view"] = [view]; + } if ($fields != null) { _queryParams["fields"] = [$fields]; } @@ -1113,6 +1134,10 @@ /// Details pertaining to Groups holds. If set, corpus must be Groups. HeldGroupsQuery groupsQuery; + /// Details pertaining to Hangouts Chat holds. If set, corpus must be + /// Hangouts Chat. + HeldHangoutsChatQuery hangoutsChatQuery; + /// Details pertaining to mail holds. If set, corpus must be mail. HeldMailQuery mailQuery; @@ -1125,6 +1150,10 @@ if (_json.containsKey("groupsQuery")) { groupsQuery = new HeldGroupsQuery.fromJson(_json["groupsQuery"]); } + if (_json.containsKey("hangoutsChatQuery")) { + hangoutsChatQuery = + new HeldHangoutsChatQuery.fromJson(_json["hangoutsChatQuery"]); + } if (_json.containsKey("mailQuery")) { mailQuery = new HeldMailQuery.fromJson(_json["mailQuery"]); } @@ -1139,6 +1168,9 @@ if (groupsQuery != null) { _json["groupsQuery"] = (groupsQuery).toJson(); } + if (hangoutsChatQuery != null) { + _json["hangoutsChatQuery"] = (hangoutsChatQuery).toJson(); + } if (mailQuery != null) { _json["mailQuery"] = (mailQuery).toJson(); } @@ -1201,7 +1233,7 @@ } } -/// Query options for drive holds. +/// Query options for Drive holds. class HeldDriveQuery { /// If true, include files in Team Drives in the hold. core.bool includeTeamDriveFiles; @@ -1267,6 +1299,29 @@ } } +/// Query options for hangouts chat holds. +class HeldHangoutsChatQuery { + /// If true, include rooms the user has participated in. + core.bool includeRooms; + + HeldHangoutsChatQuery(); + + HeldHangoutsChatQuery.fromJson(core.Map _json) { + if (_json.containsKey("includeRooms")) { + includeRooms = _json["includeRooms"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (includeRooms != null) { + _json["includeRooms"] = includeRooms; + } + return _json; + } +} + /// Query options for mail holds. class HeldMailQuery { /// The end time range for the search query. These timestamps are in GMT and @@ -1316,7 +1371,7 @@ /// When the org unit was put on hold. This property is immutable. core.String holdTime; - /// The org unit's immutable ID as provided by the admin SDK. + /// The org unit's immutable ID as provided by the Admin SDK. core.String orgUnitId; HeldOrgUnit(); @@ -1358,6 +1413,7 @@ /// - "DRIVE" : Drive. /// - "MAIL" : Mail. /// - "GROUPS" : Groups. + /// - "HANGOUTS_CHAT" : Hangouts Chat. core.String corpus; /// The unique immutable ID of the hold. Assigned during creation.
diff --git a/generated/googleapis/lib/vision/v1.dart b/generated/googleapis/lib/vision/v1.dart index 63acacd..2170300 100644 --- a/generated/googleapis/lib/vision/v1.dart +++ b/generated/googleapis/lib/vision/v1.dart
@@ -30,7 +30,10 @@ final commons.ApiRequester _requester; + FilesResourceApi get files => new FilesResourceApi(_requester); ImagesResourceApi get images => new ImagesResourceApi(_requester); + LocationsResourceApi get locations => new LocationsResourceApi(_requester); + OperationsResourceApi get operations => new OperationsResourceApi(_requester); VisionApi(http.Client client, {core.String rootUrl: "https://vision.googleapis.com/", @@ -39,6 +42,61 @@ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); } +class FilesResourceApi { + final commons.ApiRequester _requester; + + FilesResourceApi(commons.ApiRequester client) : _requester = client; + + /// Run asynchronous image detection and annotation for a list of generic + /// files, such as PDF files, which may contain multiple pages and multiple + /// images per page. Progress and results can be retrieved through the + /// `google.longrunning.Operations` interface. + /// `Operation.metadata` contains `OperationMetadata` (metadata). + /// `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). + /// + /// [request] - The metadata request object. + /// + /// Request parameters: + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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> asyncBatchAnnotate( + AsyncBatchAnnotateFilesRequest request, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.json.encode((request).toJson()); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _url = 'v1/files:asyncBatchAnnotate'; + + 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 ImagesResourceApi { final commons.ApiRequester _requester; @@ -90,6 +148,330 @@ } } +class LocationsResourceApi { + final commons.ApiRequester _requester; + + LocationsOperationsResourceApi get operations => + new LocationsOperationsResourceApi(_requester); + + LocationsResourceApi(commons.ApiRequester client) : _requester = client; +} + +class LocationsOperationsResourceApi { + final commons.ApiRequester _requester; + + LocationsOperationsResourceApi(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: + /// + /// [name] - The name of the operation resource. + /// Value must have pattern "^locations/[^/]+/operations/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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 name, {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _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 Operation.fromJson(data)); + } +} + +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/.+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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, + {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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."); + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _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/.+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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, {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _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)); + } + + /// Gets the latest state of a long-running operation. Clients can use this + /// method to poll the operation result at intervals as recommended by the API + /// service. + /// + /// Request parameters: + /// + /// [name] - The name of the operation resource. + /// Value must have pattern "^operations/[^/]+$". + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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 name, {core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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 ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _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 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 allows API services to override the binding + /// to use different resource name schemes, such as `users / * /operations`. + /// To + /// override the binding, API services can add a binding such as + /// `"/v1/{name=users / * }/operations"` to their service configuration. + /// For backwards compatibility, the default name includes the operations + /// collection id, however overriding users must ensure the name binding + /// is the parent resource, without the operations collection id. + /// + /// Request parameters: + /// + /// [name] - The name of the operation's parent resource. + /// Value must have pattern "^operations$". + /// + /// [pageSize] - The standard list page size. + /// + /// [filter] - The standard list filter. + /// + /// [pageToken] - The standard list page token. + /// + /// [$fields] - Selector specifying which fields to include in a partial + /// response. + /// + /// 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, + core.String $fields}) { + var _url = null; + var _queryParams = new core.Map<core.String, core.List<core.String>>(); + 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]; + } + if ($fields != null) { + _queryParams["fields"] = [$fields]; + } + + _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)); + } +} + +/// Response to a single file annotation request. A file may contain one or more +/// images, which individually have their own responses. +class AnnotateFileResponse { + /// Information about the file for which this response is generated. + InputConfig inputConfig; + + /// Individual responses to images found within the file. + core.List<AnnotateImageResponse> responses; + + AnnotateFileResponse(); + + AnnotateFileResponse.fromJson(core.Map _json) { + if (_json.containsKey("inputConfig")) { + inputConfig = new InputConfig.fromJson(_json["inputConfig"]); + } + if (_json.containsKey("responses")) { + responses = (_json["responses"] as core.List) + .map<AnnotateImageResponse>( + (value) => new AnnotateImageResponse.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (inputConfig != null) { + _json["inputConfig"] = (inputConfig).toJson(); + } + if (responses != null) { + _json["responses"] = responses.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + /// Request for performing Google Cloud Vision API tasks over a user-provided /// image, with user-requested features. class AnnotateImageRequest { @@ -136,6 +518,11 @@ /// Response to an image annotation request. class AnnotateImageResponse { + /// If present, contextual information is needed to understand where this + /// image + /// comes from. + ImageAnnotationContext context; + /// If present, crop hints have completed successfully. CropHintsAnnotation cropHintsAnnotation; @@ -177,6 +564,9 @@ AnnotateImageResponse(); AnnotateImageResponse.fromJson(core.Map _json) { + if (_json.containsKey("context")) { + context = new ImageAnnotationContext.fromJson(_json["context"]); + } if (_json.containsKey("cropHintsAnnotation")) { cropHintsAnnotation = new CropHintsAnnotation.fromJson(_json["cropHintsAnnotation"]); @@ -233,6 +623,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (context != null) { + _json["context"] = (context).toJson(); + } if (cropHintsAnnotation != null) { _json["cropHintsAnnotation"] = (cropHintsAnnotation).toJson(); } @@ -275,6 +668,135 @@ } } +/// An offline file annotation request. +class AsyncAnnotateFileRequest { + /// Required. Requested features. + core.List<Feature> features; + + /// Additional context that may accompany the image(s) in the file. + ImageContext imageContext; + + /// Required. Information about the input file. + InputConfig inputConfig; + + /// Required. The desired output location and metadata (e.g. format). + OutputConfig outputConfig; + + AsyncAnnotateFileRequest(); + + AsyncAnnotateFileRequest.fromJson(core.Map _json) { + if (_json.containsKey("features")) { + features = (_json["features"] as core.List) + .map<Feature>((value) => new Feature.fromJson(value)) + .toList(); + } + if (_json.containsKey("imageContext")) { + imageContext = new ImageContext.fromJson(_json["imageContext"]); + } + if (_json.containsKey("inputConfig")) { + inputConfig = new InputConfig.fromJson(_json["inputConfig"]); + } + if (_json.containsKey("outputConfig")) { + outputConfig = new OutputConfig.fromJson(_json["outputConfig"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (features != null) { + _json["features"] = features.map((value) => (value).toJson()).toList(); + } + if (imageContext != null) { + _json["imageContext"] = (imageContext).toJson(); + } + if (inputConfig != null) { + _json["inputConfig"] = (inputConfig).toJson(); + } + if (outputConfig != null) { + _json["outputConfig"] = (outputConfig).toJson(); + } + return _json; + } +} + +/// The response for a single offline file annotation request. +class AsyncAnnotateFileResponse { + /// The output location and metadata from AsyncAnnotateFileRequest. + OutputConfig outputConfig; + + AsyncAnnotateFileResponse(); + + AsyncAnnotateFileResponse.fromJson(core.Map _json) { + if (_json.containsKey("outputConfig")) { + outputConfig = new OutputConfig.fromJson(_json["outputConfig"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (outputConfig != null) { + _json["outputConfig"] = (outputConfig).toJson(); + } + return _json; + } +} + +/// Multiple async file annotation requests are batched into a single service +/// call. +class AsyncBatchAnnotateFilesRequest { + /// Individual async file annotation requests for this batch. + core.List<AsyncAnnotateFileRequest> requests; + + AsyncBatchAnnotateFilesRequest(); + + AsyncBatchAnnotateFilesRequest.fromJson(core.Map _json) { + if (_json.containsKey("requests")) { + requests = (_json["requests"] as core.List) + .map<AsyncAnnotateFileRequest>( + (value) => new AsyncAnnotateFileRequest.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (requests != null) { + _json["requests"] = requests.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/// Response to an async batch file annotation request. +class AsyncBatchAnnotateFilesResponse { + /// The list of file annotation responses, one for each request in + /// AsyncBatchAnnotateFilesRequest. + core.List<AsyncAnnotateFileResponse> responses; + + AsyncBatchAnnotateFilesResponse(); + + AsyncBatchAnnotateFilesResponse.fromJson(core.Map _json) { + if (_json.containsKey("responses")) { + responses = (_json["responses"] as core.List) + .map<AsyncAnnotateFileResponse>( + (value) => new AsyncAnnotateFileResponse.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (responses != null) { + _json["responses"] = responses.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + /// Multiple image annotation requests are batched into a single service call. class BatchAnnotateImagesRequest { /// Individual image annotation requests for this batch. @@ -417,12 +939,21 @@ /// A bounding polygon for the detected image annotation. class BoundingPoly { + /// The bounding polygon normalized vertices. + core.List<NormalizedVertex> normalizedVertices; + /// The bounding polygon vertices. core.List<Vertex> vertices; BoundingPoly(); BoundingPoly.fromJson(core.Map _json) { + if (_json.containsKey("normalizedVertices")) { + normalizedVertices = (_json["normalizedVertices"] as core.List) + .map<NormalizedVertex>( + (value) => new NormalizedVertex.fromJson(value)) + .toList(); + } if (_json.containsKey("vertices")) { vertices = (_json["vertices"] as core.List) .map<Vertex>((value) => new Vertex.fromJson(value)) @@ -433,6 +964,10 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (normalizedVertices != null) { + _json["normalizedVertices"] = + normalizedVertices.map((value) => (value).toJson()).toList(); + } if (vertices != null) { _json["vertices"] = vertices.map((value) => (value).toJson()).toList(); } @@ -440,6 +975,19 @@ } } +/// The request message for Operations.CancelOperation. +class CancelOperationRequest { + CancelOperationRequest(); + + CancelOperationRequest.fromJson(core.Map _json) {} + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + return _json; + } +} + /// Represents a color in the RGBA color space. This representation is designed /// for simplicity of conversion to/from color representations in various /// languages over compactness; for example, the fields of this representation @@ -854,6 +1402,27 @@ } } +/// 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<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + return _json; + } +} + /// Set of detected entity features. class EntityAnnotation { /// Image region to which this entity belongs. Not produced @@ -1288,6 +1857,2574 @@ } } +/// The Google Cloud Storage location where the output will be written to. +class GcsDestination { + /// Google Cloud Storage URI where the results will be stored. Results will + /// be in JSON format and preceded by its corresponding input URI. This field + /// can either represent a single file, or a prefix for multiple outputs. + /// Prefixes must end in a `/`. + /// + /// Examples: + /// + /// * File: gs://bucket-name/filename.json + /// * Prefix: gs://bucket-name/prefix/here/ + /// * File: gs://bucket-name/prefix/here + /// + /// If multiple outputs, each response is still AnnotateFileResponse, each of + /// which contains some subset of the full list of AnnotateImageResponse. + /// Multiple outputs can happen if, for example, the output JSON is too large + /// and overflows into multiple sharded files. + core.String uri; + + GcsDestination(); + + GcsDestination.fromJson(core.Map _json) { + if (_json.containsKey("uri")) { + uri = _json["uri"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (uri != null) { + _json["uri"] = uri; + } + return _json; + } +} + +/// The Google Cloud Storage location where the input will be read from. +class GcsSource { + /// Google Cloud Storage URI for the input file. This must only be a + /// Google Cloud Storage object. Wildcards are not currently supported. + core.String uri; + + GcsSource(); + + GcsSource.fromJson(core.Map _json) { + if (_json.containsKey("uri")) { + uri = _json["uri"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (uri != null) { + _json["uri"] = uri; + } + return _json; + } +} + +/// Response to a single file annotation request. A file may contain one or more +/// images, which individually have their own responses. +class GoogleCloudVisionV1p2beta1AnnotateFileResponse { + /// Information about the file for which this response is generated. + GoogleCloudVisionV1p2beta1InputConfig inputConfig; + + /// Individual responses to images found within the file. + core.List<GoogleCloudVisionV1p2beta1AnnotateImageResponse> responses; + + GoogleCloudVisionV1p2beta1AnnotateFileResponse(); + + GoogleCloudVisionV1p2beta1AnnotateFileResponse.fromJson(core.Map _json) { + if (_json.containsKey("inputConfig")) { + inputConfig = new GoogleCloudVisionV1p2beta1InputConfig.fromJson( + _json["inputConfig"]); + } + if (_json.containsKey("responses")) { + responses = (_json["responses"] as core.List) + .map<GoogleCloudVisionV1p2beta1AnnotateImageResponse>((value) => + new GoogleCloudVisionV1p2beta1AnnotateImageResponse.fromJson( + value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (inputConfig != null) { + _json["inputConfig"] = (inputConfig).toJson(); + } + if (responses != null) { + _json["responses"] = responses.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/// Response to an image annotation request. +class GoogleCloudVisionV1p2beta1AnnotateImageResponse { + /// If present, contextual information is needed to understand where this + /// image + /// comes from. + GoogleCloudVisionV1p2beta1ImageAnnotationContext context; + + /// If present, crop hints have completed successfully. + GoogleCloudVisionV1p2beta1CropHintsAnnotation cropHintsAnnotation; + + /// If set, represents the error message for the operation. + /// Note that filled-in image annotations are guaranteed to be + /// correct, even when `error` is set. + Status error; + + /// If present, face detection has completed successfully. + core.List<GoogleCloudVisionV1p2beta1FaceAnnotation> faceAnnotations; + + /// If present, text (OCR) detection or document (OCR) text detection has + /// completed successfully. + /// This annotation provides the structural hierarchy for the OCR detected + /// text. + GoogleCloudVisionV1p2beta1TextAnnotation fullTextAnnotation; + + /// If present, image properties were extracted successfully. + GoogleCloudVisionV1p2beta1ImageProperties imagePropertiesAnnotation; + + /// If present, label detection has completed successfully. + core.List<GoogleCloudVisionV1p2beta1EntityAnnotation> labelAnnotations; + + /// If present, landmark detection has completed successfully. + core.List<GoogleCloudVisionV1p2beta1EntityAnnotation> landmarkAnnotations; + + /// If present, logo detection has completed successfully. + core.List<GoogleCloudVisionV1p2beta1EntityAnnotation> logoAnnotations; + + /// If present, safe-search annotation has completed successfully. + GoogleCloudVisionV1p2beta1SafeSearchAnnotation safeSearchAnnotation; + + /// If present, text (OCR) detection has completed successfully. + core.List<GoogleCloudVisionV1p2beta1EntityAnnotation> textAnnotations; + + /// If present, web detection has completed successfully. + GoogleCloudVisionV1p2beta1WebDetection webDetection; + + GoogleCloudVisionV1p2beta1AnnotateImageResponse(); + + GoogleCloudVisionV1p2beta1AnnotateImageResponse.fromJson(core.Map _json) { + if (_json.containsKey("context")) { + context = new GoogleCloudVisionV1p2beta1ImageAnnotationContext.fromJson( + _json["context"]); + } + if (_json.containsKey("cropHintsAnnotation")) { + cropHintsAnnotation = + new GoogleCloudVisionV1p2beta1CropHintsAnnotation.fromJson( + _json["cropHintsAnnotation"]); + } + if (_json.containsKey("error")) { + error = new Status.fromJson(_json["error"]); + } + if (_json.containsKey("faceAnnotations")) { + faceAnnotations = (_json["faceAnnotations"] as core.List) + .map<GoogleCloudVisionV1p2beta1FaceAnnotation>((value) => + new GoogleCloudVisionV1p2beta1FaceAnnotation.fromJson(value)) + .toList(); + } + if (_json.containsKey("fullTextAnnotation")) { + fullTextAnnotation = + new GoogleCloudVisionV1p2beta1TextAnnotation.fromJson( + _json["fullTextAnnotation"]); + } + if (_json.containsKey("imagePropertiesAnnotation")) { + imagePropertiesAnnotation = + new GoogleCloudVisionV1p2beta1ImageProperties.fromJson( + _json["imagePropertiesAnnotation"]); + } + if (_json.containsKey("labelAnnotations")) { + labelAnnotations = (_json["labelAnnotations"] as core.List) + .map<GoogleCloudVisionV1p2beta1EntityAnnotation>((value) => + new GoogleCloudVisionV1p2beta1EntityAnnotation.fromJson(value)) + .toList(); + } + if (_json.containsKey("landmarkAnnotations")) { + landmarkAnnotations = (_json["landmarkAnnotations"] as core.List) + .map<GoogleCloudVisionV1p2beta1EntityAnnotation>((value) => + new GoogleCloudVisionV1p2beta1EntityAnnotation.fromJson(value)) + .toList(); + } + if (_json.containsKey("logoAnnotations")) { + logoAnnotations = (_json["logoAnnotations"] as core.List) + .map<GoogleCloudVisionV1p2beta1EntityAnnotation>((value) => + new GoogleCloudVisionV1p2beta1EntityAnnotation.fromJson(value)) + .toList(); + } + if (_json.containsKey("safeSearchAnnotation")) { + safeSearchAnnotation = + new GoogleCloudVisionV1p2beta1SafeSearchAnnotation.fromJson( + _json["safeSearchAnnotation"]); + } + if (_json.containsKey("textAnnotations")) { + textAnnotations = (_json["textAnnotations"] as core.List) + .map<GoogleCloudVisionV1p2beta1EntityAnnotation>((value) => + new GoogleCloudVisionV1p2beta1EntityAnnotation.fromJson(value)) + .toList(); + } + if (_json.containsKey("webDetection")) { + webDetection = new GoogleCloudVisionV1p2beta1WebDetection.fromJson( + _json["webDetection"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (context != null) { + _json["context"] = (context).toJson(); + } + if (cropHintsAnnotation != null) { + _json["cropHintsAnnotation"] = (cropHintsAnnotation).toJson(); + } + if (error != null) { + _json["error"] = (error).toJson(); + } + if (faceAnnotations != null) { + _json["faceAnnotations"] = + faceAnnotations.map((value) => (value).toJson()).toList(); + } + if (fullTextAnnotation != null) { + _json["fullTextAnnotation"] = (fullTextAnnotation).toJson(); + } + if (imagePropertiesAnnotation != null) { + _json["imagePropertiesAnnotation"] = (imagePropertiesAnnotation).toJson(); + } + if (labelAnnotations != null) { + _json["labelAnnotations"] = + labelAnnotations.map((value) => (value).toJson()).toList(); + } + if (landmarkAnnotations != null) { + _json["landmarkAnnotations"] = + landmarkAnnotations.map((value) => (value).toJson()).toList(); + } + if (logoAnnotations != null) { + _json["logoAnnotations"] = + logoAnnotations.map((value) => (value).toJson()).toList(); + } + if (safeSearchAnnotation != null) { + _json["safeSearchAnnotation"] = (safeSearchAnnotation).toJson(); + } + if (textAnnotations != null) { + _json["textAnnotations"] = + textAnnotations.map((value) => (value).toJson()).toList(); + } + if (webDetection != null) { + _json["webDetection"] = (webDetection).toJson(); + } + return _json; + } +} + +/// The response for a single offline file annotation request. +class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse { + /// The output location and metadata from AsyncAnnotateFileRequest. + GoogleCloudVisionV1p2beta1OutputConfig outputConfig; + + GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse(); + + GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse.fromJson(core.Map _json) { + if (_json.containsKey("outputConfig")) { + outputConfig = new GoogleCloudVisionV1p2beta1OutputConfig.fromJson( + _json["outputConfig"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (outputConfig != null) { + _json["outputConfig"] = (outputConfig).toJson(); + } + return _json; + } +} + +/// Response to an async batch file annotation request. +class GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse { + /// The list of file annotation responses, one for each request in + /// AsyncBatchAnnotateFilesRequest. + core.List<GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse> responses; + + GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse(); + + GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse.fromJson( + core.Map _json) { + if (_json.containsKey("responses")) { + responses = (_json["responses"] as core.List) + .map<GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse>((value) => + new GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse.fromJson( + value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (responses != null) { + _json["responses"] = responses.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/// Logical element on the page. +class GoogleCloudVisionV1p2beta1Block { + /// Detected block type (text, image etc) for this block. + /// Possible string values are: + /// - "UNKNOWN" : Unknown block type. + /// - "TEXT" : Regular text block. + /// - "TABLE" : Table block. + /// - "PICTURE" : Image block. + /// - "RULER" : Horizontal/vertical line box. + /// - "BARCODE" : Barcode block. + core.String blockType; + + /// The bounding box for the block. + /// The vertices are in the order of top-left, top-right, bottom-right, + /// bottom-left. When a rotation of the bounding box is detected the rotation + /// is represented as around the top-left corner as defined when the text is + /// read in the 'natural' orientation. + /// For example: + /// + /// * when the text is horizontal it might look like: + /// + /// 0----1 + /// | | + /// 3----2 + /// + /// * when it's rotated 180 degrees around the top-left corner it becomes: + /// + /// 2----3 + /// | | + /// 1----0 + /// + /// and the vertice order will still be (0, 1, 2, 3). + GoogleCloudVisionV1p2beta1BoundingPoly boundingBox; + + /// Confidence of the OCR results on the block. Range [0, 1]. + core.double confidence; + + /// List of paragraphs in this block (if this blocks is of type text). + core.List<GoogleCloudVisionV1p2beta1Paragraph> paragraphs; + + /// Additional information detected for the block. + GoogleCloudVisionV1p2beta1TextAnnotationTextProperty property; + + GoogleCloudVisionV1p2beta1Block(); + + GoogleCloudVisionV1p2beta1Block.fromJson(core.Map _json) { + if (_json.containsKey("blockType")) { + blockType = _json["blockType"]; + } + if (_json.containsKey("boundingBox")) { + boundingBox = new GoogleCloudVisionV1p2beta1BoundingPoly.fromJson( + _json["boundingBox"]); + } + if (_json.containsKey("confidence")) { + confidence = _json["confidence"].toDouble(); + } + if (_json.containsKey("paragraphs")) { + paragraphs = (_json["paragraphs"] as core.List) + .map<GoogleCloudVisionV1p2beta1Paragraph>((value) => + new GoogleCloudVisionV1p2beta1Paragraph.fromJson(value)) + .toList(); + } + if (_json.containsKey("property")) { + property = + new GoogleCloudVisionV1p2beta1TextAnnotationTextProperty.fromJson( + _json["property"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (blockType != null) { + _json["blockType"] = blockType; + } + if (boundingBox != null) { + _json["boundingBox"] = (boundingBox).toJson(); + } + if (confidence != null) { + _json["confidence"] = confidence; + } + if (paragraphs != null) { + _json["paragraphs"] = + paragraphs.map((value) => (value).toJson()).toList(); + } + if (property != null) { + _json["property"] = (property).toJson(); + } + return _json; + } +} + +/// A bounding polygon for the detected image annotation. +class GoogleCloudVisionV1p2beta1BoundingPoly { + /// The bounding polygon normalized vertices. + core.List<GoogleCloudVisionV1p2beta1NormalizedVertex> normalizedVertices; + + /// The bounding polygon vertices. + core.List<GoogleCloudVisionV1p2beta1Vertex> vertices; + + GoogleCloudVisionV1p2beta1BoundingPoly(); + + GoogleCloudVisionV1p2beta1BoundingPoly.fromJson(core.Map _json) { + if (_json.containsKey("normalizedVertices")) { + normalizedVertices = (_json["normalizedVertices"] as core.List) + .map<GoogleCloudVisionV1p2beta1NormalizedVertex>((value) => + new GoogleCloudVisionV1p2beta1NormalizedVertex.fromJson(value)) + .toList(); + } + if (_json.containsKey("vertices")) { + vertices = (_json["vertices"] as core.List) + .map<GoogleCloudVisionV1p2beta1Vertex>( + (value) => new GoogleCloudVisionV1p2beta1Vertex.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (normalizedVertices != null) { + _json["normalizedVertices"] = + normalizedVertices.map((value) => (value).toJson()).toList(); + } + if (vertices != null) { + _json["vertices"] = vertices.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/// Color information consists of RGB channels, score, and the fraction of +/// the image that the color occupies in the image. +class GoogleCloudVisionV1p2beta1ColorInfo { + /// RGB components of the color. + Color color; + + /// The fraction of pixels the color occupies in the image. + /// Value in range [0, 1]. + core.double pixelFraction; + + /// Image-specific score for this color. Value in range [0, 1]. + core.double score; + + GoogleCloudVisionV1p2beta1ColorInfo(); + + GoogleCloudVisionV1p2beta1ColorInfo.fromJson(core.Map _json) { + if (_json.containsKey("color")) { + color = new Color.fromJson(_json["color"]); + } + if (_json.containsKey("pixelFraction")) { + pixelFraction = _json["pixelFraction"].toDouble(); + } + if (_json.containsKey("score")) { + score = _json["score"].toDouble(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (color != null) { + _json["color"] = (color).toJson(); + } + if (pixelFraction != null) { + _json["pixelFraction"] = pixelFraction; + } + if (score != null) { + _json["score"] = score; + } + return _json; + } +} + +/// Single crop hint that is used to generate a new crop when serving an image. +class GoogleCloudVisionV1p2beta1CropHint { + /// The bounding polygon for the crop region. The coordinates of the bounding + /// box are in the original image's scale, as returned in `ImageParams`. + GoogleCloudVisionV1p2beta1BoundingPoly boundingPoly; + + /// Confidence of this being a salient region. Range [0, 1]. + core.double confidence; + + /// Fraction of importance of this salient region with respect to the original + /// image. + core.double importanceFraction; + + GoogleCloudVisionV1p2beta1CropHint(); + + GoogleCloudVisionV1p2beta1CropHint.fromJson(core.Map _json) { + if (_json.containsKey("boundingPoly")) { + boundingPoly = new GoogleCloudVisionV1p2beta1BoundingPoly.fromJson( + _json["boundingPoly"]); + } + if (_json.containsKey("confidence")) { + confidence = _json["confidence"].toDouble(); + } + if (_json.containsKey("importanceFraction")) { + importanceFraction = _json["importanceFraction"].toDouble(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (boundingPoly != null) { + _json["boundingPoly"] = (boundingPoly).toJson(); + } + if (confidence != null) { + _json["confidence"] = confidence; + } + if (importanceFraction != null) { + _json["importanceFraction"] = importanceFraction; + } + return _json; + } +} + +/// Set of crop hints that are used to generate new crops when serving images. +class GoogleCloudVisionV1p2beta1CropHintsAnnotation { + /// Crop hint results. + core.List<GoogleCloudVisionV1p2beta1CropHint> cropHints; + + GoogleCloudVisionV1p2beta1CropHintsAnnotation(); + + GoogleCloudVisionV1p2beta1CropHintsAnnotation.fromJson(core.Map _json) { + if (_json.containsKey("cropHints")) { + cropHints = (_json["cropHints"] as core.List) + .map<GoogleCloudVisionV1p2beta1CropHint>( + (value) => new GoogleCloudVisionV1p2beta1CropHint.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (cropHints != null) { + _json["cropHints"] = cropHints.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/// Set of dominant colors and their corresponding scores. +class GoogleCloudVisionV1p2beta1DominantColorsAnnotation { + /// RGB color values with their score and pixel fraction. + core.List<GoogleCloudVisionV1p2beta1ColorInfo> colors; + + GoogleCloudVisionV1p2beta1DominantColorsAnnotation(); + + GoogleCloudVisionV1p2beta1DominantColorsAnnotation.fromJson(core.Map _json) { + if (_json.containsKey("colors")) { + colors = (_json["colors"] as core.List) + .map<GoogleCloudVisionV1p2beta1ColorInfo>((value) => + new GoogleCloudVisionV1p2beta1ColorInfo.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (colors != null) { + _json["colors"] = colors.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/// Set of detected entity features. +class GoogleCloudVisionV1p2beta1EntityAnnotation { + /// Image region to which this entity belongs. Not produced + /// for `LABEL_DETECTION` features. + GoogleCloudVisionV1p2beta1BoundingPoly boundingPoly; + + /// **Deprecated. Use `score` instead.** + /// The accuracy of the entity detection in an image. + /// For example, for an image in which the "Eiffel Tower" entity is detected, + /// this field represents the confidence that there is a tower in the query + /// image. Range [0, 1]. + core.double confidence; + + /// Entity textual description, expressed in its `locale` language. + core.String description; + + /// The language code for the locale in which the entity textual + /// `description` is expressed. + core.String locale; + + /// The location information for the detected entity. Multiple + /// `LocationInfo` elements can be present because one location may + /// indicate the location of the scene in the image, and another location + /// may indicate the location of the place where the image was taken. + /// Location information is usually present for landmarks. + core.List<GoogleCloudVisionV1p2beta1LocationInfo> locations; + + /// Opaque entity ID. Some IDs may be available in + /// [Google Knowledge Graph Search + /// API](https://developers.google.com/knowledge-graph/). + core.String mid; + + /// Some entities may have optional user-supplied `Property` (name/value) + /// fields, such a score or string that qualifies the entity. + core.List<GoogleCloudVisionV1p2beta1Property> properties; + + /// Overall score of the result. Range [0, 1]. + core.double score; + + /// The relevancy of the ICA (Image Content Annotation) label to the + /// image. For example, the relevancy of "tower" is likely higher to an image + /// containing the detected "Eiffel Tower" than to an image containing a + /// detected distant towering building, even though the confidence that + /// there is a tower in each image may be the same. Range [0, 1]. + core.double topicality; + + GoogleCloudVisionV1p2beta1EntityAnnotation(); + + GoogleCloudVisionV1p2beta1EntityAnnotation.fromJson(core.Map _json) { + if (_json.containsKey("boundingPoly")) { + boundingPoly = new GoogleCloudVisionV1p2beta1BoundingPoly.fromJson( + _json["boundingPoly"]); + } + if (_json.containsKey("confidence")) { + confidence = _json["confidence"].toDouble(); + } + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("locale")) { + locale = _json["locale"]; + } + if (_json.containsKey("locations")) { + locations = (_json["locations"] as core.List) + .map<GoogleCloudVisionV1p2beta1LocationInfo>((value) => + new GoogleCloudVisionV1p2beta1LocationInfo.fromJson(value)) + .toList(); + } + if (_json.containsKey("mid")) { + mid = _json["mid"]; + } + if (_json.containsKey("properties")) { + properties = (_json["properties"] as core.List) + .map<GoogleCloudVisionV1p2beta1Property>( + (value) => new GoogleCloudVisionV1p2beta1Property.fromJson(value)) + .toList(); + } + if (_json.containsKey("score")) { + score = _json["score"].toDouble(); + } + if (_json.containsKey("topicality")) { + topicality = _json["topicality"].toDouble(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (boundingPoly != null) { + _json["boundingPoly"] = (boundingPoly).toJson(); + } + if (confidence != null) { + _json["confidence"] = confidence; + } + if (description != null) { + _json["description"] = description; + } + if (locale != null) { + _json["locale"] = locale; + } + if (locations != null) { + _json["locations"] = locations.map((value) => (value).toJson()).toList(); + } + if (mid != null) { + _json["mid"] = mid; + } + if (properties != null) { + _json["properties"] = + properties.map((value) => (value).toJson()).toList(); + } + if (score != null) { + _json["score"] = score; + } + if (topicality != null) { + _json["topicality"] = topicality; + } + return _json; + } +} + +/// A face annotation object contains the results of face detection. +class GoogleCloudVisionV1p2beta1FaceAnnotation { + /// Anger likelihood. + /// Possible string values are: + /// - "UNKNOWN" : Unknown likelihood. + /// - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + /// specified vertical. + /// - "UNLIKELY" : It is unlikely that the image belongs to the specified + /// vertical. + /// - "POSSIBLE" : It is possible that the image belongs to the specified + /// vertical. + /// - "LIKELY" : It is likely that the image belongs to the specified + /// vertical. + /// - "VERY_LIKELY" : It is very likely that the image belongs to the + /// specified vertical. + core.String angerLikelihood; + + /// Blurred likelihood. + /// Possible string values are: + /// - "UNKNOWN" : Unknown likelihood. + /// - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + /// specified vertical. + /// - "UNLIKELY" : It is unlikely that the image belongs to the specified + /// vertical. + /// - "POSSIBLE" : It is possible that the image belongs to the specified + /// vertical. + /// - "LIKELY" : It is likely that the image belongs to the specified + /// vertical. + /// - "VERY_LIKELY" : It is very likely that the image belongs to the + /// specified vertical. + core.String blurredLikelihood; + + /// The bounding polygon around the face. The coordinates of the bounding box + /// are in the original image's scale, as returned in `ImageParams`. + /// The bounding box is computed to "frame" the face in accordance with human + /// expectations. It is based on the landmarker results. + /// Note that one or more x and/or y coordinates may not be generated in the + /// `BoundingPoly` (the polygon will be unbounded) if only a partial face + /// appears in the image to be annotated. + GoogleCloudVisionV1p2beta1BoundingPoly boundingPoly; + + /// Detection confidence. Range [0, 1]. + core.double detectionConfidence; + + /// The `fd_bounding_poly` bounding polygon is tighter than the + /// `boundingPoly`, and encloses only the skin part of the face. Typically, it + /// is used to eliminate the face from any image analysis that detects the + /// "amount of skin" visible in an image. It is not based on the + /// landmarker results, only on the initial face detection, hence + /// the <code>fd</code> (face detection) prefix. + GoogleCloudVisionV1p2beta1BoundingPoly fdBoundingPoly; + + /// Headwear likelihood. + /// Possible string values are: + /// - "UNKNOWN" : Unknown likelihood. + /// - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + /// specified vertical. + /// - "UNLIKELY" : It is unlikely that the image belongs to the specified + /// vertical. + /// - "POSSIBLE" : It is possible that the image belongs to the specified + /// vertical. + /// - "LIKELY" : It is likely that the image belongs to the specified + /// vertical. + /// - "VERY_LIKELY" : It is very likely that the image belongs to the + /// specified vertical. + core.String headwearLikelihood; + + /// Joy likelihood. + /// Possible string values are: + /// - "UNKNOWN" : Unknown likelihood. + /// - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + /// specified vertical. + /// - "UNLIKELY" : It is unlikely that the image belongs to the specified + /// vertical. + /// - "POSSIBLE" : It is possible that the image belongs to the specified + /// vertical. + /// - "LIKELY" : It is likely that the image belongs to the specified + /// vertical. + /// - "VERY_LIKELY" : It is very likely that the image belongs to the + /// specified vertical. + core.String joyLikelihood; + + /// Face landmarking confidence. Range [0, 1]. + core.double landmarkingConfidence; + + /// Detected face landmarks. + core.List<GoogleCloudVisionV1p2beta1FaceAnnotationLandmark> landmarks; + + /// Yaw angle, which indicates the leftward/rightward angle that the face is + /// pointing relative to the vertical plane perpendicular to the image. Range + /// [-180,180]. + core.double panAngle; + + /// Roll angle, which indicates the amount of clockwise/anti-clockwise + /// rotation + /// of the face relative to the image vertical about the axis perpendicular to + /// the face. Range [-180,180]. + core.double rollAngle; + + /// Sorrow likelihood. + /// Possible string values are: + /// - "UNKNOWN" : Unknown likelihood. + /// - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + /// specified vertical. + /// - "UNLIKELY" : It is unlikely that the image belongs to the specified + /// vertical. + /// - "POSSIBLE" : It is possible that the image belongs to the specified + /// vertical. + /// - "LIKELY" : It is likely that the image belongs to the specified + /// vertical. + /// - "VERY_LIKELY" : It is very likely that the image belongs to the + /// specified vertical. + core.String sorrowLikelihood; + + /// Surprise likelihood. + /// Possible string values are: + /// - "UNKNOWN" : Unknown likelihood. + /// - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + /// specified vertical. + /// - "UNLIKELY" : It is unlikely that the image belongs to the specified + /// vertical. + /// - "POSSIBLE" : It is possible that the image belongs to the specified + /// vertical. + /// - "LIKELY" : It is likely that the image belongs to the specified + /// vertical. + /// - "VERY_LIKELY" : It is very likely that the image belongs to the + /// specified vertical. + core.String surpriseLikelihood; + + /// Pitch angle, which indicates the upwards/downwards angle that the face is + /// pointing relative to the image's horizontal plane. Range [-180,180]. + core.double tiltAngle; + + /// Under-exposed likelihood. + /// Possible string values are: + /// - "UNKNOWN" : Unknown likelihood. + /// - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + /// specified vertical. + /// - "UNLIKELY" : It is unlikely that the image belongs to the specified + /// vertical. + /// - "POSSIBLE" : It is possible that the image belongs to the specified + /// vertical. + /// - "LIKELY" : It is likely that the image belongs to the specified + /// vertical. + /// - "VERY_LIKELY" : It is very likely that the image belongs to the + /// specified vertical. + core.String underExposedLikelihood; + + GoogleCloudVisionV1p2beta1FaceAnnotation(); + + GoogleCloudVisionV1p2beta1FaceAnnotation.fromJson(core.Map _json) { + if (_json.containsKey("angerLikelihood")) { + angerLikelihood = _json["angerLikelihood"]; + } + if (_json.containsKey("blurredLikelihood")) { + blurredLikelihood = _json["blurredLikelihood"]; + } + if (_json.containsKey("boundingPoly")) { + boundingPoly = new GoogleCloudVisionV1p2beta1BoundingPoly.fromJson( + _json["boundingPoly"]); + } + if (_json.containsKey("detectionConfidence")) { + detectionConfidence = _json["detectionConfidence"].toDouble(); + } + if (_json.containsKey("fdBoundingPoly")) { + fdBoundingPoly = new GoogleCloudVisionV1p2beta1BoundingPoly.fromJson( + _json["fdBoundingPoly"]); + } + if (_json.containsKey("headwearLikelihood")) { + headwearLikelihood = _json["headwearLikelihood"]; + } + if (_json.containsKey("joyLikelihood")) { + joyLikelihood = _json["joyLikelihood"]; + } + if (_json.containsKey("landmarkingConfidence")) { + landmarkingConfidence = _json["landmarkingConfidence"].toDouble(); + } + if (_json.containsKey("landmarks")) { + landmarks = (_json["landmarks"] as core.List) + .map<GoogleCloudVisionV1p2beta1FaceAnnotationLandmark>((value) => + new GoogleCloudVisionV1p2beta1FaceAnnotationLandmark.fromJson( + value)) + .toList(); + } + if (_json.containsKey("panAngle")) { + panAngle = _json["panAngle"].toDouble(); + } + if (_json.containsKey("rollAngle")) { + rollAngle = _json["rollAngle"].toDouble(); + } + if (_json.containsKey("sorrowLikelihood")) { + sorrowLikelihood = _json["sorrowLikelihood"]; + } + if (_json.containsKey("surpriseLikelihood")) { + surpriseLikelihood = _json["surpriseLikelihood"]; + } + if (_json.containsKey("tiltAngle")) { + tiltAngle = _json["tiltAngle"].toDouble(); + } + if (_json.containsKey("underExposedLikelihood")) { + underExposedLikelihood = _json["underExposedLikelihood"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (angerLikelihood != null) { + _json["angerLikelihood"] = angerLikelihood; + } + if (blurredLikelihood != null) { + _json["blurredLikelihood"] = blurredLikelihood; + } + if (boundingPoly != null) { + _json["boundingPoly"] = (boundingPoly).toJson(); + } + if (detectionConfidence != null) { + _json["detectionConfidence"] = detectionConfidence; + } + if (fdBoundingPoly != null) { + _json["fdBoundingPoly"] = (fdBoundingPoly).toJson(); + } + if (headwearLikelihood != null) { + _json["headwearLikelihood"] = headwearLikelihood; + } + if (joyLikelihood != null) { + _json["joyLikelihood"] = joyLikelihood; + } + if (landmarkingConfidence != null) { + _json["landmarkingConfidence"] = landmarkingConfidence; + } + if (landmarks != null) { + _json["landmarks"] = landmarks.map((value) => (value).toJson()).toList(); + } + if (panAngle != null) { + _json["panAngle"] = panAngle; + } + if (rollAngle != null) { + _json["rollAngle"] = rollAngle; + } + if (sorrowLikelihood != null) { + _json["sorrowLikelihood"] = sorrowLikelihood; + } + if (surpriseLikelihood != null) { + _json["surpriseLikelihood"] = surpriseLikelihood; + } + if (tiltAngle != null) { + _json["tiltAngle"] = tiltAngle; + } + if (underExposedLikelihood != null) { + _json["underExposedLikelihood"] = underExposedLikelihood; + } + return _json; + } +} + +/// A face-specific landmark (for example, a face feature). +class GoogleCloudVisionV1p2beta1FaceAnnotationLandmark { + /// Face landmark position. + GoogleCloudVisionV1p2beta1Position position; + + /// Face landmark type. + /// Possible string values are: + /// - "UNKNOWN_LANDMARK" : Unknown face landmark detected. Should not be + /// filled. + /// - "LEFT_EYE" : Left eye. + /// - "RIGHT_EYE" : Right eye. + /// - "LEFT_OF_LEFT_EYEBROW" : Left of left eyebrow. + /// - "RIGHT_OF_LEFT_EYEBROW" : Right of left eyebrow. + /// - "LEFT_OF_RIGHT_EYEBROW" : Left of right eyebrow. + /// - "RIGHT_OF_RIGHT_EYEBROW" : Right of right eyebrow. + /// - "MIDPOINT_BETWEEN_EYES" : Midpoint between eyes. + /// - "NOSE_TIP" : Nose tip. + /// - "UPPER_LIP" : Upper lip. + /// - "LOWER_LIP" : Lower lip. + /// - "MOUTH_LEFT" : Mouth left. + /// - "MOUTH_RIGHT" : Mouth right. + /// - "MOUTH_CENTER" : Mouth center. + /// - "NOSE_BOTTOM_RIGHT" : Nose, bottom right. + /// - "NOSE_BOTTOM_LEFT" : Nose, bottom left. + /// - "NOSE_BOTTOM_CENTER" : Nose, bottom center. + /// - "LEFT_EYE_TOP_BOUNDARY" : Left eye, top boundary. + /// - "LEFT_EYE_RIGHT_CORNER" : Left eye, right corner. + /// - "LEFT_EYE_BOTTOM_BOUNDARY" : Left eye, bottom boundary. + /// - "LEFT_EYE_LEFT_CORNER" : Left eye, left corner. + /// - "RIGHT_EYE_TOP_BOUNDARY" : Right eye, top boundary. + /// - "RIGHT_EYE_RIGHT_CORNER" : Right eye, right corner. + /// - "RIGHT_EYE_BOTTOM_BOUNDARY" : Right eye, bottom boundary. + /// - "RIGHT_EYE_LEFT_CORNER" : Right eye, left corner. + /// - "LEFT_EYEBROW_UPPER_MIDPOINT" : Left eyebrow, upper midpoint. + /// - "RIGHT_EYEBROW_UPPER_MIDPOINT" : Right eyebrow, upper midpoint. + /// - "LEFT_EAR_TRAGION" : Left ear tragion. + /// - "RIGHT_EAR_TRAGION" : Right ear tragion. + /// - "LEFT_EYE_PUPIL" : Left eye pupil. + /// - "RIGHT_EYE_PUPIL" : Right eye pupil. + /// - "FOREHEAD_GLABELLA" : Forehead glabella. + /// - "CHIN_GNATHION" : Chin gnathion. + /// - "CHIN_LEFT_GONION" : Chin left gonion. + /// - "CHIN_RIGHT_GONION" : Chin right gonion. + core.String type; + + GoogleCloudVisionV1p2beta1FaceAnnotationLandmark(); + + GoogleCloudVisionV1p2beta1FaceAnnotationLandmark.fromJson(core.Map _json) { + if (_json.containsKey("position")) { + position = + new GoogleCloudVisionV1p2beta1Position.fromJson(_json["position"]); + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (position != null) { + _json["position"] = (position).toJson(); + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +/// The Google Cloud Storage location where the output will be written to. +class GoogleCloudVisionV1p2beta1GcsDestination { + /// Google Cloud Storage URI where the results will be stored. Results will + /// be in JSON format and preceded by its corresponding input URI. This field + /// can either represent a single file, or a prefix for multiple outputs. + /// Prefixes must end in a `/`. + /// + /// Examples: + /// + /// * File: gs://bucket-name/filename.json + /// * Prefix: gs://bucket-name/prefix/here/ + /// * File: gs://bucket-name/prefix/here + /// + /// If multiple outputs, each response is still AnnotateFileResponse, each of + /// which contains some subset of the full list of AnnotateImageResponse. + /// Multiple outputs can happen if, for example, the output JSON is too large + /// and overflows into multiple sharded files. + core.String uri; + + GoogleCloudVisionV1p2beta1GcsDestination(); + + GoogleCloudVisionV1p2beta1GcsDestination.fromJson(core.Map _json) { + if (_json.containsKey("uri")) { + uri = _json["uri"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (uri != null) { + _json["uri"] = uri; + } + return _json; + } +} + +/// The Google Cloud Storage location where the input will be read from. +class GoogleCloudVisionV1p2beta1GcsSource { + /// Google Cloud Storage URI for the input file. This must only be a + /// Google Cloud Storage object. Wildcards are not currently supported. + core.String uri; + + GoogleCloudVisionV1p2beta1GcsSource(); + + GoogleCloudVisionV1p2beta1GcsSource.fromJson(core.Map _json) { + if (_json.containsKey("uri")) { + uri = _json["uri"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (uri != null) { + _json["uri"] = uri; + } + return _json; + } +} + +/// If an image was produced from a file (e.g. a PDF), this message gives +/// information about the source of that image. +class GoogleCloudVisionV1p2beta1ImageAnnotationContext { + /// If the file was a PDF or TIFF, this field gives the page number within + /// the file used to produce the image. + core.int pageNumber; + + /// The URI of the file used to produce the image. + core.String uri; + + GoogleCloudVisionV1p2beta1ImageAnnotationContext(); + + GoogleCloudVisionV1p2beta1ImageAnnotationContext.fromJson(core.Map _json) { + if (_json.containsKey("pageNumber")) { + pageNumber = _json["pageNumber"]; + } + if (_json.containsKey("uri")) { + uri = _json["uri"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (pageNumber != null) { + _json["pageNumber"] = pageNumber; + } + if (uri != null) { + _json["uri"] = uri; + } + return _json; + } +} + +/// Stores image properties, such as dominant colors. +class GoogleCloudVisionV1p2beta1ImageProperties { + /// If present, dominant colors completed successfully. + GoogleCloudVisionV1p2beta1DominantColorsAnnotation dominantColors; + + GoogleCloudVisionV1p2beta1ImageProperties(); + + GoogleCloudVisionV1p2beta1ImageProperties.fromJson(core.Map _json) { + if (_json.containsKey("dominantColors")) { + dominantColors = + new GoogleCloudVisionV1p2beta1DominantColorsAnnotation.fromJson( + _json["dominantColors"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (dominantColors != null) { + _json["dominantColors"] = (dominantColors).toJson(); + } + return _json; + } +} + +/// The desired input location and metadata. +class GoogleCloudVisionV1p2beta1InputConfig { + /// The Google Cloud Storage location to read the input from. + GoogleCloudVisionV1p2beta1GcsSource gcsSource; + + /// The type of the file. Currently only "application/pdf" and "image/tiff" + /// are supported. Wildcards are not supported. + core.String mimeType; + + GoogleCloudVisionV1p2beta1InputConfig(); + + GoogleCloudVisionV1p2beta1InputConfig.fromJson(core.Map _json) { + if (_json.containsKey("gcsSource")) { + gcsSource = + new GoogleCloudVisionV1p2beta1GcsSource.fromJson(_json["gcsSource"]); + } + if (_json.containsKey("mimeType")) { + mimeType = _json["mimeType"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (gcsSource != null) { + _json["gcsSource"] = (gcsSource).toJson(); + } + if (mimeType != null) { + _json["mimeType"] = mimeType; + } + return _json; + } +} + +/// Detected entity location information. +class GoogleCloudVisionV1p2beta1LocationInfo { + /// lat/long location coordinates. + LatLng latLng; + + GoogleCloudVisionV1p2beta1LocationInfo(); + + GoogleCloudVisionV1p2beta1LocationInfo.fromJson(core.Map _json) { + if (_json.containsKey("latLng")) { + latLng = new LatLng.fromJson(_json["latLng"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (latLng != null) { + _json["latLng"] = (latLng).toJson(); + } + return _json; + } +} + +/// A vertex represents a 2D point in the image. +/// NOTE: the normalized vertex coordinates are relative to the original image +/// and range from 0 to 1. +class GoogleCloudVisionV1p2beta1NormalizedVertex { + /// X coordinate. + core.double x; + + /// Y coordinate. + core.double y; + + GoogleCloudVisionV1p2beta1NormalizedVertex(); + + GoogleCloudVisionV1p2beta1NormalizedVertex.fromJson(core.Map _json) { + if (_json.containsKey("x")) { + x = _json["x"].toDouble(); + } + if (_json.containsKey("y")) { + y = _json["y"].toDouble(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (x != null) { + _json["x"] = x; + } + if (y != null) { + _json["y"] = y; + } + return _json; + } +} + +/// Contains metadata for the BatchAnnotateImages operation. +class GoogleCloudVisionV1p2beta1OperationMetadata { + /// The time when the batch request was received. + core.String createTime; + + /// Current state of the batch operation. + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : Invalid. + /// - "CREATED" : Request is received. + /// - "RUNNING" : Request is actively being processed. + /// - "DONE" : The batch processing is done. + /// - "CANCELLED" : The batch processing was cancelled. + core.String state; + + /// The time when the operation result was last updated. + core.String updateTime; + + GoogleCloudVisionV1p2beta1OperationMetadata(); + + GoogleCloudVisionV1p2beta1OperationMetadata.fromJson(core.Map _json) { + if (_json.containsKey("createTime")) { + createTime = _json["createTime"]; + } + if (_json.containsKey("state")) { + state = _json["state"]; + } + if (_json.containsKey("updateTime")) { + updateTime = _json["updateTime"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (createTime != null) { + _json["createTime"] = createTime; + } + if (state != null) { + _json["state"] = state; + } + if (updateTime != null) { + _json["updateTime"] = updateTime; + } + return _json; + } +} + +/// The desired output location and metadata. +class GoogleCloudVisionV1p2beta1OutputConfig { + /// The max number of response protos to put into each output JSON file on + /// Google Cloud Storage. + /// The valid range is [1, 100]. If not specified, the default value is 20. + /// + /// For example, for one pdf file with 100 pages, 100 response protos will + /// be generated. If `batch_size` = 20, then 5 json files each + /// containing 20 response protos will be written under the prefix + /// `gcs_destination`.`uri`. + /// + /// Currently, batch_size only applies to GcsDestination, with potential + /// future + /// support for other output configurations. + core.int batchSize; + + /// The Google Cloud Storage location to write the output(s) to. + GoogleCloudVisionV1p2beta1GcsDestination gcsDestination; + + GoogleCloudVisionV1p2beta1OutputConfig(); + + GoogleCloudVisionV1p2beta1OutputConfig.fromJson(core.Map _json) { + if (_json.containsKey("batchSize")) { + batchSize = _json["batchSize"]; + } + if (_json.containsKey("gcsDestination")) { + gcsDestination = new GoogleCloudVisionV1p2beta1GcsDestination.fromJson( + _json["gcsDestination"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (batchSize != null) { + _json["batchSize"] = batchSize; + } + if (gcsDestination != null) { + _json["gcsDestination"] = (gcsDestination).toJson(); + } + return _json; + } +} + +/// Detected page from OCR. +class GoogleCloudVisionV1p2beta1Page { + /// List of blocks of text, images etc on this page. + core.List<GoogleCloudVisionV1p2beta1Block> blocks; + + /// Confidence of the OCR results on the page. Range [0, 1]. + core.double confidence; + + /// Page height. For PDFs the unit is points. For images (including + /// TIFFs) the unit is pixels. + core.int height; + + /// Additional information detected on the page. + GoogleCloudVisionV1p2beta1TextAnnotationTextProperty property; + + /// Page width. For PDFs the unit is points. For images (including + /// TIFFs) the unit is pixels. + core.int width; + + GoogleCloudVisionV1p2beta1Page(); + + GoogleCloudVisionV1p2beta1Page.fromJson(core.Map _json) { + if (_json.containsKey("blocks")) { + blocks = (_json["blocks"] as core.List) + .map<GoogleCloudVisionV1p2beta1Block>( + (value) => new GoogleCloudVisionV1p2beta1Block.fromJson(value)) + .toList(); + } + if (_json.containsKey("confidence")) { + confidence = _json["confidence"].toDouble(); + } + if (_json.containsKey("height")) { + height = _json["height"]; + } + if (_json.containsKey("property")) { + property = + new GoogleCloudVisionV1p2beta1TextAnnotationTextProperty.fromJson( + _json["property"]); + } + if (_json.containsKey("width")) { + width = _json["width"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (blocks != null) { + _json["blocks"] = blocks.map((value) => (value).toJson()).toList(); + } + if (confidence != null) { + _json["confidence"] = confidence; + } + if (height != null) { + _json["height"] = height; + } + if (property != null) { + _json["property"] = (property).toJson(); + } + if (width != null) { + _json["width"] = width; + } + return _json; + } +} + +/// Structural unit of text representing a number of words in certain order. +class GoogleCloudVisionV1p2beta1Paragraph { + /// The bounding box for the paragraph. + /// The vertices are in the order of top-left, top-right, bottom-right, + /// bottom-left. When a rotation of the bounding box is detected the rotation + /// is represented as around the top-left corner as defined when the text is + /// read in the 'natural' orientation. + /// For example: + /// * when the text is horizontal it might look like: + /// 0----1 + /// | | + /// 3----2 + /// * when it's rotated 180 degrees around the top-left corner it becomes: + /// 2----3 + /// | | + /// 1----0 + /// and the vertice order will still be (0, 1, 2, 3). + GoogleCloudVisionV1p2beta1BoundingPoly boundingBox; + + /// Confidence of the OCR results for the paragraph. Range [0, 1]. + core.double confidence; + + /// Additional information detected for the paragraph. + GoogleCloudVisionV1p2beta1TextAnnotationTextProperty property; + + /// List of words in this paragraph. + core.List<GoogleCloudVisionV1p2beta1Word> words; + + GoogleCloudVisionV1p2beta1Paragraph(); + + GoogleCloudVisionV1p2beta1Paragraph.fromJson(core.Map _json) { + if (_json.containsKey("boundingBox")) { + boundingBox = new GoogleCloudVisionV1p2beta1BoundingPoly.fromJson( + _json["boundingBox"]); + } + if (_json.containsKey("confidence")) { + confidence = _json["confidence"].toDouble(); + } + if (_json.containsKey("property")) { + property = + new GoogleCloudVisionV1p2beta1TextAnnotationTextProperty.fromJson( + _json["property"]); + } + if (_json.containsKey("words")) { + words = (_json["words"] as core.List) + .map<GoogleCloudVisionV1p2beta1Word>( + (value) => new GoogleCloudVisionV1p2beta1Word.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (boundingBox != null) { + _json["boundingBox"] = (boundingBox).toJson(); + } + if (confidence != null) { + _json["confidence"] = confidence; + } + if (property != null) { + _json["property"] = (property).toJson(); + } + if (words != null) { + _json["words"] = words.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/// A 3D position in the image, used primarily for Face detection landmarks. +/// A valid Position must have both x and y coordinates. +/// The position coordinates are in the same scale as the original image. +class GoogleCloudVisionV1p2beta1Position { + /// X coordinate. + core.double x; + + /// Y coordinate. + core.double y; + + /// Z coordinate (or depth). + core.double z; + + GoogleCloudVisionV1p2beta1Position(); + + GoogleCloudVisionV1p2beta1Position.fromJson(core.Map _json) { + if (_json.containsKey("x")) { + x = _json["x"].toDouble(); + } + if (_json.containsKey("y")) { + y = _json["y"].toDouble(); + } + if (_json.containsKey("z")) { + z = _json["z"].toDouble(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (x != null) { + _json["x"] = x; + } + if (y != null) { + _json["y"] = y; + } + if (z != null) { + _json["z"] = z; + } + return _json; + } +} + +/// A `Property` consists of a user-supplied name/value pair. +class GoogleCloudVisionV1p2beta1Property { + /// Name of the property. + core.String name; + + /// Value of numeric properties. + core.String uint64Value; + + /// Value of the property. + core.String value; + + GoogleCloudVisionV1p2beta1Property(); + + GoogleCloudVisionV1p2beta1Property.fromJson(core.Map _json) { + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("uint64Value")) { + uint64Value = _json["uint64Value"]; + } + if (_json.containsKey("value")) { + value = _json["value"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (name != null) { + _json["name"] = name; + } + if (uint64Value != null) { + _json["uint64Value"] = uint64Value; + } + if (value != null) { + _json["value"] = value; + } + return _json; + } +} + +/// Set of features pertaining to the image, computed by computer vision +/// methods over safe-search verticals (for example, adult, spoof, medical, +/// violence). +class GoogleCloudVisionV1p2beta1SafeSearchAnnotation { + /// Represents the adult content likelihood for the image. Adult content may + /// contain elements such as nudity, pornographic images or cartoons, or + /// sexual activities. + /// Possible string values are: + /// - "UNKNOWN" : Unknown likelihood. + /// - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + /// specified vertical. + /// - "UNLIKELY" : It is unlikely that the image belongs to the specified + /// vertical. + /// - "POSSIBLE" : It is possible that the image belongs to the specified + /// vertical. + /// - "LIKELY" : It is likely that the image belongs to the specified + /// vertical. + /// - "VERY_LIKELY" : It is very likely that the image belongs to the + /// specified vertical. + core.String adult; + + /// Likelihood that this is a medical image. + /// Possible string values are: + /// - "UNKNOWN" : Unknown likelihood. + /// - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + /// specified vertical. + /// - "UNLIKELY" : It is unlikely that the image belongs to the specified + /// vertical. + /// - "POSSIBLE" : It is possible that the image belongs to the specified + /// vertical. + /// - "LIKELY" : It is likely that the image belongs to the specified + /// vertical. + /// - "VERY_LIKELY" : It is very likely that the image belongs to the + /// specified vertical. + core.String medical; + + /// Likelihood that the request image contains racy content. Racy content may + /// include (but is not limited to) skimpy or sheer clothing, strategically + /// covered nudity, lewd or provocative poses, or close-ups of sensitive + /// body areas. + /// Possible string values are: + /// - "UNKNOWN" : Unknown likelihood. + /// - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + /// specified vertical. + /// - "UNLIKELY" : It is unlikely that the image belongs to the specified + /// vertical. + /// - "POSSIBLE" : It is possible that the image belongs to the specified + /// vertical. + /// - "LIKELY" : It is likely that the image belongs to the specified + /// vertical. + /// - "VERY_LIKELY" : It is very likely that the image belongs to the + /// specified vertical. + core.String racy; + + /// Spoof likelihood. The likelihood that an modification + /// was made to the image's canonical version to make it appear + /// funny or offensive. + /// Possible string values are: + /// - "UNKNOWN" : Unknown likelihood. + /// - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + /// specified vertical. + /// - "UNLIKELY" : It is unlikely that the image belongs to the specified + /// vertical. + /// - "POSSIBLE" : It is possible that the image belongs to the specified + /// vertical. + /// - "LIKELY" : It is likely that the image belongs to the specified + /// vertical. + /// - "VERY_LIKELY" : It is very likely that the image belongs to the + /// specified vertical. + core.String spoof; + + /// Likelihood that this image contains violent content. + /// Possible string values are: + /// - "UNKNOWN" : Unknown likelihood. + /// - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + /// specified vertical. + /// - "UNLIKELY" : It is unlikely that the image belongs to the specified + /// vertical. + /// - "POSSIBLE" : It is possible that the image belongs to the specified + /// vertical. + /// - "LIKELY" : It is likely that the image belongs to the specified + /// vertical. + /// - "VERY_LIKELY" : It is very likely that the image belongs to the + /// specified vertical. + core.String violence; + + GoogleCloudVisionV1p2beta1SafeSearchAnnotation(); + + GoogleCloudVisionV1p2beta1SafeSearchAnnotation.fromJson(core.Map _json) { + if (_json.containsKey("adult")) { + adult = _json["adult"]; + } + if (_json.containsKey("medical")) { + medical = _json["medical"]; + } + if (_json.containsKey("racy")) { + racy = _json["racy"]; + } + if (_json.containsKey("spoof")) { + spoof = _json["spoof"]; + } + if (_json.containsKey("violence")) { + violence = _json["violence"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (adult != null) { + _json["adult"] = adult; + } + if (medical != null) { + _json["medical"] = medical; + } + if (racy != null) { + _json["racy"] = racy; + } + if (spoof != null) { + _json["spoof"] = spoof; + } + if (violence != null) { + _json["violence"] = violence; + } + return _json; + } +} + +/// A single symbol representation. +class GoogleCloudVisionV1p2beta1Symbol { + /// The bounding box for the symbol. + /// The vertices are in the order of top-left, top-right, bottom-right, + /// bottom-left. When a rotation of the bounding box is detected the rotation + /// is represented as around the top-left corner as defined when the text is + /// read in the 'natural' orientation. + /// For example: + /// * when the text is horizontal it might look like: + /// 0----1 + /// | | + /// 3----2 + /// * when it's rotated 180 degrees around the top-left corner it becomes: + /// 2----3 + /// | | + /// 1----0 + /// and the vertice order will still be (0, 1, 2, 3). + GoogleCloudVisionV1p2beta1BoundingPoly boundingBox; + + /// Confidence of the OCR results for the symbol. Range [0, 1]. + core.double confidence; + + /// Additional information detected for the symbol. + GoogleCloudVisionV1p2beta1TextAnnotationTextProperty property; + + /// The actual UTF-8 representation of the symbol. + core.String text; + + GoogleCloudVisionV1p2beta1Symbol(); + + GoogleCloudVisionV1p2beta1Symbol.fromJson(core.Map _json) { + if (_json.containsKey("boundingBox")) { + boundingBox = new GoogleCloudVisionV1p2beta1BoundingPoly.fromJson( + _json["boundingBox"]); + } + if (_json.containsKey("confidence")) { + confidence = _json["confidence"].toDouble(); + } + if (_json.containsKey("property")) { + property = + new GoogleCloudVisionV1p2beta1TextAnnotationTextProperty.fromJson( + _json["property"]); + } + if (_json.containsKey("text")) { + text = _json["text"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (boundingBox != null) { + _json["boundingBox"] = (boundingBox).toJson(); + } + if (confidence != null) { + _json["confidence"] = confidence; + } + if (property != null) { + _json["property"] = (property).toJson(); + } + if (text != null) { + _json["text"] = text; + } + return _json; + } +} + +/// TextAnnotation contains a structured representation of OCR extracted text. +/// The hierarchy of an OCR extracted text structure is like this: +/// TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol +/// Each structural component, starting from Page, may further have their own +/// properties. Properties describe detected languages, breaks etc.. Please +/// refer +/// to the TextAnnotation.TextProperty message definition below for more +/// detail. +class GoogleCloudVisionV1p2beta1TextAnnotation { + /// List of pages detected by OCR. + core.List<GoogleCloudVisionV1p2beta1Page> pages; + + /// UTF-8 text detected on the pages. + core.String text; + + GoogleCloudVisionV1p2beta1TextAnnotation(); + + GoogleCloudVisionV1p2beta1TextAnnotation.fromJson(core.Map _json) { + if (_json.containsKey("pages")) { + pages = (_json["pages"] as core.List) + .map<GoogleCloudVisionV1p2beta1Page>( + (value) => new GoogleCloudVisionV1p2beta1Page.fromJson(value)) + .toList(); + } + if (_json.containsKey("text")) { + text = _json["text"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (pages != null) { + _json["pages"] = pages.map((value) => (value).toJson()).toList(); + } + if (text != null) { + _json["text"] = text; + } + return _json; + } +} + +/// Detected start or end of a structural component. +class GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak { + /// True if break prepends the element. + core.bool isPrefix; + + /// Detected break type. + /// Possible string values are: + /// - "UNKNOWN" : Unknown break label type. + /// - "SPACE" : Regular space. + /// - "SURE_SPACE" : Sure space (very wide). + /// - "EOL_SURE_SPACE" : Line-wrapping break. + /// - "HYPHEN" : End-line hyphen that is not present in text; does not + /// co-occur with + /// `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`. + /// - "LINE_BREAK" : Line break that ends a paragraph. + core.String type; + + GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak(); + + GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak.fromJson( + core.Map _json) { + if (_json.containsKey("isPrefix")) { + isPrefix = _json["isPrefix"]; + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (isPrefix != null) { + _json["isPrefix"] = isPrefix; + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +/// Detected language for a structural component. +class GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage { + /// Confidence of detected language. Range [0, 1]. + core.double confidence; + + /// The BCP-47 language code, such as "en-US" or "sr-Latn". For more + /// information, see + /// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + core.String languageCode; + + GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage(); + + GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage.fromJson( + core.Map _json) { + if (_json.containsKey("confidence")) { + confidence = _json["confidence"].toDouble(); + } + if (_json.containsKey("languageCode")) { + languageCode = _json["languageCode"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (confidence != null) { + _json["confidence"] = confidence; + } + if (languageCode != null) { + _json["languageCode"] = languageCode; + } + return _json; + } +} + +/// Additional information detected on the structural component. +class GoogleCloudVisionV1p2beta1TextAnnotationTextProperty { + /// Detected start or end of a text segment. + GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak detectedBreak; + + /// A list of detected languages together with confidence. + core.List<GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage> + detectedLanguages; + + GoogleCloudVisionV1p2beta1TextAnnotationTextProperty(); + + GoogleCloudVisionV1p2beta1TextAnnotationTextProperty.fromJson( + core.Map _json) { + if (_json.containsKey("detectedBreak")) { + detectedBreak = + new GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak.fromJson( + _json["detectedBreak"]); + } + if (_json.containsKey("detectedLanguages")) { + detectedLanguages = (_json["detectedLanguages"] as core.List) + .map<GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage>( + (value) => + new GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage + .fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (detectedBreak != null) { + _json["detectedBreak"] = (detectedBreak).toJson(); + } + if (detectedLanguages != null) { + _json["detectedLanguages"] = + detectedLanguages.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/// A vertex represents a 2D point in the image. +/// NOTE: the vertex coordinates are in the same scale as the original image. +class GoogleCloudVisionV1p2beta1Vertex { + /// X coordinate. + core.int x; + + /// Y coordinate. + core.int y; + + GoogleCloudVisionV1p2beta1Vertex(); + + GoogleCloudVisionV1p2beta1Vertex.fromJson(core.Map _json) { + if (_json.containsKey("x")) { + x = _json["x"]; + } + if (_json.containsKey("y")) { + y = _json["y"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (x != null) { + _json["x"] = x; + } + if (y != null) { + _json["y"] = y; + } + return _json; + } +} + +/// Relevant information for the image from the Internet. +class GoogleCloudVisionV1p2beta1WebDetection { + /// Best guess text labels for the request image. + core.List<GoogleCloudVisionV1p2beta1WebDetectionWebLabel> bestGuessLabels; + + /// Fully matching images from the Internet. + /// Can include resized copies of the query image. + core.List<GoogleCloudVisionV1p2beta1WebDetectionWebImage> fullMatchingImages; + + /// Web pages containing the matching images from the Internet. + core.List<GoogleCloudVisionV1p2beta1WebDetectionWebPage> + pagesWithMatchingImages; + + /// Partial matching images from the Internet. + /// Those images are similar enough to share some key-point features. For + /// example an original image will likely have partial matching for its crops. + core.List<GoogleCloudVisionV1p2beta1WebDetectionWebImage> + partialMatchingImages; + + /// The visually similar image results. + core.List<GoogleCloudVisionV1p2beta1WebDetectionWebImage> + visuallySimilarImages; + + /// Deduced entities from similar images on the Internet. + core.List<GoogleCloudVisionV1p2beta1WebDetectionWebEntity> webEntities; + + GoogleCloudVisionV1p2beta1WebDetection(); + + GoogleCloudVisionV1p2beta1WebDetection.fromJson(core.Map _json) { + if (_json.containsKey("bestGuessLabels")) { + bestGuessLabels = (_json["bestGuessLabels"] as core.List) + .map<GoogleCloudVisionV1p2beta1WebDetectionWebLabel>((value) => + new GoogleCloudVisionV1p2beta1WebDetectionWebLabel.fromJson( + value)) + .toList(); + } + if (_json.containsKey("fullMatchingImages")) { + fullMatchingImages = (_json["fullMatchingImages"] as core.List) + .map<GoogleCloudVisionV1p2beta1WebDetectionWebImage>((value) => + new GoogleCloudVisionV1p2beta1WebDetectionWebImage.fromJson( + value)) + .toList(); + } + if (_json.containsKey("pagesWithMatchingImages")) { + pagesWithMatchingImages = (_json["pagesWithMatchingImages"] as core.List) + .map<GoogleCloudVisionV1p2beta1WebDetectionWebPage>((value) => + new GoogleCloudVisionV1p2beta1WebDetectionWebPage.fromJson(value)) + .toList(); + } + if (_json.containsKey("partialMatchingImages")) { + partialMatchingImages = (_json["partialMatchingImages"] as core.List) + .map<GoogleCloudVisionV1p2beta1WebDetectionWebImage>((value) => + new GoogleCloudVisionV1p2beta1WebDetectionWebImage.fromJson( + value)) + .toList(); + } + if (_json.containsKey("visuallySimilarImages")) { + visuallySimilarImages = (_json["visuallySimilarImages"] as core.List) + .map<GoogleCloudVisionV1p2beta1WebDetectionWebImage>((value) => + new GoogleCloudVisionV1p2beta1WebDetectionWebImage.fromJson( + value)) + .toList(); + } + if (_json.containsKey("webEntities")) { + webEntities = (_json["webEntities"] as core.List) + .map<GoogleCloudVisionV1p2beta1WebDetectionWebEntity>((value) => + new GoogleCloudVisionV1p2beta1WebDetectionWebEntity.fromJson( + value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (bestGuessLabels != null) { + _json["bestGuessLabels"] = + bestGuessLabels.map((value) => (value).toJson()).toList(); + } + if (fullMatchingImages != null) { + _json["fullMatchingImages"] = + fullMatchingImages.map((value) => (value).toJson()).toList(); + } + if (pagesWithMatchingImages != null) { + _json["pagesWithMatchingImages"] = + pagesWithMatchingImages.map((value) => (value).toJson()).toList(); + } + if (partialMatchingImages != null) { + _json["partialMatchingImages"] = + partialMatchingImages.map((value) => (value).toJson()).toList(); + } + if (visuallySimilarImages != null) { + _json["visuallySimilarImages"] = + visuallySimilarImages.map((value) => (value).toJson()).toList(); + } + if (webEntities != null) { + _json["webEntities"] = + webEntities.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/// Entity deduced from similar images on the Internet. +class GoogleCloudVisionV1p2beta1WebDetectionWebEntity { + /// Canonical description of the entity, in English. + core.String description; + + /// Opaque entity ID. + core.String entityId; + + /// Overall relevancy score for the entity. + /// Not normalized and not comparable across different image queries. + core.double score; + + GoogleCloudVisionV1p2beta1WebDetectionWebEntity(); + + GoogleCloudVisionV1p2beta1WebDetectionWebEntity.fromJson(core.Map _json) { + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("entityId")) { + entityId = _json["entityId"]; + } + if (_json.containsKey("score")) { + score = _json["score"].toDouble(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (description != null) { + _json["description"] = description; + } + if (entityId != null) { + _json["entityId"] = entityId; + } + if (score != null) { + _json["score"] = score; + } + return _json; + } +} + +/// Metadata for online images. +class GoogleCloudVisionV1p2beta1WebDetectionWebImage { + /// (Deprecated) Overall relevancy score for the image. + core.double score; + + /// The result image URL. + core.String url; + + GoogleCloudVisionV1p2beta1WebDetectionWebImage(); + + GoogleCloudVisionV1p2beta1WebDetectionWebImage.fromJson(core.Map _json) { + if (_json.containsKey("score")) { + score = _json["score"].toDouble(); + } + if (_json.containsKey("url")) { + url = _json["url"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (score != null) { + _json["score"] = score; + } + if (url != null) { + _json["url"] = url; + } + return _json; + } +} + +/// Label to provide extra metadata for the web detection. +class GoogleCloudVisionV1p2beta1WebDetectionWebLabel { + /// Label for extra metadata. + core.String label; + + /// The BCP-47 language code for `label`, such as "en-US" or "sr-Latn". + /// For more information, see + /// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + core.String languageCode; + + GoogleCloudVisionV1p2beta1WebDetectionWebLabel(); + + GoogleCloudVisionV1p2beta1WebDetectionWebLabel.fromJson(core.Map _json) { + if (_json.containsKey("label")) { + label = _json["label"]; + } + if (_json.containsKey("languageCode")) { + languageCode = _json["languageCode"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (label != null) { + _json["label"] = label; + } + if (languageCode != null) { + _json["languageCode"] = languageCode; + } + return _json; + } +} + +/// Metadata for web pages. +class GoogleCloudVisionV1p2beta1WebDetectionWebPage { + /// Fully matching images on the page. + /// Can include resized copies of the query image. + core.List<GoogleCloudVisionV1p2beta1WebDetectionWebImage> fullMatchingImages; + + /// Title for the web page, may contain HTML markups. + core.String pageTitle; + + /// Partial matching images on the page. + /// Those images are similar enough to share some key-point features. For + /// example an original image will likely have partial matching for its + /// crops. + core.List<GoogleCloudVisionV1p2beta1WebDetectionWebImage> + partialMatchingImages; + + /// (Deprecated) Overall relevancy score for the web page. + core.double score; + + /// The result web page URL. + core.String url; + + GoogleCloudVisionV1p2beta1WebDetectionWebPage(); + + GoogleCloudVisionV1p2beta1WebDetectionWebPage.fromJson(core.Map _json) { + if (_json.containsKey("fullMatchingImages")) { + fullMatchingImages = (_json["fullMatchingImages"] as core.List) + .map<GoogleCloudVisionV1p2beta1WebDetectionWebImage>((value) => + new GoogleCloudVisionV1p2beta1WebDetectionWebImage.fromJson( + value)) + .toList(); + } + if (_json.containsKey("pageTitle")) { + pageTitle = _json["pageTitle"]; + } + if (_json.containsKey("partialMatchingImages")) { + partialMatchingImages = (_json["partialMatchingImages"] as core.List) + .map<GoogleCloudVisionV1p2beta1WebDetectionWebImage>((value) => + new GoogleCloudVisionV1p2beta1WebDetectionWebImage.fromJson( + value)) + .toList(); + } + if (_json.containsKey("score")) { + score = _json["score"].toDouble(); + } + if (_json.containsKey("url")) { + url = _json["url"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (fullMatchingImages != null) { + _json["fullMatchingImages"] = + fullMatchingImages.map((value) => (value).toJson()).toList(); + } + if (pageTitle != null) { + _json["pageTitle"] = pageTitle; + } + if (partialMatchingImages != null) { + _json["partialMatchingImages"] = + partialMatchingImages.map((value) => (value).toJson()).toList(); + } + if (score != null) { + _json["score"] = score; + } + if (url != null) { + _json["url"] = url; + } + return _json; + } +} + +/// A word representation. +class GoogleCloudVisionV1p2beta1Word { + /// The bounding box for the word. + /// The vertices are in the order of top-left, top-right, bottom-right, + /// bottom-left. When a rotation of the bounding box is detected the rotation + /// is represented as around the top-left corner as defined when the text is + /// read in the 'natural' orientation. + /// For example: + /// * when the text is horizontal it might look like: + /// 0----1 + /// | | + /// 3----2 + /// * when it's rotated 180 degrees around the top-left corner it becomes: + /// 2----3 + /// | | + /// 1----0 + /// and the vertice order will still be (0, 1, 2, 3). + GoogleCloudVisionV1p2beta1BoundingPoly boundingBox; + + /// Confidence of the OCR results for the word. Range [0, 1]. + core.double confidence; + + /// Additional information detected for the word. + GoogleCloudVisionV1p2beta1TextAnnotationTextProperty property; + + /// List of symbols in the word. + /// The order of the symbols follows the natural reading order. + core.List<GoogleCloudVisionV1p2beta1Symbol> symbols; + + GoogleCloudVisionV1p2beta1Word(); + + GoogleCloudVisionV1p2beta1Word.fromJson(core.Map _json) { + if (_json.containsKey("boundingBox")) { + boundingBox = new GoogleCloudVisionV1p2beta1BoundingPoly.fromJson( + _json["boundingBox"]); + } + if (_json.containsKey("confidence")) { + confidence = _json["confidence"].toDouble(); + } + if (_json.containsKey("property")) { + property = + new GoogleCloudVisionV1p2beta1TextAnnotationTextProperty.fromJson( + _json["property"]); + } + if (_json.containsKey("symbols")) { + symbols = (_json["symbols"] as core.List) + .map<GoogleCloudVisionV1p2beta1Symbol>( + (value) => new GoogleCloudVisionV1p2beta1Symbol.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (boundingBox != null) { + _json["boundingBox"] = (boundingBox).toJson(); + } + if (confidence != null) { + _json["confidence"] = confidence; + } + if (property != null) { + _json["property"] = (property).toJson(); + } + if (symbols != null) { + _json["symbols"] = symbols.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/// Metadata for the batch operations such as the current state. +/// +/// This is included in the `metadata` field of the `Operation` returned by the +/// `GetOperation` call of the `google::longrunning::Operations` service. +class GoogleCloudVisionV1p3beta1BatchOperationMetadata { + /// The time when the batch request is finished and + /// google.longrunning.Operation.done is set to true. + core.String endTime; + + /// The current state of the batch operation. + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : Invalid. + /// - "PROCESSING" : Request is actively being processed. + /// - "SUCCESSFUL" : The request is done and at least one item has been + /// successfully + /// processed. + /// - "FAILED" : The request is done and no item has been successfully + /// processed. + /// - "CANCELLED" : The request is done after the + /// longrunning.Operations.CancelOperation has + /// been called by the user. Any records that were processed before the + /// cancel command are output as specified in the request. + core.String state; + + /// The time when the batch request was submitted to the server. + core.String submitTime; + + GoogleCloudVisionV1p3beta1BatchOperationMetadata(); + + GoogleCloudVisionV1p3beta1BatchOperationMetadata.fromJson(core.Map _json) { + if (_json.containsKey("endTime")) { + endTime = _json["endTime"]; + } + if (_json.containsKey("state")) { + state = _json["state"]; + } + if (_json.containsKey("submitTime")) { + submitTime = _json["submitTime"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (endTime != null) { + _json["endTime"] = endTime; + } + if (state != null) { + _json["state"] = state; + } + if (submitTime != null) { + _json["submitTime"] = submitTime; + } + return _json; + } +} + +/// A bounding polygon for the detected image annotation. +class GoogleCloudVisionV1p3beta1BoundingPoly { + /// The bounding polygon normalized vertices. + core.List<GoogleCloudVisionV1p3beta1NormalizedVertex> normalizedVertices; + + /// The bounding polygon vertices. + core.List<GoogleCloudVisionV1p3beta1Vertex> vertices; + + GoogleCloudVisionV1p3beta1BoundingPoly(); + + GoogleCloudVisionV1p3beta1BoundingPoly.fromJson(core.Map _json) { + if (_json.containsKey("normalizedVertices")) { + normalizedVertices = (_json["normalizedVertices"] as core.List) + .map<GoogleCloudVisionV1p3beta1NormalizedVertex>((value) => + new GoogleCloudVisionV1p3beta1NormalizedVertex.fromJson(value)) + .toList(); + } + if (_json.containsKey("vertices")) { + vertices = (_json["vertices"] as core.List) + .map<GoogleCloudVisionV1p3beta1Vertex>( + (value) => new GoogleCloudVisionV1p3beta1Vertex.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (normalizedVertices != null) { + _json["normalizedVertices"] = + normalizedVertices.map((value) => (value).toJson()).toList(); + } + if (vertices != null) { + _json["vertices"] = vertices.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/// Response message for the `ImportProductSets` method. +/// +/// This message is returned by the +/// google.longrunning.Operations.GetOperation method in the returned +/// google.longrunning.Operation.response field. +class GoogleCloudVisionV1p3beta1ImportProductSetsResponse { + /// The list of reference_images that are imported successfully. + core.List<GoogleCloudVisionV1p3beta1ReferenceImage> referenceImages; + + /// The rpc status for each ImportProductSet request, including both successes + /// and errors. + /// + /// The number of statuses here matches the number of lines in the csv file, + /// and statuses[i] stores the success or failure status of processing the + /// i-th + /// line of the csv, starting from line 0. + core.List<Status> statuses; + + GoogleCloudVisionV1p3beta1ImportProductSetsResponse(); + + GoogleCloudVisionV1p3beta1ImportProductSetsResponse.fromJson(core.Map _json) { + if (_json.containsKey("referenceImages")) { + referenceImages = (_json["referenceImages"] as core.List) + .map<GoogleCloudVisionV1p3beta1ReferenceImage>((value) => + new GoogleCloudVisionV1p3beta1ReferenceImage.fromJson(value)) + .toList(); + } + if (_json.containsKey("statuses")) { + statuses = (_json["statuses"] as core.List) + .map<Status>((value) => new Status.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (referenceImages != null) { + _json["referenceImages"] = + referenceImages.map((value) => (value).toJson()).toList(); + } + if (statuses != null) { + _json["statuses"] = statuses.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/// A vertex represents a 2D point in the image. +/// NOTE: the normalized vertex coordinates are relative to the original image +/// and range from 0 to 1. +class GoogleCloudVisionV1p3beta1NormalizedVertex { + /// X coordinate. + core.double x; + + /// Y coordinate. + core.double y; + + GoogleCloudVisionV1p3beta1NormalizedVertex(); + + GoogleCloudVisionV1p3beta1NormalizedVertex.fromJson(core.Map _json) { + if (_json.containsKey("x")) { + x = _json["x"].toDouble(); + } + if (_json.containsKey("y")) { + y = _json["y"].toDouble(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (x != null) { + _json["x"] = x; + } + if (y != null) { + _json["y"] = y; + } + return _json; + } +} + +/// A `ReferenceImage` represents a product image and its associated metadata, +/// such as bounding boxes. +class GoogleCloudVisionV1p3beta1ReferenceImage { + /// Bounding polygons around the areas of interest in the reference image. + /// Optional. If this field is empty, the system will try to detect regions of + /// interest. At most 10 bounding polygons will be used. + /// + /// The provided shape is converted into a non-rotated rectangle. Once + /// converted, the small edge of the rectangle must be greater than or equal + /// to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5 + /// is not). + core.List<GoogleCloudVisionV1p3beta1BoundingPoly> boundingPolys; + + /// The resource name of the reference image. + /// + /// Format is: + /// + /// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`. + /// + /// This field is ignored when creating a reference image. + core.String name; + + /// The Google Cloud Storage URI of the reference image. + /// + /// The URI must start with `gs://`. + /// + /// Required. + core.String uri; + + GoogleCloudVisionV1p3beta1ReferenceImage(); + + GoogleCloudVisionV1p3beta1ReferenceImage.fromJson(core.Map _json) { + if (_json.containsKey("boundingPolys")) { + boundingPolys = (_json["boundingPolys"] as core.List) + .map<GoogleCloudVisionV1p3beta1BoundingPoly>((value) => + new GoogleCloudVisionV1p3beta1BoundingPoly.fromJson(value)) + .toList(); + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("uri")) { + uri = _json["uri"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (boundingPolys != null) { + _json["boundingPolys"] = + boundingPolys.map((value) => (value).toJson()).toList(); + } + if (name != null) { + _json["name"] = name; + } + if (uri != null) { + _json["uri"] = uri; + } + return _json; + } +} + +/// A vertex represents a 2D point in the image. +/// NOTE: the vertex coordinates are in the same scale as the original image. +class GoogleCloudVisionV1p3beta1Vertex { + /// X coordinate. + core.int x; + + /// Y coordinate. + core.int y; + + GoogleCloudVisionV1p3beta1Vertex(); + + GoogleCloudVisionV1p3beta1Vertex.fromJson(core.Map _json) { + if (_json.containsKey("x")) { + x = _json["x"]; + } + if (_json.containsKey("y")) { + y = _json["y"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (x != null) { + _json["x"] = x; + } + if (y != null) { + _json["y"] = y; + } + return _json; + } +} + /// Client image to perform Google Cloud Vision API tasks over. class Image { /// Image content, represented as a stream of bytes. @@ -1332,6 +4469,40 @@ } } +/// If an image was produced from a file (e.g. a PDF), this message gives +/// information about the source of that image. +class ImageAnnotationContext { + /// If the file was a PDF or TIFF, this field gives the page number within + /// the file used to produce the image. + core.int pageNumber; + + /// The URI of the file used to produce the image. + core.String uri; + + ImageAnnotationContext(); + + ImageAnnotationContext.fromJson(core.Map _json) { + if (_json.containsKey("pageNumber")) { + pageNumber = _json["pageNumber"]; + } + if (_json.containsKey("uri")) { + uri = _json["uri"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (pageNumber != null) { + _json["pageNumber"] = pageNumber; + } + if (uri != null) { + _json["uri"] = uri; + } + return _json; + } +} + /// Image context and/or feature-specific parameters. class ImageContext { /// Parameters for crop hints annotation request. @@ -1348,7 +4519,7 @@ /// [supported languages](/vision/docs/languages). core.List<core.String> languageHints; - /// lat/long rectangle that specifies the location of the image. + /// Not used. LatLongRect latLongRect; /// Parameters for web detection. @@ -1468,6 +4639,39 @@ } } +/// The desired input location and metadata. +class InputConfig { + /// The Google Cloud Storage location to read the input from. + GcsSource gcsSource; + + /// The type of the file. Currently only "application/pdf" and "image/tiff" + /// are supported. Wildcards are not supported. + core.String mimeType; + + InputConfig(); + + InputConfig.fromJson(core.Map _json) { + if (_json.containsKey("gcsSource")) { + gcsSource = new GcsSource.fromJson(_json["gcsSource"]); + } + if (_json.containsKey("mimeType")) { + mimeType = _json["mimeType"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (gcsSource != null) { + _json["gcsSource"] = (gcsSource).toJson(); + } + if (mimeType != null) { + _json["mimeType"] = mimeType; + } + return _json; + } +} + /// A face-specific landmark (for example, a face feature). class Landmark { /// Face landmark position. @@ -1606,6 +4810,41 @@ } } +/// 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"] as core.List) + .map<Operation>((value) => new Operation.fromJson(value)) + .toList(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (operations != null) { + _json["operations"] = + operations.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + /// Detected entity location information. class LocationInfo { /// lat/long location coordinates. @@ -1629,6 +4868,213 @@ } } +/// A vertex represents a 2D point in the image. +/// NOTE: the normalized vertex coordinates are relative to the original image +/// and range from 0 to 1. +class NormalizedVertex { + /// X coordinate. + core.double x; + + /// Y coordinate. + core.double y; + + NormalizedVertex(); + + NormalizedVertex.fromJson(core.Map _json) { + if (_json.containsKey("x")) { + x = _json["x"].toDouble(); + } + if (_json.containsKey("y")) { + y = _json["y"].toDouble(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (x != null) { + _json["x"] = x; + } + if (y != null) { + _json["y"] = y; + } + 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"] as core.Map).cast<core.String, core.Object>(); + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("response")) { + response = + (_json["response"] as core.Map).cast<core.String, core.Object>(); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + 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; + } +} + +/// Contains metadata for the BatchAnnotateImages operation. +class OperationMetadata { + /// The time when the batch request was received. + core.String createTime; + + /// Current state of the batch operation. + /// Possible string values are: + /// - "STATE_UNSPECIFIED" : Invalid. + /// - "CREATED" : Request is received. + /// - "RUNNING" : Request is actively being processed. + /// - "DONE" : The batch processing is done. + /// - "CANCELLED" : The batch processing was cancelled. + core.String state; + + /// The time when the operation result was last updated. + core.String updateTime; + + OperationMetadata(); + + OperationMetadata.fromJson(core.Map _json) { + if (_json.containsKey("createTime")) { + createTime = _json["createTime"]; + } + if (_json.containsKey("state")) { + state = _json["state"]; + } + if (_json.containsKey("updateTime")) { + updateTime = _json["updateTime"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (createTime != null) { + _json["createTime"] = createTime; + } + if (state != null) { + _json["state"] = state; + } + if (updateTime != null) { + _json["updateTime"] = updateTime; + } + return _json; + } +} + +/// The desired output location and metadata. +class OutputConfig { + /// The max number of response protos to put into each output JSON file on + /// Google Cloud Storage. + /// The valid range is [1, 100]. If not specified, the default value is 20. + /// + /// For example, for one pdf file with 100 pages, 100 response protos will + /// be generated. If `batch_size` = 20, then 5 json files each + /// containing 20 response protos will be written under the prefix + /// `gcs_destination`.`uri`. + /// + /// Currently, batch_size only applies to GcsDestination, with potential + /// future + /// support for other output configurations. + core.int batchSize; + + /// The Google Cloud Storage location to write the output(s) to. + GcsDestination gcsDestination; + + OutputConfig(); + + OutputConfig.fromJson(core.Map _json) { + if (_json.containsKey("batchSize")) { + batchSize = _json["batchSize"]; + } + if (_json.containsKey("gcsDestination")) { + gcsDestination = new GcsDestination.fromJson(_json["gcsDestination"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = + new core.Map<core.String, core.Object>(); + if (batchSize != null) { + _json["batchSize"] = batchSize; + } + if (gcsDestination != null) { + _json["gcsDestination"] = (gcsDestination).toJson(); + } + return _json; + } +} + /// Detected page from OCR. class Page { /// List of blocks of text, images etc on this page. @@ -1637,13 +5083,15 @@ /// Confidence of the OCR results on the page. Range [0, 1]. core.double confidence; - /// Page height in pixels. + /// Page height. For PDFs the unit is points. For images (including + /// TIFFs) the unit is pixels. core.int height; /// Additional information detected on the page. TextProperty property; - /// Page width in pixels. + /// Page width. For PDFs the unit is points. For images (including + /// TIFFs) the unit is pixels. core.int width; Page();
diff --git a/generated/googleapis/lib/youtube/v3.dart b/generated/googleapis/lib/youtube/v3.dart index 71e02ca..0cea78e 100644 --- a/generated/googleapis/lib/youtube/v3.dart +++ b/generated/googleapis/lib/youtube/v3.dart
@@ -63,8 +63,6 @@ CommentThreadsResourceApi get commentThreads => new CommentThreadsResourceApi(_requester); CommentsResourceApi get comments => new CommentsResourceApi(_requester); - FanFundingEventsResourceApi get fanFundingEvents => - new FanFundingEventsResourceApi(_requester); GuideCategoriesResourceApi get guideCategories => new GuideCategoriesResourceApi(_requester); I18nLanguagesResourceApi get i18nLanguages => @@ -2085,89 +2083,6 @@ } } -class FanFundingEventsResourceApi { - final commons.ApiRequester _requester; - - FanFundingEventsResourceApi(commons.ApiRequester client) - : _requester = client; - - /// Lists fan funding events for a channel. - /// - /// Request parameters: - /// - /// [part] - The part parameter specifies the fanFundingEvent resource parts - /// that the API response will include. Supported values are id and snippet. - /// - /// [hl] - The hl parameter instructs the API to retrieve localized resource - /// metadata for a specific application language that the YouTube website - /// supports. The parameter value must be a language code included in the list - /// returned by the i18nLanguages.list method. - /// - /// If localized resource details are available in that language, the - /// resource's snippet.localized object will contain the localized values. - /// However, if localized details are not available, the snippet.localized - /// object will contain resource details in the resource's default language. - /// - /// [maxResults] - The maxResults parameter specifies the maximum number of - /// items that should be returned in the result set. - /// Value must be between "0" and "50". - /// - /// [pageToken] - The pageToken parameter identifies a specific page in the - /// result set that should be returned. In an API response, the nextPageToken - /// and prevPageToken properties identify other pages that could be retrieved. - /// - /// [$fields] - Selector specifying which fields to include in a partial - /// response. - /// - /// Completes with a [FanFundingEventListResponse]. - /// - /// Completes with a [commons.ApiRequestError] if the API endpoint returned an - /// error. - /// - /// If the used [http.Client] completes with an error when making a REST call, - /// this method will complete with the same error. - async.Future<FanFundingEventListResponse> list(core.String part, - {core.String hl, - core.int maxResults, - core.String pageToken, - core.String $fields}) { - var _url = null; - var _queryParams = new core.Map<core.String, core.List<core.String>>(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (part == null) { - throw new core.ArgumentError("Parameter part is required."); - } - _queryParams["part"] = [part]; - if (hl != null) { - _queryParams["hl"] = [hl]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if ($fields != null) { - _queryParams["fields"] = [$fields]; - } - - _url = 'fanFundingEvents'; - - var _response = _requester.request(_url, "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response - .then((data) => new FanFundingEventListResponse.fromJson(data)); - } -} - class GuideCategoriesResourceApi { final commons.ApiRequester _requester; @@ -9189,6 +9104,7 @@ /// - "private" /// - "public" /// - "unlisted" + /// - "unlisted_new" core.String privacyStatus; ChannelStatus(); @@ -10201,6 +10117,7 @@ /// The video's rating in Israel. /// Possible string values are: /// - "ilfilm12" + /// - "ilfilm14" /// - "ilfilm16" /// - "ilfilm18" /// - "ilfilmAa" @@ -11020,224 +10937,6 @@ } } -/// A fanFundingEvent resource represents a fan funding event on a YouTube -/// channel. Fan funding events occur when a user gives one-time monetary -/// support to the channel owner. -class FanFundingEvent { - /// Etag of this resource. - core.String etag; - - /// The ID that YouTube assigns to uniquely identify the fan funding event. - core.String id; - - /// Identifies what kind of resource this is. Value: the fixed string - /// "youtube#fanFundingEvent". - core.String kind; - - /// The snippet object contains basic details about the fan funding event. - FanFundingEventSnippet snippet; - - FanFundingEvent(); - - FanFundingEvent.fromJson(core.Map _json) { - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("snippet")) { - snippet = new FanFundingEventSnippet.fromJson(_json["snippet"]); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (etag != null) { - _json["etag"] = etag; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (snippet != null) { - _json["snippet"] = (snippet).toJson(); - } - return _json; - } -} - -class FanFundingEventListResponse { - /// Etag of this resource. - core.String etag; - - /// Serialized EventId of the request which produced this response. - core.String eventId; - - /// A list of fan funding events that match the request criteria. - core.List<FanFundingEvent> items; - - /// Identifies what kind of resource this is. Value: the fixed string - /// "youtube#fanFundingEventListResponse". - core.String kind; - - /// The token that can be used as the value of the pageToken parameter to - /// retrieve the next page in the result set. - core.String nextPageToken; - PageInfo pageInfo; - TokenPagination tokenPagination; - - /// The visitorId identifies the visitor. - core.String visitorId; - - FanFundingEventListResponse(); - - FanFundingEventListResponse.fromJson(core.Map _json) { - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("eventId")) { - eventId = _json["eventId"]; - } - if (_json.containsKey("items")) { - items = (_json["items"] as core.List) - .map<FanFundingEvent>((value) => new FanFundingEvent.fromJson(value)) - .toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("pageInfo")) { - pageInfo = new PageInfo.fromJson(_json["pageInfo"]); - } - if (_json.containsKey("tokenPagination")) { - tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); - } - if (_json.containsKey("visitorId")) { - visitorId = _json["visitorId"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (etag != null) { - _json["etag"] = etag; - } - if (eventId != null) { - _json["eventId"] = eventId; - } - if (items != null) { - _json["items"] = items.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (pageInfo != null) { - _json["pageInfo"] = (pageInfo).toJson(); - } - if (tokenPagination != null) { - _json["tokenPagination"] = (tokenPagination).toJson(); - } - if (visitorId != null) { - _json["visitorId"] = visitorId; - } - return _json; - } -} - -class FanFundingEventSnippet { - /// The amount of funding in micros of fund_currency. e.g., 1 is represented - core.String amountMicros; - - /// Channel id where the funding event occurred. - core.String channelId; - - /// The text contents of the comment left by the user. - core.String commentText; - - /// The date and time when the funding occurred. The value is specified in ISO - /// 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. - core.DateTime createdAt; - - /// The currency in which the fund was made. ISO 4217. - core.String currency; - - /// A rendered string that displays the fund amount and currency (e.g., - /// "$1.00"). The string is rendered for the given language. - core.String displayString; - - /// Details about the supporter. Only filled if the event was made public by - /// the user. - ChannelProfileDetails supporterDetails; - - FanFundingEventSnippet(); - - FanFundingEventSnippet.fromJson(core.Map _json) { - if (_json.containsKey("amountMicros")) { - amountMicros = _json["amountMicros"]; - } - if (_json.containsKey("channelId")) { - channelId = _json["channelId"]; - } - if (_json.containsKey("commentText")) { - commentText = _json["commentText"]; - } - if (_json.containsKey("createdAt")) { - createdAt = core.DateTime.parse(_json["createdAt"]); - } - if (_json.containsKey("currency")) { - currency = _json["currency"]; - } - if (_json.containsKey("displayString")) { - displayString = _json["displayString"]; - } - if (_json.containsKey("supporterDetails")) { - supporterDetails = - new ChannelProfileDetails.fromJson(_json["supporterDetails"]); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = - new core.Map<core.String, core.Object>(); - if (amountMicros != null) { - _json["amountMicros"] = amountMicros; - } - if (channelId != null) { - _json["channelId"] = channelId; - } - if (commentText != null) { - _json["commentText"] = commentText; - } - if (createdAt != null) { - _json["createdAt"] = (createdAt).toIso8601String(); - } - if (currency != null) { - _json["currency"] = currency; - } - if (displayString != null) { - _json["displayString"] = displayString; - } - if (supporterDetails != null) { - _json["supporterDetails"] = (supporterDetails).toJson(); - } - return _json; - } -} - /// Geographical coordinates of a point, in WGS84. class GeoPoint { /// Altitude above the reference ellipsoid, in meters. @@ -12452,6 +12151,13 @@ /// slate and make your broadcast stream visible to viewers. core.bool startWithSlate; + /// + /// Possible string values are: + /// - "left_right" + /// - "mono" + /// - "top_bottom" + core.String stereoLayout; + LiveBroadcastContentDetails(); LiveBroadcastContentDetails.fromJson(core.Map _json) { @@ -12501,6 +12207,9 @@ if (_json.containsKey("startWithSlate")) { startWithSlate = _json["startWithSlate"]; } + if (_json.containsKey("stereoLayout")) { + stereoLayout = _json["stereoLayout"]; + } } core.Map<core.String, core.Object> toJson() { @@ -12552,6 +12261,9 @@ if (startWithSlate != null) { _json["startWithSlate"] = startWithSlate; } + if (stereoLayout != null) { + _json["stereoLayout"] = stereoLayout; + } return _json; } } @@ -12854,6 +12566,7 @@ /// - "private" /// - "public" /// - "unlisted" + /// - "unlisted_new" core.String privacyStatus; /// The broadcast's recording status. @@ -15155,6 +14868,7 @@ /// - "private" /// - "public" /// - "unlisted" + /// - "unlisted_new" core.String privacyStatus; PlaylistItemStatus(); @@ -15429,6 +15143,7 @@ /// - "private" /// - "public" /// - "unlisted" + /// - "unlisted_new" core.String privacyStatus; PlaylistStatus(); @@ -15910,9 +15625,6 @@ /// Etag of this resource. core.String etag; - /// The ID that YouTube assigns to uniquely identify the sponsor. - core.String id; - /// Identifies what kind of resource this is. Value: the fixed string /// "youtube#sponsor". core.String kind; @@ -15926,9 +15638,6 @@ if (_json.containsKey("etag")) { etag = _json["etag"]; } - if (_json.containsKey("id")) { - id = _json["id"]; - } if (_json.containsKey("kind")) { kind = _json["kind"]; } @@ -15943,9 +15652,6 @@ if (etag != null) { _json["etag"] = etag; } - if (id != null) { - _json["id"] = id; - } if (kind != null) { _json["kind"] = kind; } @@ -16045,6 +15751,9 @@ /// The id of the channel being sponsored. core.String channelId; + /// The cumulative time a user has been a sponsor in months. + core.int cumulativeDurationMonths; + /// Details about the sponsor. ChannelProfileDetails sponsorDetails; @@ -16058,6 +15767,9 @@ if (_json.containsKey("channelId")) { channelId = _json["channelId"]; } + if (_json.containsKey("cumulativeDurationMonths")) { + cumulativeDurationMonths = _json["cumulativeDurationMonths"]; + } if (_json.containsKey("sponsorDetails")) { sponsorDetails = new ChannelProfileDetails.fromJson(_json["sponsorDetails"]); @@ -16073,6 +15785,9 @@ if (channelId != null) { _json["channelId"] = channelId; } + if (cumulativeDurationMonths != null) { + _json["cumulativeDurationMonths"] = cumulativeDurationMonths; + } if (sponsorDetails != null) { _json["sponsorDetails"] = (sponsorDetails).toJson(); } @@ -18819,6 +18534,7 @@ /// - "private" /// - "public" /// - "unlisted" + /// - "unlisted_new" core.String privacyStatus; /// This value indicates if the extended video statistics on the watch page
diff --git a/generated/googleapis/pubspec.yaml b/generated/googleapis/pubspec.yaml index b357727..9799567 100644 --- a/generated/googleapis/pubspec.yaml +++ b/generated/googleapis/pubspec.yaml
@@ -1,7 +1,7 @@ name: googleapis -version: 0.50.4 +version: 0.51.0 author: Dart Team <misc@dartlang.org> -description: "Auto-generated client libraries for accessing the following APIs:abusiveexperiencereport:v1, acceleratedmobilepageurl:v1, adexchangebuyer:v1.3, adexchangebuyer:v1.4, adexchangeseller:v1.1, adexchangeseller:v2.0, adexperiencereport:v1, admin:datatransfer_v1, admin:directory_v1, admin:reports_v1, adsense:v1.4, adsensehost:v4.1, analytics:v3, analyticsreporting:v4, androiddeviceprovisioning:v1, androidenterprise:v1, androidmanagement:v1, androidpublisher:v2, appengine:v1, appsactivity:v1, appstate:v1, bigquery:v2, bigquerydatatransfer:v1, blogger:v3, books:v1, calendar:v3, civicinfo:v2, classroom:v1, cloudbilling:v1, cloudbuild:v1, clouddebugger:v2, cloudfunctions:v1, cloudiot:v1, cloudkms:v1, cloudresourcemanager:v1, cloudresourcemanager:v2beta1, cloudshell:v1, cloudtrace:v1, cloudtrace:v2, compute:v1, container:v1, content:v2, content:v2sandbox, customsearch:v1, dataproc:v1, datastore:v1, deploymentmanager:v2, dfareporting:v2.8, dfareporting:v3.0, digitalassetlinks:v1, discovery:v1, dns:v1, doubleclickbidmanager:v1, doubleclicksearch:v2, drive:v2, drive:v3, firebasedynamiclinks:v1, firebaseremoteconfig:v1, firebaserules:v1, fitness:v1, fusiontables:v1, fusiontables:v2, games:v1, gamesConfiguration:v1configuration, gamesManagement:v1management, genomics:v1, gmail:v1, groupsmigration:v1, groupssettings:v1, iam:v1, identitytoolkit:v3, kgsearch:v1, language:v1, licensing:v1, logging:v2, manufacturers:v1, mirror:v1, ml:v1, monitoring:v3, oauth2:v2, oslogin:v1, pagespeedonline:v1, pagespeedonline:v2, partners:v2, people:v1, playcustomapp:v1, plus:v1, plusDomains:v1, poly:v1, prediction:v1.6, pubsub:v1, reseller:v1, runtimeconfig:v1, safebrowsing:v4, script:v1, searchconsole:v1, serviceconsumermanagement:v1, servicecontrol:v1, servicemanagement:v1, serviceusage:v1, serviceuser:v1, sheets:v4, siteVerification:v1, slides:v1, sourcerepo:v1, spanner:v1, speech:v1, storage:v1, storagetransfer:v1, streetviewpublish:v1, surveys:v2, tagmanager:v1, tagmanager:v2, tasks:v1, testing:v1, translate:v2, urlshortener:v1, vault:v1, vision:v1, webfonts:v1, webmasters:v3, youtube:v3, youtubeAnalytics:v1, youtubereporting:v1" +description: "Auto-generated client libraries for accessing the following APIs:abusiveexperiencereport:v1, acceleratedmobilepageurl:v1, adexchangebuyer:v1.3, adexchangebuyer:v1.4, adexchangeseller:v1.1, adexchangeseller:v2.0, adexperiencereport:v1, admin:datatransfer_v1, admin:directory_v1, admin:reports_v1, adsense:v1.4, adsensehost:v4.1, analytics:v3, analyticsreporting:v4, androiddeviceprovisioning:v1, androidenterprise:v1, androidmanagement:v1, androidpublisher:v2, androidpublisher:v3, appengine:v1, appsactivity:v1, appstate:v1, bigquery:v2, bigquerydatatransfer:v1, blogger:v3, books:v1, calendar:v3, chat:v1, civicinfo:v2, classroom:v1, cloudbilling:v1, cloudbuild:v1, clouddebugger:v2, cloudfunctions:v1, cloudiot:v1, cloudkms:v1, cloudresourcemanager:v1, cloudresourcemanager:v2, cloudshell:v1, cloudtrace:v1, cloudtrace:v2, compute:v1, container:v1, content:v2, content:v2sandbox, customsearch:v1, dataproc:v1, datastore:v1, deploymentmanager:v2, dfareporting:v2.8, dfareporting:v3.0, dfareporting:v3.1, dialogflow:v2, digitalassetlinks:v1, discovery:v1, dlp:v2, dns:v1, doubleclickbidmanager:v1, doubleclicksearch:v2, drive:v2, drive:v3, firebasedynamiclinks:v1, firebaseremoteconfig: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, jobs:v2, kgsearch:v1, language:v1, licensing:v1, logging:v2, manufacturers:v1, mirror:v1, ml:v1, monitoring:v3, oauth2:v2, oslogin:v1, pagespeedonline:v1, pagespeedonline:v2, pagespeedonline:v4, partners:v2, people:v1, playcustomapp:v1, plus:v1, plusDomains:v1, poly:v1, prediction:v1.6, pubsub:v1, reseller:v1, runtimeconfig:v1, safebrowsing:v4, script:v1, searchconsole:v1, servicebroker:v1, serviceconsumermanagement:v1, servicecontrol:v1, servicemanagement:v1, serviceuser:v1, sheets:v4, siteVerification:v1, slides:v1, sourcerepo:v1, spanner:v1, speech:v1, storage:v1, storagetransfer:v1, streetviewpublish:v1, surveys:v2, tagmanager:v1, tagmanager:v2, tasks:v1, testing:v1, tpu:v1, translate:v2, urlshortener:v1, vault:v1, videointelligence:v1, vision:v1, webfonts:v1, webmasters:v3, youtube:v3, youtubeAnalytics:v1, youtubeAnalytics:v2, youtubereporting:v1" homepage: http://www.dartlang.org/googleapis/ environment: sdk: '>=2.0.0-dev.22.0 <2.0.0'
diff --git a/generated/googleapis/test/abusiveexperiencereport/v1_test.dart b/generated/googleapis/test/abusiveexperiencereport/v1_test.dart index 07747dd..2837947 100644 --- a/generated/googleapis/test/abusiveexperiencereport/v1_test.dart +++ b/generated/googleapis/test/abusiveexperiencereport/v1_test.dart
@@ -81,14 +81,14 @@ buildCounterSiteSummaryResponse--; } -buildUnnamed1634() { +buildUnnamed1341() { var o = new core.List<api.SiteSummaryResponse>(); o.add(buildSiteSummaryResponse()); o.add(buildSiteSummaryResponse()); return o; } -checkUnnamed1634(core.List<api.SiteSummaryResponse> o) { +checkUnnamed1341(core.List<api.SiteSummaryResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkSiteSummaryResponse(o[0]); checkSiteSummaryResponse(o[1]); @@ -99,7 +99,7 @@ var o = new api.ViolatingSitesResponse(); buildCounterViolatingSitesResponse++; if (buildCounterViolatingSitesResponse < 3) { - o.violatingSites = buildUnnamed1634(); + o.violatingSites = buildUnnamed1341(); } buildCounterViolatingSitesResponse--; return o; @@ -108,7 +108,7 @@ checkViolatingSitesResponse(api.ViolatingSitesResponse o) { buildCounterViolatingSitesResponse++; if (buildCounterViolatingSitesResponse < 3) { - checkUnnamed1634(o.violatingSites); + checkUnnamed1341(o.violatingSites); } buildCounterViolatingSitesResponse--; }
diff --git a/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart b/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart index 280b008..495b758 100644 --- a/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart +++ b/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart
@@ -96,14 +96,14 @@ buildCounterAmpUrlError--; } -buildUnnamed2021() { +buildUnnamed2017() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2021(core.List<core.String> o) { +checkUnnamed2017(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -115,7 +115,7 @@ buildCounterBatchGetAmpUrlsRequest++; if (buildCounterBatchGetAmpUrlsRequest < 3) { o.lookupStrategy = "foo"; - o.urls = buildUnnamed2021(); + o.urls = buildUnnamed2017(); } buildCounterBatchGetAmpUrlsRequest--; return o; @@ -125,32 +125,32 @@ buildCounterBatchGetAmpUrlsRequest++; if (buildCounterBatchGetAmpUrlsRequest < 3) { unittest.expect(o.lookupStrategy, unittest.equals('foo')); - checkUnnamed2021(o.urls); + checkUnnamed2017(o.urls); } buildCounterBatchGetAmpUrlsRequest--; } -buildUnnamed2022() { +buildUnnamed2018() { var o = new core.List<api.AmpUrl>(); o.add(buildAmpUrl()); o.add(buildAmpUrl()); return o; } -checkUnnamed2022(core.List<api.AmpUrl> o) { +checkUnnamed2018(core.List<api.AmpUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkAmpUrl(o[0]); checkAmpUrl(o[1]); } -buildUnnamed2023() { +buildUnnamed2019() { var o = new core.List<api.AmpUrlError>(); o.add(buildAmpUrlError()); o.add(buildAmpUrlError()); return o; } -checkUnnamed2023(core.List<api.AmpUrlError> o) { +checkUnnamed2019(core.List<api.AmpUrlError> o) { unittest.expect(o, unittest.hasLength(2)); checkAmpUrlError(o[0]); checkAmpUrlError(o[1]); @@ -161,8 +161,8 @@ var o = new api.BatchGetAmpUrlsResponse(); buildCounterBatchGetAmpUrlsResponse++; if (buildCounterBatchGetAmpUrlsResponse < 3) { - o.ampUrls = buildUnnamed2022(); - o.urlErrors = buildUnnamed2023(); + o.ampUrls = buildUnnamed2018(); + o.urlErrors = buildUnnamed2019(); } buildCounterBatchGetAmpUrlsResponse--; return o; @@ -171,8 +171,8 @@ checkBatchGetAmpUrlsResponse(api.BatchGetAmpUrlsResponse o) { buildCounterBatchGetAmpUrlsResponse++; if (buildCounterBatchGetAmpUrlsResponse < 3) { - checkUnnamed2022(o.ampUrls); - checkUnnamed2023(o.urlErrors); + checkUnnamed2018(o.ampUrls); + checkUnnamed2019(o.urlErrors); } buildCounterBatchGetAmpUrlsResponse--; }
diff --git a/generated/googleapis/test/adexchangebuyer/v1_3_test.dart b/generated/googleapis/test/adexchangebuyer/v1_3_test.dart index 9ee2ae0..3497956 100644 --- a/generated/googleapis/test/adexchangebuyer/v1_3_test.dart +++ b/generated/googleapis/test/adexchangebuyer/v1_3_test.dart
@@ -73,14 +73,14 @@ buildCounterAccountBidderLocation--; } -buildUnnamed2648() { +buildUnnamed4185() { var o = new core.List<api.AccountBidderLocation>(); o.add(buildAccountBidderLocation()); o.add(buildAccountBidderLocation()); return o; } -checkUnnamed2648(core.List<api.AccountBidderLocation> o) { +checkUnnamed4185(core.List<api.AccountBidderLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountBidderLocation(o[0]); checkAccountBidderLocation(o[1]); @@ -91,7 +91,7 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.bidderLocation = buildUnnamed2648(); + o.bidderLocation = buildUnnamed4185(); o.cookieMatchingNid = "foo"; o.cookieMatchingUrl = "foo"; o.id = 42; @@ -107,7 +107,7 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed2648(o.bidderLocation); + checkUnnamed4185(o.bidderLocation); unittest.expect(o.cookieMatchingNid, unittest.equals('foo')); unittest.expect(o.cookieMatchingUrl, unittest.equals('foo')); unittest.expect(o.id, unittest.equals(42)); @@ -119,14 +119,14 @@ buildCounterAccount--; } -buildUnnamed2649() { +buildUnnamed4186() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed2649(core.List<api.Account> o) { +checkUnnamed4186(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -137,7 +137,7 @@ var o = new api.AccountsList(); buildCounterAccountsList++; if (buildCounterAccountsList < 3) { - o.items = buildUnnamed2649(); + o.items = buildUnnamed4186(); o.kind = "foo"; } buildCounterAccountsList--; @@ -147,20 +147,20 @@ checkAccountsList(api.AccountsList o) { buildCounterAccountsList++; if (buildCounterAccountsList < 3) { - checkUnnamed2649(o.items); + checkUnnamed4186(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountsList--; } -buildUnnamed2650() { +buildUnnamed4187() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2650(core.List<core.String> o) { +checkUnnamed4187(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -173,7 +173,7 @@ if (buildCounterBillingInfo < 3) { o.accountId = 42; o.accountName = "foo"; - o.billingId = buildUnnamed2650(); + o.billingId = buildUnnamed4187(); o.kind = "foo"; } buildCounterBillingInfo--; @@ -185,20 +185,20 @@ if (buildCounterBillingInfo < 3) { unittest.expect(o.accountId, unittest.equals(42)); unittest.expect(o.accountName, unittest.equals('foo')); - checkUnnamed2650(o.billingId); + checkUnnamed4187(o.billingId); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBillingInfo--; } -buildUnnamed2651() { +buildUnnamed4188() { var o = new core.List<api.BillingInfo>(); o.add(buildBillingInfo()); o.add(buildBillingInfo()); return o; } -checkUnnamed2651(core.List<api.BillingInfo> o) { +checkUnnamed4188(core.List<api.BillingInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkBillingInfo(o[0]); checkBillingInfo(o[1]); @@ -209,7 +209,7 @@ var o = new api.BillingInfoList(); buildCounterBillingInfoList++; if (buildCounterBillingInfoList < 3) { - o.items = buildUnnamed2651(); + o.items = buildUnnamed4188(); o.kind = "foo"; } buildCounterBillingInfoList--; @@ -219,7 +219,7 @@ checkBillingInfoList(api.BillingInfoList o) { buildCounterBillingInfoList++; if (buildCounterBillingInfoList < 3) { - checkUnnamed2651(o.items); + checkUnnamed4188(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBillingInfoList--; @@ -254,53 +254,53 @@ buildCounterBudget--; } -buildUnnamed2652() { +buildUnnamed4189() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2652(core.List<core.String> o) { +checkUnnamed4189(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2653() { +buildUnnamed4190() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2653(core.List<core.int> o) { +checkUnnamed4190(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)); } -buildUnnamed2654() { +buildUnnamed4191() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2654(core.List<core.String> o) { +checkUnnamed4191(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2655() { +buildUnnamed4192() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2655(core.List<core.String> o) { +checkUnnamed4192(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -311,7 +311,7 @@ var o = new api.CreativeCorrections(); buildCounterCreativeCorrections++; if (buildCounterCreativeCorrections < 3) { - o.details = buildUnnamed2655(); + o.details = buildUnnamed4192(); o.reason = "foo"; } buildCounterCreativeCorrections--; @@ -321,33 +321,33 @@ checkCreativeCorrections(api.CreativeCorrections o) { buildCounterCreativeCorrections++; if (buildCounterCreativeCorrections < 3) { - checkUnnamed2655(o.details); + checkUnnamed4192(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeCorrections--; } -buildUnnamed2656() { +buildUnnamed4193() { var o = new core.List<api.CreativeCorrections>(); o.add(buildCreativeCorrections()); o.add(buildCreativeCorrections()); return o; } -checkUnnamed2656(core.List<api.CreativeCorrections> o) { +checkUnnamed4193(core.List<api.CreativeCorrections> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCorrections(o[0]); checkCreativeCorrections(o[1]); } -buildUnnamed2657() { +buildUnnamed4194() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2657(core.List<core.String> o) { +checkUnnamed4194(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -358,7 +358,7 @@ var o = new api.CreativeDisapprovalReasons(); buildCounterCreativeDisapprovalReasons++; if (buildCounterCreativeDisapprovalReasons < 3) { - o.details = buildUnnamed2657(); + o.details = buildUnnamed4194(); o.reason = "foo"; } buildCounterCreativeDisapprovalReasons--; @@ -368,20 +368,20 @@ checkCreativeDisapprovalReasons(api.CreativeDisapprovalReasons o) { buildCounterCreativeDisapprovalReasons++; if (buildCounterCreativeDisapprovalReasons < 3) { - checkUnnamed2657(o.details); + checkUnnamed4194(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeDisapprovalReasons--; } -buildUnnamed2658() { +buildUnnamed4195() { var o = new core.List<api.CreativeDisapprovalReasons>(); o.add(buildCreativeDisapprovalReasons()); o.add(buildCreativeDisapprovalReasons()); return o; } -checkUnnamed2658(core.List<api.CreativeDisapprovalReasons> o) { +checkUnnamed4195(core.List<api.CreativeDisapprovalReasons> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeDisapprovalReasons(o[0]); checkCreativeDisapprovalReasons(o[1]); @@ -408,14 +408,14 @@ buildCounterCreativeFilteringReasonsReasons--; } -buildUnnamed2659() { +buildUnnamed4196() { var o = new core.List<api.CreativeFilteringReasonsReasons>(); o.add(buildCreativeFilteringReasonsReasons()); o.add(buildCreativeFilteringReasonsReasons()); return o; } -checkUnnamed2659(core.List<api.CreativeFilteringReasonsReasons> o) { +checkUnnamed4196(core.List<api.CreativeFilteringReasonsReasons> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFilteringReasonsReasons(o[0]); checkCreativeFilteringReasonsReasons(o[1]); @@ -427,7 +427,7 @@ buildCounterCreativeFilteringReasons++; if (buildCounterCreativeFilteringReasons < 3) { o.date = "foo"; - o.reasons = buildUnnamed2659(); + o.reasons = buildUnnamed4196(); } buildCounterCreativeFilteringReasons--; return o; @@ -437,19 +437,19 @@ buildCounterCreativeFilteringReasons++; if (buildCounterCreativeFilteringReasons < 3) { unittest.expect(o.date, unittest.equals('foo')); - checkUnnamed2659(o.reasons); + checkUnnamed4196(o.reasons); } buildCounterCreativeFilteringReasons--; } -buildUnnamed2660() { +buildUnnamed4197() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2660(core.List<core.String> o) { +checkUnnamed4197(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -501,14 +501,14 @@ buildCounterCreativeNativeAdImage--; } -buildUnnamed2661() { +buildUnnamed4198() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2661(core.List<core.String> o) { +checkUnnamed4198(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -549,7 +549,7 @@ o.clickTrackingUrl = "foo"; o.headline = "foo"; o.image = buildCreativeNativeAdImage(); - o.impressionTrackingUrl = buildUnnamed2661(); + o.impressionTrackingUrl = buildUnnamed4198(); o.logo = buildCreativeNativeAdLogo(); o.price = "foo"; o.starRating = 42.0; @@ -569,7 +569,7 @@ unittest.expect(o.clickTrackingUrl, unittest.equals('foo')); unittest.expect(o.headline, unittest.equals('foo')); checkCreativeNativeAdImage(o.image); - checkUnnamed2661(o.impressionTrackingUrl); + checkUnnamed4198(o.impressionTrackingUrl); checkCreativeNativeAdLogo(o.logo); unittest.expect(o.price, unittest.equals('foo')); unittest.expect(o.starRating, unittest.equals(42.0)); @@ -578,53 +578,53 @@ buildCounterCreativeNativeAd--; } -buildUnnamed2662() { +buildUnnamed4199() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2662(core.List<core.int> o) { +checkUnnamed4199(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)); } -buildUnnamed2663() { +buildUnnamed4200() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2663(core.List<core.int> o) { +checkUnnamed4200(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)); } -buildUnnamed2664() { +buildUnnamed4201() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2664(core.List<core.int> o) { +checkUnnamed4201(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)); } -buildUnnamed2665() { +buildUnnamed4202() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2665(core.List<core.int> o) { +checkUnnamed4202(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)); @@ -637,25 +637,25 @@ if (buildCounterCreative < 3) { o.HTMLSnippet = "foo"; o.accountId = 42; - o.advertiserId = buildUnnamed2652(); + o.advertiserId = buildUnnamed4189(); o.advertiserName = "foo"; o.agencyId = "foo"; o.apiUploadTimestamp = core.DateTime.parse("2002-02-27T14:01:02"); - o.attribute = buildUnnamed2653(); + o.attribute = buildUnnamed4190(); o.buyerCreativeId = "foo"; - o.clickThroughUrl = buildUnnamed2654(); - o.corrections = buildUnnamed2656(); - o.disapprovalReasons = buildUnnamed2658(); + o.clickThroughUrl = buildUnnamed4191(); + o.corrections = buildUnnamed4193(); + o.disapprovalReasons = buildUnnamed4195(); o.filteringReasons = buildCreativeFilteringReasons(); o.height = 42; - o.impressionTrackingUrl = buildUnnamed2660(); + o.impressionTrackingUrl = buildUnnamed4197(); o.kind = "foo"; o.nativeAd = buildCreativeNativeAd(); - o.productCategories = buildUnnamed2662(); - o.restrictedCategories = buildUnnamed2663(); - o.sensitiveCategories = buildUnnamed2664(); + o.productCategories = buildUnnamed4199(); + o.restrictedCategories = buildUnnamed4200(); + o.sensitiveCategories = buildUnnamed4201(); o.status = "foo"; - o.vendorType = buildUnnamed2665(); + o.vendorType = buildUnnamed4202(); o.version = 42; o.videoURL = "foo"; o.width = 42; @@ -669,26 +669,26 @@ if (buildCounterCreative < 3) { unittest.expect(o.HTMLSnippet, unittest.equals('foo')); unittest.expect(o.accountId, unittest.equals(42)); - checkUnnamed2652(o.advertiserId); + checkUnnamed4189(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"))); - checkUnnamed2653(o.attribute); + checkUnnamed4190(o.attribute); unittest.expect(o.buyerCreativeId, unittest.equals('foo')); - checkUnnamed2654(o.clickThroughUrl); - checkUnnamed2656(o.corrections); - checkUnnamed2658(o.disapprovalReasons); + checkUnnamed4191(o.clickThroughUrl); + checkUnnamed4193(o.corrections); + checkUnnamed4195(o.disapprovalReasons); checkCreativeFilteringReasons(o.filteringReasons); unittest.expect(o.height, unittest.equals(42)); - checkUnnamed2660(o.impressionTrackingUrl); + checkUnnamed4197(o.impressionTrackingUrl); unittest.expect(o.kind, unittest.equals('foo')); checkCreativeNativeAd(o.nativeAd); - checkUnnamed2662(o.productCategories); - checkUnnamed2663(o.restrictedCategories); - checkUnnamed2664(o.sensitiveCategories); + checkUnnamed4199(o.productCategories); + checkUnnamed4200(o.restrictedCategories); + checkUnnamed4201(o.sensitiveCategories); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed2665(o.vendorType); + checkUnnamed4202(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--; } -buildUnnamed2666() { +buildUnnamed4203() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed2666(core.List<api.Creative> o) { +checkUnnamed4203(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 = buildUnnamed2666(); + o.items = buildUnnamed4203(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -725,7 +725,7 @@ checkCreativesList(api.CreativesList o) { buildCounterCreativesList++; if (buildCounterCreativesList < 3) { - checkUnnamed2666(o.items); + checkUnnamed4203(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -779,14 +779,14 @@ buildCounterDirectDeal--; } -buildUnnamed2667() { +buildUnnamed4204() { var o = new core.List<api.DirectDeal>(); o.add(buildDirectDeal()); o.add(buildDirectDeal()); return o; } -checkUnnamed2667(core.List<api.DirectDeal> o) { +checkUnnamed4204(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 = buildUnnamed2667(); + o.directDeals = buildUnnamed4204(); o.kind = "foo"; } buildCounterDirectDealsList--; @@ -807,13 +807,13 @@ checkDirectDealsList(api.DirectDealsList o) { buildCounterDirectDealsList++; if (buildCounterDirectDealsList < 3) { - checkUnnamed2667(o.directDeals); + checkUnnamed4204(o.directDeals); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDirectDealsList--; } -buildUnnamed2668() { +buildUnnamed4205() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -828,7 +828,7 @@ return o; } -checkUnnamed2668(core.List<core.Object> o) { +checkUnnamed4205(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -842,7 +842,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2669() { +buildUnnamed4206() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -857,7 +857,7 @@ return o; } -checkUnnamed2669(core.List<core.Object> o) { +checkUnnamed4206(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -871,7 +871,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed2670() { +buildUnnamed4207() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -886,7 +886,7 @@ return o; } -checkUnnamed2670(core.List<core.Object> o) { +checkUnnamed4207(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -900,7 +900,7 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed2671() { +buildUnnamed4208() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -915,7 +915,7 @@ return o; } -checkUnnamed2671(core.List<core.Object> o) { +checkUnnamed4208(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); @@ -936,11 +936,11 @@ if (buildCounterPerformanceReport < 3) { o.bidRate = 42.0; o.bidRequestRate = 42.0; - o.calloutStatusRate = buildUnnamed2668(); - o.cookieMatcherStatusRate = buildUnnamed2669(); - o.creativeStatusRate = buildUnnamed2670(); + o.calloutStatusRate = buildUnnamed4205(); + o.cookieMatcherStatusRate = buildUnnamed4206(); + o.creativeStatusRate = buildUnnamed4207(); o.filteredBidRate = 42.0; - o.hostedMatchStatusRate = buildUnnamed2671(); + o.hostedMatchStatusRate = buildUnnamed4208(); o.inventoryMatchRate = 42.0; o.kind = "foo"; o.latency50thPercentile = 42.0; @@ -966,11 +966,11 @@ if (buildCounterPerformanceReport < 3) { unittest.expect(o.bidRate, unittest.equals(42.0)); unittest.expect(o.bidRequestRate, unittest.equals(42.0)); - checkUnnamed2668(o.calloutStatusRate); - checkUnnamed2669(o.cookieMatcherStatusRate); - checkUnnamed2670(o.creativeStatusRate); + checkUnnamed4205(o.calloutStatusRate); + checkUnnamed4206(o.cookieMatcherStatusRate); + checkUnnamed4207(o.creativeStatusRate); unittest.expect(o.filteredBidRate, unittest.equals(42.0)); - checkUnnamed2671(o.hostedMatchStatusRate); + checkUnnamed4208(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)); @@ -990,14 +990,14 @@ buildCounterPerformanceReport--; } -buildUnnamed2672() { +buildUnnamed4209() { var o = new core.List<api.PerformanceReport>(); o.add(buildPerformanceReport()); o.add(buildPerformanceReport()); return o; } -checkUnnamed2672(core.List<api.PerformanceReport> o) { +checkUnnamed4209(core.List<api.PerformanceReport> o) { unittest.expect(o, unittest.hasLength(2)); checkPerformanceReport(o[0]); checkPerformanceReport(o[1]); @@ -1009,7 +1009,7 @@ buildCounterPerformanceReportList++; if (buildCounterPerformanceReportList < 3) { o.kind = "foo"; - o.performanceReport = buildUnnamed2672(); + o.performanceReport = buildUnnamed4209(); } buildCounterPerformanceReportList--; return o; @@ -1019,19 +1019,19 @@ buildCounterPerformanceReportList++; if (buildCounterPerformanceReportList < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2672(o.performanceReport); + checkUnnamed4209(o.performanceReport); } buildCounterPerformanceReportList--; } -buildUnnamed2673() { +buildUnnamed4210() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2673(core.List<core.String> o) { +checkUnnamed4210(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1058,40 +1058,40 @@ buildCounterPretargetingConfigDimensions--; } -buildUnnamed2674() { +buildUnnamed4211() { var o = new core.List<api.PretargetingConfigDimensions>(); o.add(buildPretargetingConfigDimensions()); o.add(buildPretargetingConfigDimensions()); return o; } -checkUnnamed2674(core.List<api.PretargetingConfigDimensions> o) { +checkUnnamed4211(core.List<api.PretargetingConfigDimensions> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigDimensions(o[0]); checkPretargetingConfigDimensions(o[1]); } -buildUnnamed2675() { +buildUnnamed4212() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2675(core.List<core.String> o) { +checkUnnamed4212(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2676() { +buildUnnamed4213() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2676(core.List<core.String> o) { +checkUnnamed4213(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1119,105 +1119,105 @@ buildCounterPretargetingConfigExcludedPlacements--; } -buildUnnamed2677() { +buildUnnamed4214() { var o = new core.List<api.PretargetingConfigExcludedPlacements>(); o.add(buildPretargetingConfigExcludedPlacements()); o.add(buildPretargetingConfigExcludedPlacements()); return o; } -checkUnnamed2677(core.List<api.PretargetingConfigExcludedPlacements> o) { +checkUnnamed4214(core.List<api.PretargetingConfigExcludedPlacements> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigExcludedPlacements(o[0]); checkPretargetingConfigExcludedPlacements(o[1]); } -buildUnnamed2678() { +buildUnnamed4215() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2678(core.List<core.String> o) { +checkUnnamed4215(core.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() { +buildUnnamed4216() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2679(core.List<core.String> o) { +checkUnnamed4216(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2680() { +buildUnnamed4217() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2680(core.List<core.String> o) { +checkUnnamed4217(core.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() { +buildUnnamed4218() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2681(core.List<core.String> o) { +checkUnnamed4218(core.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() { +buildUnnamed4219() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2682(core.List<core.String> o) { +checkUnnamed4219(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2683() { +buildUnnamed4220() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2683(core.List<core.String> o) { +checkUnnamed4220(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2684() { +buildUnnamed4221() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2684(core.List<core.String> o) { +checkUnnamed4221(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1244,79 +1244,79 @@ buildCounterPretargetingConfigPlacements--; } -buildUnnamed2685() { +buildUnnamed4222() { var o = new core.List<api.PretargetingConfigPlacements>(); o.add(buildPretargetingConfigPlacements()); o.add(buildPretargetingConfigPlacements()); return o; } -checkUnnamed2685(core.List<api.PretargetingConfigPlacements> o) { +checkUnnamed4222(core.List<api.PretargetingConfigPlacements> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigPlacements(o[0]); checkPretargetingConfigPlacements(o[1]); } -buildUnnamed2686() { +buildUnnamed4223() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2686(core.List<core.String> o) { +checkUnnamed4223(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2687() { +buildUnnamed4224() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2687(core.List<core.String> o) { +checkUnnamed4224(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2688() { +buildUnnamed4225() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2688(core.List<core.String> o) { +checkUnnamed4225(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2689() { +buildUnnamed4226() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2689(core.List<core.String> o) { +checkUnnamed4226(core.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() { +buildUnnamed4227() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2690(core.List<core.String> o) { +checkUnnamed4227(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1330,26 +1330,26 @@ o.billingId = "foo"; o.configId = "foo"; o.configName = "foo"; - o.creativeType = buildUnnamed2673(); - o.dimensions = buildUnnamed2674(); - o.excludedContentLabels = buildUnnamed2675(); - o.excludedGeoCriteriaIds = buildUnnamed2676(); - o.excludedPlacements = buildUnnamed2677(); - o.excludedUserLists = buildUnnamed2678(); - o.excludedVerticals = buildUnnamed2679(); - o.geoCriteriaIds = buildUnnamed2680(); + o.creativeType = buildUnnamed4210(); + o.dimensions = buildUnnamed4211(); + o.excludedContentLabels = buildUnnamed4212(); + o.excludedGeoCriteriaIds = buildUnnamed4213(); + o.excludedPlacements = buildUnnamed4214(); + o.excludedUserLists = buildUnnamed4215(); + o.excludedVerticals = buildUnnamed4216(); + o.geoCriteriaIds = buildUnnamed4217(); o.isActive = true; o.kind = "foo"; - o.languages = buildUnnamed2681(); - o.mobileCarriers = buildUnnamed2682(); - o.mobileDevices = buildUnnamed2683(); - o.mobileOperatingSystemVersions = buildUnnamed2684(); - o.placements = buildUnnamed2685(); - o.platforms = buildUnnamed2686(); - o.supportedCreativeAttributes = buildUnnamed2687(); - o.userLists = buildUnnamed2688(); - o.vendorTypes = buildUnnamed2689(); - o.verticals = buildUnnamed2690(); + o.languages = buildUnnamed4218(); + o.mobileCarriers = buildUnnamed4219(); + o.mobileDevices = buildUnnamed4220(); + o.mobileOperatingSystemVersions = buildUnnamed4221(); + o.placements = buildUnnamed4222(); + o.platforms = buildUnnamed4223(); + o.supportedCreativeAttributes = buildUnnamed4224(); + o.userLists = buildUnnamed4225(); + o.vendorTypes = buildUnnamed4226(); + o.verticals = buildUnnamed4227(); } buildCounterPretargetingConfig--; return o; @@ -1361,38 +1361,38 @@ unittest.expect(o.billingId, unittest.equals('foo')); unittest.expect(o.configId, unittest.equals('foo')); unittest.expect(o.configName, unittest.equals('foo')); - checkUnnamed2673(o.creativeType); - checkUnnamed2674(o.dimensions); - checkUnnamed2675(o.excludedContentLabels); - checkUnnamed2676(o.excludedGeoCriteriaIds); - checkUnnamed2677(o.excludedPlacements); - checkUnnamed2678(o.excludedUserLists); - checkUnnamed2679(o.excludedVerticals); - checkUnnamed2680(o.geoCriteriaIds); + checkUnnamed4210(o.creativeType); + checkUnnamed4211(o.dimensions); + checkUnnamed4212(o.excludedContentLabels); + checkUnnamed4213(o.excludedGeoCriteriaIds); + checkUnnamed4214(o.excludedPlacements); + checkUnnamed4215(o.excludedUserLists); + checkUnnamed4216(o.excludedVerticals); + checkUnnamed4217(o.geoCriteriaIds); unittest.expect(o.isActive, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2681(o.languages); - checkUnnamed2682(o.mobileCarriers); - checkUnnamed2683(o.mobileDevices); - checkUnnamed2684(o.mobileOperatingSystemVersions); - checkUnnamed2685(o.placements); - checkUnnamed2686(o.platforms); - checkUnnamed2687(o.supportedCreativeAttributes); - checkUnnamed2688(o.userLists); - checkUnnamed2689(o.vendorTypes); - checkUnnamed2690(o.verticals); + checkUnnamed4218(o.languages); + checkUnnamed4219(o.mobileCarriers); + checkUnnamed4220(o.mobileDevices); + checkUnnamed4221(o.mobileOperatingSystemVersions); + checkUnnamed4222(o.placements); + checkUnnamed4223(o.platforms); + checkUnnamed4224(o.supportedCreativeAttributes); + checkUnnamed4225(o.userLists); + checkUnnamed4226(o.vendorTypes); + checkUnnamed4227(o.verticals); } buildCounterPretargetingConfig--; } -buildUnnamed2691() { +buildUnnamed4228() { var o = new core.List<api.PretargetingConfig>(); o.add(buildPretargetingConfig()); o.add(buildPretargetingConfig()); return o; } -checkUnnamed2691(core.List<api.PretargetingConfig> o) { +checkUnnamed4228(core.List<api.PretargetingConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfig(o[0]); checkPretargetingConfig(o[1]); @@ -1403,7 +1403,7 @@ var o = new api.PretargetingConfigList(); buildCounterPretargetingConfigList++; if (buildCounterPretargetingConfigList < 3) { - o.items = buildUnnamed2691(); + o.items = buildUnnamed4228(); o.kind = "foo"; } buildCounterPretargetingConfigList--; @@ -1413,33 +1413,33 @@ checkPretargetingConfigList(api.PretargetingConfigList o) { buildCounterPretargetingConfigList++; if (buildCounterPretargetingConfigList < 3) { - checkUnnamed2691(o.items); + checkUnnamed4228(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPretargetingConfigList--; } -buildUnnamed2692() { +buildUnnamed4229() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2692(core.List<core.int> o) { +checkUnnamed4229(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)); } -buildUnnamed2693() { +buildUnnamed4230() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2693(core.List<core.String> o) { +checkUnnamed4230(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2321,8 +2321,8 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; - var arg_accountId = buildUnnamed2692(); - var arg_buyerCreativeId = buildUnnamed2693(); + var arg_accountId = buildUnnamed4229(); + var arg_buyerCreativeId = buildUnnamed4230(); 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 4d0850c..ffce122 100644 --- a/generated/googleapis/test/adexchangebuyer/v1_4_test.dart +++ b/generated/googleapis/test/adexchangebuyer/v1_4_test.dart
@@ -75,14 +75,14 @@ buildCounterAccountBidderLocation--; } -buildUnnamed3639() { +buildUnnamed3292() { var o = new core.List<api.AccountBidderLocation>(); o.add(buildAccountBidderLocation()); o.add(buildAccountBidderLocation()); return o; } -checkUnnamed3639(core.List<api.AccountBidderLocation> o) { +checkUnnamed3292(core.List<api.AccountBidderLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountBidderLocation(o[0]); checkAccountBidderLocation(o[1]); @@ -93,7 +93,8 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.bidderLocation = buildUnnamed3639(); + o.applyPretargetingToNonGuaranteedDeals = true; + o.bidderLocation = buildUnnamed3292(); o.cookieMatchingNid = "foo"; o.cookieMatchingUrl = "foo"; o.id = 42; @@ -109,7 +110,8 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed3639(o.bidderLocation); + unittest.expect(o.applyPretargetingToNonGuaranteedDeals, unittest.isTrue); + checkUnnamed3292(o.bidderLocation); unittest.expect(o.cookieMatchingNid, unittest.equals('foo')); unittest.expect(o.cookieMatchingUrl, unittest.equals('foo')); unittest.expect(o.id, unittest.equals(42)); @@ -121,14 +123,14 @@ buildCounterAccount--; } -buildUnnamed3640() { +buildUnnamed3293() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed3640(core.List<api.Account> o) { +checkUnnamed3293(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -139,7 +141,7 @@ var o = new api.AccountsList(); buildCounterAccountsList++; if (buildCounterAccountsList < 3) { - o.items = buildUnnamed3640(); + o.items = buildUnnamed3293(); o.kind = "foo"; } buildCounterAccountsList--; @@ -149,20 +151,20 @@ checkAccountsList(api.AccountsList o) { buildCounterAccountsList++; if (buildCounterAccountsList < 3) { - checkUnnamed3640(o.items); + checkUnnamed3293(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountsList--; } -buildUnnamed3641() { +buildUnnamed3294() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed3641(core.List<api.MarketplaceDeal> o) { +checkUnnamed3294(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -173,7 +175,7 @@ var o = new api.AddOrderDealsRequest(); buildCounterAddOrderDealsRequest++; if (buildCounterAddOrderDealsRequest < 3) { - o.deals = buildUnnamed3641(); + o.deals = buildUnnamed3294(); o.proposalRevisionNumber = "foo"; o.updateAction = "foo"; } @@ -184,21 +186,21 @@ checkAddOrderDealsRequest(api.AddOrderDealsRequest o) { buildCounterAddOrderDealsRequest++; if (buildCounterAddOrderDealsRequest < 3) { - checkUnnamed3641(o.deals); + checkUnnamed3294(o.deals); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); unittest.expect(o.updateAction, unittest.equals('foo')); } buildCounterAddOrderDealsRequest--; } -buildUnnamed3642() { +buildUnnamed3295() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed3642(core.List<api.MarketplaceDeal> o) { +checkUnnamed3295(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -209,7 +211,7 @@ var o = new api.AddOrderDealsResponse(); buildCounterAddOrderDealsResponse++; if (buildCounterAddOrderDealsResponse < 3) { - o.deals = buildUnnamed3642(); + o.deals = buildUnnamed3295(); o.proposalRevisionNumber = "foo"; } buildCounterAddOrderDealsResponse--; @@ -219,20 +221,20 @@ checkAddOrderDealsResponse(api.AddOrderDealsResponse o) { buildCounterAddOrderDealsResponse++; if (buildCounterAddOrderDealsResponse < 3) { - checkUnnamed3642(o.deals); + checkUnnamed3295(o.deals); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); } buildCounterAddOrderDealsResponse--; } -buildUnnamed3643() { +buildUnnamed3296() { var o = new core.List<api.MarketplaceNote>(); o.add(buildMarketplaceNote()); o.add(buildMarketplaceNote()); return o; } -checkUnnamed3643(core.List<api.MarketplaceNote> o) { +checkUnnamed3296(core.List<api.MarketplaceNote> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceNote(o[0]); checkMarketplaceNote(o[1]); @@ -243,7 +245,7 @@ var o = new api.AddOrderNotesRequest(); buildCounterAddOrderNotesRequest++; if (buildCounterAddOrderNotesRequest < 3) { - o.notes = buildUnnamed3643(); + o.notes = buildUnnamed3296(); } buildCounterAddOrderNotesRequest--; return o; @@ -252,19 +254,19 @@ checkAddOrderNotesRequest(api.AddOrderNotesRequest o) { buildCounterAddOrderNotesRequest++; if (buildCounterAddOrderNotesRequest < 3) { - checkUnnamed3643(o.notes); + checkUnnamed3296(o.notes); } buildCounterAddOrderNotesRequest--; } -buildUnnamed3644() { +buildUnnamed3297() { var o = new core.List<api.MarketplaceNote>(); o.add(buildMarketplaceNote()); o.add(buildMarketplaceNote()); return o; } -checkUnnamed3644(core.List<api.MarketplaceNote> o) { +checkUnnamed3297(core.List<api.MarketplaceNote> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceNote(o[0]); checkMarketplaceNote(o[1]); @@ -275,7 +277,7 @@ var o = new api.AddOrderNotesResponse(); buildCounterAddOrderNotesResponse++; if (buildCounterAddOrderNotesResponse < 3) { - o.notes = buildUnnamed3644(); + o.notes = buildUnnamed3297(); } buildCounterAddOrderNotesResponse--; return o; @@ -284,19 +286,19 @@ checkAddOrderNotesResponse(api.AddOrderNotesResponse o) { buildCounterAddOrderNotesResponse++; if (buildCounterAddOrderNotesResponse < 3) { - checkUnnamed3644(o.notes); + checkUnnamed3297(o.notes); } buildCounterAddOrderNotesResponse--; } -buildUnnamed3645() { +buildUnnamed3298() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3645(core.List<core.String> 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')); @@ -309,7 +311,7 @@ if (buildCounterBillingInfo < 3) { o.accountId = 42; o.accountName = "foo"; - o.billingId = buildUnnamed3645(); + o.billingId = buildUnnamed3298(); o.kind = "foo"; } buildCounterBillingInfo--; @@ -321,20 +323,20 @@ if (buildCounterBillingInfo < 3) { unittest.expect(o.accountId, unittest.equals(42)); unittest.expect(o.accountName, unittest.equals('foo')); - checkUnnamed3645(o.billingId); + checkUnnamed3298(o.billingId); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBillingInfo--; } -buildUnnamed3646() { +buildUnnamed3299() { var o = new core.List<api.BillingInfo>(); o.add(buildBillingInfo()); o.add(buildBillingInfo()); return o; } -checkUnnamed3646(core.List<api.BillingInfo> o) { +checkUnnamed3299(core.List<api.BillingInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkBillingInfo(o[0]); checkBillingInfo(o[1]); @@ -345,7 +347,7 @@ var o = new api.BillingInfoList(); buildCounterBillingInfoList++; if (buildCounterBillingInfoList < 3) { - o.items = buildUnnamed3646(); + o.items = buildUnnamed3299(); o.kind = "foo"; } buildCounterBillingInfoList--; @@ -355,7 +357,7 @@ checkBillingInfoList(api.BillingInfoList o) { buildCounterBillingInfoList++; if (buildCounterBillingInfoList < 3) { - checkUnnamed3646(o.items); + checkUnnamed3299(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBillingInfoList--; @@ -430,14 +432,14 @@ buildCounterContactInformation--; } -buildUnnamed3647() { +buildUnnamed3300() { var o = new core.List<api.Proposal>(); o.add(buildProposal()); o.add(buildProposal()); return o; } -checkUnnamed3647(core.List<api.Proposal> o) { +checkUnnamed3300(core.List<api.Proposal> o) { unittest.expect(o, unittest.hasLength(2)); checkProposal(o[0]); checkProposal(o[1]); @@ -448,7 +450,7 @@ var o = new api.CreateOrdersRequest(); buildCounterCreateOrdersRequest++; if (buildCounterCreateOrdersRequest < 3) { - o.proposals = buildUnnamed3647(); + o.proposals = buildUnnamed3300(); o.webPropertyCode = "foo"; } buildCounterCreateOrdersRequest--; @@ -458,20 +460,20 @@ checkCreateOrdersRequest(api.CreateOrdersRequest o) { buildCounterCreateOrdersRequest++; if (buildCounterCreateOrdersRequest < 3) { - checkUnnamed3647(o.proposals); + checkUnnamed3300(o.proposals); unittest.expect(o.webPropertyCode, unittest.equals('foo')); } buildCounterCreateOrdersRequest--; } -buildUnnamed3648() { +buildUnnamed3301() { var o = new core.List<api.Proposal>(); o.add(buildProposal()); o.add(buildProposal()); return o; } -checkUnnamed3648(core.List<api.Proposal> o) { +checkUnnamed3301(core.List<api.Proposal> o) { unittest.expect(o, unittest.hasLength(2)); checkProposal(o[0]); checkProposal(o[1]); @@ -482,7 +484,7 @@ var o = new api.CreateOrdersResponse(); buildCounterCreateOrdersResponse++; if (buildCounterCreateOrdersResponse < 3) { - o.proposals = buildUnnamed3648(); + o.proposals = buildUnnamed3301(); } buildCounterCreateOrdersResponse--; return o; @@ -491,84 +493,84 @@ checkCreateOrdersResponse(api.CreateOrdersResponse o) { buildCounterCreateOrdersResponse++; if (buildCounterCreateOrdersResponse < 3) { - checkUnnamed3648(o.proposals); + checkUnnamed3301(o.proposals); } buildCounterCreateOrdersResponse--; } -buildUnnamed3649() { +buildUnnamed3302() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3649(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')); } -buildUnnamed3650() { +buildUnnamed3303() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3650(core.List<core.int> o) { +checkUnnamed3303(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)); } -buildUnnamed3651() { +buildUnnamed3304() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3651(core.List<core.String> o) { +checkUnnamed3304(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3652() { +buildUnnamed3305() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3652(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')); } -buildUnnamed3653() { +buildUnnamed3306() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3653(core.List<core.int> o) { +checkUnnamed3306(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)); } -buildUnnamed3654() { +buildUnnamed3307() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3654(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')); @@ -579,10 +581,10 @@ var o = new api.CreativeCorrectionsContexts(); buildCounterCreativeCorrectionsContexts++; if (buildCounterCreativeCorrectionsContexts < 3) { - o.auctionType = buildUnnamed3652(); + o.auctionType = buildUnnamed3305(); o.contextType = "foo"; - o.geoCriteriaId = buildUnnamed3653(); - o.platform = buildUnnamed3654(); + o.geoCriteriaId = buildUnnamed3306(); + o.platform = buildUnnamed3307(); } buildCounterCreativeCorrectionsContexts--; return o; @@ -591,35 +593,35 @@ checkCreativeCorrectionsContexts(api.CreativeCorrectionsContexts o) { buildCounterCreativeCorrectionsContexts++; if (buildCounterCreativeCorrectionsContexts < 3) { - checkUnnamed3652(o.auctionType); + checkUnnamed3305(o.auctionType); unittest.expect(o.contextType, unittest.equals('foo')); - checkUnnamed3653(o.geoCriteriaId); - checkUnnamed3654(o.platform); + checkUnnamed3306(o.geoCriteriaId); + checkUnnamed3307(o.platform); } buildCounterCreativeCorrectionsContexts--; } -buildUnnamed3655() { +buildUnnamed3308() { var o = new core.List<api.CreativeCorrectionsContexts>(); o.add(buildCreativeCorrectionsContexts()); o.add(buildCreativeCorrectionsContexts()); return o; } -checkUnnamed3655(core.List<api.CreativeCorrectionsContexts> o) { +checkUnnamed3308(core.List<api.CreativeCorrectionsContexts> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCorrectionsContexts(o[0]); checkCreativeCorrectionsContexts(o[1]); } -buildUnnamed3656() { +buildUnnamed3309() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3656(core.List<core.String> o) { +checkUnnamed3309(core.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,8 +632,8 @@ var o = new api.CreativeCorrections(); buildCounterCreativeCorrections++; if (buildCounterCreativeCorrections < 3) { - o.contexts = buildUnnamed3655(); - o.details = buildUnnamed3656(); + o.contexts = buildUnnamed3308(); + o.details = buildUnnamed3309(); o.reason = "foo"; } buildCounterCreativeCorrections--; @@ -641,34 +643,34 @@ checkCreativeCorrections(api.CreativeCorrections o) { buildCounterCreativeCorrections++; if (buildCounterCreativeCorrections < 3) { - checkUnnamed3655(o.contexts); - checkUnnamed3656(o.details); + checkUnnamed3308(o.contexts); + checkUnnamed3309(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeCorrections--; } -buildUnnamed3657() { +buildUnnamed3310() { var o = new core.List<api.CreativeCorrections>(); o.add(buildCreativeCorrections()); o.add(buildCreativeCorrections()); return o; } -checkUnnamed3657(core.List<api.CreativeCorrections> o) { +checkUnnamed3310(core.List<api.CreativeCorrections> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCorrections(o[0]); checkCreativeCorrections(o[1]); } -buildUnnamed3658() { +buildUnnamed3311() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3658(core.List<core.String> o) { +checkUnnamed3311(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -695,14 +697,14 @@ buildCounterCreativeFilteringReasonsReasons--; } -buildUnnamed3659() { +buildUnnamed3312() { var o = new core.List<api.CreativeFilteringReasonsReasons>(); o.add(buildCreativeFilteringReasonsReasons()); o.add(buildCreativeFilteringReasonsReasons()); return o; } -checkUnnamed3659(core.List<api.CreativeFilteringReasonsReasons> o) { +checkUnnamed3312(core.List<api.CreativeFilteringReasonsReasons> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFilteringReasonsReasons(o[0]); checkCreativeFilteringReasonsReasons(o[1]); @@ -714,7 +716,7 @@ buildCounterCreativeFilteringReasons++; if (buildCounterCreativeFilteringReasons < 3) { o.date = "foo"; - o.reasons = buildUnnamed3659(); + o.reasons = buildUnnamed3312(); } buildCounterCreativeFilteringReasons--; return o; @@ -724,32 +726,32 @@ buildCounterCreativeFilteringReasons++; if (buildCounterCreativeFilteringReasons < 3) { unittest.expect(o.date, unittest.equals('foo')); - checkUnnamed3659(o.reasons); + checkUnnamed3312(o.reasons); } buildCounterCreativeFilteringReasons--; } -buildUnnamed3660() { +buildUnnamed3313() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3660(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')); } -buildUnnamed3661() { +buildUnnamed3314() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3661(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')); @@ -801,14 +803,14 @@ buildCounterCreativeNativeAdImage--; } -buildUnnamed3662() { +buildUnnamed3315() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3662(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')); @@ -850,7 +852,7 @@ o.clickTrackingUrl = "foo"; o.headline = "foo"; o.image = buildCreativeNativeAdImage(); - o.impressionTrackingUrl = buildUnnamed3662(); + o.impressionTrackingUrl = buildUnnamed3315(); o.logo = buildCreativeNativeAdLogo(); o.price = "foo"; o.starRating = 42.0; @@ -872,7 +874,7 @@ unittest.expect(o.clickTrackingUrl, unittest.equals('foo')); unittest.expect(o.headline, unittest.equals('foo')); checkCreativeNativeAdImage(o.image); - checkUnnamed3662(o.impressionTrackingUrl); + checkUnnamed3315(o.impressionTrackingUrl); checkCreativeNativeAdLogo(o.logo); unittest.expect(o.price, unittest.equals('foo')); unittest.expect(o.starRating, unittest.equals(42.0)); @@ -882,79 +884,79 @@ buildCounterCreativeNativeAd--; } -buildUnnamed3663() { +buildUnnamed3316() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3663(core.List<core.int> o) { +checkUnnamed3316(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)); } -buildUnnamed3664() { +buildUnnamed3317() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3664(core.List<core.int> o) { +checkUnnamed3317(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)); } -buildUnnamed3665() { +buildUnnamed3318() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3665(core.List<core.int> o) { +checkUnnamed3318(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)); } -buildUnnamed3666() { +buildUnnamed3319() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3666(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')); } -buildUnnamed3667() { +buildUnnamed3320() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3667(core.List<core.int> o) { +checkUnnamed3320(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)); } -buildUnnamed3668() { +buildUnnamed3321() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3668(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')); @@ -965,10 +967,10 @@ var o = new api.CreativeServingRestrictionsContexts(); buildCounterCreativeServingRestrictionsContexts++; if (buildCounterCreativeServingRestrictionsContexts < 3) { - o.auctionType = buildUnnamed3666(); + o.auctionType = buildUnnamed3319(); o.contextType = "foo"; - o.geoCriteriaId = buildUnnamed3667(); - o.platform = buildUnnamed3668(); + o.geoCriteriaId = buildUnnamed3320(); + o.platform = buildUnnamed3321(); } buildCounterCreativeServingRestrictionsContexts--; return o; @@ -978,35 +980,35 @@ api.CreativeServingRestrictionsContexts o) { buildCounterCreativeServingRestrictionsContexts++; if (buildCounterCreativeServingRestrictionsContexts < 3) { - checkUnnamed3666(o.auctionType); + checkUnnamed3319(o.auctionType); unittest.expect(o.contextType, unittest.equals('foo')); - checkUnnamed3667(o.geoCriteriaId); - checkUnnamed3668(o.platform); + checkUnnamed3320(o.geoCriteriaId); + checkUnnamed3321(o.platform); } buildCounterCreativeServingRestrictionsContexts--; } -buildUnnamed3669() { +buildUnnamed3322() { var o = new core.List<api.CreativeServingRestrictionsContexts>(); o.add(buildCreativeServingRestrictionsContexts()); o.add(buildCreativeServingRestrictionsContexts()); return o; } -checkUnnamed3669(core.List<api.CreativeServingRestrictionsContexts> o) { +checkUnnamed3322(core.List<api.CreativeServingRestrictionsContexts> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeServingRestrictionsContexts(o[0]); checkCreativeServingRestrictionsContexts(o[1]); } -buildUnnamed3670() { +buildUnnamed3323() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3670(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')); @@ -1017,7 +1019,7 @@ var o = new api.CreativeServingRestrictionsDisapprovalReasons(); buildCounterCreativeServingRestrictionsDisapprovalReasons++; if (buildCounterCreativeServingRestrictionsDisapprovalReasons < 3) { - o.details = buildUnnamed3670(); + o.details = buildUnnamed3323(); o.reason = "foo"; } buildCounterCreativeServingRestrictionsDisapprovalReasons--; @@ -1028,20 +1030,20 @@ api.CreativeServingRestrictionsDisapprovalReasons o) { buildCounterCreativeServingRestrictionsDisapprovalReasons++; if (buildCounterCreativeServingRestrictionsDisapprovalReasons < 3) { - checkUnnamed3670(o.details); + checkUnnamed3323(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeServingRestrictionsDisapprovalReasons--; } -buildUnnamed3671() { +buildUnnamed3324() { var o = new core.List<api.CreativeServingRestrictionsDisapprovalReasons>(); o.add(buildCreativeServingRestrictionsDisapprovalReasons()); o.add(buildCreativeServingRestrictionsDisapprovalReasons()); return o; } -checkUnnamed3671( +checkUnnamed3324( core.List<api.CreativeServingRestrictionsDisapprovalReasons> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeServingRestrictionsDisapprovalReasons(o[0]); @@ -1053,8 +1055,8 @@ var o = new api.CreativeServingRestrictions(); buildCounterCreativeServingRestrictions++; if (buildCounterCreativeServingRestrictions < 3) { - o.contexts = buildUnnamed3669(); - o.disapprovalReasons = buildUnnamed3671(); + o.contexts = buildUnnamed3322(); + o.disapprovalReasons = buildUnnamed3324(); o.reason = "foo"; } buildCounterCreativeServingRestrictions--; @@ -1064,34 +1066,34 @@ checkCreativeServingRestrictions(api.CreativeServingRestrictions o) { buildCounterCreativeServingRestrictions++; if (buildCounterCreativeServingRestrictions < 3) { - checkUnnamed3669(o.contexts); - checkUnnamed3671(o.disapprovalReasons); + checkUnnamed3322(o.contexts); + checkUnnamed3324(o.disapprovalReasons); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeServingRestrictions--; } -buildUnnamed3672() { +buildUnnamed3325() { var o = new core.List<api.CreativeServingRestrictions>(); o.add(buildCreativeServingRestrictions()); o.add(buildCreativeServingRestrictions()); return o; } -checkUnnamed3672(core.List<api.CreativeServingRestrictions> o) { +checkUnnamed3325(core.List<api.CreativeServingRestrictions> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeServingRestrictions(o[0]); checkCreativeServingRestrictions(o[1]); } -buildUnnamed3673() { +buildUnnamed3326() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3673(core.List<core.int> o) { +checkUnnamed3326(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)); @@ -1105,30 +1107,31 @@ o.HTMLSnippet = "foo"; o.accountId = 42; o.adChoicesDestinationUrl = "foo"; - o.advertiserId = buildUnnamed3649(); + o.advertiserId = buildUnnamed3302(); o.advertiserName = "foo"; o.agencyId = "foo"; o.apiUploadTimestamp = core.DateTime.parse("2002-02-27T14:01:02"); - o.attribute = buildUnnamed3650(); + o.attribute = buildUnnamed3303(); o.buyerCreativeId = "foo"; - o.clickThroughUrl = buildUnnamed3651(); - o.corrections = buildUnnamed3657(); + o.clickThroughUrl = buildUnnamed3304(); + o.corrections = buildUnnamed3310(); o.dealsStatus = "foo"; - o.detectedDomains = buildUnnamed3658(); + o.detectedDomains = buildUnnamed3311(); o.filteringReasons = buildCreativeFilteringReasons(); o.height = 42; - o.impressionTrackingUrl = buildUnnamed3660(); + o.impressionTrackingUrl = buildUnnamed3313(); o.kind = "foo"; - o.languages = buildUnnamed3661(); + o.languages = buildUnnamed3314(); o.nativeAd = buildCreativeNativeAd(); o.openAuctionStatus = "foo"; - o.productCategories = buildUnnamed3663(); - o.restrictedCategories = buildUnnamed3664(); - o.sensitiveCategories = buildUnnamed3665(); - o.servingRestrictions = buildUnnamed3672(); - o.vendorType = buildUnnamed3673(); + o.productCategories = buildUnnamed3316(); + o.restrictedCategories = buildUnnamed3317(); + o.sensitiveCategories = buildUnnamed3318(); + o.servingRestrictions = buildUnnamed3325(); + o.vendorType = buildUnnamed3326(); o.version = 42; o.videoURL = "foo"; + o.videoVastXML = "foo"; o.width = 42; } buildCounterCreative--; @@ -1141,31 +1144,32 @@ unittest.expect(o.HTMLSnippet, unittest.equals('foo')); unittest.expect(o.accountId, unittest.equals(42)); unittest.expect(o.adChoicesDestinationUrl, unittest.equals('foo')); - checkUnnamed3649(o.advertiserId); + checkUnnamed3302(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"))); - checkUnnamed3650(o.attribute); + checkUnnamed3303(o.attribute); unittest.expect(o.buyerCreativeId, unittest.equals('foo')); - checkUnnamed3651(o.clickThroughUrl); - checkUnnamed3657(o.corrections); + checkUnnamed3304(o.clickThroughUrl); + checkUnnamed3310(o.corrections); unittest.expect(o.dealsStatus, unittest.equals('foo')); - checkUnnamed3658(o.detectedDomains); + checkUnnamed3311(o.detectedDomains); checkCreativeFilteringReasons(o.filteringReasons); unittest.expect(o.height, unittest.equals(42)); - checkUnnamed3660(o.impressionTrackingUrl); + checkUnnamed3313(o.impressionTrackingUrl); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3661(o.languages); + checkUnnamed3314(o.languages); checkCreativeNativeAd(o.nativeAd); unittest.expect(o.openAuctionStatus, unittest.equals('foo')); - checkUnnamed3663(o.productCategories); - checkUnnamed3664(o.restrictedCategories); - checkUnnamed3665(o.sensitiveCategories); - checkUnnamed3672(o.servingRestrictions); - checkUnnamed3673(o.vendorType); + checkUnnamed3316(o.productCategories); + checkUnnamed3317(o.restrictedCategories); + checkUnnamed3318(o.sensitiveCategories); + checkUnnamed3325(o.servingRestrictions); + checkUnnamed3326(o.vendorType); unittest.expect(o.version, unittest.equals(42)); unittest.expect(o.videoURL, unittest.equals('foo')); + unittest.expect(o.videoVastXML, unittest.equals('foo')); unittest.expect(o.width, unittest.equals(42)); } buildCounterCreative--; @@ -1194,14 +1198,14 @@ buildCounterCreativeDealIdsDealStatuses--; } -buildUnnamed3674() { +buildUnnamed3327() { var o = new core.List<api.CreativeDealIdsDealStatuses>(); o.add(buildCreativeDealIdsDealStatuses()); o.add(buildCreativeDealIdsDealStatuses()); return o; } -checkUnnamed3674(core.List<api.CreativeDealIdsDealStatuses> o) { +checkUnnamed3327(core.List<api.CreativeDealIdsDealStatuses> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeDealIdsDealStatuses(o[0]); checkCreativeDealIdsDealStatuses(o[1]); @@ -1212,7 +1216,7 @@ var o = new api.CreativeDealIds(); buildCounterCreativeDealIds++; if (buildCounterCreativeDealIds < 3) { - o.dealStatuses = buildUnnamed3674(); + o.dealStatuses = buildUnnamed3327(); o.kind = "foo"; } buildCounterCreativeDealIds--; @@ -1222,20 +1226,20 @@ checkCreativeDealIds(api.CreativeDealIds o) { buildCounterCreativeDealIds++; if (buildCounterCreativeDealIds < 3) { - checkUnnamed3674(o.dealStatuses); + checkUnnamed3327(o.dealStatuses); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCreativeDealIds--; } -buildUnnamed3675() { +buildUnnamed3328() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed3675(core.List<api.Creative> o) { +checkUnnamed3328(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -1246,7 +1250,7 @@ var o = new api.CreativesList(); buildCounterCreativesList++; if (buildCounterCreativesList < 3) { - o.items = buildUnnamed3675(); + o.items = buildUnnamed3328(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1257,7 +1261,7 @@ checkCreativesList(api.CreativesList o) { buildCounterCreativesList++; if (buildCounterCreativesList < 3) { - checkUnnamed3675(o.items); + checkUnnamed3328(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1351,14 +1355,14 @@ buildCounterDealTerms--; } -buildUnnamed3676() { +buildUnnamed3329() { var o = new core.List<api.PricePerBuyer>(); o.add(buildPricePerBuyer()); o.add(buildPricePerBuyer()); return o; } -checkUnnamed3676(core.List<api.PricePerBuyer> o) { +checkUnnamed3329(core.List<api.PricePerBuyer> o) { unittest.expect(o, unittest.hasLength(2)); checkPricePerBuyer(o[0]); checkPricePerBuyer(o[1]); @@ -1370,7 +1374,7 @@ buildCounterDealTermsGuaranteedFixedPriceTerms++; if (buildCounterDealTermsGuaranteedFixedPriceTerms < 3) { o.billingInfo = buildDealTermsGuaranteedFixedPriceTermsBillingInfo(); - o.fixedPrices = buildUnnamed3676(); + o.fixedPrices = buildUnnamed3329(); o.guaranteedImpressions = "foo"; o.guaranteedLooks = "foo"; o.minimumDailyLooks = "foo"; @@ -1384,7 +1388,7 @@ buildCounterDealTermsGuaranteedFixedPriceTerms++; if (buildCounterDealTermsGuaranteedFixedPriceTerms < 3) { checkDealTermsGuaranteedFixedPriceTermsBillingInfo(o.billingInfo); - checkUnnamed3676(o.fixedPrices); + checkUnnamed3329(o.fixedPrices); unittest.expect(o.guaranteedImpressions, unittest.equals('foo')); unittest.expect(o.guaranteedLooks, unittest.equals('foo')); unittest.expect(o.minimumDailyLooks, unittest.equals('foo')); @@ -1418,14 +1422,14 @@ buildCounterDealTermsGuaranteedFixedPriceTermsBillingInfo--; } -buildUnnamed3677() { +buildUnnamed3330() { var o = new core.List<api.PricePerBuyer>(); o.add(buildPricePerBuyer()); o.add(buildPricePerBuyer()); return o; } -checkUnnamed3677(core.List<api.PricePerBuyer> o) { +checkUnnamed3330(core.List<api.PricePerBuyer> o) { unittest.expect(o, unittest.hasLength(2)); checkPricePerBuyer(o[0]); checkPricePerBuyer(o[1]); @@ -1437,7 +1441,7 @@ buildCounterDealTermsNonGuaranteedAuctionTerms++; if (buildCounterDealTermsNonGuaranteedAuctionTerms < 3) { o.autoOptimizePrivateAuction = true; - o.reservePricePerBuyers = buildUnnamed3677(); + o.reservePricePerBuyers = buildUnnamed3330(); } buildCounterDealTermsNonGuaranteedAuctionTerms--; return o; @@ -1448,19 +1452,19 @@ buildCounterDealTermsNonGuaranteedAuctionTerms++; if (buildCounterDealTermsNonGuaranteedAuctionTerms < 3) { unittest.expect(o.autoOptimizePrivateAuction, unittest.isTrue); - checkUnnamed3677(o.reservePricePerBuyers); + checkUnnamed3330(o.reservePricePerBuyers); } buildCounterDealTermsNonGuaranteedAuctionTerms--; } -buildUnnamed3678() { +buildUnnamed3331() { var o = new core.List<api.PricePerBuyer>(); o.add(buildPricePerBuyer()); o.add(buildPricePerBuyer()); return o; } -checkUnnamed3678(core.List<api.PricePerBuyer> o) { +checkUnnamed3331(core.List<api.PricePerBuyer> o) { unittest.expect(o, unittest.hasLength(2)); checkPricePerBuyer(o[0]); checkPricePerBuyer(o[1]); @@ -1471,7 +1475,7 @@ var o = new api.DealTermsNonGuaranteedFixedPriceTerms(); buildCounterDealTermsNonGuaranteedFixedPriceTerms++; if (buildCounterDealTermsNonGuaranteedFixedPriceTerms < 3) { - o.fixedPrices = buildUnnamed3678(); + o.fixedPrices = buildUnnamed3331(); } buildCounterDealTermsNonGuaranteedFixedPriceTerms--; return o; @@ -1481,7 +1485,7 @@ api.DealTermsNonGuaranteedFixedPriceTerms o) { buildCounterDealTermsNonGuaranteedFixedPriceTerms++; if (buildCounterDealTermsNonGuaranteedFixedPriceTerms < 3) { - checkUnnamed3678(o.fixedPrices); + checkUnnamed3331(o.fixedPrices); } buildCounterDealTermsNonGuaranteedFixedPriceTerms--; } @@ -1508,14 +1512,14 @@ buildCounterDealTermsRubiconNonGuaranteedTerms--; } -buildUnnamed3679() { +buildUnnamed3332() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3679(core.List<core.String> o) { +checkUnnamed3332(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1526,7 +1530,7 @@ var o = new api.DeleteOrderDealsRequest(); buildCounterDeleteOrderDealsRequest++; if (buildCounterDeleteOrderDealsRequest < 3) { - o.dealIds = buildUnnamed3679(); + o.dealIds = buildUnnamed3332(); o.proposalRevisionNumber = "foo"; o.updateAction = "foo"; } @@ -1537,21 +1541,21 @@ checkDeleteOrderDealsRequest(api.DeleteOrderDealsRequest o) { buildCounterDeleteOrderDealsRequest++; if (buildCounterDeleteOrderDealsRequest < 3) { - checkUnnamed3679(o.dealIds); + checkUnnamed3332(o.dealIds); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); unittest.expect(o.updateAction, unittest.equals('foo')); } buildCounterDeleteOrderDealsRequest--; } -buildUnnamed3680() { +buildUnnamed3333() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed3680(core.List<api.MarketplaceDeal> o) { +checkUnnamed3333(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -1562,7 +1566,7 @@ var o = new api.DeleteOrderDealsResponse(); buildCounterDeleteOrderDealsResponse++; if (buildCounterDeleteOrderDealsResponse < 3) { - o.deals = buildUnnamed3680(); + o.deals = buildUnnamed3333(); o.proposalRevisionNumber = "foo"; } buildCounterDeleteOrderDealsResponse--; @@ -1572,20 +1576,20 @@ checkDeleteOrderDealsResponse(api.DeleteOrderDealsResponse o) { buildCounterDeleteOrderDealsResponse++; if (buildCounterDeleteOrderDealsResponse < 3) { - checkUnnamed3680(o.deals); + checkUnnamed3333(o.deals); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); } buildCounterDeleteOrderDealsResponse--; } -buildUnnamed3681() { +buildUnnamed3334() { var o = new core.List<api.DeliveryControlFrequencyCap>(); o.add(buildDeliveryControlFrequencyCap()); o.add(buildDeliveryControlFrequencyCap()); return o; } -checkUnnamed3681(core.List<api.DeliveryControlFrequencyCap> o) { +checkUnnamed3334(core.List<api.DeliveryControlFrequencyCap> o) { unittest.expect(o, unittest.hasLength(2)); checkDeliveryControlFrequencyCap(o[0]); checkDeliveryControlFrequencyCap(o[1]); @@ -1598,7 +1602,7 @@ if (buildCounterDeliveryControl < 3) { o.creativeBlockingLevel = "foo"; o.deliveryRateType = "foo"; - o.frequencyCaps = buildUnnamed3681(); + o.frequencyCaps = buildUnnamed3334(); } buildCounterDeliveryControl--; return o; @@ -1609,7 +1613,7 @@ if (buildCounterDeliveryControl < 3) { unittest.expect(o.creativeBlockingLevel, unittest.equals('foo')); unittest.expect(o.deliveryRateType, unittest.equals('foo')); - checkUnnamed3681(o.frequencyCaps); + checkUnnamed3334(o.frequencyCaps); } buildCounterDeliveryControl--; } @@ -1637,14 +1641,14 @@ buildCounterDeliveryControlFrequencyCap--; } -buildUnnamed3682() { +buildUnnamed3335() { var o = new core.List<api.DimensionDimensionValue>(); o.add(buildDimensionDimensionValue()); o.add(buildDimensionDimensionValue()); return o; } -checkUnnamed3682(core.List<api.DimensionDimensionValue> o) { +checkUnnamed3335(core.List<api.DimensionDimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionDimensionValue(o[0]); checkDimensionDimensionValue(o[1]); @@ -1656,7 +1660,7 @@ buildCounterDimension++; if (buildCounterDimension < 3) { o.dimensionType = "foo"; - o.dimensionValues = buildUnnamed3682(); + o.dimensionValues = buildUnnamed3335(); } buildCounterDimension--; return o; @@ -1666,7 +1670,7 @@ buildCounterDimension++; if (buildCounterDimension < 3) { unittest.expect(o.dimensionType, unittest.equals('foo')); - checkUnnamed3682(o.dimensionValues); + checkUnnamed3335(o.dimensionValues); } buildCounterDimension--; } @@ -1694,14 +1698,14 @@ buildCounterDimensionDimensionValue--; } -buildUnnamed3683() { +buildUnnamed3336() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed3683(core.List<api.MarketplaceDeal> o) { +checkUnnamed3336(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -1712,7 +1716,7 @@ var o = new api.EditAllOrderDealsRequest(); buildCounterEditAllOrderDealsRequest++; if (buildCounterEditAllOrderDealsRequest < 3) { - o.deals = buildUnnamed3683(); + o.deals = buildUnnamed3336(); o.proposal = buildProposal(); o.proposalRevisionNumber = "foo"; o.updateAction = "foo"; @@ -1724,7 +1728,7 @@ checkEditAllOrderDealsRequest(api.EditAllOrderDealsRequest o) { buildCounterEditAllOrderDealsRequest++; if (buildCounterEditAllOrderDealsRequest < 3) { - checkUnnamed3683(o.deals); + checkUnnamed3336(o.deals); checkProposal(o.proposal); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); unittest.expect(o.updateAction, unittest.equals('foo')); @@ -1732,14 +1736,14 @@ buildCounterEditAllOrderDealsRequest--; } -buildUnnamed3684() { +buildUnnamed3337() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed3684(core.List<api.MarketplaceDeal> o) { +checkUnnamed3337(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -1750,7 +1754,7 @@ var o = new api.EditAllOrderDealsResponse(); buildCounterEditAllOrderDealsResponse++; if (buildCounterEditAllOrderDealsResponse < 3) { - o.deals = buildUnnamed3684(); + o.deals = buildUnnamed3337(); o.orderRevisionNumber = "foo"; } buildCounterEditAllOrderDealsResponse--; @@ -1760,20 +1764,20 @@ checkEditAllOrderDealsResponse(api.EditAllOrderDealsResponse o) { buildCounterEditAllOrderDealsResponse++; if (buildCounterEditAllOrderDealsResponse < 3) { - checkUnnamed3684(o.deals); + checkUnnamed3337(o.deals); unittest.expect(o.orderRevisionNumber, unittest.equals('foo')); } buildCounterEditAllOrderDealsResponse--; } -buildUnnamed3685() { +buildUnnamed3338() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed3685(core.List<api.Product> o) { +checkUnnamed3338(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -1784,7 +1788,7 @@ var o = new api.GetOffersResponse(); buildCounterGetOffersResponse++; if (buildCounterGetOffersResponse < 3) { - o.products = buildUnnamed3685(); + o.products = buildUnnamed3338(); } buildCounterGetOffersResponse--; return o; @@ -1793,19 +1797,19 @@ checkGetOffersResponse(api.GetOffersResponse o) { buildCounterGetOffersResponse++; if (buildCounterGetOffersResponse < 3) { - checkUnnamed3685(o.products); + checkUnnamed3338(o.products); } buildCounterGetOffersResponse--; } -buildUnnamed3686() { +buildUnnamed3339() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed3686(core.List<api.MarketplaceDeal> o) { +checkUnnamed3339(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -1816,7 +1820,7 @@ var o = new api.GetOrderDealsResponse(); buildCounterGetOrderDealsResponse++; if (buildCounterGetOrderDealsResponse < 3) { - o.deals = buildUnnamed3686(); + o.deals = buildUnnamed3339(); } buildCounterGetOrderDealsResponse--; return o; @@ -1825,19 +1829,19 @@ checkGetOrderDealsResponse(api.GetOrderDealsResponse o) { buildCounterGetOrderDealsResponse++; if (buildCounterGetOrderDealsResponse < 3) { - checkUnnamed3686(o.deals); + checkUnnamed3339(o.deals); } buildCounterGetOrderDealsResponse--; } -buildUnnamed3687() { +buildUnnamed3340() { var o = new core.List<api.MarketplaceNote>(); o.add(buildMarketplaceNote()); o.add(buildMarketplaceNote()); return o; } -checkUnnamed3687(core.List<api.MarketplaceNote> o) { +checkUnnamed3340(core.List<api.MarketplaceNote> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceNote(o[0]); checkMarketplaceNote(o[1]); @@ -1848,7 +1852,7 @@ var o = new api.GetOrderNotesResponse(); buildCounterGetOrderNotesResponse++; if (buildCounterGetOrderNotesResponse < 3) { - o.notes = buildUnnamed3687(); + o.notes = buildUnnamed3340(); } buildCounterGetOrderNotesResponse--; return o; @@ -1857,19 +1861,19 @@ checkGetOrderNotesResponse(api.GetOrderNotesResponse o) { buildCounterGetOrderNotesResponse++; if (buildCounterGetOrderNotesResponse < 3) { - checkUnnamed3687(o.notes); + checkUnnamed3340(o.notes); } buildCounterGetOrderNotesResponse--; } -buildUnnamed3688() { +buildUnnamed3341() { var o = new core.List<api.Proposal>(); o.add(buildProposal()); o.add(buildProposal()); return o; } -checkUnnamed3688(core.List<api.Proposal> o) { +checkUnnamed3341(core.List<api.Proposal> o) { unittest.expect(o, unittest.hasLength(2)); checkProposal(o[0]); checkProposal(o[1]); @@ -1880,7 +1884,7 @@ var o = new api.GetOrdersResponse(); buildCounterGetOrdersResponse++; if (buildCounterGetOrdersResponse < 3) { - o.proposals = buildUnnamed3688(); + o.proposals = buildUnnamed3341(); } buildCounterGetOrdersResponse--; return o; @@ -1889,19 +1893,19 @@ checkGetOrdersResponse(api.GetOrdersResponse o) { buildCounterGetOrdersResponse++; if (buildCounterGetOrdersResponse < 3) { - checkUnnamed3688(o.proposals); + checkUnnamed3341(o.proposals); } buildCounterGetOrdersResponse--; } -buildUnnamed3689() { +buildUnnamed3342() { var o = new core.List<api.PublisherProfileApiProto>(); o.add(buildPublisherProfileApiProto()); o.add(buildPublisherProfileApiProto()); return o; } -checkUnnamed3689(core.List<api.PublisherProfileApiProto> o) { +checkUnnamed3342(core.List<api.PublisherProfileApiProto> o) { unittest.expect(o, unittest.hasLength(2)); checkPublisherProfileApiProto(o[0]); checkPublisherProfileApiProto(o[1]); @@ -1912,7 +1916,7 @@ var o = new api.GetPublisherProfilesByAccountIdResponse(); buildCounterGetPublisherProfilesByAccountIdResponse++; if (buildCounterGetPublisherProfilesByAccountIdResponse < 3) { - o.profiles = buildUnnamed3689(); + o.profiles = buildUnnamed3342(); } buildCounterGetPublisherProfilesByAccountIdResponse--; return o; @@ -1922,32 +1926,32 @@ api.GetPublisherProfilesByAccountIdResponse o) { buildCounterGetPublisherProfilesByAccountIdResponse++; if (buildCounterGetPublisherProfilesByAccountIdResponse < 3) { - checkUnnamed3689(o.profiles); + checkUnnamed3342(o.profiles); } buildCounterGetPublisherProfilesByAccountIdResponse--; } -buildUnnamed3690() { +buildUnnamed3343() { var o = new core.List<api.ContactInformation>(); o.add(buildContactInformation()); o.add(buildContactInformation()); return o; } -checkUnnamed3690(core.List<api.ContactInformation> o) { +checkUnnamed3343(core.List<api.ContactInformation> o) { unittest.expect(o, unittest.hasLength(2)); checkContactInformation(o[0]); checkContactInformation(o[1]); } -buildUnnamed3691() { +buildUnnamed3344() { var o = new core.List<api.SharedTargeting>(); o.add(buildSharedTargeting()); o.add(buildSharedTargeting()); return o; } -checkUnnamed3691(core.List<api.SharedTargeting> o) { +checkUnnamed3344(core.List<api.SharedTargeting> o) { unittest.expect(o, unittest.hasLength(2)); checkSharedTargeting(o[0]); checkSharedTargeting(o[1]); @@ -1978,8 +1982,8 @@ o.productRevisionNumber = "foo"; o.programmaticCreativeSource = "foo"; o.proposalId = "foo"; - o.sellerContacts = buildUnnamed3690(); - o.sharedTargetings = buildUnnamed3691(); + o.sellerContacts = buildUnnamed3343(); + o.sharedTargetings = buildUnnamed3344(); o.syndicationProduct = "foo"; o.terms = buildDealTerms(); o.webPropertyCode = "foo"; @@ -2011,8 +2015,8 @@ unittest.expect(o.productRevisionNumber, unittest.equals('foo')); unittest.expect(o.programmaticCreativeSource, unittest.equals('foo')); unittest.expect(o.proposalId, unittest.equals('foo')); - checkUnnamed3690(o.sellerContacts); - checkUnnamed3691(o.sharedTargetings); + checkUnnamed3343(o.sellerContacts); + checkUnnamed3344(o.sharedTargetings); unittest.expect(o.syndicationProduct, unittest.equals('foo')); checkDealTerms(o.terms); unittest.expect(o.webPropertyCode, unittest.equals('foo')); @@ -2099,7 +2103,7 @@ buildCounterMarketplaceNote--; } -buildUnnamed3692() { +buildUnnamed3345() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -2114,7 +2118,7 @@ return o; } -checkUnnamed3692(core.List<core.Object> o) { +checkUnnamed3345(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -2128,7 +2132,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3693() { +buildUnnamed3346() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -2143,7 +2147,7 @@ return o; } -checkUnnamed3693(core.List<core.Object> o) { +checkUnnamed3346(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -2157,7 +2161,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed3694() { +buildUnnamed3347() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -2172,7 +2176,7 @@ return o; } -checkUnnamed3694(core.List<core.Object> o) { +checkUnnamed3347(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -2186,7 +2190,7 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed3695() { +buildUnnamed3348() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -2201,7 +2205,7 @@ return o; } -checkUnnamed3695(core.List<core.Object> o) { +checkUnnamed3348(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); @@ -2222,11 +2226,11 @@ if (buildCounterPerformanceReport < 3) { o.bidRate = 42.0; o.bidRequestRate = 42.0; - o.calloutStatusRate = buildUnnamed3692(); - o.cookieMatcherStatusRate = buildUnnamed3693(); - o.creativeStatusRate = buildUnnamed3694(); + o.calloutStatusRate = buildUnnamed3345(); + o.cookieMatcherStatusRate = buildUnnamed3346(); + o.creativeStatusRate = buildUnnamed3347(); o.filteredBidRate = 42.0; - o.hostedMatchStatusRate = buildUnnamed3695(); + o.hostedMatchStatusRate = buildUnnamed3348(); o.inventoryMatchRate = 42.0; o.kind = "foo"; o.latency50thPercentile = 42.0; @@ -2252,11 +2256,11 @@ if (buildCounterPerformanceReport < 3) { unittest.expect(o.bidRate, unittest.equals(42.0)); unittest.expect(o.bidRequestRate, unittest.equals(42.0)); - checkUnnamed3692(o.calloutStatusRate); - checkUnnamed3693(o.cookieMatcherStatusRate); - checkUnnamed3694(o.creativeStatusRate); + checkUnnamed3345(o.calloutStatusRate); + checkUnnamed3346(o.cookieMatcherStatusRate); + checkUnnamed3347(o.creativeStatusRate); unittest.expect(o.filteredBidRate, unittest.equals(42.0)); - checkUnnamed3695(o.hostedMatchStatusRate); + checkUnnamed3348(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)); @@ -2276,14 +2280,14 @@ buildCounterPerformanceReport--; } -buildUnnamed3696() { +buildUnnamed3349() { var o = new core.List<api.PerformanceReport>(); o.add(buildPerformanceReport()); o.add(buildPerformanceReport()); return o; } -checkUnnamed3696(core.List<api.PerformanceReport> o) { +checkUnnamed3349(core.List<api.PerformanceReport> o) { unittest.expect(o, unittest.hasLength(2)); checkPerformanceReport(o[0]); checkPerformanceReport(o[1]); @@ -2295,7 +2299,7 @@ buildCounterPerformanceReportList++; if (buildCounterPerformanceReportList < 3) { o.kind = "foo"; - o.performanceReport = buildUnnamed3696(); + o.performanceReport = buildUnnamed3349(); } buildCounterPerformanceReportList--; return o; @@ -2305,19 +2309,19 @@ buildCounterPerformanceReportList++; if (buildCounterPerformanceReportList < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3696(o.performanceReport); + checkUnnamed3349(o.performanceReport); } buildCounterPerformanceReportList--; } -buildUnnamed3697() { +buildUnnamed3350() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3697(core.List<core.String> o) { +checkUnnamed3350(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2344,40 +2348,40 @@ buildCounterPretargetingConfigDimensions--; } -buildUnnamed3698() { +buildUnnamed3351() { var o = new core.List<api.PretargetingConfigDimensions>(); o.add(buildPretargetingConfigDimensions()); o.add(buildPretargetingConfigDimensions()); return o; } -checkUnnamed3698(core.List<api.PretargetingConfigDimensions> o) { +checkUnnamed3351(core.List<api.PretargetingConfigDimensions> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigDimensions(o[0]); checkPretargetingConfigDimensions(o[1]); } -buildUnnamed3699() { +buildUnnamed3352() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3699(core.List<core.String> o) { +checkUnnamed3352(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3700() { +buildUnnamed3353() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3700(core.List<core.String> o) { +checkUnnamed3353(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2405,105 +2409,105 @@ buildCounterPretargetingConfigExcludedPlacements--; } -buildUnnamed3701() { +buildUnnamed3354() { var o = new core.List<api.PretargetingConfigExcludedPlacements>(); o.add(buildPretargetingConfigExcludedPlacements()); o.add(buildPretargetingConfigExcludedPlacements()); return o; } -checkUnnamed3701(core.List<api.PretargetingConfigExcludedPlacements> o) { +checkUnnamed3354(core.List<api.PretargetingConfigExcludedPlacements> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigExcludedPlacements(o[0]); checkPretargetingConfigExcludedPlacements(o[1]); } -buildUnnamed3702() { +buildUnnamed3355() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3702(core.List<core.String> o) { +checkUnnamed3355(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3703() { +buildUnnamed3356() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3703(core.List<core.String> o) { +checkUnnamed3356(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3704() { +buildUnnamed3357() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3704(core.List<core.String> o) { +checkUnnamed3357(core.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() { +buildUnnamed3358() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3705(core.List<core.String> o) { +checkUnnamed3358(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3706() { +buildUnnamed3359() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3706(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')); } -buildUnnamed3707() { +buildUnnamed3360() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3707(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')); } -buildUnnamed3708() { +buildUnnamed3361() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3708(core.List<core.String> o) { +checkUnnamed3361(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2530,92 +2534,92 @@ buildCounterPretargetingConfigPlacements--; } -buildUnnamed3709() { +buildUnnamed3362() { var o = new core.List<api.PretargetingConfigPlacements>(); o.add(buildPretargetingConfigPlacements()); o.add(buildPretargetingConfigPlacements()); return o; } -checkUnnamed3709(core.List<api.PretargetingConfigPlacements> o) { +checkUnnamed3362(core.List<api.PretargetingConfigPlacements> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigPlacements(o[0]); checkPretargetingConfigPlacements(o[1]); } -buildUnnamed3710() { +buildUnnamed3363() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3710(core.List<core.String> o) { +checkUnnamed3363(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3711() { +buildUnnamed3364() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3711(core.List<core.String> o) { +checkUnnamed3364(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3712() { +buildUnnamed3365() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3712(core.List<core.String> o) { +checkUnnamed3365(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3713() { +buildUnnamed3366() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3713(core.List<core.String> o) { +checkUnnamed3366(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3714() { +buildUnnamed3367() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3714(core.List<core.String> o) { +checkUnnamed3367(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3715() { +buildUnnamed3368() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3715(core.List<core.String> o) { +checkUnnamed3368(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2645,14 +2649,14 @@ buildCounterPretargetingConfigVideoPlayerSizes--; } -buildUnnamed3716() { +buildUnnamed3369() { var o = new core.List<api.PretargetingConfigVideoPlayerSizes>(); o.add(buildPretargetingConfigVideoPlayerSizes()); o.add(buildPretargetingConfigVideoPlayerSizes()); return o; } -checkUnnamed3716(core.List<api.PretargetingConfigVideoPlayerSizes> o) { +checkUnnamed3369(core.List<api.PretargetingConfigVideoPlayerSizes> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigVideoPlayerSizes(o[0]); checkPretargetingConfigVideoPlayerSizes(o[1]); @@ -2666,29 +2670,29 @@ o.billingId = "foo"; o.configId = "foo"; o.configName = "foo"; - o.creativeType = buildUnnamed3697(); - o.dimensions = buildUnnamed3698(); - o.excludedContentLabels = buildUnnamed3699(); - o.excludedGeoCriteriaIds = buildUnnamed3700(); - o.excludedPlacements = buildUnnamed3701(); - o.excludedUserLists = buildUnnamed3702(); - o.excludedVerticals = buildUnnamed3703(); - o.geoCriteriaIds = buildUnnamed3704(); + o.creativeType = buildUnnamed3350(); + o.dimensions = buildUnnamed3351(); + o.excludedContentLabels = buildUnnamed3352(); + o.excludedGeoCriteriaIds = buildUnnamed3353(); + o.excludedPlacements = buildUnnamed3354(); + o.excludedUserLists = buildUnnamed3355(); + o.excludedVerticals = buildUnnamed3356(); + o.geoCriteriaIds = buildUnnamed3357(); o.isActive = true; o.kind = "foo"; - o.languages = buildUnnamed3705(); + o.languages = buildUnnamed3358(); o.minimumViewabilityDecile = 42; - o.mobileCarriers = buildUnnamed3706(); - o.mobileDevices = buildUnnamed3707(); - o.mobileOperatingSystemVersions = buildUnnamed3708(); - o.placements = buildUnnamed3709(); - o.platforms = buildUnnamed3710(); - o.supportedCreativeAttributes = buildUnnamed3711(); - o.userIdentifierDataRequired = buildUnnamed3712(); - o.userLists = buildUnnamed3713(); - o.vendorTypes = buildUnnamed3714(); - o.verticals = buildUnnamed3715(); - o.videoPlayerSizes = buildUnnamed3716(); + o.mobileCarriers = buildUnnamed3359(); + o.mobileDevices = buildUnnamed3360(); + o.mobileOperatingSystemVersions = buildUnnamed3361(); + o.placements = buildUnnamed3362(); + o.platforms = buildUnnamed3363(); + o.supportedCreativeAttributes = buildUnnamed3364(); + o.userIdentifierDataRequired = buildUnnamed3365(); + o.userLists = buildUnnamed3366(); + o.vendorTypes = buildUnnamed3367(); + o.verticals = buildUnnamed3368(); + o.videoPlayerSizes = buildUnnamed3369(); } buildCounterPretargetingConfig--; return o; @@ -2700,41 +2704,41 @@ unittest.expect(o.billingId, unittest.equals('foo')); unittest.expect(o.configId, unittest.equals('foo')); unittest.expect(o.configName, unittest.equals('foo')); - checkUnnamed3697(o.creativeType); - checkUnnamed3698(o.dimensions); - checkUnnamed3699(o.excludedContentLabels); - checkUnnamed3700(o.excludedGeoCriteriaIds); - checkUnnamed3701(o.excludedPlacements); - checkUnnamed3702(o.excludedUserLists); - checkUnnamed3703(o.excludedVerticals); - checkUnnamed3704(o.geoCriteriaIds); + checkUnnamed3350(o.creativeType); + checkUnnamed3351(o.dimensions); + checkUnnamed3352(o.excludedContentLabels); + checkUnnamed3353(o.excludedGeoCriteriaIds); + checkUnnamed3354(o.excludedPlacements); + checkUnnamed3355(o.excludedUserLists); + checkUnnamed3356(o.excludedVerticals); + checkUnnamed3357(o.geoCriteriaIds); unittest.expect(o.isActive, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3705(o.languages); + checkUnnamed3358(o.languages); unittest.expect(o.minimumViewabilityDecile, unittest.equals(42)); - checkUnnamed3706(o.mobileCarriers); - checkUnnamed3707(o.mobileDevices); - checkUnnamed3708(o.mobileOperatingSystemVersions); - checkUnnamed3709(o.placements); - checkUnnamed3710(o.platforms); - checkUnnamed3711(o.supportedCreativeAttributes); - checkUnnamed3712(o.userIdentifierDataRequired); - checkUnnamed3713(o.userLists); - checkUnnamed3714(o.vendorTypes); - checkUnnamed3715(o.verticals); - checkUnnamed3716(o.videoPlayerSizes); + checkUnnamed3359(o.mobileCarriers); + checkUnnamed3360(o.mobileDevices); + checkUnnamed3361(o.mobileOperatingSystemVersions); + checkUnnamed3362(o.placements); + checkUnnamed3363(o.platforms); + checkUnnamed3364(o.supportedCreativeAttributes); + checkUnnamed3365(o.userIdentifierDataRequired); + checkUnnamed3366(o.userLists); + checkUnnamed3367(o.vendorTypes); + checkUnnamed3368(o.verticals); + checkUnnamed3369(o.videoPlayerSizes); } buildCounterPretargetingConfig--; } -buildUnnamed3717() { +buildUnnamed3370() { var o = new core.List<api.PretargetingConfig>(); o.add(buildPretargetingConfig()); o.add(buildPretargetingConfig()); return o; } -checkUnnamed3717(core.List<api.PretargetingConfig> o) { +checkUnnamed3370(core.List<api.PretargetingConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfig(o[0]); checkPretargetingConfig(o[1]); @@ -2745,7 +2749,7 @@ var o = new api.PretargetingConfigList(); buildCounterPretargetingConfigList++; if (buildCounterPretargetingConfigList < 3) { - o.items = buildUnnamed3717(); + o.items = buildUnnamed3370(); o.kind = "foo"; } buildCounterPretargetingConfigList--; @@ -2755,7 +2759,7 @@ checkPretargetingConfigList(api.PretargetingConfigList o) { buildCounterPretargetingConfigList++; if (buildCounterPretargetingConfigList < 3) { - checkUnnamed3717(o.items); + checkUnnamed3370(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPretargetingConfigList--; @@ -2832,40 +2836,40 @@ buildCounterPrivateData--; } -buildUnnamed3718() { +buildUnnamed3371() { var o = new core.List<api.ContactInformation>(); o.add(buildContactInformation()); o.add(buildContactInformation()); return o; } -checkUnnamed3718(core.List<api.ContactInformation> o) { +checkUnnamed3371(core.List<api.ContactInformation> o) { unittest.expect(o, unittest.hasLength(2)); checkContactInformation(o[0]); checkContactInformation(o[1]); } -buildUnnamed3719() { +buildUnnamed3372() { var o = new core.List<api.MarketplaceLabel>(); o.add(buildMarketplaceLabel()); o.add(buildMarketplaceLabel()); return o; } -checkUnnamed3719(core.List<api.MarketplaceLabel> o) { +checkUnnamed3372(core.List<api.MarketplaceLabel> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceLabel(o[0]); checkMarketplaceLabel(o[1]); } -buildUnnamed3720() { +buildUnnamed3373() { var o = new core.List<api.SharedTargeting>(); o.add(buildSharedTargeting()); o.add(buildSharedTargeting()); return o; } -checkUnnamed3720(core.List<api.SharedTargeting> o) { +checkUnnamed3373(core.List<api.SharedTargeting> o) { unittest.expect(o, unittest.hasLength(2)); checkSharedTargeting(o[0]); checkSharedTargeting(o[1]); @@ -2879,7 +2883,7 @@ o.billedBuyer = buildBuyer(); o.buyer = buildBuyer(); o.creationTimeMs = "foo"; - o.creatorContacts = buildUnnamed3718(); + o.creatorContacts = buildUnnamed3371(); o.creatorRole = "foo"; o.deliveryControl = buildDeliveryControl(); o.flightEndTimeMs = "foo"; @@ -2887,7 +2891,7 @@ o.hasCreatorSignedOff = true; o.inventorySource = "foo"; o.kind = "foo"; - o.labels = buildUnnamed3719(); + o.labels = buildUnnamed3372(); o.lastUpdateTimeMs = "foo"; o.legacyOfferId = "foo"; o.marketplacePublisherProfileId = "foo"; @@ -2898,7 +2902,7 @@ o.publisherProvidedForecast = buildPublisherProvidedForecast(); o.revisionNumber = "foo"; o.seller = buildSeller(); - o.sharedTargetings = buildUnnamed3720(); + o.sharedTargetings = buildUnnamed3373(); o.state = "foo"; o.syndicationProduct = "foo"; o.terms = buildDealTerms(); @@ -2914,7 +2918,7 @@ checkBuyer(o.billedBuyer); checkBuyer(o.buyer); unittest.expect(o.creationTimeMs, unittest.equals('foo')); - checkUnnamed3718(o.creatorContacts); + checkUnnamed3371(o.creatorContacts); unittest.expect(o.creatorRole, unittest.equals('foo')); checkDeliveryControl(o.deliveryControl); unittest.expect(o.flightEndTimeMs, unittest.equals('foo')); @@ -2922,7 +2926,7 @@ unittest.expect(o.hasCreatorSignedOff, unittest.isTrue); unittest.expect(o.inventorySource, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3719(o.labels); + checkUnnamed3372(o.labels); unittest.expect(o.lastUpdateTimeMs, unittest.equals('foo')); unittest.expect(o.legacyOfferId, unittest.equals('foo')); unittest.expect(o.marketplacePublisherProfileId, unittest.equals('foo')); @@ -2933,7 +2937,7 @@ checkPublisherProvidedForecast(o.publisherProvidedForecast); unittest.expect(o.revisionNumber, unittest.equals('foo')); checkSeller(o.seller); - checkUnnamed3720(o.sharedTargetings); + checkUnnamed3373(o.sharedTargetings); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.syndicationProduct, unittest.equals('foo')); checkDealTerms(o.terms); @@ -2942,53 +2946,53 @@ buildCounterProduct--; } -buildUnnamed3721() { +buildUnnamed3374() { var o = new core.List<api.ContactInformation>(); o.add(buildContactInformation()); o.add(buildContactInformation()); return o; } -checkUnnamed3721(core.List<api.ContactInformation> o) { +checkUnnamed3374(core.List<api.ContactInformation> o) { unittest.expect(o, unittest.hasLength(2)); checkContactInformation(o[0]); checkContactInformation(o[1]); } -buildUnnamed3722() { +buildUnnamed3375() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3722(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')); } -buildUnnamed3723() { +buildUnnamed3376() { var o = new core.List<api.MarketplaceLabel>(); o.add(buildMarketplaceLabel()); o.add(buildMarketplaceLabel()); return o; } -checkUnnamed3723(core.List<api.MarketplaceLabel> o) { +checkUnnamed3376(core.List<api.MarketplaceLabel> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceLabel(o[0]); checkMarketplaceLabel(o[1]); } -buildUnnamed3724() { +buildUnnamed3377() { var o = new core.List<api.ContactInformation>(); o.add(buildContactInformation()); o.add(buildContactInformation()); return o; } -checkUnnamed3724(core.List<api.ContactInformation> o) { +checkUnnamed3377(core.List<api.ContactInformation> o) { unittest.expect(o, unittest.hasLength(2)); checkContactInformation(o[0]); checkContactInformation(o[1]); @@ -3001,16 +3005,16 @@ if (buildCounterProposal < 3) { o.billedBuyer = buildBuyer(); o.buyer = buildBuyer(); - o.buyerContacts = buildUnnamed3721(); + o.buyerContacts = buildUnnamed3374(); o.buyerPrivateData = buildPrivateData(); - o.dbmAdvertiserIds = buildUnnamed3722(); + o.dbmAdvertiserIds = buildUnnamed3375(); o.hasBuyerSignedOff = true; o.hasSellerSignedOff = true; o.inventorySource = "foo"; o.isRenegotiating = true; o.isSetupComplete = true; o.kind = "foo"; - o.labels = buildUnnamed3723(); + o.labels = buildUnnamed3376(); o.lastUpdaterOrCommentorRole = "foo"; o.name = "foo"; o.negotiationId = "foo"; @@ -3021,7 +3025,7 @@ o.revisionNumber = "foo"; o.revisionTimeMs = "foo"; o.seller = buildSeller(); - o.sellerContacts = buildUnnamed3724(); + o.sellerContacts = buildUnnamed3377(); } buildCounterProposal--; return o; @@ -3032,16 +3036,16 @@ if (buildCounterProposal < 3) { checkBuyer(o.billedBuyer); checkBuyer(o.buyer); - checkUnnamed3721(o.buyerContacts); + checkUnnamed3374(o.buyerContacts); checkPrivateData(o.buyerPrivateData); - checkUnnamed3722(o.dbmAdvertiserIds); + checkUnnamed3375(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')); - checkUnnamed3723(o.labels); + checkUnnamed3376(o.labels); unittest.expect(o.lastUpdaterOrCommentorRole, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.negotiationId, unittest.equals('foo')); @@ -3052,32 +3056,32 @@ unittest.expect(o.revisionNumber, unittest.equals('foo')); unittest.expect(o.revisionTimeMs, unittest.equals('foo')); checkSeller(o.seller); - checkUnnamed3724(o.sellerContacts); + checkUnnamed3377(o.sellerContacts); } buildCounterProposal--; } -buildUnnamed3725() { +buildUnnamed3378() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3725(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')); } -buildUnnamed3726() { +buildUnnamed3379() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3726(core.List<core.String> o) { +checkUnnamed3379(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3103,14 +3107,14 @@ o.overview = "foo"; o.profileId = 42; o.programmaticContact = "foo"; - o.publisherDomains = buildUnnamed3725(); + o.publisherDomains = buildUnnamed3378(); o.publisherProfileId = "foo"; o.publisherProvidedForecast = buildPublisherProvidedForecast(); o.rateCardInfoLink = "foo"; o.samplePageLink = "foo"; o.seller = buildSeller(); o.state = "foo"; - o.topHeadlines = buildUnnamed3726(); + o.topHeadlines = buildUnnamed3379(); } buildCounterPublisherProfileApiProto--; return o; @@ -3134,26 +3138,26 @@ unittest.expect(o.overview, unittest.equals('foo')); unittest.expect(o.profileId, unittest.equals(42)); unittest.expect(o.programmaticContact, unittest.equals('foo')); - checkUnnamed3725(o.publisherDomains); + checkUnnamed3378(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')); - checkUnnamed3726(o.topHeadlines); + checkUnnamed3379(o.topHeadlines); } buildCounterPublisherProfileApiProto--; } -buildUnnamed3727() { +buildUnnamed3380() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3727(core.List<api.Dimension> o) { +checkUnnamed3380(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); @@ -3164,7 +3168,7 @@ var o = new api.PublisherProvidedForecast(); buildCounterPublisherProvidedForecast++; if (buildCounterPublisherProvidedForecast < 3) { - o.dimensions = buildUnnamed3727(); + o.dimensions = buildUnnamed3380(); o.weeklyImpressions = "foo"; o.weeklyUniques = "foo"; } @@ -3175,7 +3179,7 @@ checkPublisherProvidedForecast(api.PublisherProvidedForecast o) { buildCounterPublisherProvidedForecast++; if (buildCounterPublisherProvidedForecast < 3) { - checkUnnamed3727(o.dimensions); + checkUnnamed3380(o.dimensions); unittest.expect(o.weeklyImpressions, unittest.equals('foo')); unittest.expect(o.weeklyUniques, unittest.equals('foo')); } @@ -3203,27 +3207,27 @@ buildCounterSeller--; } -buildUnnamed3728() { +buildUnnamed3381() { var o = new core.List<api.TargetingValue>(); o.add(buildTargetingValue()); o.add(buildTargetingValue()); return o; } -checkUnnamed3728(core.List<api.TargetingValue> o) { +checkUnnamed3381(core.List<api.TargetingValue> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingValue(o[0]); checkTargetingValue(o[1]); } -buildUnnamed3729() { +buildUnnamed3382() { var o = new core.List<api.TargetingValue>(); o.add(buildTargetingValue()); o.add(buildTargetingValue()); return o; } -checkUnnamed3729(core.List<api.TargetingValue> o) { +checkUnnamed3382(core.List<api.TargetingValue> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingValue(o[0]); checkTargetingValue(o[1]); @@ -3234,8 +3238,8 @@ var o = new api.SharedTargeting(); buildCounterSharedTargeting++; if (buildCounterSharedTargeting < 3) { - o.exclusions = buildUnnamed3728(); - o.inclusions = buildUnnamed3729(); + o.exclusions = buildUnnamed3381(); + o.inclusions = buildUnnamed3382(); o.key = "foo"; } buildCounterSharedTargeting--; @@ -3245,8 +3249,8 @@ checkSharedTargeting(api.SharedTargeting o) { buildCounterSharedTargeting++; if (buildCounterSharedTargeting < 3) { - checkUnnamed3728(o.exclusions); - checkUnnamed3729(o.inclusions); + checkUnnamed3381(o.exclusions); + checkUnnamed3382(o.inclusions); unittest.expect(o.key, unittest.equals('foo')); } buildCounterSharedTargeting--; @@ -3259,6 +3263,8 @@ if (buildCounterTargetingValue < 3) { o.creativeSizeValue = buildTargetingValueCreativeSize(); o.dayPartTargetingValue = buildTargetingValueDayPartTargeting(); + o.demogAgeCriteriaValue = buildTargetingValueDemogAgeCriteria(); + o.demogGenderCriteriaValue = buildTargetingValueDemogGenderCriteria(); o.longValue = "foo"; o.stringValue = "foo"; } @@ -3271,20 +3277,35 @@ if (buildCounterTargetingValue < 3) { checkTargetingValueCreativeSize(o.creativeSizeValue); checkTargetingValueDayPartTargeting(o.dayPartTargetingValue); + checkTargetingValueDemogAgeCriteria(o.demogAgeCriteriaValue); + checkTargetingValueDemogGenderCriteria(o.demogGenderCriteriaValue); unittest.expect(o.longValue, unittest.equals('foo')); unittest.expect(o.stringValue, unittest.equals('foo')); } buildCounterTargetingValue--; } -buildUnnamed3730() { +buildUnnamed3383() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3383(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed3384() { var o = new core.List<api.TargetingValueSize>(); o.add(buildTargetingValueSize()); o.add(buildTargetingValueSize()); return o; } -checkUnnamed3730(core.List<api.TargetingValueSize> o) { +checkUnnamed3384(core.List<api.TargetingValueSize> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingValueSize(o[0]); checkTargetingValueSize(o[1]); @@ -3295,7 +3316,8 @@ var o = new api.TargetingValueCreativeSize(); buildCounterTargetingValueCreativeSize++; if (buildCounterTargetingValueCreativeSize < 3) { - o.companionSizes = buildUnnamed3730(); + o.allowedFormats = buildUnnamed3383(); + o.companionSizes = buildUnnamed3384(); o.creativeSizeType = "foo"; o.nativeTemplate = "foo"; o.size = buildTargetingValueSize(); @@ -3308,7 +3330,8 @@ checkTargetingValueCreativeSize(api.TargetingValueCreativeSize o) { buildCounterTargetingValueCreativeSize++; if (buildCounterTargetingValueCreativeSize < 3) { - checkUnnamed3730(o.companionSizes); + checkUnnamed3383(o.allowedFormats); + checkUnnamed3384(o.companionSizes); unittest.expect(o.creativeSizeType, unittest.equals('foo')); unittest.expect(o.nativeTemplate, unittest.equals('foo')); checkTargetingValueSize(o.size); @@ -3317,14 +3340,14 @@ buildCounterTargetingValueCreativeSize--; } -buildUnnamed3731() { +buildUnnamed3385() { var o = new core.List<api.TargetingValueDayPartTargetingDayPart>(); o.add(buildTargetingValueDayPartTargetingDayPart()); o.add(buildTargetingValueDayPartTargetingDayPart()); return o; } -checkUnnamed3731(core.List<api.TargetingValueDayPartTargetingDayPart> o) { +checkUnnamed3385(core.List<api.TargetingValueDayPartTargetingDayPart> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingValueDayPartTargetingDayPart(o[0]); checkTargetingValueDayPartTargetingDayPart(o[1]); @@ -3335,7 +3358,7 @@ var o = new api.TargetingValueDayPartTargeting(); buildCounterTargetingValueDayPartTargeting++; if (buildCounterTargetingValueDayPartTargeting < 3) { - o.dayParts = buildUnnamed3731(); + o.dayParts = buildUnnamed3385(); o.timeZoneType = "foo"; } buildCounterTargetingValueDayPartTargeting--; @@ -3345,7 +3368,7 @@ checkTargetingValueDayPartTargeting(api.TargetingValueDayPartTargeting o) { buildCounterTargetingValueDayPartTargeting++; if (buildCounterTargetingValueDayPartTargeting < 3) { - checkUnnamed3731(o.dayParts); + checkUnnamed3385(o.dayParts); unittest.expect(o.timeZoneType, unittest.equals('foo')); } buildCounterTargetingValueDayPartTargeting--; @@ -3379,6 +3402,71 @@ buildCounterTargetingValueDayPartTargetingDayPart--; } +buildUnnamed3386() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3386(core.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 buildCounterTargetingValueDemogAgeCriteria = 0; +buildTargetingValueDemogAgeCriteria() { + var o = new api.TargetingValueDemogAgeCriteria(); + buildCounterTargetingValueDemogAgeCriteria++; + if (buildCounterTargetingValueDemogAgeCriteria < 3) { + o.demogAgeCriteriaIds = buildUnnamed3386(); + } + buildCounterTargetingValueDemogAgeCriteria--; + return o; +} + +checkTargetingValueDemogAgeCriteria(api.TargetingValueDemogAgeCriteria o) { + buildCounterTargetingValueDemogAgeCriteria++; + if (buildCounterTargetingValueDemogAgeCriteria < 3) { + checkUnnamed3386(o.demogAgeCriteriaIds); + } + buildCounterTargetingValueDemogAgeCriteria--; +} + +buildUnnamed3387() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3387(core.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 buildCounterTargetingValueDemogGenderCriteria = 0; +buildTargetingValueDemogGenderCriteria() { + var o = new api.TargetingValueDemogGenderCriteria(); + buildCounterTargetingValueDemogGenderCriteria++; + if (buildCounterTargetingValueDemogGenderCriteria < 3) { + o.demogGenderCriteriaIds = buildUnnamed3387(); + } + buildCounterTargetingValueDemogGenderCriteria--; + return o; +} + +checkTargetingValueDemogGenderCriteria( + api.TargetingValueDemogGenderCriteria o) { + buildCounterTargetingValueDemogGenderCriteria++; + if (buildCounterTargetingValueDemogGenderCriteria < 3) { + checkUnnamed3387(o.demogGenderCriteriaIds); + } + buildCounterTargetingValueDemogGenderCriteria--; +} + core.int buildCounterTargetingValueSize = 0; buildTargetingValueSize() { var o = new api.TargetingValueSize(); @@ -3426,27 +3514,27 @@ buildCounterUpdatePrivateAuctionProposalRequest--; } -buildUnnamed3732() { +buildUnnamed3388() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3732(core.List<core.int> o) { +checkUnnamed3388(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)); } -buildUnnamed3733() { +buildUnnamed3389() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3733(core.List<core.String> o) { +checkUnnamed3389(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4061,6 +4149,22 @@ }); }); + unittest.group("obj-schema-TargetingValueDemogAgeCriteria", () { + unittest.test("to-json--from-json", () { + var o = buildTargetingValueDemogAgeCriteria(); + var od = new api.TargetingValueDemogAgeCriteria.fromJson(o.toJson()); + checkTargetingValueDemogAgeCriteria(od); + }); + }); + + unittest.group("obj-schema-TargetingValueDemogGenderCriteria", () { + unittest.test("to-json--from-json", () { + var o = buildTargetingValueDemogGenderCriteria(); + var od = new api.TargetingValueDemogGenderCriteria.fromJson(o.toJson()); + checkTargetingValueDemogGenderCriteria(od); + }); + }); + unittest.group("obj-schema-TargetingValueSize", () { unittest.test("to-json--from-json", () { var o = buildTargetingValueSize(); @@ -4836,8 +4940,8 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; - var arg_accountId = buildUnnamed3732(); - var arg_buyerCreativeId = buildUnnamed3733(); + var arg_accountId = buildUnnamed3388(); + var arg_buyerCreativeId = buildUnnamed3389(); var arg_dealsStatusFilter = "foo"; var arg_maxResults = 42; var arg_openAuctionStatusFilter = "foo";
diff --git a/generated/googleapis/test/adexchangeseller/v1_1_test.dart b/generated/googleapis/test/adexchangeseller/v1_1_test.dart index 9ebed7a..bf271fe 100644 --- a/generated/googleapis/test/adexchangeseller/v1_1_test.dart +++ b/generated/googleapis/test/adexchangeseller/v1_1_test.dart
@@ -100,14 +100,14 @@ buildCounterAdClient--; } -buildUnnamed1479() { +buildUnnamed14() { var o = new core.List<api.AdClient>(); o.add(buildAdClient()); o.add(buildAdClient()); return o; } -checkUnnamed1479(core.List<api.AdClient> o) { +checkUnnamed14(core.List<api.AdClient> o) { unittest.expect(o, unittest.hasLength(2)); checkAdClient(o[0]); checkAdClient(o[1]); @@ -119,7 +119,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { o.etag = "foo"; - o.items = buildUnnamed1479(); + o.items = buildUnnamed14(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -131,7 +131,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1479(o.items); + checkUnnamed14(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -165,14 +165,14 @@ buildCounterAdUnit--; } -buildUnnamed1480() { +buildUnnamed15() { var o = new core.List<api.AdUnit>(); o.add(buildAdUnit()); o.add(buildAdUnit()); return o; } -checkUnnamed1480(core.List<api.AdUnit> o) { +checkUnnamed15(core.List<api.AdUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkAdUnit(o[0]); checkAdUnit(o[1]); @@ -184,7 +184,7 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { o.etag = "foo"; - o.items = buildUnnamed1480(); + o.items = buildUnnamed15(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -196,7 +196,7 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1480(o.items); + checkUnnamed15(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -230,14 +230,14 @@ buildCounterAlert--; } -buildUnnamed1481() { +buildUnnamed16() { var o = new core.List<api.Alert>(); o.add(buildAlert()); o.add(buildAlert()); return o; } -checkUnnamed1481(core.List<api.Alert> o) { +checkUnnamed16(core.List<api.Alert> o) { unittest.expect(o, unittest.hasLength(2)); checkAlert(o[0]); checkAlert(o[1]); @@ -248,7 +248,7 @@ var o = new api.Alerts(); buildCounterAlerts++; if (buildCounterAlerts < 3) { - o.items = buildUnnamed1481(); + o.items = buildUnnamed16(); o.kind = "foo"; } buildCounterAlerts--; @@ -258,7 +258,7 @@ checkAlerts(api.Alerts o) { buildCounterAlerts++; if (buildCounterAlerts < 3) { - checkUnnamed1481(o.items); + checkUnnamed16(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAlerts--; @@ -316,14 +316,14 @@ buildCounterCustomChannel--; } -buildUnnamed1482() { +buildUnnamed17() { var o = new core.List<api.CustomChannel>(); o.add(buildCustomChannel()); o.add(buildCustomChannel()); return o; } -checkUnnamed1482(core.List<api.CustomChannel> o) { +checkUnnamed17(core.List<api.CustomChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomChannel(o[0]); checkCustomChannel(o[1]); @@ -335,7 +335,7 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed1482(); + o.items = buildUnnamed17(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -347,21 +347,21 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1482(o.items); + checkUnnamed17(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomChannels--; } -buildUnnamed1483() { +buildUnnamed18() { var o = new core.List<api.ReportingMetadataEntry>(); o.add(buildReportingMetadataEntry()); o.add(buildReportingMetadataEntry()); return o; } -checkUnnamed1483(core.List<api.ReportingMetadataEntry> o) { +checkUnnamed18(core.List<api.ReportingMetadataEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkReportingMetadataEntry(o[0]); checkReportingMetadataEntry(o[1]); @@ -372,7 +372,7 @@ var o = new api.Metadata(); buildCounterMetadata++; if (buildCounterMetadata < 3) { - o.items = buildUnnamed1483(); + o.items = buildUnnamed18(); o.kind = "foo"; } buildCounterMetadata--; @@ -382,7 +382,7 @@ checkMetadata(api.Metadata o) { buildCounterMetadata++; if (buildCounterMetadata < 3) { - checkUnnamed1483(o.items); + checkUnnamed18(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; @@ -421,14 +421,14 @@ buildCounterPreferredDeal--; } -buildUnnamed1484() { +buildUnnamed19() { var o = new core.List<api.PreferredDeal>(); o.add(buildPreferredDeal()); o.add(buildPreferredDeal()); return o; } -checkUnnamed1484(core.List<api.PreferredDeal> o) { +checkUnnamed19(core.List<api.PreferredDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkPreferredDeal(o[0]); checkPreferredDeal(o[1]); @@ -439,7 +439,7 @@ var o = new api.PreferredDeals(); buildCounterPreferredDeals++; if (buildCounterPreferredDeals < 3) { - o.items = buildUnnamed1484(); + o.items = buildUnnamed19(); o.kind = "foo"; } buildCounterPreferredDeals--; @@ -449,20 +449,20 @@ checkPreferredDeals(api.PreferredDeals o) { buildCounterPreferredDeals++; if (buildCounterPreferredDeals < 3) { - checkUnnamed1484(o.items); + checkUnnamed19(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPreferredDeals--; } -buildUnnamed1485() { +buildUnnamed20() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1485(core.List<core.String> o) { +checkUnnamed20(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -491,66 +491,66 @@ buildCounterReportHeaders--; } -buildUnnamed1486() { +buildUnnamed21() { var o = new core.List<api.ReportHeaders>(); o.add(buildReportHeaders()); o.add(buildReportHeaders()); return o; } -checkUnnamed1486(core.List<api.ReportHeaders> o) { +checkUnnamed21(core.List<api.ReportHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkReportHeaders(o[0]); checkReportHeaders(o[1]); } -buildUnnamed1487() { +buildUnnamed22() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1487(core.List<core.String> o) { +checkUnnamed22(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1488() { +buildUnnamed23() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed1487()); - o.add(buildUnnamed1487()); + o.add(buildUnnamed22()); + o.add(buildUnnamed22()); return o; } -checkUnnamed1488(core.List<core.List<core.String>> o) { +checkUnnamed23(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1487(o[0]); - checkUnnamed1487(o[1]); + checkUnnamed22(o[0]); + checkUnnamed22(o[1]); } -buildUnnamed1489() { +buildUnnamed24() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1489(core.List<core.String> o) { +checkUnnamed24(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1490() { +buildUnnamed25() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1490(core.List<core.String> o) { +checkUnnamed25(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -561,13 +561,13 @@ var o = new api.Report(); buildCounterReport++; if (buildCounterReport < 3) { - o.averages = buildUnnamed1485(); - o.headers = buildUnnamed1486(); + o.averages = buildUnnamed20(); + o.headers = buildUnnamed21(); o.kind = "foo"; - o.rows = buildUnnamed1488(); + o.rows = buildUnnamed23(); o.totalMatchedRows = "foo"; - o.totals = buildUnnamed1489(); - o.warnings = buildUnnamed1490(); + o.totals = buildUnnamed24(); + o.warnings = buildUnnamed25(); } buildCounterReport--; return o; @@ -576,77 +576,77 @@ checkReport(api.Report o) { buildCounterReport++; if (buildCounterReport < 3) { - checkUnnamed1485(o.averages); - checkUnnamed1486(o.headers); + checkUnnamed20(o.averages); + checkUnnamed21(o.headers); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1488(o.rows); + checkUnnamed23(o.rows); unittest.expect(o.totalMatchedRows, unittest.equals('foo')); - checkUnnamed1489(o.totals); - checkUnnamed1490(o.warnings); + checkUnnamed24(o.totals); + checkUnnamed25(o.warnings); } buildCounterReport--; } -buildUnnamed1491() { +buildUnnamed26() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1491(core.List<core.String> o) { +checkUnnamed26(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1492() { +buildUnnamed27() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1492(core.List<core.String> o) { +checkUnnamed27(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1493() { +buildUnnamed28() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1493(core.List<core.String> o) { +checkUnnamed28(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1494() { +buildUnnamed29() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1494(core.List<core.String> o) { +checkUnnamed29(core.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() { +buildUnnamed30() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1495(core.List<core.String> o) { +checkUnnamed30(core.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,13 +657,13 @@ var o = new api.ReportingMetadataEntry(); buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - o.compatibleDimensions = buildUnnamed1491(); - o.compatibleMetrics = buildUnnamed1492(); + o.compatibleDimensions = buildUnnamed26(); + o.compatibleMetrics = buildUnnamed27(); o.id = "foo"; o.kind = "foo"; - o.requiredDimensions = buildUnnamed1493(); - o.requiredMetrics = buildUnnamed1494(); - o.supportedProducts = buildUnnamed1495(); + o.requiredDimensions = buildUnnamed28(); + o.requiredMetrics = buildUnnamed29(); + o.supportedProducts = buildUnnamed30(); } buildCounterReportingMetadataEntry--; return o; @@ -672,13 +672,13 @@ checkReportingMetadataEntry(api.ReportingMetadataEntry o) { buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - checkUnnamed1491(o.compatibleDimensions); - checkUnnamed1492(o.compatibleMetrics); + checkUnnamed26(o.compatibleDimensions); + checkUnnamed27(o.compatibleMetrics); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1493(o.requiredDimensions); - checkUnnamed1494(o.requiredMetrics); - checkUnnamed1495(o.supportedProducts); + checkUnnamed28(o.requiredDimensions); + checkUnnamed29(o.requiredMetrics); + checkUnnamed30(o.supportedProducts); } buildCounterReportingMetadataEntry--; } @@ -706,14 +706,14 @@ buildCounterSavedReport--; } -buildUnnamed1496() { +buildUnnamed31() { var o = new core.List<api.SavedReport>(); o.add(buildSavedReport()); o.add(buildSavedReport()); return o; } -checkUnnamed1496(core.List<api.SavedReport> o) { +checkUnnamed31(core.List<api.SavedReport> o) { unittest.expect(o, unittest.hasLength(2)); checkSavedReport(o[0]); checkSavedReport(o[1]); @@ -725,7 +725,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { o.etag = "foo"; - o.items = buildUnnamed1496(); + o.items = buildUnnamed31(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -737,7 +737,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1496(o.items); + checkUnnamed31(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -767,14 +767,14 @@ buildCounterUrlChannel--; } -buildUnnamed1497() { +buildUnnamed32() { var o = new core.List<api.UrlChannel>(); o.add(buildUrlChannel()); o.add(buildUrlChannel()); return o; } -checkUnnamed1497(core.List<api.UrlChannel> o) { +checkUnnamed32(core.List<api.UrlChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlChannel(o[0]); checkUrlChannel(o[1]); @@ -786,7 +786,7 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed1497(); + o.items = buildUnnamed32(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -798,60 +798,60 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1497(o.items); + checkUnnamed32(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterUrlChannels--; } -buildUnnamed1498() { +buildUnnamed33() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1498(core.List<core.String> o) { +checkUnnamed33(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1499() { +buildUnnamed34() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1499(core.List<core.String> o) { +checkUnnamed34(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1500() { +buildUnnamed35() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1500(core.List<core.String> o) { +checkUnnamed35(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1501() { +buildUnnamed36() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1501(core.List<core.String> o) { +checkUnnamed36(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1877,12 +1877,12 @@ api.ReportsResourceApi res = new api.AdexchangesellerApi(mock).reports; var arg_startDate = "foo"; var arg_endDate = "foo"; - var arg_dimension = buildUnnamed1498(); - var arg_filter = buildUnnamed1499(); + var arg_dimension = buildUnnamed33(); + var arg_filter = buildUnnamed34(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed1500(); - var arg_sort = buildUnnamed1501(); + var arg_metric = buildUnnamed35(); + var arg_sort = buildUnnamed36(); var arg_startIndex = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
diff --git a/generated/googleapis/test/adexchangeseller/v2_0_test.dart b/generated/googleapis/test/adexchangeseller/v2_0_test.dart index 78385d4..4c6f080 100644 --- a/generated/googleapis/test/adexchangeseller/v2_0_test.dart +++ b/generated/googleapis/test/adexchangeseller/v2_0_test.dart
@@ -73,14 +73,14 @@ buildCounterAccount--; } -buildUnnamed1233() { +buildUnnamed4406() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed1233(core.List<api.Account> o) { +checkUnnamed4406(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -92,7 +92,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { o.etag = "foo"; - o.items = buildUnnamed1233(); + o.items = buildUnnamed4406(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -104,7 +104,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1233(o.items); + checkUnnamed4406(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -138,14 +138,14 @@ buildCounterAdClient--; } -buildUnnamed1234() { +buildUnnamed4407() { var o = new core.List<api.AdClient>(); o.add(buildAdClient()); o.add(buildAdClient()); return o; } -checkUnnamed1234(core.List<api.AdClient> o) { +checkUnnamed4407(core.List<api.AdClient> o) { unittest.expect(o, unittest.hasLength(2)); checkAdClient(o[0]); checkAdClient(o[1]); @@ -157,7 +157,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { o.etag = "foo"; - o.items = buildUnnamed1234(); + o.items = buildUnnamed4407(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -169,7 +169,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1234(o.items); + checkUnnamed4407(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -203,14 +203,14 @@ buildCounterAlert--; } -buildUnnamed1235() { +buildUnnamed4408() { var o = new core.List<api.Alert>(); o.add(buildAlert()); o.add(buildAlert()); return o; } -checkUnnamed1235(core.List<api.Alert> o) { +checkUnnamed4408(core.List<api.Alert> o) { unittest.expect(o, unittest.hasLength(2)); checkAlert(o[0]); checkAlert(o[1]); @@ -221,7 +221,7 @@ var o = new api.Alerts(); buildCounterAlerts++; if (buildCounterAlerts < 3) { - o.items = buildUnnamed1235(); + o.items = buildUnnamed4408(); o.kind = "foo"; } buildCounterAlerts--; @@ -231,7 +231,7 @@ checkAlerts(api.Alerts o) { buildCounterAlerts++; if (buildCounterAlerts < 3) { - checkUnnamed1235(o.items); + checkUnnamed4408(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAlerts--; @@ -289,14 +289,14 @@ buildCounterCustomChannel--; } -buildUnnamed1236() { +buildUnnamed4409() { var o = new core.List<api.CustomChannel>(); o.add(buildCustomChannel()); o.add(buildCustomChannel()); return o; } -checkUnnamed1236(core.List<api.CustomChannel> o) { +checkUnnamed4409(core.List<api.CustomChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomChannel(o[0]); checkCustomChannel(o[1]); @@ -308,7 +308,7 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed1236(); + o.items = buildUnnamed4409(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -320,21 +320,21 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1236(o.items); + checkUnnamed4409(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomChannels--; } -buildUnnamed1237() { +buildUnnamed4410() { var o = new core.List<api.ReportingMetadataEntry>(); o.add(buildReportingMetadataEntry()); o.add(buildReportingMetadataEntry()); return o; } -checkUnnamed1237(core.List<api.ReportingMetadataEntry> o) { +checkUnnamed4410(core.List<api.ReportingMetadataEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkReportingMetadataEntry(o[0]); checkReportingMetadataEntry(o[1]); @@ -345,7 +345,7 @@ var o = new api.Metadata(); buildCounterMetadata++; if (buildCounterMetadata < 3) { - o.items = buildUnnamed1237(); + o.items = buildUnnamed4410(); o.kind = "foo"; } buildCounterMetadata--; @@ -355,7 +355,7 @@ checkMetadata(api.Metadata o) { buildCounterMetadata++; if (buildCounterMetadata < 3) { - checkUnnamed1237(o.items); + checkUnnamed4410(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; @@ -394,14 +394,14 @@ buildCounterPreferredDeal--; } -buildUnnamed1238() { +buildUnnamed4411() { var o = new core.List<api.PreferredDeal>(); o.add(buildPreferredDeal()); o.add(buildPreferredDeal()); return o; } -checkUnnamed1238(core.List<api.PreferredDeal> o) { +checkUnnamed4411(core.List<api.PreferredDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkPreferredDeal(o[0]); checkPreferredDeal(o[1]); @@ -412,7 +412,7 @@ var o = new api.PreferredDeals(); buildCounterPreferredDeals++; if (buildCounterPreferredDeals < 3) { - o.items = buildUnnamed1238(); + o.items = buildUnnamed4411(); o.kind = "foo"; } buildCounterPreferredDeals--; @@ -422,20 +422,20 @@ checkPreferredDeals(api.PreferredDeals o) { buildCounterPreferredDeals++; if (buildCounterPreferredDeals < 3) { - checkUnnamed1238(o.items); + checkUnnamed4411(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPreferredDeals--; } -buildUnnamed1239() { +buildUnnamed4412() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1239(core.List<core.String> o) { +checkUnnamed4412(core.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,66 +464,66 @@ buildCounterReportHeaders--; } -buildUnnamed1240() { +buildUnnamed4413() { var o = new core.List<api.ReportHeaders>(); o.add(buildReportHeaders()); o.add(buildReportHeaders()); return o; } -checkUnnamed1240(core.List<api.ReportHeaders> o) { +checkUnnamed4413(core.List<api.ReportHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkReportHeaders(o[0]); checkReportHeaders(o[1]); } -buildUnnamed1241() { +buildUnnamed4414() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1241(core.List<core.String> o) { +checkUnnamed4414(core.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() { +buildUnnamed4415() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed1241()); - o.add(buildUnnamed1241()); + o.add(buildUnnamed4414()); + o.add(buildUnnamed4414()); return o; } -checkUnnamed1242(core.List<core.List<core.String>> o) { +checkUnnamed4415(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1241(o[0]); - checkUnnamed1241(o[1]); + checkUnnamed4414(o[0]); + checkUnnamed4414(o[1]); } -buildUnnamed1243() { +buildUnnamed4416() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1243(core.List<core.String> o) { +checkUnnamed4416(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1244() { +buildUnnamed4417() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1244(core.List<core.String> o) { +checkUnnamed4417(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -534,13 +534,13 @@ var o = new api.Report(); buildCounterReport++; if (buildCounterReport < 3) { - o.averages = buildUnnamed1239(); - o.headers = buildUnnamed1240(); + o.averages = buildUnnamed4412(); + o.headers = buildUnnamed4413(); o.kind = "foo"; - o.rows = buildUnnamed1242(); + o.rows = buildUnnamed4415(); o.totalMatchedRows = "foo"; - o.totals = buildUnnamed1243(); - o.warnings = buildUnnamed1244(); + o.totals = buildUnnamed4416(); + o.warnings = buildUnnamed4417(); } buildCounterReport--; return o; @@ -549,77 +549,77 @@ checkReport(api.Report o) { buildCounterReport++; if (buildCounterReport < 3) { - checkUnnamed1239(o.averages); - checkUnnamed1240(o.headers); + checkUnnamed4412(o.averages); + checkUnnamed4413(o.headers); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1242(o.rows); + checkUnnamed4415(o.rows); unittest.expect(o.totalMatchedRows, unittest.equals('foo')); - checkUnnamed1243(o.totals); - checkUnnamed1244(o.warnings); + checkUnnamed4416(o.totals); + checkUnnamed4417(o.warnings); } buildCounterReport--; } -buildUnnamed1245() { +buildUnnamed4418() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1245(core.List<core.String> o) { +checkUnnamed4418(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1246() { +buildUnnamed4419() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1246(core.List<core.String> o) { +checkUnnamed4419(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1247() { +buildUnnamed4420() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1247(core.List<core.String> o) { +checkUnnamed4420(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1248() { +buildUnnamed4421() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1248(core.List<core.String> o) { +checkUnnamed4421(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1249() { +buildUnnamed4422() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1249(core.List<core.String> o) { +checkUnnamed4422(core.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.ReportingMetadataEntry(); buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - o.compatibleDimensions = buildUnnamed1245(); - o.compatibleMetrics = buildUnnamed1246(); + o.compatibleDimensions = buildUnnamed4418(); + o.compatibleMetrics = buildUnnamed4419(); o.id = "foo"; o.kind = "foo"; - o.requiredDimensions = buildUnnamed1247(); - o.requiredMetrics = buildUnnamed1248(); - o.supportedProducts = buildUnnamed1249(); + o.requiredDimensions = buildUnnamed4420(); + o.requiredMetrics = buildUnnamed4421(); + o.supportedProducts = buildUnnamed4422(); } buildCounterReportingMetadataEntry--; return o; @@ -645,13 +645,13 @@ checkReportingMetadataEntry(api.ReportingMetadataEntry o) { buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - checkUnnamed1245(o.compatibleDimensions); - checkUnnamed1246(o.compatibleMetrics); + checkUnnamed4418(o.compatibleDimensions); + checkUnnamed4419(o.compatibleMetrics); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1247(o.requiredDimensions); - checkUnnamed1248(o.requiredMetrics); - checkUnnamed1249(o.supportedProducts); + checkUnnamed4420(o.requiredDimensions); + checkUnnamed4421(o.requiredMetrics); + checkUnnamed4422(o.supportedProducts); } buildCounterReportingMetadataEntry--; } @@ -679,14 +679,14 @@ buildCounterSavedReport--; } -buildUnnamed1250() { +buildUnnamed4423() { var o = new core.List<api.SavedReport>(); o.add(buildSavedReport()); o.add(buildSavedReport()); return o; } -checkUnnamed1250(core.List<api.SavedReport> o) { +checkUnnamed4423(core.List<api.SavedReport> o) { unittest.expect(o, unittest.hasLength(2)); checkSavedReport(o[0]); checkSavedReport(o[1]); @@ -698,7 +698,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { o.etag = "foo"; - o.items = buildUnnamed1250(); + o.items = buildUnnamed4423(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -710,7 +710,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1250(o.items); + checkUnnamed4423(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -740,14 +740,14 @@ buildCounterUrlChannel--; } -buildUnnamed1251() { +buildUnnamed4424() { var o = new core.List<api.UrlChannel>(); o.add(buildUrlChannel()); o.add(buildUrlChannel()); return o; } -checkUnnamed1251(core.List<api.UrlChannel> o) { +checkUnnamed4424(core.List<api.UrlChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlChannel(o[0]); checkUrlChannel(o[1]); @@ -759,7 +759,7 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed1251(); + o.items = buildUnnamed4424(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -771,60 +771,60 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1251(o.items); + checkUnnamed4424(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterUrlChannels--; } -buildUnnamed1252() { +buildUnnamed4425() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1252(core.List<core.String> o) { +checkUnnamed4425(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1253() { +buildUnnamed4426() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1253(core.List<core.String> o) { +checkUnnamed4426(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1254() { +buildUnnamed4427() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1254(core.List<core.String> o) { +checkUnnamed4427(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1255() { +buildUnnamed4428() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1255(core.List<core.String> o) { +checkUnnamed4428(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1678,12 +1678,12 @@ var arg_accountId = "foo"; var arg_startDate = "foo"; var arg_endDate = "foo"; - var arg_dimension = buildUnnamed1252(); - var arg_filter = buildUnnamed1253(); + var arg_dimension = buildUnnamed4425(); + var arg_filter = buildUnnamed4426(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed1254(); - var arg_sort = buildUnnamed1255(); + var arg_metric = buildUnnamed4427(); + var arg_sort = buildUnnamed4428(); var arg_startIndex = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
diff --git a/generated/googleapis/test/adexperiencereport/v1_test.dart b/generated/googleapis/test/adexperiencereport/v1_test.dart index 01cba78..90d0310 100644 --- a/generated/googleapis/test/adexperiencereport/v1_test.dart +++ b/generated/googleapis/test/adexperiencereport/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3457() { +buildUnnamed3094() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3457(core.List<core.String> o) { +checkUnnamed3094(core.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.enforcementTime = "foo"; o.filterStatus = "foo"; o.lastChangeTime = "foo"; - o.region = buildUnnamed3457(); + o.region = buildUnnamed3094(); o.reportUrl = "foo"; o.underReview = true; } @@ -87,7 +87,7 @@ unittest.expect(o.enforcementTime, unittest.equals('foo')); unittest.expect(o.filterStatus, unittest.equals('foo')); unittest.expect(o.lastChangeTime, unittest.equals('foo')); - checkUnnamed3457(o.region); + checkUnnamed3094(o.region); unittest.expect(o.reportUrl, unittest.equals('foo')); unittest.expect(o.underReview, unittest.isTrue); } @@ -117,14 +117,14 @@ buildCounterSiteSummaryResponse--; } -buildUnnamed3458() { +buildUnnamed3095() { var o = new core.List<api.SiteSummaryResponse>(); o.add(buildSiteSummaryResponse()); o.add(buildSiteSummaryResponse()); return o; } -checkUnnamed3458(core.List<api.SiteSummaryResponse> o) { +checkUnnamed3095(core.List<api.SiteSummaryResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkSiteSummaryResponse(o[0]); checkSiteSummaryResponse(o[1]); @@ -135,7 +135,7 @@ var o = new api.ViolatingSitesResponse(); buildCounterViolatingSitesResponse++; if (buildCounterViolatingSitesResponse < 3) { - o.violatingSites = buildUnnamed3458(); + o.violatingSites = buildUnnamed3095(); } buildCounterViolatingSitesResponse--; return o; @@ -144,7 +144,7 @@ checkViolatingSitesResponse(api.ViolatingSitesResponse o) { buildCounterViolatingSitesResponse++; if (buildCounterViolatingSitesResponse < 3) { - checkUnnamed3458(o.violatingSites); + checkUnnamed3095(o.violatingSites); } buildCounterViolatingSitesResponse--; }
diff --git a/generated/googleapis/test/admin/datatransfer_v1_test.dart b/generated/googleapis/test/admin/datatransfer_v1_test.dart index 6a8ac82..4f9e070 100644 --- a/generated/googleapis/test/admin/datatransfer_v1_test.dart +++ b/generated/googleapis/test/admin/datatransfer_v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed0() { +buildUnnamed1319() { var o = new core.List<api.ApplicationTransferParam>(); o.add(buildApplicationTransferParam()); o.add(buildApplicationTransferParam()); return o; } -checkUnnamed0(core.List<api.ApplicationTransferParam> o) { +checkUnnamed1319(core.List<api.ApplicationTransferParam> o) { unittest.expect(o, unittest.hasLength(2)); checkApplicationTransferParam(o[0]); checkApplicationTransferParam(o[1]); @@ -72,7 +72,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.transferParams = buildUnnamed0(); + o.transferParams = buildUnnamed1319(); } buildCounterApplication--; return o; @@ -85,19 +85,19 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed0(o.transferParams); + checkUnnamed1319(o.transferParams); } buildCounterApplication--; } -buildUnnamed1() { +buildUnnamed1320() { var o = new core.List<api.ApplicationTransferParam>(); o.add(buildApplicationTransferParam()); o.add(buildApplicationTransferParam()); return o; } -checkUnnamed1(core.List<api.ApplicationTransferParam> o) { +checkUnnamed1320(core.List<api.ApplicationTransferParam> o) { unittest.expect(o, unittest.hasLength(2)); checkApplicationTransferParam(o[0]); checkApplicationTransferParam(o[1]); @@ -109,7 +109,7 @@ buildCounterApplicationDataTransfer++; if (buildCounterApplicationDataTransfer < 3) { o.applicationId = "foo"; - o.applicationTransferParams = buildUnnamed1(); + o.applicationTransferParams = buildUnnamed1320(); o.applicationTransferStatus = "foo"; } buildCounterApplicationDataTransfer--; @@ -120,20 +120,20 @@ buildCounterApplicationDataTransfer++; if (buildCounterApplicationDataTransfer < 3) { unittest.expect(o.applicationId, unittest.equals('foo')); - checkUnnamed1(o.applicationTransferParams); + checkUnnamed1320(o.applicationTransferParams); unittest.expect(o.applicationTransferStatus, unittest.equals('foo')); } buildCounterApplicationDataTransfer--; } -buildUnnamed2() { +buildUnnamed1321() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2(core.List<core.String> o) { +checkUnnamed1321(core.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 +145,7 @@ buildCounterApplicationTransferParam++; if (buildCounterApplicationTransferParam < 3) { o.key = "foo"; - o.value = buildUnnamed2(); + o.value = buildUnnamed1321(); } buildCounterApplicationTransferParam--; return o; @@ -155,19 +155,19 @@ buildCounterApplicationTransferParam++; if (buildCounterApplicationTransferParam < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed2(o.value); + checkUnnamed1321(o.value); } buildCounterApplicationTransferParam--; } -buildUnnamed3() { +buildUnnamed1322() { var o = new core.List<api.Application>(); o.add(buildApplication()); o.add(buildApplication()); return o; } -checkUnnamed3(core.List<api.Application> o) { +checkUnnamed1322(core.List<api.Application> o) { unittest.expect(o, unittest.hasLength(2)); checkApplication(o[0]); checkApplication(o[1]); @@ -178,7 +178,7 @@ var o = new api.ApplicationsListResponse(); buildCounterApplicationsListResponse++; if (buildCounterApplicationsListResponse < 3) { - o.applications = buildUnnamed3(); + o.applications = buildUnnamed1322(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -190,7 +190,7 @@ checkApplicationsListResponse(api.ApplicationsListResponse o) { buildCounterApplicationsListResponse++; if (buildCounterApplicationsListResponse < 3) { - checkUnnamed3(o.applications); + checkUnnamed1322(o.applications); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -198,14 +198,14 @@ buildCounterApplicationsListResponse--; } -buildUnnamed4() { +buildUnnamed1323() { var o = new core.List<api.ApplicationDataTransfer>(); o.add(buildApplicationDataTransfer()); o.add(buildApplicationDataTransfer()); return o; } -checkUnnamed4(core.List<api.ApplicationDataTransfer> o) { +checkUnnamed1323(core.List<api.ApplicationDataTransfer> o) { unittest.expect(o, unittest.hasLength(2)); checkApplicationDataTransfer(o[0]); checkApplicationDataTransfer(o[1]); @@ -216,7 +216,7 @@ var o = new api.DataTransfer(); buildCounterDataTransfer++; if (buildCounterDataTransfer < 3) { - o.applicationDataTransfers = buildUnnamed4(); + o.applicationDataTransfers = buildUnnamed1323(); o.etag = "foo"; o.id = "foo"; o.kind = "foo"; @@ -232,7 +232,7 @@ checkDataTransfer(api.DataTransfer o) { buildCounterDataTransfer++; if (buildCounterDataTransfer < 3) { - checkUnnamed4(o.applicationDataTransfers); + checkUnnamed1323(o.applicationDataTransfers); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -245,14 +245,14 @@ buildCounterDataTransfer--; } -buildUnnamed5() { +buildUnnamed1324() { var o = new core.List<api.DataTransfer>(); o.add(buildDataTransfer()); o.add(buildDataTransfer()); return o; } -checkUnnamed5(core.List<api.DataTransfer> o) { +checkUnnamed1324(core.List<api.DataTransfer> o) { unittest.expect(o, unittest.hasLength(2)); checkDataTransfer(o[0]); checkDataTransfer(o[1]); @@ -263,7 +263,7 @@ var o = new api.DataTransfersListResponse(); buildCounterDataTransfersListResponse++; if (buildCounterDataTransfersListResponse < 3) { - o.dataTransfers = buildUnnamed5(); + o.dataTransfers = buildUnnamed1324(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -275,7 +275,7 @@ checkDataTransfersListResponse(api.DataTransfersListResponse o) { buildCounterDataTransfersListResponse++; if (buildCounterDataTransfersListResponse < 3) { - checkUnnamed5(o.dataTransfers); + checkUnnamed1324(o.dataTransfers); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo'));
diff --git a/generated/googleapis/test/admin/directory_v1_test.dart b/generated/googleapis/test/admin/directory_v1_test.dart index a052637..50cf6f9 100644 --- a/generated/googleapis/test/admin/directory_v1_test.dart +++ b/generated/googleapis/test/admin/directory_v1_test.dart
@@ -77,7 +77,7 @@ buildCounterAlias--; } -buildUnnamed1784() { +buildUnnamed4065() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -92,7 +92,7 @@ return o; } -checkUnnamed1784(core.List<core.Object> o) { +checkUnnamed4065(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -111,7 +111,7 @@ var o = new api.Aliases(); buildCounterAliases++; if (buildCounterAliases < 3) { - o.aliases = buildUnnamed1784(); + o.aliases = buildUnnamed4065(); o.etag = "foo"; o.kind = "foo"; } @@ -122,21 +122,21 @@ checkAliases(api.Aliases o) { buildCounterAliases++; if (buildCounterAliases < 3) { - checkUnnamed1784(o.aliases); + checkUnnamed4065(o.aliases); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAliases--; } -buildUnnamed1785() { +buildUnnamed4066() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1785(core.List<core.String> o) { +checkUnnamed4066(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -147,7 +147,7 @@ var o = new api.AppAccessCollections(); buildCounterAppAccessCollections++; if (buildCounterAppAccessCollections < 3) { - o.blockedApiAccessBuckets = buildUnnamed1785(); + o.blockedApiAccessBuckets = buildUnnamed4066(); o.enforceSettingsForAndroidDrive = true; o.errorMessage = "foo"; o.etag = "foo"; @@ -163,7 +163,7 @@ checkAppAccessCollections(api.AppAccessCollections o) { buildCounterAppAccessCollections++; if (buildCounterAppAccessCollections < 3) { - checkUnnamed1785(o.blockedApiAccessBuckets); + checkUnnamed4066(o.blockedApiAccessBuckets); unittest.expect(o.enforceSettingsForAndroidDrive, unittest.isTrue); unittest.expect(o.errorMessage, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); @@ -206,14 +206,14 @@ buildCounterAsp--; } -buildUnnamed1786() { +buildUnnamed4067() { var o = new core.List<api.Asp>(); o.add(buildAsp()); o.add(buildAsp()); return o; } -checkUnnamed1786(core.List<api.Asp> o) { +checkUnnamed4067(core.List<api.Asp> o) { unittest.expect(o, unittest.hasLength(2)); checkAsp(o[0]); checkAsp(o[1]); @@ -225,7 +225,7 @@ buildCounterAsps++; if (buildCounterAsps < 3) { o.etag = "foo"; - o.items = buildUnnamed1786(); + o.items = buildUnnamed4067(); o.kind = "foo"; } buildCounterAsps--; @@ -236,20 +236,20 @@ buildCounterAsps++; if (buildCounterAsps < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1786(o.items); + checkUnnamed4067(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAsps--; } -buildUnnamed1787() { +buildUnnamed4068() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1787(core.List<core.String> o) { +checkUnnamed4068(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -265,7 +265,7 @@ o.coordinates = buildBuildingCoordinates(); o.description = "foo"; o.etags = "foo"; - o.floorNames = buildUnnamed1787(); + o.floorNames = buildUnnamed4068(); o.kind = "foo"; } buildCounterBuilding--; @@ -280,7 +280,7 @@ checkBuildingCoordinates(o.coordinates); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.etags, unittest.equals('foo')); - checkUnnamed1787(o.floorNames); + checkUnnamed4068(o.floorNames); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBuilding--; @@ -307,14 +307,14 @@ buildCounterBuildingCoordinates--; } -buildUnnamed1788() { +buildUnnamed4069() { var o = new core.List<api.Building>(); o.add(buildBuilding()); o.add(buildBuilding()); return o; } -checkUnnamed1788(core.List<api.Building> o) { +checkUnnamed4069(core.List<api.Building> o) { unittest.expect(o, unittest.hasLength(2)); checkBuilding(o[0]); checkBuilding(o[1]); @@ -325,7 +325,7 @@ var o = new api.Buildings(); buildCounterBuildings++; if (buildCounterBuildings < 3) { - o.buildings = buildUnnamed1788(); + o.buildings = buildUnnamed4069(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -337,7 +337,7 @@ checkBuildings(api.Buildings o) { buildCounterBuildings++; if (buildCounterBuildings < 3) { - checkUnnamed1788(o.buildings); + checkUnnamed4069(o.buildings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -400,14 +400,14 @@ buildCounterCalendarResource--; } -buildUnnamed1789() { +buildUnnamed4070() { var o = new core.List<api.CalendarResource>(); o.add(buildCalendarResource()); o.add(buildCalendarResource()); return o; } -checkUnnamed1789(core.List<api.CalendarResource> o) { +checkUnnamed4070(core.List<api.CalendarResource> o) { unittest.expect(o, unittest.hasLength(2)); checkCalendarResource(o[0]); checkCalendarResource(o[1]); @@ -419,7 +419,7 @@ buildCounterCalendarResources++; if (buildCounterCalendarResources < 3) { o.etag = "foo"; - o.items = buildUnnamed1789(); + o.items = buildUnnamed4070(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -431,21 +431,21 @@ buildCounterCalendarResources++; if (buildCounterCalendarResources < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1789(o.items); + checkUnnamed4070(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCalendarResources--; } -buildUnnamed1790() { +buildUnnamed4071() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1790(core.Map<core.String, core.String> o) { +checkUnnamed4071(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')); @@ -460,7 +460,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed1790(); + o.params = buildUnnamed4071(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -478,7 +478,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1790(o.params); + checkUnnamed4071(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -510,14 +510,14 @@ buildCounterChromeOsDeviceActiveTimeRanges--; } -buildUnnamed1791() { +buildUnnamed4072() { var o = new core.List<api.ChromeOsDeviceActiveTimeRanges>(); o.add(buildChromeOsDeviceActiveTimeRanges()); o.add(buildChromeOsDeviceActiveTimeRanges()); return o; } -checkUnnamed1791(core.List<api.ChromeOsDeviceActiveTimeRanges> o) { +checkUnnamed4072(core.List<api.ChromeOsDeviceActiveTimeRanges> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDeviceActiveTimeRanges(o[0]); checkChromeOsDeviceActiveTimeRanges(o[1]); @@ -549,14 +549,14 @@ buildCounterChromeOsDeviceDeviceFiles--; } -buildUnnamed1792() { +buildUnnamed4073() { var o = new core.List<api.ChromeOsDeviceDeviceFiles>(); o.add(buildChromeOsDeviceDeviceFiles()); o.add(buildChromeOsDeviceDeviceFiles()); return o; } -checkUnnamed1792(core.List<api.ChromeOsDeviceDeviceFiles> o) { +checkUnnamed4073(core.List<api.ChromeOsDeviceDeviceFiles> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDeviceDeviceFiles(o[0]); checkChromeOsDeviceDeviceFiles(o[1]); @@ -583,14 +583,14 @@ buildCounterChromeOsDeviceRecentUsers--; } -buildUnnamed1793() { +buildUnnamed4074() { var o = new core.List<api.ChromeOsDeviceRecentUsers>(); o.add(buildChromeOsDeviceRecentUsers()); o.add(buildChromeOsDeviceRecentUsers()); return o; } -checkUnnamed1793(core.List<api.ChromeOsDeviceRecentUsers> o) { +checkUnnamed4074(core.List<api.ChromeOsDeviceRecentUsers> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDeviceRecentUsers(o[0]); checkChromeOsDeviceRecentUsers(o[1]); @@ -630,12 +630,12 @@ var o = new api.ChromeOsDevice(); buildCounterChromeOsDevice++; if (buildCounterChromeOsDevice < 3) { - o.activeTimeRanges = buildUnnamed1791(); + o.activeTimeRanges = buildUnnamed4072(); o.annotatedAssetId = "foo"; o.annotatedLocation = "foo"; o.annotatedUser = "foo"; o.bootMode = "foo"; - o.deviceFiles = buildUnnamed1792(); + o.deviceFiles = buildUnnamed4073(); o.deviceId = "foo"; o.etag = "foo"; o.ethernetMacAddress = "foo"; @@ -651,7 +651,7 @@ o.orgUnitPath = "foo"; o.osVersion = "foo"; o.platformVersion = "foo"; - o.recentUsers = buildUnnamed1793(); + o.recentUsers = buildUnnamed4074(); o.serialNumber = "foo"; o.status = "foo"; o.supportEndDate = core.DateTime.parse("2002-02-27T14:01:02"); @@ -665,12 +665,12 @@ checkChromeOsDevice(api.ChromeOsDevice o) { buildCounterChromeOsDevice++; if (buildCounterChromeOsDevice < 3) { - checkUnnamed1791(o.activeTimeRanges); + checkUnnamed4072(o.activeTimeRanges); unittest.expect(o.annotatedAssetId, unittest.equals('foo')); unittest.expect(o.annotatedLocation, unittest.equals('foo')); unittest.expect(o.annotatedUser, unittest.equals('foo')); unittest.expect(o.bootMode, unittest.equals('foo')); - checkUnnamed1792(o.deviceFiles); + checkUnnamed4073(o.deviceFiles); unittest.expect(o.deviceId, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.ethernetMacAddress, unittest.equals('foo')); @@ -688,7 +688,7 @@ unittest.expect(o.orgUnitPath, unittest.equals('foo')); unittest.expect(o.osVersion, unittest.equals('foo')); unittest.expect(o.platformVersion, unittest.equals('foo')); - checkUnnamed1793(o.recentUsers); + checkUnnamed4074(o.recentUsers); unittest.expect(o.serialNumber, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.supportEndDate, @@ -720,14 +720,14 @@ buildCounterChromeOsDeviceAction--; } -buildUnnamed1794() { +buildUnnamed4075() { var o = new core.List<api.ChromeOsDevice>(); o.add(buildChromeOsDevice()); o.add(buildChromeOsDevice()); return o; } -checkUnnamed1794(core.List<api.ChromeOsDevice> o) { +checkUnnamed4075(core.List<api.ChromeOsDevice> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDevice(o[0]); checkChromeOsDevice(o[1]); @@ -738,7 +738,7 @@ var o = new api.ChromeOsDevices(); buildCounterChromeOsDevices++; if (buildCounterChromeOsDevices < 3) { - o.chromeosdevices = buildUnnamed1794(); + o.chromeosdevices = buildUnnamed4075(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -750,7 +750,7 @@ checkChromeOsDevices(api.ChromeOsDevices o) { buildCounterChromeOsDevices++; if (buildCounterChromeOsDevices < 3) { - checkUnnamed1794(o.chromeosdevices); + checkUnnamed4075(o.chromeosdevices); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -758,14 +758,14 @@ buildCounterChromeOsDevices--; } -buildUnnamed1795() { +buildUnnamed4076() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1795(core.List<core.String> o) { +checkUnnamed4076(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -776,7 +776,7 @@ var o = new api.ChromeOsMoveDevicesToOu(); buildCounterChromeOsMoveDevicesToOu++; if (buildCounterChromeOsMoveDevicesToOu < 3) { - o.deviceIds = buildUnnamed1795(); + o.deviceIds = buildUnnamed4076(); } buildCounterChromeOsMoveDevicesToOu--; return o; @@ -785,7 +785,7 @@ checkChromeOsMoveDevicesToOu(api.ChromeOsMoveDevicesToOu o) { buildCounterChromeOsMoveDevicesToOu++; if (buildCounterChromeOsMoveDevicesToOu < 3) { - checkUnnamed1795(o.deviceIds); + checkUnnamed4076(o.deviceIds); } buildCounterChromeOsMoveDevicesToOu--; } @@ -890,14 +890,14 @@ buildCounterDomainAlias--; } -buildUnnamed1796() { +buildUnnamed4077() { var o = new core.List<api.DomainAlias>(); o.add(buildDomainAlias()); o.add(buildDomainAlias()); return o; } -checkUnnamed1796(core.List<api.DomainAlias> o) { +checkUnnamed4077(core.List<api.DomainAlias> o) { unittest.expect(o, unittest.hasLength(2)); checkDomainAlias(o[0]); checkDomainAlias(o[1]); @@ -908,7 +908,7 @@ var o = new api.DomainAliases(); buildCounterDomainAliases++; if (buildCounterDomainAliases < 3) { - o.domainAliases = buildUnnamed1796(); + o.domainAliases = buildUnnamed4077(); o.etag = "foo"; o.kind = "foo"; } @@ -919,21 +919,21 @@ checkDomainAliases(api.DomainAliases o) { buildCounterDomainAliases++; if (buildCounterDomainAliases < 3) { - checkUnnamed1796(o.domainAliases); + checkUnnamed4077(o.domainAliases); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDomainAliases--; } -buildUnnamed1797() { +buildUnnamed4078() { var o = new core.List<api.DomainAlias>(); o.add(buildDomainAlias()); o.add(buildDomainAlias()); return o; } -checkUnnamed1797(core.List<api.DomainAlias> o) { +checkUnnamed4078(core.List<api.DomainAlias> o) { unittest.expect(o, unittest.hasLength(2)); checkDomainAlias(o[0]); checkDomainAlias(o[1]); @@ -945,7 +945,7 @@ buildCounterDomains++; if (buildCounterDomains < 3) { o.creationTime = "foo"; - o.domainAliases = buildUnnamed1797(); + o.domainAliases = buildUnnamed4078(); o.domainName = "foo"; o.etag = "foo"; o.isPrimary = true; @@ -960,7 +960,7 @@ buildCounterDomains++; if (buildCounterDomains < 3) { unittest.expect(o.creationTime, unittest.equals('foo')); - checkUnnamed1797(o.domainAliases); + checkUnnamed4078(o.domainAliases); unittest.expect(o.domainName, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.isPrimary, unittest.isTrue); @@ -970,14 +970,14 @@ buildCounterDomains--; } -buildUnnamed1798() { +buildUnnamed4079() { var o = new core.List<api.Domains>(); o.add(buildDomains()); o.add(buildDomains()); return o; } -checkUnnamed1798(core.List<api.Domains> o) { +checkUnnamed4079(core.List<api.Domains> o) { unittest.expect(o, unittest.hasLength(2)); checkDomains(o[0]); checkDomains(o[1]); @@ -988,7 +988,7 @@ var o = new api.Domains2(); buildCounterDomains2++; if (buildCounterDomains2 < 3) { - o.domains = buildUnnamed1798(); + o.domains = buildUnnamed4079(); o.etag = "foo"; o.kind = "foo"; } @@ -999,7 +999,7 @@ checkDomains2(api.Domains2 o) { buildCounterDomains2++; if (buildCounterDomains2 < 3) { - checkUnnamed1798(o.domains); + checkUnnamed4079(o.domains); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } @@ -1067,14 +1067,14 @@ buildCounterFeatureRename--; } -buildUnnamed1799() { +buildUnnamed4080() { var o = new core.List<api.Feature>(); o.add(buildFeature()); o.add(buildFeature()); return o; } -checkUnnamed1799(core.List<api.Feature> o) { +checkUnnamed4080(core.List<api.Feature> o) { unittest.expect(o, unittest.hasLength(2)); checkFeature(o[0]); checkFeature(o[1]); @@ -1086,7 +1086,7 @@ buildCounterFeatures++; if (buildCounterFeatures < 3) { o.etag = "foo"; - o.features = buildUnnamed1799(); + o.features = buildUnnamed4080(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1098,34 +1098,34 @@ buildCounterFeatures++; if (buildCounterFeatures < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1799(o.features); + checkUnnamed4080(o.features); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFeatures--; } -buildUnnamed1800() { +buildUnnamed4081() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1800(core.List<core.String> o) { +checkUnnamed4081(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1801() { +buildUnnamed4082() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1801(core.List<core.String> o) { +checkUnnamed4082(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1137,7 +1137,7 @@ buildCounterGroup++; if (buildCounterGroup < 3) { o.adminCreated = true; - o.aliases = buildUnnamed1800(); + o.aliases = buildUnnamed4081(); o.description = "foo"; o.directMembersCount = "foo"; o.email = "foo"; @@ -1145,7 +1145,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.nonEditableAliases = buildUnnamed1801(); + o.nonEditableAliases = buildUnnamed4082(); } buildCounterGroup--; return o; @@ -1155,7 +1155,7 @@ buildCounterGroup++; if (buildCounterGroup < 3) { unittest.expect(o.adminCreated, unittest.isTrue); - checkUnnamed1800(o.aliases); + checkUnnamed4081(o.aliases); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.directMembersCount, unittest.equals('foo')); unittest.expect(o.email, unittest.equals('foo')); @@ -1163,19 +1163,19 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1801(o.nonEditableAliases); + checkUnnamed4082(o.nonEditableAliases); } buildCounterGroup--; } -buildUnnamed1802() { +buildUnnamed4083() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed1802(core.List<api.Group> o) { +checkUnnamed4083(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -1187,7 +1187,7 @@ buildCounterGroups++; if (buildCounterGroups < 3) { o.etag = "foo"; - o.groups = buildUnnamed1802(); + o.groups = buildUnnamed4083(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1199,7 +1199,7 @@ buildCounterGroups++; if (buildCounterGroups < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1802(o.groups); + checkUnnamed4083(o.groups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1237,14 +1237,14 @@ buildCounterMember--; } -buildUnnamed1803() { +buildUnnamed4084() { var o = new core.List<api.Member>(); o.add(buildMember()); o.add(buildMember()); return o; } -checkUnnamed1803(core.List<api.Member> o) { +checkUnnamed4084(core.List<api.Member> o) { unittest.expect(o, unittest.hasLength(2)); checkMember(o[0]); checkMember(o[1]); @@ -1257,7 +1257,7 @@ if (buildCounterMembers < 3) { o.etag = "foo"; o.kind = "foo"; - o.members = buildUnnamed1803(); + o.members = buildUnnamed4084(); o.nextPageToken = "foo"; } buildCounterMembers--; @@ -1269,7 +1269,7 @@ if (buildCounterMembers < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1803(o.members); + checkUnnamed4084(o.members); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterMembers--; @@ -1294,14 +1294,14 @@ buildCounterMembersHasMember--; } -buildUnnamed1804() { +buildUnnamed4085() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1804(core.List<core.String> o) { +checkUnnamed4085(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1314,7 +1314,7 @@ if (buildCounterMobileDeviceApplications < 3) { o.displayName = "foo"; o.packageName = "foo"; - o.permission = buildUnnamed1804(); + o.permission = buildUnnamed4085(); o.versionCode = 42; o.versionName = "foo"; } @@ -1327,60 +1327,60 @@ if (buildCounterMobileDeviceApplications < 3) { unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed1804(o.permission); + checkUnnamed4085(o.permission); unittest.expect(o.versionCode, unittest.equals(42)); unittest.expect(o.versionName, unittest.equals('foo')); } buildCounterMobileDeviceApplications--; } -buildUnnamed1805() { +buildUnnamed4086() { var o = new core.List<api.MobileDeviceApplications>(); o.add(buildMobileDeviceApplications()); o.add(buildMobileDeviceApplications()); return o; } -checkUnnamed1805(core.List<api.MobileDeviceApplications> o) { +checkUnnamed4086(core.List<api.MobileDeviceApplications> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileDeviceApplications(o[0]); checkMobileDeviceApplications(o[1]); } -buildUnnamed1806() { +buildUnnamed4087() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1806(core.List<core.String> o) { +checkUnnamed4087(core.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() { +buildUnnamed4088() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1807(core.List<core.String> o) { +checkUnnamed4088(core.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() { +buildUnnamed4089() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1808(core.List<core.String> o) { +checkUnnamed4089(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1392,7 +1392,7 @@ buildCounterMobileDevice++; if (buildCounterMobileDevice < 3) { o.adbStatus = true; - o.applications = buildUnnamed1805(); + o.applications = buildUnnamed4086(); o.basebandVersion = "foo"; o.bootloaderVersion = "foo"; o.brand = "foo"; @@ -1402,7 +1402,7 @@ o.deviceCompromisedStatus = "foo"; o.deviceId = "foo"; o.devicePasswordStatus = "foo"; - o.email = buildUnnamed1806(); + o.email = buildUnnamed4087(); o.encryptionStatus = "foo"; o.etag = "foo"; o.firstSync = core.DateTime.parse("2002-02-27T14:01:02"); @@ -1416,10 +1416,10 @@ o.manufacturer = "foo"; o.meid = "foo"; o.model = "foo"; - o.name = buildUnnamed1807(); + o.name = buildUnnamed4088(); o.networkOperator = "foo"; o.os = "foo"; - o.otherAccountsInfo = buildUnnamed1808(); + o.otherAccountsInfo = buildUnnamed4089(); o.privilege = "foo"; o.releaseVersion = "foo"; o.resourceId = "foo"; @@ -1440,7 +1440,7 @@ buildCounterMobileDevice++; if (buildCounterMobileDevice < 3) { unittest.expect(o.adbStatus, unittest.isTrue); - checkUnnamed1805(o.applications); + checkUnnamed4086(o.applications); unittest.expect(o.basebandVersion, unittest.equals('foo')); unittest.expect(o.bootloaderVersion, unittest.equals('foo')); unittest.expect(o.brand, unittest.equals('foo')); @@ -1450,7 +1450,7 @@ unittest.expect(o.deviceCompromisedStatus, unittest.equals('foo')); unittest.expect(o.deviceId, unittest.equals('foo')); unittest.expect(o.devicePasswordStatus, unittest.equals('foo')); - checkUnnamed1806(o.email); + checkUnnamed4087(o.email); unittest.expect(o.encryptionStatus, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.firstSync, @@ -1466,10 +1466,10 @@ unittest.expect(o.manufacturer, unittest.equals('foo')); unittest.expect(o.meid, unittest.equals('foo')); unittest.expect(o.model, unittest.equals('foo')); - checkUnnamed1807(o.name); + checkUnnamed4088(o.name); unittest.expect(o.networkOperator, unittest.equals('foo')); unittest.expect(o.os, unittest.equals('foo')); - checkUnnamed1808(o.otherAccountsInfo); + checkUnnamed4089(o.otherAccountsInfo); unittest.expect(o.privilege, unittest.equals('foo')); unittest.expect(o.releaseVersion, unittest.equals('foo')); unittest.expect(o.resourceId, unittest.equals('foo')); @@ -1504,14 +1504,14 @@ buildCounterMobileDeviceAction--; } -buildUnnamed1809() { +buildUnnamed4090() { var o = new core.List<api.MobileDevice>(); o.add(buildMobileDevice()); o.add(buildMobileDevice()); return o; } -checkUnnamed1809(core.List<api.MobileDevice> o) { +checkUnnamed4090(core.List<api.MobileDevice> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileDevice(o[0]); checkMobileDevice(o[1]); @@ -1524,7 +1524,7 @@ if (buildCounterMobileDevices < 3) { o.etag = "foo"; o.kind = "foo"; - o.mobiledevices = buildUnnamed1809(); + o.mobiledevices = buildUnnamed4090(); o.nextPageToken = "foo"; } buildCounterMobileDevices--; @@ -1536,7 +1536,7 @@ if (buildCounterMobileDevices < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1809(o.mobiledevices); + checkUnnamed4090(o.mobiledevices); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterMobileDevices--; @@ -1576,14 +1576,14 @@ buildCounterNotification--; } -buildUnnamed1810() { +buildUnnamed4091() { var o = new core.List<api.Notification>(); o.add(buildNotification()); o.add(buildNotification()); return o; } -checkUnnamed1810(core.List<api.Notification> o) { +checkUnnamed4091(core.List<api.Notification> o) { unittest.expect(o, unittest.hasLength(2)); checkNotification(o[0]); checkNotification(o[1]); @@ -1595,7 +1595,7 @@ buildCounterNotifications++; if (buildCounterNotifications < 3) { o.etag = "foo"; - o.items = buildUnnamed1810(); + o.items = buildUnnamed4091(); o.kind = "foo"; o.nextPageToken = "foo"; o.unreadNotificationsCount = 42; @@ -1608,7 +1608,7 @@ buildCounterNotifications++; if (buildCounterNotifications < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1810(o.items); + checkUnnamed4091(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.unreadNotificationsCount, unittest.equals(42)); @@ -1651,14 +1651,14 @@ buildCounterOrgUnit--; } -buildUnnamed1811() { +buildUnnamed4092() { var o = new core.List<api.OrgUnit>(); o.add(buildOrgUnit()); o.add(buildOrgUnit()); return o; } -checkUnnamed1811(core.List<api.OrgUnit> o) { +checkUnnamed4092(core.List<api.OrgUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkOrgUnit(o[0]); checkOrgUnit(o[1]); @@ -1671,7 +1671,7 @@ if (buildCounterOrgUnits < 3) { o.etag = "foo"; o.kind = "foo"; - o.organizationUnits = buildUnnamed1811(); + o.organizationUnits = buildUnnamed4092(); } buildCounterOrgUnits--; return o; @@ -1682,19 +1682,19 @@ if (buildCounterOrgUnits < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1811(o.organizationUnits); + checkUnnamed4092(o.organizationUnits); } buildCounterOrgUnits--; } -buildUnnamed1812() { +buildUnnamed4093() { var o = new core.List<api.Privilege>(); o.add(buildPrivilege()); o.add(buildPrivilege()); return o; } -checkUnnamed1812(core.List<api.Privilege> o) { +checkUnnamed4093(core.List<api.Privilege> o) { unittest.expect(o, unittest.hasLength(2)); checkPrivilege(o[0]); checkPrivilege(o[1]); @@ -1705,7 +1705,7 @@ var o = new api.Privilege(); buildCounterPrivilege++; if (buildCounterPrivilege < 3) { - o.childPrivileges = buildUnnamed1812(); + o.childPrivileges = buildUnnamed4093(); o.etag = "foo"; o.isOuScopable = true; o.kind = "foo"; @@ -1720,7 +1720,7 @@ checkPrivilege(api.Privilege o) { buildCounterPrivilege++; if (buildCounterPrivilege < 3) { - checkUnnamed1812(o.childPrivileges); + checkUnnamed4093(o.childPrivileges); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.isOuScopable, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -1731,14 +1731,14 @@ buildCounterPrivilege--; } -buildUnnamed1813() { +buildUnnamed4094() { var o = new core.List<api.Privilege>(); o.add(buildPrivilege()); o.add(buildPrivilege()); return o; } -checkUnnamed1813(core.List<api.Privilege> o) { +checkUnnamed4094(core.List<api.Privilege> o) { unittest.expect(o, unittest.hasLength(2)); checkPrivilege(o[0]); checkPrivilege(o[1]); @@ -1750,7 +1750,7 @@ buildCounterPrivileges++; if (buildCounterPrivileges < 3) { o.etag = "foo"; - o.items = buildUnnamed1813(); + o.items = buildUnnamed4094(); o.kind = "foo"; } buildCounterPrivileges--; @@ -1761,7 +1761,7 @@ buildCounterPrivileges++; if (buildCounterPrivileges < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1813(o.items); + checkUnnamed4094(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPrivileges--; @@ -1788,14 +1788,14 @@ buildCounterRoleRolePrivileges--; } -buildUnnamed1814() { +buildUnnamed4095() { var o = new core.List<api.RoleRolePrivileges>(); o.add(buildRoleRolePrivileges()); o.add(buildRoleRolePrivileges()); return o; } -checkUnnamed1814(core.List<api.RoleRolePrivileges> o) { +checkUnnamed4095(core.List<api.RoleRolePrivileges> o) { unittest.expect(o, unittest.hasLength(2)); checkRoleRolePrivileges(o[0]); checkRoleRolePrivileges(o[1]); @@ -1813,7 +1813,7 @@ o.roleDescription = "foo"; o.roleId = "foo"; o.roleName = "foo"; - o.rolePrivileges = buildUnnamed1814(); + o.rolePrivileges = buildUnnamed4095(); } buildCounterRole--; return o; @@ -1829,7 +1829,7 @@ unittest.expect(o.roleDescription, unittest.equals('foo')); unittest.expect(o.roleId, unittest.equals('foo')); unittest.expect(o.roleName, unittest.equals('foo')); - checkUnnamed1814(o.rolePrivileges); + checkUnnamed4095(o.rolePrivileges); } buildCounterRole--; } @@ -1865,14 +1865,14 @@ buildCounterRoleAssignment--; } -buildUnnamed1815() { +buildUnnamed4096() { var o = new core.List<api.RoleAssignment>(); o.add(buildRoleAssignment()); o.add(buildRoleAssignment()); return o; } -checkUnnamed1815(core.List<api.RoleAssignment> o) { +checkUnnamed4096(core.List<api.RoleAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkRoleAssignment(o[0]); checkRoleAssignment(o[1]); @@ -1884,7 +1884,7 @@ buildCounterRoleAssignments++; if (buildCounterRoleAssignments < 3) { o.etag = "foo"; - o.items = buildUnnamed1815(); + o.items = buildUnnamed4096(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1896,21 +1896,21 @@ buildCounterRoleAssignments++; if (buildCounterRoleAssignments < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1815(o.items); + checkUnnamed4096(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterRoleAssignments--; } -buildUnnamed1816() { +buildUnnamed4097() { var o = new core.List<api.Role>(); o.add(buildRole()); o.add(buildRole()); return o; } -checkUnnamed1816(core.List<api.Role> o) { +checkUnnamed4097(core.List<api.Role> o) { unittest.expect(o, unittest.hasLength(2)); checkRole(o[0]); checkRole(o[1]); @@ -1922,7 +1922,7 @@ buildCounterRoles++; if (buildCounterRoles < 3) { o.etag = "foo"; - o.items = buildUnnamed1816(); + o.items = buildUnnamed4097(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1934,21 +1934,21 @@ buildCounterRoles++; if (buildCounterRoles < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1816(o.items); + checkUnnamed4097(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterRoles--; } -buildUnnamed1817() { +buildUnnamed4098() { var o = new core.List<api.SchemaFieldSpec>(); o.add(buildSchemaFieldSpec()); o.add(buildSchemaFieldSpec()); return o; } -checkUnnamed1817(core.List<api.SchemaFieldSpec> o) { +checkUnnamed4098(core.List<api.SchemaFieldSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSchemaFieldSpec(o[0]); checkSchemaFieldSpec(o[1]); @@ -1959,8 +1959,9 @@ var o = new api.Schema(); buildCounterSchema++; if (buildCounterSchema < 3) { + o.displayName = "foo"; o.etag = "foo"; - o.fields = buildUnnamed1817(); + o.fields = buildUnnamed4098(); o.kind = "foo"; o.schemaId = "foo"; o.schemaName = "foo"; @@ -1972,8 +1973,9 @@ checkSchema(api.Schema o) { buildCounterSchema++; if (buildCounterSchema < 3) { + unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1817(o.fields); + checkUnnamed4098(o.fields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.schemaId, unittest.equals('foo')); unittest.expect(o.schemaName, unittest.equals('foo')); @@ -2008,6 +2010,7 @@ var o = new api.SchemaFieldSpec(); buildCounterSchemaFieldSpec++; if (buildCounterSchemaFieldSpec < 3) { + o.displayName = "foo"; o.etag = "foo"; o.fieldId = "foo"; o.fieldName = "foo"; @@ -2025,6 +2028,7 @@ checkSchemaFieldSpec(api.SchemaFieldSpec o) { buildCounterSchemaFieldSpec++; if (buildCounterSchemaFieldSpec < 3) { + unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.fieldId, unittest.equals('foo')); unittest.expect(o.fieldName, unittest.equals('foo')); @@ -2038,14 +2042,14 @@ buildCounterSchemaFieldSpec--; } -buildUnnamed1818() { +buildUnnamed4099() { var o = new core.List<api.Schema>(); o.add(buildSchema()); o.add(buildSchema()); return o; } -checkUnnamed1818(core.List<api.Schema> o) { +checkUnnamed4099(core.List<api.Schema> o) { unittest.expect(o, unittest.hasLength(2)); checkSchema(o[0]); checkSchema(o[1]); @@ -2058,7 +2062,7 @@ if (buildCounterSchemas < 3) { o.etag = "foo"; o.kind = "foo"; - o.schemas = buildUnnamed1818(); + o.schemas = buildUnnamed4099(); } buildCounterSchemas--; return o; @@ -2069,19 +2073,19 @@ if (buildCounterSchemas < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1818(o.schemas); + checkUnnamed4099(o.schemas); } buildCounterSchemas--; } -buildUnnamed1819() { +buildUnnamed4100() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1819(core.List<core.String> o) { +checkUnnamed4100(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2098,7 +2102,7 @@ o.etag = "foo"; o.kind = "foo"; o.nativeApp = true; - o.scopes = buildUnnamed1819(); + o.scopes = buildUnnamed4100(); o.userKey = "foo"; } buildCounterToken--; @@ -2114,20 +2118,20 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nativeApp, unittest.isTrue); - checkUnnamed1819(o.scopes); + checkUnnamed4100(o.scopes); unittest.expect(o.userKey, unittest.equals('foo')); } buildCounterToken--; } -buildUnnamed1820() { +buildUnnamed4101() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed1820(core.List<api.Token> o) { +checkUnnamed4101(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -2139,7 +2143,7 @@ buildCounterTokens++; if (buildCounterTokens < 3) { o.etag = "foo"; - o.items = buildUnnamed1820(); + o.items = buildUnnamed4101(); o.kind = "foo"; } buildCounterTokens--; @@ -2150,7 +2154,7 @@ buildCounterTokens++; if (buildCounterTokens < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1820(o.items); + checkUnnamed4101(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTokens--; @@ -2183,14 +2187,14 @@ buildCounterTrustedAppId--; } -buildUnnamed1821() { +buildUnnamed4102() { var o = new core.List<api.TrustedAppId>(); o.add(buildTrustedAppId()); o.add(buildTrustedAppId()); return o; } -checkUnnamed1821(core.List<api.TrustedAppId> o) { +checkUnnamed4102(core.List<api.TrustedAppId> o) { unittest.expect(o, unittest.hasLength(2)); checkTrustedAppId(o[0]); checkTrustedAppId(o[1]); @@ -2204,7 +2208,7 @@ o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; - o.trustedApps = buildUnnamed1821(); + o.trustedApps = buildUnnamed4102(); } buildCounterTrustedApps--; return o; @@ -2216,45 +2220,45 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1821(o.trustedApps); + checkUnnamed4102(o.trustedApps); } buildCounterTrustedApps--; } -buildUnnamed1822() { +buildUnnamed4103() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1822(core.List<core.String> o) { +checkUnnamed4103(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1823() { +buildUnnamed4104() { var o = new core.Map<core.String, api.UserCustomProperties>(); o["x"] = buildUserCustomProperties(); o["y"] = buildUserCustomProperties(); return o; } -checkUnnamed1823(core.Map<core.String, api.UserCustomProperties> o) { +checkUnnamed4104(core.Map<core.String, api.UserCustomProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkUserCustomProperties(o["x"]); checkUserCustomProperties(o["y"]); } -buildUnnamed1824() { +buildUnnamed4105() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1824(core.List<core.String> o) { +checkUnnamed4105(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2271,10 +2275,10 @@ 'string': 'foo' }; o.agreedToTerms = true; - o.aliases = buildUnnamed1822(); + o.aliases = buildUnnamed4103(); o.changePasswordAtNextLogin = true; o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.customSchemas = buildUnnamed1823(); + o.customSchemas = buildUnnamed4104(); o.customerId = "foo"; o.deletionTime = core.DateTime.parse("2002-02-27T14:01:02"); o.emails = { @@ -2325,7 +2329,7 @@ 'string': 'foo' }; o.name = buildUserName(); - o.nonEditableAliases = buildUnnamed1824(); + o.nonEditableAliases = buildUnnamed4105(); o.notes = { 'list': [1, 2, 3], 'bool': true, @@ -2382,11 +2386,11 @@ unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); unittest.expect(o.agreedToTerms, unittest.isTrue); - checkUnnamed1822(o.aliases); + checkUnnamed4103(o.aliases); unittest.expect(o.changePasswordAtNextLogin, unittest.isTrue); unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed1823(o.customSchemas); + checkUnnamed4104(o.customSchemas); unittest.expect(o.customerId, unittest.equals('foo')); unittest.expect(o.deletionTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -2439,7 +2443,7 @@ unittest.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["string"], unittest.equals('foo')); checkUserName(o.name); - checkUnnamed1824(o.nonEditableAliases); + checkUnnamed4105(o.nonEditableAliases); var casted12 = (o.notes) as core.Map; unittest.expect(casted12, unittest.hasLength(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); @@ -2904,6 +2908,7 @@ o.gecos = "foo"; o.gid = "foo"; o.homeDirectory = "foo"; + o.operatingSystemType = "foo"; o.primary = true; o.shell = "foo"; o.systemId = "foo"; @@ -2921,6 +2926,7 @@ unittest.expect(o.gecos, unittest.equals('foo')); unittest.expect(o.gid, unittest.equals('foo')); unittest.expect(o.homeDirectory, unittest.equals('foo')); + unittest.expect(o.operatingSystemType, unittest.equals('foo')); unittest.expect(o.primary, unittest.isTrue); unittest.expect(o.shell, unittest.equals('foo')); unittest.expect(o.systemId, unittest.equals('foo')); @@ -3020,14 +3026,14 @@ buildCounterUserWebsite--; } -buildUnnamed1825() { +buildUnnamed4106() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed1825(core.List<api.User> o) { +checkUnnamed4106(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -3042,7 +3048,7 @@ o.kind = "foo"; o.nextPageToken = "foo"; o.triggerEvent = "foo"; - o.users = buildUnnamed1825(); + o.users = buildUnnamed4106(); } buildCounterUsers--; return o; @@ -3055,7 +3061,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.triggerEvent, unittest.equals('foo')); - checkUnnamed1825(o.users); + checkUnnamed4106(o.users); } buildCounterUsers--; } @@ -3085,14 +3091,14 @@ buildCounterVerificationCode--; } -buildUnnamed1826() { +buildUnnamed4107() { var o = new core.List<api.VerificationCode>(); o.add(buildVerificationCode()); o.add(buildVerificationCode()); return o; } -checkUnnamed1826(core.List<api.VerificationCode> o) { +checkUnnamed4107(core.List<api.VerificationCode> o) { unittest.expect(o, unittest.hasLength(2)); checkVerificationCode(o[0]); checkVerificationCode(o[1]); @@ -3104,7 +3110,7 @@ buildCounterVerificationCodes++; if (buildCounterVerificationCodes < 3) { o.etag = "foo"; - o.items = buildUnnamed1826(); + o.items = buildUnnamed4107(); o.kind = "foo"; } buildCounterVerificationCodes--; @@ -3115,59 +3121,59 @@ buildCounterVerificationCodes++; if (buildCounterVerificationCodes < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1826(o.items); + checkUnnamed4107(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterVerificationCodes--; } -buildUnnamed1827() { +buildUnnamed4108() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1827(core.List<core.String> o) { +checkUnnamed4108(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1828() { +buildUnnamed4109() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1828(core.List<core.String> o) { +checkUnnamed4109(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1829() { +buildUnnamed4110() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1829(core.List<core.String> o) { +checkUnnamed4110(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1830() { +buildUnnamed4111() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1830(core.List<core.String> o) { +checkUnnamed4111(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5403,7 +5409,10 @@ var arg_customer = "foo"; var arg_domain = "foo"; var arg_maxResults = 42; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_query = "foo"; + var arg_sortOrder = "foo"; var arg_userKey = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -5445,7 +5454,12 @@ 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)); + unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); + unittest.expect( + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); unittest.expect( queryMap["userKey"].first, unittest.equals(arg_userKey)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -5461,7 +5475,10 @@ customer: arg_customer, domain: arg_domain, maxResults: arg_maxResults, + orderBy: arg_orderBy, pageToken: arg_pageToken, + query: arg_query, + sortOrder: arg_sortOrder, userKey: arg_userKey, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -6051,6 +6068,7 @@ var mock = new HttpServerMock(); api.MembersResourceApi res = new api.AdminApi(mock).members; var arg_groupKey = "foo"; + var arg_includeDerivedMembership = true; var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_roles = "foo"; @@ -6097,6 +6115,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["includeDerivedMembership"].first, + unittest.equals("$arg_includeDerivedMembership")); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( @@ -6112,6 +6132,7 @@ }), true); res .list(arg_groupKey, + includeDerivedMembership: arg_includeDerivedMembership, maxResults: arg_maxResults, pageToken: arg_pageToken, roles: arg_roles, @@ -6914,7 +6935,7 @@ var mock = new HttpServerMock(); api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed1827(); + var arg_orgUnitPath = buildUnnamed4108(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6982,7 +7003,7 @@ var mock = new HttpServerMock(); api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed1828(); + var arg_orgUnitPath = buildUnnamed4109(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7189,7 +7210,7 @@ api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_request = buildOrgUnit(); var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed1829(); + var arg_orgUnitPath = buildUnnamed4110(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.OrgUnit.fromJson(json); @@ -7264,7 +7285,7 @@ api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_request = buildOrgUnit(); var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed1830(); + var arg_orgUnitPath = buildUnnamed4111(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.OrgUnit.fromJson(json); @@ -7712,6 +7733,8 @@ api.ResourcesBuildingsResourceApi res = new api.AdminApi(mock).resources.buildings; var arg_customer = "foo"; + var arg_maxResults = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7755,6 +7778,10 @@ 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["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7764,7 +7791,10 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list(arg_customer, $fields: arg_$fields) + .list(arg_customer, + maxResults: arg_maxResults, + pageToken: arg_pageToken, + $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkBuildings(response); }))); @@ -8544,6 +8574,7 @@ api.ResourcesFeaturesResourceApi res = new api.AdminApi(mock).resources.features; var arg_customer = "foo"; + var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -8588,6 +8619,8 @@ 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["fields"].first, unittest.equals(arg_$fields)); @@ -8599,7 +8632,10 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list(arg_customer, pageToken: arg_pageToken, $fields: arg_$fields) + .list(arg_customer, + maxResults: arg_maxResults, + pageToken: arg_pageToken, + $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkFeatures(response); })));
diff --git a/generated/googleapis/test/admin/reports_v1_test.dart b/generated/googleapis/test/admin/reports_v1_test.dart index 508f585..e988bfd 100644 --- a/generated/googleapis/test/admin/reports_v1_test.dart +++ b/generated/googleapis/test/admin/reports_v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed425() { +buildUnnamed3953() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed425(core.List<api.Activity> o) { +checkUnnamed3953(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -69,7 +69,7 @@ buildCounterActivities++; if (buildCounterActivities < 3) { o.etag = "foo"; - o.items = buildUnnamed425(); + o.items = buildUnnamed3953(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -81,7 +81,7 @@ buildCounterActivities++; if (buildCounterActivities < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed425(o.items); + checkUnnamed3953(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -113,27 +113,27 @@ buildCounterActivityActor--; } -buildUnnamed426() { +buildUnnamed3954() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed426(core.List<core.String> o) { +checkUnnamed3954(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed427() { +buildUnnamed3955() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed427(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')); @@ -146,8 +146,8 @@ if (buildCounterActivityEventsParameters < 3) { o.boolValue = true; o.intValue = "foo"; - o.multiIntValue = buildUnnamed426(); - o.multiValue = buildUnnamed427(); + o.multiIntValue = buildUnnamed3954(); + o.multiValue = buildUnnamed3955(); o.name = "foo"; o.value = "foo"; } @@ -160,22 +160,22 @@ if (buildCounterActivityEventsParameters < 3) { unittest.expect(o.boolValue, unittest.isTrue); unittest.expect(o.intValue, unittest.equals('foo')); - checkUnnamed426(o.multiIntValue); - checkUnnamed427(o.multiValue); + checkUnnamed3954(o.multiIntValue); + checkUnnamed3955(o.multiValue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); } buildCounterActivityEventsParameters--; } -buildUnnamed428() { +buildUnnamed3956() { var o = new core.List<api.ActivityEventsParameters>(); o.add(buildActivityEventsParameters()); o.add(buildActivityEventsParameters()); return o; } -checkUnnamed428(core.List<api.ActivityEventsParameters> o) { +checkUnnamed3956(core.List<api.ActivityEventsParameters> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityEventsParameters(o[0]); checkActivityEventsParameters(o[1]); @@ -187,7 +187,7 @@ buildCounterActivityEvents++; if (buildCounterActivityEvents < 3) { o.name = "foo"; - o.parameters = buildUnnamed428(); + o.parameters = buildUnnamed3956(); o.type = "foo"; } buildCounterActivityEvents--; @@ -198,20 +198,20 @@ buildCounterActivityEvents++; if (buildCounterActivityEvents < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed428(o.parameters); + checkUnnamed3956(o.parameters); unittest.expect(o.type, unittest.equals('foo')); } buildCounterActivityEvents--; } -buildUnnamed429() { +buildUnnamed3957() { var o = new core.List<api.ActivityEvents>(); o.add(buildActivityEvents()); o.add(buildActivityEvents()); return o; } -checkUnnamed429(core.List<api.ActivityEvents> o) { +checkUnnamed3957(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 = buildUnnamed429(); + o.events = buildUnnamed3957(); 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')); - checkUnnamed429(o.events); + checkUnnamed3957(o.events); checkActivityId(o.id); unittest.expect(o.ipAddress, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -274,14 +274,14 @@ buildCounterActivity--; } -buildUnnamed430() { +buildUnnamed3958() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed430(core.Map<core.String, core.String> o) { +checkUnnamed3958(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 = buildUnnamed430(); + o.params = buildUnnamed3958(); 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')); - checkUnnamed430(o.params); + checkUnnamed3958(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -351,7 +351,7 @@ buildCounterUsageReportEntity--; } -buildUnnamed431() { +buildUnnamed3959() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -366,7 +366,7 @@ return o; } -checkUnnamed431(core.Map<core.String, core.Object> o) { +checkUnnamed3959(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)); @@ -380,17 +380,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed432() { +buildUnnamed3960() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed431()); - o.add(buildUnnamed431()); + o.add(buildUnnamed3959()); + o.add(buildUnnamed3959()); return o; } -checkUnnamed432(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3960(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed431(o[0]); - checkUnnamed431(o[1]); + checkUnnamed3959(o[0]); + checkUnnamed3959(o[1]); } core.int buildCounterUsageReportParameters = 0; @@ -401,7 +401,7 @@ o.boolValue = true; o.datetimeValue = core.DateTime.parse("2002-02-27T14:01:02"); o.intValue = "foo"; - o.msgValue = buildUnnamed432(); + o.msgValue = buildUnnamed3960(); o.name = "foo"; o.stringValue = "foo"; } @@ -416,21 +416,21 @@ unittest.expect(o.datetimeValue, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.intValue, unittest.equals('foo')); - checkUnnamed432(o.msgValue); + checkUnnamed3960(o.msgValue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.stringValue, unittest.equals('foo')); } buildCounterUsageReportParameters--; } -buildUnnamed433() { +buildUnnamed3961() { var o = new core.List<api.UsageReportParameters>(); o.add(buildUsageReportParameters()); o.add(buildUsageReportParameters()); return o; } -checkUnnamed433(core.List<api.UsageReportParameters> o) { +checkUnnamed3961(core.List<api.UsageReportParameters> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReportParameters(o[0]); checkUsageReportParameters(o[1]); @@ -445,7 +445,7 @@ o.entity = buildUsageReportEntity(); o.etag = "foo"; o.kind = "foo"; - o.parameters = buildUnnamed433(); + o.parameters = buildUnnamed3961(); } buildCounterUsageReport--; return o; @@ -458,19 +458,19 @@ checkUsageReportEntity(o.entity); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed433(o.parameters); + checkUnnamed3961(o.parameters); } buildCounterUsageReport--; } -buildUnnamed434() { +buildUnnamed3962() { var o = new core.List<api.UsageReport>(); o.add(buildUsageReport()); o.add(buildUsageReport()); return o; } -checkUnnamed434(core.List<api.UsageReport> o) { +checkUnnamed3962(core.List<api.UsageReport> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReport(o[0]); checkUsageReport(o[1]); @@ -497,14 +497,14 @@ buildCounterUsageReportsWarningsData--; } -buildUnnamed435() { +buildUnnamed3963() { var o = new core.List<api.UsageReportsWarningsData>(); o.add(buildUsageReportsWarningsData()); o.add(buildUsageReportsWarningsData()); return o; } -checkUnnamed435(core.List<api.UsageReportsWarningsData> o) { +checkUnnamed3963(core.List<api.UsageReportsWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReportsWarningsData(o[0]); checkUsageReportsWarningsData(o[1]); @@ -516,7 +516,7 @@ buildCounterUsageReportsWarnings++; if (buildCounterUsageReportsWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed435(); + o.data = buildUnnamed3963(); o.message = "foo"; } buildCounterUsageReportsWarnings--; @@ -527,20 +527,20 @@ buildCounterUsageReportsWarnings++; if (buildCounterUsageReportsWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed435(o.data); + checkUnnamed3963(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterUsageReportsWarnings--; } -buildUnnamed436() { +buildUnnamed3964() { var o = new core.List<api.UsageReportsWarnings>(); o.add(buildUsageReportsWarnings()); o.add(buildUsageReportsWarnings()); return o; } -checkUnnamed436(core.List<api.UsageReportsWarnings> o) { +checkUnnamed3964(core.List<api.UsageReportsWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReportsWarnings(o[0]); checkUsageReportsWarnings(o[1]); @@ -554,8 +554,8 @@ o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; - o.usageReports = buildUnnamed434(); - o.warnings = buildUnnamed436(); + o.usageReports = buildUnnamed3962(); + o.warnings = buildUnnamed3964(); } buildCounterUsageReports--; return o; @@ -567,8 +567,8 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed434(o.usageReports); - checkUnnamed436(o.warnings); + checkUnnamed3962(o.usageReports); + checkUnnamed3964(o.warnings); } buildCounterUsageReports--; }
diff --git a/generated/googleapis/test/adsense/v1_4_test.dart b/generated/googleapis/test/adsense/v1_4_test.dart index 4938d83..4ba75c6 100644 --- a/generated/googleapis/test/adsense/v1_4_test.dart +++ b/generated/googleapis/test/adsense/v1_4_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3528() { +buildUnnamed2556() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed3528(core.List<api.Account> o) { +checkUnnamed2556(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -73,7 +73,7 @@ o.kind = "foo"; o.name = "foo"; o.premium = true; - o.subAccounts = buildUnnamed3528(); + o.subAccounts = buildUnnamed2556(); o.timezone = "foo"; } buildCounterAccount--; @@ -88,20 +88,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.premium, unittest.isTrue); - checkUnnamed3528(o.subAccounts); + checkUnnamed2556(o.subAccounts); unittest.expect(o.timezone, unittest.equals('foo')); } buildCounterAccount--; } -buildUnnamed3529() { +buildUnnamed2557() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed3529(core.List<api.Account> o) { +checkUnnamed2557(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -113,7 +113,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { o.etag = "foo"; - o.items = buildUnnamed3529(); + o.items = buildUnnamed2557(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -125,7 +125,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3529(o.items); + checkUnnamed2557(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -159,14 +159,14 @@ buildCounterAdClient--; } -buildUnnamed3530() { +buildUnnamed2558() { var o = new core.List<api.AdClient>(); o.add(buildAdClient()); o.add(buildAdClient()); return o; } -checkUnnamed3530(core.List<api.AdClient> o) { +checkUnnamed2558(core.List<api.AdClient> o) { unittest.expect(o, unittest.hasLength(2)); checkAdClient(o[0]); checkAdClient(o[1]); @@ -178,7 +178,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { o.etag = "foo"; - o.items = buildUnnamed3530(); + o.items = buildUnnamed2558(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -190,7 +190,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3530(o.items); + checkUnnamed2558(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -425,14 +425,14 @@ buildCounterAdUnit--; } -buildUnnamed3531() { +buildUnnamed2559() { var o = new core.List<api.AdUnit>(); o.add(buildAdUnit()); o.add(buildAdUnit()); return o; } -checkUnnamed3531(core.List<api.AdUnit> o) { +checkUnnamed2559(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 = buildUnnamed3531(); + o.items = buildUnnamed2559(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -456,21 +456,21 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3531(o.items); + checkUnnamed2559(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdUnits--; } -buildUnnamed3532() { +buildUnnamed2560() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3532(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')); @@ -500,66 +500,66 @@ buildCounterAdsenseReportsGenerateResponseHeaders--; } -buildUnnamed3533() { +buildUnnamed2561() { var o = new core.List<api.AdsenseReportsGenerateResponseHeaders>(); o.add(buildAdsenseReportsGenerateResponseHeaders()); o.add(buildAdsenseReportsGenerateResponseHeaders()); return o; } -checkUnnamed3533(core.List<api.AdsenseReportsGenerateResponseHeaders> o) { +checkUnnamed2561(core.List<api.AdsenseReportsGenerateResponseHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkAdsenseReportsGenerateResponseHeaders(o[0]); checkAdsenseReportsGenerateResponseHeaders(o[1]); } -buildUnnamed3534() { +buildUnnamed2562() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3534(core.List<core.String> o) { +checkUnnamed2562(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3535() { +buildUnnamed2563() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed3534()); - o.add(buildUnnamed3534()); + o.add(buildUnnamed2562()); + o.add(buildUnnamed2562()); return o; } -checkUnnamed3535(core.List<core.List<core.String>> o) { +checkUnnamed2563(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3534(o[0]); - checkUnnamed3534(o[1]); + checkUnnamed2562(o[0]); + checkUnnamed2562(o[1]); } -buildUnnamed3536() { +buildUnnamed2564() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3536(core.List<core.String> o) { +checkUnnamed2564(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3537() { +buildUnnamed2565() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3537(core.List<core.String> o) { +checkUnnamed2565(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -570,15 +570,15 @@ var o = new api.AdsenseReportsGenerateResponse(); buildCounterAdsenseReportsGenerateResponse++; if (buildCounterAdsenseReportsGenerateResponse < 3) { - o.averages = buildUnnamed3532(); + o.averages = buildUnnamed2560(); o.endDate = "foo"; - o.headers = buildUnnamed3533(); + o.headers = buildUnnamed2561(); o.kind = "foo"; - o.rows = buildUnnamed3535(); + o.rows = buildUnnamed2563(); o.startDate = "foo"; o.totalMatchedRows = "foo"; - o.totals = buildUnnamed3536(); - o.warnings = buildUnnamed3537(); + o.totals = buildUnnamed2564(); + o.warnings = buildUnnamed2565(); } buildCounterAdsenseReportsGenerateResponse--; return o; @@ -587,15 +587,15 @@ checkAdsenseReportsGenerateResponse(api.AdsenseReportsGenerateResponse o) { buildCounterAdsenseReportsGenerateResponse++; if (buildCounterAdsenseReportsGenerateResponse < 3) { - checkUnnamed3532(o.averages); + checkUnnamed2560(o.averages); unittest.expect(o.endDate, unittest.equals('foo')); - checkUnnamed3533(o.headers); + checkUnnamed2561(o.headers); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3535(o.rows); + checkUnnamed2563(o.rows); unittest.expect(o.startDate, unittest.equals('foo')); unittest.expect(o.totalMatchedRows, unittest.equals('foo')); - checkUnnamed3536(o.totals); - checkUnnamed3537(o.warnings); + checkUnnamed2564(o.totals); + checkUnnamed2565(o.warnings); } buildCounterAdsenseReportsGenerateResponse--; } @@ -629,14 +629,14 @@ buildCounterAlert--; } -buildUnnamed3538() { +buildUnnamed2566() { var o = new core.List<api.Alert>(); o.add(buildAlert()); o.add(buildAlert()); return o; } -checkUnnamed3538(core.List<api.Alert> o) { +checkUnnamed2566(core.List<api.Alert> o) { unittest.expect(o, unittest.hasLength(2)); checkAlert(o[0]); checkAlert(o[1]); @@ -647,7 +647,7 @@ var o = new api.Alerts(); buildCounterAlerts++; if (buildCounterAlerts < 3) { - o.items = buildUnnamed3538(); + o.items = buildUnnamed2566(); o.kind = "foo"; } buildCounterAlerts--; @@ -657,7 +657,7 @@ checkAlerts(api.Alerts o) { buildCounterAlerts++; if (buildCounterAlerts < 3) { - checkUnnamed3538(o.items); + checkUnnamed2566(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAlerts--; @@ -715,14 +715,14 @@ buildCounterCustomChannel--; } -buildUnnamed3539() { +buildUnnamed2567() { var o = new core.List<api.CustomChannel>(); o.add(buildCustomChannel()); o.add(buildCustomChannel()); return o; } -checkUnnamed3539(core.List<api.CustomChannel> o) { +checkUnnamed2567(core.List<api.CustomChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomChannel(o[0]); checkCustomChannel(o[1]); @@ -734,7 +734,7 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed3539(); + o.items = buildUnnamed2567(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -746,21 +746,21 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3539(o.items); + checkUnnamed2567(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomChannels--; } -buildUnnamed3540() { +buildUnnamed2568() { var o = new core.List<api.ReportingMetadataEntry>(); o.add(buildReportingMetadataEntry()); o.add(buildReportingMetadataEntry()); return o; } -checkUnnamed3540(core.List<api.ReportingMetadataEntry> o) { +checkUnnamed2568(core.List<api.ReportingMetadataEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkReportingMetadataEntry(o[0]); checkReportingMetadataEntry(o[1]); @@ -771,7 +771,7 @@ var o = new api.Metadata(); buildCounterMetadata++; if (buildCounterMetadata < 3) { - o.items = buildUnnamed3540(); + o.items = buildUnnamed2568(); o.kind = "foo"; } buildCounterMetadata--; @@ -781,7 +781,7 @@ checkMetadata(api.Metadata o) { buildCounterMetadata++; if (buildCounterMetadata < 3) { - checkUnnamed3540(o.items); + checkUnnamed2568(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; @@ -814,14 +814,14 @@ buildCounterPayment--; } -buildUnnamed3541() { +buildUnnamed2569() { var o = new core.List<api.Payment>(); o.add(buildPayment()); o.add(buildPayment()); return o; } -checkUnnamed3541(core.List<api.Payment> o) { +checkUnnamed2569(core.List<api.Payment> o) { unittest.expect(o, unittest.hasLength(2)); checkPayment(o[0]); checkPayment(o[1]); @@ -832,7 +832,7 @@ var o = new api.Payments(); buildCounterPayments++; if (buildCounterPayments < 3) { - o.items = buildUnnamed3541(); + o.items = buildUnnamed2569(); o.kind = "foo"; } buildCounterPayments--; @@ -842,72 +842,72 @@ checkPayments(api.Payments o) { buildCounterPayments++; if (buildCounterPayments < 3) { - checkUnnamed3541(o.items); + checkUnnamed2569(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPayments--; } -buildUnnamed3542() { +buildUnnamed2570() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3542(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')); } -buildUnnamed3543() { +buildUnnamed2571() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3543(core.List<core.String> o) { +checkUnnamed2571(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3544() { +buildUnnamed2572() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3544(core.List<core.String> o) { +checkUnnamed2572(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3545() { +buildUnnamed2573() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3545(core.List<core.String> o) { +checkUnnamed2573(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3546() { +buildUnnamed2574() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3546(core.List<core.String> o) { +checkUnnamed2574(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -918,13 +918,13 @@ var o = new api.ReportingMetadataEntry(); buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - o.compatibleDimensions = buildUnnamed3542(); - o.compatibleMetrics = buildUnnamed3543(); + o.compatibleDimensions = buildUnnamed2570(); + o.compatibleMetrics = buildUnnamed2571(); o.id = "foo"; o.kind = "foo"; - o.requiredDimensions = buildUnnamed3544(); - o.requiredMetrics = buildUnnamed3545(); - o.supportedProducts = buildUnnamed3546(); + o.requiredDimensions = buildUnnamed2572(); + o.requiredMetrics = buildUnnamed2573(); + o.supportedProducts = buildUnnamed2574(); } buildCounterReportingMetadataEntry--; return o; @@ -933,13 +933,13 @@ checkReportingMetadataEntry(api.ReportingMetadataEntry o) { buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - checkUnnamed3542(o.compatibleDimensions); - checkUnnamed3543(o.compatibleMetrics); + checkUnnamed2570(o.compatibleDimensions); + checkUnnamed2571(o.compatibleMetrics); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3544(o.requiredDimensions); - checkUnnamed3545(o.requiredMetrics); - checkUnnamed3546(o.supportedProducts); + checkUnnamed2572(o.requiredDimensions); + checkUnnamed2573(o.requiredMetrics); + checkUnnamed2574(o.supportedProducts); } buildCounterReportingMetadataEntry--; } @@ -969,14 +969,14 @@ buildCounterSavedAdStyle--; } -buildUnnamed3547() { +buildUnnamed2575() { var o = new core.List<api.SavedAdStyle>(); o.add(buildSavedAdStyle()); o.add(buildSavedAdStyle()); return o; } -checkUnnamed3547(core.List<api.SavedAdStyle> o) { +checkUnnamed2575(core.List<api.SavedAdStyle> o) { unittest.expect(o, unittest.hasLength(2)); checkSavedAdStyle(o[0]); checkSavedAdStyle(o[1]); @@ -988,7 +988,7 @@ buildCounterSavedAdStyles++; if (buildCounterSavedAdStyles < 3) { o.etag = "foo"; - o.items = buildUnnamed3547(); + o.items = buildUnnamed2575(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1000,7 +1000,7 @@ buildCounterSavedAdStyles++; if (buildCounterSavedAdStyles < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3547(o.items); + checkUnnamed2575(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1030,14 +1030,14 @@ buildCounterSavedReport--; } -buildUnnamed3548() { +buildUnnamed2576() { var o = new core.List<api.SavedReport>(); o.add(buildSavedReport()); o.add(buildSavedReport()); return o; } -checkUnnamed3548(core.List<api.SavedReport> o) { +checkUnnamed2576(core.List<api.SavedReport> o) { unittest.expect(o, unittest.hasLength(2)); checkSavedReport(o[0]); checkSavedReport(o[1]); @@ -1049,7 +1049,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { o.etag = "foo"; - o.items = buildUnnamed3548(); + o.items = buildUnnamed2576(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1061,7 +1061,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3548(o.items); + checkUnnamed2576(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1091,14 +1091,14 @@ buildCounterUrlChannel--; } -buildUnnamed3549() { +buildUnnamed2577() { var o = new core.List<api.UrlChannel>(); o.add(buildUrlChannel()); o.add(buildUrlChannel()); return o; } -checkUnnamed3549(core.List<api.UrlChannel> o) { +checkUnnamed2577(core.List<api.UrlChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlChannel(o[0]); checkUrlChannel(o[1]); @@ -1110,7 +1110,7 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed3549(); + o.items = buildUnnamed2577(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1122,125 +1122,125 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3549(o.items); + checkUnnamed2577(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterUrlChannels--; } -buildUnnamed3550() { +buildUnnamed2578() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3550(core.List<core.String> o) { +checkUnnamed2578(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3551() { +buildUnnamed2579() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3551(core.List<core.String> o) { +checkUnnamed2579(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3552() { +buildUnnamed2580() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3552(core.List<core.String> o) { +checkUnnamed2580(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3553() { +buildUnnamed2581() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3553(core.List<core.String> o) { +checkUnnamed2581(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3554() { +buildUnnamed2582() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3554(core.List<core.String> o) { +checkUnnamed2582(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3555() { +buildUnnamed2583() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3555(core.List<core.String> o) { +checkUnnamed2583(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3556() { +buildUnnamed2584() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3556(core.List<core.String> o) { +checkUnnamed2584(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3557() { +buildUnnamed2585() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3557(core.List<core.String> o) { +checkUnnamed2585(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3558() { +buildUnnamed2586() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3558(core.List<core.String> o) { +checkUnnamed2586(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2505,12 +2505,12 @@ var arg_startDate = "foo"; var arg_endDate = "foo"; var arg_currency = "foo"; - var arg_dimension = buildUnnamed3550(); - var arg_filter = buildUnnamed3551(); + var arg_dimension = buildUnnamed2578(); + var arg_filter = buildUnnamed2579(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed3552(); - var arg_sort = buildUnnamed3553(); + var arg_metric = buildUnnamed2580(); + var arg_sort = buildUnnamed2581(); var arg_startIndex = 42; var arg_useTimezoneReporting = true; var arg_$fields = "foo"; @@ -3845,14 +3845,14 @@ api.ReportsResourceApi res = new api.AdsenseApi(mock).reports; var arg_startDate = "foo"; var arg_endDate = "foo"; - var arg_accountId = buildUnnamed3554(); + var arg_accountId = buildUnnamed2582(); var arg_currency = "foo"; - var arg_dimension = buildUnnamed3555(); - var arg_filter = buildUnnamed3556(); + var arg_dimension = buildUnnamed2583(); + var arg_filter = buildUnnamed2584(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed3557(); - var arg_sort = buildUnnamed3558(); + var arg_metric = buildUnnamed2585(); + var arg_sort = buildUnnamed2586(); var arg_startIndex = 42; var arg_useTimezoneReporting = true; var arg_$fields = "foo";
diff --git a/generated/googleapis/test/adsensehost/v4_1_test.dart b/generated/googleapis/test/adsensehost/v4_1_test.dart index de975e0..318d9cd 100644 --- a/generated/googleapis/test/adsensehost/v4_1_test.dart +++ b/generated/googleapis/test/adsensehost/v4_1_test.dart
@@ -75,14 +75,14 @@ buildCounterAccount--; } -buildUnnamed2831() { +buildUnnamed2448() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed2831(core.List<api.Account> o) { +checkUnnamed2448(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -94,7 +94,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { o.etag = "foo"; - o.items = buildUnnamed2831(); + o.items = buildUnnamed2448(); o.kind = "foo"; } buildCounterAccounts--; @@ -105,7 +105,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2831(o.items); + checkUnnamed2448(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccounts--; @@ -138,14 +138,14 @@ buildCounterAdClient--; } -buildUnnamed2832() { +buildUnnamed2449() { var o = new core.List<api.AdClient>(); o.add(buildAdClient()); o.add(buildAdClient()); return o; } -checkUnnamed2832(core.List<api.AdClient> o) { +checkUnnamed2449(core.List<api.AdClient> o) { unittest.expect(o, unittest.hasLength(2)); checkAdClient(o[0]); checkAdClient(o[1]); @@ -157,7 +157,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { o.etag = "foo"; - o.items = buildUnnamed2832(); + o.items = buildUnnamed2449(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -169,7 +169,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2832(o.items); + checkUnnamed2449(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -375,14 +375,14 @@ buildCounterAdUnit--; } -buildUnnamed2833() { +buildUnnamed2450() { var o = new core.List<api.AdUnit>(); o.add(buildAdUnit()); o.add(buildAdUnit()); return o; } -checkUnnamed2833(core.List<api.AdUnit> o) { +checkUnnamed2450(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 = buildUnnamed2833(); + o.items = buildUnnamed2450(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -406,21 +406,21 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2833(o.items); + checkUnnamed2450(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdUnits--; } -buildUnnamed2834() { +buildUnnamed2451() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2834(core.List<core.String> o) { +checkUnnamed2451(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -434,7 +434,7 @@ o.accountId = "foo"; o.id = "foo"; o.kind = "foo"; - o.productCodes = buildUnnamed2834(); + o.productCodes = buildUnnamed2451(); 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')); - checkUnnamed2834(o.productCodes); + checkUnnamed2451(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--; } -buildUnnamed2835() { +buildUnnamed2452() { var o = new core.List<api.CustomChannel>(); o.add(buildCustomChannel()); o.add(buildCustomChannel()); return o; } -checkUnnamed2835(core.List<api.CustomChannel> o) { +checkUnnamed2452(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 = buildUnnamed2835(); + o.items = buildUnnamed2452(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -517,21 +517,21 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2835(o.items); + checkUnnamed2452(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomChannels--; } -buildUnnamed2836() { +buildUnnamed2453() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2836(core.List<core.String> o) { +checkUnnamed2453(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -560,66 +560,66 @@ buildCounterReportHeaders--; } -buildUnnamed2837() { +buildUnnamed2454() { var o = new core.List<api.ReportHeaders>(); o.add(buildReportHeaders()); o.add(buildReportHeaders()); return o; } -checkUnnamed2837(core.List<api.ReportHeaders> o) { +checkUnnamed2454(core.List<api.ReportHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkReportHeaders(o[0]); checkReportHeaders(o[1]); } -buildUnnamed2838() { +buildUnnamed2455() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2838(core.List<core.String> o) { +checkUnnamed2455(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2839() { +buildUnnamed2456() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed2838()); - o.add(buildUnnamed2838()); + o.add(buildUnnamed2455()); + o.add(buildUnnamed2455()); return o; } -checkUnnamed2839(core.List<core.List<core.String>> o) { +checkUnnamed2456(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2838(o[0]); - checkUnnamed2838(o[1]); + checkUnnamed2455(o[0]); + checkUnnamed2455(o[1]); } -buildUnnamed2840() { +buildUnnamed2457() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2840(core.List<core.String> o) { +checkUnnamed2457(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2841() { +buildUnnamed2458() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2841(core.List<core.String> o) { +checkUnnamed2458(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -630,13 +630,13 @@ var o = new api.Report(); buildCounterReport++; if (buildCounterReport < 3) { - o.averages = buildUnnamed2836(); - o.headers = buildUnnamed2837(); + o.averages = buildUnnamed2453(); + o.headers = buildUnnamed2454(); o.kind = "foo"; - o.rows = buildUnnamed2839(); + o.rows = buildUnnamed2456(); o.totalMatchedRows = "foo"; - o.totals = buildUnnamed2840(); - o.warnings = buildUnnamed2841(); + o.totals = buildUnnamed2457(); + o.warnings = buildUnnamed2458(); } buildCounterReport--; return o; @@ -645,13 +645,13 @@ checkReport(api.Report o) { buildCounterReport++; if (buildCounterReport < 3) { - checkUnnamed2836(o.averages); - checkUnnamed2837(o.headers); + checkUnnamed2453(o.averages); + checkUnnamed2454(o.headers); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2839(o.rows); + checkUnnamed2456(o.rows); unittest.expect(o.totalMatchedRows, unittest.equals('foo')); - checkUnnamed2840(o.totals); - checkUnnamed2841(o.warnings); + checkUnnamed2457(o.totals); + checkUnnamed2458(o.warnings); } buildCounterReport--; } @@ -679,14 +679,14 @@ buildCounterUrlChannel--; } -buildUnnamed2842() { +buildUnnamed2459() { var o = new core.List<api.UrlChannel>(); o.add(buildUrlChannel()); o.add(buildUrlChannel()); return o; } -checkUnnamed2842(core.List<api.UrlChannel> o) { +checkUnnamed2459(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 = buildUnnamed2842(); + o.items = buildUnnamed2459(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -710,151 +710,151 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2842(o.items); + checkUnnamed2459(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterUrlChannels--; } -buildUnnamed2843() { +buildUnnamed2460() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2843(core.List<core.String> o) { +checkUnnamed2460(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2844() { +buildUnnamed2461() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2844(core.List<core.String> o) { +checkUnnamed2461(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2845() { +buildUnnamed2462() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2845(core.List<core.String> o) { +checkUnnamed2462(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2846() { +buildUnnamed2463() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2846(core.List<core.String> o) { +checkUnnamed2463(core.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() { +buildUnnamed2464() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2847(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')); } -buildUnnamed2848() { +buildUnnamed2465() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2848(core.List<core.String> o) { +checkUnnamed2465(core.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() { +buildUnnamed2466() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2849(core.List<core.String> o) { +checkUnnamed2466(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2850() { +buildUnnamed2467() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2850(core.List<core.String> o) { +checkUnnamed2467(core.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() { +buildUnnamed2468() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2851(core.List<core.String> o) { +checkUnnamed2468(core.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() { +buildUnnamed2469() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2852(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')); } -buildUnnamed2853() { +buildUnnamed2470() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2853(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')); @@ -1082,7 +1082,7 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.AccountsResourceApi res = new api.AdsensehostApi(mock).accounts; - var arg_filterAdClientId = buildUnnamed2843(); + var arg_filterAdClientId = buildUnnamed2460(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1440,7 +1440,7 @@ var arg_accountId = "foo"; var arg_adClientId = "foo"; var arg_adUnitId = "foo"; - var arg_hostCustomChannelId = buildUnnamed2844(); + var arg_hostCustomChannelId = buildUnnamed2461(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1853,12 +1853,12 @@ var arg_accountId = "foo"; var arg_startDate = "foo"; var arg_endDate = "foo"; - var arg_dimension = buildUnnamed2845(); - var arg_filter = buildUnnamed2846(); + var arg_dimension = buildUnnamed2462(); + var arg_filter = buildUnnamed2463(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed2847(); - var arg_sort = buildUnnamed2848(); + var arg_metric = buildUnnamed2464(); + var arg_sort = buildUnnamed2465(); var arg_startIndex = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -2064,7 +2064,7 @@ var mock = new HttpServerMock(); api.AssociationsessionsResourceApi res = new api.AdsensehostApi(mock).associationsessions; - var arg_productCode = buildUnnamed2849(); + var arg_productCode = buildUnnamed2466(); var arg_websiteUrl = "foo"; var arg_userLocale = "foo"; var arg_websiteLocale = "foo"; @@ -2603,12 +2603,12 @@ api.ReportsResourceApi res = new api.AdsensehostApi(mock).reports; var arg_startDate = "foo"; var arg_endDate = "foo"; - var arg_dimension = buildUnnamed2850(); - var arg_filter = buildUnnamed2851(); + var arg_dimension = buildUnnamed2467(); + var arg_filter = buildUnnamed2468(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed2852(); - var arg_sort = buildUnnamed2853(); + var arg_metric = buildUnnamed2469(); + var arg_sort = buildUnnamed2470(); var arg_startIndex = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
diff --git a/generated/googleapis/test/analytics/v3_test.dart b/generated/googleapis/test/analytics/v3_test.dart index 62bc4e8..84a2c0e 100644 --- a/generated/googleapis/test/analytics/v3_test.dart +++ b/generated/googleapis/test/analytics/v3_test.dart
@@ -71,14 +71,14 @@ buildCounterAccountChildLink--; } -buildUnnamed804() { +buildUnnamed43() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed804(core.List<core.String> o) { +checkUnnamed43(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -89,7 +89,7 @@ var o = new api.AccountPermissions(); buildCounterAccountPermissions++; if (buildCounterAccountPermissions < 3) { - o.effective = buildUnnamed804(); + o.effective = buildUnnamed43(); } buildCounterAccountPermissions--; return o; @@ -98,7 +98,7 @@ checkAccountPermissions(api.AccountPermissions o) { buildCounterAccountPermissions++; if (buildCounterAccountPermissions < 3) { - checkUnnamed804(o.effective); + checkUnnamed43(o.effective); } buildCounterAccountPermissions--; } @@ -165,14 +165,14 @@ buildCounterAccountRef--; } -buildUnnamed805() { +buildUnnamed44() { var o = new core.List<api.AccountSummary>(); o.add(buildAccountSummary()); o.add(buildAccountSummary()); return o; } -checkUnnamed805(core.List<api.AccountSummary> o) { +checkUnnamed44(core.List<api.AccountSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountSummary(o[0]); checkAccountSummary(o[1]); @@ -183,7 +183,7 @@ var o = new api.AccountSummaries(); buildCounterAccountSummaries++; if (buildCounterAccountSummaries < 3) { - o.items = buildUnnamed805(); + o.items = buildUnnamed44(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -199,7 +199,7 @@ checkAccountSummaries(api.AccountSummaries o) { buildCounterAccountSummaries++; if (buildCounterAccountSummaries < 3) { - checkUnnamed805(o.items); + checkUnnamed44(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -211,14 +211,14 @@ buildCounterAccountSummaries--; } -buildUnnamed806() { +buildUnnamed45() { var o = new core.List<api.WebPropertySummary>(); o.add(buildWebPropertySummary()); o.add(buildWebPropertySummary()); return o; } -checkUnnamed806(core.List<api.WebPropertySummary> o) { +checkUnnamed45(core.List<api.WebPropertySummary> o) { unittest.expect(o, unittest.hasLength(2)); checkWebPropertySummary(o[0]); checkWebPropertySummary(o[1]); @@ -233,7 +233,7 @@ o.kind = "foo"; o.name = "foo"; o.starred = true; - o.webProperties = buildUnnamed806(); + o.webProperties = buildUnnamed45(); } buildCounterAccountSummary--; return o; @@ -246,7 +246,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.starred, unittest.isTrue); - checkUnnamed806(o.webProperties); + checkUnnamed45(o.webProperties); } buildCounterAccountSummary--; } @@ -285,12 +285,10 @@ var o = new api.AccountTreeRequestAccountSettings(); buildCounterAccountTreeRequestAccountSettings++; if (buildCounterAccountTreeRequestAccountSettings < 3) { - o.admobReporting = true; - o.sharingWithGoogleAnySales = true; - o.sharingWithGoogleProducts = true; - o.sharingWithGoogleSales = true; - o.sharingWithGoogleSupport = true; - o.sharingWithOthers = true; + o.shareAnonymouslyWithOthers = true; + o.shareWithGoogleProducts = true; + o.shareWithSpecialists = true; + o.shareWithSupport = true; } buildCounterAccountTreeRequestAccountSettings--; return o; @@ -300,12 +298,10 @@ api.AccountTreeRequestAccountSettings o) { buildCounterAccountTreeRequestAccountSettings++; if (buildCounterAccountTreeRequestAccountSettings < 3) { - unittest.expect(o.admobReporting, unittest.isTrue); - unittest.expect(o.sharingWithGoogleAnySales, unittest.isTrue); - unittest.expect(o.sharingWithGoogleProducts, unittest.isTrue); - unittest.expect(o.sharingWithGoogleSales, unittest.isTrue); - unittest.expect(o.sharingWithGoogleSupport, unittest.isTrue); - unittest.expect(o.sharingWithOthers, unittest.isTrue); + unittest.expect(o.shareAnonymouslyWithOthers, unittest.isTrue); + unittest.expect(o.shareWithGoogleProducts, unittest.isTrue); + unittest.expect(o.shareWithSpecialists, unittest.isTrue); + unittest.expect(o.shareWithSupport, unittest.isTrue); } buildCounterAccountTreeRequestAccountSettings--; } @@ -346,12 +342,10 @@ var o = new api.AccountTreeResponseAccountSettings(); buildCounterAccountTreeResponseAccountSettings++; if (buildCounterAccountTreeResponseAccountSettings < 3) { - o.admobReporting = true; - o.sharingWithGoogleAnySales = true; - o.sharingWithGoogleProducts = true; - o.sharingWithGoogleSales = true; - o.sharingWithGoogleSupport = true; - o.sharingWithOthers = true; + o.shareAnonymouslyWithOthers = true; + o.shareWithGoogleProducts = true; + o.shareWithSpecialists = true; + o.shareWithSupport = true; } buildCounterAccountTreeResponseAccountSettings--; return o; @@ -361,12 +355,10 @@ api.AccountTreeResponseAccountSettings o) { buildCounterAccountTreeResponseAccountSettings++; if (buildCounterAccountTreeResponseAccountSettings < 3) { - unittest.expect(o.admobReporting, unittest.isTrue); - unittest.expect(o.sharingWithGoogleAnySales, unittest.isTrue); - unittest.expect(o.sharingWithGoogleProducts, unittest.isTrue); - unittest.expect(o.sharingWithGoogleSales, unittest.isTrue); - unittest.expect(o.sharingWithGoogleSupport, unittest.isTrue); - unittest.expect(o.sharingWithOthers, unittest.isTrue); + unittest.expect(o.shareAnonymouslyWithOthers, unittest.isTrue); + unittest.expect(o.shareWithGoogleProducts, unittest.isTrue); + unittest.expect(o.shareWithSpecialists, unittest.isTrue); + unittest.expect(o.shareWithSupport, unittest.isTrue); } buildCounterAccountTreeResponseAccountSettings--; } @@ -398,14 +390,14 @@ buildCounterAccountTreeResponse--; } -buildUnnamed807() { +buildUnnamed46() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed807(core.List<api.Account> o) { +checkUnnamed46(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -416,7 +408,7 @@ var o = new api.Accounts(); buildCounterAccounts++; if (buildCounterAccounts < 3) { - o.items = buildUnnamed807(); + o.items = buildUnnamed46(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -432,7 +424,7 @@ checkAccounts(api.Accounts o) { buildCounterAccounts++; if (buildCounterAccounts < 3) { - checkUnnamed807(o.items); + checkUnnamed46(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -467,14 +459,14 @@ buildCounterAdWordsAccount--; } -buildUnnamed808() { +buildUnnamed47() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed808(core.List<core.String> o) { +checkUnnamed47(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -485,7 +477,7 @@ var o = new api.AnalyticsDataimportDeleteUploadDataRequest(); buildCounterAnalyticsDataimportDeleteUploadDataRequest++; if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) { - o.customDataImportUids = buildUnnamed808(); + o.customDataImportUids = buildUnnamed47(); } buildCounterAnalyticsDataimportDeleteUploadDataRequest--; return o; @@ -495,19 +487,19 @@ api.AnalyticsDataimportDeleteUploadDataRequest o) { buildCounterAnalyticsDataimportDeleteUploadDataRequest++; if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) { - checkUnnamed808(o.customDataImportUids); + checkUnnamed47(o.customDataImportUids); } buildCounterAnalyticsDataimportDeleteUploadDataRequest--; } -buildUnnamed809() { +buildUnnamed48() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed809(core.Map<core.String, core.String> o) { +checkUnnamed48(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')); @@ -518,7 +510,7 @@ var o = new api.Column(); buildCounterColumn++; if (buildCounterColumn < 3) { - o.attributes = buildUnnamed809(); + o.attributes = buildUnnamed48(); o.id = "foo"; o.kind = "foo"; } @@ -529,34 +521,34 @@ checkColumn(api.Column o) { buildCounterColumn++; if (buildCounterColumn < 3) { - checkUnnamed809(o.attributes); + checkUnnamed48(o.attributes); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterColumn--; } -buildUnnamed810() { +buildUnnamed49() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed810(core.List<core.String> o) { +checkUnnamed49(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed811() { +buildUnnamed50() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed811(core.List<api.Column> o) { +checkUnnamed50(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -567,9 +559,9 @@ var o = new api.Columns(); buildCounterColumns++; if (buildCounterColumns < 3) { - o.attributeNames = buildUnnamed810(); + o.attributeNames = buildUnnamed49(); o.etag = "foo"; - o.items = buildUnnamed811(); + o.items = buildUnnamed50(); o.kind = "foo"; o.totalResults = 42; } @@ -580,9 +572,9 @@ checkColumns(api.Columns o) { buildCounterColumns++; if (buildCounterColumns < 3) { - checkUnnamed810(o.attributeNames); + checkUnnamed49(o.attributeNames); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed811(o.items); + checkUnnamed50(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalResults, unittest.equals(42)); } @@ -631,27 +623,27 @@ buildCounterCustomDataSourceParentLink--; } -buildUnnamed812() { +buildUnnamed51() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed812(core.List<core.String> o) { +checkUnnamed51(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed813() { +buildUnnamed52() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed813(core.List<core.String> o) { +checkUnnamed52(core.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,8 +663,8 @@ o.kind = "foo"; o.name = "foo"; o.parentLink = buildCustomDataSourceParentLink(); - o.profilesLinked = buildUnnamed812(); - o.schema = buildUnnamed813(); + o.profilesLinked = buildUnnamed51(); + o.schema = buildUnnamed52(); o.selfLink = "foo"; o.type = "foo"; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); @@ -696,8 +688,8 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkCustomDataSourceParentLink(o.parentLink); - checkUnnamed812(o.profilesLinked); - checkUnnamed813(o.schema); + checkUnnamed51(o.profilesLinked); + checkUnnamed52(o.schema); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect( @@ -708,14 +700,14 @@ buildCounterCustomDataSource--; } -buildUnnamed814() { +buildUnnamed53() { var o = new core.List<api.CustomDataSource>(); o.add(buildCustomDataSource()); o.add(buildCustomDataSource()); return o; } -checkUnnamed814(core.List<api.CustomDataSource> o) { +checkUnnamed53(core.List<api.CustomDataSource> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomDataSource(o[0]); checkCustomDataSource(o[1]); @@ -726,7 +718,7 @@ var o = new api.CustomDataSources(); buildCounterCustomDataSources++; if (buildCounterCustomDataSources < 3) { - o.items = buildUnnamed814(); + o.items = buildUnnamed53(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -742,7 +734,7 @@ checkCustomDataSources(api.CustomDataSources o) { buildCounterCustomDataSources++; if (buildCounterCustomDataSources < 3) { - checkUnnamed814(o.items); + checkUnnamed53(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -818,14 +810,14 @@ buildCounterCustomDimension--; } -buildUnnamed815() { +buildUnnamed54() { var o = new core.List<api.CustomDimension>(); o.add(buildCustomDimension()); o.add(buildCustomDimension()); return o; } -checkUnnamed815(core.List<api.CustomDimension> o) { +checkUnnamed54(core.List<api.CustomDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomDimension(o[0]); checkCustomDimension(o[1]); @@ -836,7 +828,7 @@ var o = new api.CustomDimensions(); buildCounterCustomDimensions++; if (buildCounterCustomDimensions < 3) { - o.items = buildUnnamed815(); + o.items = buildUnnamed54(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -852,7 +844,7 @@ checkCustomDimensions(api.CustomDimensions o) { buildCounterCustomDimensions++; if (buildCounterCustomDimensions < 3) { - checkUnnamed815(o.items); + checkUnnamed54(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -934,14 +926,14 @@ buildCounterCustomMetric--; } -buildUnnamed816() { +buildUnnamed55() { var o = new core.List<api.CustomMetric>(); o.add(buildCustomMetric()); o.add(buildCustomMetric()); return o; } -checkUnnamed816(core.List<api.CustomMetric> o) { +checkUnnamed55(core.List<api.CustomMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomMetric(o[0]); checkCustomMetric(o[1]); @@ -952,7 +944,7 @@ var o = new api.CustomMetrics(); buildCounterCustomMetrics++; if (buildCounterCustomMetrics < 3) { - o.items = buildUnnamed816(); + o.items = buildUnnamed55(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -968,7 +960,7 @@ checkCustomMetrics(api.CustomMetrics o) { buildCounterCustomMetrics++; if (buildCounterCustomMetrics < 3) { - checkUnnamed816(o.items); + checkUnnamed55(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -980,14 +972,14 @@ buildCounterCustomMetrics--; } -buildUnnamed817() { +buildUnnamed56() { var o = new core.List<api.AdWordsAccount>(); o.add(buildAdWordsAccount()); o.add(buildAdWordsAccount()); return o; } -checkUnnamed817(core.List<api.AdWordsAccount> o) { +checkUnnamed56(core.List<api.AdWordsAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkAdWordsAccount(o[0]); checkAdWordsAccount(o[1]); @@ -1012,14 +1004,14 @@ buildCounterEntityAdWordsLinkEntity--; } -buildUnnamed818() { +buildUnnamed57() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed818(core.List<core.String> o) { +checkUnnamed57(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1030,12 +1022,12 @@ var o = new api.EntityAdWordsLink(); buildCounterEntityAdWordsLink++; if (buildCounterEntityAdWordsLink < 3) { - o.adWordsAccounts = buildUnnamed817(); + o.adWordsAccounts = buildUnnamed56(); o.entity = buildEntityAdWordsLinkEntity(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.profileIds = buildUnnamed818(); + o.profileIds = buildUnnamed57(); o.selfLink = "foo"; } buildCounterEntityAdWordsLink--; @@ -1045,25 +1037,25 @@ checkEntityAdWordsLink(api.EntityAdWordsLink o) { buildCounterEntityAdWordsLink++; if (buildCounterEntityAdWordsLink < 3) { - checkUnnamed817(o.adWordsAccounts); + checkUnnamed56(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')); - checkUnnamed818(o.profileIds); + checkUnnamed57(o.profileIds); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterEntityAdWordsLink--; } -buildUnnamed819() { +buildUnnamed58() { var o = new core.List<api.EntityAdWordsLink>(); o.add(buildEntityAdWordsLink()); o.add(buildEntityAdWordsLink()); return o; } -checkUnnamed819(core.List<api.EntityAdWordsLink> o) { +checkUnnamed58(core.List<api.EntityAdWordsLink> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAdWordsLink(o[0]); checkEntityAdWordsLink(o[1]); @@ -1074,7 +1066,7 @@ var o = new api.EntityAdWordsLinks(); buildCounterEntityAdWordsLinks++; if (buildCounterEntityAdWordsLinks < 3) { - o.items = buildUnnamed819(); + o.items = buildUnnamed58(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1089,7 +1081,7 @@ checkEntityAdWordsLinks(api.EntityAdWordsLinks o) { buildCounterEntityAdWordsLinks++; if (buildCounterEntityAdWordsLinks < 3) { - checkUnnamed819(o.items); + checkUnnamed58(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -1123,27 +1115,27 @@ buildCounterEntityUserLinkEntity--; } -buildUnnamed820() { +buildUnnamed59() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed820(core.List<core.String> o) { +checkUnnamed59(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed821() { +buildUnnamed60() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed821(core.List<core.String> o) { +checkUnnamed60(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1154,8 +1146,8 @@ var o = new api.EntityUserLinkPermissions(); buildCounterEntityUserLinkPermissions++; if (buildCounterEntityUserLinkPermissions < 3) { - o.effective = buildUnnamed820(); - o.local = buildUnnamed821(); + o.effective = buildUnnamed59(); + o.local = buildUnnamed60(); } buildCounterEntityUserLinkPermissions--; return o; @@ -1164,8 +1156,8 @@ checkEntityUserLinkPermissions(api.EntityUserLinkPermissions o) { buildCounterEntityUserLinkPermissions++; if (buildCounterEntityUserLinkPermissions < 3) { - checkUnnamed820(o.effective); - checkUnnamed821(o.local); + checkUnnamed59(o.effective); + checkUnnamed60(o.local); } buildCounterEntityUserLinkPermissions--; } @@ -1199,14 +1191,14 @@ buildCounterEntityUserLink--; } -buildUnnamed822() { +buildUnnamed61() { var o = new core.List<api.EntityUserLink>(); o.add(buildEntityUserLink()); o.add(buildEntityUserLink()); return o; } -checkUnnamed822(core.List<api.EntityUserLink> o) { +checkUnnamed61(core.List<api.EntityUserLink> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityUserLink(o[0]); checkEntityUserLink(o[1]); @@ -1217,7 +1209,7 @@ var o = new api.EntityUserLinks(); buildCounterEntityUserLinks++; if (buildCounterEntityUserLinks < 3) { - o.items = buildUnnamed822(); + o.items = buildUnnamed61(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1232,7 +1224,7 @@ checkEntityUserLinks(api.EntityUserLinks o) { buildCounterEntityUserLinks++; if (buildCounterEntityUserLinks < 3) { - checkUnnamed822(o.items); + checkUnnamed61(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -1291,14 +1283,14 @@ buildCounterExperimentVariations--; } -buildUnnamed823() { +buildUnnamed62() { var o = new core.List<api.ExperimentVariations>(); o.add(buildExperimentVariations()); o.add(buildExperimentVariations()); return o; } -checkUnnamed823(core.List<api.ExperimentVariations> o) { +checkUnnamed62(core.List<api.ExperimentVariations> o) { unittest.expect(o, unittest.hasLength(2)); checkExperimentVariations(o[0]); checkExperimentVariations(o[1]); @@ -1333,7 +1325,7 @@ o.status = "foo"; o.trafficCoverage = 42.0; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); - o.variations = buildUnnamed823(); + o.variations = buildUnnamed62(); o.webPropertyId = "foo"; o.winnerConfidenceLevel = 42.0; o.winnerFound = true; @@ -1373,7 +1365,7 @@ unittest.expect(o.trafficCoverage, unittest.equals(42.0)); unittest.expect( o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed823(o.variations); + checkUnnamed62(o.variations); unittest.expect(o.webPropertyId, unittest.equals('foo')); unittest.expect(o.winnerConfidenceLevel, unittest.equals(42.0)); unittest.expect(o.winnerFound, unittest.isTrue); @@ -1381,14 +1373,14 @@ buildCounterExperiment--; } -buildUnnamed824() { +buildUnnamed63() { var o = new core.List<api.Experiment>(); o.add(buildExperiment()); o.add(buildExperiment()); return o; } -checkUnnamed824(core.List<api.Experiment> o) { +checkUnnamed63(core.List<api.Experiment> o) { unittest.expect(o, unittest.hasLength(2)); checkExperiment(o[0]); checkExperiment(o[1]); @@ -1399,7 +1391,7 @@ var o = new api.Experiments(); buildCounterExperiments++; if (buildCounterExperiments < 3) { - o.items = buildUnnamed824(); + o.items = buildUnnamed63(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1415,7 +1407,7 @@ checkExperiments(api.Experiments o) { buildCounterExperiments++; if (buildCounterExperiments < 3) { - checkUnnamed824(o.items); + checkUnnamed63(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -1665,14 +1657,14 @@ buildCounterFilterRef--; } -buildUnnamed825() { +buildUnnamed64() { var o = new core.List<api.Filter>(); o.add(buildFilter()); o.add(buildFilter()); return o; } -checkUnnamed825(core.List<api.Filter> o) { +checkUnnamed64(core.List<api.Filter> o) { unittest.expect(o, unittest.hasLength(2)); checkFilter(o[0]); checkFilter(o[1]); @@ -1683,7 +1675,7 @@ var o = new api.Filters(); buildCounterFilters++; if (buildCounterFilters < 3) { - o.items = buildUnnamed825(); + o.items = buildUnnamed64(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1699,7 +1691,7 @@ checkFilters(api.Filters o) { buildCounterFilters++; if (buildCounterFilters < 3) { - checkUnnamed825(o.items); + checkUnnamed64(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -1734,14 +1726,14 @@ buildCounterGaDataColumnHeaders--; } -buildUnnamed826() { +buildUnnamed65() { var o = new core.List<api.GaDataColumnHeaders>(); o.add(buildGaDataColumnHeaders()); o.add(buildGaDataColumnHeaders()); return o; } -checkUnnamed826(core.List<api.GaDataColumnHeaders> o) { +checkUnnamed65(core.List<api.GaDataColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataColumnHeaders(o[0]); checkGaDataColumnHeaders(o[1]); @@ -1770,14 +1762,14 @@ buildCounterGaDataDataTableCols--; } -buildUnnamed827() { +buildUnnamed66() { var o = new core.List<api.GaDataDataTableCols>(); o.add(buildGaDataDataTableCols()); o.add(buildGaDataDataTableCols()); return o; } -checkUnnamed827(core.List<api.GaDataDataTableCols> o) { +checkUnnamed66(core.List<api.GaDataDataTableCols> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataDataTableCols(o[0]); checkGaDataDataTableCols(o[1]); @@ -1802,14 +1794,14 @@ buildCounterGaDataDataTableRowsC--; } -buildUnnamed828() { +buildUnnamed67() { var o = new core.List<api.GaDataDataTableRowsC>(); o.add(buildGaDataDataTableRowsC()); o.add(buildGaDataDataTableRowsC()); return o; } -checkUnnamed828(core.List<api.GaDataDataTableRowsC> o) { +checkUnnamed67(core.List<api.GaDataDataTableRowsC> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataDataTableRowsC(o[0]); checkGaDataDataTableRowsC(o[1]); @@ -1820,7 +1812,7 @@ var o = new api.GaDataDataTableRows(); buildCounterGaDataDataTableRows++; if (buildCounterGaDataDataTableRows < 3) { - o.c = buildUnnamed828(); + o.c = buildUnnamed67(); } buildCounterGaDataDataTableRows--; return o; @@ -1829,19 +1821,19 @@ checkGaDataDataTableRows(api.GaDataDataTableRows o) { buildCounterGaDataDataTableRows++; if (buildCounterGaDataDataTableRows < 3) { - checkUnnamed828(o.c); + checkUnnamed67(o.c); } buildCounterGaDataDataTableRows--; } -buildUnnamed829() { +buildUnnamed68() { var o = new core.List<api.GaDataDataTableRows>(); o.add(buildGaDataDataTableRows()); o.add(buildGaDataDataTableRows()); return o; } -checkUnnamed829(core.List<api.GaDataDataTableRows> o) { +checkUnnamed68(core.List<api.GaDataDataTableRows> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataDataTableRows(o[0]); checkGaDataDataTableRows(o[1]); @@ -1852,8 +1844,8 @@ var o = new api.GaDataDataTable(); buildCounterGaDataDataTable++; if (buildCounterGaDataDataTable < 3) { - o.cols = buildUnnamed827(); - o.rows = buildUnnamed829(); + o.cols = buildUnnamed66(); + o.rows = buildUnnamed68(); } buildCounterGaDataDataTable--; return o; @@ -1862,8 +1854,8 @@ checkGaDataDataTable(api.GaDataDataTable o) { buildCounterGaDataDataTable++; if (buildCounterGaDataDataTable < 3) { - checkUnnamed827(o.cols); - checkUnnamed829(o.rows); + checkUnnamed66(o.cols); + checkUnnamed68(o.rows); } buildCounterGaDataDataTable--; } @@ -1897,27 +1889,27 @@ buildCounterGaDataProfileInfo--; } -buildUnnamed830() { +buildUnnamed69() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed830(core.List<core.String> o) { +checkUnnamed69(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed831() { +buildUnnamed70() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed831(core.List<core.String> o) { +checkUnnamed70(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1933,10 +1925,10 @@ o.filters = "foo"; o.ids = "foo"; o.max_results = 42; - o.metrics = buildUnnamed830(); + o.metrics = buildUnnamed69(); o.samplingLevel = "foo"; o.segment = "foo"; - o.sort = buildUnnamed831(); + o.sort = buildUnnamed70(); o.start_date = "foo"; o.start_index = 42; } @@ -1952,50 +1944,50 @@ unittest.expect(o.filters, unittest.equals('foo')); unittest.expect(o.ids, unittest.equals('foo')); unittest.expect(o.max_results, unittest.equals(42)); - checkUnnamed830(o.metrics); + checkUnnamed69(o.metrics); unittest.expect(o.samplingLevel, unittest.equals('foo')); unittest.expect(o.segment, unittest.equals('foo')); - checkUnnamed831(o.sort); + checkUnnamed70(o.sort); unittest.expect(o.start_date, unittest.equals('foo')); unittest.expect(o.start_index, unittest.equals(42)); } buildCounterGaDataQuery--; } -buildUnnamed832() { +buildUnnamed71() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed832(core.List<core.String> o) { +checkUnnamed71(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed833() { +buildUnnamed72() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed832()); - o.add(buildUnnamed832()); + o.add(buildUnnamed71()); + o.add(buildUnnamed71()); return o; } -checkUnnamed833(core.List<core.List<core.String>> o) { +checkUnnamed72(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed832(o[0]); - checkUnnamed832(o[1]); + checkUnnamed71(o[0]); + checkUnnamed71(o[1]); } -buildUnnamed834() { +buildUnnamed73() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed834(core.Map<core.String, core.String> o) { +checkUnnamed73(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')); @@ -2006,7 +1998,7 @@ var o = new api.GaData(); buildCounterGaData++; if (buildCounterGaData < 3) { - o.columnHeaders = buildUnnamed826(); + o.columnHeaders = buildUnnamed65(); o.containsSampledData = true; o.dataLastRefreshed = "foo"; o.dataTable = buildGaDataDataTable(); @@ -2017,12 +2009,12 @@ o.previousLink = "foo"; o.profileInfo = buildGaDataProfileInfo(); o.query = buildGaDataQuery(); - o.rows = buildUnnamed833(); + o.rows = buildUnnamed72(); o.sampleSize = "foo"; o.sampleSpace = "foo"; o.selfLink = "foo"; o.totalResults = 42; - o.totalsForAllResults = buildUnnamed834(); + o.totalsForAllResults = buildUnnamed73(); } buildCounterGaData--; return o; @@ -2031,7 +2023,7 @@ checkGaData(api.GaData o) { buildCounterGaData++; if (buildCounterGaData < 3) { - checkUnnamed826(o.columnHeaders); + checkUnnamed65(o.columnHeaders); unittest.expect(o.containsSampledData, unittest.isTrue); unittest.expect(o.dataLastRefreshed, unittest.equals('foo')); checkGaDataDataTable(o.dataTable); @@ -2042,12 +2034,12 @@ unittest.expect(o.previousLink, unittest.equals('foo')); checkGaDataProfileInfo(o.profileInfo); checkGaDataQuery(o.query); - checkUnnamed833(o.rows); + checkUnnamed72(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)); - checkUnnamed834(o.totalsForAllResults); + checkUnnamed73(o.totalsForAllResults); } buildCounterGaData--; } @@ -2079,14 +2071,14 @@ buildCounterGoalEventDetailsEventConditions--; } -buildUnnamed835() { +buildUnnamed74() { var o = new core.List<api.GoalEventDetailsEventConditions>(); o.add(buildGoalEventDetailsEventConditions()); o.add(buildGoalEventDetailsEventConditions()); return o; } -checkUnnamed835(core.List<api.GoalEventDetailsEventConditions> o) { +checkUnnamed74(core.List<api.GoalEventDetailsEventConditions> o) { unittest.expect(o, unittest.hasLength(2)); checkGoalEventDetailsEventConditions(o[0]); checkGoalEventDetailsEventConditions(o[1]); @@ -2097,7 +2089,7 @@ var o = new api.GoalEventDetails(); buildCounterGoalEventDetails++; if (buildCounterGoalEventDetails < 3) { - o.eventConditions = buildUnnamed835(); + o.eventConditions = buildUnnamed74(); o.useEventValue = true; } buildCounterGoalEventDetails--; @@ -2107,7 +2099,7 @@ checkGoalEventDetails(api.GoalEventDetails o) { buildCounterGoalEventDetails++; if (buildCounterGoalEventDetails < 3) { - checkUnnamed835(o.eventConditions); + checkUnnamed74(o.eventConditions); unittest.expect(o.useEventValue, unittest.isTrue); } buildCounterGoalEventDetails--; @@ -2157,14 +2149,14 @@ buildCounterGoalUrlDestinationDetailsSteps--; } -buildUnnamed836() { +buildUnnamed75() { var o = new core.List<api.GoalUrlDestinationDetailsSteps>(); o.add(buildGoalUrlDestinationDetailsSteps()); o.add(buildGoalUrlDestinationDetailsSteps()); return o; } -checkUnnamed836(core.List<api.GoalUrlDestinationDetailsSteps> o) { +checkUnnamed75(core.List<api.GoalUrlDestinationDetailsSteps> o) { unittest.expect(o, unittest.hasLength(2)); checkGoalUrlDestinationDetailsSteps(o[0]); checkGoalUrlDestinationDetailsSteps(o[1]); @@ -2178,7 +2170,7 @@ o.caseSensitive = true; o.firstStepRequired = true; o.matchType = "foo"; - o.steps = buildUnnamed836(); + o.steps = buildUnnamed75(); o.url = "foo"; } buildCounterGoalUrlDestinationDetails--; @@ -2191,7 +2183,7 @@ unittest.expect(o.caseSensitive, unittest.isTrue); unittest.expect(o.firstStepRequired, unittest.isTrue); unittest.expect(o.matchType, unittest.equals('foo')); - checkUnnamed836(o.steps); + checkUnnamed75(o.steps); unittest.expect(o.url, unittest.equals('foo')); } buildCounterGoalUrlDestinationDetails--; @@ -2294,14 +2286,14 @@ buildCounterGoal--; } -buildUnnamed837() { +buildUnnamed76() { var o = new core.List<api.Goal>(); o.add(buildGoal()); o.add(buildGoal()); return o; } -checkUnnamed837(core.List<api.Goal> o) { +checkUnnamed76(core.List<api.Goal> o) { unittest.expect(o, unittest.hasLength(2)); checkGoal(o[0]); checkGoal(o[1]); @@ -2312,7 +2304,7 @@ var o = new api.Goals(); buildCounterGoals++; if (buildCounterGoals < 3) { - o.items = buildUnnamed837(); + o.items = buildUnnamed76(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -2328,7 +2320,7 @@ checkGoals(api.Goals o) { buildCounterGoals++; if (buildCounterGoals < 3) { - checkUnnamed837(o.items); + checkUnnamed76(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -2427,14 +2419,14 @@ buildCounterMcfDataColumnHeaders--; } -buildUnnamed838() { +buildUnnamed77() { var o = new core.List<api.McfDataColumnHeaders>(); o.add(buildMcfDataColumnHeaders()); o.add(buildMcfDataColumnHeaders()); return o; } -checkUnnamed838(core.List<api.McfDataColumnHeaders> o) { +checkUnnamed77(core.List<api.McfDataColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkMcfDataColumnHeaders(o[0]); checkMcfDataColumnHeaders(o[1]); @@ -2469,27 +2461,27 @@ buildCounterMcfDataProfileInfo--; } -buildUnnamed839() { +buildUnnamed78() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed839(core.List<core.String> o) { +checkUnnamed78(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed840() { +buildUnnamed79() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed840(core.List<core.String> o) { +checkUnnamed79(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2505,10 +2497,10 @@ o.filters = "foo"; o.ids = "foo"; o.max_results = 42; - o.metrics = buildUnnamed839(); + o.metrics = buildUnnamed78(); o.samplingLevel = "foo"; o.segment = "foo"; - o.sort = buildUnnamed840(); + o.sort = buildUnnamed79(); o.start_date = "foo"; o.start_index = 42; } @@ -2524,10 +2516,10 @@ unittest.expect(o.filters, unittest.equals('foo')); unittest.expect(o.ids, unittest.equals('foo')); unittest.expect(o.max_results, unittest.equals(42)); - checkUnnamed839(o.metrics); + checkUnnamed78(o.metrics); unittest.expect(o.samplingLevel, unittest.equals('foo')); unittest.expect(o.segment, unittest.equals('foo')); - checkUnnamed840(o.sort); + checkUnnamed79(o.sort); unittest.expect(o.start_date, unittest.equals('foo')); unittest.expect(o.start_index, unittest.equals(42)); } @@ -2555,14 +2547,14 @@ buildCounterMcfDataRowsConversionPathValue--; } -buildUnnamed841() { +buildUnnamed80() { var o = new core.List<api.McfDataRowsConversionPathValue>(); o.add(buildMcfDataRowsConversionPathValue()); o.add(buildMcfDataRowsConversionPathValue()); return o; } -checkUnnamed841(core.List<api.McfDataRowsConversionPathValue> o) { +checkUnnamed80(core.List<api.McfDataRowsConversionPathValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMcfDataRowsConversionPathValue(o[0]); checkMcfDataRowsConversionPathValue(o[1]); @@ -2573,7 +2565,7 @@ var o = new api.McfDataRows(); buildCounterMcfDataRows++; if (buildCounterMcfDataRows < 3) { - o.conversionPathValue = buildUnnamed841(); + o.conversionPathValue = buildUnnamed80(); o.primitiveValue = "foo"; } buildCounterMcfDataRows--; @@ -2583,46 +2575,46 @@ checkMcfDataRows(api.McfDataRows o) { buildCounterMcfDataRows++; if (buildCounterMcfDataRows < 3) { - checkUnnamed841(o.conversionPathValue); + checkUnnamed80(o.conversionPathValue); unittest.expect(o.primitiveValue, unittest.equals('foo')); } buildCounterMcfDataRows--; } -buildUnnamed842() { +buildUnnamed81() { var o = new core.List<api.McfDataRows>(); o.add(buildMcfDataRows()); o.add(buildMcfDataRows()); return o; } -checkUnnamed842(core.List<api.McfDataRows> o) { +checkUnnamed81(core.List<api.McfDataRows> o) { unittest.expect(o, unittest.hasLength(2)); checkMcfDataRows(o[0]); checkMcfDataRows(o[1]); } -buildUnnamed843() { +buildUnnamed82() { var o = new core.List<core.List<api.McfDataRows>>(); - o.add(buildUnnamed842()); - o.add(buildUnnamed842()); + o.add(buildUnnamed81()); + o.add(buildUnnamed81()); return o; } -checkUnnamed843(core.List<core.List<api.McfDataRows>> o) { +checkUnnamed82(core.List<core.List<api.McfDataRows>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed842(o[0]); - checkUnnamed842(o[1]); + checkUnnamed81(o[0]); + checkUnnamed81(o[1]); } -buildUnnamed844() { +buildUnnamed83() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed844(core.Map<core.String, core.String> o) { +checkUnnamed83(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')); @@ -2633,7 +2625,7 @@ var o = new api.McfData(); buildCounterMcfData++; if (buildCounterMcfData < 3) { - o.columnHeaders = buildUnnamed838(); + o.columnHeaders = buildUnnamed77(); o.containsSampledData = true; o.id = "foo"; o.itemsPerPage = 42; @@ -2642,12 +2634,12 @@ o.previousLink = "foo"; o.profileInfo = buildMcfDataProfileInfo(); o.query = buildMcfDataQuery(); - o.rows = buildUnnamed843(); + o.rows = buildUnnamed82(); o.sampleSize = "foo"; o.sampleSpace = "foo"; o.selfLink = "foo"; o.totalResults = 42; - o.totalsForAllResults = buildUnnamed844(); + o.totalsForAllResults = buildUnnamed83(); } buildCounterMcfData--; return o; @@ -2656,7 +2648,7 @@ checkMcfData(api.McfData o) { buildCounterMcfData++; if (buildCounterMcfData < 3) { - checkUnnamed838(o.columnHeaders); + checkUnnamed77(o.columnHeaders); unittest.expect(o.containsSampledData, unittest.isTrue); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.itemsPerPage, unittest.equals(42)); @@ -2665,12 +2657,12 @@ unittest.expect(o.previousLink, unittest.equals('foo')); checkMcfDataProfileInfo(o.profileInfo); checkMcfDataQuery(o.query); - checkUnnamed843(o.rows); + checkUnnamed82(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)); - checkUnnamed844(o.totalsForAllResults); + checkUnnamed83(o.totalsForAllResults); } buildCounterMcfData--; } @@ -2717,14 +2709,14 @@ buildCounterProfileParentLink--; } -buildUnnamed845() { +buildUnnamed84() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed845(core.List<core.String> o) { +checkUnnamed84(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2735,7 +2727,7 @@ var o = new api.ProfilePermissions(); buildCounterProfilePermissions++; if (buildCounterProfilePermissions < 3) { - o.effective = buildUnnamed845(); + o.effective = buildUnnamed84(); } buildCounterProfilePermissions--; return o; @@ -2744,7 +2736,7 @@ checkProfilePermissions(api.ProfilePermissions o) { buildCounterProfilePermissions++; if (buildCounterProfilePermissions < 3) { - checkUnnamed845(o.effective); + checkUnnamed84(o.effective); } buildCounterProfilePermissions--; } @@ -2849,14 +2841,14 @@ buildCounterProfileFilterLink--; } -buildUnnamed846() { +buildUnnamed85() { var o = new core.List<api.ProfileFilterLink>(); o.add(buildProfileFilterLink()); o.add(buildProfileFilterLink()); return o; } -checkUnnamed846(core.List<api.ProfileFilterLink> o) { +checkUnnamed85(core.List<api.ProfileFilterLink> o) { unittest.expect(o, unittest.hasLength(2)); checkProfileFilterLink(o[0]); checkProfileFilterLink(o[1]); @@ -2867,7 +2859,7 @@ var o = new api.ProfileFilterLinks(); buildCounterProfileFilterLinks++; if (buildCounterProfileFilterLinks < 3) { - o.items = buildUnnamed846(); + o.items = buildUnnamed85(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -2883,7 +2875,7 @@ checkProfileFilterLinks(api.ProfileFilterLinks o) { buildCounterProfileFilterLinks++; if (buildCounterProfileFilterLinks < 3) { - checkUnnamed846(o.items); + checkUnnamed85(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -2953,14 +2945,14 @@ buildCounterProfileSummary--; } -buildUnnamed847() { +buildUnnamed86() { var o = new core.List<api.Profile>(); o.add(buildProfile()); o.add(buildProfile()); return o; } -checkUnnamed847(core.List<api.Profile> o) { +checkUnnamed86(core.List<api.Profile> o) { unittest.expect(o, unittest.hasLength(2)); checkProfile(o[0]); checkProfile(o[1]); @@ -2971,7 +2963,7 @@ var o = new api.Profiles(); buildCounterProfiles++; if (buildCounterProfiles < 3) { - o.items = buildUnnamed847(); + o.items = buildUnnamed86(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -2987,7 +2979,7 @@ checkProfiles(api.Profiles o) { buildCounterProfiles++; if (buildCounterProfiles < 3) { - checkUnnamed847(o.items); + checkUnnamed86(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3022,14 +3014,14 @@ buildCounterRealtimeDataColumnHeaders--; } -buildUnnamed848() { +buildUnnamed87() { var o = new core.List<api.RealtimeDataColumnHeaders>(); o.add(buildRealtimeDataColumnHeaders()); o.add(buildRealtimeDataColumnHeaders()); return o; } -checkUnnamed848(core.List<api.RealtimeDataColumnHeaders> o) { +checkUnnamed87(core.List<api.RealtimeDataColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkRealtimeDataColumnHeaders(o[0]); checkRealtimeDataColumnHeaders(o[1]); @@ -3064,27 +3056,27 @@ buildCounterRealtimeDataProfileInfo--; } -buildUnnamed849() { +buildUnnamed88() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed849(core.List<core.String> o) { +checkUnnamed88(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed850() { +buildUnnamed89() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed850(core.List<core.String> o) { +checkUnnamed89(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3099,8 +3091,8 @@ o.filters = "foo"; o.ids = "foo"; o.max_results = 42; - o.metrics = buildUnnamed849(); - o.sort = buildUnnamed850(); + o.metrics = buildUnnamed88(); + o.sort = buildUnnamed89(); } buildCounterRealtimeDataQuery--; return o; @@ -3113,46 +3105,46 @@ unittest.expect(o.filters, unittest.equals('foo')); unittest.expect(o.ids, unittest.equals('foo')); unittest.expect(o.max_results, unittest.equals(42)); - checkUnnamed849(o.metrics); - checkUnnamed850(o.sort); + checkUnnamed88(o.metrics); + checkUnnamed89(o.sort); } buildCounterRealtimeDataQuery--; } -buildUnnamed851() { +buildUnnamed90() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed851(core.List<core.String> o) { +checkUnnamed90(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed852() { +buildUnnamed91() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed851()); - o.add(buildUnnamed851()); + o.add(buildUnnamed90()); + o.add(buildUnnamed90()); return o; } -checkUnnamed852(core.List<core.List<core.String>> o) { +checkUnnamed91(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed851(o[0]); - checkUnnamed851(o[1]); + checkUnnamed90(o[0]); + checkUnnamed90(o[1]); } -buildUnnamed853() { +buildUnnamed92() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed853(core.Map<core.String, core.String> o) { +checkUnnamed92(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')); @@ -3163,15 +3155,15 @@ var o = new api.RealtimeData(); buildCounterRealtimeData++; if (buildCounterRealtimeData < 3) { - o.columnHeaders = buildUnnamed848(); + o.columnHeaders = buildUnnamed87(); o.id = "foo"; o.kind = "foo"; o.profileInfo = buildRealtimeDataProfileInfo(); o.query = buildRealtimeDataQuery(); - o.rows = buildUnnamed852(); + o.rows = buildUnnamed91(); o.selfLink = "foo"; o.totalResults = 42; - o.totalsForAllResults = buildUnnamed853(); + o.totalsForAllResults = buildUnnamed92(); } buildCounterRealtimeData--; return o; @@ -3180,15 +3172,15 @@ checkRealtimeData(api.RealtimeData o) { buildCounterRealtimeData++; if (buildCounterRealtimeData < 3) { - checkUnnamed848(o.columnHeaders); + checkUnnamed87(o.columnHeaders); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkRealtimeDataProfileInfo(o.profileInfo); checkRealtimeDataQuery(o.query); - checkUnnamed852(o.rows); + checkUnnamed91(o.rows); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalResults, unittest.equals(42)); - checkUnnamed853(o.totalsForAllResults); + checkUnnamed92(o.totalsForAllResults); } buildCounterRealtimeData--; } @@ -3213,27 +3205,27 @@ buildCounterRemarketingAudienceAudienceDefinition--; } -buildUnnamed854() { +buildUnnamed93() { var o = new core.List<api.LinkedForeignAccount>(); o.add(buildLinkedForeignAccount()); o.add(buildLinkedForeignAccount()); return o; } -checkUnnamed854(core.List<api.LinkedForeignAccount> o) { +checkUnnamed93(core.List<api.LinkedForeignAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkLinkedForeignAccount(o[0]); checkLinkedForeignAccount(o[1]); } -buildUnnamed855() { +buildUnnamed94() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed855(core.List<core.String> o) { +checkUnnamed94(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3303,8 +3295,8 @@ o.id = "foo"; o.internalWebPropertyId = "foo"; o.kind = "foo"; - o.linkedAdAccounts = buildUnnamed854(); - o.linkedViews = buildUnnamed855(); + o.linkedAdAccounts = buildUnnamed93(); + o.linkedViews = buildUnnamed94(); o.name = "foo"; o.stateBasedAudienceDefinition = buildRemarketingAudienceStateBasedAudienceDefinition(); @@ -3327,8 +3319,8 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed854(o.linkedAdAccounts); - checkUnnamed855(o.linkedViews); + checkUnnamed93(o.linkedAdAccounts); + checkUnnamed94(o.linkedViews); unittest.expect(o.name, unittest.equals('foo')); checkRemarketingAudienceStateBasedAudienceDefinition( o.stateBasedAudienceDefinition); @@ -3339,14 +3331,14 @@ buildCounterRemarketingAudience--; } -buildUnnamed856() { +buildUnnamed95() { var o = new core.List<api.RemarketingAudience>(); o.add(buildRemarketingAudience()); o.add(buildRemarketingAudience()); return o; } -checkUnnamed856(core.List<api.RemarketingAudience> o) { +checkUnnamed95(core.List<api.RemarketingAudience> o) { unittest.expect(o, unittest.hasLength(2)); checkRemarketingAudience(o[0]); checkRemarketingAudience(o[1]); @@ -3357,7 +3349,7 @@ var o = new api.RemarketingAudiences(); buildCounterRemarketingAudiences++; if (buildCounterRemarketingAudiences < 3) { - o.items = buildUnnamed856(); + o.items = buildUnnamed95(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3373,7 +3365,7 @@ checkRemarketingAudiences(api.RemarketingAudiences o) { buildCounterRemarketingAudiences++; if (buildCounterRemarketingAudiences < 3) { - checkUnnamed856(o.items); + checkUnnamed95(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3422,14 +3414,14 @@ buildCounterSegment--; } -buildUnnamed857() { +buildUnnamed96() { var o = new core.List<api.Segment>(); o.add(buildSegment()); o.add(buildSegment()); return o; } -checkUnnamed857(core.List<api.Segment> o) { +checkUnnamed96(core.List<api.Segment> o) { unittest.expect(o, unittest.hasLength(2)); checkSegment(o[0]); checkSegment(o[1]); @@ -3440,7 +3432,7 @@ var o = new api.Segments(); buildCounterSegments++; if (buildCounterSegments < 3) { - o.items = buildUnnamed857(); + o.items = buildUnnamed96(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3456,7 +3448,7 @@ checkSegments(api.Segments o) { buildCounterSegments++; if (buildCounterSegments < 3) { - checkUnnamed857(o.items); + checkUnnamed96(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3569,14 +3561,14 @@ buildCounterUnsampledReport--; } -buildUnnamed858() { +buildUnnamed97() { var o = new core.List<api.UnsampledReport>(); o.add(buildUnsampledReport()); o.add(buildUnsampledReport()); return o; } -checkUnnamed858(core.List<api.UnsampledReport> o) { +checkUnnamed97(core.List<api.UnsampledReport> o) { unittest.expect(o, unittest.hasLength(2)); checkUnsampledReport(o[0]); checkUnsampledReport(o[1]); @@ -3587,7 +3579,7 @@ var o = new api.UnsampledReports(); buildCounterUnsampledReports++; if (buildCounterUnsampledReports < 3) { - o.items = buildUnnamed858(); + o.items = buildUnnamed97(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3603,7 +3595,7 @@ checkUnsampledReports(api.UnsampledReports o) { buildCounterUnsampledReports++; if (buildCounterUnsampledReports < 3) { - checkUnnamed858(o.items); + checkUnnamed97(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3615,14 +3607,14 @@ buildCounterUnsampledReports--; } -buildUnnamed859() { +buildUnnamed98() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed859(core.List<core.String> o) { +checkUnnamed98(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3635,7 +3627,7 @@ if (buildCounterUpload < 3) { o.accountId = "foo"; o.customDataSourceId = "foo"; - o.errors = buildUnnamed859(); + o.errors = buildUnnamed98(); o.id = "foo"; o.kind = "foo"; o.status = "foo"; @@ -3650,7 +3642,7 @@ if (buildCounterUpload < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.customDataSourceId, unittest.equals('foo')); - checkUnnamed859(o.errors); + checkUnnamed98(o.errors); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); @@ -3660,14 +3652,14 @@ buildCounterUpload--; } -buildUnnamed860() { +buildUnnamed99() { var o = new core.List<api.Upload>(); o.add(buildUpload()); o.add(buildUpload()); return o; } -checkUnnamed860(core.List<api.Upload> o) { +checkUnnamed99(core.List<api.Upload> o) { unittest.expect(o, unittest.hasLength(2)); checkUpload(o[0]); checkUpload(o[1]); @@ -3678,7 +3670,7 @@ var o = new api.Uploads(); buildCounterUploads++; if (buildCounterUploads < 3) { - o.items = buildUnnamed860(); + o.items = buildUnnamed99(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3693,7 +3685,7 @@ checkUploads(api.Uploads o) { buildCounterUploads++; if (buildCounterUploads < 3) { - checkUnnamed860(o.items); + checkUnnamed99(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3704,6 +3696,55 @@ buildCounterUploads--; } +core.int buildCounterUserDeletionRequestId = 0; +buildUserDeletionRequestId() { + var o = new api.UserDeletionRequestId(); + buildCounterUserDeletionRequestId++; + if (buildCounterUserDeletionRequestId < 3) { + o.type = "foo"; + o.userId = "foo"; + } + buildCounterUserDeletionRequestId--; + return o; +} + +checkUserDeletionRequestId(api.UserDeletionRequestId o) { + buildCounterUserDeletionRequestId++; + if (buildCounterUserDeletionRequestId < 3) { + unittest.expect(o.type, unittest.equals('foo')); + unittest.expect(o.userId, unittest.equals('foo')); + } + buildCounterUserDeletionRequestId--; +} + +core.int buildCounterUserDeletionRequest = 0; +buildUserDeletionRequest() { + var o = new api.UserDeletionRequest(); + buildCounterUserDeletionRequest++; + if (buildCounterUserDeletionRequest < 3) { + o.deletionRequestTime = core.DateTime.parse("2002-02-27T14:01:02"); + o.firebaseProjectId = "foo"; + o.id = buildUserDeletionRequestId(); + o.kind = "foo"; + o.webPropertyId = "foo"; + } + buildCounterUserDeletionRequest--; + return o; +} + +checkUserDeletionRequest(api.UserDeletionRequest o) { + buildCounterUserDeletionRequest++; + if (buildCounterUserDeletionRequest < 3) { + unittest.expect(o.deletionRequestTime, + unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.firebaseProjectId, unittest.equals('foo')); + checkUserDeletionRequestId(o.id); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.webPropertyId, unittest.equals('foo')); + } + buildCounterUserDeletionRequest--; +} + core.int buildCounterUserRef = 0; buildUserRef() { var o = new api.UserRef(); @@ -3756,14 +3797,14 @@ buildCounterWebPropertyRef--; } -buildUnnamed861() { +buildUnnamed100() { var o = new core.List<api.ProfileSummary>(); o.add(buildProfileSummary()); o.add(buildProfileSummary()); return o; } -checkUnnamed861(core.List<api.ProfileSummary> o) { +checkUnnamed100(core.List<api.ProfileSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkProfileSummary(o[0]); checkProfileSummary(o[1]); @@ -3779,7 +3820,7 @@ o.kind = "foo"; o.level = "foo"; o.name = "foo"; - o.profiles = buildUnnamed861(); + o.profiles = buildUnnamed100(); o.starred = true; o.websiteUrl = "foo"; } @@ -3795,21 +3836,21 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.level, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed861(o.profiles); + checkUnnamed100(o.profiles); unittest.expect(o.starred, unittest.isTrue); unittest.expect(o.websiteUrl, unittest.equals('foo')); } buildCounterWebPropertySummary--; } -buildUnnamed862() { +buildUnnamed101() { var o = new core.List<api.Webproperty>(); o.add(buildWebproperty()); o.add(buildWebproperty()); return o; } -checkUnnamed862(core.List<api.Webproperty> o) { +checkUnnamed101(core.List<api.Webproperty> o) { unittest.expect(o, unittest.hasLength(2)); checkWebproperty(o[0]); checkWebproperty(o[1]); @@ -3820,7 +3861,7 @@ var o = new api.Webproperties(); buildCounterWebproperties++; if (buildCounterWebproperties < 3) { - o.items = buildUnnamed862(); + o.items = buildUnnamed101(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3836,7 +3877,7 @@ checkWebproperties(api.Webproperties o) { buildCounterWebproperties++; if (buildCounterWebproperties < 3) { - checkUnnamed862(o.items); + checkUnnamed101(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3890,14 +3931,14 @@ buildCounterWebpropertyParentLink--; } -buildUnnamed863() { +buildUnnamed102() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed863(core.List<core.String> o) { +checkUnnamed102(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3908,7 +3949,7 @@ var o = new api.WebpropertyPermissions(); buildCounterWebpropertyPermissions++; if (buildCounterWebpropertyPermissions < 3) { - o.effective = buildUnnamed863(); + o.effective = buildUnnamed102(); } buildCounterWebpropertyPermissions--; return o; @@ -3917,7 +3958,7 @@ checkWebpropertyPermissions(api.WebpropertyPermissions o) { buildCounterWebpropertyPermissions++; if (buildCounterWebpropertyPermissions < 3) { - checkUnnamed863(o.effective); + checkUnnamed102(o.effective); } buildCounterWebpropertyPermissions--; } @@ -3930,6 +3971,8 @@ o.accountId = "foo"; o.childLink = buildWebpropertyChildLink(); o.created = core.DateTime.parse("2002-02-27T14:01:02"); + o.dataRetentionResetOnNewActivity = true; + o.dataRetentionTtl = "foo"; o.defaultProfileId = "foo"; o.id = "foo"; o.industryVertical = "foo"; @@ -3956,6 +3999,8 @@ checkWebpropertyChildLink(o.childLink); unittest.expect( o.created, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.dataRetentionResetOnNewActivity, unittest.isTrue); + unittest.expect(o.dataRetentionTtl, unittest.equals('foo')); unittest.expect(o.defaultProfileId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.industryVertical, unittest.equals('foo')); @@ -4762,6 +4807,22 @@ }); }); + unittest.group("obj-schema-UserDeletionRequestId", () { + unittest.test("to-json--from-json", () { + var o = buildUserDeletionRequestId(); + var od = new api.UserDeletionRequestId.fromJson(o.toJson()); + checkUserDeletionRequestId(od); + }); + }); + + unittest.group("obj-schema-UserDeletionRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUserDeletionRequest(); + var od = new api.UserDeletionRequest.fromJson(o.toJson()); + checkUserDeletionRequest(od); + }); + }); + unittest.group("obj-schema-UserRef", () { unittest.test("to-json--from-json", () { var o = buildUserRef(); @@ -11774,9 +11835,9 @@ unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("analytics/v3/")); pathOffset += 13; - unittest.expect(path.substring(pathOffset, pathOffset + 26), - unittest.equals("provisioning/createAccount")); - pathOffset += 26; + unittest.expect(path.substring(pathOffset, pathOffset + 30), + unittest.equals("provisioning/createAccountTree")); + pathOffset += 30; var query = (req.url).query; var queryOffset = 0; @@ -11811,4 +11872,63 @@ }))); }); }); + + unittest.group("resource-UserDeletionUserDeletionRequestResourceApi", () { + unittest.test("method--upsert", () { + var mock = new HttpServerMock(); + api.UserDeletionUserDeletionRequestResourceApi res = + new api.AnalyticsApi(mock).userDeletion.userDeletionRequest; + var arg_request = buildUserDeletionRequest(); + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.UserDeletionRequest.fromJson(json); + checkUserDeletionRequest(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("analytics/v3/")); + pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 40), + unittest.equals("userDeletion/userDeletionRequests:upsert")); + pathOffset += 40; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildUserDeletionRequest()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .upsert(arg_request, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkUserDeletionRequest(response); + }))); + }); + }); }
diff --git a/generated/googleapis/test/analyticsreporting/v4_test.dart b/generated/googleapis/test/analyticsreporting/v4_test.dart index de30974..ac35b4e 100644 --- a/generated/googleapis/test/analyticsreporting/v4_test.dart +++ b/generated/googleapis/test/analyticsreporting/v4_test.dart
@@ -73,14 +73,14 @@ buildCounterCohort--; } -buildUnnamed1947() { +buildUnnamed1139() { var o = new core.List<api.Cohort>(); o.add(buildCohort()); o.add(buildCohort()); return o; } -checkUnnamed1947(core.List<api.Cohort> o) { +checkUnnamed1139(core.List<api.Cohort> o) { unittest.expect(o, unittest.hasLength(2)); checkCohort(o[0]); checkCohort(o[1]); @@ -91,7 +91,7 @@ var o = new api.CohortGroup(); buildCounterCohortGroup++; if (buildCounterCohortGroup < 3) { - o.cohorts = buildUnnamed1947(); + o.cohorts = buildUnnamed1139(); o.lifetimeValue = true; } buildCounterCohortGroup--; @@ -101,20 +101,20 @@ checkCohortGroup(api.CohortGroup o) { buildCounterCohortGroup++; if (buildCounterCohortGroup < 3) { - checkUnnamed1947(o.cohorts); + checkUnnamed1139(o.cohorts); unittest.expect(o.lifetimeValue, unittest.isTrue); } buildCounterCohortGroup--; } -buildUnnamed1948() { +buildUnnamed1140() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1948(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')); @@ -125,7 +125,7 @@ var o = new api.ColumnHeader(); buildCounterColumnHeader++; if (buildCounterColumnHeader < 3) { - o.dimensions = buildUnnamed1948(); + o.dimensions = buildUnnamed1140(); o.metricHeader = buildMetricHeader(); } buildCounterColumnHeader--; @@ -135,7 +135,7 @@ checkColumnHeader(api.ColumnHeader o) { buildCounterColumnHeader++; if (buildCounterColumnHeader < 3) { - checkUnnamed1948(o.dimensions); + checkUnnamed1140(o.dimensions); checkMetricHeader(o.metricHeader); } buildCounterColumnHeader--; @@ -162,27 +162,27 @@ buildCounterDateRange--; } -buildUnnamed1949() { +buildUnnamed1141() { var o = new core.List<api.PivotValueRegion>(); o.add(buildPivotValueRegion()); o.add(buildPivotValueRegion()); return o; } -checkUnnamed1949(core.List<api.PivotValueRegion> o) { +checkUnnamed1141(core.List<api.PivotValueRegion> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotValueRegion(o[0]); checkPivotValueRegion(o[1]); } -buildUnnamed1950() { +buildUnnamed1142() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1950(core.List<core.String> o) { +checkUnnamed1142(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -193,8 +193,8 @@ var o = new api.DateRangeValues(); buildCounterDateRangeValues++; if (buildCounterDateRangeValues < 3) { - o.pivotValueRegions = buildUnnamed1949(); - o.values = buildUnnamed1950(); + o.pivotValueRegions = buildUnnamed1141(); + o.values = buildUnnamed1142(); } buildCounterDateRangeValues--; return o; @@ -203,20 +203,20 @@ checkDateRangeValues(api.DateRangeValues o) { buildCounterDateRangeValues++; if (buildCounterDateRangeValues < 3) { - checkUnnamed1949(o.pivotValueRegions); - checkUnnamed1950(o.values); + checkUnnamed1141(o.pivotValueRegions); + checkUnnamed1142(o.values); } buildCounterDateRangeValues--; } -buildUnnamed1951() { +buildUnnamed1143() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1951(core.List<core.String> o) { +checkUnnamed1143(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -227,7 +227,7 @@ var o = new api.Dimension(); buildCounterDimension++; if (buildCounterDimension < 3) { - o.histogramBuckets = buildUnnamed1951(); + o.histogramBuckets = buildUnnamed1143(); o.name = "foo"; } buildCounterDimension--; @@ -237,20 +237,20 @@ checkDimension(api.Dimension o) { buildCounterDimension++; if (buildCounterDimension < 3) { - checkUnnamed1951(o.histogramBuckets); + checkUnnamed1143(o.histogramBuckets); unittest.expect(o.name, unittest.equals('foo')); } buildCounterDimension--; } -buildUnnamed1952() { +buildUnnamed1144() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1952(core.List<core.String> o) { +checkUnnamed1144(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -263,7 +263,7 @@ if (buildCounterDimensionFilter < 3) { o.caseSensitive = true; o.dimensionName = "foo"; - o.expressions = buildUnnamed1952(); + o.expressions = buildUnnamed1144(); o.not = true; o.operator = "foo"; } @@ -276,21 +276,21 @@ if (buildCounterDimensionFilter < 3) { unittest.expect(o.caseSensitive, unittest.isTrue); unittest.expect(o.dimensionName, unittest.equals('foo')); - checkUnnamed1952(o.expressions); + checkUnnamed1144(o.expressions); unittest.expect(o.not, unittest.isTrue); unittest.expect(o.operator, unittest.equals('foo')); } buildCounterDimensionFilter--; } -buildUnnamed1953() { +buildUnnamed1145() { var o = new core.List<api.DimensionFilter>(); o.add(buildDimensionFilter()); o.add(buildDimensionFilter()); return o; } -checkUnnamed1953(core.List<api.DimensionFilter> o) { +checkUnnamed1145(core.List<api.DimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilter(o[0]); checkDimensionFilter(o[1]); @@ -301,7 +301,7 @@ var o = new api.DimensionFilterClause(); buildCounterDimensionFilterClause++; if (buildCounterDimensionFilterClause < 3) { - o.filters = buildUnnamed1953(); + o.filters = buildUnnamed1145(); o.operator = "foo"; } buildCounterDimensionFilterClause--; @@ -311,7 +311,7 @@ checkDimensionFilterClause(api.DimensionFilterClause o) { buildCounterDimensionFilterClause++; if (buildCounterDimensionFilterClause < 3) { - checkUnnamed1953(o.filters); + checkUnnamed1145(o.filters); unittest.expect(o.operator, unittest.equals('foo')); } buildCounterDimensionFilterClause--; @@ -340,14 +340,14 @@ buildCounterDynamicSegment--; } -buildUnnamed1954() { +buildUnnamed1146() { var o = new core.List<api.ReportRequest>(); o.add(buildReportRequest()); o.add(buildReportRequest()); return o; } -checkUnnamed1954(core.List<api.ReportRequest> o) { +checkUnnamed1146(core.List<api.ReportRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRequest(o[0]); checkReportRequest(o[1]); @@ -358,7 +358,7 @@ var o = new api.GetReportsRequest(); buildCounterGetReportsRequest++; if (buildCounterGetReportsRequest < 3) { - o.reportRequests = buildUnnamed1954(); + o.reportRequests = buildUnnamed1146(); o.useResourceQuotas = true; } buildCounterGetReportsRequest--; @@ -368,20 +368,20 @@ checkGetReportsRequest(api.GetReportsRequest o) { buildCounterGetReportsRequest++; if (buildCounterGetReportsRequest < 3) { - checkUnnamed1954(o.reportRequests); + checkUnnamed1146(o.reportRequests); unittest.expect(o.useResourceQuotas, unittest.isTrue); } buildCounterGetReportsRequest--; } -buildUnnamed1955() { +buildUnnamed1147() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed1955(core.List<api.Report> o) { +checkUnnamed1147(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -393,7 +393,7 @@ buildCounterGetReportsResponse++; if (buildCounterGetReportsResponse < 3) { o.queryCost = 42; - o.reports = buildUnnamed1955(); + o.reports = buildUnnamed1147(); o.resourceQuotasRemaining = buildResourceQuotasRemaining(); } buildCounterGetReportsResponse--; @@ -404,7 +404,7 @@ buildCounterGetReportsResponse++; if (buildCounterGetReportsResponse < 3) { unittest.expect(o.queryCost, unittest.equals(42)); - checkUnnamed1955(o.reports); + checkUnnamed1147(o.reports); checkResourceQuotasRemaining(o.resourceQuotasRemaining); } buildCounterGetReportsResponse--; @@ -458,14 +458,14 @@ buildCounterMetricFilter--; } -buildUnnamed1956() { +buildUnnamed1148() { var o = new core.List<api.MetricFilter>(); o.add(buildMetricFilter()); o.add(buildMetricFilter()); return o; } -checkUnnamed1956(core.List<api.MetricFilter> o) { +checkUnnamed1148(core.List<api.MetricFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricFilter(o[0]); checkMetricFilter(o[1]); @@ -476,7 +476,7 @@ var o = new api.MetricFilterClause(); buildCounterMetricFilterClause++; if (buildCounterMetricFilterClause < 3) { - o.filters = buildUnnamed1956(); + o.filters = buildUnnamed1148(); o.operator = "foo"; } buildCounterMetricFilterClause--; @@ -486,33 +486,33 @@ checkMetricFilterClause(api.MetricFilterClause o) { buildCounterMetricFilterClause++; if (buildCounterMetricFilterClause < 3) { - checkUnnamed1956(o.filters); + checkUnnamed1148(o.filters); unittest.expect(o.operator, unittest.equals('foo')); } buildCounterMetricFilterClause--; } -buildUnnamed1957() { +buildUnnamed1149() { var o = new core.List<api.MetricHeaderEntry>(); o.add(buildMetricHeaderEntry()); o.add(buildMetricHeaderEntry()); return o; } -checkUnnamed1957(core.List<api.MetricHeaderEntry> o) { +checkUnnamed1149(core.List<api.MetricHeaderEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricHeaderEntry(o[0]); checkMetricHeaderEntry(o[1]); } -buildUnnamed1958() { +buildUnnamed1150() { var o = new core.List<api.PivotHeader>(); o.add(buildPivotHeader()); o.add(buildPivotHeader()); return o; } -checkUnnamed1958(core.List<api.PivotHeader> o) { +checkUnnamed1150(core.List<api.PivotHeader> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotHeader(o[0]); checkPivotHeader(o[1]); @@ -523,8 +523,8 @@ var o = new api.MetricHeader(); buildCounterMetricHeader++; if (buildCounterMetricHeader < 3) { - o.metricHeaderEntries = buildUnnamed1957(); - o.pivotHeaders = buildUnnamed1958(); + o.metricHeaderEntries = buildUnnamed1149(); + o.pivotHeaders = buildUnnamed1150(); } buildCounterMetricHeader--; return o; @@ -533,8 +533,8 @@ checkMetricHeader(api.MetricHeader o) { buildCounterMetricHeader++; if (buildCounterMetricHeader < 3) { - checkUnnamed1957(o.metricHeaderEntries); - checkUnnamed1958(o.pivotHeaders); + checkUnnamed1149(o.metricHeaderEntries); + checkUnnamed1150(o.pivotHeaders); } buildCounterMetricHeader--; } @@ -560,14 +560,14 @@ buildCounterMetricHeaderEntry--; } -buildUnnamed1959() { +buildUnnamed1151() { var o = new core.List<api.SegmentFilterClause>(); o.add(buildSegmentFilterClause()); o.add(buildSegmentFilterClause()); return o; } -checkUnnamed1959(core.List<api.SegmentFilterClause> o) { +checkUnnamed1151(core.List<api.SegmentFilterClause> o) { unittest.expect(o, unittest.hasLength(2)); checkSegmentFilterClause(o[0]); checkSegmentFilterClause(o[1]); @@ -578,7 +578,7 @@ var o = new api.OrFiltersForSegment(); buildCounterOrFiltersForSegment++; if (buildCounterOrFiltersForSegment < 3) { - o.segmentFilterClauses = buildUnnamed1959(); + o.segmentFilterClauses = buildUnnamed1151(); } buildCounterOrFiltersForSegment--; return o; @@ -587,7 +587,7 @@ checkOrFiltersForSegment(api.OrFiltersForSegment o) { buildCounterOrFiltersForSegment++; if (buildCounterOrFiltersForSegment < 3) { - checkUnnamed1959(o.segmentFilterClauses); + checkUnnamed1151(o.segmentFilterClauses); } buildCounterOrFiltersForSegment--; } @@ -615,40 +615,40 @@ buildCounterOrderBy--; } -buildUnnamed1960() { +buildUnnamed1152() { var o = new core.List<api.DimensionFilterClause>(); o.add(buildDimensionFilterClause()); o.add(buildDimensionFilterClause()); return o; } -checkUnnamed1960(core.List<api.DimensionFilterClause> o) { +checkUnnamed1152(core.List<api.DimensionFilterClause> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilterClause(o[0]); checkDimensionFilterClause(o[1]); } -buildUnnamed1961() { +buildUnnamed1153() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1961(core.List<api.Dimension> o) { +checkUnnamed1153(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1962() { +buildUnnamed1154() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1962(core.List<api.Metric> o) { +checkUnnamed1154(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -659,10 +659,10 @@ var o = new api.Pivot(); buildCounterPivot++; if (buildCounterPivot < 3) { - o.dimensionFilterClauses = buildUnnamed1960(); - o.dimensions = buildUnnamed1961(); + o.dimensionFilterClauses = buildUnnamed1152(); + o.dimensions = buildUnnamed1153(); o.maxGroupCount = 42; - o.metrics = buildUnnamed1962(); + o.metrics = buildUnnamed1154(); o.startGroup = 42; } buildCounterPivot--; @@ -672,23 +672,23 @@ checkPivot(api.Pivot o) { buildCounterPivot++; if (buildCounterPivot < 3) { - checkUnnamed1960(o.dimensionFilterClauses); - checkUnnamed1961(o.dimensions); + checkUnnamed1152(o.dimensionFilterClauses); + checkUnnamed1153(o.dimensions); unittest.expect(o.maxGroupCount, unittest.equals(42)); - checkUnnamed1962(o.metrics); + checkUnnamed1154(o.metrics); unittest.expect(o.startGroup, unittest.equals(42)); } buildCounterPivot--; } -buildUnnamed1963() { +buildUnnamed1155() { var o = new core.List<api.PivotHeaderEntry>(); o.add(buildPivotHeaderEntry()); o.add(buildPivotHeaderEntry()); return o; } -checkUnnamed1963(core.List<api.PivotHeaderEntry> o) { +checkUnnamed1155(core.List<api.PivotHeaderEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotHeaderEntry(o[0]); checkPivotHeaderEntry(o[1]); @@ -699,7 +699,7 @@ var o = new api.PivotHeader(); buildCounterPivotHeader++; if (buildCounterPivotHeader < 3) { - o.pivotHeaderEntries = buildUnnamed1963(); + o.pivotHeaderEntries = buildUnnamed1155(); o.totalPivotGroupsCount = 42; } buildCounterPivotHeader--; @@ -709,33 +709,33 @@ checkPivotHeader(api.PivotHeader o) { buildCounterPivotHeader++; if (buildCounterPivotHeader < 3) { - checkUnnamed1963(o.pivotHeaderEntries); + checkUnnamed1155(o.pivotHeaderEntries); unittest.expect(o.totalPivotGroupsCount, unittest.equals(42)); } buildCounterPivotHeader--; } -buildUnnamed1964() { +buildUnnamed1156() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1964(core.List<core.String> o) { +checkUnnamed1156(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1965() { +buildUnnamed1157() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1965(core.List<core.String> o) { +checkUnnamed1157(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -746,8 +746,8 @@ var o = new api.PivotHeaderEntry(); buildCounterPivotHeaderEntry++; if (buildCounterPivotHeaderEntry < 3) { - o.dimensionNames = buildUnnamed1964(); - o.dimensionValues = buildUnnamed1965(); + o.dimensionNames = buildUnnamed1156(); + o.dimensionValues = buildUnnamed1157(); o.metric = buildMetricHeaderEntry(); } buildCounterPivotHeaderEntry--; @@ -757,21 +757,21 @@ checkPivotHeaderEntry(api.PivotHeaderEntry o) { buildCounterPivotHeaderEntry++; if (buildCounterPivotHeaderEntry < 3) { - checkUnnamed1964(o.dimensionNames); - checkUnnamed1965(o.dimensionValues); + checkUnnamed1156(o.dimensionNames); + checkUnnamed1157(o.dimensionValues); checkMetricHeaderEntry(o.metric); } buildCounterPivotHeaderEntry--; } -buildUnnamed1966() { +buildUnnamed1158() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1966(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')); @@ -782,7 +782,7 @@ var o = new api.PivotValueRegion(); buildCounterPivotValueRegion++; if (buildCounterPivotValueRegion < 3) { - o.values = buildUnnamed1966(); + o.values = buildUnnamed1158(); } buildCounterPivotValueRegion--; return o; @@ -791,7 +791,7 @@ checkPivotValueRegion(api.PivotValueRegion o) { buildCounterPivotValueRegion++; if (buildCounterPivotValueRegion < 3) { - checkUnnamed1966(o.values); + checkUnnamed1158(o.values); } buildCounterPivotValueRegion--; } @@ -819,79 +819,79 @@ buildCounterReport--; } -buildUnnamed1967() { +buildUnnamed1159() { var o = new core.List<api.DateRangeValues>(); o.add(buildDateRangeValues()); o.add(buildDateRangeValues()); return o; } -checkUnnamed1967(core.List<api.DateRangeValues> o) { +checkUnnamed1159(core.List<api.DateRangeValues> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRangeValues(o[0]); checkDateRangeValues(o[1]); } -buildUnnamed1968() { +buildUnnamed1160() { var o = new core.List<api.DateRangeValues>(); o.add(buildDateRangeValues()); o.add(buildDateRangeValues()); return o; } -checkUnnamed1968(core.List<api.DateRangeValues> o) { +checkUnnamed1160(core.List<api.DateRangeValues> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRangeValues(o[0]); checkDateRangeValues(o[1]); } -buildUnnamed1969() { +buildUnnamed1161() { var o = new core.List<api.ReportRow>(); o.add(buildReportRow()); o.add(buildReportRow()); return o; } -checkUnnamed1969(core.List<api.ReportRow> o) { +checkUnnamed1161(core.List<api.ReportRow> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRow(o[0]); checkReportRow(o[1]); } -buildUnnamed1970() { +buildUnnamed1162() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1970(core.List<core.String> o) { +checkUnnamed1162(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1971() { +buildUnnamed1163() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1971(core.List<core.String> o) { +checkUnnamed1163(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1972() { +buildUnnamed1164() { var o = new core.List<api.DateRangeValues>(); o.add(buildDateRangeValues()); o.add(buildDateRangeValues()); return o; } -checkUnnamed1972(core.List<api.DateRangeValues> o) { +checkUnnamed1164(core.List<api.DateRangeValues> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRangeValues(o[0]); checkDateRangeValues(o[1]); @@ -904,13 +904,13 @@ if (buildCounterReportData < 3) { o.dataLastRefreshed = "foo"; o.isDataGolden = true; - o.maximums = buildUnnamed1967(); - o.minimums = buildUnnamed1968(); + o.maximums = buildUnnamed1159(); + o.minimums = buildUnnamed1160(); o.rowCount = 42; - o.rows = buildUnnamed1969(); - o.samplesReadCounts = buildUnnamed1970(); - o.samplingSpaceSizes = buildUnnamed1971(); - o.totals = buildUnnamed1972(); + o.rows = buildUnnamed1161(); + o.samplesReadCounts = buildUnnamed1162(); + o.samplingSpaceSizes = buildUnnamed1163(); + o.totals = buildUnnamed1164(); } buildCounterReportData--; return o; @@ -921,116 +921,116 @@ if (buildCounterReportData < 3) { unittest.expect(o.dataLastRefreshed, unittest.equals('foo')); unittest.expect(o.isDataGolden, unittest.isTrue); - checkUnnamed1967(o.maximums); - checkUnnamed1968(o.minimums); + checkUnnamed1159(o.maximums); + checkUnnamed1160(o.minimums); unittest.expect(o.rowCount, unittest.equals(42)); - checkUnnamed1969(o.rows); - checkUnnamed1970(o.samplesReadCounts); - checkUnnamed1971(o.samplingSpaceSizes); - checkUnnamed1972(o.totals); + checkUnnamed1161(o.rows); + checkUnnamed1162(o.samplesReadCounts); + checkUnnamed1163(o.samplingSpaceSizes); + checkUnnamed1164(o.totals); } buildCounterReportData--; } -buildUnnamed1973() { +buildUnnamed1165() { var o = new core.List<api.DateRange>(); o.add(buildDateRange()); o.add(buildDateRange()); return o; } -checkUnnamed1973(core.List<api.DateRange> o) { +checkUnnamed1165(core.List<api.DateRange> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRange(o[0]); checkDateRange(o[1]); } -buildUnnamed1974() { +buildUnnamed1166() { var o = new core.List<api.DimensionFilterClause>(); o.add(buildDimensionFilterClause()); o.add(buildDimensionFilterClause()); return o; } -checkUnnamed1974(core.List<api.DimensionFilterClause> o) { +checkUnnamed1166(core.List<api.DimensionFilterClause> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilterClause(o[0]); checkDimensionFilterClause(o[1]); } -buildUnnamed1975() { +buildUnnamed1167() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1975(core.List<api.Dimension> o) { +checkUnnamed1167(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1976() { +buildUnnamed1168() { var o = new core.List<api.MetricFilterClause>(); o.add(buildMetricFilterClause()); o.add(buildMetricFilterClause()); return o; } -checkUnnamed1976(core.List<api.MetricFilterClause> o) { +checkUnnamed1168(core.List<api.MetricFilterClause> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricFilterClause(o[0]); checkMetricFilterClause(o[1]); } -buildUnnamed1977() { +buildUnnamed1169() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1977(core.List<api.Metric> o) { +checkUnnamed1169(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed1978() { +buildUnnamed1170() { var o = new core.List<api.OrderBy>(); o.add(buildOrderBy()); o.add(buildOrderBy()); return o; } -checkUnnamed1978(core.List<api.OrderBy> o) { +checkUnnamed1170(core.List<api.OrderBy> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderBy(o[0]); checkOrderBy(o[1]); } -buildUnnamed1979() { +buildUnnamed1171() { var o = new core.List<api.Pivot>(); o.add(buildPivot()); o.add(buildPivot()); return o; } -checkUnnamed1979(core.List<api.Pivot> o) { +checkUnnamed1171(core.List<api.Pivot> o) { unittest.expect(o, unittest.hasLength(2)); checkPivot(o[0]); checkPivot(o[1]); } -buildUnnamed1980() { +buildUnnamed1172() { var o = new core.List<api.Segment>(); o.add(buildSegment()); o.add(buildSegment()); return o; } -checkUnnamed1980(core.List<api.Segment> o) { +checkUnnamed1172(core.List<api.Segment> o) { unittest.expect(o, unittest.hasLength(2)); checkSegment(o[0]); checkSegment(o[1]); @@ -1042,21 +1042,21 @@ buildCounterReportRequest++; if (buildCounterReportRequest < 3) { o.cohortGroup = buildCohortGroup(); - o.dateRanges = buildUnnamed1973(); - o.dimensionFilterClauses = buildUnnamed1974(); - o.dimensions = buildUnnamed1975(); + o.dateRanges = buildUnnamed1165(); + o.dimensionFilterClauses = buildUnnamed1166(); + o.dimensions = buildUnnamed1167(); o.filtersExpression = "foo"; o.hideTotals = true; o.hideValueRanges = true; o.includeEmptyRows = true; - o.metricFilterClauses = buildUnnamed1976(); - o.metrics = buildUnnamed1977(); - o.orderBys = buildUnnamed1978(); + o.metricFilterClauses = buildUnnamed1168(); + o.metrics = buildUnnamed1169(); + o.orderBys = buildUnnamed1170(); o.pageSize = 42; o.pageToken = "foo"; - o.pivots = buildUnnamed1979(); + o.pivots = buildUnnamed1171(); o.samplingLevel = "foo"; - o.segments = buildUnnamed1980(); + o.segments = buildUnnamed1172(); o.viewId = "foo"; } buildCounterReportRequest--; @@ -1067,47 +1067,47 @@ buildCounterReportRequest++; if (buildCounterReportRequest < 3) { checkCohortGroup(o.cohortGroup); - checkUnnamed1973(o.dateRanges); - checkUnnamed1974(o.dimensionFilterClauses); - checkUnnamed1975(o.dimensions); + checkUnnamed1165(o.dateRanges); + checkUnnamed1166(o.dimensionFilterClauses); + checkUnnamed1167(o.dimensions); unittest.expect(o.filtersExpression, unittest.equals('foo')); unittest.expect(o.hideTotals, unittest.isTrue); unittest.expect(o.hideValueRanges, unittest.isTrue); unittest.expect(o.includeEmptyRows, unittest.isTrue); - checkUnnamed1976(o.metricFilterClauses); - checkUnnamed1977(o.metrics); - checkUnnamed1978(o.orderBys); + checkUnnamed1168(o.metricFilterClauses); + checkUnnamed1169(o.metrics); + checkUnnamed1170(o.orderBys); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed1979(o.pivots); + checkUnnamed1171(o.pivots); unittest.expect(o.samplingLevel, unittest.equals('foo')); - checkUnnamed1980(o.segments); + checkUnnamed1172(o.segments); unittest.expect(o.viewId, unittest.equals('foo')); } buildCounterReportRequest--; } -buildUnnamed1981() { +buildUnnamed1173() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1981(core.List<core.String> o) { +checkUnnamed1173(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1982() { +buildUnnamed1174() { var o = new core.List<api.DateRangeValues>(); o.add(buildDateRangeValues()); o.add(buildDateRangeValues()); return o; } -checkUnnamed1982(core.List<api.DateRangeValues> o) { +checkUnnamed1174(core.List<api.DateRangeValues> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRangeValues(o[0]); checkDateRangeValues(o[1]); @@ -1118,8 +1118,8 @@ var o = new api.ReportRow(); buildCounterReportRow++; if (buildCounterReportRow < 3) { - o.dimensions = buildUnnamed1981(); - o.metrics = buildUnnamed1982(); + o.dimensions = buildUnnamed1173(); + o.metrics = buildUnnamed1174(); } buildCounterReportRow--; return o; @@ -1128,8 +1128,8 @@ checkReportRow(api.ReportRow o) { buildCounterReportRow++; if (buildCounterReportRow < 3) { - checkUnnamed1981(o.dimensions); - checkUnnamed1982(o.metrics); + checkUnnamed1173(o.dimensions); + checkUnnamed1174(o.metrics); } buildCounterReportRow--; } @@ -1176,14 +1176,14 @@ buildCounterSegment--; } -buildUnnamed1983() { +buildUnnamed1175() { var o = new core.List<api.SegmentFilter>(); o.add(buildSegmentFilter()); o.add(buildSegmentFilter()); return o; } -checkUnnamed1983(core.List<api.SegmentFilter> o) { +checkUnnamed1175(core.List<api.SegmentFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkSegmentFilter(o[0]); checkSegmentFilter(o[1]); @@ -1194,7 +1194,7 @@ var o = new api.SegmentDefinition(); buildCounterSegmentDefinition++; if (buildCounterSegmentDefinition < 3) { - o.segmentFilters = buildUnnamed1983(); + o.segmentFilters = buildUnnamed1175(); } buildCounterSegmentDefinition--; return o; @@ -1203,19 +1203,19 @@ checkSegmentDefinition(api.SegmentDefinition o) { buildCounterSegmentDefinition++; if (buildCounterSegmentDefinition < 3) { - checkUnnamed1983(o.segmentFilters); + checkUnnamed1175(o.segmentFilters); } buildCounterSegmentDefinition--; } -buildUnnamed1984() { +buildUnnamed1176() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1984(core.List<core.String> o) { +checkUnnamed1176(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1228,7 +1228,7 @@ if (buildCounterSegmentDimensionFilter < 3) { o.caseSensitive = true; o.dimensionName = "foo"; - o.expressions = buildUnnamed1984(); + o.expressions = buildUnnamed1176(); o.maxComparisonValue = "foo"; o.minComparisonValue = "foo"; o.operator = "foo"; @@ -1242,7 +1242,7 @@ if (buildCounterSegmentDimensionFilter < 3) { unittest.expect(o.caseSensitive, unittest.isTrue); unittest.expect(o.dimensionName, unittest.equals('foo')); - checkUnnamed1984(o.expressions); + checkUnnamed1176(o.expressions); unittest.expect(o.maxComparisonValue, unittest.equals('foo')); unittest.expect(o.minComparisonValue, unittest.equals('foo')); unittest.expect(o.operator, unittest.equals('foo')); @@ -1323,14 +1323,14 @@ buildCounterSegmentMetricFilter--; } -buildUnnamed1985() { +buildUnnamed1177() { var o = new core.List<api.OrFiltersForSegment>(); o.add(buildOrFiltersForSegment()); o.add(buildOrFiltersForSegment()); return o; } -checkUnnamed1985(core.List<api.OrFiltersForSegment> o) { +checkUnnamed1177(core.List<api.OrFiltersForSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrFiltersForSegment(o[0]); checkOrFiltersForSegment(o[1]); @@ -1342,7 +1342,7 @@ buildCounterSegmentSequenceStep++; if (buildCounterSegmentSequenceStep < 3) { o.matchType = "foo"; - o.orFiltersForSegment = buildUnnamed1985(); + o.orFiltersForSegment = buildUnnamed1177(); } buildCounterSegmentSequenceStep--; return o; @@ -1352,19 +1352,19 @@ buildCounterSegmentSequenceStep++; if (buildCounterSegmentSequenceStep < 3) { unittest.expect(o.matchType, unittest.equals('foo')); - checkUnnamed1985(o.orFiltersForSegment); + checkUnnamed1177(o.orFiltersForSegment); } buildCounterSegmentSequenceStep--; } -buildUnnamed1986() { +buildUnnamed1178() { var o = new core.List<api.SegmentSequenceStep>(); o.add(buildSegmentSequenceStep()); o.add(buildSegmentSequenceStep()); return o; } -checkUnnamed1986(core.List<api.SegmentSequenceStep> o) { +checkUnnamed1178(core.List<api.SegmentSequenceStep> o) { unittest.expect(o, unittest.hasLength(2)); checkSegmentSequenceStep(o[0]); checkSegmentSequenceStep(o[1]); @@ -1376,7 +1376,7 @@ buildCounterSequenceSegment++; if (buildCounterSequenceSegment < 3) { o.firstStepShouldMatchFirstHit = true; - o.segmentSequenceSteps = buildUnnamed1986(); + o.segmentSequenceSteps = buildUnnamed1178(); } buildCounterSequenceSegment--; return o; @@ -1386,19 +1386,19 @@ buildCounterSequenceSegment++; if (buildCounterSequenceSegment < 3) { unittest.expect(o.firstStepShouldMatchFirstHit, unittest.isTrue); - checkUnnamed1986(o.segmentSequenceSteps); + checkUnnamed1178(o.segmentSequenceSteps); } buildCounterSequenceSegment--; } -buildUnnamed1987() { +buildUnnamed1179() { var o = new core.List<api.OrFiltersForSegment>(); o.add(buildOrFiltersForSegment()); o.add(buildOrFiltersForSegment()); return o; } -checkUnnamed1987(core.List<api.OrFiltersForSegment> o) { +checkUnnamed1179(core.List<api.OrFiltersForSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrFiltersForSegment(o[0]); checkOrFiltersForSegment(o[1]); @@ -1409,7 +1409,7 @@ var o = new api.SimpleSegment(); buildCounterSimpleSegment++; if (buildCounterSimpleSegment < 3) { - o.orFiltersForSegment = buildUnnamed1987(); + o.orFiltersForSegment = buildUnnamed1179(); } buildCounterSimpleSegment--; return o; @@ -1418,7 +1418,7 @@ checkSimpleSegment(api.SimpleSegment o) { buildCounterSimpleSegment++; if (buildCounterSimpleSegment < 3) { - checkUnnamed1987(o.orFiltersForSegment); + checkUnnamed1179(o.orFiltersForSegment); } buildCounterSimpleSegment--; }
diff --git a/generated/googleapis/test/androiddeviceprovisioning/v1_test.dart b/generated/googleapis/test/androiddeviceprovisioning/v1_test.dart index fda4870..063fac8 100644 --- a/generated/googleapis/test/androiddeviceprovisioning/v1_test.dart +++ b/generated/googleapis/test/androiddeviceprovisioning/v1_test.dart
@@ -94,14 +94,14 @@ buildCounterClaimDeviceResponse--; } -buildUnnamed1099() { +buildUnnamed1470() { var o = new core.List<api.PartnerClaim>(); o.add(buildPartnerClaim()); o.add(buildPartnerClaim()); return o; } -checkUnnamed1099(core.List<api.PartnerClaim> o) { +checkUnnamed1470(core.List<api.PartnerClaim> o) { unittest.expect(o, unittest.hasLength(2)); checkPartnerClaim(o[0]); checkPartnerClaim(o[1]); @@ -112,7 +112,7 @@ var o = new api.ClaimDevicesRequest(); buildCounterClaimDevicesRequest++; if (buildCounterClaimDevicesRequest < 3) { - o.claims = buildUnnamed1099(); + o.claims = buildUnnamed1470(); } buildCounterClaimDevicesRequest--; return o; @@ -121,32 +121,32 @@ checkClaimDevicesRequest(api.ClaimDevicesRequest o) { buildCounterClaimDevicesRequest++; if (buildCounterClaimDevicesRequest < 3) { - checkUnnamed1099(o.claims); + checkUnnamed1470(o.claims); } buildCounterClaimDevicesRequest--; } -buildUnnamed1100() { +buildUnnamed1471() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1100(core.List<core.String> o) { +checkUnnamed1471(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1101() { +buildUnnamed1472() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1101(core.List<core.String> o) { +checkUnnamed1472(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -157,11 +157,12 @@ var o = new api.Company(); buildCounterCompany++; if (buildCounterCompany < 3) { - o.adminEmails = buildUnnamed1100(); + o.adminEmails = buildUnnamed1471(); o.companyId = "foo"; o.companyName = "foo"; o.name = "foo"; - o.ownerEmails = buildUnnamed1101(); + o.ownerEmails = buildUnnamed1472(); + o.termsStatus = "foo"; } buildCounterCompany--; return o; @@ -170,11 +171,12 @@ checkCompany(api.Company o) { buildCounterCompany++; if (buildCounterCompany < 3) { - checkUnnamed1100(o.adminEmails); + checkUnnamed1471(o.adminEmails); unittest.expect(o.companyId, unittest.equals('foo')); unittest.expect(o.companyName, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1101(o.ownerEmails); + checkUnnamed1472(o.ownerEmails); + unittest.expect(o.termsStatus, unittest.equals('foo')); } buildCounterCompany--; } @@ -257,14 +259,14 @@ buildCounterCustomerApplyConfigurationRequest--; } -buildUnnamed1102() { +buildUnnamed1473() { var o = new core.List<api.Configuration>(); o.add(buildConfiguration()); o.add(buildConfiguration()); return o; } -checkUnnamed1102(core.List<api.Configuration> o) { +checkUnnamed1473(core.List<api.Configuration> o) { unittest.expect(o, unittest.hasLength(2)); checkConfiguration(o[0]); checkConfiguration(o[1]); @@ -275,7 +277,7 @@ var o = new api.CustomerListConfigurationsResponse(); buildCounterCustomerListConfigurationsResponse++; if (buildCounterCustomerListConfigurationsResponse < 3) { - o.configurations = buildUnnamed1102(); + o.configurations = buildUnnamed1473(); } buildCounterCustomerListConfigurationsResponse--; return o; @@ -285,19 +287,19 @@ api.CustomerListConfigurationsResponse o) { buildCounterCustomerListConfigurationsResponse++; if (buildCounterCustomerListConfigurationsResponse < 3) { - checkUnnamed1102(o.configurations); + checkUnnamed1473(o.configurations); } buildCounterCustomerListConfigurationsResponse--; } -buildUnnamed1103() { +buildUnnamed1474() { var o = new core.List<api.Company>(); o.add(buildCompany()); o.add(buildCompany()); return o; } -checkUnnamed1103(core.List<api.Company> o) { +checkUnnamed1474(core.List<api.Company> o) { unittest.expect(o, unittest.hasLength(2)); checkCompany(o[0]); checkCompany(o[1]); @@ -308,7 +310,7 @@ var o = new api.CustomerListCustomersResponse(); buildCounterCustomerListCustomersResponse++; if (buildCounterCustomerListCustomersResponse < 3) { - o.customers = buildUnnamed1103(); + o.customers = buildUnnamed1474(); o.nextPageToken = "foo"; } buildCounterCustomerListCustomersResponse--; @@ -318,20 +320,20 @@ checkCustomerListCustomersResponse(api.CustomerListCustomersResponse o) { buildCounterCustomerListCustomersResponse++; if (buildCounterCustomerListCustomersResponse < 3) { - checkUnnamed1103(o.customers); + checkUnnamed1474(o.customers); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomerListCustomersResponse--; } -buildUnnamed1104() { +buildUnnamed1475() { var o = new core.List<api.Device>(); o.add(buildDevice()); o.add(buildDevice()); return o; } -checkUnnamed1104(core.List<api.Device> o) { +checkUnnamed1475(core.List<api.Device> o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -342,7 +344,7 @@ var o = new api.CustomerListDevicesResponse(); buildCounterCustomerListDevicesResponse++; if (buildCounterCustomerListDevicesResponse < 3) { - o.devices = buildUnnamed1104(); + o.devices = buildUnnamed1475(); o.nextPageToken = "foo"; } buildCounterCustomerListDevicesResponse--; @@ -352,20 +354,20 @@ checkCustomerListDevicesResponse(api.CustomerListDevicesResponse o) { buildCounterCustomerListDevicesResponse++; if (buildCounterCustomerListDevicesResponse < 3) { - checkUnnamed1104(o.devices); + checkUnnamed1475(o.devices); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomerListDevicesResponse--; } -buildUnnamed1105() { +buildUnnamed1476() { var o = new core.List<api.Dpc>(); o.add(buildDpc()); o.add(buildDpc()); return o; } -checkUnnamed1105(core.List<api.Dpc> o) { +checkUnnamed1476(core.List<api.Dpc> o) { unittest.expect(o, unittest.hasLength(2)); checkDpc(o[0]); checkDpc(o[1]); @@ -376,7 +378,7 @@ var o = new api.CustomerListDpcsResponse(); buildCounterCustomerListDpcsResponse++; if (buildCounterCustomerListDpcsResponse < 3) { - o.dpcs = buildUnnamed1105(); + o.dpcs = buildUnnamed1476(); } buildCounterCustomerListDpcsResponse--; return o; @@ -385,7 +387,7 @@ checkCustomerListDpcsResponse(api.CustomerListDpcsResponse o) { buildCounterCustomerListDpcsResponse++; if (buildCounterCustomerListDpcsResponse < 3) { - checkUnnamed1105(o.dpcs); + checkUnnamed1476(o.dpcs); } buildCounterCustomerListDpcsResponse--; } @@ -429,14 +431,14 @@ buildCounterCustomerUnclaimDeviceRequest--; } -buildUnnamed1106() { +buildUnnamed1477() { var o = new core.List<api.DeviceClaim>(); o.add(buildDeviceClaim()); o.add(buildDeviceClaim()); return o; } -checkUnnamed1106(core.List<api.DeviceClaim> o) { +checkUnnamed1477(core.List<api.DeviceClaim> o) { unittest.expect(o, unittest.hasLength(2)); checkDeviceClaim(o[0]); checkDeviceClaim(o[1]); @@ -447,7 +449,7 @@ var o = new api.Device(); buildCounterDevice++; if (buildCounterDevice < 3) { - o.claims = buildUnnamed1106(); + o.claims = buildUnnamed1477(); o.configuration = "foo"; o.deviceId = "foo"; o.deviceIdentifier = buildDeviceIdentifier(); @@ -461,7 +463,7 @@ checkDevice(api.Device o) { buildCounterDevice++; if (buildCounterDevice < 3) { - checkUnnamed1106(o.claims); + checkUnnamed1477(o.claims); unittest.expect(o.configuration, unittest.equals('foo')); unittest.expect(o.deviceId, unittest.equals('foo')); checkDeviceIdentifier(o.deviceIdentifier); @@ -517,14 +519,14 @@ buildCounterDeviceIdentifier--; } -buildUnnamed1107() { +buildUnnamed1478() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1107(core.Map<core.String, core.String> o) { +checkUnnamed1478(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')); @@ -535,7 +537,7 @@ var o = new api.DeviceMetadata(); buildCounterDeviceMetadata++; if (buildCounterDeviceMetadata < 3) { - o.entries = buildUnnamed1107(); + o.entries = buildUnnamed1478(); } buildCounterDeviceMetadata--; return o; @@ -544,7 +546,7 @@ checkDeviceMetadata(api.DeviceMetadata o) { buildCounterDeviceMetadata++; if (buildCounterDeviceMetadata < 3) { - checkUnnamed1107(o.entries); + checkUnnamed1478(o.entries); } buildCounterDeviceMetadata--; } @@ -594,14 +596,14 @@ buildCounterDevicesLongRunningOperationMetadata--; } -buildUnnamed1108() { +buildUnnamed1479() { var o = new core.List<api.OperationPerDevice>(); o.add(buildOperationPerDevice()); o.add(buildOperationPerDevice()); return o; } -checkUnnamed1108(core.List<api.OperationPerDevice> o) { +checkUnnamed1479(core.List<api.OperationPerDevice> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationPerDevice(o[0]); checkOperationPerDevice(o[1]); @@ -612,7 +614,7 @@ var o = new api.DevicesLongRunningOperationResponse(); buildCounterDevicesLongRunningOperationResponse++; if (buildCounterDevicesLongRunningOperationResponse < 3) { - o.perDeviceStatus = buildUnnamed1108(); + o.perDeviceStatus = buildUnnamed1479(); o.successCount = 42; } buildCounterDevicesLongRunningOperationResponse--; @@ -623,7 +625,7 @@ api.DevicesLongRunningOperationResponse o) { buildCounterDevicesLongRunningOperationResponse++; if (buildCounterDevicesLongRunningOperationResponse < 3) { - checkUnnamed1108(o.perDeviceStatus); + checkUnnamed1479(o.perDeviceStatus); unittest.expect(o.successCount, unittest.equals(42)); } buildCounterDevicesLongRunningOperationResponse--; @@ -691,14 +693,14 @@ buildCounterFindDevicesByDeviceIdentifierRequest--; } -buildUnnamed1109() { +buildUnnamed1480() { var o = new core.List<api.Device>(); o.add(buildDevice()); o.add(buildDevice()); return o; } -checkUnnamed1109(core.List<api.Device> o) { +checkUnnamed1480(core.List<api.Device> o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -709,7 +711,7 @@ var o = new api.FindDevicesByDeviceIdentifierResponse(); buildCounterFindDevicesByDeviceIdentifierResponse++; if (buildCounterFindDevicesByDeviceIdentifierResponse < 3) { - o.devices = buildUnnamed1109(); + o.devices = buildUnnamed1480(); o.nextPageToken = "foo"; } buildCounterFindDevicesByDeviceIdentifierResponse--; @@ -720,20 +722,20 @@ api.FindDevicesByDeviceIdentifierResponse o) { buildCounterFindDevicesByDeviceIdentifierResponse++; if (buildCounterFindDevicesByDeviceIdentifierResponse < 3) { - checkUnnamed1109(o.devices); + checkUnnamed1480(o.devices); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFindDevicesByDeviceIdentifierResponse--; } -buildUnnamed1110() { +buildUnnamed1481() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1110(core.List<core.String> o) { +checkUnnamed1481(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -744,7 +746,7 @@ var o = new api.FindDevicesByOwnerRequest(); buildCounterFindDevicesByOwnerRequest++; if (buildCounterFindDevicesByOwnerRequest < 3) { - o.customerId = buildUnnamed1110(); + o.customerId = buildUnnamed1481(); o.limit = "foo"; o.pageToken = "foo"; o.sectionType = "foo"; @@ -756,7 +758,7 @@ checkFindDevicesByOwnerRequest(api.FindDevicesByOwnerRequest o) { buildCounterFindDevicesByOwnerRequest++; if (buildCounterFindDevicesByOwnerRequest < 3) { - checkUnnamed1110(o.customerId); + checkUnnamed1481(o.customerId); unittest.expect(o.limit, unittest.equals('foo')); unittest.expect(o.pageToken, unittest.equals('foo')); unittest.expect(o.sectionType, unittest.equals('foo')); @@ -764,14 +766,14 @@ buildCounterFindDevicesByOwnerRequest--; } -buildUnnamed1111() { +buildUnnamed1482() { var o = new core.List<api.Device>(); o.add(buildDevice()); o.add(buildDevice()); return o; } -checkUnnamed1111(core.List<api.Device> o) { +checkUnnamed1482(core.List<api.Device> o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -782,7 +784,7 @@ var o = new api.FindDevicesByOwnerResponse(); buildCounterFindDevicesByOwnerResponse++; if (buildCounterFindDevicesByOwnerResponse < 3) { - o.devices = buildUnnamed1111(); + o.devices = buildUnnamed1482(); o.nextPageToken = "foo"; } buildCounterFindDevicesByOwnerResponse--; @@ -792,20 +794,20 @@ checkFindDevicesByOwnerResponse(api.FindDevicesByOwnerResponse o) { buildCounterFindDevicesByOwnerResponse++; if (buildCounterFindDevicesByOwnerResponse < 3) { - checkUnnamed1111(o.devices); + checkUnnamed1482(o.devices); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFindDevicesByOwnerResponse--; } -buildUnnamed1112() { +buildUnnamed1483() { var o = new core.List<api.Company>(); o.add(buildCompany()); o.add(buildCompany()); return o; } -checkUnnamed1112(core.List<api.Company> o) { +checkUnnamed1483(core.List<api.Company> o) { unittest.expect(o, unittest.hasLength(2)); checkCompany(o[0]); checkCompany(o[1]); @@ -816,7 +818,7 @@ var o = new api.ListCustomersResponse(); buildCounterListCustomersResponse++; if (buildCounterListCustomersResponse < 3) { - o.customers = buildUnnamed1112(); + o.customers = buildUnnamed1483(); } buildCounterListCustomersResponse--; return o; @@ -825,12 +827,12 @@ checkListCustomersResponse(api.ListCustomersResponse o) { buildCounterListCustomersResponse++; if (buildCounterListCustomersResponse < 3) { - checkUnnamed1112(o.customers); + checkUnnamed1483(o.customers); } buildCounterListCustomersResponse--; } -buildUnnamed1113() { +buildUnnamed1484() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -845,7 +847,7 @@ return o; } -checkUnnamed1113(core.Map<core.String, core.Object> o) { +checkUnnamed1484(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)); @@ -859,7 +861,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1114() { +buildUnnamed1485() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -874,7 +876,7 @@ return o; } -checkUnnamed1114(core.Map<core.String, core.Object> o) { +checkUnnamed1485(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)); @@ -895,9 +897,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1113(); + o.metadata = buildUnnamed1484(); o.name = "foo"; - o.response = buildUnnamed1114(); + o.response = buildUnnamed1485(); } buildCounterOperation--; return o; @@ -908,9 +910,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1113(o.metadata); + checkUnnamed1484(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1114(o.response); + checkUnnamed1485(o.response); } buildCounterOperation--; } @@ -1013,7 +1015,7 @@ buildCounterPerDeviceStatusInBatch--; } -buildUnnamed1115() { +buildUnnamed1486() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1028,7 +1030,7 @@ return o; } -checkUnnamed1115(core.Map<core.String, core.Object> o) { +checkUnnamed1486(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)); @@ -1042,17 +1044,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1116() { +buildUnnamed1487() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1115()); - o.add(buildUnnamed1115()); + o.add(buildUnnamed1486()); + o.add(buildUnnamed1486()); return o; } -checkUnnamed1116(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1487(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1115(o[0]); - checkUnnamed1115(o[1]); + checkUnnamed1486(o[0]); + checkUnnamed1486(o[1]); } core.int buildCounterStatus = 0; @@ -1061,7 +1063,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1116(); + o.details = buildUnnamed1487(); o.message = "foo"; } buildCounterStatus--; @@ -1072,7 +1074,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1116(o.details); + checkUnnamed1487(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1101,14 +1103,14 @@ buildCounterUnclaimDeviceRequest--; } -buildUnnamed1117() { +buildUnnamed1488() { var o = new core.List<api.PartnerUnclaim>(); o.add(buildPartnerUnclaim()); o.add(buildPartnerUnclaim()); return o; } -checkUnnamed1117(core.List<api.PartnerUnclaim> o) { +checkUnnamed1488(core.List<api.PartnerUnclaim> o) { unittest.expect(o, unittest.hasLength(2)); checkPartnerUnclaim(o[0]); checkPartnerUnclaim(o[1]); @@ -1119,7 +1121,7 @@ var o = new api.UnclaimDevicesRequest(); buildCounterUnclaimDevicesRequest++; if (buildCounterUnclaimDevicesRequest < 3) { - o.unclaims = buildUnnamed1117(); + o.unclaims = buildUnnamed1488(); } buildCounterUnclaimDevicesRequest--; return o; @@ -1128,19 +1130,19 @@ checkUnclaimDevicesRequest(api.UnclaimDevicesRequest o) { buildCounterUnclaimDevicesRequest++; if (buildCounterUnclaimDevicesRequest < 3) { - checkUnnamed1117(o.unclaims); + checkUnnamed1488(o.unclaims); } buildCounterUnclaimDevicesRequest--; } -buildUnnamed1118() { +buildUnnamed1489() { var o = new core.List<api.UpdateMetadataArguments>(); o.add(buildUpdateMetadataArguments()); o.add(buildUpdateMetadataArguments()); return o; } -checkUnnamed1118(core.List<api.UpdateMetadataArguments> o) { +checkUnnamed1489(core.List<api.UpdateMetadataArguments> o) { unittest.expect(o, unittest.hasLength(2)); checkUpdateMetadataArguments(o[0]); checkUpdateMetadataArguments(o[1]); @@ -1151,7 +1153,7 @@ var o = new api.UpdateDeviceMetadataInBatchRequest(); buildCounterUpdateDeviceMetadataInBatchRequest++; if (buildCounterUpdateDeviceMetadataInBatchRequest < 3) { - o.updates = buildUnnamed1118(); + o.updates = buildUnnamed1489(); } buildCounterUpdateDeviceMetadataInBatchRequest--; return o; @@ -1161,7 +1163,7 @@ api.UpdateDeviceMetadataInBatchRequest o) { buildCounterUpdateDeviceMetadataInBatchRequest++; if (buildCounterUpdateDeviceMetadataInBatchRequest < 3) { - checkUnnamed1118(o.updates); + checkUnnamed1489(o.updates); } buildCounterUpdateDeviceMetadataInBatchRequest--; }
diff --git a/generated/googleapis/test/androidenterprise/v1_test.dart b/generated/googleapis/test/androidenterprise/v1_test.dart index 7759124..327a5ae 100644 --- a/generated/googleapis/test/androidenterprise/v1_test.dart +++ b/generated/googleapis/test/androidenterprise/v1_test.dart
@@ -90,14 +90,14 @@ buildCounterAdministratorWebToken--; } -buildUnnamed1689() { +buildUnnamed3111() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1689(core.List<core.String> o) { +checkUnnamed3111(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -110,7 +110,7 @@ if (buildCounterAdministratorWebTokenSpec < 3) { o.kind = "foo"; o.parent = "foo"; - o.permission = buildUnnamed1689(); + o.permission = buildUnnamed3111(); } buildCounterAdministratorWebTokenSpec--; return o; @@ -121,7 +121,7 @@ if (buildCounterAdministratorWebTokenSpec < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); - checkUnnamed1689(o.permission); + checkUnnamed3111(o.permission); } buildCounterAdministratorWebTokenSpec--; } @@ -147,14 +147,14 @@ buildCounterAndroidDevicePolicyConfig--; } -buildUnnamed1690() { +buildUnnamed3112() { var o = new core.List<api.AppRestrictionsSchemaRestriction>(); o.add(buildAppRestrictionsSchemaRestriction()); o.add(buildAppRestrictionsSchemaRestriction()); return o; } -checkUnnamed1690(core.List<api.AppRestrictionsSchemaRestriction> o) { +checkUnnamed3112(core.List<api.AppRestrictionsSchemaRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkAppRestrictionsSchemaRestriction(o[0]); checkAppRestrictionsSchemaRestriction(o[1]); @@ -166,7 +166,7 @@ buildCounterAppRestrictionsSchema++; if (buildCounterAppRestrictionsSchema < 3) { o.kind = "foo"; - o.restrictions = buildUnnamed1690(); + o.restrictions = buildUnnamed3112(); } buildCounterAppRestrictionsSchema--; return o; @@ -176,7 +176,7 @@ buildCounterAppRestrictionsSchema++; if (buildCounterAppRestrictionsSchema < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1690(o.restrictions); + checkUnnamed3112(o.restrictions); } buildCounterAppRestrictionsSchema--; } @@ -200,40 +200,40 @@ buildCounterAppRestrictionsSchemaChangeEvent--; } -buildUnnamed1691() { +buildUnnamed3113() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1691(core.List<core.String> o) { +checkUnnamed3113(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1692() { +buildUnnamed3114() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1692(core.List<core.String> o) { +checkUnnamed3114(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1693() { +buildUnnamed3115() { var o = new core.List<api.AppRestrictionsSchemaRestriction>(); o.add(buildAppRestrictionsSchemaRestriction()); o.add(buildAppRestrictionsSchemaRestriction()); return o; } -checkUnnamed1693(core.List<api.AppRestrictionsSchemaRestriction> o) { +checkUnnamed3115(core.List<api.AppRestrictionsSchemaRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkAppRestrictionsSchemaRestriction(o[0]); checkAppRestrictionsSchemaRestriction(o[1]); @@ -246,10 +246,10 @@ if (buildCounterAppRestrictionsSchemaRestriction < 3) { o.defaultValue = buildAppRestrictionsSchemaRestrictionRestrictionValue(); o.description = "foo"; - o.entry = buildUnnamed1691(); - o.entryValue = buildUnnamed1692(); + o.entry = buildUnnamed3113(); + o.entryValue = buildUnnamed3114(); o.key = "foo"; - o.nestedRestriction = buildUnnamed1693(); + o.nestedRestriction = buildUnnamed3115(); o.restrictionType = "foo"; o.title = "foo"; } @@ -262,24 +262,24 @@ if (buildCounterAppRestrictionsSchemaRestriction < 3) { checkAppRestrictionsSchemaRestrictionRestrictionValue(o.defaultValue); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1691(o.entry); - checkUnnamed1692(o.entryValue); + checkUnnamed3113(o.entry); + checkUnnamed3114(o.entryValue); unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed1693(o.nestedRestriction); + checkUnnamed3115(o.nestedRestriction); unittest.expect(o.restrictionType, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } buildCounterAppRestrictionsSchemaRestriction--; } -buildUnnamed1694() { +buildUnnamed3116() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1694(core.List<core.String> 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')); @@ -293,7 +293,7 @@ o.type = "foo"; o.valueBool = true; o.valueInteger = 42; - o.valueMultiselect = buildUnnamed1694(); + o.valueMultiselect = buildUnnamed3116(); o.valueString = "foo"; } buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; @@ -307,7 +307,7 @@ unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.valueBool, unittest.isTrue); unittest.expect(o.valueInteger, unittest.equals(42)); - checkUnnamed1694(o.valueMultiselect); + checkUnnamed3116(o.valueMultiselect); unittest.expect(o.valueString, unittest.equals('foo')); } buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; @@ -397,14 +397,14 @@ buildCounterAuthenticationToken--; } -buildUnnamed1695() { +buildUnnamed3117() { var o = new core.List<api.VariableSet>(); o.add(buildVariableSet()); o.add(buildVariableSet()); return o; } -checkUnnamed1695(core.List<api.VariableSet> o) { +checkUnnamed3117(core.List<api.VariableSet> o) { unittest.expect(o, unittest.hasLength(2)); checkVariableSet(o[0]); checkVariableSet(o[1]); @@ -417,7 +417,7 @@ if (buildCounterConfigurationVariables < 3) { o.kind = "foo"; o.mcmId = "foo"; - o.variableSet = buildUnnamed1695(); + o.variableSet = buildUnnamed3117(); } buildCounterConfigurationVariables--; return o; @@ -428,7 +428,7 @@ if (buildCounterConfigurationVariables < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.mcmId, unittest.equals('foo')); - checkUnnamed1695(o.variableSet); + checkUnnamed3117(o.variableSet); } buildCounterConfigurationVariables--; } @@ -479,14 +479,14 @@ buildCounterDeviceState--; } -buildUnnamed1696() { +buildUnnamed3118() { var o = new core.List<api.Device>(); o.add(buildDevice()); o.add(buildDevice()); return o; } -checkUnnamed1696(core.List<api.Device> o) { +checkUnnamed3118(core.List<api.Device> o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -497,7 +497,7 @@ var o = new api.DevicesListResponse(); buildCounterDevicesListResponse++; if (buildCounterDevicesListResponse < 3) { - o.device = buildUnnamed1696(); + o.device = buildUnnamed3118(); o.kind = "foo"; } buildCounterDevicesListResponse--; @@ -507,20 +507,20 @@ checkDevicesListResponse(api.DevicesListResponse o) { buildCounterDevicesListResponse++; if (buildCounterDevicesListResponse < 3) { - checkUnnamed1696(o.device); + checkUnnamed3118(o.device); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDevicesListResponse--; } -buildUnnamed1697() { +buildUnnamed3119() { var o = new core.List<api.Administrator>(); o.add(buildAdministrator()); o.add(buildAdministrator()); return o; } -checkUnnamed1697(core.List<api.Administrator> o) { +checkUnnamed3119(core.List<api.Administrator> o) { unittest.expect(o, unittest.hasLength(2)); checkAdministrator(o[0]); checkAdministrator(o[1]); @@ -531,7 +531,7 @@ var o = new api.Enterprise(); buildCounterEnterprise++; if (buildCounterEnterprise < 3) { - o.administrator = buildUnnamed1697(); + o.administrator = buildUnnamed3119(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -544,7 +544,7 @@ checkEnterprise(api.Enterprise o) { buildCounterEnterprise++; if (buildCounterEnterprise < 3) { - checkUnnamed1697(o.administrator); + checkUnnamed3119(o.administrator); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -574,14 +574,14 @@ buildCounterEnterpriseAccount--; } -buildUnnamed1698() { +buildUnnamed3120() { var o = new core.List<api.Enterprise>(); o.add(buildEnterprise()); o.add(buildEnterprise()); return o; } -checkUnnamed1698(core.List<api.Enterprise> o) { +checkUnnamed3120(core.List<api.Enterprise> o) { unittest.expect(o, unittest.hasLength(2)); checkEnterprise(o[0]); checkEnterprise(o[1]); @@ -592,7 +592,7 @@ var o = new api.EnterprisesListResponse(); buildCounterEnterprisesListResponse++; if (buildCounterEnterprisesListResponse < 3) { - o.enterprise = buildUnnamed1698(); + o.enterprise = buildUnnamed3120(); o.kind = "foo"; } buildCounterEnterprisesListResponse--; @@ -602,7 +602,7 @@ checkEnterprisesListResponse(api.EnterprisesListResponse o) { buildCounterEnterprisesListResponse++; if (buildCounterEnterprisesListResponse < 3) { - checkUnnamed1698(o.enterprise); + checkUnnamed3120(o.enterprise); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEnterprisesListResponse--; @@ -653,14 +653,14 @@ buildCounterEntitlement--; } -buildUnnamed1699() { +buildUnnamed3121() { var o = new core.List<api.Entitlement>(); o.add(buildEntitlement()); o.add(buildEntitlement()); return o; } -checkUnnamed1699(core.List<api.Entitlement> o) { +checkUnnamed3121(core.List<api.Entitlement> o) { unittest.expect(o, unittest.hasLength(2)); checkEntitlement(o[0]); checkEntitlement(o[1]); @@ -671,7 +671,7 @@ var o = new api.EntitlementsListResponse(); buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { - o.entitlement = buildUnnamed1699(); + o.entitlement = buildUnnamed3121(); o.kind = "foo"; } buildCounterEntitlementsListResponse--; @@ -681,7 +681,7 @@ checkEntitlementsListResponse(api.EntitlementsListResponse o) { buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { - checkUnnamed1699(o.entitlement); + checkUnnamed3121(o.entitlement); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEntitlementsListResponse--; @@ -718,14 +718,14 @@ buildCounterGroupLicense--; } -buildUnnamed1700() { +buildUnnamed3122() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed1700(core.List<api.User> o) { +checkUnnamed3122(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -737,7 +737,7 @@ buildCounterGroupLicenseUsersListResponse++; if (buildCounterGroupLicenseUsersListResponse < 3) { o.kind = "foo"; - o.user = buildUnnamed1700(); + o.user = buildUnnamed3122(); } buildCounterGroupLicenseUsersListResponse--; return o; @@ -747,19 +747,19 @@ buildCounterGroupLicenseUsersListResponse++; if (buildCounterGroupLicenseUsersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1700(o.user); + checkUnnamed3122(o.user); } buildCounterGroupLicenseUsersListResponse--; } -buildUnnamed1701() { +buildUnnamed3123() { var o = new core.List<api.GroupLicense>(); o.add(buildGroupLicense()); o.add(buildGroupLicense()); return o; } -checkUnnamed1701(core.List<api.GroupLicense> o) { +checkUnnamed3123(core.List<api.GroupLicense> o) { unittest.expect(o, unittest.hasLength(2)); checkGroupLicense(o[0]); checkGroupLicense(o[1]); @@ -770,7 +770,7 @@ var o = new api.GroupLicensesListResponse(); buildCounterGroupLicensesListResponse++; if (buildCounterGroupLicensesListResponse < 3) { - o.groupLicense = buildUnnamed1701(); + o.groupLicense = buildUnnamed3123(); o.kind = "foo"; } buildCounterGroupLicensesListResponse--; @@ -780,7 +780,7 @@ checkGroupLicensesListResponse(api.GroupLicensesListResponse o) { buildCounterGroupLicensesListResponse++; if (buildCounterGroupLicensesListResponse < 3) { - checkUnnamed1701(o.groupLicense); + checkUnnamed3123(o.groupLicense); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterGroupLicensesListResponse--; @@ -838,14 +838,14 @@ buildCounterInstallFailureEvent--; } -buildUnnamed1702() { +buildUnnamed3124() { var o = new core.List<api.Install>(); o.add(buildInstall()); o.add(buildInstall()); return o; } -checkUnnamed1702(core.List<api.Install> o) { +checkUnnamed3124(core.List<api.Install> o) { unittest.expect(o, unittest.hasLength(2)); checkInstall(o[0]); checkInstall(o[1]); @@ -856,7 +856,7 @@ var o = new api.InstallsListResponse(); buildCounterInstallsListResponse++; if (buildCounterInstallsListResponse < 3) { - o.install = buildUnnamed1702(); + o.install = buildUnnamed3124(); o.kind = "foo"; } buildCounterInstallsListResponse--; @@ -866,7 +866,7 @@ checkInstallsListResponse(api.InstallsListResponse o) { buildCounterInstallsListResponse++; if (buildCounterInstallsListResponse < 3) { - checkUnnamed1702(o.install); + checkUnnamed3124(o.install); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterInstallsListResponse--; @@ -893,14 +893,35 @@ buildCounterLocalizedText--; } -buildUnnamed1703() { +core.int buildCounterMaintenanceWindow = 0; +buildMaintenanceWindow() { + var o = new api.MaintenanceWindow(); + buildCounterMaintenanceWindow++; + if (buildCounterMaintenanceWindow < 3) { + o.durationMs = "foo"; + o.startTimeAfterMidnightMs = "foo"; + } + buildCounterMaintenanceWindow--; + return o; +} + +checkMaintenanceWindow(api.MaintenanceWindow o) { + buildCounterMaintenanceWindow++; + if (buildCounterMaintenanceWindow < 3) { + unittest.expect(o.durationMs, unittest.equals('foo')); + unittest.expect(o.startTimeAfterMidnightMs, unittest.equals('foo')); + } + buildCounterMaintenanceWindow--; +} + +buildUnnamed3125() { var o = new core.List<api.ManagedProperty>(); o.add(buildManagedProperty()); o.add(buildManagedProperty()); return o; } -checkUnnamed1703(core.List<api.ManagedProperty> o) { +checkUnnamed3125(core.List<api.ManagedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedProperty(o[0]); checkManagedProperty(o[1]); @@ -913,7 +934,7 @@ if (buildCounterManagedConfiguration < 3) { o.configurationVariables = buildConfigurationVariables(); o.kind = "foo"; - o.managedProperty = buildUnnamed1703(); + o.managedProperty = buildUnnamed3125(); o.productId = "foo"; } buildCounterManagedConfiguration--; @@ -925,20 +946,20 @@ if (buildCounterManagedConfiguration < 3) { checkConfigurationVariables(o.configurationVariables); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1703(o.managedProperty); + checkUnnamed3125(o.managedProperty); unittest.expect(o.productId, unittest.equals('foo')); } buildCounterManagedConfiguration--; } -buildUnnamed1704() { +buildUnnamed3126() { var o = new core.List<api.ManagedConfiguration>(); o.add(buildManagedConfiguration()); o.add(buildManagedConfiguration()); return o; } -checkUnnamed1704(core.List<api.ManagedConfiguration> o) { +checkUnnamed3126(core.List<api.ManagedConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedConfiguration(o[0]); checkManagedConfiguration(o[1]); @@ -950,7 +971,7 @@ buildCounterManagedConfigurationsForDeviceListResponse++; if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { o.kind = "foo"; - o.managedConfigurationForDevice = buildUnnamed1704(); + o.managedConfigurationForDevice = buildUnnamed3126(); } buildCounterManagedConfigurationsForDeviceListResponse--; return o; @@ -961,19 +982,19 @@ buildCounterManagedConfigurationsForDeviceListResponse++; if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1704(o.managedConfigurationForDevice); + checkUnnamed3126(o.managedConfigurationForDevice); } buildCounterManagedConfigurationsForDeviceListResponse--; } -buildUnnamed1705() { +buildUnnamed3127() { var o = new core.List<api.ManagedConfiguration>(); o.add(buildManagedConfiguration()); o.add(buildManagedConfiguration()); return o; } -checkUnnamed1705(core.List<api.ManagedConfiguration> o) { +checkUnnamed3127(core.List<api.ManagedConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedConfiguration(o[0]); checkManagedConfiguration(o[1]); @@ -985,7 +1006,7 @@ buildCounterManagedConfigurationsForUserListResponse++; if (buildCounterManagedConfigurationsForUserListResponse < 3) { o.kind = "foo"; - o.managedConfigurationForUser = buildUnnamed1705(); + o.managedConfigurationForUser = buildUnnamed3127(); } buildCounterManagedConfigurationsForUserListResponse--; return o; @@ -996,19 +1017,19 @@ buildCounterManagedConfigurationsForUserListResponse++; if (buildCounterManagedConfigurationsForUserListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1705(o.managedConfigurationForUser); + checkUnnamed3127(o.managedConfigurationForUser); } buildCounterManagedConfigurationsForUserListResponse--; } -buildUnnamed1706() { +buildUnnamed3128() { var o = new core.List<api.ManagedProperty>(); o.add(buildManagedProperty()); o.add(buildManagedProperty()); return o; } -checkUnnamed1706(core.List<api.ManagedProperty> o) { +checkUnnamed3128(core.List<api.ManagedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedProperty(o[0]); checkManagedProperty(o[1]); @@ -1021,7 +1042,7 @@ if (buildCounterManagedConfigurationsSettings < 3) { o.kind = "foo"; o.lastUpdatedTimestampMillis = "foo"; - o.managedProperty = buildUnnamed1706(); + o.managedProperty = buildUnnamed3128(); o.mcmId = "foo"; o.name = "foo"; } @@ -1034,21 +1055,21 @@ if (buildCounterManagedConfigurationsSettings < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastUpdatedTimestampMillis, unittest.equals('foo')); - checkUnnamed1706(o.managedProperty); + checkUnnamed3128(o.managedProperty); unittest.expect(o.mcmId, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } buildCounterManagedConfigurationsSettings--; } -buildUnnamed1707() { +buildUnnamed3129() { var o = new core.List<api.ManagedConfigurationsSettings>(); o.add(buildManagedConfigurationsSettings()); o.add(buildManagedConfigurationsSettings()); return o; } -checkUnnamed1707(core.List<api.ManagedConfigurationsSettings> o) { +checkUnnamed3129(core.List<api.ManagedConfigurationsSettings> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedConfigurationsSettings(o[0]); checkManagedConfigurationsSettings(o[1]); @@ -1060,7 +1081,7 @@ buildCounterManagedConfigurationsSettingsListResponse++; if (buildCounterManagedConfigurationsSettingsListResponse < 3) { o.kind = "foo"; - o.managedConfigurationsSettings = buildUnnamed1707(); + o.managedConfigurationsSettings = buildUnnamed3129(); } buildCounterManagedConfigurationsSettingsListResponse--; return o; @@ -1071,32 +1092,32 @@ buildCounterManagedConfigurationsSettingsListResponse++; if (buildCounterManagedConfigurationsSettingsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1707(o.managedConfigurationsSettings); + checkUnnamed3129(o.managedConfigurationsSettings); } buildCounterManagedConfigurationsSettingsListResponse--; } -buildUnnamed1708() { +buildUnnamed3130() { var o = new core.List<api.ManagedPropertyBundle>(); o.add(buildManagedPropertyBundle()); o.add(buildManagedPropertyBundle()); return o; } -checkUnnamed1708(core.List<api.ManagedPropertyBundle> o) { +checkUnnamed3130(core.List<api.ManagedPropertyBundle> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedPropertyBundle(o[0]); checkManagedPropertyBundle(o[1]); } -buildUnnamed1709() { +buildUnnamed3131() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1709(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')); @@ -1110,10 +1131,10 @@ o.key = "foo"; o.valueBool = true; o.valueBundle = buildManagedPropertyBundle(); - o.valueBundleArray = buildUnnamed1708(); + o.valueBundleArray = buildUnnamed3130(); o.valueInteger = 42; o.valueString = "foo"; - o.valueStringArray = buildUnnamed1709(); + o.valueStringArray = buildUnnamed3131(); } buildCounterManagedProperty--; return o; @@ -1125,22 +1146,22 @@ unittest.expect(o.key, unittest.equals('foo')); unittest.expect(o.valueBool, unittest.isTrue); checkManagedPropertyBundle(o.valueBundle); - checkUnnamed1708(o.valueBundleArray); + checkUnnamed3130(o.valueBundleArray); unittest.expect(o.valueInteger, unittest.equals(42)); unittest.expect(o.valueString, unittest.equals('foo')); - checkUnnamed1709(o.valueStringArray); + checkUnnamed3131(o.valueStringArray); } buildCounterManagedProperty--; } -buildUnnamed1710() { +buildUnnamed3132() { var o = new core.List<api.ManagedProperty>(); o.add(buildManagedProperty()); o.add(buildManagedProperty()); return o; } -checkUnnamed1710(core.List<api.ManagedProperty> o) { +checkUnnamed3132(core.List<api.ManagedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedProperty(o[0]); checkManagedProperty(o[1]); @@ -1151,7 +1172,7 @@ var o = new api.ManagedPropertyBundle(); buildCounterManagedPropertyBundle++; if (buildCounterManagedPropertyBundle < 3) { - o.managedProperty = buildUnnamed1710(); + o.managedProperty = buildUnnamed3132(); } buildCounterManagedPropertyBundle--; return o; @@ -1160,7 +1181,7 @@ checkManagedPropertyBundle(api.ManagedPropertyBundle o) { buildCounterManagedPropertyBundle++; if (buildCounterManagedPropertyBundle < 3) { - checkUnnamed1710(o.managedProperty); + checkUnnamed3132(o.managedProperty); } buildCounterManagedPropertyBundle--; } @@ -1190,27 +1211,27 @@ buildCounterNewDeviceEvent--; } -buildUnnamed1711() { +buildUnnamed3133() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1711(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')); } -buildUnnamed1712() { +buildUnnamed3134() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1712(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')); @@ -1221,9 +1242,9 @@ var o = new api.NewPermissionsEvent(); buildCounterNewPermissionsEvent++; if (buildCounterNewPermissionsEvent < 3) { - o.approvedPermissions = buildUnnamed1711(); + o.approvedPermissions = buildUnnamed3133(); o.productId = "foo"; - o.requestedPermissions = buildUnnamed1712(); + o.requestedPermissions = buildUnnamed3134(); } buildCounterNewPermissionsEvent--; return o; @@ -1232,9 +1253,9 @@ checkNewPermissionsEvent(api.NewPermissionsEvent o) { buildCounterNewPermissionsEvent++; if (buildCounterNewPermissionsEvent < 3) { - checkUnnamed1711(o.approvedPermissions); + checkUnnamed3133(o.approvedPermissions); unittest.expect(o.productId, unittest.equals('foo')); - checkUnnamed1712(o.requestedPermissions); + checkUnnamed3134(o.requestedPermissions); } buildCounterNewPermissionsEvent--; } @@ -1277,14 +1298,14 @@ buildCounterNotification--; } -buildUnnamed1713() { +buildUnnamed3135() { var o = new core.List<api.Notification>(); o.add(buildNotification()); o.add(buildNotification()); return o; } -checkUnnamed1713(core.List<api.Notification> o) { +checkUnnamed3135(core.List<api.Notification> o) { unittest.expect(o, unittest.hasLength(2)); checkNotification(o[0]); checkNotification(o[1]); @@ -1296,7 +1317,7 @@ buildCounterNotificationSet++; if (buildCounterNotificationSet < 3) { o.kind = "foo"; - o.notification = buildUnnamed1713(); + o.notification = buildUnnamed3135(); o.notificationSetId = "foo"; } buildCounterNotificationSet--; @@ -1307,7 +1328,7 @@ buildCounterNotificationSet++; if (buildCounterNotificationSet < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1713(o.notification); + checkUnnamed3135(o.notification); unittest.expect(o.notificationSetId, unittest.equals('foo')); } buildCounterNotificationSet--; @@ -1361,14 +1382,14 @@ buildCounterPermission--; } -buildUnnamed1714() { +buildUnnamed3136() { var o = new core.List<api.ProductPolicy>(); o.add(buildProductPolicy()); o.add(buildProductPolicy()); return o; } -checkUnnamed1714(core.List<api.ProductPolicy> o) { +checkUnnamed3136(core.List<api.ProductPolicy> o) { unittest.expect(o, unittest.hasLength(2)); checkProductPolicy(o[0]); checkProductPolicy(o[1]); @@ -1379,8 +1400,10 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { + o.autoUpdatePolicy = "foo"; + o.maintenanceWindow = buildMaintenanceWindow(); o.productAvailabilityPolicy = "foo"; - o.productPolicy = buildUnnamed1714(); + o.productPolicy = buildUnnamed3136(); } buildCounterPolicy--; return o; @@ -1389,72 +1412,74 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { + unittest.expect(o.autoUpdatePolicy, unittest.equals('foo')); + checkMaintenanceWindow(o.maintenanceWindow); unittest.expect(o.productAvailabilityPolicy, unittest.equals('foo')); - checkUnnamed1714(o.productPolicy); + checkUnnamed3136(o.productPolicy); } buildCounterPolicy--; } -buildUnnamed1715() { +buildUnnamed3137() { var o = new core.List<api.AppVersion>(); o.add(buildAppVersion()); o.add(buildAppVersion()); return o; } -checkUnnamed1715(core.List<api.AppVersion> o) { +checkUnnamed3137(core.List<api.AppVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkAppVersion(o[0]); checkAppVersion(o[1]); } -buildUnnamed1716() { +buildUnnamed3138() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1716(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')); } -buildUnnamed1717() { +buildUnnamed3139() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1717(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')); } -buildUnnamed1718() { +buildUnnamed3140() { var o = new core.List<api.ProductPermission>(); o.add(buildProductPermission()); o.add(buildProductPermission()); return o; } -checkUnnamed1718(core.List<api.ProductPermission> o) { +checkUnnamed3140(core.List<api.ProductPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkProductPermission(o[0]); checkProductPermission(o[1]); } -buildUnnamed1719() { +buildUnnamed3141() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1719(core.List<core.String> o) { +checkUnnamed3141(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1465,10 +1490,10 @@ var o = new api.Product(); buildCounterProduct++; if (buildCounterProduct < 3) { - o.appVersion = buildUnnamed1715(); + o.appVersion = buildUnnamed3137(); o.authorName = "foo"; - o.availableCountries = buildUnnamed1716(); - o.availableTracks = buildUnnamed1717(); + o.availableCountries = buildUnnamed3138(); + o.availableTracks = buildUnnamed3139(); o.category = "foo"; o.contentRating = "foo"; o.description = "foo"; @@ -1478,12 +1503,12 @@ o.kind = "foo"; o.lastUpdatedTimestampMillis = "foo"; o.minAndroidSdkVersion = 42; - o.permissions = buildUnnamed1718(); + o.permissions = buildUnnamed3140(); o.productId = "foo"; o.productPricing = "foo"; o.recentChanges = "foo"; o.requiresContainerApp = true; - o.screenshotUrls = buildUnnamed1719(); + o.screenshotUrls = buildUnnamed3141(); o.signingCertificate = buildProductSigningCertificate(); o.smallIconUrl = "foo"; o.title = "foo"; @@ -1496,10 +1521,10 @@ checkProduct(api.Product o) { buildCounterProduct++; if (buildCounterProduct < 3) { - checkUnnamed1715(o.appVersion); + checkUnnamed3137(o.appVersion); unittest.expect(o.authorName, unittest.equals('foo')); - checkUnnamed1716(o.availableCountries); - checkUnnamed1717(o.availableTracks); + checkUnnamed3138(o.availableCountries); + checkUnnamed3139(o.availableTracks); unittest.expect(o.category, unittest.equals('foo')); unittest.expect(o.contentRating, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); @@ -1509,12 +1534,12 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastUpdatedTimestampMillis, unittest.equals('foo')); unittest.expect(o.minAndroidSdkVersion, unittest.equals(42)); - checkUnnamed1718(o.permissions); + checkUnnamed3140(o.permissions); unittest.expect(o.productId, unittest.equals('foo')); unittest.expect(o.productPricing, unittest.equals('foo')); unittest.expect(o.recentChanges, unittest.equals('foo')); unittest.expect(o.requiresContainerApp, unittest.isTrue); - checkUnnamed1719(o.screenshotUrls); + checkUnnamed3141(o.screenshotUrls); checkProductSigningCertificate(o.signingCertificate); unittest.expect(o.smallIconUrl, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); @@ -1586,14 +1611,14 @@ buildCounterProductPermission--; } -buildUnnamed1720() { +buildUnnamed3142() { var o = new core.List<api.ProductPermission>(); o.add(buildProductPermission()); o.add(buildProductPermission()); return o; } -checkUnnamed1720(core.List<api.ProductPermission> o) { +checkUnnamed3142(core.List<api.ProductPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkProductPermission(o[0]); checkProductPermission(o[1]); @@ -1605,7 +1630,7 @@ buildCounterProductPermissions++; if (buildCounterProductPermissions < 3) { o.kind = "foo"; - o.permission = buildUnnamed1720(); + o.permission = buildUnnamed3142(); o.productId = "foo"; } buildCounterProductPermissions--; @@ -1616,20 +1641,20 @@ buildCounterProductPermissions++; if (buildCounterProductPermissions < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1720(o.permission); + checkUnnamed3142(o.permission); unittest.expect(o.productId, unittest.equals('foo')); } buildCounterProductPermissions--; } -buildUnnamed1721() { +buildUnnamed3143() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1721(core.List<core.String> 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')); @@ -1641,7 +1666,7 @@ buildCounterProductPolicy++; if (buildCounterProductPolicy < 3) { o.productId = "foo"; - o.tracks = buildUnnamed1721(); + o.tracks = buildUnnamed3143(); } buildCounterProductPolicy--; return o; @@ -1651,32 +1676,32 @@ buildCounterProductPolicy++; if (buildCounterProductPolicy < 3) { unittest.expect(o.productId, unittest.equals('foo')); - checkUnnamed1721(o.tracks); + checkUnnamed3143(o.tracks); } buildCounterProductPolicy--; } -buildUnnamed1722() { +buildUnnamed3144() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1722(core.List<core.String> 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')); } -buildUnnamed1723() { +buildUnnamed3145() { var o = new core.List<api.ProductVisibility>(); o.add(buildProductVisibility()); o.add(buildProductVisibility()); return o; } -checkUnnamed1723(core.List<api.ProductVisibility> o) { +checkUnnamed3145(core.List<api.ProductVisibility> o) { unittest.expect(o, unittest.hasLength(2)); checkProductVisibility(o[0]); checkProductVisibility(o[1]); @@ -1688,9 +1713,9 @@ buildCounterProductSet++; if (buildCounterProductSet < 3) { o.kind = "foo"; - o.productId = buildUnnamed1722(); + o.productId = buildUnnamed3144(); o.productSetBehavior = "foo"; - o.productVisibility = buildUnnamed1723(); + o.productVisibility = buildUnnamed3145(); } buildCounterProductSet--; return o; @@ -1700,9 +1725,9 @@ buildCounterProductSet++; if (buildCounterProductSet < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1722(o.productId); + checkUnnamed3144(o.productId); unittest.expect(o.productSetBehavior, unittest.equals('foo')); - checkUnnamed1723(o.productVisibility); + checkUnnamed3145(o.productVisibility); } buildCounterProductSet--; } @@ -1728,14 +1753,14 @@ buildCounterProductSigningCertificate--; } -buildUnnamed1724() { +buildUnnamed3146() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1724(core.List<core.String> o) { +checkUnnamed3146(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1747,7 +1772,7 @@ buildCounterProductVisibility++; if (buildCounterProductVisibility < 3) { o.productId = "foo"; - o.tracks = buildUnnamed1724(); + o.tracks = buildUnnamed3146(); } buildCounterProductVisibility--; return o; @@ -1757,7 +1782,7 @@ buildCounterProductVisibility++; if (buildCounterProductVisibility < 3) { unittest.expect(o.productId, unittest.equals('foo')); - checkUnnamed1724(o.tracks); + checkUnnamed3146(o.tracks); } buildCounterProductVisibility--; } @@ -1803,14 +1828,14 @@ buildCounterProductsGenerateApprovalUrlResponse--; } -buildUnnamed1725() { +buildUnnamed3147() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed1725(core.List<api.Product> o) { +checkUnnamed3147(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -1823,7 +1848,7 @@ if (buildCounterProductsListResponse < 3) { o.kind = "foo"; o.pageInfo = buildPageInfo(); - o.product = buildUnnamed1725(); + o.product = buildUnnamed3147(); o.tokenPagination = buildTokenPagination(); } buildCounterProductsListResponse--; @@ -1835,7 +1860,7 @@ if (buildCounterProductsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); checkPageInfo(o.pageInfo); - checkUnnamed1725(o.product); + checkUnnamed3147(o.product); checkTokenPagination(o.tokenPagination); } buildCounterProductsListResponse--; @@ -1891,14 +1916,14 @@ buildCounterServiceAccountKey--; } -buildUnnamed1726() { +buildUnnamed3148() { var o = new core.List<api.ServiceAccountKey>(); o.add(buildServiceAccountKey()); o.add(buildServiceAccountKey()); return o; } -checkUnnamed1726(core.List<api.ServiceAccountKey> o) { +checkUnnamed3148(core.List<api.ServiceAccountKey> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccountKey(o[0]); checkServiceAccountKey(o[1]); @@ -1909,7 +1934,7 @@ var o = new api.ServiceAccountKeysListResponse(); buildCounterServiceAccountKeysListResponse++; if (buildCounterServiceAccountKeysListResponse < 3) { - o.serviceAccountKey = buildUnnamed1726(); + o.serviceAccountKey = buildUnnamed3148(); } buildCounterServiceAccountKeysListResponse--; return o; @@ -1918,7 +1943,7 @@ checkServiceAccountKeysListResponse(api.ServiceAccountKeysListResponse o) { buildCounterServiceAccountKeysListResponse++; if (buildCounterServiceAccountKeysListResponse < 3) { - checkUnnamed1726(o.serviceAccountKey); + checkUnnamed3148(o.serviceAccountKey); } buildCounterServiceAccountKeysListResponse--; } @@ -1946,27 +1971,27 @@ buildCounterSignupInfo--; } -buildUnnamed1727() { +buildUnnamed3149() { var o = new core.List<api.LocalizedText>(); o.add(buildLocalizedText()); o.add(buildLocalizedText()); return o; } -checkUnnamed1727(core.List<api.LocalizedText> o) { +checkUnnamed3149(core.List<api.LocalizedText> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedText(o[0]); checkLocalizedText(o[1]); } -buildUnnamed1728() { +buildUnnamed3150() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1728(core.List<core.String> o) { +checkUnnamed3150(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1979,9 +2004,9 @@ if (buildCounterStoreCluster < 3) { o.id = "foo"; o.kind = "foo"; - o.name = buildUnnamed1727(); + o.name = buildUnnamed3149(); o.orderInPage = "foo"; - o.productId = buildUnnamed1728(); + o.productId = buildUnnamed3150(); } buildCounterStoreCluster--; return o; @@ -1992,9 +2017,9 @@ if (buildCounterStoreCluster < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1727(o.name); + checkUnnamed3149(o.name); unittest.expect(o.orderInPage, unittest.equals('foo')); - checkUnnamed1728(o.productId); + checkUnnamed3150(o.productId); } buildCounterStoreCluster--; } @@ -2022,14 +2047,14 @@ buildCounterStoreLayout--; } -buildUnnamed1729() { +buildUnnamed3151() { var o = new core.List<api.StoreCluster>(); o.add(buildStoreCluster()); o.add(buildStoreCluster()); return o; } -checkUnnamed1729(core.List<api.StoreCluster> o) { +checkUnnamed3151(core.List<api.StoreCluster> o) { unittest.expect(o, unittest.hasLength(2)); checkStoreCluster(o[0]); checkStoreCluster(o[1]); @@ -2040,7 +2065,7 @@ var o = new api.StoreLayoutClustersListResponse(); buildCounterStoreLayoutClustersListResponse++; if (buildCounterStoreLayoutClustersListResponse < 3) { - o.cluster = buildUnnamed1729(); + o.cluster = buildUnnamed3151(); o.kind = "foo"; } buildCounterStoreLayoutClustersListResponse--; @@ -2050,20 +2075,20 @@ checkStoreLayoutClustersListResponse(api.StoreLayoutClustersListResponse o) { buildCounterStoreLayoutClustersListResponse++; if (buildCounterStoreLayoutClustersListResponse < 3) { - checkUnnamed1729(o.cluster); + checkUnnamed3151(o.cluster); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterStoreLayoutClustersListResponse--; } -buildUnnamed1730() { +buildUnnamed3152() { var o = new core.List<api.StorePage>(); o.add(buildStorePage()); o.add(buildStorePage()); return o; } -checkUnnamed1730(core.List<api.StorePage> o) { +checkUnnamed3152(core.List<api.StorePage> o) { unittest.expect(o, unittest.hasLength(2)); checkStorePage(o[0]); checkStorePage(o[1]); @@ -2075,7 +2100,7 @@ buildCounterStoreLayoutPagesListResponse++; if (buildCounterStoreLayoutPagesListResponse < 3) { o.kind = "foo"; - o.page = buildUnnamed1730(); + o.page = buildUnnamed3152(); } buildCounterStoreLayoutPagesListResponse--; return o; @@ -2085,32 +2110,32 @@ buildCounterStoreLayoutPagesListResponse++; if (buildCounterStoreLayoutPagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1730(o.page); + checkUnnamed3152(o.page); } buildCounterStoreLayoutPagesListResponse--; } -buildUnnamed1731() { +buildUnnamed3153() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1731(core.List<core.String> 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')); } -buildUnnamed1732() { +buildUnnamed3154() { var o = new core.List<api.LocalizedText>(); o.add(buildLocalizedText()); o.add(buildLocalizedText()); return o; } -checkUnnamed1732(core.List<api.LocalizedText> o) { +checkUnnamed3154(core.List<api.LocalizedText> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedText(o[0]); checkLocalizedText(o[1]); @@ -2123,8 +2148,8 @@ if (buildCounterStorePage < 3) { o.id = "foo"; o.kind = "foo"; - o.link = buildUnnamed1731(); - o.name = buildUnnamed1732(); + o.link = buildUnnamed3153(); + o.name = buildUnnamed3154(); } buildCounterStorePage--; return o; @@ -2135,8 +2160,8 @@ if (buildCounterStorePage < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1731(o.link); - checkUnnamed1732(o.name); + checkUnnamed3153(o.link); + checkUnnamed3154(o.name); } buildCounterStorePage--; } @@ -2216,14 +2241,14 @@ buildCounterUserToken--; } -buildUnnamed1733() { +buildUnnamed3155() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed1733(core.List<api.User> o) { +checkUnnamed3155(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -2235,7 +2260,7 @@ buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { o.kind = "foo"; - o.user = buildUnnamed1733(); + o.user = buildUnnamed3155(); } buildCounterUsersListResponse--; return o; @@ -2245,7 +2270,7 @@ buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1733(o.user); + checkUnnamed3155(o.user); } buildCounterUsersListResponse--; } @@ -2510,6 +2535,14 @@ }); }); + unittest.group("obj-schema-MaintenanceWindow", () { + unittest.test("to-json--from-json", () { + var o = buildMaintenanceWindow(); + var od = new api.MaintenanceWindow.fromJson(o.toJson()); + checkMaintenanceWindow(od); + }); + }); + unittest.group("obj-schema-ManagedConfiguration", () { unittest.test("to-json--from-json", () { var o = buildManagedConfiguration();
diff --git a/generated/googleapis/test/androidmanagement/v1_test.dart b/generated/googleapis/test/androidmanagement/v1_test.dart index 1448853..b098601 100644 --- a/generated/googleapis/test/androidmanagement/v1_test.dart +++ b/generated/googleapis/test/androidmanagement/v1_test.dart
@@ -90,27 +90,27 @@ buildCounterApiLevelCondition--; } -buildUnnamed2513() { +buildUnnamed2499() { var o = new core.List<api.ManagedProperty>(); o.add(buildManagedProperty()); o.add(buildManagedProperty()); return o; } -checkUnnamed2513(core.List<api.ManagedProperty> o) { +checkUnnamed2499(core.List<api.ManagedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedProperty(o[0]); checkManagedProperty(o[1]); } -buildUnnamed2514() { +buildUnnamed2500() { var o = new core.List<api.ApplicationPermission>(); o.add(buildApplicationPermission()); o.add(buildApplicationPermission()); return o; } -checkUnnamed2514(core.List<api.ApplicationPermission> o) { +checkUnnamed2500(core.List<api.ApplicationPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkApplicationPermission(o[0]); checkApplicationPermission(o[1]); @@ -121,9 +121,9 @@ var o = new api.Application(); buildCounterApplication++; if (buildCounterApplication < 3) { - o.managedProperties = buildUnnamed2513(); + o.managedProperties = buildUnnamed2499(); o.name = "foo"; - o.permissions = buildUnnamed2514(); + o.permissions = buildUnnamed2500(); o.title = "foo"; } buildCounterApplication--; @@ -133,14 +133,35 @@ checkApplication(api.Application o) { buildCounterApplication++; if (buildCounterApplication < 3) { - checkUnnamed2513(o.managedProperties); + checkUnnamed2499(o.managedProperties); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2514(o.permissions); + checkUnnamed2500(o.permissions); unittest.expect(o.title, unittest.equals('foo')); } buildCounterApplication--; } +core.int buildCounterApplicationEvent = 0; +buildApplicationEvent() { + var o = new api.ApplicationEvent(); + buildCounterApplicationEvent++; + if (buildCounterApplicationEvent < 3) { + o.createTime = "foo"; + o.eventType = "foo"; + } + buildCounterApplicationEvent--; + return o; +} + +checkApplicationEvent(api.ApplicationEvent o) { + buildCounterApplicationEvent++; + if (buildCounterApplicationEvent < 3) { + unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.eventType, unittest.equals('foo')); + } + buildCounterApplicationEvent--; +} + core.int buildCounterApplicationPermission = 0; buildApplicationPermission() { var o = new api.ApplicationPermission(); @@ -164,20 +185,20 @@ buildCounterApplicationPermission--; } -buildUnnamed2515() { +buildUnnamed2501() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2515(core.List<core.String> o) { +checkUnnamed2501(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2516() { +buildUnnamed2502() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -192,7 +213,7 @@ return o; } -checkUnnamed2516(core.Map<core.String, core.Object> o) { +checkUnnamed2502(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)); @@ -206,14 +227,14 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2517() { +buildUnnamed2503() { var o = new core.List<api.PermissionGrant>(); o.add(buildPermissionGrant()); o.add(buildPermissionGrant()); return o; } -checkUnnamed2517(core.List<api.PermissionGrant> o) { +checkUnnamed2503(core.List<api.PermissionGrant> o) { unittest.expect(o, unittest.hasLength(2)); checkPermissionGrant(o[0]); checkPermissionGrant(o[1]); @@ -225,13 +246,14 @@ buildCounterApplicationPolicy++; if (buildCounterApplicationPolicy < 3) { o.defaultPermissionPolicy = "foo"; - o.delegatedScopes = buildUnnamed2515(); + o.delegatedScopes = buildUnnamed2501(); + o.disabled = true; o.installType = "foo"; o.lockTaskAllowed = true; - o.managedConfiguration = buildUnnamed2516(); + o.managedConfiguration = buildUnnamed2502(); o.minimumVersionCode = 42; o.packageName = "foo"; - o.permissionGrants = buildUnnamed2517(); + o.permissionGrants = buildUnnamed2503(); } buildCounterApplicationPolicy--; return o; @@ -241,25 +263,125 @@ buildCounterApplicationPolicy++; if (buildCounterApplicationPolicy < 3) { unittest.expect(o.defaultPermissionPolicy, unittest.equals('foo')); - checkUnnamed2515(o.delegatedScopes); + checkUnnamed2501(o.delegatedScopes); + unittest.expect(o.disabled, unittest.isTrue); unittest.expect(o.installType, unittest.equals('foo')); unittest.expect(o.lockTaskAllowed, unittest.isTrue); - checkUnnamed2516(o.managedConfiguration); + checkUnnamed2502(o.managedConfiguration); unittest.expect(o.minimumVersionCode, unittest.equals(42)); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed2517(o.permissionGrants); + checkUnnamed2503(o.permissionGrants); } buildCounterApplicationPolicy--; } -buildUnnamed2518() { +buildUnnamed2504() { + var o = new core.List<api.ApplicationEvent>(); + o.add(buildApplicationEvent()); + o.add(buildApplicationEvent()); + return o; +} + +checkUnnamed2504(core.List<api.ApplicationEvent> o) { + unittest.expect(o, unittest.hasLength(2)); + checkApplicationEvent(o[0]); + checkApplicationEvent(o[1]); +} + +buildUnnamed2505() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2518(core.List<core.String> o) { +checkUnnamed2505(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterApplicationReport = 0; +buildApplicationReport() { + var o = new api.ApplicationReport(); + buildCounterApplicationReport++; + if (buildCounterApplicationReport < 3) { + o.applicationSource = "foo"; + o.displayName = "foo"; + o.events = buildUnnamed2504(); + o.installerPackageName = "foo"; + o.packageName = "foo"; + o.packageSha256Hash = "foo"; + o.signingKeyCertFingerprints = buildUnnamed2505(); + o.state = "foo"; + o.versionCode = 42; + o.versionName = "foo"; + } + buildCounterApplicationReport--; + return o; +} + +checkApplicationReport(api.ApplicationReport o) { + buildCounterApplicationReport++; + if (buildCounterApplicationReport < 3) { + unittest.expect(o.applicationSource, unittest.equals('foo')); + unittest.expect(o.displayName, unittest.equals('foo')); + checkUnnamed2504(o.events); + unittest.expect(o.installerPackageName, unittest.equals('foo')); + unittest.expect(o.packageName, unittest.equals('foo')); + unittest.expect(o.packageSha256Hash, unittest.equals('foo')); + checkUnnamed2505(o.signingKeyCertFingerprints); + unittest.expect(o.state, unittest.equals('foo')); + unittest.expect(o.versionCode, unittest.equals(42)); + unittest.expect(o.versionName, unittest.equals('foo')); + } + buildCounterApplicationReport--; +} + +buildUnnamed2506() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +core.int buildCounterChoosePrivateKeyRule = 0; +buildChoosePrivateKeyRule() { + var o = new api.ChoosePrivateKeyRule(); + buildCounterChoosePrivateKeyRule++; + if (buildCounterChoosePrivateKeyRule < 3) { + o.packageNames = buildUnnamed2506(); + o.privateKeyAlias = "foo"; + o.urlPattern = "foo"; + } + buildCounterChoosePrivateKeyRule--; + return o; +} + +checkChoosePrivateKeyRule(api.ChoosePrivateKeyRule o) { + buildCounterChoosePrivateKeyRule++; + if (buildCounterChoosePrivateKeyRule < 3) { + checkUnnamed2506(o.packageNames); + unittest.expect(o.privateKeyAlias, unittest.equals('foo')); + unittest.expect(o.urlPattern, unittest.equals('foo')); + } + buildCounterChoosePrivateKeyRule--; +} + +buildUnnamed2507() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2507(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -272,9 +394,11 @@ if (buildCounterCommand < 3) { o.createTime = "foo"; o.duration = "foo"; + o.errorCode = "foo"; o.newPassword = "foo"; - o.resetPasswordFlags = buildUnnamed2518(); + o.resetPasswordFlags = buildUnnamed2507(); o.type = "foo"; + o.userName = "foo"; } buildCounterCommand--; return o; @@ -285,9 +409,11 @@ if (buildCounterCommand < 3) { unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.duration, unittest.equals('foo')); + unittest.expect(o.errorCode, unittest.equals('foo')); unittest.expect(o.newPassword, unittest.equals('foo')); - checkUnnamed2518(o.resetPasswordFlags); + checkUnnamed2507(o.resetPasswordFlags); unittest.expect(o.type, unittest.equals('foo')); + unittest.expect(o.userName, unittest.equals('foo')); } buildCounterCommand--; } @@ -315,79 +441,92 @@ buildCounterComplianceRule--; } -buildUnnamed2519() { +buildUnnamed2508() { + var o = new core.List<api.ApplicationReport>(); + o.add(buildApplicationReport()); + o.add(buildApplicationReport()); + return o; +} + +checkUnnamed2508(core.List<api.ApplicationReport> o) { + unittest.expect(o, unittest.hasLength(2)); + checkApplicationReport(o[0]); + checkApplicationReport(o[1]); +} + +buildUnnamed2509() { var o = new core.List<api.Display>(); o.add(buildDisplay()); o.add(buildDisplay()); return o; } -checkUnnamed2519(core.List<api.Display> o) { +checkUnnamed2509(core.List<api.Display> o) { unittest.expect(o, unittest.hasLength(2)); checkDisplay(o[0]); checkDisplay(o[1]); } -buildUnnamed2520() { +buildUnnamed2510() { var o = new core.List<api.HardwareStatus>(); o.add(buildHardwareStatus()); o.add(buildHardwareStatus()); return o; } -checkUnnamed2520(core.List<api.HardwareStatus> o) { +checkUnnamed2510(core.List<api.HardwareStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkHardwareStatus(o[0]); checkHardwareStatus(o[1]); } -buildUnnamed2521() { +buildUnnamed2511() { var o = new core.List<api.MemoryEvent>(); o.add(buildMemoryEvent()); o.add(buildMemoryEvent()); return o; } -checkUnnamed2521(core.List<api.MemoryEvent> o) { +checkUnnamed2511(core.List<api.MemoryEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkMemoryEvent(o[0]); checkMemoryEvent(o[1]); } -buildUnnamed2522() { +buildUnnamed2512() { var o = new core.List<api.NonComplianceDetail>(); o.add(buildNonComplianceDetail()); o.add(buildNonComplianceDetail()); return o; } -checkUnnamed2522(core.List<api.NonComplianceDetail> o) { +checkUnnamed2512(core.List<api.NonComplianceDetail> o) { unittest.expect(o, unittest.hasLength(2)); checkNonComplianceDetail(o[0]); checkNonComplianceDetail(o[1]); } -buildUnnamed2523() { +buildUnnamed2513() { var o = new core.List<api.PowerManagementEvent>(); o.add(buildPowerManagementEvent()); o.add(buildPowerManagementEvent()); return o; } -checkUnnamed2523(core.List<api.PowerManagementEvent> o) { +checkUnnamed2513(core.List<api.PowerManagementEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkPowerManagementEvent(o[0]); checkPowerManagementEvent(o[1]); } -buildUnnamed2524() { +buildUnnamed2514() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2524(core.List<core.String> o) { +checkUnnamed2514(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -399,29 +538,30 @@ buildCounterDevice++; if (buildCounterDevice < 3) { o.apiLevel = 42; + o.applicationReports = buildUnnamed2508(); o.appliedPolicyName = "foo"; o.appliedPolicyVersion = "foo"; o.appliedState = "foo"; o.deviceSettings = buildDeviceSettings(); o.disabledReason = buildUserFacingMessage(); - o.displays = buildUnnamed2519(); + o.displays = buildUnnamed2509(); o.enrollmentTime = "foo"; o.enrollmentTokenData = "foo"; o.enrollmentTokenName = "foo"; o.hardwareInfo = buildHardwareInfo(); - o.hardwareStatusSamples = buildUnnamed2520(); + o.hardwareStatusSamples = buildUnnamed2510(); o.lastPolicyComplianceReportTime = "foo"; o.lastPolicySyncTime = "foo"; o.lastStatusReportTime = "foo"; - o.memoryEvents = buildUnnamed2521(); + o.memoryEvents = buildUnnamed2511(); o.memoryInfo = buildMemoryInfo(); o.name = "foo"; o.networkInfo = buildNetworkInfo(); - o.nonComplianceDetails = buildUnnamed2522(); + o.nonComplianceDetails = buildUnnamed2512(); o.policyCompliant = true; o.policyName = "foo"; - o.powerManagementEvents = buildUnnamed2523(); - o.previousDeviceNames = buildUnnamed2524(); + o.powerManagementEvents = buildUnnamed2513(); + o.previousDeviceNames = buildUnnamed2514(); o.softwareInfo = buildSoftwareInfo(); o.state = "foo"; o.userName = "foo"; @@ -434,29 +574,30 @@ buildCounterDevice++; if (buildCounterDevice < 3) { unittest.expect(o.apiLevel, unittest.equals(42)); + checkUnnamed2508(o.applicationReports); unittest.expect(o.appliedPolicyName, unittest.equals('foo')); unittest.expect(o.appliedPolicyVersion, unittest.equals('foo')); unittest.expect(o.appliedState, unittest.equals('foo')); checkDeviceSettings(o.deviceSettings); checkUserFacingMessage(o.disabledReason); - checkUnnamed2519(o.displays); + checkUnnamed2509(o.displays); unittest.expect(o.enrollmentTime, unittest.equals('foo')); unittest.expect(o.enrollmentTokenData, unittest.equals('foo')); unittest.expect(o.enrollmentTokenName, unittest.equals('foo')); checkHardwareInfo(o.hardwareInfo); - checkUnnamed2520(o.hardwareStatusSamples); + checkUnnamed2510(o.hardwareStatusSamples); unittest.expect(o.lastPolicyComplianceReportTime, unittest.equals('foo')); unittest.expect(o.lastPolicySyncTime, unittest.equals('foo')); unittest.expect(o.lastStatusReportTime, unittest.equals('foo')); - checkUnnamed2521(o.memoryEvents); + checkUnnamed2511(o.memoryEvents); checkMemoryInfo(o.memoryInfo); unittest.expect(o.name, unittest.equals('foo')); checkNetworkInfo(o.networkInfo); - checkUnnamed2522(o.nonComplianceDetails); + checkUnnamed2512(o.nonComplianceDetails); unittest.expect(o.policyCompliant, unittest.isTrue); unittest.expect(o.policyName, unittest.equals('foo')); - checkUnnamed2523(o.powerManagementEvents); - checkUnnamed2524(o.previousDeviceNames); + checkUnnamed2513(o.powerManagementEvents); + checkUnnamed2514(o.previousDeviceNames); checkSoftwareInfo(o.softwareInfo); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.userName, unittest.equals('foo')); @@ -572,31 +713,45 @@ buildCounterEnrollmentToken--; } -buildUnnamed2525() { +buildUnnamed2515() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2525(core.List<core.String> o) { +checkUnnamed2515(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } +buildUnnamed2516() { + var o = new core.List<api.TermsAndConditions>(); + o.add(buildTermsAndConditions()); + o.add(buildTermsAndConditions()); + return o; +} + +checkUnnamed2516(core.List<api.TermsAndConditions> o) { + unittest.expect(o, unittest.hasLength(2)); + checkTermsAndConditions(o[0]); + checkTermsAndConditions(o[1]); +} + core.int buildCounterEnterprise = 0; buildEnterprise() { var o = new api.Enterprise(); buildCounterEnterprise++; if (buildCounterEnterprise < 3) { o.appAutoApprovalEnabled = true; - o.enabledNotificationTypes = buildUnnamed2525(); + o.enabledNotificationTypes = buildUnnamed2515(); o.enterpriseDisplayName = "foo"; o.logo = buildExternalData(); o.name = "foo"; o.primaryColor = 42; o.pubsubTopic = "foo"; + o.termsAndConditions = buildUnnamed2516(); } buildCounterEnterprise--; return o; @@ -606,12 +761,13 @@ buildCounterEnterprise++; if (buildCounterEnterprise < 3) { unittest.expect(o.appAutoApprovalEnabled, unittest.isTrue); - checkUnnamed2525(o.enabledNotificationTypes); + checkUnnamed2515(o.enabledNotificationTypes); unittest.expect(o.enterpriseDisplayName, unittest.equals('foo')); checkExternalData(o.logo); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.primaryColor, unittest.equals(42)); unittest.expect(o.pubsubTopic, unittest.equals('foo')); + checkUnnamed2516(o.termsAndConditions); } buildCounterEnterprise--; } @@ -637,6 +793,168 @@ buildCounterExternalData--; } +buildUnnamed2517() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed2517(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)); +} + +buildUnnamed2518() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed2518(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)); +} + +buildUnnamed2519() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed2519(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)); +} + +buildUnnamed2520() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed2520(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)); +} + +buildUnnamed2521() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed2521(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)); +} + +buildUnnamed2522() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed2522(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)); +} + +buildUnnamed2523() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed2523(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)); +} + +buildUnnamed2524() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed2524(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 buildCounterHardwareInfo = 0; +buildHardwareInfo() { + var o = new api.HardwareInfo(); + buildCounterHardwareInfo++; + if (buildCounterHardwareInfo < 3) { + o.batteryShutdownTemperatures = buildUnnamed2517(); + o.batteryThrottlingTemperatures = buildUnnamed2518(); + o.brand = "foo"; + o.cpuShutdownTemperatures = buildUnnamed2519(); + o.cpuThrottlingTemperatures = buildUnnamed2520(); + o.deviceBasebandVersion = "foo"; + o.gpuShutdownTemperatures = buildUnnamed2521(); + o.gpuThrottlingTemperatures = buildUnnamed2522(); + o.hardware = "foo"; + o.manufacturer = "foo"; + o.model = "foo"; + o.serialNumber = "foo"; + o.skinShutdownTemperatures = buildUnnamed2523(); + o.skinThrottlingTemperatures = buildUnnamed2524(); + } + buildCounterHardwareInfo--; + return o; +} + +checkHardwareInfo(api.HardwareInfo o) { + buildCounterHardwareInfo++; + if (buildCounterHardwareInfo < 3) { + checkUnnamed2517(o.batteryShutdownTemperatures); + checkUnnamed2518(o.batteryThrottlingTemperatures); + unittest.expect(o.brand, unittest.equals('foo')); + checkUnnamed2519(o.cpuShutdownTemperatures); + checkUnnamed2520(o.cpuThrottlingTemperatures); + unittest.expect(o.deviceBasebandVersion, unittest.equals('foo')); + checkUnnamed2521(o.gpuShutdownTemperatures); + checkUnnamed2522(o.gpuThrottlingTemperatures); + unittest.expect(o.hardware, unittest.equals('foo')); + unittest.expect(o.manufacturer, unittest.equals('foo')); + unittest.expect(o.model, unittest.equals('foo')); + unittest.expect(o.serialNumber, unittest.equals('foo')); + checkUnnamed2523(o.skinShutdownTemperatures); + checkUnnamed2524(o.skinThrottlingTemperatures); + } + buildCounterHardwareInfo--; +} + +buildUnnamed2525() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed2525(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)); +} + buildUnnamed2526() { var o = new core.List<core.double>(); o.add(42.0); @@ -702,180 +1020,18 @@ unittest.expect(o[1], unittest.equals(42.0)); } -buildUnnamed2531() { - var o = new core.List<core.double>(); - o.add(42.0); - o.add(42.0); - return o; -} - -checkUnnamed2531(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)); -} - -buildUnnamed2532() { - var o = new core.List<core.double>(); - o.add(42.0); - o.add(42.0); - return o; -} - -checkUnnamed2532(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)); -} - -buildUnnamed2533() { - var o = new core.List<core.double>(); - o.add(42.0); - o.add(42.0); - return o; -} - -checkUnnamed2533(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 buildCounterHardwareInfo = 0; -buildHardwareInfo() { - var o = new api.HardwareInfo(); - buildCounterHardwareInfo++; - if (buildCounterHardwareInfo < 3) { - o.batteryShutdownTemperatures = buildUnnamed2526(); - o.batteryThrottlingTemperatures = buildUnnamed2527(); - o.brand = "foo"; - o.cpuShutdownTemperatures = buildUnnamed2528(); - o.cpuThrottlingTemperatures = buildUnnamed2529(); - o.deviceBasebandVersion = "foo"; - o.gpuShutdownTemperatures = buildUnnamed2530(); - o.gpuThrottlingTemperatures = buildUnnamed2531(); - o.hardware = "foo"; - o.manufacturer = "foo"; - o.model = "foo"; - o.serialNumber = "foo"; - o.skinShutdownTemperatures = buildUnnamed2532(); - o.skinThrottlingTemperatures = buildUnnamed2533(); - } - buildCounterHardwareInfo--; - return o; -} - -checkHardwareInfo(api.HardwareInfo o) { - buildCounterHardwareInfo++; - if (buildCounterHardwareInfo < 3) { - checkUnnamed2526(o.batteryShutdownTemperatures); - checkUnnamed2527(o.batteryThrottlingTemperatures); - unittest.expect(o.brand, unittest.equals('foo')); - checkUnnamed2528(o.cpuShutdownTemperatures); - checkUnnamed2529(o.cpuThrottlingTemperatures); - unittest.expect(o.deviceBasebandVersion, unittest.equals('foo')); - checkUnnamed2530(o.gpuShutdownTemperatures); - checkUnnamed2531(o.gpuThrottlingTemperatures); - unittest.expect(o.hardware, unittest.equals('foo')); - unittest.expect(o.manufacturer, unittest.equals('foo')); - unittest.expect(o.model, unittest.equals('foo')); - unittest.expect(o.serialNumber, unittest.equals('foo')); - checkUnnamed2532(o.skinShutdownTemperatures); - checkUnnamed2533(o.skinThrottlingTemperatures); - } - buildCounterHardwareInfo--; -} - -buildUnnamed2534() { - var o = new core.List<core.double>(); - o.add(42.0); - o.add(42.0); - return o; -} - -checkUnnamed2534(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)); -} - -buildUnnamed2535() { - var o = new core.List<core.double>(); - o.add(42.0); - o.add(42.0); - return o; -} - -checkUnnamed2535(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)); -} - -buildUnnamed2536() { - var o = new core.List<core.double>(); - o.add(42.0); - o.add(42.0); - return o; -} - -checkUnnamed2536(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)); -} - -buildUnnamed2537() { - var o = new core.List<core.double>(); - o.add(42.0); - o.add(42.0); - return o; -} - -checkUnnamed2537(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)); -} - -buildUnnamed2538() { - var o = new core.List<core.double>(); - o.add(42.0); - o.add(42.0); - return o; -} - -checkUnnamed2538(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)); -} - -buildUnnamed2539() { - var o = new core.List<core.double>(); - o.add(42.0); - o.add(42.0); - return o; -} - -checkUnnamed2539(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 buildCounterHardwareStatus = 0; buildHardwareStatus() { var o = new api.HardwareStatus(); buildCounterHardwareStatus++; if (buildCounterHardwareStatus < 3) { - o.batteryTemperatures = buildUnnamed2534(); - o.cpuTemperatures = buildUnnamed2535(); - o.cpuUsages = buildUnnamed2536(); + o.batteryTemperatures = buildUnnamed2525(); + o.cpuTemperatures = buildUnnamed2526(); + o.cpuUsages = buildUnnamed2527(); o.createTime = "foo"; - o.fanSpeeds = buildUnnamed2537(); - o.gpuTemperatures = buildUnnamed2538(); - o.skinTemperatures = buildUnnamed2539(); + o.fanSpeeds = buildUnnamed2528(); + o.gpuTemperatures = buildUnnamed2529(); + o.skinTemperatures = buildUnnamed2530(); } buildCounterHardwareStatus--; return o; @@ -884,25 +1040,25 @@ checkHardwareStatus(api.HardwareStatus o) { buildCounterHardwareStatus++; if (buildCounterHardwareStatus < 3) { - checkUnnamed2534(o.batteryTemperatures); - checkUnnamed2535(o.cpuTemperatures); - checkUnnamed2536(o.cpuUsages); + checkUnnamed2525(o.batteryTemperatures); + checkUnnamed2526(o.cpuTemperatures); + checkUnnamed2527(o.cpuUsages); unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed2537(o.fanSpeeds); - checkUnnamed2538(o.gpuTemperatures); - checkUnnamed2539(o.skinTemperatures); + checkUnnamed2528(o.fanSpeeds); + checkUnnamed2529(o.gpuTemperatures); + checkUnnamed2530(o.skinTemperatures); } buildCounterHardwareStatus--; } -buildUnnamed2540() { +buildUnnamed2531() { var o = new core.List<api.Device>(); o.add(buildDevice()); o.add(buildDevice()); return o; } -checkUnnamed2540(core.List<api.Device> o) { +checkUnnamed2531(core.List<api.Device> o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -913,7 +1069,7 @@ var o = new api.ListDevicesResponse(); buildCounterListDevicesResponse++; if (buildCounterListDevicesResponse < 3) { - o.devices = buildUnnamed2540(); + o.devices = buildUnnamed2531(); o.nextPageToken = "foo"; } buildCounterListDevicesResponse--; @@ -923,20 +1079,20 @@ checkListDevicesResponse(api.ListDevicesResponse o) { buildCounterListDevicesResponse++; if (buildCounterListDevicesResponse < 3) { - checkUnnamed2540(o.devices); + checkUnnamed2531(o.devices); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDevicesResponse--; } -buildUnnamed2541() { +buildUnnamed2532() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2541(core.List<api.Operation> o) { +checkUnnamed2532(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -948,7 +1104,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed2541(); + o.operations = buildUnnamed2532(); } buildCounterListOperationsResponse--; return o; @@ -958,19 +1114,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2541(o.operations); + checkUnnamed2532(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed2542() { +buildUnnamed2533() { var o = new core.List<api.Policy>(); o.add(buildPolicy()); o.add(buildPolicy()); return o; } -checkUnnamed2542(core.List<api.Policy> o) { +checkUnnamed2533(core.List<api.Policy> o) { unittest.expect(o, unittest.hasLength(2)); checkPolicy(o[0]); checkPolicy(o[1]); @@ -982,7 +1138,7 @@ buildCounterListPoliciesResponse++; if (buildCounterListPoliciesResponse < 3) { o.nextPageToken = "foo"; - o.policies = buildUnnamed2542(); + o.policies = buildUnnamed2533(); } buildCounterListPoliciesResponse--; return o; @@ -992,32 +1148,32 @@ buildCounterListPoliciesResponse++; if (buildCounterListPoliciesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2542(o.policies); + checkUnnamed2533(o.policies); } buildCounterListPoliciesResponse--; } -buildUnnamed2543() { +buildUnnamed2534() { var o = new core.List<api.ManagedPropertyEntry>(); o.add(buildManagedPropertyEntry()); o.add(buildManagedPropertyEntry()); return o; } -checkUnnamed2543(core.List<api.ManagedPropertyEntry> o) { +checkUnnamed2534(core.List<api.ManagedPropertyEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedPropertyEntry(o[0]); checkManagedPropertyEntry(o[1]); } -buildUnnamed2544() { +buildUnnamed2535() { var o = new core.List<api.ManagedProperty>(); o.add(buildManagedProperty()); o.add(buildManagedProperty()); return o; } -checkUnnamed2544(core.List<api.ManagedProperty> o) { +checkUnnamed2535(core.List<api.ManagedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedProperty(o[0]); checkManagedProperty(o[1]); @@ -1034,9 +1190,9 @@ 'string': 'foo' }; o.description = "foo"; - o.entries = buildUnnamed2543(); + o.entries = buildUnnamed2534(); o.key = "foo"; - o.nestedProperties = buildUnnamed2544(); + o.nestedProperties = buildUnnamed2535(); o.title = "foo"; o.type = "foo"; } @@ -1053,9 +1209,9 @@ unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2543(o.entries); + checkUnnamed2534(o.entries); unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed2544(o.nestedProperties); + checkUnnamed2535(o.nestedProperties); unittest.expect(o.title, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } @@ -1212,7 +1368,7 @@ buildCounterNonComplianceDetailCondition--; } -buildUnnamed2545() { +buildUnnamed2536() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1227,7 +1383,7 @@ return o; } -checkUnnamed2545(core.Map<core.String, core.Object> o) { +checkUnnamed2536(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)); @@ -1241,7 +1397,7 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed2546() { +buildUnnamed2537() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1256,7 +1412,7 @@ return o; } -checkUnnamed2546(core.Map<core.String, core.Object> o) { +checkUnnamed2537(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)); @@ -1277,9 +1433,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2545(); + o.metadata = buildUnnamed2536(); o.name = "foo"; - o.response = buildUnnamed2546(); + o.response = buildUnnamed2537(); } buildCounterOperation--; return o; @@ -1290,21 +1446,21 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2545(o.metadata); + checkUnnamed2536(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2546(o.response); + checkUnnamed2537(o.response); } buildCounterOperation--; } -buildUnnamed2547() { +buildUnnamed2538() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2547(core.List<core.String> o) { +checkUnnamed2538(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1315,7 +1471,7 @@ var o = new api.PackageNameList(); buildCounterPackageNameList++; if (buildCounterPackageNameList < 3) { - o.packageNames = buildUnnamed2547(); + o.packageNames = buildUnnamed2538(); } buildCounterPackageNameList--; return o; @@ -1324,7 +1480,7 @@ checkPackageNameList(api.PackageNameList o) { buildCounterPackageNameList++; if (buildCounterPackageNameList < 3) { - checkUnnamed2547(o.packageNames); + checkUnnamed2538(o.packageNames); } buildCounterPackageNameList--; } @@ -1389,27 +1545,27 @@ buildCounterPermissionGrant--; } -buildUnnamed2548() { +buildUnnamed2539() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2548(core.List<core.String> o) { +checkUnnamed2539(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2549() { +buildUnnamed2540() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2549(core.List<core.String> o) { +checkUnnamed2540(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1420,8 +1576,8 @@ var o = new api.PersistentPreferredActivity(); buildCounterPersistentPreferredActivity++; if (buildCounterPersistentPreferredActivity < 3) { - o.actions = buildUnnamed2548(); - o.categories = buildUnnamed2549(); + o.actions = buildUnnamed2539(); + o.categories = buildUnnamed2540(); o.receiverActivity = "foo"; } buildCounterPersistentPreferredActivity--; @@ -1431,13 +1587,146 @@ checkPersistentPreferredActivity(api.PersistentPreferredActivity o) { buildCounterPersistentPreferredActivity++; if (buildCounterPersistentPreferredActivity < 3) { - checkUnnamed2548(o.actions); - checkUnnamed2549(o.categories); + checkUnnamed2539(o.actions); + checkUnnamed2540(o.categories); unittest.expect(o.receiverActivity, unittest.equals('foo')); } buildCounterPersistentPreferredActivity--; } +buildUnnamed2541() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2542() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2542(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2543() { + var o = new core.List<api.ApplicationPolicy>(); + o.add(buildApplicationPolicy()); + o.add(buildApplicationPolicy()); + return o; +} + +checkUnnamed2543(core.List<api.ApplicationPolicy> o) { + unittest.expect(o, unittest.hasLength(2)); + checkApplicationPolicy(o[0]); + checkApplicationPolicy(o[1]); +} + +buildUnnamed2544() { + var o = new core.List<api.ChoosePrivateKeyRule>(); + o.add(buildChoosePrivateKeyRule()); + o.add(buildChoosePrivateKeyRule()); + return o; +} + +checkUnnamed2544(core.List<api.ChoosePrivateKeyRule> o) { + unittest.expect(o, unittest.hasLength(2)); + checkChoosePrivateKeyRule(o[0]); + checkChoosePrivateKeyRule(o[1]); +} + +buildUnnamed2545() { + var o = new core.List<api.ComplianceRule>(); + o.add(buildComplianceRule()); + o.add(buildComplianceRule()); + return o; +} + +checkUnnamed2545(core.List<api.ComplianceRule> o) { + unittest.expect(o, unittest.hasLength(2)); + checkComplianceRule(o[0]); + checkComplianceRule(o[1]); +} + +buildUnnamed2546() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2546(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2547() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2547(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2548() { + 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; +} + +checkUnnamed2548(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')); +} + +buildUnnamed2549() { + var o = new core.List<api.PersistentPreferredActivity>(); + o.add(buildPersistentPreferredActivity()); + o.add(buildPersistentPreferredActivity()); + return o; +} + +checkUnnamed2549(core.List<api.PersistentPreferredActivity> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPersistentPreferredActivity(o[0]); + checkPersistentPreferredActivity(o[1]); +} + buildUnnamed2550() { var o = new core.List<core.String>(); o.add("foo"); @@ -1451,137 +1740,18 @@ unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2551() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2551(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2552() { - var o = new core.List<api.ApplicationPolicy>(); - o.add(buildApplicationPolicy()); - o.add(buildApplicationPolicy()); - return o; -} - -checkUnnamed2552(core.List<api.ApplicationPolicy> o) { - unittest.expect(o, unittest.hasLength(2)); - checkApplicationPolicy(o[0]); - checkApplicationPolicy(o[1]); -} - -buildUnnamed2553() { - var o = new core.List<api.ComplianceRule>(); - o.add(buildComplianceRule()); - o.add(buildComplianceRule()); - return o; -} - -checkUnnamed2553(core.List<api.ComplianceRule> o) { - unittest.expect(o, unittest.hasLength(2)); - checkComplianceRule(o[0]); - checkComplianceRule(o[1]); -} - -buildUnnamed2554() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2554(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2555() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2556() { - 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; -} - -checkUnnamed2556(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')); -} - -buildUnnamed2557() { - var o = new core.List<api.PersistentPreferredActivity>(); - o.add(buildPersistentPreferredActivity()); - o.add(buildPersistentPreferredActivity()); - return o; -} - -checkUnnamed2557(core.List<api.PersistentPreferredActivity> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPersistentPreferredActivity(o[0]); - checkPersistentPreferredActivity(o[1]); -} - -buildUnnamed2558() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2558(core.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 buildCounterPolicy = 0; buildPolicy() { var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.accountTypesWithManagementDisabled = buildUnnamed2550(); + o.accountTypesWithManagementDisabled = buildUnnamed2541(); o.addUserDisabled = true; o.adjustVolumeDisabled = true; o.alwaysOnVpnPackage = buildAlwaysOnVpnPackage(); - o.androidDevicePolicyTracks = buildUnnamed2551(); - o.applications = buildUnnamed2552(); + o.androidDevicePolicyTracks = buildUnnamed2542(); + o.appAutoUpdatePolicy = "foo"; + o.applications = buildUnnamed2543(); o.autoTimeRequired = true; o.blockApplicationsEnabled = true; o.bluetoothConfigDisabled = true; @@ -1589,21 +1759,25 @@ o.bluetoothDisabled = true; o.cameraDisabled = true; o.cellBroadcastsConfigDisabled = true; - o.complianceRules = buildUnnamed2553(); + o.choosePrivateKeyRules = buildUnnamed2544(); + o.complianceRules = buildUnnamed2545(); o.createWindowsDisabled = true; o.credentialsConfigDisabled = true; o.dataRoamingDisabled = true; o.debuggingFeaturesAllowed = true; o.defaultPermissionPolicy = "foo"; + o.deviceOwnerLockScreenInfo = buildUserFacingMessage(); + o.encryptionPolicy = "foo"; o.ensureVerifyAppsEnabled = true; o.factoryResetDisabled = true; - o.frpAdminEmails = buildUnnamed2554(); + o.frpAdminEmails = buildUnnamed2546(); o.funDisabled = true; o.installAppsDisabled = true; o.installUnknownSourcesAllowed = true; o.keyguardDisabled = true; - o.keyguardDisabledFeatures = buildUnnamed2555(); + o.keyguardDisabledFeatures = buildUnnamed2547(); o.kioskCustomLauncherEnabled = true; + o.locationMode = "foo"; o.longSupportMessage = buildUserFacingMessage(); o.maximumTimeToLock = "foo"; o.mobileNetworksConfigDisabled = true; @@ -1612,28 +1786,32 @@ o.name = "foo"; o.networkEscapeHatchEnabled = true; o.networkResetDisabled = true; - o.openNetworkConfiguration = buildUnnamed2556(); + o.openNetworkConfiguration = buildUnnamed2548(); o.outgoingBeamDisabled = true; o.outgoingCallsDisabled = true; o.passwordRequirements = buildPasswordRequirements(); o.permittedInputMethods = buildPackageNameList(); - o.persistentPreferredActivities = buildUnnamed2557(); + o.persistentPreferredActivities = buildUnnamed2549(); + o.privateKeySelectionEnabled = true; o.recommendedGlobalProxy = buildProxyInfo(); o.removeUserDisabled = true; o.safeBootDisabled = true; o.screenCaptureDisabled = true; o.setUserIconDisabled = true; o.setWallpaperDisabled = true; + o.shareLocationDisabled = true; o.shortSupportMessage = buildUserFacingMessage(); + o.skipFirstUseHintsEnabled = true; o.smsDisabled = true; o.statusBarDisabled = true; o.statusReportingSettings = buildStatusReportingSettings(); - o.stayOnPluggedModes = buildUnnamed2558(); + o.stayOnPluggedModes = buildUnnamed2550(); o.systemUpdate = buildSystemUpdate(); o.tetheringConfigDisabled = true; o.uninstallAppsDisabled = true; o.unmuteMicrophoneDisabled = true; o.usbFileTransferDisabled = true; + o.usbMassStorageEnabled = true; o.version = "foo"; o.vpnConfigDisabled = true; o.wifiConfigDisabled = true; @@ -1646,12 +1824,13 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed2550(o.accountTypesWithManagementDisabled); + checkUnnamed2541(o.accountTypesWithManagementDisabled); unittest.expect(o.addUserDisabled, unittest.isTrue); unittest.expect(o.adjustVolumeDisabled, unittest.isTrue); checkAlwaysOnVpnPackage(o.alwaysOnVpnPackage); - checkUnnamed2551(o.androidDevicePolicyTracks); - checkUnnamed2552(o.applications); + checkUnnamed2542(o.androidDevicePolicyTracks); + unittest.expect(o.appAutoUpdatePolicy, unittest.equals('foo')); + checkUnnamed2543(o.applications); unittest.expect(o.autoTimeRequired, unittest.isTrue); unittest.expect(o.blockApplicationsEnabled, unittest.isTrue); unittest.expect(o.bluetoothConfigDisabled, unittest.isTrue); @@ -1659,21 +1838,25 @@ unittest.expect(o.bluetoothDisabled, unittest.isTrue); unittest.expect(o.cameraDisabled, unittest.isTrue); unittest.expect(o.cellBroadcastsConfigDisabled, unittest.isTrue); - checkUnnamed2553(o.complianceRules); + checkUnnamed2544(o.choosePrivateKeyRules); + checkUnnamed2545(o.complianceRules); unittest.expect(o.createWindowsDisabled, unittest.isTrue); unittest.expect(o.credentialsConfigDisabled, unittest.isTrue); unittest.expect(o.dataRoamingDisabled, unittest.isTrue); unittest.expect(o.debuggingFeaturesAllowed, unittest.isTrue); unittest.expect(o.defaultPermissionPolicy, unittest.equals('foo')); + checkUserFacingMessage(o.deviceOwnerLockScreenInfo); + unittest.expect(o.encryptionPolicy, unittest.equals('foo')); unittest.expect(o.ensureVerifyAppsEnabled, unittest.isTrue); unittest.expect(o.factoryResetDisabled, unittest.isTrue); - checkUnnamed2554(o.frpAdminEmails); + checkUnnamed2546(o.frpAdminEmails); unittest.expect(o.funDisabled, unittest.isTrue); unittest.expect(o.installAppsDisabled, unittest.isTrue); unittest.expect(o.installUnknownSourcesAllowed, unittest.isTrue); unittest.expect(o.keyguardDisabled, unittest.isTrue); - checkUnnamed2555(o.keyguardDisabledFeatures); + checkUnnamed2547(o.keyguardDisabledFeatures); unittest.expect(o.kioskCustomLauncherEnabled, unittest.isTrue); + unittest.expect(o.locationMode, unittest.equals('foo')); checkUserFacingMessage(o.longSupportMessage); unittest.expect(o.maximumTimeToLock, unittest.equals('foo')); unittest.expect(o.mobileNetworksConfigDisabled, unittest.isTrue); @@ -1682,28 +1865,32 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.networkEscapeHatchEnabled, unittest.isTrue); unittest.expect(o.networkResetDisabled, unittest.isTrue); - checkUnnamed2556(o.openNetworkConfiguration); + checkUnnamed2548(o.openNetworkConfiguration); unittest.expect(o.outgoingBeamDisabled, unittest.isTrue); unittest.expect(o.outgoingCallsDisabled, unittest.isTrue); checkPasswordRequirements(o.passwordRequirements); checkPackageNameList(o.permittedInputMethods); - checkUnnamed2557(o.persistentPreferredActivities); + checkUnnamed2549(o.persistentPreferredActivities); + unittest.expect(o.privateKeySelectionEnabled, unittest.isTrue); checkProxyInfo(o.recommendedGlobalProxy); unittest.expect(o.removeUserDisabled, unittest.isTrue); unittest.expect(o.safeBootDisabled, unittest.isTrue); unittest.expect(o.screenCaptureDisabled, unittest.isTrue); unittest.expect(o.setUserIconDisabled, unittest.isTrue); unittest.expect(o.setWallpaperDisabled, unittest.isTrue); + unittest.expect(o.shareLocationDisabled, unittest.isTrue); checkUserFacingMessage(o.shortSupportMessage); + unittest.expect(o.skipFirstUseHintsEnabled, unittest.isTrue); unittest.expect(o.smsDisabled, unittest.isTrue); unittest.expect(o.statusBarDisabled, unittest.isTrue); checkStatusReportingSettings(o.statusReportingSettings); - checkUnnamed2558(o.stayOnPluggedModes); + checkUnnamed2550(o.stayOnPluggedModes); checkSystemUpdate(o.systemUpdate); unittest.expect(o.tetheringConfigDisabled, unittest.isTrue); unittest.expect(o.uninstallAppsDisabled, unittest.isTrue); unittest.expect(o.unmuteMicrophoneDisabled, unittest.isTrue); unittest.expect(o.usbFileTransferDisabled, unittest.isTrue); + unittest.expect(o.usbMassStorageEnabled, unittest.isTrue); unittest.expect(o.version, unittest.equals('foo')); unittest.expect(o.vpnConfigDisabled, unittest.isTrue); unittest.expect(o.wifiConfigDisabled, unittest.isTrue); @@ -1735,14 +1922,14 @@ buildCounterPowerManagementEvent--; } -buildUnnamed2559() { +buildUnnamed2551() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2559(core.List<core.String> o) { +checkUnnamed2551(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1753,7 +1940,7 @@ var o = new api.ProxyInfo(); buildCounterProxyInfo++; if (buildCounterProxyInfo < 3) { - o.excludedHosts = buildUnnamed2559(); + o.excludedHosts = buildUnnamed2551(); o.host = "foo"; o.pacUri = "foo"; o.port = 42; @@ -1765,7 +1952,7 @@ checkProxyInfo(api.ProxyInfo o) { buildCounterProxyInfo++; if (buildCounterProxyInfo < 3) { - checkUnnamed2559(o.excludedHosts); + checkUnnamed2551(o.excludedHosts); unittest.expect(o.host, unittest.equals('foo')); unittest.expect(o.pacUri, unittest.equals('foo')); unittest.expect(o.port, unittest.equals(42)); @@ -1829,7 +2016,7 @@ buildCounterSoftwareInfo--; } -buildUnnamed2560() { +buildUnnamed2552() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1844,7 +2031,7 @@ return o; } -checkUnnamed2560(core.Map<core.String, core.Object> o) { +checkUnnamed2552(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)); @@ -1858,17 +2045,17 @@ unittest.expect(casted12["string"], unittest.equals('foo')); } -buildUnnamed2561() { +buildUnnamed2553() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2560()); - o.add(buildUnnamed2560()); + o.add(buildUnnamed2552()); + o.add(buildUnnamed2552()); return o; } -checkUnnamed2561(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2553(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2560(o[0]); - checkUnnamed2560(o[1]); + checkUnnamed2552(o[0]); + checkUnnamed2552(o[1]); } core.int buildCounterStatus = 0; @@ -1877,7 +2064,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2561(); + o.details = buildUnnamed2553(); o.message = "foo"; } buildCounterStatus--; @@ -1888,7 +2075,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2561(o.details); + checkUnnamed2553(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1899,6 +2086,7 @@ var o = new api.StatusReportingSettings(); buildCounterStatusReportingSettings++; if (buildCounterStatusReportingSettings < 3) { + o.applicationReportsEnabled = true; o.deviceSettingsEnabled = true; o.displayInfoEnabled = true; o.hardwareStatusEnabled = true; @@ -1914,6 +2102,7 @@ checkStatusReportingSettings(api.StatusReportingSettings o) { buildCounterStatusReportingSettings++; if (buildCounterStatusReportingSettings < 3) { + unittest.expect(o.applicationReportsEnabled, unittest.isTrue); unittest.expect(o.deviceSettingsEnabled, unittest.isTrue); unittest.expect(o.displayInfoEnabled, unittest.isTrue); unittest.expect(o.hardwareStatusEnabled, unittest.isTrue); @@ -1948,14 +2137,35 @@ buildCounterSystemUpdate--; } -buildUnnamed2562() { +core.int buildCounterTermsAndConditions = 0; +buildTermsAndConditions() { + var o = new api.TermsAndConditions(); + buildCounterTermsAndConditions++; + if (buildCounterTermsAndConditions < 3) { + o.content = buildUserFacingMessage(); + o.header = buildUserFacingMessage(); + } + buildCounterTermsAndConditions--; + return o; +} + +checkTermsAndConditions(api.TermsAndConditions o) { + buildCounterTermsAndConditions++; + if (buildCounterTermsAndConditions < 3) { + checkUserFacingMessage(o.content); + checkUserFacingMessage(o.header); + } + buildCounterTermsAndConditions--; +} + +buildUnnamed2554() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2562(core.Map<core.String, core.String> o) { +checkUnnamed2554(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')); @@ -1967,7 +2177,7 @@ buildCounterUserFacingMessage++; if (buildCounterUserFacingMessage < 3) { o.defaultMessage = "foo"; - o.localizedMessages = buildUnnamed2562(); + o.localizedMessages = buildUnnamed2554(); } buildCounterUserFacingMessage--; return o; @@ -1977,19 +2187,19 @@ buildCounterUserFacingMessage++; if (buildCounterUserFacingMessage < 3) { unittest.expect(o.defaultMessage, unittest.equals('foo')); - checkUnnamed2562(o.localizedMessages); + checkUnnamed2554(o.localizedMessages); } buildCounterUserFacingMessage--; } -buildUnnamed2563() { +buildUnnamed2555() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2563(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')); @@ -2002,7 +2212,7 @@ if (buildCounterWebToken < 3) { o.name = "foo"; o.parentFrameUrl = "foo"; - o.permissions = buildUnnamed2563(); + o.permissions = buildUnnamed2555(); o.value = "foo"; } buildCounterWebToken--; @@ -2014,7 +2224,7 @@ if (buildCounterWebToken < 3) { unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentFrameUrl, unittest.equals('foo')); - checkUnnamed2563(o.permissions); + checkUnnamed2555(o.permissions); unittest.expect(o.value, unittest.equals('foo')); } buildCounterWebToken--; @@ -2045,6 +2255,14 @@ }); }); + unittest.group("obj-schema-ApplicationEvent", () { + unittest.test("to-json--from-json", () { + var o = buildApplicationEvent(); + var od = new api.ApplicationEvent.fromJson(o.toJson()); + checkApplicationEvent(od); + }); + }); + unittest.group("obj-schema-ApplicationPermission", () { unittest.test("to-json--from-json", () { var o = buildApplicationPermission(); @@ -2061,6 +2279,22 @@ }); }); + unittest.group("obj-schema-ApplicationReport", () { + unittest.test("to-json--from-json", () { + var o = buildApplicationReport(); + var od = new api.ApplicationReport.fromJson(o.toJson()); + checkApplicationReport(od); + }); + }); + + unittest.group("obj-schema-ChoosePrivateKeyRule", () { + unittest.test("to-json--from-json", () { + var o = buildChoosePrivateKeyRule(); + var od = new api.ChoosePrivateKeyRule.fromJson(o.toJson()); + checkChoosePrivateKeyRule(od); + }); + }); + unittest.group("obj-schema-Command", () { unittest.test("to-json--from-json", () { var o = buildCommand(); @@ -2333,6 +2567,14 @@ }); }); + unittest.group("obj-schema-TermsAndConditions", () { + unittest.test("to-json--from-json", () { + var o = buildTermsAndConditions(); + var od = new api.TermsAndConditions.fromJson(o.toJson()); + checkTermsAndConditions(od); + }); + }); + unittest.group("obj-schema-UserFacingMessage", () { unittest.test("to-json--from-json", () { var o = buildUserFacingMessage(); @@ -2355,9 +2597,9 @@ api.EnterprisesResourceApi res = new api.AndroidmanagementApi(mock).enterprises; var arg_request = buildEnterprise(); - var arg_signupUrlName = "foo"; - var arg_enterpriseToken = "foo"; var arg_projectId = "foo"; + var arg_enterpriseToken = "foo"; + var arg_signupUrlName = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Enterprise.fromJson(json); @@ -2392,12 +2634,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["signupUrlName"].first, - unittest.equals(arg_signupUrlName)); - unittest.expect(queryMap["enterpriseToken"].first, - unittest.equals(arg_enterpriseToken)); unittest.expect( queryMap["projectId"].first, unittest.equals(arg_projectId)); + unittest.expect(queryMap["enterpriseToken"].first, + unittest.equals(arg_enterpriseToken)); + unittest.expect(queryMap["signupUrlName"].first, + unittest.equals(arg_signupUrlName)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2408,9 +2650,9 @@ }), true); res .create(arg_request, - signupUrlName: arg_signupUrlName, - enterpriseToken: arg_enterpriseToken, projectId: arg_projectId, + enterpriseToken: arg_enterpriseToken, + signupUrlName: arg_signupUrlName, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkEnterprise(response); @@ -2753,8 +2995,8 @@ api.EnterprisesDevicesResourceApi res = new api.AndroidmanagementApi(mock).enterprises.devices; var arg_parent = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2787,10 +3029,10 @@ 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(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2801,8 +3043,8 @@ }), true); res .list(arg_parent, - pageSize: arg_pageSize, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDevicesResponse(response); @@ -3032,9 +3274,9 @@ api.EnterprisesDevicesOperationsResourceApi res = new api.AndroidmanagementApi(mock).enterprises.devices.operations; var arg_name = "foo"; + var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_filter = "foo"; - var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3067,11 +3309,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3082,9 +3324,9 @@ }), true); res .list(arg_name, + pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter, - pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response); @@ -3312,8 +3554,8 @@ api.EnterprisesPoliciesResourceApi res = new api.AndroidmanagementApi(mock).enterprises.policies; var arg_parent = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3346,10 +3588,10 @@ 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(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3360,8 +3602,8 @@ }), true); res .list(arg_parent, - pageSize: arg_pageSize, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListPoliciesResponse(response);
diff --git a/generated/googleapis/test/androidpublisher/v2_test.dart b/generated/googleapis/test/androidpublisher/v2_test.dart index 9ed147b..a4ef7a6 100644 --- a/generated/googleapis/test/androidpublisher/v2_test.dart +++ b/generated/googleapis/test/androidpublisher/v2_test.dart
@@ -113,14 +113,14 @@ buildCounterApkListing--; } -buildUnnamed1414() { +buildUnnamed2020() { var o = new core.List<api.ApkListing>(); o.add(buildApkListing()); o.add(buildApkListing()); return o; } -checkUnnamed1414(core.List<api.ApkListing> o) { +checkUnnamed2020(core.List<api.ApkListing> o) { unittest.expect(o, unittest.hasLength(2)); checkApkListing(o[0]); checkApkListing(o[1]); @@ -132,7 +132,7 @@ buildCounterApkListingsListResponse++; if (buildCounterApkListingsListResponse < 3) { o.kind = "foo"; - o.listings = buildUnnamed1414(); + o.listings = buildUnnamed2020(); } buildCounterApkListingsListResponse--; return o; @@ -142,7 +142,7 @@ buildCounterApkListingsListResponse++; if (buildCounterApkListingsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1414(o.listings); + checkUnnamed2020(o.listings); } buildCounterApkListingsListResponse--; } @@ -185,14 +185,14 @@ buildCounterApksAddExternallyHostedResponse--; } -buildUnnamed1415() { +buildUnnamed2021() { var o = new core.List<api.Apk>(); o.add(buildApk()); o.add(buildApk()); return o; } -checkUnnamed1415(core.List<api.Apk> o) { +checkUnnamed2021(core.List<api.Apk> o) { unittest.expect(o, unittest.hasLength(2)); checkApk(o[0]); checkApk(o[1]); @@ -203,7 +203,7 @@ var o = new api.ApksListResponse(); buildCounterApksListResponse++; if (buildCounterApksListResponse < 3) { - o.apks = buildUnnamed1415(); + o.apks = buildUnnamed2021(); o.kind = "foo"; } buildCounterApksListResponse--; @@ -213,7 +213,7 @@ checkApksListResponse(api.ApksListResponse o) { buildCounterApksListResponse++; if (buildCounterApksListResponse < 3) { - checkUnnamed1415(o.apks); + checkUnnamed2021(o.apks); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterApksListResponse--; @@ -265,6 +265,63 @@ buildCounterAppEdit--; } +core.int buildCounterBundle = 0; +buildBundle() { + var o = new api.Bundle(); + buildCounterBundle++; + if (buildCounterBundle < 3) { + o.sha1 = "foo"; + o.sha256 = "foo"; + o.versionCode = 42; + } + buildCounterBundle--; + return o; +} + +checkBundle(api.Bundle o) { + buildCounterBundle++; + if (buildCounterBundle < 3) { + unittest.expect(o.sha1, unittest.equals('foo')); + unittest.expect(o.sha256, unittest.equals('foo')); + unittest.expect(o.versionCode, unittest.equals(42)); + } + buildCounterBundle--; +} + +buildUnnamed2022() { + var o = new core.List<api.Bundle>(); + o.add(buildBundle()); + o.add(buildBundle()); + return o; +} + +checkUnnamed2022(core.List<api.Bundle> o) { + unittest.expect(o, unittest.hasLength(2)); + checkBundle(o[0]); + checkBundle(o[1]); +} + +core.int buildCounterBundlesListResponse = 0; +buildBundlesListResponse() { + var o = new api.BundlesListResponse(); + buildCounterBundlesListResponse++; + if (buildCounterBundlesListResponse < 3) { + o.bundles = buildUnnamed2022(); + o.kind = "foo"; + } + buildCounterBundlesListResponse--; + return o; +} + +checkBundlesListResponse(api.BundlesListResponse o) { + buildCounterBundlesListResponse++; + if (buildCounterBundlesListResponse < 3) { + checkUnnamed2022(o.bundles); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterBundlesListResponse--; +} + core.int buildCounterComment = 0; buildComment() { var o = new api.Comment(); @@ -384,67 +441,6 @@ buildCounterDeviceMetadata--; } -core.int buildCounterEntitlement = 0; -buildEntitlement() { - var o = new api.Entitlement(); - buildCounterEntitlement++; - if (buildCounterEntitlement < 3) { - o.kind = "foo"; - o.productId = "foo"; - o.productType = "foo"; - o.token = "foo"; - } - buildCounterEntitlement--; - return o; -} - -checkEntitlement(api.Entitlement o) { - buildCounterEntitlement++; - if (buildCounterEntitlement < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.productId, unittest.equals('foo')); - unittest.expect(o.productType, unittest.equals('foo')); - unittest.expect(o.token, unittest.equals('foo')); - } - buildCounterEntitlement--; -} - -buildUnnamed1416() { - var o = new core.List<api.Entitlement>(); - o.add(buildEntitlement()); - o.add(buildEntitlement()); - return o; -} - -checkUnnamed1416(core.List<api.Entitlement> o) { - unittest.expect(o, unittest.hasLength(2)); - checkEntitlement(o[0]); - checkEntitlement(o[1]); -} - -core.int buildCounterEntitlementsListResponse = 0; -buildEntitlementsListResponse() { - var o = new api.EntitlementsListResponse(); - buildCounterEntitlementsListResponse++; - if (buildCounterEntitlementsListResponse < 3) { - o.pageInfo = buildPageInfo(); - o.resources = buildUnnamed1416(); - o.tokenPagination = buildTokenPagination(); - } - buildCounterEntitlementsListResponse--; - return o; -} - -checkEntitlementsListResponse(api.EntitlementsListResponse o) { - buildCounterEntitlementsListResponse++; - if (buildCounterEntitlementsListResponse < 3) { - checkPageInfo(o.pageInfo); - checkUnnamed1416(o.resources); - checkTokenPagination(o.tokenPagination); - } - buildCounterEntitlementsListResponse--; -} - core.int buildCounterExpansionFile = 0; buildExpansionFile() { var o = new api.ExpansionFile(); @@ -485,53 +481,53 @@ buildCounterExpansionFilesUploadResponse--; } -buildUnnamed1417() { +buildUnnamed2023() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1417(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')); } -buildUnnamed1418() { +buildUnnamed2024() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1418(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')); } -buildUnnamed1419() { +buildUnnamed2025() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1419(core.List<core.String> o) { +checkUnnamed2025(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1420() { +buildUnnamed2026() { var o = new core.List<api.ExternallyHostedApkUsesPermission>(); o.add(buildExternallyHostedApkUsesPermission()); o.add(buildExternallyHostedApkUsesPermission()); return o; } -checkUnnamed1420(core.List<api.ExternallyHostedApkUsesPermission> o) { +checkUnnamed2026(core.List<api.ExternallyHostedApkUsesPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkExternallyHostedApkUsesPermission(o[0]); checkExternallyHostedApkUsesPermission(o[1]); @@ -543,7 +539,7 @@ buildCounterExternallyHostedApk++; if (buildCounterExternallyHostedApk < 3) { o.applicationLabel = "foo"; - o.certificateBase64s = buildUnnamed1417(); + o.certificateBase64s = buildUnnamed2023(); o.externallyHostedUrl = "foo"; o.fileSha1Base64 = "foo"; o.fileSha256Base64 = "foo"; @@ -551,10 +547,10 @@ o.iconBase64 = "foo"; o.maximumSdk = 42; o.minimumSdk = 42; - o.nativeCodes = buildUnnamed1418(); + o.nativeCodes = buildUnnamed2024(); o.packageName = "foo"; - o.usesFeatures = buildUnnamed1419(); - o.usesPermissions = buildUnnamed1420(); + o.usesFeatures = buildUnnamed2025(); + o.usesPermissions = buildUnnamed2026(); o.versionCode = 42; o.versionName = "foo"; } @@ -566,7 +562,7 @@ buildCounterExternallyHostedApk++; if (buildCounterExternallyHostedApk < 3) { unittest.expect(o.applicationLabel, unittest.equals('foo')); - checkUnnamed1417(o.certificateBase64s); + checkUnnamed2023(o.certificateBase64s); unittest.expect(o.externallyHostedUrl, unittest.equals('foo')); unittest.expect(o.fileSha1Base64, unittest.equals('foo')); unittest.expect(o.fileSha256Base64, unittest.equals('foo')); @@ -574,10 +570,10 @@ unittest.expect(o.iconBase64, unittest.equals('foo')); unittest.expect(o.maximumSdk, unittest.equals(42)); unittest.expect(o.minimumSdk, unittest.equals(42)); - checkUnnamed1418(o.nativeCodes); + checkUnnamed2024(o.nativeCodes); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed1419(o.usesFeatures); - checkUnnamed1420(o.usesPermissions); + checkUnnamed2025(o.usesFeatures); + checkUnnamed2026(o.usesPermissions); unittest.expect(o.versionCode, unittest.equals(42)); unittest.expect(o.versionName, unittest.equals('foo')); } @@ -629,14 +625,14 @@ buildCounterImage--; } -buildUnnamed1421() { +buildUnnamed2027() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed1421(core.List<api.Image> o) { +checkUnnamed2027(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -647,7 +643,7 @@ var o = new api.ImagesDeleteAllResponse(); buildCounterImagesDeleteAllResponse++; if (buildCounterImagesDeleteAllResponse < 3) { - o.deleted = buildUnnamed1421(); + o.deleted = buildUnnamed2027(); } buildCounterImagesDeleteAllResponse--; return o; @@ -656,19 +652,19 @@ checkImagesDeleteAllResponse(api.ImagesDeleteAllResponse o) { buildCounterImagesDeleteAllResponse++; if (buildCounterImagesDeleteAllResponse < 3) { - checkUnnamed1421(o.deleted); + checkUnnamed2027(o.deleted); } buildCounterImagesDeleteAllResponse--; } -buildUnnamed1422() { +buildUnnamed2028() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed1422(core.List<api.Image> o) { +checkUnnamed2028(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -679,7 +675,7 @@ var o = new api.ImagesListResponse(); buildCounterImagesListResponse++; if (buildCounterImagesListResponse < 3) { - o.images = buildUnnamed1422(); + o.images = buildUnnamed2028(); } buildCounterImagesListResponse--; return o; @@ -688,7 +684,7 @@ checkImagesListResponse(api.ImagesListResponse o) { buildCounterImagesListResponse++; if (buildCounterImagesListResponse < 3) { - checkUnnamed1422(o.images); + checkUnnamed2028(o.images); } buildCounterImagesListResponse--; } @@ -712,27 +708,27 @@ buildCounterImagesUploadResponse--; } -buildUnnamed1423() { +buildUnnamed2029() { var o = new core.Map<core.String, api.InAppProductListing>(); o["x"] = buildInAppProductListing(); o["y"] = buildInAppProductListing(); return o; } -checkUnnamed1423(core.Map<core.String, api.InAppProductListing> o) { +checkUnnamed2029(core.Map<core.String, api.InAppProductListing> o) { unittest.expect(o, unittest.hasLength(2)); checkInAppProductListing(o["x"]); checkInAppProductListing(o["y"]); } -buildUnnamed1424() { +buildUnnamed2030() { var o = new core.Map<core.String, api.Price>(); o["x"] = buildPrice(); o["y"] = buildPrice(); return o; } -checkUnnamed1424(core.Map<core.String, api.Price> o) { +checkUnnamed2030(core.Map<core.String, api.Price> o) { unittest.expect(o, unittest.hasLength(2)); checkPrice(o["x"]); checkPrice(o["y"]); @@ -745,9 +741,9 @@ if (buildCounterInAppProduct < 3) { o.defaultLanguage = "foo"; o.defaultPrice = buildPrice(); - o.listings = buildUnnamed1423(); + o.listings = buildUnnamed2029(); o.packageName = "foo"; - o.prices = buildUnnamed1424(); + o.prices = buildUnnamed2030(); o.purchaseType = "foo"; o.season = buildSeason(); o.sku = "foo"; @@ -764,9 +760,9 @@ if (buildCounterInAppProduct < 3) { unittest.expect(o.defaultLanguage, unittest.equals('foo')); checkPrice(o.defaultPrice); - checkUnnamed1423(o.listings); + checkUnnamed2029(o.listings); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed1424(o.prices); + checkUnnamed2030(o.prices); unittest.expect(o.purchaseType, unittest.equals('foo')); checkSeason(o.season); unittest.expect(o.sku, unittest.equals('foo')); @@ -798,14 +794,14 @@ buildCounterInAppProductListing--; } -buildUnnamed1425() { +buildUnnamed2031() { var o = new core.List<api.InAppProduct>(); o.add(buildInAppProduct()); o.add(buildInAppProduct()); return o; } -checkUnnamed1425(core.List<api.InAppProduct> o) { +checkUnnamed2031(core.List<api.InAppProduct> o) { unittest.expect(o, unittest.hasLength(2)); checkInAppProduct(o[0]); checkInAppProduct(o[1]); @@ -816,7 +812,7 @@ var o = new api.InappproductsListResponse(); buildCounterInappproductsListResponse++; if (buildCounterInappproductsListResponse < 3) { - o.inappproduct = buildUnnamed1425(); + o.inappproduct = buildUnnamed2031(); o.kind = "foo"; o.pageInfo = buildPageInfo(); o.tokenPagination = buildTokenPagination(); @@ -828,7 +824,7 @@ checkInappproductsListResponse(api.InappproductsListResponse o) { buildCounterInappproductsListResponse++; if (buildCounterInappproductsListResponse < 3) { - checkUnnamed1425(o.inappproduct); + checkUnnamed2031(o.inappproduct); unittest.expect(o.kind, unittest.equals('foo')); checkPageInfo(o.pageInfo); checkTokenPagination(o.tokenPagination); @@ -863,14 +859,14 @@ buildCounterListing--; } -buildUnnamed1426() { +buildUnnamed2032() { var o = new core.List<api.Listing>(); o.add(buildListing()); o.add(buildListing()); return o; } -checkUnnamed1426(core.List<api.Listing> o) { +checkUnnamed2032(core.List<api.Listing> o) { unittest.expect(o, unittest.hasLength(2)); checkListing(o[0]); checkListing(o[1]); @@ -882,7 +878,7 @@ buildCounterListingsListResponse++; if (buildCounterListingsListResponse < 3) { o.kind = "foo"; - o.listings = buildUnnamed1426(); + o.listings = buildUnnamed2032(); } buildCounterListingsListResponse--; return o; @@ -892,7 +888,7 @@ buildCounterListingsListResponse++; if (buildCounterListingsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1426(o.listings); + checkUnnamed2032(o.listings); } buildCounterListingsListResponse--; } @@ -1014,14 +1010,14 @@ buildCounterProrate--; } -buildUnnamed1427() { +buildUnnamed2033() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed1427(core.List<api.Comment> o) { +checkUnnamed2033(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1033,7 +1029,7 @@ buildCounterReview++; if (buildCounterReview < 3) { o.authorName = "foo"; - o.comments = buildUnnamed1427(); + o.comments = buildUnnamed2033(); o.reviewId = "foo"; } buildCounterReview--; @@ -1044,7 +1040,7 @@ buildCounterReview++; if (buildCounterReview < 3) { unittest.expect(o.authorName, unittest.equals('foo')); - checkUnnamed1427(o.comments); + checkUnnamed2033(o.comments); unittest.expect(o.reviewId, unittest.equals('foo')); } buildCounterReview--; @@ -1071,14 +1067,14 @@ buildCounterReviewReplyResult--; } -buildUnnamed1428() { +buildUnnamed2034() { var o = new core.List<api.Review>(); o.add(buildReview()); o.add(buildReview()); return o; } -checkUnnamed1428(core.List<api.Review> o) { +checkUnnamed2034(core.List<api.Review> o) { unittest.expect(o, unittest.hasLength(2)); checkReview(o[0]); checkReview(o[1]); @@ -1090,7 +1086,7 @@ buildCounterReviewsListResponse++; if (buildCounterReviewsListResponse < 3) { o.pageInfo = buildPageInfo(); - o.reviews = buildUnnamed1428(); + o.reviews = buildUnnamed2034(); o.tokenPagination = buildTokenPagination(); } buildCounterReviewsListResponse--; @@ -1101,7 +1097,7 @@ buildCounterReviewsListResponse++; if (buildCounterReviewsListResponse < 3) { checkPageInfo(o.pageInfo); - checkUnnamed1428(o.reviews); + checkUnnamed2034(o.reviews); checkTokenPagination(o.tokenPagination); } buildCounterReviewsListResponse--; @@ -1145,14 +1141,14 @@ buildCounterReviewsReplyResponse--; } -buildUnnamed1429() { +buildUnnamed2035() { var o = new core.List<api.Prorate>(); o.add(buildProrate()); o.add(buildProrate()); return o; } -checkUnnamed1429(core.List<api.Prorate> o) { +checkUnnamed2035(core.List<api.Prorate> o) { unittest.expect(o, unittest.hasLength(2)); checkProrate(o[0]); checkProrate(o[1]); @@ -1164,7 +1160,7 @@ buildCounterSeason++; if (buildCounterSeason < 3) { o.end = buildMonthDay(); - o.prorations = buildUnnamed1429(); + o.prorations = buildUnnamed2035(); o.start = buildMonthDay(); } buildCounterSeason--; @@ -1175,12 +1171,33 @@ buildCounterSeason++; if (buildCounterSeason < 3) { checkMonthDay(o.end); - checkUnnamed1429(o.prorations); + checkUnnamed2035(o.prorations); checkMonthDay(o.start); } buildCounterSeason--; } +core.int buildCounterSubscriptionCancelSurveyResult = 0; +buildSubscriptionCancelSurveyResult() { + var o = new api.SubscriptionCancelSurveyResult(); + buildCounterSubscriptionCancelSurveyResult++; + if (buildCounterSubscriptionCancelSurveyResult < 3) { + o.cancelSurveyReason = 42; + o.userInputCancelReason = "foo"; + } + buildCounterSubscriptionCancelSurveyResult--; + return o; +} + +checkSubscriptionCancelSurveyResult(api.SubscriptionCancelSurveyResult o) { + buildCounterSubscriptionCancelSurveyResult++; + if (buildCounterSubscriptionCancelSurveyResult < 3) { + unittest.expect(o.cancelSurveyReason, unittest.equals(42)); + unittest.expect(o.userInputCancelReason, unittest.equals('foo')); + } + buildCounterSubscriptionCancelSurveyResult--; +} + core.int buildCounterSubscriptionDeferralInfo = 0; buildSubscriptionDeferralInfo() { var o = new api.SubscriptionDeferralInfo(); @@ -1209,15 +1226,21 @@ if (buildCounterSubscriptionPurchase < 3) { o.autoRenewing = true; o.cancelReason = 42; + o.cancelSurveyResult = buildSubscriptionCancelSurveyResult(); o.countryCode = "foo"; o.developerPayload = "foo"; + o.emailAddress = "foo"; o.expiryTimeMillis = "foo"; + o.familyName = "foo"; + o.givenName = "foo"; o.kind = "foo"; o.linkedPurchaseToken = "foo"; o.orderId = "foo"; o.paymentState = 42; o.priceAmountMicros = "foo"; o.priceCurrencyCode = "foo"; + o.profileId = "foo"; + o.profileName = "foo"; o.purchaseType = 42; o.startTimeMillis = "foo"; o.userCancellationTimeMillis = "foo"; @@ -1231,15 +1254,21 @@ if (buildCounterSubscriptionPurchase < 3) { unittest.expect(o.autoRenewing, unittest.isTrue); unittest.expect(o.cancelReason, unittest.equals(42)); + checkSubscriptionCancelSurveyResult(o.cancelSurveyResult); unittest.expect(o.countryCode, unittest.equals('foo')); unittest.expect(o.developerPayload, unittest.equals('foo')); + unittest.expect(o.emailAddress, unittest.equals('foo')); unittest.expect(o.expiryTimeMillis, unittest.equals('foo')); + unittest.expect(o.familyName, unittest.equals('foo')); + unittest.expect(o.givenName, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.linkedPurchaseToken, unittest.equals('foo')); unittest.expect(o.orderId, unittest.equals('foo')); unittest.expect(o.paymentState, unittest.equals(42)); unittest.expect(o.priceAmountMicros, unittest.equals('foo')); unittest.expect(o.priceCurrencyCode, unittest.equals('foo')); + unittest.expect(o.profileId, unittest.equals('foo')); + unittest.expect(o.profileName, unittest.equals('foo')); unittest.expect(o.purchaseType, unittest.equals(42)); unittest.expect(o.startTimeMillis, unittest.equals('foo')); unittest.expect(o.userCancellationTimeMillis, unittest.equals('foo')); @@ -1287,27 +1316,27 @@ buildCounterSubscriptionPurchasesDeferResponse--; } -buildUnnamed1430() { +buildUnnamed2036() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1430(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')); } -buildUnnamed1431() { +buildUnnamed2037() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1431(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')); @@ -1318,8 +1347,8 @@ var o = new api.Testers(); buildCounterTesters++; if (buildCounterTesters < 3) { - o.googleGroups = buildUnnamed1430(); - o.googlePlusCommunities = buildUnnamed1431(); + o.googleGroups = buildUnnamed2036(); + o.googlePlusCommunities = buildUnnamed2037(); } buildCounterTesters--; return o; @@ -1328,8 +1357,8 @@ checkTesters(api.Testers o) { buildCounterTesters++; if (buildCounterTesters < 3) { - checkUnnamed1430(o.googleGroups); - checkUnnamed1431(o.googlePlusCommunities); + checkUnnamed2036(o.googleGroups); + checkUnnamed2037(o.googlePlusCommunities); } buildCounterTesters--; } @@ -1376,14 +1405,14 @@ buildCounterTokenPagination--; } -buildUnnamed1432() { +buildUnnamed2038() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1432(core.List<core.int> o) { +checkUnnamed2038(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)); @@ -1396,7 +1425,7 @@ if (buildCounterTrack < 3) { o.track = "foo"; o.userFraction = 42.0; - o.versionCodes = buildUnnamed1432(); + o.versionCodes = buildUnnamed2038(); } buildCounterTrack--; return o; @@ -1407,19 +1436,19 @@ if (buildCounterTrack < 3) { unittest.expect(o.track, unittest.equals('foo')); unittest.expect(o.userFraction, unittest.equals(42.0)); - checkUnnamed1432(o.versionCodes); + checkUnnamed2038(o.versionCodes); } buildCounterTrack--; } -buildUnnamed1433() { +buildUnnamed2039() { var o = new core.List<api.Track>(); o.add(buildTrack()); o.add(buildTrack()); return o; } -checkUnnamed1433(core.List<api.Track> o) { +checkUnnamed2039(core.List<api.Track> o) { unittest.expect(o, unittest.hasLength(2)); checkTrack(o[0]); checkTrack(o[1]); @@ -1431,7 +1460,7 @@ buildCounterTracksListResponse++; if (buildCounterTracksListResponse < 3) { o.kind = "foo"; - o.tracks = buildUnnamed1433(); + o.tracks = buildUnnamed2039(); } buildCounterTracksListResponse--; return o; @@ -1441,7 +1470,7 @@ buildCounterTracksListResponse++; if (buildCounterTracksListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1433(o.tracks); + checkUnnamed2039(o.tracks); } buildCounterTracksListResponse--; } @@ -1512,14 +1541,14 @@ buildCounterVoidedPurchase--; } -buildUnnamed1434() { +buildUnnamed2040() { var o = new core.List<api.VoidedPurchase>(); o.add(buildVoidedPurchase()); o.add(buildVoidedPurchase()); return o; } -checkUnnamed1434(core.List<api.VoidedPurchase> o) { +checkUnnamed2040(core.List<api.VoidedPurchase> o) { unittest.expect(o, unittest.hasLength(2)); checkVoidedPurchase(o[0]); checkVoidedPurchase(o[1]); @@ -1532,7 +1561,7 @@ if (buildCounterVoidedPurchasesListResponse < 3) { o.pageInfo = buildPageInfo(); o.tokenPagination = buildTokenPagination(); - o.voidedPurchases = buildUnnamed1434(); + o.voidedPurchases = buildUnnamed2040(); } buildCounterVoidedPurchasesListResponse--; return o; @@ -1543,7 +1572,7 @@ if (buildCounterVoidedPurchasesListResponse < 3) { checkPageInfo(o.pageInfo); checkTokenPagination(o.tokenPagination); - checkUnnamed1434(o.voidedPurchases); + checkUnnamed2040(o.voidedPurchases); } buildCounterVoidedPurchasesListResponse--; } @@ -1621,6 +1650,22 @@ }); }); + unittest.group("obj-schema-Bundle", () { + unittest.test("to-json--from-json", () { + var o = buildBundle(); + var od = new api.Bundle.fromJson(o.toJson()); + checkBundle(od); + }); + }); + + unittest.group("obj-schema-BundlesListResponse", () { + unittest.test("to-json--from-json", () { + var o = buildBundlesListResponse(); + var od = new api.BundlesListResponse.fromJson(o.toJson()); + checkBundlesListResponse(od); + }); + }); + unittest.group("obj-schema-Comment", () { unittest.test("to-json--from-json", () { var o = buildComment(); @@ -1661,22 +1706,6 @@ }); }); - unittest.group("obj-schema-Entitlement", () { - unittest.test("to-json--from-json", () { - var o = buildEntitlement(); - var od = new api.Entitlement.fromJson(o.toJson()); - checkEntitlement(od); - }); - }); - - unittest.group("obj-schema-EntitlementsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildEntitlementsListResponse(); - var od = new api.EntitlementsListResponse.fromJson(o.toJson()); - checkEntitlementsListResponse(od); - }); - }); - unittest.group("obj-schema-ExpansionFile", () { unittest.test("to-json--from-json", () { var o = buildExpansionFile(); @@ -1869,6 +1898,14 @@ }); }); + unittest.group("obj-schema-SubscriptionCancelSurveyResult", () { + unittest.test("to-json--from-json", () { + var o = buildSubscriptionCancelSurveyResult(); + var od = new api.SubscriptionCancelSurveyResult.fromJson(o.toJson()); + checkSubscriptionCancelSurveyResult(od); + }); + }); + unittest.group("obj-schema-SubscriptionDeferralInfo", () { unittest.test("to-json--from-json", () { var o = buildSubscriptionDeferralInfo(); @@ -2683,6 +2720,109 @@ }); }); + unittest.group("resource-EditsBundlesResourceApi", () { + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.EditsBundlesResourceApi res = + new api.AndroidpublisherApi(mock).edits.bundles; + var arg_packageName = "foo"; + var arg_editId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildBundlesListResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_packageName, arg_editId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkBundlesListResponse(response); + }))); + }); + + unittest.test("method--upload", () { + // TODO: Implement tests for media upload; + // TODO: Implement tests for media download; + + var mock = new HttpServerMock(); + api.EditsBundlesResourceApi res = + new api.AndroidpublisherApi(mock).edits.bundles; + var arg_packageName = "foo"; + var arg_editId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildBundle()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .upload(arg_packageName, arg_editId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkBundle(response); + }))); + }); + }); + unittest.group("resource-EditsDeobfuscationfilesResourceApi", () { unittest.test("method--upload", () { // TODO: Implement tests for media upload; @@ -4017,72 +4157,6 @@ }); }); - unittest.group("resource-EntitlementsResourceApi", () { - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.EntitlementsResourceApi res = - new api.AndroidpublisherApi(mock).entitlements; - var arg_packageName = "foo"; - var arg_maxResults = 42; - var arg_productId = "foo"; - var arg_startIndex = 42; - var arg_token = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["productId"].first, unittest.equals(arg_productId)); - unittest.expect(core.int.parse(queryMap["startIndex"].first), - unittest.equals(arg_startIndex)); - unittest.expect(queryMap["token"].first, unittest.equals(arg_token)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildEntitlementsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .list(arg_packageName, - maxResults: arg_maxResults, - productId: arg_productId, - startIndex: arg_startIndex, - token: arg_token, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkEntitlementsListResponse(response); - }))); - }); - }); - unittest.group("resource-InappproductsResourceApi", () { unittest.test("method--delete", () { var mock = new HttpServerMock(); @@ -4414,6 +4488,58 @@ }); }); + unittest.group("resource-OrdersResourceApi", () { + unittest.test("method--refund", () { + var mock = new HttpServerMock(); + api.OrdersResourceApi res = new api.AndroidpublisherApi(mock).orders; + var arg_packageName = "foo"; + var arg_orderId = "foo"; + var arg_revoke = true; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["revoke"].first, unittest.equals("$arg_revoke")); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = ""; + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .refund(arg_packageName, arg_orderId, + revoke: arg_revoke, $fields: arg_$fields) + .then(unittest.expectAsync1((_) {})); + }); + }); + unittest.group("resource-PurchasesProductsResourceApi", () { unittest.test("method--get", () { var mock = new HttpServerMock();
diff --git a/generated/googleapis/test/appengine/v1_test.dart b/generated/googleapis/test/appengine/v1_test.dart index 9cb6cd9..ce2f01f 100644 --- a/generated/googleapis/test/appengine/v1_test.dart +++ b/generated/googleapis/test/appengine/v1_test.dart
@@ -96,14 +96,14 @@ buildCounterApiEndpointHandler--; } -buildUnnamed1256() { +buildUnnamed3658() { var o = new core.List<api.UrlDispatchRule>(); o.add(buildUrlDispatchRule()); o.add(buildUrlDispatchRule()); return o; } -checkUnnamed1256(core.List<api.UrlDispatchRule> o) { +checkUnnamed3658(core.List<api.UrlDispatchRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlDispatchRule(o[0]); checkUrlDispatchRule(o[1]); @@ -119,7 +119,7 @@ o.defaultBucket = "foo"; o.defaultCookieExpiration = "foo"; o.defaultHostname = "foo"; - o.dispatchRules = buildUnnamed1256(); + o.dispatchRules = buildUnnamed3658(); o.featureSettings = buildFeatureSettings(); o.gcrDomain = "foo"; o.iap = buildIdentityAwareProxy(); @@ -140,7 +140,7 @@ unittest.expect(o.defaultBucket, unittest.equals('foo')); unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); unittest.expect(o.defaultHostname, unittest.equals('foo')); - checkUnnamed1256(o.dispatchRules); + checkUnnamed3658(o.dispatchRules); checkFeatureSettings(o.featureSettings); unittest.expect(o.gcrDomain, unittest.equals('foo')); checkIdentityAwareProxy(o.iap); @@ -152,27 +152,27 @@ buildCounterApplication--; } -buildUnnamed1257() { +buildUnnamed3659() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1257(core.List<core.String> o) { +checkUnnamed3659(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1258() { +buildUnnamed3660() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1258(core.List<core.String> o) { +checkUnnamed3660(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -186,11 +186,12 @@ o.certificateRawData = buildCertificateRawData(); o.displayName = "foo"; o.domainMappingsCount = 42; - o.domainNames = buildUnnamed1257(); + o.domainNames = buildUnnamed3659(); o.expireTime = "foo"; o.id = "foo"; + o.managedCertificate = buildManagedCertificate(); o.name = "foo"; - o.visibleDomainMappings = buildUnnamed1258(); + o.visibleDomainMappings = buildUnnamed3660(); } buildCounterAuthorizedCertificate--; return o; @@ -202,11 +203,12 @@ checkCertificateRawData(o.certificateRawData); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.domainMappingsCount, unittest.equals(42)); - checkUnnamed1257(o.domainNames); + checkUnnamed3659(o.domainNames); unittest.expect(o.expireTime, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); + checkManagedCertificate(o.managedCertificate); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1258(o.visibleDomainMappings); + checkUnnamed3660(o.visibleDomainMappings); } buildCounterAuthorizedCertificate--; } @@ -296,14 +298,14 @@ buildCounterBasicScaling--; } -buildUnnamed1259() { +buildUnnamed3661() { var o = new core.List<api.FirewallRule>(); o.add(buildFirewallRule()); o.add(buildFirewallRule()); return o; } -checkUnnamed1259(core.List<api.FirewallRule> o) { +checkUnnamed3661(core.List<api.FirewallRule> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallRule(o[0]); checkFirewallRule(o[1]); @@ -314,7 +316,7 @@ var o = new api.BatchUpdateIngressRulesRequest(); buildCounterBatchUpdateIngressRulesRequest++; if (buildCounterBatchUpdateIngressRulesRequest < 3) { - o.ingressRules = buildUnnamed1259(); + o.ingressRules = buildUnnamed3661(); } buildCounterBatchUpdateIngressRulesRequest--; return o; @@ -323,19 +325,19 @@ checkBatchUpdateIngressRulesRequest(api.BatchUpdateIngressRulesRequest o) { buildCounterBatchUpdateIngressRulesRequest++; if (buildCounterBatchUpdateIngressRulesRequest < 3) { - checkUnnamed1259(o.ingressRules); + checkUnnamed3661(o.ingressRules); } buildCounterBatchUpdateIngressRulesRequest--; } -buildUnnamed1260() { +buildUnnamed3662() { var o = new core.List<api.FirewallRule>(); o.add(buildFirewallRule()); o.add(buildFirewallRule()); return o; } -checkUnnamed1260(core.List<api.FirewallRule> o) { +checkUnnamed3662(core.List<api.FirewallRule> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallRule(o[0]); checkFirewallRule(o[1]); @@ -346,7 +348,7 @@ var o = new api.BatchUpdateIngressRulesResponse(); buildCounterBatchUpdateIngressRulesResponse++; if (buildCounterBatchUpdateIngressRulesResponse < 3) { - o.ingressRules = buildUnnamed1260(); + o.ingressRules = buildUnnamed3662(); } buildCounterBatchUpdateIngressRulesResponse--; return o; @@ -355,7 +357,7 @@ checkBatchUpdateIngressRulesResponse(api.BatchUpdateIngressRulesResponse o) { buildCounterBatchUpdateIngressRulesResponse++; if (buildCounterBatchUpdateIngressRulesResponse < 3) { - checkUnnamed1260(o.ingressRules); + checkUnnamed3662(o.ingressRules); } buildCounterBatchUpdateIngressRulesResponse--; } @@ -381,6 +383,27 @@ buildCounterCertificateRawData--; } +core.int buildCounterCloudBuildOptions = 0; +buildCloudBuildOptions() { + var o = new api.CloudBuildOptions(); + buildCounterCloudBuildOptions++; + if (buildCounterCloudBuildOptions < 3) { + o.appYamlPath = "foo"; + o.cloudBuildTimeout = "foo"; + } + buildCounterCloudBuildOptions--; + return o; +} + +checkCloudBuildOptions(api.CloudBuildOptions o) { + buildCounterCloudBuildOptions++; + if (buildCounterCloudBuildOptions < 3) { + unittest.expect(o.appYamlPath, unittest.equals('foo')); + unittest.expect(o.cloudBuildTimeout, unittest.equals('foo')); + } + buildCounterCloudBuildOptions--; +} + core.int buildCounterContainerInfo = 0; buildContainerInfo() { var o = new api.ContainerInfo(); @@ -421,6 +444,25 @@ buildCounterCpuUtilization--; } +core.int buildCounterCreateVersionMetadataV1 = 0; +buildCreateVersionMetadataV1() { + var o = new api.CreateVersionMetadataV1(); + buildCounterCreateVersionMetadataV1++; + if (buildCounterCreateVersionMetadataV1 < 3) { + o.cloudBuildId = "foo"; + } + buildCounterCreateVersionMetadataV1--; + return o; +} + +checkCreateVersionMetadataV1(api.CreateVersionMetadataV1 o) { + buildCounterCreateVersionMetadataV1++; + if (buildCounterCreateVersionMetadataV1 < 3) { + unittest.expect(o.cloudBuildId, unittest.equals('foo')); + } + buildCounterCreateVersionMetadataV1--; +} + core.int buildCounterCreateVersionMetadataV1Alpha = 0; buildCreateVersionMetadataV1Alpha() { var o = new api.CreateVersionMetadataV1Alpha(); @@ -478,14 +520,14 @@ buildCounterDebugInstanceRequest--; } -buildUnnamed1261() { +buildUnnamed3663() { var o = new core.Map<core.String, api.FileInfo>(); o["x"] = buildFileInfo(); o["y"] = buildFileInfo(); return o; } -checkUnnamed1261(core.Map<core.String, api.FileInfo> o) { +checkUnnamed3663(core.Map<core.String, api.FileInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkFileInfo(o["x"]); checkFileInfo(o["y"]); @@ -496,8 +538,9 @@ var o = new api.Deployment(); buildCounterDeployment++; if (buildCounterDeployment < 3) { + o.cloudBuildOptions = buildCloudBuildOptions(); o.container = buildContainerInfo(); - o.files = buildUnnamed1261(); + o.files = buildUnnamed3663(); o.zip = buildZipInfo(); } buildCounterDeployment--; @@ -507,8 +550,9 @@ checkDeployment(api.Deployment o) { buildCounterDeployment++; if (buildCounterDeployment < 3) { + checkCloudBuildOptions(o.cloudBuildOptions); checkContainerInfo(o.container); - checkUnnamed1261(o.files); + checkUnnamed3663(o.files); checkZipInfo(o.zip); } buildCounterDeployment--; @@ -539,14 +583,14 @@ buildCounterDiskUtilization--; } -buildUnnamed1262() { +buildUnnamed3664() { var o = new core.List<api.ResourceRecord>(); o.add(buildResourceRecord()); o.add(buildResourceRecord()); return o; } -checkUnnamed1262(core.List<api.ResourceRecord> o) { +checkUnnamed3664(core.List<api.ResourceRecord> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecord(o[0]); checkResourceRecord(o[1]); @@ -559,7 +603,7 @@ if (buildCounterDomainMapping < 3) { o.id = "foo"; o.name = "foo"; - o.resourceRecords = buildUnnamed1262(); + o.resourceRecords = buildUnnamed3664(); o.sslSettings = buildSslSettings(); } buildCounterDomainMapping--; @@ -571,7 +615,7 @@ if (buildCounterDomainMapping < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1262(o.resourceRecords); + checkUnnamed3664(o.resourceRecords); checkSslSettings(o.sslSettings); } buildCounterDomainMapping--; @@ -829,14 +873,14 @@ buildCounterLibrary--; } -buildUnnamed1263() { +buildUnnamed3665() { var o = new core.List<api.AuthorizedCertificate>(); o.add(buildAuthorizedCertificate()); o.add(buildAuthorizedCertificate()); return o; } -checkUnnamed1263(core.List<api.AuthorizedCertificate> o) { +checkUnnamed3665(core.List<api.AuthorizedCertificate> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthorizedCertificate(o[0]); checkAuthorizedCertificate(o[1]); @@ -847,7 +891,7 @@ var o = new api.ListAuthorizedCertificatesResponse(); buildCounterListAuthorizedCertificatesResponse++; if (buildCounterListAuthorizedCertificatesResponse < 3) { - o.certificates = buildUnnamed1263(); + o.certificates = buildUnnamed3665(); o.nextPageToken = "foo"; } buildCounterListAuthorizedCertificatesResponse--; @@ -858,20 +902,20 @@ api.ListAuthorizedCertificatesResponse o) { buildCounterListAuthorizedCertificatesResponse++; if (buildCounterListAuthorizedCertificatesResponse < 3) { - checkUnnamed1263(o.certificates); + checkUnnamed3665(o.certificates); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAuthorizedCertificatesResponse--; } -buildUnnamed1264() { +buildUnnamed3666() { var o = new core.List<api.AuthorizedDomain>(); o.add(buildAuthorizedDomain()); o.add(buildAuthorizedDomain()); return o; } -checkUnnamed1264(core.List<api.AuthorizedDomain> o) { +checkUnnamed3666(core.List<api.AuthorizedDomain> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthorizedDomain(o[0]); checkAuthorizedDomain(o[1]); @@ -882,7 +926,7 @@ var o = new api.ListAuthorizedDomainsResponse(); buildCounterListAuthorizedDomainsResponse++; if (buildCounterListAuthorizedDomainsResponse < 3) { - o.domains = buildUnnamed1264(); + o.domains = buildUnnamed3666(); o.nextPageToken = "foo"; } buildCounterListAuthorizedDomainsResponse--; @@ -892,20 +936,20 @@ checkListAuthorizedDomainsResponse(api.ListAuthorizedDomainsResponse o) { buildCounterListAuthorizedDomainsResponse++; if (buildCounterListAuthorizedDomainsResponse < 3) { - checkUnnamed1264(o.domains); + checkUnnamed3666(o.domains); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAuthorizedDomainsResponse--; } -buildUnnamed1265() { +buildUnnamed3667() { var o = new core.List<api.DomainMapping>(); o.add(buildDomainMapping()); o.add(buildDomainMapping()); return o; } -checkUnnamed1265(core.List<api.DomainMapping> o) { +checkUnnamed3667(core.List<api.DomainMapping> o) { unittest.expect(o, unittest.hasLength(2)); checkDomainMapping(o[0]); checkDomainMapping(o[1]); @@ -916,7 +960,7 @@ var o = new api.ListDomainMappingsResponse(); buildCounterListDomainMappingsResponse++; if (buildCounterListDomainMappingsResponse < 3) { - o.domainMappings = buildUnnamed1265(); + o.domainMappings = buildUnnamed3667(); o.nextPageToken = "foo"; } buildCounterListDomainMappingsResponse--; @@ -926,20 +970,20 @@ checkListDomainMappingsResponse(api.ListDomainMappingsResponse o) { buildCounterListDomainMappingsResponse++; if (buildCounterListDomainMappingsResponse < 3) { - checkUnnamed1265(o.domainMappings); + checkUnnamed3667(o.domainMappings); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDomainMappingsResponse--; } -buildUnnamed1266() { +buildUnnamed3668() { var o = new core.List<api.FirewallRule>(); o.add(buildFirewallRule()); o.add(buildFirewallRule()); return o; } -checkUnnamed1266(core.List<api.FirewallRule> o) { +checkUnnamed3668(core.List<api.FirewallRule> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallRule(o[0]); checkFirewallRule(o[1]); @@ -950,7 +994,7 @@ var o = new api.ListIngressRulesResponse(); buildCounterListIngressRulesResponse++; if (buildCounterListIngressRulesResponse < 3) { - o.ingressRules = buildUnnamed1266(); + o.ingressRules = buildUnnamed3668(); o.nextPageToken = "foo"; } buildCounterListIngressRulesResponse--; @@ -960,20 +1004,20 @@ checkListIngressRulesResponse(api.ListIngressRulesResponse o) { buildCounterListIngressRulesResponse++; if (buildCounterListIngressRulesResponse < 3) { - checkUnnamed1266(o.ingressRules); + checkUnnamed3668(o.ingressRules); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListIngressRulesResponse--; } -buildUnnamed1267() { +buildUnnamed3669() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed1267(core.List<api.Instance> o) { +checkUnnamed3669(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -984,7 +1028,7 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed1267(); + o.instances = buildUnnamed3669(); o.nextPageToken = "foo"; } buildCounterListInstancesResponse--; @@ -994,20 +1038,20 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed1267(o.instances); + checkUnnamed3669(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstancesResponse--; } -buildUnnamed1268() { +buildUnnamed3670() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed1268(core.List<api.Location> o) { +checkUnnamed3670(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -1018,7 +1062,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed1268(); + o.locations = buildUnnamed3670(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -1028,20 +1072,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed1268(o.locations); + checkUnnamed3670(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed1269() { +buildUnnamed3671() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1269(core.List<api.Operation> o) { +checkUnnamed3671(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1053,7 +1097,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1269(); + o.operations = buildUnnamed3671(); } buildCounterListOperationsResponse--; return o; @@ -1063,19 +1107,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1269(o.operations); + checkUnnamed3671(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1270() { +buildUnnamed3672() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed1270(core.List<api.Service> o) { +checkUnnamed3672(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -1087,7 +1131,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed1270(); + o.services = buildUnnamed3672(); } buildCounterListServicesResponse--; return o; @@ -1097,19 +1141,19 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1270(o.services); + checkUnnamed3672(o.services); } buildCounterListServicesResponse--; } -buildUnnamed1271() { +buildUnnamed3673() { var o = new core.List<api.Version>(); o.add(buildVersion()); o.add(buildVersion()); return o; } -checkUnnamed1271(core.List<api.Version> o) { +checkUnnamed3673(core.List<api.Version> o) { unittest.expect(o, unittest.hasLength(2)); checkVersion(o[0]); checkVersion(o[1]); @@ -1121,7 +1165,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { o.nextPageToken = "foo"; - o.versions = buildUnnamed1271(); + o.versions = buildUnnamed3673(); } buildCounterListVersionsResponse--; return o; @@ -1131,7 +1175,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1271(o.versions); + checkUnnamed3673(o.versions); } buildCounterListVersionsResponse--; } @@ -1167,20 +1211,20 @@ buildCounterLivenessCheck--; } -buildUnnamed1272() { +buildUnnamed3674() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1272(core.Map<core.String, core.String> o) { +checkUnnamed3674(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')); } -buildUnnamed1273() { +buildUnnamed3675() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1195,7 +1239,7 @@ return o; } -checkUnnamed1273(core.Map<core.String, core.Object> o) { +checkUnnamed3675(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)); @@ -1214,9 +1258,10 @@ var o = new api.Location(); buildCounterLocation++; if (buildCounterLocation < 3) { - o.labels = buildUnnamed1272(); + o.displayName = "foo"; + o.labels = buildUnnamed3674(); o.locationId = "foo"; - o.metadata = buildUnnamed1273(); + o.metadata = buildUnnamed3675(); o.name = "foo"; } buildCounterLocation--; @@ -1226,9 +1271,10 @@ checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { - checkUnnamed1272(o.labels); + unittest.expect(o.displayName, unittest.equals('foo')); + checkUnnamed3674(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed1273(o.metadata); + checkUnnamed3675(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -1255,6 +1301,27 @@ buildCounterLocationMetadata--; } +core.int buildCounterManagedCertificate = 0; +buildManagedCertificate() { + var o = new api.ManagedCertificate(); + buildCounterManagedCertificate++; + if (buildCounterManagedCertificate < 3) { + o.lastRenewalTime = "foo"; + o.status = "foo"; + } + buildCounterManagedCertificate--; + return o; +} + +checkManagedCertificate(api.ManagedCertificate o) { + buildCounterManagedCertificate++; + if (buildCounterManagedCertificate < 3) { + unittest.expect(o.lastRenewalTime, unittest.equals('foo')); + unittest.expect(o.status, unittest.equals('foo')); + } + buildCounterManagedCertificate--; +} + core.int buildCounterManualScaling = 0; buildManualScaling() { var o = new api.ManualScaling(); @@ -1274,14 +1341,14 @@ buildCounterManualScaling--; } -buildUnnamed1274() { +buildUnnamed3676() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1274(core.List<core.String> o) { +checkUnnamed3676(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1292,7 +1359,7 @@ var o = new api.Network(); buildCounterNetwork++; if (buildCounterNetwork < 3) { - o.forwardedPorts = buildUnnamed1274(); + o.forwardedPorts = buildUnnamed3676(); o.instanceTag = "foo"; o.name = "foo"; o.subnetworkName = "foo"; @@ -1304,7 +1371,7 @@ checkNetwork(api.Network o) { buildCounterNetwork++; if (buildCounterNetwork < 3) { - checkUnnamed1274(o.forwardedPorts); + checkUnnamed3676(o.forwardedPorts); unittest.expect(o.instanceTag, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.subnetworkName, unittest.equals('foo')); @@ -1337,7 +1404,7 @@ buildCounterNetworkUtilization--; } -buildUnnamed1275() { +buildUnnamed3677() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1352,7 +1419,7 @@ return o; } -checkUnnamed1275(core.Map<core.String, core.Object> o) { +checkUnnamed3677(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)); @@ -1366,7 +1433,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed1276() { +buildUnnamed3678() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1381,7 +1448,7 @@ return o; } -checkUnnamed1276(core.Map<core.String, core.Object> o) { +checkUnnamed3678(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)); @@ -1402,9 +1469,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1275(); + o.metadata = buildUnnamed3677(); o.name = "foo"; - o.response = buildUnnamed1276(); + o.response = buildUnnamed3678(); } buildCounterOperation--; return o; @@ -1415,9 +1482,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1275(o.metadata); + checkUnnamed3677(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1276(o.response); + checkUnnamed3678(o.response); } buildCounterOperation--; } @@ -1451,14 +1518,14 @@ buildCounterOperationMetadata--; } -buildUnnamed1277() { +buildUnnamed3679() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1277(core.List<core.String> o) { +checkUnnamed3679(core.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,13 +1536,14 @@ var o = new api.OperationMetadataV1(); buildCounterOperationMetadataV1++; if (buildCounterOperationMetadataV1 < 3) { + o.createVersionMetadata = buildCreateVersionMetadataV1(); o.endTime = "foo"; o.ephemeralMessage = "foo"; o.insertTime = "foo"; o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed1277(); + o.warning = buildUnnamed3679(); } buildCounterOperationMetadataV1--; return o; @@ -1484,25 +1552,26 @@ checkOperationMetadataV1(api.OperationMetadataV1 o) { buildCounterOperationMetadataV1++; if (buildCounterOperationMetadataV1 < 3) { + checkCreateVersionMetadataV1(o.createVersionMetadata); unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.ephemeralMessage, unittest.equals('foo')); unittest.expect(o.insertTime, unittest.equals('foo')); unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed1277(o.warning); + checkUnnamed3679(o.warning); } buildCounterOperationMetadataV1--; } -buildUnnamed1278() { +buildUnnamed3680() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1278(core.List<core.String> o) { +checkUnnamed3680(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1520,7 +1589,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed1278(); + o.warning = buildUnnamed3680(); } buildCounterOperationMetadataV1Alpha--; return o; @@ -1536,19 +1605,19 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed1278(o.warning); + checkUnnamed3680(o.warning); } buildCounterOperationMetadataV1Alpha--; } -buildUnnamed1279() { +buildUnnamed3681() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1279(core.List<core.String> o) { +checkUnnamed3681(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1566,7 +1635,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed1279(); + o.warning = buildUnnamed3681(); } buildCounterOperationMetadataV1Beta--; return o; @@ -1582,7 +1651,7 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed1279(o.warning); + checkUnnamed3681(o.warning); } buildCounterOperationMetadataV1Beta--; } @@ -1704,14 +1773,14 @@ buildCounterResourceRecord--; } -buildUnnamed1280() { +buildUnnamed3682() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed1280(core.List<api.Volume> o) { +checkUnnamed3682(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -1725,7 +1794,7 @@ o.cpu = 42.0; o.diskGb = 42.0; o.memoryGb = 42.0; - o.volumes = buildUnnamed1280(); + o.volumes = buildUnnamed3682(); } buildCounterResources--; return o; @@ -1737,7 +1806,7 @@ unittest.expect(o.cpu, unittest.equals(42.0)); unittest.expect(o.diskGb, unittest.equals(42.0)); unittest.expect(o.memoryGb, unittest.equals(42.0)); - checkUnnamed1280(o.volumes); + checkUnnamed3682(o.volumes); } buildCounterResources--; } @@ -1790,6 +1859,8 @@ buildCounterSslSettings++; if (buildCounterSslSettings < 3) { o.certificateId = "foo"; + o.pendingManagedCertificateId = "foo"; + o.sslManagementType = "foo"; } buildCounterSslSettings--; return o; @@ -1799,6 +1870,8 @@ buildCounterSslSettings++; if (buildCounterSslSettings < 3) { unittest.expect(o.certificateId, unittest.equals('foo')); + unittest.expect(o.pendingManagedCertificateId, unittest.equals('foo')); + unittest.expect(o.sslManagementType, unittest.equals('foo')); } buildCounterSslSettings--; } @@ -1828,14 +1901,14 @@ buildCounterStandardSchedulerSettings--; } -buildUnnamed1281() { +buildUnnamed3683() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1281(core.Map<core.String, core.String> o) { +checkUnnamed3683(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')); @@ -1848,7 +1921,7 @@ if (buildCounterStaticFilesHandler < 3) { o.applicationReadable = true; o.expiration = "foo"; - o.httpHeaders = buildUnnamed1281(); + o.httpHeaders = buildUnnamed3683(); o.mimeType = "foo"; o.path = "foo"; o.requireMatchingFile = true; @@ -1863,7 +1936,7 @@ if (buildCounterStaticFilesHandler < 3) { unittest.expect(o.applicationReadable, unittest.isTrue); unittest.expect(o.expiration, unittest.equals('foo')); - checkUnnamed1281(o.httpHeaders); + checkUnnamed3683(o.httpHeaders); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.requireMatchingFile, unittest.isTrue); @@ -1872,7 +1945,7 @@ buildCounterStaticFilesHandler--; } -buildUnnamed1282() { +buildUnnamed3684() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1887,7 +1960,7 @@ return o; } -checkUnnamed1282(core.Map<core.String, core.Object> o) { +checkUnnamed3684(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)); @@ -1901,17 +1974,17 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed1283() { +buildUnnamed3685() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1282()); - o.add(buildUnnamed1282()); + o.add(buildUnnamed3684()); + o.add(buildUnnamed3684()); return o; } -checkUnnamed1283(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3685(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1282(o[0]); - checkUnnamed1282(o[1]); + checkUnnamed3684(o[0]); + checkUnnamed3684(o[1]); } core.int buildCounterStatus = 0; @@ -1920,7 +1993,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1283(); + o.details = buildUnnamed3685(); o.message = "foo"; } buildCounterStatus--; @@ -1931,20 +2004,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1283(o.details); + checkUnnamed3685(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed1284() { +buildUnnamed3686() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed1284(core.Map<core.String, core.double> o) { +checkUnnamed3686(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)); @@ -1955,7 +2028,7 @@ var o = new api.TrafficSplit(); buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - o.allocations = buildUnnamed1284(); + o.allocations = buildUnnamed3686(); o.shardBy = "foo"; } buildCounterTrafficSplit--; @@ -1965,7 +2038,7 @@ checkTrafficSplit(api.TrafficSplit o) { buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - checkUnnamed1284(o.allocations); + checkUnnamed3686(o.allocations); unittest.expect(o.shardBy, unittest.equals('foo')); } buildCounterTrafficSplit--; @@ -2027,92 +2100,92 @@ buildCounterUrlMap--; } -buildUnnamed1285() { +buildUnnamed3687() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1285(core.Map<core.String, core.String> o) { +checkUnnamed3687(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')); } -buildUnnamed1286() { +buildUnnamed3688() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1286(core.Map<core.String, core.String> o) { +checkUnnamed3688(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')); } -buildUnnamed1287() { +buildUnnamed3689() { var o = new core.List<api.ErrorHandler>(); o.add(buildErrorHandler()); o.add(buildErrorHandler()); return o; } -checkUnnamed1287(core.List<api.ErrorHandler> o) { +checkUnnamed3689(core.List<api.ErrorHandler> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorHandler(o[0]); checkErrorHandler(o[1]); } -buildUnnamed1288() { +buildUnnamed3690() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed1288(core.List<api.UrlMap> o) { +checkUnnamed3690(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); } -buildUnnamed1289() { +buildUnnamed3691() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1289(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')); } -buildUnnamed1290() { +buildUnnamed3692() { var o = new core.List<api.Library>(); o.add(buildLibrary()); o.add(buildLibrary()); return o; } -checkUnnamed1290(core.List<api.Library> o) { +checkUnnamed3692(core.List<api.Library> o) { unittest.expect(o, unittest.hasLength(2)); checkLibrary(o[0]); checkLibrary(o[1]); } -buildUnnamed1291() { +buildUnnamed3693() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1291(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')); @@ -2126,7 +2199,7 @@ o.apiConfig = buildApiConfigHandler(); o.automaticScaling = buildAutomaticScaling(); o.basicScaling = buildBasicScaling(); - o.betaSettings = buildUnnamed1285(); + o.betaSettings = buildUnnamed3687(); o.createTime = "foo"; o.createdBy = "foo"; o.defaultExpiration = "foo"; @@ -2134,14 +2207,14 @@ o.diskUsageBytes = "foo"; o.endpointsApiService = buildEndpointsApiService(); o.env = "foo"; - o.envVariables = buildUnnamed1286(); - o.errorHandlers = buildUnnamed1287(); - o.handlers = buildUnnamed1288(); + o.envVariables = buildUnnamed3688(); + o.errorHandlers = buildUnnamed3689(); + o.handlers = buildUnnamed3690(); o.healthCheck = buildHealthCheck(); o.id = "foo"; - o.inboundServices = buildUnnamed1289(); + o.inboundServices = buildUnnamed3691(); o.instanceClass = "foo"; - o.libraries = buildUnnamed1290(); + o.libraries = buildUnnamed3692(); o.livenessCheck = buildLivenessCheck(); o.manualScaling = buildManualScaling(); o.name = "foo"; @@ -2156,7 +2229,7 @@ o.threadsafe = true; o.versionUrl = "foo"; o.vm = true; - o.zones = buildUnnamed1291(); + o.zones = buildUnnamed3693(); } buildCounterVersion--; return o; @@ -2168,7 +2241,7 @@ checkApiConfigHandler(o.apiConfig); checkAutomaticScaling(o.automaticScaling); checkBasicScaling(o.basicScaling); - checkUnnamed1285(o.betaSettings); + checkUnnamed3687(o.betaSettings); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.createdBy, unittest.equals('foo')); unittest.expect(o.defaultExpiration, unittest.equals('foo')); @@ -2176,14 +2249,14 @@ unittest.expect(o.diskUsageBytes, unittest.equals('foo')); checkEndpointsApiService(o.endpointsApiService); unittest.expect(o.env, unittest.equals('foo')); - checkUnnamed1286(o.envVariables); - checkUnnamed1287(o.errorHandlers); - checkUnnamed1288(o.handlers); + checkUnnamed3688(o.envVariables); + checkUnnamed3689(o.errorHandlers); + checkUnnamed3690(o.handlers); checkHealthCheck(o.healthCheck); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1289(o.inboundServices); + checkUnnamed3691(o.inboundServices); unittest.expect(o.instanceClass, unittest.equals('foo')); - checkUnnamed1290(o.libraries); + checkUnnamed3692(o.libraries); checkLivenessCheck(o.livenessCheck); checkManualScaling(o.manualScaling); unittest.expect(o.name, unittest.equals('foo')); @@ -2198,7 +2271,7 @@ unittest.expect(o.threadsafe, unittest.isTrue); unittest.expect(o.versionUrl, unittest.equals('foo')); unittest.expect(o.vm, unittest.isTrue); - checkUnnamed1291(o.zones); + checkUnnamed3693(o.zones); } buildCounterVersion--; } @@ -2328,6 +2401,14 @@ }); }); + unittest.group("obj-schema-CloudBuildOptions", () { + unittest.test("to-json--from-json", () { + var o = buildCloudBuildOptions(); + var od = new api.CloudBuildOptions.fromJson(o.toJson()); + checkCloudBuildOptions(od); + }); + }); + unittest.group("obj-schema-ContainerInfo", () { unittest.test("to-json--from-json", () { var o = buildContainerInfo(); @@ -2344,6 +2425,14 @@ }); }); + unittest.group("obj-schema-CreateVersionMetadataV1", () { + unittest.test("to-json--from-json", () { + var o = buildCreateVersionMetadataV1(); + var od = new api.CreateVersionMetadataV1.fromJson(o.toJson()); + checkCreateVersionMetadataV1(od); + }); + }); + unittest.group("obj-schema-CreateVersionMetadataV1Alpha", () { unittest.test("to-json--from-json", () { var o = buildCreateVersionMetadataV1Alpha(); @@ -2568,6 +2657,14 @@ }); }); + unittest.group("obj-schema-ManagedCertificate", () { + unittest.test("to-json--from-json", () { + var o = buildManagedCertificate(); + var od = new api.ManagedCertificate.fromJson(o.toJson()); + checkManagedCertificate(od); + }); + }); + unittest.group("obj-schema-ManualScaling", () { unittest.test("to-json--from-json", () { var o = buildManualScaling(); @@ -4952,9 +5049,9 @@ new api.AppengineApi(mock).apps.services.versions; var arg_appsId = "foo"; var arg_servicesId = "foo"; - var arg_view = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_view = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5004,11 +5101,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5019,9 +5116,9 @@ }), true); res .list(arg_appsId, arg_servicesId, - view: arg_view, pageToken: arg_pageToken, pageSize: arg_pageSize, + view: arg_view, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListVersionsResponse(response);
diff --git a/generated/googleapis/test/appsactivity/v1_test.dart b/generated/googleapis/test/appsactivity/v1_test.dart index af965b8..38f09cb 100644 --- a/generated/googleapis/test/appsactivity/v1_test.dart +++ b/generated/googleapis/test/appsactivity/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1091() { +buildUnnamed1127() { var o = new core.List<api.Event>(); o.add(buildEvent()); o.add(buildEvent()); return o; } -checkUnnamed1091(core.List<api.Event> o) { +checkUnnamed1127(core.List<api.Event> o) { unittest.expect(o, unittest.hasLength(2)); checkEvent(o[0]); checkEvent(o[1]); @@ -69,7 +69,7 @@ buildCounterActivity++; if (buildCounterActivity < 3) { o.combinedEvent = buildEvent(); - o.singleEvents = buildUnnamed1091(); + o.singleEvents = buildUnnamed1127(); } buildCounterActivity--; return o; @@ -79,32 +79,32 @@ buildCounterActivity++; if (buildCounterActivity < 3) { checkEvent(o.combinedEvent); - checkUnnamed1091(o.singleEvents); + checkUnnamed1127(o.singleEvents); } buildCounterActivity--; } -buildUnnamed1092() { +buildUnnamed1128() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1092(core.List<core.String> o) { +checkUnnamed1128(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1093() { +buildUnnamed1129() { var o = new core.List<api.PermissionChange>(); o.add(buildPermissionChange()); o.add(buildPermissionChange()); return o; } -checkUnnamed1093(core.List<api.PermissionChange> o) { +checkUnnamed1129(core.List<api.PermissionChange> o) { unittest.expect(o, unittest.hasLength(2)); checkPermissionChange(o[0]); checkPermissionChange(o[1]); @@ -115,11 +115,11 @@ var o = new api.Event(); buildCounterEvent++; if (buildCounterEvent < 3) { - o.additionalEventTypes = buildUnnamed1092(); + o.additionalEventTypes = buildUnnamed1128(); o.eventTimeMillis = "foo"; o.fromUserDeletion = true; o.move = buildMove(); - o.permissionChanges = buildUnnamed1093(); + o.permissionChanges = buildUnnamed1129(); o.primaryEventType = "foo"; o.rename = buildRename(); o.target = buildTarget(); @@ -132,11 +132,11 @@ checkEvent(api.Event o) { buildCounterEvent++; if (buildCounterEvent < 3) { - checkUnnamed1092(o.additionalEventTypes); + checkUnnamed1128(o.additionalEventTypes); unittest.expect(o.eventTimeMillis, unittest.equals('foo')); unittest.expect(o.fromUserDeletion, unittest.isTrue); checkMove(o.move); - checkUnnamed1093(o.permissionChanges); + checkUnnamed1129(o.permissionChanges); unittest.expect(o.primaryEventType, unittest.equals('foo')); checkRename(o.rename); checkTarget(o.target); @@ -145,14 +145,14 @@ buildCounterEvent--; } -buildUnnamed1094() { +buildUnnamed1130() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed1094(core.List<api.Activity> o) { +checkUnnamed1130(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -163,7 +163,7 @@ var o = new api.ListActivitiesResponse(); buildCounterListActivitiesResponse++; if (buildCounterListActivitiesResponse < 3) { - o.activities = buildUnnamed1094(); + o.activities = buildUnnamed1130(); o.nextPageToken = "foo"; } buildCounterListActivitiesResponse--; @@ -173,33 +173,33 @@ checkListActivitiesResponse(api.ListActivitiesResponse o) { buildCounterListActivitiesResponse++; if (buildCounterListActivitiesResponse < 3) { - checkUnnamed1094(o.activities); + checkUnnamed1130(o.activities); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListActivitiesResponse--; } -buildUnnamed1095() { +buildUnnamed1131() { var o = new core.List<api.Parent>(); o.add(buildParent()); o.add(buildParent()); return o; } -checkUnnamed1095(core.List<api.Parent> o) { +checkUnnamed1131(core.List<api.Parent> o) { unittest.expect(o, unittest.hasLength(2)); checkParent(o[0]); checkParent(o[1]); } -buildUnnamed1096() { +buildUnnamed1132() { var o = new core.List<api.Parent>(); o.add(buildParent()); o.add(buildParent()); return o; } -checkUnnamed1096(core.List<api.Parent> o) { +checkUnnamed1132(core.List<api.Parent> o) { unittest.expect(o, unittest.hasLength(2)); checkParent(o[0]); checkParent(o[1]); @@ -210,8 +210,8 @@ var o = new api.Move(); buildCounterMove++; if (buildCounterMove < 3) { - o.addedParents = buildUnnamed1095(); - o.removedParents = buildUnnamed1096(); + o.addedParents = buildUnnamed1131(); + o.removedParents = buildUnnamed1132(); } buildCounterMove--; return o; @@ -220,8 +220,8 @@ checkMove(api.Move o) { buildCounterMove++; if (buildCounterMove < 3) { - checkUnnamed1095(o.addedParents); - checkUnnamed1096(o.removedParents); + checkUnnamed1131(o.addedParents); + checkUnnamed1132(o.removedParents); } buildCounterMove--; } @@ -278,27 +278,27 @@ buildCounterPermission--; } -buildUnnamed1097() { +buildUnnamed1133() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1097(core.List<api.Permission> o) { +checkUnnamed1133(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); } -buildUnnamed1098() { +buildUnnamed1134() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1098(core.List<api.Permission> o) { +checkUnnamed1134(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -309,8 +309,8 @@ var o = new api.PermissionChange(); buildCounterPermissionChange++; if (buildCounterPermissionChange < 3) { - o.addedPermissions = buildUnnamed1097(); - o.removedPermissions = buildUnnamed1098(); + o.addedPermissions = buildUnnamed1133(); + o.removedPermissions = buildUnnamed1134(); } buildCounterPermissionChange--; return o; @@ -319,8 +319,8 @@ checkPermissionChange(api.PermissionChange o) { buildCounterPermissionChange++; if (buildCounterPermissionChange < 3) { - checkUnnamed1097(o.addedPermissions); - checkUnnamed1098(o.removedPermissions); + checkUnnamed1133(o.addedPermissions); + checkUnnamed1134(o.removedPermissions); } buildCounterPermissionChange--; }
diff --git a/generated/googleapis/test/appstate/v1_test.dart b/generated/googleapis/test/appstate/v1_test.dart index 907bad0..a6805a6 100644 --- a/generated/googleapis/test/appstate/v1_test.dart +++ b/generated/googleapis/test/appstate/v1_test.dart
@@ -75,14 +75,14 @@ buildCounterGetResponse--; } -buildUnnamed3499() { +buildUnnamed3242() { var o = new core.List<api.GetResponse>(); o.add(buildGetResponse()); o.add(buildGetResponse()); return o; } -checkUnnamed3499(core.List<api.GetResponse> o) { +checkUnnamed3242(core.List<api.GetResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkGetResponse(o[0]); checkGetResponse(o[1]); @@ -93,7 +93,7 @@ var o = new api.ListResponse(); buildCounterListResponse++; if (buildCounterListResponse < 3) { - o.items = buildUnnamed3499(); + o.items = buildUnnamed3242(); o.kind = "foo"; o.maximumKeyCount = 42; } @@ -104,7 +104,7 @@ checkListResponse(api.ListResponse o) { buildCounterListResponse++; if (buildCounterListResponse < 3) { - checkUnnamed3499(o.items); + checkUnnamed3242(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 b2013a9..14ea79d 100644 --- a/generated/googleapis/test/bigquery/v2_test.dart +++ b/generated/googleapis/test/bigquery/v2_test.dart
@@ -79,14 +79,14 @@ buildCounterBigtableColumn--; } -buildUnnamed2465() { +buildUnnamed1541() { var o = new core.List<api.BigtableColumn>(); o.add(buildBigtableColumn()); o.add(buildBigtableColumn()); return o; } -checkUnnamed2465(core.List<api.BigtableColumn> o) { +checkUnnamed1541(core.List<api.BigtableColumn> o) { unittest.expect(o, unittest.hasLength(2)); checkBigtableColumn(o[0]); checkBigtableColumn(o[1]); @@ -97,7 +97,7 @@ var o = new api.BigtableColumnFamily(); buildCounterBigtableColumnFamily++; if (buildCounterBigtableColumnFamily < 3) { - o.columns = buildUnnamed2465(); + o.columns = buildUnnamed1541(); o.encoding = "foo"; o.familyId = "foo"; o.onlyReadLatest = true; @@ -110,7 +110,7 @@ checkBigtableColumnFamily(api.BigtableColumnFamily o) { buildCounterBigtableColumnFamily++; if (buildCounterBigtableColumnFamily < 3) { - checkUnnamed2465(o.columns); + checkUnnamed1541(o.columns); unittest.expect(o.encoding, unittest.equals('foo')); unittest.expect(o.familyId, unittest.equals('foo')); unittest.expect(o.onlyReadLatest, unittest.isTrue); @@ -119,14 +119,14 @@ buildCounterBigtableColumnFamily--; } -buildUnnamed2466() { +buildUnnamed1542() { var o = new core.List<api.BigtableColumnFamily>(); o.add(buildBigtableColumnFamily()); o.add(buildBigtableColumnFamily()); return o; } -checkUnnamed2466(core.List<api.BigtableColumnFamily> o) { +checkUnnamed1542(core.List<api.BigtableColumnFamily> o) { unittest.expect(o, unittest.hasLength(2)); checkBigtableColumnFamily(o[0]); checkBigtableColumnFamily(o[1]); @@ -137,7 +137,7 @@ var o = new api.BigtableOptions(); buildCounterBigtableOptions++; if (buildCounterBigtableOptions < 3) { - o.columnFamilies = buildUnnamed2466(); + o.columnFamilies = buildUnnamed1542(); o.ignoreUnspecifiedColumnFamilies = true; o.readRowkeyAsString = true; } @@ -148,13 +148,45 @@ checkBigtableOptions(api.BigtableOptions o) { buildCounterBigtableOptions++; if (buildCounterBigtableOptions < 3) { - checkUnnamed2466(o.columnFamilies); + checkUnnamed1542(o.columnFamilies); unittest.expect(o.ignoreUnspecifiedColumnFamilies, unittest.isTrue); unittest.expect(o.readRowkeyAsString, unittest.isTrue); } buildCounterBigtableOptions--; } +buildUnnamed1543() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +core.int buildCounterClustering = 0; +buildClustering() { + var o = new api.Clustering(); + buildCounterClustering++; + if (buildCounterClustering < 3) { + o.fields = buildUnnamed1543(); + } + buildCounterClustering--; + return o; +} + +checkClustering(api.Clustering o) { + buildCounterClustering++; + if (buildCounterClustering < 3) { + checkUnnamed1543(o.fields); + } + buildCounterClustering--; +} + core.int buildCounterCsvOptions = 0; buildCsvOptions() { var o = new api.CsvOptions(); @@ -213,27 +245,27 @@ buildCounterDatasetAccess--; } -buildUnnamed2467() { +buildUnnamed1544() { var o = new core.List<api.DatasetAccess>(); o.add(buildDatasetAccess()); o.add(buildDatasetAccess()); return o; } -checkUnnamed2467(core.List<api.DatasetAccess> o) { +checkUnnamed1544(core.List<api.DatasetAccess> o) { unittest.expect(o, unittest.hasLength(2)); checkDatasetAccess(o[0]); checkDatasetAccess(o[1]); } -buildUnnamed2468() { +buildUnnamed1545() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2468(core.Map<core.String, core.String> o) { +checkUnnamed1545(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')); @@ -244,7 +276,7 @@ var o = new api.Dataset(); buildCounterDataset++; if (buildCounterDataset < 3) { - o.access = buildUnnamed2467(); + o.access = buildUnnamed1544(); o.creationTime = "foo"; o.datasetReference = buildDatasetReference(); o.defaultTableExpirationMs = "foo"; @@ -253,7 +285,7 @@ o.friendlyName = "foo"; o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed2468(); + o.labels = buildUnnamed1545(); o.lastModifiedTime = "foo"; o.location = "foo"; o.selfLink = "foo"; @@ -265,7 +297,7 @@ checkDataset(api.Dataset o) { buildCounterDataset++; if (buildCounterDataset < 3) { - checkUnnamed2467(o.access); + checkUnnamed1544(o.access); unittest.expect(o.creationTime, unittest.equals('foo')); checkDatasetReference(o.datasetReference); unittest.expect(o.defaultTableExpirationMs, unittest.equals('foo')); @@ -274,7 +306,7 @@ unittest.expect(o.friendlyName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2468(o.labels); + checkUnnamed1545(o.labels); unittest.expect(o.lastModifiedTime, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -282,14 +314,14 @@ buildCounterDataset--; } -buildUnnamed2469() { +buildUnnamed1546() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2469(core.Map<core.String, core.String> o) { +checkUnnamed1546(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')); @@ -304,7 +336,7 @@ o.friendlyName = "foo"; o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed2469(); + o.labels = buildUnnamed1546(); o.location = "foo"; } buildCounterDatasetListDatasets--; @@ -318,20 +350,20 @@ unittest.expect(o.friendlyName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2469(o.labels); + checkUnnamed1546(o.labels); unittest.expect(o.location, unittest.equals('foo')); } buildCounterDatasetListDatasets--; } -buildUnnamed2470() { +buildUnnamed1547() { var o = new core.List<api.DatasetListDatasets>(); o.add(buildDatasetListDatasets()); o.add(buildDatasetListDatasets()); return o; } -checkUnnamed2470(core.List<api.DatasetListDatasets> o) { +checkUnnamed1547(core.List<api.DatasetListDatasets> o) { unittest.expect(o, unittest.hasLength(2)); checkDatasetListDatasets(o[0]); checkDatasetListDatasets(o[1]); @@ -342,7 +374,7 @@ var o = new api.DatasetList(); buildCounterDatasetList++; if (buildCounterDatasetList < 3) { - o.datasets = buildUnnamed2470(); + o.datasets = buildUnnamed1547(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -354,7 +386,7 @@ checkDatasetList(api.DatasetList o) { buildCounterDatasetList++; if (buildCounterDatasetList < 3) { - checkUnnamed2470(o.datasets); + checkUnnamed1547(o.datasets); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -448,27 +480,27 @@ buildCounterErrorProto--; } -buildUnnamed2471() { +buildUnnamed1548() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2471(core.List<core.String> o) { +checkUnnamed1548(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2472() { +buildUnnamed1549() { var o = new core.List<api.ExplainQueryStep>(); o.add(buildExplainQueryStep()); o.add(buildExplainQueryStep()); return o; } -checkUnnamed2472(core.List<api.ExplainQueryStep> o) { +checkUnnamed1549(core.List<api.ExplainQueryStep> o) { unittest.expect(o, unittest.hasLength(2)); checkExplainQueryStep(o[0]); checkExplainQueryStep(o[1]); @@ -486,7 +518,7 @@ o.computeRatioMax = 42.0; o.endMs = "foo"; o.id = "foo"; - o.inputStages = buildUnnamed2471(); + o.inputStages = buildUnnamed1548(); o.name = "foo"; o.parallelInputs = "foo"; o.readMsAvg = "foo"; @@ -499,7 +531,7 @@ o.shuffleOutputBytesSpilled = "foo"; o.startMs = "foo"; o.status = "foo"; - o.steps = buildUnnamed2472(); + o.steps = buildUnnamed1549(); o.waitMsAvg = "foo"; o.waitMsMax = "foo"; o.waitRatioAvg = 42.0; @@ -523,7 +555,7 @@ unittest.expect(o.computeRatioMax, unittest.equals(42.0)); unittest.expect(o.endMs, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2471(o.inputStages); + checkUnnamed1548(o.inputStages); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parallelInputs, unittest.equals('foo')); unittest.expect(o.readMsAvg, unittest.equals('foo')); @@ -536,7 +568,7 @@ unittest.expect(o.shuffleOutputBytesSpilled, unittest.equals('foo')); unittest.expect(o.startMs, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed2472(o.steps); + checkUnnamed1549(o.steps); unittest.expect(o.waitMsAvg, unittest.equals('foo')); unittest.expect(o.waitMsMax, unittest.equals('foo')); unittest.expect(o.waitRatioAvg, unittest.equals(42.0)); @@ -549,14 +581,14 @@ buildCounterExplainQueryStage--; } -buildUnnamed2473() { +buildUnnamed1550() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2473(core.List<core.String> o) { +checkUnnamed1550(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -568,7 +600,7 @@ buildCounterExplainQueryStep++; if (buildCounterExplainQueryStep < 3) { o.kind = "foo"; - o.substeps = buildUnnamed2473(); + o.substeps = buildUnnamed1550(); } buildCounterExplainQueryStep--; return o; @@ -578,19 +610,19 @@ buildCounterExplainQueryStep++; if (buildCounterExplainQueryStep < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2473(o.substeps); + checkUnnamed1550(o.substeps); } buildCounterExplainQueryStep--; } -buildUnnamed2474() { +buildUnnamed1551() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2474(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')); @@ -610,7 +642,7 @@ o.maxBadRecords = 42; o.schema = buildTableSchema(); o.sourceFormat = "foo"; - o.sourceUris = buildUnnamed2474(); + o.sourceUris = buildUnnamed1551(); } buildCounterExternalDataConfiguration--; return o; @@ -628,32 +660,32 @@ unittest.expect(o.maxBadRecords, unittest.equals(42)); checkTableSchema(o.schema); unittest.expect(o.sourceFormat, unittest.equals('foo')); - checkUnnamed2474(o.sourceUris); + checkUnnamed1551(o.sourceUris); } buildCounterExternalDataConfiguration--; } -buildUnnamed2475() { +buildUnnamed1552() { var o = new core.List<api.ErrorProto>(); o.add(buildErrorProto()); o.add(buildErrorProto()); return o; } -checkUnnamed2475(core.List<api.ErrorProto> o) { +checkUnnamed1552(core.List<api.ErrorProto> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorProto(o[0]); checkErrorProto(o[1]); } -buildUnnamed2476() { +buildUnnamed1553() { var o = new core.List<api.TableRow>(); o.add(buildTableRow()); o.add(buildTableRow()); return o; } -checkUnnamed2476(core.List<api.TableRow> o) { +checkUnnamed1553(core.List<api.TableRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableRow(o[0]); checkTableRow(o[1]); @@ -665,14 +697,14 @@ buildCounterGetQueryResultsResponse++; if (buildCounterGetQueryResultsResponse < 3) { o.cacheHit = true; - o.errors = buildUnnamed2475(); + o.errors = buildUnnamed1552(); o.etag = "foo"; o.jobComplete = true; o.jobReference = buildJobReference(); o.kind = "foo"; o.numDmlAffectedRows = "foo"; o.pageToken = "foo"; - o.rows = buildUnnamed2476(); + o.rows = buildUnnamed1553(); o.schema = buildTableSchema(); o.totalBytesProcessed = "foo"; o.totalRows = "foo"; @@ -685,14 +717,14 @@ buildCounterGetQueryResultsResponse++; if (buildCounterGetQueryResultsResponse < 3) { unittest.expect(o.cacheHit, unittest.isTrue); - checkUnnamed2475(o.errors); + checkUnnamed1552(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')); - checkUnnamed2476(o.rows); + checkUnnamed1553(o.rows); checkTableSchema(o.schema); unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); unittest.expect(o.totalRows, unittest.equals('foo')); @@ -726,6 +758,7 @@ var o = new api.GoogleSheetsOptions(); buildCounterGoogleSheetsOptions++; if (buildCounterGoogleSheetsOptions < 3) { + o.range = "foo"; o.skipLeadingRows = "foo"; } buildCounterGoogleSheetsOptions--; @@ -735,6 +768,7 @@ checkGoogleSheetsOptions(api.GoogleSheetsOptions o) { buildCounterGoogleSheetsOptions++; if (buildCounterGoogleSheetsOptions < 3) { + unittest.expect(o.range, unittest.equals('foo')); unittest.expect(o.skipLeadingRows, unittest.equals('foo')); } buildCounterGoogleSheetsOptions--; @@ -796,14 +830,14 @@ buildCounterJobCancelResponse--; } -buildUnnamed2477() { +buildUnnamed1554() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2477(core.Map<core.String, core.String> o) { +checkUnnamed1554(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')); @@ -818,7 +852,7 @@ o.dryRun = true; o.extract = buildJobConfigurationExtract(); o.jobTimeoutMs = "foo"; - o.labels = buildUnnamed2477(); + o.labels = buildUnnamed1554(); o.load = buildJobConfigurationLoad(); o.query = buildJobConfigurationQuery(); } @@ -833,21 +867,21 @@ unittest.expect(o.dryRun, unittest.isTrue); checkJobConfigurationExtract(o.extract); unittest.expect(o.jobTimeoutMs, unittest.equals('foo')); - checkUnnamed2477(o.labels); + checkUnnamed1554(o.labels); checkJobConfigurationLoad(o.load); checkJobConfigurationQuery(o.query); } buildCounterJobConfiguration--; } -buildUnnamed2478() { +buildUnnamed1555() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2478(core.List<core.String> o) { +checkUnnamed1555(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -861,7 +895,7 @@ o.compression = "foo"; o.destinationFormat = "foo"; o.destinationUri = "foo"; - o.destinationUris = buildUnnamed2478(); + o.destinationUris = buildUnnamed1555(); o.fieldDelimiter = "foo"; o.printHeader = true; o.sourceTable = buildTableReference(); @@ -876,7 +910,7 @@ unittest.expect(o.compression, unittest.equals('foo')); unittest.expect(o.destinationFormat, unittest.equals('foo')); unittest.expect(o.destinationUri, unittest.equals('foo')); - checkUnnamed2478(o.destinationUris); + checkUnnamed1555(o.destinationUris); unittest.expect(o.fieldDelimiter, unittest.equals('foo')); unittest.expect(o.printHeader, unittest.isTrue); checkTableReference(o.sourceTable); @@ -884,40 +918,40 @@ buildCounterJobConfigurationExtract--; } -buildUnnamed2479() { +buildUnnamed1556() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2479(core.List<core.String> o) { +checkUnnamed1556(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2480() { +buildUnnamed1557() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2480(core.List<core.String> o) { +checkUnnamed1557(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2481() { +buildUnnamed1558() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2481(core.List<core.String> o) { +checkUnnamed1558(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -931,6 +965,7 @@ o.allowJaggedRows = true; o.allowQuotedNewlines = true; o.autodetect = true; + o.clustering = buildClustering(); o.createDisposition = "foo"; o.destinationEncryptionConfiguration = buildEncryptionConfiguration(); o.destinationTable = buildTableReference(); @@ -940,15 +975,15 @@ o.ignoreUnknownValues = true; o.maxBadRecords = 42; o.nullMarker = "foo"; - o.projectionFields = buildUnnamed2479(); + o.projectionFields = buildUnnamed1556(); o.quote = "foo"; o.schema = buildTableSchema(); o.schemaInline = "foo"; o.schemaInlineFormat = "foo"; - o.schemaUpdateOptions = buildUnnamed2480(); + o.schemaUpdateOptions = buildUnnamed1557(); o.skipLeadingRows = 42; o.sourceFormat = "foo"; - o.sourceUris = buildUnnamed2481(); + o.sourceUris = buildUnnamed1558(); o.timePartitioning = buildTimePartitioning(); o.writeDisposition = "foo"; } @@ -962,6 +997,7 @@ unittest.expect(o.allowJaggedRows, unittest.isTrue); unittest.expect(o.allowQuotedNewlines, unittest.isTrue); unittest.expect(o.autodetect, unittest.isTrue); + checkClustering(o.clustering); unittest.expect(o.createDisposition, unittest.equals('foo')); checkEncryptionConfiguration(o.destinationEncryptionConfiguration); checkTableReference(o.destinationTable); @@ -971,68 +1007,68 @@ unittest.expect(o.ignoreUnknownValues, unittest.isTrue); unittest.expect(o.maxBadRecords, unittest.equals(42)); unittest.expect(o.nullMarker, unittest.equals('foo')); - checkUnnamed2479(o.projectionFields); + checkUnnamed1556(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')); - checkUnnamed2480(o.schemaUpdateOptions); + checkUnnamed1557(o.schemaUpdateOptions); unittest.expect(o.skipLeadingRows, unittest.equals(42)); unittest.expect(o.sourceFormat, unittest.equals('foo')); - checkUnnamed2481(o.sourceUris); + checkUnnamed1558(o.sourceUris); checkTimePartitioning(o.timePartitioning); unittest.expect(o.writeDisposition, unittest.equals('foo')); } buildCounterJobConfigurationLoad--; } -buildUnnamed2482() { +buildUnnamed1559() { var o = new core.List<api.QueryParameter>(); o.add(buildQueryParameter()); o.add(buildQueryParameter()); return o; } -checkUnnamed2482(core.List<api.QueryParameter> o) { +checkUnnamed1559(core.List<api.QueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameter(o[0]); checkQueryParameter(o[1]); } -buildUnnamed2483() { +buildUnnamed1560() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2483(core.List<core.String> o) { +checkUnnamed1560(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2484() { +buildUnnamed1561() { var o = new core.Map<core.String, api.ExternalDataConfiguration>(); o["x"] = buildExternalDataConfiguration(); o["y"] = buildExternalDataConfiguration(); return o; } -checkUnnamed2484(core.Map<core.String, api.ExternalDataConfiguration> o) { +checkUnnamed1561(core.Map<core.String, api.ExternalDataConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkExternalDataConfiguration(o["x"]); checkExternalDataConfiguration(o["y"]); } -buildUnnamed2485() { +buildUnnamed1562() { var o = new core.List<api.UserDefinedFunctionResource>(); o.add(buildUserDefinedFunctionResource()); o.add(buildUserDefinedFunctionResource()); return o; } -checkUnnamed2485(core.List<api.UserDefinedFunctionResource> o) { +checkUnnamed1562(core.List<api.UserDefinedFunctionResource> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedFunctionResource(o[0]); checkUserDefinedFunctionResource(o[1]); @@ -1044,6 +1080,7 @@ buildCounterJobConfigurationQuery++; if (buildCounterJobConfigurationQuery < 3) { o.allowLargeResults = true; + o.clustering = buildClustering(); o.createDisposition = "foo"; o.defaultDataset = buildDatasetReference(); o.destinationEncryptionConfiguration = buildEncryptionConfiguration(); @@ -1055,13 +1092,13 @@ o.preserveNulls = true; o.priority = "foo"; o.query = "foo"; - o.queryParameters = buildUnnamed2482(); - o.schemaUpdateOptions = buildUnnamed2483(); - o.tableDefinitions = buildUnnamed2484(); + o.queryParameters = buildUnnamed1559(); + o.schemaUpdateOptions = buildUnnamed1560(); + o.tableDefinitions = buildUnnamed1561(); o.timePartitioning = buildTimePartitioning(); o.useLegacySql = true; o.useQueryCache = true; - o.userDefinedFunctionResources = buildUnnamed2485(); + o.userDefinedFunctionResources = buildUnnamed1562(); o.writeDisposition = "foo"; } buildCounterJobConfigurationQuery--; @@ -1072,6 +1109,7 @@ buildCounterJobConfigurationQuery++; if (buildCounterJobConfigurationQuery < 3) { unittest.expect(o.allowLargeResults, unittest.isTrue); + checkClustering(o.clustering); unittest.expect(o.createDisposition, unittest.equals('foo')); checkDatasetReference(o.defaultDataset); checkEncryptionConfiguration(o.destinationEncryptionConfiguration); @@ -1083,26 +1121,26 @@ unittest.expect(o.preserveNulls, unittest.isTrue); unittest.expect(o.priority, unittest.equals('foo')); unittest.expect(o.query, unittest.equals('foo')); - checkUnnamed2482(o.queryParameters); - checkUnnamed2483(o.schemaUpdateOptions); - checkUnnamed2484(o.tableDefinitions); + checkUnnamed1559(o.queryParameters); + checkUnnamed1560(o.schemaUpdateOptions); + checkUnnamed1561(o.tableDefinitions); checkTimePartitioning(o.timePartitioning); unittest.expect(o.useLegacySql, unittest.isTrue); unittest.expect(o.useQueryCache, unittest.isTrue); - checkUnnamed2485(o.userDefinedFunctionResources); + checkUnnamed1562(o.userDefinedFunctionResources); unittest.expect(o.writeDisposition, unittest.equals('foo')); } buildCounterJobConfigurationQuery--; } -buildUnnamed2486() { +buildUnnamed1563() { var o = new core.List<api.TableReference>(); o.add(buildTableReference()); o.add(buildTableReference()); return o; } -checkUnnamed2486(core.List<api.TableReference> o) { +checkUnnamed1563(core.List<api.TableReference> o) { unittest.expect(o, unittest.hasLength(2)); checkTableReference(o[0]); checkTableReference(o[1]); @@ -1117,7 +1155,7 @@ o.destinationEncryptionConfiguration = buildEncryptionConfiguration(); o.destinationTable = buildTableReference(); o.sourceTable = buildTableReference(); - o.sourceTables = buildUnnamed2486(); + o.sourceTables = buildUnnamed1563(); o.writeDisposition = "foo"; } buildCounterJobConfigurationTableCopy--; @@ -1131,7 +1169,7 @@ checkEncryptionConfiguration(o.destinationEncryptionConfiguration); checkTableReference(o.destinationTable); checkTableReference(o.sourceTable); - checkUnnamed2486(o.sourceTables); + checkUnnamed1563(o.sourceTables); unittest.expect(o.writeDisposition, unittest.equals('foo')); } buildCounterJobConfigurationTableCopy--; @@ -1172,14 +1210,14 @@ buildCounterJobListJobs--; } -buildUnnamed2487() { +buildUnnamed1564() { var o = new core.List<api.JobListJobs>(); o.add(buildJobListJobs()); o.add(buildJobListJobs()); return o; } -checkUnnamed2487(core.List<api.JobListJobs> o) { +checkUnnamed1564(core.List<api.JobListJobs> o) { unittest.expect(o, unittest.hasLength(2)); checkJobListJobs(o[0]); checkJobListJobs(o[1]); @@ -1191,7 +1229,7 @@ buildCounterJobList++; if (buildCounterJobList < 3) { o.etag = "foo"; - o.jobs = buildUnnamed2487(); + o.jobs = buildUnnamed1564(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1203,7 +1241,7 @@ buildCounterJobList++; if (buildCounterJobList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2487(o.jobs); + checkUnnamed1564(o.jobs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1266,53 +1304,87 @@ buildCounterJobStatistics--; } -buildUnnamed2488() { +buildUnnamed1565() { var o = new core.List<api.ExplainQueryStage>(); o.add(buildExplainQueryStage()); o.add(buildExplainQueryStage()); return o; } -checkUnnamed2488(core.List<api.ExplainQueryStage> o) { +checkUnnamed1565(core.List<api.ExplainQueryStage> o) { unittest.expect(o, unittest.hasLength(2)); checkExplainQueryStage(o[0]); checkExplainQueryStage(o[1]); } -buildUnnamed2489() { +buildUnnamed1566() { var o = new core.List<api.TableReference>(); o.add(buildTableReference()); o.add(buildTableReference()); return o; } -checkUnnamed2489(core.List<api.TableReference> o) { +checkUnnamed1566(core.List<api.TableReference> o) { unittest.expect(o, unittest.hasLength(2)); checkTableReference(o[0]); checkTableReference(o[1]); } -buildUnnamed2490() { +core.int buildCounterJobStatistics2ReservationUsage = 0; +buildJobStatistics2ReservationUsage() { + var o = new api.JobStatistics2ReservationUsage(); + buildCounterJobStatistics2ReservationUsage++; + if (buildCounterJobStatistics2ReservationUsage < 3) { + o.name = "foo"; + o.slotMs = "foo"; + } + buildCounterJobStatistics2ReservationUsage--; + return o; +} + +checkJobStatistics2ReservationUsage(api.JobStatistics2ReservationUsage o) { + buildCounterJobStatistics2ReservationUsage++; + if (buildCounterJobStatistics2ReservationUsage < 3) { + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.slotMs, unittest.equals('foo')); + } + buildCounterJobStatistics2ReservationUsage--; +} + +buildUnnamed1567() { + var o = new core.List<api.JobStatistics2ReservationUsage>(); + o.add(buildJobStatistics2ReservationUsage()); + o.add(buildJobStatistics2ReservationUsage()); + return o; +} + +checkUnnamed1567(core.List<api.JobStatistics2ReservationUsage> o) { + unittest.expect(o, unittest.hasLength(2)); + checkJobStatistics2ReservationUsage(o[0]); + checkJobStatistics2ReservationUsage(o[1]); +} + +buildUnnamed1568() { var o = new core.List<api.QueryTimelineSample>(); o.add(buildQueryTimelineSample()); o.add(buildQueryTimelineSample()); return o; } -checkUnnamed2490(core.List<api.QueryTimelineSample> o) { +checkUnnamed1568(core.List<api.QueryTimelineSample> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryTimelineSample(o[0]); checkQueryTimelineSample(o[1]); } -buildUnnamed2491() { +buildUnnamed1569() { var o = new core.List<api.QueryParameter>(); o.add(buildQueryParameter()); o.add(buildQueryParameter()); return o; } -checkUnnamed2491(core.List<api.QueryParameter> o) { +checkUnnamed1569(core.List<api.QueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameter(o[0]); checkQueryParameter(o[1]); @@ -1329,15 +1401,17 @@ o.ddlTargetTable = buildTableReference(); o.estimatedBytesProcessed = "foo"; o.numDmlAffectedRows = "foo"; - o.queryPlan = buildUnnamed2488(); - o.referencedTables = buildUnnamed2489(); + o.queryPlan = buildUnnamed1565(); + o.referencedTables = buildUnnamed1566(); + o.reservationUsage = buildUnnamed1567(); o.schema = buildTableSchema(); o.statementType = "foo"; - o.timeline = buildUnnamed2490(); + o.timeline = buildUnnamed1568(); o.totalBytesBilled = "foo"; o.totalBytesProcessed = "foo"; + o.totalPartitionsProcessed = "foo"; o.totalSlotMs = "foo"; - o.undeclaredQueryParameters = buildUnnamed2491(); + o.undeclaredQueryParameters = buildUnnamed1569(); } buildCounterJobStatistics2--; return o; @@ -1352,15 +1426,17 @@ checkTableReference(o.ddlTargetTable); unittest.expect(o.estimatedBytesProcessed, unittest.equals('foo')); unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); - checkUnnamed2488(o.queryPlan); - checkUnnamed2489(o.referencedTables); + checkUnnamed1565(o.queryPlan); + checkUnnamed1566(o.referencedTables); + checkUnnamed1567(o.reservationUsage); checkTableSchema(o.schema); unittest.expect(o.statementType, unittest.equals('foo')); - checkUnnamed2490(o.timeline); + checkUnnamed1568(o.timeline); unittest.expect(o.totalBytesBilled, unittest.equals('foo')); unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); + unittest.expect(o.totalPartitionsProcessed, unittest.equals('foo')); unittest.expect(o.totalSlotMs, unittest.equals('foo')); - checkUnnamed2491(o.undeclaredQueryParameters); + checkUnnamed1569(o.undeclaredQueryParameters); } buildCounterJobStatistics2--; } @@ -1392,14 +1468,14 @@ buildCounterJobStatistics3--; } -buildUnnamed2492() { +buildUnnamed1570() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2492(core.List<core.String> o) { +checkUnnamed1570(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1410,7 +1486,7 @@ var o = new api.JobStatistics4(); buildCounterJobStatistics4++; if (buildCounterJobStatistics4 < 3) { - o.destinationUriFileCounts = buildUnnamed2492(); + o.destinationUriFileCounts = buildUnnamed1570(); } buildCounterJobStatistics4--; return o; @@ -1419,19 +1495,19 @@ checkJobStatistics4(api.JobStatistics4 o) { buildCounterJobStatistics4++; if (buildCounterJobStatistics4 < 3) { - checkUnnamed2492(o.destinationUriFileCounts); + checkUnnamed1570(o.destinationUriFileCounts); } buildCounterJobStatistics4--; } -buildUnnamed2493() { +buildUnnamed1571() { var o = new core.List<api.ErrorProto>(); o.add(buildErrorProto()); o.add(buildErrorProto()); return o; } -checkUnnamed2493(core.List<api.ErrorProto> o) { +checkUnnamed1571(core.List<api.ErrorProto> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorProto(o[0]); checkErrorProto(o[1]); @@ -1443,7 +1519,7 @@ buildCounterJobStatus++; if (buildCounterJobStatus < 3) { o.errorResult = buildErrorProto(); - o.errors = buildUnnamed2493(); + o.errors = buildUnnamed1571(); o.state = "foo"; } buildCounterJobStatus--; @@ -1454,7 +1530,7 @@ buildCounterJobStatus++; if (buildCounterJobStatus < 3) { checkErrorProto(o.errorResult); - checkUnnamed2493(o.errors); + checkUnnamed1571(o.errors); unittest.expect(o.state, unittest.equals('foo')); } buildCounterJobStatus--; @@ -1516,14 +1592,14 @@ buildCounterProjectListProjects--; } -buildUnnamed2494() { +buildUnnamed1572() { var o = new core.List<api.ProjectListProjects>(); o.add(buildProjectListProjects()); o.add(buildProjectListProjects()); return o; } -checkUnnamed2494(core.List<api.ProjectListProjects> o) { +checkUnnamed1572(core.List<api.ProjectListProjects> o) { unittest.expect(o, unittest.hasLength(2)); checkProjectListProjects(o[0]); checkProjectListProjects(o[1]); @@ -1537,7 +1613,7 @@ o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; - o.projects = buildUnnamed2494(); + o.projects = buildUnnamed1572(); o.totalItems = 42; } buildCounterProjectList--; @@ -1550,7 +1626,7 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2494(o.projects); + checkUnnamed1572(o.projects); unittest.expect(o.totalItems, unittest.equals(42)); } buildCounterProjectList--; @@ -1621,14 +1697,14 @@ buildCounterQueryParameterTypeStructTypes--; } -buildUnnamed2495() { +buildUnnamed1573() { var o = new core.List<api.QueryParameterTypeStructTypes>(); o.add(buildQueryParameterTypeStructTypes()); o.add(buildQueryParameterTypeStructTypes()); return o; } -checkUnnamed2495(core.List<api.QueryParameterTypeStructTypes> o) { +checkUnnamed1573(core.List<api.QueryParameterTypeStructTypes> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameterTypeStructTypes(o[0]); checkQueryParameterTypeStructTypes(o[1]); @@ -1640,7 +1716,7 @@ buildCounterQueryParameterType++; if (buildCounterQueryParameterType < 3) { o.arrayType = buildQueryParameterType(); - o.structTypes = buildUnnamed2495(); + o.structTypes = buildUnnamed1573(); o.type = "foo"; } buildCounterQueryParameterType--; @@ -1651,33 +1727,33 @@ buildCounterQueryParameterType++; if (buildCounterQueryParameterType < 3) { checkQueryParameterType(o.arrayType); - checkUnnamed2495(o.structTypes); + checkUnnamed1573(o.structTypes); unittest.expect(o.type, unittest.equals('foo')); } buildCounterQueryParameterType--; } -buildUnnamed2496() { +buildUnnamed1574() { var o = new core.List<api.QueryParameterValue>(); o.add(buildQueryParameterValue()); o.add(buildQueryParameterValue()); return o; } -checkUnnamed2496(core.List<api.QueryParameterValue> o) { +checkUnnamed1574(core.List<api.QueryParameterValue> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameterValue(o[0]); checkQueryParameterValue(o[1]); } -buildUnnamed2497() { +buildUnnamed1575() { var o = new core.Map<core.String, api.QueryParameterValue>(); o["x"] = buildQueryParameterValue(); o["y"] = buildQueryParameterValue(); return o; } -checkUnnamed2497(core.Map<core.String, api.QueryParameterValue> o) { +checkUnnamed1575(core.Map<core.String, api.QueryParameterValue> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameterValue(o["x"]); checkQueryParameterValue(o["y"]); @@ -1688,8 +1764,8 @@ var o = new api.QueryParameterValue(); buildCounterQueryParameterValue++; if (buildCounterQueryParameterValue < 3) { - o.arrayValues = buildUnnamed2496(); - o.structValues = buildUnnamed2497(); + o.arrayValues = buildUnnamed1574(); + o.structValues = buildUnnamed1575(); o.value = "foo"; } buildCounterQueryParameterValue--; @@ -1699,21 +1775,21 @@ checkQueryParameterValue(api.QueryParameterValue o) { buildCounterQueryParameterValue++; if (buildCounterQueryParameterValue < 3) { - checkUnnamed2496(o.arrayValues); - checkUnnamed2497(o.structValues); + checkUnnamed1574(o.arrayValues); + checkUnnamed1575(o.structValues); unittest.expect(o.value, unittest.equals('foo')); } buildCounterQueryParameterValue--; } -buildUnnamed2498() { +buildUnnamed1576() { var o = new core.List<api.QueryParameter>(); o.add(buildQueryParameter()); o.add(buildQueryParameter()); return o; } -checkUnnamed2498(core.List<api.QueryParameter> o) { +checkUnnamed1576(core.List<api.QueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameter(o[0]); checkQueryParameter(o[1]); @@ -1732,7 +1808,7 @@ o.parameterMode = "foo"; o.preserveNulls = true; o.query = "foo"; - o.queryParameters = buildUnnamed2498(); + o.queryParameters = buildUnnamed1576(); o.timeoutMs = 42; o.useLegacySql = true; o.useQueryCache = true; @@ -1752,7 +1828,7 @@ unittest.expect(o.parameterMode, unittest.equals('foo')); unittest.expect(o.preserveNulls, unittest.isTrue); unittest.expect(o.query, unittest.equals('foo')); - checkUnnamed2498(o.queryParameters); + checkUnnamed1576(o.queryParameters); unittest.expect(o.timeoutMs, unittest.equals(42)); unittest.expect(o.useLegacySql, unittest.isTrue); unittest.expect(o.useQueryCache, unittest.isTrue); @@ -1760,27 +1836,27 @@ buildCounterQueryRequest--; } -buildUnnamed2499() { +buildUnnamed1577() { var o = new core.List<api.ErrorProto>(); o.add(buildErrorProto()); o.add(buildErrorProto()); return o; } -checkUnnamed2499(core.List<api.ErrorProto> o) { +checkUnnamed1577(core.List<api.ErrorProto> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorProto(o[0]); checkErrorProto(o[1]); } -buildUnnamed2500() { +buildUnnamed1578() { var o = new core.List<api.TableRow>(); o.add(buildTableRow()); o.add(buildTableRow()); return o; } -checkUnnamed2500(core.List<api.TableRow> o) { +checkUnnamed1578(core.List<api.TableRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableRow(o[0]); checkTableRow(o[1]); @@ -1792,13 +1868,13 @@ buildCounterQueryResponse++; if (buildCounterQueryResponse < 3) { o.cacheHit = true; - o.errors = buildUnnamed2499(); + o.errors = buildUnnamed1577(); o.jobComplete = true; o.jobReference = buildJobReference(); o.kind = "foo"; o.numDmlAffectedRows = "foo"; o.pageToken = "foo"; - o.rows = buildUnnamed2500(); + o.rows = buildUnnamed1578(); o.schema = buildTableSchema(); o.totalBytesProcessed = "foo"; o.totalRows = "foo"; @@ -1811,13 +1887,13 @@ buildCounterQueryResponse++; if (buildCounterQueryResponse < 3) { unittest.expect(o.cacheHit, unittest.isTrue); - checkUnnamed2499(o.errors); + checkUnnamed1577(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')); - checkUnnamed2500(o.rows); + checkUnnamed1578(o.rows); checkTableSchema(o.schema); unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); unittest.expect(o.totalRows, unittest.equals('foo')); @@ -1830,10 +1906,10 @@ var o = new api.QueryTimelineSample(); buildCounterQueryTimelineSample++; if (buildCounterQueryTimelineSample < 3) { - o.activeInputs = "foo"; - o.completedInputs = "foo"; + o.activeUnits = "foo"; + o.completedUnits = "foo"; o.elapsedMs = "foo"; - o.pendingInputs = "foo"; + o.pendingUnits = "foo"; o.totalSlotMs = "foo"; } buildCounterQueryTimelineSample--; @@ -1843,10 +1919,10 @@ checkQueryTimelineSample(api.QueryTimelineSample o) { buildCounterQueryTimelineSample++; if (buildCounterQueryTimelineSample < 3) { - unittest.expect(o.activeInputs, unittest.equals('foo')); - unittest.expect(o.completedInputs, unittest.equals('foo')); + unittest.expect(o.activeUnits, unittest.equals('foo')); + unittest.expect(o.completedUnits, unittest.equals('foo')); unittest.expect(o.elapsedMs, unittest.equals('foo')); - unittest.expect(o.pendingInputs, unittest.equals('foo')); + unittest.expect(o.pendingUnits, unittest.equals('foo')); unittest.expect(o.totalSlotMs, unittest.equals('foo')); } buildCounterQueryTimelineSample--; @@ -1875,14 +1951,14 @@ buildCounterStreamingbuffer--; } -buildUnnamed2501() { +buildUnnamed1579() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2501(core.Map<core.String, core.String> o) { +checkUnnamed1579(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1893,6 +1969,7 @@ var o = new api.Table(); buildCounterTable++; if (buildCounterTable < 3) { + o.clustering = buildClustering(); o.creationTime = "foo"; o.description = "foo"; o.encryptionConfiguration = buildEncryptionConfiguration(); @@ -1902,7 +1979,7 @@ o.friendlyName = "foo"; o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed2501(); + o.labels = buildUnnamed1579(); o.lastModifiedTime = "foo"; o.location = "foo"; o.numBytes = "foo"; @@ -1923,6 +2000,7 @@ checkTable(api.Table o) { buildCounterTable++; if (buildCounterTable < 3) { + checkClustering(o.clustering); unittest.expect(o.creationTime, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); checkEncryptionConfiguration(o.encryptionConfiguration); @@ -1932,7 +2010,7 @@ unittest.expect(o.friendlyName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2501(o.labels); + checkUnnamed1579(o.labels); unittest.expect(o.lastModifiedTime, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.numBytes, unittest.equals('foo')); @@ -1997,14 +2075,14 @@ buildCounterTableDataInsertAllRequestRows--; } -buildUnnamed2502() { +buildUnnamed1580() { var o = new core.List<api.TableDataInsertAllRequestRows>(); o.add(buildTableDataInsertAllRequestRows()); o.add(buildTableDataInsertAllRequestRows()); return o; } -checkUnnamed2502(core.List<api.TableDataInsertAllRequestRows> o) { +checkUnnamed1580(core.List<api.TableDataInsertAllRequestRows> o) { unittest.expect(o, unittest.hasLength(2)); checkTableDataInsertAllRequestRows(o[0]); checkTableDataInsertAllRequestRows(o[1]); @@ -2017,7 +2095,7 @@ if (buildCounterTableDataInsertAllRequest < 3) { o.ignoreUnknownValues = true; o.kind = "foo"; - o.rows = buildUnnamed2502(); + o.rows = buildUnnamed1580(); o.skipInvalidRows = true; o.templateSuffix = "foo"; } @@ -2030,21 +2108,21 @@ if (buildCounterTableDataInsertAllRequest < 3) { unittest.expect(o.ignoreUnknownValues, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2502(o.rows); + checkUnnamed1580(o.rows); unittest.expect(o.skipInvalidRows, unittest.isTrue); unittest.expect(o.templateSuffix, unittest.equals('foo')); } buildCounterTableDataInsertAllRequest--; } -buildUnnamed2503() { +buildUnnamed1581() { var o = new core.List<api.ErrorProto>(); o.add(buildErrorProto()); o.add(buildErrorProto()); return o; } -checkUnnamed2503(core.List<api.ErrorProto> o) { +checkUnnamed1581(core.List<api.ErrorProto> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorProto(o[0]); checkErrorProto(o[1]); @@ -2055,7 +2133,7 @@ var o = new api.TableDataInsertAllResponseInsertErrors(); buildCounterTableDataInsertAllResponseInsertErrors++; if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { - o.errors = buildUnnamed2503(); + o.errors = buildUnnamed1581(); o.index = 42; } buildCounterTableDataInsertAllResponseInsertErrors--; @@ -2066,20 +2144,20 @@ api.TableDataInsertAllResponseInsertErrors o) { buildCounterTableDataInsertAllResponseInsertErrors++; if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { - checkUnnamed2503(o.errors); + checkUnnamed1581(o.errors); unittest.expect(o.index, unittest.equals(42)); } buildCounterTableDataInsertAllResponseInsertErrors--; } -buildUnnamed2504() { +buildUnnamed1582() { var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); o.add(buildTableDataInsertAllResponseInsertErrors()); o.add(buildTableDataInsertAllResponseInsertErrors()); return o; } -checkUnnamed2504(core.List<api.TableDataInsertAllResponseInsertErrors> o) { +checkUnnamed1582(core.List<api.TableDataInsertAllResponseInsertErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkTableDataInsertAllResponseInsertErrors(o[0]); checkTableDataInsertAllResponseInsertErrors(o[1]); @@ -2090,7 +2168,7 @@ var o = new api.TableDataInsertAllResponse(); buildCounterTableDataInsertAllResponse++; if (buildCounterTableDataInsertAllResponse < 3) { - o.insertErrors = buildUnnamed2504(); + o.insertErrors = buildUnnamed1582(); o.kind = "foo"; } buildCounterTableDataInsertAllResponse--; @@ -2100,20 +2178,20 @@ checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { buildCounterTableDataInsertAllResponse++; if (buildCounterTableDataInsertAllResponse < 3) { - checkUnnamed2504(o.insertErrors); + checkUnnamed1582(o.insertErrors); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTableDataInsertAllResponse--; } -buildUnnamed2505() { +buildUnnamed1583() { var o = new core.List<api.TableRow>(); o.add(buildTableRow()); o.add(buildTableRow()); return o; } -checkUnnamed2505(core.List<api.TableRow> o) { +checkUnnamed1583(core.List<api.TableRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableRow(o[0]); checkTableRow(o[1]); @@ -2127,7 +2205,7 @@ o.etag = "foo"; o.kind = "foo"; o.pageToken = "foo"; - o.rows = buildUnnamed2505(); + o.rows = buildUnnamed1583(); o.totalRows = "foo"; } buildCounterTableDataList--; @@ -2140,20 +2218,20 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed2505(o.rows); + checkUnnamed1583(o.rows); unittest.expect(o.totalRows, unittest.equals('foo')); } buildCounterTableDataList--; } -buildUnnamed2506() { +buildUnnamed1584() { var o = new core.List<api.TableFieldSchema>(); o.add(buildTableFieldSchema()); o.add(buildTableFieldSchema()); return o; } -checkUnnamed2506(core.List<api.TableFieldSchema> o) { +checkUnnamed1584(core.List<api.TableFieldSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkTableFieldSchema(o[0]); checkTableFieldSchema(o[1]); @@ -2165,7 +2243,7 @@ buildCounterTableFieldSchema++; if (buildCounterTableFieldSchema < 3) { o.description = "foo"; - o.fields = buildUnnamed2506(); + o.fields = buildUnnamed1584(); o.mode = "foo"; o.name = "foo"; o.type = "foo"; @@ -2178,7 +2256,7 @@ buildCounterTableFieldSchema++; if (buildCounterTableFieldSchema < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2506(o.fields); + checkUnnamed1584(o.fields); unittest.expect(o.mode, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -2186,14 +2264,14 @@ buildCounterTableFieldSchema--; } -buildUnnamed2507() { +buildUnnamed1585() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2507(core.Map<core.String, core.String> o) { +checkUnnamed1585(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')); @@ -2223,12 +2301,13 @@ var o = new api.TableListTables(); buildCounterTableListTables++; if (buildCounterTableListTables < 3) { + o.clustering = buildClustering(); o.creationTime = "foo"; o.expirationTime = "foo"; o.friendlyName = "foo"; o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed2507(); + o.labels = buildUnnamed1585(); o.tableReference = buildTableReference(); o.timePartitioning = buildTimePartitioning(); o.type = "foo"; @@ -2241,12 +2320,13 @@ checkTableListTables(api.TableListTables o) { buildCounterTableListTables++; if (buildCounterTableListTables < 3) { + checkClustering(o.clustering); unittest.expect(o.creationTime, unittest.equals('foo')); unittest.expect(o.expirationTime, unittest.equals('foo')); unittest.expect(o.friendlyName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2507(o.labels); + checkUnnamed1585(o.labels); checkTableReference(o.tableReference); checkTimePartitioning(o.timePartitioning); unittest.expect(o.type, unittest.equals('foo')); @@ -2255,14 +2335,14 @@ buildCounterTableListTables--; } -buildUnnamed2508() { +buildUnnamed1586() { var o = new core.List<api.TableListTables>(); o.add(buildTableListTables()); o.add(buildTableListTables()); return o; } -checkUnnamed2508(core.List<api.TableListTables> o) { +checkUnnamed1586(core.List<api.TableListTables> o) { unittest.expect(o, unittest.hasLength(2)); checkTableListTables(o[0]); checkTableListTables(o[1]); @@ -2276,7 +2356,7 @@ o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; - o.tables = buildUnnamed2508(); + o.tables = buildUnnamed1586(); o.totalItems = 42; } buildCounterTableList--; @@ -2289,7 +2369,7 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2508(o.tables); + checkUnnamed1586(o.tables); unittest.expect(o.totalItems, unittest.equals(42)); } buildCounterTableList--; @@ -2318,14 +2398,14 @@ buildCounterTableReference--; } -buildUnnamed2509() { +buildUnnamed1587() { var o = new core.List<api.TableCell>(); o.add(buildTableCell()); o.add(buildTableCell()); return o; } -checkUnnamed2509(core.List<api.TableCell> o) { +checkUnnamed1587(core.List<api.TableCell> o) { unittest.expect(o, unittest.hasLength(2)); checkTableCell(o[0]); checkTableCell(o[1]); @@ -2336,7 +2416,7 @@ var o = new api.TableRow(); buildCounterTableRow++; if (buildCounterTableRow < 3) { - o.f = buildUnnamed2509(); + o.f = buildUnnamed1587(); } buildCounterTableRow--; return o; @@ -2345,19 +2425,19 @@ checkTableRow(api.TableRow o) { buildCounterTableRow++; if (buildCounterTableRow < 3) { - checkUnnamed2509(o.f); + checkUnnamed1587(o.f); } buildCounterTableRow--; } -buildUnnamed2510() { +buildUnnamed1588() { var o = new core.List<api.TableFieldSchema>(); o.add(buildTableFieldSchema()); o.add(buildTableFieldSchema()); return o; } -checkUnnamed2510(core.List<api.TableFieldSchema> o) { +checkUnnamed1588(core.List<api.TableFieldSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkTableFieldSchema(o[0]); checkTableFieldSchema(o[1]); @@ -2368,7 +2448,7 @@ var o = new api.TableSchema(); buildCounterTableSchema++; if (buildCounterTableSchema < 3) { - o.fields = buildUnnamed2510(); + o.fields = buildUnnamed1588(); } buildCounterTableSchema--; return o; @@ -2377,7 +2457,7 @@ checkTableSchema(api.TableSchema o) { buildCounterTableSchema++; if (buildCounterTableSchema < 3) { - checkUnnamed2510(o.fields); + checkUnnamed1588(o.fields); } buildCounterTableSchema--; } @@ -2428,14 +2508,14 @@ buildCounterUserDefinedFunctionResource--; } -buildUnnamed2511() { +buildUnnamed1589() { var o = new core.List<api.UserDefinedFunctionResource>(); o.add(buildUserDefinedFunctionResource()); o.add(buildUserDefinedFunctionResource()); return o; } -checkUnnamed2511(core.List<api.UserDefinedFunctionResource> o) { +checkUnnamed1589(core.List<api.UserDefinedFunctionResource> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedFunctionResource(o[0]); checkUserDefinedFunctionResource(o[1]); @@ -2448,7 +2528,7 @@ if (buildCounterViewDefinition < 3) { o.query = "foo"; o.useLegacySql = true; - o.userDefinedFunctionResources = buildUnnamed2511(); + o.userDefinedFunctionResources = buildUnnamed1589(); } buildCounterViewDefinition--; return o; @@ -2459,19 +2539,19 @@ if (buildCounterViewDefinition < 3) { unittest.expect(o.query, unittest.equals('foo')); unittest.expect(o.useLegacySql, unittest.isTrue); - checkUnnamed2511(o.userDefinedFunctionResources); + checkUnnamed1589(o.userDefinedFunctionResources); } buildCounterViewDefinition--; } -buildUnnamed2512() { +buildUnnamed1590() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2512(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')); @@ -2502,6 +2582,14 @@ }); }); + unittest.group("obj-schema-Clustering", () { + unittest.test("to-json--from-json", () { + var o = buildClustering(); + var od = new api.Clustering.fromJson(o.toJson()); + checkClustering(od); + }); + }); + unittest.group("obj-schema-CsvOptions", () { unittest.test("to-json--from-json", () { var o = buildCsvOptions(); @@ -2710,6 +2798,14 @@ }); }); + unittest.group("obj-schema-JobStatistics2ReservationUsage", () { + unittest.test("to-json--from-json", () { + var o = buildJobStatistics2ReservationUsage(); + var od = new api.JobStatistics2ReservationUsage.fromJson(o.toJson()); + checkJobStatistics2ReservationUsage(od); + }); + }); + unittest.group("obj-schema-JobStatistics2", () { unittest.test("to-json--from-json", () { var o = buildJobStatistics2(); @@ -3704,10 +3800,12 @@ api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; var arg_projectId = "foo"; var arg_allUsers = true; + var arg_maxCreationTime = "foo"; var arg_maxResults = 42; + var arg_minCreationTime = "foo"; var arg_pageToken = "foo"; var arg_projection = "foo"; - var arg_stateFilter = buildUnnamed2512(); + var arg_stateFilter = buildUnnamed1590(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3753,8 +3851,12 @@ } unittest.expect( queryMap["allUsers"].first, unittest.equals("$arg_allUsers")); + unittest.expect(queryMap["maxCreationTime"].first, + unittest.equals(arg_maxCreationTime)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["minCreationTime"].first, + unittest.equals(arg_minCreationTime)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( @@ -3772,7 +3874,9 @@ res .list(arg_projectId, allUsers: arg_allUsers, + maxCreationTime: arg_maxCreationTime, maxResults: arg_maxResults, + minCreationTime: arg_minCreationTime, pageToken: arg_pageToken, projection: arg_projection, stateFilter: arg_stateFilter,
diff --git a/generated/googleapis/test/bigquerydatatransfer/v1_test.dart b/generated/googleapis/test/bigquerydatatransfer/v1_test.dart index 7ee2bba..810161c 100644 --- a/generated/googleapis/test/bigquerydatatransfer/v1_test.dart +++ b/generated/googleapis/test/bigquerydatatransfer/v1_test.dart
@@ -84,27 +84,27 @@ buildCounterCheckValidCredsResponse--; } -buildUnnamed905() { +buildUnnamed1342() { var o = new core.List<api.DataSourceParameter>(); o.add(buildDataSourceParameter()); o.add(buildDataSourceParameter()); return o; } -checkUnnamed905(core.List<api.DataSourceParameter> o) { +checkUnnamed1342(core.List<api.DataSourceParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkDataSourceParameter(o[0]); checkDataSourceParameter(o[1]); } -buildUnnamed906() { +buildUnnamed1343() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed906(core.List<core.String> o) { +checkUnnamed1343(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -127,8 +127,8 @@ o.manualRunsDisabled = true; o.minimumScheduleInterval = "foo"; o.name = "foo"; - o.parameters = buildUnnamed905(); - o.scopes = buildUnnamed906(); + o.parameters = buildUnnamed1342(); + o.scopes = buildUnnamed1343(); o.supportsCustomSchedule = true; o.supportsMultipleTransfers = true; o.transferType = "foo"; @@ -153,8 +153,8 @@ unittest.expect(o.manualRunsDisabled, unittest.isTrue); unittest.expect(o.minimumScheduleInterval, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed905(o.parameters); - checkUnnamed906(o.scopes); + checkUnnamed1342(o.parameters); + checkUnnamed1343(o.scopes); unittest.expect(o.supportsCustomSchedule, unittest.isTrue); unittest.expect(o.supportsMultipleTransfers, unittest.isTrue); unittest.expect(o.transferType, unittest.equals('foo')); @@ -163,27 +163,27 @@ buildCounterDataSource--; } -buildUnnamed907() { +buildUnnamed1344() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed907(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')); } -buildUnnamed908() { +buildUnnamed1345() { var o = new core.List<api.DataSourceParameter>(); o.add(buildDataSourceParameter()); o.add(buildDataSourceParameter()); return o; } -checkUnnamed908(core.List<api.DataSourceParameter> o) { +checkUnnamed1345(core.List<api.DataSourceParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkDataSourceParameter(o[0]); checkDataSourceParameter(o[1]); @@ -194,10 +194,10 @@ var o = new api.DataSourceParameter(); buildCounterDataSourceParameter++; if (buildCounterDataSourceParameter < 3) { - o.allowedValues = buildUnnamed907(); + o.allowedValues = buildUnnamed1344(); o.description = "foo"; o.displayName = "foo"; - o.fields = buildUnnamed908(); + o.fields = buildUnnamed1345(); o.immutable = true; o.maxValue = 42.0; o.minValue = 42.0; @@ -217,10 +217,10 @@ checkDataSourceParameter(api.DataSourceParameter o) { buildCounterDataSourceParameter++; if (buildCounterDataSourceParameter < 3) { - checkUnnamed907(o.allowedValues); + checkUnnamed1344(o.allowedValues); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed908(o.fields); + checkUnnamed1345(o.fields); unittest.expect(o.immutable, unittest.isTrue); unittest.expect(o.maxValue, unittest.equals(42.0)); unittest.expect(o.minValue, unittest.equals(42.0)); @@ -251,14 +251,14 @@ buildCounterEmpty--; } -buildUnnamed909() { +buildUnnamed1346() { var o = new core.List<api.DataSource>(); o.add(buildDataSource()); o.add(buildDataSource()); return o; } -checkUnnamed909(core.List<api.DataSource> o) { +checkUnnamed1346(core.List<api.DataSource> o) { unittest.expect(o, unittest.hasLength(2)); checkDataSource(o[0]); checkDataSource(o[1]); @@ -269,7 +269,7 @@ var o = new api.ListDataSourcesResponse(); buildCounterListDataSourcesResponse++; if (buildCounterListDataSourcesResponse < 3) { - o.dataSources = buildUnnamed909(); + o.dataSources = buildUnnamed1346(); o.nextPageToken = "foo"; } buildCounterListDataSourcesResponse--; @@ -279,20 +279,20 @@ checkListDataSourcesResponse(api.ListDataSourcesResponse o) { buildCounterListDataSourcesResponse++; if (buildCounterListDataSourcesResponse < 3) { - checkUnnamed909(o.dataSources); + checkUnnamed1346(o.dataSources); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDataSourcesResponse--; } -buildUnnamed910() { +buildUnnamed1347() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed910(core.List<api.Location> o) { +checkUnnamed1347(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -303,7 +303,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed910(); + o.locations = buildUnnamed1347(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -313,20 +313,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed910(o.locations); + checkUnnamed1347(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed911() { +buildUnnamed1348() { var o = new core.List<api.TransferConfig>(); o.add(buildTransferConfig()); o.add(buildTransferConfig()); return o; } -checkUnnamed911(core.List<api.TransferConfig> o) { +checkUnnamed1348(core.List<api.TransferConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkTransferConfig(o[0]); checkTransferConfig(o[1]); @@ -338,7 +338,7 @@ buildCounterListTransferConfigsResponse++; if (buildCounterListTransferConfigsResponse < 3) { o.nextPageToken = "foo"; - o.transferConfigs = buildUnnamed911(); + o.transferConfigs = buildUnnamed1348(); } buildCounterListTransferConfigsResponse--; return o; @@ -348,19 +348,19 @@ buildCounterListTransferConfigsResponse++; if (buildCounterListTransferConfigsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed911(o.transferConfigs); + checkUnnamed1348(o.transferConfigs); } buildCounterListTransferConfigsResponse--; } -buildUnnamed912() { +buildUnnamed1349() { var o = new core.List<api.TransferMessage>(); o.add(buildTransferMessage()); o.add(buildTransferMessage()); return o; } -checkUnnamed912(core.List<api.TransferMessage> o) { +checkUnnamed1349(core.List<api.TransferMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkTransferMessage(o[0]); checkTransferMessage(o[1]); @@ -372,7 +372,7 @@ buildCounterListTransferLogsResponse++; if (buildCounterListTransferLogsResponse < 3) { o.nextPageToken = "foo"; - o.transferMessages = buildUnnamed912(); + o.transferMessages = buildUnnamed1349(); } buildCounterListTransferLogsResponse--; return o; @@ -382,19 +382,19 @@ buildCounterListTransferLogsResponse++; if (buildCounterListTransferLogsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed912(o.transferMessages); + checkUnnamed1349(o.transferMessages); } buildCounterListTransferLogsResponse--; } -buildUnnamed913() { +buildUnnamed1350() { var o = new core.List<api.TransferRun>(); o.add(buildTransferRun()); o.add(buildTransferRun()); return o; } -checkUnnamed913(core.List<api.TransferRun> o) { +checkUnnamed1350(core.List<api.TransferRun> o) { unittest.expect(o, unittest.hasLength(2)); checkTransferRun(o[0]); checkTransferRun(o[1]); @@ -406,7 +406,7 @@ buildCounterListTransferRunsResponse++; if (buildCounterListTransferRunsResponse < 3) { o.nextPageToken = "foo"; - o.transferRuns = buildUnnamed913(); + o.transferRuns = buildUnnamed1350(); } buildCounterListTransferRunsResponse--; return o; @@ -416,25 +416,25 @@ buildCounterListTransferRunsResponse++; if (buildCounterListTransferRunsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed913(o.transferRuns); + checkUnnamed1350(o.transferRuns); } buildCounterListTransferRunsResponse--; } -buildUnnamed914() { +buildUnnamed1351() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed914(core.Map<core.String, core.String> o) { +checkUnnamed1351(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')); } -buildUnnamed915() { +buildUnnamed1352() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -449,7 +449,7 @@ return o; } -checkUnnamed915(core.Map<core.String, core.Object> o) { +checkUnnamed1352(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)); @@ -468,9 +468,10 @@ var o = new api.Location(); buildCounterLocation++; if (buildCounterLocation < 3) { - o.labels = buildUnnamed914(); + o.displayName = "foo"; + o.labels = buildUnnamed1351(); o.locationId = "foo"; - o.metadata = buildUnnamed915(); + o.metadata = buildUnnamed1352(); o.name = "foo"; } buildCounterLocation--; @@ -480,9 +481,10 @@ checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { - checkUnnamed914(o.labels); + unittest.expect(o.displayName, unittest.equals('foo')); + checkUnnamed1351(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed915(o.metadata); + checkUnnamed1352(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -509,14 +511,14 @@ buildCounterScheduleTransferRunsRequest--; } -buildUnnamed916() { +buildUnnamed1353() { var o = new core.List<api.TransferRun>(); o.add(buildTransferRun()); o.add(buildTransferRun()); return o; } -checkUnnamed916(core.List<api.TransferRun> o) { +checkUnnamed1353(core.List<api.TransferRun> o) { unittest.expect(o, unittest.hasLength(2)); checkTransferRun(o[0]); checkTransferRun(o[1]); @@ -527,7 +529,7 @@ var o = new api.ScheduleTransferRunsResponse(); buildCounterScheduleTransferRunsResponse++; if (buildCounterScheduleTransferRunsResponse < 3) { - o.runs = buildUnnamed916(); + o.runs = buildUnnamed1353(); } buildCounterScheduleTransferRunsResponse--; return o; @@ -536,12 +538,12 @@ checkScheduleTransferRunsResponse(api.ScheduleTransferRunsResponse o) { buildCounterScheduleTransferRunsResponse++; if (buildCounterScheduleTransferRunsResponse < 3) { - checkUnnamed916(o.runs); + checkUnnamed1353(o.runs); } buildCounterScheduleTransferRunsResponse--; } -buildUnnamed917() { +buildUnnamed1354() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -556,7 +558,7 @@ return o; } -checkUnnamed917(core.Map<core.String, core.Object> o) { +checkUnnamed1354(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)); @@ -570,17 +572,17 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed918() { +buildUnnamed1355() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed917()); - o.add(buildUnnamed917()); + o.add(buildUnnamed1354()); + o.add(buildUnnamed1354()); return o; } -checkUnnamed918(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1355(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed917(o[0]); - checkUnnamed917(o[1]); + checkUnnamed1354(o[0]); + checkUnnamed1354(o[1]); } core.int buildCounterStatus = 0; @@ -589,7 +591,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed918(); + o.details = buildUnnamed1355(); o.message = "foo"; } buildCounterStatus--; @@ -600,13 +602,13 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed918(o.details); + checkUnnamed1355(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed919() { +buildUnnamed1356() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -621,7 +623,7 @@ return o; } -checkUnnamed919(core.Map<core.String, core.Object> o) { +checkUnnamed1356(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)); @@ -648,7 +650,7 @@ o.displayName = "foo"; o.name = "foo"; o.nextRunTime = "foo"; - o.params = buildUnnamed919(); + o.params = buildUnnamed1356(); o.schedule = "foo"; o.state = "foo"; o.updateTime = "foo"; @@ -669,7 +671,7 @@ unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nextRunTime, unittest.equals('foo')); - checkUnnamed919(o.params); + checkUnnamed1356(o.params); unittest.expect(o.schedule, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.updateTime, unittest.equals('foo')); @@ -701,7 +703,7 @@ buildCounterTransferMessage--; } -buildUnnamed920() { +buildUnnamed1357() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -716,7 +718,7 @@ return o; } -checkUnnamed920(core.Map<core.String, core.Object> o) { +checkUnnamed1357(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)); @@ -740,7 +742,7 @@ o.endTime = "foo"; o.errorStatus = buildStatus(); o.name = "foo"; - o.params = buildUnnamed920(); + o.params = buildUnnamed1357(); o.runTime = "foo"; o.schedule = "foo"; o.scheduleTime = "foo"; @@ -761,7 +763,7 @@ unittest.expect(o.endTime, unittest.equals('foo')); checkStatus(o.errorStatus); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed920(o.params); + checkUnnamed1357(o.params); unittest.expect(o.runTime, unittest.equals('foo')); unittest.expect(o.schedule, unittest.equals('foo')); unittest.expect(o.scheduleTime, unittest.equals('foo')); @@ -773,79 +775,79 @@ buildCounterTransferRun--; } -buildUnnamed921() { +buildUnnamed1358() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed921(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')); } -buildUnnamed922() { +buildUnnamed1359() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed922(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')); } -buildUnnamed923() { +buildUnnamed1360() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed923(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')); } -buildUnnamed924() { +buildUnnamed1361() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed924(core.List<core.String> o) { +checkUnnamed1361(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed925() { +buildUnnamed1362() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed925(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')); } -buildUnnamed926() { +buildUnnamed1363() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed926(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')); @@ -1102,8 +1104,8 @@ api.ProjectsDataSourcesResourceApi res = new api.BigquerydatatransferApi(mock).projects.dataSources; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1136,10 +1138,10 @@ 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1150,8 +1152,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDataSourcesResponse(response); @@ -1630,9 +1632,9 @@ .locations .transferConfigs; var arg_parent = "foo"; + var arg_dataSourceIds = buildUnnamed1358(); var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_dataSourceIds = buildUnnamed921(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1666,11 +1668,11 @@ } } unittest.expect( + queryMap["dataSourceIds"], unittest.equals(arg_dataSourceIds)); + unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect( - queryMap["dataSourceIds"], unittest.equals(arg_dataSourceIds)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1681,9 +1683,9 @@ }), true); res .list(arg_parent, + dataSourceIds: arg_dataSourceIds, pageToken: arg_pageToken, pageSize: arg_pageSize, - dataSourceIds: arg_dataSourceIds, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListTransferConfigsResponse(response); @@ -1699,8 +1701,8 @@ .transferConfigs; var arg_request = buildTransferConfig(); var arg_name = "foo"; - var arg_authorizationCode = "foo"; var arg_updateMask = "foo"; + var arg_authorizationCode = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TransferConfig.fromJson(json); @@ -1736,10 +1738,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["authorizationCode"].first, - unittest.equals(arg_authorizationCode)); unittest.expect( queryMap["updateMask"].first, unittest.equals(arg_updateMask)); + unittest.expect(queryMap["authorizationCode"].first, + unittest.equals(arg_authorizationCode)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1750,8 +1752,8 @@ }), true); res .patch(arg_request, arg_name, - authorizationCode: arg_authorizationCode, updateMask: arg_updateMask, + authorizationCode: arg_authorizationCode, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTransferConfig(response); @@ -1942,7 +1944,7 @@ .runs; var arg_parent = "foo"; var arg_pageToken = "foo"; - var arg_states = buildUnnamed922(); + var arg_states = buildUnnamed1359(); var arg_pageSize = 42; var arg_runAttempt = "foo"; var arg_$fields = "foo"; @@ -2020,7 +2022,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_messageTypes = buildUnnamed923(); + var arg_messageTypes = buildUnnamed1360(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2249,9 +2251,9 @@ api.ProjectsTransferConfigsResourceApi res = new api.BigquerydatatransferApi(mock).projects.transferConfigs; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_dataSourceIds = buildUnnamed924(); + var arg_dataSourceIds = buildUnnamed1361(); + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2284,12 +2286,12 @@ 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["dataSourceIds"], unittest.equals(arg_dataSourceIds)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2300,9 +2302,9 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, dataSourceIds: arg_dataSourceIds, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListTransferConfigsResponse(response); @@ -2315,8 +2317,8 @@ new api.BigquerydatatransferApi(mock).projects.transferConfigs; var arg_request = buildTransferConfig(); var arg_name = "foo"; - var arg_updateMask = "foo"; var arg_authorizationCode = "foo"; + var arg_updateMask = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TransferConfig.fromJson(json); @@ -2352,10 +2354,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["updateMask"].first, unittest.equals(arg_updateMask)); unittest.expect(queryMap["authorizationCode"].first, unittest.equals(arg_authorizationCode)); + unittest.expect( + queryMap["updateMask"].first, unittest.equals(arg_updateMask)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2366,8 +2368,8 @@ }), true); res .patch(arg_request, arg_name, - updateMask: arg_updateMask, authorizationCode: arg_authorizationCode, + updateMask: arg_updateMask, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTransferConfig(response); @@ -2542,7 +2544,7 @@ new api.BigquerydatatransferApi(mock).projects.transferConfigs.runs; var arg_parent = "foo"; var arg_pageToken = "foo"; - var arg_states = buildUnnamed925(); + var arg_states = buildUnnamed1362(); var arg_pageSize = 42; var arg_runAttempt = "foo"; var arg_$fields = "foo"; @@ -2618,7 +2620,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_messageTypes = buildUnnamed926(); + var arg_messageTypes = buildUnnamed1363(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path;
diff --git a/generated/googleapis/test/blogger/v3_test.dart b/generated/googleapis/test/blogger/v3_test.dart index f52d45a..a04a504 100644 --- a/generated/googleapis/test/blogger/v3_test.dart +++ b/generated/googleapis/test/blogger/v3_test.dart
@@ -94,14 +94,14 @@ buildCounterBlogPages--; } -buildUnnamed204() { +buildUnnamed1216() { var o = new core.List<api.Post>(); o.add(buildPost()); o.add(buildPost()); return o; } -checkUnnamed204(core.List<api.Post> o) { +checkUnnamed1216(core.List<api.Post> o) { unittest.expect(o, unittest.hasLength(2)); checkPost(o[0]); checkPost(o[1]); @@ -112,7 +112,7 @@ var o = new api.BlogPosts(); buildCounterBlogPosts++; if (buildCounterBlogPosts < 3) { - o.items = buildUnnamed204(); + o.items = buildUnnamed1216(); o.selfLink = "foo"; o.totalItems = 42; } @@ -123,7 +123,7 @@ checkBlogPosts(api.BlogPosts o) { buildCounterBlogPosts++; if (buildCounterBlogPosts < 3) { - checkUnnamed204(o.items); + checkUnnamed1216(o.items); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); } @@ -175,27 +175,27 @@ buildCounterBlog--; } -buildUnnamed205() { +buildUnnamed1217() { var o = new core.List<api.BlogUserInfo>(); o.add(buildBlogUserInfo()); o.add(buildBlogUserInfo()); return o; } -checkUnnamed205(core.List<api.BlogUserInfo> o) { +checkUnnamed1217(core.List<api.BlogUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkBlogUserInfo(o[0]); checkBlogUserInfo(o[1]); } -buildUnnamed206() { +buildUnnamed1218() { var o = new core.List<api.Blog>(); o.add(buildBlog()); o.add(buildBlog()); return o; } -checkUnnamed206(core.List<api.Blog> o) { +checkUnnamed1218(core.List<api.Blog> o) { unittest.expect(o, unittest.hasLength(2)); checkBlog(o[0]); checkBlog(o[1]); @@ -206,8 +206,8 @@ var o = new api.BlogList(); buildCounterBlogList++; if (buildCounterBlogList < 3) { - o.blogUserInfos = buildUnnamed205(); - o.items = buildUnnamed206(); + o.blogUserInfos = buildUnnamed1217(); + o.items = buildUnnamed1218(); o.kind = "foo"; } buildCounterBlogList--; @@ -217,8 +217,8 @@ checkBlogList(api.BlogList o) { buildCounterBlogList++; if (buildCounterBlogList < 3) { - checkUnnamed205(o.blogUserInfos); - checkUnnamed206(o.items); + checkUnnamed1217(o.blogUserInfos); + checkUnnamed1218(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBlogList--; @@ -418,14 +418,14 @@ buildCounterComment--; } -buildUnnamed207() { +buildUnnamed1219() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed207(core.List<api.Comment> o) { +checkUnnamed1219(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -437,7 +437,7 @@ buildCounterCommentList++; if (buildCounterCommentList < 3) { o.etag = "foo"; - o.items = buildUnnamed207(); + o.items = buildUnnamed1219(); o.kind = "foo"; o.nextPageToken = "foo"; o.prevPageToken = "foo"; @@ -450,7 +450,7 @@ buildCounterCommentList++; if (buildCounterCommentList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed207(o.items); + checkUnnamed1219(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.prevPageToken, unittest.equals('foo')); @@ -564,14 +564,14 @@ buildCounterPage--; } -buildUnnamed208() { +buildUnnamed1220() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed208(core.List<api.Page> o) { +checkUnnamed1220(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -583,7 +583,7 @@ buildCounterPageList++; if (buildCounterPageList < 3) { o.etag = "foo"; - o.items = buildUnnamed208(); + o.items = buildUnnamed1220(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -595,7 +595,7 @@ buildCounterPageList++; if (buildCounterPageList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed208(o.items); + checkUnnamed1220(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -623,14 +623,14 @@ buildCounterPageviewsCounts--; } -buildUnnamed209() { +buildUnnamed1221() { var o = new core.List<api.PageviewsCounts>(); o.add(buildPageviewsCounts()); o.add(buildPageviewsCounts()); return o; } -checkUnnamed209(core.List<api.PageviewsCounts> o) { +checkUnnamed1221(core.List<api.PageviewsCounts> o) { unittest.expect(o, unittest.hasLength(2)); checkPageviewsCounts(o[0]); checkPageviewsCounts(o[1]); @@ -642,7 +642,7 @@ buildCounterPageviews++; if (buildCounterPageviews < 3) { o.blogId = "foo"; - o.counts = buildUnnamed209(); + o.counts = buildUnnamed1221(); o.kind = "foo"; } buildCounterPageviews--; @@ -653,7 +653,7 @@ buildCounterPageviews++; if (buildCounterPageviews < 3) { unittest.expect(o.blogId, unittest.equals('foo')); - checkUnnamed209(o.counts); + checkUnnamed1221(o.counts); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPageviews--; @@ -741,27 +741,27 @@ buildCounterPostImages--; } -buildUnnamed210() { +buildUnnamed1222() { var o = new core.List<api.PostImages>(); o.add(buildPostImages()); o.add(buildPostImages()); return o; } -checkUnnamed210(core.List<api.PostImages> o) { +checkUnnamed1222(core.List<api.PostImages> o) { unittest.expect(o, unittest.hasLength(2)); checkPostImages(o[0]); checkPostImages(o[1]); } -buildUnnamed211() { +buildUnnamed1223() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed211(core.List<core.String> o) { +checkUnnamed1223(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -792,14 +792,14 @@ buildCounterPostLocation--; } -buildUnnamed212() { +buildUnnamed1224() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed212(core.List<api.Comment> o) { +checkUnnamed1224(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -810,7 +810,7 @@ var o = new api.PostReplies(); buildCounterPostReplies++; if (buildCounterPostReplies < 3) { - o.items = buildUnnamed212(); + o.items = buildUnnamed1224(); o.selfLink = "foo"; o.totalItems = "foo"; } @@ -821,7 +821,7 @@ checkPostReplies(api.PostReplies o) { buildCounterPostReplies++; if (buildCounterPostReplies < 3) { - checkUnnamed212(o.items); + checkUnnamed1224(o.items); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals('foo')); } @@ -839,9 +839,9 @@ o.customMetaData = "foo"; o.etag = "foo"; o.id = "foo"; - o.images = buildUnnamed210(); + o.images = buildUnnamed1222(); o.kind = "foo"; - o.labels = buildUnnamed211(); + o.labels = buildUnnamed1223(); o.location = buildPostLocation(); o.published = core.DateTime.parse("2002-02-27T14:01:02"); o.readerComments = "foo"; @@ -866,9 +866,9 @@ unittest.expect(o.customMetaData, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed210(o.images); + checkUnnamed1222(o.images); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed211(o.labels); + checkUnnamed1223(o.labels); checkPostLocation(o.location); unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -885,14 +885,14 @@ buildCounterPost--; } -buildUnnamed213() { +buildUnnamed1225() { var o = new core.List<api.Post>(); o.add(buildPost()); o.add(buildPost()); return o; } -checkUnnamed213(core.List<api.Post> o) { +checkUnnamed1225(core.List<api.Post> o) { unittest.expect(o, unittest.hasLength(2)); checkPost(o[0]); checkPost(o[1]); @@ -904,7 +904,7 @@ buildCounterPostList++; if (buildCounterPostList < 3) { o.etag = "foo"; - o.items = buildUnnamed213(); + o.items = buildUnnamed1225(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -916,7 +916,7 @@ buildCounterPostList++; if (buildCounterPostList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed213(o.items); + checkUnnamed1225(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -973,14 +973,14 @@ buildCounterPostUserInfo--; } -buildUnnamed214() { +buildUnnamed1226() { var o = new core.List<api.PostUserInfo>(); o.add(buildPostUserInfo()); o.add(buildPostUserInfo()); return o; } -checkUnnamed214(core.List<api.PostUserInfo> o) { +checkUnnamed1226(core.List<api.PostUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkPostUserInfo(o[0]); checkPostUserInfo(o[1]); @@ -991,7 +991,7 @@ var o = new api.PostUserInfosList(); buildCounterPostUserInfosList++; if (buildCounterPostUserInfosList < 3) { - o.items = buildUnnamed214(); + o.items = buildUnnamed1226(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1002,7 +1002,7 @@ checkPostUserInfosList(api.PostUserInfosList o) { buildCounterPostUserInfosList++; if (buildCounterPostUserInfosList < 3) { - checkUnnamed214(o.items); + checkUnnamed1226(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1087,105 +1087,105 @@ buildCounterUser--; } -buildUnnamed215() { +buildUnnamed1227() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed215(core.List<core.String> o) { +checkUnnamed1227(core.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() { +buildUnnamed1228() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed216(core.List<core.String> o) { +checkUnnamed1228(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed217() { +buildUnnamed1229() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed217(core.List<core.String> o) { +checkUnnamed1229(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed218() { +buildUnnamed1230() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed218(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')); } -buildUnnamed219() { +buildUnnamed1231() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed219(core.List<core.String> o) { +checkUnnamed1231(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed220() { +buildUnnamed1232() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed220(core.List<core.String> o) { +checkUnnamed1232(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed221() { +buildUnnamed1233() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed221(core.List<core.String> o) { +checkUnnamed1233(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed222() { +buildUnnamed1234() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed222(core.List<core.String> o) { +checkUnnamed1234(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1668,8 +1668,8 @@ api.BlogsResourceApi res = new api.BloggerApi(mock).blogs; var arg_userId = "foo"; var arg_fetchUserInfo = true; - var arg_role = buildUnnamed215(); - var arg_status = buildUnnamed216(); + var arg_role = buildUnnamed1227(); + var arg_status = buildUnnamed1228(); var arg_view = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -1986,7 +1986,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); - var arg_status = buildUnnamed217(); + var arg_status = buildUnnamed1229(); var arg_view = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -2084,7 +2084,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); - var arg_status = buildUnnamed218(); + var arg_status = buildUnnamed1230(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2333,7 +2333,7 @@ var mock = new HttpServerMock(); api.PageViewsResourceApi res = new api.BloggerApi(mock).pageViews; var arg_blogId = "foo"; - var arg_range = buildUnnamed219(); + var arg_range = buildUnnamed1231(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2604,7 +2604,7 @@ var arg_fetchBodies = true; var arg_maxResults = 42; var arg_pageToken = "foo"; - var arg_status = buildUnnamed220(); + var arg_status = buildUnnamed1232(); var arg_view = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -3074,7 +3074,7 @@ var arg_orderBy = "foo"; var arg_pageToken = "foo"; var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); - var arg_status = buildUnnamed221(); + var arg_status = buildUnnamed1233(); var arg_view = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -3479,7 +3479,7 @@ var arg_orderBy = "foo"; var arg_pageToken = "foo"; var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); - var arg_status = buildUnnamed222(); + var arg_status = buildUnnamed1234(); var arg_view = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
diff --git a/generated/googleapis/test/books/v1_test.dart b/generated/googleapis/test/books/v1_test.dart index 3563cf7..c2f329c 100644 --- a/generated/googleapis/test/books/v1_test.dart +++ b/generated/googleapis/test/books/v1_test.dart
@@ -127,14 +127,14 @@ buildCounterAnnotationLayerSummary--; } -buildUnnamed2589() { +buildUnnamed3553() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2589(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')); @@ -157,7 +157,7 @@ o.kind = "foo"; o.layerId = "foo"; o.layerSummary = buildAnnotationLayerSummary(); - o.pageIds = buildUnnamed2589(); + o.pageIds = buildUnnamed3553(); 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); - checkUnnamed2589(o.pageIds); + checkUnnamed3553(o.pageIds); unittest.expect(o.selectedText, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect( @@ -237,14 +237,14 @@ buildCounterAnnotationdata--; } -buildUnnamed2590() { +buildUnnamed3554() { var o = new core.List<api.Annotation>(); o.add(buildAnnotation()); o.add(buildAnnotation()); return o; } -checkUnnamed2590(core.List<api.Annotation> o) { +checkUnnamed3554(core.List<api.Annotation> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotation(o[0]); checkAnnotation(o[1]); @@ -255,7 +255,7 @@ var o = new api.Annotations(); buildCounterAnnotations++; if (buildCounterAnnotations < 3) { - o.items = buildUnnamed2590(); + o.items = buildUnnamed3554(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -267,7 +267,7 @@ checkAnnotations(api.Annotations o) { buildCounterAnnotations++; if (buildCounterAnnotations < 3) { - checkUnnamed2590(o.items); + checkUnnamed3554(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -303,14 +303,14 @@ buildCounterAnnotationsSummaryLayers--; } -buildUnnamed2591() { +buildUnnamed3555() { var o = new core.List<api.AnnotationsSummaryLayers>(); o.add(buildAnnotationsSummaryLayers()); o.add(buildAnnotationsSummaryLayers()); return o; } -checkUnnamed2591(core.List<api.AnnotationsSummaryLayers> o) { +checkUnnamed3555(core.List<api.AnnotationsSummaryLayers> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotationsSummaryLayers(o[0]); checkAnnotationsSummaryLayers(o[1]); @@ -322,7 +322,7 @@ buildCounterAnnotationsSummary++; if (buildCounterAnnotationsSummary < 3) { o.kind = "foo"; - o.layers = buildUnnamed2591(); + o.layers = buildUnnamed3555(); } buildCounterAnnotationsSummary--; return o; @@ -332,19 +332,19 @@ buildCounterAnnotationsSummary++; if (buildCounterAnnotationsSummary < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2591(o.layers); + checkUnnamed3555(o.layers); } buildCounterAnnotationsSummary--; } -buildUnnamed2592() { +buildUnnamed3556() { var o = new core.List<api.Annotationdata>(); o.add(buildAnnotationdata()); o.add(buildAnnotationdata()); return o; } -checkUnnamed2592(core.List<api.Annotationdata> o) { +checkUnnamed3556(core.List<api.Annotationdata> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotationdata(o[0]); checkAnnotationdata(o[1]); @@ -355,7 +355,7 @@ var o = new api.Annotationsdata(); buildCounterAnnotationsdata++; if (buildCounterAnnotationsdata < 3) { - o.items = buildUnnamed2592(); + o.items = buildUnnamed3556(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -367,7 +367,7 @@ checkAnnotationsdata(api.Annotationsdata o) { buildCounterAnnotationsdata++; if (buildCounterAnnotationsdata < 3) { - checkUnnamed2592(o.items); + checkUnnamed3556(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -485,14 +485,14 @@ buildCounterBookshelf--; } -buildUnnamed2593() { +buildUnnamed3557() { var o = new core.List<api.Bookshelf>(); o.add(buildBookshelf()); o.add(buildBookshelf()); return o; } -checkUnnamed2593(core.List<api.Bookshelf> o) { +checkUnnamed3557(core.List<api.Bookshelf> o) { unittest.expect(o, unittest.hasLength(2)); checkBookshelf(o[0]); checkBookshelf(o[1]); @@ -503,7 +503,7 @@ var o = new api.Bookshelves(); buildCounterBookshelves++; if (buildCounterBookshelves < 3) { - o.items = buildUnnamed2593(); + o.items = buildUnnamed3557(); o.kind = "foo"; } buildCounterBookshelves--; @@ -513,7 +513,7 @@ checkBookshelves(api.Bookshelves o) { buildCounterBookshelves++; if (buildCounterBookshelves < 3) { - checkUnnamed2593(o.items); + checkUnnamed3557(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBookshelves--; @@ -542,14 +542,14 @@ buildCounterCategoryItems--; } -buildUnnamed2594() { +buildUnnamed3558() { var o = new core.List<api.CategoryItems>(); o.add(buildCategoryItems()); o.add(buildCategoryItems()); return o; } -checkUnnamed2594(core.List<api.CategoryItems> o) { +checkUnnamed3558(core.List<api.CategoryItems> o) { unittest.expect(o, unittest.hasLength(2)); checkCategoryItems(o[0]); checkCategoryItems(o[1]); @@ -560,7 +560,7 @@ var o = new api.Category(); buildCounterCategory++; if (buildCounterCategory < 3) { - o.items = buildUnnamed2594(); + o.items = buildUnnamed3558(); o.kind = "foo"; } buildCounterCategory--; @@ -570,7 +570,7 @@ checkCategory(api.Category o) { buildCounterCategory++; if (buildCounterCategory < 3) { - checkUnnamed2594(o.items); + checkUnnamed3558(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCategory--; @@ -699,14 +699,14 @@ buildCounterDictlayerdataDictWordsDerivatives--; } -buildUnnamed2595() { +buildUnnamed3559() { var o = new core.List<api.DictlayerdataDictWordsDerivatives>(); o.add(buildDictlayerdataDictWordsDerivatives()); o.add(buildDictlayerdataDictWordsDerivatives()); return o; } -checkUnnamed2595(core.List<api.DictlayerdataDictWordsDerivatives> o) { +checkUnnamed3559(core.List<api.DictlayerdataDictWordsDerivatives> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsDerivatives(o[0]); checkDictlayerdataDictWordsDerivatives(o[1]); @@ -755,14 +755,14 @@ buildCounterDictlayerdataDictWordsExamples--; } -buildUnnamed2596() { +buildUnnamed3560() { var o = new core.List<api.DictlayerdataDictWordsExamples>(); o.add(buildDictlayerdataDictWordsExamples()); o.add(buildDictlayerdataDictWordsExamples()); return o; } -checkUnnamed2596(core.List<api.DictlayerdataDictWordsExamples> o) { +checkUnnamed3560(core.List<api.DictlayerdataDictWordsExamples> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsExamples(o[0]); checkDictlayerdataDictWordsExamples(o[1]); @@ -790,14 +790,14 @@ buildCounterDictlayerdataDictWordsSensesConjugations--; } -buildUnnamed2597() { +buildUnnamed3561() { var o = new core.List<api.DictlayerdataDictWordsSensesConjugations>(); o.add(buildDictlayerdataDictWordsSensesConjugations()); o.add(buildDictlayerdataDictWordsSensesConjugations()); return o; } -checkUnnamed2597(core.List<api.DictlayerdataDictWordsSensesConjugations> o) { +checkUnnamed3561(core.List<api.DictlayerdataDictWordsSensesConjugations> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSensesConjugations(o[0]); checkDictlayerdataDictWordsSensesConjugations(o[1]); @@ -847,14 +847,14 @@ buildCounterDictlayerdataDictWordsSensesDefinitionsExamples--; } -buildUnnamed2598() { +buildUnnamed3562() { var o = new core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples>(); o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples()); o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples()); return o; } -checkUnnamed2598( +checkUnnamed3562( core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSensesDefinitionsExamples(o[0]); @@ -867,7 +867,7 @@ buildCounterDictlayerdataDictWordsSensesDefinitions++; if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) { o.definition = "foo"; - o.examples = buildUnnamed2598(); + o.examples = buildUnnamed3562(); } buildCounterDictlayerdataDictWordsSensesDefinitions--; return o; @@ -878,19 +878,19 @@ buildCounterDictlayerdataDictWordsSensesDefinitions++; if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) { unittest.expect(o.definition, unittest.equals('foo')); - checkUnnamed2598(o.examples); + checkUnnamed3562(o.examples); } buildCounterDictlayerdataDictWordsSensesDefinitions--; } -buildUnnamed2599() { +buildUnnamed3563() { var o = new core.List<api.DictlayerdataDictWordsSensesDefinitions>(); o.add(buildDictlayerdataDictWordsSensesDefinitions()); o.add(buildDictlayerdataDictWordsSensesDefinitions()); return o; } -checkUnnamed2599(core.List<api.DictlayerdataDictWordsSensesDefinitions> o) { +checkUnnamed3563(core.List<api.DictlayerdataDictWordsSensesDefinitions> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSensesDefinitions(o[0]); checkDictlayerdataDictWordsSensesDefinitions(o[1]); @@ -962,14 +962,14 @@ buildCounterDictlayerdataDictWordsSensesSynonyms--; } -buildUnnamed2600() { +buildUnnamed3564() { var o = new core.List<api.DictlayerdataDictWordsSensesSynonyms>(); o.add(buildDictlayerdataDictWordsSensesSynonyms()); o.add(buildDictlayerdataDictWordsSensesSynonyms()); return o; } -checkUnnamed2600(core.List<api.DictlayerdataDictWordsSensesSynonyms> o) { +checkUnnamed3564(core.List<api.DictlayerdataDictWordsSensesSynonyms> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSensesSynonyms(o[0]); checkDictlayerdataDictWordsSensesSynonyms(o[1]); @@ -980,14 +980,14 @@ var o = new api.DictlayerdataDictWordsSenses(); buildCounterDictlayerdataDictWordsSenses++; if (buildCounterDictlayerdataDictWordsSenses < 3) { - o.conjugations = buildUnnamed2597(); - o.definitions = buildUnnamed2599(); + o.conjugations = buildUnnamed3561(); + o.definitions = buildUnnamed3563(); o.partOfSpeech = "foo"; o.pronunciation = "foo"; o.pronunciationUrl = "foo"; o.source = buildDictlayerdataDictWordsSensesSource(); o.syllabification = "foo"; - o.synonyms = buildUnnamed2600(); + o.synonyms = buildUnnamed3564(); } buildCounterDictlayerdataDictWordsSenses--; return o; @@ -996,26 +996,26 @@ checkDictlayerdataDictWordsSenses(api.DictlayerdataDictWordsSenses o) { buildCounterDictlayerdataDictWordsSenses++; if (buildCounterDictlayerdataDictWordsSenses < 3) { - checkUnnamed2597(o.conjugations); - checkUnnamed2599(o.definitions); + checkUnnamed3561(o.conjugations); + checkUnnamed3563(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')); - checkUnnamed2600(o.synonyms); + checkUnnamed3564(o.synonyms); } buildCounterDictlayerdataDictWordsSenses--; } -buildUnnamed2601() { +buildUnnamed3565() { var o = new core.List<api.DictlayerdataDictWordsSenses>(); o.add(buildDictlayerdataDictWordsSenses()); o.add(buildDictlayerdataDictWordsSenses()); return o; } -checkUnnamed2601(core.List<api.DictlayerdataDictWordsSenses> o) { +checkUnnamed3565(core.List<api.DictlayerdataDictWordsSenses> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSenses(o[0]); checkDictlayerdataDictWordsSenses(o[1]); @@ -1047,9 +1047,9 @@ var o = new api.DictlayerdataDictWords(); buildCounterDictlayerdataDictWords++; if (buildCounterDictlayerdataDictWords < 3) { - o.derivatives = buildUnnamed2595(); - o.examples = buildUnnamed2596(); - o.senses = buildUnnamed2601(); + o.derivatives = buildUnnamed3559(); + o.examples = buildUnnamed3560(); + o.senses = buildUnnamed3565(); o.source = buildDictlayerdataDictWordsSource(); } buildCounterDictlayerdataDictWords--; @@ -1059,22 +1059,22 @@ checkDictlayerdataDictWords(api.DictlayerdataDictWords o) { buildCounterDictlayerdataDictWords++; if (buildCounterDictlayerdataDictWords < 3) { - checkUnnamed2595(o.derivatives); - checkUnnamed2596(o.examples); - checkUnnamed2601(o.senses); + checkUnnamed3559(o.derivatives); + checkUnnamed3560(o.examples); + checkUnnamed3565(o.senses); checkDictlayerdataDictWordsSource(o.source); } buildCounterDictlayerdataDictWords--; } -buildUnnamed2602() { +buildUnnamed3566() { var o = new core.List<api.DictlayerdataDictWords>(); o.add(buildDictlayerdataDictWords()); o.add(buildDictlayerdataDictWords()); return o; } -checkUnnamed2602(core.List<api.DictlayerdataDictWords> o) { +checkUnnamed3566(core.List<api.DictlayerdataDictWords> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWords(o[0]); checkDictlayerdataDictWords(o[1]); @@ -1086,7 +1086,7 @@ buildCounterDictlayerdataDict++; if (buildCounterDictlayerdataDict < 3) { o.source = buildDictlayerdataDictSource(); - o.words = buildUnnamed2602(); + o.words = buildUnnamed3566(); } buildCounterDictlayerdataDict--; return o; @@ -1096,7 +1096,7 @@ buildCounterDictlayerdataDict++; if (buildCounterDictlayerdataDict < 3) { checkDictlayerdataDictSource(o.source); - checkUnnamed2602(o.words); + checkUnnamed3566(o.words); } buildCounterDictlayerdataDict--; } @@ -1154,14 +1154,14 @@ buildCounterDiscoveryclustersClustersBannerWithContentContainer--; } -buildUnnamed2603() { +buildUnnamed3567() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed2603(core.List<api.Volume> o) { +checkUnnamed3567(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -1178,7 +1178,7 @@ o.title = "foo"; o.totalVolumes = 42; o.uid = "foo"; - o.volumes = buildUnnamed2603(); + o.volumes = buildUnnamed3567(); } buildCounterDiscoveryclustersClusters--; return o; @@ -1193,19 +1193,19 @@ unittest.expect(o.title, unittest.equals('foo')); unittest.expect(o.totalVolumes, unittest.equals(42)); unittest.expect(o.uid, unittest.equals('foo')); - checkUnnamed2603(o.volumes); + checkUnnamed3567(o.volumes); } buildCounterDiscoveryclustersClusters--; } -buildUnnamed2604() { +buildUnnamed3568() { var o = new core.List<api.DiscoveryclustersClusters>(); o.add(buildDiscoveryclustersClusters()); o.add(buildDiscoveryclustersClusters()); return o; } -checkUnnamed2604(core.List<api.DiscoveryclustersClusters> o) { +checkUnnamed3568(core.List<api.DiscoveryclustersClusters> o) { unittest.expect(o, unittest.hasLength(2)); checkDiscoveryclustersClusters(o[0]); checkDiscoveryclustersClusters(o[1]); @@ -1216,7 +1216,7 @@ var o = new api.Discoveryclusters(); buildCounterDiscoveryclusters++; if (buildCounterDiscoveryclusters < 3) { - o.clusters = buildUnnamed2604(); + o.clusters = buildUnnamed3568(); o.kind = "foo"; o.totalClusters = 42; } @@ -1227,7 +1227,7 @@ checkDiscoveryclusters(api.Discoveryclusters o) { buildCounterDiscoveryclusters++; if (buildCounterDiscoveryclusters < 3) { - checkUnnamed2604(o.clusters); + checkUnnamed3568(o.clusters); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalClusters, unittest.equals(42)); } @@ -1275,14 +1275,14 @@ buildCounterDownloadAccessRestriction--; } -buildUnnamed2605() { +buildUnnamed3569() { var o = new core.List<api.DownloadAccessRestriction>(); o.add(buildDownloadAccessRestriction()); o.add(buildDownloadAccessRestriction()); return o; } -checkUnnamed2605(core.List<api.DownloadAccessRestriction> o) { +checkUnnamed3569(core.List<api.DownloadAccessRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkDownloadAccessRestriction(o[0]); checkDownloadAccessRestriction(o[1]); @@ -1293,7 +1293,7 @@ var o = new api.DownloadAccesses(); buildCounterDownloadAccesses++; if (buildCounterDownloadAccesses < 3) { - o.downloadAccessList = buildUnnamed2605(); + o.downloadAccessList = buildUnnamed3569(); o.kind = "foo"; } buildCounterDownloadAccesses--; @@ -1303,7 +1303,7 @@ checkDownloadAccesses(api.DownloadAccesses o) { buildCounterDownloadAccesses++; if (buildCounterDownloadAccesses < 3) { - checkUnnamed2605(o.downloadAccessList); + checkUnnamed3569(o.downloadAccessList); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDownloadAccesses--; @@ -1405,30 +1405,30 @@ buildCounterGeolayerdataGeoBoundary--; } -buildUnnamed2606() { +buildUnnamed3570() { var o = new core.List<api.GeolayerdataGeoBoundary>(); o.add(buildGeolayerdataGeoBoundary()); o.add(buildGeolayerdataGeoBoundary()); return o; } -checkUnnamed2606(core.List<api.GeolayerdataGeoBoundary> o) { +checkUnnamed3570(core.List<api.GeolayerdataGeoBoundary> o) { unittest.expect(o, unittest.hasLength(2)); checkGeolayerdataGeoBoundary(o[0]); checkGeolayerdataGeoBoundary(o[1]); } -buildUnnamed2607() { +buildUnnamed3571() { var o = new core.List<core.List<api.GeolayerdataGeoBoundary>>(); - o.add(buildUnnamed2606()); - o.add(buildUnnamed2606()); + o.add(buildUnnamed3570()); + o.add(buildUnnamed3570()); return o; } -checkUnnamed2607(core.List<core.List<api.GeolayerdataGeoBoundary>> o) { +checkUnnamed3571(core.List<core.List<api.GeolayerdataGeoBoundary>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2606(o[0]); - checkUnnamed2606(o[1]); + checkUnnamed3570(o[0]); + checkUnnamed3570(o[1]); } core.int buildCounterGeolayerdataGeoViewportHi = 0; @@ -1499,7 +1499,7 @@ var o = new api.GeolayerdataGeo(); buildCounterGeolayerdataGeo++; if (buildCounterGeolayerdataGeo < 3) { - o.boundary = buildUnnamed2607(); + o.boundary = buildUnnamed3571(); o.cachePolicy = "foo"; o.countryCode = "foo"; o.latitude = 42.0; @@ -1515,7 +1515,7 @@ checkGeolayerdataGeo(api.GeolayerdataGeo o) { buildCounterGeolayerdataGeo++; if (buildCounterGeolayerdataGeo < 3) { - checkUnnamed2607(o.boundary); + checkUnnamed3571(o.boundary); unittest.expect(o.cachePolicy, unittest.equals('foo')); unittest.expect(o.countryCode, unittest.equals('foo')); unittest.expect(o.latitude, unittest.equals(42.0)); @@ -1550,14 +1550,14 @@ buildCounterGeolayerdata--; } -buildUnnamed2608() { +buildUnnamed3572() { var o = new core.List<api.Layersummary>(); o.add(buildLayersummary()); o.add(buildLayersummary()); return o; } -checkUnnamed2608(core.List<api.Layersummary> o) { +checkUnnamed3572(core.List<api.Layersummary> o) { unittest.expect(o, unittest.hasLength(2)); checkLayersummary(o[0]); checkLayersummary(o[1]); @@ -1568,7 +1568,7 @@ var o = new api.Layersummaries(); buildCounterLayersummaries++; if (buildCounterLayersummaries < 3) { - o.items = buildUnnamed2608(); + o.items = buildUnnamed3572(); o.kind = "foo"; o.totalItems = 42; } @@ -1579,21 +1579,21 @@ checkLayersummaries(api.Layersummaries o) { buildCounterLayersummaries++; if (buildCounterLayersummaries < 3) { - checkUnnamed2608(o.items); + checkUnnamed3572(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); } buildCounterLayersummaries--; } -buildUnnamed2609() { +buildUnnamed3573() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2609(core.List<core.String> o) { +checkUnnamed3573(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1605,7 +1605,7 @@ buildCounterLayersummary++; if (buildCounterLayersummary < 3) { o.annotationCount = 42; - o.annotationTypes = buildUnnamed2609(); + o.annotationTypes = buildUnnamed3573(); o.annotationsDataLink = "foo"; o.annotationsLink = "foo"; o.contentVersion = "foo"; @@ -1626,7 +1626,7 @@ buildCounterLayersummary++; if (buildCounterLayersummary < 3) { unittest.expect(o.annotationCount, unittest.equals(42)); - checkUnnamed2609(o.annotationTypes); + checkUnnamed3573(o.annotationTypes); unittest.expect(o.annotationsDataLink, unittest.equals('foo')); unittest.expect(o.annotationsLink, unittest.equals('foo')); unittest.expect(o.contentVersion, unittest.equals('foo')); @@ -1670,14 +1670,14 @@ buildCounterMetadataItems--; } -buildUnnamed2610() { +buildUnnamed3574() { var o = new core.List<api.MetadataItems>(); o.add(buildMetadataItems()); o.add(buildMetadataItems()); return o; } -checkUnnamed2610(core.List<api.MetadataItems> o) { +checkUnnamed3574(core.List<api.MetadataItems> o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataItems(o[0]); checkMetadataItems(o[1]); @@ -1688,7 +1688,7 @@ var o = new api.Metadata(); buildCounterMetadata++; if (buildCounterMetadata < 3) { - o.items = buildUnnamed2610(); + o.items = buildUnnamed3574(); o.kind = "foo"; } buildCounterMetadata--; @@ -1698,20 +1698,20 @@ checkMetadata(api.Metadata o) { buildCounterMetadata++; if (buildCounterMetadata < 3) { - checkUnnamed2610(o.items); + checkUnnamed3574(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; } -buildUnnamed2611() { +buildUnnamed3575() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2611(core.List<core.String> o) { +checkUnnamed3575(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1723,7 +1723,7 @@ buildCounterNotification++; if (buildCounterNotification < 3) { o.body = "foo"; - o.crmExperimentIds = buildUnnamed2611(); + o.crmExperimentIds = buildUnnamed3575(); o.docId = "foo"; o.docType = "foo"; o.dontShowNotification = true; @@ -1745,7 +1745,7 @@ buildCounterNotification++; if (buildCounterNotification < 3) { unittest.expect(o.body, unittest.equals('foo')); - checkUnnamed2611(o.crmExperimentIds); + checkUnnamed3575(o.crmExperimentIds); unittest.expect(o.docId, unittest.equals('foo')); unittest.expect(o.docType, unittest.equals('foo')); unittest.expect(o.dontShowNotification, unittest.isTrue); @@ -1791,14 +1791,14 @@ buildCounterOffersItemsItems--; } -buildUnnamed2612() { +buildUnnamed3576() { var o = new core.List<api.OffersItemsItems>(); o.add(buildOffersItemsItems()); o.add(buildOffersItemsItems()); return o; } -checkUnnamed2612(core.List<api.OffersItemsItems> o) { +checkUnnamed3576(core.List<api.OffersItemsItems> o) { unittest.expect(o, unittest.hasLength(2)); checkOffersItemsItems(o[0]); checkOffersItemsItems(o[1]); @@ -1812,7 +1812,7 @@ o.artUrl = "foo"; o.gservicesKey = "foo"; o.id = "foo"; - o.items = buildUnnamed2612(); + o.items = buildUnnamed3576(); } buildCounterOffersItems--; return o; @@ -1824,19 +1824,19 @@ unittest.expect(o.artUrl, unittest.equals('foo')); unittest.expect(o.gservicesKey, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2612(o.items); + checkUnnamed3576(o.items); } buildCounterOffersItems--; } -buildUnnamed2613() { +buildUnnamed3577() { var o = new core.List<api.OffersItems>(); o.add(buildOffersItems()); o.add(buildOffersItems()); return o; } -checkUnnamed2613(core.List<api.OffersItems> o) { +checkUnnamed3577(core.List<api.OffersItems> o) { unittest.expect(o, unittest.hasLength(2)); checkOffersItems(o[0]); checkOffersItems(o[1]); @@ -1847,7 +1847,7 @@ var o = new api.Offers(); buildCounterOffers++; if (buildCounterOffers < 3) { - o.items = buildUnnamed2613(); + o.items = buildUnnamed3577(); o.kind = "foo"; } buildCounterOffers--; @@ -1857,7 +1857,7 @@ checkOffers(api.Offers o) { buildCounterOffers++; if (buildCounterOffers < 3) { - checkUnnamed2613(o.items); + checkUnnamed3577(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterOffers--; @@ -2024,14 +2024,14 @@ buildCounterSeriesSeries--; } -buildUnnamed2614() { +buildUnnamed3578() { var o = new core.List<api.SeriesSeries>(); o.add(buildSeriesSeries()); o.add(buildSeriesSeries()); return o; } -checkUnnamed2614(core.List<api.SeriesSeries> o) { +checkUnnamed3578(core.List<api.SeriesSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkSeriesSeries(o[0]); checkSeriesSeries(o[1]); @@ -2043,7 +2043,7 @@ buildCounterSeries++; if (buildCounterSeries < 3) { o.kind = "foo"; - o.series = buildUnnamed2614(); + o.series = buildUnnamed3578(); } buildCounterSeries--; return o; @@ -2053,19 +2053,19 @@ buildCounterSeries++; if (buildCounterSeries < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2614(o.series); + checkUnnamed3578(o.series); } buildCounterSeries--; } -buildUnnamed2615() { +buildUnnamed3579() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed2615(core.List<api.Volume> o) { +checkUnnamed3579(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -2077,7 +2077,7 @@ buildCounterSeriesmembership++; if (buildCounterSeriesmembership < 3) { o.kind = "foo"; - o.member = buildUnnamed2615(); + o.member = buildUnnamed3579(); o.nextPageToken = "foo"; } buildCounterSeriesmembership--; @@ -2088,7 +2088,7 @@ buildCounterSeriesmembership++; if (buildCounterSeriesmembership < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2615(o.member); + checkUnnamed3579(o.member); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSeriesmembership--; @@ -2377,14 +2377,14 @@ buildCounterVolumeLayerInfoLayers--; } -buildUnnamed2616() { +buildUnnamed3580() { var o = new core.List<api.VolumeLayerInfoLayers>(); o.add(buildVolumeLayerInfoLayers()); o.add(buildVolumeLayerInfoLayers()); return o; } -checkUnnamed2616(core.List<api.VolumeLayerInfoLayers> o) { +checkUnnamed3580(core.List<api.VolumeLayerInfoLayers> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeLayerInfoLayers(o[0]); checkVolumeLayerInfoLayers(o[1]); @@ -2395,7 +2395,7 @@ var o = new api.VolumeLayerInfo(); buildCounterVolumeLayerInfo++; if (buildCounterVolumeLayerInfo < 3) { - o.layers = buildUnnamed2616(); + o.layers = buildUnnamed3580(); } buildCounterVolumeLayerInfo--; return o; @@ -2404,7 +2404,7 @@ checkVolumeLayerInfo(api.VolumeLayerInfo o) { buildCounterVolumeLayerInfo++; if (buildCounterVolumeLayerInfo < 3) { - checkUnnamed2616(o.layers); + checkUnnamed3580(o.layers); } buildCounterVolumeLayerInfo--; } @@ -2540,14 +2540,14 @@ buildCounterVolumeSaleInfoOffers--; } -buildUnnamed2617() { +buildUnnamed3581() { var o = new core.List<api.VolumeSaleInfoOffers>(); o.add(buildVolumeSaleInfoOffers()); o.add(buildVolumeSaleInfoOffers()); return o; } -checkUnnamed2617(core.List<api.VolumeSaleInfoOffers> o) { +checkUnnamed3581(core.List<api.VolumeSaleInfoOffers> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeSaleInfoOffers(o[0]); checkVolumeSaleInfoOffers(o[1]); @@ -2583,7 +2583,7 @@ o.country = "foo"; o.isEbook = true; o.listPrice = buildVolumeSaleInfoListPrice(); - o.offers = buildUnnamed2617(); + o.offers = buildUnnamed3581(); o.onSaleDate = core.DateTime.parse("2002-02-27T14:01:02"); o.retailPrice = buildVolumeSaleInfoRetailPrice(); o.saleability = "foo"; @@ -2599,7 +2599,7 @@ unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.isEbook, unittest.isTrue); checkVolumeSaleInfoListPrice(o.listPrice); - checkUnnamed2617(o.offers); + checkUnnamed3581(o.offers); unittest.expect(o.onSaleDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); checkVolumeSaleInfoRetailPrice(o.retailPrice); @@ -2774,27 +2774,27 @@ buildCounterVolumeUserInfo--; } -buildUnnamed2618() { +buildUnnamed3582() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2618(core.List<core.String> o) { +checkUnnamed3582(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2619() { +buildUnnamed3583() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2619(core.List<core.String> o) { +checkUnnamed3583(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2874,14 +2874,14 @@ buildCounterVolumeVolumeInfoIndustryIdentifiers--; } -buildUnnamed2620() { +buildUnnamed3584() { var o = new core.List<api.VolumeVolumeInfoIndustryIdentifiers>(); o.add(buildVolumeVolumeInfoIndustryIdentifiers()); o.add(buildVolumeVolumeInfoIndustryIdentifiers()); return o; } -checkUnnamed2620(core.List<api.VolumeVolumeInfoIndustryIdentifiers> o) { +checkUnnamed3584(core.List<api.VolumeVolumeInfoIndustryIdentifiers> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeVolumeInfoIndustryIdentifiers(o[0]); checkVolumeVolumeInfoIndustryIdentifiers(o[1]); @@ -2919,15 +2919,15 @@ buildCounterVolumeVolumeInfo++; if (buildCounterVolumeVolumeInfo < 3) { o.allowAnonLogging = true; - o.authors = buildUnnamed2618(); + o.authors = buildUnnamed3582(); o.averageRating = 42.0; o.canonicalVolumeLink = "foo"; - o.categories = buildUnnamed2619(); + o.categories = buildUnnamed3583(); o.contentVersion = "foo"; o.description = "foo"; o.dimensions = buildVolumeVolumeInfoDimensions(); o.imageLinks = buildVolumeVolumeInfoImageLinks(); - o.industryIdentifiers = buildUnnamed2620(); + o.industryIdentifiers = buildUnnamed3584(); o.infoLink = "foo"; o.language = "foo"; o.mainCategory = "foo"; @@ -2958,15 +2958,15 @@ buildCounterVolumeVolumeInfo++; if (buildCounterVolumeVolumeInfo < 3) { unittest.expect(o.allowAnonLogging, unittest.isTrue); - checkUnnamed2618(o.authors); + checkUnnamed3582(o.authors); unittest.expect(o.averageRating, unittest.equals(42.0)); unittest.expect(o.canonicalVolumeLink, unittest.equals('foo')); - checkUnnamed2619(o.categories); + checkUnnamed3583(o.categories); unittest.expect(o.contentVersion, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); checkVolumeVolumeInfoDimensions(o.dimensions); checkVolumeVolumeInfoImageLinks(o.imageLinks); - checkUnnamed2620(o.industryIdentifiers); + checkUnnamed3584(o.industryIdentifiers); unittest.expect(o.infoLink, unittest.equals('foo')); unittest.expect(o.language, unittest.equals('foo')); unittest.expect(o.mainCategory, unittest.equals('foo')); @@ -3031,14 +3031,14 @@ buildCounterVolume--; } -buildUnnamed2621() { +buildUnnamed3585() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed2621(core.List<api.Volume> o) { +checkUnnamed3585(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -3049,7 +3049,7 @@ var o = new api.Volume2(); buildCounterVolume2++; if (buildCounterVolume2 < 3) { - o.items = buildUnnamed2621(); + o.items = buildUnnamed3585(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3060,7 +3060,7 @@ checkVolume2(api.Volume2 o) { buildCounterVolume2++; if (buildCounterVolume2 < 3) { - checkUnnamed2621(o.items); + checkUnnamed3585(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3092,14 +3092,14 @@ buildCounterVolumeannotationContentRanges--; } -buildUnnamed2622() { +buildUnnamed3586() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2622(core.List<core.String> o) { +checkUnnamed3586(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3119,7 +3119,7 @@ o.id = "foo"; o.kind = "foo"; o.layerId = "foo"; - o.pageIds = buildUnnamed2622(); + o.pageIds = buildUnnamed3586(); o.selectedText = "foo"; o.selfLink = "foo"; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); @@ -3141,7 +3141,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.layerId, unittest.equals('foo')); - checkUnnamed2622(o.pageIds); + checkUnnamed3586(o.pageIds); unittest.expect(o.selectedText, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect( @@ -3151,14 +3151,14 @@ buildCounterVolumeannotation--; } -buildUnnamed2623() { +buildUnnamed3587() { var o = new core.List<api.Volumeannotation>(); o.add(buildVolumeannotation()); o.add(buildVolumeannotation()); return o; } -checkUnnamed2623(core.List<api.Volumeannotation> o) { +checkUnnamed3587(core.List<api.Volumeannotation> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeannotation(o[0]); checkVolumeannotation(o[1]); @@ -3169,7 +3169,7 @@ var o = new api.Volumeannotations(); buildCounterVolumeannotations++; if (buildCounterVolumeannotations < 3) { - o.items = buildUnnamed2623(); + o.items = buildUnnamed3587(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -3182,7 +3182,7 @@ checkVolumeannotations(api.Volumeannotations o) { buildCounterVolumeannotations++; if (buildCounterVolumeannotations < 3) { - checkUnnamed2623(o.items); + checkUnnamed3587(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -3191,14 +3191,14 @@ buildCounterVolumeannotations--; } -buildUnnamed2624() { +buildUnnamed3588() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed2624(core.List<api.Volume> o) { +checkUnnamed3588(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -3209,7 +3209,7 @@ var o = new api.Volumes(); buildCounterVolumes++; if (buildCounterVolumes < 3) { - o.items = buildUnnamed2624(); + o.items = buildUnnamed3588(); o.kind = "foo"; o.totalItems = 42; } @@ -3220,7 +3220,7 @@ checkVolumes(api.Volumes o) { buildCounterVolumes++; if (buildCounterVolumes < 3) { - checkUnnamed2624(o.items); + checkUnnamed3588(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); } @@ -3249,14 +3249,14 @@ buildCounterVolumeseriesinfoVolumeSeriesIssue--; } -buildUnnamed2625() { +buildUnnamed3589() { var o = new core.List<api.VolumeseriesinfoVolumeSeriesIssue>(); o.add(buildVolumeseriesinfoVolumeSeriesIssue()); o.add(buildVolumeseriesinfoVolumeSeriesIssue()); return o; } -checkUnnamed2625(core.List<api.VolumeseriesinfoVolumeSeriesIssue> o) { +checkUnnamed3589(core.List<api.VolumeseriesinfoVolumeSeriesIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeseriesinfoVolumeSeriesIssue(o[0]); checkVolumeseriesinfoVolumeSeriesIssue(o[1]); @@ -3267,7 +3267,7 @@ var o = new api.VolumeseriesinfoVolumeSeries(); buildCounterVolumeseriesinfoVolumeSeries++; if (buildCounterVolumeseriesinfoVolumeSeries < 3) { - o.issue = buildUnnamed2625(); + o.issue = buildUnnamed3589(); o.orderNumber = 42; o.seriesBookType = "foo"; o.seriesId = "foo"; @@ -3279,7 +3279,7 @@ checkVolumeseriesinfoVolumeSeries(api.VolumeseriesinfoVolumeSeries o) { buildCounterVolumeseriesinfoVolumeSeries++; if (buildCounterVolumeseriesinfoVolumeSeries < 3) { - checkUnnamed2625(o.issue); + checkUnnamed3589(o.issue); unittest.expect(o.orderNumber, unittest.equals(42)); unittest.expect(o.seriesBookType, unittest.equals('foo')); unittest.expect(o.seriesId, unittest.equals('foo')); @@ -3287,14 +3287,14 @@ buildCounterVolumeseriesinfoVolumeSeries--; } -buildUnnamed2626() { +buildUnnamed3590() { var o = new core.List<api.VolumeseriesinfoVolumeSeries>(); o.add(buildVolumeseriesinfoVolumeSeries()); o.add(buildVolumeseriesinfoVolumeSeries()); return o; } -checkUnnamed2626(core.List<api.VolumeseriesinfoVolumeSeries> o) { +checkUnnamed3590(core.List<api.VolumeseriesinfoVolumeSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeseriesinfoVolumeSeries(o[0]); checkVolumeseriesinfoVolumeSeries(o[1]); @@ -3308,7 +3308,7 @@ o.bookDisplayNumber = "foo"; o.kind = "foo"; o.shortSeriesBookTitle = "foo"; - o.volumeSeries = buildUnnamed2626(); + o.volumeSeries = buildUnnamed3590(); } buildCounterVolumeseriesinfo--; return o; @@ -3320,162 +3320,162 @@ unittest.expect(o.bookDisplayNumber, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.shortSeriesBookTitle, unittest.equals('foo')); - checkUnnamed2626(o.volumeSeries); + checkUnnamed3590(o.volumeSeries); } buildCounterVolumeseriesinfo--; } -buildUnnamed2627() { +buildUnnamed3591() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2627(core.List<core.String> o) { +checkUnnamed3591(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2628() { +buildUnnamed3592() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2628(core.List<core.String> o) { +checkUnnamed3592(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2629() { +buildUnnamed3593() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2629(core.List<core.String> o) { +checkUnnamed3593(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2630() { +buildUnnamed3594() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2630(core.List<core.String> o) { +checkUnnamed3594(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2631() { +buildUnnamed3595() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2631(core.List<core.String> o) { +checkUnnamed3595(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2632() { +buildUnnamed3596() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2632(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')); } -buildUnnamed2633() { +buildUnnamed3597() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2633(core.List<core.String> o) { +checkUnnamed3597(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2634() { +buildUnnamed3598() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2634(core.List<core.String> o) { +checkUnnamed3598(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2635() { +buildUnnamed3599() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2635(core.List<core.String> o) { +checkUnnamed3599(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2636() { +buildUnnamed3600() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2636(core.List<core.String> o) { +checkUnnamed3600(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2637() { +buildUnnamed3601() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2637(core.List<core.String> o) { +checkUnnamed3601(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2638() { +buildUnnamed3602() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2638(core.List<core.String> o) { +checkUnnamed3602(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5254,7 +5254,7 @@ var arg_volumeId = "foo"; var arg_layerId = "foo"; var arg_contentVersion = "foo"; - var arg_annotationDataId = buildUnnamed2627(); + var arg_annotationDataId = buildUnnamed3591(); var arg_h = 42; var arg_locale = "foo"; var arg_maxResults = 42; @@ -5620,7 +5620,7 @@ unittest.test("method--releaseDownloadAccess", () { var mock = new HttpServerMock(); api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; - var arg_volumeIds = buildUnnamed2628(); + var arg_volumeIds = buildUnnamed3592(); var arg_cpksver = "foo"; var arg_locale = "foo"; var arg_source = "foo"; @@ -5755,11 +5755,11 @@ var arg_source = "foo"; var arg_nonce = "foo"; var arg_cpksver = "foo"; - var arg_features = buildUnnamed2629(); + var arg_features = buildUnnamed3593(); var arg_includeNonComicsSeries = true; var arg_locale = "foo"; var arg_showPreorders = true; - var arg_volumeIds = buildUnnamed2630(); + var arg_volumeIds = buildUnnamed3594(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6020,7 +6020,7 @@ new api.BooksApi(mock).mylibrary.annotations; var arg_contentVersion = "foo"; var arg_layerId = "foo"; - var arg_layerIds = buildUnnamed2631(); + var arg_layerIds = buildUnnamed3595(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_showDeleted = true; @@ -6110,7 +6110,7 @@ var mock = new HttpServerMock(); api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary.annotations; - var arg_layerIds = buildUnnamed2632(); + var arg_layerIds = buildUnnamed3596(); var arg_volumeId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -6977,7 +6977,7 @@ unittest.test("method--listCategoryVolumes", () { var mock = new HttpServerMock(); api.OnboardingResourceApi res = new api.BooksApi(mock).onboarding; - var arg_categoryId = buildUnnamed2633(); + var arg_categoryId = buildUnnamed3597(); var arg_locale = "foo"; var arg_maxAllowedMaturityRating = "foo"; var arg_pageSize = 42; @@ -7349,7 +7349,7 @@ unittest.test("method--get", () { var mock = new HttpServerMock(); api.SeriesResourceApi res = new api.BooksApi(mock).series; - var arg_seriesId = buildUnnamed2634(); + var arg_seriesId = buildUnnamed3598(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7740,11 +7740,11 @@ var mock = new HttpServerMock(); api.VolumesMybooksResourceApi res = new api.BooksApi(mock).volumes.mybooks; - var arg_acquireMethod = buildUnnamed2635(); + var arg_acquireMethod = buildUnnamed3599(); var arg_country = "foo"; var arg_locale = "foo"; var arg_maxResults = 42; - var arg_processingState = buildUnnamed2636(); + var arg_processingState = buildUnnamed3600(); var arg_source = "foo"; var arg_startIndex = 42; var arg_$fields = "foo"; @@ -7954,10 +7954,10 @@ new api.BooksApi(mock).volumes.useruploaded; var arg_locale = "foo"; var arg_maxResults = 42; - var arg_processingState = buildUnnamed2637(); + var arg_processingState = buildUnnamed3601(); var arg_source = "foo"; var arg_startIndex = 42; - var arg_volumeId = buildUnnamed2638(); + var arg_volumeId = buildUnnamed3602(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path;
diff --git a/generated/googleapis/test/calendar/v3_test.dart b/generated/googleapis/test/calendar/v3_test.dart index 784c8e8..bc8d42b 100644 --- a/generated/googleapis/test/calendar/v3_test.dart +++ b/generated/googleapis/test/calendar/v3_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2978() { +buildUnnamed175() { var o = new core.List<api.AclRule>(); o.add(buildAclRule()); o.add(buildAclRule()); return o; } -checkUnnamed2978(core.List<api.AclRule> o) { +checkUnnamed175(core.List<api.AclRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAclRule(o[0]); checkAclRule(o[1]); @@ -69,7 +69,7 @@ buildCounterAcl++; if (buildCounterAcl < 3) { o.etag = "foo"; - o.items = buildUnnamed2978(); + o.items = buildUnnamed175(); o.kind = "foo"; o.nextPageToken = "foo"; o.nextSyncToken = "foo"; @@ -82,7 +82,7 @@ buildCounterAcl++; if (buildCounterAcl < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2978(o.items); + checkUnnamed175(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.nextSyncToken, unittest.equals('foo')); @@ -171,14 +171,14 @@ buildCounterCalendar--; } -buildUnnamed2979() { +buildUnnamed176() { var o = new core.List<api.CalendarListEntry>(); o.add(buildCalendarListEntry()); o.add(buildCalendarListEntry()); return o; } -checkUnnamed2979(core.List<api.CalendarListEntry> o) { +checkUnnamed176(core.List<api.CalendarListEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkCalendarListEntry(o[0]); checkCalendarListEntry(o[1]); @@ -190,7 +190,7 @@ buildCounterCalendarList++; if (buildCounterCalendarList < 3) { o.etag = "foo"; - o.items = buildUnnamed2979(); + o.items = buildUnnamed176(); o.kind = "foo"; o.nextPageToken = "foo"; o.nextSyncToken = "foo"; @@ -203,7 +203,7 @@ buildCounterCalendarList++; if (buildCounterCalendarList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2979(o.items); + checkUnnamed176(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.nextSyncToken, unittest.equals('foo')); @@ -211,27 +211,27 @@ buildCounterCalendarList--; } -buildUnnamed2980() { +buildUnnamed177() { var o = new core.List<api.EventReminder>(); o.add(buildEventReminder()); o.add(buildEventReminder()); return o; } -checkUnnamed2980(core.List<api.EventReminder> o) { +checkUnnamed177(core.List<api.EventReminder> o) { unittest.expect(o, unittest.hasLength(2)); checkEventReminder(o[0]); checkEventReminder(o[1]); } -buildUnnamed2981() { +buildUnnamed178() { var o = new core.List<api.CalendarNotification>(); o.add(buildCalendarNotification()); o.add(buildCalendarNotification()); return o; } -checkUnnamed2981(core.List<api.CalendarNotification> o) { +checkUnnamed178(core.List<api.CalendarNotification> o) { unittest.expect(o, unittest.hasLength(2)); checkCalendarNotification(o[0]); checkCalendarNotification(o[1]); @@ -242,7 +242,7 @@ var o = new api.CalendarListEntryNotificationSettings(); buildCounterCalendarListEntryNotificationSettings++; if (buildCounterCalendarListEntryNotificationSettings < 3) { - o.notifications = buildUnnamed2981(); + o.notifications = buildUnnamed178(); } buildCounterCalendarListEntryNotificationSettings--; return o; @@ -252,7 +252,7 @@ api.CalendarListEntryNotificationSettings o) { buildCounterCalendarListEntryNotificationSettings++; if (buildCounterCalendarListEntryNotificationSettings < 3) { - checkUnnamed2981(o.notifications); + checkUnnamed178(o.notifications); } buildCounterCalendarListEntryNotificationSettings--; } @@ -266,7 +266,7 @@ o.backgroundColor = "foo"; o.colorId = "foo"; o.conferenceProperties = buildConferenceProperties(); - o.defaultReminders = buildUnnamed2980(); + o.defaultReminders = buildUnnamed177(); o.deleted = true; o.description = "foo"; o.etag = "foo"; @@ -293,7 +293,7 @@ unittest.expect(o.backgroundColor, unittest.equals('foo')); unittest.expect(o.colorId, unittest.equals('foo')); checkConferenceProperties(o.conferenceProperties); - checkUnnamed2980(o.defaultReminders); + checkUnnamed177(o.defaultReminders); unittest.expect(o.deleted, unittest.isTrue); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); @@ -333,14 +333,14 @@ buildCounterCalendarNotification--; } -buildUnnamed2982() { +buildUnnamed179() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2982(core.Map<core.String, core.String> o) { +checkUnnamed179(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,7 +355,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed2982(); + o.params = buildUnnamed179(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -373,7 +373,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2982(o.params); + checkUnnamed179(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -404,27 +404,27 @@ buildCounterColorDefinition--; } -buildUnnamed2983() { +buildUnnamed180() { var o = new core.Map<core.String, api.ColorDefinition>(); o["x"] = buildColorDefinition(); o["y"] = buildColorDefinition(); return o; } -checkUnnamed2983(core.Map<core.String, api.ColorDefinition> o) { +checkUnnamed180(core.Map<core.String, api.ColorDefinition> o) { unittest.expect(o, unittest.hasLength(2)); checkColorDefinition(o["x"]); checkColorDefinition(o["y"]); } -buildUnnamed2984() { +buildUnnamed181() { var o = new core.Map<core.String, api.ColorDefinition>(); o["x"] = buildColorDefinition(); o["y"] = buildColorDefinition(); return o; } -checkUnnamed2984(core.Map<core.String, api.ColorDefinition> o) { +checkUnnamed181(core.Map<core.String, api.ColorDefinition> o) { unittest.expect(o, unittest.hasLength(2)); checkColorDefinition(o["x"]); checkColorDefinition(o["y"]); @@ -435,8 +435,8 @@ var o = new api.Colors(); buildCounterColors++; if (buildCounterColors < 3) { - o.calendar = buildUnnamed2983(); - o.event = buildUnnamed2984(); + o.calendar = buildUnnamed180(); + o.event = buildUnnamed181(); o.kind = "foo"; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); } @@ -447,8 +447,8 @@ checkColors(api.Colors o) { buildCounterColors++; if (buildCounterColors < 3) { - checkUnnamed2983(o.calendar); - checkUnnamed2984(o.event); + checkUnnamed180(o.calendar); + checkUnnamed181(o.event); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect( o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -456,14 +456,14 @@ buildCounterColors--; } -buildUnnamed2985() { +buildUnnamed182() { var o = new core.List<api.EntryPoint>(); o.add(buildEntryPoint()); o.add(buildEntryPoint()); return o; } -checkUnnamed2985(core.List<api.EntryPoint> o) { +checkUnnamed182(core.List<api.EntryPoint> o) { unittest.expect(o, unittest.hasLength(2)); checkEntryPoint(o[0]); checkEntryPoint(o[1]); @@ -477,7 +477,7 @@ o.conferenceId = "foo"; o.conferenceSolution = buildConferenceSolution(); o.createRequest = buildCreateConferenceRequest(); - o.entryPoints = buildUnnamed2985(); + o.entryPoints = buildUnnamed182(); o.notes = "foo"; o.parameters = buildConferenceParameters(); o.signature = "foo"; @@ -492,7 +492,7 @@ unittest.expect(o.conferenceId, unittest.equals('foo')); checkConferenceSolution(o.conferenceSolution); checkCreateConferenceRequest(o.createRequest); - checkUnnamed2985(o.entryPoints); + checkUnnamed182(o.entryPoints); unittest.expect(o.notes, unittest.equals('foo')); checkConferenceParameters(o.parameters); unittest.expect(o.signature, unittest.equals('foo')); @@ -519,14 +519,14 @@ buildCounterConferenceParameters--; } -buildUnnamed2986() { +buildUnnamed183() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2986(core.Map<core.String, core.String> 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')); @@ -537,7 +537,7 @@ var o = new api.ConferenceParametersAddOnParameters(); buildCounterConferenceParametersAddOnParameters++; if (buildCounterConferenceParametersAddOnParameters < 3) { - o.parameters = buildUnnamed2986(); + o.parameters = buildUnnamed183(); } buildCounterConferenceParametersAddOnParameters--; return o; @@ -547,19 +547,19 @@ api.ConferenceParametersAddOnParameters o) { buildCounterConferenceParametersAddOnParameters++; if (buildCounterConferenceParametersAddOnParameters < 3) { - checkUnnamed2986(o.parameters); + checkUnnamed183(o.parameters); } buildCounterConferenceParametersAddOnParameters--; } -buildUnnamed2987() { +buildUnnamed184() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2987(core.List<core.String> o) { +checkUnnamed184(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -570,7 +570,7 @@ var o = new api.ConferenceProperties(); buildCounterConferenceProperties++; if (buildCounterConferenceProperties < 3) { - o.allowedConferenceSolutionTypes = buildUnnamed2987(); + o.allowedConferenceSolutionTypes = buildUnnamed184(); } buildCounterConferenceProperties--; return o; @@ -579,7 +579,7 @@ checkConferenceProperties(api.ConferenceProperties o) { buildCounterConferenceProperties++; if (buildCounterConferenceProperties < 3) { - checkUnnamed2987(o.allowedConferenceSolutionTypes); + checkUnnamed184(o.allowedConferenceSolutionTypes); } buildCounterConferenceProperties--; } @@ -722,27 +722,27 @@ buildCounterError--; } -buildUnnamed2988() { +buildUnnamed185() { var o = new core.List<api.EventAttachment>(); o.add(buildEventAttachment()); o.add(buildEventAttachment()); return o; } -checkUnnamed2988(core.List<api.EventAttachment> o) { +checkUnnamed185(core.List<api.EventAttachment> o) { unittest.expect(o, unittest.hasLength(2)); checkEventAttachment(o[0]); checkEventAttachment(o[1]); } -buildUnnamed2989() { +buildUnnamed186() { var o = new core.List<api.EventAttendee>(); o.add(buildEventAttendee()); o.add(buildEventAttendee()); return o; } -checkUnnamed2989(core.List<api.EventAttendee> o) { +checkUnnamed186(core.List<api.EventAttendee> o) { unittest.expect(o, unittest.hasLength(2)); checkEventAttendee(o[0]); checkEventAttendee(o[1]); @@ -773,27 +773,27 @@ buildCounterEventCreator--; } -buildUnnamed2990() { +buildUnnamed187() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2990(core.Map<core.String, core.String> o) { +checkUnnamed187(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed2991() { +buildUnnamed188() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2991(core.Map<core.String, core.String> 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')); @@ -804,8 +804,8 @@ var o = new api.EventExtendedProperties(); buildCounterEventExtendedProperties++; if (buildCounterEventExtendedProperties < 3) { - o.private = buildUnnamed2990(); - o.shared = buildUnnamed2991(); + o.private = buildUnnamed187(); + o.shared = buildUnnamed188(); } buildCounterEventExtendedProperties--; return o; @@ -814,20 +814,20 @@ checkEventExtendedProperties(api.EventExtendedProperties o) { buildCounterEventExtendedProperties++; if (buildCounterEventExtendedProperties < 3) { - checkUnnamed2990(o.private); - checkUnnamed2991(o.shared); + checkUnnamed187(o.private); + checkUnnamed188(o.shared); } buildCounterEventExtendedProperties--; } -buildUnnamed2992() { +buildUnnamed189() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2992(core.Map<core.String, core.String> o) { +checkUnnamed189(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')); @@ -842,7 +842,7 @@ o.height = 42; o.iconLink = "foo"; o.link = "foo"; - o.preferences = buildUnnamed2992(); + o.preferences = buildUnnamed189(); o.title = "foo"; o.type = "foo"; o.width = 42; @@ -858,7 +858,7 @@ unittest.expect(o.height, unittest.equals(42)); unittest.expect(o.iconLink, unittest.equals('foo')); unittest.expect(o.link, unittest.equals('foo')); - checkUnnamed2992(o.preferences); + checkUnnamed189(o.preferences); unittest.expect(o.title, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.width, unittest.equals(42)); @@ -891,27 +891,27 @@ buildCounterEventOrganizer--; } -buildUnnamed2993() { +buildUnnamed190() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2993(core.List<core.String> o) { +checkUnnamed190(core.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() { +buildUnnamed191() { var o = new core.List<api.EventReminder>(); o.add(buildEventReminder()); o.add(buildEventReminder()); return o; } -checkUnnamed2994(core.List<api.EventReminder> o) { +checkUnnamed191(core.List<api.EventReminder> o) { unittest.expect(o, unittest.hasLength(2)); checkEventReminder(o[0]); checkEventReminder(o[1]); @@ -922,7 +922,7 @@ var o = new api.EventReminders(); buildCounterEventReminders++; if (buildCounterEventReminders < 3) { - o.overrides = buildUnnamed2994(); + o.overrides = buildUnnamed191(); o.useDefault = true; } buildCounterEventReminders--; @@ -932,7 +932,7 @@ checkEventReminders(api.EventReminders o) { buildCounterEventReminders++; if (buildCounterEventReminders < 3) { - checkUnnamed2994(o.overrides); + checkUnnamed191(o.overrides); unittest.expect(o.useDefault, unittest.isTrue); } buildCounterEventReminders--; @@ -965,8 +965,8 @@ buildCounterEvent++; if (buildCounterEvent < 3) { o.anyoneCanAddSelf = true; - o.attachments = buildUnnamed2988(); - o.attendees = buildUnnamed2989(); + o.attachments = buildUnnamed185(); + o.attendees = buildUnnamed186(); o.attendeesOmitted = true; o.colorId = "foo"; o.conferenceData = buildConferenceData(); @@ -991,7 +991,7 @@ o.organizer = buildEventOrganizer(); o.originalStartTime = buildEventDateTime(); o.privateCopy = true; - o.recurrence = buildUnnamed2993(); + o.recurrence = buildUnnamed190(); o.recurringEventId = "foo"; o.reminders = buildEventReminders(); o.sequence = 42; @@ -1011,8 +1011,8 @@ buildCounterEvent++; if (buildCounterEvent < 3) { unittest.expect(o.anyoneCanAddSelf, unittest.isTrue); - checkUnnamed2988(o.attachments); - checkUnnamed2989(o.attendees); + checkUnnamed185(o.attachments); + checkUnnamed186(o.attendees); unittest.expect(o.attendeesOmitted, unittest.isTrue); unittest.expect(o.colorId, unittest.equals('foo')); checkConferenceData(o.conferenceData); @@ -1038,7 +1038,7 @@ checkEventOrganizer(o.organizer); checkEventDateTime(o.originalStartTime); unittest.expect(o.privateCopy, unittest.isTrue); - checkUnnamed2993(o.recurrence); + checkUnnamed190(o.recurrence); unittest.expect(o.recurringEventId, unittest.equals('foo')); checkEventReminders(o.reminders); unittest.expect(o.sequence, unittest.equals(42)); @@ -1164,27 +1164,27 @@ buildCounterEventReminder--; } -buildUnnamed2995() { +buildUnnamed192() { var o = new core.List<api.EventReminder>(); o.add(buildEventReminder()); o.add(buildEventReminder()); return o; } -checkUnnamed2995(core.List<api.EventReminder> o) { +checkUnnamed192(core.List<api.EventReminder> o) { unittest.expect(o, unittest.hasLength(2)); checkEventReminder(o[0]); checkEventReminder(o[1]); } -buildUnnamed2996() { +buildUnnamed193() { var o = new core.List<api.Event>(); o.add(buildEvent()); o.add(buildEvent()); return o; } -checkUnnamed2996(core.List<api.Event> o) { +checkUnnamed193(core.List<api.Event> o) { unittest.expect(o, unittest.hasLength(2)); checkEvent(o[0]); checkEvent(o[1]); @@ -1196,10 +1196,10 @@ buildCounterEvents++; if (buildCounterEvents < 3) { o.accessRole = "foo"; - o.defaultReminders = buildUnnamed2995(); + o.defaultReminders = buildUnnamed192(); o.description = "foo"; o.etag = "foo"; - o.items = buildUnnamed2996(); + o.items = buildUnnamed193(); o.kind = "foo"; o.nextPageToken = "foo"; o.nextSyncToken = "foo"; @@ -1215,10 +1215,10 @@ buildCounterEvents++; if (buildCounterEvents < 3) { unittest.expect(o.accessRole, unittest.equals('foo')); - checkUnnamed2995(o.defaultReminders); + checkUnnamed192(o.defaultReminders); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2996(o.items); + checkUnnamed193(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.nextSyncToken, unittest.equals('foo')); @@ -1230,27 +1230,27 @@ buildCounterEvents--; } -buildUnnamed2997() { +buildUnnamed194() { var o = new core.List<api.TimePeriod>(); o.add(buildTimePeriod()); o.add(buildTimePeriod()); return o; } -checkUnnamed2997(core.List<api.TimePeriod> o) { +checkUnnamed194(core.List<api.TimePeriod> o) { unittest.expect(o, unittest.hasLength(2)); checkTimePeriod(o[0]); checkTimePeriod(o[1]); } -buildUnnamed2998() { +buildUnnamed195() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed2998(core.List<api.Error> o) { +checkUnnamed195(core.List<api.Error> o) { unittest.expect(o, unittest.hasLength(2)); checkError(o[0]); checkError(o[1]); @@ -1261,8 +1261,8 @@ var o = new api.FreeBusyCalendar(); buildCounterFreeBusyCalendar++; if (buildCounterFreeBusyCalendar < 3) { - o.busy = buildUnnamed2997(); - o.errors = buildUnnamed2998(); + o.busy = buildUnnamed194(); + o.errors = buildUnnamed195(); } buildCounterFreeBusyCalendar--; return o; @@ -1271,33 +1271,33 @@ checkFreeBusyCalendar(api.FreeBusyCalendar o) { buildCounterFreeBusyCalendar++; if (buildCounterFreeBusyCalendar < 3) { - checkUnnamed2997(o.busy); - checkUnnamed2998(o.errors); + checkUnnamed194(o.busy); + checkUnnamed195(o.errors); } buildCounterFreeBusyCalendar--; } -buildUnnamed2999() { +buildUnnamed196() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2999(core.List<core.String> o) { +checkUnnamed196(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3000() { +buildUnnamed197() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed3000(core.List<api.Error> o) { +checkUnnamed197(core.List<api.Error> o) { unittest.expect(o, unittest.hasLength(2)); checkError(o[0]); checkError(o[1]); @@ -1308,8 +1308,8 @@ var o = new api.FreeBusyGroup(); buildCounterFreeBusyGroup++; if (buildCounterFreeBusyGroup < 3) { - o.calendars = buildUnnamed2999(); - o.errors = buildUnnamed3000(); + o.calendars = buildUnnamed196(); + o.errors = buildUnnamed197(); } buildCounterFreeBusyGroup--; return o; @@ -1318,20 +1318,20 @@ checkFreeBusyGroup(api.FreeBusyGroup o) { buildCounterFreeBusyGroup++; if (buildCounterFreeBusyGroup < 3) { - checkUnnamed2999(o.calendars); - checkUnnamed3000(o.errors); + checkUnnamed196(o.calendars); + checkUnnamed197(o.errors); } buildCounterFreeBusyGroup--; } -buildUnnamed3001() { +buildUnnamed198() { var o = new core.List<api.FreeBusyRequestItem>(); o.add(buildFreeBusyRequestItem()); o.add(buildFreeBusyRequestItem()); return o; } -checkUnnamed3001(core.List<api.FreeBusyRequestItem> o) { +checkUnnamed198(core.List<api.FreeBusyRequestItem> o) { unittest.expect(o, unittest.hasLength(2)); checkFreeBusyRequestItem(o[0]); checkFreeBusyRequestItem(o[1]); @@ -1344,7 +1344,7 @@ if (buildCounterFreeBusyRequest < 3) { o.calendarExpansionMax = 42; o.groupExpansionMax = 42; - o.items = buildUnnamed3001(); + o.items = buildUnnamed198(); o.timeMax = core.DateTime.parse("2002-02-27T14:01:02"); o.timeMin = core.DateTime.parse("2002-02-27T14:01:02"); o.timeZone = "foo"; @@ -1358,7 +1358,7 @@ if (buildCounterFreeBusyRequest < 3) { unittest.expect(o.calendarExpansionMax, unittest.equals(42)); unittest.expect(o.groupExpansionMax, unittest.equals(42)); - checkUnnamed3001(o.items); + checkUnnamed198(o.items); unittest.expect( o.timeMax, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect( @@ -1387,27 +1387,27 @@ buildCounterFreeBusyRequestItem--; } -buildUnnamed3002() { +buildUnnamed199() { var o = new core.Map<core.String, api.FreeBusyCalendar>(); o["x"] = buildFreeBusyCalendar(); o["y"] = buildFreeBusyCalendar(); return o; } -checkUnnamed3002(core.Map<core.String, api.FreeBusyCalendar> o) { +checkUnnamed199(core.Map<core.String, api.FreeBusyCalendar> o) { unittest.expect(o, unittest.hasLength(2)); checkFreeBusyCalendar(o["x"]); checkFreeBusyCalendar(o["y"]); } -buildUnnamed3003() { +buildUnnamed200() { var o = new core.Map<core.String, api.FreeBusyGroup>(); o["x"] = buildFreeBusyGroup(); o["y"] = buildFreeBusyGroup(); return o; } -checkUnnamed3003(core.Map<core.String, api.FreeBusyGroup> o) { +checkUnnamed200(core.Map<core.String, api.FreeBusyGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkFreeBusyGroup(o["x"]); checkFreeBusyGroup(o["y"]); @@ -1418,8 +1418,8 @@ var o = new api.FreeBusyResponse(); buildCounterFreeBusyResponse++; if (buildCounterFreeBusyResponse < 3) { - o.calendars = buildUnnamed3002(); - o.groups = buildUnnamed3003(); + o.calendars = buildUnnamed199(); + o.groups = buildUnnamed200(); o.kind = "foo"; o.timeMax = core.DateTime.parse("2002-02-27T14:01:02"); o.timeMin = core.DateTime.parse("2002-02-27T14:01:02"); @@ -1431,8 +1431,8 @@ checkFreeBusyResponse(api.FreeBusyResponse o) { buildCounterFreeBusyResponse++; if (buildCounterFreeBusyResponse < 3) { - checkUnnamed3002(o.calendars); - checkUnnamed3003(o.groups); + checkUnnamed199(o.calendars); + checkUnnamed200(o.groups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect( o.timeMax, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -1467,14 +1467,14 @@ buildCounterSetting--; } -buildUnnamed3004() { +buildUnnamed201() { var o = new core.List<api.Setting>(); o.add(buildSetting()); o.add(buildSetting()); return o; } -checkUnnamed3004(core.List<api.Setting> o) { +checkUnnamed201(core.List<api.Setting> o) { unittest.expect(o, unittest.hasLength(2)); checkSetting(o[0]); checkSetting(o[1]); @@ -1486,7 +1486,7 @@ buildCounterSettings++; if (buildCounterSettings < 3) { o.etag = "foo"; - o.items = buildUnnamed3004(); + o.items = buildUnnamed201(); o.kind = "foo"; o.nextPageToken = "foo"; o.nextSyncToken = "foo"; @@ -1499,7 +1499,7 @@ buildCounterSettings++; if (buildCounterSettings < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3004(o.items); + checkUnnamed201(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.nextSyncToken, unittest.equals('foo')); @@ -1530,53 +1530,53 @@ buildCounterTimePeriod--; } -buildUnnamed3005() { +buildUnnamed202() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3005(core.List<core.String> o) { +checkUnnamed202(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3006() { +buildUnnamed203() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3006(core.List<core.String> o) { +checkUnnamed203(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3007() { +buildUnnamed204() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3007(core.List<core.String> o) { +checkUnnamed204(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3008() { +buildUnnamed205() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3008(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')); @@ -3763,9 +3763,9 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - var arg_privateExtendedProperty = buildUnnamed3005(); + var arg_privateExtendedProperty = buildUnnamed202(); var arg_q = "foo"; - var arg_sharedExtendedProperty = buildUnnamed3006(); + var arg_sharedExtendedProperty = buildUnnamed203(); var arg_showDeleted = true; var arg_showHiddenInvitations = true; var arg_singleEvents = true; @@ -4223,9 +4223,9 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - var arg_privateExtendedProperty = buildUnnamed3007(); + var arg_privateExtendedProperty = buildUnnamed204(); var arg_q = "foo"; - var arg_sharedExtendedProperty = buildUnnamed3008(); + var arg_sharedExtendedProperty = buildUnnamed205(); 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 4a7594c..1ca24f4 100644 --- a/generated/googleapis/test/civicinfo/v2_test.dart +++ b/generated/googleapis/test/civicinfo/v2_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1437() { +buildUnnamed1264() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed1437(core.List<api.Source> o) { +checkUnnamed1264(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -72,7 +72,7 @@ o.id = "foo"; o.localJurisdiction = buildAdministrationRegion(); o.name = "foo"; - o.sources = buildUnnamed1437(); + o.sources = buildUnnamed1264(); } buildCounterAdministrationRegion--; return o; @@ -85,45 +85,45 @@ unittest.expect(o.id, unittest.equals('foo')); checkAdministrationRegion(o.localJurisdiction); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1437(o.sources); + checkUnnamed1264(o.sources); } buildCounterAdministrationRegion--; } -buildUnnamed1438() { +buildUnnamed1265() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1438(core.List<core.String> o) { +checkUnnamed1265(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1439() { +buildUnnamed1266() { var o = new core.List<api.ElectionOfficial>(); o.add(buildElectionOfficial()); o.add(buildElectionOfficial()); return o; } -checkUnnamed1439(core.List<api.ElectionOfficial> o) { +checkUnnamed1266(core.List<api.ElectionOfficial> o) { unittest.expect(o, unittest.hasLength(2)); checkElectionOfficial(o[0]); checkElectionOfficial(o[1]); } -buildUnnamed1440() { +buildUnnamed1267() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1440(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')); @@ -135,18 +135,18 @@ buildCounterAdministrativeBody++; if (buildCounterAdministrativeBody < 3) { o.absenteeVotingInfoUrl = "foo"; - o.addressLines = buildUnnamed1438(); + o.addressLines = buildUnnamed1265(); o.ballotInfoUrl = "foo"; o.correspondenceAddress = buildSimpleAddressType(); o.electionInfoUrl = "foo"; - o.electionOfficials = buildUnnamed1439(); + o.electionOfficials = buildUnnamed1266(); o.electionRegistrationConfirmationUrl = "foo"; o.electionRegistrationUrl = "foo"; o.electionRulesUrl = "foo"; o.hoursOfOperation = "foo"; o.name = "foo"; o.physicalAddress = buildSimpleAddressType(); - o.voterServices = buildUnnamed1440(); + o.voterServices = buildUnnamed1267(); o.votingLocationFinderUrl = "foo"; } buildCounterAdministrativeBody--; @@ -157,11 +157,11 @@ buildCounterAdministrativeBody++; if (buildCounterAdministrativeBody < 3) { unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo')); - checkUnnamed1438(o.addressLines); + checkUnnamed1265(o.addressLines); unittest.expect(o.ballotInfoUrl, unittest.equals('foo')); checkSimpleAddressType(o.correspondenceAddress); unittest.expect(o.electionInfoUrl, unittest.equals('foo')); - checkUnnamed1439(o.electionOfficials); + checkUnnamed1266(o.electionOfficials); unittest.expect( o.electionRegistrationConfirmationUrl, unittest.equals('foo')); unittest.expect(o.electionRegistrationUrl, unittest.equals('foo')); @@ -169,20 +169,20 @@ unittest.expect(o.hoursOfOperation, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkSimpleAddressType(o.physicalAddress); - checkUnnamed1440(o.voterServices); + checkUnnamed1267(o.voterServices); unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo')); } buildCounterAdministrativeBody--; } -buildUnnamed1441() { +buildUnnamed1268() { var o = new core.List<api.Channel>(); o.add(buildChannel()); o.add(buildChannel()); return o; } -checkUnnamed1441(core.List<api.Channel> o) { +checkUnnamed1268(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 = buildUnnamed1441(); + o.channels = buildUnnamed1268(); o.email = "foo"; o.name = "foo"; o.orderOnBallot = "foo"; @@ -210,7 +210,7 @@ buildCounterCandidate++; if (buildCounterCandidate < 3) { unittest.expect(o.candidateUrl, unittest.equals('foo')); - checkUnnamed1441(o.channels); + checkUnnamed1268(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--; } -buildUnnamed1442() { +buildUnnamed1269() { var o = new core.List<api.Candidate>(); o.add(buildCandidate()); o.add(buildCandidate()); return o; } -checkUnnamed1442(core.List<api.Candidate> o) { +checkUnnamed1269(core.List<api.Candidate> o) { unittest.expect(o, unittest.hasLength(2)); checkCandidate(o[0]); checkCandidate(o[1]); } -buildUnnamed1443() { +buildUnnamed1270() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1443(core.List<core.String> o) { +checkUnnamed1270(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1444() { +buildUnnamed1271() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1444(core.List<core.String> o) { +checkUnnamed1271(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1445() { +buildUnnamed1272() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1445(core.List<core.String> o) { +checkUnnamed1272(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1446() { +buildUnnamed1273() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed1446(core.List<api.Source> o) { +checkUnnamed1273(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 = buildUnnamed1442(); + o.candidates = buildUnnamed1269(); o.district = buildElectoralDistrict(); o.electorateSpecifications = "foo"; o.id = "foo"; - o.level = buildUnnamed1443(); + o.level = buildUnnamed1270(); o.numberElected = "foo"; o.numberVotingFor = "foo"; o.office = "foo"; o.primaryParty = "foo"; - o.referendumBallotResponses = buildUnnamed1444(); + o.referendumBallotResponses = buildUnnamed1271(); o.referendumBrief = "foo"; o.referendumConStatement = "foo"; o.referendumEffectOfAbstain = "foo"; @@ -332,8 +332,8 @@ o.referendumText = "foo"; o.referendumTitle = "foo"; o.referendumUrl = "foo"; - o.roles = buildUnnamed1445(); - o.sources = buildUnnamed1446(); + o.roles = buildUnnamed1272(); + o.sources = buildUnnamed1273(); o.special = "foo"; o.type = "foo"; } @@ -345,16 +345,16 @@ buildCounterContest++; if (buildCounterContest < 3) { unittest.expect(o.ballotPlacement, unittest.equals('foo')); - checkUnnamed1442(o.candidates); + checkUnnamed1269(o.candidates); checkElectoralDistrict(o.district); unittest.expect(o.electorateSpecifications, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1443(o.level); + checkUnnamed1270(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')); - checkUnnamed1444(o.referendumBallotResponses); + checkUnnamed1271(o.referendumBallotResponses); unittest.expect(o.referendumBrief, unittest.equals('foo')); unittest.expect(o.referendumConStatement, unittest.equals('foo')); unittest.expect(o.referendumEffectOfAbstain, unittest.equals('foo')); @@ -364,8 +364,8 @@ unittest.expect(o.referendumText, unittest.equals('foo')); unittest.expect(o.referendumTitle, unittest.equals('foo')); unittest.expect(o.referendumUrl, unittest.equals('foo')); - checkUnnamed1445(o.roles); - checkUnnamed1446(o.sources); + checkUnnamed1272(o.roles); + checkUnnamed1273(o.sources); unittest.expect(o.special, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } @@ -430,14 +430,14 @@ buildCounterDivisionSearchRequest--; } -buildUnnamed1447() { +buildUnnamed1274() { var o = new core.List<api.DivisionSearchResult>(); o.add(buildDivisionSearchResult()); o.add(buildDivisionSearchResult()); return o; } -checkUnnamed1447(core.List<api.DivisionSearchResult> o) { +checkUnnamed1274(core.List<api.DivisionSearchResult> o) { unittest.expect(o, unittest.hasLength(2)); checkDivisionSearchResult(o[0]); checkDivisionSearchResult(o[1]); @@ -449,7 +449,7 @@ buildCounterDivisionSearchResponse++; if (buildCounterDivisionSearchResponse < 3) { o.kind = "foo"; - o.results = buildUnnamed1447(); + o.results = buildUnnamed1274(); } buildCounterDivisionSearchResponse--; return o; @@ -459,19 +459,19 @@ buildCounterDivisionSearchResponse++; if (buildCounterDivisionSearchResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1447(o.results); + checkUnnamed1274(o.results); } buildCounterDivisionSearchResponse--; } -buildUnnamed1448() { +buildUnnamed1275() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1448(core.List<core.String> o) { +checkUnnamed1275(core.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 @@ var o = new api.DivisionSearchResult(); buildCounterDivisionSearchResult++; if (buildCounterDivisionSearchResult < 3) { - o.aliases = buildUnnamed1448(); + o.aliases = buildUnnamed1275(); o.name = "foo"; o.ocdId = "foo"; } @@ -493,7 +493,7 @@ checkDivisionSearchResult(api.DivisionSearchResult o) { buildCounterDivisionSearchResult++; if (buildCounterDivisionSearchResult < 3) { - checkUnnamed1448(o.aliases); + checkUnnamed1275(o.aliases); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.ocdId, unittest.equals('foo')); } @@ -571,14 +571,14 @@ buildCounterElectionsQueryRequest--; } -buildUnnamed1449() { +buildUnnamed1276() { var o = new core.List<api.Election>(); o.add(buildElection()); o.add(buildElection()); return o; } -checkUnnamed1449(core.List<api.Election> o) { +checkUnnamed1276(core.List<api.Election> o) { unittest.expect(o, unittest.hasLength(2)); checkElection(o[0]); checkElection(o[1]); @@ -589,7 +589,7 @@ var o = new api.ElectionsQueryResponse(); buildCounterElectionsQueryResponse++; if (buildCounterElectionsQueryResponse < 3) { - o.elections = buildUnnamed1449(); + o.elections = buildUnnamed1276(); o.kind = "foo"; } buildCounterElectionsQueryResponse--; @@ -599,7 +599,7 @@ checkElectionsQueryResponse(api.ElectionsQueryResponse o) { buildCounterElectionsQueryResponse++; if (buildCounterElectionsQueryResponse < 3) { - checkUnnamed1449(o.elections); + checkUnnamed1276(o.elections); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterElectionsQueryResponse--; @@ -630,27 +630,27 @@ buildCounterElectoralDistrict--; } -buildUnnamed1450() { +buildUnnamed1277() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1450(core.List<core.String> o) { +checkUnnamed1277(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1451() { +buildUnnamed1278() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1451(core.List<core.int> o) { +checkUnnamed1278(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)); @@ -661,9 +661,9 @@ var o = new api.GeographicDivision(); buildCounterGeographicDivision++; if (buildCounterGeographicDivision < 3) { - o.alsoKnownAs = buildUnnamed1450(); + o.alsoKnownAs = buildUnnamed1277(); o.name = "foo"; - o.officeIndices = buildUnnamed1451(); + o.officeIndices = buildUnnamed1278(); } buildCounterGeographicDivision--; return o; @@ -672,60 +672,60 @@ checkGeographicDivision(api.GeographicDivision o) { buildCounterGeographicDivision++; if (buildCounterGeographicDivision < 3) { - checkUnnamed1450(o.alsoKnownAs); + checkUnnamed1277(o.alsoKnownAs); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1451(o.officeIndices); + checkUnnamed1278(o.officeIndices); } buildCounterGeographicDivision--; } -buildUnnamed1452() { +buildUnnamed1279() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1452(core.List<core.String> o) { +checkUnnamed1279(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1453() { +buildUnnamed1280() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1453(core.List<core.int> o) { +checkUnnamed1280(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)); } -buildUnnamed1454() { +buildUnnamed1281() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1454(core.List<core.String> o) { +checkUnnamed1281(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1455() { +buildUnnamed1282() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed1455(core.List<api.Source> o) { +checkUnnamed1282(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -737,11 +737,11 @@ buildCounterOffice++; if (buildCounterOffice < 3) { o.divisionId = "foo"; - o.levels = buildUnnamed1452(); + o.levels = buildUnnamed1279(); o.name = "foo"; - o.officialIndices = buildUnnamed1453(); - o.roles = buildUnnamed1454(); - o.sources = buildUnnamed1455(); + o.officialIndices = buildUnnamed1280(); + o.roles = buildUnnamed1281(); + o.sources = buildUnnamed1282(); } buildCounterOffice--; return o; @@ -751,75 +751,75 @@ buildCounterOffice++; if (buildCounterOffice < 3) { unittest.expect(o.divisionId, unittest.equals('foo')); - checkUnnamed1452(o.levels); + checkUnnamed1279(o.levels); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1453(o.officialIndices); - checkUnnamed1454(o.roles); - checkUnnamed1455(o.sources); + checkUnnamed1280(o.officialIndices); + checkUnnamed1281(o.roles); + checkUnnamed1282(o.sources); } buildCounterOffice--; } -buildUnnamed1456() { +buildUnnamed1283() { var o = new core.List<api.SimpleAddressType>(); o.add(buildSimpleAddressType()); o.add(buildSimpleAddressType()); return o; } -checkUnnamed1456(core.List<api.SimpleAddressType> o) { +checkUnnamed1283(core.List<api.SimpleAddressType> o) { unittest.expect(o, unittest.hasLength(2)); checkSimpleAddressType(o[0]); checkSimpleAddressType(o[1]); } -buildUnnamed1457() { +buildUnnamed1284() { var o = new core.List<api.Channel>(); o.add(buildChannel()); o.add(buildChannel()); return o; } -checkUnnamed1457(core.List<api.Channel> o) { +checkUnnamed1284(core.List<api.Channel> o) { unittest.expect(o, unittest.hasLength(2)); checkChannel(o[0]); checkChannel(o[1]); } -buildUnnamed1458() { +buildUnnamed1285() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1458(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')); } -buildUnnamed1459() { +buildUnnamed1286() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1459(core.List<core.String> o) { +checkUnnamed1286(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1460() { +buildUnnamed1287() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1460(core.List<core.String> o) { +checkUnnamed1287(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -830,14 +830,14 @@ var o = new api.Official(); buildCounterOfficial++; if (buildCounterOfficial < 3) { - o.address = buildUnnamed1456(); - o.channels = buildUnnamed1457(); - o.emails = buildUnnamed1458(); + o.address = buildUnnamed1283(); + o.channels = buildUnnamed1284(); + o.emails = buildUnnamed1285(); o.name = "foo"; o.party = "foo"; - o.phones = buildUnnamed1459(); + o.phones = buildUnnamed1286(); o.photoUrl = "foo"; - o.urls = buildUnnamed1460(); + o.urls = buildUnnamed1287(); } buildCounterOfficial--; return o; @@ -846,26 +846,26 @@ checkOfficial(api.Official o) { buildCounterOfficial++; if (buildCounterOfficial < 3) { - checkUnnamed1456(o.address); - checkUnnamed1457(o.channels); - checkUnnamed1458(o.emails); + checkUnnamed1283(o.address); + checkUnnamed1284(o.channels); + checkUnnamed1285(o.emails); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.party, unittest.equals('foo')); - checkUnnamed1459(o.phones); + checkUnnamed1286(o.phones); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed1460(o.urls); + checkUnnamed1287(o.urls); } buildCounterOfficial--; } -buildUnnamed1461() { +buildUnnamed1288() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed1461(core.List<api.Source> o) { +checkUnnamed1288(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -882,7 +882,7 @@ o.name = "foo"; o.notes = "foo"; o.pollingHours = "foo"; - o.sources = buildUnnamed1461(); + o.sources = buildUnnamed1288(); o.startDate = "foo"; o.voterServices = "foo"; } @@ -899,21 +899,21 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); unittest.expect(o.pollingHours, unittest.equals('foo')); - checkUnnamed1461(o.sources); + checkUnnamed1288(o.sources); unittest.expect(o.startDate, unittest.equals('foo')); unittest.expect(o.voterServices, unittest.equals('foo')); } buildCounterPollingLocation--; } -buildUnnamed1462() { +buildUnnamed1289() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1462(core.List<core.String> o) { +checkUnnamed1289(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -924,7 +924,7 @@ var o = new api.PostalAddress(); buildCounterPostalAddress++; if (buildCounterPostalAddress < 3) { - o.addressLines = buildUnnamed1462(); + o.addressLines = buildUnnamed1289(); o.administrativeAreaName = "foo"; o.countryName = "foo"; o.countryNameCode = "foo"; @@ -963,7 +963,7 @@ checkPostalAddress(api.PostalAddress o) { buildCounterPostalAddress++; if (buildCounterPostalAddress < 3) { - checkUnnamed1462(o.addressLines); + checkUnnamed1289(o.addressLines); unittest.expect(o.administrativeAreaName, unittest.equals('foo')); unittest.expect(o.countryName, unittest.equals('foo')); unittest.expect(o.countryNameCode, unittest.equals('foo')); @@ -1001,40 +1001,40 @@ buildCounterPostalAddress--; } -buildUnnamed1463() { +buildUnnamed1290() { var o = new core.Map<core.String, api.GeographicDivision>(); o["x"] = buildGeographicDivision(); o["y"] = buildGeographicDivision(); return o; } -checkUnnamed1463(core.Map<core.String, api.GeographicDivision> o) { +checkUnnamed1290(core.Map<core.String, api.GeographicDivision> o) { unittest.expect(o, unittest.hasLength(2)); checkGeographicDivision(o["x"]); checkGeographicDivision(o["y"]); } -buildUnnamed1464() { +buildUnnamed1291() { var o = new core.List<api.Office>(); o.add(buildOffice()); o.add(buildOffice()); return o; } -checkUnnamed1464(core.List<api.Office> o) { +checkUnnamed1291(core.List<api.Office> o) { unittest.expect(o, unittest.hasLength(2)); checkOffice(o[0]); checkOffice(o[1]); } -buildUnnamed1465() { +buildUnnamed1292() { var o = new core.List<api.Official>(); o.add(buildOfficial()); o.add(buildOfficial()); return o; } -checkUnnamed1465(core.List<api.Official> o) { +checkUnnamed1292(core.List<api.Official> o) { unittest.expect(o, unittest.hasLength(2)); checkOfficial(o[0]); checkOfficial(o[1]); @@ -1045,9 +1045,9 @@ var o = new api.RepresentativeInfoData(); buildCounterRepresentativeInfoData++; if (buildCounterRepresentativeInfoData < 3) { - o.divisions = buildUnnamed1463(); - o.offices = buildUnnamed1464(); - o.officials = buildUnnamed1465(); + o.divisions = buildUnnamed1290(); + o.offices = buildUnnamed1291(); + o.officials = buildUnnamed1292(); } buildCounterRepresentativeInfoData--; return o; @@ -1056,9 +1056,9 @@ checkRepresentativeInfoData(api.RepresentativeInfoData o) { buildCounterRepresentativeInfoData++; if (buildCounterRepresentativeInfoData < 3) { - checkUnnamed1463(o.divisions); - checkUnnamed1464(o.offices); - checkUnnamed1465(o.officials); + checkUnnamed1290(o.divisions); + checkUnnamed1291(o.offices); + checkUnnamed1292(o.officials); } buildCounterRepresentativeInfoData--; } @@ -1082,40 +1082,40 @@ buildCounterRepresentativeInfoRequest--; } -buildUnnamed1466() { +buildUnnamed1293() { var o = new core.Map<core.String, api.GeographicDivision>(); o["x"] = buildGeographicDivision(); o["y"] = buildGeographicDivision(); return o; } -checkUnnamed1466(core.Map<core.String, api.GeographicDivision> o) { +checkUnnamed1293(core.Map<core.String, api.GeographicDivision> o) { unittest.expect(o, unittest.hasLength(2)); checkGeographicDivision(o["x"]); checkGeographicDivision(o["y"]); } -buildUnnamed1467() { +buildUnnamed1294() { var o = new core.List<api.Office>(); o.add(buildOffice()); o.add(buildOffice()); return o; } -checkUnnamed1467(core.List<api.Office> o) { +checkUnnamed1294(core.List<api.Office> o) { unittest.expect(o, unittest.hasLength(2)); checkOffice(o[0]); checkOffice(o[1]); } -buildUnnamed1468() { +buildUnnamed1295() { var o = new core.List<api.Official>(); o.add(buildOfficial()); o.add(buildOfficial()); return o; } -checkUnnamed1468(core.List<api.Official> o) { +checkUnnamed1295(core.List<api.Official> o) { unittest.expect(o, unittest.hasLength(2)); checkOfficial(o[0]); checkOfficial(o[1]); @@ -1126,11 +1126,11 @@ var o = new api.RepresentativeInfoResponse(); buildCounterRepresentativeInfoResponse++; if (buildCounterRepresentativeInfoResponse < 3) { - o.divisions = buildUnnamed1466(); + o.divisions = buildUnnamed1293(); o.kind = "foo"; o.normalizedInput = buildSimpleAddressType(); - o.offices = buildUnnamed1467(); - o.officials = buildUnnamed1468(); + o.offices = buildUnnamed1294(); + o.officials = buildUnnamed1295(); } buildCounterRepresentativeInfoResponse--; return o; @@ -1139,11 +1139,11 @@ checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) { buildCounterRepresentativeInfoResponse++; if (buildCounterRepresentativeInfoResponse < 3) { - checkUnnamed1466(o.divisions); + checkUnnamed1293(o.divisions); unittest.expect(o.kind, unittest.equals('foo')); checkSimpleAddressType(o.normalizedInput); - checkUnnamed1467(o.offices); - checkUnnamed1468(o.officials); + checkUnnamed1294(o.offices); + checkUnnamed1295(o.officials); } buildCounterRepresentativeInfoResponse--; } @@ -1221,79 +1221,79 @@ buildCounterVoterInfoRequest--; } -buildUnnamed1469() { +buildUnnamed1296() { var o = new core.List<api.Contest>(); o.add(buildContest()); o.add(buildContest()); return o; } -checkUnnamed1469(core.List<api.Contest> o) { +checkUnnamed1296(core.List<api.Contest> o) { unittest.expect(o, unittest.hasLength(2)); checkContest(o[0]); checkContest(o[1]); } -buildUnnamed1470() { +buildUnnamed1297() { var o = new core.List<api.PollingLocation>(); o.add(buildPollingLocation()); o.add(buildPollingLocation()); return o; } -checkUnnamed1470(core.List<api.PollingLocation> o) { +checkUnnamed1297(core.List<api.PollingLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkPollingLocation(o[0]); checkPollingLocation(o[1]); } -buildUnnamed1471() { +buildUnnamed1298() { var o = new core.List<api.PollingLocation>(); o.add(buildPollingLocation()); o.add(buildPollingLocation()); return o; } -checkUnnamed1471(core.List<api.PollingLocation> o) { +checkUnnamed1298(core.List<api.PollingLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkPollingLocation(o[0]); checkPollingLocation(o[1]); } -buildUnnamed1472() { +buildUnnamed1299() { var o = new core.List<api.Election>(); o.add(buildElection()); o.add(buildElection()); return o; } -checkUnnamed1472(core.List<api.Election> o) { +checkUnnamed1299(core.List<api.Election> o) { unittest.expect(o, unittest.hasLength(2)); checkElection(o[0]); checkElection(o[1]); } -buildUnnamed1473() { +buildUnnamed1300() { var o = new core.List<api.PollingLocation>(); o.add(buildPollingLocation()); o.add(buildPollingLocation()); return o; } -checkUnnamed1473(core.List<api.PollingLocation> o) { +checkUnnamed1300(core.List<api.PollingLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkPollingLocation(o[0]); checkPollingLocation(o[1]); } -buildUnnamed1474() { +buildUnnamed1301() { var o = new core.List<api.AdministrationRegion>(); o.add(buildAdministrationRegion()); o.add(buildAdministrationRegion()); return o; } -checkUnnamed1474(core.List<api.AdministrationRegion> o) { +checkUnnamed1301(core.List<api.AdministrationRegion> o) { unittest.expect(o, unittest.hasLength(2)); checkAdministrationRegion(o[0]); checkAdministrationRegion(o[1]); @@ -1304,17 +1304,17 @@ var o = new api.VoterInfoResponse(); buildCounterVoterInfoResponse++; if (buildCounterVoterInfoResponse < 3) { - o.contests = buildUnnamed1469(); - o.dropOffLocations = buildUnnamed1470(); - o.earlyVoteSites = buildUnnamed1471(); + o.contests = buildUnnamed1296(); + o.dropOffLocations = buildUnnamed1297(); + o.earlyVoteSites = buildUnnamed1298(); o.election = buildElection(); o.kind = "foo"; o.mailOnly = true; o.normalizedInput = buildSimpleAddressType(); - o.otherElections = buildUnnamed1472(); - o.pollingLocations = buildUnnamed1473(); + o.otherElections = buildUnnamed1299(); + o.pollingLocations = buildUnnamed1300(); o.precinctId = "foo"; - o.state = buildUnnamed1474(); + o.state = buildUnnamed1301(); } buildCounterVoterInfoResponse--; return o; @@ -1323,17 +1323,17 @@ checkVoterInfoResponse(api.VoterInfoResponse o) { buildCounterVoterInfoResponse++; if (buildCounterVoterInfoResponse < 3) { - checkUnnamed1469(o.contests); - checkUnnamed1470(o.dropOffLocations); - checkUnnamed1471(o.earlyVoteSites); + checkUnnamed1296(o.contests); + checkUnnamed1297(o.dropOffLocations); + checkUnnamed1298(o.earlyVoteSites); checkElection(o.election); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.mailOnly, unittest.isTrue); checkSimpleAddressType(o.normalizedInput); - checkUnnamed1472(o.otherElections); - checkUnnamed1473(o.pollingLocations); + checkUnnamed1299(o.otherElections); + checkUnnamed1300(o.pollingLocations); unittest.expect(o.precinctId, unittest.equals('foo')); - checkUnnamed1474(o.state); + checkUnnamed1301(o.state); } buildCounterVoterInfoResponse--; } @@ -1363,53 +1363,53 @@ buildCounterVoterInfoSegmentResult--; } -buildUnnamed1475() { +buildUnnamed1302() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1475(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')); } -buildUnnamed1476() { +buildUnnamed1303() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1476(core.List<core.String> o) { +checkUnnamed1303(core.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() { +buildUnnamed1304() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1477(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')); } -buildUnnamed1478() { +buildUnnamed1305() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1478(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')); @@ -1838,8 +1838,8 @@ var arg_request = buildRepresentativeInfoRequest(); var arg_address = "foo"; var arg_includeOffices = true; - var arg_levels = buildUnnamed1475(); - var arg_roles = buildUnnamed1476(); + var arg_levels = buildUnnamed1302(); + var arg_roles = buildUnnamed1303(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RepresentativeInfoRequest.fromJson(json); @@ -1909,9 +1909,9 @@ new api.CivicinfoApi(mock).representatives; var arg_request = buildDivisionRepresentativeInfoRequest(); var arg_ocdId = "foo"; - var arg_levels = buildUnnamed1477(); + var arg_levels = buildUnnamed1304(); var arg_recursive = true; - var arg_roles = buildUnnamed1478(); + var arg_roles = buildUnnamed1305(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.DivisionRepresentativeInfoRequest.fromJson(json);
diff --git a/generated/googleapis/test/classroom/v1_test.dart b/generated/googleapis/test/classroom/v1_test.dart index 7ecea58..d17d68d 100644 --- a/generated/googleapis/test/classroom/v1_test.dart +++ b/generated/googleapis/test/classroom/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1919() { +buildUnnamed747() { var o = new core.List<api.Material>(); o.add(buildMaterial()); o.add(buildMaterial()); return o; } -checkUnnamed1919(core.List<api.Material> o) { +checkUnnamed747(core.List<api.Material> o) { unittest.expect(o, unittest.hasLength(2)); checkMaterial(o[0]); checkMaterial(o[1]); @@ -75,7 +75,7 @@ o.creatorUserId = "foo"; o.id = "foo"; o.individualStudentsOptions = buildIndividualStudentsOptions(); - o.materials = buildUnnamed1919(); + o.materials = buildUnnamed747(); o.scheduledTime = "foo"; o.state = "foo"; o.text = "foo"; @@ -95,7 +95,7 @@ unittest.expect(o.creatorUserId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkIndividualStudentsOptions(o.individualStudentsOptions); - checkUnnamed1919(o.materials); + checkUnnamed747(o.materials); unittest.expect(o.scheduledTime, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.text, unittest.equals('foo')); @@ -123,14 +123,14 @@ buildCounterAssignment--; } -buildUnnamed1920() { +buildUnnamed748() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed1920(core.List<api.Attachment> o) { +checkUnnamed748(core.List<api.Attachment> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachment(o[0]); checkAttachment(o[1]); @@ -141,7 +141,7 @@ var o = new api.AssignmentSubmission(); buildCounterAssignmentSubmission++; if (buildCounterAssignmentSubmission < 3) { - o.attachments = buildUnnamed1920(); + o.attachments = buildUnnamed748(); } buildCounterAssignmentSubmission--; return o; @@ -150,7 +150,7 @@ checkAssignmentSubmission(api.AssignmentSubmission o) { buildCounterAssignmentSubmission++; if (buildCounterAssignmentSubmission < 3) { - checkUnnamed1920(o.attachments); + checkUnnamed748(o.attachments); } buildCounterAssignmentSubmission--; } @@ -199,14 +199,14 @@ buildCounterCloudPubsubTopic--; } -buildUnnamed1921() { +buildUnnamed749() { var o = new core.List<api.CourseMaterialSet>(); o.add(buildCourseMaterialSet()); o.add(buildCourseMaterialSet()); return o; } -checkUnnamed1921(core.List<api.CourseMaterialSet> o) { +checkUnnamed749(core.List<api.CourseMaterialSet> o) { unittest.expect(o, unittest.hasLength(2)); checkCourseMaterialSet(o[0]); checkCourseMaterialSet(o[1]); @@ -220,7 +220,7 @@ o.alternateLink = "foo"; o.calendarId = "foo"; o.courseGroupEmail = "foo"; - o.courseMaterialSets = buildUnnamed1921(); + o.courseMaterialSets = buildUnnamed749(); o.courseState = "foo"; o.creationTime = "foo"; o.description = "foo"; @@ -246,7 +246,7 @@ unittest.expect(o.alternateLink, unittest.equals('foo')); unittest.expect(o.calendarId, unittest.equals('foo')); unittest.expect(o.courseGroupEmail, unittest.equals('foo')); - checkUnnamed1921(o.courseMaterialSets); + checkUnnamed749(o.courseMaterialSets); unittest.expect(o.courseState, unittest.equals('foo')); unittest.expect(o.creationTime, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); @@ -309,14 +309,14 @@ buildCounterCourseMaterial--; } -buildUnnamed1922() { +buildUnnamed750() { var o = new core.List<api.CourseMaterial>(); o.add(buildCourseMaterial()); o.add(buildCourseMaterial()); return o; } -checkUnnamed1922(core.List<api.CourseMaterial> o) { +checkUnnamed750(core.List<api.CourseMaterial> o) { unittest.expect(o, unittest.hasLength(2)); checkCourseMaterial(o[0]); checkCourseMaterial(o[1]); @@ -327,7 +327,7 @@ var o = new api.CourseMaterialSet(); buildCounterCourseMaterialSet++; if (buildCounterCourseMaterialSet < 3) { - o.materials = buildUnnamed1922(); + o.materials = buildUnnamed750(); o.title = "foo"; } buildCounterCourseMaterialSet--; @@ -337,7 +337,7 @@ checkCourseMaterialSet(api.CourseMaterialSet o) { buildCounterCourseMaterialSet++; if (buildCounterCourseMaterialSet < 3) { - checkUnnamed1922(o.materials); + checkUnnamed750(o.materials); unittest.expect(o.title, unittest.equals('foo')); } buildCounterCourseMaterialSet--; @@ -362,14 +362,14 @@ buildCounterCourseRosterChangesInfo--; } -buildUnnamed1923() { +buildUnnamed751() { var o = new core.List<api.Material>(); o.add(buildMaterial()); o.add(buildMaterial()); return o; } -checkUnnamed1923(core.List<api.Material> o) { +checkUnnamed751(core.List<api.Material> o) { unittest.expect(o, unittest.hasLength(2)); checkMaterial(o[0]); checkMaterial(o[1]); @@ -392,7 +392,7 @@ o.dueTime = buildTimeOfDay(); o.id = "foo"; o.individualStudentsOptions = buildIndividualStudentsOptions(); - o.materials = buildUnnamed1923(); + o.materials = buildUnnamed751(); o.maxPoints = 42.0; o.multipleChoiceQuestion = buildMultipleChoiceQuestion(); o.scheduledTime = "foo"; @@ -421,7 +421,7 @@ checkTimeOfDay(o.dueTime); unittest.expect(o.id, unittest.equals('foo')); checkIndividualStudentsOptions(o.individualStudentsOptions); - checkUnnamed1923(o.materials); + checkUnnamed751(o.materials); unittest.expect(o.maxPoints, unittest.equals(42.0)); checkMultipleChoiceQuestion(o.multipleChoiceQuestion); unittest.expect(o.scheduledTime, unittest.equals('foo')); @@ -664,14 +664,14 @@ buildCounterGuardianInvitation--; } -buildUnnamed1924() { +buildUnnamed752() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1924(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')); @@ -682,7 +682,7 @@ var o = new api.IndividualStudentsOptions(); buildCounterIndividualStudentsOptions++; if (buildCounterIndividualStudentsOptions < 3) { - o.studentIds = buildUnnamed1924(); + o.studentIds = buildUnnamed752(); } buildCounterIndividualStudentsOptions--; return o; @@ -691,7 +691,7 @@ checkIndividualStudentsOptions(api.IndividualStudentsOptions o) { buildCounterIndividualStudentsOptions++; if (buildCounterIndividualStudentsOptions < 3) { - checkUnnamed1924(o.studentIds); + checkUnnamed752(o.studentIds); } buildCounterIndividualStudentsOptions--; } @@ -744,14 +744,14 @@ buildCounterLink--; } -buildUnnamed1925() { +buildUnnamed753() { var o = new core.List<api.Announcement>(); o.add(buildAnnouncement()); o.add(buildAnnouncement()); return o; } -checkUnnamed1925(core.List<api.Announcement> o) { +checkUnnamed753(core.List<api.Announcement> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnouncement(o[0]); checkAnnouncement(o[1]); @@ -762,7 +762,7 @@ var o = new api.ListAnnouncementsResponse(); buildCounterListAnnouncementsResponse++; if (buildCounterListAnnouncementsResponse < 3) { - o.announcements = buildUnnamed1925(); + o.announcements = buildUnnamed753(); o.nextPageToken = "foo"; } buildCounterListAnnouncementsResponse--; @@ -772,20 +772,20 @@ checkListAnnouncementsResponse(api.ListAnnouncementsResponse o) { buildCounterListAnnouncementsResponse++; if (buildCounterListAnnouncementsResponse < 3) { - checkUnnamed1925(o.announcements); + checkUnnamed753(o.announcements); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAnnouncementsResponse--; } -buildUnnamed1926() { +buildUnnamed754() { var o = new core.List<api.CourseAlias>(); o.add(buildCourseAlias()); o.add(buildCourseAlias()); return o; } -checkUnnamed1926(core.List<api.CourseAlias> o) { +checkUnnamed754(core.List<api.CourseAlias> o) { unittest.expect(o, unittest.hasLength(2)); checkCourseAlias(o[0]); checkCourseAlias(o[1]); @@ -796,7 +796,7 @@ var o = new api.ListCourseAliasesResponse(); buildCounterListCourseAliasesResponse++; if (buildCounterListCourseAliasesResponse < 3) { - o.aliases = buildUnnamed1926(); + o.aliases = buildUnnamed754(); o.nextPageToken = "foo"; } buildCounterListCourseAliasesResponse--; @@ -806,20 +806,20 @@ checkListCourseAliasesResponse(api.ListCourseAliasesResponse o) { buildCounterListCourseAliasesResponse++; if (buildCounterListCourseAliasesResponse < 3) { - checkUnnamed1926(o.aliases); + checkUnnamed754(o.aliases); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCourseAliasesResponse--; } -buildUnnamed1927() { +buildUnnamed755() { var o = new core.List<api.CourseWork>(); o.add(buildCourseWork()); o.add(buildCourseWork()); return o; } -checkUnnamed1927(core.List<api.CourseWork> o) { +checkUnnamed755(core.List<api.CourseWork> o) { unittest.expect(o, unittest.hasLength(2)); checkCourseWork(o[0]); checkCourseWork(o[1]); @@ -830,7 +830,7 @@ var o = new api.ListCourseWorkResponse(); buildCounterListCourseWorkResponse++; if (buildCounterListCourseWorkResponse < 3) { - o.courseWork = buildUnnamed1927(); + o.courseWork = buildUnnamed755(); o.nextPageToken = "foo"; } buildCounterListCourseWorkResponse--; @@ -840,20 +840,20 @@ checkListCourseWorkResponse(api.ListCourseWorkResponse o) { buildCounterListCourseWorkResponse++; if (buildCounterListCourseWorkResponse < 3) { - checkUnnamed1927(o.courseWork); + checkUnnamed755(o.courseWork); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCourseWorkResponse--; } -buildUnnamed1928() { +buildUnnamed756() { var o = new core.List<api.Course>(); o.add(buildCourse()); o.add(buildCourse()); return o; } -checkUnnamed1928(core.List<api.Course> o) { +checkUnnamed756(core.List<api.Course> o) { unittest.expect(o, unittest.hasLength(2)); checkCourse(o[0]); checkCourse(o[1]); @@ -864,7 +864,7 @@ var o = new api.ListCoursesResponse(); buildCounterListCoursesResponse++; if (buildCounterListCoursesResponse < 3) { - o.courses = buildUnnamed1928(); + o.courses = buildUnnamed756(); o.nextPageToken = "foo"; } buildCounterListCoursesResponse--; @@ -874,20 +874,20 @@ checkListCoursesResponse(api.ListCoursesResponse o) { buildCounterListCoursesResponse++; if (buildCounterListCoursesResponse < 3) { - checkUnnamed1928(o.courses); + checkUnnamed756(o.courses); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCoursesResponse--; } -buildUnnamed1929() { +buildUnnamed757() { var o = new core.List<api.GuardianInvitation>(); o.add(buildGuardianInvitation()); o.add(buildGuardianInvitation()); return o; } -checkUnnamed1929(core.List<api.GuardianInvitation> o) { +checkUnnamed757(core.List<api.GuardianInvitation> o) { unittest.expect(o, unittest.hasLength(2)); checkGuardianInvitation(o[0]); checkGuardianInvitation(o[1]); @@ -898,7 +898,7 @@ var o = new api.ListGuardianInvitationsResponse(); buildCounterListGuardianInvitationsResponse++; if (buildCounterListGuardianInvitationsResponse < 3) { - o.guardianInvitations = buildUnnamed1929(); + o.guardianInvitations = buildUnnamed757(); o.nextPageToken = "foo"; } buildCounterListGuardianInvitationsResponse--; @@ -908,20 +908,20 @@ checkListGuardianInvitationsResponse(api.ListGuardianInvitationsResponse o) { buildCounterListGuardianInvitationsResponse++; if (buildCounterListGuardianInvitationsResponse < 3) { - checkUnnamed1929(o.guardianInvitations); + checkUnnamed757(o.guardianInvitations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListGuardianInvitationsResponse--; } -buildUnnamed1930() { +buildUnnamed758() { var o = new core.List<api.Guardian>(); o.add(buildGuardian()); o.add(buildGuardian()); return o; } -checkUnnamed1930(core.List<api.Guardian> o) { +checkUnnamed758(core.List<api.Guardian> o) { unittest.expect(o, unittest.hasLength(2)); checkGuardian(o[0]); checkGuardian(o[1]); @@ -932,7 +932,7 @@ var o = new api.ListGuardiansResponse(); buildCounterListGuardiansResponse++; if (buildCounterListGuardiansResponse < 3) { - o.guardians = buildUnnamed1930(); + o.guardians = buildUnnamed758(); o.nextPageToken = "foo"; } buildCounterListGuardiansResponse--; @@ -942,20 +942,20 @@ checkListGuardiansResponse(api.ListGuardiansResponse o) { buildCounterListGuardiansResponse++; if (buildCounterListGuardiansResponse < 3) { - checkUnnamed1930(o.guardians); + checkUnnamed758(o.guardians); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListGuardiansResponse--; } -buildUnnamed1931() { +buildUnnamed759() { var o = new core.List<api.Invitation>(); o.add(buildInvitation()); o.add(buildInvitation()); return o; } -checkUnnamed1931(core.List<api.Invitation> o) { +checkUnnamed759(core.List<api.Invitation> o) { unittest.expect(o, unittest.hasLength(2)); checkInvitation(o[0]); checkInvitation(o[1]); @@ -966,7 +966,7 @@ var o = new api.ListInvitationsResponse(); buildCounterListInvitationsResponse++; if (buildCounterListInvitationsResponse < 3) { - o.invitations = buildUnnamed1931(); + o.invitations = buildUnnamed759(); o.nextPageToken = "foo"; } buildCounterListInvitationsResponse--; @@ -976,20 +976,20 @@ checkListInvitationsResponse(api.ListInvitationsResponse o) { buildCounterListInvitationsResponse++; if (buildCounterListInvitationsResponse < 3) { - checkUnnamed1931(o.invitations); + checkUnnamed759(o.invitations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInvitationsResponse--; } -buildUnnamed1932() { +buildUnnamed760() { var o = new core.List<api.StudentSubmission>(); o.add(buildStudentSubmission()); o.add(buildStudentSubmission()); return o; } -checkUnnamed1932(core.List<api.StudentSubmission> o) { +checkUnnamed760(core.List<api.StudentSubmission> o) { unittest.expect(o, unittest.hasLength(2)); checkStudentSubmission(o[0]); checkStudentSubmission(o[1]); @@ -1001,7 +1001,7 @@ buildCounterListStudentSubmissionsResponse++; if (buildCounterListStudentSubmissionsResponse < 3) { o.nextPageToken = "foo"; - o.studentSubmissions = buildUnnamed1932(); + o.studentSubmissions = buildUnnamed760(); } buildCounterListStudentSubmissionsResponse--; return o; @@ -1011,19 +1011,19 @@ buildCounterListStudentSubmissionsResponse++; if (buildCounterListStudentSubmissionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1932(o.studentSubmissions); + checkUnnamed760(o.studentSubmissions); } buildCounterListStudentSubmissionsResponse--; } -buildUnnamed1933() { +buildUnnamed761() { var o = new core.List<api.Student>(); o.add(buildStudent()); o.add(buildStudent()); return o; } -checkUnnamed1933(core.List<api.Student> o) { +checkUnnamed761(core.List<api.Student> o) { unittest.expect(o, unittest.hasLength(2)); checkStudent(o[0]); checkStudent(o[1]); @@ -1035,7 +1035,7 @@ buildCounterListStudentsResponse++; if (buildCounterListStudentsResponse < 3) { o.nextPageToken = "foo"; - o.students = buildUnnamed1933(); + o.students = buildUnnamed761(); } buildCounterListStudentsResponse--; return o; @@ -1045,19 +1045,19 @@ buildCounterListStudentsResponse++; if (buildCounterListStudentsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1933(o.students); + checkUnnamed761(o.students); } buildCounterListStudentsResponse--; } -buildUnnamed1934() { +buildUnnamed762() { var o = new core.List<api.Teacher>(); o.add(buildTeacher()); o.add(buildTeacher()); return o; } -checkUnnamed1934(core.List<api.Teacher> o) { +checkUnnamed762(core.List<api.Teacher> o) { unittest.expect(o, unittest.hasLength(2)); checkTeacher(o[0]); checkTeacher(o[1]); @@ -1069,7 +1069,7 @@ buildCounterListTeachersResponse++; if (buildCounterListTeachersResponse < 3) { o.nextPageToken = "foo"; - o.teachers = buildUnnamed1934(); + o.teachers = buildUnnamed762(); } buildCounterListTeachersResponse--; return o; @@ -1079,45 +1079,11 @@ buildCounterListTeachersResponse++; if (buildCounterListTeachersResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1934(o.teachers); + checkUnnamed762(o.teachers); } buildCounterListTeachersResponse--; } -buildUnnamed1935() { - var o = new core.List<api.Topic>(); - o.add(buildTopic()); - o.add(buildTopic()); - return o; -} - -checkUnnamed1935(core.List<api.Topic> o) { - unittest.expect(o, unittest.hasLength(2)); - checkTopic(o[0]); - checkTopic(o[1]); -} - -core.int buildCounterListTopicResponse = 0; -buildListTopicResponse() { - var o = new api.ListTopicResponse(); - buildCounterListTopicResponse++; - if (buildCounterListTopicResponse < 3) { - o.nextPageToken = "foo"; - o.topic = buildUnnamed1935(); - } - buildCounterListTopicResponse--; - return o; -} - -checkListTopicResponse(api.ListTopicResponse o) { - buildCounterListTopicResponse++; - if (buildCounterListTopicResponse < 3) { - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1935(o.topic); - } - buildCounterListTopicResponse--; -} - core.int buildCounterMaterial = 0; buildMaterial() { var o = new api.Material(); @@ -1165,14 +1131,14 @@ buildCounterModifyAnnouncementAssigneesRequest--; } -buildUnnamed1936() { +buildUnnamed763() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed1936(core.List<api.Attachment> o) { +checkUnnamed763(core.List<api.Attachment> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachment(o[0]); checkAttachment(o[1]); @@ -1183,7 +1149,7 @@ var o = new api.ModifyAttachmentsRequest(); buildCounterModifyAttachmentsRequest++; if (buildCounterModifyAttachmentsRequest < 3) { - o.addAttachments = buildUnnamed1936(); + o.addAttachments = buildUnnamed763(); } buildCounterModifyAttachmentsRequest--; return o; @@ -1192,7 +1158,7 @@ checkModifyAttachmentsRequest(api.ModifyAttachmentsRequest o) { buildCounterModifyAttachmentsRequest++; if (buildCounterModifyAttachmentsRequest < 3) { - checkUnnamed1936(o.addAttachments); + checkUnnamed763(o.addAttachments); } buildCounterModifyAttachmentsRequest--; } @@ -1218,27 +1184,27 @@ buildCounterModifyCourseWorkAssigneesRequest--; } -buildUnnamed1937() { +buildUnnamed764() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1937(core.List<core.String> o) { +checkUnnamed764(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1938() { +buildUnnamed765() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1938(core.List<core.String> o) { +checkUnnamed765(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1249,8 +1215,8 @@ var o = new api.ModifyIndividualStudentsOptions(); buildCounterModifyIndividualStudentsOptions++; if (buildCounterModifyIndividualStudentsOptions < 3) { - o.addStudentIds = buildUnnamed1937(); - o.removeStudentIds = buildUnnamed1938(); + o.addStudentIds = buildUnnamed764(); + o.removeStudentIds = buildUnnamed765(); } buildCounterModifyIndividualStudentsOptions--; return o; @@ -1259,20 +1225,20 @@ checkModifyIndividualStudentsOptions(api.ModifyIndividualStudentsOptions o) { buildCounterModifyIndividualStudentsOptions++; if (buildCounterModifyIndividualStudentsOptions < 3) { - checkUnnamed1937(o.addStudentIds); - checkUnnamed1938(o.removeStudentIds); + checkUnnamed764(o.addStudentIds); + checkUnnamed765(o.removeStudentIds); } buildCounterModifyIndividualStudentsOptions--; } -buildUnnamed1939() { +buildUnnamed766() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1939(core.List<core.String> o) { +checkUnnamed766(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1283,7 +1249,7 @@ var o = new api.MultipleChoiceQuestion(); buildCounterMultipleChoiceQuestion++; if (buildCounterMultipleChoiceQuestion < 3) { - o.choices = buildUnnamed1939(); + o.choices = buildUnnamed766(); } buildCounterMultipleChoiceQuestion--; return o; @@ -1292,7 +1258,7 @@ checkMultipleChoiceQuestion(api.MultipleChoiceQuestion o) { buildCounterMultipleChoiceQuestion++; if (buildCounterMultipleChoiceQuestion < 3) { - checkUnnamed1939(o.choices); + checkUnnamed766(o.choices); } buildCounterMultipleChoiceQuestion--; } @@ -1482,14 +1448,14 @@ buildCounterStudent--; } -buildUnnamed1940() { +buildUnnamed767() { var o = new core.List<api.SubmissionHistory>(); o.add(buildSubmissionHistory()); o.add(buildSubmissionHistory()); return o; } -checkUnnamed1940(core.List<api.SubmissionHistory> o) { +checkUnnamed767(core.List<api.SubmissionHistory> o) { unittest.expect(o, unittest.hasLength(2)); checkSubmissionHistory(o[0]); checkSubmissionHistory(o[1]); @@ -1514,7 +1480,7 @@ o.multipleChoiceSubmission = buildMultipleChoiceSubmission(); o.shortAnswerSubmission = buildShortAnswerSubmission(); o.state = "foo"; - o.submissionHistory = buildUnnamed1940(); + o.submissionHistory = buildUnnamed767(); o.updateTime = "foo"; o.userId = "foo"; } @@ -1539,7 +1505,7 @@ checkMultipleChoiceSubmission(o.multipleChoiceSubmission); checkShortAnswerSubmission(o.shortAnswerSubmission); unittest.expect(o.state, unittest.equals('foo')); - checkUnnamed1940(o.submissionHistory); + checkUnnamed767(o.submissionHistory); unittest.expect(o.updateTime, unittest.equals('foo')); unittest.expect(o.userId, unittest.equals('foo')); } @@ -1615,31 +1581,6 @@ buildCounterTimeOfDay--; } -core.int buildCounterTopic = 0; -buildTopic() { - var o = new api.Topic(); - buildCounterTopic++; - if (buildCounterTopic < 3) { - o.courseId = "foo"; - o.name = "foo"; - o.topicId = "foo"; - o.updateTime = "foo"; - } - buildCounterTopic--; - return o; -} - -checkTopic(api.Topic o) { - buildCounterTopic++; - if (buildCounterTopic < 3) { - unittest.expect(o.courseId, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.topicId, unittest.equals('foo')); - unittest.expect(o.updateTime, unittest.equals('foo')); - } - buildCounterTopic--; -} - core.int buildCounterTurnInStudentSubmissionRequest = 0; buildTurnInStudentSubmissionRequest() { var o = new api.TurnInStudentSubmissionRequest(); @@ -1655,14 +1596,14 @@ buildCounterTurnInStudentSubmissionRequest--; } -buildUnnamed1941() { +buildUnnamed768() { var o = new core.List<api.GlobalPermission>(); o.add(buildGlobalPermission()); o.add(buildGlobalPermission()); return o; } -checkUnnamed1941(core.List<api.GlobalPermission> o) { +checkUnnamed768(core.List<api.GlobalPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkGlobalPermission(o[0]); checkGlobalPermission(o[1]); @@ -1676,7 +1617,7 @@ o.emailAddress = "foo"; o.id = "foo"; o.name = buildName(); - o.permissions = buildUnnamed1941(); + o.permissions = buildUnnamed768(); o.photoUrl = "foo"; o.verifiedTeacher = true; } @@ -1690,7 +1631,7 @@ unittest.expect(o.emailAddress, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkName(o.name); - checkUnnamed1941(o.permissions); + checkUnnamed768(o.permissions); unittest.expect(o.photoUrl, unittest.equals('foo')); unittest.expect(o.verifiedTeacher, unittest.isTrue); } @@ -1722,66 +1663,66 @@ buildCounterYouTubeVideo--; } -buildUnnamed1942() { +buildUnnamed769() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1942(core.List<core.String> o) { +checkUnnamed769(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1943() { +buildUnnamed770() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1943(core.List<core.String> o) { +checkUnnamed770(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1944() { +buildUnnamed771() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1944(core.List<core.String> o) { +checkUnnamed771(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1945() { +buildUnnamed772() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1945(core.List<core.String> o) { +checkUnnamed772(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1946() { +buildUnnamed773() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1946(core.List<core.String> o) { +checkUnnamed773(core.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,14 +2001,6 @@ }); }); - unittest.group("obj-schema-ListTopicResponse", () { - unittest.test("to-json--from-json", () { - var o = buildListTopicResponse(); - var od = new api.ListTopicResponse.fromJson(o.toJson()); - checkListTopicResponse(od); - }); - }); - unittest.group("obj-schema-Material", () { unittest.test("to-json--from-json", () { var o = buildMaterial(); @@ -2220,14 +2153,6 @@ }); }); - unittest.group("obj-schema-Topic", () { - unittest.test("to-json--from-json", () { - var o = buildTopic(); - var od = new api.Topic.fromJson(o.toJson()); - checkTopic(od); - }); - }); - unittest.group("obj-schema-TurnInStudentSubmissionRequest", () { unittest.test("to-json--from-json", () { var o = buildTurnInStudentSubmissionRequest(); @@ -2415,11 +2340,11 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.CoursesResourceApi res = new api.ClassroomApi(mock).courses; - var arg_teacherId = "foo"; - var arg_courseStates = buildUnnamed1942(); var arg_studentId = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_teacherId = "foo"; + var arg_courseStates = buildUnnamed769(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2452,15 +2377,15 @@ } } unittest.expect( - queryMap["teacherId"].first, unittest.equals(arg_teacherId)); - unittest.expect( - queryMap["courseStates"], unittest.equals(arg_courseStates)); - unittest.expect( queryMap["studentId"].first, unittest.equals(arg_studentId)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["teacherId"].first, unittest.equals(arg_teacherId)); + unittest.expect( + queryMap["courseStates"], unittest.equals(arg_courseStates)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2471,11 +2396,11 @@ }), true); res .list( - teacherId: arg_teacherId, - courseStates: arg_courseStates, studentId: arg_studentId, pageToken: arg_pageToken, pageSize: arg_pageSize, + teacherId: arg_teacherId, + courseStates: arg_courseStates, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListCoursesResponse(response); @@ -3001,7 +2926,7 @@ var arg_orderBy = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_announcementStates = buildUnnamed1943(); + var arg_announcementStates = buildUnnamed770(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3419,7 +3344,7 @@ var arg_orderBy = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_courseWorkStates = buildUnnamed1944(); + var arg_courseWorkStates = buildUnnamed771(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3717,11 +3642,11 @@ new api.ClassroomApi(mock).courses.courseWork.studentSubmissions; var arg_courseId = "foo"; var arg_courseWorkId = "foo"; + var arg_late = "foo"; var arg_pageToken = "foo"; - var arg_states = buildUnnamed1945(); + var arg_states = buildUnnamed772(); var arg_pageSize = 42; var arg_userId = "foo"; - var arg_late = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3771,13 +3696,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["late"].first, unittest.equals(arg_late)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["states"], unittest.equals(arg_states)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["userId"].first, unittest.equals(arg_userId)); - unittest.expect(queryMap["late"].first, unittest.equals(arg_late)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3788,11 +3713,11 @@ }), true); res .list(arg_courseId, arg_courseWorkId, + late: arg_late, pageToken: arg_pageToken, states: arg_states, pageSize: arg_pageSize, userId: arg_userId, - late: arg_late, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListStudentSubmissionsResponse(response); @@ -4688,8 +4613,8 @@ api.CoursesTeachersResourceApi res = new api.ClassroomApi(mock).courses.teachers; var arg_courseId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4730,10 +4655,10 @@ 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4744,8 +4669,8 @@ }), true); res .list(arg_courseId, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListTeachersResponse(response); @@ -4753,141 +4678,6 @@ }); }); - unittest.group("resource-CoursesTopicsResourceApi", () { - unittest.test("method--get", () { - var mock = new HttpServerMock(); - api.CoursesTopicsResourceApi res = - new api.ClassroomApi(mock).courses.topics; - var arg_courseId = "foo"; - var arg_id = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - 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/courses/")); - pathOffset += 11; - index = path.indexOf("/topics/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_courseId")); - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("/topics/")); - 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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildTopic()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .get(arg_courseId, arg_id, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkTopic(response); - }))); - }); - - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.CoursesTopicsResourceApi res = - new api.ClassroomApi(mock).courses.topics; - var arg_courseId = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - 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/courses/")); - pathOffset += 11; - index = path.indexOf("/topics", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_courseId")); - unittest.expect(path.substring(pathOffset, pathOffset + 7), - unittest.equals("/topics")); - pathOffset += 7; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildListTopicResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .list(arg_courseId, - pageToken: arg_pageToken, - pageSize: arg_pageSize, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkListTopicResponse(response); - }))); - }); - }); - unittest.group("resource-InvitationsResourceApi", () { unittest.test("method--accept", () { var mock = new HttpServerMock(); @@ -5474,7 +5264,7 @@ var arg_studentId = "foo"; var arg_pageToken = "foo"; var arg_invitedEmailAddress = "foo"; - var arg_states = buildUnnamed1946(); + var arg_states = buildUnnamed773(); var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
diff --git a/generated/googleapis/test/cloudbilling/v1_test.dart b/generated/googleapis/test/cloudbilling/v1_test.dart index afa96cb..2706209 100644 --- a/generated/googleapis/test/cloudbilling/v1_test.dart +++ b/generated/googleapis/test/cloudbilling/v1_test.dart
@@ -73,12 +73,81 @@ buildCounterAggregationInfo--; } +buildUnnamed3523() { + var o = new core.List<api.AuditLogConfig>(); + o.add(buildAuditLogConfig()); + o.add(buildAuditLogConfig()); + return o; +} + +checkUnnamed3523(core.List<api.AuditLogConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAuditLogConfig(o[0]); + checkAuditLogConfig(o[1]); +} + +core.int buildCounterAuditConfig = 0; +buildAuditConfig() { + var o = new api.AuditConfig(); + buildCounterAuditConfig++; + if (buildCounterAuditConfig < 3) { + o.auditLogConfigs = buildUnnamed3523(); + o.service = "foo"; + } + buildCounterAuditConfig--; + return o; +} + +checkAuditConfig(api.AuditConfig o) { + buildCounterAuditConfig++; + if (buildCounterAuditConfig < 3) { + checkUnnamed3523(o.auditLogConfigs); + unittest.expect(o.service, unittest.equals('foo')); + } + buildCounterAuditConfig--; +} + +buildUnnamed3524() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +core.int buildCounterAuditLogConfig = 0; +buildAuditLogConfig() { + var o = new api.AuditLogConfig(); + buildCounterAuditLogConfig++; + if (buildCounterAuditLogConfig < 3) { + o.exemptedMembers = buildUnnamed3524(); + o.logType = "foo"; + } + buildCounterAuditLogConfig--; + return o; +} + +checkAuditLogConfig(api.AuditLogConfig o) { + buildCounterAuditLogConfig++; + if (buildCounterAuditLogConfig < 3) { + checkUnnamed3524(o.exemptedMembers); + unittest.expect(o.logType, unittest.equals('foo')); + } + buildCounterAuditLogConfig--; +} + core.int buildCounterBillingAccount = 0; buildBillingAccount() { var o = new api.BillingAccount(); buildCounterBillingAccount++; if (buildCounterBillingAccount < 3) { o.displayName = "foo"; + o.masterBillingAccount = "foo"; o.name = "foo"; o.open = true; } @@ -90,12 +159,47 @@ buildCounterBillingAccount++; if (buildCounterBillingAccount < 3) { unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.masterBillingAccount, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.open, unittest.isTrue); } buildCounterBillingAccount--; } +buildUnnamed3525() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3525(core.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 = buildUnnamed3525(); + o.role = "foo"; + } + buildCounterBinding--; + return o; +} + +checkBinding(api.Binding o) { + buildCounterBinding++; + if (buildCounterBinding < 3) { + checkUnnamed3525(o.members); + unittest.expect(o.role, unittest.equals('foo')); + } + buildCounterBinding--; +} + core.int buildCounterCategory = 0; buildCategory() { var o = new api.Category(); @@ -121,14 +225,14 @@ buildCounterCategory--; } -buildUnnamed3009() { +buildUnnamed3526() { var o = new core.List<api.BillingAccount>(); o.add(buildBillingAccount()); o.add(buildBillingAccount()); return o; } -checkUnnamed3009(core.List<api.BillingAccount> o) { +checkUnnamed3526(core.List<api.BillingAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkBillingAccount(o[0]); checkBillingAccount(o[1]); @@ -139,7 +243,7 @@ var o = new api.ListBillingAccountsResponse(); buildCounterListBillingAccountsResponse++; if (buildCounterListBillingAccountsResponse < 3) { - o.billingAccounts = buildUnnamed3009(); + o.billingAccounts = buildUnnamed3526(); o.nextPageToken = "foo"; } buildCounterListBillingAccountsResponse--; @@ -149,20 +253,20 @@ checkListBillingAccountsResponse(api.ListBillingAccountsResponse o) { buildCounterListBillingAccountsResponse++; if (buildCounterListBillingAccountsResponse < 3) { - checkUnnamed3009(o.billingAccounts); + checkUnnamed3526(o.billingAccounts); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListBillingAccountsResponse--; } -buildUnnamed3010() { +buildUnnamed3527() { var o = new core.List<api.ProjectBillingInfo>(); o.add(buildProjectBillingInfo()); o.add(buildProjectBillingInfo()); return o; } -checkUnnamed3010(core.List<api.ProjectBillingInfo> o) { +checkUnnamed3527(core.List<api.ProjectBillingInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkProjectBillingInfo(o[0]); checkProjectBillingInfo(o[1]); @@ -174,7 +278,7 @@ buildCounterListProjectBillingInfoResponse++; if (buildCounterListProjectBillingInfoResponse < 3) { o.nextPageToken = "foo"; - o.projectBillingInfo = buildUnnamed3010(); + o.projectBillingInfo = buildUnnamed3527(); } buildCounterListProjectBillingInfoResponse--; return o; @@ -184,19 +288,19 @@ buildCounterListProjectBillingInfoResponse++; if (buildCounterListProjectBillingInfoResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3010(o.projectBillingInfo); + checkUnnamed3527(o.projectBillingInfo); } buildCounterListProjectBillingInfoResponse--; } -buildUnnamed3011() { +buildUnnamed3528() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed3011(core.List<api.Service> o) { +checkUnnamed3528(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -208,7 +312,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed3011(); + o.services = buildUnnamed3528(); } buildCounterListServicesResponse--; return o; @@ -218,19 +322,19 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3011(o.services); + checkUnnamed3528(o.services); } buildCounterListServicesResponse--; } -buildUnnamed3012() { +buildUnnamed3529() { var o = new core.List<api.Sku>(); o.add(buildSku()); o.add(buildSku()); return o; } -checkUnnamed3012(core.List<api.Sku> o) { +checkUnnamed3529(core.List<api.Sku> o) { unittest.expect(o, unittest.hasLength(2)); checkSku(o[0]); checkSku(o[1]); @@ -242,7 +346,7 @@ buildCounterListSkusResponse++; if (buildCounterListSkusResponse < 3) { o.nextPageToken = "foo"; - o.skus = buildUnnamed3012(); + o.skus = buildUnnamed3529(); } buildCounterListSkusResponse--; return o; @@ -252,7 +356,7 @@ buildCounterListSkusResponse++; if (buildCounterListSkusResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3012(o.skus); + checkUnnamed3529(o.skus); } buildCounterListSkusResponse--; } @@ -280,14 +384,65 @@ buildCounterMoney--; } -buildUnnamed3013() { +buildUnnamed3530() { + var o = new core.List<api.AuditConfig>(); + o.add(buildAuditConfig()); + o.add(buildAuditConfig()); + return o; +} + +checkUnnamed3530(core.List<api.AuditConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAuditConfig(o[0]); + checkAuditConfig(o[1]); +} + +buildUnnamed3531() { + var o = new core.List<api.Binding>(); + o.add(buildBinding()); + o.add(buildBinding()); + return o; +} + +checkUnnamed3531(core.List<api.Binding> o) { + unittest.expect(o, unittest.hasLength(2)); + checkBinding(o[0]); + checkBinding(o[1]); +} + +core.int buildCounterPolicy = 0; +buildPolicy() { + var o = new api.Policy(); + buildCounterPolicy++; + if (buildCounterPolicy < 3) { + o.auditConfigs = buildUnnamed3530(); + o.bindings = buildUnnamed3531(); + o.etag = "foo"; + o.version = 42; + } + buildCounterPolicy--; + return o; +} + +checkPolicy(api.Policy o) { + buildCounterPolicy++; + if (buildCounterPolicy < 3) { + checkUnnamed3530(o.auditConfigs); + checkUnnamed3531(o.bindings); + unittest.expect(o.etag, unittest.equals('foo')); + unittest.expect(o.version, unittest.equals(42)); + } + buildCounterPolicy--; +} + +buildUnnamed3532() { var o = new core.List<api.TierRate>(); o.add(buildTierRate()); o.add(buildTierRate()); return o; } -checkUnnamed3013(core.List<api.TierRate> o) { +checkUnnamed3532(core.List<api.TierRate> o) { unittest.expect(o, unittest.hasLength(2)); checkTierRate(o[0]); checkTierRate(o[1]); @@ -302,7 +457,7 @@ o.baseUnitConversionFactor = 42.0; o.baseUnitDescription = "foo"; o.displayQuantity = 42.0; - o.tieredRates = buildUnnamed3013(); + o.tieredRates = buildUnnamed3532(); o.usageUnit = "foo"; o.usageUnitDescription = "foo"; } @@ -317,7 +472,7 @@ unittest.expect(o.baseUnitConversionFactor, unittest.equals(42.0)); unittest.expect(o.baseUnitDescription, unittest.equals('foo')); unittest.expect(o.displayQuantity, unittest.equals(42.0)); - checkUnnamed3013(o.tieredRates); + checkUnnamed3532(o.tieredRates); unittest.expect(o.usageUnit, unittest.equals('foo')); unittest.expect(o.usageUnitDescription, unittest.equals('foo')); } @@ -399,27 +554,48 @@ buildCounterService--; } -buildUnnamed3014() { +core.int buildCounterSetIamPolicyRequest = 0; +buildSetIamPolicyRequest() { + var o = new api.SetIamPolicyRequest(); + buildCounterSetIamPolicyRequest++; + if (buildCounterSetIamPolicyRequest < 3) { + o.policy = buildPolicy(); + o.updateMask = "foo"; + } + buildCounterSetIamPolicyRequest--; + return o; +} + +checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { + buildCounterSetIamPolicyRequest++; + if (buildCounterSetIamPolicyRequest < 3) { + checkPolicy(o.policy); + unittest.expect(o.updateMask, unittest.equals('foo')); + } + buildCounterSetIamPolicyRequest--; +} + +buildUnnamed3533() { var o = new core.List<api.PricingInfo>(); o.add(buildPricingInfo()); o.add(buildPricingInfo()); return o; } -checkUnnamed3014(core.List<api.PricingInfo> o) { +checkUnnamed3533(core.List<api.PricingInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkPricingInfo(o[0]); checkPricingInfo(o[1]); } -buildUnnamed3015() { +buildUnnamed3534() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3015(core.List<core.String> o) { +checkUnnamed3534(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -433,9 +609,9 @@ o.category = buildCategory(); o.description = "foo"; o.name = "foo"; - o.pricingInfo = buildUnnamed3014(); + o.pricingInfo = buildUnnamed3533(); o.serviceProviderName = "foo"; - o.serviceRegions = buildUnnamed3015(); + o.serviceRegions = buildUnnamed3534(); o.skuId = "foo"; } buildCounterSku--; @@ -448,14 +624,78 @@ checkCategory(o.category); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3014(o.pricingInfo); + checkUnnamed3533(o.pricingInfo); unittest.expect(o.serviceProviderName, unittest.equals('foo')); - checkUnnamed3015(o.serviceRegions); + checkUnnamed3534(o.serviceRegions); unittest.expect(o.skuId, unittest.equals('foo')); } buildCounterSku--; } +buildUnnamed3535() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3535(core.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 buildCounterTestIamPermissionsRequest = 0; +buildTestIamPermissionsRequest() { + var o = new api.TestIamPermissionsRequest(); + buildCounterTestIamPermissionsRequest++; + if (buildCounterTestIamPermissionsRequest < 3) { + o.permissions = buildUnnamed3535(); + } + buildCounterTestIamPermissionsRequest--; + return o; +} + +checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { + buildCounterTestIamPermissionsRequest++; + if (buildCounterTestIamPermissionsRequest < 3) { + checkUnnamed3535(o.permissions); + } + buildCounterTestIamPermissionsRequest--; +} + +buildUnnamed3536() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3536(core.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 buildCounterTestIamPermissionsResponse = 0; +buildTestIamPermissionsResponse() { + var o = new api.TestIamPermissionsResponse(); + buildCounterTestIamPermissionsResponse++; + if (buildCounterTestIamPermissionsResponse < 3) { + o.permissions = buildUnnamed3536(); + } + buildCounterTestIamPermissionsResponse--; + return o; +} + +checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { + buildCounterTestIamPermissionsResponse++; + if (buildCounterTestIamPermissionsResponse < 3) { + checkUnnamed3536(o.permissions); + } + buildCounterTestIamPermissionsResponse--; +} + core.int buildCounterTierRate = 0; buildTierRate() { var o = new api.TierRate(); @@ -486,6 +726,22 @@ }); }); + 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-AuditLogConfig", () { + unittest.test("to-json--from-json", () { + var o = buildAuditLogConfig(); + var od = new api.AuditLogConfig.fromJson(o.toJson()); + checkAuditLogConfig(od); + }); + }); + unittest.group("obj-schema-BillingAccount", () { unittest.test("to-json--from-json", () { var o = buildBillingAccount(); @@ -494,6 +750,14 @@ }); }); + 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-Category", () { unittest.test("to-json--from-json", () { var o = buildCategory(); @@ -542,6 +806,14 @@ }); }); + 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-PricingExpression", () { unittest.test("to-json--from-json", () { var o = buildPricingExpression(); @@ -574,6 +846,14 @@ }); }); + unittest.group("obj-schema-SetIamPolicyRequest", () { + unittest.test("to-json--from-json", () { + var o = buildSetIamPolicyRequest(); + var od = new api.SetIamPolicyRequest.fromJson(o.toJson()); + checkSetIamPolicyRequest(od); + }); + }); + unittest.group("obj-schema-Sku", () { unittest.test("to-json--from-json", () { var o = buildSku(); @@ -582,6 +862,22 @@ }); }); + unittest.group("obj-schema-TestIamPermissionsRequest", () { + unittest.test("to-json--from-json", () { + var o = buildTestIamPermissionsRequest(); + var od = new api.TestIamPermissionsRequest.fromJson(o.toJson()); + checkTestIamPermissionsRequest(od); + }); + }); + + unittest.group("obj-schema-TestIamPermissionsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildTestIamPermissionsResponse(); + var od = new api.TestIamPermissionsResponse.fromJson(o.toJson()); + checkTestIamPermissionsResponse(od); + }); + }); + unittest.group("obj-schema-TierRate", () { unittest.test("to-json--from-json", () { var o = buildTierRate(); @@ -591,6 +887,60 @@ }); unittest.group("resource-BillingAccountsResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.BillingAccountsResourceApi res = + new api.CloudbillingApi(mock).billingAccounts; + var arg_request = buildBillingAccount(); + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.BillingAccount.fromJson(json); + checkBillingAccount(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("v1/billingAccounts")); + pathOffset += 18; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildBillingAccount()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkBillingAccount(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); api.BillingAccountsResourceApi res = @@ -643,10 +993,63 @@ }))); }); + unittest.test("method--getIamPolicy", () { + var mock = new HttpServerMock(); + api.BillingAccountsResourceApi res = + new api.CloudbillingApi(mock).billingAccounts; + var arg_resource = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkPolicy(response); + }))); + }); + unittest.test("method--list", () { var mock = new HttpServerMock(); api.BillingAccountsResourceApi res = new api.CloudbillingApi(mock).billingAccounts; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_$fields = "foo"; @@ -680,6 +1083,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), @@ -694,6 +1098,7 @@ }), true); res .list( + filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, $fields: arg_$fields) @@ -701,6 +1106,178 @@ checkListBillingAccountsResponse(response); }))); }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.BillingAccountsResourceApi res = + new api.CloudbillingApi(mock).billingAccounts; + var arg_request = buildBillingAccount(); + var arg_name = "foo"; + var arg_updateMask = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.BillingAccount.fromJson(json); + checkBillingAccount(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildBillingAccount()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .patch(arg_request, arg_name, + updateMask: arg_updateMask, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkBillingAccount(response); + }))); + }); + + unittest.test("method--setIamPolicy", () { + var mock = new HttpServerMock(); + api.BillingAccountsResourceApi res = + new api.CloudbillingApi(mock).billingAccounts; + var arg_request = buildSetIamPolicyRequest(); + var arg_resource = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkPolicy(response); + }))); + }); + + unittest.test("method--testIamPermissions", () { + var mock = new HttpServerMock(); + api.BillingAccountsResourceApi res = + new api.CloudbillingApi(mock).billingAccounts; + var arg_request = buildTestIamPermissionsRequest(); + var arg_resource = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkTestIamPermissionsResponse(response); + }))); + }); }); unittest.group("resource-BillingAccountsProjectsResourceApi", () { @@ -878,8 +1455,8 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.ServicesResourceApi res = new api.CloudbillingApi(mock).services; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -911,10 +1488,10 @@ 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -925,8 +1502,8 @@ }), true); res .list( - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListServicesResponse(response); @@ -940,11 +1517,11 @@ api.ServicesSkusResourceApi res = new api.CloudbillingApi(mock).services.skus; var arg_parent = "foo"; - var arg_currencyCode = "foo"; var arg_endTime = "foo"; var arg_pageToken = "foo"; var arg_startTime = "foo"; var arg_pageSize = 42; + var arg_currencyCode = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -978,8 +1555,6 @@ } } unittest.expect( - queryMap["currencyCode"].first, unittest.equals(arg_currencyCode)); - unittest.expect( queryMap["endTime"].first, unittest.equals(arg_endTime)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -987,6 +1562,8 @@ queryMap["startTime"].first, unittest.equals(arg_startTime)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["currencyCode"].first, unittest.equals(arg_currencyCode)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -997,11 +1574,11 @@ }), true); res .list(arg_parent, - currencyCode: arg_currencyCode, endTime: arg_endTime, pageToken: arg_pageToken, startTime: arg_startTime, pageSize: arg_pageSize, + currencyCode: arg_currencyCode, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListSkusResponse(response);
diff --git a/generated/googleapis/test/cloudbuild/v1_test.dart b/generated/googleapis/test/cloudbuild/v1_test.dart index 2e96333..eedae52 100644 --- a/generated/googleapis/test/cloudbuild/v1_test.dart +++ b/generated/googleapis/test/cloudbuild/v1_test.dart
@@ -50,79 +50,183 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed927() { +buildUnnamed2471() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed927(core.List<core.String> o) { +checkUnnamed2471(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed928() { +core.int buildCounterArtifactObjects = 0; +buildArtifactObjects() { + var o = new api.ArtifactObjects(); + buildCounterArtifactObjects++; + if (buildCounterArtifactObjects < 3) { + o.location = "foo"; + o.paths = buildUnnamed2471(); + o.timing = buildTimeSpan(); + } + buildCounterArtifactObjects--; + return o; +} + +checkArtifactObjects(api.ArtifactObjects o) { + buildCounterArtifactObjects++; + if (buildCounterArtifactObjects < 3) { + unittest.expect(o.location, unittest.equals('foo')); + checkUnnamed2471(o.paths); + checkTimeSpan(o.timing); + } + buildCounterArtifactObjects--; +} + +buildUnnamed2472() { + var o = new core.List<api.FileHashes>(); + o.add(buildFileHashes()); + o.add(buildFileHashes()); + return o; +} + +checkUnnamed2472(core.List<api.FileHashes> o) { + unittest.expect(o, unittest.hasLength(2)); + checkFileHashes(o[0]); + checkFileHashes(o[1]); +} + +core.int buildCounterArtifactResult = 0; +buildArtifactResult() { + var o = new api.ArtifactResult(); + buildCounterArtifactResult++; + if (buildCounterArtifactResult < 3) { + o.fileHash = buildUnnamed2472(); + o.location = "foo"; + } + buildCounterArtifactResult--; + return o; +} + +checkArtifactResult(api.ArtifactResult o) { + buildCounterArtifactResult++; + if (buildCounterArtifactResult < 3) { + checkUnnamed2472(o.fileHash); + unittest.expect(o.location, unittest.equals('foo')); + } + buildCounterArtifactResult--; +} + +buildUnnamed2473() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2473(core.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 buildCounterArtifacts = 0; +buildArtifacts() { + var o = new api.Artifacts(); + buildCounterArtifacts++; + if (buildCounterArtifacts < 3) { + o.images = buildUnnamed2473(); + o.objects = buildArtifactObjects(); + } + buildCounterArtifacts--; + return o; +} + +checkArtifacts(api.Artifacts o) { + buildCounterArtifacts++; + if (buildCounterArtifacts < 3) { + checkUnnamed2473(o.images); + checkArtifactObjects(o.objects); + } + buildCounterArtifacts--; +} + +buildUnnamed2474() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2475() { var o = new core.List<api.Secret>(); o.add(buildSecret()); o.add(buildSecret()); return o; } -checkUnnamed928(core.List<api.Secret> o) { +checkUnnamed2475(core.List<api.Secret> o) { unittest.expect(o, unittest.hasLength(2)); checkSecret(o[0]); checkSecret(o[1]); } -buildUnnamed929() { +buildUnnamed2476() { var o = new core.List<api.BuildStep>(); o.add(buildBuildStep()); o.add(buildBuildStep()); return o; } -checkUnnamed929(core.List<api.BuildStep> o) { +checkUnnamed2476(core.List<api.BuildStep> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildStep(o[0]); checkBuildStep(o[1]); } -buildUnnamed930() { +buildUnnamed2477() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed930(core.Map<core.String, core.String> o) { +checkUnnamed2477(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')); } -buildUnnamed931() { +buildUnnamed2478() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed931(core.List<core.String> o) { +checkUnnamed2478(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed932() { +buildUnnamed2479() { var o = new core.Map<core.String, api.TimeSpan>(); o["x"] = buildTimeSpan(); o["y"] = buildTimeSpan(); return o; } -checkUnnamed932(core.Map<core.String, api.TimeSpan> o) { +checkUnnamed2479(core.Map<core.String, api.TimeSpan> o) { unittest.expect(o, unittest.hasLength(2)); checkTimeSpan(o["x"]); checkTimeSpan(o["y"]); @@ -133,27 +237,28 @@ var o = new api.Build(); buildCounterBuild++; if (buildCounterBuild < 3) { + o.artifacts = buildArtifacts(); o.buildTriggerId = "foo"; o.createTime = "foo"; o.finishTime = "foo"; o.id = "foo"; - o.images = buildUnnamed927(); + o.images = buildUnnamed2474(); o.logUrl = "foo"; o.logsBucket = "foo"; o.options = buildBuildOptions(); o.projectId = "foo"; o.results = buildResults(); - o.secrets = buildUnnamed928(); + o.secrets = buildUnnamed2475(); o.source = buildSource(); o.sourceProvenance = buildSourceProvenance(); o.startTime = "foo"; o.status = "foo"; o.statusDetail = "foo"; - o.steps = buildUnnamed929(); - o.substitutions = buildUnnamed930(); - o.tags = buildUnnamed931(); + o.steps = buildUnnamed2476(); + o.substitutions = buildUnnamed2477(); + o.tags = buildUnnamed2478(); o.timeout = "foo"; - o.timing = buildUnnamed932(); + o.timing = buildUnnamed2479(); } buildCounterBuild--; return o; @@ -162,27 +267,28 @@ checkBuild(api.Build o) { buildCounterBuild++; if (buildCounterBuild < 3) { + checkArtifacts(o.artifacts); 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')); - checkUnnamed927(o.images); + checkUnnamed2474(o.images); unittest.expect(o.logUrl, unittest.equals('foo')); unittest.expect(o.logsBucket, unittest.equals('foo')); checkBuildOptions(o.options); unittest.expect(o.projectId, unittest.equals('foo')); checkResults(o.results); - checkUnnamed928(o.secrets); + checkUnnamed2475(o.secrets); checkSource(o.source); checkSourceProvenance(o.sourceProvenance); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.statusDetail, unittest.equals('foo')); - checkUnnamed929(o.steps); - checkUnnamed930(o.substitutions); - checkUnnamed931(o.tags); + checkUnnamed2476(o.steps); + checkUnnamed2477(o.substitutions); + checkUnnamed2478(o.tags); unittest.expect(o.timeout, unittest.equals('foo')); - checkUnnamed932(o.timing); + checkUnnamed2479(o.timing); } buildCounterBuild--; } @@ -206,14 +312,14 @@ buildCounterBuildOperationMetadata--; } -buildUnnamed933() { +buildUnnamed2480() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed933(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')); @@ -228,7 +334,7 @@ o.logStreamingOption = "foo"; o.machineType = "foo"; o.requestedVerifyOption = "foo"; - o.sourceProvenanceHash = buildUnnamed933(); + o.sourceProvenanceHash = buildUnnamed2480(); o.substitutionOption = "foo"; } buildCounterBuildOptions--; @@ -242,72 +348,72 @@ unittest.expect(o.logStreamingOption, unittest.equals('foo')); unittest.expect(o.machineType, unittest.equals('foo')); unittest.expect(o.requestedVerifyOption, unittest.equals('foo')); - checkUnnamed933(o.sourceProvenanceHash); + checkUnnamed2480(o.sourceProvenanceHash); unittest.expect(o.substitutionOption, unittest.equals('foo')); } buildCounterBuildOptions--; } -buildUnnamed934() { +buildUnnamed2481() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed934(core.List<core.String> o) { +checkUnnamed2481(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed935() { +buildUnnamed2482() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed935(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')); } -buildUnnamed936() { +buildUnnamed2483() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed936(core.List<core.String> o) { +checkUnnamed2483(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed937() { +buildUnnamed2484() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed937(core.List<api.Volume> o) { +checkUnnamed2484(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); } -buildUnnamed938() { +buildUnnamed2485() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed938(core.List<core.String> o) { +checkUnnamed2485(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -318,16 +424,18 @@ var o = new api.BuildStep(); buildCounterBuildStep++; if (buildCounterBuildStep < 3) { - o.args = buildUnnamed934(); + o.args = buildUnnamed2481(); o.dir = "foo"; o.entrypoint = "foo"; - o.env = buildUnnamed935(); + o.env = buildUnnamed2482(); o.id = "foo"; o.name = "foo"; - o.secretEnv = buildUnnamed936(); + o.secretEnv = buildUnnamed2483(); + o.status = "foo"; + o.timeout = "foo"; o.timing = buildTimeSpan(); - o.volumes = buildUnnamed937(); - o.waitFor = buildUnnamed938(); + o.volumes = buildUnnamed2484(); + o.waitFor = buildUnnamed2485(); } buildCounterBuildStep--; return o; @@ -336,28 +444,30 @@ checkBuildStep(api.BuildStep o) { buildCounterBuildStep++; if (buildCounterBuildStep < 3) { - checkUnnamed934(o.args); + checkUnnamed2481(o.args); unittest.expect(o.dir, unittest.equals('foo')); unittest.expect(o.entrypoint, unittest.equals('foo')); - checkUnnamed935(o.env); + checkUnnamed2482(o.env); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed936(o.secretEnv); + checkUnnamed2483(o.secretEnv); + unittest.expect(o.status, unittest.equals('foo')); + unittest.expect(o.timeout, unittest.equals('foo')); checkTimeSpan(o.timing); - checkUnnamed937(o.volumes); - checkUnnamed938(o.waitFor); + checkUnnamed2484(o.volumes); + checkUnnamed2485(o.waitFor); } buildCounterBuildStep--; } -buildUnnamed939() { +buildUnnamed2486() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed939(core.Map<core.String, core.String> o) { +checkUnnamed2486(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')); @@ -374,7 +484,7 @@ o.disabled = true; o.filename = "foo"; o.id = "foo"; - o.substitutions = buildUnnamed939(); + o.substitutions = buildUnnamed2486(); o.triggerTemplate = buildRepoSource(); } buildCounterBuildTrigger--; @@ -390,7 +500,7 @@ unittest.expect(o.disabled, unittest.isTrue); unittest.expect(o.filename, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed939(o.substitutions); + checkUnnamed2486(o.substitutions); checkRepoSource(o.triggerTemplate); } buildCounterBuildTrigger--; @@ -464,14 +574,14 @@ buildCounterEmpty--; } -buildUnnamed940() { +buildUnnamed2487() { var o = new core.List<api.Hash>(); o.add(buildHash()); o.add(buildHash()); return o; } -checkUnnamed940(core.List<api.Hash> o) { +checkUnnamed2487(core.List<api.Hash> o) { unittest.expect(o, unittest.hasLength(2)); checkHash(o[0]); checkHash(o[1]); @@ -482,7 +592,7 @@ var o = new api.FileHashes(); buildCounterFileHashes++; if (buildCounterFileHashes < 3) { - o.fileHash = buildUnnamed940(); + o.fileHash = buildUnnamed2487(); } buildCounterFileHashes--; return o; @@ -491,7 +601,7 @@ checkFileHashes(api.FileHashes o) { buildCounterFileHashes++; if (buildCounterFileHashes < 3) { - checkUnnamed940(o.fileHash); + checkUnnamed2487(o.fileHash); } buildCounterFileHashes--; } @@ -517,14 +627,14 @@ buildCounterHash--; } -buildUnnamed941() { +buildUnnamed2488() { var o = new core.List<api.BuildTrigger>(); o.add(buildBuildTrigger()); o.add(buildBuildTrigger()); return o; } -checkUnnamed941(core.List<api.BuildTrigger> o) { +checkUnnamed2488(core.List<api.BuildTrigger> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildTrigger(o[0]); checkBuildTrigger(o[1]); @@ -535,7 +645,7 @@ var o = new api.ListBuildTriggersResponse(); buildCounterListBuildTriggersResponse++; if (buildCounterListBuildTriggersResponse < 3) { - o.triggers = buildUnnamed941(); + o.triggers = buildUnnamed2488(); } buildCounterListBuildTriggersResponse--; return o; @@ -544,19 +654,19 @@ checkListBuildTriggersResponse(api.ListBuildTriggersResponse o) { buildCounterListBuildTriggersResponse++; if (buildCounterListBuildTriggersResponse < 3) { - checkUnnamed941(o.triggers); + checkUnnamed2488(o.triggers); } buildCounterListBuildTriggersResponse--; } -buildUnnamed942() { +buildUnnamed2489() { var o = new core.List<api.Build>(); o.add(buildBuild()); o.add(buildBuild()); return o; } -checkUnnamed942(core.List<api.Build> o) { +checkUnnamed2489(core.List<api.Build> o) { unittest.expect(o, unittest.hasLength(2)); checkBuild(o[0]); checkBuild(o[1]); @@ -567,7 +677,7 @@ var o = new api.ListBuildsResponse(); buildCounterListBuildsResponse++; if (buildCounterListBuildsResponse < 3) { - o.builds = buildUnnamed942(); + o.builds = buildUnnamed2489(); o.nextPageToken = "foo"; } buildCounterListBuildsResponse--; @@ -577,20 +687,20 @@ checkListBuildsResponse(api.ListBuildsResponse o) { buildCounterListBuildsResponse++; if (buildCounterListBuildsResponse < 3) { - checkUnnamed942(o.builds); + checkUnnamed2489(o.builds); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListBuildsResponse--; } -buildUnnamed943() { +buildUnnamed2490() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed943(core.List<api.Operation> o) { +checkUnnamed2490(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -602,7 +712,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed943(); + o.operations = buildUnnamed2490(); } buildCounterListOperationsResponse--; return o; @@ -612,12 +722,12 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed943(o.operations); + checkUnnamed2490(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed944() { +buildUnnamed2491() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -632,7 +742,7 @@ return o; } -checkUnnamed944(core.Map<core.String, core.Object> o) { +checkUnnamed2491(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)); @@ -646,7 +756,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed945() { +buildUnnamed2492() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -661,7 +771,7 @@ return o; } -checkUnnamed945(core.Map<core.String, core.Object> o) { +checkUnnamed2492(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)); @@ -682,9 +792,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed944(); + o.metadata = buildUnnamed2491(); o.name = "foo"; - o.response = buildUnnamed945(); + o.response = buildUnnamed2492(); } buildCounterOperation--; return o; @@ -695,9 +805,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed944(o.metadata); + checkUnnamed2491(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed945(o.response); + checkUnnamed2492(o.response); } buildCounterOperation--; } @@ -731,27 +841,27 @@ buildCounterRepoSource--; } -buildUnnamed946() { +buildUnnamed2493() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed946(core.List<core.String> o) { +checkUnnamed2493(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed947() { +buildUnnamed2494() { var o = new core.List<api.BuiltImage>(); o.add(buildBuiltImage()); o.add(buildBuiltImage()); return o; } -checkUnnamed947(core.List<api.BuiltImage> o) { +checkUnnamed2494(core.List<api.BuiltImage> o) { unittest.expect(o, unittest.hasLength(2)); checkBuiltImage(o[0]); checkBuiltImage(o[1]); @@ -762,8 +872,10 @@ var o = new api.Results(); buildCounterResults++; if (buildCounterResults < 3) { - o.buildStepImages = buildUnnamed946(); - o.images = buildUnnamed947(); + o.artifactManifest = "foo"; + o.buildStepImages = buildUnnamed2493(); + o.images = buildUnnamed2494(); + o.numArtifacts = "foo"; } buildCounterResults--; return o; @@ -772,8 +884,10 @@ checkResults(api.Results o) { buildCounterResults++; if (buildCounterResults < 3) { - checkUnnamed946(o.buildStepImages); - checkUnnamed947(o.images); + unittest.expect(o.artifactManifest, unittest.equals('foo')); + checkUnnamed2493(o.buildStepImages); + checkUnnamed2494(o.images); + unittest.expect(o.numArtifacts, unittest.equals('foo')); } buildCounterResults--; } @@ -793,14 +907,14 @@ buildCounterRetryBuildRequest--; } -buildUnnamed948() { +buildUnnamed2495() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed948(core.Map<core.String, core.String> o) { +checkUnnamed2495(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')); @@ -812,7 +926,7 @@ buildCounterSecret++; if (buildCounterSecret < 3) { o.kmsKeyName = "foo"; - o.secretEnv = buildUnnamed948(); + o.secretEnv = buildUnnamed2495(); } buildCounterSecret--; return o; @@ -822,7 +936,7 @@ buildCounterSecret++; if (buildCounterSecret < 3) { unittest.expect(o.kmsKeyName, unittest.equals('foo')); - checkUnnamed948(o.secretEnv); + checkUnnamed2495(o.secretEnv); } buildCounterSecret--; } @@ -848,14 +962,14 @@ buildCounterSource--; } -buildUnnamed949() { +buildUnnamed2496() { var o = new core.Map<core.String, api.FileHashes>(); o["x"] = buildFileHashes(); o["y"] = buildFileHashes(); return o; } -checkUnnamed949(core.Map<core.String, api.FileHashes> o) { +checkUnnamed2496(core.Map<core.String, api.FileHashes> o) { unittest.expect(o, unittest.hasLength(2)); checkFileHashes(o["x"]); checkFileHashes(o["y"]); @@ -866,7 +980,7 @@ var o = new api.SourceProvenance(); buildCounterSourceProvenance++; if (buildCounterSourceProvenance < 3) { - o.fileHashes = buildUnnamed949(); + o.fileHashes = buildUnnamed2496(); o.resolvedRepoSource = buildRepoSource(); o.resolvedStorageSource = buildStorageSource(); } @@ -877,14 +991,14 @@ checkSourceProvenance(api.SourceProvenance o) { buildCounterSourceProvenance++; if (buildCounterSourceProvenance < 3) { - checkUnnamed949(o.fileHashes); + checkUnnamed2496(o.fileHashes); checkRepoSource(o.resolvedRepoSource); checkStorageSource(o.resolvedStorageSource); } buildCounterSourceProvenance--; } -buildUnnamed950() { +buildUnnamed2497() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -899,7 +1013,7 @@ return o; } -checkUnnamed950(core.Map<core.String, core.Object> o) { +checkUnnamed2497(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)); @@ -913,17 +1027,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed951() { +buildUnnamed2498() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed950()); - o.add(buildUnnamed950()); + o.add(buildUnnamed2497()); + o.add(buildUnnamed2497()); return o; } -checkUnnamed951(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2498(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed950(o[0]); - checkUnnamed950(o[1]); + checkUnnamed2497(o[0]); + checkUnnamed2497(o[1]); } core.int buildCounterStatus = 0; @@ -932,7 +1046,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed951(); + o.details = buildUnnamed2498(); o.message = "foo"; } buildCounterStatus--; @@ -943,7 +1057,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed951(o.details); + checkUnnamed2498(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1015,6 +1129,30 @@ } main() { + unittest.group("obj-schema-ArtifactObjects", () { + unittest.test("to-json--from-json", () { + var o = buildArtifactObjects(); + var od = new api.ArtifactObjects.fromJson(o.toJson()); + checkArtifactObjects(od); + }); + }); + + unittest.group("obj-schema-ArtifactResult", () { + unittest.test("to-json--from-json", () { + var o = buildArtifactResult(); + var od = new api.ArtifactResult.fromJson(o.toJson()); + checkArtifactResult(od); + }); + }); + + unittest.group("obj-schema-Artifacts", () { + unittest.test("to-json--from-json", () { + var o = buildArtifacts(); + var od = new api.Artifacts.fromJson(o.toJson()); + checkArtifacts(od); + }); + }); + unittest.group("obj-schema-Build", () { unittest.test("to-json--from-json", () { var o = buildBuild(); @@ -1326,9 +1464,9 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.CloudbuildApi(mock).operations; var arg_name = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1361,11 +1499,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1376,9 +1514,9 @@ }), true); res .list(arg_name, - filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response); @@ -1594,9 +1732,9 @@ api.ProjectsBuildsResourceApi res = new api.CloudbuildApi(mock).projects.builds; var arg_projectId = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1637,11 +1775,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1652,9 +1790,9 @@ }), true); res .list(arg_projectId, + filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, - filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListBuildsResponse(response);
diff --git a/generated/googleapis/test/clouddebugger/v2_test.dart b/generated/googleapis/test/clouddebugger/v2_test.dart index 17b6011..6d751a7 100644 --- a/generated/googleapis/test/clouddebugger/v2_test.dart +++ b/generated/googleapis/test/clouddebugger/v2_test.dart
@@ -71,66 +71,66 @@ buildCounterAliasContext--; } -buildUnnamed3426() { +buildUnnamed1180() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed3426(core.List<api.Variable> o) { +checkUnnamed1180(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); } -buildUnnamed3427() { +buildUnnamed1181() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3427(core.List<core.String> o) { +checkUnnamed1181(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3428() { +buildUnnamed1182() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3428(core.Map<core.String, core.String> o) { +checkUnnamed1182(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')); } -buildUnnamed3429() { +buildUnnamed1183() { var o = new core.List<api.StackFrame>(); o.add(buildStackFrame()); o.add(buildStackFrame()); return o; } -checkUnnamed3429(core.List<api.StackFrame> o) { +checkUnnamed1183(core.List<api.StackFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkStackFrame(o[0]); checkStackFrame(o[1]); } -buildUnnamed3430() { +buildUnnamed1184() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed3430(core.List<api.Variable> o) { +checkUnnamed1184(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -144,19 +144,19 @@ o.action = "foo"; o.condition = "foo"; o.createTime = "foo"; - o.evaluatedExpressions = buildUnnamed3426(); - o.expressions = buildUnnamed3427(); + o.evaluatedExpressions = buildUnnamed1180(); + o.expressions = buildUnnamed1181(); o.finalTime = "foo"; o.id = "foo"; o.isFinalState = true; - o.labels = buildUnnamed3428(); + o.labels = buildUnnamed1182(); o.location = buildSourceLocation(); o.logLevel = "foo"; o.logMessageFormat = "foo"; - o.stackFrames = buildUnnamed3429(); + o.stackFrames = buildUnnamed1183(); o.status = buildStatusMessage(); o.userEmail = "foo"; - o.variableTable = buildUnnamed3430(); + o.variableTable = buildUnnamed1184(); } buildCounterBreakpoint--; return o; @@ -168,19 +168,19 @@ unittest.expect(o.action, unittest.equals('foo')); unittest.expect(o.condition, unittest.equals('foo')); unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed3426(o.evaluatedExpressions); - checkUnnamed3427(o.expressions); + checkUnnamed1180(o.evaluatedExpressions); + checkUnnamed1181(o.expressions); unittest.expect(o.finalTime, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isFinalState, unittest.isTrue); - checkUnnamed3428(o.labels); + checkUnnamed1182(o.labels); checkSourceLocation(o.location); unittest.expect(o.logLevel, unittest.equals('foo')); unittest.expect(o.logMessageFormat, unittest.equals('foo')); - checkUnnamed3429(o.stackFrames); + checkUnnamed1183(o.stackFrames); checkStatusMessage(o.status); unittest.expect(o.userEmail, unittest.equals('foo')); - checkUnnamed3430(o.variableTable); + checkUnnamed1184(o.variableTable); } buildCounterBreakpoint--; } @@ -252,40 +252,40 @@ buildCounterCloudWorkspaceSourceContext--; } -buildUnnamed3431() { +buildUnnamed1185() { var o = new core.List<api.ExtendedSourceContext>(); o.add(buildExtendedSourceContext()); o.add(buildExtendedSourceContext()); return o; } -checkUnnamed3431(core.List<api.ExtendedSourceContext> o) { +checkUnnamed1185(core.List<api.ExtendedSourceContext> o) { unittest.expect(o, unittest.hasLength(2)); checkExtendedSourceContext(o[0]); checkExtendedSourceContext(o[1]); } -buildUnnamed3432() { +buildUnnamed1186() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3432(core.Map<core.String, core.String> o) { +checkUnnamed1186(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')); } -buildUnnamed3433() { +buildUnnamed1187() { var o = new core.List<api.SourceContext>(); o.add(buildSourceContext()); o.add(buildSourceContext()); return o; } -checkUnnamed3433(core.List<api.SourceContext> o) { +checkUnnamed1187(core.List<api.SourceContext> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceContext(o[0]); checkSourceContext(o[1]); @@ -298,13 +298,13 @@ if (buildCounterDebuggee < 3) { o.agentVersion = "foo"; o.description = "foo"; - o.extSourceContexts = buildUnnamed3431(); + o.extSourceContexts = buildUnnamed1185(); o.id = "foo"; o.isDisabled = true; o.isInactive = true; - o.labels = buildUnnamed3432(); + o.labels = buildUnnamed1186(); o.project = "foo"; - o.sourceContexts = buildUnnamed3433(); + o.sourceContexts = buildUnnamed1187(); o.status = buildStatusMessage(); o.uniquifier = "foo"; } @@ -317,13 +317,13 @@ if (buildCounterDebuggee < 3) { unittest.expect(o.agentVersion, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed3431(o.extSourceContexts); + checkUnnamed1185(o.extSourceContexts); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isDisabled, unittest.isTrue); unittest.expect(o.isInactive, unittest.isTrue); - checkUnnamed3432(o.labels); + checkUnnamed1186(o.labels); unittest.expect(o.project, unittest.equals('foo')); - checkUnnamed3433(o.sourceContexts); + checkUnnamed1187(o.sourceContexts); checkStatusMessage(o.status); unittest.expect(o.uniquifier, unittest.equals('foo')); } @@ -345,14 +345,14 @@ buildCounterEmpty--; } -buildUnnamed3434() { +buildUnnamed1188() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3434(core.Map<core.String, core.String> o) { +checkUnnamed1188(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')); @@ -364,7 +364,7 @@ buildCounterExtendedSourceContext++; if (buildCounterExtendedSourceContext < 3) { o.context = buildSourceContext(); - o.labels = buildUnnamed3434(); + o.labels = buildUnnamed1188(); } buildCounterExtendedSourceContext--; return o; @@ -374,19 +374,19 @@ buildCounterExtendedSourceContext++; if (buildCounterExtendedSourceContext < 3) { checkSourceContext(o.context); - checkUnnamed3434(o.labels); + checkUnnamed1188(o.labels); } buildCounterExtendedSourceContext--; } -buildUnnamed3435() { +buildUnnamed1189() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3435(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')); @@ -398,7 +398,7 @@ buildCounterFormatMessage++; if (buildCounterFormatMessage < 3) { o.format = "foo"; - o.parameters = buildUnnamed3435(); + o.parameters = buildUnnamed1189(); } buildCounterFormatMessage--; return o; @@ -408,7 +408,7 @@ buildCounterFormatMessage++; if (buildCounterFormatMessage < 3) { unittest.expect(o.format, unittest.equals('foo')); - checkUnnamed3435(o.parameters); + checkUnnamed1189(o.parameters); } buildCounterFormatMessage--; } @@ -480,14 +480,14 @@ buildCounterGitSourceContext--; } -buildUnnamed3436() { +buildUnnamed1190() { var o = new core.List<api.Breakpoint>(); o.add(buildBreakpoint()); o.add(buildBreakpoint()); return o; } -checkUnnamed3436(core.List<api.Breakpoint> o) { +checkUnnamed1190(core.List<api.Breakpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkBreakpoint(o[0]); checkBreakpoint(o[1]); @@ -498,7 +498,7 @@ var o = new api.ListActiveBreakpointsResponse(); buildCounterListActiveBreakpointsResponse++; if (buildCounterListActiveBreakpointsResponse < 3) { - o.breakpoints = buildUnnamed3436(); + o.breakpoints = buildUnnamed1190(); o.nextWaitToken = "foo"; o.waitExpired = true; } @@ -509,21 +509,21 @@ checkListActiveBreakpointsResponse(api.ListActiveBreakpointsResponse o) { buildCounterListActiveBreakpointsResponse++; if (buildCounterListActiveBreakpointsResponse < 3) { - checkUnnamed3436(o.breakpoints); + checkUnnamed1190(o.breakpoints); unittest.expect(o.nextWaitToken, unittest.equals('foo')); unittest.expect(o.waitExpired, unittest.isTrue); } buildCounterListActiveBreakpointsResponse--; } -buildUnnamed3437() { +buildUnnamed1191() { var o = new core.List<api.Breakpoint>(); o.add(buildBreakpoint()); o.add(buildBreakpoint()); return o; } -checkUnnamed3437(core.List<api.Breakpoint> o) { +checkUnnamed1191(core.List<api.Breakpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkBreakpoint(o[0]); checkBreakpoint(o[1]); @@ -534,7 +534,7 @@ var o = new api.ListBreakpointsResponse(); buildCounterListBreakpointsResponse++; if (buildCounterListBreakpointsResponse < 3) { - o.breakpoints = buildUnnamed3437(); + o.breakpoints = buildUnnamed1191(); o.nextWaitToken = "foo"; } buildCounterListBreakpointsResponse--; @@ -544,20 +544,20 @@ checkListBreakpointsResponse(api.ListBreakpointsResponse o) { buildCounterListBreakpointsResponse++; if (buildCounterListBreakpointsResponse < 3) { - checkUnnamed3437(o.breakpoints); + checkUnnamed1191(o.breakpoints); unittest.expect(o.nextWaitToken, unittest.equals('foo')); } buildCounterListBreakpointsResponse--; } -buildUnnamed3438() { +buildUnnamed1192() { var o = new core.List<api.Debuggee>(); o.add(buildDebuggee()); o.add(buildDebuggee()); return o; } -checkUnnamed3438(core.List<api.Debuggee> o) { +checkUnnamed1192(core.List<api.Debuggee> o) { unittest.expect(o, unittest.hasLength(2)); checkDebuggee(o[0]); checkDebuggee(o[1]); @@ -568,7 +568,7 @@ var o = new api.ListDebuggeesResponse(); buildCounterListDebuggeesResponse++; if (buildCounterListDebuggeesResponse < 3) { - o.debuggees = buildUnnamed3438(); + o.debuggees = buildUnnamed1192(); } buildCounterListDebuggeesResponse--; return o; @@ -577,7 +577,7 @@ checkListDebuggeesResponse(api.ListDebuggeesResponse o) { buildCounterListDebuggeesResponse++; if (buildCounterListDebuggeesResponse < 3) { - checkUnnamed3438(o.debuggees); + checkUnnamed1192(o.debuggees); } buildCounterListDebuggeesResponse--; } @@ -727,27 +727,27 @@ buildCounterSourceLocation--; } -buildUnnamed3439() { +buildUnnamed1193() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed3439(core.List<api.Variable> o) { +checkUnnamed1193(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); } -buildUnnamed3440() { +buildUnnamed1194() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed3440(core.List<api.Variable> o) { +checkUnnamed1194(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -758,9 +758,9 @@ var o = new api.StackFrame(); buildCounterStackFrame++; if (buildCounterStackFrame < 3) { - o.arguments = buildUnnamed3439(); + o.arguments = buildUnnamed1193(); o.function = "foo"; - o.locals = buildUnnamed3440(); + o.locals = buildUnnamed1194(); o.location = buildSourceLocation(); } buildCounterStackFrame--; @@ -770,9 +770,9 @@ checkStackFrame(api.StackFrame o) { buildCounterStackFrame++; if (buildCounterStackFrame < 3) { - checkUnnamed3439(o.arguments); + checkUnnamed1193(o.arguments); unittest.expect(o.function, unittest.equals('foo')); - checkUnnamed3440(o.locals); + checkUnnamed1194(o.locals); checkSourceLocation(o.location); } buildCounterStackFrame--; @@ -835,14 +835,14 @@ buildCounterUpdateActiveBreakpointResponse--; } -buildUnnamed3441() { +buildUnnamed1195() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed3441(core.List<api.Variable> o) { +checkUnnamed1195(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -853,7 +853,7 @@ var o = new api.Variable(); buildCounterVariable++; if (buildCounterVariable < 3) { - o.members = buildUnnamed3441(); + o.members = buildUnnamed1195(); o.name = "foo"; o.status = buildStatusMessage(); o.type = "foo"; @@ -867,7 +867,7 @@ checkVariable(api.Variable o) { buildCounterVariable++; if (buildCounterVariable < 3) { - checkUnnamed3441(o.members); + checkUnnamed1195(o.members); unittest.expect(o.name, unittest.equals('foo')); checkStatusMessage(o.status); unittest.expect(o.type, unittest.equals('foo')); @@ -1156,8 +1156,8 @@ api.ControllerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerApi(mock).controller.debuggees.breakpoints; var arg_debuggeeId = "foo"; - var arg_successOnTimeout = true; var arg_waitToken = "foo"; + var arg_successOnTimeout = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1198,10 +1198,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["successOnTimeout"].first, - unittest.equals("$arg_successOnTimeout")); unittest.expect( queryMap["waitToken"].first, unittest.equals(arg_waitToken)); + unittest.expect(queryMap["successOnTimeout"].first, + unittest.equals("$arg_successOnTimeout")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1212,8 +1212,8 @@ }), true); res .list(arg_debuggeeId, - successOnTimeout: arg_successOnTimeout, waitToken: arg_waitToken, + successOnTimeout: arg_successOnTimeout, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListActiveBreakpointsResponse(response); @@ -1294,9 +1294,9 @@ var mock = new HttpServerMock(); api.DebuggerDebuggeesResourceApi res = new api.ClouddebuggerApi(mock).debugger.debuggees; + var arg_clientVersion = "foo"; var arg_includeInactive = true; var arg_project = "foo"; - var arg_clientVersion = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1328,12 +1328,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["clientVersion"].first, + unittest.equals(arg_clientVersion)); unittest.expect(queryMap["includeInactive"].first, unittest.equals("$arg_includeInactive")); unittest.expect( queryMap["project"].first, unittest.equals(arg_project)); - unittest.expect(queryMap["clientVersion"].first, - unittest.equals(arg_clientVersion)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1344,9 +1344,9 @@ }), true); res .list( + clientVersion: arg_clientVersion, includeInactive: arg_includeInactive, project: arg_project, - clientVersion: arg_clientVersion, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDebuggeesResponse(response);
diff --git a/generated/googleapis/test/cloudfunctions/v1_test.dart b/generated/googleapis/test/cloudfunctions/v1_test.dart index 20e8763..b653e59 100644 --- a/generated/googleapis/test/cloudfunctions/v1_test.dart +++ b/generated/googleapis/test/cloudfunctions/v1_test.dart
@@ -92,14 +92,14 @@ buildCounterCallFunctionResponse--; } -buildUnnamed1867() { +buildUnnamed2073() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1867(core.Map<core.String, core.String> o) { +checkUnnamed2073(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')); @@ -115,8 +115,9 @@ o.entryPoint = "foo"; o.eventTrigger = buildEventTrigger(); o.httpsTrigger = buildHttpsTrigger(); - o.labels = buildUnnamed1867(); + o.labels = buildUnnamed2073(); o.name = "foo"; + o.runtime = "foo"; o.serviceAccountEmail = "foo"; o.sourceArchiveUrl = "foo"; o.sourceRepository = buildSourceRepository(); @@ -138,8 +139,9 @@ unittest.expect(o.entryPoint, unittest.equals('foo')); checkEventTrigger(o.eventTrigger); checkHttpsTrigger(o.httpsTrigger); - checkUnnamed1867(o.labels); + checkUnnamed2073(o.labels); unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.runtime, unittest.equals('foo')); unittest.expect(o.serviceAccountEmail, unittest.equals('foo')); unittest.expect(o.sourceArchiveUrl, unittest.equals('foo')); checkSourceRepository(o.sourceRepository); @@ -287,14 +289,14 @@ buildCounterHttpsTrigger--; } -buildUnnamed1868() { +buildUnnamed2074() { var o = new core.List<api.CloudFunction>(); o.add(buildCloudFunction()); o.add(buildCloudFunction()); return o; } -checkUnnamed1868(core.List<api.CloudFunction> o) { +checkUnnamed2074(core.List<api.CloudFunction> o) { unittest.expect(o, unittest.hasLength(2)); checkCloudFunction(o[0]); checkCloudFunction(o[1]); @@ -305,7 +307,7 @@ var o = new api.ListFunctionsResponse(); buildCounterListFunctionsResponse++; if (buildCounterListFunctionsResponse < 3) { - o.functions = buildUnnamed1868(); + o.functions = buildUnnamed2074(); o.nextPageToken = "foo"; } buildCounterListFunctionsResponse--; @@ -315,20 +317,20 @@ checkListFunctionsResponse(api.ListFunctionsResponse o) { buildCounterListFunctionsResponse++; if (buildCounterListFunctionsResponse < 3) { - checkUnnamed1868(o.functions); + checkUnnamed2074(o.functions); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListFunctionsResponse--; } -buildUnnamed1869() { +buildUnnamed2075() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed1869(core.List<api.Location> o) { +checkUnnamed2075(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -339,7 +341,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed1869(); + o.locations = buildUnnamed2075(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -349,20 +351,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed1869(o.locations); + checkUnnamed2075(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed1870() { +buildUnnamed2076() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1870(core.List<api.Operation> o) { +checkUnnamed2076(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -374,7 +376,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1870(); + o.operations = buildUnnamed2076(); } buildCounterListOperationsResponse--; return o; @@ -384,25 +386,25 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1870(o.operations); + checkUnnamed2076(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1871() { +buildUnnamed2077() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1871(core.Map<core.String, core.String> o) { +checkUnnamed2077(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')); } -buildUnnamed1872() { +buildUnnamed2078() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -417,7 +419,7 @@ return o; } -checkUnnamed1872(core.Map<core.String, core.Object> o) { +checkUnnamed2078(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)); @@ -436,9 +438,10 @@ var o = new api.Location(); buildCounterLocation++; if (buildCounterLocation < 3) { - o.labels = buildUnnamed1871(); + o.displayName = "foo"; + o.labels = buildUnnamed2077(); o.locationId = "foo"; - o.metadata = buildUnnamed1872(); + o.metadata = buildUnnamed2078(); o.name = "foo"; } buildCounterLocation--; @@ -448,15 +451,16 @@ checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { - checkUnnamed1871(o.labels); + unittest.expect(o.displayName, unittest.equals('foo')); + checkUnnamed2077(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed1872(o.metadata); + checkUnnamed2078(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; } -buildUnnamed1873() { +buildUnnamed2079() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -471,7 +475,7 @@ return o; } -checkUnnamed1873(core.Map<core.String, core.Object> o) { +checkUnnamed2079(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)); @@ -485,7 +489,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed1874() { +buildUnnamed2080() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -500,7 +504,7 @@ return o; } -checkUnnamed1874(core.Map<core.String, core.Object> o) { +checkUnnamed2080(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)); @@ -521,9 +525,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1873(); + o.metadata = buildUnnamed2079(); o.name = "foo"; - o.response = buildUnnamed1874(); + o.response = buildUnnamed2080(); } buildCounterOperation--; return o; @@ -534,14 +538,14 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1873(o.metadata); + checkUnnamed2079(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1874(o.response); + checkUnnamed2080(o.response); } buildCounterOperation--; } -buildUnnamed1875() { +buildUnnamed2081() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -556,7 +560,7 @@ return o; } -checkUnnamed1875(core.Map<core.String, core.Object> o) { +checkUnnamed2081(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)); @@ -575,7 +579,7 @@ var o = new api.OperationMetadataV1(); buildCounterOperationMetadataV1++; if (buildCounterOperationMetadataV1 < 3) { - o.request = buildUnnamed1875(); + o.request = buildUnnamed2081(); o.target = "foo"; o.type = "foo"; o.updateTime = "foo"; @@ -588,7 +592,7 @@ checkOperationMetadataV1(api.OperationMetadataV1 o) { buildCounterOperationMetadataV1++; if (buildCounterOperationMetadataV1 < 3) { - checkUnnamed1875(o.request); + checkUnnamed2081(o.request); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.updateTime, unittest.equals('foo')); @@ -597,7 +601,7 @@ buildCounterOperationMetadataV1--; } -buildUnnamed1876() { +buildUnnamed2082() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -612,7 +616,7 @@ return o; } -checkUnnamed1876(core.Map<core.String, core.Object> o) { +checkUnnamed2082(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)); @@ -631,7 +635,7 @@ var o = new api.OperationMetadataV1Beta2(); buildCounterOperationMetadataV1Beta2++; if (buildCounterOperationMetadataV1Beta2 < 3) { - o.request = buildUnnamed1876(); + o.request = buildUnnamed2082(); o.target = "foo"; o.type = "foo"; o.updateTime = "foo"; @@ -644,7 +648,7 @@ checkOperationMetadataV1Beta2(api.OperationMetadataV1Beta2 o) { buildCounterOperationMetadataV1Beta2++; if (buildCounterOperationMetadataV1Beta2 < 3) { - checkUnnamed1876(o.request); + checkUnnamed2082(o.request); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.updateTime, unittest.equals('foo')); @@ -689,7 +693,7 @@ buildCounterSourceRepository--; } -buildUnnamed1877() { +buildUnnamed2083() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -704,7 +708,7 @@ return o; } -checkUnnamed1877(core.Map<core.String, core.Object> o) { +checkUnnamed2083(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)); @@ -718,17 +722,17 @@ unittest.expect(casted12["string"], unittest.equals('foo')); } -buildUnnamed1878() { +buildUnnamed2084() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1877()); - o.add(buildUnnamed1877()); + o.add(buildUnnamed2083()); + o.add(buildUnnamed2083()); return o; } -checkUnnamed1878(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2084(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1877(o[0]); - checkUnnamed1877(o[1]); + checkUnnamed2083(o[0]); + checkUnnamed2083(o[1]); } core.int buildCounterStatus = 0; @@ -737,7 +741,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1878(); + o.details = buildUnnamed2084(); o.message = "foo"; } buildCounterStatus--; @@ -748,7 +752,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1878(o.details); + checkUnnamed2084(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--;
diff --git a/generated/googleapis/test/cloudiot/v1_test.dart b/generated/googleapis/test/cloudiot/v1_test.dart index 574cb9e..d36c8a1 100644 --- a/generated/googleapis/test/cloudiot/v1_test.dart +++ b/generated/googleapis/test/cloudiot/v1_test.dart
@@ -50,82 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3466() { - var o = new core.List<api.AuditLogConfig>(); - o.add(buildAuditLogConfig()); - o.add(buildAuditLogConfig()); - return o; -} - -checkUnnamed3466(core.List<api.AuditLogConfig> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAuditLogConfig(o[0]); - checkAuditLogConfig(o[1]); -} - -core.int buildCounterAuditConfig = 0; -buildAuditConfig() { - var o = new api.AuditConfig(); - buildCounterAuditConfig++; - if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed3466(); - o.service = "foo"; - } - buildCounterAuditConfig--; - return o; -} - -checkAuditConfig(api.AuditConfig o) { - buildCounterAuditConfig++; - if (buildCounterAuditConfig < 3) { - checkUnnamed3466(o.auditLogConfigs); - unittest.expect(o.service, unittest.equals('foo')); - } - buildCounterAuditConfig--; -} - -buildUnnamed3467() { +buildUnnamed4231() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return 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')); -} - -core.int buildCounterAuditLogConfig = 0; -buildAuditLogConfig() { - var o = new api.AuditLogConfig(); - buildCounterAuditLogConfig++; - if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed3467(); - o.logType = "foo"; - } - buildCounterAuditLogConfig--; - return o; -} - -checkAuditLogConfig(api.AuditLogConfig o) { - buildCounterAuditLogConfig++; - if (buildCounterAuditLogConfig < 3) { - checkUnnamed3467(o.exemptedMembers); - unittest.expect(o.logType, unittest.equals('foo')); - } - buildCounterAuditLogConfig--; -} - -buildUnnamed3468() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3468(core.List<core.String> o) { +checkUnnamed4231(core.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,7 +68,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed3468(); + o.members = buildUnnamed4231(); o.role = "foo"; } buildCounterBinding--; @@ -146,33 +78,33 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed3468(o.members); + checkUnnamed4231(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed3469() { +buildUnnamed4232() { var o = new core.List<api.DeviceCredential>(); o.add(buildDeviceCredential()); o.add(buildDeviceCredential()); return o; } -checkUnnamed3469(core.List<api.DeviceCredential> o) { +checkUnnamed4232(core.List<api.DeviceCredential> o) { unittest.expect(o, unittest.hasLength(2)); checkDeviceCredential(o[0]); checkDeviceCredential(o[1]); } -buildUnnamed3470() { +buildUnnamed4233() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3470(core.Map<core.String, core.String> o) { +checkUnnamed4233(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')); @@ -185,7 +117,7 @@ if (buildCounterDevice < 3) { o.blocked = true; o.config = buildDeviceConfig(); - o.credentials = buildUnnamed3469(); + o.credentials = buildUnnamed4232(); o.id = "foo"; o.lastConfigAckTime = "foo"; o.lastConfigSendTime = "foo"; @@ -194,7 +126,7 @@ o.lastEventTime = "foo"; o.lastHeartbeatTime = "foo"; o.lastStateTime = "foo"; - o.metadata = buildUnnamed3470(); + o.metadata = buildUnnamed4233(); o.name = "foo"; o.numId = "foo"; o.state = buildDeviceState(); @@ -208,7 +140,7 @@ if (buildCounterDevice < 3) { unittest.expect(o.blocked, unittest.isTrue); checkDeviceConfig(o.config); - checkUnnamed3469(o.credentials); + checkUnnamed4232(o.credentials); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.lastConfigAckTime, unittest.equals('foo')); unittest.expect(o.lastConfigSendTime, unittest.equals('foo')); @@ -217,7 +149,7 @@ unittest.expect(o.lastEventTime, unittest.equals('foo')); unittest.expect(o.lastHeartbeatTime, unittest.equals('foo')); unittest.expect(o.lastStateTime, unittest.equals('foo')); - checkUnnamed3470(o.metadata); + checkUnnamed4233(o.metadata); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.numId, unittest.equals('foo')); checkDeviceState(o.state); @@ -271,27 +203,27 @@ buildCounterDeviceCredential--; } -buildUnnamed3471() { +buildUnnamed4234() { var o = new core.List<api.RegistryCredential>(); o.add(buildRegistryCredential()); o.add(buildRegistryCredential()); return o; } -checkUnnamed3471(core.List<api.RegistryCredential> o) { +checkUnnamed4234(core.List<api.RegistryCredential> o) { unittest.expect(o, unittest.hasLength(2)); checkRegistryCredential(o[0]); checkRegistryCredential(o[1]); } -buildUnnamed3472() { +buildUnnamed4235() { var o = new core.List<api.EventNotificationConfig>(); o.add(buildEventNotificationConfig()); o.add(buildEventNotificationConfig()); return o; } -checkUnnamed3472(core.List<api.EventNotificationConfig> o) { +checkUnnamed4235(core.List<api.EventNotificationConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkEventNotificationConfig(o[0]); checkEventNotificationConfig(o[1]); @@ -302,8 +234,8 @@ var o = new api.DeviceRegistry(); buildCounterDeviceRegistry++; if (buildCounterDeviceRegistry < 3) { - o.credentials = buildUnnamed3471(); - o.eventNotificationConfigs = buildUnnamed3472(); + o.credentials = buildUnnamed4234(); + o.eventNotificationConfigs = buildUnnamed4235(); o.httpConfig = buildHttpConfig(); o.id = "foo"; o.mqttConfig = buildMqttConfig(); @@ -317,8 +249,8 @@ checkDeviceRegistry(api.DeviceRegistry o) { buildCounterDeviceRegistry++; if (buildCounterDeviceRegistry < 3) { - checkUnnamed3471(o.credentials); - checkUnnamed3472(o.eventNotificationConfigs); + checkUnnamed4234(o.credentials); + checkUnnamed4235(o.eventNotificationConfigs); checkHttpConfig(o.httpConfig); unittest.expect(o.id, unittest.equals('foo')); checkMqttConfig(o.mqttConfig); @@ -419,14 +351,14 @@ buildCounterHttpConfig--; } -buildUnnamed3473() { +buildUnnamed4236() { var o = new core.List<api.DeviceConfig>(); o.add(buildDeviceConfig()); o.add(buildDeviceConfig()); return o; } -checkUnnamed3473(core.List<api.DeviceConfig> o) { +checkUnnamed4236(core.List<api.DeviceConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkDeviceConfig(o[0]); checkDeviceConfig(o[1]); @@ -437,7 +369,7 @@ var o = new api.ListDeviceConfigVersionsResponse(); buildCounterListDeviceConfigVersionsResponse++; if (buildCounterListDeviceConfigVersionsResponse < 3) { - o.deviceConfigs = buildUnnamed3473(); + o.deviceConfigs = buildUnnamed4236(); } buildCounterListDeviceConfigVersionsResponse--; return o; @@ -446,19 +378,19 @@ checkListDeviceConfigVersionsResponse(api.ListDeviceConfigVersionsResponse o) { buildCounterListDeviceConfigVersionsResponse++; if (buildCounterListDeviceConfigVersionsResponse < 3) { - checkUnnamed3473(o.deviceConfigs); + checkUnnamed4236(o.deviceConfigs); } buildCounterListDeviceConfigVersionsResponse--; } -buildUnnamed3474() { +buildUnnamed4237() { var o = new core.List<api.DeviceRegistry>(); o.add(buildDeviceRegistry()); o.add(buildDeviceRegistry()); return o; } -checkUnnamed3474(core.List<api.DeviceRegistry> o) { +checkUnnamed4237(core.List<api.DeviceRegistry> o) { unittest.expect(o, unittest.hasLength(2)); checkDeviceRegistry(o[0]); checkDeviceRegistry(o[1]); @@ -469,7 +401,7 @@ var o = new api.ListDeviceRegistriesResponse(); buildCounterListDeviceRegistriesResponse++; if (buildCounterListDeviceRegistriesResponse < 3) { - o.deviceRegistries = buildUnnamed3474(); + o.deviceRegistries = buildUnnamed4237(); o.nextPageToken = "foo"; } buildCounterListDeviceRegistriesResponse--; @@ -479,20 +411,20 @@ checkListDeviceRegistriesResponse(api.ListDeviceRegistriesResponse o) { buildCounterListDeviceRegistriesResponse++; if (buildCounterListDeviceRegistriesResponse < 3) { - checkUnnamed3474(o.deviceRegistries); + checkUnnamed4237(o.deviceRegistries); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDeviceRegistriesResponse--; } -buildUnnamed3475() { +buildUnnamed4238() { var o = new core.List<api.DeviceState>(); o.add(buildDeviceState()); o.add(buildDeviceState()); return o; } -checkUnnamed3475(core.List<api.DeviceState> o) { +checkUnnamed4238(core.List<api.DeviceState> o) { unittest.expect(o, unittest.hasLength(2)); checkDeviceState(o[0]); checkDeviceState(o[1]); @@ -503,7 +435,7 @@ var o = new api.ListDeviceStatesResponse(); buildCounterListDeviceStatesResponse++; if (buildCounterListDeviceStatesResponse < 3) { - o.deviceStates = buildUnnamed3475(); + o.deviceStates = buildUnnamed4238(); } buildCounterListDeviceStatesResponse--; return o; @@ -512,19 +444,19 @@ checkListDeviceStatesResponse(api.ListDeviceStatesResponse o) { buildCounterListDeviceStatesResponse++; if (buildCounterListDeviceStatesResponse < 3) { - checkUnnamed3475(o.deviceStates); + checkUnnamed4238(o.deviceStates); } buildCounterListDeviceStatesResponse--; } -buildUnnamed3476() { +buildUnnamed4239() { var o = new core.List<api.Device>(); o.add(buildDevice()); o.add(buildDevice()); return o; } -checkUnnamed3476(core.List<api.Device> o) { +checkUnnamed4239(core.List<api.Device> o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -535,7 +467,7 @@ var o = new api.ListDevicesResponse(); buildCounterListDevicesResponse++; if (buildCounterListDevicesResponse < 3) { - o.devices = buildUnnamed3476(); + o.devices = buildUnnamed4239(); o.nextPageToken = "foo"; } buildCounterListDevicesResponse--; @@ -545,7 +477,7 @@ checkListDevicesResponse(api.ListDevicesResponse o) { buildCounterListDevicesResponse++; if (buildCounterListDevicesResponse < 3) { - checkUnnamed3476(o.devices); + checkUnnamed4239(o.devices); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDevicesResponse--; @@ -591,27 +523,14 @@ buildCounterMqttConfig--; } -buildUnnamed3477() { - var o = new core.List<api.AuditConfig>(); - o.add(buildAuditConfig()); - o.add(buildAuditConfig()); - return o; -} - -checkUnnamed3477(core.List<api.AuditConfig> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAuditConfig(o[0]); - checkAuditConfig(o[1]); -} - -buildUnnamed3478() { +buildUnnamed4240() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed3478(core.List<api.Binding> o) { +checkUnnamed4240(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -622,8 +541,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed3477(); - o.bindings = buildUnnamed3478(); + o.bindings = buildUnnamed4240(); o.etag = "foo"; o.version = 42; } @@ -634,8 +552,7 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed3477(o.auditConfigs); - checkUnnamed3478(o.bindings); + checkUnnamed4240(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -711,7 +628,6 @@ buildCounterSetIamPolicyRequest++; if (buildCounterSetIamPolicyRequest < 3) { o.policy = buildPolicy(); - o.updateMask = "foo"; } buildCounterSetIamPolicyRequest--; return o; @@ -721,7 +637,6 @@ buildCounterSetIamPolicyRequest++; if (buildCounterSetIamPolicyRequest < 3) { checkPolicy(o.policy); - unittest.expect(o.updateMask, unittest.equals('foo')); } buildCounterSetIamPolicyRequest--; } @@ -745,7 +660,7 @@ buildCounterStateNotificationConfig--; } -buildUnnamed3479() { +buildUnnamed4241() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -760,7 +675,7 @@ return o; } -checkUnnamed3479(core.Map<core.String, core.Object> o) { +checkUnnamed4241(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)); @@ -774,17 +689,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3480() { +buildUnnamed4242() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3479()); - o.add(buildUnnamed3479()); + o.add(buildUnnamed4241()); + o.add(buildUnnamed4241()); return o; } -checkUnnamed3480(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed4242(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3479(o[0]); - checkUnnamed3479(o[1]); + checkUnnamed4241(o[0]); + checkUnnamed4241(o[1]); } core.int buildCounterStatus = 0; @@ -793,7 +708,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3480(); + o.details = buildUnnamed4242(); o.message = "foo"; } buildCounterStatus--; @@ -804,20 +719,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3480(o.details); + checkUnnamed4242(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3481() { +buildUnnamed4243() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3481(core.List<core.String> o) { +checkUnnamed4243(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -828,7 +743,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed3481(); + o.permissions = buildUnnamed4243(); } buildCounterTestIamPermissionsRequest--; return o; @@ -837,19 +752,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed3481(o.permissions); + checkUnnamed4243(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed3482() { +buildUnnamed4244() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3482(core.List<core.String> o) { +checkUnnamed4244(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -860,7 +775,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed3482(); + o.permissions = buildUnnamed4244(); } buildCounterTestIamPermissionsResponse--; return o; @@ -869,7 +784,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed3482(o.permissions); + checkUnnamed4244(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -903,49 +818,33 @@ buildCounterX509CertificateDetails--; } -buildUnnamed3483() { +buildUnnamed4245() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3483(core.List<core.String> o) { +checkUnnamed4245(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3484() { +buildUnnamed4246() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3484(core.List<core.String> o) { +checkUnnamed4246(core.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-AuditConfig", () { - unittest.test("to-json--from-json", () { - var o = buildAuditConfig(); - var od = new api.AuditConfig.fromJson(o.toJson()); - checkAuditConfig(od); - }); - }); - - unittest.group("obj-schema-AuditLogConfig", () { - unittest.test("to-json--from-json", () { - var o = buildAuditLogConfig(); - var od = new api.AuditLogConfig.fromJson(o.toJson()); - checkAuditLogConfig(od); - }); - }); - unittest.group("obj-schema-Binding", () { unittest.test("to-json--from-json", () { var o = buildBinding(); @@ -1376,8 +1275,8 @@ api.ProjectsLocationsRegistriesResourceApi res = new api.CloudiotApi(mock).projects.locations.registries; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1410,10 +1309,10 @@ 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1424,8 +1323,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDeviceRegistriesResponse(response); @@ -1774,11 +1673,11 @@ api.ProjectsLocationsRegistriesDevicesResourceApi res = new api.CloudiotApi(mock).projects.locations.registries.devices; var arg_parent = "foo"; + var arg_deviceNumIds = buildUnnamed4245(); var arg_pageToken = "foo"; var arg_fieldMask = "foo"; var arg_pageSize = 42; - var arg_deviceIds = buildUnnamed3483(); - var arg_deviceNumIds = buildUnnamed3484(); + var arg_deviceIds = buildUnnamed4246(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1812,14 +1711,14 @@ } } unittest.expect( + queryMap["deviceNumIds"], unittest.equals(arg_deviceNumIds)); + unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( queryMap["fieldMask"].first, unittest.equals(arg_fieldMask)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["deviceIds"], unittest.equals(arg_deviceIds)); - unittest.expect( - queryMap["deviceNumIds"], unittest.equals(arg_deviceNumIds)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1830,11 +1729,11 @@ }), true); res .list(arg_parent, + deviceNumIds: arg_deviceNumIds, pageToken: arg_pageToken, fieldMask: arg_fieldMask, pageSize: arg_pageSize, deviceIds: arg_deviceIds, - deviceNumIds: arg_deviceNumIds, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDevicesResponse(response); @@ -2085,4 +1984,550 @@ }))); }); }); + + unittest.group("resource-ProjectsLocationsRegistriesGroupsResourceApi", () { + unittest.test("method--getIamPolicy", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsRegistriesGroupsResourceApi res = + new api.CloudiotApi(mock).projects.locations.registries.groups; + var arg_request = buildGetIamPolicyRequest(); + var arg_resource = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkPolicy(response); + }))); + }); + + unittest.test("method--setIamPolicy", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsRegistriesGroupsResourceApi res = + new api.CloudiotApi(mock).projects.locations.registries.groups; + var arg_request = buildSetIamPolicyRequest(); + var arg_resource = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkPolicy(response); + }))); + }); + + unittest.test("method--testIamPermissions", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsRegistriesGroupsResourceApi res = + new api.CloudiotApi(mock).projects.locations.registries.groups; + var arg_request = buildTestIamPermissionsRequest(); + var arg_resource = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkTestIamPermissionsResponse(response); + }))); + }); + }); + + unittest.group("resource-ProjectsLocationsRegistriesGroupsDevicesResourceApi", + () { + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsRegistriesGroupsDevicesResourceApi res = + new api.CloudiotApi(mock) + .projects + .locations + .registries + .groups + .devices; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsRegistriesGroupsDevicesResourceApi res = + new api.CloudiotApi(mock) + .projects + .locations + .registries + .groups + .devices; + var arg_name = "foo"; + var arg_fieldMask = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fieldMask"].first, unittest.equals(arg_fieldMask)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildDevice()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, fieldMask: arg_fieldMask, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkDevice(response); + }))); + }); + + unittest.test("method--modifyCloudToDeviceConfig", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsRegistriesGroupsDevicesResourceApi res = + new api.CloudiotApi(mock) + .projects + .locations + .registries + .groups + .devices; + var arg_request = buildModifyCloudToDeviceConfigRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.ModifyCloudToDeviceConfigRequest.fromJson(json); + checkModifyCloudToDeviceConfigRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildDeviceConfig()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .modifyCloudToDeviceConfig(arg_request, arg_name, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkDeviceConfig(response); + }))); + }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsRegistriesGroupsDevicesResourceApi res = + new api.CloudiotApi(mock) + .projects + .locations + .registries + .groups + .devices; + var arg_request = buildDevice(); + var arg_name = "foo"; + var arg_updateMask = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.Device.fromJson(json); + checkDevice(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildDevice()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .patch(arg_request, arg_name, + updateMask: arg_updateMask, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkDevice(response); + }))); + }); + }); + + unittest.group( + "resource-ProjectsLocationsRegistriesGroupsDevicesConfigVersionsResourceApi", + () { + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsRegistriesGroupsDevicesConfigVersionsResourceApi + res = new api.CloudiotApi(mock) + .projects + .locations + .registries + .groups + .devices + .configVersions; + var arg_name = "foo"; + var arg_numVersions = 42; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["numVersions"].first), + unittest.equals(arg_numVersions)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListDeviceConfigVersionsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_name, numVersions: arg_numVersions, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListDeviceConfigVersionsResponse(response); + }))); + }); + }); + + unittest.group( + "resource-ProjectsLocationsRegistriesGroupsDevicesStatesResourceApi", () { + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsRegistriesGroupsDevicesStatesResourceApi res = + new api.CloudiotApi(mock) + .projects + .locations + .registries + .groups + .devices + .states; + var arg_name = "foo"; + var arg_numStates = 42; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["numStates"].first), + unittest.equals(arg_numStates)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListDeviceStatesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_name, numStates: arg_numStates, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListDeviceStatesResponse(response); + }))); + }); + }); }
diff --git a/generated/googleapis/test/cloudkms/v1_test.dart b/generated/googleapis/test/cloudkms/v1_test.dart index 152ce4b..e2fb5b3 100644 --- a/generated/googleapis/test/cloudkms/v1_test.dart +++ b/generated/googleapis/test/cloudkms/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1666() { +buildUnnamed1490() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed1666(core.List<api.AuditLogConfig> o) { +checkUnnamed1490(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -68,7 +68,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed1666(); + o.auditLogConfigs = buildUnnamed1490(); o.service = "foo"; } buildCounterAuditConfig--; @@ -78,20 +78,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed1666(o.auditLogConfigs); + checkUnnamed1490(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed1667() { +buildUnnamed1491() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1667(core.List<core.String> o) { +checkUnnamed1491(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -102,7 +102,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed1667(); + o.exemptedMembers = buildUnnamed1491(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -112,20 +112,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed1667(o.exemptedMembers); + checkUnnamed1491(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed1668() { +buildUnnamed1492() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1668(core.List<core.String> o) { +checkUnnamed1492(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -136,7 +136,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed1668(); + o.members = buildUnnamed1492(); o.role = "foo"; } buildCounterBinding--; @@ -146,20 +146,20 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed1668(o.members); + checkUnnamed1492(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed1669() { +buildUnnamed1493() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1669(core.Map<core.String, core.String> o) { +checkUnnamed1493(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')); @@ -171,7 +171,7 @@ buildCounterCryptoKey++; if (buildCounterCryptoKey < 3) { o.createTime = "foo"; - o.labels = buildUnnamed1669(); + o.labels = buildUnnamed1493(); o.name = "foo"; o.nextRotationTime = "foo"; o.primary = buildCryptoKeyVersion(); @@ -186,7 +186,7 @@ buildCounterCryptoKey++; if (buildCounterCryptoKey < 3) { unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed1669(o.labels); + checkUnnamed1493(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nextRotationTime, unittest.equals('foo')); checkCryptoKeyVersion(o.primary); @@ -341,14 +341,14 @@ buildCounterKeyRing--; } -buildUnnamed1670() { +buildUnnamed1494() { var o = new core.List<api.CryptoKeyVersion>(); o.add(buildCryptoKeyVersion()); o.add(buildCryptoKeyVersion()); return o; } -checkUnnamed1670(core.List<api.CryptoKeyVersion> o) { +checkUnnamed1494(core.List<api.CryptoKeyVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkCryptoKeyVersion(o[0]); checkCryptoKeyVersion(o[1]); @@ -359,7 +359,7 @@ var o = new api.ListCryptoKeyVersionsResponse(); buildCounterListCryptoKeyVersionsResponse++; if (buildCounterListCryptoKeyVersionsResponse < 3) { - o.cryptoKeyVersions = buildUnnamed1670(); + o.cryptoKeyVersions = buildUnnamed1494(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -370,21 +370,21 @@ checkListCryptoKeyVersionsResponse(api.ListCryptoKeyVersionsResponse o) { buildCounterListCryptoKeyVersionsResponse++; if (buildCounterListCryptoKeyVersionsResponse < 3) { - checkUnnamed1670(o.cryptoKeyVersions); + checkUnnamed1494(o.cryptoKeyVersions); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListCryptoKeyVersionsResponse--; } -buildUnnamed1671() { +buildUnnamed1495() { var o = new core.List<api.CryptoKey>(); o.add(buildCryptoKey()); o.add(buildCryptoKey()); return o; } -checkUnnamed1671(core.List<api.CryptoKey> o) { +checkUnnamed1495(core.List<api.CryptoKey> o) { unittest.expect(o, unittest.hasLength(2)); checkCryptoKey(o[0]); checkCryptoKey(o[1]); @@ -395,7 +395,7 @@ var o = new api.ListCryptoKeysResponse(); buildCounterListCryptoKeysResponse++; if (buildCounterListCryptoKeysResponse < 3) { - o.cryptoKeys = buildUnnamed1671(); + o.cryptoKeys = buildUnnamed1495(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -406,21 +406,21 @@ checkListCryptoKeysResponse(api.ListCryptoKeysResponse o) { buildCounterListCryptoKeysResponse++; if (buildCounterListCryptoKeysResponse < 3) { - checkUnnamed1671(o.cryptoKeys); + checkUnnamed1495(o.cryptoKeys); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListCryptoKeysResponse--; } -buildUnnamed1672() { +buildUnnamed1496() { var o = new core.List<api.KeyRing>(); o.add(buildKeyRing()); o.add(buildKeyRing()); return o; } -checkUnnamed1672(core.List<api.KeyRing> o) { +checkUnnamed1496(core.List<api.KeyRing> o) { unittest.expect(o, unittest.hasLength(2)); checkKeyRing(o[0]); checkKeyRing(o[1]); @@ -431,7 +431,7 @@ var o = new api.ListKeyRingsResponse(); buildCounterListKeyRingsResponse++; if (buildCounterListKeyRingsResponse < 3) { - o.keyRings = buildUnnamed1672(); + o.keyRings = buildUnnamed1496(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -442,21 +442,21 @@ checkListKeyRingsResponse(api.ListKeyRingsResponse o) { buildCounterListKeyRingsResponse++; if (buildCounterListKeyRingsResponse < 3) { - checkUnnamed1672(o.keyRings); + checkUnnamed1496(o.keyRings); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListKeyRingsResponse--; } -buildUnnamed1673() { +buildUnnamed1497() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed1673(core.List<api.Location> o) { +checkUnnamed1497(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -467,7 +467,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed1673(); + o.locations = buildUnnamed1497(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -477,26 +477,26 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed1673(o.locations); + checkUnnamed1497(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed1674() { +buildUnnamed1498() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1674(core.Map<core.String, core.String> o) { +checkUnnamed1498(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')); } -buildUnnamed1675() { +buildUnnamed1499() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -511,7 +511,7 @@ return o; } -checkUnnamed1675(core.Map<core.String, core.Object> o) { +checkUnnamed1499(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)); @@ -530,9 +530,10 @@ var o = new api.Location(); buildCounterLocation++; if (buildCounterLocation < 3) { - o.labels = buildUnnamed1674(); + o.displayName = "foo"; + o.labels = buildUnnamed1498(); o.locationId = "foo"; - o.metadata = buildUnnamed1675(); + o.metadata = buildUnnamed1499(); o.name = "foo"; } buildCounterLocation--; @@ -542,35 +543,36 @@ checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { - checkUnnamed1674(o.labels); + unittest.expect(o.displayName, unittest.equals('foo')); + checkUnnamed1498(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed1675(o.metadata); + checkUnnamed1499(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; } -buildUnnamed1676() { +buildUnnamed1500() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed1676(core.List<api.AuditConfig> o) { +checkUnnamed1500(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed1677() { +buildUnnamed1501() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1677(core.List<api.Binding> o) { +checkUnnamed1501(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -581,8 +583,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed1676(); - o.bindings = buildUnnamed1677(); + o.auditConfigs = buildUnnamed1500(); + o.bindings = buildUnnamed1501(); o.etag = "foo"; o.version = 42; } @@ -593,8 +595,8 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1676(o.auditConfigs); - checkUnnamed1677(o.bindings); + checkUnnamed1500(o.auditConfigs); + checkUnnamed1501(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -637,14 +639,14 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed1678() { +buildUnnamed1502() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1678(core.List<core.String> o) { +checkUnnamed1502(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -655,7 +657,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1678(); + o.permissions = buildUnnamed1502(); } buildCounterTestIamPermissionsRequest--; return o; @@ -664,19 +666,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1678(o.permissions); + checkUnnamed1502(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1679() { +buildUnnamed1503() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1679(core.List<core.String> o) { +checkUnnamed1503(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -687,7 +689,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1679(); + o.permissions = buildUnnamed1503(); } buildCounterTestIamPermissionsResponse--; return o; @@ -696,7 +698,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1679(o.permissions); + checkUnnamed1503(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -1638,8 +1640,8 @@ api.ProjectsLocationsKeyRingsCryptoKeysResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings.cryptoKeys; var arg_parent = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1672,10 +1674,10 @@ 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(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1686,8 +1688,8 @@ }), true); res .list(arg_parent, - pageSize: arg_pageSize, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListCryptoKeysResponse(response); @@ -2115,8 +2117,8 @@ .cryptoKeys .cryptoKeyVersions; var arg_parent = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2149,10 +2151,10 @@ 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(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2163,8 +2165,8 @@ }), true); res .list(arg_parent, - pageSize: arg_pageSize, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListCryptoKeyVersionsResponse(response);
diff --git a/generated/googleapis/test/cloudresourcemanager/v1_test.dart b/generated/googleapis/test/cloudresourcemanager/v1_test.dart index 422ecf7..28fa696 100644 --- a/generated/googleapis/test/cloudresourcemanager/v1_test.dart +++ b/generated/googleapis/test/cloudresourcemanager/v1_test.dart
@@ -69,14 +69,14 @@ buildCounterAncestor--; } -buildUnnamed2719() { +buildUnnamed3502() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed2719(core.List<api.AuditLogConfig> o) { +checkUnnamed3502(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -87,7 +87,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed2719(); + o.auditLogConfigs = buildUnnamed3502(); o.service = "foo"; } buildCounterAuditConfig--; @@ -97,20 +97,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed2719(o.auditLogConfigs); + checkUnnamed3502(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed2720() { +buildUnnamed3503() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2720(core.List<core.String> o) { +checkUnnamed3503(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -121,7 +121,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed2720(); + o.exemptedMembers = buildUnnamed3503(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -131,20 +131,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed2720(o.exemptedMembers); + checkUnnamed3503(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed2721() { +buildUnnamed3504() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2721(core.List<core.String> o) { +checkUnnamed3504(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -155,7 +155,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed2721(); + o.members = buildUnnamed3504(); o.role = "foo"; } buildCounterBinding--; @@ -165,7 +165,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed2721(o.members); + checkUnnamed3504(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -331,14 +331,14 @@ buildCounterGetAncestryRequest--; } -buildUnnamed2722() { +buildUnnamed3505() { var o = new core.List<api.Ancestor>(); o.add(buildAncestor()); o.add(buildAncestor()); return o; } -checkUnnamed2722(core.List<api.Ancestor> o) { +checkUnnamed3505(core.List<api.Ancestor> o) { unittest.expect(o, unittest.hasLength(2)); checkAncestor(o[0]); checkAncestor(o[1]); @@ -349,7 +349,7 @@ var o = new api.GetAncestryResponse(); buildCounterGetAncestryResponse++; if (buildCounterGetAncestryResponse < 3) { - o.ancestor = buildUnnamed2722(); + o.ancestor = buildUnnamed3505(); } buildCounterGetAncestryResponse--; return o; @@ -358,7 +358,7 @@ checkGetAncestryResponse(api.GetAncestryResponse o) { buildCounterGetAncestryResponse++; if (buildCounterGetAncestryResponse < 3) { - checkUnnamed2722(o.ancestor); + checkUnnamed3505(o.ancestor); } buildCounterGetAncestryResponse--; } @@ -416,14 +416,14 @@ buildCounterGetOrgPolicyRequest--; } -buildUnnamed2723() { +buildUnnamed3506() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2723(core.List<core.String> o) { +checkUnnamed3506(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -439,7 +439,7 @@ o.origin = "foo"; o.parent = "foo"; o.reason = "foo"; - o.restrictions = buildUnnamed2723(); + o.restrictions = buildUnnamed3506(); } buildCounterLien--; return o; @@ -453,7 +453,7 @@ unittest.expect(o.origin, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); unittest.expect(o.reason, unittest.equals('foo')); - checkUnnamed2723(o.restrictions); + checkUnnamed3506(o.restrictions); } buildCounterLien--; } @@ -480,14 +480,14 @@ buildCounterListAvailableOrgPolicyConstraintsRequest--; } -buildUnnamed2724() { +buildUnnamed3507() { var o = new core.List<api.Constraint>(); o.add(buildConstraint()); o.add(buildConstraint()); return o; } -checkUnnamed2724(core.List<api.Constraint> o) { +checkUnnamed3507(core.List<api.Constraint> o) { unittest.expect(o, unittest.hasLength(2)); checkConstraint(o[0]); checkConstraint(o[1]); @@ -498,7 +498,7 @@ var o = new api.ListAvailableOrgPolicyConstraintsResponse(); buildCounterListAvailableOrgPolicyConstraintsResponse++; if (buildCounterListAvailableOrgPolicyConstraintsResponse < 3) { - o.constraints = buildUnnamed2724(); + o.constraints = buildUnnamed3507(); o.nextPageToken = "foo"; } buildCounterListAvailableOrgPolicyConstraintsResponse--; @@ -509,7 +509,7 @@ api.ListAvailableOrgPolicyConstraintsResponse o) { buildCounterListAvailableOrgPolicyConstraintsResponse++; if (buildCounterListAvailableOrgPolicyConstraintsResponse < 3) { - checkUnnamed2724(o.constraints); + checkUnnamed3507(o.constraints); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAvailableOrgPolicyConstraintsResponse--; @@ -534,14 +534,14 @@ buildCounterListConstraint--; } -buildUnnamed2725() { +buildUnnamed3508() { var o = new core.List<api.Lien>(); o.add(buildLien()); o.add(buildLien()); return o; } -checkUnnamed2725(core.List<api.Lien> o) { +checkUnnamed3508(core.List<api.Lien> o) { unittest.expect(o, unittest.hasLength(2)); checkLien(o[0]); checkLien(o[1]); @@ -552,7 +552,7 @@ var o = new api.ListLiensResponse(); buildCounterListLiensResponse++; if (buildCounterListLiensResponse < 3) { - o.liens = buildUnnamed2725(); + o.liens = buildUnnamed3508(); o.nextPageToken = "foo"; } buildCounterListLiensResponse--; @@ -562,7 +562,7 @@ checkListLiensResponse(api.ListLiensResponse o) { buildCounterListLiensResponse++; if (buildCounterListLiensResponse < 3) { - checkUnnamed2725(o.liens); + checkUnnamed3508(o.liens); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLiensResponse--; @@ -589,14 +589,14 @@ buildCounterListOrgPoliciesRequest--; } -buildUnnamed2726() { +buildUnnamed3509() { var o = new core.List<api.OrgPolicy>(); o.add(buildOrgPolicy()); o.add(buildOrgPolicy()); return o; } -checkUnnamed2726(core.List<api.OrgPolicy> o) { +checkUnnamed3509(core.List<api.OrgPolicy> o) { unittest.expect(o, unittest.hasLength(2)); checkOrgPolicy(o[0]); checkOrgPolicy(o[1]); @@ -608,7 +608,7 @@ buildCounterListOrgPoliciesResponse++; if (buildCounterListOrgPoliciesResponse < 3) { o.nextPageToken = "foo"; - o.policies = buildUnnamed2726(); + o.policies = buildUnnamed3509(); } buildCounterListOrgPoliciesResponse--; return o; @@ -618,32 +618,32 @@ buildCounterListOrgPoliciesResponse++; if (buildCounterListOrgPoliciesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2726(o.policies); + checkUnnamed3509(o.policies); } buildCounterListOrgPoliciesResponse--; } -buildUnnamed2727() { +buildUnnamed3510() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2727(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')); } -buildUnnamed2728() { +buildUnnamed3511() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2728(core.List<core.String> o) { +checkUnnamed3511(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -655,8 +655,8 @@ buildCounterListPolicy++; if (buildCounterListPolicy < 3) { o.allValues = "foo"; - o.allowedValues = buildUnnamed2727(); - o.deniedValues = buildUnnamed2728(); + o.allowedValues = buildUnnamed3510(); + o.deniedValues = buildUnnamed3511(); o.inheritFromParent = true; o.suggestedValue = "foo"; } @@ -668,22 +668,22 @@ buildCounterListPolicy++; if (buildCounterListPolicy < 3) { unittest.expect(o.allValues, unittest.equals('foo')); - checkUnnamed2727(o.allowedValues); - checkUnnamed2728(o.deniedValues); + checkUnnamed3510(o.allowedValues); + checkUnnamed3511(o.deniedValues); unittest.expect(o.inheritFromParent, unittest.isTrue); unittest.expect(o.suggestedValue, unittest.equals('foo')); } buildCounterListPolicy--; } -buildUnnamed2729() { +buildUnnamed3512() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed2729(core.List<api.Project> o) { +checkUnnamed3512(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -695,7 +695,7 @@ buildCounterListProjectsResponse++; if (buildCounterListProjectsResponse < 3) { o.nextPageToken = "foo"; - o.projects = buildUnnamed2729(); + o.projects = buildUnnamed3512(); } buildCounterListProjectsResponse--; return o; @@ -705,12 +705,12 @@ buildCounterListProjectsResponse++; if (buildCounterListProjectsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2729(o.projects); + checkUnnamed3512(o.projects); } buildCounterListProjectsResponse--; } -buildUnnamed2730() { +buildUnnamed3513() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -725,7 +725,7 @@ return o; } -checkUnnamed2730(core.Map<core.String, core.Object> o) { +checkUnnamed3513(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)); @@ -739,7 +739,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2731() { +buildUnnamed3514() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -754,7 +754,7 @@ return o; } -checkUnnamed2731(core.Map<core.String, core.Object> o) { +checkUnnamed3514(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)); @@ -775,9 +775,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2730(); + o.metadata = buildUnnamed3513(); o.name = "foo"; - o.response = buildUnnamed2731(); + o.response = buildUnnamed3514(); } buildCounterOperation--; return o; @@ -788,9 +788,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2730(o.metadata); + checkUnnamed3513(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2731(o.response); + checkUnnamed3514(o.response); } buildCounterOperation--; } @@ -872,27 +872,27 @@ buildCounterOrganizationOwner--; } -buildUnnamed2732() { +buildUnnamed3515() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed2732(core.List<api.AuditConfig> o) { +checkUnnamed3515(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed2733() { +buildUnnamed3516() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed2733(core.List<api.Binding> o) { +checkUnnamed3516(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -903,8 +903,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed2732(); - o.bindings = buildUnnamed2733(); + o.auditConfigs = buildUnnamed3515(); + o.bindings = buildUnnamed3516(); o.etag = "foo"; o.version = 42; } @@ -915,22 +915,22 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed2732(o.auditConfigs); - checkUnnamed2733(o.bindings); + checkUnnamed3515(o.auditConfigs); + checkUnnamed3516(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed2734() { +buildUnnamed3517() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2734(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')); @@ -942,7 +942,7 @@ buildCounterProject++; if (buildCounterProject < 3) { o.createTime = "foo"; - o.labels = buildUnnamed2734(); + o.labels = buildUnnamed3517(); o.lifecycleState = "foo"; o.name = "foo"; o.parent = buildResourceId(); @@ -957,7 +957,7 @@ buildCounterProject++; if (buildCounterProject < 3) { unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed2734(o.labels); + checkUnnamed3517(o.labels); unittest.expect(o.lifecycleState, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkResourceId(o.parent); @@ -1049,14 +1049,14 @@ buildCounterSearchOrganizationsRequest--; } -buildUnnamed2735() { +buildUnnamed3518() { var o = new core.List<api.Organization>(); o.add(buildOrganization()); o.add(buildOrganization()); return o; } -checkUnnamed2735(core.List<api.Organization> o) { +checkUnnamed3518(core.List<api.Organization> o) { unittest.expect(o, unittest.hasLength(2)); checkOrganization(o[0]); checkOrganization(o[1]); @@ -1068,7 +1068,7 @@ buildCounterSearchOrganizationsResponse++; if (buildCounterSearchOrganizationsResponse < 3) { o.nextPageToken = "foo"; - o.organizations = buildUnnamed2735(); + o.organizations = buildUnnamed3518(); } buildCounterSearchOrganizationsResponse--; return o; @@ -1078,7 +1078,7 @@ buildCounterSearchOrganizationsResponse++; if (buildCounterSearchOrganizationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2735(o.organizations); + checkUnnamed3518(o.organizations); } buildCounterSearchOrganizationsResponse--; } @@ -1123,7 +1123,7 @@ buildCounterSetOrgPolicyRequest--; } -buildUnnamed2736() { +buildUnnamed3519() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1138,7 +1138,7 @@ return o; } -checkUnnamed2736(core.Map<core.String, core.Object> o) { +checkUnnamed3519(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)); @@ -1152,17 +1152,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed2737() { +buildUnnamed3520() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2736()); - o.add(buildUnnamed2736()); + o.add(buildUnnamed3519()); + o.add(buildUnnamed3519()); return o; } -checkUnnamed2737(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3520(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2736(o[0]); - checkUnnamed2736(o[1]); + checkUnnamed3519(o[0]); + checkUnnamed3519(o[1]); } core.int buildCounterStatus = 0; @@ -1171,7 +1171,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2737(); + o.details = buildUnnamed3520(); o.message = "foo"; } buildCounterStatus--; @@ -1182,20 +1182,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2737(o.details); + checkUnnamed3520(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed2738() { +buildUnnamed3521() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2738(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')); @@ -1206,7 +1206,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed2738(); + o.permissions = buildUnnamed3521(); } buildCounterTestIamPermissionsRequest--; return o; @@ -1215,19 +1215,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed2738(o.permissions); + checkUnnamed3521(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed2739() { +buildUnnamed3522() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2739(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')); @@ -1238,7 +1238,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed2739(); + o.permissions = buildUnnamed3522(); } buildCounterTestIamPermissionsResponse--; return o; @@ -1247,7 +1247,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed2739(o.permissions); + checkUnnamed3522(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -2056,9 +2056,9 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.LiensResourceApi res = new api.CloudresourcemanagerApi(mock).liens; + var arg_pageSize = 42; var arg_parent = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2090,11 +2090,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["parent"].first, unittest.equals(arg_parent)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2105,9 +2105,9 @@ }), true); res .list( + pageSize: arg_pageSize, parent: arg_parent, pageToken: arg_pageToken, - pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLiensResponse(response);
diff --git a/generated/googleapis/test/cloudresourcemanager/v2beta1_test.dart b/generated/googleapis/test/cloudresourcemanager/v2beta1_test.dart deleted file mode 100644 index 700ec31..0000000 --- a/generated/googleapis/test/cloudresourcemanager/v2beta1_test.dart +++ /dev/null
@@ -1,1449 +0,0 @@ -library googleapis.cloudresourcemanager.v2beta1.test; - -import "dart:core" as core; -import "dart:async" as async; -import "dart:convert" as convert; - -import 'package:http/http.dart' as http; -import 'package:test/test.dart' as unittest; - -import 'package:googleapis/cloudresourcemanager/v2beta1.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<core.String, core.String> headers, core.String body) { - var stream = new async.Stream.fromIterable([convert.utf8.encode(body)]); - return new http.StreamedResponse(stream, status, headers: headers); -} - -buildUnnamed1173() { - var o = new core.List<api.AuditLogConfig>(); - o.add(buildAuditLogConfig()); - o.add(buildAuditLogConfig()); - return o; -} - -checkUnnamed1173(core.List<api.AuditLogConfig> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAuditLogConfig(o[0]); - checkAuditLogConfig(o[1]); -} - -core.int buildCounterAuditConfig = 0; -buildAuditConfig() { - var o = new api.AuditConfig(); - buildCounterAuditConfig++; - if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed1173(); - o.service = "foo"; - } - buildCounterAuditConfig--; - return o; -} - -checkAuditConfig(api.AuditConfig o) { - buildCounterAuditConfig++; - if (buildCounterAuditConfig < 3) { - checkUnnamed1173(o.auditLogConfigs); - unittest.expect(o.service, unittest.equals('foo')); - } - buildCounterAuditConfig--; -} - -buildUnnamed1174() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1174(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterAuditLogConfig = 0; -buildAuditLogConfig() { - var o = new api.AuditLogConfig(); - buildCounterAuditLogConfig++; - if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed1174(); - o.logType = "foo"; - } - buildCounterAuditLogConfig--; - return o; -} - -checkAuditLogConfig(api.AuditLogConfig o) { - buildCounterAuditLogConfig++; - if (buildCounterAuditLogConfig < 3) { - checkUnnamed1174(o.exemptedMembers); - unittest.expect(o.logType, unittest.equals('foo')); - } - buildCounterAuditLogConfig--; -} - -buildUnnamed1175() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1175(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterBinding = 0; -buildBinding() { - var o = new api.Binding(); - buildCounterBinding++; - if (buildCounterBinding < 3) { - o.members = buildUnnamed1175(); - o.role = "foo"; - } - buildCounterBinding--; - return o; -} - -checkBinding(api.Binding o) { - buildCounterBinding++; - if (buildCounterBinding < 3) { - checkUnnamed1175(o.members); - unittest.expect(o.role, unittest.equals('foo')); - } - buildCounterBinding--; -} - -core.int buildCounterFolder = 0; -buildFolder() { - var o = new api.Folder(); - buildCounterFolder++; - if (buildCounterFolder < 3) { - o.createTime = "foo"; - o.displayName = "foo"; - o.lifecycleState = "foo"; - o.name = "foo"; - o.parent = "foo"; - } - buildCounterFolder--; - return o; -} - -checkFolder(api.Folder o) { - buildCounterFolder++; - if (buildCounterFolder < 3) { - unittest.expect(o.createTime, unittest.equals('foo')); - unittest.expect(o.displayName, unittest.equals('foo')); - unittest.expect(o.lifecycleState, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.parent, unittest.equals('foo')); - } - buildCounterFolder--; -} - -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(); - buildCounterGetIamPolicyRequest++; - if (buildCounterGetIamPolicyRequest < 3) {} - buildCounterGetIamPolicyRequest--; - return o; -} - -checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { - buildCounterGetIamPolicyRequest++; - if (buildCounterGetIamPolicyRequest < 3) {} - buildCounterGetIamPolicyRequest--; -} - -buildUnnamed1176() { - var o = new core.List<api.Folder>(); - o.add(buildFolder()); - o.add(buildFolder()); - return o; -} - -checkUnnamed1176(core.List<api.Folder> o) { - unittest.expect(o, unittest.hasLength(2)); - checkFolder(o[0]); - checkFolder(o[1]); -} - -core.int buildCounterListFoldersResponse = 0; -buildListFoldersResponse() { - var o = new api.ListFoldersResponse(); - buildCounterListFoldersResponse++; - if (buildCounterListFoldersResponse < 3) { - o.folders = buildUnnamed1176(); - o.nextPageToken = "foo"; - } - buildCounterListFoldersResponse--; - return o; -} - -checkListFoldersResponse(api.ListFoldersResponse o) { - buildCounterListFoldersResponse++; - if (buildCounterListFoldersResponse < 3) { - checkUnnamed1176(o.folders); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterListFoldersResponse--; -} - -core.int buildCounterMoveFolderRequest = 0; -buildMoveFolderRequest() { - var o = new api.MoveFolderRequest(); - buildCounterMoveFolderRequest++; - if (buildCounterMoveFolderRequest < 3) { - o.destinationParent = "foo"; - } - buildCounterMoveFolderRequest--; - return o; -} - -checkMoveFolderRequest(api.MoveFolderRequest o) { - buildCounterMoveFolderRequest++; - if (buildCounterMoveFolderRequest < 3) { - unittest.expect(o.destinationParent, unittest.equals('foo')); - } - buildCounterMoveFolderRequest--; -} - -buildUnnamed1177() { - 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; -} - -checkUnnamed1177(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')); -} - -buildUnnamed1178() { - 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; -} - -checkUnnamed1178(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 = buildUnnamed1177(); - o.name = "foo"; - o.response = buildUnnamed1178(); - } - buildCounterOperation--; - return o; -} - -checkOperation(api.Operation o) { - buildCounterOperation++; - if (buildCounterOperation < 3) { - unittest.expect(o.done, unittest.isTrue); - checkStatus(o.error); - checkUnnamed1177(o.metadata); - unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1178(o.response); - } - buildCounterOperation--; -} - -buildUnnamed1179() { - var o = new core.List<api.AuditConfig>(); - o.add(buildAuditConfig()); - o.add(buildAuditConfig()); - return o; -} - -checkUnnamed1179(core.List<api.AuditConfig> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAuditConfig(o[0]); - checkAuditConfig(o[1]); -} - -buildUnnamed1180() { - var o = new core.List<api.Binding>(); - o.add(buildBinding()); - o.add(buildBinding()); - return o; -} - -checkUnnamed1180(core.List<api.Binding> o) { - unittest.expect(o, unittest.hasLength(2)); - checkBinding(o[0]); - checkBinding(o[1]); -} - -core.int buildCounterPolicy = 0; -buildPolicy() { - var o = new api.Policy(); - buildCounterPolicy++; - if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed1179(); - o.bindings = buildUnnamed1180(); - o.etag = "foo"; - o.version = 42; - } - buildCounterPolicy--; - return o; -} - -checkPolicy(api.Policy o) { - buildCounterPolicy++; - if (buildCounterPolicy < 3) { - checkUnnamed1179(o.auditConfigs); - checkUnnamed1180(o.bindings); - unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.version, unittest.equals(42)); - } - buildCounterPolicy--; -} - -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 buildCounterSearchFoldersRequest = 0; -buildSearchFoldersRequest() { - var o = new api.SearchFoldersRequest(); - buildCounterSearchFoldersRequest++; - if (buildCounterSearchFoldersRequest < 3) { - o.pageSize = 42; - o.pageToken = "foo"; - o.query = "foo"; - } - buildCounterSearchFoldersRequest--; - return o; -} - -checkSearchFoldersRequest(api.SearchFoldersRequest o) { - buildCounterSearchFoldersRequest++; - if (buildCounterSearchFoldersRequest < 3) { - unittest.expect(o.pageSize, unittest.equals(42)); - unittest.expect(o.pageToken, unittest.equals('foo')); - unittest.expect(o.query, unittest.equals('foo')); - } - buildCounterSearchFoldersRequest--; -} - -buildUnnamed1181() { - var o = new core.List<api.Folder>(); - o.add(buildFolder()); - o.add(buildFolder()); - return o; -} - -checkUnnamed1181(core.List<api.Folder> o) { - unittest.expect(o, unittest.hasLength(2)); - checkFolder(o[0]); - checkFolder(o[1]); -} - -core.int buildCounterSearchFoldersResponse = 0; -buildSearchFoldersResponse() { - var o = new api.SearchFoldersResponse(); - buildCounterSearchFoldersResponse++; - if (buildCounterSearchFoldersResponse < 3) { - o.folders = buildUnnamed1181(); - o.nextPageToken = "foo"; - } - buildCounterSearchFoldersResponse--; - return o; -} - -checkSearchFoldersResponse(api.SearchFoldersResponse o) { - buildCounterSearchFoldersResponse++; - if (buildCounterSearchFoldersResponse < 3) { - checkUnnamed1181(o.folders); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterSearchFoldersResponse--; -} - -core.int buildCounterSetIamPolicyRequest = 0; -buildSetIamPolicyRequest() { - var o = new api.SetIamPolicyRequest(); - buildCounterSetIamPolicyRequest++; - if (buildCounterSetIamPolicyRequest < 3) { - o.policy = buildPolicy(); - o.updateMask = "foo"; - } - buildCounterSetIamPolicyRequest--; - return o; -} - -checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { - buildCounterSetIamPolicyRequest++; - if (buildCounterSetIamPolicyRequest < 3) { - checkPolicy(o.policy); - unittest.expect(o.updateMask, unittest.equals('foo')); - } - buildCounterSetIamPolicyRequest--; -} - -buildUnnamed1182() { - 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; -} - -checkUnnamed1182(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')); -} - -buildUnnamed1183() { - var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1182()); - o.add(buildUnnamed1182()); - return o; -} - -checkUnnamed1183(core.List<core.Map<core.String, core.Object>> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1182(o[0]); - checkUnnamed1182(o[1]); -} - -core.int buildCounterStatus = 0; -buildStatus() { - var o = new api.Status(); - buildCounterStatus++; - if (buildCounterStatus < 3) { - o.code = 42; - o.details = buildUnnamed1183(); - o.message = "foo"; - } - buildCounterStatus--; - return o; -} - -checkStatus(api.Status o) { - buildCounterStatus++; - if (buildCounterStatus < 3) { - unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1183(o.details); - unittest.expect(o.message, unittest.equals('foo')); - } - buildCounterStatus--; -} - -buildUnnamed1184() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1184(core.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 buildCounterTestIamPermissionsRequest = 0; -buildTestIamPermissionsRequest() { - var o = new api.TestIamPermissionsRequest(); - buildCounterTestIamPermissionsRequest++; - if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1184(); - } - buildCounterTestIamPermissionsRequest--; - return o; -} - -checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { - buildCounterTestIamPermissionsRequest++; - if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1184(o.permissions); - } - buildCounterTestIamPermissionsRequest--; -} - -buildUnnamed1185() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1185(core.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 buildCounterTestIamPermissionsResponse = 0; -buildTestIamPermissionsResponse() { - var o = new api.TestIamPermissionsResponse(); - buildCounterTestIamPermissionsResponse++; - if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1185(); - } - buildCounterTestIamPermissionsResponse--; - return o; -} - -checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { - buildCounterTestIamPermissionsResponse++; - if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1185(o.permissions); - } - buildCounterTestIamPermissionsResponse--; -} - -core.int buildCounterUndeleteFolderRequest = 0; -buildUndeleteFolderRequest() { - var o = new api.UndeleteFolderRequest(); - buildCounterUndeleteFolderRequest++; - if (buildCounterUndeleteFolderRequest < 3) {} - buildCounterUndeleteFolderRequest--; - return o; -} - -checkUndeleteFolderRequest(api.UndeleteFolderRequest o) { - buildCounterUndeleteFolderRequest++; - if (buildCounterUndeleteFolderRequest < 3) {} - buildCounterUndeleteFolderRequest--; -} - -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-AuditLogConfig", () { - unittest.test("to-json--from-json", () { - var o = buildAuditLogConfig(); - var od = new api.AuditLogConfig.fromJson(o.toJson()); - checkAuditLogConfig(od); - }); - }); - - unittest.group("obj-schema-Binding", () { - unittest.test("to-json--from-json", () { - var o = buildBinding(); - var od = new api.Binding.fromJson(o.toJson()); - checkBinding(od); - }); - }); - - unittest.group("obj-schema-Folder", () { - unittest.test("to-json--from-json", () { - var o = buildFolder(); - var od = new api.Folder.fromJson(o.toJson()); - checkFolder(od); - }); - }); - - 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(); - var od = new api.GetIamPolicyRequest.fromJson(o.toJson()); - checkGetIamPolicyRequest(od); - }); - }); - - unittest.group("obj-schema-ListFoldersResponse", () { - unittest.test("to-json--from-json", () { - var o = buildListFoldersResponse(); - var od = new api.ListFoldersResponse.fromJson(o.toJson()); - checkListFoldersResponse(od); - }); - }); - - unittest.group("obj-schema-MoveFolderRequest", () { - unittest.test("to-json--from-json", () { - var o = buildMoveFolderRequest(); - var od = new api.MoveFolderRequest.fromJson(o.toJson()); - checkMoveFolderRequest(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-Policy", () { - unittest.test("to-json--from-json", () { - var o = buildPolicy(); - var od = new api.Policy.fromJson(o.toJson()); - checkPolicy(od); - }); - }); - - 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-SearchFoldersRequest", () { - unittest.test("to-json--from-json", () { - var o = buildSearchFoldersRequest(); - var od = new api.SearchFoldersRequest.fromJson(o.toJson()); - checkSearchFoldersRequest(od); - }); - }); - - unittest.group("obj-schema-SearchFoldersResponse", () { - unittest.test("to-json--from-json", () { - var o = buildSearchFoldersResponse(); - var od = new api.SearchFoldersResponse.fromJson(o.toJson()); - checkSearchFoldersResponse(od); - }); - }); - - unittest.group("obj-schema-SetIamPolicyRequest", () { - unittest.test("to-json--from-json", () { - var o = buildSetIamPolicyRequest(); - var od = new api.SetIamPolicyRequest.fromJson(o.toJson()); - checkSetIamPolicyRequest(od); - }); - }); - - unittest.group("obj-schema-Status", () { - unittest.test("to-json--from-json", () { - var o = buildStatus(); - var od = new api.Status.fromJson(o.toJson()); - checkStatus(od); - }); - }); - - unittest.group("obj-schema-TestIamPermissionsRequest", () { - unittest.test("to-json--from-json", () { - var o = buildTestIamPermissionsRequest(); - var od = new api.TestIamPermissionsRequest.fromJson(o.toJson()); - checkTestIamPermissionsRequest(od); - }); - }); - - unittest.group("obj-schema-TestIamPermissionsResponse", () { - unittest.test("to-json--from-json", () { - var o = buildTestIamPermissionsResponse(); - var od = new api.TestIamPermissionsResponse.fromJson(o.toJson()); - checkTestIamPermissionsResponse(od); - }); - }); - - unittest.group("obj-schema-UndeleteFolderRequest", () { - unittest.test("to-json--from-json", () { - var o = buildUndeleteFolderRequest(); - var od = new api.UndeleteFolderRequest.fromJson(o.toJson()); - checkUndeleteFolderRequest(od); - }); - }); - - unittest.group("resource-FoldersResourceApi", () { - unittest.test("method--create", () { - var mock = new HttpServerMock(); - api.FoldersResourceApi res = - new api.CloudresourcemanagerApi(mock).folders; - var arg_request = buildFolder(); - var arg_parent = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.Folder.fromJson(json); - checkFolder(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("v2beta1/folders")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["parent"].first, unittest.equals(arg_parent)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - 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, parent: arg_parent, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkOperation(response); - }))); - }); - - unittest.test("method--delete", () { - var mock = new HttpServerMock(); - api.FoldersResourceApi res = - new api.CloudresourcemanagerApi(mock).folders; - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - 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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildFolder()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .delete(arg_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkFolder(response); - }))); - }); - - unittest.test("method--get", () { - var mock = new HttpServerMock(); - api.FoldersResourceApi res = - new api.CloudresourcemanagerApi(mock).folders; - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - 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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildFolder()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .get(arg_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkFolder(response); - }))); - }); - - unittest.test("method--getIamPolicy", () { - var mock = new HttpServerMock(); - api.FoldersResourceApi res = - new api.CloudresourcemanagerApi(mock).folders; - var arg_request = buildGetIamPolicyRequest(); - var arg_resource = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((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 + 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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - 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, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkPolicy(response); - }))); - }); - - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.FoldersResourceApi res = - new api.CloudresourcemanagerApi(mock).folders; - var arg_showDeleted = true; - var arg_pageToken = "foo"; - var arg_pageSize = 42; - var arg_parent = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - 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("v2beta1/folders")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["showDeleted"].first, unittest.equals("$arg_showDeleted")); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); - unittest.expect(queryMap["parent"].first, unittest.equals(arg_parent)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildListFoldersResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .list( - showDeleted: arg_showDeleted, - pageToken: arg_pageToken, - pageSize: arg_pageSize, - parent: arg_parent, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkListFoldersResponse(response); - }))); - }); - - unittest.test("method--move", () { - var mock = new HttpServerMock(); - api.FoldersResourceApi res = - new api.CloudresourcemanagerApi(mock).folders; - var arg_request = buildMoveFolderRequest(); - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.MoveFolderRequest.fromJson(json); - checkMoveFolderRequest(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("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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - 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 - .move(arg_request, arg_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkOperation(response); - }))); - }); - - unittest.test("method--patch", () { - var mock = new HttpServerMock(); - api.FoldersResourceApi res = - new api.CloudresourcemanagerApi(mock).folders; - var arg_request = buildFolder(); - var arg_name = "foo"; - var arg_updateMask = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.Folder.fromJson(json); - checkFolder(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("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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildFolder()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .patch(arg_request, arg_name, - updateMask: arg_updateMask, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkFolder(response); - }))); - }); - - unittest.test("method--search", () { - var mock = new HttpServerMock(); - api.FoldersResourceApi res = - new api.CloudresourcemanagerApi(mock).folders; - var arg_request = buildSearchFoldersRequest(); - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.SearchFoldersRequest.fromJson(json); - checkSearchFoldersRequest(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 + 22), - unittest.equals("v2beta1/folders:search")); - pathOffset += 22; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildSearchFoldersResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .search(arg_request, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkSearchFoldersResponse(response); - }))); - }); - - unittest.test("method--setIamPolicy", () { - var mock = new HttpServerMock(); - api.FoldersResourceApi res = - new api.CloudresourcemanagerApi(mock).folders; - var arg_request = buildSetIamPolicyRequest(); - var arg_resource = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((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 + 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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - 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, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkPolicy(response); - }))); - }); - - unittest.test("method--testIamPermissions", () { - var mock = new HttpServerMock(); - api.FoldersResourceApi res = - new api.CloudresourcemanagerApi(mock).folders; - var arg_request = buildTestIamPermissionsRequest(); - var arg_resource = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((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 + 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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - 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, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkTestIamPermissionsResponse(response); - }))); - }); - - unittest.test("method--undelete", () { - var mock = new HttpServerMock(); - api.FoldersResourceApi res = - new api.CloudresourcemanagerApi(mock).folders; - var arg_request = buildUndeleteFolderRequest(); - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.UndeleteFolderRequest.fromJson(json); - checkUndeleteFolderRequest(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("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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildFolder()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .undelete(arg_request, arg_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkFolder(response); - }))); - }); - }); -}
diff --git a/generated/googleapis/test/cloudshell/v1_test.dart b/generated/googleapis/test/cloudshell/v1_test.dart index ccd6121..77fb385 100644 --- a/generated/googleapis/test/cloudshell/v1_test.dart +++ b/generated/googleapis/test/cloudshell/v1_test.dart
@@ -80,14 +80,14 @@ buildCounterEmpty--; } -buildUnnamed1167() { +buildUnnamed2240() { var o = new core.List<api.PublicKey>(); o.add(buildPublicKey()); o.add(buildPublicKey()); return o; } -checkUnnamed1167(core.List<api.PublicKey> o) { +checkUnnamed2240(core.List<api.PublicKey> o) { unittest.expect(o, unittest.hasLength(2)); checkPublicKey(o[0]); checkPublicKey(o[1]); @@ -101,7 +101,7 @@ o.dockerImage = "foo"; o.id = "foo"; o.name = "foo"; - o.publicKeys = buildUnnamed1167(); + o.publicKeys = buildUnnamed2240(); o.sshHost = "foo"; o.sshPort = 42; o.sshUsername = "foo"; @@ -117,7 +117,7 @@ unittest.expect(o.dockerImage, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1167(o.publicKeys); + checkUnnamed2240(o.publicKeys); unittest.expect(o.sshHost, unittest.equals('foo')); unittest.expect(o.sshPort, unittest.equals(42)); unittest.expect(o.sshUsername, unittest.equals('foo')); @@ -126,14 +126,14 @@ buildCounterEnvironment--; } -buildUnnamed1168() { +buildUnnamed2241() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1168(core.List<api.Operation> o) { +checkUnnamed2241(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -145,7 +145,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1168(); + o.operations = buildUnnamed2241(); } buildCounterListOperationsResponse--; return o; @@ -155,12 +155,12 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1168(o.operations); + checkUnnamed2241(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1169() { +buildUnnamed2242() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -175,7 +175,7 @@ return o; } -checkUnnamed1169(core.Map<core.String, core.Object> o) { +checkUnnamed2242(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)); @@ -189,7 +189,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1170() { +buildUnnamed2243() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -204,7 +204,7 @@ return o; } -checkUnnamed1170(core.Map<core.String, core.Object> o) { +checkUnnamed2243(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)); @@ -225,9 +225,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1169(); + o.metadata = buildUnnamed2242(); o.name = "foo"; - o.response = buildUnnamed1170(); + o.response = buildUnnamed2243(); } buildCounterOperation--; return o; @@ -238,9 +238,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1169(o.metadata); + checkUnnamed2242(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1170(o.response); + checkUnnamed2243(o.response); } buildCounterOperation--; } @@ -306,7 +306,7 @@ buildCounterStartEnvironmentResponse--; } -buildUnnamed1171() { +buildUnnamed2244() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -321,7 +321,7 @@ return o; } -checkUnnamed1171(core.Map<core.String, core.Object> o) { +checkUnnamed2244(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)); @@ -335,17 +335,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1172() { +buildUnnamed2245() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1171()); - o.add(buildUnnamed1171()); + o.add(buildUnnamed2244()); + o.add(buildUnnamed2244()); return o; } -checkUnnamed1172(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2245(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1171(o[0]); - checkUnnamed1171(o[1]); + checkUnnamed2244(o[0]); + checkUnnamed2244(o[1]); } core.int buildCounterStatus = 0; @@ -354,7 +354,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1172(); + o.details = buildUnnamed2245(); o.message = "foo"; } buildCounterStatus--; @@ -365,7 +365,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1172(o.details); + checkUnnamed2245(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--;
diff --git a/generated/googleapis/test/cloudtrace/v1_test.dart b/generated/googleapis/test/cloudtrace/v1_test.dart index 7451a26..8d6a48a 100644 --- a/generated/googleapis/test/cloudtrace/v1_test.dart +++ b/generated/googleapis/test/cloudtrace/v1_test.dart
@@ -65,14 +65,14 @@ buildCounterEmpty--; } -buildUnnamed3453() { +buildUnnamed150() { var o = new core.List<api.Trace>(); o.add(buildTrace()); o.add(buildTrace()); return o; } -checkUnnamed3453(core.List<api.Trace> o) { +checkUnnamed150(core.List<api.Trace> o) { unittest.expect(o, unittest.hasLength(2)); checkTrace(o[0]); checkTrace(o[1]); @@ -84,7 +84,7 @@ buildCounterListTracesResponse++; if (buildCounterListTracesResponse < 3) { o.nextPageToken = "foo"; - o.traces = buildUnnamed3453(); + o.traces = buildUnnamed150(); } buildCounterListTracesResponse--; return o; @@ -94,19 +94,19 @@ buildCounterListTracesResponse++; if (buildCounterListTracesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3453(o.traces); + checkUnnamed150(o.traces); } buildCounterListTracesResponse--; } -buildUnnamed3454() { +buildUnnamed151() { var o = new core.List<api.TraceSpan>(); o.add(buildTraceSpan()); o.add(buildTraceSpan()); return o; } -checkUnnamed3454(core.List<api.TraceSpan> o) { +checkUnnamed151(core.List<api.TraceSpan> o) { unittest.expect(o, unittest.hasLength(2)); checkTraceSpan(o[0]); checkTraceSpan(o[1]); @@ -118,7 +118,7 @@ buildCounterTrace++; if (buildCounterTrace < 3) { o.projectId = "foo"; - o.spans = buildUnnamed3454(); + o.spans = buildUnnamed151(); o.traceId = "foo"; } buildCounterTrace--; @@ -129,20 +129,20 @@ buildCounterTrace++; if (buildCounterTrace < 3) { unittest.expect(o.projectId, unittest.equals('foo')); - checkUnnamed3454(o.spans); + checkUnnamed151(o.spans); unittest.expect(o.traceId, unittest.equals('foo')); } buildCounterTrace--; } -buildUnnamed3455() { +buildUnnamed152() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3455(core.Map<core.String, core.String> o) { +checkUnnamed152(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')); @@ -155,7 +155,7 @@ if (buildCounterTraceSpan < 3) { o.endTime = "foo"; o.kind = "foo"; - o.labels = buildUnnamed3455(); + o.labels = buildUnnamed152(); o.name = "foo"; o.parentSpanId = "foo"; o.spanId = "foo"; @@ -170,7 +170,7 @@ if (buildCounterTraceSpan < 3) { unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3455(o.labels); + checkUnnamed152(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentSpanId, unittest.equals('foo')); unittest.expect(o.spanId, unittest.equals('foo')); @@ -179,14 +179,14 @@ buildCounterTraceSpan--; } -buildUnnamed3456() { +buildUnnamed153() { var o = new core.List<api.Trace>(); o.add(buildTrace()); o.add(buildTrace()); return o; } -checkUnnamed3456(core.List<api.Trace> o) { +checkUnnamed153(core.List<api.Trace> o) { unittest.expect(o, unittest.hasLength(2)); checkTrace(o[0]); checkTrace(o[1]); @@ -197,7 +197,7 @@ var o = new api.Traces(); buildCounterTraces++; if (buildCounterTraces < 3) { - o.traces = buildUnnamed3456(); + o.traces = buildUnnamed153(); } buildCounterTraces--; return o; @@ -206,7 +206,7 @@ checkTraces(api.Traces o) { buildCounterTraces++; if (buildCounterTraces < 3) { - checkUnnamed3456(o.traces); + checkUnnamed153(o.traces); } buildCounterTraces--; } @@ -387,13 +387,13 @@ api.ProjectsTracesResourceApi res = new api.CloudtraceApi(mock).projects.traces; var arg_projectId = "foo"; + var arg_orderBy = "foo"; var arg_filter = "foo"; var arg_endTime = "foo"; var arg_startTime = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_view = "foo"; - var arg_orderBy = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -434,6 +434,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["endTime"].first, unittest.equals(arg_endTime)); @@ -444,8 +446,6 @@ unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); - unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -456,13 +456,13 @@ }), true); res .list(arg_projectId, + orderBy: arg_orderBy, filter: arg_filter, endTime: arg_endTime, startTime: arg_startTime, pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view, - orderBy: arg_orderBy, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListTracesResponse(response);
diff --git a/generated/googleapis/test/cloudtrace/v2_test.dart b/generated/googleapis/test/cloudtrace/v2_test.dart index 7861d73..8e7f92e 100644 --- a/generated/googleapis/test/cloudtrace/v2_test.dart +++ b/generated/googleapis/test/cloudtrace/v2_test.dart
@@ -94,14 +94,14 @@ buildCounterAttributeValue--; } -buildUnnamed3459() { +buildUnnamed1257() { var o = new core.Map<core.String, api.AttributeValue>(); o["x"] = buildAttributeValue(); o["y"] = buildAttributeValue(); return o; } -checkUnnamed3459(core.Map<core.String, api.AttributeValue> o) { +checkUnnamed1257(core.Map<core.String, api.AttributeValue> o) { unittest.expect(o, unittest.hasLength(2)); checkAttributeValue(o["x"]); checkAttributeValue(o["y"]); @@ -112,7 +112,7 @@ var o = new api.Attributes(); buildCounterAttributes++; if (buildCounterAttributes < 3) { - o.attributeMap = buildUnnamed3459(); + o.attributeMap = buildUnnamed1257(); o.droppedAttributesCount = 42; } buildCounterAttributes--; @@ -122,20 +122,20 @@ checkAttributes(api.Attributes o) { buildCounterAttributes++; if (buildCounterAttributes < 3) { - checkUnnamed3459(o.attributeMap); + checkUnnamed1257(o.attributeMap); unittest.expect(o.droppedAttributesCount, unittest.equals(42)); } buildCounterAttributes--; } -buildUnnamed3460() { +buildUnnamed1258() { var o = new core.List<api.Span>(); o.add(buildSpan()); o.add(buildSpan()); return o; } -checkUnnamed3460(core.List<api.Span> o) { +checkUnnamed1258(core.List<api.Span> o) { unittest.expect(o, unittest.hasLength(2)); checkSpan(o[0]); checkSpan(o[1]); @@ -146,7 +146,7 @@ var o = new api.BatchWriteSpansRequest(); buildCounterBatchWriteSpansRequest++; if (buildCounterBatchWriteSpansRequest < 3) { - o.spans = buildUnnamed3460(); + o.spans = buildUnnamed1258(); } buildCounterBatchWriteSpansRequest--; return o; @@ -155,7 +155,7 @@ checkBatchWriteSpansRequest(api.BatchWriteSpansRequest o) { buildCounterBatchWriteSpansRequest++; if (buildCounterBatchWriteSpansRequest < 3) { - checkUnnamed3460(o.spans); + checkUnnamed1258(o.spans); } buildCounterBatchWriteSpansRequest--; } @@ -200,14 +200,14 @@ buildCounterLink--; } -buildUnnamed3461() { +buildUnnamed1259() { var o = new core.List<api.Link>(); o.add(buildLink()); o.add(buildLink()); return o; } -checkUnnamed3461(core.List<api.Link> o) { +checkUnnamed1259(core.List<api.Link> o) { unittest.expect(o, unittest.hasLength(2)); checkLink(o[0]); checkLink(o[1]); @@ -219,7 +219,7 @@ buildCounterLinks++; if (buildCounterLinks < 3) { o.droppedLinksCount = 42; - o.link = buildUnnamed3461(); + o.link = buildUnnamed1259(); } buildCounterLinks--; return o; @@ -229,7 +229,7 @@ buildCounterLinks++; if (buildCounterLinks < 3) { unittest.expect(o.droppedLinksCount, unittest.equals(42)); - checkUnnamed3461(o.link); + checkUnnamed1259(o.link); } buildCounterLinks--; } @@ -354,14 +354,14 @@ buildCounterStackFrame--; } -buildUnnamed3462() { +buildUnnamed1260() { var o = new core.List<api.StackFrame>(); o.add(buildStackFrame()); o.add(buildStackFrame()); return o; } -checkUnnamed3462(core.List<api.StackFrame> o) { +checkUnnamed1260(core.List<api.StackFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkStackFrame(o[0]); checkStackFrame(o[1]); @@ -373,7 +373,7 @@ buildCounterStackFrames++; if (buildCounterStackFrames < 3) { o.droppedFramesCount = 42; - o.frame = buildUnnamed3462(); + o.frame = buildUnnamed1260(); } buildCounterStackFrames--; return o; @@ -383,7 +383,7 @@ buildCounterStackFrames++; if (buildCounterStackFrames < 3) { unittest.expect(o.droppedFramesCount, unittest.equals(42)); - checkUnnamed3462(o.frame); + checkUnnamed1260(o.frame); } buildCounterStackFrames--; } @@ -409,7 +409,7 @@ buildCounterStackTrace--; } -buildUnnamed3463() { +buildUnnamed1261() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -424,7 +424,7 @@ return o; } -checkUnnamed3463(core.Map<core.String, core.Object> o) { +checkUnnamed1261(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)); @@ -438,17 +438,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3464() { +buildUnnamed1262() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3463()); - o.add(buildUnnamed3463()); + o.add(buildUnnamed1261()); + o.add(buildUnnamed1261()); return o; } -checkUnnamed3464(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1262(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3463(o[0]); - checkUnnamed3463(o[1]); + checkUnnamed1261(o[0]); + checkUnnamed1261(o[1]); } core.int buildCounterStatus = 0; @@ -457,7 +457,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3464(); + o.details = buildUnnamed1262(); o.message = "foo"; } buildCounterStatus--; @@ -468,7 +468,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3464(o.details); + checkUnnamed1262(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -497,14 +497,14 @@ buildCounterTimeEvent--; } -buildUnnamed3465() { +buildUnnamed1263() { var o = new core.List<api.TimeEvent>(); o.add(buildTimeEvent()); o.add(buildTimeEvent()); return o; } -checkUnnamed3465(core.List<api.TimeEvent> o) { +checkUnnamed1263(core.List<api.TimeEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkTimeEvent(o[0]); checkTimeEvent(o[1]); @@ -517,7 +517,7 @@ if (buildCounterTimeEvents < 3) { o.droppedAnnotationsCount = 42; o.droppedMessageEventsCount = 42; - o.timeEvent = buildUnnamed3465(); + o.timeEvent = buildUnnamed1263(); } buildCounterTimeEvents--; return o; @@ -528,7 +528,7 @@ if (buildCounterTimeEvents < 3) { unittest.expect(o.droppedAnnotationsCount, unittest.equals(42)); unittest.expect(o.droppedMessageEventsCount, unittest.equals(42)); - checkUnnamed3465(o.timeEvent); + checkUnnamed1263(o.timeEvent); } buildCounterTimeEvents--; }
diff --git a/generated/googleapis/test/compute/v1_test.dart b/generated/googleapis/test/compute/v1_test.dart index 71c2dbc..c83fff8 100644 --- a/generated/googleapis/test/compute/v1_test.dart +++ b/generated/googleapis/test/compute/v1_test.dart
@@ -106,14 +106,14 @@ buildCounterAcceleratorType--; } -buildUnnamed2024() { +buildUnnamed349() { var o = new core.Map<core.String, api.AcceleratorTypesScopedList>(); o["x"] = buildAcceleratorTypesScopedList(); o["y"] = buildAcceleratorTypesScopedList(); return o; } -checkUnnamed2024(core.Map<core.String, api.AcceleratorTypesScopedList> o) { +checkUnnamed349(core.Map<core.String, api.AcceleratorTypesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorTypesScopedList(o["x"]); checkAcceleratorTypesScopedList(o["y"]); @@ -141,14 +141,14 @@ buildCounterAcceleratorTypeAggregatedListWarningData--; } -buildUnnamed2025() { +buildUnnamed350() { var o = new core.List<api.AcceleratorTypeAggregatedListWarningData>(); o.add(buildAcceleratorTypeAggregatedListWarningData()); o.add(buildAcceleratorTypeAggregatedListWarningData()); return o; } -checkUnnamed2025(core.List<api.AcceleratorTypeAggregatedListWarningData> o) { +checkUnnamed350(core.List<api.AcceleratorTypeAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorTypeAggregatedListWarningData(o[0]); checkAcceleratorTypeAggregatedListWarningData(o[1]); @@ -160,7 +160,7 @@ buildCounterAcceleratorTypeAggregatedListWarning++; if (buildCounterAcceleratorTypeAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2025(); + o.data = buildUnnamed350(); o.message = "foo"; } buildCounterAcceleratorTypeAggregatedListWarning--; @@ -172,7 +172,7 @@ buildCounterAcceleratorTypeAggregatedListWarning++; if (buildCounterAcceleratorTypeAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2025(o.data); + checkUnnamed350(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAcceleratorTypeAggregatedListWarning--; @@ -184,7 +184,7 @@ buildCounterAcceleratorTypeAggregatedList++; if (buildCounterAcceleratorTypeAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2024(); + o.items = buildUnnamed349(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -198,7 +198,7 @@ buildCounterAcceleratorTypeAggregatedList++; if (buildCounterAcceleratorTypeAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2024(o.items); + checkUnnamed349(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -207,14 +207,14 @@ buildCounterAcceleratorTypeAggregatedList--; } -buildUnnamed2026() { +buildUnnamed351() { var o = new core.List<api.AcceleratorType>(); o.add(buildAcceleratorType()); o.add(buildAcceleratorType()); return o; } -checkUnnamed2026(core.List<api.AcceleratorType> o) { +checkUnnamed351(core.List<api.AcceleratorType> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorType(o[0]); checkAcceleratorType(o[1]); @@ -241,14 +241,14 @@ buildCounterAcceleratorTypeListWarningData--; } -buildUnnamed2027() { +buildUnnamed352() { var o = new core.List<api.AcceleratorTypeListWarningData>(); o.add(buildAcceleratorTypeListWarningData()); o.add(buildAcceleratorTypeListWarningData()); return o; } -checkUnnamed2027(core.List<api.AcceleratorTypeListWarningData> o) { +checkUnnamed352(core.List<api.AcceleratorTypeListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorTypeListWarningData(o[0]); checkAcceleratorTypeListWarningData(o[1]); @@ -260,7 +260,7 @@ buildCounterAcceleratorTypeListWarning++; if (buildCounterAcceleratorTypeListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2027(); + o.data = buildUnnamed352(); o.message = "foo"; } buildCounterAcceleratorTypeListWarning--; @@ -271,7 +271,7 @@ buildCounterAcceleratorTypeListWarning++; if (buildCounterAcceleratorTypeListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2027(o.data); + checkUnnamed352(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAcceleratorTypeListWarning--; @@ -283,7 +283,7 @@ buildCounterAcceleratorTypeList++; if (buildCounterAcceleratorTypeList < 3) { o.id = "foo"; - o.items = buildUnnamed2026(); + o.items = buildUnnamed351(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -297,7 +297,7 @@ buildCounterAcceleratorTypeList++; if (buildCounterAcceleratorTypeList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2026(o.items); + checkUnnamed351(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -306,14 +306,14 @@ buildCounterAcceleratorTypeList--; } -buildUnnamed2028() { +buildUnnamed353() { var o = new core.List<api.AcceleratorType>(); o.add(buildAcceleratorType()); o.add(buildAcceleratorType()); return o; } -checkUnnamed2028(core.List<api.AcceleratorType> o) { +checkUnnamed353(core.List<api.AcceleratorType> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorType(o[0]); checkAcceleratorType(o[1]); @@ -341,14 +341,14 @@ buildCounterAcceleratorTypesScopedListWarningData--; } -buildUnnamed2029() { +buildUnnamed354() { var o = new core.List<api.AcceleratorTypesScopedListWarningData>(); o.add(buildAcceleratorTypesScopedListWarningData()); o.add(buildAcceleratorTypesScopedListWarningData()); return o; } -checkUnnamed2029(core.List<api.AcceleratorTypesScopedListWarningData> o) { +checkUnnamed354(core.List<api.AcceleratorTypesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorTypesScopedListWarningData(o[0]); checkAcceleratorTypesScopedListWarningData(o[1]); @@ -360,7 +360,7 @@ buildCounterAcceleratorTypesScopedListWarning++; if (buildCounterAcceleratorTypesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2029(); + o.data = buildUnnamed354(); o.message = "foo"; } buildCounterAcceleratorTypesScopedListWarning--; @@ -372,7 +372,7 @@ buildCounterAcceleratorTypesScopedListWarning++; if (buildCounterAcceleratorTypesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2029(o.data); + checkUnnamed354(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAcceleratorTypesScopedListWarning--; @@ -383,7 +383,7 @@ var o = new api.AcceleratorTypesScopedList(); buildCounterAcceleratorTypesScopedList++; if (buildCounterAcceleratorTypesScopedList < 3) { - o.acceleratorTypes = buildUnnamed2028(); + o.acceleratorTypes = buildUnnamed353(); o.warning = buildAcceleratorTypesScopedListWarning(); } buildCounterAcceleratorTypesScopedList--; @@ -393,7 +393,7 @@ checkAcceleratorTypesScopedList(api.AcceleratorTypesScopedList o) { buildCounterAcceleratorTypesScopedList++; if (buildCounterAcceleratorTypesScopedList < 3) { - checkUnnamed2028(o.acceleratorTypes); + checkUnnamed353(o.acceleratorTypes); checkAcceleratorTypesScopedListWarning(o.warning); } buildCounterAcceleratorTypesScopedList--; @@ -428,14 +428,14 @@ buildCounterAccessConfig--; } -buildUnnamed2030() { +buildUnnamed355() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2030(core.List<core.String> o) { +checkUnnamed355(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -458,7 +458,7 @@ o.selfLink = "foo"; o.status = "foo"; o.subnetwork = "foo"; - o.users = buildUnnamed2030(); + o.users = buildUnnamed355(); } buildCounterAddress--; return o; @@ -479,19 +479,19 @@ unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subnetwork, unittest.equals('foo')); - checkUnnamed2030(o.users); + checkUnnamed355(o.users); } buildCounterAddress--; } -buildUnnamed2031() { +buildUnnamed356() { var o = new core.Map<core.String, api.AddressesScopedList>(); o["x"] = buildAddressesScopedList(); o["y"] = buildAddressesScopedList(); return o; } -checkUnnamed2031(core.Map<core.String, api.AddressesScopedList> o) { +checkUnnamed356(core.Map<core.String, api.AddressesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkAddressesScopedList(o["x"]); checkAddressesScopedList(o["y"]); @@ -518,14 +518,14 @@ buildCounterAddressAggregatedListWarningData--; } -buildUnnamed2032() { +buildUnnamed357() { var o = new core.List<api.AddressAggregatedListWarningData>(); o.add(buildAddressAggregatedListWarningData()); o.add(buildAddressAggregatedListWarningData()); return o; } -checkUnnamed2032(core.List<api.AddressAggregatedListWarningData> o) { +checkUnnamed357(core.List<api.AddressAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAddressAggregatedListWarningData(o[0]); checkAddressAggregatedListWarningData(o[1]); @@ -537,7 +537,7 @@ buildCounterAddressAggregatedListWarning++; if (buildCounterAddressAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2032(); + o.data = buildUnnamed357(); o.message = "foo"; } buildCounterAddressAggregatedListWarning--; @@ -548,7 +548,7 @@ buildCounterAddressAggregatedListWarning++; if (buildCounterAddressAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2032(o.data); + checkUnnamed357(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAddressAggregatedListWarning--; @@ -560,7 +560,7 @@ buildCounterAddressAggregatedList++; if (buildCounterAddressAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2031(); + o.items = buildUnnamed356(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -574,7 +574,7 @@ buildCounterAddressAggregatedList++; if (buildCounterAddressAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2031(o.items); + checkUnnamed356(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -583,14 +583,14 @@ buildCounterAddressAggregatedList--; } -buildUnnamed2033() { +buildUnnamed358() { var o = new core.List<api.Address>(); o.add(buildAddress()); o.add(buildAddress()); return o; } -checkUnnamed2033(core.List<api.Address> o) { +checkUnnamed358(core.List<api.Address> o) { unittest.expect(o, unittest.hasLength(2)); checkAddress(o[0]); checkAddress(o[1]); @@ -617,14 +617,14 @@ buildCounterAddressListWarningData--; } -buildUnnamed2034() { +buildUnnamed359() { var o = new core.List<api.AddressListWarningData>(); o.add(buildAddressListWarningData()); o.add(buildAddressListWarningData()); return o; } -checkUnnamed2034(core.List<api.AddressListWarningData> o) { +checkUnnamed359(core.List<api.AddressListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAddressListWarningData(o[0]); checkAddressListWarningData(o[1]); @@ -636,7 +636,7 @@ buildCounterAddressListWarning++; if (buildCounterAddressListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2034(); + o.data = buildUnnamed359(); o.message = "foo"; } buildCounterAddressListWarning--; @@ -647,7 +647,7 @@ buildCounterAddressListWarning++; if (buildCounterAddressListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2034(o.data); + checkUnnamed359(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAddressListWarning--; @@ -659,7 +659,7 @@ buildCounterAddressList++; if (buildCounterAddressList < 3) { o.id = "foo"; - o.items = buildUnnamed2033(); + o.items = buildUnnamed358(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -673,7 +673,7 @@ buildCounterAddressList++; if (buildCounterAddressList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2033(o.items); + checkUnnamed358(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -682,14 +682,14 @@ buildCounterAddressList--; } -buildUnnamed2035() { +buildUnnamed360() { var o = new core.List<api.Address>(); o.add(buildAddress()); o.add(buildAddress()); return o; } -checkUnnamed2035(core.List<api.Address> o) { +checkUnnamed360(core.List<api.Address> o) { unittest.expect(o, unittest.hasLength(2)); checkAddress(o[0]); checkAddress(o[1]); @@ -716,14 +716,14 @@ buildCounterAddressesScopedListWarningData--; } -buildUnnamed2036() { +buildUnnamed361() { var o = new core.List<api.AddressesScopedListWarningData>(); o.add(buildAddressesScopedListWarningData()); o.add(buildAddressesScopedListWarningData()); return o; } -checkUnnamed2036(core.List<api.AddressesScopedListWarningData> o) { +checkUnnamed361(core.List<api.AddressesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAddressesScopedListWarningData(o[0]); checkAddressesScopedListWarningData(o[1]); @@ -735,7 +735,7 @@ buildCounterAddressesScopedListWarning++; if (buildCounterAddressesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2036(); + o.data = buildUnnamed361(); o.message = "foo"; } buildCounterAddressesScopedListWarning--; @@ -746,7 +746,7 @@ buildCounterAddressesScopedListWarning++; if (buildCounterAddressesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2036(o.data); + checkUnnamed361(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAddressesScopedListWarning--; @@ -757,7 +757,7 @@ var o = new api.AddressesScopedList(); buildCounterAddressesScopedList++; if (buildCounterAddressesScopedList < 3) { - o.addresses = buildUnnamed2035(); + o.addresses = buildUnnamed360(); o.warning = buildAddressesScopedListWarning(); } buildCounterAddressesScopedList--; @@ -767,7 +767,7 @@ checkAddressesScopedList(api.AddressesScopedList o) { buildCounterAddressesScopedList++; if (buildCounterAddressesScopedList < 3) { - checkUnnamed2035(o.addresses); + checkUnnamed360(o.addresses); checkAddressesScopedListWarning(o.warning); } buildCounterAddressesScopedList--; @@ -794,14 +794,27 @@ buildCounterAliasIpRange--; } -buildUnnamed2037() { +buildUnnamed362() { + var o = new core.List<api.GuestOsFeature>(); + o.add(buildGuestOsFeature()); + o.add(buildGuestOsFeature()); + return o; +} + +checkUnnamed362(core.List<api.GuestOsFeature> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGuestOsFeature(o[0]); + checkGuestOsFeature(o[1]); +} + +buildUnnamed363() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2037(core.List<core.String> o) { +checkUnnamed363(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -816,11 +829,12 @@ o.boot = true; o.deviceName = "foo"; o.diskEncryptionKey = buildCustomerEncryptionKey(); + o.guestOsFeatures = buildUnnamed362(); o.index = 42; o.initializeParams = buildAttachedDiskInitializeParams(); o.interface = "foo"; o.kind = "foo"; - o.licenses = buildUnnamed2037(); + o.licenses = buildUnnamed363(); o.mode = "foo"; o.source = "foo"; o.type = "foo"; @@ -836,11 +850,12 @@ unittest.expect(o.boot, unittest.isTrue); unittest.expect(o.deviceName, unittest.equals('foo')); checkCustomerEncryptionKey(o.diskEncryptionKey); + checkUnnamed362(o.guestOsFeatures); unittest.expect(o.index, unittest.equals(42)); checkAttachedDiskInitializeParams(o.initializeParams); unittest.expect(o.interface, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2037(o.licenses); + checkUnnamed363(o.licenses); unittest.expect(o.mode, unittest.equals('foo')); unittest.expect(o.source, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -848,14 +863,14 @@ buildCounterAttachedDisk--; } -buildUnnamed2038() { +buildUnnamed364() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2038(core.Map<core.String, core.String> o) { +checkUnnamed364(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')); @@ -869,7 +884,7 @@ o.diskName = "foo"; o.diskSizeGb = "foo"; o.diskType = "foo"; - o.labels = buildUnnamed2038(); + o.labels = buildUnnamed364(); o.sourceImage = "foo"; o.sourceImageEncryptionKey = buildCustomerEncryptionKey(); } @@ -883,21 +898,21 @@ unittest.expect(o.diskName, unittest.equals('foo')); unittest.expect(o.diskSizeGb, unittest.equals('foo')); unittest.expect(o.diskType, unittest.equals('foo')); - checkUnnamed2038(o.labels); + checkUnnamed364(o.labels); unittest.expect(o.sourceImage, unittest.equals('foo')); checkCustomerEncryptionKey(o.sourceImageEncryptionKey); } buildCounterAttachedDiskInitializeParams--; } -buildUnnamed2039() { +buildUnnamed365() { var o = new core.List<api.AutoscalerStatusDetails>(); o.add(buildAutoscalerStatusDetails()); o.add(buildAutoscalerStatusDetails()); return o; } -checkUnnamed2039(core.List<api.AutoscalerStatusDetails> o) { +checkUnnamed365(core.List<api.AutoscalerStatusDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalerStatusDetails(o[0]); checkAutoscalerStatusDetails(o[1]); @@ -917,7 +932,7 @@ o.region = "foo"; o.selfLink = "foo"; o.status = "foo"; - o.statusDetails = buildUnnamed2039(); + o.statusDetails = buildUnnamed365(); o.target = "foo"; o.zone = "foo"; } @@ -937,21 +952,21 @@ unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed2039(o.statusDetails); + checkUnnamed365(o.statusDetails); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterAutoscaler--; } -buildUnnamed2040() { +buildUnnamed366() { var o = new core.Map<core.String, api.AutoscalersScopedList>(); o["x"] = buildAutoscalersScopedList(); o["y"] = buildAutoscalersScopedList(); return o; } -checkUnnamed2040(core.Map<core.String, api.AutoscalersScopedList> o) { +checkUnnamed366(core.Map<core.String, api.AutoscalersScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalersScopedList(o["x"]); checkAutoscalersScopedList(o["y"]); @@ -979,14 +994,14 @@ buildCounterAutoscalerAggregatedListWarningData--; } -buildUnnamed2041() { +buildUnnamed367() { var o = new core.List<api.AutoscalerAggregatedListWarningData>(); o.add(buildAutoscalerAggregatedListWarningData()); o.add(buildAutoscalerAggregatedListWarningData()); return o; } -checkUnnamed2041(core.List<api.AutoscalerAggregatedListWarningData> o) { +checkUnnamed367(core.List<api.AutoscalerAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalerAggregatedListWarningData(o[0]); checkAutoscalerAggregatedListWarningData(o[1]); @@ -998,7 +1013,7 @@ buildCounterAutoscalerAggregatedListWarning++; if (buildCounterAutoscalerAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2041(); + o.data = buildUnnamed367(); o.message = "foo"; } buildCounterAutoscalerAggregatedListWarning--; @@ -1009,7 +1024,7 @@ buildCounterAutoscalerAggregatedListWarning++; if (buildCounterAutoscalerAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2041(o.data); + checkUnnamed367(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAutoscalerAggregatedListWarning--; @@ -1021,7 +1036,7 @@ buildCounterAutoscalerAggregatedList++; if (buildCounterAutoscalerAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2040(); + o.items = buildUnnamed366(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1035,7 +1050,7 @@ buildCounterAutoscalerAggregatedList++; if (buildCounterAutoscalerAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2040(o.items); + checkUnnamed366(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1044,14 +1059,14 @@ buildCounterAutoscalerAggregatedList--; } -buildUnnamed2042() { +buildUnnamed368() { var o = new core.List<api.Autoscaler>(); o.add(buildAutoscaler()); o.add(buildAutoscaler()); return o; } -checkUnnamed2042(core.List<api.Autoscaler> o) { +checkUnnamed368(core.List<api.Autoscaler> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscaler(o[0]); checkAutoscaler(o[1]); @@ -1078,14 +1093,14 @@ buildCounterAutoscalerListWarningData--; } -buildUnnamed2043() { +buildUnnamed369() { var o = new core.List<api.AutoscalerListWarningData>(); o.add(buildAutoscalerListWarningData()); o.add(buildAutoscalerListWarningData()); return o; } -checkUnnamed2043(core.List<api.AutoscalerListWarningData> o) { +checkUnnamed369(core.List<api.AutoscalerListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalerListWarningData(o[0]); checkAutoscalerListWarningData(o[1]); @@ -1097,7 +1112,7 @@ buildCounterAutoscalerListWarning++; if (buildCounterAutoscalerListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2043(); + o.data = buildUnnamed369(); o.message = "foo"; } buildCounterAutoscalerListWarning--; @@ -1108,7 +1123,7 @@ buildCounterAutoscalerListWarning++; if (buildCounterAutoscalerListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2043(o.data); + checkUnnamed369(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAutoscalerListWarning--; @@ -1120,7 +1135,7 @@ buildCounterAutoscalerList++; if (buildCounterAutoscalerList < 3) { o.id = "foo"; - o.items = buildUnnamed2042(); + o.items = buildUnnamed368(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1134,7 +1149,7 @@ buildCounterAutoscalerList++; if (buildCounterAutoscalerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2042(o.items); + checkUnnamed368(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1164,14 +1179,14 @@ buildCounterAutoscalerStatusDetails--; } -buildUnnamed2044() { +buildUnnamed370() { var o = new core.List<api.Autoscaler>(); o.add(buildAutoscaler()); o.add(buildAutoscaler()); return o; } -checkUnnamed2044(core.List<api.Autoscaler> o) { +checkUnnamed370(core.List<api.Autoscaler> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscaler(o[0]); checkAutoscaler(o[1]); @@ -1198,14 +1213,14 @@ buildCounterAutoscalersScopedListWarningData--; } -buildUnnamed2045() { +buildUnnamed371() { var o = new core.List<api.AutoscalersScopedListWarningData>(); o.add(buildAutoscalersScopedListWarningData()); o.add(buildAutoscalersScopedListWarningData()); return o; } -checkUnnamed2045(core.List<api.AutoscalersScopedListWarningData> o) { +checkUnnamed371(core.List<api.AutoscalersScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalersScopedListWarningData(o[0]); checkAutoscalersScopedListWarningData(o[1]); @@ -1217,7 +1232,7 @@ buildCounterAutoscalersScopedListWarning++; if (buildCounterAutoscalersScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2045(); + o.data = buildUnnamed371(); o.message = "foo"; } buildCounterAutoscalersScopedListWarning--; @@ -1228,7 +1243,7 @@ buildCounterAutoscalersScopedListWarning++; if (buildCounterAutoscalersScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2045(o.data); + checkUnnamed371(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAutoscalersScopedListWarning--; @@ -1239,7 +1254,7 @@ var o = new api.AutoscalersScopedList(); buildCounterAutoscalersScopedList++; if (buildCounterAutoscalersScopedList < 3) { - o.autoscalers = buildUnnamed2044(); + o.autoscalers = buildUnnamed370(); o.warning = buildAutoscalersScopedListWarning(); } buildCounterAutoscalersScopedList--; @@ -1249,20 +1264,20 @@ checkAutoscalersScopedList(api.AutoscalersScopedList o) { buildCounterAutoscalersScopedList++; if (buildCounterAutoscalersScopedList < 3) { - checkUnnamed2044(o.autoscalers); + checkUnnamed370(o.autoscalers); checkAutoscalersScopedListWarning(o.warning); } buildCounterAutoscalersScopedList--; } -buildUnnamed2046() { +buildUnnamed372() { var o = new core.List<api.AutoscalingPolicyCustomMetricUtilization>(); o.add(buildAutoscalingPolicyCustomMetricUtilization()); o.add(buildAutoscalingPolicyCustomMetricUtilization()); return o; } -checkUnnamed2046(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { +checkUnnamed372(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalingPolicyCustomMetricUtilization(o[0]); checkAutoscalingPolicyCustomMetricUtilization(o[1]); @@ -1275,7 +1290,7 @@ if (buildCounterAutoscalingPolicy < 3) { o.coolDownPeriodSec = 42; o.cpuUtilization = buildAutoscalingPolicyCpuUtilization(); - o.customMetricUtilizations = buildUnnamed2046(); + o.customMetricUtilizations = buildUnnamed372(); o.loadBalancingUtilization = buildAutoscalingPolicyLoadBalancingUtilization(); o.maxNumReplicas = 42; @@ -1290,7 +1305,7 @@ if (buildCounterAutoscalingPolicy < 3) { unittest.expect(o.coolDownPeriodSec, unittest.equals(42)); checkAutoscalingPolicyCpuUtilization(o.cpuUtilization); - checkUnnamed2046(o.customMetricUtilizations); + checkUnnamed372(o.customMetricUtilizations); checkAutoscalingPolicyLoadBalancingUtilization(o.loadBalancingUtilization); unittest.expect(o.maxNumReplicas, unittest.equals(42)); unittest.expect(o.minNumReplicas, unittest.equals(42)); @@ -1429,14 +1444,14 @@ buildCounterBackendBucket--; } -buildUnnamed2047() { +buildUnnamed373() { var o = new core.List<api.BackendBucket>(); o.add(buildBackendBucket()); o.add(buildBackendBucket()); return o; } -checkUnnamed2047(core.List<api.BackendBucket> o) { +checkUnnamed373(core.List<api.BackendBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendBucket(o[0]); checkBackendBucket(o[1]); @@ -1463,14 +1478,14 @@ buildCounterBackendBucketListWarningData--; } -buildUnnamed2048() { +buildUnnamed374() { var o = new core.List<api.BackendBucketListWarningData>(); o.add(buildBackendBucketListWarningData()); o.add(buildBackendBucketListWarningData()); return o; } -checkUnnamed2048(core.List<api.BackendBucketListWarningData> o) { +checkUnnamed374(core.List<api.BackendBucketListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendBucketListWarningData(o[0]); checkBackendBucketListWarningData(o[1]); @@ -1482,7 +1497,7 @@ buildCounterBackendBucketListWarning++; if (buildCounterBackendBucketListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2048(); + o.data = buildUnnamed374(); o.message = "foo"; } buildCounterBackendBucketListWarning--; @@ -1493,7 +1508,7 @@ buildCounterBackendBucketListWarning++; if (buildCounterBackendBucketListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2048(o.data); + checkUnnamed374(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterBackendBucketListWarning--; @@ -1505,7 +1520,7 @@ buildCounterBackendBucketList++; if (buildCounterBackendBucketList < 3) { o.id = "foo"; - o.items = buildUnnamed2047(); + o.items = buildUnnamed373(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1519,7 +1534,7 @@ buildCounterBackendBucketList++; if (buildCounterBackendBucketList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2047(o.items); + checkUnnamed373(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1528,27 +1543,27 @@ buildCounterBackendBucketList--; } -buildUnnamed2049() { +buildUnnamed375() { var o = new core.List<api.Backend>(); o.add(buildBackend()); o.add(buildBackend()); return o; } -checkUnnamed2049(core.List<api.Backend> o) { +checkUnnamed375(core.List<api.Backend> o) { unittest.expect(o, unittest.hasLength(2)); checkBackend(o[0]); checkBackend(o[1]); } -buildUnnamed2050() { +buildUnnamed376() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2050(core.List<core.String> o) { +checkUnnamed376(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1560,14 +1575,14 @@ buildCounterBackendService++; if (buildCounterBackendService < 3) { o.affinityCookieTtlSec = 42; - o.backends = buildUnnamed2049(); + o.backends = buildUnnamed375(); o.cdnPolicy = buildBackendServiceCdnPolicy(); o.connectionDraining = buildConnectionDraining(); o.creationTimestamp = "foo"; o.description = "foo"; o.enableCDN = true; o.fingerprint = "foo"; - o.healthChecks = buildUnnamed2050(); + o.healthChecks = buildUnnamed376(); o.iap = buildBackendServiceIAP(); o.id = "foo"; o.kind = "foo"; @@ -1589,14 +1604,14 @@ buildCounterBackendService++; if (buildCounterBackendService < 3) { unittest.expect(o.affinityCookieTtlSec, unittest.equals(42)); - checkUnnamed2049(o.backends); + checkUnnamed375(o.backends); checkBackendServiceCdnPolicy(o.cdnPolicy); 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')); - checkUnnamed2050(o.healthChecks); + checkUnnamed376(o.healthChecks); checkBackendServiceIAP(o.iap); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -1613,14 +1628,14 @@ buildCounterBackendService--; } -buildUnnamed2051() { +buildUnnamed377() { var o = new core.Map<core.String, api.BackendServicesScopedList>(); o["x"] = buildBackendServicesScopedList(); o["y"] = buildBackendServicesScopedList(); return o; } -checkUnnamed2051(core.Map<core.String, api.BackendServicesScopedList> o) { +checkUnnamed377(core.Map<core.String, api.BackendServicesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendServicesScopedList(o["x"]); checkBackendServicesScopedList(o["y"]); @@ -1648,14 +1663,14 @@ buildCounterBackendServiceAggregatedListWarningData--; } -buildUnnamed2052() { +buildUnnamed378() { var o = new core.List<api.BackendServiceAggregatedListWarningData>(); o.add(buildBackendServiceAggregatedListWarningData()); o.add(buildBackendServiceAggregatedListWarningData()); return o; } -checkUnnamed2052(core.List<api.BackendServiceAggregatedListWarningData> o) { +checkUnnamed378(core.List<api.BackendServiceAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendServiceAggregatedListWarningData(o[0]); checkBackendServiceAggregatedListWarningData(o[1]); @@ -1667,7 +1682,7 @@ buildCounterBackendServiceAggregatedListWarning++; if (buildCounterBackendServiceAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2052(); + o.data = buildUnnamed378(); o.message = "foo"; } buildCounterBackendServiceAggregatedListWarning--; @@ -1679,7 +1694,7 @@ buildCounterBackendServiceAggregatedListWarning++; if (buildCounterBackendServiceAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2052(o.data); + checkUnnamed378(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterBackendServiceAggregatedListWarning--; @@ -1691,7 +1706,7 @@ buildCounterBackendServiceAggregatedList++; if (buildCounterBackendServiceAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2051(); + o.items = buildUnnamed377(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1705,7 +1720,7 @@ buildCounterBackendServiceAggregatedList++; if (buildCounterBackendServiceAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2051(o.items); + checkUnnamed377(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1733,14 +1748,14 @@ buildCounterBackendServiceCdnPolicy--; } -buildUnnamed2053() { +buildUnnamed379() { var o = new core.List<api.HealthStatus>(); o.add(buildHealthStatus()); o.add(buildHealthStatus()); return o; } -checkUnnamed2053(core.List<api.HealthStatus> o) { +checkUnnamed379(core.List<api.HealthStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthStatus(o[0]); checkHealthStatus(o[1]); @@ -1751,7 +1766,7 @@ var o = new api.BackendServiceGroupHealth(); buildCounterBackendServiceGroupHealth++; if (buildCounterBackendServiceGroupHealth < 3) { - o.healthStatus = buildUnnamed2053(); + o.healthStatus = buildUnnamed379(); o.kind = "foo"; } buildCounterBackendServiceGroupHealth--; @@ -1761,7 +1776,7 @@ checkBackendServiceGroupHealth(api.BackendServiceGroupHealth o) { buildCounterBackendServiceGroupHealth++; if (buildCounterBackendServiceGroupHealth < 3) { - checkUnnamed2053(o.healthStatus); + checkUnnamed379(o.healthStatus); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBackendServiceGroupHealth--; @@ -1792,14 +1807,14 @@ buildCounterBackendServiceIAP--; } -buildUnnamed2054() { +buildUnnamed380() { var o = new core.List<api.BackendService>(); o.add(buildBackendService()); o.add(buildBackendService()); return o; } -checkUnnamed2054(core.List<api.BackendService> o) { +checkUnnamed380(core.List<api.BackendService> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendService(o[0]); checkBackendService(o[1]); @@ -1826,14 +1841,14 @@ buildCounterBackendServiceListWarningData--; } -buildUnnamed2055() { +buildUnnamed381() { var o = new core.List<api.BackendServiceListWarningData>(); o.add(buildBackendServiceListWarningData()); o.add(buildBackendServiceListWarningData()); return o; } -checkUnnamed2055(core.List<api.BackendServiceListWarningData> o) { +checkUnnamed381(core.List<api.BackendServiceListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendServiceListWarningData(o[0]); checkBackendServiceListWarningData(o[1]); @@ -1845,7 +1860,7 @@ buildCounterBackendServiceListWarning++; if (buildCounterBackendServiceListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2055(); + o.data = buildUnnamed381(); o.message = "foo"; } buildCounterBackendServiceListWarning--; @@ -1856,7 +1871,7 @@ buildCounterBackendServiceListWarning++; if (buildCounterBackendServiceListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2055(o.data); + checkUnnamed381(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterBackendServiceListWarning--; @@ -1868,7 +1883,7 @@ buildCounterBackendServiceList++; if (buildCounterBackendServiceList < 3) { o.id = "foo"; - o.items = buildUnnamed2054(); + o.items = buildUnnamed380(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1882,7 +1897,7 @@ buildCounterBackendServiceList++; if (buildCounterBackendServiceList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2054(o.items); + checkUnnamed380(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1891,14 +1906,14 @@ buildCounterBackendServiceList--; } -buildUnnamed2056() { +buildUnnamed382() { var o = new core.List<api.BackendService>(); o.add(buildBackendService()); o.add(buildBackendService()); return o; } -checkUnnamed2056(core.List<api.BackendService> o) { +checkUnnamed382(core.List<api.BackendService> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendService(o[0]); checkBackendService(o[1]); @@ -1926,14 +1941,14 @@ buildCounterBackendServicesScopedListWarningData--; } -buildUnnamed2057() { +buildUnnamed383() { var o = new core.List<api.BackendServicesScopedListWarningData>(); o.add(buildBackendServicesScopedListWarningData()); o.add(buildBackendServicesScopedListWarningData()); return o; } -checkUnnamed2057(core.List<api.BackendServicesScopedListWarningData> o) { +checkUnnamed383(core.List<api.BackendServicesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendServicesScopedListWarningData(o[0]); checkBackendServicesScopedListWarningData(o[1]); @@ -1945,7 +1960,7 @@ buildCounterBackendServicesScopedListWarning++; if (buildCounterBackendServicesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2057(); + o.data = buildUnnamed383(); o.message = "foo"; } buildCounterBackendServicesScopedListWarning--; @@ -1956,7 +1971,7 @@ buildCounterBackendServicesScopedListWarning++; if (buildCounterBackendServicesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2057(o.data); + checkUnnamed383(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterBackendServicesScopedListWarning--; @@ -1967,7 +1982,7 @@ var o = new api.BackendServicesScopedList(); buildCounterBackendServicesScopedList++; if (buildCounterBackendServicesScopedList < 3) { - o.backendServices = buildUnnamed2056(); + o.backendServices = buildUnnamed382(); o.warning = buildBackendServicesScopedListWarning(); } buildCounterBackendServicesScopedList--; @@ -1977,7 +1992,7 @@ checkBackendServicesScopedList(api.BackendServicesScopedList o) { buildCounterBackendServicesScopedList++; if (buildCounterBackendServicesScopedList < 3) { - checkUnnamed2056(o.backendServices); + checkUnnamed382(o.backendServices); checkBackendServicesScopedListWarning(o.warning); } buildCounterBackendServicesScopedList--; @@ -2004,27 +2019,27 @@ buildCounterCacheInvalidationRule--; } -buildUnnamed2058() { +buildUnnamed384() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2058(core.List<core.String> o) { +checkUnnamed384(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2059() { +buildUnnamed385() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2059(core.List<core.String> o) { +checkUnnamed385(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2038,8 +2053,8 @@ o.includeHost = true; o.includeProtocol = true; o.includeQueryString = true; - o.queryStringBlacklist = buildUnnamed2058(); - o.queryStringWhitelist = buildUnnamed2059(); + o.queryStringBlacklist = buildUnnamed384(); + o.queryStringWhitelist = buildUnnamed385(); } buildCounterCacheKeyPolicy--; return o; @@ -2051,20 +2066,20 @@ unittest.expect(o.includeHost, unittest.isTrue); unittest.expect(o.includeProtocol, unittest.isTrue); unittest.expect(o.includeQueryString, unittest.isTrue); - checkUnnamed2058(o.queryStringBlacklist); - checkUnnamed2059(o.queryStringWhitelist); + checkUnnamed384(o.queryStringBlacklist); + checkUnnamed385(o.queryStringWhitelist); } buildCounterCacheKeyPolicy--; } -buildUnnamed2060() { +buildUnnamed386() { var o = new core.List<api.ResourceCommitment>(); o.add(buildResourceCommitment()); o.add(buildResourceCommitment()); return o; } -checkUnnamed2060(core.List<api.ResourceCommitment> o) { +checkUnnamed386(core.List<api.ResourceCommitment> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceCommitment(o[0]); checkResourceCommitment(o[1]); @@ -2083,7 +2098,7 @@ o.name = "foo"; o.plan = "foo"; o.region = "foo"; - o.resources = buildUnnamed2060(); + o.resources = buildUnnamed386(); o.selfLink = "foo"; o.startTimestamp = "foo"; o.status = "foo"; @@ -2104,7 +2119,7 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.plan, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed2060(o.resources); + checkUnnamed386(o.resources); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.startTimestamp, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); @@ -2113,14 +2128,14 @@ buildCounterCommitment--; } -buildUnnamed2061() { +buildUnnamed387() { var o = new core.Map<core.String, api.CommitmentsScopedList>(); o["x"] = buildCommitmentsScopedList(); o["y"] = buildCommitmentsScopedList(); return o; } -checkUnnamed2061(core.Map<core.String, api.CommitmentsScopedList> o) { +checkUnnamed387(core.Map<core.String, api.CommitmentsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkCommitmentsScopedList(o["x"]); checkCommitmentsScopedList(o["y"]); @@ -2148,14 +2163,14 @@ buildCounterCommitmentAggregatedListWarningData--; } -buildUnnamed2062() { +buildUnnamed388() { var o = new core.List<api.CommitmentAggregatedListWarningData>(); o.add(buildCommitmentAggregatedListWarningData()); o.add(buildCommitmentAggregatedListWarningData()); return o; } -checkUnnamed2062(core.List<api.CommitmentAggregatedListWarningData> o) { +checkUnnamed388(core.List<api.CommitmentAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkCommitmentAggregatedListWarningData(o[0]); checkCommitmentAggregatedListWarningData(o[1]); @@ -2167,7 +2182,7 @@ buildCounterCommitmentAggregatedListWarning++; if (buildCounterCommitmentAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2062(); + o.data = buildUnnamed388(); o.message = "foo"; } buildCounterCommitmentAggregatedListWarning--; @@ -2178,7 +2193,7 @@ buildCounterCommitmentAggregatedListWarning++; if (buildCounterCommitmentAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2062(o.data); + checkUnnamed388(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterCommitmentAggregatedListWarning--; @@ -2190,7 +2205,7 @@ buildCounterCommitmentAggregatedList++; if (buildCounterCommitmentAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2061(); + o.items = buildUnnamed387(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2204,7 +2219,7 @@ buildCounterCommitmentAggregatedList++; if (buildCounterCommitmentAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2061(o.items); + checkUnnamed387(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2213,14 +2228,14 @@ buildCounterCommitmentAggregatedList--; } -buildUnnamed2063() { +buildUnnamed389() { var o = new core.List<api.Commitment>(); o.add(buildCommitment()); o.add(buildCommitment()); return o; } -checkUnnamed2063(core.List<api.Commitment> o) { +checkUnnamed389(core.List<api.Commitment> o) { unittest.expect(o, unittest.hasLength(2)); checkCommitment(o[0]); checkCommitment(o[1]); @@ -2247,14 +2262,14 @@ buildCounterCommitmentListWarningData--; } -buildUnnamed2064() { +buildUnnamed390() { var o = new core.List<api.CommitmentListWarningData>(); o.add(buildCommitmentListWarningData()); o.add(buildCommitmentListWarningData()); return o; } -checkUnnamed2064(core.List<api.CommitmentListWarningData> o) { +checkUnnamed390(core.List<api.CommitmentListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkCommitmentListWarningData(o[0]); checkCommitmentListWarningData(o[1]); @@ -2266,7 +2281,7 @@ buildCounterCommitmentListWarning++; if (buildCounterCommitmentListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2064(); + o.data = buildUnnamed390(); o.message = "foo"; } buildCounterCommitmentListWarning--; @@ -2277,7 +2292,7 @@ buildCounterCommitmentListWarning++; if (buildCounterCommitmentListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2064(o.data); + checkUnnamed390(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterCommitmentListWarning--; @@ -2289,7 +2304,7 @@ buildCounterCommitmentList++; if (buildCounterCommitmentList < 3) { o.id = "foo"; - o.items = buildUnnamed2063(); + o.items = buildUnnamed389(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2303,7 +2318,7 @@ buildCounterCommitmentList++; if (buildCounterCommitmentList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2063(o.items); + checkUnnamed389(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2312,14 +2327,14 @@ buildCounterCommitmentList--; } -buildUnnamed2065() { +buildUnnamed391() { var o = new core.List<api.Commitment>(); o.add(buildCommitment()); o.add(buildCommitment()); return o; } -checkUnnamed2065(core.List<api.Commitment> o) { +checkUnnamed391(core.List<api.Commitment> o) { unittest.expect(o, unittest.hasLength(2)); checkCommitment(o[0]); checkCommitment(o[1]); @@ -2346,14 +2361,14 @@ buildCounterCommitmentsScopedListWarningData--; } -buildUnnamed2066() { +buildUnnamed392() { var o = new core.List<api.CommitmentsScopedListWarningData>(); o.add(buildCommitmentsScopedListWarningData()); o.add(buildCommitmentsScopedListWarningData()); return o; } -checkUnnamed2066(core.List<api.CommitmentsScopedListWarningData> o) { +checkUnnamed392(core.List<api.CommitmentsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkCommitmentsScopedListWarningData(o[0]); checkCommitmentsScopedListWarningData(o[1]); @@ -2365,7 +2380,7 @@ buildCounterCommitmentsScopedListWarning++; if (buildCounterCommitmentsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2066(); + o.data = buildUnnamed392(); o.message = "foo"; } buildCounterCommitmentsScopedListWarning--; @@ -2376,7 +2391,7 @@ buildCounterCommitmentsScopedListWarning++; if (buildCounterCommitmentsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2066(o.data); + checkUnnamed392(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterCommitmentsScopedListWarning--; @@ -2387,7 +2402,7 @@ var o = new api.CommitmentsScopedList(); buildCounterCommitmentsScopedList++; if (buildCounterCommitmentsScopedList < 3) { - o.commitments = buildUnnamed2065(); + o.commitments = buildUnnamed391(); o.warning = buildCommitmentsScopedListWarning(); } buildCounterCommitmentsScopedList--; @@ -2397,7 +2412,7 @@ checkCommitmentsScopedList(api.CommitmentsScopedList o) { buildCounterCommitmentsScopedList++; if (buildCounterCommitmentsScopedList < 3) { - checkUnnamed2065(o.commitments); + checkUnnamed391(o.commitments); checkCommitmentsScopedListWarning(o.warning); } buildCounterCommitmentsScopedList--; @@ -2492,40 +2507,79 @@ buildCounterDeprecationStatus--; } -buildUnnamed2067() { +buildUnnamed393() { + var o = new core.List<api.GuestOsFeature>(); + o.add(buildGuestOsFeature()); + o.add(buildGuestOsFeature()); + return o; +} + +checkUnnamed393(core.List<api.GuestOsFeature> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGuestOsFeature(o[0]); + checkGuestOsFeature(o[1]); +} + +buildUnnamed394() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2067(core.Map<core.String, core.String> o) { +checkUnnamed394(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')); } -buildUnnamed2068() { +buildUnnamed395() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2068(core.List<core.String> o) { +checkUnnamed395(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2069() { +buildUnnamed396() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2069(core.List<core.String> o) { +checkUnnamed396(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed397() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed397(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed398() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed398(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2539,15 +2593,19 @@ o.creationTimestamp = "foo"; o.description = "foo"; o.diskEncryptionKey = buildCustomerEncryptionKey(); + o.guestOsFeatures = buildUnnamed393(); o.id = "foo"; o.kind = "foo"; o.labelFingerprint = "foo"; - o.labels = buildUnnamed2067(); + o.labels = buildUnnamed394(); o.lastAttachTimestamp = "foo"; o.lastDetachTimestamp = "foo"; - o.licenses = buildUnnamed2068(); + o.licenseCodes = buildUnnamed395(); + o.licenses = buildUnnamed396(); o.name = "foo"; o.options = "foo"; + o.region = "foo"; + o.replicaZones = buildUnnamed397(); o.selfLink = "foo"; o.sizeGb = "foo"; o.sourceImage = "foo"; @@ -2558,7 +2616,7 @@ o.sourceSnapshotId = "foo"; o.status = "foo"; o.type = "foo"; - o.users = buildUnnamed2069(); + o.users = buildUnnamed398(); o.zone = "foo"; } buildCounterDisk--; @@ -2571,15 +2629,19 @@ unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); checkCustomerEncryptionKey(o.diskEncryptionKey); + checkUnnamed393(o.guestOsFeatures); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed2067(o.labels); + checkUnnamed394(o.labels); unittest.expect(o.lastAttachTimestamp, unittest.equals('foo')); unittest.expect(o.lastDetachTimestamp, unittest.equals('foo')); - checkUnnamed2068(o.licenses); + checkUnnamed395(o.licenseCodes); + checkUnnamed396(o.licenses); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.options, unittest.equals('foo')); + unittest.expect(o.region, unittest.equals('foo')); + checkUnnamed397(o.replicaZones); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.sizeGb, unittest.equals('foo')); unittest.expect(o.sourceImage, unittest.equals('foo')); @@ -2590,20 +2652,20 @@ unittest.expect(o.sourceSnapshotId, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); - checkUnnamed2069(o.users); + checkUnnamed398(o.users); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterDisk--; } -buildUnnamed2070() { +buildUnnamed399() { var o = new core.Map<core.String, api.DisksScopedList>(); o["x"] = buildDisksScopedList(); o["y"] = buildDisksScopedList(); return o; } -checkUnnamed2070(core.Map<core.String, api.DisksScopedList> o) { +checkUnnamed399(core.Map<core.String, api.DisksScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkDisksScopedList(o["x"]); checkDisksScopedList(o["y"]); @@ -2630,14 +2692,14 @@ buildCounterDiskAggregatedListWarningData--; } -buildUnnamed2071() { +buildUnnamed400() { var o = new core.List<api.DiskAggregatedListWarningData>(); o.add(buildDiskAggregatedListWarningData()); o.add(buildDiskAggregatedListWarningData()); return o; } -checkUnnamed2071(core.List<api.DiskAggregatedListWarningData> o) { +checkUnnamed400(core.List<api.DiskAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskAggregatedListWarningData(o[0]); checkDiskAggregatedListWarningData(o[1]); @@ -2649,7 +2711,7 @@ buildCounterDiskAggregatedListWarning++; if (buildCounterDiskAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2071(); + o.data = buildUnnamed400(); o.message = "foo"; } buildCounterDiskAggregatedListWarning--; @@ -2660,7 +2722,7 @@ buildCounterDiskAggregatedListWarning++; if (buildCounterDiskAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2071(o.data); + checkUnnamed400(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDiskAggregatedListWarning--; @@ -2672,7 +2734,7 @@ buildCounterDiskAggregatedList++; if (buildCounterDiskAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2070(); + o.items = buildUnnamed399(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2686,7 +2748,7 @@ buildCounterDiskAggregatedList++; if (buildCounterDiskAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2070(o.items); + checkUnnamed399(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2695,14 +2757,14 @@ buildCounterDiskAggregatedList--; } -buildUnnamed2072() { +buildUnnamed401() { var o = new core.List<api.Disk>(); o.add(buildDisk()); o.add(buildDisk()); return o; } -checkUnnamed2072(core.List<api.Disk> o) { +checkUnnamed401(core.List<api.Disk> o) { unittest.expect(o, unittest.hasLength(2)); checkDisk(o[0]); checkDisk(o[1]); @@ -2729,14 +2791,14 @@ buildCounterDiskListWarningData--; } -buildUnnamed2073() { +buildUnnamed402() { var o = new core.List<api.DiskListWarningData>(); o.add(buildDiskListWarningData()); o.add(buildDiskListWarningData()); return o; } -checkUnnamed2073(core.List<api.DiskListWarningData> o) { +checkUnnamed402(core.List<api.DiskListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskListWarningData(o[0]); checkDiskListWarningData(o[1]); @@ -2748,7 +2810,7 @@ buildCounterDiskListWarning++; if (buildCounterDiskListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2073(); + o.data = buildUnnamed402(); o.message = "foo"; } buildCounterDiskListWarning--; @@ -2759,7 +2821,7 @@ buildCounterDiskListWarning++; if (buildCounterDiskListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2073(o.data); + checkUnnamed402(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDiskListWarning--; @@ -2771,7 +2833,7 @@ buildCounterDiskList++; if (buildCounterDiskList < 3) { o.id = "foo"; - o.items = buildUnnamed2072(); + o.items = buildUnnamed401(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2785,7 +2847,7 @@ buildCounterDiskList++; if (buildCounterDiskList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2072(o.items); + checkUnnamed401(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2827,6 +2889,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; + o.region = "foo"; o.selfLink = "foo"; o.validDiskSize = "foo"; o.zone = "foo"; @@ -2845,6 +2908,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.validDiskSize, unittest.equals('foo')); unittest.expect(o.zone, unittest.equals('foo')); @@ -2852,14 +2916,14 @@ buildCounterDiskType--; } -buildUnnamed2074() { +buildUnnamed403() { var o = new core.Map<core.String, api.DiskTypesScopedList>(); o["x"] = buildDiskTypesScopedList(); o["y"] = buildDiskTypesScopedList(); return o; } -checkUnnamed2074(core.Map<core.String, api.DiskTypesScopedList> o) { +checkUnnamed403(core.Map<core.String, api.DiskTypesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypesScopedList(o["x"]); checkDiskTypesScopedList(o["y"]); @@ -2887,14 +2951,14 @@ buildCounterDiskTypeAggregatedListWarningData--; } -buildUnnamed2075() { +buildUnnamed404() { var o = new core.List<api.DiskTypeAggregatedListWarningData>(); o.add(buildDiskTypeAggregatedListWarningData()); o.add(buildDiskTypeAggregatedListWarningData()); return o; } -checkUnnamed2075(core.List<api.DiskTypeAggregatedListWarningData> o) { +checkUnnamed404(core.List<api.DiskTypeAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypeAggregatedListWarningData(o[0]); checkDiskTypeAggregatedListWarningData(o[1]); @@ -2906,7 +2970,7 @@ buildCounterDiskTypeAggregatedListWarning++; if (buildCounterDiskTypeAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2075(); + o.data = buildUnnamed404(); o.message = "foo"; } buildCounterDiskTypeAggregatedListWarning--; @@ -2917,7 +2981,7 @@ buildCounterDiskTypeAggregatedListWarning++; if (buildCounterDiskTypeAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2075(o.data); + checkUnnamed404(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDiskTypeAggregatedListWarning--; @@ -2929,7 +2993,7 @@ buildCounterDiskTypeAggregatedList++; if (buildCounterDiskTypeAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2074(); + o.items = buildUnnamed403(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2943,7 +3007,7 @@ buildCounterDiskTypeAggregatedList++; if (buildCounterDiskTypeAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2074(o.items); + checkUnnamed403(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2952,14 +3016,14 @@ buildCounterDiskTypeAggregatedList--; } -buildUnnamed2076() { +buildUnnamed405() { var o = new core.List<api.DiskType>(); o.add(buildDiskType()); o.add(buildDiskType()); return o; } -checkUnnamed2076(core.List<api.DiskType> o) { +checkUnnamed405(core.List<api.DiskType> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskType(o[0]); checkDiskType(o[1]); @@ -2986,14 +3050,14 @@ buildCounterDiskTypeListWarningData--; } -buildUnnamed2077() { +buildUnnamed406() { var o = new core.List<api.DiskTypeListWarningData>(); o.add(buildDiskTypeListWarningData()); o.add(buildDiskTypeListWarningData()); return o; } -checkUnnamed2077(core.List<api.DiskTypeListWarningData> o) { +checkUnnamed406(core.List<api.DiskTypeListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypeListWarningData(o[0]); checkDiskTypeListWarningData(o[1]); @@ -3005,7 +3069,7 @@ buildCounterDiskTypeListWarning++; if (buildCounterDiskTypeListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2077(); + o.data = buildUnnamed406(); o.message = "foo"; } buildCounterDiskTypeListWarning--; @@ -3016,7 +3080,7 @@ buildCounterDiskTypeListWarning++; if (buildCounterDiskTypeListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2077(o.data); + checkUnnamed406(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDiskTypeListWarning--; @@ -3028,7 +3092,7 @@ buildCounterDiskTypeList++; if (buildCounterDiskTypeList < 3) { o.id = "foo"; - o.items = buildUnnamed2076(); + o.items = buildUnnamed405(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3042,7 +3106,7 @@ buildCounterDiskTypeList++; if (buildCounterDiskTypeList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2076(o.items); + checkUnnamed405(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3051,14 +3115,14 @@ buildCounterDiskTypeList--; } -buildUnnamed2078() { +buildUnnamed407() { var o = new core.List<api.DiskType>(); o.add(buildDiskType()); o.add(buildDiskType()); return o; } -checkUnnamed2078(core.List<api.DiskType> o) { +checkUnnamed407(core.List<api.DiskType> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskType(o[0]); checkDiskType(o[1]); @@ -3085,14 +3149,14 @@ buildCounterDiskTypesScopedListWarningData--; } -buildUnnamed2079() { +buildUnnamed408() { var o = new core.List<api.DiskTypesScopedListWarningData>(); o.add(buildDiskTypesScopedListWarningData()); o.add(buildDiskTypesScopedListWarningData()); return o; } -checkUnnamed2079(core.List<api.DiskTypesScopedListWarningData> o) { +checkUnnamed408(core.List<api.DiskTypesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypesScopedListWarningData(o[0]); checkDiskTypesScopedListWarningData(o[1]); @@ -3104,7 +3168,7 @@ buildCounterDiskTypesScopedListWarning++; if (buildCounterDiskTypesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2079(); + o.data = buildUnnamed408(); o.message = "foo"; } buildCounterDiskTypesScopedListWarning--; @@ -3115,7 +3179,7 @@ buildCounterDiskTypesScopedListWarning++; if (buildCounterDiskTypesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2079(o.data); + checkUnnamed408(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDiskTypesScopedListWarning--; @@ -3126,7 +3190,7 @@ var o = new api.DiskTypesScopedList(); buildCounterDiskTypesScopedList++; if (buildCounterDiskTypesScopedList < 3) { - o.diskTypes = buildUnnamed2078(); + o.diskTypes = buildUnnamed407(); o.warning = buildDiskTypesScopedListWarning(); } buildCounterDiskTypesScopedList--; @@ -3136,7 +3200,7 @@ checkDiskTypesScopedList(api.DiskTypesScopedList o) { buildCounterDiskTypesScopedList++; if (buildCounterDiskTypesScopedList < 3) { - checkUnnamed2078(o.diskTypes); + checkUnnamed407(o.diskTypes); checkDiskTypesScopedListWarning(o.warning); } buildCounterDiskTypesScopedList--; @@ -3161,14 +3225,14 @@ buildCounterDisksResizeRequest--; } -buildUnnamed2080() { +buildUnnamed409() { var o = new core.List<api.Disk>(); o.add(buildDisk()); o.add(buildDisk()); return o; } -checkUnnamed2080(core.List<api.Disk> o) { +checkUnnamed409(core.List<api.Disk> o) { unittest.expect(o, unittest.hasLength(2)); checkDisk(o[0]); checkDisk(o[1]); @@ -3195,14 +3259,14 @@ buildCounterDisksScopedListWarningData--; } -buildUnnamed2081() { +buildUnnamed410() { var o = new core.List<api.DisksScopedListWarningData>(); o.add(buildDisksScopedListWarningData()); o.add(buildDisksScopedListWarningData()); return o; } -checkUnnamed2081(core.List<api.DisksScopedListWarningData> o) { +checkUnnamed410(core.List<api.DisksScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDisksScopedListWarningData(o[0]); checkDisksScopedListWarningData(o[1]); @@ -3214,7 +3278,7 @@ buildCounterDisksScopedListWarning++; if (buildCounterDisksScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2081(); + o.data = buildUnnamed410(); o.message = "foo"; } buildCounterDisksScopedListWarning--; @@ -3225,7 +3289,7 @@ buildCounterDisksScopedListWarning++; if (buildCounterDisksScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2081(o.data); + checkUnnamed410(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDisksScopedListWarning--; @@ -3236,7 +3300,7 @@ var o = new api.DisksScopedList(); buildCounterDisksScopedList++; if (buildCounterDisksScopedList < 3) { - o.disks = buildUnnamed2080(); + o.disks = buildUnnamed409(); o.warning = buildDisksScopedListWarning(); } buildCounterDisksScopedList--; @@ -3246,20 +3310,20 @@ checkDisksScopedList(api.DisksScopedList o) { buildCounterDisksScopedList++; if (buildCounterDisksScopedList < 3) { - checkUnnamed2080(o.disks); + checkUnnamed409(o.disks); checkDisksScopedListWarning(o.warning); } buildCounterDisksScopedList--; } -buildUnnamed2082() { +buildUnnamed411() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2082(core.List<core.String> o) { +checkUnnamed411(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3271,7 +3335,7 @@ buildCounterFirewallAllowed++; if (buildCounterFirewallAllowed < 3) { o.IPProtocol = "foo"; - o.ports = buildUnnamed2082(); + o.ports = buildUnnamed411(); } buildCounterFirewallAllowed--; return o; @@ -3281,32 +3345,32 @@ buildCounterFirewallAllowed++; if (buildCounterFirewallAllowed < 3) { unittest.expect(o.IPProtocol, unittest.equals('foo')); - checkUnnamed2082(o.ports); + checkUnnamed411(o.ports); } buildCounterFirewallAllowed--; } -buildUnnamed2083() { +buildUnnamed412() { var o = new core.List<api.FirewallAllowed>(); o.add(buildFirewallAllowed()); o.add(buildFirewallAllowed()); return o; } -checkUnnamed2083(core.List<api.FirewallAllowed> o) { +checkUnnamed412(core.List<api.FirewallAllowed> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallAllowed(o[0]); checkFirewallAllowed(o[1]); } -buildUnnamed2084() { +buildUnnamed413() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2084(core.List<core.String> o) { +checkUnnamed413(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3318,7 +3382,7 @@ buildCounterFirewallDenied++; if (buildCounterFirewallDenied < 3) { o.IPProtocol = "foo"; - o.ports = buildUnnamed2084(); + o.ports = buildUnnamed413(); } buildCounterFirewallDenied--; return o; @@ -3328,97 +3392,97 @@ buildCounterFirewallDenied++; if (buildCounterFirewallDenied < 3) { unittest.expect(o.IPProtocol, unittest.equals('foo')); - checkUnnamed2084(o.ports); + checkUnnamed413(o.ports); } buildCounterFirewallDenied--; } -buildUnnamed2085() { +buildUnnamed414() { var o = new core.List<api.FirewallDenied>(); o.add(buildFirewallDenied()); o.add(buildFirewallDenied()); return o; } -checkUnnamed2085(core.List<api.FirewallDenied> o) { +checkUnnamed414(core.List<api.FirewallDenied> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallDenied(o[0]); checkFirewallDenied(o[1]); } -buildUnnamed2086() { +buildUnnamed415() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2086(core.List<core.String> o) { +checkUnnamed415(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2087() { +buildUnnamed416() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2087(core.List<core.String> o) { +checkUnnamed416(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2088() { +buildUnnamed417() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2088(core.List<core.String> o) { +checkUnnamed417(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2089() { +buildUnnamed418() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2089(core.List<core.String> o) { +checkUnnamed418(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2090() { +buildUnnamed419() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2090(core.List<core.String> o) { +checkUnnamed419(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2091() { +buildUnnamed420() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2091(core.List<core.String> o) { +checkUnnamed420(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3429,11 +3493,11 @@ var o = new api.Firewall(); buildCounterFirewall++; if (buildCounterFirewall < 3) { - o.allowed = buildUnnamed2083(); + o.allowed = buildUnnamed412(); o.creationTimestamp = "foo"; - o.denied = buildUnnamed2085(); + o.denied = buildUnnamed414(); o.description = "foo"; - o.destinationRanges = buildUnnamed2086(); + o.destinationRanges = buildUnnamed415(); o.direction = "foo"; o.id = "foo"; o.kind = "foo"; @@ -3441,11 +3505,11 @@ o.network = "foo"; o.priority = 42; o.selfLink = "foo"; - o.sourceRanges = buildUnnamed2087(); - o.sourceServiceAccounts = buildUnnamed2088(); - o.sourceTags = buildUnnamed2089(); - o.targetServiceAccounts = buildUnnamed2090(); - o.targetTags = buildUnnamed2091(); + o.sourceRanges = buildUnnamed416(); + o.sourceServiceAccounts = buildUnnamed417(); + o.sourceTags = buildUnnamed418(); + o.targetServiceAccounts = buildUnnamed419(); + o.targetTags = buildUnnamed420(); } buildCounterFirewall--; return o; @@ -3454,11 +3518,11 @@ checkFirewall(api.Firewall o) { buildCounterFirewall++; if (buildCounterFirewall < 3) { - checkUnnamed2083(o.allowed); + checkUnnamed412(o.allowed); unittest.expect(o.creationTimestamp, unittest.equals('foo')); - checkUnnamed2085(o.denied); + checkUnnamed414(o.denied); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2086(o.destinationRanges); + checkUnnamed415(o.destinationRanges); unittest.expect(o.direction, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -3466,23 +3530,23 @@ unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42)); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2087(o.sourceRanges); - checkUnnamed2088(o.sourceServiceAccounts); - checkUnnamed2089(o.sourceTags); - checkUnnamed2090(o.targetServiceAccounts); - checkUnnamed2091(o.targetTags); + checkUnnamed416(o.sourceRanges); + checkUnnamed417(o.sourceServiceAccounts); + checkUnnamed418(o.sourceTags); + checkUnnamed419(o.targetServiceAccounts); + checkUnnamed420(o.targetTags); } buildCounterFirewall--; } -buildUnnamed2092() { +buildUnnamed421() { var o = new core.List<api.Firewall>(); o.add(buildFirewall()); o.add(buildFirewall()); return o; } -checkUnnamed2092(core.List<api.Firewall> o) { +checkUnnamed421(core.List<api.Firewall> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewall(o[0]); checkFirewall(o[1]); @@ -3509,14 +3573,14 @@ buildCounterFirewallListWarningData--; } -buildUnnamed2093() { +buildUnnamed422() { var o = new core.List<api.FirewallListWarningData>(); o.add(buildFirewallListWarningData()); o.add(buildFirewallListWarningData()); return o; } -checkUnnamed2093(core.List<api.FirewallListWarningData> o) { +checkUnnamed422(core.List<api.FirewallListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallListWarningData(o[0]); checkFirewallListWarningData(o[1]); @@ -3528,7 +3592,7 @@ buildCounterFirewallListWarning++; if (buildCounterFirewallListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2093(); + o.data = buildUnnamed422(); o.message = "foo"; } buildCounterFirewallListWarning--; @@ -3539,7 +3603,7 @@ buildCounterFirewallListWarning++; if (buildCounterFirewallListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2093(o.data); + checkUnnamed422(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterFirewallListWarning--; @@ -3551,7 +3615,7 @@ buildCounterFirewallList++; if (buildCounterFirewallList < 3) { o.id = "foo"; - o.items = buildUnnamed2092(); + o.items = buildUnnamed421(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3565,7 +3629,7 @@ buildCounterFirewallList++; if (buildCounterFirewallList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2092(o.items); + checkUnnamed421(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3574,14 +3638,14 @@ buildCounterFirewallList--; } -buildUnnamed2094() { +buildUnnamed423() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2094(core.List<core.String> o) { +checkUnnamed423(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3604,7 +3668,7 @@ o.name = "foo"; o.network = "foo"; o.portRange = "foo"; - o.ports = buildUnnamed2094(); + o.ports = buildUnnamed423(); o.region = "foo"; o.selfLink = "foo"; o.subnetwork = "foo"; @@ -3629,7 +3693,7 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.portRange, unittest.equals('foo')); - checkUnnamed2094(o.ports); + checkUnnamed423(o.ports); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.subnetwork, unittest.equals('foo')); @@ -3638,14 +3702,14 @@ buildCounterForwardingRule--; } -buildUnnamed2095() { +buildUnnamed424() { var o = new core.Map<core.String, api.ForwardingRulesScopedList>(); o["x"] = buildForwardingRulesScopedList(); o["y"] = buildForwardingRulesScopedList(); return o; } -checkUnnamed2095(core.Map<core.String, api.ForwardingRulesScopedList> o) { +checkUnnamed424(core.Map<core.String, api.ForwardingRulesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRulesScopedList(o["x"]); checkForwardingRulesScopedList(o["y"]); @@ -3673,14 +3737,14 @@ buildCounterForwardingRuleAggregatedListWarningData--; } -buildUnnamed2096() { +buildUnnamed425() { var o = new core.List<api.ForwardingRuleAggregatedListWarningData>(); o.add(buildForwardingRuleAggregatedListWarningData()); o.add(buildForwardingRuleAggregatedListWarningData()); return o; } -checkUnnamed2096(core.List<api.ForwardingRuleAggregatedListWarningData> o) { +checkUnnamed425(core.List<api.ForwardingRuleAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRuleAggregatedListWarningData(o[0]); checkForwardingRuleAggregatedListWarningData(o[1]); @@ -3692,7 +3756,7 @@ buildCounterForwardingRuleAggregatedListWarning++; if (buildCounterForwardingRuleAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2096(); + o.data = buildUnnamed425(); o.message = "foo"; } buildCounterForwardingRuleAggregatedListWarning--; @@ -3704,7 +3768,7 @@ buildCounterForwardingRuleAggregatedListWarning++; if (buildCounterForwardingRuleAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2096(o.data); + checkUnnamed425(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterForwardingRuleAggregatedListWarning--; @@ -3716,7 +3780,7 @@ buildCounterForwardingRuleAggregatedList++; if (buildCounterForwardingRuleAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2095(); + o.items = buildUnnamed424(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3730,7 +3794,7 @@ buildCounterForwardingRuleAggregatedList++; if (buildCounterForwardingRuleAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2095(o.items); + checkUnnamed424(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3739,14 +3803,14 @@ buildCounterForwardingRuleAggregatedList--; } -buildUnnamed2097() { +buildUnnamed426() { var o = new core.List<api.ForwardingRule>(); o.add(buildForwardingRule()); o.add(buildForwardingRule()); return o; } -checkUnnamed2097(core.List<api.ForwardingRule> o) { +checkUnnamed426(core.List<api.ForwardingRule> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRule(o[0]); checkForwardingRule(o[1]); @@ -3773,14 +3837,14 @@ buildCounterForwardingRuleListWarningData--; } -buildUnnamed2098() { +buildUnnamed427() { var o = new core.List<api.ForwardingRuleListWarningData>(); o.add(buildForwardingRuleListWarningData()); o.add(buildForwardingRuleListWarningData()); return o; } -checkUnnamed2098(core.List<api.ForwardingRuleListWarningData> o) { +checkUnnamed427(core.List<api.ForwardingRuleListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRuleListWarningData(o[0]); checkForwardingRuleListWarningData(o[1]); @@ -3792,7 +3856,7 @@ buildCounterForwardingRuleListWarning++; if (buildCounterForwardingRuleListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2098(); + o.data = buildUnnamed427(); o.message = "foo"; } buildCounterForwardingRuleListWarning--; @@ -3803,7 +3867,7 @@ buildCounterForwardingRuleListWarning++; if (buildCounterForwardingRuleListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2098(o.data); + checkUnnamed427(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterForwardingRuleListWarning--; @@ -3815,7 +3879,7 @@ buildCounterForwardingRuleList++; if (buildCounterForwardingRuleList < 3) { o.id = "foo"; - o.items = buildUnnamed2097(); + o.items = buildUnnamed426(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3829,7 +3893,7 @@ buildCounterForwardingRuleList++; if (buildCounterForwardingRuleList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2097(o.items); + checkUnnamed426(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3838,14 +3902,14 @@ buildCounterForwardingRuleList--; } -buildUnnamed2099() { +buildUnnamed428() { var o = new core.List<api.ForwardingRule>(); o.add(buildForwardingRule()); o.add(buildForwardingRule()); return o; } -checkUnnamed2099(core.List<api.ForwardingRule> o) { +checkUnnamed428(core.List<api.ForwardingRule> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRule(o[0]); checkForwardingRule(o[1]); @@ -3873,14 +3937,14 @@ buildCounterForwardingRulesScopedListWarningData--; } -buildUnnamed2100() { +buildUnnamed429() { var o = new core.List<api.ForwardingRulesScopedListWarningData>(); o.add(buildForwardingRulesScopedListWarningData()); o.add(buildForwardingRulesScopedListWarningData()); return o; } -checkUnnamed2100(core.List<api.ForwardingRulesScopedListWarningData> o) { +checkUnnamed429(core.List<api.ForwardingRulesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRulesScopedListWarningData(o[0]); checkForwardingRulesScopedListWarningData(o[1]); @@ -3892,7 +3956,7 @@ buildCounterForwardingRulesScopedListWarning++; if (buildCounterForwardingRulesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2100(); + o.data = buildUnnamed429(); o.message = "foo"; } buildCounterForwardingRulesScopedListWarning--; @@ -3903,7 +3967,7 @@ buildCounterForwardingRulesScopedListWarning++; if (buildCounterForwardingRulesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2100(o.data); + checkUnnamed429(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterForwardingRulesScopedListWarning--; @@ -3914,7 +3978,7 @@ var o = new api.ForwardingRulesScopedList(); buildCounterForwardingRulesScopedList++; if (buildCounterForwardingRulesScopedList < 3) { - o.forwardingRules = buildUnnamed2099(); + o.forwardingRules = buildUnnamed428(); o.warning = buildForwardingRulesScopedListWarning(); } buildCounterForwardingRulesScopedList--; @@ -3924,20 +3988,20 @@ checkForwardingRulesScopedList(api.ForwardingRulesScopedList o) { buildCounterForwardingRulesScopedList++; if (buildCounterForwardingRulesScopedList < 3) { - checkUnnamed2099(o.forwardingRules); + checkUnnamed428(o.forwardingRules); checkForwardingRulesScopedListWarning(o.warning); } buildCounterForwardingRulesScopedList--; } -buildUnnamed2101() { +buildUnnamed430() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2101(core.Map<core.String, core.String> o) { +checkUnnamed430(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -3949,7 +4013,7 @@ buildCounterGlobalSetLabelsRequest++; if (buildCounterGlobalSetLabelsRequest < 3) { o.labelFingerprint = "foo"; - o.labels = buildUnnamed2101(); + o.labels = buildUnnamed430(); } buildCounterGlobalSetLabelsRequest--; return o; @@ -3959,7 +4023,7 @@ buildCounterGlobalSetLabelsRequest++; if (buildCounterGlobalSetLabelsRequest < 3) { unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed2101(o.labels); + checkUnnamed430(o.labels); } buildCounterGlobalSetLabelsRequest--; } @@ -4084,14 +4148,14 @@ buildCounterHealthCheck--; } -buildUnnamed2102() { +buildUnnamed431() { var o = new core.List<api.HealthCheck>(); o.add(buildHealthCheck()); o.add(buildHealthCheck()); return o; } -checkUnnamed2102(core.List<api.HealthCheck> o) { +checkUnnamed431(core.List<api.HealthCheck> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheck(o[0]); checkHealthCheck(o[1]); @@ -4118,14 +4182,14 @@ buildCounterHealthCheckListWarningData--; } -buildUnnamed2103() { +buildUnnamed432() { var o = new core.List<api.HealthCheckListWarningData>(); o.add(buildHealthCheckListWarningData()); o.add(buildHealthCheckListWarningData()); return o; } -checkUnnamed2103(core.List<api.HealthCheckListWarningData> o) { +checkUnnamed432(core.List<api.HealthCheckListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheckListWarningData(o[0]); checkHealthCheckListWarningData(o[1]); @@ -4137,7 +4201,7 @@ buildCounterHealthCheckListWarning++; if (buildCounterHealthCheckListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2103(); + o.data = buildUnnamed432(); o.message = "foo"; } buildCounterHealthCheckListWarning--; @@ -4148,7 +4212,7 @@ buildCounterHealthCheckListWarning++; if (buildCounterHealthCheckListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2103(o.data); + checkUnnamed432(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterHealthCheckListWarning--; @@ -4160,7 +4224,7 @@ buildCounterHealthCheckList++; if (buildCounterHealthCheckList < 3) { o.id = "foo"; - o.items = buildUnnamed2102(); + o.items = buildUnnamed431(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4174,7 +4238,7 @@ buildCounterHealthCheckList++; if (buildCounterHealthCheckList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2102(o.items); + checkUnnamed431(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4227,14 +4291,14 @@ buildCounterHealthStatus--; } -buildUnnamed2104() { +buildUnnamed433() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2104(core.List<core.String> o) { +checkUnnamed433(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4246,7 +4310,7 @@ buildCounterHostRule++; if (buildCounterHostRule < 3) { o.description = "foo"; - o.hosts = buildUnnamed2104(); + o.hosts = buildUnnamed433(); o.pathMatcher = "foo"; } buildCounterHostRule--; @@ -4257,7 +4321,7 @@ buildCounterHostRule++; if (buildCounterHostRule < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2104(o.hosts); + checkUnnamed433(o.hosts); unittest.expect(o.pathMatcher, unittest.equals('foo')); } buildCounterHostRule--; @@ -4306,14 +4370,14 @@ buildCounterHttpHealthCheck--; } -buildUnnamed2105() { +buildUnnamed434() { var o = new core.List<api.HttpHealthCheck>(); o.add(buildHttpHealthCheck()); o.add(buildHttpHealthCheck()); return o; } -checkUnnamed2105(core.List<api.HttpHealthCheck> o) { +checkUnnamed434(core.List<api.HttpHealthCheck> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpHealthCheck(o[0]); checkHttpHealthCheck(o[1]); @@ -4340,14 +4404,14 @@ buildCounterHttpHealthCheckListWarningData--; } -buildUnnamed2106() { +buildUnnamed435() { var o = new core.List<api.HttpHealthCheckListWarningData>(); o.add(buildHttpHealthCheckListWarningData()); o.add(buildHttpHealthCheckListWarningData()); return o; } -checkUnnamed2106(core.List<api.HttpHealthCheckListWarningData> o) { +checkUnnamed435(core.List<api.HttpHealthCheckListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpHealthCheckListWarningData(o[0]); checkHttpHealthCheckListWarningData(o[1]); @@ -4359,7 +4423,7 @@ buildCounterHttpHealthCheckListWarning++; if (buildCounterHttpHealthCheckListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2106(); + o.data = buildUnnamed435(); o.message = "foo"; } buildCounterHttpHealthCheckListWarning--; @@ -4370,7 +4434,7 @@ buildCounterHttpHealthCheckListWarning++; if (buildCounterHttpHealthCheckListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2106(o.data); + checkUnnamed435(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterHttpHealthCheckListWarning--; @@ -4382,7 +4446,7 @@ buildCounterHttpHealthCheckList++; if (buildCounterHttpHealthCheckList < 3) { o.id = "foo"; - o.items = buildUnnamed2105(); + o.items = buildUnnamed434(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4396,7 +4460,7 @@ buildCounterHttpHealthCheckList++; if (buildCounterHttpHealthCheckList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2105(o.items); + checkUnnamed434(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4448,14 +4512,14 @@ buildCounterHttpsHealthCheck--; } -buildUnnamed2107() { +buildUnnamed436() { var o = new core.List<api.HttpsHealthCheck>(); o.add(buildHttpsHealthCheck()); o.add(buildHttpsHealthCheck()); return o; } -checkUnnamed2107(core.List<api.HttpsHealthCheck> o) { +checkUnnamed436(core.List<api.HttpsHealthCheck> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpsHealthCheck(o[0]); checkHttpsHealthCheck(o[1]); @@ -4482,14 +4546,14 @@ buildCounterHttpsHealthCheckListWarningData--; } -buildUnnamed2108() { +buildUnnamed437() { var o = new core.List<api.HttpsHealthCheckListWarningData>(); o.add(buildHttpsHealthCheckListWarningData()); o.add(buildHttpsHealthCheckListWarningData()); return o; } -checkUnnamed2108(core.List<api.HttpsHealthCheckListWarningData> o) { +checkUnnamed437(core.List<api.HttpsHealthCheckListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpsHealthCheckListWarningData(o[0]); checkHttpsHealthCheckListWarningData(o[1]); @@ -4501,7 +4565,7 @@ buildCounterHttpsHealthCheckListWarning++; if (buildCounterHttpsHealthCheckListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2108(); + o.data = buildUnnamed437(); o.message = "foo"; } buildCounterHttpsHealthCheckListWarning--; @@ -4512,7 +4576,7 @@ buildCounterHttpsHealthCheckListWarning++; if (buildCounterHttpsHealthCheckListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2108(o.data); + checkUnnamed437(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterHttpsHealthCheckListWarning--; @@ -4524,7 +4588,7 @@ buildCounterHttpsHealthCheckList++; if (buildCounterHttpsHealthCheckList < 3) { o.id = "foo"; - o.items = buildUnnamed2107(); + o.items = buildUnnamed436(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4538,7 +4602,7 @@ buildCounterHttpsHealthCheckList++; if (buildCounterHttpsHealthCheckList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2107(o.items); + checkUnnamed436(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4547,40 +4611,53 @@ buildCounterHttpsHealthCheckList--; } -buildUnnamed2109() { +buildUnnamed438() { var o = new core.List<api.GuestOsFeature>(); o.add(buildGuestOsFeature()); o.add(buildGuestOsFeature()); return o; } -checkUnnamed2109(core.List<api.GuestOsFeature> o) { +checkUnnamed438(core.List<api.GuestOsFeature> o) { unittest.expect(o, unittest.hasLength(2)); checkGuestOsFeature(o[0]); checkGuestOsFeature(o[1]); } -buildUnnamed2110() { +buildUnnamed439() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2110(core.Map<core.String, core.String> o) { +checkUnnamed439(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')); } -buildUnnamed2111() { +buildUnnamed440() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2111(core.List<core.String> o) { +checkUnnamed440(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed441() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed441(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4620,13 +4697,14 @@ o.description = "foo"; o.diskSizeGb = "foo"; o.family = "foo"; - o.guestOsFeatures = buildUnnamed2109(); + o.guestOsFeatures = buildUnnamed438(); o.id = "foo"; o.imageEncryptionKey = buildCustomerEncryptionKey(); o.kind = "foo"; o.labelFingerprint = "foo"; - o.labels = buildUnnamed2110(); - o.licenses = buildUnnamed2111(); + o.labels = buildUnnamed439(); + o.licenseCodes = buildUnnamed440(); + o.licenses = buildUnnamed441(); o.name = "foo"; o.rawDisk = buildImageRawDisk(); o.selfLink = "foo"; @@ -4636,6 +4714,9 @@ o.sourceImage = "foo"; o.sourceImageEncryptionKey = buildCustomerEncryptionKey(); o.sourceImageId = "foo"; + o.sourceSnapshot = "foo"; + o.sourceSnapshotEncryptionKey = buildCustomerEncryptionKey(); + o.sourceSnapshotId = "foo"; o.sourceType = "foo"; o.status = "foo"; } @@ -4652,13 +4733,14 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.diskSizeGb, unittest.equals('foo')); unittest.expect(o.family, unittest.equals('foo')); - checkUnnamed2109(o.guestOsFeatures); + checkUnnamed438(o.guestOsFeatures); unittest.expect(o.id, unittest.equals('foo')); checkCustomerEncryptionKey(o.imageEncryptionKey); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed2110(o.labels); - checkUnnamed2111(o.licenses); + checkUnnamed439(o.labels); + checkUnnamed440(o.licenseCodes); + checkUnnamed441(o.licenses); unittest.expect(o.name, unittest.equals('foo')); checkImageRawDisk(o.rawDisk); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4668,20 +4750,23 @@ unittest.expect(o.sourceImage, unittest.equals('foo')); checkCustomerEncryptionKey(o.sourceImageEncryptionKey); unittest.expect(o.sourceImageId, unittest.equals('foo')); + unittest.expect(o.sourceSnapshot, unittest.equals('foo')); + checkCustomerEncryptionKey(o.sourceSnapshotEncryptionKey); + unittest.expect(o.sourceSnapshotId, unittest.equals('foo')); unittest.expect(o.sourceType, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); } buildCounterImage--; } -buildUnnamed2112() { +buildUnnamed442() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed2112(core.List<api.Image> o) { +checkUnnamed442(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -4708,14 +4793,14 @@ buildCounterImageListWarningData--; } -buildUnnamed2113() { +buildUnnamed443() { var o = new core.List<api.ImageListWarningData>(); o.add(buildImageListWarningData()); o.add(buildImageListWarningData()); return o; } -checkUnnamed2113(core.List<api.ImageListWarningData> o) { +checkUnnamed443(core.List<api.ImageListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkImageListWarningData(o[0]); checkImageListWarningData(o[1]); @@ -4727,7 +4812,7 @@ buildCounterImageListWarning++; if (buildCounterImageListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2113(); + o.data = buildUnnamed443(); o.message = "foo"; } buildCounterImageListWarning--; @@ -4738,7 +4823,7 @@ buildCounterImageListWarning++; if (buildCounterImageListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2113(o.data); + checkUnnamed443(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterImageListWarning--; @@ -4750,7 +4835,7 @@ buildCounterImageList++; if (buildCounterImageList < 3) { o.id = "foo"; - o.items = buildUnnamed2112(); + o.items = buildUnnamed442(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4764,7 +4849,7 @@ buildCounterImageList++; if (buildCounterImageList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2112(o.items); + checkUnnamed442(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4773,66 +4858,66 @@ buildCounterImageList--; } -buildUnnamed2114() { +buildUnnamed444() { var o = new core.List<api.AttachedDisk>(); o.add(buildAttachedDisk()); o.add(buildAttachedDisk()); return o; } -checkUnnamed2114(core.List<api.AttachedDisk> o) { +checkUnnamed444(core.List<api.AttachedDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachedDisk(o[0]); checkAttachedDisk(o[1]); } -buildUnnamed2115() { +buildUnnamed445() { var o = new core.List<api.AcceleratorConfig>(); o.add(buildAcceleratorConfig()); o.add(buildAcceleratorConfig()); return o; } -checkUnnamed2115(core.List<api.AcceleratorConfig> o) { +checkUnnamed445(core.List<api.AcceleratorConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfig(o[0]); checkAcceleratorConfig(o[1]); } -buildUnnamed2116() { +buildUnnamed446() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2116(core.Map<core.String, core.String> o) { +checkUnnamed446(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed2117() { +buildUnnamed447() { var o = new core.List<api.NetworkInterface>(); o.add(buildNetworkInterface()); o.add(buildNetworkInterface()); return o; } -checkUnnamed2117(core.List<api.NetworkInterface> o) { +checkUnnamed447(core.List<api.NetworkInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -buildUnnamed2118() { +buildUnnamed448() { var o = new core.List<api.ServiceAccount>(); o.add(buildServiceAccount()); o.add(buildServiceAccount()); return o; } -checkUnnamed2118(core.List<api.ServiceAccount> o) { +checkUnnamed448(core.List<api.ServiceAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -4848,20 +4933,20 @@ o.creationTimestamp = "foo"; o.deletionProtection = true; o.description = "foo"; - o.disks = buildUnnamed2114(); - o.guestAccelerators = buildUnnamed2115(); + o.disks = buildUnnamed444(); + o.guestAccelerators = buildUnnamed445(); o.id = "foo"; o.kind = "foo"; o.labelFingerprint = "foo"; - o.labels = buildUnnamed2116(); + o.labels = buildUnnamed446(); o.machineType = "foo"; o.metadata = buildMetadata(); o.minCpuPlatform = "foo"; o.name = "foo"; - o.networkInterfaces = buildUnnamed2117(); + o.networkInterfaces = buildUnnamed447(); o.scheduling = buildScheduling(); o.selfLink = "foo"; - o.serviceAccounts = buildUnnamed2118(); + o.serviceAccounts = buildUnnamed448(); o.startRestricted = true; o.status = "foo"; o.statusMessage = "foo"; @@ -4880,20 +4965,20 @@ unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.deletionProtection, unittest.isTrue); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2114(o.disks); - checkUnnamed2115(o.guestAccelerators); + checkUnnamed444(o.disks); + checkUnnamed445(o.guestAccelerators); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed2116(o.labels); + checkUnnamed446(o.labels); unittest.expect(o.machineType, unittest.equals('foo')); checkMetadata(o.metadata); unittest.expect(o.minCpuPlatform, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2117(o.networkInterfaces); + checkUnnamed447(o.networkInterfaces); checkScheduling(o.scheduling); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2118(o.serviceAccounts); + checkUnnamed448(o.serviceAccounts); unittest.expect(o.startRestricted, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.statusMessage, unittest.equals('foo')); @@ -4903,14 +4988,14 @@ buildCounterInstance--; } -buildUnnamed2119() { +buildUnnamed449() { var o = new core.Map<core.String, api.InstancesScopedList>(); o["x"] = buildInstancesScopedList(); o["y"] = buildInstancesScopedList(); return o; } -checkUnnamed2119(core.Map<core.String, api.InstancesScopedList> o) { +checkUnnamed449(core.Map<core.String, api.InstancesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInstancesScopedList(o["x"]); checkInstancesScopedList(o["y"]); @@ -4938,14 +5023,14 @@ buildCounterInstanceAggregatedListWarningData--; } -buildUnnamed2120() { +buildUnnamed450() { var o = new core.List<api.InstanceAggregatedListWarningData>(); o.add(buildInstanceAggregatedListWarningData()); o.add(buildInstanceAggregatedListWarningData()); return o; } -checkUnnamed2120(core.List<api.InstanceAggregatedListWarningData> o) { +checkUnnamed450(core.List<api.InstanceAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceAggregatedListWarningData(o[0]); checkInstanceAggregatedListWarningData(o[1]); @@ -4957,7 +5042,7 @@ buildCounterInstanceAggregatedListWarning++; if (buildCounterInstanceAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2120(); + o.data = buildUnnamed450(); o.message = "foo"; } buildCounterInstanceAggregatedListWarning--; @@ -4968,7 +5053,7 @@ buildCounterInstanceAggregatedListWarning++; if (buildCounterInstanceAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2120(o.data); + checkUnnamed450(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceAggregatedListWarning--; @@ -4980,7 +5065,7 @@ buildCounterInstanceAggregatedList++; if (buildCounterInstanceAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2119(); + o.items = buildUnnamed449(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4994,7 +5079,7 @@ buildCounterInstanceAggregatedList++; if (buildCounterInstanceAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2119(o.items); + checkUnnamed449(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5003,14 +5088,14 @@ buildCounterInstanceAggregatedList--; } -buildUnnamed2121() { +buildUnnamed451() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2121(core.List<api.NamedPort> o) { +checkUnnamed451(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -5027,7 +5112,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.namedPorts = buildUnnamed2121(); + o.namedPorts = buildUnnamed451(); o.network = "foo"; o.region = "foo"; o.selfLink = "foo"; @@ -5048,7 +5133,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2121(o.namedPorts); + checkUnnamed451(o.namedPorts); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5059,14 +5144,14 @@ buildCounterInstanceGroup--; } -buildUnnamed2122() { +buildUnnamed452() { var o = new core.Map<core.String, api.InstanceGroupsScopedList>(); o["x"] = buildInstanceGroupsScopedList(); o["y"] = buildInstanceGroupsScopedList(); return o; } -checkUnnamed2122(core.Map<core.String, api.InstanceGroupsScopedList> o) { +checkUnnamed452(core.Map<core.String, api.InstanceGroupsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupsScopedList(o["x"]); checkInstanceGroupsScopedList(o["y"]); @@ -5094,14 +5179,14 @@ buildCounterInstanceGroupAggregatedListWarningData--; } -buildUnnamed2123() { +buildUnnamed453() { var o = new core.List<api.InstanceGroupAggregatedListWarningData>(); o.add(buildInstanceGroupAggregatedListWarningData()); o.add(buildInstanceGroupAggregatedListWarningData()); return o; } -checkUnnamed2123(core.List<api.InstanceGroupAggregatedListWarningData> o) { +checkUnnamed453(core.List<api.InstanceGroupAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupAggregatedListWarningData(o[0]); checkInstanceGroupAggregatedListWarningData(o[1]); @@ -5113,7 +5198,7 @@ buildCounterInstanceGroupAggregatedListWarning++; if (buildCounterInstanceGroupAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2123(); + o.data = buildUnnamed453(); o.message = "foo"; } buildCounterInstanceGroupAggregatedListWarning--; @@ -5125,7 +5210,7 @@ buildCounterInstanceGroupAggregatedListWarning++; if (buildCounterInstanceGroupAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2123(o.data); + checkUnnamed453(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupAggregatedListWarning--; @@ -5137,7 +5222,7 @@ buildCounterInstanceGroupAggregatedList++; if (buildCounterInstanceGroupAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2122(); + o.items = buildUnnamed452(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5151,7 +5236,7 @@ buildCounterInstanceGroupAggregatedList++; if (buildCounterInstanceGroupAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2122(o.items); + checkUnnamed452(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5160,14 +5245,14 @@ buildCounterInstanceGroupAggregatedList--; } -buildUnnamed2124() { +buildUnnamed454() { var o = new core.List<api.InstanceGroup>(); o.add(buildInstanceGroup()); o.add(buildInstanceGroup()); return o; } -checkUnnamed2124(core.List<api.InstanceGroup> o) { +checkUnnamed454(core.List<api.InstanceGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroup(o[0]); checkInstanceGroup(o[1]); @@ -5194,14 +5279,14 @@ buildCounterInstanceGroupListWarningData--; } -buildUnnamed2125() { +buildUnnamed455() { var o = new core.List<api.InstanceGroupListWarningData>(); o.add(buildInstanceGroupListWarningData()); o.add(buildInstanceGroupListWarningData()); return o; } -checkUnnamed2125(core.List<api.InstanceGroupListWarningData> o) { +checkUnnamed455(core.List<api.InstanceGroupListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupListWarningData(o[0]); checkInstanceGroupListWarningData(o[1]); @@ -5213,7 +5298,7 @@ buildCounterInstanceGroupListWarning++; if (buildCounterInstanceGroupListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2125(); + o.data = buildUnnamed455(); o.message = "foo"; } buildCounterInstanceGroupListWarning--; @@ -5224,7 +5309,7 @@ buildCounterInstanceGroupListWarning++; if (buildCounterInstanceGroupListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2125(o.data); + checkUnnamed455(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupListWarning--; @@ -5236,7 +5321,7 @@ buildCounterInstanceGroupList++; if (buildCounterInstanceGroupList < 3) { o.id = "foo"; - o.items = buildUnnamed2124(); + o.items = buildUnnamed454(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5250,7 +5335,7 @@ buildCounterInstanceGroupList++; if (buildCounterInstanceGroupList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2124(o.items); + checkUnnamed454(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5259,27 +5344,27 @@ buildCounterInstanceGroupList--; } -buildUnnamed2126() { +buildUnnamed456() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2126(core.List<api.NamedPort> o) { +checkUnnamed456(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); } -buildUnnamed2127() { +buildUnnamed457() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2127(core.List<core.String> 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')); @@ -5300,10 +5385,10 @@ o.instanceTemplate = "foo"; o.kind = "foo"; o.name = "foo"; - o.namedPorts = buildUnnamed2126(); + o.namedPorts = buildUnnamed456(); o.region = "foo"; o.selfLink = "foo"; - o.targetPools = buildUnnamed2127(); + o.targetPools = buildUnnamed457(); o.targetSize = 42; o.zone = "foo"; } @@ -5324,10 +5409,10 @@ unittest.expect(o.instanceTemplate, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2126(o.namedPorts); + checkUnnamed456(o.namedPorts); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2127(o.targetPools); + checkUnnamed457(o.targetPools); unittest.expect(o.targetSize, unittest.equals(42)); unittest.expect(o.zone, unittest.equals('foo')); } @@ -5368,14 +5453,14 @@ buildCounterInstanceGroupManagerActionsSummary--; } -buildUnnamed2128() { +buildUnnamed458() { var o = new core.Map<core.String, api.InstanceGroupManagersScopedList>(); o["x"] = buildInstanceGroupManagersScopedList(); o["y"] = buildInstanceGroupManagersScopedList(); return o; } -checkUnnamed2128(core.Map<core.String, api.InstanceGroupManagersScopedList> o) { +checkUnnamed458(core.Map<core.String, api.InstanceGroupManagersScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagersScopedList(o["x"]); checkInstanceGroupManagersScopedList(o["y"]); @@ -5403,14 +5488,14 @@ buildCounterInstanceGroupManagerAggregatedListWarningData--; } -buildUnnamed2129() { +buildUnnamed459() { var o = new core.List<api.InstanceGroupManagerAggregatedListWarningData>(); o.add(buildInstanceGroupManagerAggregatedListWarningData()); o.add(buildInstanceGroupManagerAggregatedListWarningData()); return o; } -checkUnnamed2129( +checkUnnamed459( core.List<api.InstanceGroupManagerAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagerAggregatedListWarningData(o[0]); @@ -5423,7 +5508,7 @@ buildCounterInstanceGroupManagerAggregatedListWarning++; if (buildCounterInstanceGroupManagerAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2129(); + o.data = buildUnnamed459(); o.message = "foo"; } buildCounterInstanceGroupManagerAggregatedListWarning--; @@ -5435,7 +5520,7 @@ buildCounterInstanceGroupManagerAggregatedListWarning++; if (buildCounterInstanceGroupManagerAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2129(o.data); + checkUnnamed459(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupManagerAggregatedListWarning--; @@ -5447,7 +5532,7 @@ buildCounterInstanceGroupManagerAggregatedList++; if (buildCounterInstanceGroupManagerAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2128(); + o.items = buildUnnamed458(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5462,7 +5547,7 @@ buildCounterInstanceGroupManagerAggregatedList++; if (buildCounterInstanceGroupManagerAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2128(o.items); + checkUnnamed458(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5471,14 +5556,14 @@ buildCounterInstanceGroupManagerAggregatedList--; } -buildUnnamed2130() { +buildUnnamed460() { var o = new core.List<api.InstanceGroupManager>(); o.add(buildInstanceGroupManager()); o.add(buildInstanceGroupManager()); return o; } -checkUnnamed2130(core.List<api.InstanceGroupManager> o) { +checkUnnamed460(core.List<api.InstanceGroupManager> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -5506,14 +5591,14 @@ buildCounterInstanceGroupManagerListWarningData--; } -buildUnnamed2131() { +buildUnnamed461() { var o = new core.List<api.InstanceGroupManagerListWarningData>(); o.add(buildInstanceGroupManagerListWarningData()); o.add(buildInstanceGroupManagerListWarningData()); return o; } -checkUnnamed2131(core.List<api.InstanceGroupManagerListWarningData> o) { +checkUnnamed461(core.List<api.InstanceGroupManagerListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagerListWarningData(o[0]); checkInstanceGroupManagerListWarningData(o[1]); @@ -5525,7 +5610,7 @@ buildCounterInstanceGroupManagerListWarning++; if (buildCounterInstanceGroupManagerListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2131(); + o.data = buildUnnamed461(); o.message = "foo"; } buildCounterInstanceGroupManagerListWarning--; @@ -5536,7 +5621,7 @@ buildCounterInstanceGroupManagerListWarning++; if (buildCounterInstanceGroupManagerListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2131(o.data); + checkUnnamed461(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupManagerListWarning--; @@ -5548,7 +5633,7 @@ buildCounterInstanceGroupManagerList++; if (buildCounterInstanceGroupManagerList < 3) { o.id = "foo"; - o.items = buildUnnamed2130(); + o.items = buildUnnamed460(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5562,7 +5647,7 @@ buildCounterInstanceGroupManagerList++; if (buildCounterInstanceGroupManagerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2130(o.items); + checkUnnamed460(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5571,14 +5656,14 @@ buildCounterInstanceGroupManagerList--; } -buildUnnamed2132() { +buildUnnamed462() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2132(core.List<core.String> o) { +checkUnnamed462(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5589,7 +5674,7 @@ var o = new api.InstanceGroupManagersAbandonInstancesRequest(); buildCounterInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - o.instances = buildUnnamed2132(); + o.instances = buildUnnamed462(); } buildCounterInstanceGroupManagersAbandonInstancesRequest--; return o; @@ -5599,19 +5684,19 @@ api.InstanceGroupManagersAbandonInstancesRequest o) { buildCounterInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - checkUnnamed2132(o.instances); + checkUnnamed462(o.instances); } buildCounterInstanceGroupManagersAbandonInstancesRequest--; } -buildUnnamed2133() { +buildUnnamed463() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2133(core.List<core.String> o) { +checkUnnamed463(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5622,7 +5707,7 @@ var o = new api.InstanceGroupManagersDeleteInstancesRequest(); buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - o.instances = buildUnnamed2133(); + o.instances = buildUnnamed463(); } buildCounterInstanceGroupManagersDeleteInstancesRequest--; return o; @@ -5632,19 +5717,19 @@ api.InstanceGroupManagersDeleteInstancesRequest o) { buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - checkUnnamed2133(o.instances); + checkUnnamed463(o.instances); } buildCounterInstanceGroupManagersDeleteInstancesRequest--; } -buildUnnamed2134() { +buildUnnamed464() { var o = new core.List<api.ManagedInstance>(); o.add(buildManagedInstance()); o.add(buildManagedInstance()); return o; } -checkUnnamed2134(core.List<api.ManagedInstance> o) { +checkUnnamed464(core.List<api.ManagedInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstance(o[0]); checkManagedInstance(o[1]); @@ -5655,7 +5740,7 @@ var o = new api.InstanceGroupManagersListManagedInstancesResponse(); buildCounterInstanceGroupManagersListManagedInstancesResponse++; if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { - o.managedInstances = buildUnnamed2134(); + o.managedInstances = buildUnnamed464(); } buildCounterInstanceGroupManagersListManagedInstancesResponse--; return o; @@ -5665,19 +5750,19 @@ api.InstanceGroupManagersListManagedInstancesResponse o) { buildCounterInstanceGroupManagersListManagedInstancesResponse++; if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { - checkUnnamed2134(o.managedInstances); + checkUnnamed464(o.managedInstances); } buildCounterInstanceGroupManagersListManagedInstancesResponse--; } -buildUnnamed2135() { +buildUnnamed465() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2135(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')); @@ -5688,7 +5773,7 @@ var o = new api.InstanceGroupManagersRecreateInstancesRequest(); buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - o.instances = buildUnnamed2135(); + o.instances = buildUnnamed465(); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; return o; @@ -5698,19 +5783,19 @@ api.InstanceGroupManagersRecreateInstancesRequest o) { buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - checkUnnamed2135(o.instances); + checkUnnamed465(o.instances); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; } -buildUnnamed2136() { +buildUnnamed466() { var o = new core.List<api.InstanceGroupManager>(); o.add(buildInstanceGroupManager()); o.add(buildInstanceGroupManager()); return o; } -checkUnnamed2136(core.List<api.InstanceGroupManager> o) { +checkUnnamed466(core.List<api.InstanceGroupManager> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -5738,14 +5823,14 @@ buildCounterInstanceGroupManagersScopedListWarningData--; } -buildUnnamed2137() { +buildUnnamed467() { var o = new core.List<api.InstanceGroupManagersScopedListWarningData>(); o.add(buildInstanceGroupManagersScopedListWarningData()); o.add(buildInstanceGroupManagersScopedListWarningData()); return o; } -checkUnnamed2137(core.List<api.InstanceGroupManagersScopedListWarningData> o) { +checkUnnamed467(core.List<api.InstanceGroupManagersScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagersScopedListWarningData(o[0]); checkInstanceGroupManagersScopedListWarningData(o[1]); @@ -5757,7 +5842,7 @@ buildCounterInstanceGroupManagersScopedListWarning++; if (buildCounterInstanceGroupManagersScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2137(); + o.data = buildUnnamed467(); o.message = "foo"; } buildCounterInstanceGroupManagersScopedListWarning--; @@ -5769,7 +5854,7 @@ buildCounterInstanceGroupManagersScopedListWarning++; if (buildCounterInstanceGroupManagersScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2137(o.data); + checkUnnamed467(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupManagersScopedListWarning--; @@ -5780,7 +5865,7 @@ var o = new api.InstanceGroupManagersScopedList(); buildCounterInstanceGroupManagersScopedList++; if (buildCounterInstanceGroupManagersScopedList < 3) { - o.instanceGroupManagers = buildUnnamed2136(); + o.instanceGroupManagers = buildUnnamed466(); o.warning = buildInstanceGroupManagersScopedListWarning(); } buildCounterInstanceGroupManagersScopedList--; @@ -5790,7 +5875,7 @@ checkInstanceGroupManagersScopedList(api.InstanceGroupManagersScopedList o) { buildCounterInstanceGroupManagersScopedList++; if (buildCounterInstanceGroupManagersScopedList < 3) { - checkUnnamed2136(o.instanceGroupManagers); + checkUnnamed466(o.instanceGroupManagers); checkInstanceGroupManagersScopedListWarning(o.warning); } buildCounterInstanceGroupManagersScopedList--; @@ -5816,14 +5901,14 @@ buildCounterInstanceGroupManagersSetInstanceTemplateRequest--; } -buildUnnamed2138() { +buildUnnamed468() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2138(core.List<core.String> o) { +checkUnnamed468(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5835,7 +5920,7 @@ buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { o.fingerprint = "foo"; - o.targetPools = buildUnnamed2138(); + o.targetPools = buildUnnamed468(); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; return o; @@ -5846,19 +5931,19 @@ buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2138(o.targetPools); + checkUnnamed468(o.targetPools); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; } -buildUnnamed2139() { +buildUnnamed469() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2139(core.List<api.InstanceReference> o) { +checkUnnamed469(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -5869,7 +5954,7 @@ var o = new api.InstanceGroupsAddInstancesRequest(); buildCounterInstanceGroupsAddInstancesRequest++; if (buildCounterInstanceGroupsAddInstancesRequest < 3) { - o.instances = buildUnnamed2139(); + o.instances = buildUnnamed469(); } buildCounterInstanceGroupsAddInstancesRequest--; return o; @@ -5879,19 +5964,19 @@ api.InstanceGroupsAddInstancesRequest o) { buildCounterInstanceGroupsAddInstancesRequest++; if (buildCounterInstanceGroupsAddInstancesRequest < 3) { - checkUnnamed2139(o.instances); + checkUnnamed469(o.instances); } buildCounterInstanceGroupsAddInstancesRequest--; } -buildUnnamed2140() { +buildUnnamed470() { var o = new core.List<api.InstanceWithNamedPorts>(); o.add(buildInstanceWithNamedPorts()); o.add(buildInstanceWithNamedPorts()); return o; } -checkUnnamed2140(core.List<api.InstanceWithNamedPorts> o) { +checkUnnamed470(core.List<api.InstanceWithNamedPorts> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceWithNamedPorts(o[0]); checkInstanceWithNamedPorts(o[1]); @@ -5919,14 +6004,14 @@ buildCounterInstanceGroupsListInstancesWarningData--; } -buildUnnamed2141() { +buildUnnamed471() { var o = new core.List<api.InstanceGroupsListInstancesWarningData>(); o.add(buildInstanceGroupsListInstancesWarningData()); o.add(buildInstanceGroupsListInstancesWarningData()); return o; } -checkUnnamed2141(core.List<api.InstanceGroupsListInstancesWarningData> o) { +checkUnnamed471(core.List<api.InstanceGroupsListInstancesWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupsListInstancesWarningData(o[0]); checkInstanceGroupsListInstancesWarningData(o[1]); @@ -5938,7 +6023,7 @@ buildCounterInstanceGroupsListInstancesWarning++; if (buildCounterInstanceGroupsListInstancesWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2141(); + o.data = buildUnnamed471(); o.message = "foo"; } buildCounterInstanceGroupsListInstancesWarning--; @@ -5950,7 +6035,7 @@ buildCounterInstanceGroupsListInstancesWarning++; if (buildCounterInstanceGroupsListInstancesWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2141(o.data); + checkUnnamed471(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupsListInstancesWarning--; @@ -5962,7 +6047,7 @@ buildCounterInstanceGroupsListInstances++; if (buildCounterInstanceGroupsListInstances < 3) { o.id = "foo"; - o.items = buildUnnamed2140(); + o.items = buildUnnamed470(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5976,7 +6061,7 @@ buildCounterInstanceGroupsListInstances++; if (buildCounterInstanceGroupsListInstances < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2140(o.items); + checkUnnamed470(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6005,14 +6090,14 @@ buildCounterInstanceGroupsListInstancesRequest--; } -buildUnnamed2142() { +buildUnnamed472() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2142(core.List<api.InstanceReference> o) { +checkUnnamed472(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -6023,7 +6108,7 @@ var o = new api.InstanceGroupsRemoveInstancesRequest(); buildCounterInstanceGroupsRemoveInstancesRequest++; if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { - o.instances = buildUnnamed2142(); + o.instances = buildUnnamed472(); } buildCounterInstanceGroupsRemoveInstancesRequest--; return o; @@ -6033,19 +6118,19 @@ api.InstanceGroupsRemoveInstancesRequest o) { buildCounterInstanceGroupsRemoveInstancesRequest++; if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { - checkUnnamed2142(o.instances); + checkUnnamed472(o.instances); } buildCounterInstanceGroupsRemoveInstancesRequest--; } -buildUnnamed2143() { +buildUnnamed473() { var o = new core.List<api.InstanceGroup>(); o.add(buildInstanceGroup()); o.add(buildInstanceGroup()); return o; } -checkUnnamed2143(core.List<api.InstanceGroup> o) { +checkUnnamed473(core.List<api.InstanceGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroup(o[0]); checkInstanceGroup(o[1]); @@ -6073,14 +6158,14 @@ buildCounterInstanceGroupsScopedListWarningData--; } -buildUnnamed2144() { +buildUnnamed474() { var o = new core.List<api.InstanceGroupsScopedListWarningData>(); o.add(buildInstanceGroupsScopedListWarningData()); o.add(buildInstanceGroupsScopedListWarningData()); return o; } -checkUnnamed2144(core.List<api.InstanceGroupsScopedListWarningData> o) { +checkUnnamed474(core.List<api.InstanceGroupsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupsScopedListWarningData(o[0]); checkInstanceGroupsScopedListWarningData(o[1]); @@ -6092,7 +6177,7 @@ buildCounterInstanceGroupsScopedListWarning++; if (buildCounterInstanceGroupsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2144(); + o.data = buildUnnamed474(); o.message = "foo"; } buildCounterInstanceGroupsScopedListWarning--; @@ -6103,7 +6188,7 @@ buildCounterInstanceGroupsScopedListWarning++; if (buildCounterInstanceGroupsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2144(o.data); + checkUnnamed474(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupsScopedListWarning--; @@ -6114,7 +6199,7 @@ var o = new api.InstanceGroupsScopedList(); buildCounterInstanceGroupsScopedList++; if (buildCounterInstanceGroupsScopedList < 3) { - o.instanceGroups = buildUnnamed2143(); + o.instanceGroups = buildUnnamed473(); o.warning = buildInstanceGroupsScopedListWarning(); } buildCounterInstanceGroupsScopedList--; @@ -6124,20 +6209,20 @@ checkInstanceGroupsScopedList(api.InstanceGroupsScopedList o) { buildCounterInstanceGroupsScopedList++; if (buildCounterInstanceGroupsScopedList < 3) { - checkUnnamed2143(o.instanceGroups); + checkUnnamed473(o.instanceGroups); checkInstanceGroupsScopedListWarning(o.warning); } buildCounterInstanceGroupsScopedList--; } -buildUnnamed2145() { +buildUnnamed475() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2145(core.List<api.NamedPort> o) { +checkUnnamed475(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -6149,7 +6234,7 @@ buildCounterInstanceGroupsSetNamedPortsRequest++; if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { o.fingerprint = "foo"; - o.namedPorts = buildUnnamed2145(); + o.namedPorts = buildUnnamed475(); } buildCounterInstanceGroupsSetNamedPortsRequest--; return o; @@ -6160,19 +6245,19 @@ buildCounterInstanceGroupsSetNamedPortsRequest++; if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2145(o.namedPorts); + checkUnnamed475(o.namedPorts); } buildCounterInstanceGroupsSetNamedPortsRequest--; } -buildUnnamed2146() { +buildUnnamed476() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed2146(core.List<api.Instance> o) { +checkUnnamed476(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -6199,14 +6284,14 @@ buildCounterInstanceListWarningData--; } -buildUnnamed2147() { +buildUnnamed477() { var o = new core.List<api.InstanceListWarningData>(); o.add(buildInstanceListWarningData()); o.add(buildInstanceListWarningData()); return o; } -checkUnnamed2147(core.List<api.InstanceListWarningData> o) { +checkUnnamed477(core.List<api.InstanceListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceListWarningData(o[0]); checkInstanceListWarningData(o[1]); @@ -6218,7 +6303,7 @@ buildCounterInstanceListWarning++; if (buildCounterInstanceListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2147(); + o.data = buildUnnamed477(); o.message = "foo"; } buildCounterInstanceListWarning--; @@ -6229,7 +6314,7 @@ buildCounterInstanceListWarning++; if (buildCounterInstanceListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2147(o.data); + checkUnnamed477(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceListWarning--; @@ -6241,7 +6326,7 @@ buildCounterInstanceList++; if (buildCounterInstanceList < 3) { o.id = "foo"; - o.items = buildUnnamed2146(); + o.items = buildUnnamed476(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6255,7 +6340,7 @@ buildCounterInstanceList++; if (buildCounterInstanceList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2146(o.items); + checkUnnamed476(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6264,14 +6349,14 @@ buildCounterInstanceList--; } -buildUnnamed2148() { +buildUnnamed478() { var o = new core.List<api.Reference>(); o.add(buildReference()); o.add(buildReference()); return o; } -checkUnnamed2148(core.List<api.Reference> o) { +checkUnnamed478(core.List<api.Reference> o) { unittest.expect(o, unittest.hasLength(2)); checkReference(o[0]); checkReference(o[1]); @@ -6298,14 +6383,14 @@ buildCounterInstanceListReferrersWarningData--; } -buildUnnamed2149() { +buildUnnamed479() { var o = new core.List<api.InstanceListReferrersWarningData>(); o.add(buildInstanceListReferrersWarningData()); o.add(buildInstanceListReferrersWarningData()); return o; } -checkUnnamed2149(core.List<api.InstanceListReferrersWarningData> o) { +checkUnnamed479(core.List<api.InstanceListReferrersWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceListReferrersWarningData(o[0]); checkInstanceListReferrersWarningData(o[1]); @@ -6317,7 +6402,7 @@ buildCounterInstanceListReferrersWarning++; if (buildCounterInstanceListReferrersWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2149(); + o.data = buildUnnamed479(); o.message = "foo"; } buildCounterInstanceListReferrersWarning--; @@ -6328,7 +6413,7 @@ buildCounterInstanceListReferrersWarning++; if (buildCounterInstanceListReferrersWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2149(o.data); + checkUnnamed479(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceListReferrersWarning--; @@ -6340,7 +6425,7 @@ buildCounterInstanceListReferrers++; if (buildCounterInstanceListReferrers < 3) { o.id = "foo"; - o.items = buildUnnamed2148(); + o.items = buildUnnamed478(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6354,7 +6439,7 @@ buildCounterInstanceListReferrers++; if (buildCounterInstanceListReferrers < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2148(o.items); + checkUnnamed478(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6384,66 +6469,66 @@ buildCounterInstanceMoveRequest--; } -buildUnnamed2150() { +buildUnnamed480() { var o = new core.List<api.AttachedDisk>(); o.add(buildAttachedDisk()); o.add(buildAttachedDisk()); return o; } -checkUnnamed2150(core.List<api.AttachedDisk> o) { +checkUnnamed480(core.List<api.AttachedDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachedDisk(o[0]); checkAttachedDisk(o[1]); } -buildUnnamed2151() { +buildUnnamed481() { var o = new core.List<api.AcceleratorConfig>(); o.add(buildAcceleratorConfig()); o.add(buildAcceleratorConfig()); return o; } -checkUnnamed2151(core.List<api.AcceleratorConfig> o) { +checkUnnamed481(core.List<api.AcceleratorConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfig(o[0]); checkAcceleratorConfig(o[1]); } -buildUnnamed2152() { +buildUnnamed482() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2152(core.Map<core.String, core.String> o) { +checkUnnamed482(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')); } -buildUnnamed2153() { +buildUnnamed483() { var o = new core.List<api.NetworkInterface>(); o.add(buildNetworkInterface()); o.add(buildNetworkInterface()); return o; } -checkUnnamed2153(core.List<api.NetworkInterface> o) { +checkUnnamed483(core.List<api.NetworkInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -buildUnnamed2154() { +buildUnnamed484() { var o = new core.List<api.ServiceAccount>(); o.add(buildServiceAccount()); o.add(buildServiceAccount()); return o; } -checkUnnamed2154(core.List<api.ServiceAccount> o) { +checkUnnamed484(core.List<api.ServiceAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -6456,15 +6541,15 @@ if (buildCounterInstanceProperties < 3) { o.canIpForward = true; o.description = "foo"; - o.disks = buildUnnamed2150(); - o.guestAccelerators = buildUnnamed2151(); - o.labels = buildUnnamed2152(); + o.disks = buildUnnamed480(); + o.guestAccelerators = buildUnnamed481(); + o.labels = buildUnnamed482(); o.machineType = "foo"; o.metadata = buildMetadata(); o.minCpuPlatform = "foo"; - o.networkInterfaces = buildUnnamed2153(); + o.networkInterfaces = buildUnnamed483(); o.scheduling = buildScheduling(); - o.serviceAccounts = buildUnnamed2154(); + o.serviceAccounts = buildUnnamed484(); o.tags = buildTags(); } buildCounterInstanceProperties--; @@ -6476,15 +6561,15 @@ if (buildCounterInstanceProperties < 3) { unittest.expect(o.canIpForward, unittest.isTrue); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2150(o.disks); - checkUnnamed2151(o.guestAccelerators); - checkUnnamed2152(o.labels); + checkUnnamed480(o.disks); + checkUnnamed481(o.guestAccelerators); + checkUnnamed482(o.labels); unittest.expect(o.machineType, unittest.equals('foo')); checkMetadata(o.metadata); unittest.expect(o.minCpuPlatform, unittest.equals('foo')); - checkUnnamed2153(o.networkInterfaces); + checkUnnamed483(o.networkInterfaces); checkScheduling(o.scheduling); - checkUnnamed2154(o.serviceAccounts); + checkUnnamed484(o.serviceAccounts); checkTags(o.tags); } buildCounterInstanceProperties--; @@ -6540,14 +6625,14 @@ buildCounterInstanceTemplate--; } -buildUnnamed2155() { +buildUnnamed485() { var o = new core.List<api.InstanceTemplate>(); o.add(buildInstanceTemplate()); o.add(buildInstanceTemplate()); return o; } -checkUnnamed2155(core.List<api.InstanceTemplate> o) { +checkUnnamed485(core.List<api.InstanceTemplate> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceTemplate(o[0]); checkInstanceTemplate(o[1]); @@ -6574,14 +6659,14 @@ buildCounterInstanceTemplateListWarningData--; } -buildUnnamed2156() { +buildUnnamed486() { var o = new core.List<api.InstanceTemplateListWarningData>(); o.add(buildInstanceTemplateListWarningData()); o.add(buildInstanceTemplateListWarningData()); return o; } -checkUnnamed2156(core.List<api.InstanceTemplateListWarningData> o) { +checkUnnamed486(core.List<api.InstanceTemplateListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceTemplateListWarningData(o[0]); checkInstanceTemplateListWarningData(o[1]); @@ -6593,7 +6678,7 @@ buildCounterInstanceTemplateListWarning++; if (buildCounterInstanceTemplateListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2156(); + o.data = buildUnnamed486(); o.message = "foo"; } buildCounterInstanceTemplateListWarning--; @@ -6604,7 +6689,7 @@ buildCounterInstanceTemplateListWarning++; if (buildCounterInstanceTemplateListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2156(o.data); + checkUnnamed486(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceTemplateListWarning--; @@ -6616,7 +6701,7 @@ buildCounterInstanceTemplateList++; if (buildCounterInstanceTemplateList < 3) { o.id = "foo"; - o.items = buildUnnamed2155(); + o.items = buildUnnamed485(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6630,7 +6715,7 @@ buildCounterInstanceTemplateList++; if (buildCounterInstanceTemplateList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2155(o.items); + checkUnnamed485(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6639,14 +6724,14 @@ buildCounterInstanceTemplateList--; } -buildUnnamed2157() { +buildUnnamed487() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2157(core.List<api.NamedPort> o) { +checkUnnamed487(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -6658,7 +6743,7 @@ buildCounterInstanceWithNamedPorts++; if (buildCounterInstanceWithNamedPorts < 3) { o.instance = "foo"; - o.namedPorts = buildUnnamed2157(); + o.namedPorts = buildUnnamed487(); o.status = "foo"; } buildCounterInstanceWithNamedPorts--; @@ -6669,20 +6754,20 @@ buildCounterInstanceWithNamedPorts++; if (buildCounterInstanceWithNamedPorts < 3) { unittest.expect(o.instance, unittest.equals('foo')); - checkUnnamed2157(o.namedPorts); + checkUnnamed487(o.namedPorts); unittest.expect(o.status, unittest.equals('foo')); } buildCounterInstanceWithNamedPorts--; } -buildUnnamed2158() { +buildUnnamed488() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed2158(core.List<api.Instance> o) { +checkUnnamed488(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -6709,14 +6794,14 @@ buildCounterInstancesScopedListWarningData--; } -buildUnnamed2159() { +buildUnnamed489() { var o = new core.List<api.InstancesScopedListWarningData>(); o.add(buildInstancesScopedListWarningData()); o.add(buildInstancesScopedListWarningData()); return o; } -checkUnnamed2159(core.List<api.InstancesScopedListWarningData> o) { +checkUnnamed489(core.List<api.InstancesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstancesScopedListWarningData(o[0]); checkInstancesScopedListWarningData(o[1]); @@ -6728,7 +6813,7 @@ buildCounterInstancesScopedListWarning++; if (buildCounterInstancesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2159(); + o.data = buildUnnamed489(); o.message = "foo"; } buildCounterInstancesScopedListWarning--; @@ -6739,7 +6824,7 @@ buildCounterInstancesScopedListWarning++; if (buildCounterInstancesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2159(o.data); + checkUnnamed489(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstancesScopedListWarning--; @@ -6750,7 +6835,7 @@ var o = new api.InstancesScopedList(); buildCounterInstancesScopedList++; if (buildCounterInstancesScopedList < 3) { - o.instances = buildUnnamed2158(); + o.instances = buildUnnamed488(); o.warning = buildInstancesScopedListWarning(); } buildCounterInstancesScopedList--; @@ -6760,20 +6845,20 @@ checkInstancesScopedList(api.InstancesScopedList o) { buildCounterInstancesScopedList++; if (buildCounterInstancesScopedList < 3) { - checkUnnamed2158(o.instances); + checkUnnamed488(o.instances); checkInstancesScopedListWarning(o.warning); } buildCounterInstancesScopedList--; } -buildUnnamed2160() { +buildUnnamed490() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2160(core.Map<core.String, core.String> o) { +checkUnnamed490(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')); @@ -6785,7 +6870,7 @@ buildCounterInstancesSetLabelsRequest++; if (buildCounterInstancesSetLabelsRequest < 3) { o.labelFingerprint = "foo"; - o.labels = buildUnnamed2160(); + o.labels = buildUnnamed490(); } buildCounterInstancesSetLabelsRequest--; return o; @@ -6795,19 +6880,19 @@ buildCounterInstancesSetLabelsRequest++; if (buildCounterInstancesSetLabelsRequest < 3) { unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed2160(o.labels); + checkUnnamed490(o.labels); } buildCounterInstancesSetLabelsRequest--; } -buildUnnamed2161() { +buildUnnamed491() { var o = new core.List<api.AcceleratorConfig>(); o.add(buildAcceleratorConfig()); o.add(buildAcceleratorConfig()); return o; } -checkUnnamed2161(core.List<api.AcceleratorConfig> o) { +checkUnnamed491(core.List<api.AcceleratorConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfig(o[0]); checkAcceleratorConfig(o[1]); @@ -6818,7 +6903,7 @@ var o = new api.InstancesSetMachineResourcesRequest(); buildCounterInstancesSetMachineResourcesRequest++; if (buildCounterInstancesSetMachineResourcesRequest < 3) { - o.guestAccelerators = buildUnnamed2161(); + o.guestAccelerators = buildUnnamed491(); } buildCounterInstancesSetMachineResourcesRequest--; return o; @@ -6828,7 +6913,7 @@ api.InstancesSetMachineResourcesRequest o) { buildCounterInstancesSetMachineResourcesRequest++; if (buildCounterInstancesSetMachineResourcesRequest < 3) { - checkUnnamed2161(o.guestAccelerators); + checkUnnamed491(o.guestAccelerators); } buildCounterInstancesSetMachineResourcesRequest--; } @@ -6872,14 +6957,14 @@ buildCounterInstancesSetMinCpuPlatformRequest--; } -buildUnnamed2162() { +buildUnnamed492() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2162(core.List<core.String> o) { +checkUnnamed492(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6891,7 +6976,7 @@ buildCounterInstancesSetServiceAccountRequest++; if (buildCounterInstancesSetServiceAccountRequest < 3) { o.email = "foo"; - o.scopes = buildUnnamed2162(); + o.scopes = buildUnnamed492(); } buildCounterInstancesSetServiceAccountRequest--; return o; @@ -6902,19 +6987,19 @@ buildCounterInstancesSetServiceAccountRequest++; if (buildCounterInstancesSetServiceAccountRequest < 3) { unittest.expect(o.email, unittest.equals('foo')); - checkUnnamed2162(o.scopes); + checkUnnamed492(o.scopes); } buildCounterInstancesSetServiceAccountRequest--; } -buildUnnamed2163() { +buildUnnamed493() { var o = new core.List<api.CustomerEncryptionKeyProtectedDisk>(); o.add(buildCustomerEncryptionKeyProtectedDisk()); o.add(buildCustomerEncryptionKeyProtectedDisk()); return o; } -checkUnnamed2163(core.List<api.CustomerEncryptionKeyProtectedDisk> o) { +checkUnnamed493(core.List<api.CustomerEncryptionKeyProtectedDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomerEncryptionKeyProtectedDisk(o[0]); checkCustomerEncryptionKeyProtectedDisk(o[1]); @@ -6925,7 +7010,7 @@ var o = new api.InstancesStartWithEncryptionKeyRequest(); buildCounterInstancesStartWithEncryptionKeyRequest++; if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { - o.disks = buildUnnamed2163(); + o.disks = buildUnnamed493(); } buildCounterInstancesStartWithEncryptionKeyRequest--; return o; @@ -6935,45 +7020,45 @@ api.InstancesStartWithEncryptionKeyRequest o) { buildCounterInstancesStartWithEncryptionKeyRequest++; if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { - checkUnnamed2163(o.disks); + checkUnnamed493(o.disks); } buildCounterInstancesStartWithEncryptionKeyRequest--; } -buildUnnamed2164() { +buildUnnamed494() { var o = new core.List<api.InterconnectCircuitInfo>(); o.add(buildInterconnectCircuitInfo()); o.add(buildInterconnectCircuitInfo()); return o; } -checkUnnamed2164(core.List<api.InterconnectCircuitInfo> o) { +checkUnnamed494(core.List<api.InterconnectCircuitInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectCircuitInfo(o[0]); checkInterconnectCircuitInfo(o[1]); } -buildUnnamed2165() { +buildUnnamed495() { var o = new core.List<api.InterconnectOutageNotification>(); o.add(buildInterconnectOutageNotification()); o.add(buildInterconnectOutageNotification()); return o; } -checkUnnamed2165(core.List<api.InterconnectOutageNotification> o) { +checkUnnamed495(core.List<api.InterconnectOutageNotification> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectOutageNotification(o[0]); checkInterconnectOutageNotification(o[1]); } -buildUnnamed2166() { +buildUnnamed496() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2166(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')); @@ -6985,15 +7070,15 @@ buildCounterInterconnect++; if (buildCounterInterconnect < 3) { o.adminEnabled = true; - o.circuitInfos = buildUnnamed2164(); + o.circuitInfos = buildUnnamed494(); o.creationTimestamp = "foo"; o.customerName = "foo"; o.description = "foo"; - o.expectedOutages = buildUnnamed2165(); + o.expectedOutages = buildUnnamed495(); o.googleIpAddress = "foo"; o.googleReferenceId = "foo"; o.id = "foo"; - o.interconnectAttachments = buildUnnamed2166(); + o.interconnectAttachments = buildUnnamed496(); o.interconnectType = "foo"; o.kind = "foo"; o.linkType = "foo"; @@ -7005,6 +7090,7 @@ o.provisionedLinkCount = 42; o.requestedLinkCount = 42; o.selfLink = "foo"; + o.state = "foo"; } buildCounterInterconnect--; return o; @@ -7014,15 +7100,15 @@ buildCounterInterconnect++; if (buildCounterInterconnect < 3) { unittest.expect(o.adminEnabled, unittest.isTrue); - checkUnnamed2164(o.circuitInfos); + checkUnnamed494(o.circuitInfos); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.customerName, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2165(o.expectedOutages); + checkUnnamed495(o.expectedOutages); unittest.expect(o.googleIpAddress, unittest.equals('foo')); unittest.expect(o.googleReferenceId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2166(o.interconnectAttachments); + checkUnnamed496(o.interconnectAttachments); unittest.expect(o.interconnectType, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.linkType, unittest.equals('foo')); @@ -7034,29 +7120,53 @@ unittest.expect(o.provisionedLinkCount, unittest.equals(42)); unittest.expect(o.requestedLinkCount, unittest.equals(42)); unittest.expect(o.selfLink, unittest.equals('foo')); + unittest.expect(o.state, unittest.equals('foo')); } buildCounterInterconnect--; } +buildUnnamed497() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + core.int buildCounterInterconnectAttachment = 0; buildInterconnectAttachment() { var o = new api.InterconnectAttachment(); buildCounterInterconnectAttachment++; if (buildCounterInterconnectAttachment < 3) { + o.adminEnabled = true; + o.bandwidth = "foo"; + o.candidateSubnets = buildUnnamed497(); o.cloudRouterIpAddress = "foo"; o.creationTimestamp = "foo"; o.customerRouterIpAddress = "foo"; o.description = "foo"; + o.edgeAvailabilityDomain = "foo"; o.googleReferenceId = "foo"; o.id = "foo"; o.interconnect = "foo"; o.kind = "foo"; o.name = "foo"; o.operationalStatus = "foo"; + o.pairingKey = "foo"; + o.partnerAsn = "foo"; + o.partnerMetadata = buildInterconnectAttachmentPartnerMetadata(); o.privateInterconnectInfo = buildInterconnectAttachmentPrivateInfo(); o.region = "foo"; o.router = "foo"; o.selfLink = "foo"; + o.state = "foo"; + o.type = "foo"; + o.vlanTag8021q = 42; } buildCounterInterconnectAttachment--; return o; @@ -7065,32 +7175,42 @@ checkInterconnectAttachment(api.InterconnectAttachment o) { buildCounterInterconnectAttachment++; if (buildCounterInterconnectAttachment < 3) { + unittest.expect(o.adminEnabled, unittest.isTrue); + unittest.expect(o.bandwidth, unittest.equals('foo')); + checkUnnamed497(o.candidateSubnets); unittest.expect(o.cloudRouterIpAddress, unittest.equals('foo')); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.customerRouterIpAddress, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.edgeAvailabilityDomain, unittest.equals('foo')); unittest.expect(o.googleReferenceId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.interconnect, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.operationalStatus, unittest.equals('foo')); + unittest.expect(o.pairingKey, unittest.equals('foo')); + unittest.expect(o.partnerAsn, unittest.equals('foo')); + checkInterconnectAttachmentPartnerMetadata(o.partnerMetadata); checkInterconnectAttachmentPrivateInfo(o.privateInterconnectInfo); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.router, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + unittest.expect(o.state, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + unittest.expect(o.vlanTag8021q, unittest.equals(42)); } buildCounterInterconnectAttachment--; } -buildUnnamed2167() { +buildUnnamed498() { var o = new core.Map<core.String, api.InterconnectAttachmentsScopedList>(); o["x"] = buildInterconnectAttachmentsScopedList(); o["y"] = buildInterconnectAttachmentsScopedList(); return o; } -checkUnnamed2167( +checkUnnamed498( core.Map<core.String, api.InterconnectAttachmentsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectAttachmentsScopedList(o["x"]); @@ -7119,14 +7239,14 @@ buildCounterInterconnectAttachmentAggregatedListWarningData--; } -buildUnnamed2168() { +buildUnnamed499() { var o = new core.List<api.InterconnectAttachmentAggregatedListWarningData>(); o.add(buildInterconnectAttachmentAggregatedListWarningData()); o.add(buildInterconnectAttachmentAggregatedListWarningData()); return o; } -checkUnnamed2168( +checkUnnamed499( core.List<api.InterconnectAttachmentAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectAttachmentAggregatedListWarningData(o[0]); @@ -7139,7 +7259,7 @@ buildCounterInterconnectAttachmentAggregatedListWarning++; if (buildCounterInterconnectAttachmentAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2168(); + o.data = buildUnnamed499(); o.message = "foo"; } buildCounterInterconnectAttachmentAggregatedListWarning--; @@ -7151,7 +7271,7 @@ buildCounterInterconnectAttachmentAggregatedListWarning++; if (buildCounterInterconnectAttachmentAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2168(o.data); + checkUnnamed499(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInterconnectAttachmentAggregatedListWarning--; @@ -7163,7 +7283,7 @@ buildCounterInterconnectAttachmentAggregatedList++; if (buildCounterInterconnectAttachmentAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2167(); + o.items = buildUnnamed498(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7178,7 +7298,7 @@ buildCounterInterconnectAttachmentAggregatedList++; if (buildCounterInterconnectAttachmentAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2167(o.items); + checkUnnamed498(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7187,14 +7307,14 @@ buildCounterInterconnectAttachmentAggregatedList--; } -buildUnnamed2169() { +buildUnnamed500() { var o = new core.List<api.InterconnectAttachment>(); o.add(buildInterconnectAttachment()); o.add(buildInterconnectAttachment()); return o; } -checkUnnamed2169(core.List<api.InterconnectAttachment> o) { +checkUnnamed500(core.List<api.InterconnectAttachment> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectAttachment(o[0]); checkInterconnectAttachment(o[1]); @@ -7222,14 +7342,14 @@ buildCounterInterconnectAttachmentListWarningData--; } -buildUnnamed2170() { +buildUnnamed501() { var o = new core.List<api.InterconnectAttachmentListWarningData>(); o.add(buildInterconnectAttachmentListWarningData()); o.add(buildInterconnectAttachmentListWarningData()); return o; } -checkUnnamed2170(core.List<api.InterconnectAttachmentListWarningData> o) { +checkUnnamed501(core.List<api.InterconnectAttachmentListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectAttachmentListWarningData(o[0]); checkInterconnectAttachmentListWarningData(o[1]); @@ -7241,7 +7361,7 @@ buildCounterInterconnectAttachmentListWarning++; if (buildCounterInterconnectAttachmentListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2170(); + o.data = buildUnnamed501(); o.message = "foo"; } buildCounterInterconnectAttachmentListWarning--; @@ -7253,7 +7373,7 @@ buildCounterInterconnectAttachmentListWarning++; if (buildCounterInterconnectAttachmentListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2170(o.data); + checkUnnamed501(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInterconnectAttachmentListWarning--; @@ -7265,7 +7385,7 @@ buildCounterInterconnectAttachmentList++; if (buildCounterInterconnectAttachmentList < 3) { o.id = "foo"; - o.items = buildUnnamed2169(); + o.items = buildUnnamed500(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7279,7 +7399,7 @@ buildCounterInterconnectAttachmentList++; if (buildCounterInterconnectAttachmentList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2169(o.items); + checkUnnamed500(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7288,6 +7408,30 @@ buildCounterInterconnectAttachmentList--; } +core.int buildCounterInterconnectAttachmentPartnerMetadata = 0; +buildInterconnectAttachmentPartnerMetadata() { + var o = new api.InterconnectAttachmentPartnerMetadata(); + buildCounterInterconnectAttachmentPartnerMetadata++; + if (buildCounterInterconnectAttachmentPartnerMetadata < 3) { + o.interconnectName = "foo"; + o.partnerName = "foo"; + o.portalUrl = "foo"; + } + buildCounterInterconnectAttachmentPartnerMetadata--; + return o; +} + +checkInterconnectAttachmentPartnerMetadata( + api.InterconnectAttachmentPartnerMetadata o) { + buildCounterInterconnectAttachmentPartnerMetadata++; + if (buildCounterInterconnectAttachmentPartnerMetadata < 3) { + unittest.expect(o.interconnectName, unittest.equals('foo')); + unittest.expect(o.partnerName, unittest.equals('foo')); + unittest.expect(o.portalUrl, unittest.equals('foo')); + } + buildCounterInterconnectAttachmentPartnerMetadata--; +} + core.int buildCounterInterconnectAttachmentPrivateInfo = 0; buildInterconnectAttachmentPrivateInfo() { var o = new api.InterconnectAttachmentPrivateInfo(); @@ -7308,14 +7452,14 @@ buildCounterInterconnectAttachmentPrivateInfo--; } -buildUnnamed2171() { +buildUnnamed502() { var o = new core.List<api.InterconnectAttachment>(); o.add(buildInterconnectAttachment()); o.add(buildInterconnectAttachment()); return o; } -checkUnnamed2171(core.List<api.InterconnectAttachment> o) { +checkUnnamed502(core.List<api.InterconnectAttachment> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectAttachment(o[0]); checkInterconnectAttachment(o[1]); @@ -7343,15 +7487,14 @@ buildCounterInterconnectAttachmentsScopedListWarningData--; } -buildUnnamed2172() { +buildUnnamed503() { var o = new core.List<api.InterconnectAttachmentsScopedListWarningData>(); o.add(buildInterconnectAttachmentsScopedListWarningData()); o.add(buildInterconnectAttachmentsScopedListWarningData()); return o; } -checkUnnamed2172( - core.List<api.InterconnectAttachmentsScopedListWarningData> o) { +checkUnnamed503(core.List<api.InterconnectAttachmentsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectAttachmentsScopedListWarningData(o[0]); checkInterconnectAttachmentsScopedListWarningData(o[1]); @@ -7363,7 +7506,7 @@ buildCounterInterconnectAttachmentsScopedListWarning++; if (buildCounterInterconnectAttachmentsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2172(); + o.data = buildUnnamed503(); o.message = "foo"; } buildCounterInterconnectAttachmentsScopedListWarning--; @@ -7375,7 +7518,7 @@ buildCounterInterconnectAttachmentsScopedListWarning++; if (buildCounterInterconnectAttachmentsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2172(o.data); + checkUnnamed503(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInterconnectAttachmentsScopedListWarning--; @@ -7386,7 +7529,7 @@ var o = new api.InterconnectAttachmentsScopedList(); buildCounterInterconnectAttachmentsScopedList++; if (buildCounterInterconnectAttachmentsScopedList < 3) { - o.interconnectAttachments = buildUnnamed2171(); + o.interconnectAttachments = buildUnnamed502(); o.warning = buildInterconnectAttachmentsScopedListWarning(); } buildCounterInterconnectAttachmentsScopedList--; @@ -7397,7 +7540,7 @@ api.InterconnectAttachmentsScopedList o) { buildCounterInterconnectAttachmentsScopedList++; if (buildCounterInterconnectAttachmentsScopedList < 3) { - checkUnnamed2171(o.interconnectAttachments); + checkUnnamed502(o.interconnectAttachments); checkInterconnectAttachmentsScopedListWarning(o.warning); } buildCounterInterconnectAttachmentsScopedList--; @@ -7426,14 +7569,14 @@ buildCounterInterconnectCircuitInfo--; } -buildUnnamed2173() { +buildUnnamed504() { var o = new core.List<api.Interconnect>(); o.add(buildInterconnect()); o.add(buildInterconnect()); return o; } -checkUnnamed2173(core.List<api.Interconnect> o) { +checkUnnamed504(core.List<api.Interconnect> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnect(o[0]); checkInterconnect(o[1]); @@ -7460,14 +7603,14 @@ buildCounterInterconnectListWarningData--; } -buildUnnamed2174() { +buildUnnamed505() { var o = new core.List<api.InterconnectListWarningData>(); o.add(buildInterconnectListWarningData()); o.add(buildInterconnectListWarningData()); return o; } -checkUnnamed2174(core.List<api.InterconnectListWarningData> o) { +checkUnnamed505(core.List<api.InterconnectListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectListWarningData(o[0]); checkInterconnectListWarningData(o[1]); @@ -7479,7 +7622,7 @@ buildCounterInterconnectListWarning++; if (buildCounterInterconnectListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2174(); + o.data = buildUnnamed505(); o.message = "foo"; } buildCounterInterconnectListWarning--; @@ -7490,7 +7633,7 @@ buildCounterInterconnectListWarning++; if (buildCounterInterconnectListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2174(o.data); + checkUnnamed505(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInterconnectListWarning--; @@ -7502,7 +7645,7 @@ buildCounterInterconnectList++; if (buildCounterInterconnectList < 3) { o.id = "foo"; - o.items = buildUnnamed2173(); + o.items = buildUnnamed504(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7516,7 +7659,7 @@ buildCounterInterconnectList++; if (buildCounterInterconnectList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2173(o.items); + checkUnnamed504(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7525,14 +7668,14 @@ buildCounterInterconnectList--; } -buildUnnamed2175() { +buildUnnamed506() { var o = new core.List<api.InterconnectLocationRegionInfo>(); o.add(buildInterconnectLocationRegionInfo()); o.add(buildInterconnectLocationRegionInfo()); return o; } -checkUnnamed2175(core.List<api.InterconnectLocationRegionInfo> o) { +checkUnnamed506(core.List<api.InterconnectLocationRegionInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectLocationRegionInfo(o[0]); checkInterconnectLocationRegionInfo(o[1]); @@ -7555,7 +7698,7 @@ o.kind = "foo"; o.name = "foo"; o.peeringdbFacilityId = "foo"; - o.regionInfos = buildUnnamed2175(); + o.regionInfos = buildUnnamed506(); o.selfLink = "foo"; } buildCounterInterconnectLocation--; @@ -7577,20 +7720,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.peeringdbFacilityId, unittest.equals('foo')); - checkUnnamed2175(o.regionInfos); + checkUnnamed506(o.regionInfos); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterInterconnectLocation--; } -buildUnnamed2176() { +buildUnnamed507() { var o = new core.List<api.InterconnectLocation>(); o.add(buildInterconnectLocation()); o.add(buildInterconnectLocation()); return o; } -checkUnnamed2176(core.List<api.InterconnectLocation> o) { +checkUnnamed507(core.List<api.InterconnectLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectLocation(o[0]); checkInterconnectLocation(o[1]); @@ -7618,14 +7761,14 @@ buildCounterInterconnectLocationListWarningData--; } -buildUnnamed2177() { +buildUnnamed508() { var o = new core.List<api.InterconnectLocationListWarningData>(); o.add(buildInterconnectLocationListWarningData()); o.add(buildInterconnectLocationListWarningData()); return o; } -checkUnnamed2177(core.List<api.InterconnectLocationListWarningData> o) { +checkUnnamed508(core.List<api.InterconnectLocationListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectLocationListWarningData(o[0]); checkInterconnectLocationListWarningData(o[1]); @@ -7637,7 +7780,7 @@ buildCounterInterconnectLocationListWarning++; if (buildCounterInterconnectLocationListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2177(); + o.data = buildUnnamed508(); o.message = "foo"; } buildCounterInterconnectLocationListWarning--; @@ -7648,7 +7791,7 @@ buildCounterInterconnectLocationListWarning++; if (buildCounterInterconnectLocationListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2177(o.data); + checkUnnamed508(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInterconnectLocationListWarning--; @@ -7660,7 +7803,7 @@ buildCounterInterconnectLocationList++; if (buildCounterInterconnectLocationList < 3) { o.id = "foo"; - o.items = buildUnnamed2176(); + o.items = buildUnnamed507(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7674,7 +7817,7 @@ buildCounterInterconnectLocationList++; if (buildCounterInterconnectLocationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2176(o.items); + checkUnnamed507(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7706,14 +7849,14 @@ buildCounterInterconnectLocationRegionInfo--; } -buildUnnamed2178() { +buildUnnamed509() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2178(core.List<core.String> o) { +checkUnnamed509(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7724,7 +7867,7 @@ var o = new api.InterconnectOutageNotification(); buildCounterInterconnectOutageNotification++; if (buildCounterInterconnectOutageNotification < 3) { - o.affectedCircuits = buildUnnamed2178(); + o.affectedCircuits = buildUnnamed509(); o.description = "foo"; o.endTime = "foo"; o.issueType = "foo"; @@ -7740,7 +7883,7 @@ checkInterconnectOutageNotification(api.InterconnectOutageNotification o) { buildCounterInterconnectOutageNotification++; if (buildCounterInterconnectOutageNotification < 3) { - checkUnnamed2178(o.affectedCircuits); + checkUnnamed509(o.affectedCircuits); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.issueType, unittest.equals('foo')); @@ -7758,9 +7901,15 @@ buildCounterLicense++; if (buildCounterLicense < 3) { o.chargesUseFee = true; + o.creationTimestamp = "foo"; + o.description = "foo"; + o.id = "foo"; o.kind = "foo"; + o.licenseCode = "foo"; o.name = "foo"; + o.resourceRequirements = buildLicenseResourceRequirements(); o.selfLink = "foo"; + o.transferable = true; } buildCounterLicense--; return o; @@ -7770,13 +7919,206 @@ buildCounterLicense++; if (buildCounterLicense < 3) { unittest.expect(o.chargesUseFee, unittest.isTrue); + 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.licenseCode, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); + checkLicenseResourceRequirements(o.resourceRequirements); unittest.expect(o.selfLink, unittest.equals('foo')); + unittest.expect(o.transferable, unittest.isTrue); } buildCounterLicense--; } +buildUnnamed510() { + var o = new core.List<api.LicenseCodeLicenseAlias>(); + o.add(buildLicenseCodeLicenseAlias()); + o.add(buildLicenseCodeLicenseAlias()); + return o; +} + +checkUnnamed510(core.List<api.LicenseCodeLicenseAlias> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLicenseCodeLicenseAlias(o[0]); + checkLicenseCodeLicenseAlias(o[1]); +} + +core.int buildCounterLicenseCode = 0; +buildLicenseCode() { + var o = new api.LicenseCode(); + buildCounterLicenseCode++; + if (buildCounterLicenseCode < 3) { + o.creationTimestamp = "foo"; + o.description = "foo"; + o.id = "foo"; + o.kind = "foo"; + o.licenseAlias = buildUnnamed510(); + o.name = "foo"; + o.selfLink = "foo"; + o.state = "foo"; + o.transferable = true; + } + buildCounterLicenseCode--; + return o; +} + +checkLicenseCode(api.LicenseCode o) { + buildCounterLicenseCode++; + if (buildCounterLicenseCode < 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')); + checkUnnamed510(o.licenseAlias); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + unittest.expect(o.state, unittest.equals('foo')); + unittest.expect(o.transferable, unittest.isTrue); + } + buildCounterLicenseCode--; +} + +core.int buildCounterLicenseCodeLicenseAlias = 0; +buildLicenseCodeLicenseAlias() { + var o = new api.LicenseCodeLicenseAlias(); + buildCounterLicenseCodeLicenseAlias++; + if (buildCounterLicenseCodeLicenseAlias < 3) { + o.description = "foo"; + o.selfLink = "foo"; + } + buildCounterLicenseCodeLicenseAlias--; + return o; +} + +checkLicenseCodeLicenseAlias(api.LicenseCodeLicenseAlias o) { + buildCounterLicenseCodeLicenseAlias++; + if (buildCounterLicenseCodeLicenseAlias < 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + } + buildCounterLicenseCodeLicenseAlias--; +} + +core.int buildCounterLicenseResourceRequirements = 0; +buildLicenseResourceRequirements() { + var o = new api.LicenseResourceRequirements(); + buildCounterLicenseResourceRequirements++; + if (buildCounterLicenseResourceRequirements < 3) { + o.minGuestCpuCount = 42; + o.minMemoryMb = 42; + } + buildCounterLicenseResourceRequirements--; + return o; +} + +checkLicenseResourceRequirements(api.LicenseResourceRequirements o) { + buildCounterLicenseResourceRequirements++; + if (buildCounterLicenseResourceRequirements < 3) { + unittest.expect(o.minGuestCpuCount, unittest.equals(42)); + unittest.expect(o.minMemoryMb, unittest.equals(42)); + } + buildCounterLicenseResourceRequirements--; +} + +buildUnnamed511() { + var o = new core.List<api.License>(); + o.add(buildLicense()); + o.add(buildLicense()); + return o; +} + +checkUnnamed511(core.List<api.License> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLicense(o[0]); + checkLicense(o[1]); +} + +core.int buildCounterLicensesListResponseWarningData = 0; +buildLicensesListResponseWarningData() { + var o = new api.LicensesListResponseWarningData(); + buildCounterLicensesListResponseWarningData++; + if (buildCounterLicensesListResponseWarningData < 3) { + o.key = "foo"; + o.value = "foo"; + } + buildCounterLicensesListResponseWarningData--; + return o; +} + +checkLicensesListResponseWarningData(api.LicensesListResponseWarningData o) { + buildCounterLicensesListResponseWarningData++; + if (buildCounterLicensesListResponseWarningData < 3) { + unittest.expect(o.key, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterLicensesListResponseWarningData--; +} + +buildUnnamed512() { + var o = new core.List<api.LicensesListResponseWarningData>(); + o.add(buildLicensesListResponseWarningData()); + o.add(buildLicensesListResponseWarningData()); + return o; +} + +checkUnnamed512(core.List<api.LicensesListResponseWarningData> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLicensesListResponseWarningData(o[0]); + checkLicensesListResponseWarningData(o[1]); +} + +core.int buildCounterLicensesListResponseWarning = 0; +buildLicensesListResponseWarning() { + var o = new api.LicensesListResponseWarning(); + buildCounterLicensesListResponseWarning++; + if (buildCounterLicensesListResponseWarning < 3) { + o.code = "foo"; + o.data = buildUnnamed512(); + o.message = "foo"; + } + buildCounterLicensesListResponseWarning--; + return o; +} + +checkLicensesListResponseWarning(api.LicensesListResponseWarning o) { + buildCounterLicensesListResponseWarning++; + if (buildCounterLicensesListResponseWarning < 3) { + unittest.expect(o.code, unittest.equals('foo')); + checkUnnamed512(o.data); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterLicensesListResponseWarning--; +} + +core.int buildCounterLicensesListResponse = 0; +buildLicensesListResponse() { + var o = new api.LicensesListResponse(); + buildCounterLicensesListResponse++; + if (buildCounterLicensesListResponse < 3) { + o.id = "foo"; + o.items = buildUnnamed511(); + o.nextPageToken = "foo"; + o.selfLink = "foo"; + o.warning = buildLicensesListResponseWarning(); + } + buildCounterLicensesListResponse--; + return o; +} + +checkLicensesListResponse(api.LicensesListResponse o) { + buildCounterLicensesListResponse++; + if (buildCounterLicensesListResponse < 3) { + unittest.expect(o.id, unittest.equals('foo')); + checkUnnamed511(o.items); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + checkLicensesListResponseWarning(o.warning); + } + buildCounterLicensesListResponse--; +} + core.int buildCounterMachineTypeScratchDisks = 0; buildMachineTypeScratchDisks() { var o = new api.MachineTypeScratchDisks(); @@ -7796,14 +8138,14 @@ buildCounterMachineTypeScratchDisks--; } -buildUnnamed2179() { +buildUnnamed513() { var o = new core.List<api.MachineTypeScratchDisks>(); o.add(buildMachineTypeScratchDisks()); o.add(buildMachineTypeScratchDisks()); return o; } -checkUnnamed2179(core.List<api.MachineTypeScratchDisks> o) { +checkUnnamed513(core.List<api.MachineTypeScratchDisks> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypeScratchDisks(o[0]); checkMachineTypeScratchDisks(o[1]); @@ -7826,7 +8168,7 @@ o.maximumPersistentDisksSizeGb = "foo"; o.memoryMb = 42; o.name = "foo"; - o.scratchDisks = buildUnnamed2179(); + o.scratchDisks = buildUnnamed513(); o.selfLink = "foo"; o.zone = "foo"; } @@ -7849,21 +8191,21 @@ unittest.expect(o.maximumPersistentDisksSizeGb, unittest.equals('foo')); unittest.expect(o.memoryMb, unittest.equals(42)); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2179(o.scratchDisks); + checkUnnamed513(o.scratchDisks); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterMachineType--; } -buildUnnamed2180() { +buildUnnamed514() { var o = new core.Map<core.String, api.MachineTypesScopedList>(); o["x"] = buildMachineTypesScopedList(); o["y"] = buildMachineTypesScopedList(); return o; } -checkUnnamed2180(core.Map<core.String, api.MachineTypesScopedList> o) { +checkUnnamed514(core.Map<core.String, api.MachineTypesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypesScopedList(o["x"]); checkMachineTypesScopedList(o["y"]); @@ -7891,14 +8233,14 @@ buildCounterMachineTypeAggregatedListWarningData--; } -buildUnnamed2181() { +buildUnnamed515() { var o = new core.List<api.MachineTypeAggregatedListWarningData>(); o.add(buildMachineTypeAggregatedListWarningData()); o.add(buildMachineTypeAggregatedListWarningData()); return o; } -checkUnnamed2181(core.List<api.MachineTypeAggregatedListWarningData> o) { +checkUnnamed515(core.List<api.MachineTypeAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypeAggregatedListWarningData(o[0]); checkMachineTypeAggregatedListWarningData(o[1]); @@ -7910,7 +8252,7 @@ buildCounterMachineTypeAggregatedListWarning++; if (buildCounterMachineTypeAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2181(); + o.data = buildUnnamed515(); o.message = "foo"; } buildCounterMachineTypeAggregatedListWarning--; @@ -7921,7 +8263,7 @@ buildCounterMachineTypeAggregatedListWarning++; if (buildCounterMachineTypeAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2181(o.data); + checkUnnamed515(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterMachineTypeAggregatedListWarning--; @@ -7933,7 +8275,7 @@ buildCounterMachineTypeAggregatedList++; if (buildCounterMachineTypeAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2180(); + o.items = buildUnnamed514(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7947,7 +8289,7 @@ buildCounterMachineTypeAggregatedList++; if (buildCounterMachineTypeAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2180(o.items); + checkUnnamed514(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7956,14 +8298,14 @@ buildCounterMachineTypeAggregatedList--; } -buildUnnamed2182() { +buildUnnamed516() { var o = new core.List<api.MachineType>(); o.add(buildMachineType()); o.add(buildMachineType()); return o; } -checkUnnamed2182(core.List<api.MachineType> o) { +checkUnnamed516(core.List<api.MachineType> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineType(o[0]); checkMachineType(o[1]); @@ -7990,14 +8332,14 @@ buildCounterMachineTypeListWarningData--; } -buildUnnamed2183() { +buildUnnamed517() { var o = new core.List<api.MachineTypeListWarningData>(); o.add(buildMachineTypeListWarningData()); o.add(buildMachineTypeListWarningData()); return o; } -checkUnnamed2183(core.List<api.MachineTypeListWarningData> o) { +checkUnnamed517(core.List<api.MachineTypeListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypeListWarningData(o[0]); checkMachineTypeListWarningData(o[1]); @@ -8009,7 +8351,7 @@ buildCounterMachineTypeListWarning++; if (buildCounterMachineTypeListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2183(); + o.data = buildUnnamed517(); o.message = "foo"; } buildCounterMachineTypeListWarning--; @@ -8020,7 +8362,7 @@ buildCounterMachineTypeListWarning++; if (buildCounterMachineTypeListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2183(o.data); + checkUnnamed517(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterMachineTypeListWarning--; @@ -8032,7 +8374,7 @@ buildCounterMachineTypeList++; if (buildCounterMachineTypeList < 3) { o.id = "foo"; - o.items = buildUnnamed2182(); + o.items = buildUnnamed516(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -8046,7 +8388,7 @@ buildCounterMachineTypeList++; if (buildCounterMachineTypeList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2182(o.items); + checkUnnamed516(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -8055,14 +8397,14 @@ buildCounterMachineTypeList--; } -buildUnnamed2184() { +buildUnnamed518() { var o = new core.List<api.MachineType>(); o.add(buildMachineType()); o.add(buildMachineType()); return o; } -checkUnnamed2184(core.List<api.MachineType> o) { +checkUnnamed518(core.List<api.MachineType> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineType(o[0]); checkMachineType(o[1]); @@ -8090,14 +8432,14 @@ buildCounterMachineTypesScopedListWarningData--; } -buildUnnamed2185() { +buildUnnamed519() { var o = new core.List<api.MachineTypesScopedListWarningData>(); o.add(buildMachineTypesScopedListWarningData()); o.add(buildMachineTypesScopedListWarningData()); return o; } -checkUnnamed2185(core.List<api.MachineTypesScopedListWarningData> o) { +checkUnnamed519(core.List<api.MachineTypesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypesScopedListWarningData(o[0]); checkMachineTypesScopedListWarningData(o[1]); @@ -8109,7 +8451,7 @@ buildCounterMachineTypesScopedListWarning++; if (buildCounterMachineTypesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2185(); + o.data = buildUnnamed519(); o.message = "foo"; } buildCounterMachineTypesScopedListWarning--; @@ -8120,7 +8462,7 @@ buildCounterMachineTypesScopedListWarning++; if (buildCounterMachineTypesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2185(o.data); + checkUnnamed519(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterMachineTypesScopedListWarning--; @@ -8131,7 +8473,7 @@ var o = new api.MachineTypesScopedList(); buildCounterMachineTypesScopedList++; if (buildCounterMachineTypesScopedList < 3) { - o.machineTypes = buildUnnamed2184(); + o.machineTypes = buildUnnamed518(); o.warning = buildMachineTypesScopedListWarning(); } buildCounterMachineTypesScopedList--; @@ -8141,7 +8483,7 @@ checkMachineTypesScopedList(api.MachineTypesScopedList o) { buildCounterMachineTypesScopedList++; if (buildCounterMachineTypesScopedList < 3) { - checkUnnamed2184(o.machineTypes); + checkUnnamed518(o.machineTypes); checkMachineTypesScopedListWarning(o.warning); } buildCounterMachineTypesScopedList--; @@ -8198,14 +8540,14 @@ buildCounterManagedInstanceLastAttemptErrorsErrors--; } -buildUnnamed2186() { +buildUnnamed520() { var o = new core.List<api.ManagedInstanceLastAttemptErrorsErrors>(); o.add(buildManagedInstanceLastAttemptErrorsErrors()); o.add(buildManagedInstanceLastAttemptErrorsErrors()); return o; } -checkUnnamed2186(core.List<api.ManagedInstanceLastAttemptErrorsErrors> o) { +checkUnnamed520(core.List<api.ManagedInstanceLastAttemptErrorsErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstanceLastAttemptErrorsErrors(o[0]); checkManagedInstanceLastAttemptErrorsErrors(o[1]); @@ -8216,7 +8558,7 @@ var o = new api.ManagedInstanceLastAttemptErrors(); buildCounterManagedInstanceLastAttemptErrors++; if (buildCounterManagedInstanceLastAttemptErrors < 3) { - o.errors = buildUnnamed2186(); + o.errors = buildUnnamed520(); } buildCounterManagedInstanceLastAttemptErrors--; return o; @@ -8225,7 +8567,7 @@ checkManagedInstanceLastAttemptErrors(api.ManagedInstanceLastAttemptErrors o) { buildCounterManagedInstanceLastAttemptErrors++; if (buildCounterManagedInstanceLastAttemptErrors < 3) { - checkUnnamed2186(o.errors); + checkUnnamed520(o.errors); } buildCounterManagedInstanceLastAttemptErrors--; } @@ -8270,14 +8612,14 @@ buildCounterMetadataItems--; } -buildUnnamed2187() { +buildUnnamed521() { var o = new core.List<api.MetadataItems>(); o.add(buildMetadataItems()); o.add(buildMetadataItems()); return o; } -checkUnnamed2187(core.List<api.MetadataItems> o) { +checkUnnamed521(core.List<api.MetadataItems> o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataItems(o[0]); checkMetadataItems(o[1]); @@ -8289,7 +8631,7 @@ buildCounterMetadata++; if (buildCounterMetadata < 3) { o.fingerprint = "foo"; - o.items = buildUnnamed2187(); + o.items = buildUnnamed521(); o.kind = "foo"; } buildCounterMetadata--; @@ -8300,7 +8642,7 @@ buildCounterMetadata++; if (buildCounterMetadata < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2187(o.items); + checkUnnamed521(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; @@ -8327,27 +8669,27 @@ buildCounterNamedPort--; } -buildUnnamed2188() { +buildUnnamed522() { var o = new core.List<api.NetworkPeering>(); o.add(buildNetworkPeering()); o.add(buildNetworkPeering()); return o; } -checkUnnamed2188(core.List<api.NetworkPeering> o) { +checkUnnamed522(core.List<api.NetworkPeering> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkPeering(o[0]); checkNetworkPeering(o[1]); } -buildUnnamed2189() { +buildUnnamed523() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2189(core.List<core.String> o) { +checkUnnamed523(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8366,10 +8708,10 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.peerings = buildUnnamed2188(); + o.peerings = buildUnnamed522(); o.routingConfig = buildNetworkRoutingConfig(); o.selfLink = "foo"; - o.subnetworks = buildUnnamed2189(); + o.subnetworks = buildUnnamed523(); } buildCounterNetwork--; return o; @@ -8386,35 +8728,35 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2188(o.peerings); + checkUnnamed522(o.peerings); checkNetworkRoutingConfig(o.routingConfig); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2189(o.subnetworks); + checkUnnamed523(o.subnetworks); } buildCounterNetwork--; } -buildUnnamed2190() { +buildUnnamed524() { var o = new core.List<api.AccessConfig>(); o.add(buildAccessConfig()); o.add(buildAccessConfig()); return o; } -checkUnnamed2190(core.List<api.AccessConfig> o) { +checkUnnamed524(core.List<api.AccessConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAccessConfig(o[0]); checkAccessConfig(o[1]); } -buildUnnamed2191() { +buildUnnamed525() { var o = new core.List<api.AliasIpRange>(); o.add(buildAliasIpRange()); o.add(buildAliasIpRange()); return o; } -checkUnnamed2191(core.List<api.AliasIpRange> o) { +checkUnnamed525(core.List<api.AliasIpRange> o) { unittest.expect(o, unittest.hasLength(2)); checkAliasIpRange(o[0]); checkAliasIpRange(o[1]); @@ -8425,8 +8767,9 @@ var o = new api.NetworkInterface(); buildCounterNetworkInterface++; if (buildCounterNetworkInterface < 3) { - o.accessConfigs = buildUnnamed2190(); - o.aliasIpRanges = buildUnnamed2191(); + o.accessConfigs = buildUnnamed524(); + o.aliasIpRanges = buildUnnamed525(); + o.fingerprint = "foo"; o.kind = "foo"; o.name = "foo"; o.network = "foo"; @@ -8440,8 +8783,9 @@ checkNetworkInterface(api.NetworkInterface o) { buildCounterNetworkInterface++; if (buildCounterNetworkInterface < 3) { - checkUnnamed2190(o.accessConfigs); - checkUnnamed2191(o.aliasIpRanges); + checkUnnamed524(o.accessConfigs); + checkUnnamed525(o.aliasIpRanges); + unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); @@ -8451,14 +8795,14 @@ buildCounterNetworkInterface--; } -buildUnnamed2192() { +buildUnnamed526() { var o = new core.List<api.Network>(); o.add(buildNetwork()); o.add(buildNetwork()); return o; } -checkUnnamed2192(core.List<api.Network> o) { +checkUnnamed526(core.List<api.Network> o) { unittest.expect(o, unittest.hasLength(2)); checkNetwork(o[0]); checkNetwork(o[1]); @@ -8485,14 +8829,14 @@ buildCounterNetworkListWarningData--; } -buildUnnamed2193() { +buildUnnamed527() { var o = new core.List<api.NetworkListWarningData>(); o.add(buildNetworkListWarningData()); o.add(buildNetworkListWarningData()); return o; } -checkUnnamed2193(core.List<api.NetworkListWarningData> o) { +checkUnnamed527(core.List<api.NetworkListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkListWarningData(o[0]); checkNetworkListWarningData(o[1]); @@ -8504,7 +8848,7 @@ buildCounterNetworkListWarning++; if (buildCounterNetworkListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2193(); + o.data = buildUnnamed527(); o.message = "foo"; } buildCounterNetworkListWarning--; @@ -8515,7 +8859,7 @@ buildCounterNetworkListWarning++; if (buildCounterNetworkListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2193(o.data); + checkUnnamed527(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterNetworkListWarning--; @@ -8527,7 +8871,7 @@ buildCounterNetworkList++; if (buildCounterNetworkList < 3) { o.id = "foo"; - o.items = buildUnnamed2192(); + o.items = buildUnnamed526(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -8541,7 +8885,7 @@ buildCounterNetworkList++; if (buildCounterNetworkList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2192(o.items); + checkUnnamed526(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -8661,14 +9005,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed2194() { +buildUnnamed528() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed2194(core.List<api.OperationErrorErrors> o) { +checkUnnamed528(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -8679,7 +9023,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed2194(); + o.errors = buildUnnamed528(); } buildCounterOperationError--; return o; @@ -8688,7 +9032,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed2194(o.errors); + checkUnnamed528(o.errors); } buildCounterOperationError--; } @@ -8714,14 +9058,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed2195() { +buildUnnamed529() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed2195(core.List<api.OperationWarningsData> o) { +checkUnnamed529(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -8733,7 +9077,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2195(); + o.data = buildUnnamed529(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -8744,20 +9088,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2195(o.data); + checkUnnamed529(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed2196() { +buildUnnamed530() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed2196(core.List<api.OperationWarnings> o) { +checkUnnamed530(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -8789,7 +9133,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed2196(); + o.warnings = buildUnnamed530(); o.zone = "foo"; } buildCounterOperation--; @@ -8820,20 +9164,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed2196(o.warnings); + checkUnnamed530(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed2197() { +buildUnnamed531() { var o = new core.Map<core.String, api.OperationsScopedList>(); o["x"] = buildOperationsScopedList(); o["y"] = buildOperationsScopedList(); return o; } -checkUnnamed2197(core.Map<core.String, api.OperationsScopedList> o) { +checkUnnamed531(core.Map<core.String, api.OperationsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationsScopedList(o["x"]); checkOperationsScopedList(o["y"]); @@ -8861,14 +9205,14 @@ buildCounterOperationAggregatedListWarningData--; } -buildUnnamed2198() { +buildUnnamed532() { var o = new core.List<api.OperationAggregatedListWarningData>(); o.add(buildOperationAggregatedListWarningData()); o.add(buildOperationAggregatedListWarningData()); return o; } -checkUnnamed2198(core.List<api.OperationAggregatedListWarningData> o) { +checkUnnamed532(core.List<api.OperationAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationAggregatedListWarningData(o[0]); checkOperationAggregatedListWarningData(o[1]); @@ -8880,7 +9224,7 @@ buildCounterOperationAggregatedListWarning++; if (buildCounterOperationAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2198(); + o.data = buildUnnamed532(); o.message = "foo"; } buildCounterOperationAggregatedListWarning--; @@ -8891,7 +9235,7 @@ buildCounterOperationAggregatedListWarning++; if (buildCounterOperationAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2198(o.data); + checkUnnamed532(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationAggregatedListWarning--; @@ -8903,7 +9247,7 @@ buildCounterOperationAggregatedList++; if (buildCounterOperationAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2197(); + o.items = buildUnnamed531(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -8917,7 +9261,7 @@ buildCounterOperationAggregatedList++; if (buildCounterOperationAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2197(o.items); + checkUnnamed531(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -8926,14 +9270,14 @@ buildCounterOperationAggregatedList--; } -buildUnnamed2199() { +buildUnnamed533() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2199(core.List<api.Operation> o) { +checkUnnamed533(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -8960,14 +9304,14 @@ buildCounterOperationListWarningData--; } -buildUnnamed2200() { +buildUnnamed534() { var o = new core.List<api.OperationListWarningData>(); o.add(buildOperationListWarningData()); o.add(buildOperationListWarningData()); return o; } -checkUnnamed2200(core.List<api.OperationListWarningData> o) { +checkUnnamed534(core.List<api.OperationListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationListWarningData(o[0]); checkOperationListWarningData(o[1]); @@ -8979,7 +9323,7 @@ buildCounterOperationListWarning++; if (buildCounterOperationListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2200(); + o.data = buildUnnamed534(); o.message = "foo"; } buildCounterOperationListWarning--; @@ -8990,7 +9334,7 @@ buildCounterOperationListWarning++; if (buildCounterOperationListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2200(o.data); + checkUnnamed534(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationListWarning--; @@ -9002,7 +9346,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { o.id = "foo"; - o.items = buildUnnamed2199(); + o.items = buildUnnamed533(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -9016,7 +9360,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2199(o.items); + checkUnnamed533(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -9025,14 +9369,14 @@ buildCounterOperationList--; } -buildUnnamed2201() { +buildUnnamed535() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2201(core.List<api.Operation> o) { +checkUnnamed535(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -9059,14 +9403,14 @@ buildCounterOperationsScopedListWarningData--; } -buildUnnamed2202() { +buildUnnamed536() { var o = new core.List<api.OperationsScopedListWarningData>(); o.add(buildOperationsScopedListWarningData()); o.add(buildOperationsScopedListWarningData()); return o; } -checkUnnamed2202(core.List<api.OperationsScopedListWarningData> o) { +checkUnnamed536(core.List<api.OperationsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationsScopedListWarningData(o[0]); checkOperationsScopedListWarningData(o[1]); @@ -9078,7 +9422,7 @@ buildCounterOperationsScopedListWarning++; if (buildCounterOperationsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2202(); + o.data = buildUnnamed536(); o.message = "foo"; } buildCounterOperationsScopedListWarning--; @@ -9089,7 +9433,7 @@ buildCounterOperationsScopedListWarning++; if (buildCounterOperationsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2202(o.data); + checkUnnamed536(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationsScopedListWarning--; @@ -9100,7 +9444,7 @@ var o = new api.OperationsScopedList(); buildCounterOperationsScopedList++; if (buildCounterOperationsScopedList < 3) { - o.operations = buildUnnamed2201(); + o.operations = buildUnnamed535(); o.warning = buildOperationsScopedListWarning(); } buildCounterOperationsScopedList--; @@ -9110,20 +9454,20 @@ checkOperationsScopedList(api.OperationsScopedList o) { buildCounterOperationsScopedList++; if (buildCounterOperationsScopedList < 3) { - checkUnnamed2201(o.operations); + checkUnnamed535(o.operations); checkOperationsScopedListWarning(o.warning); } buildCounterOperationsScopedList--; } -buildUnnamed2203() { +buildUnnamed537() { var o = new core.List<api.PathRule>(); o.add(buildPathRule()); o.add(buildPathRule()); return o; } -checkUnnamed2203(core.List<api.PathRule> o) { +checkUnnamed537(core.List<api.PathRule> o) { unittest.expect(o, unittest.hasLength(2)); checkPathRule(o[0]); checkPathRule(o[1]); @@ -9137,7 +9481,7 @@ o.defaultService = "foo"; o.description = "foo"; o.name = "foo"; - o.pathRules = buildUnnamed2203(); + o.pathRules = buildUnnamed537(); } buildCounterPathMatcher--; return o; @@ -9149,19 +9493,19 @@ unittest.expect(o.defaultService, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2203(o.pathRules); + checkUnnamed537(o.pathRules); } buildCounterPathMatcher--; } -buildUnnamed2204() { +buildUnnamed538() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2204(core.List<core.String> o) { +checkUnnamed538(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9172,7 +9516,7 @@ var o = new api.PathRule(); buildCounterPathRule++; if (buildCounterPathRule < 3) { - o.paths = buildUnnamed2204(); + o.paths = buildUnnamed538(); o.service = "foo"; } buildCounterPathRule--; @@ -9182,33 +9526,33 @@ checkPathRule(api.PathRule o) { buildCounterPathRule++; if (buildCounterPathRule < 3) { - checkUnnamed2204(o.paths); + checkUnnamed538(o.paths); unittest.expect(o.service, unittest.equals('foo')); } buildCounterPathRule--; } -buildUnnamed2205() { +buildUnnamed539() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2205(core.List<core.String> o) { +checkUnnamed539(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2206() { +buildUnnamed540() { var o = new core.List<api.Quota>(); o.add(buildQuota()); o.add(buildQuota()); return o; } -checkUnnamed2206(core.List<api.Quota> o) { +checkUnnamed540(core.List<api.Quota> o) { unittest.expect(o, unittest.hasLength(2)); checkQuota(o[0]); checkQuota(o[1]); @@ -9223,11 +9567,11 @@ o.creationTimestamp = "foo"; o.defaultServiceAccount = "foo"; o.description = "foo"; - o.enabledFeatures = buildUnnamed2205(); + o.enabledFeatures = buildUnnamed539(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.quotas = buildUnnamed2206(); + o.quotas = buildUnnamed540(); o.selfLink = "foo"; o.usageExportLocation = buildUsageExportLocation(); o.xpnProjectStatus = "foo"; @@ -9243,11 +9587,11 @@ unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.defaultServiceAccount, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2205(o.enabledFeatures); + checkUnnamed539(o.enabledFeatures); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2206(o.quotas); + checkUnnamed540(o.quotas); unittest.expect(o.selfLink, unittest.equals('foo')); checkUsageExportLocation(o.usageExportLocation); unittest.expect(o.xpnProjectStatus, unittest.equals('foo')); @@ -9294,14 +9638,14 @@ buildCounterProjectsEnableXpnResourceRequest--; } -buildUnnamed2207() { +buildUnnamed541() { var o = new core.List<api.XpnResourceId>(); o.add(buildXpnResourceId()); o.add(buildXpnResourceId()); return o; } -checkUnnamed2207(core.List<api.XpnResourceId> o) { +checkUnnamed541(core.List<api.XpnResourceId> o) { unittest.expect(o, unittest.hasLength(2)); checkXpnResourceId(o[0]); checkXpnResourceId(o[1]); @@ -9314,7 +9658,7 @@ if (buildCounterProjectsGetXpnResources < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed2207(); + o.resources = buildUnnamed541(); } buildCounterProjectsGetXpnResources--; return o; @@ -9325,7 +9669,7 @@ if (buildCounterProjectsGetXpnResources < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2207(o.resources); + checkUnnamed541(o.resources); } buildCounterProjectsGetXpnResources--; } @@ -9397,27 +9741,27 @@ buildCounterReference--; } -buildUnnamed2208() { +buildUnnamed542() { var o = new core.List<api.Quota>(); o.add(buildQuota()); o.add(buildQuota()); return o; } -checkUnnamed2208(core.List<api.Quota> o) { +checkUnnamed542(core.List<api.Quota> o) { unittest.expect(o, unittest.hasLength(2)); checkQuota(o[0]); checkQuota(o[1]); } -buildUnnamed2209() { +buildUnnamed543() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2209(core.List<core.String> o) { +checkUnnamed543(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9434,10 +9778,10 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.quotas = buildUnnamed2208(); + o.quotas = buildUnnamed542(); o.selfLink = "foo"; o.status = "foo"; - o.zones = buildUnnamed2209(); + o.zones = buildUnnamed543(); } buildCounterRegion--; return o; @@ -9452,22 +9796,22 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2208(o.quotas); + checkUnnamed542(o.quotas); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed2209(o.zones); + checkUnnamed543(o.zones); } buildCounterRegion--; } -buildUnnamed2210() { +buildUnnamed544() { var o = new core.List<api.Autoscaler>(); o.add(buildAutoscaler()); o.add(buildAutoscaler()); return o; } -checkUnnamed2210(core.List<api.Autoscaler> o) { +checkUnnamed544(core.List<api.Autoscaler> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscaler(o[0]); checkAutoscaler(o[1]); @@ -9494,14 +9838,14 @@ buildCounterRegionAutoscalerListWarningData--; } -buildUnnamed2211() { +buildUnnamed545() { var o = new core.List<api.RegionAutoscalerListWarningData>(); o.add(buildRegionAutoscalerListWarningData()); o.add(buildRegionAutoscalerListWarningData()); return o; } -checkUnnamed2211(core.List<api.RegionAutoscalerListWarningData> o) { +checkUnnamed545(core.List<api.RegionAutoscalerListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRegionAutoscalerListWarningData(o[0]); checkRegionAutoscalerListWarningData(o[1]); @@ -9513,7 +9857,7 @@ buildCounterRegionAutoscalerListWarning++; if (buildCounterRegionAutoscalerListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2211(); + o.data = buildUnnamed545(); o.message = "foo"; } buildCounterRegionAutoscalerListWarning--; @@ -9524,7 +9868,7 @@ buildCounterRegionAutoscalerListWarning++; if (buildCounterRegionAutoscalerListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2211(o.data); + checkUnnamed545(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRegionAutoscalerListWarning--; @@ -9536,7 +9880,7 @@ buildCounterRegionAutoscalerList++; if (buildCounterRegionAutoscalerList < 3) { o.id = "foo"; - o.items = buildUnnamed2210(); + o.items = buildUnnamed544(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -9550,7 +9894,7 @@ buildCounterRegionAutoscalerList++; if (buildCounterRegionAutoscalerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2210(o.items); + checkUnnamed544(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -9559,14 +9903,132 @@ buildCounterRegionAutoscalerList--; } -buildUnnamed2212() { +buildUnnamed546() { + var o = new core.List<api.DiskType>(); + o.add(buildDiskType()); + o.add(buildDiskType()); + return o; +} + +checkUnnamed546(core.List<api.DiskType> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDiskType(o[0]); + checkDiskType(o[1]); +} + +core.int buildCounterRegionDiskTypeListWarningData = 0; +buildRegionDiskTypeListWarningData() { + var o = new api.RegionDiskTypeListWarningData(); + buildCounterRegionDiskTypeListWarningData++; + if (buildCounterRegionDiskTypeListWarningData < 3) { + o.key = "foo"; + o.value = "foo"; + } + buildCounterRegionDiskTypeListWarningData--; + return o; +} + +checkRegionDiskTypeListWarningData(api.RegionDiskTypeListWarningData o) { + buildCounterRegionDiskTypeListWarningData++; + if (buildCounterRegionDiskTypeListWarningData < 3) { + unittest.expect(o.key, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterRegionDiskTypeListWarningData--; +} + +buildUnnamed547() { + var o = new core.List<api.RegionDiskTypeListWarningData>(); + o.add(buildRegionDiskTypeListWarningData()); + o.add(buildRegionDiskTypeListWarningData()); + return o; +} + +checkUnnamed547(core.List<api.RegionDiskTypeListWarningData> o) { + unittest.expect(o, unittest.hasLength(2)); + checkRegionDiskTypeListWarningData(o[0]); + checkRegionDiskTypeListWarningData(o[1]); +} + +core.int buildCounterRegionDiskTypeListWarning = 0; +buildRegionDiskTypeListWarning() { + var o = new api.RegionDiskTypeListWarning(); + buildCounterRegionDiskTypeListWarning++; + if (buildCounterRegionDiskTypeListWarning < 3) { + o.code = "foo"; + o.data = buildUnnamed547(); + o.message = "foo"; + } + buildCounterRegionDiskTypeListWarning--; + return o; +} + +checkRegionDiskTypeListWarning(api.RegionDiskTypeListWarning o) { + buildCounterRegionDiskTypeListWarning++; + if (buildCounterRegionDiskTypeListWarning < 3) { + unittest.expect(o.code, unittest.equals('foo')); + checkUnnamed547(o.data); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterRegionDiskTypeListWarning--; +} + +core.int buildCounterRegionDiskTypeList = 0; +buildRegionDiskTypeList() { + var o = new api.RegionDiskTypeList(); + buildCounterRegionDiskTypeList++; + if (buildCounterRegionDiskTypeList < 3) { + o.id = "foo"; + o.items = buildUnnamed546(); + o.kind = "foo"; + o.nextPageToken = "foo"; + o.selfLink = "foo"; + o.warning = buildRegionDiskTypeListWarning(); + } + buildCounterRegionDiskTypeList--; + return o; +} + +checkRegionDiskTypeList(api.RegionDiskTypeList o) { + buildCounterRegionDiskTypeList++; + if (buildCounterRegionDiskTypeList < 3) { + unittest.expect(o.id, unittest.equals('foo')); + checkUnnamed546(o.items); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + checkRegionDiskTypeListWarning(o.warning); + } + buildCounterRegionDiskTypeList--; +} + +core.int buildCounterRegionDisksResizeRequest = 0; +buildRegionDisksResizeRequest() { + var o = new api.RegionDisksResizeRequest(); + buildCounterRegionDisksResizeRequest++; + if (buildCounterRegionDisksResizeRequest < 3) { + o.sizeGb = "foo"; + } + buildCounterRegionDisksResizeRequest--; + return o; +} + +checkRegionDisksResizeRequest(api.RegionDisksResizeRequest o) { + buildCounterRegionDisksResizeRequest++; + if (buildCounterRegionDisksResizeRequest < 3) { + unittest.expect(o.sizeGb, unittest.equals('foo')); + } + buildCounterRegionDisksResizeRequest--; +} + +buildUnnamed548() { var o = new core.List<api.InstanceGroup>(); o.add(buildInstanceGroup()); o.add(buildInstanceGroup()); return o; } -checkUnnamed2212(core.List<api.InstanceGroup> o) { +checkUnnamed548(core.List<api.InstanceGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroup(o[0]); checkInstanceGroup(o[1]); @@ -9594,14 +10056,14 @@ buildCounterRegionInstanceGroupListWarningData--; } -buildUnnamed2213() { +buildUnnamed549() { var o = new core.List<api.RegionInstanceGroupListWarningData>(); o.add(buildRegionInstanceGroupListWarningData()); o.add(buildRegionInstanceGroupListWarningData()); return o; } -checkUnnamed2213(core.List<api.RegionInstanceGroupListWarningData> o) { +checkUnnamed549(core.List<api.RegionInstanceGroupListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRegionInstanceGroupListWarningData(o[0]); checkRegionInstanceGroupListWarningData(o[1]); @@ -9613,7 +10075,7 @@ buildCounterRegionInstanceGroupListWarning++; if (buildCounterRegionInstanceGroupListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2213(); + o.data = buildUnnamed549(); o.message = "foo"; } buildCounterRegionInstanceGroupListWarning--; @@ -9624,7 +10086,7 @@ buildCounterRegionInstanceGroupListWarning++; if (buildCounterRegionInstanceGroupListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2213(o.data); + checkUnnamed549(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRegionInstanceGroupListWarning--; @@ -9636,7 +10098,7 @@ buildCounterRegionInstanceGroupList++; if (buildCounterRegionInstanceGroupList < 3) { o.id = "foo"; - o.items = buildUnnamed2212(); + o.items = buildUnnamed548(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -9650,7 +10112,7 @@ buildCounterRegionInstanceGroupList++; if (buildCounterRegionInstanceGroupList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2212(o.items); + checkUnnamed548(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -9659,14 +10121,14 @@ buildCounterRegionInstanceGroupList--; } -buildUnnamed2214() { +buildUnnamed550() { var o = new core.List<api.InstanceGroupManager>(); o.add(buildInstanceGroupManager()); o.add(buildInstanceGroupManager()); return o; } -checkUnnamed2214(core.List<api.InstanceGroupManager> o) { +checkUnnamed550(core.List<api.InstanceGroupManager> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -9694,14 +10156,14 @@ buildCounterRegionInstanceGroupManagerListWarningData--; } -buildUnnamed2215() { +buildUnnamed551() { var o = new core.List<api.RegionInstanceGroupManagerListWarningData>(); o.add(buildRegionInstanceGroupManagerListWarningData()); o.add(buildRegionInstanceGroupManagerListWarningData()); return o; } -checkUnnamed2215(core.List<api.RegionInstanceGroupManagerListWarningData> o) { +checkUnnamed551(core.List<api.RegionInstanceGroupManagerListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRegionInstanceGroupManagerListWarningData(o[0]); checkRegionInstanceGroupManagerListWarningData(o[1]); @@ -9713,7 +10175,7 @@ buildCounterRegionInstanceGroupManagerListWarning++; if (buildCounterRegionInstanceGroupManagerListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2215(); + o.data = buildUnnamed551(); o.message = "foo"; } buildCounterRegionInstanceGroupManagerListWarning--; @@ -9725,7 +10187,7 @@ buildCounterRegionInstanceGroupManagerListWarning++; if (buildCounterRegionInstanceGroupManagerListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2215(o.data); + checkUnnamed551(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRegionInstanceGroupManagerListWarning--; @@ -9737,7 +10199,7 @@ buildCounterRegionInstanceGroupManagerList++; if (buildCounterRegionInstanceGroupManagerList < 3) { o.id = "foo"; - o.items = buildUnnamed2214(); + o.items = buildUnnamed550(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -9751,7 +10213,7 @@ buildCounterRegionInstanceGroupManagerList++; if (buildCounterRegionInstanceGroupManagerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2214(o.items); + checkUnnamed550(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -9760,14 +10222,14 @@ buildCounterRegionInstanceGroupManagerList--; } -buildUnnamed2216() { +buildUnnamed552() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2216(core.List<core.String> o) { +checkUnnamed552(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9778,7 +10240,7 @@ var o = new api.RegionInstanceGroupManagersAbandonInstancesRequest(); buildCounterRegionInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterRegionInstanceGroupManagersAbandonInstancesRequest < 3) { - o.instances = buildUnnamed2216(); + o.instances = buildUnnamed552(); } buildCounterRegionInstanceGroupManagersAbandonInstancesRequest--; return o; @@ -9788,19 +10250,19 @@ api.RegionInstanceGroupManagersAbandonInstancesRequest o) { buildCounterRegionInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterRegionInstanceGroupManagersAbandonInstancesRequest < 3) { - checkUnnamed2216(o.instances); + checkUnnamed552(o.instances); } buildCounterRegionInstanceGroupManagersAbandonInstancesRequest--; } -buildUnnamed2217() { +buildUnnamed553() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2217(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')); @@ -9811,7 +10273,7 @@ var o = new api.RegionInstanceGroupManagersDeleteInstancesRequest(); buildCounterRegionInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterRegionInstanceGroupManagersDeleteInstancesRequest < 3) { - o.instances = buildUnnamed2217(); + o.instances = buildUnnamed553(); } buildCounterRegionInstanceGroupManagersDeleteInstancesRequest--; return o; @@ -9821,19 +10283,19 @@ api.RegionInstanceGroupManagersDeleteInstancesRequest o) { buildCounterRegionInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterRegionInstanceGroupManagersDeleteInstancesRequest < 3) { - checkUnnamed2217(o.instances); + checkUnnamed553(o.instances); } buildCounterRegionInstanceGroupManagersDeleteInstancesRequest--; } -buildUnnamed2218() { +buildUnnamed554() { var o = new core.List<api.ManagedInstance>(); o.add(buildManagedInstance()); o.add(buildManagedInstance()); return o; } -checkUnnamed2218(core.List<api.ManagedInstance> o) { +checkUnnamed554(core.List<api.ManagedInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstance(o[0]); checkManagedInstance(o[1]); @@ -9844,7 +10306,7 @@ var o = new api.RegionInstanceGroupManagersListInstancesResponse(); buildCounterRegionInstanceGroupManagersListInstancesResponse++; if (buildCounterRegionInstanceGroupManagersListInstancesResponse < 3) { - o.managedInstances = buildUnnamed2218(); + o.managedInstances = buildUnnamed554(); } buildCounterRegionInstanceGroupManagersListInstancesResponse--; return o; @@ -9854,19 +10316,19 @@ api.RegionInstanceGroupManagersListInstancesResponse o) { buildCounterRegionInstanceGroupManagersListInstancesResponse++; if (buildCounterRegionInstanceGroupManagersListInstancesResponse < 3) { - checkUnnamed2218(o.managedInstances); + checkUnnamed554(o.managedInstances); } buildCounterRegionInstanceGroupManagersListInstancesResponse--; } -buildUnnamed2219() { +buildUnnamed555() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2219(core.List<core.String> o) { +checkUnnamed555(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9877,7 +10339,7 @@ var o = new api.RegionInstanceGroupManagersRecreateRequest(); buildCounterRegionInstanceGroupManagersRecreateRequest++; if (buildCounterRegionInstanceGroupManagersRecreateRequest < 3) { - o.instances = buildUnnamed2219(); + o.instances = buildUnnamed555(); } buildCounterRegionInstanceGroupManagersRecreateRequest--; return o; @@ -9887,19 +10349,19 @@ api.RegionInstanceGroupManagersRecreateRequest o) { buildCounterRegionInstanceGroupManagersRecreateRequest++; if (buildCounterRegionInstanceGroupManagersRecreateRequest < 3) { - checkUnnamed2219(o.instances); + checkUnnamed555(o.instances); } buildCounterRegionInstanceGroupManagersRecreateRequest--; } -buildUnnamed2220() { +buildUnnamed556() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2220(core.List<core.String> o) { +checkUnnamed556(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9911,7 +10373,7 @@ buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest < 3) { o.fingerprint = "foo"; - o.targetPools = buildUnnamed2220(); + o.targetPools = buildUnnamed556(); } buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest--; return o; @@ -9922,7 +10384,7 @@ buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2220(o.targetPools); + checkUnnamed556(o.targetPools); } buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest--; } @@ -9947,14 +10409,14 @@ buildCounterRegionInstanceGroupManagersSetTemplateRequest--; } -buildUnnamed2221() { +buildUnnamed557() { var o = new core.List<api.InstanceWithNamedPorts>(); o.add(buildInstanceWithNamedPorts()); o.add(buildInstanceWithNamedPorts()); return o; } -checkUnnamed2221(core.List<api.InstanceWithNamedPorts> o) { +checkUnnamed557(core.List<api.InstanceWithNamedPorts> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceWithNamedPorts(o[0]); checkInstanceWithNamedPorts(o[1]); @@ -9982,15 +10444,14 @@ buildCounterRegionInstanceGroupsListInstancesWarningData--; } -buildUnnamed2222() { +buildUnnamed558() { var o = new core.List<api.RegionInstanceGroupsListInstancesWarningData>(); o.add(buildRegionInstanceGroupsListInstancesWarningData()); o.add(buildRegionInstanceGroupsListInstancesWarningData()); return o; } -checkUnnamed2222( - core.List<api.RegionInstanceGroupsListInstancesWarningData> o) { +checkUnnamed558(core.List<api.RegionInstanceGroupsListInstancesWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRegionInstanceGroupsListInstancesWarningData(o[0]); checkRegionInstanceGroupsListInstancesWarningData(o[1]); @@ -10002,7 +10463,7 @@ buildCounterRegionInstanceGroupsListInstancesWarning++; if (buildCounterRegionInstanceGroupsListInstancesWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2222(); + o.data = buildUnnamed558(); o.message = "foo"; } buildCounterRegionInstanceGroupsListInstancesWarning--; @@ -10014,7 +10475,7 @@ buildCounterRegionInstanceGroupsListInstancesWarning++; if (buildCounterRegionInstanceGroupsListInstancesWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2222(o.data); + checkUnnamed558(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRegionInstanceGroupsListInstancesWarning--; @@ -10026,7 +10487,7 @@ buildCounterRegionInstanceGroupsListInstances++; if (buildCounterRegionInstanceGroupsListInstances < 3) { o.id = "foo"; - o.items = buildUnnamed2221(); + o.items = buildUnnamed557(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -10041,7 +10502,7 @@ buildCounterRegionInstanceGroupsListInstances++; if (buildCounterRegionInstanceGroupsListInstances < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2221(o.items); + checkUnnamed557(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -10072,14 +10533,14 @@ buildCounterRegionInstanceGroupsListInstancesRequest--; } -buildUnnamed2223() { +buildUnnamed559() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2223(core.List<api.NamedPort> o) { +checkUnnamed559(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -10091,7 +10552,7 @@ buildCounterRegionInstanceGroupsSetNamedPortsRequest++; if (buildCounterRegionInstanceGroupsSetNamedPortsRequest < 3) { o.fingerprint = "foo"; - o.namedPorts = buildUnnamed2223(); + o.namedPorts = buildUnnamed559(); } buildCounterRegionInstanceGroupsSetNamedPortsRequest--; return o; @@ -10102,19 +10563,19 @@ buildCounterRegionInstanceGroupsSetNamedPortsRequest++; if (buildCounterRegionInstanceGroupsSetNamedPortsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2223(o.namedPorts); + checkUnnamed559(o.namedPorts); } buildCounterRegionInstanceGroupsSetNamedPortsRequest--; } -buildUnnamed2224() { +buildUnnamed560() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed2224(core.List<api.Region> o) { +checkUnnamed560(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -10141,14 +10602,14 @@ buildCounterRegionListWarningData--; } -buildUnnamed2225() { +buildUnnamed561() { var o = new core.List<api.RegionListWarningData>(); o.add(buildRegionListWarningData()); o.add(buildRegionListWarningData()); return o; } -checkUnnamed2225(core.List<api.RegionListWarningData> o) { +checkUnnamed561(core.List<api.RegionListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRegionListWarningData(o[0]); checkRegionListWarningData(o[1]); @@ -10160,7 +10621,7 @@ buildCounterRegionListWarning++; if (buildCounterRegionListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2225(); + o.data = buildUnnamed561(); o.message = "foo"; } buildCounterRegionListWarning--; @@ -10171,7 +10632,7 @@ buildCounterRegionListWarning++; if (buildCounterRegionListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2225(o.data); + checkUnnamed561(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRegionListWarning--; @@ -10183,7 +10644,7 @@ buildCounterRegionList++; if (buildCounterRegionList < 3) { o.id = "foo"; - o.items = buildUnnamed2224(); + o.items = buildUnnamed560(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -10197,7 +10658,7 @@ buildCounterRegionList++; if (buildCounterRegionList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2224(o.items); + checkUnnamed560(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -10206,6 +10667,40 @@ buildCounterRegionList--; } +buildUnnamed562() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed562(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 buildCounterRegionSetLabelsRequest = 0; +buildRegionSetLabelsRequest() { + var o = new api.RegionSetLabelsRequest(); + buildCounterRegionSetLabelsRequest++; + if (buildCounterRegionSetLabelsRequest < 3) { + o.labelFingerprint = "foo"; + o.labels = buildUnnamed562(); + } + buildCounterRegionSetLabelsRequest--; + return o; +} + +checkRegionSetLabelsRequest(api.RegionSetLabelsRequest o) { + buildCounterRegionSetLabelsRequest++; + if (buildCounterRegionSetLabelsRequest < 3) { + unittest.expect(o.labelFingerprint, unittest.equals('foo')); + checkUnnamed562(o.labels); + } + buildCounterRegionSetLabelsRequest--; +} + core.int buildCounterResourceCommitment = 0; buildResourceCommitment() { var o = new api.ResourceCommitment(); @@ -10246,14 +10741,14 @@ buildCounterResourceGroupReference--; } -buildUnnamed2226() { +buildUnnamed563() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2226(core.List<core.String> o) { +checkUnnamed563(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -10280,14 +10775,14 @@ buildCounterRouteWarningsData--; } -buildUnnamed2227() { +buildUnnamed564() { var o = new core.List<api.RouteWarningsData>(); o.add(buildRouteWarningsData()); o.add(buildRouteWarningsData()); return o; } -checkUnnamed2227(core.List<api.RouteWarningsData> o) { +checkUnnamed564(core.List<api.RouteWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkRouteWarningsData(o[0]); checkRouteWarningsData(o[1]); @@ -10299,7 +10794,7 @@ buildCounterRouteWarnings++; if (buildCounterRouteWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2227(); + o.data = buildUnnamed564(); o.message = "foo"; } buildCounterRouteWarnings--; @@ -10310,20 +10805,20 @@ buildCounterRouteWarnings++; if (buildCounterRouteWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2227(o.data); + checkUnnamed564(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRouteWarnings--; } -buildUnnamed2228() { +buildUnnamed565() { var o = new core.List<api.RouteWarnings>(); o.add(buildRouteWarnings()); o.add(buildRouteWarnings()); return o; } -checkUnnamed2228(core.List<api.RouteWarnings> o) { +checkUnnamed565(core.List<api.RouteWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkRouteWarnings(o[0]); checkRouteWarnings(o[1]); @@ -10349,8 +10844,8 @@ o.nextHopVpnTunnel = "foo"; o.priority = 42; o.selfLink = "foo"; - o.tags = buildUnnamed2226(); - o.warnings = buildUnnamed2228(); + o.tags = buildUnnamed563(); + o.warnings = buildUnnamed565(); } buildCounterRoute--; return o; @@ -10374,20 +10869,20 @@ unittest.expect(o.nextHopVpnTunnel, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42)); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2226(o.tags); - checkUnnamed2228(o.warnings); + checkUnnamed563(o.tags); + checkUnnamed565(o.warnings); } buildCounterRoute--; } -buildUnnamed2229() { +buildUnnamed566() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2229(core.List<api.Route> o) { +checkUnnamed566(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); @@ -10414,14 +10909,14 @@ buildCounterRouteListWarningData--; } -buildUnnamed2230() { +buildUnnamed567() { var o = new core.List<api.RouteListWarningData>(); o.add(buildRouteListWarningData()); o.add(buildRouteListWarningData()); return o; } -checkUnnamed2230(core.List<api.RouteListWarningData> o) { +checkUnnamed567(core.List<api.RouteListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRouteListWarningData(o[0]); checkRouteListWarningData(o[1]); @@ -10433,7 +10928,7 @@ buildCounterRouteListWarning++; if (buildCounterRouteListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2230(); + o.data = buildUnnamed567(); o.message = "foo"; } buildCounterRouteListWarning--; @@ -10444,7 +10939,7 @@ buildCounterRouteListWarning++; if (buildCounterRouteListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2230(o.data); + checkUnnamed567(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRouteListWarning--; @@ -10456,7 +10951,7 @@ buildCounterRouteList++; if (buildCounterRouteList < 3) { o.id = "foo"; - o.items = buildUnnamed2229(); + o.items = buildUnnamed566(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -10470,7 +10965,7 @@ buildCounterRouteList++; if (buildCounterRouteList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2229(o.items); + checkUnnamed566(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -10479,27 +10974,27 @@ buildCounterRouteList--; } -buildUnnamed2231() { +buildUnnamed568() { var o = new core.List<api.RouterBgpPeer>(); o.add(buildRouterBgpPeer()); o.add(buildRouterBgpPeer()); return o; } -checkUnnamed2231(core.List<api.RouterBgpPeer> o) { +checkUnnamed568(core.List<api.RouterBgpPeer> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterBgpPeer(o[0]); checkRouterBgpPeer(o[1]); } -buildUnnamed2232() { +buildUnnamed569() { var o = new core.List<api.RouterInterface>(); o.add(buildRouterInterface()); o.add(buildRouterInterface()); return o; } -checkUnnamed2232(core.List<api.RouterInterface> o) { +checkUnnamed569(core.List<api.RouterInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterInterface(o[0]); checkRouterInterface(o[1]); @@ -10511,11 +11006,11 @@ buildCounterRouter++; if (buildCounterRouter < 3) { o.bgp = buildRouterBgp(); - o.bgpPeers = buildUnnamed2231(); + o.bgpPeers = buildUnnamed568(); o.creationTimestamp = "foo"; o.description = "foo"; o.id = "foo"; - o.interfaces = buildUnnamed2232(); + o.interfaces = buildUnnamed569(); o.kind = "foo"; o.name = "foo"; o.network = "foo"; @@ -10530,11 +11025,11 @@ buildCounterRouter++; if (buildCounterRouter < 3) { checkRouterBgp(o.bgp); - checkUnnamed2231(o.bgpPeers); + checkUnnamed568(o.bgpPeers); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2232(o.interfaces); + checkUnnamed569(o.interfaces); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); @@ -10544,14 +11039,35 @@ buildCounterRouter--; } -buildUnnamed2233() { +core.int buildCounterRouterAdvertisedIpRange = 0; +buildRouterAdvertisedIpRange() { + var o = new api.RouterAdvertisedIpRange(); + buildCounterRouterAdvertisedIpRange++; + if (buildCounterRouterAdvertisedIpRange < 3) { + o.description = "foo"; + o.range = "foo"; + } + buildCounterRouterAdvertisedIpRange--; + return o; +} + +checkRouterAdvertisedIpRange(api.RouterAdvertisedIpRange o) { + buildCounterRouterAdvertisedIpRange++; + if (buildCounterRouterAdvertisedIpRange < 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.range, unittest.equals('foo')); + } + buildCounterRouterAdvertisedIpRange--; +} + +buildUnnamed570() { var o = new core.Map<core.String, api.RoutersScopedList>(); o["x"] = buildRoutersScopedList(); o["y"] = buildRoutersScopedList(); return o; } -checkUnnamed2233(core.Map<core.String, api.RoutersScopedList> o) { +checkUnnamed570(core.Map<core.String, api.RoutersScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkRoutersScopedList(o["x"]); checkRoutersScopedList(o["y"]); @@ -10578,14 +11094,14 @@ buildCounterRouterAggregatedListWarningData--; } -buildUnnamed2234() { +buildUnnamed571() { var o = new core.List<api.RouterAggregatedListWarningData>(); o.add(buildRouterAggregatedListWarningData()); o.add(buildRouterAggregatedListWarningData()); return o; } -checkUnnamed2234(core.List<api.RouterAggregatedListWarningData> o) { +checkUnnamed571(core.List<api.RouterAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterAggregatedListWarningData(o[0]); checkRouterAggregatedListWarningData(o[1]); @@ -10597,7 +11113,7 @@ buildCounterRouterAggregatedListWarning++; if (buildCounterRouterAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2234(); + o.data = buildUnnamed571(); o.message = "foo"; } buildCounterRouterAggregatedListWarning--; @@ -10608,7 +11124,7 @@ buildCounterRouterAggregatedListWarning++; if (buildCounterRouterAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2234(o.data); + checkUnnamed571(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRouterAggregatedListWarning--; @@ -10620,7 +11136,7 @@ buildCounterRouterAggregatedList++; if (buildCounterRouterAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2233(); + o.items = buildUnnamed570(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -10634,7 +11150,7 @@ buildCounterRouterAggregatedList++; if (buildCounterRouterAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2233(o.items); + checkUnnamed570(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -10643,11 +11159,40 @@ buildCounterRouterAggregatedList--; } +buildUnnamed572() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed572(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed573() { + var o = new core.List<api.RouterAdvertisedIpRange>(); + o.add(buildRouterAdvertisedIpRange()); + o.add(buildRouterAdvertisedIpRange()); + return o; +} + +checkUnnamed573(core.List<api.RouterAdvertisedIpRange> o) { + unittest.expect(o, unittest.hasLength(2)); + checkRouterAdvertisedIpRange(o[0]); + checkRouterAdvertisedIpRange(o[1]); +} + core.int buildCounterRouterBgp = 0; buildRouterBgp() { var o = new api.RouterBgp(); buildCounterRouterBgp++; if (buildCounterRouterBgp < 3) { + o.advertiseMode = "foo"; + o.advertisedGroups = buildUnnamed572(); + o.advertisedIpRanges = buildUnnamed573(); o.asn = 42; } buildCounterRouterBgp--; @@ -10657,19 +11202,52 @@ checkRouterBgp(api.RouterBgp o) { buildCounterRouterBgp++; if (buildCounterRouterBgp < 3) { + unittest.expect(o.advertiseMode, unittest.equals('foo')); + checkUnnamed572(o.advertisedGroups); + checkUnnamed573(o.advertisedIpRanges); unittest.expect(o.asn, unittest.equals(42)); } buildCounterRouterBgp--; } +buildUnnamed574() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed574(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed575() { + var o = new core.List<api.RouterAdvertisedIpRange>(); + o.add(buildRouterAdvertisedIpRange()); + o.add(buildRouterAdvertisedIpRange()); + return o; +} + +checkUnnamed575(core.List<api.RouterAdvertisedIpRange> o) { + unittest.expect(o, unittest.hasLength(2)); + checkRouterAdvertisedIpRange(o[0]); + checkRouterAdvertisedIpRange(o[1]); +} + core.int buildCounterRouterBgpPeer = 0; buildRouterBgpPeer() { var o = new api.RouterBgpPeer(); buildCounterRouterBgpPeer++; if (buildCounterRouterBgpPeer < 3) { + o.advertiseMode = "foo"; + o.advertisedGroups = buildUnnamed574(); + o.advertisedIpRanges = buildUnnamed575(); o.advertisedRoutePriority = 42; o.interfaceName = "foo"; o.ipAddress = "foo"; + o.managementType = "foo"; o.name = "foo"; o.peerAsn = 42; o.peerIpAddress = "foo"; @@ -10681,9 +11259,13 @@ checkRouterBgpPeer(api.RouterBgpPeer o) { buildCounterRouterBgpPeer++; if (buildCounterRouterBgpPeer < 3) { + unittest.expect(o.advertiseMode, unittest.equals('foo')); + checkUnnamed574(o.advertisedGroups); + checkUnnamed575(o.advertisedIpRanges); unittest.expect(o.advertisedRoutePriority, unittest.equals(42)); unittest.expect(o.interfaceName, unittest.equals('foo')); unittest.expect(o.ipAddress, unittest.equals('foo')); + unittest.expect(o.managementType, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.peerAsn, unittest.equals(42)); unittest.expect(o.peerIpAddress, unittest.equals('foo')); @@ -10699,6 +11281,7 @@ o.ipRange = "foo"; o.linkedInterconnectAttachment = "foo"; o.linkedVpnTunnel = "foo"; + o.managementType = "foo"; o.name = "foo"; } buildCounterRouterInterface--; @@ -10711,19 +11294,20 @@ unittest.expect(o.ipRange, unittest.equals('foo')); unittest.expect(o.linkedInterconnectAttachment, unittest.equals('foo')); unittest.expect(o.linkedVpnTunnel, unittest.equals('foo')); + unittest.expect(o.managementType, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } buildCounterRouterInterface--; } -buildUnnamed2235() { +buildUnnamed576() { var o = new core.List<api.Router>(); o.add(buildRouter()); o.add(buildRouter()); return o; } -checkUnnamed2235(core.List<api.Router> o) { +checkUnnamed576(core.List<api.Router> o) { unittest.expect(o, unittest.hasLength(2)); checkRouter(o[0]); checkRouter(o[1]); @@ -10750,14 +11334,14 @@ buildCounterRouterListWarningData--; } -buildUnnamed2236() { +buildUnnamed577() { var o = new core.List<api.RouterListWarningData>(); o.add(buildRouterListWarningData()); o.add(buildRouterListWarningData()); return o; } -checkUnnamed2236(core.List<api.RouterListWarningData> o) { +checkUnnamed577(core.List<api.RouterListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterListWarningData(o[0]); checkRouterListWarningData(o[1]); @@ -10769,7 +11353,7 @@ buildCounterRouterListWarning++; if (buildCounterRouterListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2236(); + o.data = buildUnnamed577(); o.message = "foo"; } buildCounterRouterListWarning--; @@ -10780,7 +11364,7 @@ buildCounterRouterListWarning++; if (buildCounterRouterListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2236(o.data); + checkUnnamed577(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRouterListWarning--; @@ -10792,7 +11376,7 @@ buildCounterRouterList++; if (buildCounterRouterList < 3) { o.id = "foo"; - o.items = buildUnnamed2235(); + o.items = buildUnnamed576(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -10806,7 +11390,7 @@ buildCounterRouterList++; if (buildCounterRouterList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2235(o.items); + checkUnnamed576(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -10815,40 +11399,40 @@ buildCounterRouterList--; } -buildUnnamed2237() { +buildUnnamed578() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2237(core.List<api.Route> o) { +checkUnnamed578(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); } -buildUnnamed2238() { +buildUnnamed579() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2238(core.List<api.Route> o) { +checkUnnamed579(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); } -buildUnnamed2239() { +buildUnnamed580() { var o = new core.List<api.RouterStatusBgpPeerStatus>(); o.add(buildRouterStatusBgpPeerStatus()); o.add(buildRouterStatusBgpPeerStatus()); return o; } -checkUnnamed2239(core.List<api.RouterStatusBgpPeerStatus> o) { +checkUnnamed580(core.List<api.RouterStatusBgpPeerStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterStatusBgpPeerStatus(o[0]); checkRouterStatusBgpPeerStatus(o[1]); @@ -10859,9 +11443,9 @@ var o = new api.RouterStatus(); buildCounterRouterStatus++; if (buildCounterRouterStatus < 3) { - o.bestRoutes = buildUnnamed2237(); - o.bestRoutesForRouter = buildUnnamed2238(); - o.bgpPeerStatus = buildUnnamed2239(); + o.bestRoutes = buildUnnamed578(); + o.bestRoutesForRouter = buildUnnamed579(); + o.bgpPeerStatus = buildUnnamed580(); o.network = "foo"; } buildCounterRouterStatus--; @@ -10871,22 +11455,22 @@ checkRouterStatus(api.RouterStatus o) { buildCounterRouterStatus++; if (buildCounterRouterStatus < 3) { - checkUnnamed2237(o.bestRoutes); - checkUnnamed2238(o.bestRoutesForRouter); - checkUnnamed2239(o.bgpPeerStatus); + checkUnnamed578(o.bestRoutes); + checkUnnamed579(o.bestRoutesForRouter); + checkUnnamed580(o.bgpPeerStatus); unittest.expect(o.network, unittest.equals('foo')); } buildCounterRouterStatus--; } -buildUnnamed2240() { +buildUnnamed581() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2240(core.List<api.Route> o) { +checkUnnamed581(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); @@ -10897,7 +11481,7 @@ var o = new api.RouterStatusBgpPeerStatus(); buildCounterRouterStatusBgpPeerStatus++; if (buildCounterRouterStatusBgpPeerStatus < 3) { - o.advertisedRoutes = buildUnnamed2240(); + o.advertisedRoutes = buildUnnamed581(); o.ipAddress = "foo"; o.linkedVpnTunnel = "foo"; o.name = "foo"; @@ -10915,7 +11499,7 @@ checkRouterStatusBgpPeerStatus(api.RouterStatusBgpPeerStatus o) { buildCounterRouterStatusBgpPeerStatus++; if (buildCounterRouterStatusBgpPeerStatus < 3) { - checkUnnamed2240(o.advertisedRoutes); + checkUnnamed581(o.advertisedRoutes); unittest.expect(o.ipAddress, unittest.equals('foo')); unittest.expect(o.linkedVpnTunnel, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -10969,14 +11553,14 @@ buildCounterRoutersPreviewResponse--; } -buildUnnamed2241() { +buildUnnamed582() { var o = new core.List<api.Router>(); o.add(buildRouter()); o.add(buildRouter()); return o; } -checkUnnamed2241(core.List<api.Router> o) { +checkUnnamed582(core.List<api.Router> o) { unittest.expect(o, unittest.hasLength(2)); checkRouter(o[0]); checkRouter(o[1]); @@ -11003,14 +11587,14 @@ buildCounterRoutersScopedListWarningData--; } -buildUnnamed2242() { +buildUnnamed583() { var o = new core.List<api.RoutersScopedListWarningData>(); o.add(buildRoutersScopedListWarningData()); o.add(buildRoutersScopedListWarningData()); return o; } -checkUnnamed2242(core.List<api.RoutersScopedListWarningData> o) { +checkUnnamed583(core.List<api.RoutersScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRoutersScopedListWarningData(o[0]); checkRoutersScopedListWarningData(o[1]); @@ -11022,7 +11606,7 @@ buildCounterRoutersScopedListWarning++; if (buildCounterRoutersScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2242(); + o.data = buildUnnamed583(); o.message = "foo"; } buildCounterRoutersScopedListWarning--; @@ -11033,7 +11617,7 @@ buildCounterRoutersScopedListWarning++; if (buildCounterRoutersScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2242(o.data); + checkUnnamed583(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRoutersScopedListWarning--; @@ -11044,7 +11628,7 @@ var o = new api.RoutersScopedList(); buildCounterRoutersScopedList++; if (buildCounterRoutersScopedList < 3) { - o.routers = buildUnnamed2241(); + o.routers = buildUnnamed582(); o.warning = buildRoutersScopedListWarning(); } buildCounterRoutersScopedList--; @@ -11054,7 +11638,7 @@ checkRoutersScopedList(api.RoutersScopedList o) { buildCounterRoutersScopedList++; if (buildCounterRoutersScopedList < 3) { - checkUnnamed2241(o.routers); + checkUnnamed582(o.routers); checkRoutersScopedListWarning(o.warning); } buildCounterRoutersScopedList--; @@ -11137,14 +11721,14 @@ buildCounterSerialPortOutput--; } -buildUnnamed2243() { +buildUnnamed584() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2243(core.List<core.String> o) { +checkUnnamed584(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -11156,7 +11740,7 @@ buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { o.email = "foo"; - o.scopes = buildUnnamed2243(); + o.scopes = buildUnnamed584(); } buildCounterServiceAccount--; return o; @@ -11166,32 +11750,45 @@ buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { unittest.expect(o.email, unittest.equals('foo')); - checkUnnamed2243(o.scopes); + checkUnnamed584(o.scopes); } buildCounterServiceAccount--; } -buildUnnamed2244() { +buildUnnamed585() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2244(core.Map<core.String, core.String> o) { +checkUnnamed585(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')); } -buildUnnamed2245() { +buildUnnamed586() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2245(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')); +} + +buildUnnamed587() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed587(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -11208,8 +11805,9 @@ o.id = "foo"; o.kind = "foo"; o.labelFingerprint = "foo"; - o.labels = buildUnnamed2244(); - o.licenses = buildUnnamed2245(); + o.labels = buildUnnamed585(); + o.licenseCodes = buildUnnamed586(); + o.licenses = buildUnnamed587(); o.name = "foo"; o.selfLink = "foo"; o.snapshotEncryptionKey = buildCustomerEncryptionKey(); @@ -11233,8 +11831,9 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed2244(o.labels); - checkUnnamed2245(o.licenses); + checkUnnamed585(o.labels); + checkUnnamed586(o.licenseCodes); + checkUnnamed587(o.licenses); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); checkCustomerEncryptionKey(o.snapshotEncryptionKey); @@ -11248,14 +11847,14 @@ buildCounterSnapshot--; } -buildUnnamed2246() { +buildUnnamed588() { var o = new core.List<api.Snapshot>(); o.add(buildSnapshot()); o.add(buildSnapshot()); return o; } -checkUnnamed2246(core.List<api.Snapshot> o) { +checkUnnamed588(core.List<api.Snapshot> o) { unittest.expect(o, unittest.hasLength(2)); checkSnapshot(o[0]); checkSnapshot(o[1]); @@ -11282,14 +11881,14 @@ buildCounterSnapshotListWarningData--; } -buildUnnamed2247() { +buildUnnamed589() { var o = new core.List<api.SnapshotListWarningData>(); o.add(buildSnapshotListWarningData()); o.add(buildSnapshotListWarningData()); return o; } -checkUnnamed2247(core.List<api.SnapshotListWarningData> o) { +checkUnnamed589(core.List<api.SnapshotListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkSnapshotListWarningData(o[0]); checkSnapshotListWarningData(o[1]); @@ -11301,7 +11900,7 @@ buildCounterSnapshotListWarning++; if (buildCounterSnapshotListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2247(); + o.data = buildUnnamed589(); o.message = "foo"; } buildCounterSnapshotListWarning--; @@ -11312,7 +11911,7 @@ buildCounterSnapshotListWarning++; if (buildCounterSnapshotListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2247(o.data); + checkUnnamed589(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterSnapshotListWarning--; @@ -11324,7 +11923,7 @@ buildCounterSnapshotList++; if (buildCounterSnapshotList < 3) { o.id = "foo"; - o.items = buildUnnamed2246(); + o.items = buildUnnamed588(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -11338,7 +11937,7 @@ buildCounterSnapshotList++; if (buildCounterSnapshotList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2246(o.items); + checkUnnamed588(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -11380,14 +11979,14 @@ buildCounterSslCertificate--; } -buildUnnamed2248() { +buildUnnamed590() { var o = new core.List<api.SslCertificate>(); o.add(buildSslCertificate()); o.add(buildSslCertificate()); return o; } -checkUnnamed2248(core.List<api.SslCertificate> o) { +checkUnnamed590(core.List<api.SslCertificate> o) { unittest.expect(o, unittest.hasLength(2)); checkSslCertificate(o[0]); checkSslCertificate(o[1]); @@ -11414,14 +12013,14 @@ buildCounterSslCertificateListWarningData--; } -buildUnnamed2249() { +buildUnnamed591() { var o = new core.List<api.SslCertificateListWarningData>(); o.add(buildSslCertificateListWarningData()); o.add(buildSslCertificateListWarningData()); return o; } -checkUnnamed2249(core.List<api.SslCertificateListWarningData> o) { +checkUnnamed591(core.List<api.SslCertificateListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkSslCertificateListWarningData(o[0]); checkSslCertificateListWarningData(o[1]); @@ -11433,7 +12032,7 @@ buildCounterSslCertificateListWarning++; if (buildCounterSslCertificateListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2249(); + o.data = buildUnnamed591(); o.message = "foo"; } buildCounterSslCertificateListWarning--; @@ -11444,7 +12043,7 @@ buildCounterSslCertificateListWarning++; if (buildCounterSslCertificateListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2249(o.data); + checkUnnamed591(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterSslCertificateListWarning--; @@ -11456,7 +12055,7 @@ buildCounterSslCertificateList++; if (buildCounterSslCertificateList < 3) { o.id = "foo"; - o.items = buildUnnamed2248(); + o.items = buildUnnamed590(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -11470,7 +12069,7 @@ buildCounterSslCertificateList++; if (buildCounterSslCertificateList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2248(o.items); + checkUnnamed590(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -11479,14 +12078,302 @@ buildCounterSslCertificateList--; } -buildUnnamed2250() { +buildUnnamed592() { + var o = new core.List<api.SslPolicy>(); + o.add(buildSslPolicy()); + o.add(buildSslPolicy()); + return o; +} + +checkUnnamed592(core.List<api.SslPolicy> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSslPolicy(o[0]); + checkSslPolicy(o[1]); +} + +core.int buildCounterSslPoliciesListWarningData = 0; +buildSslPoliciesListWarningData() { + var o = new api.SslPoliciesListWarningData(); + buildCounterSslPoliciesListWarningData++; + if (buildCounterSslPoliciesListWarningData < 3) { + o.key = "foo"; + o.value = "foo"; + } + buildCounterSslPoliciesListWarningData--; + return o; +} + +checkSslPoliciesListWarningData(api.SslPoliciesListWarningData o) { + buildCounterSslPoliciesListWarningData++; + if (buildCounterSslPoliciesListWarningData < 3) { + unittest.expect(o.key, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterSslPoliciesListWarningData--; +} + +buildUnnamed593() { + var o = new core.List<api.SslPoliciesListWarningData>(); + o.add(buildSslPoliciesListWarningData()); + o.add(buildSslPoliciesListWarningData()); + return o; +} + +checkUnnamed593(core.List<api.SslPoliciesListWarningData> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSslPoliciesListWarningData(o[0]); + checkSslPoliciesListWarningData(o[1]); +} + +core.int buildCounterSslPoliciesListWarning = 0; +buildSslPoliciesListWarning() { + var o = new api.SslPoliciesListWarning(); + buildCounterSslPoliciesListWarning++; + if (buildCounterSslPoliciesListWarning < 3) { + o.code = "foo"; + o.data = buildUnnamed593(); + o.message = "foo"; + } + buildCounterSslPoliciesListWarning--; + return o; +} + +checkSslPoliciesListWarning(api.SslPoliciesListWarning o) { + buildCounterSslPoliciesListWarning++; + if (buildCounterSslPoliciesListWarning < 3) { + unittest.expect(o.code, unittest.equals('foo')); + checkUnnamed593(o.data); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterSslPoliciesListWarning--; +} + +core.int buildCounterSslPoliciesList = 0; +buildSslPoliciesList() { + var o = new api.SslPoliciesList(); + buildCounterSslPoliciesList++; + if (buildCounterSslPoliciesList < 3) { + o.id = "foo"; + o.items = buildUnnamed592(); + o.kind = "foo"; + o.nextPageToken = "foo"; + o.selfLink = "foo"; + o.warning = buildSslPoliciesListWarning(); + } + buildCounterSslPoliciesList--; + return o; +} + +checkSslPoliciesList(api.SslPoliciesList o) { + buildCounterSslPoliciesList++; + if (buildCounterSslPoliciesList < 3) { + unittest.expect(o.id, unittest.equals('foo')); + checkUnnamed592(o.items); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + checkSslPoliciesListWarning(o.warning); + } + buildCounterSslPoliciesList--; +} + +buildUnnamed594() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed594(core.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 buildCounterSslPoliciesListAvailableFeaturesResponse = 0; +buildSslPoliciesListAvailableFeaturesResponse() { + var o = new api.SslPoliciesListAvailableFeaturesResponse(); + buildCounterSslPoliciesListAvailableFeaturesResponse++; + if (buildCounterSslPoliciesListAvailableFeaturesResponse < 3) { + o.features = buildUnnamed594(); + } + buildCounterSslPoliciesListAvailableFeaturesResponse--; + return o; +} + +checkSslPoliciesListAvailableFeaturesResponse( + api.SslPoliciesListAvailableFeaturesResponse o) { + buildCounterSslPoliciesListAvailableFeaturesResponse++; + if (buildCounterSslPoliciesListAvailableFeaturesResponse < 3) { + checkUnnamed594(o.features); + } + buildCounterSslPoliciesListAvailableFeaturesResponse--; +} + +buildUnnamed595() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed595(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed596() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed596(core.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 buildCounterSslPolicyWarningsData = 0; +buildSslPolicyWarningsData() { + var o = new api.SslPolicyWarningsData(); + buildCounterSslPolicyWarningsData++; + if (buildCounterSslPolicyWarningsData < 3) { + o.key = "foo"; + o.value = "foo"; + } + buildCounterSslPolicyWarningsData--; + return o; +} + +checkSslPolicyWarningsData(api.SslPolicyWarningsData o) { + buildCounterSslPolicyWarningsData++; + if (buildCounterSslPolicyWarningsData < 3) { + unittest.expect(o.key, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterSslPolicyWarningsData--; +} + +buildUnnamed597() { + var o = new core.List<api.SslPolicyWarningsData>(); + o.add(buildSslPolicyWarningsData()); + o.add(buildSslPolicyWarningsData()); + return o; +} + +checkUnnamed597(core.List<api.SslPolicyWarningsData> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSslPolicyWarningsData(o[0]); + checkSslPolicyWarningsData(o[1]); +} + +core.int buildCounterSslPolicyWarnings = 0; +buildSslPolicyWarnings() { + var o = new api.SslPolicyWarnings(); + buildCounterSslPolicyWarnings++; + if (buildCounterSslPolicyWarnings < 3) { + o.code = "foo"; + o.data = buildUnnamed597(); + o.message = "foo"; + } + buildCounterSslPolicyWarnings--; + return o; +} + +checkSslPolicyWarnings(api.SslPolicyWarnings o) { + buildCounterSslPolicyWarnings++; + if (buildCounterSslPolicyWarnings < 3) { + unittest.expect(o.code, unittest.equals('foo')); + checkUnnamed597(o.data); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterSslPolicyWarnings--; +} + +buildUnnamed598() { + var o = new core.List<api.SslPolicyWarnings>(); + o.add(buildSslPolicyWarnings()); + o.add(buildSslPolicyWarnings()); + return o; +} + +checkUnnamed598(core.List<api.SslPolicyWarnings> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSslPolicyWarnings(o[0]); + checkSslPolicyWarnings(o[1]); +} + +core.int buildCounterSslPolicy = 0; +buildSslPolicy() { + var o = new api.SslPolicy(); + buildCounterSslPolicy++; + if (buildCounterSslPolicy < 3) { + o.creationTimestamp = "foo"; + o.customFeatures = buildUnnamed595(); + o.description = "foo"; + o.enabledFeatures = buildUnnamed596(); + o.fingerprint = "foo"; + o.id = "foo"; + o.kind = "foo"; + o.minTlsVersion = "foo"; + o.name = "foo"; + o.profile = "foo"; + o.selfLink = "foo"; + o.warnings = buildUnnamed598(); + } + buildCounterSslPolicy--; + return o; +} + +checkSslPolicy(api.SslPolicy o) { + buildCounterSslPolicy++; + if (buildCounterSslPolicy < 3) { + unittest.expect(o.creationTimestamp, unittest.equals('foo')); + checkUnnamed595(o.customFeatures); + unittest.expect(o.description, unittest.equals('foo')); + checkUnnamed596(o.enabledFeatures); + unittest.expect(o.fingerprint, unittest.equals('foo')); + unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.minTlsVersion, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.profile, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed598(o.warnings); + } + buildCounterSslPolicy--; +} + +core.int buildCounterSslPolicyReference = 0; +buildSslPolicyReference() { + var o = new api.SslPolicyReference(); + buildCounterSslPolicyReference++; + if (buildCounterSslPolicyReference < 3) { + o.sslPolicy = "foo"; + } + buildCounterSslPolicyReference--; + return o; +} + +checkSslPolicyReference(api.SslPolicyReference o) { + buildCounterSslPolicyReference++; + if (buildCounterSslPolicyReference < 3) { + unittest.expect(o.sslPolicy, unittest.equals('foo')); + } + buildCounterSslPolicyReference--; +} + +buildUnnamed599() { var o = new core.List<api.SubnetworkSecondaryRange>(); o.add(buildSubnetworkSecondaryRange()); o.add(buildSubnetworkSecondaryRange()); return o; } -checkUnnamed2250(core.List<api.SubnetworkSecondaryRange> o) { +checkUnnamed599(core.List<api.SubnetworkSecondaryRange> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworkSecondaryRange(o[0]); checkSubnetworkSecondaryRange(o[1]); @@ -11499,6 +12386,8 @@ if (buildCounterSubnetwork < 3) { o.creationTimestamp = "foo"; o.description = "foo"; + o.enableFlowLogs = true; + o.fingerprint = "foo"; o.gatewayAddress = "foo"; o.id = "foo"; o.ipCidrRange = "foo"; @@ -11507,7 +12396,7 @@ o.network = "foo"; o.privateIpGoogleAccess = true; o.region = "foo"; - o.secondaryIpRanges = buildUnnamed2250(); + o.secondaryIpRanges = buildUnnamed599(); o.selfLink = "foo"; } buildCounterSubnetwork--; @@ -11519,6 +12408,8 @@ if (buildCounterSubnetwork < 3) { unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.enableFlowLogs, unittest.isTrue); + unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.gatewayAddress, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.ipCidrRange, unittest.equals('foo')); @@ -11527,20 +12418,20 @@ unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.privateIpGoogleAccess, unittest.isTrue); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed2250(o.secondaryIpRanges); + checkUnnamed599(o.secondaryIpRanges); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterSubnetwork--; } -buildUnnamed2251() { +buildUnnamed600() { var o = new core.Map<core.String, api.SubnetworksScopedList>(); o["x"] = buildSubnetworksScopedList(); o["y"] = buildSubnetworksScopedList(); return o; } -checkUnnamed2251(core.Map<core.String, api.SubnetworksScopedList> o) { +checkUnnamed600(core.Map<core.String, api.SubnetworksScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworksScopedList(o["x"]); checkSubnetworksScopedList(o["y"]); @@ -11568,14 +12459,14 @@ buildCounterSubnetworkAggregatedListWarningData--; } -buildUnnamed2252() { +buildUnnamed601() { var o = new core.List<api.SubnetworkAggregatedListWarningData>(); o.add(buildSubnetworkAggregatedListWarningData()); o.add(buildSubnetworkAggregatedListWarningData()); return o; } -checkUnnamed2252(core.List<api.SubnetworkAggregatedListWarningData> o) { +checkUnnamed601(core.List<api.SubnetworkAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworkAggregatedListWarningData(o[0]); checkSubnetworkAggregatedListWarningData(o[1]); @@ -11587,7 +12478,7 @@ buildCounterSubnetworkAggregatedListWarning++; if (buildCounterSubnetworkAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2252(); + o.data = buildUnnamed601(); o.message = "foo"; } buildCounterSubnetworkAggregatedListWarning--; @@ -11598,7 +12489,7 @@ buildCounterSubnetworkAggregatedListWarning++; if (buildCounterSubnetworkAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2252(o.data); + checkUnnamed601(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterSubnetworkAggregatedListWarning--; @@ -11610,7 +12501,7 @@ buildCounterSubnetworkAggregatedList++; if (buildCounterSubnetworkAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2251(); + o.items = buildUnnamed600(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -11624,7 +12515,7 @@ buildCounterSubnetworkAggregatedList++; if (buildCounterSubnetworkAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2251(o.items); + checkUnnamed600(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -11633,14 +12524,14 @@ buildCounterSubnetworkAggregatedList--; } -buildUnnamed2253() { +buildUnnamed602() { var o = new core.List<api.Subnetwork>(); o.add(buildSubnetwork()); o.add(buildSubnetwork()); return o; } -checkUnnamed2253(core.List<api.Subnetwork> o) { +checkUnnamed602(core.List<api.Subnetwork> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetwork(o[0]); checkSubnetwork(o[1]); @@ -11667,14 +12558,14 @@ buildCounterSubnetworkListWarningData--; } -buildUnnamed2254() { +buildUnnamed603() { var o = new core.List<api.SubnetworkListWarningData>(); o.add(buildSubnetworkListWarningData()); o.add(buildSubnetworkListWarningData()); return o; } -checkUnnamed2254(core.List<api.SubnetworkListWarningData> o) { +checkUnnamed603(core.List<api.SubnetworkListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworkListWarningData(o[0]); checkSubnetworkListWarningData(o[1]); @@ -11686,7 +12577,7 @@ buildCounterSubnetworkListWarning++; if (buildCounterSubnetworkListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2254(); + o.data = buildUnnamed603(); o.message = "foo"; } buildCounterSubnetworkListWarning--; @@ -11697,7 +12588,7 @@ buildCounterSubnetworkListWarning++; if (buildCounterSubnetworkListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2254(o.data); + checkUnnamed603(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterSubnetworkListWarning--; @@ -11709,7 +12600,7 @@ buildCounterSubnetworkList++; if (buildCounterSubnetworkList < 3) { o.id = "foo"; - o.items = buildUnnamed2253(); + o.items = buildUnnamed602(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -11723,7 +12614,7 @@ buildCounterSubnetworkList++; if (buildCounterSubnetworkList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2253(o.items); + checkUnnamed602(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -11773,14 +12664,14 @@ buildCounterSubnetworksExpandIpCidrRangeRequest--; } -buildUnnamed2255() { +buildUnnamed604() { var o = new core.List<api.Subnetwork>(); o.add(buildSubnetwork()); o.add(buildSubnetwork()); return o; } -checkUnnamed2255(core.List<api.Subnetwork> o) { +checkUnnamed604(core.List<api.Subnetwork> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetwork(o[0]); checkSubnetwork(o[1]); @@ -11807,14 +12698,14 @@ buildCounterSubnetworksScopedListWarningData--; } -buildUnnamed2256() { +buildUnnamed605() { var o = new core.List<api.SubnetworksScopedListWarningData>(); o.add(buildSubnetworksScopedListWarningData()); o.add(buildSubnetworksScopedListWarningData()); return o; } -checkUnnamed2256(core.List<api.SubnetworksScopedListWarningData> o) { +checkUnnamed605(core.List<api.SubnetworksScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworksScopedListWarningData(o[0]); checkSubnetworksScopedListWarningData(o[1]); @@ -11826,7 +12717,7 @@ buildCounterSubnetworksScopedListWarning++; if (buildCounterSubnetworksScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2256(); + o.data = buildUnnamed605(); o.message = "foo"; } buildCounterSubnetworksScopedListWarning--; @@ -11837,7 +12728,7 @@ buildCounterSubnetworksScopedListWarning++; if (buildCounterSubnetworksScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2256(o.data); + checkUnnamed605(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterSubnetworksScopedListWarning--; @@ -11848,7 +12739,7 @@ var o = new api.SubnetworksScopedList(); buildCounterSubnetworksScopedList++; if (buildCounterSubnetworksScopedList < 3) { - o.subnetworks = buildUnnamed2255(); + o.subnetworks = buildUnnamed604(); o.warning = buildSubnetworksScopedListWarning(); } buildCounterSubnetworksScopedList--; @@ -11858,7 +12749,7 @@ checkSubnetworksScopedList(api.SubnetworksScopedList o) { buildCounterSubnetworksScopedList++; if (buildCounterSubnetworksScopedList < 3) { - checkUnnamed2255(o.subnetworks); + checkUnnamed604(o.subnetworks); checkSubnetworksScopedListWarning(o.warning); } buildCounterSubnetworksScopedList--; @@ -11911,14 +12802,14 @@ buildCounterTCPHealthCheck--; } -buildUnnamed2257() { +buildUnnamed606() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2257(core.List<core.String> o) { +checkUnnamed606(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -11930,7 +12821,7 @@ buildCounterTags++; if (buildCounterTags < 3) { o.fingerprint = "foo"; - o.items = buildUnnamed2257(); + o.items = buildUnnamed606(); } buildCounterTags--; return o; @@ -11940,7 +12831,7 @@ buildCounterTags++; if (buildCounterTags < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2257(o.items); + checkUnnamed606(o.items); } buildCounterTags--; } @@ -11976,14 +12867,14 @@ buildCounterTargetHttpProxy--; } -buildUnnamed2258() { +buildUnnamed607() { var o = new core.List<api.TargetHttpProxy>(); o.add(buildTargetHttpProxy()); o.add(buildTargetHttpProxy()); return o; } -checkUnnamed2258(core.List<api.TargetHttpProxy> o) { +checkUnnamed607(core.List<api.TargetHttpProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpProxy(o[0]); checkTargetHttpProxy(o[1]); @@ -12010,14 +12901,14 @@ buildCounterTargetHttpProxyListWarningData--; } -buildUnnamed2259() { +buildUnnamed608() { var o = new core.List<api.TargetHttpProxyListWarningData>(); o.add(buildTargetHttpProxyListWarningData()); o.add(buildTargetHttpProxyListWarningData()); return o; } -checkUnnamed2259(core.List<api.TargetHttpProxyListWarningData> o) { +checkUnnamed608(core.List<api.TargetHttpProxyListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpProxyListWarningData(o[0]); checkTargetHttpProxyListWarningData(o[1]); @@ -12029,7 +12920,7 @@ buildCounterTargetHttpProxyListWarning++; if (buildCounterTargetHttpProxyListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2259(); + o.data = buildUnnamed608(); o.message = "foo"; } buildCounterTargetHttpProxyListWarning--; @@ -12040,7 +12931,7 @@ buildCounterTargetHttpProxyListWarning++; if (buildCounterTargetHttpProxyListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2259(o.data); + checkUnnamed608(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetHttpProxyListWarning--; @@ -12052,7 +12943,7 @@ buildCounterTargetHttpProxyList++; if (buildCounterTargetHttpProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2258(); + o.items = buildUnnamed607(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -12066,7 +12957,7 @@ buildCounterTargetHttpProxyList++; if (buildCounterTargetHttpProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2258(o.items); + checkUnnamed607(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -12075,14 +12966,34 @@ buildCounterTargetHttpProxyList--; } -buildUnnamed2260() { +core.int buildCounterTargetHttpsProxiesSetQuicOverrideRequest = 0; +buildTargetHttpsProxiesSetQuicOverrideRequest() { + var o = new api.TargetHttpsProxiesSetQuicOverrideRequest(); + buildCounterTargetHttpsProxiesSetQuicOverrideRequest++; + if (buildCounterTargetHttpsProxiesSetQuicOverrideRequest < 3) { + o.quicOverride = "foo"; + } + buildCounterTargetHttpsProxiesSetQuicOverrideRequest--; + return o; +} + +checkTargetHttpsProxiesSetQuicOverrideRequest( + api.TargetHttpsProxiesSetQuicOverrideRequest o) { + buildCounterTargetHttpsProxiesSetQuicOverrideRequest++; + if (buildCounterTargetHttpsProxiesSetQuicOverrideRequest < 3) { + unittest.expect(o.quicOverride, unittest.equals('foo')); + } + buildCounterTargetHttpsProxiesSetQuicOverrideRequest--; +} + +buildUnnamed609() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2260(core.List<core.String> o) { +checkUnnamed609(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -12093,7 +13004,7 @@ var o = new api.TargetHttpsProxiesSetSslCertificatesRequest(); buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { - o.sslCertificates = buildUnnamed2260(); + o.sslCertificates = buildUnnamed609(); } buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; return o; @@ -12103,19 +13014,19 @@ api.TargetHttpsProxiesSetSslCertificatesRequest o) { buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { - checkUnnamed2260(o.sslCertificates); + checkUnnamed609(o.sslCertificates); } buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; } -buildUnnamed2261() { +buildUnnamed610() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2261(core.List<core.String> o) { +checkUnnamed610(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -12131,8 +13042,10 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; + o.quicOverride = "foo"; o.selfLink = "foo"; - o.sslCertificates = buildUnnamed2261(); + o.sslCertificates = buildUnnamed610(); + o.sslPolicy = "foo"; o.urlMap = "foo"; } buildCounterTargetHttpsProxy--; @@ -12147,21 +13060,23 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.quicOverride, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2261(o.sslCertificates); + checkUnnamed610(o.sslCertificates); + unittest.expect(o.sslPolicy, unittest.equals('foo')); unittest.expect(o.urlMap, unittest.equals('foo')); } buildCounterTargetHttpsProxy--; } -buildUnnamed2262() { +buildUnnamed611() { var o = new core.List<api.TargetHttpsProxy>(); o.add(buildTargetHttpsProxy()); o.add(buildTargetHttpsProxy()); return o; } -checkUnnamed2262(core.List<api.TargetHttpsProxy> o) { +checkUnnamed611(core.List<api.TargetHttpsProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpsProxy(o[0]); checkTargetHttpsProxy(o[1]); @@ -12188,14 +13103,14 @@ buildCounterTargetHttpsProxyListWarningData--; } -buildUnnamed2263() { +buildUnnamed612() { var o = new core.List<api.TargetHttpsProxyListWarningData>(); o.add(buildTargetHttpsProxyListWarningData()); o.add(buildTargetHttpsProxyListWarningData()); return o; } -checkUnnamed2263(core.List<api.TargetHttpsProxyListWarningData> o) { +checkUnnamed612(core.List<api.TargetHttpsProxyListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpsProxyListWarningData(o[0]); checkTargetHttpsProxyListWarningData(o[1]); @@ -12207,7 +13122,7 @@ buildCounterTargetHttpsProxyListWarning++; if (buildCounterTargetHttpsProxyListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2263(); + o.data = buildUnnamed612(); o.message = "foo"; } buildCounterTargetHttpsProxyListWarning--; @@ -12218,7 +13133,7 @@ buildCounterTargetHttpsProxyListWarning++; if (buildCounterTargetHttpsProxyListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2263(o.data); + checkUnnamed612(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetHttpsProxyListWarning--; @@ -12230,7 +13145,7 @@ buildCounterTargetHttpsProxyList++; if (buildCounterTargetHttpsProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2262(); + o.items = buildUnnamed611(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -12244,7 +13159,7 @@ buildCounterTargetHttpsProxyList++; if (buildCounterTargetHttpsProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2262(o.items); + checkUnnamed611(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -12288,14 +13203,14 @@ buildCounterTargetInstance--; } -buildUnnamed2264() { +buildUnnamed613() { var o = new core.Map<core.String, api.TargetInstancesScopedList>(); o["x"] = buildTargetInstancesScopedList(); o["y"] = buildTargetInstancesScopedList(); return o; } -checkUnnamed2264(core.Map<core.String, api.TargetInstancesScopedList> o) { +checkUnnamed613(core.Map<core.String, api.TargetInstancesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstancesScopedList(o["x"]); checkTargetInstancesScopedList(o["y"]); @@ -12323,14 +13238,14 @@ buildCounterTargetInstanceAggregatedListWarningData--; } -buildUnnamed2265() { +buildUnnamed614() { var o = new core.List<api.TargetInstanceAggregatedListWarningData>(); o.add(buildTargetInstanceAggregatedListWarningData()); o.add(buildTargetInstanceAggregatedListWarningData()); return o; } -checkUnnamed2265(core.List<api.TargetInstanceAggregatedListWarningData> o) { +checkUnnamed614(core.List<api.TargetInstanceAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstanceAggregatedListWarningData(o[0]); checkTargetInstanceAggregatedListWarningData(o[1]); @@ -12342,7 +13257,7 @@ buildCounterTargetInstanceAggregatedListWarning++; if (buildCounterTargetInstanceAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2265(); + o.data = buildUnnamed614(); o.message = "foo"; } buildCounterTargetInstanceAggregatedListWarning--; @@ -12354,7 +13269,7 @@ buildCounterTargetInstanceAggregatedListWarning++; if (buildCounterTargetInstanceAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2265(o.data); + checkUnnamed614(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetInstanceAggregatedListWarning--; @@ -12366,7 +13281,7 @@ buildCounterTargetInstanceAggregatedList++; if (buildCounterTargetInstanceAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2264(); + o.items = buildUnnamed613(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -12380,7 +13295,7 @@ buildCounterTargetInstanceAggregatedList++; if (buildCounterTargetInstanceAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2264(o.items); + checkUnnamed613(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -12389,14 +13304,14 @@ buildCounterTargetInstanceAggregatedList--; } -buildUnnamed2266() { +buildUnnamed615() { var o = new core.List<api.TargetInstance>(); o.add(buildTargetInstance()); o.add(buildTargetInstance()); return o; } -checkUnnamed2266(core.List<api.TargetInstance> o) { +checkUnnamed615(core.List<api.TargetInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstance(o[0]); checkTargetInstance(o[1]); @@ -12423,14 +13338,14 @@ buildCounterTargetInstanceListWarningData--; } -buildUnnamed2267() { +buildUnnamed616() { var o = new core.List<api.TargetInstanceListWarningData>(); o.add(buildTargetInstanceListWarningData()); o.add(buildTargetInstanceListWarningData()); return o; } -checkUnnamed2267(core.List<api.TargetInstanceListWarningData> o) { +checkUnnamed616(core.List<api.TargetInstanceListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstanceListWarningData(o[0]); checkTargetInstanceListWarningData(o[1]); @@ -12442,7 +13357,7 @@ buildCounterTargetInstanceListWarning++; if (buildCounterTargetInstanceListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2267(); + o.data = buildUnnamed616(); o.message = "foo"; } buildCounterTargetInstanceListWarning--; @@ -12453,7 +13368,7 @@ buildCounterTargetInstanceListWarning++; if (buildCounterTargetInstanceListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2267(o.data); + checkUnnamed616(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetInstanceListWarning--; @@ -12465,7 +13380,7 @@ buildCounterTargetInstanceList++; if (buildCounterTargetInstanceList < 3) { o.id = "foo"; - o.items = buildUnnamed2266(); + o.items = buildUnnamed615(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -12479,7 +13394,7 @@ buildCounterTargetInstanceList++; if (buildCounterTargetInstanceList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2266(o.items); + checkUnnamed615(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -12488,14 +13403,14 @@ buildCounterTargetInstanceList--; } -buildUnnamed2268() { +buildUnnamed617() { var o = new core.List<api.TargetInstance>(); o.add(buildTargetInstance()); o.add(buildTargetInstance()); return o; } -checkUnnamed2268(core.List<api.TargetInstance> o) { +checkUnnamed617(core.List<api.TargetInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstance(o[0]); checkTargetInstance(o[1]); @@ -12523,14 +13438,14 @@ buildCounterTargetInstancesScopedListWarningData--; } -buildUnnamed2269() { +buildUnnamed618() { var o = new core.List<api.TargetInstancesScopedListWarningData>(); o.add(buildTargetInstancesScopedListWarningData()); o.add(buildTargetInstancesScopedListWarningData()); return o; } -checkUnnamed2269(core.List<api.TargetInstancesScopedListWarningData> o) { +checkUnnamed618(core.List<api.TargetInstancesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstancesScopedListWarningData(o[0]); checkTargetInstancesScopedListWarningData(o[1]); @@ -12542,7 +13457,7 @@ buildCounterTargetInstancesScopedListWarning++; if (buildCounterTargetInstancesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2269(); + o.data = buildUnnamed618(); o.message = "foo"; } buildCounterTargetInstancesScopedListWarning--; @@ -12553,7 +13468,7 @@ buildCounterTargetInstancesScopedListWarning++; if (buildCounterTargetInstancesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2269(o.data); + checkUnnamed618(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetInstancesScopedListWarning--; @@ -12564,7 +13479,7 @@ var o = new api.TargetInstancesScopedList(); buildCounterTargetInstancesScopedList++; if (buildCounterTargetInstancesScopedList < 3) { - o.targetInstances = buildUnnamed2268(); + o.targetInstances = buildUnnamed617(); o.warning = buildTargetInstancesScopedListWarning(); } buildCounterTargetInstancesScopedList--; @@ -12574,33 +13489,33 @@ checkTargetInstancesScopedList(api.TargetInstancesScopedList o) { buildCounterTargetInstancesScopedList++; if (buildCounterTargetInstancesScopedList < 3) { - checkUnnamed2268(o.targetInstances); + checkUnnamed617(o.targetInstances); checkTargetInstancesScopedListWarning(o.warning); } buildCounterTargetInstancesScopedList--; } -buildUnnamed2270() { +buildUnnamed619() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2270(core.List<core.String> o) { +checkUnnamed619(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2271() { +buildUnnamed620() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2271(core.List<core.String> o) { +checkUnnamed620(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -12615,9 +13530,9 @@ o.creationTimestamp = "foo"; o.description = "foo"; o.failoverRatio = 42.0; - o.healthChecks = buildUnnamed2270(); + o.healthChecks = buildUnnamed619(); o.id = "foo"; - o.instances = buildUnnamed2271(); + o.instances = buildUnnamed620(); o.kind = "foo"; o.name = "foo"; o.region = "foo"; @@ -12635,9 +13550,9 @@ unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.failoverRatio, unittest.equals(42.0)); - checkUnnamed2270(o.healthChecks); + checkUnnamed619(o.healthChecks); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2271(o.instances); + checkUnnamed620(o.instances); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); @@ -12647,14 +13562,14 @@ buildCounterTargetPool--; } -buildUnnamed2272() { +buildUnnamed621() { var o = new core.Map<core.String, api.TargetPoolsScopedList>(); o["x"] = buildTargetPoolsScopedList(); o["y"] = buildTargetPoolsScopedList(); return o; } -checkUnnamed2272(core.Map<core.String, api.TargetPoolsScopedList> o) { +checkUnnamed621(core.Map<core.String, api.TargetPoolsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolsScopedList(o["x"]); checkTargetPoolsScopedList(o["y"]); @@ -12682,14 +13597,14 @@ buildCounterTargetPoolAggregatedListWarningData--; } -buildUnnamed2273() { +buildUnnamed622() { var o = new core.List<api.TargetPoolAggregatedListWarningData>(); o.add(buildTargetPoolAggregatedListWarningData()); o.add(buildTargetPoolAggregatedListWarningData()); return o; } -checkUnnamed2273(core.List<api.TargetPoolAggregatedListWarningData> o) { +checkUnnamed622(core.List<api.TargetPoolAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolAggregatedListWarningData(o[0]); checkTargetPoolAggregatedListWarningData(o[1]); @@ -12701,7 +13616,7 @@ buildCounterTargetPoolAggregatedListWarning++; if (buildCounterTargetPoolAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2273(); + o.data = buildUnnamed622(); o.message = "foo"; } buildCounterTargetPoolAggregatedListWarning--; @@ -12712,7 +13627,7 @@ buildCounterTargetPoolAggregatedListWarning++; if (buildCounterTargetPoolAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2273(o.data); + checkUnnamed622(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetPoolAggregatedListWarning--; @@ -12724,7 +13639,7 @@ buildCounterTargetPoolAggregatedList++; if (buildCounterTargetPoolAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2272(); + o.items = buildUnnamed621(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -12738,7 +13653,7 @@ buildCounterTargetPoolAggregatedList++; if (buildCounterTargetPoolAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2272(o.items); + checkUnnamed621(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -12747,14 +13662,14 @@ buildCounterTargetPoolAggregatedList--; } -buildUnnamed2274() { +buildUnnamed623() { var o = new core.List<api.HealthStatus>(); o.add(buildHealthStatus()); o.add(buildHealthStatus()); return o; } -checkUnnamed2274(core.List<api.HealthStatus> o) { +checkUnnamed623(core.List<api.HealthStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthStatus(o[0]); checkHealthStatus(o[1]); @@ -12765,7 +13680,7 @@ var o = new api.TargetPoolInstanceHealth(); buildCounterTargetPoolInstanceHealth++; if (buildCounterTargetPoolInstanceHealth < 3) { - o.healthStatus = buildUnnamed2274(); + o.healthStatus = buildUnnamed623(); o.kind = "foo"; } buildCounterTargetPoolInstanceHealth--; @@ -12775,20 +13690,20 @@ checkTargetPoolInstanceHealth(api.TargetPoolInstanceHealth o) { buildCounterTargetPoolInstanceHealth++; if (buildCounterTargetPoolInstanceHealth < 3) { - checkUnnamed2274(o.healthStatus); + checkUnnamed623(o.healthStatus); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTargetPoolInstanceHealth--; } -buildUnnamed2275() { +buildUnnamed624() { var o = new core.List<api.TargetPool>(); o.add(buildTargetPool()); o.add(buildTargetPool()); return o; } -checkUnnamed2275(core.List<api.TargetPool> o) { +checkUnnamed624(core.List<api.TargetPool> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPool(o[0]); checkTargetPool(o[1]); @@ -12815,14 +13730,14 @@ buildCounterTargetPoolListWarningData--; } -buildUnnamed2276() { +buildUnnamed625() { var o = new core.List<api.TargetPoolListWarningData>(); o.add(buildTargetPoolListWarningData()); o.add(buildTargetPoolListWarningData()); return o; } -checkUnnamed2276(core.List<api.TargetPoolListWarningData> o) { +checkUnnamed625(core.List<api.TargetPoolListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolListWarningData(o[0]); checkTargetPoolListWarningData(o[1]); @@ -12834,7 +13749,7 @@ buildCounterTargetPoolListWarning++; if (buildCounterTargetPoolListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2276(); + o.data = buildUnnamed625(); o.message = "foo"; } buildCounterTargetPoolListWarning--; @@ -12845,7 +13760,7 @@ buildCounterTargetPoolListWarning++; if (buildCounterTargetPoolListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2276(o.data); + checkUnnamed625(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetPoolListWarning--; @@ -12857,7 +13772,7 @@ buildCounterTargetPoolList++; if (buildCounterTargetPoolList < 3) { o.id = "foo"; - o.items = buildUnnamed2275(); + o.items = buildUnnamed624(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -12871,7 +13786,7 @@ buildCounterTargetPoolList++; if (buildCounterTargetPoolList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2275(o.items); + checkUnnamed624(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -12880,14 +13795,14 @@ buildCounterTargetPoolList--; } -buildUnnamed2277() { +buildUnnamed626() { var o = new core.List<api.HealthCheckReference>(); o.add(buildHealthCheckReference()); o.add(buildHealthCheckReference()); return o; } -checkUnnamed2277(core.List<api.HealthCheckReference> o) { +checkUnnamed626(core.List<api.HealthCheckReference> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheckReference(o[0]); checkHealthCheckReference(o[1]); @@ -12898,7 +13813,7 @@ var o = new api.TargetPoolsAddHealthCheckRequest(); buildCounterTargetPoolsAddHealthCheckRequest++; if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { - o.healthChecks = buildUnnamed2277(); + o.healthChecks = buildUnnamed626(); } buildCounterTargetPoolsAddHealthCheckRequest--; return o; @@ -12907,19 +13822,19 @@ checkTargetPoolsAddHealthCheckRequest(api.TargetPoolsAddHealthCheckRequest o) { buildCounterTargetPoolsAddHealthCheckRequest++; if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { - checkUnnamed2277(o.healthChecks); + checkUnnamed626(o.healthChecks); } buildCounterTargetPoolsAddHealthCheckRequest--; } -buildUnnamed2278() { +buildUnnamed627() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2278(core.List<api.InstanceReference> o) { +checkUnnamed627(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -12930,7 +13845,7 @@ var o = new api.TargetPoolsAddInstanceRequest(); buildCounterTargetPoolsAddInstanceRequest++; if (buildCounterTargetPoolsAddInstanceRequest < 3) { - o.instances = buildUnnamed2278(); + o.instances = buildUnnamed627(); } buildCounterTargetPoolsAddInstanceRequest--; return o; @@ -12939,19 +13854,19 @@ checkTargetPoolsAddInstanceRequest(api.TargetPoolsAddInstanceRequest o) { buildCounterTargetPoolsAddInstanceRequest++; if (buildCounterTargetPoolsAddInstanceRequest < 3) { - checkUnnamed2278(o.instances); + checkUnnamed627(o.instances); } buildCounterTargetPoolsAddInstanceRequest--; } -buildUnnamed2279() { +buildUnnamed628() { var o = new core.List<api.HealthCheckReference>(); o.add(buildHealthCheckReference()); o.add(buildHealthCheckReference()); return o; } -checkUnnamed2279(core.List<api.HealthCheckReference> o) { +checkUnnamed628(core.List<api.HealthCheckReference> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheckReference(o[0]); checkHealthCheckReference(o[1]); @@ -12962,7 +13877,7 @@ var o = new api.TargetPoolsRemoveHealthCheckRequest(); buildCounterTargetPoolsRemoveHealthCheckRequest++; if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { - o.healthChecks = buildUnnamed2279(); + o.healthChecks = buildUnnamed628(); } buildCounterTargetPoolsRemoveHealthCheckRequest--; return o; @@ -12972,19 +13887,19 @@ api.TargetPoolsRemoveHealthCheckRequest o) { buildCounterTargetPoolsRemoveHealthCheckRequest++; if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { - checkUnnamed2279(o.healthChecks); + checkUnnamed628(o.healthChecks); } buildCounterTargetPoolsRemoveHealthCheckRequest--; } -buildUnnamed2280() { +buildUnnamed629() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2280(core.List<api.InstanceReference> o) { +checkUnnamed629(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -12995,7 +13910,7 @@ var o = new api.TargetPoolsRemoveInstanceRequest(); buildCounterTargetPoolsRemoveInstanceRequest++; if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { - o.instances = buildUnnamed2280(); + o.instances = buildUnnamed629(); } buildCounterTargetPoolsRemoveInstanceRequest--; return o; @@ -13004,19 +13919,19 @@ checkTargetPoolsRemoveInstanceRequest(api.TargetPoolsRemoveInstanceRequest o) { buildCounterTargetPoolsRemoveInstanceRequest++; if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { - checkUnnamed2280(o.instances); + checkUnnamed629(o.instances); } buildCounterTargetPoolsRemoveInstanceRequest--; } -buildUnnamed2281() { +buildUnnamed630() { var o = new core.List<api.TargetPool>(); o.add(buildTargetPool()); o.add(buildTargetPool()); return o; } -checkUnnamed2281(core.List<api.TargetPool> o) { +checkUnnamed630(core.List<api.TargetPool> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPool(o[0]); checkTargetPool(o[1]); @@ -13043,14 +13958,14 @@ buildCounterTargetPoolsScopedListWarningData--; } -buildUnnamed2282() { +buildUnnamed631() { var o = new core.List<api.TargetPoolsScopedListWarningData>(); o.add(buildTargetPoolsScopedListWarningData()); o.add(buildTargetPoolsScopedListWarningData()); return o; } -checkUnnamed2282(core.List<api.TargetPoolsScopedListWarningData> o) { +checkUnnamed631(core.List<api.TargetPoolsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolsScopedListWarningData(o[0]); checkTargetPoolsScopedListWarningData(o[1]); @@ -13062,7 +13977,7 @@ buildCounterTargetPoolsScopedListWarning++; if (buildCounterTargetPoolsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2282(); + o.data = buildUnnamed631(); o.message = "foo"; } buildCounterTargetPoolsScopedListWarning--; @@ -13073,7 +13988,7 @@ buildCounterTargetPoolsScopedListWarning++; if (buildCounterTargetPoolsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2282(o.data); + checkUnnamed631(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetPoolsScopedListWarning--; @@ -13084,7 +13999,7 @@ var o = new api.TargetPoolsScopedList(); buildCounterTargetPoolsScopedList++; if (buildCounterTargetPoolsScopedList < 3) { - o.targetPools = buildUnnamed2281(); + o.targetPools = buildUnnamed630(); o.warning = buildTargetPoolsScopedListWarning(); } buildCounterTargetPoolsScopedList--; @@ -13094,7 +14009,7 @@ checkTargetPoolsScopedList(api.TargetPoolsScopedList o) { buildCounterTargetPoolsScopedList++; if (buildCounterTargetPoolsScopedList < 3) { - checkUnnamed2281(o.targetPools); + checkUnnamed630(o.targetPools); checkTargetPoolsScopedListWarning(o.warning); } buildCounterTargetPoolsScopedList--; @@ -13159,14 +14074,14 @@ buildCounterTargetSslProxiesSetProxyHeaderRequest--; } -buildUnnamed2283() { +buildUnnamed632() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2283(core.List<core.String> o) { +checkUnnamed632(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -13177,7 +14092,7 @@ var o = new api.TargetSslProxiesSetSslCertificatesRequest(); buildCounterTargetSslProxiesSetSslCertificatesRequest++; if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { - o.sslCertificates = buildUnnamed2283(); + o.sslCertificates = buildUnnamed632(); } buildCounterTargetSslProxiesSetSslCertificatesRequest--; return o; @@ -13187,19 +14102,19 @@ api.TargetSslProxiesSetSslCertificatesRequest o) { buildCounterTargetSslProxiesSetSslCertificatesRequest++; if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { - checkUnnamed2283(o.sslCertificates); + checkUnnamed632(o.sslCertificates); } buildCounterTargetSslProxiesSetSslCertificatesRequest--; } -buildUnnamed2284() { +buildUnnamed633() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2284(core.List<core.String> o) { +checkUnnamed633(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -13218,7 +14133,8 @@ o.proxyHeader = "foo"; o.selfLink = "foo"; o.service = "foo"; - o.sslCertificates = buildUnnamed2284(); + o.sslCertificates = buildUnnamed633(); + o.sslPolicy = "foo"; } buildCounterTargetSslProxy--; return o; @@ -13235,19 +14151,20 @@ unittest.expect(o.proxyHeader, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.service, unittest.equals('foo')); - checkUnnamed2284(o.sslCertificates); + checkUnnamed633(o.sslCertificates); + unittest.expect(o.sslPolicy, unittest.equals('foo')); } buildCounterTargetSslProxy--; } -buildUnnamed2285() { +buildUnnamed634() { var o = new core.List<api.TargetSslProxy>(); o.add(buildTargetSslProxy()); o.add(buildTargetSslProxy()); return o; } -checkUnnamed2285(core.List<api.TargetSslProxy> o) { +checkUnnamed634(core.List<api.TargetSslProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetSslProxy(o[0]); checkTargetSslProxy(o[1]); @@ -13274,14 +14191,14 @@ buildCounterTargetSslProxyListWarningData--; } -buildUnnamed2286() { +buildUnnamed635() { var o = new core.List<api.TargetSslProxyListWarningData>(); o.add(buildTargetSslProxyListWarningData()); o.add(buildTargetSslProxyListWarningData()); return o; } -checkUnnamed2286(core.List<api.TargetSslProxyListWarningData> o) { +checkUnnamed635(core.List<api.TargetSslProxyListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetSslProxyListWarningData(o[0]); checkTargetSslProxyListWarningData(o[1]); @@ -13293,7 +14210,7 @@ buildCounterTargetSslProxyListWarning++; if (buildCounterTargetSslProxyListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2286(); + o.data = buildUnnamed635(); o.message = "foo"; } buildCounterTargetSslProxyListWarning--; @@ -13304,7 +14221,7 @@ buildCounterTargetSslProxyListWarning++; if (buildCounterTargetSslProxyListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2286(o.data); + checkUnnamed635(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetSslProxyListWarning--; @@ -13316,7 +14233,7 @@ buildCounterTargetSslProxyList++; if (buildCounterTargetSslProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2285(); + o.items = buildUnnamed634(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -13330,7 +14247,7 @@ buildCounterTargetSslProxyList++; if (buildCounterTargetSslProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2285(o.items); + checkUnnamed634(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -13412,14 +14329,14 @@ buildCounterTargetTcpProxy--; } -buildUnnamed2287() { +buildUnnamed636() { var o = new core.List<api.TargetTcpProxy>(); o.add(buildTargetTcpProxy()); o.add(buildTargetTcpProxy()); return o; } -checkUnnamed2287(core.List<api.TargetTcpProxy> o) { +checkUnnamed636(core.List<api.TargetTcpProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetTcpProxy(o[0]); checkTargetTcpProxy(o[1]); @@ -13446,14 +14363,14 @@ buildCounterTargetTcpProxyListWarningData--; } -buildUnnamed2288() { +buildUnnamed637() { var o = new core.List<api.TargetTcpProxyListWarningData>(); o.add(buildTargetTcpProxyListWarningData()); o.add(buildTargetTcpProxyListWarningData()); return o; } -checkUnnamed2288(core.List<api.TargetTcpProxyListWarningData> o) { +checkUnnamed637(core.List<api.TargetTcpProxyListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetTcpProxyListWarningData(o[0]); checkTargetTcpProxyListWarningData(o[1]); @@ -13465,7 +14382,7 @@ buildCounterTargetTcpProxyListWarning++; if (buildCounterTargetTcpProxyListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2288(); + o.data = buildUnnamed637(); o.message = "foo"; } buildCounterTargetTcpProxyListWarning--; @@ -13476,7 +14393,7 @@ buildCounterTargetTcpProxyListWarning++; if (buildCounterTargetTcpProxyListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2288(o.data); + checkUnnamed637(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetTcpProxyListWarning--; @@ -13488,7 +14405,7 @@ buildCounterTargetTcpProxyList++; if (buildCounterTargetTcpProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2287(); + o.items = buildUnnamed636(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -13502,7 +14419,7 @@ buildCounterTargetTcpProxyList++; if (buildCounterTargetTcpProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2287(o.items); + checkUnnamed636(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -13511,27 +14428,27 @@ buildCounterTargetTcpProxyList--; } -buildUnnamed2289() { +buildUnnamed638() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2289(core.List<core.String> o) { +checkUnnamed638(core.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() { +buildUnnamed639() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2290(core.List<core.String> o) { +checkUnnamed639(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -13544,7 +14461,7 @@ if (buildCounterTargetVpnGateway < 3) { o.creationTimestamp = "foo"; o.description = "foo"; - o.forwardingRules = buildUnnamed2289(); + o.forwardingRules = buildUnnamed638(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -13552,7 +14469,7 @@ o.region = "foo"; o.selfLink = "foo"; o.status = "foo"; - o.tunnels = buildUnnamed2290(); + o.tunnels = buildUnnamed639(); } buildCounterTargetVpnGateway--; return o; @@ -13563,7 +14480,7 @@ if (buildCounterTargetVpnGateway < 3) { unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2289(o.forwardingRules); + checkUnnamed638(o.forwardingRules); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -13571,19 +14488,19 @@ unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed2290(o.tunnels); + checkUnnamed639(o.tunnels); } buildCounterTargetVpnGateway--; } -buildUnnamed2291() { +buildUnnamed640() { var o = new core.Map<core.String, api.TargetVpnGatewaysScopedList>(); o["x"] = buildTargetVpnGatewaysScopedList(); o["y"] = buildTargetVpnGatewaysScopedList(); return o; } -checkUnnamed2291(core.Map<core.String, api.TargetVpnGatewaysScopedList> o) { +checkUnnamed640(core.Map<core.String, api.TargetVpnGatewaysScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGatewaysScopedList(o["x"]); checkTargetVpnGatewaysScopedList(o["y"]); @@ -13611,14 +14528,14 @@ buildCounterTargetVpnGatewayAggregatedListWarningData--; } -buildUnnamed2292() { +buildUnnamed641() { var o = new core.List<api.TargetVpnGatewayAggregatedListWarningData>(); o.add(buildTargetVpnGatewayAggregatedListWarningData()); o.add(buildTargetVpnGatewayAggregatedListWarningData()); return o; } -checkUnnamed2292(core.List<api.TargetVpnGatewayAggregatedListWarningData> o) { +checkUnnamed641(core.List<api.TargetVpnGatewayAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGatewayAggregatedListWarningData(o[0]); checkTargetVpnGatewayAggregatedListWarningData(o[1]); @@ -13630,7 +14547,7 @@ buildCounterTargetVpnGatewayAggregatedListWarning++; if (buildCounterTargetVpnGatewayAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2292(); + o.data = buildUnnamed641(); o.message = "foo"; } buildCounterTargetVpnGatewayAggregatedListWarning--; @@ -13642,7 +14559,7 @@ buildCounterTargetVpnGatewayAggregatedListWarning++; if (buildCounterTargetVpnGatewayAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2292(o.data); + checkUnnamed641(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetVpnGatewayAggregatedListWarning--; @@ -13654,7 +14571,7 @@ buildCounterTargetVpnGatewayAggregatedList++; if (buildCounterTargetVpnGatewayAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2291(); + o.items = buildUnnamed640(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -13668,7 +14585,7 @@ buildCounterTargetVpnGatewayAggregatedList++; if (buildCounterTargetVpnGatewayAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2291(o.items); + checkUnnamed640(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -13677,14 +14594,14 @@ buildCounterTargetVpnGatewayAggregatedList--; } -buildUnnamed2293() { +buildUnnamed642() { var o = new core.List<api.TargetVpnGateway>(); o.add(buildTargetVpnGateway()); o.add(buildTargetVpnGateway()); return o; } -checkUnnamed2293(core.List<api.TargetVpnGateway> o) { +checkUnnamed642(core.List<api.TargetVpnGateway> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGateway(o[0]); checkTargetVpnGateway(o[1]); @@ -13711,14 +14628,14 @@ buildCounterTargetVpnGatewayListWarningData--; } -buildUnnamed2294() { +buildUnnamed643() { var o = new core.List<api.TargetVpnGatewayListWarningData>(); o.add(buildTargetVpnGatewayListWarningData()); o.add(buildTargetVpnGatewayListWarningData()); return o; } -checkUnnamed2294(core.List<api.TargetVpnGatewayListWarningData> o) { +checkUnnamed643(core.List<api.TargetVpnGatewayListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGatewayListWarningData(o[0]); checkTargetVpnGatewayListWarningData(o[1]); @@ -13730,7 +14647,7 @@ buildCounterTargetVpnGatewayListWarning++; if (buildCounterTargetVpnGatewayListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2294(); + o.data = buildUnnamed643(); o.message = "foo"; } buildCounterTargetVpnGatewayListWarning--; @@ -13741,7 +14658,7 @@ buildCounterTargetVpnGatewayListWarning++; if (buildCounterTargetVpnGatewayListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2294(o.data); + checkUnnamed643(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetVpnGatewayListWarning--; @@ -13753,7 +14670,7 @@ buildCounterTargetVpnGatewayList++; if (buildCounterTargetVpnGatewayList < 3) { o.id = "foo"; - o.items = buildUnnamed2293(); + o.items = buildUnnamed642(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -13767,7 +14684,7 @@ buildCounterTargetVpnGatewayList++; if (buildCounterTargetVpnGatewayList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2293(o.items); + checkUnnamed642(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -13776,14 +14693,14 @@ buildCounterTargetVpnGatewayList--; } -buildUnnamed2295() { +buildUnnamed644() { var o = new core.List<api.TargetVpnGateway>(); o.add(buildTargetVpnGateway()); o.add(buildTargetVpnGateway()); return o; } -checkUnnamed2295(core.List<api.TargetVpnGateway> o) { +checkUnnamed644(core.List<api.TargetVpnGateway> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGateway(o[0]); checkTargetVpnGateway(o[1]); @@ -13811,14 +14728,14 @@ buildCounterTargetVpnGatewaysScopedListWarningData--; } -buildUnnamed2296() { +buildUnnamed645() { var o = new core.List<api.TargetVpnGatewaysScopedListWarningData>(); o.add(buildTargetVpnGatewaysScopedListWarningData()); o.add(buildTargetVpnGatewaysScopedListWarningData()); return o; } -checkUnnamed2296(core.List<api.TargetVpnGatewaysScopedListWarningData> o) { +checkUnnamed645(core.List<api.TargetVpnGatewaysScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGatewaysScopedListWarningData(o[0]); checkTargetVpnGatewaysScopedListWarningData(o[1]); @@ -13830,7 +14747,7 @@ buildCounterTargetVpnGatewaysScopedListWarning++; if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2296(); + o.data = buildUnnamed645(); o.message = "foo"; } buildCounterTargetVpnGatewaysScopedListWarning--; @@ -13842,7 +14759,7 @@ buildCounterTargetVpnGatewaysScopedListWarning++; if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2296(o.data); + checkUnnamed645(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetVpnGatewaysScopedListWarning--; @@ -13853,7 +14770,7 @@ var o = new api.TargetVpnGatewaysScopedList(); buildCounterTargetVpnGatewaysScopedList++; if (buildCounterTargetVpnGatewaysScopedList < 3) { - o.targetVpnGateways = buildUnnamed2295(); + o.targetVpnGateways = buildUnnamed644(); o.warning = buildTargetVpnGatewaysScopedListWarning(); } buildCounterTargetVpnGatewaysScopedList--; @@ -13863,7 +14780,7 @@ checkTargetVpnGatewaysScopedList(api.TargetVpnGatewaysScopedList o) { buildCounterTargetVpnGatewaysScopedList++; if (buildCounterTargetVpnGatewaysScopedList < 3) { - checkUnnamed2295(o.targetVpnGateways); + checkUnnamed644(o.targetVpnGateways); checkTargetVpnGatewaysScopedListWarning(o.warning); } buildCounterTargetVpnGatewaysScopedList--; @@ -13894,40 +14811,104 @@ buildCounterTestFailure--; } -buildUnnamed2297() { +buildUnnamed646() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed646(core.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 = buildUnnamed646(); + } + buildCounterTestPermissionsRequest--; + return o; +} + +checkTestPermissionsRequest(api.TestPermissionsRequest o) { + buildCounterTestPermissionsRequest++; + if (buildCounterTestPermissionsRequest < 3) { + checkUnnamed646(o.permissions); + } + buildCounterTestPermissionsRequest--; +} + +buildUnnamed647() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed647(core.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 = buildUnnamed647(); + } + buildCounterTestPermissionsResponse--; + return o; +} + +checkTestPermissionsResponse(api.TestPermissionsResponse o) { + buildCounterTestPermissionsResponse++; + if (buildCounterTestPermissionsResponse < 3) { + checkUnnamed647(o.permissions); + } + buildCounterTestPermissionsResponse--; +} + +buildUnnamed648() { var o = new core.List<api.HostRule>(); o.add(buildHostRule()); o.add(buildHostRule()); return o; } -checkUnnamed2297(core.List<api.HostRule> o) { +checkUnnamed648(core.List<api.HostRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHostRule(o[0]); checkHostRule(o[1]); } -buildUnnamed2298() { +buildUnnamed649() { var o = new core.List<api.PathMatcher>(); o.add(buildPathMatcher()); o.add(buildPathMatcher()); return o; } -checkUnnamed2298(core.List<api.PathMatcher> o) { +checkUnnamed649(core.List<api.PathMatcher> o) { unittest.expect(o, unittest.hasLength(2)); checkPathMatcher(o[0]); checkPathMatcher(o[1]); } -buildUnnamed2299() { +buildUnnamed650() { var o = new core.List<api.UrlMapTest>(); o.add(buildUrlMapTest()); o.add(buildUrlMapTest()); return o; } -checkUnnamed2299(core.List<api.UrlMapTest> o) { +checkUnnamed650(core.List<api.UrlMapTest> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMapTest(o[0]); checkUrlMapTest(o[1]); @@ -13942,13 +14923,13 @@ o.defaultService = "foo"; o.description = "foo"; o.fingerprint = "foo"; - o.hostRules = buildUnnamed2297(); + o.hostRules = buildUnnamed648(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.pathMatchers = buildUnnamed2298(); + o.pathMatchers = buildUnnamed649(); o.selfLink = "foo"; - o.tests = buildUnnamed2299(); + o.tests = buildUnnamed650(); } buildCounterUrlMap--; return o; @@ -13961,25 +14942,25 @@ unittest.expect(o.defaultService, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2297(o.hostRules); + checkUnnamed648(o.hostRules); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2298(o.pathMatchers); + checkUnnamed649(o.pathMatchers); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2299(o.tests); + checkUnnamed650(o.tests); } buildCounterUrlMap--; } -buildUnnamed2300() { +buildUnnamed651() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed2300(core.List<api.UrlMap> o) { +checkUnnamed651(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); @@ -14006,14 +14987,14 @@ buildCounterUrlMapListWarningData--; } -buildUnnamed2301() { +buildUnnamed652() { var o = new core.List<api.UrlMapListWarningData>(); o.add(buildUrlMapListWarningData()); o.add(buildUrlMapListWarningData()); return o; } -checkUnnamed2301(core.List<api.UrlMapListWarningData> o) { +checkUnnamed652(core.List<api.UrlMapListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMapListWarningData(o[0]); checkUrlMapListWarningData(o[1]); @@ -14025,7 +15006,7 @@ buildCounterUrlMapListWarning++; if (buildCounterUrlMapListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2301(); + o.data = buildUnnamed652(); o.message = "foo"; } buildCounterUrlMapListWarning--; @@ -14036,7 +15017,7 @@ buildCounterUrlMapListWarning++; if (buildCounterUrlMapListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2301(o.data); + checkUnnamed652(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterUrlMapListWarning--; @@ -14048,7 +15029,7 @@ buildCounterUrlMapList++; if (buildCounterUrlMapList < 3) { o.id = "foo"; - o.items = buildUnnamed2300(); + o.items = buildUnnamed651(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -14062,7 +15043,7 @@ buildCounterUrlMapList++; if (buildCounterUrlMapList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2300(o.items); + checkUnnamed651(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -14115,27 +15096,27 @@ buildCounterUrlMapTest--; } -buildUnnamed2302() { +buildUnnamed653() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2302(core.List<core.String> o) { +checkUnnamed653(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2303() { +buildUnnamed654() { var o = new core.List<api.TestFailure>(); o.add(buildTestFailure()); o.add(buildTestFailure()); return o; } -checkUnnamed2303(core.List<api.TestFailure> o) { +checkUnnamed654(core.List<api.TestFailure> o) { unittest.expect(o, unittest.hasLength(2)); checkTestFailure(o[0]); checkTestFailure(o[1]); @@ -14146,9 +15127,9 @@ var o = new api.UrlMapValidationResult(); buildCounterUrlMapValidationResult++; if (buildCounterUrlMapValidationResult < 3) { - o.loadErrors = buildUnnamed2302(); + o.loadErrors = buildUnnamed653(); o.loadSucceeded = true; - o.testFailures = buildUnnamed2303(); + o.testFailures = buildUnnamed654(); o.testPassed = true; } buildCounterUrlMapValidationResult--; @@ -14158,9 +15139,9 @@ checkUrlMapValidationResult(api.UrlMapValidationResult o) { buildCounterUrlMapValidationResult++; if (buildCounterUrlMapValidationResult < 3) { - checkUnnamed2302(o.loadErrors); + checkUnnamed653(o.loadErrors); unittest.expect(o.loadSucceeded, unittest.isTrue); - checkUnnamed2303(o.testFailures); + checkUnnamed654(o.testFailures); unittest.expect(o.testPassed, unittest.isTrue); } buildCounterUrlMapValidationResult--; @@ -14225,27 +15206,27 @@ buildCounterUsageExportLocation--; } -buildUnnamed2304() { +buildUnnamed655() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2304(core.List<core.String> o) { +checkUnnamed655(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2305() { +buildUnnamed656() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2305(core.List<core.String> o) { +checkUnnamed656(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -14262,11 +15243,11 @@ o.id = "foo"; o.ikeVersion = 42; o.kind = "foo"; - o.localTrafficSelector = buildUnnamed2304(); + o.localTrafficSelector = buildUnnamed655(); o.name = "foo"; o.peerIp = "foo"; o.region = "foo"; - o.remoteTrafficSelector = buildUnnamed2305(); + o.remoteTrafficSelector = buildUnnamed656(); o.router = "foo"; o.selfLink = "foo"; o.sharedSecret = "foo"; @@ -14287,11 +15268,11 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.ikeVersion, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2304(o.localTrafficSelector); + checkUnnamed655(o.localTrafficSelector); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.peerIp, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed2305(o.remoteTrafficSelector); + checkUnnamed656(o.remoteTrafficSelector); unittest.expect(o.router, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.sharedSecret, unittest.equals('foo')); @@ -14302,14 +15283,14 @@ buildCounterVpnTunnel--; } -buildUnnamed2306() { +buildUnnamed657() { var o = new core.Map<core.String, api.VpnTunnelsScopedList>(); o["x"] = buildVpnTunnelsScopedList(); o["y"] = buildVpnTunnelsScopedList(); return o; } -checkUnnamed2306(core.Map<core.String, api.VpnTunnelsScopedList> o) { +checkUnnamed657(core.Map<core.String, api.VpnTunnelsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelsScopedList(o["x"]); checkVpnTunnelsScopedList(o["y"]); @@ -14337,14 +15318,14 @@ buildCounterVpnTunnelAggregatedListWarningData--; } -buildUnnamed2307() { +buildUnnamed658() { var o = new core.List<api.VpnTunnelAggregatedListWarningData>(); o.add(buildVpnTunnelAggregatedListWarningData()); o.add(buildVpnTunnelAggregatedListWarningData()); return o; } -checkUnnamed2307(core.List<api.VpnTunnelAggregatedListWarningData> o) { +checkUnnamed658(core.List<api.VpnTunnelAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelAggregatedListWarningData(o[0]); checkVpnTunnelAggregatedListWarningData(o[1]); @@ -14356,7 +15337,7 @@ buildCounterVpnTunnelAggregatedListWarning++; if (buildCounterVpnTunnelAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2307(); + o.data = buildUnnamed658(); o.message = "foo"; } buildCounterVpnTunnelAggregatedListWarning--; @@ -14367,7 +15348,7 @@ buildCounterVpnTunnelAggregatedListWarning++; if (buildCounterVpnTunnelAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2307(o.data); + checkUnnamed658(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterVpnTunnelAggregatedListWarning--; @@ -14379,7 +15360,7 @@ buildCounterVpnTunnelAggregatedList++; if (buildCounterVpnTunnelAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2306(); + o.items = buildUnnamed657(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -14393,7 +15374,7 @@ buildCounterVpnTunnelAggregatedList++; if (buildCounterVpnTunnelAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2306(o.items); + checkUnnamed657(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -14402,14 +15383,14 @@ buildCounterVpnTunnelAggregatedList--; } -buildUnnamed2308() { +buildUnnamed659() { var o = new core.List<api.VpnTunnel>(); o.add(buildVpnTunnel()); o.add(buildVpnTunnel()); return o; } -checkUnnamed2308(core.List<api.VpnTunnel> o) { +checkUnnamed659(core.List<api.VpnTunnel> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnel(o[0]); checkVpnTunnel(o[1]); @@ -14436,14 +15417,14 @@ buildCounterVpnTunnelListWarningData--; } -buildUnnamed2309() { +buildUnnamed660() { var o = new core.List<api.VpnTunnelListWarningData>(); o.add(buildVpnTunnelListWarningData()); o.add(buildVpnTunnelListWarningData()); return o; } -checkUnnamed2309(core.List<api.VpnTunnelListWarningData> o) { +checkUnnamed660(core.List<api.VpnTunnelListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelListWarningData(o[0]); checkVpnTunnelListWarningData(o[1]); @@ -14455,7 +15436,7 @@ buildCounterVpnTunnelListWarning++; if (buildCounterVpnTunnelListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2309(); + o.data = buildUnnamed660(); o.message = "foo"; } buildCounterVpnTunnelListWarning--; @@ -14466,7 +15447,7 @@ buildCounterVpnTunnelListWarning++; if (buildCounterVpnTunnelListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2309(o.data); + checkUnnamed660(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterVpnTunnelListWarning--; @@ -14478,7 +15459,7 @@ buildCounterVpnTunnelList++; if (buildCounterVpnTunnelList < 3) { o.id = "foo"; - o.items = buildUnnamed2308(); + o.items = buildUnnamed659(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -14492,7 +15473,7 @@ buildCounterVpnTunnelList++; if (buildCounterVpnTunnelList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2308(o.items); + checkUnnamed659(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -14501,14 +15482,14 @@ buildCounterVpnTunnelList--; } -buildUnnamed2310() { +buildUnnamed661() { var o = new core.List<api.VpnTunnel>(); o.add(buildVpnTunnel()); o.add(buildVpnTunnel()); return o; } -checkUnnamed2310(core.List<api.VpnTunnel> o) { +checkUnnamed661(core.List<api.VpnTunnel> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnel(o[0]); checkVpnTunnel(o[1]); @@ -14535,14 +15516,14 @@ buildCounterVpnTunnelsScopedListWarningData--; } -buildUnnamed2311() { +buildUnnamed662() { var o = new core.List<api.VpnTunnelsScopedListWarningData>(); o.add(buildVpnTunnelsScopedListWarningData()); o.add(buildVpnTunnelsScopedListWarningData()); return o; } -checkUnnamed2311(core.List<api.VpnTunnelsScopedListWarningData> o) { +checkUnnamed662(core.List<api.VpnTunnelsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelsScopedListWarningData(o[0]); checkVpnTunnelsScopedListWarningData(o[1]); @@ -14554,7 +15535,7 @@ buildCounterVpnTunnelsScopedListWarning++; if (buildCounterVpnTunnelsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2311(); + o.data = buildUnnamed662(); o.message = "foo"; } buildCounterVpnTunnelsScopedListWarning--; @@ -14565,7 +15546,7 @@ buildCounterVpnTunnelsScopedListWarning++; if (buildCounterVpnTunnelsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2311(o.data); + checkUnnamed662(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterVpnTunnelsScopedListWarning--; @@ -14576,7 +15557,7 @@ var o = new api.VpnTunnelsScopedList(); buildCounterVpnTunnelsScopedList++; if (buildCounterVpnTunnelsScopedList < 3) { - o.vpnTunnels = buildUnnamed2310(); + o.vpnTunnels = buildUnnamed661(); o.warning = buildVpnTunnelsScopedListWarning(); } buildCounterVpnTunnelsScopedList--; @@ -14586,20 +15567,20 @@ checkVpnTunnelsScopedList(api.VpnTunnelsScopedList o) { buildCounterVpnTunnelsScopedList++; if (buildCounterVpnTunnelsScopedList < 3) { - checkUnnamed2310(o.vpnTunnels); + checkUnnamed661(o.vpnTunnels); checkVpnTunnelsScopedListWarning(o.warning); } buildCounterVpnTunnelsScopedList--; } -buildUnnamed2312() { +buildUnnamed663() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed2312(core.List<api.Project> o) { +checkUnnamed663(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -14626,14 +15607,14 @@ buildCounterXpnHostListWarningData--; } -buildUnnamed2313() { +buildUnnamed664() { var o = new core.List<api.XpnHostListWarningData>(); o.add(buildXpnHostListWarningData()); o.add(buildXpnHostListWarningData()); return o; } -checkUnnamed2313(core.List<api.XpnHostListWarningData> o) { +checkUnnamed664(core.List<api.XpnHostListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkXpnHostListWarningData(o[0]); checkXpnHostListWarningData(o[1]); @@ -14645,7 +15626,7 @@ buildCounterXpnHostListWarning++; if (buildCounterXpnHostListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2313(); + o.data = buildUnnamed664(); o.message = "foo"; } buildCounterXpnHostListWarning--; @@ -14656,7 +15637,7 @@ buildCounterXpnHostListWarning++; if (buildCounterXpnHostListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2313(o.data); + checkUnnamed664(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterXpnHostListWarning--; @@ -14668,7 +15649,7 @@ buildCounterXpnHostList++; if (buildCounterXpnHostList < 3) { o.id = "foo"; - o.items = buildUnnamed2312(); + o.items = buildUnnamed663(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -14682,7 +15663,7 @@ buildCounterXpnHostList++; if (buildCounterXpnHostList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2312(o.items); + checkUnnamed663(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -14712,14 +15693,14 @@ buildCounterXpnResourceId--; } -buildUnnamed2314() { +buildUnnamed665() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2314(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')); @@ -14730,7 +15711,7 @@ var o = new api.Zone(); buildCounterZone++; if (buildCounterZone < 3) { - o.availableCpuPlatforms = buildUnnamed2314(); + o.availableCpuPlatforms = buildUnnamed665(); o.creationTimestamp = "foo"; o.deprecated = buildDeprecationStatus(); o.description = "foo"; @@ -14748,7 +15729,7 @@ checkZone(api.Zone o) { buildCounterZone++; if (buildCounterZone < 3) { - checkUnnamed2314(o.availableCpuPlatforms); + checkUnnamed665(o.availableCpuPlatforms); unittest.expect(o.creationTimestamp, unittest.equals('foo')); checkDeprecationStatus(o.deprecated); unittest.expect(o.description, unittest.equals('foo')); @@ -14762,14 +15743,14 @@ buildCounterZone--; } -buildUnnamed2315() { +buildUnnamed666() { var o = new core.List<api.Zone>(); o.add(buildZone()); o.add(buildZone()); return o; } -checkUnnamed2315(core.List<api.Zone> o) { +checkUnnamed666(core.List<api.Zone> o) { unittest.expect(o, unittest.hasLength(2)); checkZone(o[0]); checkZone(o[1]); @@ -14796,14 +15777,14 @@ buildCounterZoneListWarningData--; } -buildUnnamed2316() { +buildUnnamed667() { var o = new core.List<api.ZoneListWarningData>(); o.add(buildZoneListWarningData()); o.add(buildZoneListWarningData()); return o; } -checkUnnamed2316(core.List<api.ZoneListWarningData> o) { +checkUnnamed667(core.List<api.ZoneListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkZoneListWarningData(o[0]); checkZoneListWarningData(o[1]); @@ -14815,7 +15796,7 @@ buildCounterZoneListWarning++; if (buildCounterZoneListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2316(); + o.data = buildUnnamed667(); o.message = "foo"; } buildCounterZoneListWarning--; @@ -14826,7 +15807,7 @@ buildCounterZoneListWarning++; if (buildCounterZoneListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2316(o.data); + checkUnnamed667(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterZoneListWarning--; @@ -14838,7 +15819,7 @@ buildCounterZoneList++; if (buildCounterZoneList < 3) { o.id = "foo"; - o.items = buildUnnamed2315(); + o.items = buildUnnamed666(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -14852,7 +15833,7 @@ buildCounterZoneList++; if (buildCounterZoneList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2315(o.items); + checkUnnamed666(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -14861,14 +15842,14 @@ buildCounterZoneList--; } -buildUnnamed2317() { +buildUnnamed668() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2317(core.Map<core.String, core.String> o) { +checkUnnamed668(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')); @@ -14880,7 +15861,7 @@ buildCounterZoneSetLabelsRequest++; if (buildCounterZoneSetLabelsRequest < 3) { o.labelFingerprint = "foo"; - o.labels = buildUnnamed2317(); + o.labels = buildUnnamed668(); } buildCounterZoneSetLabelsRequest--; return o; @@ -14890,7 +15871,7 @@ buildCounterZoneSetLabelsRequest++; if (buildCounterZoneSetLabelsRequest < 3) { unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed2317(o.labels); + checkUnnamed668(o.labels); } buildCounterZoneSetLabelsRequest--; } @@ -16569,6 +17550,15 @@ }); }); + unittest.group("obj-schema-InterconnectAttachmentPartnerMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildInterconnectAttachmentPartnerMetadata(); + var od = + new api.InterconnectAttachmentPartnerMetadata.fromJson(o.toJson()); + checkInterconnectAttachmentPartnerMetadata(od); + }); + }); + unittest.group("obj-schema-InterconnectAttachmentPrivateInfo", () { unittest.test("to-json--from-json", () { var o = buildInterconnectAttachmentPrivateInfo(); @@ -16691,6 +17681,54 @@ }); }); + unittest.group("obj-schema-LicenseCode", () { + unittest.test("to-json--from-json", () { + var o = buildLicenseCode(); + var od = new api.LicenseCode.fromJson(o.toJson()); + checkLicenseCode(od); + }); + }); + + unittest.group("obj-schema-LicenseCodeLicenseAlias", () { + unittest.test("to-json--from-json", () { + var o = buildLicenseCodeLicenseAlias(); + var od = new api.LicenseCodeLicenseAlias.fromJson(o.toJson()); + checkLicenseCodeLicenseAlias(od); + }); + }); + + unittest.group("obj-schema-LicenseResourceRequirements", () { + unittest.test("to-json--from-json", () { + var o = buildLicenseResourceRequirements(); + var od = new api.LicenseResourceRequirements.fromJson(o.toJson()); + checkLicenseResourceRequirements(od); + }); + }); + + unittest.group("obj-schema-LicensesListResponseWarningData", () { + unittest.test("to-json--from-json", () { + var o = buildLicensesListResponseWarningData(); + var od = new api.LicensesListResponseWarningData.fromJson(o.toJson()); + checkLicensesListResponseWarningData(od); + }); + }); + + unittest.group("obj-schema-LicensesListResponseWarning", () { + unittest.test("to-json--from-json", () { + var o = buildLicensesListResponseWarning(); + var od = new api.LicensesListResponseWarning.fromJson(o.toJson()); + checkLicensesListResponseWarning(od); + }); + }); + + unittest.group("obj-schema-LicensesListResponse", () { + unittest.test("to-json--from-json", () { + var o = buildLicensesListResponse(); + var od = new api.LicensesListResponse.fromJson(o.toJson()); + checkLicensesListResponse(od); + }); + }); + unittest.group("obj-schema-MachineTypeScratchDisks", () { unittest.test("to-json--from-json", () { var o = buildMachineTypeScratchDisks(); @@ -17125,6 +18163,38 @@ }); }); + unittest.group("obj-schema-RegionDiskTypeListWarningData", () { + unittest.test("to-json--from-json", () { + var o = buildRegionDiskTypeListWarningData(); + var od = new api.RegionDiskTypeListWarningData.fromJson(o.toJson()); + checkRegionDiskTypeListWarningData(od); + }); + }); + + unittest.group("obj-schema-RegionDiskTypeListWarning", () { + unittest.test("to-json--from-json", () { + var o = buildRegionDiskTypeListWarning(); + var od = new api.RegionDiskTypeListWarning.fromJson(o.toJson()); + checkRegionDiskTypeListWarning(od); + }); + }); + + unittest.group("obj-schema-RegionDiskTypeList", () { + unittest.test("to-json--from-json", () { + var o = buildRegionDiskTypeList(); + var od = new api.RegionDiskTypeList.fromJson(o.toJson()); + checkRegionDiskTypeList(od); + }); + }); + + unittest.group("obj-schema-RegionDisksResizeRequest", () { + unittest.test("to-json--from-json", () { + var o = buildRegionDisksResizeRequest(); + var od = new api.RegionDisksResizeRequest.fromJson(o.toJson()); + checkRegionDisksResizeRequest(od); + }); + }); + unittest.group("obj-schema-RegionInstanceGroupListWarningData", () { unittest.test("to-json--from-json", () { var o = buildRegionInstanceGroupListWarningData(); @@ -17306,6 +18376,14 @@ }); }); + unittest.group("obj-schema-RegionSetLabelsRequest", () { + unittest.test("to-json--from-json", () { + var o = buildRegionSetLabelsRequest(); + var od = new api.RegionSetLabelsRequest.fromJson(o.toJson()); + checkRegionSetLabelsRequest(od); + }); + }); + unittest.group("obj-schema-ResourceCommitment", () { unittest.test("to-json--from-json", () { var o = buildResourceCommitment(); @@ -17378,6 +18456,14 @@ }); }); + unittest.group("obj-schema-RouterAdvertisedIpRange", () { + unittest.test("to-json--from-json", () { + var o = buildRouterAdvertisedIpRange(); + var od = new api.RouterAdvertisedIpRange.fromJson(o.toJson()); + checkRouterAdvertisedIpRange(od); + }); + }); + unittest.group("obj-schema-RouterAggregatedListWarningData", () { unittest.test("to-json--from-json", () { var o = buildRouterAggregatedListWarningData(); @@ -17602,6 +18688,71 @@ }); }); + unittest.group("obj-schema-SslPoliciesListWarningData", () { + unittest.test("to-json--from-json", () { + var o = buildSslPoliciesListWarningData(); + var od = new api.SslPoliciesListWarningData.fromJson(o.toJson()); + checkSslPoliciesListWarningData(od); + }); + }); + + unittest.group("obj-schema-SslPoliciesListWarning", () { + unittest.test("to-json--from-json", () { + var o = buildSslPoliciesListWarning(); + var od = new api.SslPoliciesListWarning.fromJson(o.toJson()); + checkSslPoliciesListWarning(od); + }); + }); + + unittest.group("obj-schema-SslPoliciesList", () { + unittest.test("to-json--from-json", () { + var o = buildSslPoliciesList(); + var od = new api.SslPoliciesList.fromJson(o.toJson()); + checkSslPoliciesList(od); + }); + }); + + unittest.group("obj-schema-SslPoliciesListAvailableFeaturesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildSslPoliciesListAvailableFeaturesResponse(); + var od = + new api.SslPoliciesListAvailableFeaturesResponse.fromJson(o.toJson()); + checkSslPoliciesListAvailableFeaturesResponse(od); + }); + }); + + unittest.group("obj-schema-SslPolicyWarningsData", () { + unittest.test("to-json--from-json", () { + var o = buildSslPolicyWarningsData(); + var od = new api.SslPolicyWarningsData.fromJson(o.toJson()); + checkSslPolicyWarningsData(od); + }); + }); + + unittest.group("obj-schema-SslPolicyWarnings", () { + unittest.test("to-json--from-json", () { + var o = buildSslPolicyWarnings(); + var od = new api.SslPolicyWarnings.fromJson(o.toJson()); + checkSslPolicyWarnings(od); + }); + }); + + unittest.group("obj-schema-SslPolicy", () { + unittest.test("to-json--from-json", () { + var o = buildSslPolicy(); + var od = new api.SslPolicy.fromJson(o.toJson()); + checkSslPolicy(od); + }); + }); + + unittest.group("obj-schema-SslPolicyReference", () { + unittest.test("to-json--from-json", () { + var o = buildSslPolicyReference(); + var od = new api.SslPolicyReference.fromJson(o.toJson()); + checkSslPolicyReference(od); + }); + }); + unittest.group("obj-schema-Subnetwork", () { unittest.test("to-json--from-json", () { var o = buildSubnetwork(); @@ -17755,6 +18906,15 @@ }); }); + unittest.group("obj-schema-TargetHttpsProxiesSetQuicOverrideRequest", () { + unittest.test("to-json--from-json", () { + var o = buildTargetHttpsProxiesSetQuicOverrideRequest(); + var od = + new api.TargetHttpsProxiesSetQuicOverrideRequest.fromJson(o.toJson()); + checkTargetHttpsProxiesSetQuicOverrideRequest(od); + }); + }); + unittest.group("obj-schema-TargetHttpsProxiesSetSslCertificatesRequest", () { unittest.test("to-json--from-json", () { var o = buildTargetHttpsProxiesSetSslCertificatesRequest(); @@ -18206,6 +19366,22 @@ }); }); + 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-UrlMap", () { unittest.test("to-json--from-json", () { var o = buildUrlMap(); @@ -25172,6 +26348,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instance = "foo"; + var arg_forceAttach = true; var arg_requestId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -25205,6 +26382,8 @@ } } unittest.expect( + queryMap["forceAttach"].first, unittest.equals("$arg_forceAttach")); + unittest.expect( queryMap["requestId"].first, unittest.equals(arg_requestId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -25216,7 +26395,9 @@ }), true); res .attachDisk(arg_request, arg_project, arg_zone, arg_instance, - requestId: arg_requestId, $fields: arg_$fields) + forceAttach: arg_forceAttach, + requestId: arg_requestId, + $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperation(response); }))); @@ -25502,6 +26683,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_requestId = "foo"; + var arg_sourceInstanceTemplate = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Instance.fromJson(json); @@ -25535,6 +26717,8 @@ } unittest.expect( queryMap["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["sourceInstanceTemplate"].first, + unittest.equals(arg_sourceInstanceTemplate)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -25545,7 +26729,9 @@ }), true); res .insert(arg_request, arg_project, arg_zone, - requestId: arg_requestId, $fields: arg_$fields) + requestId: arg_requestId, + sourceInstanceTemplate: arg_sourceInstanceTemplate, + $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperation(response); }))); @@ -26531,6 +27717,67 @@ checkOperation(response); }))); }); + + unittest.test("method--updateNetworkInterface", () { + var mock = new HttpServerMock(); + api.InstancesResourceApi res = new api.ComputeApi(mock).instances; + var arg_request = buildNetworkInterface(); + var arg_project = "foo"; + var arg_zone = "foo"; + var arg_instance = "foo"; + var arg_networkInterface = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.NetworkInterface.fromJson(json); + checkNetworkInterface(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["networkInterface"].first, + unittest.equals(arg_networkInterface)); + unittest.expect( + queryMap["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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 + .updateNetworkInterface(arg_request, arg_project, arg_zone, + arg_instance, arg_networkInterface, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); }); unittest.group("resource-InterconnectAttachmentsResourceApi", () { @@ -26825,6 +28072,65 @@ checkInterconnectAttachmentList(response); }))); }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.InterconnectAttachmentsResourceApi res = + new api.ComputeApi(mock).interconnectAttachments; + var arg_request = buildInterconnectAttachment(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_interconnectAttachment = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.InterconnectAttachment.fromJson(json); + checkInterconnectAttachment(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .patch( + arg_request, arg_project, arg_region, arg_interconnectAttachment, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); }); unittest.group("resource-InterconnectLocationsResourceApi", () { @@ -27218,7 +28524,162 @@ }); }); + unittest.group("resource-LicenseCodesResourceApi", () { + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.LicenseCodesResourceApi res = new api.ComputeApi(mock).licenseCodes; + var arg_project = "foo"; + var arg_licenseCode = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildLicenseCode()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_project, arg_licenseCode, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLicenseCode(response); + }))); + }); + + unittest.test("method--testIamPermissions", () { + var mock = new HttpServerMock(); + api.LicenseCodesResourceApi res = new api.ComputeApi(mock).licenseCodes; + var arg_request = buildTestPermissionsRequest(); + var arg_project = "foo"; + var arg_resource = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkTestPermissionsResponse(response); + }))); + }); + }); + unittest.group("resource-LicensesResourceApi", () { + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.LicensesResourceApi res = new api.ComputeApi(mock).licenses; + var arg_project = "foo"; + var arg_license = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_license, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); api.LicensesResourceApi res = new api.ComputeApi(mock).licenses; @@ -27266,6 +28727,177 @@ checkLicense(response); }))); }); + + unittest.test("method--insert", () { + var mock = new HttpServerMock(); + api.LicensesResourceApi res = new api.ComputeApi(mock).licenses; + var arg_request = buildLicense(); + var arg_project = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.License.fromJson(json); + checkLicense(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.LicensesResourceApi res = new api.ComputeApi(mock).licenses; + var arg_project = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildLicensesListResponse()); + 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, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLicensesListResponse(response); + }))); + }); + + unittest.test("method--testIamPermissions", () { + var mock = new HttpServerMock(); + api.LicensesResourceApi res = new api.ComputeApi(mock).licenses; + var arg_request = buildTestPermissionsRequest(); + var arg_project = "foo"; + var arg_resource = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkTestPermissionsResponse(response); + }))); + }); }); unittest.group("resource-MachineTypesResourceApi", () { @@ -29534,6 +31166,578 @@ }); }); + unittest.group("resource-RegionDiskTypesResourceApi", () { + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.RegionDiskTypesResourceApi res = + new api.ComputeApi(mock).regionDiskTypes; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_diskType = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildDiskType()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_project, arg_region, arg_diskType, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkDiskType(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.RegionDiskTypesResourceApi res = + new api.ComputeApi(mock).regionDiskTypes; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildRegionDiskTypeList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_project, arg_region, + filter: arg_filter, + maxResults: arg_maxResults, + orderBy: arg_orderBy, + pageToken: arg_pageToken, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkRegionDiskTypeList(response); + }))); + }); + }); + + unittest.group("resource-RegionDisksResourceApi", () { + unittest.test("method--createSnapshot", () { + var mock = new HttpServerMock(); + api.RegionDisksResourceApi res = new api.ComputeApi(mock).regionDisks; + var arg_request = buildSnapshot(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_disk = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.Snapshot.fromJson(json); + checkSnapshot(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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 + .createSnapshot(arg_request, arg_project, arg_region, arg_disk, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.RegionDisksResourceApi res = new api.ComputeApi(mock).regionDisks; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_disk = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .delete(arg_project, arg_region, arg_disk, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.RegionDisksResourceApi res = new api.ComputeApi(mock).regionDisks; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_disk = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildDisk()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_project, arg_region, arg_disk, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkDisk(response); + }))); + }); + + unittest.test("method--insert", () { + var mock = new HttpServerMock(); + api.RegionDisksResourceApi res = new api.ComputeApi(mock).regionDisks; + var arg_request = buildDisk(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_requestId = "foo"; + var arg_sourceImage = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.Disk.fromJson(json); + checkDisk(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect( + queryMap["sourceImage"].first, unittest.equals(arg_sourceImage)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .insert(arg_request, arg_project, arg_region, + requestId: arg_requestId, + sourceImage: arg_sourceImage, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.RegionDisksResourceApi res = new api.ComputeApi(mock).regionDisks; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildDiskList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_project, arg_region, + filter: arg_filter, + maxResults: arg_maxResults, + orderBy: arg_orderBy, + pageToken: arg_pageToken, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkDiskList(response); + }))); + }); + + unittest.test("method--resize", () { + var mock = new HttpServerMock(); + api.RegionDisksResourceApi res = new api.ComputeApi(mock).regionDisks; + var arg_request = buildRegionDisksResizeRequest(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_disk = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.RegionDisksResizeRequest.fromJson(json); + checkRegionDisksResizeRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .resize(arg_request, arg_project, arg_region, arg_disk, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--setLabels", () { + var mock = new HttpServerMock(); + api.RegionDisksResourceApi res = new api.ComputeApi(mock).regionDisks; + var arg_request = buildRegionSetLabelsRequest(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_resource = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.RegionSetLabelsRequest.fromJson(json); + checkRegionSetLabelsRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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 + .setLabels(arg_request, arg_project, arg_region, arg_resource, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--testIamPermissions", () { + var mock = new HttpServerMock(); + api.RegionDisksResourceApi res = new api.ComputeApi(mock).regionDisks; + var arg_request = buildTestPermissionsRequest(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_resource = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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_region, arg_resource, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkTestPermissionsResponse(response); + }))); + }); + }); + unittest.group("resource-RegionInstanceGroupManagersResourceApi", () { unittest.test("method--abandonInstances", () { var mock = new HttpServerMock(); @@ -31889,6 +34093,346 @@ }); }); + unittest.group("resource-SslPoliciesResourceApi", () { + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.SslPoliciesResourceApi res = new api.ComputeApi(mock).sslPolicies; + var arg_project = "foo"; + var arg_sslPolicy = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_sslPolicy, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.SslPoliciesResourceApi res = new api.ComputeApi(mock).sslPolicies; + var arg_project = "foo"; + var arg_sslPolicy = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildSslPolicy()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_project, arg_sslPolicy, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkSslPolicy(response); + }))); + }); + + unittest.test("method--insert", () { + var mock = new HttpServerMock(); + api.SslPoliciesResourceApi res = new api.ComputeApi(mock).sslPolicies; + var arg_request = buildSslPolicy(); + var arg_project = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.SslPolicy.fromJson(json); + checkSslPolicy(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.SslPoliciesResourceApi res = new api.ComputeApi(mock).sslPolicies; + var arg_project = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildSslPoliciesList()); + 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, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkSslPoliciesList(response); + }))); + }); + + unittest.test("method--listAvailableFeatures", () { + var mock = new HttpServerMock(); + api.SslPoliciesResourceApi res = new api.ComputeApi(mock).sslPolicies; + var arg_project = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildSslPoliciesListAvailableFeaturesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .listAvailableFeatures(arg_project, + filter: arg_filter, + maxResults: arg_maxResults, + orderBy: arg_orderBy, + pageToken: arg_pageToken, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkSslPoliciesListAvailableFeaturesResponse(response); + }))); + }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.SslPoliciesResourceApi res = new api.ComputeApi(mock).sslPolicies; + var arg_request = buildSslPolicy(); + var arg_project = "foo"; + var arg_sslPolicy = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.SslPolicy.fromJson(json); + checkSslPolicy(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_sslPolicy, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + }); + unittest.group("resource-SubnetworksResourceApi", () { unittest.test("method--aggregatedList", () { var mock = new HttpServerMock(); @@ -32233,6 +34777,63 @@ }))); }); + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.SubnetworksResourceApi res = new api.ComputeApi(mock).subnetworks; + var arg_request = buildSubnetwork(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_subnetwork = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.Subnetwork.fromJson(json); + checkSubnetwork(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .patch(arg_request, arg_project, arg_region, arg_subnetwork, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + unittest.test("method--setPrivateIpGoogleAccess", () { var mock = new HttpServerMock(); api.SubnetworksResourceApi res = new api.ComputeApi(mock).subnetworks; @@ -32797,6 +35398,64 @@ }))); }); + unittest.test("method--setQuicOverride", () { + var mock = new HttpServerMock(); + api.TargetHttpsProxiesResourceApi res = + new api.ComputeApi(mock).targetHttpsProxies; + var arg_request = buildTargetHttpsProxiesSetQuicOverrideRequest(); + var arg_project = "foo"; + var arg_targetHttpsProxy = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.TargetHttpsProxiesSetQuicOverrideRequest.fromJson(json); + checkTargetHttpsProxiesSetQuicOverrideRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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 + .setQuicOverride(arg_request, arg_project, arg_targetHttpsProxy, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + unittest.test("method--setSslCertificates", () { var mock = new HttpServerMock(); api.TargetHttpsProxiesResourceApi res = @@ -32855,6 +35514,63 @@ }))); }); + unittest.test("method--setSslPolicy", () { + var mock = new HttpServerMock(); + api.TargetHttpsProxiesResourceApi res = + new api.ComputeApi(mock).targetHttpsProxies; + var arg_request = buildSslPolicyReference(); + var arg_project = "foo"; + var arg_targetHttpsProxy = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.SslPolicyReference.fromJson(json); + checkSslPolicyReference(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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 + .setSslPolicy(arg_request, arg_project, arg_targetHttpsProxy, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + unittest.test("method--setUrlMap", () { var mock = new HttpServerMock(); api.TargetHttpsProxiesResourceApi res = @@ -34232,6 +36948,63 @@ checkOperation(response); }))); }); + + unittest.test("method--setSslPolicy", () { + var mock = new HttpServerMock(); + api.TargetSslProxiesResourceApi res = + new api.ComputeApi(mock).targetSslProxies; + var arg_request = buildSslPolicyReference(); + var arg_project = "foo"; + var arg_targetSslProxy = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.SslPolicyReference.fromJson(json); + checkSslPolicyReference(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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 + .setSslPolicy(arg_request, arg_project, arg_targetSslProxy, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); }); unittest.group("resource-TargetTcpProxiesResourceApi", () {
diff --git a/generated/googleapis/test/container/v1_test.dart b/generated/googleapis/test/container/v1_test.dart index 99289fe..310eae1 100644 --- a/generated/googleapis/test/container/v1_test.dart +++ b/generated/googleapis/test/container/v1_test.dart
@@ -121,14 +121,24 @@ buildCancelOperationRequest() { var o = new api.CancelOperationRequest(); buildCounterCancelOperationRequest++; - if (buildCounterCancelOperationRequest < 3) {} + if (buildCounterCancelOperationRequest < 3) { + o.name = "foo"; + o.operationId = "foo"; + o.projectId = "foo"; + o.zone = "foo"; + } buildCounterCancelOperationRequest--; return o; } checkCancelOperationRequest(api.CancelOperationRequest o) { buildCounterCancelOperationRequest++; - if (buildCounterCancelOperationRequest < 3) {} + if (buildCounterCancelOperationRequest < 3) { + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.operationId, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); + unittest.expect(o.zone, unittest.equals('foo')); + } buildCounterCancelOperationRequest--; } @@ -172,53 +182,53 @@ buildCounterClientCertificateConfig--; } -buildUnnamed2854() { +buildUnnamed669() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2854(core.List<core.String> o) { +checkUnnamed669(core.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() { +buildUnnamed670() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2855(core.List<core.String> o) { +checkUnnamed670(core.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() { +buildUnnamed671() { var o = new core.List<api.NodePool>(); o.add(buildNodePool()); o.add(buildNodePool()); return o; } -checkUnnamed2856(core.List<api.NodePool> o) { +checkUnnamed671(core.List<api.NodePool> o) { unittest.expect(o, unittest.hasLength(2)); checkNodePool(o[0]); checkNodePool(o[1]); } -buildUnnamed2857() { +buildUnnamed672() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2857(core.Map<core.String, core.String> o) { +checkUnnamed672(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')); @@ -241,11 +251,12 @@ o.expireTime = "foo"; o.initialClusterVersion = "foo"; o.initialNodeCount = 42; - o.instanceGroupUrls = buildUnnamed2854(); + o.instanceGroupUrls = buildUnnamed669(); o.ipAllocationPolicy = buildIPAllocationPolicy(); o.labelFingerprint = "foo"; o.legacyAbac = buildLegacyAbac(); - o.locations = buildUnnamed2855(); + o.location = "foo"; + o.locations = buildUnnamed670(); o.loggingService = "foo"; o.maintenancePolicy = buildMaintenancePolicy(); o.masterAuth = buildMasterAuth(); @@ -256,8 +267,8 @@ o.networkPolicy = buildNetworkPolicy(); o.nodeConfig = buildNodeConfig(); o.nodeIpv4CidrSize = 42; - o.nodePools = buildUnnamed2856(); - o.resourceLabels = buildUnnamed2857(); + o.nodePools = buildUnnamed671(); + o.resourceLabels = buildUnnamed672(); o.selfLink = "foo"; o.servicesIpv4Cidr = "foo"; o.status = "foo"; @@ -284,11 +295,12 @@ unittest.expect(o.expireTime, unittest.equals('foo')); unittest.expect(o.initialClusterVersion, unittest.equals('foo')); unittest.expect(o.initialNodeCount, unittest.equals(42)); - checkUnnamed2854(o.instanceGroupUrls); + checkUnnamed669(o.instanceGroupUrls); checkIPAllocationPolicy(o.ipAllocationPolicy); unittest.expect(o.labelFingerprint, unittest.equals('foo')); checkLegacyAbac(o.legacyAbac); - checkUnnamed2855(o.locations); + unittest.expect(o.location, unittest.equals('foo')); + checkUnnamed670(o.locations); unittest.expect(o.loggingService, unittest.equals('foo')); checkMaintenancePolicy(o.maintenancePolicy); checkMasterAuth(o.masterAuth); @@ -299,8 +311,8 @@ checkNetworkPolicy(o.networkPolicy); checkNodeConfig(o.nodeConfig); unittest.expect(o.nodeIpv4CidrSize, unittest.equals(42)); - checkUnnamed2856(o.nodePools); - checkUnnamed2857(o.resourceLabels); + checkUnnamed671(o.nodePools); + checkUnnamed672(o.resourceLabels); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); @@ -311,14 +323,14 @@ buildCounterCluster--; } -buildUnnamed2858() { +buildUnnamed673() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2858(core.List<core.String> o) { +checkUnnamed673(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -331,7 +343,7 @@ if (buildCounterClusterUpdate < 3) { o.desiredAddonsConfig = buildAddonsConfig(); o.desiredImageType = "foo"; - o.desiredLocations = buildUnnamed2858(); + o.desiredLocations = buildUnnamed673(); o.desiredMasterAuthorizedNetworksConfig = buildMasterAuthorizedNetworksConfig(); o.desiredMasterVersion = "foo"; @@ -349,7 +361,7 @@ if (buildCounterClusterUpdate < 3) { checkAddonsConfig(o.desiredAddonsConfig); unittest.expect(o.desiredImageType, unittest.equals('foo')); - checkUnnamed2858(o.desiredLocations); + checkUnnamed673(o.desiredLocations); checkMasterAuthorizedNetworksConfig( o.desiredMasterAuthorizedNetworksConfig); unittest.expect(o.desiredMasterVersion, unittest.equals('foo')); @@ -365,14 +377,24 @@ buildCompleteIPRotationRequest() { var o = new api.CompleteIPRotationRequest(); buildCounterCompleteIPRotationRequest++; - if (buildCounterCompleteIPRotationRequest < 3) {} + if (buildCounterCompleteIPRotationRequest < 3) { + o.clusterId = "foo"; + o.name = "foo"; + o.projectId = "foo"; + o.zone = "foo"; + } buildCounterCompleteIPRotationRequest--; return o; } checkCompleteIPRotationRequest(api.CompleteIPRotationRequest o) { buildCounterCompleteIPRotationRequest++; - if (buildCounterCompleteIPRotationRequest < 3) {} + if (buildCounterCompleteIPRotationRequest < 3) { + unittest.expect(o.clusterId, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); + unittest.expect(o.zone, unittest.equals('foo')); + } buildCounterCompleteIPRotationRequest--; } @@ -382,6 +404,9 @@ buildCounterCreateClusterRequest++; if (buildCounterCreateClusterRequest < 3) { o.cluster = buildCluster(); + o.parent = "foo"; + o.projectId = "foo"; + o.zone = "foo"; } buildCounterCreateClusterRequest--; return o; @@ -391,6 +416,9 @@ buildCounterCreateClusterRequest++; if (buildCounterCreateClusterRequest < 3) { checkCluster(o.cluster); + unittest.expect(o.parent, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); + unittest.expect(o.zone, unittest.equals('foo')); } buildCounterCreateClusterRequest--; } @@ -400,7 +428,11 @@ var o = new api.CreateNodePoolRequest(); buildCounterCreateNodePoolRequest++; if (buildCounterCreateNodePoolRequest < 3) { + o.clusterId = "foo"; o.nodePool = buildNodePool(); + o.parent = "foo"; + o.projectId = "foo"; + o.zone = "foo"; } buildCounterCreateNodePoolRequest--; return o; @@ -409,7 +441,11 @@ checkCreateNodePoolRequest(api.CreateNodePoolRequest o) { buildCounterCreateNodePoolRequest++; if (buildCounterCreateNodePoolRequest < 3) { + unittest.expect(o.clusterId, unittest.equals('foo')); checkNodePool(o.nodePool); + unittest.expect(o.parent, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); + unittest.expect(o.zone, unittest.equals('foo')); } buildCounterCreateNodePoolRequest--; } @@ -565,27 +601,27 @@ buildCounterLegacyAbac--; } -buildUnnamed2859() { +buildUnnamed674() { var o = new core.List<api.Cluster>(); o.add(buildCluster()); o.add(buildCluster()); return o; } -checkUnnamed2859(core.List<api.Cluster> o) { +checkUnnamed674(core.List<api.Cluster> o) { unittest.expect(o, unittest.hasLength(2)); checkCluster(o[0]); checkCluster(o[1]); } -buildUnnamed2860() { +buildUnnamed675() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2860(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')); @@ -596,8 +632,8 @@ var o = new api.ListClustersResponse(); buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - o.clusters = buildUnnamed2859(); - o.missingZones = buildUnnamed2860(); + o.clusters = buildUnnamed674(); + o.missingZones = buildUnnamed675(); } buildCounterListClustersResponse--; return o; @@ -606,20 +642,20 @@ checkListClustersResponse(api.ListClustersResponse o) { buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - checkUnnamed2859(o.clusters); - checkUnnamed2860(o.missingZones); + checkUnnamed674(o.clusters); + checkUnnamed675(o.missingZones); } buildCounterListClustersResponse--; } -buildUnnamed2861() { +buildUnnamed676() { var o = new core.List<api.NodePool>(); o.add(buildNodePool()); o.add(buildNodePool()); return o; } -checkUnnamed2861(core.List<api.NodePool> o) { +checkUnnamed676(core.List<api.NodePool> o) { unittest.expect(o, unittest.hasLength(2)); checkNodePool(o[0]); checkNodePool(o[1]); @@ -630,7 +666,7 @@ var o = new api.ListNodePoolsResponse(); buildCounterListNodePoolsResponse++; if (buildCounterListNodePoolsResponse < 3) { - o.nodePools = buildUnnamed2861(); + o.nodePools = buildUnnamed676(); } buildCounterListNodePoolsResponse--; return o; @@ -639,32 +675,32 @@ checkListNodePoolsResponse(api.ListNodePoolsResponse o) { buildCounterListNodePoolsResponse++; if (buildCounterListNodePoolsResponse < 3) { - checkUnnamed2861(o.nodePools); + checkUnnamed676(o.nodePools); } buildCounterListNodePoolsResponse--; } -buildUnnamed2862() { +buildUnnamed677() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2862(core.List<core.String> o) { +checkUnnamed677(core.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() { +buildUnnamed678() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2863(core.List<api.Operation> o) { +checkUnnamed678(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -675,8 +711,8 @@ var o = new api.ListOperationsResponse(); buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { - o.missingZones = buildUnnamed2862(); - o.operations = buildUnnamed2863(); + o.missingZones = buildUnnamed677(); + o.operations = buildUnnamed678(); } buildCounterListOperationsResponse--; return o; @@ -685,8 +721,8 @@ checkListOperationsResponse(api.ListOperationsResponse o) { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { - checkUnnamed2862(o.missingZones); - checkUnnamed2863(o.operations); + checkUnnamed677(o.missingZones); + checkUnnamed678(o.operations); } buildCounterListOperationsResponse--; } @@ -758,14 +794,14 @@ buildCounterMasterAuth--; } -buildUnnamed2864() { +buildUnnamed679() { var o = new core.List<api.CidrBlock>(); o.add(buildCidrBlock()); o.add(buildCidrBlock()); return o; } -checkUnnamed2864(core.List<api.CidrBlock> o) { +checkUnnamed679(core.List<api.CidrBlock> o) { unittest.expect(o, unittest.hasLength(2)); checkCidrBlock(o[0]); checkCidrBlock(o[1]); @@ -776,7 +812,7 @@ var o = new api.MasterAuthorizedNetworksConfig(); buildCounterMasterAuthorizedNetworksConfig++; if (buildCounterMasterAuthorizedNetworksConfig < 3) { - o.cidrBlocks = buildUnnamed2864(); + o.cidrBlocks = buildUnnamed679(); o.enabled = true; } buildCounterMasterAuthorizedNetworksConfig--; @@ -786,7 +822,7 @@ checkMasterAuthorizedNetworksConfig(api.MasterAuthorizedNetworksConfig o) { buildCounterMasterAuthorizedNetworksConfig++; if (buildCounterMasterAuthorizedNetworksConfig < 3) { - checkUnnamed2864(o.cidrBlocks); + checkUnnamed679(o.cidrBlocks); unittest.expect(o.enabled, unittest.isTrue); } buildCounterMasterAuthorizedNetworksConfig--; @@ -832,66 +868,66 @@ buildCounterNetworkPolicyConfig--; } -buildUnnamed2865() { +buildUnnamed680() { var o = new core.List<api.AcceleratorConfig>(); o.add(buildAcceleratorConfig()); o.add(buildAcceleratorConfig()); return o; } -checkUnnamed2865(core.List<api.AcceleratorConfig> o) { +checkUnnamed680(core.List<api.AcceleratorConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfig(o[0]); checkAcceleratorConfig(o[1]); } -buildUnnamed2866() { +buildUnnamed681() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2866(core.Map<core.String, core.String> o) { +checkUnnamed681(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')); } -buildUnnamed2867() { +buildUnnamed682() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2867(core.Map<core.String, core.String> o) { +checkUnnamed682(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')); } -buildUnnamed2868() { +buildUnnamed683() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2868(core.List<core.String> o) { +checkUnnamed683(core.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() { +buildUnnamed684() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2869(core.List<core.String> o) { +checkUnnamed684(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -902,18 +938,18 @@ var o = new api.NodeConfig(); buildCounterNodeConfig++; if (buildCounterNodeConfig < 3) { - o.accelerators = buildUnnamed2865(); + o.accelerators = buildUnnamed680(); o.diskSizeGb = 42; o.imageType = "foo"; - o.labels = buildUnnamed2866(); + o.labels = buildUnnamed681(); o.localSsdCount = 42; o.machineType = "foo"; - o.metadata = buildUnnamed2867(); + o.metadata = buildUnnamed682(); o.minCpuPlatform = "foo"; - o.oauthScopes = buildUnnamed2868(); + o.oauthScopes = buildUnnamed683(); o.preemptible = true; o.serviceAccount = "foo"; - o.tags = buildUnnamed2869(); + o.tags = buildUnnamed684(); } buildCounterNodeConfig--; return o; @@ -922,18 +958,18 @@ checkNodeConfig(api.NodeConfig o) { buildCounterNodeConfig++; if (buildCounterNodeConfig < 3) { - checkUnnamed2865(o.accelerators); + checkUnnamed680(o.accelerators); unittest.expect(o.diskSizeGb, unittest.equals(42)); unittest.expect(o.imageType, unittest.equals('foo')); - checkUnnamed2866(o.labels); + checkUnnamed681(o.labels); unittest.expect(o.localSsdCount, unittest.equals(42)); unittest.expect(o.machineType, unittest.equals('foo')); - checkUnnamed2867(o.metadata); + checkUnnamed682(o.metadata); unittest.expect(o.minCpuPlatform, unittest.equals('foo')); - checkUnnamed2868(o.oauthScopes); + checkUnnamed683(o.oauthScopes); unittest.expect(o.preemptible, unittest.isTrue); unittest.expect(o.serviceAccount, unittest.equals('foo')); - checkUnnamed2869(o.tags); + checkUnnamed684(o.tags); } buildCounterNodeConfig--; } @@ -961,14 +997,14 @@ buildCounterNodeManagement--; } -buildUnnamed2870() { +buildUnnamed685() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2870(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')); @@ -982,7 +1018,7 @@ o.autoscaling = buildNodePoolAutoscaling(); o.config = buildNodeConfig(); o.initialNodeCount = 42; - o.instanceGroupUrls = buildUnnamed2870(); + o.instanceGroupUrls = buildUnnamed685(); o.management = buildNodeManagement(); o.name = "foo"; o.selfLink = "foo"; @@ -1000,7 +1036,7 @@ checkNodePoolAutoscaling(o.autoscaling); checkNodeConfig(o.config); unittest.expect(o.initialNodeCount, unittest.equals(42)); - checkUnnamed2870(o.instanceGroupUrls); + checkUnnamed685(o.instanceGroupUrls); checkNodeManagement(o.management); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1041,6 +1077,7 @@ if (buildCounterOperation < 3) { o.detail = "foo"; o.endTime = "foo"; + o.location = "foo"; o.name = "foo"; o.operationType = "foo"; o.selfLink = "foo"; @@ -1059,6 +1096,7 @@ if (buildCounterOperation < 3) { unittest.expect(o.detail, unittest.equals('foo')); unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.operationType, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1075,51 +1113,63 @@ buildRollbackNodePoolUpgradeRequest() { var o = new api.RollbackNodePoolUpgradeRequest(); buildCounterRollbackNodePoolUpgradeRequest++; - if (buildCounterRollbackNodePoolUpgradeRequest < 3) {} + if (buildCounterRollbackNodePoolUpgradeRequest < 3) { + o.clusterId = "foo"; + o.name = "foo"; + o.nodePoolId = "foo"; + o.projectId = "foo"; + o.zone = "foo"; + } buildCounterRollbackNodePoolUpgradeRequest--; return o; } checkRollbackNodePoolUpgradeRequest(api.RollbackNodePoolUpgradeRequest o) { buildCounterRollbackNodePoolUpgradeRequest++; - if (buildCounterRollbackNodePoolUpgradeRequest < 3) {} + if (buildCounterRollbackNodePoolUpgradeRequest < 3) { + unittest.expect(o.clusterId, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.nodePoolId, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); + unittest.expect(o.zone, unittest.equals('foo')); + } buildCounterRollbackNodePoolUpgradeRequest--; } -buildUnnamed2871() { +buildUnnamed686() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2871(core.List<core.String> o) { +checkUnnamed686(core.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() { +buildUnnamed687() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2872(core.List<core.String> o) { +checkUnnamed687(core.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() { +buildUnnamed688() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2873(core.List<core.String> o) { +checkUnnamed688(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1132,9 +1182,9 @@ if (buildCounterServerConfig < 3) { o.defaultClusterVersion = "foo"; o.defaultImageType = "foo"; - o.validImageTypes = buildUnnamed2871(); - o.validMasterVersions = buildUnnamed2872(); - o.validNodeVersions = buildUnnamed2873(); + o.validImageTypes = buildUnnamed686(); + o.validMasterVersions = buildUnnamed687(); + o.validNodeVersions = buildUnnamed688(); } buildCounterServerConfig--; return o; @@ -1145,9 +1195,9 @@ if (buildCounterServerConfig < 3) { unittest.expect(o.defaultClusterVersion, unittest.equals('foo')); unittest.expect(o.defaultImageType, unittest.equals('foo')); - checkUnnamed2871(o.validImageTypes); - checkUnnamed2872(o.validMasterVersions); - checkUnnamed2873(o.validNodeVersions); + checkUnnamed686(o.validImageTypes); + checkUnnamed687(o.validMasterVersions); + checkUnnamed688(o.validNodeVersions); } buildCounterServerConfig--; } @@ -1158,6 +1208,10 @@ buildCounterSetAddonsConfigRequest++; if (buildCounterSetAddonsConfigRequest < 3) { o.addonsConfig = buildAddonsConfig(); + o.clusterId = "foo"; + o.name = "foo"; + o.projectId = "foo"; + o.zone = "foo"; } buildCounterSetAddonsConfigRequest--; return o; @@ -1167,18 +1221,22 @@ buildCounterSetAddonsConfigRequest++; if (buildCounterSetAddonsConfigRequest < 3) { checkAddonsConfig(o.addonsConfig); + unittest.expect(o.clusterId, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); + unittest.expect(o.zone, unittest.equals('foo')); } buildCounterSetAddonsConfigRequest--; } -buildUnnamed2874() { +buildUnnamed689() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2874(core.Map<core.String, core.String> o) { +checkUnnamed689(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')); @@ -1189,8 +1247,12 @@ var o = new api.SetLabelsRequest(); buildCounterSetLabelsRequest++; if (buildCounterSetLabelsRequest < 3) { + o.clusterId = "foo"; o.labelFingerprint = "foo"; - o.resourceLabels = buildUnnamed2874(); + o.name = "foo"; + o.projectId = "foo"; + o.resourceLabels = buildUnnamed689(); + o.zone = "foo"; } buildCounterSetLabelsRequest--; return o; @@ -1199,8 +1261,12 @@ checkSetLabelsRequest(api.SetLabelsRequest o) { buildCounterSetLabelsRequest++; if (buildCounterSetLabelsRequest < 3) { + unittest.expect(o.clusterId, unittest.equals('foo')); unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed2874(o.resourceLabels); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); + checkUnnamed689(o.resourceLabels); + unittest.expect(o.zone, unittest.equals('foo')); } buildCounterSetLabelsRequest--; } @@ -1210,7 +1276,11 @@ var o = new api.SetLegacyAbacRequest(); buildCounterSetLegacyAbacRequest++; if (buildCounterSetLegacyAbacRequest < 3) { + o.clusterId = "foo"; o.enabled = true; + o.name = "foo"; + o.projectId = "foo"; + o.zone = "foo"; } buildCounterSetLegacyAbacRequest--; return o; @@ -1219,19 +1289,23 @@ checkSetLegacyAbacRequest(api.SetLegacyAbacRequest o) { buildCounterSetLegacyAbacRequest++; if (buildCounterSetLegacyAbacRequest < 3) { + unittest.expect(o.clusterId, unittest.equals('foo')); unittest.expect(o.enabled, unittest.isTrue); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); + unittest.expect(o.zone, unittest.equals('foo')); } buildCounterSetLegacyAbacRequest--; } -buildUnnamed2875() { +buildUnnamed690() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2875(core.List<core.String> o) { +checkUnnamed690(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1242,7 +1316,11 @@ var o = new api.SetLocationsRequest(); buildCounterSetLocationsRequest++; if (buildCounterSetLocationsRequest < 3) { - o.locations = buildUnnamed2875(); + o.clusterId = "foo"; + o.locations = buildUnnamed690(); + o.name = "foo"; + o.projectId = "foo"; + o.zone = "foo"; } buildCounterSetLocationsRequest--; return o; @@ -1251,7 +1329,11 @@ checkSetLocationsRequest(api.SetLocationsRequest o) { buildCounterSetLocationsRequest++; if (buildCounterSetLocationsRequest < 3) { - checkUnnamed2875(o.locations); + unittest.expect(o.clusterId, unittest.equals('foo')); + checkUnnamed690(o.locations); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); + unittest.expect(o.zone, unittest.equals('foo')); } buildCounterSetLocationsRequest--; } @@ -1261,7 +1343,11 @@ var o = new api.SetLoggingServiceRequest(); buildCounterSetLoggingServiceRequest++; if (buildCounterSetLoggingServiceRequest < 3) { + o.clusterId = "foo"; o.loggingService = "foo"; + o.name = "foo"; + o.projectId = "foo"; + o.zone = "foo"; } buildCounterSetLoggingServiceRequest--; return o; @@ -1270,7 +1356,11 @@ checkSetLoggingServiceRequest(api.SetLoggingServiceRequest o) { buildCounterSetLoggingServiceRequest++; if (buildCounterSetLoggingServiceRequest < 3) { + unittest.expect(o.clusterId, unittest.equals('foo')); unittest.expect(o.loggingService, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); + unittest.expect(o.zone, unittest.equals('foo')); } buildCounterSetLoggingServiceRequest--; } @@ -1280,7 +1370,11 @@ var o = new api.SetMaintenancePolicyRequest(); buildCounterSetMaintenancePolicyRequest++; if (buildCounterSetMaintenancePolicyRequest < 3) { + o.clusterId = "foo"; o.maintenancePolicy = buildMaintenancePolicy(); + o.name = "foo"; + o.projectId = "foo"; + o.zone = "foo"; } buildCounterSetMaintenancePolicyRequest--; return o; @@ -1289,7 +1383,11 @@ checkSetMaintenancePolicyRequest(api.SetMaintenancePolicyRequest o) { buildCounterSetMaintenancePolicyRequest++; if (buildCounterSetMaintenancePolicyRequest < 3) { + unittest.expect(o.clusterId, unittest.equals('foo')); checkMaintenancePolicy(o.maintenancePolicy); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); + unittest.expect(o.zone, unittest.equals('foo')); } buildCounterSetMaintenancePolicyRequest--; } @@ -1300,7 +1398,11 @@ buildCounterSetMasterAuthRequest++; if (buildCounterSetMasterAuthRequest < 3) { o.action = "foo"; + o.clusterId = "foo"; + o.name = "foo"; + o.projectId = "foo"; o.update = buildMasterAuth(); + o.zone = "foo"; } buildCounterSetMasterAuthRequest--; return o; @@ -1310,7 +1412,11 @@ buildCounterSetMasterAuthRequest++; if (buildCounterSetMasterAuthRequest < 3) { unittest.expect(o.action, unittest.equals('foo')); + unittest.expect(o.clusterId, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); checkMasterAuth(o.update); + unittest.expect(o.zone, unittest.equals('foo')); } buildCounterSetMasterAuthRequest--; } @@ -1320,7 +1426,11 @@ var o = new api.SetMonitoringServiceRequest(); buildCounterSetMonitoringServiceRequest++; if (buildCounterSetMonitoringServiceRequest < 3) { + o.clusterId = "foo"; o.monitoringService = "foo"; + o.name = "foo"; + o.projectId = "foo"; + o.zone = "foo"; } buildCounterSetMonitoringServiceRequest--; return o; @@ -1329,7 +1439,11 @@ checkSetMonitoringServiceRequest(api.SetMonitoringServiceRequest o) { buildCounterSetMonitoringServiceRequest++; if (buildCounterSetMonitoringServiceRequest < 3) { + unittest.expect(o.clusterId, unittest.equals('foo')); unittest.expect(o.monitoringService, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); + unittest.expect(o.zone, unittest.equals('foo')); } buildCounterSetMonitoringServiceRequest--; } @@ -1339,7 +1453,11 @@ var o = new api.SetNetworkPolicyRequest(); buildCounterSetNetworkPolicyRequest++; if (buildCounterSetNetworkPolicyRequest < 3) { + o.clusterId = "foo"; + o.name = "foo"; o.networkPolicy = buildNetworkPolicy(); + o.projectId = "foo"; + o.zone = "foo"; } buildCounterSetNetworkPolicyRequest--; return o; @@ -1348,7 +1466,11 @@ checkSetNetworkPolicyRequest(api.SetNetworkPolicyRequest o) { buildCounterSetNetworkPolicyRequest++; if (buildCounterSetNetworkPolicyRequest < 3) { + unittest.expect(o.clusterId, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); checkNetworkPolicy(o.networkPolicy); + unittest.expect(o.projectId, unittest.equals('foo')); + unittest.expect(o.zone, unittest.equals('foo')); } buildCounterSetNetworkPolicyRequest--; } @@ -1359,6 +1481,11 @@ buildCounterSetNodePoolAutoscalingRequest++; if (buildCounterSetNodePoolAutoscalingRequest < 3) { o.autoscaling = buildNodePoolAutoscaling(); + o.clusterId = "foo"; + o.name = "foo"; + o.nodePoolId = "foo"; + o.projectId = "foo"; + o.zone = "foo"; } buildCounterSetNodePoolAutoscalingRequest--; return o; @@ -1368,6 +1495,11 @@ buildCounterSetNodePoolAutoscalingRequest++; if (buildCounterSetNodePoolAutoscalingRequest < 3) { checkNodePoolAutoscaling(o.autoscaling); + unittest.expect(o.clusterId, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.nodePoolId, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); + unittest.expect(o.zone, unittest.equals('foo')); } buildCounterSetNodePoolAutoscalingRequest--; } @@ -1377,7 +1509,12 @@ var o = new api.SetNodePoolManagementRequest(); buildCounterSetNodePoolManagementRequest++; if (buildCounterSetNodePoolManagementRequest < 3) { + o.clusterId = "foo"; o.management = buildNodeManagement(); + o.name = "foo"; + o.nodePoolId = "foo"; + o.projectId = "foo"; + o.zone = "foo"; } buildCounterSetNodePoolManagementRequest--; return o; @@ -1386,7 +1523,12 @@ checkSetNodePoolManagementRequest(api.SetNodePoolManagementRequest o) { buildCounterSetNodePoolManagementRequest++; if (buildCounterSetNodePoolManagementRequest < 3) { + unittest.expect(o.clusterId, unittest.equals('foo')); checkNodeManagement(o.management); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.nodePoolId, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); + unittest.expect(o.zone, unittest.equals('foo')); } buildCounterSetNodePoolManagementRequest--; } @@ -1396,7 +1538,12 @@ var o = new api.SetNodePoolSizeRequest(); buildCounterSetNodePoolSizeRequest++; if (buildCounterSetNodePoolSizeRequest < 3) { + o.clusterId = "foo"; + o.name = "foo"; o.nodeCount = 42; + o.nodePoolId = "foo"; + o.projectId = "foo"; + o.zone = "foo"; } buildCounterSetNodePoolSizeRequest--; return o; @@ -1405,7 +1552,12 @@ checkSetNodePoolSizeRequest(api.SetNodePoolSizeRequest o) { buildCounterSetNodePoolSizeRequest++; if (buildCounterSetNodePoolSizeRequest < 3) { + unittest.expect(o.clusterId, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nodeCount, unittest.equals(42)); + unittest.expect(o.nodePoolId, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); + unittest.expect(o.zone, unittest.equals('foo')); } buildCounterSetNodePoolSizeRequest--; } @@ -1414,14 +1566,26 @@ buildStartIPRotationRequest() { var o = new api.StartIPRotationRequest(); buildCounterStartIPRotationRequest++; - if (buildCounterStartIPRotationRequest < 3) {} + if (buildCounterStartIPRotationRequest < 3) { + o.clusterId = "foo"; + o.name = "foo"; + o.projectId = "foo"; + o.rotateCredentials = true; + o.zone = "foo"; + } buildCounterStartIPRotationRequest--; return o; } checkStartIPRotationRequest(api.StartIPRotationRequest o) { buildCounterStartIPRotationRequest++; - if (buildCounterStartIPRotationRequest < 3) {} + if (buildCounterStartIPRotationRequest < 3) { + unittest.expect(o.clusterId, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); + unittest.expect(o.rotateCredentials, unittest.isTrue); + unittest.expect(o.zone, unittest.equals('foo')); + } buildCounterStartIPRotationRequest--; } @@ -1430,7 +1594,11 @@ var o = new api.UpdateClusterRequest(); buildCounterUpdateClusterRequest++; if (buildCounterUpdateClusterRequest < 3) { + o.clusterId = "foo"; + o.name = "foo"; + o.projectId = "foo"; o.update = buildClusterUpdate(); + o.zone = "foo"; } buildCounterUpdateClusterRequest--; return o; @@ -1439,7 +1607,11 @@ checkUpdateClusterRequest(api.UpdateClusterRequest o) { buildCounterUpdateClusterRequest++; if (buildCounterUpdateClusterRequest < 3) { + unittest.expect(o.clusterId, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); checkClusterUpdate(o.update); + unittest.expect(o.zone, unittest.equals('foo')); } buildCounterUpdateClusterRequest--; } @@ -1449,7 +1621,11 @@ var o = new api.UpdateMasterRequest(); buildCounterUpdateMasterRequest++; if (buildCounterUpdateMasterRequest < 3) { + o.clusterId = "foo"; o.masterVersion = "foo"; + o.name = "foo"; + o.projectId = "foo"; + o.zone = "foo"; } buildCounterUpdateMasterRequest--; return o; @@ -1458,7 +1634,11 @@ checkUpdateMasterRequest(api.UpdateMasterRequest o) { buildCounterUpdateMasterRequest++; if (buildCounterUpdateMasterRequest < 3) { + unittest.expect(o.clusterId, unittest.equals('foo')); unittest.expect(o.masterVersion, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); + unittest.expect(o.zone, unittest.equals('foo')); } buildCounterUpdateMasterRequest--; } @@ -1468,8 +1648,13 @@ var o = new api.UpdateNodePoolRequest(); buildCounterUpdateNodePoolRequest++; if (buildCounterUpdateNodePoolRequest < 3) { + o.clusterId = "foo"; o.imageType = "foo"; + o.name = "foo"; + o.nodePoolId = "foo"; o.nodeVersion = "foo"; + o.projectId = "foo"; + o.zone = "foo"; } buildCounterUpdateNodePoolRequest--; return o; @@ -1478,8 +1663,13 @@ checkUpdateNodePoolRequest(api.UpdateNodePoolRequest o) { buildCounterUpdateNodePoolRequest++; if (buildCounterUpdateNodePoolRequest < 3) { + unittest.expect(o.clusterId, unittest.equals('foo')); unittest.expect(o.imageType, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.nodePoolId, unittest.equals('foo')); unittest.expect(o.nodeVersion, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); + unittest.expect(o.zone, unittest.equals('foo')); } buildCounterUpdateNodePoolRequest--; } @@ -1885,6 +2075,1756 @@ }); }); + unittest.group("resource-ProjectsLocationsResourceApi", () { + unittest.test("method--getServerConfig", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsResourceApi res = + new api.ContainerApi(mock).projects.locations; + var arg_name = "foo"; + var arg_zone = "foo"; + var arg_projectId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["zone"].first, unittest.equals(arg_zone)); + unittest.expect( + queryMap["projectId"].first, unittest.equals(arg_projectId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildServerConfig()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .getServerConfig(arg_name, + zone: arg_zone, projectId: arg_projectId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkServerConfig(response); + }))); + }); + }); + + unittest.group("resource-ProjectsLocationsClustersResourceApi", () { + unittest.test("method--completeIpRotation", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters; + var arg_request = buildCompleteIPRotationRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.CompleteIPRotationRequest.fromJson(json); + checkCompleteIPRotationRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .completeIpRotation(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters; + var arg_request = buildCreateClusterRequest(); + var arg_parent = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.CreateClusterRequest.fromJson(json); + checkCreateClusterRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, arg_parent, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters; + var arg_name = "foo"; + var arg_projectId = "foo"; + var arg_zone = "foo"; + var arg_clusterId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["projectId"].first, unittest.equals(arg_projectId)); + unittest.expect(queryMap["zone"].first, unittest.equals(arg_zone)); + unittest.expect( + queryMap["clusterId"].first, unittest.equals(arg_clusterId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_name, + projectId: arg_projectId, + zone: arg_zone, + clusterId: arg_clusterId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters; + var arg_name = "foo"; + var arg_projectId = "foo"; + var arg_zone = "foo"; + var arg_clusterId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["projectId"].first, unittest.equals(arg_projectId)); + unittest.expect(queryMap["zone"].first, unittest.equals(arg_zone)); + unittest.expect( + queryMap["clusterId"].first, unittest.equals(arg_clusterId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildCluster()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, + projectId: arg_projectId, + zone: arg_zone, + clusterId: arg_clusterId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkCluster(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters; + var arg_parent = "foo"; + var arg_projectId = "foo"; + var arg_zone = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["projectId"].first, unittest.equals(arg_projectId)); + unittest.expect(queryMap["zone"].first, unittest.equals(arg_zone)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListClustersResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_parent, + projectId: arg_projectId, zone: arg_zone, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListClustersResponse(response); + }))); + }); + + unittest.test("method--setAddons", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters; + var arg_request = buildSetAddonsConfigRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.SetAddonsConfigRequest.fromJson(json); + checkSetAddonsConfigRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .setAddons(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--setLegacyAbac", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters; + var arg_request = buildSetLegacyAbacRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.SetLegacyAbacRequest.fromJson(json); + checkSetLegacyAbacRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .setLegacyAbac(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--setLocations", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters; + var arg_request = buildSetLocationsRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.SetLocationsRequest.fromJson(json); + checkSetLocationsRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .setLocations(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--setLogging", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters; + var arg_request = buildSetLoggingServiceRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.SetLoggingServiceRequest.fromJson(json); + checkSetLoggingServiceRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .setLogging(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--setMaintenancePolicy", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters; + var arg_request = buildSetMaintenancePolicyRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.SetMaintenancePolicyRequest.fromJson(json); + checkSetMaintenancePolicyRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .setMaintenancePolicy(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--setMasterAuth", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters; + var arg_request = buildSetMasterAuthRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.SetMasterAuthRequest.fromJson(json); + checkSetMasterAuthRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .setMasterAuth(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--setMonitoring", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters; + var arg_request = buildSetMonitoringServiceRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.SetMonitoringServiceRequest.fromJson(json); + checkSetMonitoringServiceRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .setMonitoring(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--setNetworkPolicy", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters; + var arg_request = buildSetNetworkPolicyRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.SetNetworkPolicyRequest.fromJson(json); + checkSetNetworkPolicyRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .setNetworkPolicy(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--setResourceLabels", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters; + var arg_request = buildSetLabelsRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.SetLabelsRequest.fromJson(json); + checkSetLabelsRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .setResourceLabels(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--startIpRotation", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters; + var arg_request = buildStartIPRotationRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.StartIPRotationRequest.fromJson(json); + checkStartIPRotationRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .startIpRotation(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--update", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters; + var arg_request = buildUpdateClusterRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.UpdateClusterRequest.fromJson(json); + checkUpdateClusterRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--updateMaster", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters; + var arg_request = buildUpdateMasterRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.UpdateMasterRequest.fromJson(json); + checkUpdateMasterRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .updateMaster(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + }); + + unittest.group("resource-ProjectsLocationsClustersNodePoolsResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersNodePoolsResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters.nodePools; + var arg_request = buildCreateNodePoolRequest(); + var arg_parent = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.CreateNodePoolRequest.fromJson(json); + checkCreateNodePoolRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, arg_parent, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersNodePoolsResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters.nodePools; + var arg_name = "foo"; + var arg_zone = "foo"; + var arg_clusterId = "foo"; + var arg_nodePoolId = "foo"; + var arg_projectId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["zone"].first, unittest.equals(arg_zone)); + unittest.expect( + queryMap["clusterId"].first, unittest.equals(arg_clusterId)); + unittest.expect( + queryMap["nodePoolId"].first, unittest.equals(arg_nodePoolId)); + unittest.expect( + queryMap["projectId"].first, unittest.equals(arg_projectId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_name, + zone: arg_zone, + clusterId: arg_clusterId, + nodePoolId: arg_nodePoolId, + projectId: arg_projectId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersNodePoolsResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters.nodePools; + var arg_name = "foo"; + var arg_zone = "foo"; + var arg_clusterId = "foo"; + var arg_nodePoolId = "foo"; + var arg_projectId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["zone"].first, unittest.equals(arg_zone)); + unittest.expect( + queryMap["clusterId"].first, unittest.equals(arg_clusterId)); + unittest.expect( + queryMap["nodePoolId"].first, unittest.equals(arg_nodePoolId)); + unittest.expect( + queryMap["projectId"].first, unittest.equals(arg_projectId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildNodePool()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, + zone: arg_zone, + clusterId: arg_clusterId, + nodePoolId: arg_nodePoolId, + projectId: arg_projectId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkNodePool(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersNodePoolsResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters.nodePools; + var arg_parent = "foo"; + var arg_projectId = "foo"; + var arg_zone = "foo"; + var arg_clusterId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["projectId"].first, unittest.equals(arg_projectId)); + unittest.expect(queryMap["zone"].first, unittest.equals(arg_zone)); + unittest.expect( + queryMap["clusterId"].first, unittest.equals(arg_clusterId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListNodePoolsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_parent, + projectId: arg_projectId, + zone: arg_zone, + clusterId: arg_clusterId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListNodePoolsResponse(response); + }))); + }); + + unittest.test("method--rollback", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersNodePoolsResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters.nodePools; + var arg_request = buildRollbackNodePoolUpgradeRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.RollbackNodePoolUpgradeRequest.fromJson(json); + checkRollbackNodePoolUpgradeRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .rollback(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--setAutoscaling", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersNodePoolsResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters.nodePools; + var arg_request = buildSetNodePoolAutoscalingRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.SetNodePoolAutoscalingRequest.fromJson(json); + checkSetNodePoolAutoscalingRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .setAutoscaling(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--setManagement", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersNodePoolsResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters.nodePools; + var arg_request = buildSetNodePoolManagementRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.SetNodePoolManagementRequest.fromJson(json); + checkSetNodePoolManagementRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .setManagement(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--setSize", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersNodePoolsResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters.nodePools; + var arg_request = buildSetNodePoolSizeRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.SetNodePoolSizeRequest.fromJson(json); + checkSetNodePoolSizeRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .setSize(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--update", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsClustersNodePoolsResourceApi res = + new api.ContainerApi(mock).projects.locations.clusters.nodePools; + var arg_request = buildUpdateNodePoolRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.UpdateNodePoolRequest.fromJson(json); + checkUpdateNodePoolRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + }); + + unittest.group("resource-ProjectsLocationsOperationsResourceApi", () { + unittest.test("method--cancel", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsOperationsResourceApi res = + new api.ContainerApi(mock).projects.locations.operations; + var arg_request = buildCancelOperationRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsOperationsResourceApi res = + new api.ContainerApi(mock).projects.locations.operations; + var arg_name = "foo"; + var arg_operationId = "foo"; + var arg_projectId = "foo"; + var arg_zone = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["operationId"].first, unittest.equals(arg_operationId)); + unittest.expect( + queryMap["projectId"].first, unittest.equals(arg_projectId)); + unittest.expect(queryMap["zone"].first, unittest.equals(arg_zone)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_name, + operationId: arg_operationId, + projectId: arg_projectId, + zone: arg_zone, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsOperationsResourceApi res = + new api.ContainerApi(mock).projects.locations.operations; + var arg_parent = "foo"; + var arg_projectId = "foo"; + var arg_zone = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["projectId"].first, unittest.equals(arg_projectId)); + unittest.expect(queryMap["zone"].first, unittest.equals(arg_zone)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_parent, + projectId: arg_projectId, zone: arg_zone, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListOperationsResponse(response); + }))); + }); + }); + unittest.group("resource-ProjectsZonesResourceApi", () { unittest.test("method--getServerconfig", () { var mock = new HttpServerMock(); @@ -1892,6 +3832,7 @@ new api.ContainerApi(mock).projects.zones; var arg_projectId = "foo"; var arg_zone = "foo"; + var arg_name = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1941,6 +3882,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1950,7 +3892,8 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .getServerconfig(arg_projectId, arg_zone, $fields: arg_$fields) + .getServerconfig(arg_projectId, arg_zone, + name: arg_name, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkServerConfig(response); }))); @@ -2210,6 +4153,7 @@ var arg_projectId = "foo"; var arg_zone = "foo"; var arg_clusterId = "foo"; + var arg_name = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2262,6 +4206,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2271,7 +4216,8 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .delete(arg_projectId, arg_zone, arg_clusterId, $fields: arg_$fields) + .delete(arg_projectId, arg_zone, arg_clusterId, + name: arg_name, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperation(response); }))); @@ -2284,6 +4230,7 @@ var arg_projectId = "foo"; var arg_zone = "foo"; var arg_clusterId = "foo"; + var arg_name = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2336,6 +4283,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2345,7 +4293,8 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .get(arg_projectId, arg_zone, arg_clusterId, $fields: arg_$fields) + .get(arg_projectId, arg_zone, arg_clusterId, + name: arg_name, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCluster(response); }))); @@ -2442,6 +4391,7 @@ new api.ContainerApi(mock).projects.zones.clusters; var arg_projectId = "foo"; var arg_zone = "foo"; + var arg_parent = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2491,6 +4441,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["parent"].first, unittest.equals(arg_parent)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2500,7 +4451,8 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list(arg_projectId, arg_zone, $fields: arg_$fields) + .list(arg_projectId, arg_zone, + parent: arg_parent, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListClustersResponse(response); }))); @@ -3542,6 +5494,7 @@ var arg_zone = "foo"; var arg_clusterId = "foo"; var arg_nodePoolId = "foo"; + var arg_name = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3603,6 +5556,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3613,7 +5567,7 @@ }), true); res .delete(arg_projectId, arg_zone, arg_clusterId, arg_nodePoolId, - $fields: arg_$fields) + name: arg_name, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperation(response); }))); @@ -3627,6 +5581,7 @@ var arg_zone = "foo"; var arg_clusterId = "foo"; var arg_nodePoolId = "foo"; + var arg_name = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3688,6 +5643,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3698,7 +5654,7 @@ }), true); res .get(arg_projectId, arg_zone, arg_clusterId, arg_nodePoolId, - $fields: arg_$fields) + name: arg_name, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkNodePool(response); }))); @@ -3711,6 +5667,7 @@ var arg_projectId = "foo"; var arg_zone = "foo"; var arg_clusterId = "foo"; + var arg_parent = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3769,6 +5726,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["parent"].first, unittest.equals(arg_parent)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3778,7 +5736,8 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list(arg_projectId, arg_zone, arg_clusterId, $fields: arg_$fields) + .list(arg_projectId, arg_zone, arg_clusterId, + parent: arg_parent, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListNodePoolsResponse(response); }))); @@ -4262,6 +6221,7 @@ var arg_projectId = "foo"; var arg_zone = "foo"; var arg_operationId = "foo"; + var arg_name = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4314,6 +6274,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4323,7 +6284,8 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .get(arg_projectId, arg_zone, arg_operationId, $fields: arg_$fields) + .get(arg_projectId, arg_zone, arg_operationId, + name: arg_name, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperation(response); }))); @@ -4335,6 +6297,7 @@ new api.ContainerApi(mock).projects.zones.operations; var arg_projectId = "foo"; var arg_zone = "foo"; + var arg_parent = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4384,6 +6347,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["parent"].first, unittest.equals(arg_parent)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4393,7 +6357,8 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list(arg_projectId, arg_zone, $fields: arg_$fields) + .list(arg_projectId, arg_zone, + parent: arg_parent, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response); })));
diff --git a/generated/googleapis/test/content/v2_test.dart b/generated/googleapis/test/content/v2_test.dart index c35b2dc..5de6340 100644 --- a/generated/googleapis/test/content/v2_test.dart +++ b/generated/googleapis/test/content/v2_test.dart
@@ -50,40 +50,40 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed223() { +buildUnnamed2676() { var o = new core.List<api.AccountAdwordsLink>(); o.add(buildAccountAdwordsLink()); o.add(buildAccountAdwordsLink()); return o; } -checkUnnamed223(core.List<api.AccountAdwordsLink> o) { +checkUnnamed2676(core.List<api.AccountAdwordsLink> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountAdwordsLink(o[0]); checkAccountAdwordsLink(o[1]); } -buildUnnamed224() { +buildUnnamed2677() { var o = new core.List<api.AccountUser>(); o.add(buildAccountUser()); o.add(buildAccountUser()); return o; } -checkUnnamed224(core.List<api.AccountUser> o) { +checkUnnamed2677(core.List<api.AccountUser> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountUser(o[0]); checkAccountUser(o[1]); } -buildUnnamed225() { +buildUnnamed2678() { var o = new core.List<api.AccountYouTubeChannelLink>(); o.add(buildAccountYouTubeChannelLink()); o.add(buildAccountYouTubeChannelLink()); return o; } -checkUnnamed225(core.List<api.AccountYouTubeChannelLink> o) { +checkUnnamed2678(core.List<api.AccountYouTubeChannelLink> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountYouTubeChannelLink(o[0]); checkAccountYouTubeChannelLink(o[1]); @@ -95,16 +95,16 @@ buildCounterAccount++; if (buildCounterAccount < 3) { o.adultContent = true; - o.adwordsLinks = buildUnnamed223(); + o.adwordsLinks = buildUnnamed2676(); o.googleMyBusinessLink = buildAccountGoogleMyBusinessLink(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; o.reviewsUrl = "foo"; o.sellerId = "foo"; - o.users = buildUnnamed224(); + o.users = buildUnnamed2677(); o.websiteUrl = "foo"; - o.youtubeChannelLinks = buildUnnamed225(); + o.youtubeChannelLinks = buildUnnamed2678(); } buildCounterAccount--; return o; @@ -114,16 +114,16 @@ buildCounterAccount++; if (buildCounterAccount < 3) { unittest.expect(o.adultContent, unittest.isTrue); - checkUnnamed223(o.adwordsLinks); + checkUnnamed2676(o.adwordsLinks); checkAccountGoogleMyBusinessLink(o.googleMyBusinessLink); 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')); - checkUnnamed224(o.users); + checkUnnamed2677(o.users); unittest.expect(o.websiteUrl, unittest.equals('foo')); - checkUnnamed225(o.youtubeChannelLinks); + checkUnnamed2678(o.youtubeChannelLinks); } buildCounterAccount--; } @@ -191,27 +191,27 @@ buildCounterAccountIdentifier--; } -buildUnnamed226() { +buildUnnamed2679() { var o = new core.List<api.AccountStatusAccountLevelIssue>(); o.add(buildAccountStatusAccountLevelIssue()); o.add(buildAccountStatusAccountLevelIssue()); return o; } -checkUnnamed226(core.List<api.AccountStatusAccountLevelIssue> o) { +checkUnnamed2679(core.List<api.AccountStatusAccountLevelIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountStatusAccountLevelIssue(o[0]); checkAccountStatusAccountLevelIssue(o[1]); } -buildUnnamed227() { +buildUnnamed2680() { var o = new core.List<api.AccountStatusDataQualityIssue>(); o.add(buildAccountStatusDataQualityIssue()); o.add(buildAccountStatusDataQualityIssue()); return o; } -checkUnnamed227(core.List<api.AccountStatusDataQualityIssue> o) { +checkUnnamed2680(core.List<api.AccountStatusDataQualityIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountStatusDataQualityIssue(o[0]); checkAccountStatusDataQualityIssue(o[1]); @@ -223,8 +223,8 @@ buildCounterAccountStatus++; if (buildCounterAccountStatus < 3) { o.accountId = "foo"; - o.accountLevelIssues = buildUnnamed226(); - o.dataQualityIssues = buildUnnamed227(); + o.accountLevelIssues = buildUnnamed2679(); + o.dataQualityIssues = buildUnnamed2680(); o.kind = "foo"; o.websiteClaimed = true; } @@ -236,8 +236,8 @@ buildCounterAccountStatus++; if (buildCounterAccountStatus < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed226(o.accountLevelIssues); - checkUnnamed227(o.dataQualityIssues); + checkUnnamed2679(o.accountLevelIssues); + checkUnnamed2680(o.dataQualityIssues); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.websiteClaimed, unittest.isTrue); } @@ -250,6 +250,7 @@ buildCounterAccountStatusAccountLevelIssue++; if (buildCounterAccountStatusAccountLevelIssue < 3) { o.country = "foo"; + o.destination = "foo"; o.detail = "foo"; o.id = "foo"; o.severity = "foo"; @@ -263,6 +264,7 @@ buildCounterAccountStatusAccountLevelIssue++; if (buildCounterAccountStatusAccountLevelIssue < 3) { unittest.expect(o.country, unittest.equals('foo')); + unittest.expect(o.destination, unittest.equals('foo')); unittest.expect(o.detail, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.severity, unittest.equals('foo')); @@ -271,14 +273,14 @@ buildCounterAccountStatusAccountLevelIssue--; } -buildUnnamed228() { +buildUnnamed2681() { var o = new core.List<api.AccountStatusExampleItem>(); o.add(buildAccountStatusExampleItem()); o.add(buildAccountStatusExampleItem()); return o; } -checkUnnamed228(core.List<api.AccountStatusExampleItem> o) { +checkUnnamed2681(core.List<api.AccountStatusExampleItem> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountStatusExampleItem(o[0]); checkAccountStatusExampleItem(o[1]); @@ -290,9 +292,10 @@ buildCounterAccountStatusDataQualityIssue++; if (buildCounterAccountStatusDataQualityIssue < 3) { o.country = "foo"; + o.destination = "foo"; o.detail = "foo"; o.displayedValue = "foo"; - o.exampleItems = buildUnnamed228(); + o.exampleItems = buildUnnamed2681(); o.id = "foo"; o.lastChecked = "foo"; o.location = "foo"; @@ -308,9 +311,10 @@ buildCounterAccountStatusDataQualityIssue++; if (buildCounterAccountStatusDataQualityIssue < 3) { unittest.expect(o.country, unittest.equals('foo')); + unittest.expect(o.destination, unittest.equals('foo')); unittest.expect(o.detail, unittest.equals('foo')); unittest.expect(o.displayedValue, unittest.equals('foo')); - checkUnnamed228(o.exampleItems); + checkUnnamed2681(o.exampleItems); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.lastChecked, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); @@ -348,14 +352,14 @@ buildCounterAccountStatusExampleItem--; } -buildUnnamed229() { +buildUnnamed2682() { var o = new core.List<api.AccountTaxTaxRule>(); o.add(buildAccountTaxTaxRule()); o.add(buildAccountTaxTaxRule()); return o; } -checkUnnamed229(core.List<api.AccountTaxTaxRule> o) { +checkUnnamed2682(core.List<api.AccountTaxTaxRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountTaxTaxRule(o[0]); checkAccountTaxTaxRule(o[1]); @@ -368,7 +372,7 @@ if (buildCounterAccountTax < 3) { o.accountId = "foo"; o.kind = "foo"; - o.rules = buildUnnamed229(); + o.rules = buildUnnamed2682(); } buildCounterAccountTax--; return o; @@ -379,7 +383,7 @@ if (buildCounterAccountTax < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed229(o.rules); + checkUnnamed2682(o.rules); } buildCounterAccountTax--; } @@ -453,14 +457,14 @@ buildCounterAccountYouTubeChannelLink--; } -buildUnnamed230() { +buildUnnamed2683() { var o = new core.List<api.AccountIdentifier>(); o.add(buildAccountIdentifier()); o.add(buildAccountIdentifier()); return o; } -checkUnnamed230(core.List<api.AccountIdentifier> o) { +checkUnnamed2683(core.List<api.AccountIdentifier> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountIdentifier(o[0]); checkAccountIdentifier(o[1]); @@ -471,7 +475,7 @@ var o = new api.AccountsAuthInfoResponse(); buildCounterAccountsAuthInfoResponse++; if (buildCounterAccountsAuthInfoResponse < 3) { - o.accountIdentifiers = buildUnnamed230(); + o.accountIdentifiers = buildUnnamed2683(); o.kind = "foo"; } buildCounterAccountsAuthInfoResponse--; @@ -481,7 +485,7 @@ checkAccountsAuthInfoResponse(api.AccountsAuthInfoResponse o) { buildCounterAccountsAuthInfoResponse++; if (buildCounterAccountsAuthInfoResponse < 3) { - checkUnnamed230(o.accountIdentifiers); + checkUnnamed2683(o.accountIdentifiers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountsAuthInfoResponse--; @@ -506,14 +510,14 @@ buildCounterAccountsClaimWebsiteResponse--; } -buildUnnamed231() { +buildUnnamed2684() { var o = new core.List<api.AccountsCustomBatchRequestEntry>(); o.add(buildAccountsCustomBatchRequestEntry()); o.add(buildAccountsCustomBatchRequestEntry()); return o; } -checkUnnamed231(core.List<api.AccountsCustomBatchRequestEntry> o) { +checkUnnamed2684(core.List<api.AccountsCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountsCustomBatchRequestEntry(o[0]); checkAccountsCustomBatchRequestEntry(o[1]); @@ -524,7 +528,7 @@ var o = new api.AccountsCustomBatchRequest(); buildCounterAccountsCustomBatchRequest++; if (buildCounterAccountsCustomBatchRequest < 3) { - o.entries = buildUnnamed231(); + o.entries = buildUnnamed2684(); } buildCounterAccountsCustomBatchRequest--; return o; @@ -533,7 +537,7 @@ checkAccountsCustomBatchRequest(api.AccountsCustomBatchRequest o) { buildCounterAccountsCustomBatchRequest++; if (buildCounterAccountsCustomBatchRequest < 3) { - checkUnnamed231(o.entries); + checkUnnamed2684(o.entries); } buildCounterAccountsCustomBatchRequest--; } @@ -569,14 +573,14 @@ buildCounterAccountsCustomBatchRequestEntry--; } -buildUnnamed232() { +buildUnnamed2685() { var o = new core.List<api.AccountsCustomBatchResponseEntry>(); o.add(buildAccountsCustomBatchResponseEntry()); o.add(buildAccountsCustomBatchResponseEntry()); return o; } -checkUnnamed232(core.List<api.AccountsCustomBatchResponseEntry> o) { +checkUnnamed2685(core.List<api.AccountsCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountsCustomBatchResponseEntry(o[0]); checkAccountsCustomBatchResponseEntry(o[1]); @@ -587,7 +591,7 @@ var o = new api.AccountsCustomBatchResponse(); buildCounterAccountsCustomBatchResponse++; if (buildCounterAccountsCustomBatchResponse < 3) { - o.entries = buildUnnamed232(); + o.entries = buildUnnamed2685(); o.kind = "foo"; } buildCounterAccountsCustomBatchResponse--; @@ -597,7 +601,7 @@ checkAccountsCustomBatchResponse(api.AccountsCustomBatchResponse o) { buildCounterAccountsCustomBatchResponse++; if (buildCounterAccountsCustomBatchResponse < 3) { - checkUnnamed232(o.entries); + checkUnnamed2685(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountsCustomBatchResponse--; @@ -628,14 +632,14 @@ buildCounterAccountsCustomBatchResponseEntry--; } -buildUnnamed233() { +buildUnnamed2686() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed233(core.List<api.Account> o) { +checkUnnamed2686(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -648,7 +652,7 @@ if (buildCounterAccountsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed233(); + o.resources = buildUnnamed2686(); } buildCounterAccountsListResponse--; return o; @@ -659,19 +663,19 @@ if (buildCounterAccountsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed233(o.resources); + checkUnnamed2686(o.resources); } buildCounterAccountsListResponse--; } -buildUnnamed234() { +buildUnnamed2687() { var o = new core.List<api.AccountstatusesCustomBatchRequestEntry>(); o.add(buildAccountstatusesCustomBatchRequestEntry()); o.add(buildAccountstatusesCustomBatchRequestEntry()); return o; } -checkUnnamed234(core.List<api.AccountstatusesCustomBatchRequestEntry> o) { +checkUnnamed2687(core.List<api.AccountstatusesCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountstatusesCustomBatchRequestEntry(o[0]); checkAccountstatusesCustomBatchRequestEntry(o[1]); @@ -682,7 +686,7 @@ var o = new api.AccountstatusesCustomBatchRequest(); buildCounterAccountstatusesCustomBatchRequest++; if (buildCounterAccountstatusesCustomBatchRequest < 3) { - o.entries = buildUnnamed234(); + o.entries = buildUnnamed2687(); } buildCounterAccountstatusesCustomBatchRequest--; return o; @@ -692,11 +696,24 @@ api.AccountstatusesCustomBatchRequest o) { buildCounterAccountstatusesCustomBatchRequest++; if (buildCounterAccountstatusesCustomBatchRequest < 3) { - checkUnnamed234(o.entries); + checkUnnamed2687(o.entries); } buildCounterAccountstatusesCustomBatchRequest--; } +buildUnnamed2688() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + core.int buildCounterAccountstatusesCustomBatchRequestEntry = 0; buildAccountstatusesCustomBatchRequestEntry() { var o = new api.AccountstatusesCustomBatchRequestEntry(); @@ -704,6 +721,7 @@ if (buildCounterAccountstatusesCustomBatchRequestEntry < 3) { o.accountId = "foo"; o.batchId = 42; + o.destinations = buildUnnamed2688(); o.merchantId = "foo"; o.method = "foo"; } @@ -717,20 +735,21 @@ if (buildCounterAccountstatusesCustomBatchRequestEntry < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.batchId, unittest.equals(42)); + checkUnnamed2688(o.destinations); unittest.expect(o.merchantId, unittest.equals('foo')); unittest.expect(o.method, unittest.equals('foo')); } buildCounterAccountstatusesCustomBatchRequestEntry--; } -buildUnnamed235() { +buildUnnamed2689() { var o = new core.List<api.AccountstatusesCustomBatchResponseEntry>(); o.add(buildAccountstatusesCustomBatchResponseEntry()); o.add(buildAccountstatusesCustomBatchResponseEntry()); return o; } -checkUnnamed235(core.List<api.AccountstatusesCustomBatchResponseEntry> o) { +checkUnnamed2689(core.List<api.AccountstatusesCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountstatusesCustomBatchResponseEntry(o[0]); checkAccountstatusesCustomBatchResponseEntry(o[1]); @@ -741,7 +760,7 @@ var o = new api.AccountstatusesCustomBatchResponse(); buildCounterAccountstatusesCustomBatchResponse++; if (buildCounterAccountstatusesCustomBatchResponse < 3) { - o.entries = buildUnnamed235(); + o.entries = buildUnnamed2689(); o.kind = "foo"; } buildCounterAccountstatusesCustomBatchResponse--; @@ -752,7 +771,7 @@ api.AccountstatusesCustomBatchResponse o) { buildCounterAccountstatusesCustomBatchResponse++; if (buildCounterAccountstatusesCustomBatchResponse < 3) { - checkUnnamed235(o.entries); + checkUnnamed2689(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountstatusesCustomBatchResponse--; @@ -782,14 +801,14 @@ buildCounterAccountstatusesCustomBatchResponseEntry--; } -buildUnnamed236() { +buildUnnamed2690() { var o = new core.List<api.AccountStatus>(); o.add(buildAccountStatus()); o.add(buildAccountStatus()); return o; } -checkUnnamed236(core.List<api.AccountStatus> o) { +checkUnnamed2690(core.List<api.AccountStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountStatus(o[0]); checkAccountStatus(o[1]); @@ -802,7 +821,7 @@ if (buildCounterAccountstatusesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed236(); + o.resources = buildUnnamed2690(); } buildCounterAccountstatusesListResponse--; return o; @@ -813,19 +832,19 @@ if (buildCounterAccountstatusesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed236(o.resources); + checkUnnamed2690(o.resources); } buildCounterAccountstatusesListResponse--; } -buildUnnamed237() { +buildUnnamed2691() { var o = new core.List<api.AccounttaxCustomBatchRequestEntry>(); o.add(buildAccounttaxCustomBatchRequestEntry()); o.add(buildAccounttaxCustomBatchRequestEntry()); return o; } -checkUnnamed237(core.List<api.AccounttaxCustomBatchRequestEntry> o) { +checkUnnamed2691(core.List<api.AccounttaxCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccounttaxCustomBatchRequestEntry(o[0]); checkAccounttaxCustomBatchRequestEntry(o[1]); @@ -836,7 +855,7 @@ var o = new api.AccounttaxCustomBatchRequest(); buildCounterAccounttaxCustomBatchRequest++; if (buildCounterAccounttaxCustomBatchRequest < 3) { - o.entries = buildUnnamed237(); + o.entries = buildUnnamed2691(); } buildCounterAccounttaxCustomBatchRequest--; return o; @@ -845,7 +864,7 @@ checkAccounttaxCustomBatchRequest(api.AccounttaxCustomBatchRequest o) { buildCounterAccounttaxCustomBatchRequest++; if (buildCounterAccounttaxCustomBatchRequest < 3) { - checkUnnamed237(o.entries); + checkUnnamed2691(o.entries); } buildCounterAccounttaxCustomBatchRequest--; } @@ -878,14 +897,14 @@ buildCounterAccounttaxCustomBatchRequestEntry--; } -buildUnnamed238() { +buildUnnamed2692() { var o = new core.List<api.AccounttaxCustomBatchResponseEntry>(); o.add(buildAccounttaxCustomBatchResponseEntry()); o.add(buildAccounttaxCustomBatchResponseEntry()); return o; } -checkUnnamed238(core.List<api.AccounttaxCustomBatchResponseEntry> o) { +checkUnnamed2692(core.List<api.AccounttaxCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccounttaxCustomBatchResponseEntry(o[0]); checkAccounttaxCustomBatchResponseEntry(o[1]); @@ -896,7 +915,7 @@ var o = new api.AccounttaxCustomBatchResponse(); buildCounterAccounttaxCustomBatchResponse++; if (buildCounterAccounttaxCustomBatchResponse < 3) { - o.entries = buildUnnamed238(); + o.entries = buildUnnamed2692(); o.kind = "foo"; } buildCounterAccounttaxCustomBatchResponse--; @@ -906,7 +925,7 @@ checkAccounttaxCustomBatchResponse(api.AccounttaxCustomBatchResponse o) { buildCounterAccounttaxCustomBatchResponse++; if (buildCounterAccounttaxCustomBatchResponse < 3) { - checkUnnamed238(o.entries); + checkUnnamed2692(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccounttaxCustomBatchResponse--; @@ -938,14 +957,14 @@ buildCounterAccounttaxCustomBatchResponseEntry--; } -buildUnnamed239() { +buildUnnamed2693() { var o = new core.List<api.AccountTax>(); o.add(buildAccountTax()); o.add(buildAccountTax()); return o; } -checkUnnamed239(core.List<api.AccountTax> o) { +checkUnnamed2693(core.List<api.AccountTax> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountTax(o[0]); checkAccountTax(o[1]); @@ -958,7 +977,7 @@ if (buildCounterAccounttaxListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed239(); + o.resources = buildUnnamed2693(); } buildCounterAccounttaxListResponse--; return o; @@ -969,11 +988,32 @@ if (buildCounterAccounttaxListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed239(o.resources); + checkUnnamed2693(o.resources); } buildCounterAccounttaxListResponse--; } +core.int buildCounterAmount = 0; +buildAmount() { + var o = new api.Amount(); + buildCounterAmount++; + if (buildCounterAmount < 3) { + o.pretax = buildPrice(); + o.tax = buildPrice(); + } + buildCounterAmount--; + return o; +} + +checkAmount(api.Amount o) { + buildCounterAmount++; + if (buildCounterAmount < 3) { + checkPrice(o.pretax); + checkPrice(o.tax); + } + buildCounterAmount--; +} + core.int buildCounterCarrierRate = 0; buildCarrierRate() { var o = new api.CarrierRate(); @@ -1003,14 +1043,14 @@ buildCounterCarrierRate--; } -buildUnnamed240() { +buildUnnamed2694() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed240(core.List<core.String> o) { +checkUnnamed2694(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1023,7 +1063,7 @@ if (buildCounterCarriersCarrier < 3) { o.country = "foo"; o.name = "foo"; - o.services = buildUnnamed240(); + o.services = buildUnnamed2694(); } buildCounterCarriersCarrier--; return o; @@ -1034,32 +1074,32 @@ if (buildCounterCarriersCarrier < 3) { unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed240(o.services); + checkUnnamed2694(o.services); } buildCounterCarriersCarrier--; } -buildUnnamed241() { +buildUnnamed2695() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed241(core.List<core.String> o) { +checkUnnamed2695(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed242() { +buildUnnamed2696() { var o = new core.List<api.DatafeedTarget>(); o.add(buildDatafeedTarget()); o.add(buildDatafeedTarget()); return o; } -checkUnnamed242(core.List<api.DatafeedTarget> o) { +checkUnnamed2696(core.List<api.DatafeedTarget> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedTarget(o[0]); checkDatafeedTarget(o[1]); @@ -1077,11 +1117,11 @@ o.fileName = "foo"; o.format = buildDatafeedFormat(); o.id = "foo"; - o.intendedDestinations = buildUnnamed241(); + o.intendedDestinations = buildUnnamed2695(); o.kind = "foo"; o.name = "foo"; o.targetCountry = "foo"; - o.targets = buildUnnamed242(); + o.targets = buildUnnamed2696(); } buildCounterDatafeed--; return o; @@ -1097,11 +1137,11 @@ unittest.expect(o.fileName, unittest.equals('foo')); checkDatafeedFormat(o.format); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed241(o.intendedDestinations); + checkUnnamed2695(o.intendedDestinations); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.targetCountry, unittest.equals('foo')); - checkUnnamed242(o.targets); + checkUnnamed2696(o.targets); } buildCounterDatafeed--; } @@ -1164,27 +1204,27 @@ buildCounterDatafeedFormat--; } -buildUnnamed243() { +buildUnnamed2697() { var o = new core.List<api.DatafeedStatusError>(); o.add(buildDatafeedStatusError()); o.add(buildDatafeedStatusError()); return o; } -checkUnnamed243(core.List<api.DatafeedStatusError> o) { +checkUnnamed2697(core.List<api.DatafeedStatusError> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedStatusError(o[0]); checkDatafeedStatusError(o[1]); } -buildUnnamed244() { +buildUnnamed2698() { var o = new core.List<api.DatafeedStatusError>(); o.add(buildDatafeedStatusError()); o.add(buildDatafeedStatusError()); return o; } -checkUnnamed244(core.List<api.DatafeedStatusError> o) { +checkUnnamed2698(core.List<api.DatafeedStatusError> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedStatusError(o[0]); checkDatafeedStatusError(o[1]); @@ -1197,14 +1237,14 @@ if (buildCounterDatafeedStatus < 3) { o.country = "foo"; o.datafeedId = "foo"; - o.errors = buildUnnamed243(); + o.errors = buildUnnamed2697(); o.itemsTotal = "foo"; o.itemsValid = "foo"; o.kind = "foo"; o.language = "foo"; o.lastUploadDate = "foo"; o.processingStatus = "foo"; - o.warnings = buildUnnamed244(); + o.warnings = buildUnnamed2698(); } buildCounterDatafeedStatus--; return o; @@ -1215,26 +1255,26 @@ if (buildCounterDatafeedStatus < 3) { unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.datafeedId, unittest.equals('foo')); - checkUnnamed243(o.errors); + checkUnnamed2697(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.language, unittest.equals('foo')); unittest.expect(o.lastUploadDate, unittest.equals('foo')); unittest.expect(o.processingStatus, unittest.equals('foo')); - checkUnnamed244(o.warnings); + checkUnnamed2698(o.warnings); } buildCounterDatafeedStatus--; } -buildUnnamed245() { +buildUnnamed2699() { var o = new core.List<api.DatafeedStatusExample>(); o.add(buildDatafeedStatusExample()); o.add(buildDatafeedStatusExample()); return o; } -checkUnnamed245(core.List<api.DatafeedStatusExample> o) { +checkUnnamed2699(core.List<api.DatafeedStatusExample> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedStatusExample(o[0]); checkDatafeedStatusExample(o[1]); @@ -1247,7 +1287,7 @@ if (buildCounterDatafeedStatusError < 3) { o.code = "foo"; o.count = "foo"; - o.examples = buildUnnamed245(); + o.examples = buildUnnamed2699(); o.message = "foo"; } buildCounterDatafeedStatusError--; @@ -1259,7 +1299,7 @@ if (buildCounterDatafeedStatusError < 3) { unittest.expect(o.code, unittest.equals('foo')); unittest.expect(o.count, unittest.equals('foo')); - checkUnnamed245(o.examples); + checkUnnamed2699(o.examples); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDatafeedStatusError--; @@ -1288,27 +1328,27 @@ buildCounterDatafeedStatusExample--; } -buildUnnamed246() { +buildUnnamed2700() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed246(core.List<core.String> o) { +checkUnnamed2700(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed247() { +buildUnnamed2701() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed247(core.List<core.String> o) { +checkUnnamed2701(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1320,8 +1360,8 @@ buildCounterDatafeedTarget++; if (buildCounterDatafeedTarget < 3) { o.country = "foo"; - o.excludedDestinations = buildUnnamed246(); - o.includedDestinations = buildUnnamed247(); + o.excludedDestinations = buildUnnamed2700(); + o.includedDestinations = buildUnnamed2701(); o.language = "foo"; } buildCounterDatafeedTarget--; @@ -1332,21 +1372,21 @@ buildCounterDatafeedTarget++; if (buildCounterDatafeedTarget < 3) { unittest.expect(o.country, unittest.equals('foo')); - checkUnnamed246(o.excludedDestinations); - checkUnnamed247(o.includedDestinations); + checkUnnamed2700(o.excludedDestinations); + checkUnnamed2701(o.includedDestinations); unittest.expect(o.language, unittest.equals('foo')); } buildCounterDatafeedTarget--; } -buildUnnamed248() { +buildUnnamed2702() { var o = new core.List<api.DatafeedsCustomBatchRequestEntry>(); o.add(buildDatafeedsCustomBatchRequestEntry()); o.add(buildDatafeedsCustomBatchRequestEntry()); return o; } -checkUnnamed248(core.List<api.DatafeedsCustomBatchRequestEntry> o) { +checkUnnamed2702(core.List<api.DatafeedsCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedsCustomBatchRequestEntry(o[0]); checkDatafeedsCustomBatchRequestEntry(o[1]); @@ -1357,7 +1397,7 @@ var o = new api.DatafeedsCustomBatchRequest(); buildCounterDatafeedsCustomBatchRequest++; if (buildCounterDatafeedsCustomBatchRequest < 3) { - o.entries = buildUnnamed248(); + o.entries = buildUnnamed2702(); } buildCounterDatafeedsCustomBatchRequest--; return o; @@ -1366,7 +1406,7 @@ checkDatafeedsCustomBatchRequest(api.DatafeedsCustomBatchRequest o) { buildCounterDatafeedsCustomBatchRequest++; if (buildCounterDatafeedsCustomBatchRequest < 3) { - checkUnnamed248(o.entries); + checkUnnamed2702(o.entries); } buildCounterDatafeedsCustomBatchRequest--; } @@ -1398,14 +1438,14 @@ buildCounterDatafeedsCustomBatchRequestEntry--; } -buildUnnamed249() { +buildUnnamed2703() { var o = new core.List<api.DatafeedsCustomBatchResponseEntry>(); o.add(buildDatafeedsCustomBatchResponseEntry()); o.add(buildDatafeedsCustomBatchResponseEntry()); return o; } -checkUnnamed249(core.List<api.DatafeedsCustomBatchResponseEntry> o) { +checkUnnamed2703(core.List<api.DatafeedsCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedsCustomBatchResponseEntry(o[0]); checkDatafeedsCustomBatchResponseEntry(o[1]); @@ -1416,7 +1456,7 @@ var o = new api.DatafeedsCustomBatchResponse(); buildCounterDatafeedsCustomBatchResponse++; if (buildCounterDatafeedsCustomBatchResponse < 3) { - o.entries = buildUnnamed249(); + o.entries = buildUnnamed2703(); o.kind = "foo"; } buildCounterDatafeedsCustomBatchResponse--; @@ -1426,7 +1466,7 @@ checkDatafeedsCustomBatchResponse(api.DatafeedsCustomBatchResponse o) { buildCounterDatafeedsCustomBatchResponse++; if (buildCounterDatafeedsCustomBatchResponse < 3) { - checkUnnamed249(o.entries); + checkUnnamed2703(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDatafeedsCustomBatchResponse--; @@ -1456,14 +1496,33 @@ buildCounterDatafeedsCustomBatchResponseEntry--; } -buildUnnamed250() { +core.int buildCounterDatafeedsFetchNowResponse = 0; +buildDatafeedsFetchNowResponse() { + var o = new api.DatafeedsFetchNowResponse(); + buildCounterDatafeedsFetchNowResponse++; + if (buildCounterDatafeedsFetchNowResponse < 3) { + o.kind = "foo"; + } + buildCounterDatafeedsFetchNowResponse--; + return o; +} + +checkDatafeedsFetchNowResponse(api.DatafeedsFetchNowResponse o) { + buildCounterDatafeedsFetchNowResponse++; + if (buildCounterDatafeedsFetchNowResponse < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterDatafeedsFetchNowResponse--; +} + +buildUnnamed2704() { var o = new core.List<api.Datafeed>(); o.add(buildDatafeed()); o.add(buildDatafeed()); return o; } -checkUnnamed250(core.List<api.Datafeed> o) { +checkUnnamed2704(core.List<api.Datafeed> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeed(o[0]); checkDatafeed(o[1]); @@ -1476,7 +1535,7 @@ if (buildCounterDatafeedsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed250(); + o.resources = buildUnnamed2704(); } buildCounterDatafeedsListResponse--; return o; @@ -1487,19 +1546,19 @@ if (buildCounterDatafeedsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed250(o.resources); + checkUnnamed2704(o.resources); } buildCounterDatafeedsListResponse--; } -buildUnnamed251() { +buildUnnamed2705() { var o = new core.List<api.DatafeedstatusesCustomBatchRequestEntry>(); o.add(buildDatafeedstatusesCustomBatchRequestEntry()); o.add(buildDatafeedstatusesCustomBatchRequestEntry()); return o; } -checkUnnamed251(core.List<api.DatafeedstatusesCustomBatchRequestEntry> o) { +checkUnnamed2705(core.List<api.DatafeedstatusesCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedstatusesCustomBatchRequestEntry(o[0]); checkDatafeedstatusesCustomBatchRequestEntry(o[1]); @@ -1510,7 +1569,7 @@ var o = new api.DatafeedstatusesCustomBatchRequest(); buildCounterDatafeedstatusesCustomBatchRequest++; if (buildCounterDatafeedstatusesCustomBatchRequest < 3) { - o.entries = buildUnnamed251(); + o.entries = buildUnnamed2705(); } buildCounterDatafeedstatusesCustomBatchRequest--; return o; @@ -1520,7 +1579,7 @@ api.DatafeedstatusesCustomBatchRequest o) { buildCounterDatafeedstatusesCustomBatchRequest++; if (buildCounterDatafeedstatusesCustomBatchRequest < 3) { - checkUnnamed251(o.entries); + checkUnnamed2705(o.entries); } buildCounterDatafeedstatusesCustomBatchRequest--; } @@ -1555,14 +1614,14 @@ buildCounterDatafeedstatusesCustomBatchRequestEntry--; } -buildUnnamed252() { +buildUnnamed2706() { var o = new core.List<api.DatafeedstatusesCustomBatchResponseEntry>(); o.add(buildDatafeedstatusesCustomBatchResponseEntry()); o.add(buildDatafeedstatusesCustomBatchResponseEntry()); return o; } -checkUnnamed252(core.List<api.DatafeedstatusesCustomBatchResponseEntry> o) { +checkUnnamed2706(core.List<api.DatafeedstatusesCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedstatusesCustomBatchResponseEntry(o[0]); checkDatafeedstatusesCustomBatchResponseEntry(o[1]); @@ -1573,7 +1632,7 @@ var o = new api.DatafeedstatusesCustomBatchResponse(); buildCounterDatafeedstatusesCustomBatchResponse++; if (buildCounterDatafeedstatusesCustomBatchResponse < 3) { - o.entries = buildUnnamed252(); + o.entries = buildUnnamed2706(); o.kind = "foo"; } buildCounterDatafeedstatusesCustomBatchResponse--; @@ -1584,7 +1643,7 @@ api.DatafeedstatusesCustomBatchResponse o) { buildCounterDatafeedstatusesCustomBatchResponse++; if (buildCounterDatafeedstatusesCustomBatchResponse < 3) { - checkUnnamed252(o.entries); + checkUnnamed2706(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDatafeedstatusesCustomBatchResponse--; @@ -1614,14 +1673,14 @@ buildCounterDatafeedstatusesCustomBatchResponseEntry--; } -buildUnnamed253() { +buildUnnamed2707() { var o = new core.List<api.DatafeedStatus>(); o.add(buildDatafeedStatus()); o.add(buildDatafeedStatus()); return o; } -checkUnnamed253(core.List<api.DatafeedStatus> o) { +checkUnnamed2707(core.List<api.DatafeedStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedStatus(o[0]); checkDatafeedStatus(o[1]); @@ -1634,7 +1693,7 @@ if (buildCounterDatafeedstatusesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed253(); + o.resources = buildUnnamed2707(); } buildCounterDatafeedstatusesListResponse--; return o; @@ -1645,19 +1704,19 @@ if (buildCounterDatafeedstatusesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed253(o.resources); + checkUnnamed2707(o.resources); } buildCounterDatafeedstatusesListResponse--; } -buildUnnamed254() { +buildUnnamed2708() { var o = new core.List<api.HolidayCutoff>(); o.add(buildHolidayCutoff()); o.add(buildHolidayCutoff()); return o; } -checkUnnamed254(core.List<api.HolidayCutoff> o) { +checkUnnamed2708(core.List<api.HolidayCutoff> o) { unittest.expect(o, unittest.hasLength(2)); checkHolidayCutoff(o[0]); checkHolidayCutoff(o[1]); @@ -1668,7 +1727,7 @@ var o = new api.DeliveryTime(); buildCounterDeliveryTime++; if (buildCounterDeliveryTime < 3) { - o.holidayCutoffs = buildUnnamed254(); + o.holidayCutoffs = buildUnnamed2708(); o.maxTransitTimeInDays = 42; o.minTransitTimeInDays = 42; } @@ -1679,7 +1738,7 @@ checkDeliveryTime(api.DeliveryTime o) { buildCounterDeliveryTime++; if (buildCounterDeliveryTime < 3) { - checkUnnamed254(o.holidayCutoffs); + checkUnnamed2708(o.holidayCutoffs); unittest.expect(o.maxTransitTimeInDays, unittest.equals(42)); unittest.expect(o.minTransitTimeInDays, unittest.equals(42)); } @@ -1709,14 +1768,14 @@ buildCounterError--; } -buildUnnamed255() { +buildUnnamed2709() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed255(core.List<api.Error> o) { +checkUnnamed2709(core.List<api.Error> o) { unittest.expect(o, unittest.hasLength(2)); checkError(o[0]); checkError(o[1]); @@ -1728,7 +1787,7 @@ buildCounterErrors++; if (buildCounterErrors < 3) { o.code = 42; - o.errors = buildUnnamed255(); + o.errors = buildUnnamed2709(); o.message = "foo"; } buildCounterErrors--; @@ -1739,72 +1798,131 @@ buildCounterErrors++; if (buildCounterErrors < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed255(o.errors); + checkUnnamed2709(o.errors); unittest.expect(o.message, unittest.equals('foo')); } buildCounterErrors--; } -buildUnnamed256() { +buildUnnamed2710() { + var o = new core.List<api.GmbAccountsGmbAccount>(); + o.add(buildGmbAccountsGmbAccount()); + o.add(buildGmbAccountsGmbAccount()); + return o; +} + +checkUnnamed2710(core.List<api.GmbAccountsGmbAccount> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGmbAccountsGmbAccount(o[0]); + checkGmbAccountsGmbAccount(o[1]); +} + +core.int buildCounterGmbAccounts = 0; +buildGmbAccounts() { + var o = new api.GmbAccounts(); + buildCounterGmbAccounts++; + if (buildCounterGmbAccounts < 3) { + o.accountId = "foo"; + o.gmbAccounts = buildUnnamed2710(); + } + buildCounterGmbAccounts--; + return o; +} + +checkGmbAccounts(api.GmbAccounts o) { + buildCounterGmbAccounts++; + if (buildCounterGmbAccounts < 3) { + unittest.expect(o.accountId, unittest.equals('foo')); + checkUnnamed2710(o.gmbAccounts); + } + buildCounterGmbAccounts--; +} + +core.int buildCounterGmbAccountsGmbAccount = 0; +buildGmbAccountsGmbAccount() { + var o = new api.GmbAccountsGmbAccount(); + buildCounterGmbAccountsGmbAccount++; + if (buildCounterGmbAccountsGmbAccount < 3) { + o.email = "foo"; + o.listingCount = "foo"; + o.name = "foo"; + o.type = "foo"; + } + buildCounterGmbAccountsGmbAccount--; + return o; +} + +checkGmbAccountsGmbAccount(api.GmbAccountsGmbAccount o) { + buildCounterGmbAccountsGmbAccount++; + if (buildCounterGmbAccountsGmbAccount < 3) { + unittest.expect(o.email, unittest.equals('foo')); + unittest.expect(o.listingCount, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterGmbAccountsGmbAccount--; +} + +buildUnnamed2711() { var o = new core.List<api.LocationIdSet>(); o.add(buildLocationIdSet()); o.add(buildLocationIdSet()); return o; } -checkUnnamed256(core.List<api.LocationIdSet> o) { +checkUnnamed2711(core.List<api.LocationIdSet> o) { unittest.expect(o, unittest.hasLength(2)); checkLocationIdSet(o[0]); checkLocationIdSet(o[1]); } -buildUnnamed257() { +buildUnnamed2712() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed257(core.List<core.String> o) { +checkUnnamed2712(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed258() { +buildUnnamed2713() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed258(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')); } -buildUnnamed259() { +buildUnnamed2714() { var o = new core.List<api.Price>(); o.add(buildPrice()); o.add(buildPrice()); return o; } -checkUnnamed259(core.List<api.Price> o) { +checkUnnamed2714(core.List<api.Price> o) { unittest.expect(o, unittest.hasLength(2)); checkPrice(o[0]); checkPrice(o[1]); } -buildUnnamed260() { +buildUnnamed2715() { var o = new core.List<api.Weight>(); o.add(buildWeight()); o.add(buildWeight()); return o; } -checkUnnamed260(core.List<api.Weight> o) { +checkUnnamed2715(core.List<api.Weight> o) { unittest.expect(o, unittest.hasLength(2)); checkWeight(o[0]); checkWeight(o[1]); @@ -1815,11 +1933,11 @@ var o = new api.Headers(); buildCounterHeaders++; if (buildCounterHeaders < 3) { - o.locations = buildUnnamed256(); - o.numberOfItems = buildUnnamed257(); - o.postalCodeGroupNames = buildUnnamed258(); - o.prices = buildUnnamed259(); - o.weights = buildUnnamed260(); + o.locations = buildUnnamed2711(); + o.numberOfItems = buildUnnamed2712(); + o.postalCodeGroupNames = buildUnnamed2713(); + o.prices = buildUnnamed2714(); + o.weights = buildUnnamed2715(); } buildCounterHeaders--; return o; @@ -1828,11 +1946,11 @@ checkHeaders(api.Headers o) { buildCounterHeaders++; if (buildCounterHeaders < 3) { - checkUnnamed256(o.locations); - checkUnnamed257(o.numberOfItems); - checkUnnamed258(o.postalCodeGroupNames); - checkUnnamed259(o.prices); - checkUnnamed260(o.weights); + checkUnnamed2711(o.locations); + checkUnnamed2712(o.numberOfItems); + checkUnnamed2713(o.postalCodeGroupNames); + checkUnnamed2714(o.prices); + checkUnnamed2715(o.weights); } buildCounterHeaders--; } @@ -1951,14 +2069,14 @@ buildCounterInventory--; } -buildUnnamed261() { +buildUnnamed2716() { var o = new core.List<api.InventoryCustomBatchRequestEntry>(); o.add(buildInventoryCustomBatchRequestEntry()); o.add(buildInventoryCustomBatchRequestEntry()); return o; } -checkUnnamed261(core.List<api.InventoryCustomBatchRequestEntry> o) { +checkUnnamed2716(core.List<api.InventoryCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkInventoryCustomBatchRequestEntry(o[0]); checkInventoryCustomBatchRequestEntry(o[1]); @@ -1969,7 +2087,7 @@ var o = new api.InventoryCustomBatchRequest(); buildCounterInventoryCustomBatchRequest++; if (buildCounterInventoryCustomBatchRequest < 3) { - o.entries = buildUnnamed261(); + o.entries = buildUnnamed2716(); } buildCounterInventoryCustomBatchRequest--; return o; @@ -1978,7 +2096,7 @@ checkInventoryCustomBatchRequest(api.InventoryCustomBatchRequest o) { buildCounterInventoryCustomBatchRequest++; if (buildCounterInventoryCustomBatchRequest < 3) { - checkUnnamed261(o.entries); + checkUnnamed2716(o.entries); } buildCounterInventoryCustomBatchRequest--; } @@ -2010,14 +2128,14 @@ buildCounterInventoryCustomBatchRequestEntry--; } -buildUnnamed262() { +buildUnnamed2717() { var o = new core.List<api.InventoryCustomBatchResponseEntry>(); o.add(buildInventoryCustomBatchResponseEntry()); o.add(buildInventoryCustomBatchResponseEntry()); return o; } -checkUnnamed262(core.List<api.InventoryCustomBatchResponseEntry> o) { +checkUnnamed2717(core.List<api.InventoryCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkInventoryCustomBatchResponseEntry(o[0]); checkInventoryCustomBatchResponseEntry(o[1]); @@ -2028,7 +2146,7 @@ var o = new api.InventoryCustomBatchResponse(); buildCounterInventoryCustomBatchResponse++; if (buildCounterInventoryCustomBatchResponse < 3) { - o.entries = buildUnnamed262(); + o.entries = buildUnnamed2717(); o.kind = "foo"; } buildCounterInventoryCustomBatchResponse--; @@ -2038,7 +2156,7 @@ checkInventoryCustomBatchResponse(api.InventoryCustomBatchResponse o) { buildCounterInventoryCustomBatchResponse++; if (buildCounterInventoryCustomBatchResponse < 3) { - checkUnnamed262(o.entries); + checkUnnamed2717(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterInventoryCustomBatchResponse--; @@ -2143,14 +2261,507 @@ buildCounterInventorySetResponse--; } -buildUnnamed263() { +buildUnnamed2718() { + var o = new core.List<api.InvoiceSummaryAdditionalChargeSummary>(); + o.add(buildInvoiceSummaryAdditionalChargeSummary()); + o.add(buildInvoiceSummaryAdditionalChargeSummary()); + return o; +} + +checkUnnamed2718(core.List<api.InvoiceSummaryAdditionalChargeSummary> o) { + unittest.expect(o, unittest.hasLength(2)); + checkInvoiceSummaryAdditionalChargeSummary(o[0]); + checkInvoiceSummaryAdditionalChargeSummary(o[1]); +} + +buildUnnamed2719() { + var o = new core.List<api.Promotion>(); + o.add(buildPromotion()); + o.add(buildPromotion()); + return o; +} + +checkUnnamed2719(core.List<api.Promotion> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPromotion(o[0]); + checkPromotion(o[1]); +} + +core.int buildCounterInvoiceSummary = 0; +buildInvoiceSummary() { + var o = new api.InvoiceSummary(); + buildCounterInvoiceSummary++; + if (buildCounterInvoiceSummary < 3) { + o.additionalChargeSummaries = buildUnnamed2718(); + o.customerBalance = buildAmount(); + o.googleBalance = buildAmount(); + o.merchantBalance = buildAmount(); + o.productTotal = buildAmount(); + o.promotionSummaries = buildUnnamed2719(); + } + buildCounterInvoiceSummary--; + return o; +} + +checkInvoiceSummary(api.InvoiceSummary o) { + buildCounterInvoiceSummary++; + if (buildCounterInvoiceSummary < 3) { + checkUnnamed2718(o.additionalChargeSummaries); + checkAmount(o.customerBalance); + checkAmount(o.googleBalance); + checkAmount(o.merchantBalance); + checkAmount(o.productTotal); + checkUnnamed2719(o.promotionSummaries); + } + buildCounterInvoiceSummary--; +} + +core.int buildCounterInvoiceSummaryAdditionalChargeSummary = 0; +buildInvoiceSummaryAdditionalChargeSummary() { + var o = new api.InvoiceSummaryAdditionalChargeSummary(); + buildCounterInvoiceSummaryAdditionalChargeSummary++; + if (buildCounterInvoiceSummaryAdditionalChargeSummary < 3) { + o.totalAmount = buildAmount(); + o.type = "foo"; + } + buildCounterInvoiceSummaryAdditionalChargeSummary--; + return o; +} + +checkInvoiceSummaryAdditionalChargeSummary( + api.InvoiceSummaryAdditionalChargeSummary o) { + buildCounterInvoiceSummaryAdditionalChargeSummary++; + if (buildCounterInvoiceSummaryAdditionalChargeSummary < 3) { + checkAmount(o.totalAmount); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterInvoiceSummaryAdditionalChargeSummary--; +} + +core.int buildCounterLiaAboutPageSettings = 0; +buildLiaAboutPageSettings() { + var o = new api.LiaAboutPageSettings(); + buildCounterLiaAboutPageSettings++; + if (buildCounterLiaAboutPageSettings < 3) { + o.status = "foo"; + o.url = "foo"; + } + buildCounterLiaAboutPageSettings--; + return o; +} + +checkLiaAboutPageSettings(api.LiaAboutPageSettings o) { + buildCounterLiaAboutPageSettings++; + if (buildCounterLiaAboutPageSettings < 3) { + unittest.expect(o.status, unittest.equals('foo')); + unittest.expect(o.url, unittest.equals('foo')); + } + buildCounterLiaAboutPageSettings--; +} + +core.int buildCounterLiaCountrySettings = 0; +buildLiaCountrySettings() { + var o = new api.LiaCountrySettings(); + buildCounterLiaCountrySettings++; + if (buildCounterLiaCountrySettings < 3) { + o.about = buildLiaAboutPageSettings(); + o.country = "foo"; + o.hostedLocalStorefrontActive = true; + o.inventory = buildLiaInventorySettings(); + o.onDisplayToOrder = buildLiaOnDisplayToOrderSettings(); + o.storePickupActive = true; + } + buildCounterLiaCountrySettings--; + return o; +} + +checkLiaCountrySettings(api.LiaCountrySettings o) { + buildCounterLiaCountrySettings++; + if (buildCounterLiaCountrySettings < 3) { + checkLiaAboutPageSettings(o.about); + unittest.expect(o.country, unittest.equals('foo')); + unittest.expect(o.hostedLocalStorefrontActive, unittest.isTrue); + checkLiaInventorySettings(o.inventory); + checkLiaOnDisplayToOrderSettings(o.onDisplayToOrder); + unittest.expect(o.storePickupActive, unittest.isTrue); + } + buildCounterLiaCountrySettings--; +} + +core.int buildCounterLiaInventorySettings = 0; +buildLiaInventorySettings() { + var o = new api.LiaInventorySettings(); + buildCounterLiaInventorySettings++; + if (buildCounterLiaInventorySettings < 3) { + o.inventoryVerificationContactEmail = "foo"; + o.inventoryVerificationContactName = "foo"; + o.inventoryVerificationContactStatus = "foo"; + o.status = "foo"; + } + buildCounterLiaInventorySettings--; + return o; +} + +checkLiaInventorySettings(api.LiaInventorySettings o) { + buildCounterLiaInventorySettings++; + if (buildCounterLiaInventorySettings < 3) { + unittest.expect( + o.inventoryVerificationContactEmail, unittest.equals('foo')); + unittest.expect(o.inventoryVerificationContactName, unittest.equals('foo')); + unittest.expect( + o.inventoryVerificationContactStatus, unittest.equals('foo')); + unittest.expect(o.status, unittest.equals('foo')); + } + buildCounterLiaInventorySettings--; +} + +core.int buildCounterLiaOnDisplayToOrderSettings = 0; +buildLiaOnDisplayToOrderSettings() { + var o = new api.LiaOnDisplayToOrderSettings(); + buildCounterLiaOnDisplayToOrderSettings++; + if (buildCounterLiaOnDisplayToOrderSettings < 3) { + o.shippingCostPolicyUrl = "foo"; + o.status = "foo"; + } + buildCounterLiaOnDisplayToOrderSettings--; + return o; +} + +checkLiaOnDisplayToOrderSettings(api.LiaOnDisplayToOrderSettings o) { + buildCounterLiaOnDisplayToOrderSettings++; + if (buildCounterLiaOnDisplayToOrderSettings < 3) { + unittest.expect(o.shippingCostPolicyUrl, unittest.equals('foo')); + unittest.expect(o.status, unittest.equals('foo')); + } + buildCounterLiaOnDisplayToOrderSettings--; +} + +buildUnnamed2720() { + var o = new core.List<api.LiaCountrySettings>(); + o.add(buildLiaCountrySettings()); + o.add(buildLiaCountrySettings()); + return o; +} + +checkUnnamed2720(core.List<api.LiaCountrySettings> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLiaCountrySettings(o[0]); + checkLiaCountrySettings(o[1]); +} + +core.int buildCounterLiaSettings = 0; +buildLiaSettings() { + var o = new api.LiaSettings(); + buildCounterLiaSettings++; + if (buildCounterLiaSettings < 3) { + o.accountId = "foo"; + o.countrySettings = buildUnnamed2720(); + o.kind = "foo"; + } + buildCounterLiaSettings--; + return o; +} + +checkLiaSettings(api.LiaSettings o) { + buildCounterLiaSettings++; + if (buildCounterLiaSettings < 3) { + unittest.expect(o.accountId, unittest.equals('foo')); + checkUnnamed2720(o.countrySettings); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterLiaSettings--; +} + +buildUnnamed2721() { + var o = new core.List<api.LiasettingsCustomBatchRequestEntry>(); + o.add(buildLiasettingsCustomBatchRequestEntry()); + o.add(buildLiasettingsCustomBatchRequestEntry()); + return o; +} + +checkUnnamed2721(core.List<api.LiasettingsCustomBatchRequestEntry> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLiasettingsCustomBatchRequestEntry(o[0]); + checkLiasettingsCustomBatchRequestEntry(o[1]); +} + +core.int buildCounterLiasettingsCustomBatchRequest = 0; +buildLiasettingsCustomBatchRequest() { + var o = new api.LiasettingsCustomBatchRequest(); + buildCounterLiasettingsCustomBatchRequest++; + if (buildCounterLiasettingsCustomBatchRequest < 3) { + o.entries = buildUnnamed2721(); + } + buildCounterLiasettingsCustomBatchRequest--; + return o; +} + +checkLiasettingsCustomBatchRequest(api.LiasettingsCustomBatchRequest o) { + buildCounterLiasettingsCustomBatchRequest++; + if (buildCounterLiasettingsCustomBatchRequest < 3) { + checkUnnamed2721(o.entries); + } + buildCounterLiasettingsCustomBatchRequest--; +} + +core.int buildCounterLiasettingsCustomBatchRequestEntry = 0; +buildLiasettingsCustomBatchRequestEntry() { + var o = new api.LiasettingsCustomBatchRequestEntry(); + buildCounterLiasettingsCustomBatchRequestEntry++; + if (buildCounterLiasettingsCustomBatchRequestEntry < 3) { + o.accountId = "foo"; + o.batchId = 42; + o.contactEmail = "foo"; + o.contactName = "foo"; + o.country = "foo"; + o.gmbEmail = "foo"; + o.liaSettings = buildLiaSettings(); + o.merchantId = "foo"; + o.method = "foo"; + o.posDataProviderId = "foo"; + o.posExternalAccountId = "foo"; + } + buildCounterLiasettingsCustomBatchRequestEntry--; + return o; +} + +checkLiasettingsCustomBatchRequestEntry( + api.LiasettingsCustomBatchRequestEntry o) { + buildCounterLiasettingsCustomBatchRequestEntry++; + if (buildCounterLiasettingsCustomBatchRequestEntry < 3) { + unittest.expect(o.accountId, unittest.equals('foo')); + unittest.expect(o.batchId, unittest.equals(42)); + unittest.expect(o.contactEmail, unittest.equals('foo')); + unittest.expect(o.contactName, unittest.equals('foo')); + unittest.expect(o.country, unittest.equals('foo')); + unittest.expect(o.gmbEmail, unittest.equals('foo')); + checkLiaSettings(o.liaSettings); + unittest.expect(o.merchantId, unittest.equals('foo')); + unittest.expect(o.method, unittest.equals('foo')); + unittest.expect(o.posDataProviderId, unittest.equals('foo')); + unittest.expect(o.posExternalAccountId, unittest.equals('foo')); + } + buildCounterLiasettingsCustomBatchRequestEntry--; +} + +buildUnnamed2722() { + var o = new core.List<api.LiasettingsCustomBatchResponseEntry>(); + o.add(buildLiasettingsCustomBatchResponseEntry()); + o.add(buildLiasettingsCustomBatchResponseEntry()); + return o; +} + +checkUnnamed2722(core.List<api.LiasettingsCustomBatchResponseEntry> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLiasettingsCustomBatchResponseEntry(o[0]); + checkLiasettingsCustomBatchResponseEntry(o[1]); +} + +core.int buildCounterLiasettingsCustomBatchResponse = 0; +buildLiasettingsCustomBatchResponse() { + var o = new api.LiasettingsCustomBatchResponse(); + buildCounterLiasettingsCustomBatchResponse++; + if (buildCounterLiasettingsCustomBatchResponse < 3) { + o.entries = buildUnnamed2722(); + o.kind = "foo"; + } + buildCounterLiasettingsCustomBatchResponse--; + return o; +} + +checkLiasettingsCustomBatchResponse(api.LiasettingsCustomBatchResponse o) { + buildCounterLiasettingsCustomBatchResponse++; + if (buildCounterLiasettingsCustomBatchResponse < 3) { + checkUnnamed2722(o.entries); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterLiasettingsCustomBatchResponse--; +} + +buildUnnamed2723() { + var o = new core.List<api.PosDataProviders>(); + o.add(buildPosDataProviders()); + o.add(buildPosDataProviders()); + return o; +} + +checkUnnamed2723(core.List<api.PosDataProviders> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPosDataProviders(o[0]); + checkPosDataProviders(o[1]); +} + +core.int buildCounterLiasettingsCustomBatchResponseEntry = 0; +buildLiasettingsCustomBatchResponseEntry() { + var o = new api.LiasettingsCustomBatchResponseEntry(); + buildCounterLiasettingsCustomBatchResponseEntry++; + if (buildCounterLiasettingsCustomBatchResponseEntry < 3) { + o.batchId = 42; + o.errors = buildErrors(); + o.gmbAccounts = buildGmbAccounts(); + o.kind = "foo"; + o.liaSettings = buildLiaSettings(); + o.posDataProviders = buildUnnamed2723(); + } + buildCounterLiasettingsCustomBatchResponseEntry--; + return o; +} + +checkLiasettingsCustomBatchResponseEntry( + api.LiasettingsCustomBatchResponseEntry o) { + buildCounterLiasettingsCustomBatchResponseEntry++; + if (buildCounterLiasettingsCustomBatchResponseEntry < 3) { + unittest.expect(o.batchId, unittest.equals(42)); + checkErrors(o.errors); + checkGmbAccounts(o.gmbAccounts); + unittest.expect(o.kind, unittest.equals('foo')); + checkLiaSettings(o.liaSettings); + checkUnnamed2723(o.posDataProviders); + } + buildCounterLiasettingsCustomBatchResponseEntry--; +} + +buildUnnamed2724() { + var o = new core.List<api.GmbAccountsGmbAccount>(); + o.add(buildGmbAccountsGmbAccount()); + o.add(buildGmbAccountsGmbAccount()); + return o; +} + +checkUnnamed2724(core.List<api.GmbAccountsGmbAccount> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGmbAccountsGmbAccount(o[0]); + checkGmbAccountsGmbAccount(o[1]); +} + +core.int buildCounterLiasettingsGetAccessibleGmbAccountsResponse = 0; +buildLiasettingsGetAccessibleGmbAccountsResponse() { + var o = new api.LiasettingsGetAccessibleGmbAccountsResponse(); + buildCounterLiasettingsGetAccessibleGmbAccountsResponse++; + if (buildCounterLiasettingsGetAccessibleGmbAccountsResponse < 3) { + o.accountId = "foo"; + o.gmbAccounts = buildUnnamed2724(); + o.kind = "foo"; + } + buildCounterLiasettingsGetAccessibleGmbAccountsResponse--; + return o; +} + +checkLiasettingsGetAccessibleGmbAccountsResponse( + api.LiasettingsGetAccessibleGmbAccountsResponse o) { + buildCounterLiasettingsGetAccessibleGmbAccountsResponse++; + if (buildCounterLiasettingsGetAccessibleGmbAccountsResponse < 3) { + unittest.expect(o.accountId, unittest.equals('foo')); + checkUnnamed2724(o.gmbAccounts); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterLiasettingsGetAccessibleGmbAccountsResponse--; +} + +buildUnnamed2725() { + var o = new core.List<api.LiaSettings>(); + o.add(buildLiaSettings()); + o.add(buildLiaSettings()); + return o; +} + +checkUnnamed2725(core.List<api.LiaSettings> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLiaSettings(o[0]); + checkLiaSettings(o[1]); +} + +core.int buildCounterLiasettingsListResponse = 0; +buildLiasettingsListResponse() { + var o = new api.LiasettingsListResponse(); + buildCounterLiasettingsListResponse++; + if (buildCounterLiasettingsListResponse < 3) { + o.kind = "foo"; + o.nextPageToken = "foo"; + o.resources = buildUnnamed2725(); + } + buildCounterLiasettingsListResponse--; + return o; +} + +checkLiasettingsListResponse(api.LiasettingsListResponse o) { + buildCounterLiasettingsListResponse++; + if (buildCounterLiasettingsListResponse < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed2725(o.resources); + } + buildCounterLiasettingsListResponse--; +} + +core.int buildCounterLiasettingsRequestGmbAccessResponse = 0; +buildLiasettingsRequestGmbAccessResponse() { + var o = new api.LiasettingsRequestGmbAccessResponse(); + buildCounterLiasettingsRequestGmbAccessResponse++; + if (buildCounterLiasettingsRequestGmbAccessResponse < 3) { + o.kind = "foo"; + } + buildCounterLiasettingsRequestGmbAccessResponse--; + return o; +} + +checkLiasettingsRequestGmbAccessResponse( + api.LiasettingsRequestGmbAccessResponse o) { + buildCounterLiasettingsRequestGmbAccessResponse++; + if (buildCounterLiasettingsRequestGmbAccessResponse < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterLiasettingsRequestGmbAccessResponse--; +} + +core.int buildCounterLiasettingsRequestInventoryVerificationResponse = 0; +buildLiasettingsRequestInventoryVerificationResponse() { + var o = new api.LiasettingsRequestInventoryVerificationResponse(); + buildCounterLiasettingsRequestInventoryVerificationResponse++; + if (buildCounterLiasettingsRequestInventoryVerificationResponse < 3) { + o.kind = "foo"; + } + buildCounterLiasettingsRequestInventoryVerificationResponse--; + return o; +} + +checkLiasettingsRequestInventoryVerificationResponse( + api.LiasettingsRequestInventoryVerificationResponse o) { + buildCounterLiasettingsRequestInventoryVerificationResponse++; + if (buildCounterLiasettingsRequestInventoryVerificationResponse < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterLiasettingsRequestInventoryVerificationResponse--; +} + +core.int buildCounterLiasettingsSetInventoryVerificationContactResponse = 0; +buildLiasettingsSetInventoryVerificationContactResponse() { + var o = new api.LiasettingsSetInventoryVerificationContactResponse(); + buildCounterLiasettingsSetInventoryVerificationContactResponse++; + if (buildCounterLiasettingsSetInventoryVerificationContactResponse < 3) { + o.kind = "foo"; + } + buildCounterLiasettingsSetInventoryVerificationContactResponse--; + return o; +} + +checkLiasettingsSetInventoryVerificationContactResponse( + api.LiasettingsSetInventoryVerificationContactResponse o) { + buildCounterLiasettingsSetInventoryVerificationContactResponse++; + if (buildCounterLiasettingsSetInventoryVerificationContactResponse < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterLiasettingsSetInventoryVerificationContactResponse--; +} + +buildUnnamed2726() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed263(core.List<core.String> o) { +checkUnnamed2726(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2161,7 +2772,7 @@ var o = new api.LocationIdSet(); buildCounterLocationIdSet++; if (buildCounterLocationIdSet < 3) { - o.locationIds = buildUnnamed263(); + o.locationIds = buildUnnamed2726(); } buildCounterLocationIdSet--; return o; @@ -2170,7 +2781,7 @@ checkLocationIdSet(api.LocationIdSet o) { buildCounterLocationIdSet++; if (buildCounterLocationIdSet < 3) { - checkUnnamed263(o.locationIds); + checkUnnamed2726(o.locationIds); } buildCounterLocationIdSet--; } @@ -2198,53 +2809,53 @@ buildCounterLoyaltyPoints--; } -buildUnnamed264() { +buildUnnamed2727() { var o = new core.List<api.OrderLineItem>(); o.add(buildOrderLineItem()); o.add(buildOrderLineItem()); return o; } -checkUnnamed264(core.List<api.OrderLineItem> o) { +checkUnnamed2727(core.List<api.OrderLineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItem(o[0]); checkOrderLineItem(o[1]); } -buildUnnamed265() { +buildUnnamed2728() { var o = new core.List<api.OrderPromotion>(); o.add(buildOrderPromotion()); o.add(buildOrderPromotion()); return o; } -checkUnnamed265(core.List<api.OrderPromotion> o) { +checkUnnamed2728(core.List<api.OrderPromotion> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotion(o[0]); checkOrderPromotion(o[1]); } -buildUnnamed266() { +buildUnnamed2729() { var o = new core.List<api.OrderRefund>(); o.add(buildOrderRefund()); o.add(buildOrderRefund()); return o; } -checkUnnamed266(core.List<api.OrderRefund> o) { +checkUnnamed2729(core.List<api.OrderRefund> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderRefund(o[0]); checkOrderRefund(o[1]); } -buildUnnamed267() { +buildUnnamed2730() { var o = new core.List<api.OrderShipment>(); o.add(buildOrderShipment()); o.add(buildOrderShipment()); return o; } -checkUnnamed267(core.List<api.OrderShipment> o) { +checkUnnamed2730(core.List<api.OrderShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipment(o[0]); checkOrderShipment(o[1]); @@ -2261,16 +2872,16 @@ o.deliveryDetails = buildOrderDeliveryDetails(); o.id = "foo"; o.kind = "foo"; - o.lineItems = buildUnnamed264(); + o.lineItems = buildUnnamed2727(); o.merchantId = "foo"; o.merchantOrderId = "foo"; o.netAmount = buildPrice(); o.paymentMethod = buildOrderPaymentMethod(); o.paymentStatus = "foo"; o.placedDate = "foo"; - o.promotions = buildUnnamed265(); - o.refunds = buildUnnamed266(); - o.shipments = buildUnnamed267(); + o.promotions = buildUnnamed2728(); + o.refunds = buildUnnamed2729(); + o.shipments = buildUnnamed2730(); o.shippingCost = buildPrice(); o.shippingCostTax = buildPrice(); o.shippingOption = "foo"; @@ -2289,16 +2900,16 @@ checkOrderDeliveryDetails(o.deliveryDetails); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed264(o.lineItems); + checkUnnamed2727(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')); - checkUnnamed265(o.promotions); - checkUnnamed266(o.refunds); - checkUnnamed267(o.shipments); + checkUnnamed2728(o.promotions); + checkUnnamed2729(o.refunds); + checkUnnamed2730(o.shipments); checkPrice(o.shippingCost); checkPrice(o.shippingCostTax); unittest.expect(o.shippingOption, unittest.equals('foo')); @@ -2307,27 +2918,27 @@ buildCounterOrder--; } -buildUnnamed268() { +buildUnnamed2731() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed268(core.List<core.String> o) { +checkUnnamed2731(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed269() { +buildUnnamed2732() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed269(core.List<core.String> o) { +checkUnnamed2732(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2339,13 +2950,13 @@ buildCounterOrderAddress++; if (buildCounterOrderAddress < 3) { o.country = "foo"; - o.fullAddress = buildUnnamed268(); + o.fullAddress = buildUnnamed2731(); o.isPostOfficeBox = true; o.locality = "foo"; o.postalCode = "foo"; o.recipientName = "foo"; o.region = "foo"; - o.streetAddress = buildUnnamed269(); + o.streetAddress = buildUnnamed2732(); } buildCounterOrderAddress--; return o; @@ -2355,13 +2966,13 @@ buildCounterOrderAddress++; if (buildCounterOrderAddress < 3) { unittest.expect(o.country, unittest.equals('foo')); - checkUnnamed268(o.fullAddress); + checkUnnamed2731(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')); - checkUnnamed269(o.streetAddress); + checkUnnamed2732(o.streetAddress); } buildCounterOrderAddress--; } @@ -2401,6 +3012,7 @@ o.email = "foo"; o.explicitMarketingPreference = true; o.fullName = "foo"; + o.marketingRightsInfo = buildOrderCustomerMarketingRightsInfo(); } buildCounterOrderCustomer--; return o; @@ -2412,10 +3024,34 @@ unittest.expect(o.email, unittest.equals('foo')); unittest.expect(o.explicitMarketingPreference, unittest.isTrue); unittest.expect(o.fullName, unittest.equals('foo')); + checkOrderCustomerMarketingRightsInfo(o.marketingRightsInfo); } buildCounterOrderCustomer--; } +core.int buildCounterOrderCustomerMarketingRightsInfo = 0; +buildOrderCustomerMarketingRightsInfo() { + var o = new api.OrderCustomerMarketingRightsInfo(); + buildCounterOrderCustomerMarketingRightsInfo++; + if (buildCounterOrderCustomerMarketingRightsInfo < 3) { + o.explicitMarketingPreference = "foo"; + o.lastUpdatedTimestamp = "foo"; + o.marketingEmailAddress = "foo"; + } + buildCounterOrderCustomerMarketingRightsInfo--; + return o; +} + +checkOrderCustomerMarketingRightsInfo(api.OrderCustomerMarketingRightsInfo o) { + buildCounterOrderCustomerMarketingRightsInfo++; + if (buildCounterOrderCustomerMarketingRightsInfo < 3) { + unittest.expect(o.explicitMarketingPreference, unittest.equals('foo')); + unittest.expect(o.lastUpdatedTimestamp, unittest.equals('foo')); + unittest.expect(o.marketingEmailAddress, unittest.equals('foo')); + } + buildCounterOrderCustomerMarketingRightsInfo--; +} + core.int buildCounterOrderDeliveryDetails = 0; buildOrderDeliveryDetails() { var o = new api.OrderDeliveryDetails(); @@ -2437,40 +3073,40 @@ buildCounterOrderDeliveryDetails--; } -buildUnnamed270() { +buildUnnamed2733() { var o = new core.List<api.OrderMerchantProvidedAnnotation>(); o.add(buildOrderMerchantProvidedAnnotation()); o.add(buildOrderMerchantProvidedAnnotation()); return o; } -checkUnnamed270(core.List<api.OrderMerchantProvidedAnnotation> o) { +checkUnnamed2733(core.List<api.OrderMerchantProvidedAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderMerchantProvidedAnnotation(o[0]); checkOrderMerchantProvidedAnnotation(o[1]); } -buildUnnamed271() { +buildUnnamed2734() { var o = new core.List<api.OrderCancellation>(); o.add(buildOrderCancellation()); o.add(buildOrderCancellation()); return o; } -checkUnnamed271(core.List<api.OrderCancellation> o) { +checkUnnamed2734(core.List<api.OrderCancellation> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderCancellation(o[0]); checkOrderCancellation(o[1]); } -buildUnnamed272() { +buildUnnamed2735() { var o = new core.List<api.OrderReturn>(); o.add(buildOrderReturn()); o.add(buildOrderReturn()); return o; } -checkUnnamed272(core.List<api.OrderReturn> o) { +checkUnnamed2735(core.List<api.OrderReturn> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderReturn(o[0]); checkOrderReturn(o[1]); @@ -2481,8 +3117,8 @@ var o = new api.OrderLineItem(); buildCounterOrderLineItem++; if (buildCounterOrderLineItem < 3) { - o.annotations = buildUnnamed270(); - o.cancellations = buildUnnamed271(); + o.annotations = buildUnnamed2733(); + o.cancellations = buildUnnamed2734(); o.id = "foo"; o.price = buildPrice(); o.product = buildOrderLineItemProduct(); @@ -2493,7 +3129,7 @@ o.quantityReturned = 42; o.quantityShipped = 42; o.returnInfo = buildOrderLineItemReturnInfo(); - o.returns = buildUnnamed272(); + o.returns = buildUnnamed2735(); o.shippingDetails = buildOrderLineItemShippingDetails(); o.tax = buildPrice(); } @@ -2504,8 +3140,8 @@ checkOrderLineItem(api.OrderLineItem o) { buildCounterOrderLineItem++; if (buildCounterOrderLineItem < 3) { - checkUnnamed270(o.annotations); - checkUnnamed271(o.cancellations); + checkUnnamed2733(o.annotations); + checkUnnamed2734(o.cancellations); unittest.expect(o.id, unittest.equals('foo')); checkPrice(o.price); checkOrderLineItemProduct(o.product); @@ -2516,21 +3152,21 @@ unittest.expect(o.quantityReturned, unittest.equals(42)); unittest.expect(o.quantityShipped, unittest.equals(42)); checkOrderLineItemReturnInfo(o.returnInfo); - checkUnnamed272(o.returns); + checkUnnamed2735(o.returns); checkOrderLineItemShippingDetails(o.shippingDetails); checkPrice(o.tax); } buildCounterOrderLineItem--; } -buildUnnamed273() { +buildUnnamed2736() { var o = new core.List<api.OrderLineItemProductVariantAttribute>(); o.add(buildOrderLineItemProductVariantAttribute()); o.add(buildOrderLineItemProductVariantAttribute()); return o; } -checkUnnamed273(core.List<api.OrderLineItemProductVariantAttribute> o) { +checkUnnamed2736(core.List<api.OrderLineItemProductVariantAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItemProductVariantAttribute(o[0]); checkOrderLineItemProductVariantAttribute(o[1]); @@ -2555,7 +3191,7 @@ o.shownImage = "foo"; o.targetCountry = "foo"; o.title = "foo"; - o.variantAttributes = buildUnnamed273(); + o.variantAttributes = buildUnnamed2736(); } buildCounterOrderLineItemProduct--; return o; @@ -2578,7 +3214,7 @@ unittest.expect(o.shownImage, unittest.equals('foo')); unittest.expect(o.targetCountry, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed273(o.variantAttributes); + checkUnnamed2736(o.variantAttributes); } buildCounterOrderLineItemProduct--; } @@ -2727,14 +3363,14 @@ buildCounterOrderPaymentMethod--; } -buildUnnamed274() { +buildUnnamed2737() { var o = new core.List<api.OrderPromotionBenefit>(); o.add(buildOrderPromotionBenefit()); o.add(buildOrderPromotionBenefit()); return o; } -checkUnnamed274(core.List<api.OrderPromotionBenefit> o) { +checkUnnamed2737(core.List<api.OrderPromotionBenefit> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotionBenefit(o[0]); checkOrderPromotionBenefit(o[1]); @@ -2745,7 +3381,7 @@ var o = new api.OrderPromotion(); buildCounterOrderPromotion++; if (buildCounterOrderPromotion < 3) { - o.benefits = buildUnnamed274(); + o.benefits = buildUnnamed2737(); o.effectiveDates = "foo"; o.genericRedemptionCode = "foo"; o.id = "foo"; @@ -2760,7 +3396,7 @@ checkOrderPromotion(api.OrderPromotion o) { buildCounterOrderPromotion++; if (buildCounterOrderPromotion < 3) { - checkUnnamed274(o.benefits); + checkUnnamed2737(o.benefits); unittest.expect(o.effectiveDates, unittest.equals('foo')); unittest.expect(o.genericRedemptionCode, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -2771,14 +3407,14 @@ buildCounterOrderPromotion--; } -buildUnnamed275() { +buildUnnamed2738() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed275(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')); @@ -2790,7 +3426,7 @@ buildCounterOrderPromotionBenefit++; if (buildCounterOrderPromotionBenefit < 3) { o.discount = buildPrice(); - o.offerIds = buildUnnamed275(); + o.offerIds = buildUnnamed2738(); o.subType = "foo"; o.taxImpact = buildPrice(); o.type = "foo"; @@ -2803,7 +3439,7 @@ buildCounterOrderPromotionBenefit++; if (buildCounterOrderPromotionBenefit < 3) { checkPrice(o.discount); - checkUnnamed275(o.offerIds); + checkUnnamed2738(o.offerIds); unittest.expect(o.subType, unittest.equals('foo')); checkPrice(o.taxImpact); unittest.expect(o.type, unittest.equals('foo')); @@ -2865,14 +3501,14 @@ buildCounterOrderReturn--; } -buildUnnamed276() { +buildUnnamed2739() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed276(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed2739(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); @@ -2887,7 +3523,7 @@ o.creationDate = "foo"; o.deliveryDate = "foo"; o.id = "foo"; - o.lineItems = buildUnnamed276(); + o.lineItems = buildUnnamed2739(); o.status = "foo"; o.trackingId = "foo"; } @@ -2902,7 +3538,7 @@ unittest.expect(o.creationDate, unittest.equals('foo')); unittest.expect(o.deliveryDate, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed276(o.lineItems); + checkUnnamed2739(o.lineItems); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); } @@ -2932,6 +3568,362 @@ buildCounterOrderShipmentLineItemShipment--; } +buildUnnamed2740() { + var o = new core.List<api.ShipmentInvoiceLineItemInvoice>(); + o.add(buildShipmentInvoiceLineItemInvoice()); + o.add(buildShipmentInvoiceLineItemInvoice()); + return o; +} + +checkUnnamed2740(core.List<api.ShipmentInvoiceLineItemInvoice> o) { + unittest.expect(o, unittest.hasLength(2)); + checkShipmentInvoiceLineItemInvoice(o[0]); + checkShipmentInvoiceLineItemInvoice(o[1]); +} + +core.int buildCounterOrderinvoicesCreateChargeInvoiceRequest = 0; +buildOrderinvoicesCreateChargeInvoiceRequest() { + var o = new api.OrderinvoicesCreateChargeInvoiceRequest(); + buildCounterOrderinvoicesCreateChargeInvoiceRequest++; + if (buildCounterOrderinvoicesCreateChargeInvoiceRequest < 3) { + o.invoiceId = "foo"; + o.invoiceSummary = buildInvoiceSummary(); + o.lineItemInvoices = buildUnnamed2740(); + o.operationId = "foo"; + o.shipmentGroupId = "foo"; + } + buildCounterOrderinvoicesCreateChargeInvoiceRequest--; + return o; +} + +checkOrderinvoicesCreateChargeInvoiceRequest( + api.OrderinvoicesCreateChargeInvoiceRequest o) { + buildCounterOrderinvoicesCreateChargeInvoiceRequest++; + if (buildCounterOrderinvoicesCreateChargeInvoiceRequest < 3) { + unittest.expect(o.invoiceId, unittest.equals('foo')); + checkInvoiceSummary(o.invoiceSummary); + checkUnnamed2740(o.lineItemInvoices); + unittest.expect(o.operationId, unittest.equals('foo')); + unittest.expect(o.shipmentGroupId, unittest.equals('foo')); + } + buildCounterOrderinvoicesCreateChargeInvoiceRequest--; +} + +core.int buildCounterOrderinvoicesCreateChargeInvoiceResponse = 0; +buildOrderinvoicesCreateChargeInvoiceResponse() { + var o = new api.OrderinvoicesCreateChargeInvoiceResponse(); + buildCounterOrderinvoicesCreateChargeInvoiceResponse++; + if (buildCounterOrderinvoicesCreateChargeInvoiceResponse < 3) { + o.executionStatus = "foo"; + o.kind = "foo"; + } + buildCounterOrderinvoicesCreateChargeInvoiceResponse--; + return o; +} + +checkOrderinvoicesCreateChargeInvoiceResponse( + api.OrderinvoicesCreateChargeInvoiceResponse o) { + buildCounterOrderinvoicesCreateChargeInvoiceResponse++; + if (buildCounterOrderinvoicesCreateChargeInvoiceResponse < 3) { + unittest.expect(o.executionStatus, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterOrderinvoicesCreateChargeInvoiceResponse--; +} + +buildUnnamed2741() { + var o = new core.List<api.ShipmentInvoice>(); + o.add(buildShipmentInvoice()); + o.add(buildShipmentInvoice()); + return o; +} + +checkUnnamed2741(core.List<api.ShipmentInvoice> o) { + unittest.expect(o, unittest.hasLength(2)); + checkShipmentInvoice(o[0]); + checkShipmentInvoice(o[1]); +} + +core.int buildCounterOrderinvoicesCreateRefundInvoiceRequest = 0; +buildOrderinvoicesCreateRefundInvoiceRequest() { + var o = new api.OrderinvoicesCreateRefundInvoiceRequest(); + buildCounterOrderinvoicesCreateRefundInvoiceRequest++; + if (buildCounterOrderinvoicesCreateRefundInvoiceRequest < 3) { + o.invoiceId = "foo"; + o.operationId = "foo"; + o.refundOnlyOption = + buildOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption(); + o.returnOption = + buildOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption(); + o.shipmentInvoices = buildUnnamed2741(); + } + buildCounterOrderinvoicesCreateRefundInvoiceRequest--; + return o; +} + +checkOrderinvoicesCreateRefundInvoiceRequest( + api.OrderinvoicesCreateRefundInvoiceRequest o) { + buildCounterOrderinvoicesCreateRefundInvoiceRequest++; + if (buildCounterOrderinvoicesCreateRefundInvoiceRequest < 3) { + unittest.expect(o.invoiceId, unittest.equals('foo')); + unittest.expect(o.operationId, unittest.equals('foo')); + checkOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption( + o.refundOnlyOption); + checkOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption( + o.returnOption); + checkUnnamed2741(o.shipmentInvoices); + } + buildCounterOrderinvoicesCreateRefundInvoiceRequest--; +} + +core.int buildCounterOrderinvoicesCreateRefundInvoiceResponse = 0; +buildOrderinvoicesCreateRefundInvoiceResponse() { + var o = new api.OrderinvoicesCreateRefundInvoiceResponse(); + buildCounterOrderinvoicesCreateRefundInvoiceResponse++; + if (buildCounterOrderinvoicesCreateRefundInvoiceResponse < 3) { + o.executionStatus = "foo"; + o.kind = "foo"; + } + buildCounterOrderinvoicesCreateRefundInvoiceResponse--; + return o; +} + +checkOrderinvoicesCreateRefundInvoiceResponse( + api.OrderinvoicesCreateRefundInvoiceResponse o) { + buildCounterOrderinvoicesCreateRefundInvoiceResponse++; + if (buildCounterOrderinvoicesCreateRefundInvoiceResponse < 3) { + unittest.expect(o.executionStatus, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterOrderinvoicesCreateRefundInvoiceResponse--; +} + +core.int + buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption = + 0; +buildOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption() { + var o = new api + .OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption(); + buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption++; + if (buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption < + 3) { + o.description = "foo"; + o.reason = "foo"; + } + buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption--; + return o; +} + +checkOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption( + api.OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption o) { + buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption++; + if (buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption < + 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.reason, unittest.equals('foo')); + } + buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption--; +} + +core.int + buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption = + 0; +buildOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption() { + var o = new api + .OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption(); + buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption++; + if (buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption < + 3) { + o.description = "foo"; + o.reason = "foo"; + } + buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption--; + return o; +} + +checkOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption( + api.OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption o) { + buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption++; + if (buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption < + 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.reason, unittest.equals('foo')); + } + buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption--; +} + +core.int buildCounterOrderpaymentsNotifyAuthApprovedRequest = 0; +buildOrderpaymentsNotifyAuthApprovedRequest() { + var o = new api.OrderpaymentsNotifyAuthApprovedRequest(); + buildCounterOrderpaymentsNotifyAuthApprovedRequest++; + if (buildCounterOrderpaymentsNotifyAuthApprovedRequest < 3) { + o.authAmountPretax = buildPrice(); + o.authAmountTax = buildPrice(); + } + buildCounterOrderpaymentsNotifyAuthApprovedRequest--; + return o; +} + +checkOrderpaymentsNotifyAuthApprovedRequest( + api.OrderpaymentsNotifyAuthApprovedRequest o) { + buildCounterOrderpaymentsNotifyAuthApprovedRequest++; + if (buildCounterOrderpaymentsNotifyAuthApprovedRequest < 3) { + checkPrice(o.authAmountPretax); + checkPrice(o.authAmountTax); + } + buildCounterOrderpaymentsNotifyAuthApprovedRequest--; +} + +core.int buildCounterOrderpaymentsNotifyAuthApprovedResponse = 0; +buildOrderpaymentsNotifyAuthApprovedResponse() { + var o = new api.OrderpaymentsNotifyAuthApprovedResponse(); + buildCounterOrderpaymentsNotifyAuthApprovedResponse++; + if (buildCounterOrderpaymentsNotifyAuthApprovedResponse < 3) { + o.executionStatus = "foo"; + o.kind = "foo"; + } + buildCounterOrderpaymentsNotifyAuthApprovedResponse--; + return o; +} + +checkOrderpaymentsNotifyAuthApprovedResponse( + api.OrderpaymentsNotifyAuthApprovedResponse o) { + buildCounterOrderpaymentsNotifyAuthApprovedResponse++; + if (buildCounterOrderpaymentsNotifyAuthApprovedResponse < 3) { + unittest.expect(o.executionStatus, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterOrderpaymentsNotifyAuthApprovedResponse--; +} + +core.int buildCounterOrderpaymentsNotifyAuthDeclinedRequest = 0; +buildOrderpaymentsNotifyAuthDeclinedRequest() { + var o = new api.OrderpaymentsNotifyAuthDeclinedRequest(); + buildCounterOrderpaymentsNotifyAuthDeclinedRequest++; + if (buildCounterOrderpaymentsNotifyAuthDeclinedRequest < 3) { + o.declineReason = "foo"; + } + buildCounterOrderpaymentsNotifyAuthDeclinedRequest--; + return o; +} + +checkOrderpaymentsNotifyAuthDeclinedRequest( + api.OrderpaymentsNotifyAuthDeclinedRequest o) { + buildCounterOrderpaymentsNotifyAuthDeclinedRequest++; + if (buildCounterOrderpaymentsNotifyAuthDeclinedRequest < 3) { + unittest.expect(o.declineReason, unittest.equals('foo')); + } + buildCounterOrderpaymentsNotifyAuthDeclinedRequest--; +} + +core.int buildCounterOrderpaymentsNotifyAuthDeclinedResponse = 0; +buildOrderpaymentsNotifyAuthDeclinedResponse() { + var o = new api.OrderpaymentsNotifyAuthDeclinedResponse(); + buildCounterOrderpaymentsNotifyAuthDeclinedResponse++; + if (buildCounterOrderpaymentsNotifyAuthDeclinedResponse < 3) { + o.executionStatus = "foo"; + o.kind = "foo"; + } + buildCounterOrderpaymentsNotifyAuthDeclinedResponse--; + return o; +} + +checkOrderpaymentsNotifyAuthDeclinedResponse( + api.OrderpaymentsNotifyAuthDeclinedResponse o) { + buildCounterOrderpaymentsNotifyAuthDeclinedResponse++; + if (buildCounterOrderpaymentsNotifyAuthDeclinedResponse < 3) { + unittest.expect(o.executionStatus, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterOrderpaymentsNotifyAuthDeclinedResponse--; +} + +core.int buildCounterOrderpaymentsNotifyChargeRequest = 0; +buildOrderpaymentsNotifyChargeRequest() { + var o = new api.OrderpaymentsNotifyChargeRequest(); + buildCounterOrderpaymentsNotifyChargeRequest++; + if (buildCounterOrderpaymentsNotifyChargeRequest < 3) { + o.chargeState = "foo"; + o.invoiceId = "foo"; + } + buildCounterOrderpaymentsNotifyChargeRequest--; + return o; +} + +checkOrderpaymentsNotifyChargeRequest(api.OrderpaymentsNotifyChargeRequest o) { + buildCounterOrderpaymentsNotifyChargeRequest++; + if (buildCounterOrderpaymentsNotifyChargeRequest < 3) { + unittest.expect(o.chargeState, unittest.equals('foo')); + unittest.expect(o.invoiceId, unittest.equals('foo')); + } + buildCounterOrderpaymentsNotifyChargeRequest--; +} + +core.int buildCounterOrderpaymentsNotifyChargeResponse = 0; +buildOrderpaymentsNotifyChargeResponse() { + var o = new api.OrderpaymentsNotifyChargeResponse(); + buildCounterOrderpaymentsNotifyChargeResponse++; + if (buildCounterOrderpaymentsNotifyChargeResponse < 3) { + o.executionStatus = "foo"; + o.kind = "foo"; + } + buildCounterOrderpaymentsNotifyChargeResponse--; + return o; +} + +checkOrderpaymentsNotifyChargeResponse( + api.OrderpaymentsNotifyChargeResponse o) { + buildCounterOrderpaymentsNotifyChargeResponse++; + if (buildCounterOrderpaymentsNotifyChargeResponse < 3) { + unittest.expect(o.executionStatus, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterOrderpaymentsNotifyChargeResponse--; +} + +core.int buildCounterOrderpaymentsNotifyRefundRequest = 0; +buildOrderpaymentsNotifyRefundRequest() { + var o = new api.OrderpaymentsNotifyRefundRequest(); + buildCounterOrderpaymentsNotifyRefundRequest++; + if (buildCounterOrderpaymentsNotifyRefundRequest < 3) { + o.invoiceId = "foo"; + o.refundState = "foo"; + } + buildCounterOrderpaymentsNotifyRefundRequest--; + return o; +} + +checkOrderpaymentsNotifyRefundRequest(api.OrderpaymentsNotifyRefundRequest o) { + buildCounterOrderpaymentsNotifyRefundRequest++; + if (buildCounterOrderpaymentsNotifyRefundRequest < 3) { + unittest.expect(o.invoiceId, unittest.equals('foo')); + unittest.expect(o.refundState, unittest.equals('foo')); + } + buildCounterOrderpaymentsNotifyRefundRequest--; +} + +core.int buildCounterOrderpaymentsNotifyRefundResponse = 0; +buildOrderpaymentsNotifyRefundResponse() { + var o = new api.OrderpaymentsNotifyRefundResponse(); + buildCounterOrderpaymentsNotifyRefundResponse++; + if (buildCounterOrderpaymentsNotifyRefundResponse < 3) { + o.executionStatus = "foo"; + o.kind = "foo"; + } + buildCounterOrderpaymentsNotifyRefundResponse--; + return o; +} + +checkOrderpaymentsNotifyRefundResponse( + api.OrderpaymentsNotifyRefundResponse o) { + buildCounterOrderpaymentsNotifyRefundResponse++; + if (buildCounterOrderpaymentsNotifyRefundResponse < 3) { + unittest.expect(o.executionStatus, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterOrderpaymentsNotifyRefundResponse--; +} + core.int buildCounterOrdersAcknowledgeRequest = 0; buildOrdersAcknowledgeRequest() { var o = new api.OrdersAcknowledgeRequest(); @@ -3133,14 +4125,14 @@ buildCounterOrdersCreateTestOrderResponse--; } -buildUnnamed277() { +buildUnnamed2742() { var o = new core.List<api.OrdersCustomBatchRequestEntry>(); o.add(buildOrdersCustomBatchRequestEntry()); o.add(buildOrdersCustomBatchRequestEntry()); return o; } -checkUnnamed277(core.List<api.OrdersCustomBatchRequestEntry> o) { +checkUnnamed2742(core.List<api.OrdersCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchRequestEntry(o[0]); checkOrdersCustomBatchRequestEntry(o[1]); @@ -3151,7 +4143,7 @@ var o = new api.OrdersCustomBatchRequest(); buildCounterOrdersCustomBatchRequest++; if (buildCounterOrdersCustomBatchRequest < 3) { - o.entries = buildUnnamed277(); + o.entries = buildUnnamed2742(); } buildCounterOrdersCustomBatchRequest--; return o; @@ -3160,7 +4152,7 @@ checkOrdersCustomBatchRequest(api.OrdersCustomBatchRequest o) { buildCounterOrdersCustomBatchRequest++; if (buildCounterOrdersCustomBatchRequest < 3) { - checkUnnamed277(o.entries); + checkUnnamed2742(o.entries); } buildCounterOrdersCustomBatchRequest--; } @@ -3430,14 +4422,14 @@ buildCounterOrdersCustomBatchRequestEntryReturnRefundLineItem--; } -buildUnnamed278() { +buildUnnamed2743() { var o = new core.List<api.OrderMerchantProvidedAnnotation>(); o.add(buildOrderMerchantProvidedAnnotation()); o.add(buildOrderMerchantProvidedAnnotation()); return o; } -checkUnnamed278(core.List<api.OrderMerchantProvidedAnnotation> o) { +checkUnnamed2743(core.List<api.OrderMerchantProvidedAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderMerchantProvidedAnnotation(o[0]); checkOrderMerchantProvidedAnnotation(o[1]); @@ -3448,7 +4440,7 @@ var o = new api.OrdersCustomBatchRequestEntrySetLineItemMetadata(); buildCounterOrdersCustomBatchRequestEntrySetLineItemMetadata++; if (buildCounterOrdersCustomBatchRequestEntrySetLineItemMetadata < 3) { - o.annotations = buildUnnamed278(); + o.annotations = buildUnnamed2743(); o.lineItemId = "foo"; o.productId = "foo"; } @@ -3460,27 +4452,27 @@ api.OrdersCustomBatchRequestEntrySetLineItemMetadata o) { buildCounterOrdersCustomBatchRequestEntrySetLineItemMetadata++; if (buildCounterOrdersCustomBatchRequestEntrySetLineItemMetadata < 3) { - checkUnnamed278(o.annotations); + checkUnnamed2743(o.annotations); unittest.expect(o.lineItemId, unittest.equals('foo')); unittest.expect(o.productId, unittest.equals('foo')); } buildCounterOrdersCustomBatchRequestEntrySetLineItemMetadata--; } -buildUnnamed279() { +buildUnnamed2744() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed279(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed2744(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); } -buildUnnamed280() { +buildUnnamed2745() { var o = new core .List<api.OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo>(); o.add(buildOrdersCustomBatchRequestEntryShipLineItemsShipmentInfo()); @@ -3488,7 +4480,7 @@ return o; } -checkUnnamed280( +checkUnnamed2745( core.List<api.OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchRequestEntryShipLineItemsShipmentInfo(o[0]); @@ -3501,9 +4493,10 @@ buildCounterOrdersCustomBatchRequestEntryShipLineItems++; if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { o.carrier = "foo"; - o.lineItems = buildUnnamed279(); + o.lineItems = buildUnnamed2744(); + o.shipmentGroupId = "foo"; o.shipmentId = "foo"; - o.shipmentInfos = buildUnnamed280(); + o.shipmentInfos = buildUnnamed2745(); o.trackingId = "foo"; } buildCounterOrdersCustomBatchRequestEntryShipLineItems--; @@ -3515,9 +4508,10 @@ buildCounterOrdersCustomBatchRequestEntryShipLineItems++; if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { unittest.expect(o.carrier, unittest.equals('foo')); - checkUnnamed279(o.lineItems); + checkUnnamed2744(o.lineItems); + unittest.expect(o.shipmentGroupId, unittest.equals('foo')); unittest.expect(o.shipmentId, unittest.equals('foo')); - checkUnnamed280(o.shipmentInfos); + checkUnnamed2745(o.shipmentInfos); unittest.expect(o.trackingId, unittest.equals('foo')); } buildCounterOrdersCustomBatchRequestEntryShipLineItems--; @@ -3602,14 +4596,14 @@ buildCounterOrdersCustomBatchRequestEntryUpdateShipment--; } -buildUnnamed281() { +buildUnnamed2746() { var o = new core.List<api.OrdersCustomBatchResponseEntry>(); o.add(buildOrdersCustomBatchResponseEntry()); o.add(buildOrdersCustomBatchResponseEntry()); return o; } -checkUnnamed281(core.List<api.OrdersCustomBatchResponseEntry> o) { +checkUnnamed2746(core.List<api.OrdersCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchResponseEntry(o[0]); checkOrdersCustomBatchResponseEntry(o[1]); @@ -3620,7 +4614,7 @@ var o = new api.OrdersCustomBatchResponse(); buildCounterOrdersCustomBatchResponse++; if (buildCounterOrdersCustomBatchResponse < 3) { - o.entries = buildUnnamed281(); + o.entries = buildUnnamed2746(); o.kind = "foo"; } buildCounterOrdersCustomBatchResponse--; @@ -3630,7 +4624,7 @@ checkOrdersCustomBatchResponse(api.OrdersCustomBatchResponse o) { buildCounterOrdersCustomBatchResponse++; if (buildCounterOrdersCustomBatchResponse < 3) { - checkUnnamed281(o.entries); + checkUnnamed2746(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterOrdersCustomBatchResponse--; @@ -3763,14 +4757,14 @@ buildCounterOrdersInStoreRefundLineItemResponse--; } -buildUnnamed282() { +buildUnnamed2747() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed282(core.List<api.Order> o) { +checkUnnamed2747(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -3783,7 +4777,7 @@ if (buildCounterOrdersListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed282(); + o.resources = buildUnnamed2747(); } buildCounterOrdersListResponse--; return o; @@ -3794,7 +4788,7 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed282(o.resources); + checkUnnamed2747(o.resources); } buildCounterOrdersListResponse--; } @@ -4007,14 +5001,14 @@ buildCounterOrdersReturnRefundLineItemResponse--; } -buildUnnamed283() { +buildUnnamed2748() { var o = new core.List<api.OrderMerchantProvidedAnnotation>(); o.add(buildOrderMerchantProvidedAnnotation()); o.add(buildOrderMerchantProvidedAnnotation()); return o; } -checkUnnamed283(core.List<api.OrderMerchantProvidedAnnotation> o) { +checkUnnamed2748(core.List<api.OrderMerchantProvidedAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderMerchantProvidedAnnotation(o[0]); checkOrderMerchantProvidedAnnotation(o[1]); @@ -4025,7 +5019,7 @@ var o = new api.OrdersSetLineItemMetadataRequest(); buildCounterOrdersSetLineItemMetadataRequest++; if (buildCounterOrdersSetLineItemMetadataRequest < 3) { - o.annotations = buildUnnamed283(); + o.annotations = buildUnnamed2748(); o.lineItemId = "foo"; o.operationId = "foo"; o.productId = "foo"; @@ -4037,7 +5031,7 @@ checkOrdersSetLineItemMetadataRequest(api.OrdersSetLineItemMetadataRequest o) { buildCounterOrdersSetLineItemMetadataRequest++; if (buildCounterOrdersSetLineItemMetadataRequest < 3) { - checkUnnamed283(o.annotations); + checkUnnamed2748(o.annotations); unittest.expect(o.lineItemId, unittest.equals('foo')); unittest.expect(o.operationId, unittest.equals('foo')); unittest.expect(o.productId, unittest.equals('foo')); @@ -4067,20 +5061,20 @@ buildCounterOrdersSetLineItemMetadataResponse--; } -buildUnnamed284() { +buildUnnamed2749() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed284(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed2749(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); } -buildUnnamed285() { +buildUnnamed2750() { var o = new core .List<api.OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo>(); o.add(buildOrdersCustomBatchRequestEntryShipLineItemsShipmentInfo()); @@ -4088,7 +5082,7 @@ return o; } -checkUnnamed285( +checkUnnamed2750( core.List<api.OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchRequestEntryShipLineItemsShipmentInfo(o[0]); @@ -4101,10 +5095,11 @@ buildCounterOrdersShipLineItemsRequest++; if (buildCounterOrdersShipLineItemsRequest < 3) { o.carrier = "foo"; - o.lineItems = buildUnnamed284(); + o.lineItems = buildUnnamed2749(); o.operationId = "foo"; + o.shipmentGroupId = "foo"; o.shipmentId = "foo"; - o.shipmentInfos = buildUnnamed285(); + o.shipmentInfos = buildUnnamed2750(); o.trackingId = "foo"; } buildCounterOrdersShipLineItemsRequest--; @@ -4115,10 +5110,11 @@ buildCounterOrdersShipLineItemsRequest++; if (buildCounterOrdersShipLineItemsRequest < 3) { unittest.expect(o.carrier, unittest.equals('foo')); - checkUnnamed284(o.lineItems); + checkUnnamed2749(o.lineItems); unittest.expect(o.operationId, unittest.equals('foo')); + unittest.expect(o.shipmentGroupId, unittest.equals('foo')); unittest.expect(o.shipmentId, unittest.equals('foo')); - checkUnnamed285(o.shipmentInfos); + checkUnnamed2750(o.shipmentInfos); unittest.expect(o.trackingId, unittest.equals('foo')); } buildCounterOrdersShipLineItemsRequest--; @@ -4287,14 +5283,468 @@ buildCounterOrdersUpdateShipmentResponse--; } -buildUnnamed286() { +buildUnnamed2751() { + var o = new core.List<api.PosCustomBatchRequestEntry>(); + o.add(buildPosCustomBatchRequestEntry()); + o.add(buildPosCustomBatchRequestEntry()); + return o; +} + +checkUnnamed2751(core.List<api.PosCustomBatchRequestEntry> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPosCustomBatchRequestEntry(o[0]); + checkPosCustomBatchRequestEntry(o[1]); +} + +core.int buildCounterPosCustomBatchRequest = 0; +buildPosCustomBatchRequest() { + var o = new api.PosCustomBatchRequest(); + buildCounterPosCustomBatchRequest++; + if (buildCounterPosCustomBatchRequest < 3) { + o.entries = buildUnnamed2751(); + } + buildCounterPosCustomBatchRequest--; + return o; +} + +checkPosCustomBatchRequest(api.PosCustomBatchRequest o) { + buildCounterPosCustomBatchRequest++; + if (buildCounterPosCustomBatchRequest < 3) { + checkUnnamed2751(o.entries); + } + buildCounterPosCustomBatchRequest--; +} + +core.int buildCounterPosCustomBatchRequestEntry = 0; +buildPosCustomBatchRequestEntry() { + var o = new api.PosCustomBatchRequestEntry(); + buildCounterPosCustomBatchRequestEntry++; + if (buildCounterPosCustomBatchRequestEntry < 3) { + o.batchId = 42; + o.inventory = buildPosInventory(); + o.merchantId = "foo"; + o.method = "foo"; + o.sale = buildPosSale(); + o.store = buildPosStore(); + o.storeCode = "foo"; + o.targetMerchantId = "foo"; + } + buildCounterPosCustomBatchRequestEntry--; + return o; +} + +checkPosCustomBatchRequestEntry(api.PosCustomBatchRequestEntry o) { + buildCounterPosCustomBatchRequestEntry++; + if (buildCounterPosCustomBatchRequestEntry < 3) { + unittest.expect(o.batchId, unittest.equals(42)); + checkPosInventory(o.inventory); + unittest.expect(o.merchantId, unittest.equals('foo')); + unittest.expect(o.method, unittest.equals('foo')); + checkPosSale(o.sale); + checkPosStore(o.store); + unittest.expect(o.storeCode, unittest.equals('foo')); + unittest.expect(o.targetMerchantId, unittest.equals('foo')); + } + buildCounterPosCustomBatchRequestEntry--; +} + +buildUnnamed2752() { + var o = new core.List<api.PosCustomBatchResponseEntry>(); + o.add(buildPosCustomBatchResponseEntry()); + o.add(buildPosCustomBatchResponseEntry()); + return o; +} + +checkUnnamed2752(core.List<api.PosCustomBatchResponseEntry> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPosCustomBatchResponseEntry(o[0]); + checkPosCustomBatchResponseEntry(o[1]); +} + +core.int buildCounterPosCustomBatchResponse = 0; +buildPosCustomBatchResponse() { + var o = new api.PosCustomBatchResponse(); + buildCounterPosCustomBatchResponse++; + if (buildCounterPosCustomBatchResponse < 3) { + o.entries = buildUnnamed2752(); + o.kind = "foo"; + } + buildCounterPosCustomBatchResponse--; + return o; +} + +checkPosCustomBatchResponse(api.PosCustomBatchResponse o) { + buildCounterPosCustomBatchResponse++; + if (buildCounterPosCustomBatchResponse < 3) { + checkUnnamed2752(o.entries); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterPosCustomBatchResponse--; +} + +core.int buildCounterPosCustomBatchResponseEntry = 0; +buildPosCustomBatchResponseEntry() { + var o = new api.PosCustomBatchResponseEntry(); + buildCounterPosCustomBatchResponseEntry++; + if (buildCounterPosCustomBatchResponseEntry < 3) { + o.batchId = 42; + o.errors = buildErrors(); + o.inventory = buildPosInventory(); + o.kind = "foo"; + o.sale = buildPosSale(); + o.store = buildPosStore(); + } + buildCounterPosCustomBatchResponseEntry--; + return o; +} + +checkPosCustomBatchResponseEntry(api.PosCustomBatchResponseEntry o) { + buildCounterPosCustomBatchResponseEntry++; + if (buildCounterPosCustomBatchResponseEntry < 3) { + unittest.expect(o.batchId, unittest.equals(42)); + checkErrors(o.errors); + checkPosInventory(o.inventory); + unittest.expect(o.kind, unittest.equals('foo')); + checkPosSale(o.sale); + checkPosStore(o.store); + } + buildCounterPosCustomBatchResponseEntry--; +} + +buildUnnamed2753() { + var o = new core.List<api.PosDataProvidersPosDataProvider>(); + o.add(buildPosDataProvidersPosDataProvider()); + o.add(buildPosDataProvidersPosDataProvider()); + return o; +} + +checkUnnamed2753(core.List<api.PosDataProvidersPosDataProvider> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPosDataProvidersPosDataProvider(o[0]); + checkPosDataProvidersPosDataProvider(o[1]); +} + +core.int buildCounterPosDataProviders = 0; +buildPosDataProviders() { + var o = new api.PosDataProviders(); + buildCounterPosDataProviders++; + if (buildCounterPosDataProviders < 3) { + o.country = "foo"; + o.posDataProviders = buildUnnamed2753(); + } + buildCounterPosDataProviders--; + return o; +} + +checkPosDataProviders(api.PosDataProviders o) { + buildCounterPosDataProviders++; + if (buildCounterPosDataProviders < 3) { + unittest.expect(o.country, unittest.equals('foo')); + checkUnnamed2753(o.posDataProviders); + } + buildCounterPosDataProviders--; +} + +core.int buildCounterPosDataProvidersPosDataProvider = 0; +buildPosDataProvidersPosDataProvider() { + var o = new api.PosDataProvidersPosDataProvider(); + buildCounterPosDataProvidersPosDataProvider++; + if (buildCounterPosDataProvidersPosDataProvider < 3) { + o.displayName = "foo"; + o.fullName = "foo"; + o.providerId = "foo"; + } + buildCounterPosDataProvidersPosDataProvider--; + return o; +} + +checkPosDataProvidersPosDataProvider(api.PosDataProvidersPosDataProvider o) { + buildCounterPosDataProvidersPosDataProvider++; + if (buildCounterPosDataProvidersPosDataProvider < 3) { + unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.fullName, unittest.equals('foo')); + unittest.expect(o.providerId, unittest.equals('foo')); + } + buildCounterPosDataProvidersPosDataProvider--; +} + +core.int buildCounterPosInventory = 0; +buildPosInventory() { + var o = new api.PosInventory(); + buildCounterPosInventory++; + if (buildCounterPosInventory < 3) { + o.contentLanguage = "foo"; + o.gtin = "foo"; + o.itemId = "foo"; + o.kind = "foo"; + o.price = buildPrice(); + o.quantity = "foo"; + o.storeCode = "foo"; + o.targetCountry = "foo"; + o.timestamp = "foo"; + } + buildCounterPosInventory--; + return o; +} + +checkPosInventory(api.PosInventory o) { + buildCounterPosInventory++; + if (buildCounterPosInventory < 3) { + unittest.expect(o.contentLanguage, unittest.equals('foo')); + unittest.expect(o.gtin, unittest.equals('foo')); + unittest.expect(o.itemId, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + checkPrice(o.price); + unittest.expect(o.quantity, unittest.equals('foo')); + unittest.expect(o.storeCode, unittest.equals('foo')); + unittest.expect(o.targetCountry, unittest.equals('foo')); + unittest.expect(o.timestamp, unittest.equals('foo')); + } + buildCounterPosInventory--; +} + +core.int buildCounterPosInventoryRequest = 0; +buildPosInventoryRequest() { + var o = new api.PosInventoryRequest(); + buildCounterPosInventoryRequest++; + if (buildCounterPosInventoryRequest < 3) { + o.contentLanguage = "foo"; + o.gtin = "foo"; + o.itemId = "foo"; + o.price = buildPrice(); + o.quantity = "foo"; + o.storeCode = "foo"; + o.targetCountry = "foo"; + o.timestamp = "foo"; + } + buildCounterPosInventoryRequest--; + return o; +} + +checkPosInventoryRequest(api.PosInventoryRequest o) { + buildCounterPosInventoryRequest++; + if (buildCounterPosInventoryRequest < 3) { + unittest.expect(o.contentLanguage, unittest.equals('foo')); + unittest.expect(o.gtin, unittest.equals('foo')); + unittest.expect(o.itemId, unittest.equals('foo')); + checkPrice(o.price); + unittest.expect(o.quantity, unittest.equals('foo')); + unittest.expect(o.storeCode, unittest.equals('foo')); + unittest.expect(o.targetCountry, unittest.equals('foo')); + unittest.expect(o.timestamp, unittest.equals('foo')); + } + buildCounterPosInventoryRequest--; +} + +core.int buildCounterPosInventoryResponse = 0; +buildPosInventoryResponse() { + var o = new api.PosInventoryResponse(); + buildCounterPosInventoryResponse++; + if (buildCounterPosInventoryResponse < 3) { + o.contentLanguage = "foo"; + o.gtin = "foo"; + o.itemId = "foo"; + o.kind = "foo"; + o.price = buildPrice(); + o.quantity = "foo"; + o.storeCode = "foo"; + o.targetCountry = "foo"; + o.timestamp = "foo"; + } + buildCounterPosInventoryResponse--; + return o; +} + +checkPosInventoryResponse(api.PosInventoryResponse o) { + buildCounterPosInventoryResponse++; + if (buildCounterPosInventoryResponse < 3) { + unittest.expect(o.contentLanguage, unittest.equals('foo')); + unittest.expect(o.gtin, unittest.equals('foo')); + unittest.expect(o.itemId, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + checkPrice(o.price); + unittest.expect(o.quantity, unittest.equals('foo')); + unittest.expect(o.storeCode, unittest.equals('foo')); + unittest.expect(o.targetCountry, unittest.equals('foo')); + unittest.expect(o.timestamp, unittest.equals('foo')); + } + buildCounterPosInventoryResponse--; +} + +buildUnnamed2754() { + var o = new core.List<api.PosStore>(); + o.add(buildPosStore()); + o.add(buildPosStore()); + return o; +} + +checkUnnamed2754(core.List<api.PosStore> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPosStore(o[0]); + checkPosStore(o[1]); +} + +core.int buildCounterPosListResponse = 0; +buildPosListResponse() { + var o = new api.PosListResponse(); + buildCounterPosListResponse++; + if (buildCounterPosListResponse < 3) { + o.kind = "foo"; + o.resources = buildUnnamed2754(); + } + buildCounterPosListResponse--; + return o; +} + +checkPosListResponse(api.PosListResponse o) { + buildCounterPosListResponse++; + if (buildCounterPosListResponse < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + checkUnnamed2754(o.resources); + } + buildCounterPosListResponse--; +} + +core.int buildCounterPosSale = 0; +buildPosSale() { + var o = new api.PosSale(); + buildCounterPosSale++; + if (buildCounterPosSale < 3) { + o.contentLanguage = "foo"; + o.gtin = "foo"; + o.itemId = "foo"; + o.kind = "foo"; + o.price = buildPrice(); + o.quantity = "foo"; + o.saleId = "foo"; + o.storeCode = "foo"; + o.targetCountry = "foo"; + o.timestamp = "foo"; + } + buildCounterPosSale--; + return o; +} + +checkPosSale(api.PosSale o) { + buildCounterPosSale++; + if (buildCounterPosSale < 3) { + unittest.expect(o.contentLanguage, unittest.equals('foo')); + unittest.expect(o.gtin, unittest.equals('foo')); + unittest.expect(o.itemId, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + checkPrice(o.price); + unittest.expect(o.quantity, unittest.equals('foo')); + unittest.expect(o.saleId, unittest.equals('foo')); + unittest.expect(o.storeCode, unittest.equals('foo')); + unittest.expect(o.targetCountry, unittest.equals('foo')); + unittest.expect(o.timestamp, unittest.equals('foo')); + } + buildCounterPosSale--; +} + +core.int buildCounterPosSaleRequest = 0; +buildPosSaleRequest() { + var o = new api.PosSaleRequest(); + buildCounterPosSaleRequest++; + if (buildCounterPosSaleRequest < 3) { + o.contentLanguage = "foo"; + o.gtin = "foo"; + o.itemId = "foo"; + o.price = buildPrice(); + o.quantity = "foo"; + o.saleId = "foo"; + o.storeCode = "foo"; + o.targetCountry = "foo"; + o.timestamp = "foo"; + } + buildCounterPosSaleRequest--; + return o; +} + +checkPosSaleRequest(api.PosSaleRequest o) { + buildCounterPosSaleRequest++; + if (buildCounterPosSaleRequest < 3) { + unittest.expect(o.contentLanguage, unittest.equals('foo')); + unittest.expect(o.gtin, unittest.equals('foo')); + unittest.expect(o.itemId, unittest.equals('foo')); + checkPrice(o.price); + unittest.expect(o.quantity, unittest.equals('foo')); + unittest.expect(o.saleId, unittest.equals('foo')); + unittest.expect(o.storeCode, unittest.equals('foo')); + unittest.expect(o.targetCountry, unittest.equals('foo')); + unittest.expect(o.timestamp, unittest.equals('foo')); + } + buildCounterPosSaleRequest--; +} + +core.int buildCounterPosSaleResponse = 0; +buildPosSaleResponse() { + var o = new api.PosSaleResponse(); + buildCounterPosSaleResponse++; + if (buildCounterPosSaleResponse < 3) { + o.contentLanguage = "foo"; + o.gtin = "foo"; + o.itemId = "foo"; + o.kind = "foo"; + o.price = buildPrice(); + o.quantity = "foo"; + o.saleId = "foo"; + o.storeCode = "foo"; + o.targetCountry = "foo"; + o.timestamp = "foo"; + } + buildCounterPosSaleResponse--; + return o; +} + +checkPosSaleResponse(api.PosSaleResponse o) { + buildCounterPosSaleResponse++; + if (buildCounterPosSaleResponse < 3) { + unittest.expect(o.contentLanguage, unittest.equals('foo')); + unittest.expect(o.gtin, unittest.equals('foo')); + unittest.expect(o.itemId, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + checkPrice(o.price); + unittest.expect(o.quantity, unittest.equals('foo')); + unittest.expect(o.saleId, unittest.equals('foo')); + unittest.expect(o.storeCode, unittest.equals('foo')); + unittest.expect(o.targetCountry, unittest.equals('foo')); + unittest.expect(o.timestamp, unittest.equals('foo')); + } + buildCounterPosSaleResponse--; +} + +core.int buildCounterPosStore = 0; +buildPosStore() { + var o = new api.PosStore(); + buildCounterPosStore++; + if (buildCounterPosStore < 3) { + o.kind = "foo"; + o.storeAddress = "foo"; + o.storeCode = "foo"; + } + buildCounterPosStore--; + return o; +} + +checkPosStore(api.PosStore o) { + buildCounterPosStore++; + if (buildCounterPosStore < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.storeAddress, unittest.equals('foo')); + unittest.expect(o.storeCode, unittest.equals('foo')); + } + buildCounterPosStore--; +} + +buildUnnamed2755() { var o = new core.List<api.PostalCodeRange>(); o.add(buildPostalCodeRange()); o.add(buildPostalCodeRange()); return o; } -checkUnnamed286(core.List<api.PostalCodeRange> o) { +checkUnnamed2755(core.List<api.PostalCodeRange> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCodeRange(o[0]); checkPostalCodeRange(o[1]); @@ -4307,7 +5757,7 @@ if (buildCounterPostalCodeGroup < 3) { o.country = "foo"; o.name = "foo"; - o.postalCodeRanges = buildUnnamed286(); + o.postalCodeRanges = buildUnnamed2755(); } buildCounterPostalCodeGroup--; return o; @@ -4318,7 +5768,7 @@ if (buildCounterPostalCodeGroup < 3) { unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed286(o.postalCodeRanges); + checkUnnamed2755(o.postalCodeRanges); } buildCounterPostalCodeGroup--; } @@ -4365,183 +5815,183 @@ buildCounterPrice--; } -buildUnnamed287() { +buildUnnamed2756() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed287(core.List<core.String> o) { +checkUnnamed2756(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed288() { +buildUnnamed2757() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed288(core.List<core.String> o) { +checkUnnamed2757(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed289() { +buildUnnamed2758() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed289(core.List<core.String> o) { +checkUnnamed2758(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed290() { +buildUnnamed2759() { var o = new core.List<api.ProductAspect>(); o.add(buildProductAspect()); o.add(buildProductAspect()); return o; } -checkUnnamed290(core.List<api.ProductAspect> o) { +checkUnnamed2759(core.List<api.ProductAspect> o) { unittest.expect(o, unittest.hasLength(2)); checkProductAspect(o[0]); checkProductAspect(o[1]); } -buildUnnamed291() { +buildUnnamed2760() { var o = new core.List<api.ProductCustomAttribute>(); o.add(buildProductCustomAttribute()); o.add(buildProductCustomAttribute()); return o; } -checkUnnamed291(core.List<api.ProductCustomAttribute> o) { +checkUnnamed2760(core.List<api.ProductCustomAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkProductCustomAttribute(o[0]); checkProductCustomAttribute(o[1]); } -buildUnnamed292() { +buildUnnamed2761() { var o = new core.List<api.ProductCustomGroup>(); o.add(buildProductCustomGroup()); o.add(buildProductCustomGroup()); return o; } -checkUnnamed292(core.List<api.ProductCustomGroup> o) { +checkUnnamed2761(core.List<api.ProductCustomGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkProductCustomGroup(o[0]); checkProductCustomGroup(o[1]); } -buildUnnamed293() { +buildUnnamed2762() { var o = new core.List<api.ProductDestination>(); o.add(buildProductDestination()); o.add(buildProductDestination()); return o; } -checkUnnamed293(core.List<api.ProductDestination> o) { +checkUnnamed2762(core.List<api.ProductDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkProductDestination(o[0]); checkProductDestination(o[1]); } -buildUnnamed294() { +buildUnnamed2763() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed294(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')); } -buildUnnamed295() { +buildUnnamed2764() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed295(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')); } -buildUnnamed296() { +buildUnnamed2765() { var o = new core.List<api.ProductShipping>(); o.add(buildProductShipping()); o.add(buildProductShipping()); return o; } -checkUnnamed296(core.List<api.ProductShipping> o) { +checkUnnamed2765(core.List<api.ProductShipping> o) { unittest.expect(o, unittest.hasLength(2)); checkProductShipping(o[0]); checkProductShipping(o[1]); } -buildUnnamed297() { +buildUnnamed2766() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed297(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')); } -buildUnnamed298() { +buildUnnamed2767() { var o = new core.List<api.ProductTax>(); o.add(buildProductTax()); o.add(buildProductTax()); return o; } -checkUnnamed298(core.List<api.ProductTax> o) { +checkUnnamed2767(core.List<api.ProductTax> o) { unittest.expect(o, unittest.hasLength(2)); checkProductTax(o[0]); checkProductTax(o[1]); } -buildUnnamed299() { +buildUnnamed2768() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed299(core.List<core.String> o) { +checkUnnamed2768(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed300() { +buildUnnamed2769() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed300(core.List<api.Error> o) { +checkUnnamed2769(core.List<api.Error> o) { unittest.expect(o, unittest.hasLength(2)); checkError(o[0]); checkError(o[1]); @@ -4552,14 +6002,14 @@ var o = new api.Product(); buildCounterProduct++; if (buildCounterProduct < 3) { - o.additionalImageLinks = buildUnnamed287(); - o.additionalProductTypes = buildUnnamed288(); + o.additionalImageLinks = buildUnnamed2756(); + o.additionalProductTypes = buildUnnamed2757(); o.adult = true; o.adwordsGrouping = "foo"; - o.adwordsLabels = buildUnnamed289(); + o.adwordsLabels = buildUnnamed2758(); o.adwordsRedirect = "foo"; o.ageGroup = "foo"; - o.aspects = buildUnnamed290(); + o.aspects = buildUnnamed2759(); o.availability = "foo"; o.availabilityDate = "foo"; o.brand = "foo"; @@ -4567,18 +6017,18 @@ o.color = "foo"; o.condition = "foo"; o.contentLanguage = "foo"; - o.customAttributes = buildUnnamed291(); - o.customGroups = buildUnnamed292(); + o.customAttributes = buildUnnamed2760(); + o.customGroups = buildUnnamed2761(); o.customLabel0 = "foo"; o.customLabel1 = "foo"; o.customLabel2 = "foo"; o.customLabel3 = "foo"; o.customLabel4 = "foo"; o.description = "foo"; - o.destinations = buildUnnamed293(); + o.destinations = buildUnnamed2762(); o.displayAdsId = "foo"; o.displayAdsLink = "foo"; - o.displayAdsSimilarIds = buildUnnamed294(); + o.displayAdsSimilarIds = buildUnnamed2763(); o.displayAdsTitle = "foo"; o.displayAdsValue = 42.0; o.energyEfficiencyClass = "foo"; @@ -4606,11 +6056,11 @@ o.pattern = "foo"; o.price = buildPrice(); o.productType = "foo"; - o.promotionIds = buildUnnamed295(); + o.promotionIds = buildUnnamed2764(); o.salePrice = buildPrice(); o.salePriceEffectiveDate = "foo"; o.sellOnGoogleQuantity = "foo"; - o.shipping = buildUnnamed296(); + o.shipping = buildUnnamed2765(); o.shippingHeight = buildProductShippingDimension(); o.shippingLabel = "foo"; o.shippingLength = buildProductShippingDimension(); @@ -4618,14 +6068,14 @@ o.shippingWidth = buildProductShippingDimension(); o.sizeSystem = "foo"; o.sizeType = "foo"; - o.sizes = buildUnnamed297(); + o.sizes = buildUnnamed2766(); o.targetCountry = "foo"; - o.taxes = buildUnnamed298(); + o.taxes = buildUnnamed2767(); o.title = "foo"; o.unitPricingBaseMeasure = buildProductUnitPricingBaseMeasure(); o.unitPricingMeasure = buildProductUnitPricingMeasure(); - o.validatedDestinations = buildUnnamed299(); - o.warnings = buildUnnamed300(); + o.validatedDestinations = buildUnnamed2768(); + o.warnings = buildUnnamed2769(); } buildCounterProduct--; return o; @@ -4634,14 +6084,14 @@ checkProduct(api.Product o) { buildCounterProduct++; if (buildCounterProduct < 3) { - checkUnnamed287(o.additionalImageLinks); - checkUnnamed288(o.additionalProductTypes); + checkUnnamed2756(o.additionalImageLinks); + checkUnnamed2757(o.additionalProductTypes); unittest.expect(o.adult, unittest.isTrue); unittest.expect(o.adwordsGrouping, unittest.equals('foo')); - checkUnnamed289(o.adwordsLabels); + checkUnnamed2758(o.adwordsLabels); unittest.expect(o.adwordsRedirect, unittest.equals('foo')); unittest.expect(o.ageGroup, unittest.equals('foo')); - checkUnnamed290(o.aspects); + checkUnnamed2759(o.aspects); unittest.expect(o.availability, unittest.equals('foo')); unittest.expect(o.availabilityDate, unittest.equals('foo')); unittest.expect(o.brand, unittest.equals('foo')); @@ -4649,18 +6099,18 @@ unittest.expect(o.color, unittest.equals('foo')); unittest.expect(o.condition, unittest.equals('foo')); unittest.expect(o.contentLanguage, unittest.equals('foo')); - checkUnnamed291(o.customAttributes); - checkUnnamed292(o.customGroups); + checkUnnamed2760(o.customAttributes); + checkUnnamed2761(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')); - checkUnnamed293(o.destinations); + checkUnnamed2762(o.destinations); unittest.expect(o.displayAdsId, unittest.equals('foo')); unittest.expect(o.displayAdsLink, unittest.equals('foo')); - checkUnnamed294(o.displayAdsSimilarIds); + checkUnnamed2763(o.displayAdsSimilarIds); unittest.expect(o.displayAdsTitle, unittest.equals('foo')); unittest.expect(o.displayAdsValue, unittest.equals(42.0)); unittest.expect(o.energyEfficiencyClass, unittest.equals('foo')); @@ -4688,11 +6138,11 @@ unittest.expect(o.pattern, unittest.equals('foo')); checkPrice(o.price); unittest.expect(o.productType, unittest.equals('foo')); - checkUnnamed295(o.promotionIds); + checkUnnamed2764(o.promotionIds); checkPrice(o.salePrice); unittest.expect(o.salePriceEffectiveDate, unittest.equals('foo')); unittest.expect(o.sellOnGoogleQuantity, unittest.equals('foo')); - checkUnnamed296(o.shipping); + checkUnnamed2765(o.shipping); checkProductShippingDimension(o.shippingHeight); unittest.expect(o.shippingLabel, unittest.equals('foo')); checkProductShippingDimension(o.shippingLength); @@ -4700,14 +6150,14 @@ checkProductShippingDimension(o.shippingWidth); unittest.expect(o.sizeSystem, unittest.equals('foo')); unittest.expect(o.sizeType, unittest.equals('foo')); - checkUnnamed297(o.sizes); + checkUnnamed2766(o.sizes); unittest.expect(o.targetCountry, unittest.equals('foo')); - checkUnnamed298(o.taxes); + checkUnnamed2767(o.taxes); unittest.expect(o.title, unittest.equals('foo')); checkProductUnitPricingBaseMeasure(o.unitPricingBaseMeasure); checkProductUnitPricingMeasure(o.unitPricingMeasure); - checkUnnamed299(o.validatedDestinations); - checkUnnamed300(o.warnings); + checkUnnamed2768(o.validatedDestinations); + checkUnnamed2769(o.warnings); } buildCounterProduct--; } @@ -4760,14 +6210,14 @@ buildCounterProductCustomAttribute--; } -buildUnnamed301() { +buildUnnamed2770() { var o = new core.List<api.ProductCustomAttribute>(); o.add(buildProductCustomAttribute()); o.add(buildProductCustomAttribute()); return o; } -checkUnnamed301(core.List<api.ProductCustomAttribute> o) { +checkUnnamed2770(core.List<api.ProductCustomAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkProductCustomAttribute(o[0]); checkProductCustomAttribute(o[1]); @@ -4778,7 +6228,7 @@ var o = new api.ProductCustomGroup(); buildCounterProductCustomGroup++; if (buildCounterProductCustomGroup < 3) { - o.attributes = buildUnnamed301(); + o.attributes = buildUnnamed2770(); o.name = "foo"; } buildCounterProductCustomGroup--; @@ -4788,7 +6238,7 @@ checkProductCustomGroup(api.ProductCustomGroup o) { buildCounterProductCustomGroup++; if (buildCounterProductCustomGroup < 3) { - checkUnnamed301(o.attributes); + checkUnnamed2770(o.attributes); unittest.expect(o.name, unittest.equals('foo')); } buildCounterProductCustomGroup--; @@ -4888,40 +6338,40 @@ buildCounterProductShippingWeight--; } -buildUnnamed302() { +buildUnnamed2771() { var o = new core.List<api.ProductStatusDataQualityIssue>(); o.add(buildProductStatusDataQualityIssue()); o.add(buildProductStatusDataQualityIssue()); return o; } -checkUnnamed302(core.List<api.ProductStatusDataQualityIssue> o) { +checkUnnamed2771(core.List<api.ProductStatusDataQualityIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkProductStatusDataQualityIssue(o[0]); checkProductStatusDataQualityIssue(o[1]); } -buildUnnamed303() { +buildUnnamed2772() { var o = new core.List<api.ProductStatusDestinationStatus>(); o.add(buildProductStatusDestinationStatus()); o.add(buildProductStatusDestinationStatus()); return o; } -checkUnnamed303(core.List<api.ProductStatusDestinationStatus> o) { +checkUnnamed2772(core.List<api.ProductStatusDestinationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkProductStatusDestinationStatus(o[0]); checkProductStatusDestinationStatus(o[1]); } -buildUnnamed304() { +buildUnnamed2773() { var o = new core.List<api.ProductStatusItemLevelIssue>(); o.add(buildProductStatusItemLevelIssue()); o.add(buildProductStatusItemLevelIssue()); return o; } -checkUnnamed304(core.List<api.ProductStatusItemLevelIssue> o) { +checkUnnamed2773(core.List<api.ProductStatusItemLevelIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkProductStatusItemLevelIssue(o[0]); checkProductStatusItemLevelIssue(o[1]); @@ -4933,10 +6383,10 @@ buildCounterProductStatus++; if (buildCounterProductStatus < 3) { o.creationDate = "foo"; - o.dataQualityIssues = buildUnnamed302(); - o.destinationStatuses = buildUnnamed303(); + o.dataQualityIssues = buildUnnamed2771(); + o.destinationStatuses = buildUnnamed2772(); o.googleExpirationDate = "foo"; - o.itemLevelIssues = buildUnnamed304(); + o.itemLevelIssues = buildUnnamed2773(); o.kind = "foo"; o.lastUpdateDate = "foo"; o.link = "foo"; @@ -4952,10 +6402,10 @@ buildCounterProductStatus++; if (buildCounterProductStatus < 3) { unittest.expect(o.creationDate, unittest.equals('foo')); - checkUnnamed302(o.dataQualityIssues); - checkUnnamed303(o.destinationStatuses); + checkUnnamed2771(o.dataQualityIssues); + checkUnnamed2772(o.destinationStatuses); unittest.expect(o.googleExpirationDate, unittest.equals('foo')); - checkUnnamed304(o.itemLevelIssues); + checkUnnamed2773(o.itemLevelIssues); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastUpdateDate, unittest.equals('foo')); unittest.expect(o.link, unittest.equals('foo')); @@ -4971,6 +6421,7 @@ var o = new api.ProductStatusDataQualityIssue(); buildCounterProductStatusDataQualityIssue++; if (buildCounterProductStatusDataQualityIssue < 3) { + o.destination = "foo"; o.detail = "foo"; o.fetchStatus = "foo"; o.id = "foo"; @@ -4987,6 +6438,7 @@ checkProductStatusDataQualityIssue(api.ProductStatusDataQualityIssue o) { buildCounterProductStatusDataQualityIssue++; if (buildCounterProductStatusDataQualityIssue < 3) { + unittest.expect(o.destination, unittest.equals('foo')); unittest.expect(o.detail, unittest.equals('foo')); unittest.expect(o.fetchStatus, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -5031,7 +6483,10 @@ if (buildCounterProductStatusItemLevelIssue < 3) { o.attributeName = "foo"; o.code = "foo"; + o.description = "foo"; o.destination = "foo"; + o.detail = "foo"; + o.documentation = "foo"; o.resolution = "foo"; o.servability = "foo"; } @@ -5044,7 +6499,10 @@ if (buildCounterProductStatusItemLevelIssue < 3) { unittest.expect(o.attributeName, unittest.equals('foo')); unittest.expect(o.code, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.destination, unittest.equals('foo')); + unittest.expect(o.detail, unittest.equals('foo')); + unittest.expect(o.documentation, unittest.equals('foo')); unittest.expect(o.resolution, unittest.equals('foo')); unittest.expect(o.servability, unittest.equals('foo')); } @@ -5122,14 +6580,14 @@ buildCounterProductUnitPricingMeasure--; } -buildUnnamed305() { +buildUnnamed2774() { var o = new core.List<api.ProductsCustomBatchRequestEntry>(); o.add(buildProductsCustomBatchRequestEntry()); o.add(buildProductsCustomBatchRequestEntry()); return o; } -checkUnnamed305(core.List<api.ProductsCustomBatchRequestEntry> o) { +checkUnnamed2774(core.List<api.ProductsCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkProductsCustomBatchRequestEntry(o[0]); checkProductsCustomBatchRequestEntry(o[1]); @@ -5140,7 +6598,7 @@ var o = new api.ProductsCustomBatchRequest(); buildCounterProductsCustomBatchRequest++; if (buildCounterProductsCustomBatchRequest < 3) { - o.entries = buildUnnamed305(); + o.entries = buildUnnamed2774(); } buildCounterProductsCustomBatchRequest--; return o; @@ -5149,7 +6607,7 @@ checkProductsCustomBatchRequest(api.ProductsCustomBatchRequest o) { buildCounterProductsCustomBatchRequest++; if (buildCounterProductsCustomBatchRequest < 3) { - checkUnnamed305(o.entries); + checkUnnamed2774(o.entries); } buildCounterProductsCustomBatchRequest--; } @@ -5181,14 +6639,14 @@ buildCounterProductsCustomBatchRequestEntry--; } -buildUnnamed306() { +buildUnnamed2775() { var o = new core.List<api.ProductsCustomBatchResponseEntry>(); o.add(buildProductsCustomBatchResponseEntry()); o.add(buildProductsCustomBatchResponseEntry()); return o; } -checkUnnamed306(core.List<api.ProductsCustomBatchResponseEntry> o) { +checkUnnamed2775(core.List<api.ProductsCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkProductsCustomBatchResponseEntry(o[0]); checkProductsCustomBatchResponseEntry(o[1]); @@ -5199,7 +6657,7 @@ var o = new api.ProductsCustomBatchResponse(); buildCounterProductsCustomBatchResponse++; if (buildCounterProductsCustomBatchResponse < 3) { - o.entries = buildUnnamed306(); + o.entries = buildUnnamed2775(); o.kind = "foo"; } buildCounterProductsCustomBatchResponse--; @@ -5209,7 +6667,7 @@ checkProductsCustomBatchResponse(api.ProductsCustomBatchResponse o) { buildCounterProductsCustomBatchResponse++; if (buildCounterProductsCustomBatchResponse < 3) { - checkUnnamed306(o.entries); + checkUnnamed2775(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterProductsCustomBatchResponse--; @@ -5240,14 +6698,14 @@ buildCounterProductsCustomBatchResponseEntry--; } -buildUnnamed307() { +buildUnnamed2776() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed307(core.List<api.Product> o) { +checkUnnamed2776(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -5260,7 +6718,7 @@ if (buildCounterProductsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed307(); + o.resources = buildUnnamed2776(); } buildCounterProductsListResponse--; return o; @@ -5271,19 +6729,19 @@ if (buildCounterProductsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed307(o.resources); + checkUnnamed2776(o.resources); } buildCounterProductsListResponse--; } -buildUnnamed308() { +buildUnnamed2777() { var o = new core.List<api.ProductstatusesCustomBatchRequestEntry>(); o.add(buildProductstatusesCustomBatchRequestEntry()); o.add(buildProductstatusesCustomBatchRequestEntry()); return o; } -checkUnnamed308(core.List<api.ProductstatusesCustomBatchRequestEntry> o) { +checkUnnamed2777(core.List<api.ProductstatusesCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkProductstatusesCustomBatchRequestEntry(o[0]); checkProductstatusesCustomBatchRequestEntry(o[1]); @@ -5294,7 +6752,7 @@ var o = new api.ProductstatusesCustomBatchRequest(); buildCounterProductstatusesCustomBatchRequest++; if (buildCounterProductstatusesCustomBatchRequest < 3) { - o.entries = buildUnnamed308(); + o.entries = buildUnnamed2777(); } buildCounterProductstatusesCustomBatchRequest--; return o; @@ -5304,17 +6762,31 @@ api.ProductstatusesCustomBatchRequest o) { buildCounterProductstatusesCustomBatchRequest++; if (buildCounterProductstatusesCustomBatchRequest < 3) { - checkUnnamed308(o.entries); + checkUnnamed2777(o.entries); } buildCounterProductstatusesCustomBatchRequest--; } +buildUnnamed2778() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2778(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterProductstatusesCustomBatchRequestEntry = 0; buildProductstatusesCustomBatchRequestEntry() { var o = new api.ProductstatusesCustomBatchRequestEntry(); buildCounterProductstatusesCustomBatchRequestEntry++; if (buildCounterProductstatusesCustomBatchRequestEntry < 3) { o.batchId = 42; + o.destinations = buildUnnamed2778(); o.includeAttributes = true; o.merchantId = "foo"; o.method = "foo"; @@ -5329,6 +6801,7 @@ buildCounterProductstatusesCustomBatchRequestEntry++; if (buildCounterProductstatusesCustomBatchRequestEntry < 3) { unittest.expect(o.batchId, unittest.equals(42)); + checkUnnamed2778(o.destinations); unittest.expect(o.includeAttributes, unittest.isTrue); unittest.expect(o.merchantId, unittest.equals('foo')); unittest.expect(o.method, unittest.equals('foo')); @@ -5337,14 +6810,14 @@ buildCounterProductstatusesCustomBatchRequestEntry--; } -buildUnnamed309() { +buildUnnamed2779() { var o = new core.List<api.ProductstatusesCustomBatchResponseEntry>(); o.add(buildProductstatusesCustomBatchResponseEntry()); o.add(buildProductstatusesCustomBatchResponseEntry()); return o; } -checkUnnamed309(core.List<api.ProductstatusesCustomBatchResponseEntry> o) { +checkUnnamed2779(core.List<api.ProductstatusesCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkProductstatusesCustomBatchResponseEntry(o[0]); checkProductstatusesCustomBatchResponseEntry(o[1]); @@ -5355,7 +6828,7 @@ var o = new api.ProductstatusesCustomBatchResponse(); buildCounterProductstatusesCustomBatchResponse++; if (buildCounterProductstatusesCustomBatchResponse < 3) { - o.entries = buildUnnamed309(); + o.entries = buildUnnamed2779(); o.kind = "foo"; } buildCounterProductstatusesCustomBatchResponse--; @@ -5366,7 +6839,7 @@ api.ProductstatusesCustomBatchResponse o) { buildCounterProductstatusesCustomBatchResponse++; if (buildCounterProductstatusesCustomBatchResponse < 3) { - checkUnnamed309(o.entries); + checkUnnamed2779(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterProductstatusesCustomBatchResponse--; @@ -5398,14 +6871,14 @@ buildCounterProductstatusesCustomBatchResponseEntry--; } -buildUnnamed310() { +buildUnnamed2780() { var o = new core.List<api.ProductStatus>(); o.add(buildProductStatus()); o.add(buildProductStatus()); return o; } -checkUnnamed310(core.List<api.ProductStatus> o) { +checkUnnamed2780(core.List<api.ProductStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkProductStatus(o[0]); checkProductStatus(o[1]); @@ -5418,7 +6891,7 @@ if (buildCounterProductstatusesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed310(); + o.resources = buildUnnamed2780(); } buildCounterProductstatusesListResponse--; return o; @@ -5429,45 +6902,66 @@ if (buildCounterProductstatusesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed310(o.resources); + checkUnnamed2780(o.resources); } buildCounterProductstatusesListResponse--; } -buildUnnamed311() { +core.int buildCounterPromotion = 0; +buildPromotion() { + var o = new api.Promotion(); + buildCounterPromotion++; + if (buildCounterPromotion < 3) { + o.promotionAmount = buildAmount(); + o.promotionId = "foo"; + } + buildCounterPromotion--; + return o; +} + +checkPromotion(api.Promotion o) { + buildCounterPromotion++; + if (buildCounterPromotion < 3) { + checkAmount(o.promotionAmount); + unittest.expect(o.promotionId, unittest.equals('foo')); + } + buildCounterPromotion--; +} + +buildUnnamed2781() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed311(core.List<core.String> o) { +checkUnnamed2781(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed312() { +buildUnnamed2782() { var o = new core.List<api.CarrierRate>(); o.add(buildCarrierRate()); o.add(buildCarrierRate()); return o; } -checkUnnamed312(core.List<api.CarrierRate> o) { +checkUnnamed2782(core.List<api.CarrierRate> o) { unittest.expect(o, unittest.hasLength(2)); checkCarrierRate(o[0]); checkCarrierRate(o[1]); } -buildUnnamed313() { +buildUnnamed2783() { var o = new core.List<api.Table>(); o.add(buildTable()); o.add(buildTable()); return o; } -checkUnnamed313(core.List<api.Table> o) { +checkUnnamed2783(core.List<api.Table> o) { unittest.expect(o, unittest.hasLength(2)); checkTable(o[0]); checkTable(o[1]); @@ -5478,11 +6972,11 @@ var o = new api.RateGroup(); buildCounterRateGroup++; if (buildCounterRateGroup < 3) { - o.applicableShippingLabels = buildUnnamed311(); - o.carrierRates = buildUnnamed312(); + o.applicableShippingLabels = buildUnnamed2781(); + o.carrierRates = buildUnnamed2782(); o.mainTable = buildTable(); o.singleValue = buildValue(); - o.subtables = buildUnnamed313(); + o.subtables = buildUnnamed2783(); } buildCounterRateGroup--; return o; @@ -5491,23 +6985,23 @@ checkRateGroup(api.RateGroup o) { buildCounterRateGroup++; if (buildCounterRateGroup < 3) { - checkUnnamed311(o.applicableShippingLabels); - checkUnnamed312(o.carrierRates); + checkUnnamed2781(o.applicableShippingLabels); + checkUnnamed2782(o.carrierRates); checkTable(o.mainTable); checkValue(o.singleValue); - checkUnnamed313(o.subtables); + checkUnnamed2783(o.subtables); } buildCounterRateGroup--; } -buildUnnamed314() { +buildUnnamed2784() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed314(core.List<api.Value> o) { +checkUnnamed2784(core.List<api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o[0]); checkValue(o[1]); @@ -5518,7 +7012,7 @@ var o = new api.Row(); buildCounterRow++; if (buildCounterRow < 3) { - o.cells = buildUnnamed314(); + o.cells = buildUnnamed2784(); } buildCounterRow--; return o; @@ -5527,19 +7021,19 @@ checkRow(api.Row o) { buildCounterRow++; if (buildCounterRow < 3) { - checkUnnamed314(o.cells); + checkUnnamed2784(o.cells); } buildCounterRow--; } -buildUnnamed315() { +buildUnnamed2785() { var o = new core.List<api.RateGroup>(); o.add(buildRateGroup()); o.add(buildRateGroup()); return o; } -checkUnnamed315(core.List<api.RateGroup> o) { +checkUnnamed2785(core.List<api.RateGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkRateGroup(o[0]); checkRateGroup(o[1]); @@ -5554,9 +7048,10 @@ o.currency = "foo"; o.deliveryCountry = "foo"; o.deliveryTime = buildDeliveryTime(); + o.eligibility = "foo"; o.minimumOrderValue = buildPrice(); o.name = "foo"; - o.rateGroups = buildUnnamed315(); + o.rateGroups = buildUnnamed2785(); } buildCounterService--; return o; @@ -5569,34 +7064,109 @@ unittest.expect(o.currency, unittest.equals('foo')); unittest.expect(o.deliveryCountry, unittest.equals('foo')); checkDeliveryTime(o.deliveryTime); + unittest.expect(o.eligibility, unittest.equals('foo')); checkPrice(o.minimumOrderValue); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed315(o.rateGroups); + checkUnnamed2785(o.rateGroups); } buildCounterService--; } -buildUnnamed316() { +buildUnnamed2786() { + var o = new core.List<api.ShipmentInvoiceLineItemInvoice>(); + o.add(buildShipmentInvoiceLineItemInvoice()); + o.add(buildShipmentInvoiceLineItemInvoice()); + return o; +} + +checkUnnamed2786(core.List<api.ShipmentInvoiceLineItemInvoice> o) { + unittest.expect(o, unittest.hasLength(2)); + checkShipmentInvoiceLineItemInvoice(o[0]); + checkShipmentInvoiceLineItemInvoice(o[1]); +} + +core.int buildCounterShipmentInvoice = 0; +buildShipmentInvoice() { + var o = new api.ShipmentInvoice(); + buildCounterShipmentInvoice++; + if (buildCounterShipmentInvoice < 3) { + o.invoiceSummary = buildInvoiceSummary(); + o.lineItemInvoices = buildUnnamed2786(); + o.shipmentGroupId = "foo"; + } + buildCounterShipmentInvoice--; + return o; +} + +checkShipmentInvoice(api.ShipmentInvoice o) { + buildCounterShipmentInvoice++; + if (buildCounterShipmentInvoice < 3) { + checkInvoiceSummary(o.invoiceSummary); + checkUnnamed2786(o.lineItemInvoices); + unittest.expect(o.shipmentGroupId, unittest.equals('foo')); + } + buildCounterShipmentInvoice--; +} + +buildUnnamed2787() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2787(core.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 buildCounterShipmentInvoiceLineItemInvoice = 0; +buildShipmentInvoiceLineItemInvoice() { + var o = new api.ShipmentInvoiceLineItemInvoice(); + buildCounterShipmentInvoiceLineItemInvoice++; + if (buildCounterShipmentInvoiceLineItemInvoice < 3) { + o.lineItemId = "foo"; + o.productId = "foo"; + o.shipmentUnitIds = buildUnnamed2787(); + o.unitInvoice = buildUnitInvoice(); + } + buildCounterShipmentInvoiceLineItemInvoice--; + return o; +} + +checkShipmentInvoiceLineItemInvoice(api.ShipmentInvoiceLineItemInvoice o) { + buildCounterShipmentInvoiceLineItemInvoice++; + if (buildCounterShipmentInvoiceLineItemInvoice < 3) { + unittest.expect(o.lineItemId, unittest.equals('foo')); + unittest.expect(o.productId, unittest.equals('foo')); + checkUnnamed2787(o.shipmentUnitIds); + checkUnitInvoice(o.unitInvoice); + } + buildCounterShipmentInvoiceLineItemInvoice--; +} + +buildUnnamed2788() { var o = new core.List<api.PostalCodeGroup>(); o.add(buildPostalCodeGroup()); o.add(buildPostalCodeGroup()); return o; } -checkUnnamed316(core.List<api.PostalCodeGroup> o) { +checkUnnamed2788(core.List<api.PostalCodeGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCodeGroup(o[0]); checkPostalCodeGroup(o[1]); } -buildUnnamed317() { +buildUnnamed2789() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed317(core.List<api.Service> o) { +checkUnnamed2789(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -5608,8 +7178,8 @@ buildCounterShippingSettings++; if (buildCounterShippingSettings < 3) { o.accountId = "foo"; - o.postalCodeGroups = buildUnnamed316(); - o.services = buildUnnamed317(); + o.postalCodeGroups = buildUnnamed2788(); + o.services = buildUnnamed2789(); } buildCounterShippingSettings--; return o; @@ -5619,20 +7189,20 @@ buildCounterShippingSettings++; if (buildCounterShippingSettings < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed316(o.postalCodeGroups); - checkUnnamed317(o.services); + checkUnnamed2788(o.postalCodeGroups); + checkUnnamed2789(o.services); } buildCounterShippingSettings--; } -buildUnnamed318() { +buildUnnamed2790() { var o = new core.List<api.ShippingsettingsCustomBatchRequestEntry>(); o.add(buildShippingsettingsCustomBatchRequestEntry()); o.add(buildShippingsettingsCustomBatchRequestEntry()); return o; } -checkUnnamed318(core.List<api.ShippingsettingsCustomBatchRequestEntry> o) { +checkUnnamed2790(core.List<api.ShippingsettingsCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkShippingsettingsCustomBatchRequestEntry(o[0]); checkShippingsettingsCustomBatchRequestEntry(o[1]); @@ -5643,7 +7213,7 @@ var o = new api.ShippingsettingsCustomBatchRequest(); buildCounterShippingsettingsCustomBatchRequest++; if (buildCounterShippingsettingsCustomBatchRequest < 3) { - o.entries = buildUnnamed318(); + o.entries = buildUnnamed2790(); } buildCounterShippingsettingsCustomBatchRequest--; return o; @@ -5653,7 +7223,7 @@ api.ShippingsettingsCustomBatchRequest o) { buildCounterShippingsettingsCustomBatchRequest++; if (buildCounterShippingsettingsCustomBatchRequest < 3) { - checkUnnamed318(o.entries); + checkUnnamed2790(o.entries); } buildCounterShippingsettingsCustomBatchRequest--; } @@ -5686,14 +7256,14 @@ buildCounterShippingsettingsCustomBatchRequestEntry--; } -buildUnnamed319() { +buildUnnamed2791() { var o = new core.List<api.ShippingsettingsCustomBatchResponseEntry>(); o.add(buildShippingsettingsCustomBatchResponseEntry()); o.add(buildShippingsettingsCustomBatchResponseEntry()); return o; } -checkUnnamed319(core.List<api.ShippingsettingsCustomBatchResponseEntry> o) { +checkUnnamed2791(core.List<api.ShippingsettingsCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkShippingsettingsCustomBatchResponseEntry(o[0]); checkShippingsettingsCustomBatchResponseEntry(o[1]); @@ -5704,7 +7274,7 @@ var o = new api.ShippingsettingsCustomBatchResponse(); buildCounterShippingsettingsCustomBatchResponse++; if (buildCounterShippingsettingsCustomBatchResponse < 3) { - o.entries = buildUnnamed319(); + o.entries = buildUnnamed2791(); o.kind = "foo"; } buildCounterShippingsettingsCustomBatchResponse--; @@ -5715,7 +7285,7 @@ api.ShippingsettingsCustomBatchResponse o) { buildCounterShippingsettingsCustomBatchResponse++; if (buildCounterShippingsettingsCustomBatchResponse < 3) { - checkUnnamed319(o.entries); + checkUnnamed2791(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterShippingsettingsCustomBatchResponse--; @@ -5747,14 +7317,14 @@ buildCounterShippingsettingsCustomBatchResponseEntry--; } -buildUnnamed320() { +buildUnnamed2792() { var o = new core.List<api.CarriersCarrier>(); o.add(buildCarriersCarrier()); o.add(buildCarriersCarrier()); return o; } -checkUnnamed320(core.List<api.CarriersCarrier> o) { +checkUnnamed2792(core.List<api.CarriersCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkCarriersCarrier(o[0]); checkCarriersCarrier(o[1]); @@ -5765,7 +7335,7 @@ var o = new api.ShippingsettingsGetSupportedCarriersResponse(); buildCounterShippingsettingsGetSupportedCarriersResponse++; if (buildCounterShippingsettingsGetSupportedCarriersResponse < 3) { - o.carriers = buildUnnamed320(); + o.carriers = buildUnnamed2792(); o.kind = "foo"; } buildCounterShippingsettingsGetSupportedCarriersResponse--; @@ -5776,20 +7346,20 @@ api.ShippingsettingsGetSupportedCarriersResponse o) { buildCounterShippingsettingsGetSupportedCarriersResponse++; if (buildCounterShippingsettingsGetSupportedCarriersResponse < 3) { - checkUnnamed320(o.carriers); + checkUnnamed2792(o.carriers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterShippingsettingsGetSupportedCarriersResponse--; } -buildUnnamed321() { +buildUnnamed2793() { var o = new core.List<api.HolidaysHoliday>(); o.add(buildHolidaysHoliday()); o.add(buildHolidaysHoliday()); return o; } -checkUnnamed321(core.List<api.HolidaysHoliday> o) { +checkUnnamed2793(core.List<api.HolidaysHoliday> o) { unittest.expect(o, unittest.hasLength(2)); checkHolidaysHoliday(o[0]); checkHolidaysHoliday(o[1]); @@ -5800,7 +7370,7 @@ var o = new api.ShippingsettingsGetSupportedHolidaysResponse(); buildCounterShippingsettingsGetSupportedHolidaysResponse++; if (buildCounterShippingsettingsGetSupportedHolidaysResponse < 3) { - o.holidays = buildUnnamed321(); + o.holidays = buildUnnamed2793(); o.kind = "foo"; } buildCounterShippingsettingsGetSupportedHolidaysResponse--; @@ -5811,20 +7381,20 @@ api.ShippingsettingsGetSupportedHolidaysResponse o) { buildCounterShippingsettingsGetSupportedHolidaysResponse++; if (buildCounterShippingsettingsGetSupportedHolidaysResponse < 3) { - checkUnnamed321(o.holidays); + checkUnnamed2793(o.holidays); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterShippingsettingsGetSupportedHolidaysResponse--; } -buildUnnamed322() { +buildUnnamed2794() { var o = new core.List<api.ShippingSettings>(); o.add(buildShippingSettings()); o.add(buildShippingSettings()); return o; } -checkUnnamed322(core.List<api.ShippingSettings> o) { +checkUnnamed2794(core.List<api.ShippingSettings> o) { unittest.expect(o, unittest.hasLength(2)); checkShippingSettings(o[0]); checkShippingSettings(o[1]); @@ -5837,7 +7407,7 @@ if (buildCounterShippingsettingsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed322(); + o.resources = buildUnnamed2794(); } buildCounterShippingsettingsListResponse--; return o; @@ -5848,19 +7418,19 @@ if (buildCounterShippingsettingsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed322(o.resources); + checkUnnamed2794(o.resources); } buildCounterShippingsettingsListResponse--; } -buildUnnamed323() { +buildUnnamed2795() { var o = new core.List<api.Row>(); o.add(buildRow()); o.add(buildRow()); return o; } -checkUnnamed323(core.List<api.Row> o) { +checkUnnamed2795(core.List<api.Row> o) { unittest.expect(o, unittest.hasLength(2)); checkRow(o[0]); checkRow(o[1]); @@ -5874,7 +7444,7 @@ o.columnHeaders = buildHeaders(); o.name = "foo"; o.rowHeaders = buildHeaders(); - o.rows = buildUnnamed323(); + o.rows = buildUnnamed2795(); } buildCounterTable--; return o; @@ -5886,32 +7456,32 @@ checkHeaders(o.columnHeaders); unittest.expect(o.name, unittest.equals('foo')); checkHeaders(o.rowHeaders); - checkUnnamed323(o.rows); + checkUnnamed2795(o.rows); } buildCounterTable--; } -buildUnnamed324() { +buildUnnamed2796() { var o = new core.List<api.TestOrderLineItem>(); o.add(buildTestOrderLineItem()); o.add(buildTestOrderLineItem()); return o; } -checkUnnamed324(core.List<api.TestOrderLineItem> o) { +checkUnnamed2796(core.List<api.TestOrderLineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkTestOrderLineItem(o[0]); checkTestOrderLineItem(o[1]); } -buildUnnamed325() { +buildUnnamed2797() { var o = new core.List<api.OrderPromotion>(); o.add(buildOrderPromotion()); o.add(buildOrderPromotion()); return o; } -checkUnnamed325(core.List<api.OrderPromotion> o) { +checkUnnamed2797(core.List<api.OrderPromotion> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotion(o[0]); checkOrderPromotion(o[1]); @@ -5924,11 +7494,11 @@ if (buildCounterTestOrder < 3) { o.customer = buildTestOrderCustomer(); o.kind = "foo"; - o.lineItems = buildUnnamed324(); + o.lineItems = buildUnnamed2796(); o.notificationMode = "foo"; o.paymentMethod = buildTestOrderPaymentMethod(); o.predefinedDeliveryAddress = "foo"; - o.promotions = buildUnnamed325(); + o.promotions = buildUnnamed2797(); o.shippingCost = buildPrice(); o.shippingCostTax = buildPrice(); o.shippingOption = "foo"; @@ -5942,11 +7512,11 @@ if (buildCounterTestOrder < 3) { checkTestOrderCustomer(o.customer); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed324(o.lineItems); + checkUnnamed2796(o.lineItems); unittest.expect(o.notificationMode, unittest.equals('foo')); checkTestOrderPaymentMethod(o.paymentMethod); unittest.expect(o.predefinedDeliveryAddress, unittest.equals('foo')); - checkUnnamed325(o.promotions); + checkUnnamed2797(o.promotions); checkPrice(o.shippingCost); checkPrice(o.shippingCostTax); unittest.expect(o.shippingOption, unittest.equals('foo')); @@ -5962,6 +7532,7 @@ o.email = "foo"; o.explicitMarketingPreference = true; o.fullName = "foo"; + o.marketingRightsInfo = buildTestOrderCustomerMarketingRightsInfo(); } buildCounterTestOrderCustomer--; return o; @@ -5973,10 +7544,33 @@ unittest.expect(o.email, unittest.equals('foo')); unittest.expect(o.explicitMarketingPreference, unittest.isTrue); unittest.expect(o.fullName, unittest.equals('foo')); + checkTestOrderCustomerMarketingRightsInfo(o.marketingRightsInfo); } buildCounterTestOrderCustomer--; } +core.int buildCounterTestOrderCustomerMarketingRightsInfo = 0; +buildTestOrderCustomerMarketingRightsInfo() { + var o = new api.TestOrderCustomerMarketingRightsInfo(); + buildCounterTestOrderCustomerMarketingRightsInfo++; + if (buildCounterTestOrderCustomerMarketingRightsInfo < 3) { + o.explicitMarketingPreference = "foo"; + o.lastUpdatedTimestamp = "foo"; + } + buildCounterTestOrderCustomerMarketingRightsInfo--; + return o; +} + +checkTestOrderCustomerMarketingRightsInfo( + api.TestOrderCustomerMarketingRightsInfo o) { + buildCounterTestOrderCustomerMarketingRightsInfo++; + if (buildCounterTestOrderCustomerMarketingRightsInfo < 3) { + unittest.expect(o.explicitMarketingPreference, unittest.equals('foo')); + unittest.expect(o.lastUpdatedTimestamp, unittest.equals('foo')); + } + buildCounterTestOrderCustomerMarketingRightsInfo--; +} + core.int buildCounterTestOrderLineItem = 0; buildTestOrderLineItem() { var o = new api.TestOrderLineItem(); @@ -6004,14 +7598,14 @@ buildCounterTestOrderLineItem--; } -buildUnnamed326() { +buildUnnamed2798() { var o = new core.List<api.OrderLineItemProductVariantAttribute>(); o.add(buildOrderLineItemProductVariantAttribute()); o.add(buildOrderLineItemProductVariantAttribute()); return o; } -checkUnnamed326(core.List<api.OrderLineItemProductVariantAttribute> o) { +checkUnnamed2798(core.List<api.OrderLineItemProductVariantAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItemProductVariantAttribute(o[0]); checkOrderLineItemProductVariantAttribute(o[1]); @@ -6034,7 +7628,7 @@ o.price = buildPrice(); o.targetCountry = "foo"; o.title = "foo"; - o.variantAttributes = buildUnnamed326(); + o.variantAttributes = buildUnnamed2798(); } buildCounterTestOrderLineItemProduct--; return o; @@ -6055,7 +7649,7 @@ checkPrice(o.price); unittest.expect(o.targetCountry, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed326(o.variantAttributes); + checkUnnamed2798(o.variantAttributes); } buildCounterTestOrderLineItemProduct--; } @@ -6087,6 +7681,129 @@ buildCounterTestOrderPaymentMethod--; } +buildUnnamed2799() { + var o = new core.List<api.UnitInvoiceAdditionalCharge>(); + o.add(buildUnitInvoiceAdditionalCharge()); + o.add(buildUnitInvoiceAdditionalCharge()); + return o; +} + +checkUnnamed2799(core.List<api.UnitInvoiceAdditionalCharge> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnitInvoiceAdditionalCharge(o[0]); + checkUnitInvoiceAdditionalCharge(o[1]); +} + +buildUnnamed2800() { + var o = new core.List<api.Promotion>(); + o.add(buildPromotion()); + o.add(buildPromotion()); + return o; +} + +checkUnnamed2800(core.List<api.Promotion> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPromotion(o[0]); + checkPromotion(o[1]); +} + +buildUnnamed2801() { + var o = new core.List<api.UnitInvoiceTaxLine>(); + o.add(buildUnitInvoiceTaxLine()); + o.add(buildUnitInvoiceTaxLine()); + return o; +} + +checkUnnamed2801(core.List<api.UnitInvoiceTaxLine> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnitInvoiceTaxLine(o[0]); + checkUnitInvoiceTaxLine(o[1]); +} + +core.int buildCounterUnitInvoice = 0; +buildUnitInvoice() { + var o = new api.UnitInvoice(); + buildCounterUnitInvoice++; + if (buildCounterUnitInvoice < 3) { + o.additionalCharges = buildUnnamed2799(); + o.promotions = buildUnnamed2800(); + o.unitPricePretax = buildPrice(); + o.unitPriceTaxes = buildUnnamed2801(); + } + buildCounterUnitInvoice--; + return o; +} + +checkUnitInvoice(api.UnitInvoice o) { + buildCounterUnitInvoice++; + if (buildCounterUnitInvoice < 3) { + checkUnnamed2799(o.additionalCharges); + checkUnnamed2800(o.promotions); + checkPrice(o.unitPricePretax); + checkUnnamed2801(o.unitPriceTaxes); + } + buildCounterUnitInvoice--; +} + +buildUnnamed2802() { + var o = new core.List<api.Promotion>(); + o.add(buildPromotion()); + o.add(buildPromotion()); + return o; +} + +checkUnnamed2802(core.List<api.Promotion> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPromotion(o[0]); + checkPromotion(o[1]); +} + +core.int buildCounterUnitInvoiceAdditionalCharge = 0; +buildUnitInvoiceAdditionalCharge() { + var o = new api.UnitInvoiceAdditionalCharge(); + buildCounterUnitInvoiceAdditionalCharge++; + if (buildCounterUnitInvoiceAdditionalCharge < 3) { + o.additionalChargeAmount = buildAmount(); + o.additionalChargePromotions = buildUnnamed2802(); + o.type = "foo"; + } + buildCounterUnitInvoiceAdditionalCharge--; + return o; +} + +checkUnitInvoiceAdditionalCharge(api.UnitInvoiceAdditionalCharge o) { + buildCounterUnitInvoiceAdditionalCharge++; + if (buildCounterUnitInvoiceAdditionalCharge < 3) { + checkAmount(o.additionalChargeAmount); + checkUnnamed2802(o.additionalChargePromotions); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterUnitInvoiceAdditionalCharge--; +} + +core.int buildCounterUnitInvoiceTaxLine = 0; +buildUnitInvoiceTaxLine() { + var o = new api.UnitInvoiceTaxLine(); + buildCounterUnitInvoiceTaxLine++; + if (buildCounterUnitInvoiceTaxLine < 3) { + o.taxAmount = buildPrice(); + o.taxName = "foo"; + o.taxType = "foo"; + } + buildCounterUnitInvoiceTaxLine--; + return o; +} + +checkUnitInvoiceTaxLine(api.UnitInvoiceTaxLine o) { + buildCounterUnitInvoiceTaxLine++; + if (buildCounterUnitInvoiceTaxLine < 3) { + checkPrice(o.taxAmount); + unittest.expect(o.taxName, unittest.equals('foo')); + unittest.expect(o.taxType, unittest.equals('foo')); + } + buildCounterUnitInvoiceTaxLine--; +} + core.int buildCounterValue = 0; buildValue() { var o = new api.Value(); @@ -6135,14 +7852,66 @@ buildCounterWeight--; } -buildUnnamed327() { +buildUnnamed2803() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed327(core.List<core.String> o) { +checkUnnamed2803(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2804() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2804(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2805(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2806() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2806(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2807() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2807(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6383,6 +8152,14 @@ }); }); + unittest.group("obj-schema-Amount", () { + unittest.test("to-json--from-json", () { + var o = buildAmount(); + var od = new api.Amount.fromJson(o.toJson()); + checkAmount(od); + }); + }); + unittest.group("obj-schema-CarrierRate", () { unittest.test("to-json--from-json", () { var o = buildCarrierRate(); @@ -6487,6 +8264,14 @@ }); }); + unittest.group("obj-schema-DatafeedsFetchNowResponse", () { + unittest.test("to-json--from-json", () { + var o = buildDatafeedsFetchNowResponse(); + var od = new api.DatafeedsFetchNowResponse.fromJson(o.toJson()); + checkDatafeedsFetchNowResponse(od); + }); + }); + unittest.group("obj-schema-DatafeedsListResponse", () { unittest.test("to-json--from-json", () { var o = buildDatafeedsListResponse(); @@ -6561,6 +8346,22 @@ }); }); + unittest.group("obj-schema-GmbAccounts", () { + unittest.test("to-json--from-json", () { + var o = buildGmbAccounts(); + var od = new api.GmbAccounts.fromJson(o.toJson()); + checkGmbAccounts(od); + }); + }); + + unittest.group("obj-schema-GmbAccountsGmbAccount", () { + unittest.test("to-json--from-json", () { + var o = buildGmbAccountsGmbAccount(); + var od = new api.GmbAccountsGmbAccount.fromJson(o.toJson()); + checkGmbAccountsGmbAccount(od); + }); + }); + unittest.group("obj-schema-Headers", () { unittest.test("to-json--from-json", () { var o = buildHeaders(); @@ -6657,6 +8458,141 @@ }); }); + unittest.group("obj-schema-InvoiceSummary", () { + unittest.test("to-json--from-json", () { + var o = buildInvoiceSummary(); + var od = new api.InvoiceSummary.fromJson(o.toJson()); + checkInvoiceSummary(od); + }); + }); + + unittest.group("obj-schema-InvoiceSummaryAdditionalChargeSummary", () { + unittest.test("to-json--from-json", () { + var o = buildInvoiceSummaryAdditionalChargeSummary(); + var od = + new api.InvoiceSummaryAdditionalChargeSummary.fromJson(o.toJson()); + checkInvoiceSummaryAdditionalChargeSummary(od); + }); + }); + + unittest.group("obj-schema-LiaAboutPageSettings", () { + unittest.test("to-json--from-json", () { + var o = buildLiaAboutPageSettings(); + var od = new api.LiaAboutPageSettings.fromJson(o.toJson()); + checkLiaAboutPageSettings(od); + }); + }); + + unittest.group("obj-schema-LiaCountrySettings", () { + unittest.test("to-json--from-json", () { + var o = buildLiaCountrySettings(); + var od = new api.LiaCountrySettings.fromJson(o.toJson()); + checkLiaCountrySettings(od); + }); + }); + + unittest.group("obj-schema-LiaInventorySettings", () { + unittest.test("to-json--from-json", () { + var o = buildLiaInventorySettings(); + var od = new api.LiaInventorySettings.fromJson(o.toJson()); + checkLiaInventorySettings(od); + }); + }); + + unittest.group("obj-schema-LiaOnDisplayToOrderSettings", () { + unittest.test("to-json--from-json", () { + var o = buildLiaOnDisplayToOrderSettings(); + var od = new api.LiaOnDisplayToOrderSettings.fromJson(o.toJson()); + checkLiaOnDisplayToOrderSettings(od); + }); + }); + + unittest.group("obj-schema-LiaSettings", () { + unittest.test("to-json--from-json", () { + var o = buildLiaSettings(); + var od = new api.LiaSettings.fromJson(o.toJson()); + checkLiaSettings(od); + }); + }); + + unittest.group("obj-schema-LiasettingsCustomBatchRequest", () { + unittest.test("to-json--from-json", () { + var o = buildLiasettingsCustomBatchRequest(); + var od = new api.LiasettingsCustomBatchRequest.fromJson(o.toJson()); + checkLiasettingsCustomBatchRequest(od); + }); + }); + + unittest.group("obj-schema-LiasettingsCustomBatchRequestEntry", () { + unittest.test("to-json--from-json", () { + var o = buildLiasettingsCustomBatchRequestEntry(); + var od = new api.LiasettingsCustomBatchRequestEntry.fromJson(o.toJson()); + checkLiasettingsCustomBatchRequestEntry(od); + }); + }); + + unittest.group("obj-schema-LiasettingsCustomBatchResponse", () { + unittest.test("to-json--from-json", () { + var o = buildLiasettingsCustomBatchResponse(); + var od = new api.LiasettingsCustomBatchResponse.fromJson(o.toJson()); + checkLiasettingsCustomBatchResponse(od); + }); + }); + + unittest.group("obj-schema-LiasettingsCustomBatchResponseEntry", () { + unittest.test("to-json--from-json", () { + var o = buildLiasettingsCustomBatchResponseEntry(); + var od = new api.LiasettingsCustomBatchResponseEntry.fromJson(o.toJson()); + checkLiasettingsCustomBatchResponseEntry(od); + }); + }); + + unittest.group("obj-schema-LiasettingsGetAccessibleGmbAccountsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildLiasettingsGetAccessibleGmbAccountsResponse(); + var od = new api.LiasettingsGetAccessibleGmbAccountsResponse.fromJson( + o.toJson()); + checkLiasettingsGetAccessibleGmbAccountsResponse(od); + }); + }); + + unittest.group("obj-schema-LiasettingsListResponse", () { + unittest.test("to-json--from-json", () { + var o = buildLiasettingsListResponse(); + var od = new api.LiasettingsListResponse.fromJson(o.toJson()); + checkLiasettingsListResponse(od); + }); + }); + + unittest.group("obj-schema-LiasettingsRequestGmbAccessResponse", () { + unittest.test("to-json--from-json", () { + var o = buildLiasettingsRequestGmbAccessResponse(); + var od = new api.LiasettingsRequestGmbAccessResponse.fromJson(o.toJson()); + checkLiasettingsRequestGmbAccessResponse(od); + }); + }); + + unittest.group("obj-schema-LiasettingsRequestInventoryVerificationResponse", + () { + unittest.test("to-json--from-json", () { + var o = buildLiasettingsRequestInventoryVerificationResponse(); + var od = new api.LiasettingsRequestInventoryVerificationResponse.fromJson( + o.toJson()); + checkLiasettingsRequestInventoryVerificationResponse(od); + }); + }); + + unittest.group( + "obj-schema-LiasettingsSetInventoryVerificationContactResponse", () { + unittest.test("to-json--from-json", () { + var o = buildLiasettingsSetInventoryVerificationContactResponse(); + var od = + new api.LiasettingsSetInventoryVerificationContactResponse.fromJson( + o.toJson()); + checkLiasettingsSetInventoryVerificationContactResponse(od); + }); + }); + unittest.group("obj-schema-LocationIdSet", () { unittest.test("to-json--from-json", () { var o = buildLocationIdSet(); @@ -6705,6 +8641,14 @@ }); }); + unittest.group("obj-schema-OrderCustomerMarketingRightsInfo", () { + unittest.test("to-json--from-json", () { + var o = buildOrderCustomerMarketingRightsInfo(); + var od = new api.OrderCustomerMarketingRightsInfo.fromJson(o.toJson()); + checkOrderCustomerMarketingRightsInfo(od); + }); + }); + unittest.group("obj-schema-OrderDeliveryDetails", () { unittest.test("to-json--from-json", () { var o = buildOrderDeliveryDetails(); @@ -6826,6 +8770,138 @@ }); }); + unittest.group("obj-schema-OrderinvoicesCreateChargeInvoiceRequest", () { + unittest.test("to-json--from-json", () { + var o = buildOrderinvoicesCreateChargeInvoiceRequest(); + var od = + new api.OrderinvoicesCreateChargeInvoiceRequest.fromJson(o.toJson()); + checkOrderinvoicesCreateChargeInvoiceRequest(od); + }); + }); + + unittest.group("obj-schema-OrderinvoicesCreateChargeInvoiceResponse", () { + unittest.test("to-json--from-json", () { + var o = buildOrderinvoicesCreateChargeInvoiceResponse(); + var od = + new api.OrderinvoicesCreateChargeInvoiceResponse.fromJson(o.toJson()); + checkOrderinvoicesCreateChargeInvoiceResponse(od); + }); + }); + + unittest.group("obj-schema-OrderinvoicesCreateRefundInvoiceRequest", () { + unittest.test("to-json--from-json", () { + var o = buildOrderinvoicesCreateRefundInvoiceRequest(); + var od = + new api.OrderinvoicesCreateRefundInvoiceRequest.fromJson(o.toJson()); + checkOrderinvoicesCreateRefundInvoiceRequest(od); + }); + }); + + unittest.group("obj-schema-OrderinvoicesCreateRefundInvoiceResponse", () { + unittest.test("to-json--from-json", () { + var o = buildOrderinvoicesCreateRefundInvoiceResponse(); + var od = + new api.OrderinvoicesCreateRefundInvoiceResponse.fromJson(o.toJson()); + checkOrderinvoicesCreateRefundInvoiceResponse(od); + }); + }); + + unittest.group( + "obj-schema-OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption", + () { + unittest.test("to-json--from-json", () { + var o = + buildOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption(); + var od = new api + .OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption.fromJson( + o.toJson()); + checkOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption( + od); + }); + }); + + unittest.group( + "obj-schema-OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption", + () { + unittest.test("to-json--from-json", () { + var o = + buildOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption(); + var od = new api + .OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption.fromJson( + o.toJson()); + checkOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption( + od); + }); + }); + + unittest.group("obj-schema-OrderpaymentsNotifyAuthApprovedRequest", () { + unittest.test("to-json--from-json", () { + var o = buildOrderpaymentsNotifyAuthApprovedRequest(); + var od = + new api.OrderpaymentsNotifyAuthApprovedRequest.fromJson(o.toJson()); + checkOrderpaymentsNotifyAuthApprovedRequest(od); + }); + }); + + unittest.group("obj-schema-OrderpaymentsNotifyAuthApprovedResponse", () { + unittest.test("to-json--from-json", () { + var o = buildOrderpaymentsNotifyAuthApprovedResponse(); + var od = + new api.OrderpaymentsNotifyAuthApprovedResponse.fromJson(o.toJson()); + checkOrderpaymentsNotifyAuthApprovedResponse(od); + }); + }); + + unittest.group("obj-schema-OrderpaymentsNotifyAuthDeclinedRequest", () { + unittest.test("to-json--from-json", () { + var o = buildOrderpaymentsNotifyAuthDeclinedRequest(); + var od = + new api.OrderpaymentsNotifyAuthDeclinedRequest.fromJson(o.toJson()); + checkOrderpaymentsNotifyAuthDeclinedRequest(od); + }); + }); + + unittest.group("obj-schema-OrderpaymentsNotifyAuthDeclinedResponse", () { + unittest.test("to-json--from-json", () { + var o = buildOrderpaymentsNotifyAuthDeclinedResponse(); + var od = + new api.OrderpaymentsNotifyAuthDeclinedResponse.fromJson(o.toJson()); + checkOrderpaymentsNotifyAuthDeclinedResponse(od); + }); + }); + + unittest.group("obj-schema-OrderpaymentsNotifyChargeRequest", () { + unittest.test("to-json--from-json", () { + var o = buildOrderpaymentsNotifyChargeRequest(); + var od = new api.OrderpaymentsNotifyChargeRequest.fromJson(o.toJson()); + checkOrderpaymentsNotifyChargeRequest(od); + }); + }); + + unittest.group("obj-schema-OrderpaymentsNotifyChargeResponse", () { + unittest.test("to-json--from-json", () { + var o = buildOrderpaymentsNotifyChargeResponse(); + var od = new api.OrderpaymentsNotifyChargeResponse.fromJson(o.toJson()); + checkOrderpaymentsNotifyChargeResponse(od); + }); + }); + + unittest.group("obj-schema-OrderpaymentsNotifyRefundRequest", () { + unittest.test("to-json--from-json", () { + var o = buildOrderpaymentsNotifyRefundRequest(); + var od = new api.OrderpaymentsNotifyRefundRequest.fromJson(o.toJson()); + checkOrderpaymentsNotifyRefundRequest(od); + }); + }); + + unittest.group("obj-schema-OrderpaymentsNotifyRefundResponse", () { + unittest.test("to-json--from-json", () { + var o = buildOrderpaymentsNotifyRefundResponse(); + var od = new api.OrderpaymentsNotifyRefundResponse.fromJson(o.toJson()); + checkOrderpaymentsNotifyRefundResponse(od); + }); + }); + unittest.group("obj-schema-OrdersAcknowledgeRequest", () { unittest.test("to-json--from-json", () { var o = buildOrdersAcknowledgeRequest(); @@ -7235,6 +9311,118 @@ }); }); + unittest.group("obj-schema-PosCustomBatchRequest", () { + unittest.test("to-json--from-json", () { + var o = buildPosCustomBatchRequest(); + var od = new api.PosCustomBatchRequest.fromJson(o.toJson()); + checkPosCustomBatchRequest(od); + }); + }); + + unittest.group("obj-schema-PosCustomBatchRequestEntry", () { + unittest.test("to-json--from-json", () { + var o = buildPosCustomBatchRequestEntry(); + var od = new api.PosCustomBatchRequestEntry.fromJson(o.toJson()); + checkPosCustomBatchRequestEntry(od); + }); + }); + + unittest.group("obj-schema-PosCustomBatchResponse", () { + unittest.test("to-json--from-json", () { + var o = buildPosCustomBatchResponse(); + var od = new api.PosCustomBatchResponse.fromJson(o.toJson()); + checkPosCustomBatchResponse(od); + }); + }); + + unittest.group("obj-schema-PosCustomBatchResponseEntry", () { + unittest.test("to-json--from-json", () { + var o = buildPosCustomBatchResponseEntry(); + var od = new api.PosCustomBatchResponseEntry.fromJson(o.toJson()); + checkPosCustomBatchResponseEntry(od); + }); + }); + + unittest.group("obj-schema-PosDataProviders", () { + unittest.test("to-json--from-json", () { + var o = buildPosDataProviders(); + var od = new api.PosDataProviders.fromJson(o.toJson()); + checkPosDataProviders(od); + }); + }); + + unittest.group("obj-schema-PosDataProvidersPosDataProvider", () { + unittest.test("to-json--from-json", () { + var o = buildPosDataProvidersPosDataProvider(); + var od = new api.PosDataProvidersPosDataProvider.fromJson(o.toJson()); + checkPosDataProvidersPosDataProvider(od); + }); + }); + + unittest.group("obj-schema-PosInventory", () { + unittest.test("to-json--from-json", () { + var o = buildPosInventory(); + var od = new api.PosInventory.fromJson(o.toJson()); + checkPosInventory(od); + }); + }); + + unittest.group("obj-schema-PosInventoryRequest", () { + unittest.test("to-json--from-json", () { + var o = buildPosInventoryRequest(); + var od = new api.PosInventoryRequest.fromJson(o.toJson()); + checkPosInventoryRequest(od); + }); + }); + + unittest.group("obj-schema-PosInventoryResponse", () { + unittest.test("to-json--from-json", () { + var o = buildPosInventoryResponse(); + var od = new api.PosInventoryResponse.fromJson(o.toJson()); + checkPosInventoryResponse(od); + }); + }); + + unittest.group("obj-schema-PosListResponse", () { + unittest.test("to-json--from-json", () { + var o = buildPosListResponse(); + var od = new api.PosListResponse.fromJson(o.toJson()); + checkPosListResponse(od); + }); + }); + + unittest.group("obj-schema-PosSale", () { + unittest.test("to-json--from-json", () { + var o = buildPosSale(); + var od = new api.PosSale.fromJson(o.toJson()); + checkPosSale(od); + }); + }); + + unittest.group("obj-schema-PosSaleRequest", () { + unittest.test("to-json--from-json", () { + var o = buildPosSaleRequest(); + var od = new api.PosSaleRequest.fromJson(o.toJson()); + checkPosSaleRequest(od); + }); + }); + + unittest.group("obj-schema-PosSaleResponse", () { + unittest.test("to-json--from-json", () { + var o = buildPosSaleResponse(); + var od = new api.PosSaleResponse.fromJson(o.toJson()); + checkPosSaleResponse(od); + }); + }); + + unittest.group("obj-schema-PosStore", () { + unittest.test("to-json--from-json", () { + var o = buildPosStore(); + var od = new api.PosStore.fromJson(o.toJson()); + checkPosStore(od); + }); + }); + unittest.group("obj-schema-PostalCodeGroup", () { unittest.test("to-json--from-json", () { var o = buildPostalCodeGroup(); @@ -7461,6 +9649,14 @@ }); }); + unittest.group("obj-schema-Promotion", () { + unittest.test("to-json--from-json", () { + var o = buildPromotion(); + var od = new api.Promotion.fromJson(o.toJson()); + checkPromotion(od); + }); + }); + unittest.group("obj-schema-RateGroup", () { unittest.test("to-json--from-json", () { var o = buildRateGroup(); @@ -7485,6 +9681,22 @@ }); }); + unittest.group("obj-schema-ShipmentInvoice", () { + unittest.test("to-json--from-json", () { + var o = buildShipmentInvoice(); + var od = new api.ShipmentInvoice.fromJson(o.toJson()); + checkShipmentInvoice(od); + }); + }); + + unittest.group("obj-schema-ShipmentInvoiceLineItemInvoice", () { + unittest.test("to-json--from-json", () { + var o = buildShipmentInvoiceLineItemInvoice(); + var od = new api.ShipmentInvoiceLineItemInvoice.fromJson(o.toJson()); + checkShipmentInvoiceLineItemInvoice(od); + }); + }); + unittest.group("obj-schema-ShippingSettings", () { unittest.test("to-json--from-json", () { var o = buildShippingSettings(); @@ -7577,6 +9789,15 @@ }); }); + unittest.group("obj-schema-TestOrderCustomerMarketingRightsInfo", () { + unittest.test("to-json--from-json", () { + var o = buildTestOrderCustomerMarketingRightsInfo(); + var od = + new api.TestOrderCustomerMarketingRightsInfo.fromJson(o.toJson()); + checkTestOrderCustomerMarketingRightsInfo(od); + }); + }); + unittest.group("obj-schema-TestOrderLineItem", () { unittest.test("to-json--from-json", () { var o = buildTestOrderLineItem(); @@ -7601,6 +9822,30 @@ }); }); + unittest.group("obj-schema-UnitInvoice", () { + unittest.test("to-json--from-json", () { + var o = buildUnitInvoice(); + var od = new api.UnitInvoice.fromJson(o.toJson()); + checkUnitInvoice(od); + }); + }); + + unittest.group("obj-schema-UnitInvoiceAdditionalCharge", () { + unittest.test("to-json--from-json", () { + var o = buildUnitInvoiceAdditionalCharge(); + var od = new api.UnitInvoiceAdditionalCharge.fromJson(o.toJson()); + checkUnitInvoiceAdditionalCharge(od); + }); + }); + + unittest.group("obj-schema-UnitInvoiceTaxLine", () { + unittest.test("to-json--from-json", () { + var o = buildUnitInvoiceTaxLine(); + var od = new api.UnitInvoiceTaxLine.fromJson(o.toJson()); + checkUnitInvoiceTaxLine(od); + }); + }); + unittest.group("obj-schema-Value", () { unittest.test("to-json--from-json", () { var o = buildValue(); @@ -8170,6 +10415,7 @@ new api.ContentApi(mock).accountstatuses; var arg_merchantId = "foo"; var arg_accountId = "foo"; + var arg_destinations = buildUnnamed2803(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -8198,6 +10444,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["destinations"], unittest.equals(arg_destinations)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8207,7 +10455,8 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .get(arg_merchantId, arg_accountId, $fields: arg_$fields) + .get(arg_merchantId, arg_accountId, + destinations: arg_destinations, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAccountStatus(response); }))); @@ -8218,6 +10467,7 @@ api.AccountstatusesResourceApi res = new api.ContentApi(mock).accountstatuses; var arg_merchantId = "foo"; + var arg_destinations = buildUnnamed2804(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_$fields = "foo"; @@ -8248,6 +10498,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["destinations"], unittest.equals(arg_destinations)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( @@ -8262,6 +10514,7 @@ }), true); res .list(arg_merchantId, + destinations: arg_destinations, maxResults: arg_maxResults, pageToken: arg_pageToken, $fields: arg_$fields) @@ -8658,6 +10911,58 @@ .then(unittest.expectAsync1((_) {})); }); + unittest.test("method--fetchnow", () { + var mock = new HttpServerMock(); + api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds; + var arg_merchantId = "foo"; + var arg_datafeedId = "foo"; + var arg_dryRun = true; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["dryRun"].first, unittest.equals("$arg_dryRun")); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildDatafeedsFetchNowResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .fetchnow(arg_merchantId, arg_datafeedId, + dryRun: arg_dryRun, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkDatafeedsFetchNowResponse(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds; @@ -9223,6 +11528,834 @@ }); }); + unittest.group("resource-LiasettingsResourceApi", () { + unittest.test("method--custombatch", () { + var mock = new HttpServerMock(); + api.LiasettingsResourceApi res = new api.ContentApi(mock).liasettings; + var arg_request = buildLiasettingsCustomBatchRequest(); + var arg_dryRun = true; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.LiasettingsCustomBatchRequest.fromJson(json); + checkLiasettingsCustomBatchRequest(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("content/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("liasettings/batch")); + pathOffset += 17; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["dryRun"].first, unittest.equals("$arg_dryRun")); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildLiasettingsCustomBatchResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .custombatch(arg_request, dryRun: arg_dryRun, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLiasettingsCustomBatchResponse(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.LiasettingsResourceApi res = new api.ContentApi(mock).liasettings; + var arg_merchantId = "foo"; + var arg_accountId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildLiaSettings()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_merchantId, arg_accountId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLiaSettings(response); + }))); + }); + + unittest.test("method--getaccessiblegmbaccounts", () { + var mock = new HttpServerMock(); + api.LiasettingsResourceApi res = new api.ContentApi(mock).liasettings; + var arg_merchantId = "foo"; + var arg_accountId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildLiasettingsGetAccessibleGmbAccountsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .getaccessiblegmbaccounts(arg_merchantId, arg_accountId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLiasettingsGetAccessibleGmbAccountsResponse(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.LiasettingsResourceApi res = new api.ContentApi(mock).liasettings; + var arg_merchantId = "foo"; + var arg_maxResults = 42; + var arg_pageToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildLiasettingsListResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_merchantId, + maxResults: arg_maxResults, + pageToken: arg_pageToken, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLiasettingsListResponse(response); + }))); + }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.LiasettingsResourceApi res = new api.ContentApi(mock).liasettings; + var arg_request = buildLiaSettings(); + var arg_merchantId = "foo"; + var arg_accountId = "foo"; + var arg_dryRun = true; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.LiaSettings.fromJson(json); + checkLiaSettings(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["dryRun"].first, unittest.equals("$arg_dryRun")); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildLiaSettings()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .patch(arg_request, arg_merchantId, arg_accountId, + dryRun: arg_dryRun, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLiaSettings(response); + }))); + }); + + unittest.test("method--requestgmbaccess", () { + var mock = new HttpServerMock(); + api.LiasettingsResourceApi res = new api.ContentApi(mock).liasettings; + var arg_merchantId = "foo"; + var arg_accountId = "foo"; + var arg_gmbEmail = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["gmbEmail"].first, unittest.equals(arg_gmbEmail)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildLiasettingsRequestGmbAccessResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .requestgmbaccess(arg_merchantId, arg_accountId, + gmbEmail: arg_gmbEmail, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLiasettingsRequestGmbAccessResponse(response); + }))); + }); + + unittest.test("method--requestinventoryverification", () { + var mock = new HttpServerMock(); + api.LiasettingsResourceApi res = new api.ContentApi(mock).liasettings; + var arg_merchantId = "foo"; + var arg_accountId = "foo"; + var arg_country = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildLiasettingsRequestInventoryVerificationResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .requestinventoryverification( + arg_merchantId, arg_accountId, arg_country, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLiasettingsRequestInventoryVerificationResponse(response); + }))); + }); + + unittest.test("method--setinventoryverificationcontact", () { + var mock = new HttpServerMock(); + api.LiasettingsResourceApi res = new api.ContentApi(mock).liasettings; + var arg_merchantId = "foo"; + var arg_accountId = "foo"; + var arg_contactEmail = "foo"; + var arg_contactName = "foo"; + var arg_country = "foo"; + var arg_language = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["contactEmail"].first, unittest.equals(arg_contactEmail)); + unittest.expect( + queryMap["contactName"].first, unittest.equals(arg_contactName)); + unittest.expect( + queryMap["country"].first, unittest.equals(arg_country)); + unittest.expect( + queryMap["language"].first, unittest.equals(arg_language)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildLiasettingsSetInventoryVerificationContactResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .setinventoryverificationcontact(arg_merchantId, arg_accountId, + contactEmail: arg_contactEmail, + contactName: arg_contactName, + country: arg_country, + language: arg_language, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLiasettingsSetInventoryVerificationContactResponse(response); + }))); + }); + + unittest.test("method--update", () { + var mock = new HttpServerMock(); + api.LiasettingsResourceApi res = new api.ContentApi(mock).liasettings; + var arg_request = buildLiaSettings(); + var arg_merchantId = "foo"; + var arg_accountId = "foo"; + var arg_dryRun = true; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.LiaSettings.fromJson(json); + checkLiaSettings(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["dryRun"].first, unittest.equals("$arg_dryRun")); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildLiaSettings()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .update(arg_request, arg_merchantId, arg_accountId, + dryRun: arg_dryRun, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLiaSettings(response); + }))); + }); + }); + + unittest.group("resource-OrderinvoicesResourceApi", () { + unittest.test("method--createchargeinvoice", () { + var mock = new HttpServerMock(); + api.OrderinvoicesResourceApi res = new api.ContentApi(mock).orderinvoices; + var arg_request = buildOrderinvoicesCreateChargeInvoiceRequest(); + var arg_merchantId = "foo"; + var arg_orderId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.OrderinvoicesCreateChargeInvoiceRequest.fromJson(json); + checkOrderinvoicesCreateChargeInvoiceRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildOrderinvoicesCreateChargeInvoiceResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .createchargeinvoice(arg_request, arg_merchantId, arg_orderId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOrderinvoicesCreateChargeInvoiceResponse(response); + }))); + }); + + unittest.test("method--createrefundinvoice", () { + var mock = new HttpServerMock(); + api.OrderinvoicesResourceApi res = new api.ContentApi(mock).orderinvoices; + var arg_request = buildOrderinvoicesCreateRefundInvoiceRequest(); + var arg_merchantId = "foo"; + var arg_orderId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.OrderinvoicesCreateRefundInvoiceRequest.fromJson(json); + checkOrderinvoicesCreateRefundInvoiceRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildOrderinvoicesCreateRefundInvoiceResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .createrefundinvoice(arg_request, arg_merchantId, arg_orderId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOrderinvoicesCreateRefundInvoiceResponse(response); + }))); + }); + }); + + unittest.group("resource-OrderpaymentsResourceApi", () { + unittest.test("method--notifyauthapproved", () { + var mock = new HttpServerMock(); + api.OrderpaymentsResourceApi res = new api.ContentApi(mock).orderpayments; + var arg_request = buildOrderpaymentsNotifyAuthApprovedRequest(); + var arg_merchantId = "foo"; + var arg_orderId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.OrderpaymentsNotifyAuthApprovedRequest.fromJson(json); + checkOrderpaymentsNotifyAuthApprovedRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildOrderpaymentsNotifyAuthApprovedResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .notifyauthapproved(arg_request, arg_merchantId, arg_orderId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOrderpaymentsNotifyAuthApprovedResponse(response); + }))); + }); + + unittest.test("method--notifyauthdeclined", () { + var mock = new HttpServerMock(); + api.OrderpaymentsResourceApi res = new api.ContentApi(mock).orderpayments; + var arg_request = buildOrderpaymentsNotifyAuthDeclinedRequest(); + var arg_merchantId = "foo"; + var arg_orderId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.OrderpaymentsNotifyAuthDeclinedRequest.fromJson(json); + checkOrderpaymentsNotifyAuthDeclinedRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildOrderpaymentsNotifyAuthDeclinedResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .notifyauthdeclined(arg_request, arg_merchantId, arg_orderId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOrderpaymentsNotifyAuthDeclinedResponse(response); + }))); + }); + + unittest.test("method--notifycharge", () { + var mock = new HttpServerMock(); + api.OrderpaymentsResourceApi res = new api.ContentApi(mock).orderpayments; + var arg_request = buildOrderpaymentsNotifyChargeRequest(); + var arg_merchantId = "foo"; + var arg_orderId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.OrderpaymentsNotifyChargeRequest.fromJson(json); + checkOrderpaymentsNotifyChargeRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildOrderpaymentsNotifyChargeResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .notifycharge(arg_request, arg_merchantId, arg_orderId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOrderpaymentsNotifyChargeResponse(response); + }))); + }); + + unittest.test("method--notifyrefund", () { + var mock = new HttpServerMock(); + api.OrderpaymentsResourceApi res = new api.ContentApi(mock).orderpayments; + var arg_request = buildOrderpaymentsNotifyRefundRequest(); + var arg_merchantId = "foo"; + var arg_orderId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.OrderpaymentsNotifyRefundRequest.fromJson(json); + checkOrderpaymentsNotifyRefundRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildOrderpaymentsNotifyRefundResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .notifyrefund(arg_request, arg_merchantId, arg_orderId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOrderpaymentsNotifyRefundResponse(response); + }))); + }); + }); + unittest.group("resource-OrdersResourceApi", () { unittest.test("method--acknowledge", () { var mock = new HttpServerMock(); @@ -9750,7 +12883,7 @@ var arg_pageToken = "foo"; var arg_placedDateEnd = "foo"; var arg_placedDateStart = "foo"; - var arg_statuses = buildUnnamed327(); + var arg_statuses = buildUnnamed2805(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -10300,6 +13433,384 @@ }); }); + unittest.group("resource-PosResourceApi", () { + unittest.test("method--custombatch", () { + var mock = new HttpServerMock(); + api.PosResourceApi res = new api.ContentApi(mock).pos; + var arg_request = buildPosCustomBatchRequest(); + var arg_dryRun = true; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.PosCustomBatchRequest.fromJson(json); + checkPosCustomBatchRequest(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("content/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("pos/batch")); + pathOffset += 9; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["dryRun"].first, unittest.equals("$arg_dryRun")); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildPosCustomBatchResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .custombatch(arg_request, dryRun: arg_dryRun, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkPosCustomBatchResponse(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.PosResourceApi res = new api.ContentApi(mock).pos; + var arg_merchantId = "foo"; + var arg_targetMerchantId = "foo"; + var arg_storeCode = "foo"; + var arg_dryRun = true; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["dryRun"].first, unittest.equals("$arg_dryRun")); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = ""; + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .delete(arg_merchantId, arg_targetMerchantId, arg_storeCode, + dryRun: arg_dryRun, $fields: arg_$fields) + .then(unittest.expectAsync1((_) {})); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.PosResourceApi res = new api.ContentApi(mock).pos; + var arg_merchantId = "foo"; + var arg_targetMerchantId = "foo"; + var arg_storeCode = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildPosStore()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_merchantId, arg_targetMerchantId, arg_storeCode, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkPosStore(response); + }))); + }); + + unittest.test("method--insert", () { + var mock = new HttpServerMock(); + api.PosResourceApi res = new api.ContentApi(mock).pos; + var arg_request = buildPosStore(); + var arg_merchantId = "foo"; + var arg_targetMerchantId = "foo"; + var arg_dryRun = true; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.PosStore.fromJson(json); + checkPosStore(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["dryRun"].first, unittest.equals("$arg_dryRun")); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildPosStore()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .insert(arg_request, arg_merchantId, arg_targetMerchantId, + dryRun: arg_dryRun, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkPosStore(response); + }))); + }); + + unittest.test("method--inventory", () { + var mock = new HttpServerMock(); + api.PosResourceApi res = new api.ContentApi(mock).pos; + var arg_request = buildPosInventoryRequest(); + var arg_merchantId = "foo"; + var arg_targetMerchantId = "foo"; + var arg_dryRun = true; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.PosInventoryRequest.fromJson(json); + checkPosInventoryRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["dryRun"].first, unittest.equals("$arg_dryRun")); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildPosInventoryResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .inventory(arg_request, arg_merchantId, arg_targetMerchantId, + dryRun: arg_dryRun, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkPosInventoryResponse(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.PosResourceApi res = new api.ContentApi(mock).pos; + var arg_merchantId = "foo"; + var arg_targetMerchantId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildPosListResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_merchantId, arg_targetMerchantId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkPosListResponse(response); + }))); + }); + + unittest.test("method--sale", () { + var mock = new HttpServerMock(); + api.PosResourceApi res = new api.ContentApi(mock).pos; + var arg_request = buildPosSaleRequest(); + var arg_merchantId = "foo"; + var arg_targetMerchantId = "foo"; + var arg_dryRun = true; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.PosSaleRequest.fromJson(json); + checkPosSaleRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["dryRun"].first, unittest.equals("$arg_dryRun")); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildPosSaleResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .sale(arg_request, arg_merchantId, arg_targetMerchantId, + dryRun: arg_dryRun, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkPosSaleResponse(response); + }))); + }); + }); + unittest.group("resource-ProductsResourceApi", () { unittest.test("method--custombatch", () { var mock = new HttpServerMock(); @@ -10643,6 +14154,7 @@ new api.ContentApi(mock).productstatuses; var arg_merchantId = "foo"; var arg_productId = "foo"; + var arg_destinations = buildUnnamed2806(); var arg_includeAttributes = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -10672,6 +14184,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["destinations"], unittest.equals(arg_destinations)); unittest.expect(queryMap["includeAttributes"].first, unittest.equals("$arg_includeAttributes")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -10684,7 +14198,9 @@ }), true); res .get(arg_merchantId, arg_productId, - includeAttributes: arg_includeAttributes, $fields: arg_$fields) + destinations: arg_destinations, + includeAttributes: arg_includeAttributes, + $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkProductStatus(response); }))); @@ -10695,6 +14211,7 @@ api.ProductstatusesResourceApi res = new api.ContentApi(mock).productstatuses; var arg_merchantId = "foo"; + var arg_destinations = buildUnnamed2807(); var arg_includeAttributes = true; var arg_includeInvalidInsertedItems = true; var arg_maxResults = 42; @@ -10727,6 +14244,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["destinations"], unittest.equals(arg_destinations)); unittest.expect(queryMap["includeAttributes"].first, unittest.equals("$arg_includeAttributes")); unittest.expect(queryMap["includeInvalidInsertedItems"].first, @@ -10745,6 +14264,7 @@ }), true); res .list(arg_merchantId, + destinations: arg_destinations, includeAttributes: arg_includeAttributes, includeInvalidInsertedItems: arg_includeInvalidInsertedItems, maxResults: arg_maxResults,
diff --git a/generated/googleapis/test/content/v2sandbox_test.dart b/generated/googleapis/test/content/v2sandbox_test.dart index 4d54cd4..5f0ebbf 100644 --- a/generated/googleapis/test/content/v2sandbox_test.dart +++ b/generated/googleapis/test/content/v2sandbox_test.dart
@@ -50,6 +50,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } +core.int buildCounterAmount = 0; +buildAmount() { + var o = new api.Amount(); + buildCounterAmount++; + if (buildCounterAmount < 3) { + o.pretax = buildPrice(); + o.tax = buildPrice(); + } + buildCounterAmount--; + return o; +} + +checkAmount(api.Amount o) { + buildCounterAmount++; + if (buildCounterAmount < 3) { + checkPrice(o.pretax); + checkPrice(o.tax); + } + buildCounterAmount--; +} + core.int buildCounterError = 0; buildError() { var o = new api.Error(); @@ -73,14 +94,14 @@ buildCounterError--; } -buildUnnamed878() { +buildUnnamed1504() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed878(core.List<api.Error> o) { +checkUnnamed1504(core.List<api.Error> o) { unittest.expect(o, unittest.hasLength(2)); checkError(o[0]); checkError(o[1]); @@ -92,7 +113,7 @@ buildCounterErrors++; if (buildCounterErrors < 3) { o.code = 42; - o.errors = buildUnnamed878(); + o.errors = buildUnnamed1504(); o.message = "foo"; } buildCounterErrors--; @@ -103,59 +124,136 @@ buildCounterErrors++; if (buildCounterErrors < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed878(o.errors); + checkUnnamed1504(o.errors); unittest.expect(o.message, unittest.equals('foo')); } buildCounterErrors--; } -buildUnnamed879() { +buildUnnamed1505() { + var o = new core.List<api.InvoiceSummaryAdditionalChargeSummary>(); + o.add(buildInvoiceSummaryAdditionalChargeSummary()); + o.add(buildInvoiceSummaryAdditionalChargeSummary()); + return o; +} + +checkUnnamed1505(core.List<api.InvoiceSummaryAdditionalChargeSummary> o) { + unittest.expect(o, unittest.hasLength(2)); + checkInvoiceSummaryAdditionalChargeSummary(o[0]); + checkInvoiceSummaryAdditionalChargeSummary(o[1]); +} + +buildUnnamed1506() { + var o = new core.List<api.Promotion>(); + o.add(buildPromotion()); + o.add(buildPromotion()); + return o; +} + +checkUnnamed1506(core.List<api.Promotion> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPromotion(o[0]); + checkPromotion(o[1]); +} + +core.int buildCounterInvoiceSummary = 0; +buildInvoiceSummary() { + var o = new api.InvoiceSummary(); + buildCounterInvoiceSummary++; + if (buildCounterInvoiceSummary < 3) { + o.additionalChargeSummaries = buildUnnamed1505(); + o.customerBalance = buildAmount(); + o.googleBalance = buildAmount(); + o.merchantBalance = buildAmount(); + o.productTotal = buildAmount(); + o.promotionSummaries = buildUnnamed1506(); + } + buildCounterInvoiceSummary--; + return o; +} + +checkInvoiceSummary(api.InvoiceSummary o) { + buildCounterInvoiceSummary++; + if (buildCounterInvoiceSummary < 3) { + checkUnnamed1505(o.additionalChargeSummaries); + checkAmount(o.customerBalance); + checkAmount(o.googleBalance); + checkAmount(o.merchantBalance); + checkAmount(o.productTotal); + checkUnnamed1506(o.promotionSummaries); + } + buildCounterInvoiceSummary--; +} + +core.int buildCounterInvoiceSummaryAdditionalChargeSummary = 0; +buildInvoiceSummaryAdditionalChargeSummary() { + var o = new api.InvoiceSummaryAdditionalChargeSummary(); + buildCounterInvoiceSummaryAdditionalChargeSummary++; + if (buildCounterInvoiceSummaryAdditionalChargeSummary < 3) { + o.totalAmount = buildAmount(); + o.type = "foo"; + } + buildCounterInvoiceSummaryAdditionalChargeSummary--; + return o; +} + +checkInvoiceSummaryAdditionalChargeSummary( + api.InvoiceSummaryAdditionalChargeSummary o) { + buildCounterInvoiceSummaryAdditionalChargeSummary++; + if (buildCounterInvoiceSummaryAdditionalChargeSummary < 3) { + checkAmount(o.totalAmount); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterInvoiceSummaryAdditionalChargeSummary--; +} + +buildUnnamed1507() { var o = new core.List<api.OrderLineItem>(); o.add(buildOrderLineItem()); o.add(buildOrderLineItem()); return o; } -checkUnnamed879(core.List<api.OrderLineItem> o) { +checkUnnamed1507(core.List<api.OrderLineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItem(o[0]); checkOrderLineItem(o[1]); } -buildUnnamed880() { +buildUnnamed1508() { var o = new core.List<api.OrderPromotion>(); o.add(buildOrderPromotion()); o.add(buildOrderPromotion()); return o; } -checkUnnamed880(core.List<api.OrderPromotion> o) { +checkUnnamed1508(core.List<api.OrderPromotion> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotion(o[0]); checkOrderPromotion(o[1]); } -buildUnnamed881() { +buildUnnamed1509() { var o = new core.List<api.OrderRefund>(); o.add(buildOrderRefund()); o.add(buildOrderRefund()); return o; } -checkUnnamed881(core.List<api.OrderRefund> o) { +checkUnnamed1509(core.List<api.OrderRefund> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderRefund(o[0]); checkOrderRefund(o[1]); } -buildUnnamed882() { +buildUnnamed1510() { var o = new core.List<api.OrderShipment>(); o.add(buildOrderShipment()); o.add(buildOrderShipment()); return o; } -checkUnnamed882(core.List<api.OrderShipment> o) { +checkUnnamed1510(core.List<api.OrderShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipment(o[0]); checkOrderShipment(o[1]); @@ -172,16 +270,16 @@ o.deliveryDetails = buildOrderDeliveryDetails(); o.id = "foo"; o.kind = "foo"; - o.lineItems = buildUnnamed879(); + o.lineItems = buildUnnamed1507(); o.merchantId = "foo"; o.merchantOrderId = "foo"; o.netAmount = buildPrice(); o.paymentMethod = buildOrderPaymentMethod(); o.paymentStatus = "foo"; o.placedDate = "foo"; - o.promotions = buildUnnamed880(); - o.refunds = buildUnnamed881(); - o.shipments = buildUnnamed882(); + o.promotions = buildUnnamed1508(); + o.refunds = buildUnnamed1509(); + o.shipments = buildUnnamed1510(); o.shippingCost = buildPrice(); o.shippingCostTax = buildPrice(); o.shippingOption = "foo"; @@ -200,16 +298,16 @@ checkOrderDeliveryDetails(o.deliveryDetails); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed879(o.lineItems); + checkUnnamed1507(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')); - checkUnnamed880(o.promotions); - checkUnnamed881(o.refunds); - checkUnnamed882(o.shipments); + checkUnnamed1508(o.promotions); + checkUnnamed1509(o.refunds); + checkUnnamed1510(o.shipments); checkPrice(o.shippingCost); checkPrice(o.shippingCostTax); unittest.expect(o.shippingOption, unittest.equals('foo')); @@ -218,27 +316,27 @@ buildCounterOrder--; } -buildUnnamed883() { +buildUnnamed1511() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed883(core.List<core.String> o) { +checkUnnamed1511(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed884() { +buildUnnamed1512() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed884(core.List<core.String> o) { +checkUnnamed1512(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -250,13 +348,13 @@ buildCounterOrderAddress++; if (buildCounterOrderAddress < 3) { o.country = "foo"; - o.fullAddress = buildUnnamed883(); + o.fullAddress = buildUnnamed1511(); o.isPostOfficeBox = true; o.locality = "foo"; o.postalCode = "foo"; o.recipientName = "foo"; o.region = "foo"; - o.streetAddress = buildUnnamed884(); + o.streetAddress = buildUnnamed1512(); } buildCounterOrderAddress--; return o; @@ -266,13 +364,13 @@ buildCounterOrderAddress++; if (buildCounterOrderAddress < 3) { unittest.expect(o.country, unittest.equals('foo')); - checkUnnamed883(o.fullAddress); + checkUnnamed1511(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')); - checkUnnamed884(o.streetAddress); + checkUnnamed1512(o.streetAddress); } buildCounterOrderAddress--; } @@ -312,6 +410,7 @@ o.email = "foo"; o.explicitMarketingPreference = true; o.fullName = "foo"; + o.marketingRightsInfo = buildOrderCustomerMarketingRightsInfo(); } buildCounterOrderCustomer--; return o; @@ -323,10 +422,34 @@ unittest.expect(o.email, unittest.equals('foo')); unittest.expect(o.explicitMarketingPreference, unittest.isTrue); unittest.expect(o.fullName, unittest.equals('foo')); + checkOrderCustomerMarketingRightsInfo(o.marketingRightsInfo); } buildCounterOrderCustomer--; } +core.int buildCounterOrderCustomerMarketingRightsInfo = 0; +buildOrderCustomerMarketingRightsInfo() { + var o = new api.OrderCustomerMarketingRightsInfo(); + buildCounterOrderCustomerMarketingRightsInfo++; + if (buildCounterOrderCustomerMarketingRightsInfo < 3) { + o.explicitMarketingPreference = "foo"; + o.lastUpdatedTimestamp = "foo"; + o.marketingEmailAddress = "foo"; + } + buildCounterOrderCustomerMarketingRightsInfo--; + return o; +} + +checkOrderCustomerMarketingRightsInfo(api.OrderCustomerMarketingRightsInfo o) { + buildCounterOrderCustomerMarketingRightsInfo++; + if (buildCounterOrderCustomerMarketingRightsInfo < 3) { + unittest.expect(o.explicitMarketingPreference, unittest.equals('foo')); + unittest.expect(o.lastUpdatedTimestamp, unittest.equals('foo')); + unittest.expect(o.marketingEmailAddress, unittest.equals('foo')); + } + buildCounterOrderCustomerMarketingRightsInfo--; +} + core.int buildCounterOrderDeliveryDetails = 0; buildOrderDeliveryDetails() { var o = new api.OrderDeliveryDetails(); @@ -348,40 +471,40 @@ buildCounterOrderDeliveryDetails--; } -buildUnnamed885() { +buildUnnamed1513() { var o = new core.List<api.OrderMerchantProvidedAnnotation>(); o.add(buildOrderMerchantProvidedAnnotation()); o.add(buildOrderMerchantProvidedAnnotation()); return o; } -checkUnnamed885(core.List<api.OrderMerchantProvidedAnnotation> o) { +checkUnnamed1513(core.List<api.OrderMerchantProvidedAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderMerchantProvidedAnnotation(o[0]); checkOrderMerchantProvidedAnnotation(o[1]); } -buildUnnamed886() { +buildUnnamed1514() { var o = new core.List<api.OrderCancellation>(); o.add(buildOrderCancellation()); o.add(buildOrderCancellation()); return o; } -checkUnnamed886(core.List<api.OrderCancellation> o) { +checkUnnamed1514(core.List<api.OrderCancellation> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderCancellation(o[0]); checkOrderCancellation(o[1]); } -buildUnnamed887() { +buildUnnamed1515() { var o = new core.List<api.OrderReturn>(); o.add(buildOrderReturn()); o.add(buildOrderReturn()); return o; } -checkUnnamed887(core.List<api.OrderReturn> o) { +checkUnnamed1515(core.List<api.OrderReturn> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderReturn(o[0]); checkOrderReturn(o[1]); @@ -392,8 +515,8 @@ var o = new api.OrderLineItem(); buildCounterOrderLineItem++; if (buildCounterOrderLineItem < 3) { - o.annotations = buildUnnamed885(); - o.cancellations = buildUnnamed886(); + o.annotations = buildUnnamed1513(); + o.cancellations = buildUnnamed1514(); o.id = "foo"; o.price = buildPrice(); o.product = buildOrderLineItemProduct(); @@ -404,7 +527,7 @@ o.quantityReturned = 42; o.quantityShipped = 42; o.returnInfo = buildOrderLineItemReturnInfo(); - o.returns = buildUnnamed887(); + o.returns = buildUnnamed1515(); o.shippingDetails = buildOrderLineItemShippingDetails(); o.tax = buildPrice(); } @@ -415,8 +538,8 @@ checkOrderLineItem(api.OrderLineItem o) { buildCounterOrderLineItem++; if (buildCounterOrderLineItem < 3) { - checkUnnamed885(o.annotations); - checkUnnamed886(o.cancellations); + checkUnnamed1513(o.annotations); + checkUnnamed1514(o.cancellations); unittest.expect(o.id, unittest.equals('foo')); checkPrice(o.price); checkOrderLineItemProduct(o.product); @@ -427,21 +550,21 @@ unittest.expect(o.quantityReturned, unittest.equals(42)); unittest.expect(o.quantityShipped, unittest.equals(42)); checkOrderLineItemReturnInfo(o.returnInfo); - checkUnnamed887(o.returns); + checkUnnamed1515(o.returns); checkOrderLineItemShippingDetails(o.shippingDetails); checkPrice(o.tax); } buildCounterOrderLineItem--; } -buildUnnamed888() { +buildUnnamed1516() { var o = new core.List<api.OrderLineItemProductVariantAttribute>(); o.add(buildOrderLineItemProductVariantAttribute()); o.add(buildOrderLineItemProductVariantAttribute()); return o; } -checkUnnamed888(core.List<api.OrderLineItemProductVariantAttribute> o) { +checkUnnamed1516(core.List<api.OrderLineItemProductVariantAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItemProductVariantAttribute(o[0]); checkOrderLineItemProductVariantAttribute(o[1]); @@ -466,7 +589,7 @@ o.shownImage = "foo"; o.targetCountry = "foo"; o.title = "foo"; - o.variantAttributes = buildUnnamed888(); + o.variantAttributes = buildUnnamed1516(); } buildCounterOrderLineItemProduct--; return o; @@ -489,7 +612,7 @@ unittest.expect(o.shownImage, unittest.equals('foo')); unittest.expect(o.targetCountry, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed888(o.variantAttributes); + checkUnnamed1516(o.variantAttributes); } buildCounterOrderLineItemProduct--; } @@ -638,14 +761,14 @@ buildCounterOrderPaymentMethod--; } -buildUnnamed889() { +buildUnnamed1517() { var o = new core.List<api.OrderPromotionBenefit>(); o.add(buildOrderPromotionBenefit()); o.add(buildOrderPromotionBenefit()); return o; } -checkUnnamed889(core.List<api.OrderPromotionBenefit> o) { +checkUnnamed1517(core.List<api.OrderPromotionBenefit> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotionBenefit(o[0]); checkOrderPromotionBenefit(o[1]); @@ -656,7 +779,7 @@ var o = new api.OrderPromotion(); buildCounterOrderPromotion++; if (buildCounterOrderPromotion < 3) { - o.benefits = buildUnnamed889(); + o.benefits = buildUnnamed1517(); o.effectiveDates = "foo"; o.genericRedemptionCode = "foo"; o.id = "foo"; @@ -671,7 +794,7 @@ checkOrderPromotion(api.OrderPromotion o) { buildCounterOrderPromotion++; if (buildCounterOrderPromotion < 3) { - checkUnnamed889(o.benefits); + checkUnnamed1517(o.benefits); unittest.expect(o.effectiveDates, unittest.equals('foo')); unittest.expect(o.genericRedemptionCode, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -682,14 +805,14 @@ buildCounterOrderPromotion--; } -buildUnnamed890() { +buildUnnamed1518() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed890(core.List<core.String> o) { +checkUnnamed1518(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -701,7 +824,7 @@ buildCounterOrderPromotionBenefit++; if (buildCounterOrderPromotionBenefit < 3) { o.discount = buildPrice(); - o.offerIds = buildUnnamed890(); + o.offerIds = buildUnnamed1518(); o.subType = "foo"; o.taxImpact = buildPrice(); o.type = "foo"; @@ -714,7 +837,7 @@ buildCounterOrderPromotionBenefit++; if (buildCounterOrderPromotionBenefit < 3) { checkPrice(o.discount); - checkUnnamed890(o.offerIds); + checkUnnamed1518(o.offerIds); unittest.expect(o.subType, unittest.equals('foo')); checkPrice(o.taxImpact); unittest.expect(o.type, unittest.equals('foo')); @@ -776,14 +899,14 @@ buildCounterOrderReturn--; } -buildUnnamed891() { +buildUnnamed1519() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed891(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed1519(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); @@ -798,7 +921,7 @@ o.creationDate = "foo"; o.deliveryDate = "foo"; o.id = "foo"; - o.lineItems = buildUnnamed891(); + o.lineItems = buildUnnamed1519(); o.status = "foo"; o.trackingId = "foo"; } @@ -813,7 +936,7 @@ unittest.expect(o.creationDate, unittest.equals('foo')); unittest.expect(o.deliveryDate, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed891(o.lineItems); + checkUnnamed1519(o.lineItems); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); } @@ -843,6 +966,362 @@ buildCounterOrderShipmentLineItemShipment--; } +buildUnnamed1520() { + var o = new core.List<api.ShipmentInvoiceLineItemInvoice>(); + o.add(buildShipmentInvoiceLineItemInvoice()); + o.add(buildShipmentInvoiceLineItemInvoice()); + return o; +} + +checkUnnamed1520(core.List<api.ShipmentInvoiceLineItemInvoice> o) { + unittest.expect(o, unittest.hasLength(2)); + checkShipmentInvoiceLineItemInvoice(o[0]); + checkShipmentInvoiceLineItemInvoice(o[1]); +} + +core.int buildCounterOrderinvoicesCreateChargeInvoiceRequest = 0; +buildOrderinvoicesCreateChargeInvoiceRequest() { + var o = new api.OrderinvoicesCreateChargeInvoiceRequest(); + buildCounterOrderinvoicesCreateChargeInvoiceRequest++; + if (buildCounterOrderinvoicesCreateChargeInvoiceRequest < 3) { + o.invoiceId = "foo"; + o.invoiceSummary = buildInvoiceSummary(); + o.lineItemInvoices = buildUnnamed1520(); + o.operationId = "foo"; + o.shipmentGroupId = "foo"; + } + buildCounterOrderinvoicesCreateChargeInvoiceRequest--; + return o; +} + +checkOrderinvoicesCreateChargeInvoiceRequest( + api.OrderinvoicesCreateChargeInvoiceRequest o) { + buildCounterOrderinvoicesCreateChargeInvoiceRequest++; + if (buildCounterOrderinvoicesCreateChargeInvoiceRequest < 3) { + unittest.expect(o.invoiceId, unittest.equals('foo')); + checkInvoiceSummary(o.invoiceSummary); + checkUnnamed1520(o.lineItemInvoices); + unittest.expect(o.operationId, unittest.equals('foo')); + unittest.expect(o.shipmentGroupId, unittest.equals('foo')); + } + buildCounterOrderinvoicesCreateChargeInvoiceRequest--; +} + +core.int buildCounterOrderinvoicesCreateChargeInvoiceResponse = 0; +buildOrderinvoicesCreateChargeInvoiceResponse() { + var o = new api.OrderinvoicesCreateChargeInvoiceResponse(); + buildCounterOrderinvoicesCreateChargeInvoiceResponse++; + if (buildCounterOrderinvoicesCreateChargeInvoiceResponse < 3) { + o.executionStatus = "foo"; + o.kind = "foo"; + } + buildCounterOrderinvoicesCreateChargeInvoiceResponse--; + return o; +} + +checkOrderinvoicesCreateChargeInvoiceResponse( + api.OrderinvoicesCreateChargeInvoiceResponse o) { + buildCounterOrderinvoicesCreateChargeInvoiceResponse++; + if (buildCounterOrderinvoicesCreateChargeInvoiceResponse < 3) { + unittest.expect(o.executionStatus, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterOrderinvoicesCreateChargeInvoiceResponse--; +} + +buildUnnamed1521() { + var o = new core.List<api.ShipmentInvoice>(); + o.add(buildShipmentInvoice()); + o.add(buildShipmentInvoice()); + return o; +} + +checkUnnamed1521(core.List<api.ShipmentInvoice> o) { + unittest.expect(o, unittest.hasLength(2)); + checkShipmentInvoice(o[0]); + checkShipmentInvoice(o[1]); +} + +core.int buildCounterOrderinvoicesCreateRefundInvoiceRequest = 0; +buildOrderinvoicesCreateRefundInvoiceRequest() { + var o = new api.OrderinvoicesCreateRefundInvoiceRequest(); + buildCounterOrderinvoicesCreateRefundInvoiceRequest++; + if (buildCounterOrderinvoicesCreateRefundInvoiceRequest < 3) { + o.invoiceId = "foo"; + o.operationId = "foo"; + o.refundOnlyOption = + buildOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption(); + o.returnOption = + buildOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption(); + o.shipmentInvoices = buildUnnamed1521(); + } + buildCounterOrderinvoicesCreateRefundInvoiceRequest--; + return o; +} + +checkOrderinvoicesCreateRefundInvoiceRequest( + api.OrderinvoicesCreateRefundInvoiceRequest o) { + buildCounterOrderinvoicesCreateRefundInvoiceRequest++; + if (buildCounterOrderinvoicesCreateRefundInvoiceRequest < 3) { + unittest.expect(o.invoiceId, unittest.equals('foo')); + unittest.expect(o.operationId, unittest.equals('foo')); + checkOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption( + o.refundOnlyOption); + checkOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption( + o.returnOption); + checkUnnamed1521(o.shipmentInvoices); + } + buildCounterOrderinvoicesCreateRefundInvoiceRequest--; +} + +core.int buildCounterOrderinvoicesCreateRefundInvoiceResponse = 0; +buildOrderinvoicesCreateRefundInvoiceResponse() { + var o = new api.OrderinvoicesCreateRefundInvoiceResponse(); + buildCounterOrderinvoicesCreateRefundInvoiceResponse++; + if (buildCounterOrderinvoicesCreateRefundInvoiceResponse < 3) { + o.executionStatus = "foo"; + o.kind = "foo"; + } + buildCounterOrderinvoicesCreateRefundInvoiceResponse--; + return o; +} + +checkOrderinvoicesCreateRefundInvoiceResponse( + api.OrderinvoicesCreateRefundInvoiceResponse o) { + buildCounterOrderinvoicesCreateRefundInvoiceResponse++; + if (buildCounterOrderinvoicesCreateRefundInvoiceResponse < 3) { + unittest.expect(o.executionStatus, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterOrderinvoicesCreateRefundInvoiceResponse--; +} + +core.int + buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption = + 0; +buildOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption() { + var o = new api + .OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption(); + buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption++; + if (buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption < + 3) { + o.description = "foo"; + o.reason = "foo"; + } + buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption--; + return o; +} + +checkOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption( + api.OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption o) { + buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption++; + if (buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption < + 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.reason, unittest.equals('foo')); + } + buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption--; +} + +core.int + buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption = + 0; +buildOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption() { + var o = new api + .OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption(); + buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption++; + if (buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption < + 3) { + o.description = "foo"; + o.reason = "foo"; + } + buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption--; + return o; +} + +checkOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption( + api.OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption o) { + buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption++; + if (buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption < + 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.reason, unittest.equals('foo')); + } + buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption--; +} + +core.int buildCounterOrderpaymentsNotifyAuthApprovedRequest = 0; +buildOrderpaymentsNotifyAuthApprovedRequest() { + var o = new api.OrderpaymentsNotifyAuthApprovedRequest(); + buildCounterOrderpaymentsNotifyAuthApprovedRequest++; + if (buildCounterOrderpaymentsNotifyAuthApprovedRequest < 3) { + o.authAmountPretax = buildPrice(); + o.authAmountTax = buildPrice(); + } + buildCounterOrderpaymentsNotifyAuthApprovedRequest--; + return o; +} + +checkOrderpaymentsNotifyAuthApprovedRequest( + api.OrderpaymentsNotifyAuthApprovedRequest o) { + buildCounterOrderpaymentsNotifyAuthApprovedRequest++; + if (buildCounterOrderpaymentsNotifyAuthApprovedRequest < 3) { + checkPrice(o.authAmountPretax); + checkPrice(o.authAmountTax); + } + buildCounterOrderpaymentsNotifyAuthApprovedRequest--; +} + +core.int buildCounterOrderpaymentsNotifyAuthApprovedResponse = 0; +buildOrderpaymentsNotifyAuthApprovedResponse() { + var o = new api.OrderpaymentsNotifyAuthApprovedResponse(); + buildCounterOrderpaymentsNotifyAuthApprovedResponse++; + if (buildCounterOrderpaymentsNotifyAuthApprovedResponse < 3) { + o.executionStatus = "foo"; + o.kind = "foo"; + } + buildCounterOrderpaymentsNotifyAuthApprovedResponse--; + return o; +} + +checkOrderpaymentsNotifyAuthApprovedResponse( + api.OrderpaymentsNotifyAuthApprovedResponse o) { + buildCounterOrderpaymentsNotifyAuthApprovedResponse++; + if (buildCounterOrderpaymentsNotifyAuthApprovedResponse < 3) { + unittest.expect(o.executionStatus, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterOrderpaymentsNotifyAuthApprovedResponse--; +} + +core.int buildCounterOrderpaymentsNotifyAuthDeclinedRequest = 0; +buildOrderpaymentsNotifyAuthDeclinedRequest() { + var o = new api.OrderpaymentsNotifyAuthDeclinedRequest(); + buildCounterOrderpaymentsNotifyAuthDeclinedRequest++; + if (buildCounterOrderpaymentsNotifyAuthDeclinedRequest < 3) { + o.declineReason = "foo"; + } + buildCounterOrderpaymentsNotifyAuthDeclinedRequest--; + return o; +} + +checkOrderpaymentsNotifyAuthDeclinedRequest( + api.OrderpaymentsNotifyAuthDeclinedRequest o) { + buildCounterOrderpaymentsNotifyAuthDeclinedRequest++; + if (buildCounterOrderpaymentsNotifyAuthDeclinedRequest < 3) { + unittest.expect(o.declineReason, unittest.equals('foo')); + } + buildCounterOrderpaymentsNotifyAuthDeclinedRequest--; +} + +core.int buildCounterOrderpaymentsNotifyAuthDeclinedResponse = 0; +buildOrderpaymentsNotifyAuthDeclinedResponse() { + var o = new api.OrderpaymentsNotifyAuthDeclinedResponse(); + buildCounterOrderpaymentsNotifyAuthDeclinedResponse++; + if (buildCounterOrderpaymentsNotifyAuthDeclinedResponse < 3) { + o.executionStatus = "foo"; + o.kind = "foo"; + } + buildCounterOrderpaymentsNotifyAuthDeclinedResponse--; + return o; +} + +checkOrderpaymentsNotifyAuthDeclinedResponse( + api.OrderpaymentsNotifyAuthDeclinedResponse o) { + buildCounterOrderpaymentsNotifyAuthDeclinedResponse++; + if (buildCounterOrderpaymentsNotifyAuthDeclinedResponse < 3) { + unittest.expect(o.executionStatus, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterOrderpaymentsNotifyAuthDeclinedResponse--; +} + +core.int buildCounterOrderpaymentsNotifyChargeRequest = 0; +buildOrderpaymentsNotifyChargeRequest() { + var o = new api.OrderpaymentsNotifyChargeRequest(); + buildCounterOrderpaymentsNotifyChargeRequest++; + if (buildCounterOrderpaymentsNotifyChargeRequest < 3) { + o.chargeState = "foo"; + o.invoiceId = "foo"; + } + buildCounterOrderpaymentsNotifyChargeRequest--; + return o; +} + +checkOrderpaymentsNotifyChargeRequest(api.OrderpaymentsNotifyChargeRequest o) { + buildCounterOrderpaymentsNotifyChargeRequest++; + if (buildCounterOrderpaymentsNotifyChargeRequest < 3) { + unittest.expect(o.chargeState, unittest.equals('foo')); + unittest.expect(o.invoiceId, unittest.equals('foo')); + } + buildCounterOrderpaymentsNotifyChargeRequest--; +} + +core.int buildCounterOrderpaymentsNotifyChargeResponse = 0; +buildOrderpaymentsNotifyChargeResponse() { + var o = new api.OrderpaymentsNotifyChargeResponse(); + buildCounterOrderpaymentsNotifyChargeResponse++; + if (buildCounterOrderpaymentsNotifyChargeResponse < 3) { + o.executionStatus = "foo"; + o.kind = "foo"; + } + buildCounterOrderpaymentsNotifyChargeResponse--; + return o; +} + +checkOrderpaymentsNotifyChargeResponse( + api.OrderpaymentsNotifyChargeResponse o) { + buildCounterOrderpaymentsNotifyChargeResponse++; + if (buildCounterOrderpaymentsNotifyChargeResponse < 3) { + unittest.expect(o.executionStatus, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterOrderpaymentsNotifyChargeResponse--; +} + +core.int buildCounterOrderpaymentsNotifyRefundRequest = 0; +buildOrderpaymentsNotifyRefundRequest() { + var o = new api.OrderpaymentsNotifyRefundRequest(); + buildCounterOrderpaymentsNotifyRefundRequest++; + if (buildCounterOrderpaymentsNotifyRefundRequest < 3) { + o.invoiceId = "foo"; + o.refundState = "foo"; + } + buildCounterOrderpaymentsNotifyRefundRequest--; + return o; +} + +checkOrderpaymentsNotifyRefundRequest(api.OrderpaymentsNotifyRefundRequest o) { + buildCounterOrderpaymentsNotifyRefundRequest++; + if (buildCounterOrderpaymentsNotifyRefundRequest < 3) { + unittest.expect(o.invoiceId, unittest.equals('foo')); + unittest.expect(o.refundState, unittest.equals('foo')); + } + buildCounterOrderpaymentsNotifyRefundRequest--; +} + +core.int buildCounterOrderpaymentsNotifyRefundResponse = 0; +buildOrderpaymentsNotifyRefundResponse() { + var o = new api.OrderpaymentsNotifyRefundResponse(); + buildCounterOrderpaymentsNotifyRefundResponse++; + if (buildCounterOrderpaymentsNotifyRefundResponse < 3) { + o.executionStatus = "foo"; + o.kind = "foo"; + } + buildCounterOrderpaymentsNotifyRefundResponse--; + return o; +} + +checkOrderpaymentsNotifyRefundResponse( + api.OrderpaymentsNotifyRefundResponse o) { + buildCounterOrderpaymentsNotifyRefundResponse++; + if (buildCounterOrderpaymentsNotifyRefundResponse < 3) { + unittest.expect(o.executionStatus, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterOrderpaymentsNotifyRefundResponse--; +} + core.int buildCounterOrdersAcknowledgeRequest = 0; buildOrdersAcknowledgeRequest() { var o = new api.OrdersAcknowledgeRequest(); @@ -1044,14 +1523,14 @@ buildCounterOrdersCreateTestOrderResponse--; } -buildUnnamed892() { +buildUnnamed1522() { var o = new core.List<api.OrdersCustomBatchRequestEntry>(); o.add(buildOrdersCustomBatchRequestEntry()); o.add(buildOrdersCustomBatchRequestEntry()); return o; } -checkUnnamed892(core.List<api.OrdersCustomBatchRequestEntry> o) { +checkUnnamed1522(core.List<api.OrdersCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchRequestEntry(o[0]); checkOrdersCustomBatchRequestEntry(o[1]); @@ -1062,7 +1541,7 @@ var o = new api.OrdersCustomBatchRequest(); buildCounterOrdersCustomBatchRequest++; if (buildCounterOrdersCustomBatchRequest < 3) { - o.entries = buildUnnamed892(); + o.entries = buildUnnamed1522(); } buildCounterOrdersCustomBatchRequest--; return o; @@ -1071,7 +1550,7 @@ checkOrdersCustomBatchRequest(api.OrdersCustomBatchRequest o) { buildCounterOrdersCustomBatchRequest++; if (buildCounterOrdersCustomBatchRequest < 3) { - checkUnnamed892(o.entries); + checkUnnamed1522(o.entries); } buildCounterOrdersCustomBatchRequest--; } @@ -1341,14 +1820,14 @@ buildCounterOrdersCustomBatchRequestEntryReturnRefundLineItem--; } -buildUnnamed893() { +buildUnnamed1523() { var o = new core.List<api.OrderMerchantProvidedAnnotation>(); o.add(buildOrderMerchantProvidedAnnotation()); o.add(buildOrderMerchantProvidedAnnotation()); return o; } -checkUnnamed893(core.List<api.OrderMerchantProvidedAnnotation> o) { +checkUnnamed1523(core.List<api.OrderMerchantProvidedAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderMerchantProvidedAnnotation(o[0]); checkOrderMerchantProvidedAnnotation(o[1]); @@ -1359,7 +1838,7 @@ var o = new api.OrdersCustomBatchRequestEntrySetLineItemMetadata(); buildCounterOrdersCustomBatchRequestEntrySetLineItemMetadata++; if (buildCounterOrdersCustomBatchRequestEntrySetLineItemMetadata < 3) { - o.annotations = buildUnnamed893(); + o.annotations = buildUnnamed1523(); o.lineItemId = "foo"; o.productId = "foo"; } @@ -1371,27 +1850,27 @@ api.OrdersCustomBatchRequestEntrySetLineItemMetadata o) { buildCounterOrdersCustomBatchRequestEntrySetLineItemMetadata++; if (buildCounterOrdersCustomBatchRequestEntrySetLineItemMetadata < 3) { - checkUnnamed893(o.annotations); + checkUnnamed1523(o.annotations); unittest.expect(o.lineItemId, unittest.equals('foo')); unittest.expect(o.productId, unittest.equals('foo')); } buildCounterOrdersCustomBatchRequestEntrySetLineItemMetadata--; } -buildUnnamed894() { +buildUnnamed1524() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed894(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed1524(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); } -buildUnnamed895() { +buildUnnamed1525() { var o = new core .List<api.OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo>(); o.add(buildOrdersCustomBatchRequestEntryShipLineItemsShipmentInfo()); @@ -1399,7 +1878,7 @@ return o; } -checkUnnamed895( +checkUnnamed1525( core.List<api.OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchRequestEntryShipLineItemsShipmentInfo(o[0]); @@ -1412,9 +1891,10 @@ buildCounterOrdersCustomBatchRequestEntryShipLineItems++; if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { o.carrier = "foo"; - o.lineItems = buildUnnamed894(); + o.lineItems = buildUnnamed1524(); + o.shipmentGroupId = "foo"; o.shipmentId = "foo"; - o.shipmentInfos = buildUnnamed895(); + o.shipmentInfos = buildUnnamed1525(); o.trackingId = "foo"; } buildCounterOrdersCustomBatchRequestEntryShipLineItems--; @@ -1426,9 +1906,10 @@ buildCounterOrdersCustomBatchRequestEntryShipLineItems++; if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { unittest.expect(o.carrier, unittest.equals('foo')); - checkUnnamed894(o.lineItems); + checkUnnamed1524(o.lineItems); + unittest.expect(o.shipmentGroupId, unittest.equals('foo')); unittest.expect(o.shipmentId, unittest.equals('foo')); - checkUnnamed895(o.shipmentInfos); + checkUnnamed1525(o.shipmentInfos); unittest.expect(o.trackingId, unittest.equals('foo')); } buildCounterOrdersCustomBatchRequestEntryShipLineItems--; @@ -1513,14 +1994,14 @@ buildCounterOrdersCustomBatchRequestEntryUpdateShipment--; } -buildUnnamed896() { +buildUnnamed1526() { var o = new core.List<api.OrdersCustomBatchResponseEntry>(); o.add(buildOrdersCustomBatchResponseEntry()); o.add(buildOrdersCustomBatchResponseEntry()); return o; } -checkUnnamed896(core.List<api.OrdersCustomBatchResponseEntry> o) { +checkUnnamed1526(core.List<api.OrdersCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchResponseEntry(o[0]); checkOrdersCustomBatchResponseEntry(o[1]); @@ -1531,7 +2012,7 @@ var o = new api.OrdersCustomBatchResponse(); buildCounterOrdersCustomBatchResponse++; if (buildCounterOrdersCustomBatchResponse < 3) { - o.entries = buildUnnamed896(); + o.entries = buildUnnamed1526(); o.kind = "foo"; } buildCounterOrdersCustomBatchResponse--; @@ -1541,7 +2022,7 @@ checkOrdersCustomBatchResponse(api.OrdersCustomBatchResponse o) { buildCounterOrdersCustomBatchResponse++; if (buildCounterOrdersCustomBatchResponse < 3) { - checkUnnamed896(o.entries); + checkUnnamed1526(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterOrdersCustomBatchResponse--; @@ -1674,14 +2155,14 @@ buildCounterOrdersInStoreRefundLineItemResponse--; } -buildUnnamed897() { +buildUnnamed1527() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed897(core.List<api.Order> o) { +checkUnnamed1527(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -1694,7 +2175,7 @@ if (buildCounterOrdersListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed897(); + o.resources = buildUnnamed1527(); } buildCounterOrdersListResponse--; return o; @@ -1705,7 +2186,7 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed897(o.resources); + checkUnnamed1527(o.resources); } buildCounterOrdersListResponse--; } @@ -1918,14 +2399,14 @@ buildCounterOrdersReturnRefundLineItemResponse--; } -buildUnnamed898() { +buildUnnamed1528() { var o = new core.List<api.OrderMerchantProvidedAnnotation>(); o.add(buildOrderMerchantProvidedAnnotation()); o.add(buildOrderMerchantProvidedAnnotation()); return o; } -checkUnnamed898(core.List<api.OrderMerchantProvidedAnnotation> o) { +checkUnnamed1528(core.List<api.OrderMerchantProvidedAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderMerchantProvidedAnnotation(o[0]); checkOrderMerchantProvidedAnnotation(o[1]); @@ -1936,7 +2417,7 @@ var o = new api.OrdersSetLineItemMetadataRequest(); buildCounterOrdersSetLineItemMetadataRequest++; if (buildCounterOrdersSetLineItemMetadataRequest < 3) { - o.annotations = buildUnnamed898(); + o.annotations = buildUnnamed1528(); o.lineItemId = "foo"; o.operationId = "foo"; o.productId = "foo"; @@ -1948,7 +2429,7 @@ checkOrdersSetLineItemMetadataRequest(api.OrdersSetLineItemMetadataRequest o) { buildCounterOrdersSetLineItemMetadataRequest++; if (buildCounterOrdersSetLineItemMetadataRequest < 3) { - checkUnnamed898(o.annotations); + checkUnnamed1528(o.annotations); unittest.expect(o.lineItemId, unittest.equals('foo')); unittest.expect(o.operationId, unittest.equals('foo')); unittest.expect(o.productId, unittest.equals('foo')); @@ -1978,20 +2459,20 @@ buildCounterOrdersSetLineItemMetadataResponse--; } -buildUnnamed899() { +buildUnnamed1529() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed899(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed1529(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); } -buildUnnamed900() { +buildUnnamed1530() { var o = new core .List<api.OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo>(); o.add(buildOrdersCustomBatchRequestEntryShipLineItemsShipmentInfo()); @@ -1999,7 +2480,7 @@ return o; } -checkUnnamed900( +checkUnnamed1530( core.List<api.OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchRequestEntryShipLineItemsShipmentInfo(o[0]); @@ -2012,10 +2493,11 @@ buildCounterOrdersShipLineItemsRequest++; if (buildCounterOrdersShipLineItemsRequest < 3) { o.carrier = "foo"; - o.lineItems = buildUnnamed899(); + o.lineItems = buildUnnamed1529(); o.operationId = "foo"; + o.shipmentGroupId = "foo"; o.shipmentId = "foo"; - o.shipmentInfos = buildUnnamed900(); + o.shipmentInfos = buildUnnamed1530(); o.trackingId = "foo"; } buildCounterOrdersShipLineItemsRequest--; @@ -2026,10 +2508,11 @@ buildCounterOrdersShipLineItemsRequest++; if (buildCounterOrdersShipLineItemsRequest < 3) { unittest.expect(o.carrier, unittest.equals('foo')); - checkUnnamed899(o.lineItems); + checkUnnamed1529(o.lineItems); unittest.expect(o.operationId, unittest.equals('foo')); + unittest.expect(o.shipmentGroupId, unittest.equals('foo')); unittest.expect(o.shipmentId, unittest.equals('foo')); - checkUnnamed900(o.shipmentInfos); + checkUnnamed1530(o.shipmentInfos); unittest.expect(o.trackingId, unittest.equals('foo')); } buildCounterOrdersShipLineItemsRequest--; @@ -2219,27 +2702,122 @@ buildCounterPrice--; } -buildUnnamed901() { +core.int buildCounterPromotion = 0; +buildPromotion() { + var o = new api.Promotion(); + buildCounterPromotion++; + if (buildCounterPromotion < 3) { + o.promotionAmount = buildAmount(); + o.promotionId = "foo"; + } + buildCounterPromotion--; + return o; +} + +checkPromotion(api.Promotion o) { + buildCounterPromotion++; + if (buildCounterPromotion < 3) { + checkAmount(o.promotionAmount); + unittest.expect(o.promotionId, unittest.equals('foo')); + } + buildCounterPromotion--; +} + +buildUnnamed1531() { + var o = new core.List<api.ShipmentInvoiceLineItemInvoice>(); + o.add(buildShipmentInvoiceLineItemInvoice()); + o.add(buildShipmentInvoiceLineItemInvoice()); + return o; +} + +checkUnnamed1531(core.List<api.ShipmentInvoiceLineItemInvoice> o) { + unittest.expect(o, unittest.hasLength(2)); + checkShipmentInvoiceLineItemInvoice(o[0]); + checkShipmentInvoiceLineItemInvoice(o[1]); +} + +core.int buildCounterShipmentInvoice = 0; +buildShipmentInvoice() { + var o = new api.ShipmentInvoice(); + buildCounterShipmentInvoice++; + if (buildCounterShipmentInvoice < 3) { + o.invoiceSummary = buildInvoiceSummary(); + o.lineItemInvoices = buildUnnamed1531(); + o.shipmentGroupId = "foo"; + } + buildCounterShipmentInvoice--; + return o; +} + +checkShipmentInvoice(api.ShipmentInvoice o) { + buildCounterShipmentInvoice++; + if (buildCounterShipmentInvoice < 3) { + checkInvoiceSummary(o.invoiceSummary); + checkUnnamed1531(o.lineItemInvoices); + unittest.expect(o.shipmentGroupId, unittest.equals('foo')); + } + buildCounterShipmentInvoice--; +} + +buildUnnamed1532() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1532(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterShipmentInvoiceLineItemInvoice = 0; +buildShipmentInvoiceLineItemInvoice() { + var o = new api.ShipmentInvoiceLineItemInvoice(); + buildCounterShipmentInvoiceLineItemInvoice++; + if (buildCounterShipmentInvoiceLineItemInvoice < 3) { + o.lineItemId = "foo"; + o.productId = "foo"; + o.shipmentUnitIds = buildUnnamed1532(); + o.unitInvoice = buildUnitInvoice(); + } + buildCounterShipmentInvoiceLineItemInvoice--; + return o; +} + +checkShipmentInvoiceLineItemInvoice(api.ShipmentInvoiceLineItemInvoice o) { + buildCounterShipmentInvoiceLineItemInvoice++; + if (buildCounterShipmentInvoiceLineItemInvoice < 3) { + unittest.expect(o.lineItemId, unittest.equals('foo')); + unittest.expect(o.productId, unittest.equals('foo')); + checkUnnamed1532(o.shipmentUnitIds); + checkUnitInvoice(o.unitInvoice); + } + buildCounterShipmentInvoiceLineItemInvoice--; +} + +buildUnnamed1533() { var o = new core.List<api.TestOrderLineItem>(); o.add(buildTestOrderLineItem()); o.add(buildTestOrderLineItem()); return o; } -checkUnnamed901(core.List<api.TestOrderLineItem> o) { +checkUnnamed1533(core.List<api.TestOrderLineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkTestOrderLineItem(o[0]); checkTestOrderLineItem(o[1]); } -buildUnnamed902() { +buildUnnamed1534() { var o = new core.List<api.OrderPromotion>(); o.add(buildOrderPromotion()); o.add(buildOrderPromotion()); return o; } -checkUnnamed902(core.List<api.OrderPromotion> o) { +checkUnnamed1534(core.List<api.OrderPromotion> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotion(o[0]); checkOrderPromotion(o[1]); @@ -2252,11 +2830,11 @@ if (buildCounterTestOrder < 3) { o.customer = buildTestOrderCustomer(); o.kind = "foo"; - o.lineItems = buildUnnamed901(); + o.lineItems = buildUnnamed1533(); o.notificationMode = "foo"; o.paymentMethod = buildTestOrderPaymentMethod(); o.predefinedDeliveryAddress = "foo"; - o.promotions = buildUnnamed902(); + o.promotions = buildUnnamed1534(); o.shippingCost = buildPrice(); o.shippingCostTax = buildPrice(); o.shippingOption = "foo"; @@ -2270,11 +2848,11 @@ if (buildCounterTestOrder < 3) { checkTestOrderCustomer(o.customer); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed901(o.lineItems); + checkUnnamed1533(o.lineItems); unittest.expect(o.notificationMode, unittest.equals('foo')); checkTestOrderPaymentMethod(o.paymentMethod); unittest.expect(o.predefinedDeliveryAddress, unittest.equals('foo')); - checkUnnamed902(o.promotions); + checkUnnamed1534(o.promotions); checkPrice(o.shippingCost); checkPrice(o.shippingCostTax); unittest.expect(o.shippingOption, unittest.equals('foo')); @@ -2290,6 +2868,7 @@ o.email = "foo"; o.explicitMarketingPreference = true; o.fullName = "foo"; + o.marketingRightsInfo = buildTestOrderCustomerMarketingRightsInfo(); } buildCounterTestOrderCustomer--; return o; @@ -2301,10 +2880,33 @@ unittest.expect(o.email, unittest.equals('foo')); unittest.expect(o.explicitMarketingPreference, unittest.isTrue); unittest.expect(o.fullName, unittest.equals('foo')); + checkTestOrderCustomerMarketingRightsInfo(o.marketingRightsInfo); } buildCounterTestOrderCustomer--; } +core.int buildCounterTestOrderCustomerMarketingRightsInfo = 0; +buildTestOrderCustomerMarketingRightsInfo() { + var o = new api.TestOrderCustomerMarketingRightsInfo(); + buildCounterTestOrderCustomerMarketingRightsInfo++; + if (buildCounterTestOrderCustomerMarketingRightsInfo < 3) { + o.explicitMarketingPreference = "foo"; + o.lastUpdatedTimestamp = "foo"; + } + buildCounterTestOrderCustomerMarketingRightsInfo--; + return o; +} + +checkTestOrderCustomerMarketingRightsInfo( + api.TestOrderCustomerMarketingRightsInfo o) { + buildCounterTestOrderCustomerMarketingRightsInfo++; + if (buildCounterTestOrderCustomerMarketingRightsInfo < 3) { + unittest.expect(o.explicitMarketingPreference, unittest.equals('foo')); + unittest.expect(o.lastUpdatedTimestamp, unittest.equals('foo')); + } + buildCounterTestOrderCustomerMarketingRightsInfo--; +} + core.int buildCounterTestOrderLineItem = 0; buildTestOrderLineItem() { var o = new api.TestOrderLineItem(); @@ -2332,14 +2934,14 @@ buildCounterTestOrderLineItem--; } -buildUnnamed903() { +buildUnnamed1535() { var o = new core.List<api.OrderLineItemProductVariantAttribute>(); o.add(buildOrderLineItemProductVariantAttribute()); o.add(buildOrderLineItemProductVariantAttribute()); return o; } -checkUnnamed903(core.List<api.OrderLineItemProductVariantAttribute> o) { +checkUnnamed1535(core.List<api.OrderLineItemProductVariantAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItemProductVariantAttribute(o[0]); checkOrderLineItemProductVariantAttribute(o[1]); @@ -2362,7 +2964,7 @@ o.price = buildPrice(); o.targetCountry = "foo"; o.title = "foo"; - o.variantAttributes = buildUnnamed903(); + o.variantAttributes = buildUnnamed1535(); } buildCounterTestOrderLineItemProduct--; return o; @@ -2383,7 +2985,7 @@ checkPrice(o.price); unittest.expect(o.targetCountry, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed903(o.variantAttributes); + checkUnnamed1535(o.variantAttributes); } buildCounterTestOrderLineItemProduct--; } @@ -2415,20 +3017,151 @@ buildCounterTestOrderPaymentMethod--; } -buildUnnamed904() { +buildUnnamed1536() { + var o = new core.List<api.UnitInvoiceAdditionalCharge>(); + o.add(buildUnitInvoiceAdditionalCharge()); + o.add(buildUnitInvoiceAdditionalCharge()); + return o; +} + +checkUnnamed1536(core.List<api.UnitInvoiceAdditionalCharge> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnitInvoiceAdditionalCharge(o[0]); + checkUnitInvoiceAdditionalCharge(o[1]); +} + +buildUnnamed1537() { + var o = new core.List<api.Promotion>(); + o.add(buildPromotion()); + o.add(buildPromotion()); + return o; +} + +checkUnnamed1537(core.List<api.Promotion> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPromotion(o[0]); + checkPromotion(o[1]); +} + +buildUnnamed1538() { + var o = new core.List<api.UnitInvoiceTaxLine>(); + o.add(buildUnitInvoiceTaxLine()); + o.add(buildUnitInvoiceTaxLine()); + return o; +} + +checkUnnamed1538(core.List<api.UnitInvoiceTaxLine> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnitInvoiceTaxLine(o[0]); + checkUnitInvoiceTaxLine(o[1]); +} + +core.int buildCounterUnitInvoice = 0; +buildUnitInvoice() { + var o = new api.UnitInvoice(); + buildCounterUnitInvoice++; + if (buildCounterUnitInvoice < 3) { + o.additionalCharges = buildUnnamed1536(); + o.promotions = buildUnnamed1537(); + o.unitPricePretax = buildPrice(); + o.unitPriceTaxes = buildUnnamed1538(); + } + buildCounterUnitInvoice--; + return o; +} + +checkUnitInvoice(api.UnitInvoice o) { + buildCounterUnitInvoice++; + if (buildCounterUnitInvoice < 3) { + checkUnnamed1536(o.additionalCharges); + checkUnnamed1537(o.promotions); + checkPrice(o.unitPricePretax); + checkUnnamed1538(o.unitPriceTaxes); + } + buildCounterUnitInvoice--; +} + +buildUnnamed1539() { + var o = new core.List<api.Promotion>(); + o.add(buildPromotion()); + o.add(buildPromotion()); + return o; +} + +checkUnnamed1539(core.List<api.Promotion> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPromotion(o[0]); + checkPromotion(o[1]); +} + +core.int buildCounterUnitInvoiceAdditionalCharge = 0; +buildUnitInvoiceAdditionalCharge() { + var o = new api.UnitInvoiceAdditionalCharge(); + buildCounterUnitInvoiceAdditionalCharge++; + if (buildCounterUnitInvoiceAdditionalCharge < 3) { + o.additionalChargeAmount = buildAmount(); + o.additionalChargePromotions = buildUnnamed1539(); + o.type = "foo"; + } + buildCounterUnitInvoiceAdditionalCharge--; + return o; +} + +checkUnitInvoiceAdditionalCharge(api.UnitInvoiceAdditionalCharge o) { + buildCounterUnitInvoiceAdditionalCharge++; + if (buildCounterUnitInvoiceAdditionalCharge < 3) { + checkAmount(o.additionalChargeAmount); + checkUnnamed1539(o.additionalChargePromotions); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterUnitInvoiceAdditionalCharge--; +} + +core.int buildCounterUnitInvoiceTaxLine = 0; +buildUnitInvoiceTaxLine() { + var o = new api.UnitInvoiceTaxLine(); + buildCounterUnitInvoiceTaxLine++; + if (buildCounterUnitInvoiceTaxLine < 3) { + o.taxAmount = buildPrice(); + o.taxName = "foo"; + o.taxType = "foo"; + } + buildCounterUnitInvoiceTaxLine--; + return o; +} + +checkUnitInvoiceTaxLine(api.UnitInvoiceTaxLine o) { + buildCounterUnitInvoiceTaxLine++; + if (buildCounterUnitInvoiceTaxLine < 3) { + checkPrice(o.taxAmount); + unittest.expect(o.taxName, unittest.equals('foo')); + unittest.expect(o.taxType, unittest.equals('foo')); + } + buildCounterUnitInvoiceTaxLine--; +} + +buildUnnamed1540() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed904(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')); } main() { + unittest.group("obj-schema-Amount", () { + unittest.test("to-json--from-json", () { + var o = buildAmount(); + var od = new api.Amount.fromJson(o.toJson()); + checkAmount(od); + }); + }); + unittest.group("obj-schema-Error", () { unittest.test("to-json--from-json", () { var o = buildError(); @@ -2445,6 +3178,23 @@ }); }); + unittest.group("obj-schema-InvoiceSummary", () { + unittest.test("to-json--from-json", () { + var o = buildInvoiceSummary(); + var od = new api.InvoiceSummary.fromJson(o.toJson()); + checkInvoiceSummary(od); + }); + }); + + unittest.group("obj-schema-InvoiceSummaryAdditionalChargeSummary", () { + unittest.test("to-json--from-json", () { + var o = buildInvoiceSummaryAdditionalChargeSummary(); + var od = + new api.InvoiceSummaryAdditionalChargeSummary.fromJson(o.toJson()); + checkInvoiceSummaryAdditionalChargeSummary(od); + }); + }); + unittest.group("obj-schema-Order", () { unittest.test("to-json--from-json", () { var o = buildOrder(); @@ -2477,6 +3227,14 @@ }); }); + unittest.group("obj-schema-OrderCustomerMarketingRightsInfo", () { + unittest.test("to-json--from-json", () { + var o = buildOrderCustomerMarketingRightsInfo(); + var od = new api.OrderCustomerMarketingRightsInfo.fromJson(o.toJson()); + checkOrderCustomerMarketingRightsInfo(od); + }); + }); + unittest.group("obj-schema-OrderDeliveryDetails", () { unittest.test("to-json--from-json", () { var o = buildOrderDeliveryDetails(); @@ -2598,6 +3356,138 @@ }); }); + unittest.group("obj-schema-OrderinvoicesCreateChargeInvoiceRequest", () { + unittest.test("to-json--from-json", () { + var o = buildOrderinvoicesCreateChargeInvoiceRequest(); + var od = + new api.OrderinvoicesCreateChargeInvoiceRequest.fromJson(o.toJson()); + checkOrderinvoicesCreateChargeInvoiceRequest(od); + }); + }); + + unittest.group("obj-schema-OrderinvoicesCreateChargeInvoiceResponse", () { + unittest.test("to-json--from-json", () { + var o = buildOrderinvoicesCreateChargeInvoiceResponse(); + var od = + new api.OrderinvoicesCreateChargeInvoiceResponse.fromJson(o.toJson()); + checkOrderinvoicesCreateChargeInvoiceResponse(od); + }); + }); + + unittest.group("obj-schema-OrderinvoicesCreateRefundInvoiceRequest", () { + unittest.test("to-json--from-json", () { + var o = buildOrderinvoicesCreateRefundInvoiceRequest(); + var od = + new api.OrderinvoicesCreateRefundInvoiceRequest.fromJson(o.toJson()); + checkOrderinvoicesCreateRefundInvoiceRequest(od); + }); + }); + + unittest.group("obj-schema-OrderinvoicesCreateRefundInvoiceResponse", () { + unittest.test("to-json--from-json", () { + var o = buildOrderinvoicesCreateRefundInvoiceResponse(); + var od = + new api.OrderinvoicesCreateRefundInvoiceResponse.fromJson(o.toJson()); + checkOrderinvoicesCreateRefundInvoiceResponse(od); + }); + }); + + unittest.group( + "obj-schema-OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption", + () { + unittest.test("to-json--from-json", () { + var o = + buildOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption(); + var od = new api + .OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption.fromJson( + o.toJson()); + checkOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption( + od); + }); + }); + + unittest.group( + "obj-schema-OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption", + () { + unittest.test("to-json--from-json", () { + var o = + buildOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption(); + var od = new api + .OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption.fromJson( + o.toJson()); + checkOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption( + od); + }); + }); + + unittest.group("obj-schema-OrderpaymentsNotifyAuthApprovedRequest", () { + unittest.test("to-json--from-json", () { + var o = buildOrderpaymentsNotifyAuthApprovedRequest(); + var od = + new api.OrderpaymentsNotifyAuthApprovedRequest.fromJson(o.toJson()); + checkOrderpaymentsNotifyAuthApprovedRequest(od); + }); + }); + + unittest.group("obj-schema-OrderpaymentsNotifyAuthApprovedResponse", () { + unittest.test("to-json--from-json", () { + var o = buildOrderpaymentsNotifyAuthApprovedResponse(); + var od = + new api.OrderpaymentsNotifyAuthApprovedResponse.fromJson(o.toJson()); + checkOrderpaymentsNotifyAuthApprovedResponse(od); + }); + }); + + unittest.group("obj-schema-OrderpaymentsNotifyAuthDeclinedRequest", () { + unittest.test("to-json--from-json", () { + var o = buildOrderpaymentsNotifyAuthDeclinedRequest(); + var od = + new api.OrderpaymentsNotifyAuthDeclinedRequest.fromJson(o.toJson()); + checkOrderpaymentsNotifyAuthDeclinedRequest(od); + }); + }); + + unittest.group("obj-schema-OrderpaymentsNotifyAuthDeclinedResponse", () { + unittest.test("to-json--from-json", () { + var o = buildOrderpaymentsNotifyAuthDeclinedResponse(); + var od = + new api.OrderpaymentsNotifyAuthDeclinedResponse.fromJson(o.toJson()); + checkOrderpaymentsNotifyAuthDeclinedResponse(od); + }); + }); + + unittest.group("obj-schema-OrderpaymentsNotifyChargeRequest", () { + unittest.test("to-json--from-json", () { + var o = buildOrderpaymentsNotifyChargeRequest(); + var od = new api.OrderpaymentsNotifyChargeRequest.fromJson(o.toJson()); + checkOrderpaymentsNotifyChargeRequest(od); + }); + }); + + unittest.group("obj-schema-OrderpaymentsNotifyChargeResponse", () { + unittest.test("to-json--from-json", () { + var o = buildOrderpaymentsNotifyChargeResponse(); + var od = new api.OrderpaymentsNotifyChargeResponse.fromJson(o.toJson()); + checkOrderpaymentsNotifyChargeResponse(od); + }); + }); + + unittest.group("obj-schema-OrderpaymentsNotifyRefundRequest", () { + unittest.test("to-json--from-json", () { + var o = buildOrderpaymentsNotifyRefundRequest(); + var od = new api.OrderpaymentsNotifyRefundRequest.fromJson(o.toJson()); + checkOrderpaymentsNotifyRefundRequest(od); + }); + }); + + unittest.group("obj-schema-OrderpaymentsNotifyRefundResponse", () { + unittest.test("to-json--from-json", () { + var o = buildOrderpaymentsNotifyRefundResponse(); + var od = new api.OrderpaymentsNotifyRefundResponse.fromJson(o.toJson()); + checkOrderpaymentsNotifyRefundResponse(od); + }); + }); + unittest.group("obj-schema-OrdersAcknowledgeRequest", () { unittest.test("to-json--from-json", () { var o = buildOrdersAcknowledgeRequest(); @@ -3015,6 +3905,30 @@ }); }); + unittest.group("obj-schema-Promotion", () { + unittest.test("to-json--from-json", () { + var o = buildPromotion(); + var od = new api.Promotion.fromJson(o.toJson()); + checkPromotion(od); + }); + }); + + unittest.group("obj-schema-ShipmentInvoice", () { + unittest.test("to-json--from-json", () { + var o = buildShipmentInvoice(); + var od = new api.ShipmentInvoice.fromJson(o.toJson()); + checkShipmentInvoice(od); + }); + }); + + unittest.group("obj-schema-ShipmentInvoiceLineItemInvoice", () { + unittest.test("to-json--from-json", () { + var o = buildShipmentInvoiceLineItemInvoice(); + var od = new api.ShipmentInvoiceLineItemInvoice.fromJson(o.toJson()); + checkShipmentInvoiceLineItemInvoice(od); + }); + }); + unittest.group("obj-schema-TestOrder", () { unittest.test("to-json--from-json", () { var o = buildTestOrder(); @@ -3031,6 +3945,15 @@ }); }); + unittest.group("obj-schema-TestOrderCustomerMarketingRightsInfo", () { + unittest.test("to-json--from-json", () { + var o = buildTestOrderCustomerMarketingRightsInfo(); + var od = + new api.TestOrderCustomerMarketingRightsInfo.fromJson(o.toJson()); + checkTestOrderCustomerMarketingRightsInfo(od); + }); + }); + unittest.group("obj-schema-TestOrderLineItem", () { unittest.test("to-json--from-json", () { var o = buildTestOrderLineItem(); @@ -3055,6 +3978,360 @@ }); }); + unittest.group("obj-schema-UnitInvoice", () { + unittest.test("to-json--from-json", () { + var o = buildUnitInvoice(); + var od = new api.UnitInvoice.fromJson(o.toJson()); + checkUnitInvoice(od); + }); + }); + + unittest.group("obj-schema-UnitInvoiceAdditionalCharge", () { + unittest.test("to-json--from-json", () { + var o = buildUnitInvoiceAdditionalCharge(); + var od = new api.UnitInvoiceAdditionalCharge.fromJson(o.toJson()); + checkUnitInvoiceAdditionalCharge(od); + }); + }); + + unittest.group("obj-schema-UnitInvoiceTaxLine", () { + unittest.test("to-json--from-json", () { + var o = buildUnitInvoiceTaxLine(); + var od = new api.UnitInvoiceTaxLine.fromJson(o.toJson()); + checkUnitInvoiceTaxLine(od); + }); + }); + + unittest.group("resource-OrderinvoicesResourceApi", () { + unittest.test("method--createchargeinvoice", () { + var mock = new HttpServerMock(); + api.OrderinvoicesResourceApi res = new api.ContentApi(mock).orderinvoices; + var arg_request = buildOrderinvoicesCreateChargeInvoiceRequest(); + var arg_merchantId = "foo"; + var arg_orderId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.OrderinvoicesCreateChargeInvoiceRequest.fromJson(json); + checkOrderinvoicesCreateChargeInvoiceRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildOrderinvoicesCreateChargeInvoiceResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .createchargeinvoice(arg_request, arg_merchantId, arg_orderId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOrderinvoicesCreateChargeInvoiceResponse(response); + }))); + }); + + unittest.test("method--createrefundinvoice", () { + var mock = new HttpServerMock(); + api.OrderinvoicesResourceApi res = new api.ContentApi(mock).orderinvoices; + var arg_request = buildOrderinvoicesCreateRefundInvoiceRequest(); + var arg_merchantId = "foo"; + var arg_orderId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.OrderinvoicesCreateRefundInvoiceRequest.fromJson(json); + checkOrderinvoicesCreateRefundInvoiceRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildOrderinvoicesCreateRefundInvoiceResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .createrefundinvoice(arg_request, arg_merchantId, arg_orderId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOrderinvoicesCreateRefundInvoiceResponse(response); + }))); + }); + }); + + unittest.group("resource-OrderpaymentsResourceApi", () { + unittest.test("method--notifyauthapproved", () { + var mock = new HttpServerMock(); + api.OrderpaymentsResourceApi res = new api.ContentApi(mock).orderpayments; + var arg_request = buildOrderpaymentsNotifyAuthApprovedRequest(); + var arg_merchantId = "foo"; + var arg_orderId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.OrderpaymentsNotifyAuthApprovedRequest.fromJson(json); + checkOrderpaymentsNotifyAuthApprovedRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildOrderpaymentsNotifyAuthApprovedResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .notifyauthapproved(arg_request, arg_merchantId, arg_orderId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOrderpaymentsNotifyAuthApprovedResponse(response); + }))); + }); + + unittest.test("method--notifyauthdeclined", () { + var mock = new HttpServerMock(); + api.OrderpaymentsResourceApi res = new api.ContentApi(mock).orderpayments; + var arg_request = buildOrderpaymentsNotifyAuthDeclinedRequest(); + var arg_merchantId = "foo"; + var arg_orderId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.OrderpaymentsNotifyAuthDeclinedRequest.fromJson(json); + checkOrderpaymentsNotifyAuthDeclinedRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildOrderpaymentsNotifyAuthDeclinedResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .notifyauthdeclined(arg_request, arg_merchantId, arg_orderId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOrderpaymentsNotifyAuthDeclinedResponse(response); + }))); + }); + + unittest.test("method--notifycharge", () { + var mock = new HttpServerMock(); + api.OrderpaymentsResourceApi res = new api.ContentApi(mock).orderpayments; + var arg_request = buildOrderpaymentsNotifyChargeRequest(); + var arg_merchantId = "foo"; + var arg_orderId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.OrderpaymentsNotifyChargeRequest.fromJson(json); + checkOrderpaymentsNotifyChargeRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildOrderpaymentsNotifyChargeResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .notifycharge(arg_request, arg_merchantId, arg_orderId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOrderpaymentsNotifyChargeResponse(response); + }))); + }); + + unittest.test("method--notifyrefund", () { + var mock = new HttpServerMock(); + api.OrderpaymentsResourceApi res = new api.ContentApi(mock).orderpayments; + var arg_request = buildOrderpaymentsNotifyRefundRequest(); + var arg_merchantId = "foo"; + var arg_orderId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.OrderpaymentsNotifyRefundRequest.fromJson(json); + checkOrderpaymentsNotifyRefundRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildOrderpaymentsNotifyRefundResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .notifyrefund(arg_request, arg_merchantId, arg_orderId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOrderpaymentsNotifyRefundResponse(response); + }))); + }); + }); + unittest.group("resource-OrdersResourceApi", () { unittest.test("method--acknowledge", () { var mock = new HttpServerMock(); @@ -3582,7 +4859,7 @@ var arg_pageToken = "foo"; var arg_placedDateEnd = "foo"; var arg_placedDateStart = "foo"; - var arg_statuses = buildUnnamed904(); + var arg_statuses = buildUnnamed1540(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path;
diff --git a/generated/googleapis/test/customsearch/v1_test.dart b/generated/googleapis/test/customsearch/v1_test.dart index e7e141c..46f0fa7 100644 --- a/generated/googleapis/test/customsearch/v1_test.dart +++ b/generated/googleapis/test/customsearch/v1_test.dart
@@ -73,30 +73,30 @@ buildCounterContextFacets--; } -buildUnnamed1584() { +buildUnnamed2665() { var o = new core.List<api.ContextFacets>(); o.add(buildContextFacets()); o.add(buildContextFacets()); return o; } -checkUnnamed1584(core.List<api.ContextFacets> o) { +checkUnnamed2665(core.List<api.ContextFacets> o) { unittest.expect(o, unittest.hasLength(2)); checkContextFacets(o[0]); checkContextFacets(o[1]); } -buildUnnamed1585() { +buildUnnamed2666() { var o = new core.List<core.List<api.ContextFacets>>(); - o.add(buildUnnamed1584()); - o.add(buildUnnamed1584()); + o.add(buildUnnamed2665()); + o.add(buildUnnamed2665()); return o; } -checkUnnamed1585(core.List<core.List<api.ContextFacets>> o) { +checkUnnamed2666(core.List<core.List<api.ContextFacets>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1584(o[0]); - checkUnnamed1584(o[1]); + checkUnnamed2665(o[0]); + checkUnnamed2665(o[1]); } core.int buildCounterContext = 0; @@ -104,7 +104,7 @@ var o = new api.Context(); buildCounterContext++; if (buildCounterContext < 3) { - o.facets = buildUnnamed1585(); + o.facets = buildUnnamed2666(); o.title = "foo"; } buildCounterContext--; @@ -114,7 +114,7 @@ checkContext(api.Context o) { buildCounterContext++; if (buildCounterContext < 3) { - checkUnnamed1585(o.facets); + checkUnnamed2666(o.facets); unittest.expect(o.title, unittest.equals('foo')); } buildCounterContext--; @@ -145,14 +145,14 @@ buildCounterPromotionBodyLines--; } -buildUnnamed1586() { +buildUnnamed2667() { var o = new core.List<api.PromotionBodyLines>(); o.add(buildPromotionBodyLines()); o.add(buildPromotionBodyLines()); return o; } -checkUnnamed1586(core.List<api.PromotionBodyLines> o) { +checkUnnamed2667(core.List<api.PromotionBodyLines> o) { unittest.expect(o, unittest.hasLength(2)); checkPromotionBodyLines(o[0]); checkPromotionBodyLines(o[1]); @@ -186,7 +186,7 @@ var o = new api.Promotion(); buildCounterPromotion++; if (buildCounterPromotion < 3) { - o.bodyLines = buildUnnamed1586(); + o.bodyLines = buildUnnamed2667(); o.displayLink = "foo"; o.htmlTitle = "foo"; o.image = buildPromotionImage(); @@ -200,7 +200,7 @@ checkPromotion(api.Promotion o) { buildCounterPromotion++; if (buildCounterPromotion < 3) { - checkUnnamed1586(o.bodyLines); + checkUnnamed2667(o.bodyLines); unittest.expect(o.displayLink, unittest.equals('foo')); unittest.expect(o.htmlTitle, unittest.equals('foo')); checkPromotionImage(o.image); @@ -353,20 +353,20 @@ buildCounterResultLabels--; } -buildUnnamed1587() { +buildUnnamed2668() { var o = new core.List<api.ResultLabels>(); o.add(buildResultLabels()); o.add(buildResultLabels()); return o; } -checkUnnamed1587(core.List<api.ResultLabels> o) { +checkUnnamed2668(core.List<api.ResultLabels> o) { unittest.expect(o, unittest.hasLength(2)); checkResultLabels(o[0]); checkResultLabels(o[1]); } -buildUnnamed1588() { +buildUnnamed2669() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -381,7 +381,7 @@ return o; } -checkUnnamed1588(core.Map<core.String, core.Object> o) { +checkUnnamed2669(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)); @@ -395,32 +395,32 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1589() { +buildUnnamed2670() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1588()); - o.add(buildUnnamed1588()); + o.add(buildUnnamed2669()); + o.add(buildUnnamed2669()); return o; } -checkUnnamed1589(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2670(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1588(o[0]); - checkUnnamed1588(o[1]); + checkUnnamed2669(o[0]); + checkUnnamed2669(o[1]); } -buildUnnamed1590() { +buildUnnamed2671() { var o = new core .Map<core.String, core.List<core.Map<core.String, core.Object>>>(); - o["x"] = buildUnnamed1589(); - o["y"] = buildUnnamed1589(); + o["x"] = buildUnnamed2670(); + o["y"] = buildUnnamed2670(); return o; } -checkUnnamed1590( +checkUnnamed2671( core.Map<core.String, core.List<core.Map<core.String, core.Object>>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1589(o["x"]); - checkUnnamed1589(o["y"]); + checkUnnamed2670(o["x"]); + checkUnnamed2670(o["y"]); } core.int buildCounterResult = 0; @@ -437,10 +437,10 @@ o.htmlTitle = "foo"; o.image = buildResultImage(); o.kind = "foo"; - o.labels = buildUnnamed1587(); + o.labels = buildUnnamed2668(); o.link = "foo"; o.mime = "foo"; - o.pagemap = buildUnnamed1590(); + o.pagemap = buildUnnamed2671(); o.snippet = "foo"; o.title = "foo"; } @@ -460,66 +460,66 @@ unittest.expect(o.htmlTitle, unittest.equals('foo')); checkResultImage(o.image); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1587(o.labels); + checkUnnamed2668(o.labels); unittest.expect(o.link, unittest.equals('foo')); unittest.expect(o.mime, unittest.equals('foo')); - checkUnnamed1590(o.pagemap); + checkUnnamed2671(o.pagemap); unittest.expect(o.snippet, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } buildCounterResult--; } -buildUnnamed1591() { +buildUnnamed2672() { var o = new core.List<api.Result>(); o.add(buildResult()); o.add(buildResult()); return o; } -checkUnnamed1591(core.List<api.Result> o) { +checkUnnamed2672(core.List<api.Result> o) { unittest.expect(o, unittest.hasLength(2)); checkResult(o[0]); checkResult(o[1]); } -buildUnnamed1592() { +buildUnnamed2673() { var o = new core.List<api.Promotion>(); o.add(buildPromotion()); o.add(buildPromotion()); return o; } -checkUnnamed1592(core.List<api.Promotion> o) { +checkUnnamed2673(core.List<api.Promotion> o) { unittest.expect(o, unittest.hasLength(2)); checkPromotion(o[0]); checkPromotion(o[1]); } -buildUnnamed1593() { +buildUnnamed2674() { var o = new core.List<api.Query>(); o.add(buildQuery()); o.add(buildQuery()); return o; } -checkUnnamed1593(core.List<api.Query> o) { +checkUnnamed2674(core.List<api.Query> o) { unittest.expect(o, unittest.hasLength(2)); checkQuery(o[0]); checkQuery(o[1]); } -buildUnnamed1594() { +buildUnnamed2675() { var o = new core.Map<core.String, core.List<api.Query>>(); - o["x"] = buildUnnamed1593(); - o["y"] = buildUnnamed1593(); + o["x"] = buildUnnamed2674(); + o["y"] = buildUnnamed2674(); return o; } -checkUnnamed1594(core.Map<core.String, core.List<api.Query>> o) { +checkUnnamed2675(core.Map<core.String, core.List<api.Query>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1593(o["x"]); - checkUnnamed1593(o["y"]); + checkUnnamed2674(o["x"]); + checkUnnamed2674(o["y"]); } core.int buildCounterSearchSearchInformation = 0; @@ -595,10 +595,10 @@ buildCounterSearch++; if (buildCounterSearch < 3) { o.context = buildContext(); - o.items = buildUnnamed1591(); + o.items = buildUnnamed2672(); o.kind = "foo"; - o.promotions = buildUnnamed1592(); - o.queries = buildUnnamed1594(); + o.promotions = buildUnnamed2673(); + o.queries = buildUnnamed2675(); o.searchInformation = buildSearchSearchInformation(); o.spelling = buildSearchSpelling(); o.url = buildSearchUrl(); @@ -611,10 +611,10 @@ buildCounterSearch++; if (buildCounterSearch < 3) { checkContext(o.context); - checkUnnamed1591(o.items); + checkUnnamed2672(o.items); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1592(o.promotions); - checkUnnamed1594(o.queries); + checkUnnamed2673(o.promotions); + checkUnnamed2675(o.queries); checkSearchSearchInformation(o.searchInformation); checkSearchSpelling(o.spelling); checkSearchUrl(o.url); @@ -892,4 +892,171 @@ }))); }); }); + + unittest.group("resource-CseSiterestrictResourceApi", () { + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.CseSiterestrictResourceApi res = + new api.CustomsearchApi(mock).cse.siterestrict; + var arg_q = "foo"; + var arg_c2coff = "foo"; + var arg_cr = "foo"; + var arg_cx = "foo"; + var arg_dateRestrict = "foo"; + var arg_exactTerms = "foo"; + var arg_excludeTerms = "foo"; + var arg_fileType = "foo"; + var arg_filter = "foo"; + var arg_gl = "foo"; + var arg_googlehost = "foo"; + var arg_highRange = "foo"; + var arg_hl = "foo"; + var arg_hq = "foo"; + var arg_imgColorType = "foo"; + var arg_imgDominantColor = "foo"; + var arg_imgSize = "foo"; + var arg_imgType = "foo"; + var arg_linkSite = "foo"; + var arg_lowRange = "foo"; + var arg_lr = "foo"; + var arg_num = 42; + var arg_orTerms = "foo"; + var arg_relatedSite = "foo"; + var arg_rights = "foo"; + var arg_safe = "foo"; + var arg_searchType = "foo"; + var arg_siteSearch = "foo"; + var arg_siteSearchFilter = "foo"; + var arg_sort = "foo"; + var arg_start = 42; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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("customsearch/")); + pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("v1/siterestrict")); + pathOffset += 15; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["q"].first, unittest.equals(arg_q)); + unittest.expect(queryMap["c2coff"].first, unittest.equals(arg_c2coff)); + unittest.expect(queryMap["cr"].first, unittest.equals(arg_cr)); + unittest.expect(queryMap["cx"].first, unittest.equals(arg_cx)); + unittest.expect( + queryMap["dateRestrict"].first, unittest.equals(arg_dateRestrict)); + unittest.expect( + queryMap["exactTerms"].first, unittest.equals(arg_exactTerms)); + unittest.expect( + queryMap["excludeTerms"].first, unittest.equals(arg_excludeTerms)); + unittest.expect( + queryMap["fileType"].first, unittest.equals(arg_fileType)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["gl"].first, unittest.equals(arg_gl)); + unittest.expect( + queryMap["googlehost"].first, unittest.equals(arg_googlehost)); + unittest.expect( + queryMap["highRange"].first, unittest.equals(arg_highRange)); + unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); + unittest.expect(queryMap["hq"].first, unittest.equals(arg_hq)); + unittest.expect( + queryMap["imgColorType"].first, unittest.equals(arg_imgColorType)); + unittest.expect(queryMap["imgDominantColor"].first, + unittest.equals(arg_imgDominantColor)); + unittest.expect( + queryMap["imgSize"].first, unittest.equals(arg_imgSize)); + unittest.expect( + queryMap["imgType"].first, unittest.equals(arg_imgType)); + unittest.expect( + queryMap["linkSite"].first, unittest.equals(arg_linkSite)); + unittest.expect( + queryMap["lowRange"].first, unittest.equals(arg_lowRange)); + unittest.expect(queryMap["lr"].first, unittest.equals(arg_lr)); + unittest.expect( + core.int.parse(queryMap["num"].first), unittest.equals(arg_num)); + unittest.expect( + queryMap["orTerms"].first, unittest.equals(arg_orTerms)); + unittest.expect( + queryMap["relatedSite"].first, unittest.equals(arg_relatedSite)); + unittest.expect(queryMap["rights"].first, unittest.equals(arg_rights)); + unittest.expect(queryMap["safe"].first, unittest.equals(arg_safe)); + unittest.expect( + queryMap["searchType"].first, unittest.equals(arg_searchType)); + unittest.expect( + queryMap["siteSearch"].first, unittest.equals(arg_siteSearch)); + unittest.expect(queryMap["siteSearchFilter"].first, + unittest.equals(arg_siteSearchFilter)); + unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); + unittest.expect(core.int.parse(queryMap["start"].first), + unittest.equals(arg_start)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildSearch()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_q, + c2coff: arg_c2coff, + cr: arg_cr, + cx: arg_cx, + dateRestrict: arg_dateRestrict, + exactTerms: arg_exactTerms, + excludeTerms: arg_excludeTerms, + fileType: arg_fileType, + filter: arg_filter, + gl: arg_gl, + googlehost: arg_googlehost, + highRange: arg_highRange, + hl: arg_hl, + hq: arg_hq, + imgColorType: arg_imgColorType, + imgDominantColor: arg_imgDominantColor, + imgSize: arg_imgSize, + imgType: arg_imgType, + linkSite: arg_linkSite, + lowRange: arg_lowRange, + lr: arg_lr, + num: arg_num, + orTerms: arg_orTerms, + relatedSite: arg_relatedSite, + rights: arg_rights, + safe: arg_safe, + searchType: arg_searchType, + siteSearch: arg_siteSearch, + siteSearchFilter: arg_siteSearchFilter, + sort: arg_sort, + start: arg_start, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkSearch(response); + }))); + }); + }); }
diff --git a/generated/googleapis/test/dataproc/v1_test.dart b/generated/googleapis/test/dataproc/v1_test.dart index 4b5971e..d1a7fc0 100644 --- a/generated/googleapis/test/dataproc/v1_test.dart +++ b/generated/googleapis/test/dataproc/v1_test.dart
@@ -86,27 +86,27 @@ buildCounterCancelJobRequest--; } -buildUnnamed1363() { +buildUnnamed795() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1363(core.Map<core.String, core.String> o) { +checkUnnamed795(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')); } -buildUnnamed1364() { +buildUnnamed796() { var o = new core.List<api.ClusterStatus>(); o.add(buildClusterStatus()); o.add(buildClusterStatus()); return o; } -checkUnnamed1364(core.List<api.ClusterStatus> o) { +checkUnnamed796(core.List<api.ClusterStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkClusterStatus(o[0]); checkClusterStatus(o[1]); @@ -120,11 +120,11 @@ o.clusterName = "foo"; o.clusterUuid = "foo"; o.config = buildClusterConfig(); - o.labels = buildUnnamed1363(); + o.labels = buildUnnamed795(); o.metrics = buildClusterMetrics(); o.projectId = "foo"; o.status = buildClusterStatus(); - o.statusHistory = buildUnnamed1364(); + o.statusHistory = buildUnnamed796(); } buildCounterCluster--; return o; @@ -136,23 +136,23 @@ unittest.expect(o.clusterName, unittest.equals('foo')); unittest.expect(o.clusterUuid, unittest.equals('foo')); checkClusterConfig(o.config); - checkUnnamed1363(o.labels); + checkUnnamed795(o.labels); checkClusterMetrics(o.metrics); unittest.expect(o.projectId, unittest.equals('foo')); checkClusterStatus(o.status); - checkUnnamed1364(o.statusHistory); + checkUnnamed796(o.statusHistory); } buildCounterCluster--; } -buildUnnamed1365() { +buildUnnamed797() { var o = new core.List<api.NodeInitializationAction>(); o.add(buildNodeInitializationAction()); o.add(buildNodeInitializationAction()); return o; } -checkUnnamed1365(core.List<api.NodeInitializationAction> o) { +checkUnnamed797(core.List<api.NodeInitializationAction> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeInitializationAction(o[0]); checkNodeInitializationAction(o[1]); @@ -165,7 +165,7 @@ if (buildCounterClusterConfig < 3) { o.configBucket = "foo"; o.gceClusterConfig = buildGceClusterConfig(); - o.initializationActions = buildUnnamed1365(); + o.initializationActions = buildUnnamed797(); o.masterConfig = buildInstanceGroupConfig(); o.secondaryWorkerConfig = buildInstanceGroupConfig(); o.softwareConfig = buildSoftwareConfig(); @@ -180,7 +180,7 @@ if (buildCounterClusterConfig < 3) { unittest.expect(o.configBucket, unittest.equals('foo')); checkGceClusterConfig(o.gceClusterConfig); - checkUnnamed1365(o.initializationActions); + checkUnnamed797(o.initializationActions); checkInstanceGroupConfig(o.masterConfig); checkInstanceGroupConfig(o.secondaryWorkerConfig); checkSoftwareConfig(o.softwareConfig); @@ -189,27 +189,27 @@ buildCounterClusterConfig--; } -buildUnnamed1366() { +buildUnnamed798() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1366(core.Map<core.String, core.String> o) { +checkUnnamed798(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')); } -buildUnnamed1367() { +buildUnnamed799() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1367(core.Map<core.String, core.String> o) { +checkUnnamed799(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')); @@ -220,8 +220,8 @@ var o = new api.ClusterMetrics(); buildCounterClusterMetrics++; if (buildCounterClusterMetrics < 3) { - o.hdfsMetrics = buildUnnamed1366(); - o.yarnMetrics = buildUnnamed1367(); + o.hdfsMetrics = buildUnnamed798(); + o.yarnMetrics = buildUnnamed799(); } buildCounterClusterMetrics--; return o; @@ -230,46 +230,46 @@ checkClusterMetrics(api.ClusterMetrics o) { buildCounterClusterMetrics++; if (buildCounterClusterMetrics < 3) { - checkUnnamed1366(o.hdfsMetrics); - checkUnnamed1367(o.yarnMetrics); + checkUnnamed798(o.hdfsMetrics); + checkUnnamed799(o.yarnMetrics); } buildCounterClusterMetrics--; } -buildUnnamed1368() { +buildUnnamed800() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1368(core.Map<core.String, core.String> o) { +checkUnnamed800(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')); } -buildUnnamed1369() { +buildUnnamed801() { var o = new core.List<api.ClusterOperationStatus>(); o.add(buildClusterOperationStatus()); o.add(buildClusterOperationStatus()); return o; } -checkUnnamed1369(core.List<api.ClusterOperationStatus> o) { +checkUnnamed801(core.List<api.ClusterOperationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkClusterOperationStatus(o[0]); checkClusterOperationStatus(o[1]); } -buildUnnamed1370() { +buildUnnamed802() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1370(core.List<core.String> o) { +checkUnnamed802(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -283,11 +283,11 @@ o.clusterName = "foo"; o.clusterUuid = "foo"; o.description = "foo"; - o.labels = buildUnnamed1368(); + o.labels = buildUnnamed800(); o.operationType = "foo"; o.status = buildClusterOperationStatus(); - o.statusHistory = buildUnnamed1369(); - o.warnings = buildUnnamed1370(); + o.statusHistory = buildUnnamed801(); + o.warnings = buildUnnamed802(); } buildCounterClusterOperationMetadata--; return o; @@ -299,11 +299,11 @@ unittest.expect(o.clusterName, unittest.equals('foo')); unittest.expect(o.clusterUuid, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1368(o.labels); + checkUnnamed800(o.labels); unittest.expect(o.operationType, unittest.equals('foo')); checkClusterOperationStatus(o.status); - checkUnnamed1369(o.statusHistory); - checkUnnamed1370(o.warnings); + checkUnnamed801(o.statusHistory); + checkUnnamed802(o.warnings); } buildCounterClusterOperationMetadata--; } @@ -428,40 +428,40 @@ buildCounterEmpty--; } -buildUnnamed1371() { +buildUnnamed803() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1371(core.Map<core.String, core.String> o) { +checkUnnamed803(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')); } -buildUnnamed1372() { +buildUnnamed804() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1372(core.List<core.String> o) { +checkUnnamed804(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1373() { +buildUnnamed805() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1373(core.List<core.String> o) { +checkUnnamed805(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -473,12 +473,12 @@ buildCounterGceClusterConfig++; if (buildCounterGceClusterConfig < 3) { o.internalIpOnly = true; - o.metadata = buildUnnamed1371(); + o.metadata = buildUnnamed803(); o.networkUri = "foo"; o.serviceAccount = "foo"; - o.serviceAccountScopes = buildUnnamed1372(); + o.serviceAccountScopes = buildUnnamed804(); o.subnetworkUri = "foo"; - o.tags = buildUnnamed1373(); + o.tags = buildUnnamed805(); o.zoneUri = "foo"; } buildCounterGceClusterConfig--; @@ -489,77 +489,77 @@ buildCounterGceClusterConfig++; if (buildCounterGceClusterConfig < 3) { unittest.expect(o.internalIpOnly, unittest.isTrue); - checkUnnamed1371(o.metadata); + checkUnnamed803(o.metadata); unittest.expect(o.networkUri, unittest.equals('foo')); unittest.expect(o.serviceAccount, unittest.equals('foo')); - checkUnnamed1372(o.serviceAccountScopes); + checkUnnamed804(o.serviceAccountScopes); unittest.expect(o.subnetworkUri, unittest.equals('foo')); - checkUnnamed1373(o.tags); + checkUnnamed805(o.tags); unittest.expect(o.zoneUri, unittest.equals('foo')); } buildCounterGceClusterConfig--; } -buildUnnamed1374() { +buildUnnamed806() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1374(core.List<core.String> o) { +checkUnnamed806(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1375() { +buildUnnamed807() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1375(core.List<core.String> o) { +checkUnnamed807(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1376() { +buildUnnamed808() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1376(core.List<core.String> o) { +checkUnnamed808(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1377() { +buildUnnamed809() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1377(core.List<core.String> o) { +checkUnnamed809(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1378() { +buildUnnamed810() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1378(core.Map<core.String, core.String> o) { +checkUnnamed810(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')); @@ -570,14 +570,14 @@ var o = new api.HadoopJob(); buildCounterHadoopJob++; if (buildCounterHadoopJob < 3) { - o.archiveUris = buildUnnamed1374(); - o.args = buildUnnamed1375(); - o.fileUris = buildUnnamed1376(); - o.jarFileUris = buildUnnamed1377(); + o.archiveUris = buildUnnamed806(); + o.args = buildUnnamed807(); + o.fileUris = buildUnnamed808(); + o.jarFileUris = buildUnnamed809(); o.loggingConfig = buildLoggingConfig(); o.mainClass = "foo"; o.mainJarFileUri = "foo"; - o.properties = buildUnnamed1378(); + o.properties = buildUnnamed810(); } buildCounterHadoopJob--; return o; @@ -586,52 +586,52 @@ checkHadoopJob(api.HadoopJob o) { buildCounterHadoopJob++; if (buildCounterHadoopJob < 3) { - checkUnnamed1374(o.archiveUris); - checkUnnamed1375(o.args); - checkUnnamed1376(o.fileUris); - checkUnnamed1377(o.jarFileUris); + checkUnnamed806(o.archiveUris); + checkUnnamed807(o.args); + checkUnnamed808(o.fileUris); + checkUnnamed809(o.jarFileUris); checkLoggingConfig(o.loggingConfig); unittest.expect(o.mainClass, unittest.equals('foo')); unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed1378(o.properties); + checkUnnamed810(o.properties); } buildCounterHadoopJob--; } -buildUnnamed1379() { +buildUnnamed811() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1379(core.List<core.String> o) { +checkUnnamed811(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1380() { +buildUnnamed812() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1380(core.Map<core.String, core.String> o) { +checkUnnamed812(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')); } -buildUnnamed1381() { +buildUnnamed813() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1381(core.Map<core.String, core.String> o) { +checkUnnamed813(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')); @@ -643,11 +643,11 @@ buildCounterHiveJob++; if (buildCounterHiveJob < 3) { o.continueOnFailure = true; - o.jarFileUris = buildUnnamed1379(); - o.properties = buildUnnamed1380(); + o.jarFileUris = buildUnnamed811(); + o.properties = buildUnnamed812(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed1381(); + o.scriptVariables = buildUnnamed813(); } buildCounterHiveJob--; return o; @@ -657,36 +657,36 @@ buildCounterHiveJob++; if (buildCounterHiveJob < 3) { unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed1379(o.jarFileUris); - checkUnnamed1380(o.properties); + checkUnnamed811(o.jarFileUris); + checkUnnamed812(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed1381(o.scriptVariables); + checkUnnamed813(o.scriptVariables); } buildCounterHiveJob--; } -buildUnnamed1382() { +buildUnnamed814() { var o = new core.List<api.AcceleratorConfig>(); o.add(buildAcceleratorConfig()); o.add(buildAcceleratorConfig()); return o; } -checkUnnamed1382(core.List<api.AcceleratorConfig> o) { +checkUnnamed814(core.List<api.AcceleratorConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfig(o[0]); checkAcceleratorConfig(o[1]); } -buildUnnamed1383() { +buildUnnamed815() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1383(core.List<core.String> o) { +checkUnnamed815(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -697,10 +697,10 @@ var o = new api.InstanceGroupConfig(); buildCounterInstanceGroupConfig++; if (buildCounterInstanceGroupConfig < 3) { - o.accelerators = buildUnnamed1382(); + o.accelerators = buildUnnamed814(); o.diskConfig = buildDiskConfig(); o.imageUri = "foo"; - o.instanceNames = buildUnnamed1383(); + o.instanceNames = buildUnnamed815(); o.isPreemptible = true; o.machineTypeUri = "foo"; o.managedGroupConfig = buildManagedGroupConfig(); @@ -713,10 +713,10 @@ checkInstanceGroupConfig(api.InstanceGroupConfig o) { buildCounterInstanceGroupConfig++; if (buildCounterInstanceGroupConfig < 3) { - checkUnnamed1382(o.accelerators); + checkUnnamed814(o.accelerators); checkDiskConfig(o.diskConfig); unittest.expect(o.imageUri, unittest.equals('foo')); - checkUnnamed1383(o.instanceNames); + checkUnnamed815(o.instanceNames); unittest.expect(o.isPreemptible, unittest.isTrue); unittest.expect(o.machineTypeUri, unittest.equals('foo')); checkManagedGroupConfig(o.managedGroupConfig); @@ -725,40 +725,40 @@ buildCounterInstanceGroupConfig--; } -buildUnnamed1384() { +buildUnnamed816() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1384(core.Map<core.String, core.String> o) { +checkUnnamed816(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')); } -buildUnnamed1385() { +buildUnnamed817() { var o = new core.List<api.JobStatus>(); o.add(buildJobStatus()); o.add(buildJobStatus()); return o; } -checkUnnamed1385(core.List<api.JobStatus> o) { +checkUnnamed817(core.List<api.JobStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkJobStatus(o[0]); checkJobStatus(o[1]); } -buildUnnamed1386() { +buildUnnamed818() { var o = new core.List<api.YarnApplication>(); o.add(buildYarnApplication()); o.add(buildYarnApplication()); return o; } -checkUnnamed1386(core.List<api.YarnApplication> o) { +checkUnnamed818(core.List<api.YarnApplication> o) { unittest.expect(o, unittest.hasLength(2)); checkYarnApplication(o[0]); checkYarnApplication(o[1]); @@ -773,7 +773,7 @@ o.driverOutputResourceUri = "foo"; o.hadoopJob = buildHadoopJob(); o.hiveJob = buildHiveJob(); - o.labels = buildUnnamed1384(); + o.labels = buildUnnamed816(); o.pigJob = buildPigJob(); o.placement = buildJobPlacement(); o.pysparkJob = buildPySparkJob(); @@ -782,8 +782,8 @@ o.sparkJob = buildSparkJob(); o.sparkSqlJob = buildSparkSqlJob(); o.status = buildJobStatus(); - o.statusHistory = buildUnnamed1385(); - o.yarnApplications = buildUnnamed1386(); + o.statusHistory = buildUnnamed817(); + o.yarnApplications = buildUnnamed818(); } buildCounterJob--; return o; @@ -796,7 +796,7 @@ unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); checkHadoopJob(o.hadoopJob); checkHiveJob(o.hiveJob); - checkUnnamed1384(o.labels); + checkUnnamed816(o.labels); checkPigJob(o.pigJob); checkJobPlacement(o.placement); checkPySparkJob(o.pysparkJob); @@ -805,8 +805,8 @@ checkSparkJob(o.sparkJob); checkSparkSqlJob(o.sparkSqlJob); checkJobStatus(o.status); - checkUnnamed1385(o.statusHistory); - checkUnnamed1386(o.yarnApplications); + checkUnnamed817(o.statusHistory); + checkUnnamed818(o.yarnApplications); } buildCounterJob--; } @@ -897,14 +897,14 @@ buildCounterJobStatus--; } -buildUnnamed1387() { +buildUnnamed819() { var o = new core.List<api.Cluster>(); o.add(buildCluster()); o.add(buildCluster()); return o; } -checkUnnamed1387(core.List<api.Cluster> o) { +checkUnnamed819(core.List<api.Cluster> o) { unittest.expect(o, unittest.hasLength(2)); checkCluster(o[0]); checkCluster(o[1]); @@ -915,7 +915,7 @@ var o = new api.ListClustersResponse(); buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - o.clusters = buildUnnamed1387(); + o.clusters = buildUnnamed819(); o.nextPageToken = "foo"; } buildCounterListClustersResponse--; @@ -925,20 +925,20 @@ checkListClustersResponse(api.ListClustersResponse o) { buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - checkUnnamed1387(o.clusters); + checkUnnamed819(o.clusters); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListClustersResponse--; } -buildUnnamed1388() { +buildUnnamed820() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed1388(core.List<api.Job> o) { +checkUnnamed820(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -949,7 +949,7 @@ var o = new api.ListJobsResponse(); buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - o.jobs = buildUnnamed1388(); + o.jobs = buildUnnamed820(); o.nextPageToken = "foo"; } buildCounterListJobsResponse--; @@ -959,20 +959,20 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed1388(o.jobs); + checkUnnamed820(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobsResponse--; } -buildUnnamed1389() { +buildUnnamed821() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1389(core.List<api.Operation> o) { +checkUnnamed821(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -984,7 +984,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1389(); + o.operations = buildUnnamed821(); } buildCounterListOperationsResponse--; return o; @@ -994,19 +994,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1389(o.operations); + checkUnnamed821(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1390() { +buildUnnamed822() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1390(core.Map<core.String, core.String> o) { +checkUnnamed822(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')); @@ -1017,7 +1017,7 @@ var o = new api.LoggingConfig(); buildCounterLoggingConfig++; if (buildCounterLoggingConfig < 3) { - o.driverLogLevels = buildUnnamed1390(); + o.driverLogLevels = buildUnnamed822(); } buildCounterLoggingConfig--; return o; @@ -1026,7 +1026,7 @@ checkLoggingConfig(api.LoggingConfig o) { buildCounterLoggingConfig++; if (buildCounterLoggingConfig < 3) { - checkUnnamed1390(o.driverLogLevels); + checkUnnamed822(o.driverLogLevels); } buildCounterLoggingConfig--; } @@ -1073,7 +1073,7 @@ buildCounterNodeInitializationAction--; } -buildUnnamed1391() { +buildUnnamed823() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1088,7 +1088,7 @@ return o; } -checkUnnamed1391(core.Map<core.String, core.Object> o) { +checkUnnamed823(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)); @@ -1102,7 +1102,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1392() { +buildUnnamed824() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1117,7 +1117,7 @@ return o; } -checkUnnamed1392(core.Map<core.String, core.Object> o) { +checkUnnamed824(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)); @@ -1138,9 +1138,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1391(); + o.metadata = buildUnnamed823(); o.name = "foo"; - o.response = buildUnnamed1392(); + o.response = buildUnnamed824(); } buildCounterOperation--; return o; @@ -1151,47 +1151,47 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1391(o.metadata); + checkUnnamed823(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1392(o.response); + checkUnnamed824(o.response); } buildCounterOperation--; } -buildUnnamed1393() { +buildUnnamed825() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1393(core.List<core.String> o) { +checkUnnamed825(core.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() { +buildUnnamed826() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1394(core.Map<core.String, core.String> o) { +checkUnnamed826(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')); } -buildUnnamed1395() { +buildUnnamed827() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1395(core.Map<core.String, core.String> o) { +checkUnnamed827(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')); @@ -1203,12 +1203,12 @@ buildCounterPigJob++; if (buildCounterPigJob < 3) { o.continueOnFailure = true; - o.jarFileUris = buildUnnamed1393(); + o.jarFileUris = buildUnnamed825(); o.loggingConfig = buildLoggingConfig(); - o.properties = buildUnnamed1394(); + o.properties = buildUnnamed826(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed1395(); + o.scriptVariables = buildUnnamed827(); } buildCounterPigJob--; return o; @@ -1218,89 +1218,89 @@ buildCounterPigJob++; if (buildCounterPigJob < 3) { unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed1393(o.jarFileUris); + checkUnnamed825(o.jarFileUris); checkLoggingConfig(o.loggingConfig); - checkUnnamed1394(o.properties); + checkUnnamed826(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed1395(o.scriptVariables); + checkUnnamed827(o.scriptVariables); } buildCounterPigJob--; } -buildUnnamed1396() { +buildUnnamed828() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1396(core.List<core.String> o) { +checkUnnamed828(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1397() { +buildUnnamed829() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1397(core.List<core.String> o) { +checkUnnamed829(core.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() { +buildUnnamed830() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1398(core.List<core.String> o) { +checkUnnamed830(core.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() { +buildUnnamed831() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1399(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')); } -buildUnnamed1400() { +buildUnnamed832() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1400(core.Map<core.String, core.String> o) { +checkUnnamed832(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')); } -buildUnnamed1401() { +buildUnnamed833() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1401(core.List<core.String> o) { +checkUnnamed833(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1311,14 +1311,14 @@ var o = new api.PySparkJob(); buildCounterPySparkJob++; if (buildCounterPySparkJob < 3) { - o.archiveUris = buildUnnamed1396(); - o.args = buildUnnamed1397(); - o.fileUris = buildUnnamed1398(); - o.jarFileUris = buildUnnamed1399(); + o.archiveUris = buildUnnamed828(); + o.args = buildUnnamed829(); + o.fileUris = buildUnnamed830(); + o.jarFileUris = buildUnnamed831(); o.loggingConfig = buildLoggingConfig(); o.mainPythonFileUri = "foo"; - o.properties = buildUnnamed1400(); - o.pythonFileUris = buildUnnamed1401(); + o.properties = buildUnnamed832(); + o.pythonFileUris = buildUnnamed833(); } buildCounterPySparkJob--; return o; @@ -1327,26 +1327,26 @@ checkPySparkJob(api.PySparkJob o) { buildCounterPySparkJob++; if (buildCounterPySparkJob < 3) { - checkUnnamed1396(o.archiveUris); - checkUnnamed1397(o.args); - checkUnnamed1398(o.fileUris); - checkUnnamed1399(o.jarFileUris); + checkUnnamed828(o.archiveUris); + checkUnnamed829(o.args); + checkUnnamed830(o.fileUris); + checkUnnamed831(o.jarFileUris); checkLoggingConfig(o.loggingConfig); unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); - checkUnnamed1400(o.properties); - checkUnnamed1401(o.pythonFileUris); + checkUnnamed832(o.properties); + checkUnnamed833(o.pythonFileUris); } buildCounterPySparkJob--; } -buildUnnamed1402() { +buildUnnamed834() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1402(core.List<core.String> o) { +checkUnnamed834(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1357,7 +1357,7 @@ var o = new api.QueryList(); buildCounterQueryList++; if (buildCounterQueryList < 3) { - o.queries = buildUnnamed1402(); + o.queries = buildUnnamed834(); } buildCounterQueryList--; return o; @@ -1366,19 +1366,19 @@ checkQueryList(api.QueryList o) { buildCounterQueryList++; if (buildCounterQueryList < 3) { - checkUnnamed1402(o.queries); + checkUnnamed834(o.queries); } buildCounterQueryList--; } -buildUnnamed1403() { +buildUnnamed835() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1403(core.Map<core.String, core.String> o) { +checkUnnamed835(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')); @@ -1390,7 +1390,7 @@ buildCounterSoftwareConfig++; if (buildCounterSoftwareConfig < 3) { o.imageVersion = "foo"; - o.properties = buildUnnamed1403(); + o.properties = buildUnnamed835(); } buildCounterSoftwareConfig--; return o; @@ -1400,71 +1400,71 @@ buildCounterSoftwareConfig++; if (buildCounterSoftwareConfig < 3) { unittest.expect(o.imageVersion, unittest.equals('foo')); - checkUnnamed1403(o.properties); + checkUnnamed835(o.properties); } buildCounterSoftwareConfig--; } -buildUnnamed1404() { +buildUnnamed836() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1404(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')); } -buildUnnamed1405() { +buildUnnamed837() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1405(core.List<core.String> o) { +checkUnnamed837(core.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() { +buildUnnamed838() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1406(core.List<core.String> o) { +checkUnnamed838(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1407() { +buildUnnamed839() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1407(core.List<core.String> o) { +checkUnnamed839(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1408() { +buildUnnamed840() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1408(core.Map<core.String, core.String> o) { +checkUnnamed840(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')); @@ -1475,14 +1475,14 @@ var o = new api.SparkJob(); buildCounterSparkJob++; if (buildCounterSparkJob < 3) { - o.archiveUris = buildUnnamed1404(); - o.args = buildUnnamed1405(); - o.fileUris = buildUnnamed1406(); - o.jarFileUris = buildUnnamed1407(); + o.archiveUris = buildUnnamed836(); + o.args = buildUnnamed837(); + o.fileUris = buildUnnamed838(); + o.jarFileUris = buildUnnamed839(); o.loggingConfig = buildLoggingConfig(); o.mainClass = "foo"; o.mainJarFileUri = "foo"; - o.properties = buildUnnamed1408(); + o.properties = buildUnnamed840(); } buildCounterSparkJob--; return o; @@ -1491,52 +1491,52 @@ checkSparkJob(api.SparkJob o) { buildCounterSparkJob++; if (buildCounterSparkJob < 3) { - checkUnnamed1404(o.archiveUris); - checkUnnamed1405(o.args); - checkUnnamed1406(o.fileUris); - checkUnnamed1407(o.jarFileUris); + checkUnnamed836(o.archiveUris); + checkUnnamed837(o.args); + checkUnnamed838(o.fileUris); + checkUnnamed839(o.jarFileUris); checkLoggingConfig(o.loggingConfig); unittest.expect(o.mainClass, unittest.equals('foo')); unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed1408(o.properties); + checkUnnamed840(o.properties); } buildCounterSparkJob--; } -buildUnnamed1409() { +buildUnnamed841() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1409(core.List<core.String> o) { +checkUnnamed841(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1410() { +buildUnnamed842() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1410(core.Map<core.String, core.String> o) { +checkUnnamed842(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')); } -buildUnnamed1411() { +buildUnnamed843() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1411(core.Map<core.String, core.String> o) { +checkUnnamed843(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')); @@ -1547,12 +1547,12 @@ var o = new api.SparkSqlJob(); buildCounterSparkSqlJob++; if (buildCounterSparkSqlJob < 3) { - o.jarFileUris = buildUnnamed1409(); + o.jarFileUris = buildUnnamed841(); o.loggingConfig = buildLoggingConfig(); - o.properties = buildUnnamed1410(); + o.properties = buildUnnamed842(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed1411(); + o.scriptVariables = buildUnnamed843(); } buildCounterSparkSqlJob--; return o; @@ -1561,17 +1561,17 @@ checkSparkSqlJob(api.SparkSqlJob o) { buildCounterSparkSqlJob++; if (buildCounterSparkSqlJob < 3) { - checkUnnamed1409(o.jarFileUris); + checkUnnamed841(o.jarFileUris); checkLoggingConfig(o.loggingConfig); - checkUnnamed1410(o.properties); + checkUnnamed842(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed1411(o.scriptVariables); + checkUnnamed843(o.scriptVariables); } buildCounterSparkSqlJob--; } -buildUnnamed1412() { +buildUnnamed844() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1586,7 +1586,7 @@ return o; } -checkUnnamed1412(core.Map<core.String, core.Object> o) { +checkUnnamed844(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)); @@ -1600,17 +1600,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1413() { +buildUnnamed845() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1412()); - o.add(buildUnnamed1412()); + o.add(buildUnnamed844()); + o.add(buildUnnamed844()); return o; } -checkUnnamed1413(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed845(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1412(o[0]); - checkUnnamed1412(o[1]); + checkUnnamed844(o[0]); + checkUnnamed844(o[1]); } core.int buildCounterStatus = 0; @@ -1619,7 +1619,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1413(); + o.details = buildUnnamed845(); o.message = "foo"; } buildCounterStatus--; @@ -1630,7 +1630,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1413(o.details); + checkUnnamed845(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1642,6 +1642,7 @@ buildCounterSubmitJobRequest++; if (buildCounterSubmitJobRequest < 3) { o.job = buildJob(); + o.requestId = "foo"; } buildCounterSubmitJobRequest--; return o; @@ -1651,6 +1652,7 @@ buildCounterSubmitJobRequest++; if (buildCounterSubmitJobRequest < 3) { checkJob(o.job); + unittest.expect(o.requestId, unittest.equals('foo')); } buildCounterSubmitJobRequest--; } @@ -1985,6 +1987,7 @@ var arg_request = buildCluster(); var arg_projectId = "foo"; var arg_region = "foo"; + var arg_requestId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Cluster.fromJson(json); @@ -2037,6 +2040,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["requestId"].first, unittest.equals(arg_requestId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2046,7 +2051,8 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .create(arg_request, arg_projectId, arg_region, $fields: arg_$fields) + .create(arg_request, arg_projectId, arg_region, + requestId: arg_requestId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperation(response); }))); @@ -2059,6 +2065,7 @@ var arg_projectId = "foo"; var arg_region = "foo"; var arg_clusterName = "foo"; + var arg_requestId = "foo"; var arg_clusterUuid = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -2113,6 +2120,8 @@ } } unittest.expect( + queryMap["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect( queryMap["clusterUuid"].first, unittest.equals(arg_clusterUuid)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -2124,7 +2133,9 @@ }), true); res .delete(arg_projectId, arg_region, arg_clusterName, - clusterUuid: arg_clusterUuid, $fields: arg_$fields) + requestId: arg_requestId, + clusterUuid: arg_clusterUuid, + $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperation(response); }))); @@ -2295,9 +2306,9 @@ new api.DataprocApi(mock).projects.regions.clusters; var arg_projectId = "foo"; var arg_region = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2347,11 +2358,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2362,9 +2373,9 @@ }), true); res .list(arg_projectId, arg_region, - filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListClustersResponse(response); @@ -2379,8 +2390,9 @@ var arg_projectId = "foo"; var arg_region = "foo"; var arg_clusterName = "foo"; - var arg_gracefulDecommissionTimeout = "foo"; var arg_updateMask = "foo"; + var arg_gracefulDecommissionTimeout = "foo"; + var arg_requestId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Cluster.fromJson(json); @@ -2436,10 +2448,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["updateMask"].first, unittest.equals(arg_updateMask)); unittest.expect(queryMap["gracefulDecommissionTimeout"].first, unittest.equals(arg_gracefulDecommissionTimeout)); unittest.expect( - queryMap["updateMask"].first, unittest.equals(arg_updateMask)); + queryMap["requestId"].first, unittest.equals(arg_requestId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2450,8 +2464,9 @@ }), true); res .patch(arg_request, arg_projectId, arg_region, arg_clusterName, - gracefulDecommissionTimeout: arg_gracefulDecommissionTimeout, updateMask: arg_updateMask, + gracefulDecommissionTimeout: arg_gracefulDecommissionTimeout, + requestId: arg_requestId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperation(response); @@ -2699,11 +2714,11 @@ new api.DataprocApi(mock).projects.regions.jobs; var arg_projectId = "foo"; var arg_region = "foo"; + var arg_filter = "foo"; + var arg_jobStateMatcher = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_clusterName = "foo"; - var arg_filter = "foo"; - var arg_jobStateMatcher = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2753,15 +2768,15 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["jobStateMatcher"].first, + unittest.equals(arg_jobStateMatcher)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect( queryMap["clusterName"].first, unittest.equals(arg_clusterName)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect(queryMap["jobStateMatcher"].first, - unittest.equals(arg_jobStateMatcher)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2772,11 +2787,11 @@ }), true); res .list(arg_projectId, arg_region, + filter: arg_filter, + jobStateMatcher: arg_jobStateMatcher, pageToken: arg_pageToken, pageSize: arg_pageSize, clusterName: arg_clusterName, - filter: arg_filter, - jobStateMatcher: arg_jobStateMatcher, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListJobsResponse(response);
diff --git a/generated/googleapis/test/datastore/v1_test.dart b/generated/googleapis/test/datastore/v1_test.dart index b640043..9238c9e 100644 --- a/generated/googleapis/test/datastore/v1_test.dart +++ b/generated/googleapis/test/datastore/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1547() { +buildUnnamed702() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed1547(core.List<api.Key> o) { +checkUnnamed702(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -68,7 +68,7 @@ var o = new api.AllocateIdsRequest(); buildCounterAllocateIdsRequest++; if (buildCounterAllocateIdsRequest < 3) { - o.keys = buildUnnamed1547(); + o.keys = buildUnnamed702(); } buildCounterAllocateIdsRequest--; return o; @@ -77,19 +77,19 @@ checkAllocateIdsRequest(api.AllocateIdsRequest o) { buildCounterAllocateIdsRequest++; if (buildCounterAllocateIdsRequest < 3) { - checkUnnamed1547(o.keys); + checkUnnamed702(o.keys); } buildCounterAllocateIdsRequest--; } -buildUnnamed1548() { +buildUnnamed703() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed1548(core.List<api.Key> o) { +checkUnnamed703(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -100,7 +100,7 @@ var o = new api.AllocateIdsResponse(); buildCounterAllocateIdsResponse++; if (buildCounterAllocateIdsResponse < 3) { - o.keys = buildUnnamed1548(); + o.keys = buildUnnamed703(); } buildCounterAllocateIdsResponse--; return o; @@ -109,19 +109,19 @@ checkAllocateIdsResponse(api.AllocateIdsResponse o) { buildCounterAllocateIdsResponse++; if (buildCounterAllocateIdsResponse < 3) { - checkUnnamed1548(o.keys); + checkUnnamed703(o.keys); } buildCounterAllocateIdsResponse--; } -buildUnnamed1549() { +buildUnnamed704() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed1549(core.List<api.Value> o) { +checkUnnamed704(core.List<api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o[0]); checkValue(o[1]); @@ -132,7 +132,7 @@ var o = new api.ArrayValue(); buildCounterArrayValue++; if (buildCounterArrayValue < 3) { - o.values = buildUnnamed1549(); + o.values = buildUnnamed704(); } buildCounterArrayValue--; return o; @@ -141,7 +141,7 @@ checkArrayValue(api.ArrayValue o) { buildCounterArrayValue++; if (buildCounterArrayValue < 3) { - checkUnnamed1549(o.values); + checkUnnamed704(o.values); } buildCounterArrayValue--; } @@ -184,14 +184,14 @@ buildCounterBeginTransactionResponse--; } -buildUnnamed1550() { +buildUnnamed705() { var o = new core.List<api.Mutation>(); o.add(buildMutation()); o.add(buildMutation()); return o; } -checkUnnamed1550(core.List<api.Mutation> o) { +checkUnnamed705(core.List<api.Mutation> o) { unittest.expect(o, unittest.hasLength(2)); checkMutation(o[0]); checkMutation(o[1]); @@ -203,7 +203,7 @@ buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { o.mode = "foo"; - o.mutations = buildUnnamed1550(); + o.mutations = buildUnnamed705(); o.transaction = "foo"; } buildCounterCommitRequest--; @@ -214,20 +214,20 @@ buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { unittest.expect(o.mode, unittest.equals('foo')); - checkUnnamed1550(o.mutations); + checkUnnamed705(o.mutations); unittest.expect(o.transaction, unittest.equals('foo')); } buildCounterCommitRequest--; } -buildUnnamed1551() { +buildUnnamed706() { var o = new core.List<api.MutationResult>(); o.add(buildMutationResult()); o.add(buildMutationResult()); return o; } -checkUnnamed1551(core.List<api.MutationResult> o) { +checkUnnamed706(core.List<api.MutationResult> o) { unittest.expect(o, unittest.hasLength(2)); checkMutationResult(o[0]); checkMutationResult(o[1]); @@ -239,7 +239,7 @@ buildCounterCommitResponse++; if (buildCounterCommitResponse < 3) { o.indexUpdates = 42; - o.mutationResults = buildUnnamed1551(); + o.mutationResults = buildUnnamed706(); } buildCounterCommitResponse--; return o; @@ -249,19 +249,19 @@ buildCounterCommitResponse++; if (buildCounterCommitResponse < 3) { unittest.expect(o.indexUpdates, unittest.equals(42)); - checkUnnamed1551(o.mutationResults); + checkUnnamed706(o.mutationResults); } buildCounterCommitResponse--; } -buildUnnamed1552() { +buildUnnamed707() { var o = new core.List<api.Filter>(); o.add(buildFilter()); o.add(buildFilter()); return o; } -checkUnnamed1552(core.List<api.Filter> o) { +checkUnnamed707(core.List<api.Filter> o) { unittest.expect(o, unittest.hasLength(2)); checkFilter(o[0]); checkFilter(o[1]); @@ -272,7 +272,7 @@ var o = new api.CompositeFilter(); buildCounterCompositeFilter++; if (buildCounterCompositeFilter < 3) { - o.filters = buildUnnamed1552(); + o.filters = buildUnnamed707(); o.op = "foo"; } buildCounterCompositeFilter--; @@ -282,7 +282,7 @@ checkCompositeFilter(api.CompositeFilter o) { buildCounterCompositeFilter++; if (buildCounterCompositeFilter < 3) { - checkUnnamed1552(o.filters); + checkUnnamed707(o.filters); unittest.expect(o.op, unittest.equals('foo')); } buildCounterCompositeFilter--; @@ -303,14 +303,14 @@ buildCounterEmpty--; } -buildUnnamed1553() { +buildUnnamed708() { var o = new core.Map<core.String, api.Value>(); o["x"] = buildValue(); o["y"] = buildValue(); return o; } -checkUnnamed1553(core.Map<core.String, api.Value> o) { +checkUnnamed708(core.Map<core.String, api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o["x"]); checkValue(o["y"]); @@ -322,7 +322,7 @@ buildCounterEntity++; if (buildCounterEntity < 3) { o.key = buildKey(); - o.properties = buildUnnamed1553(); + o.properties = buildUnnamed708(); } buildCounterEntity--; return o; @@ -332,7 +332,7 @@ buildCounterEntity++; if (buildCounterEntity < 3) { checkKey(o.key); - checkUnnamed1553(o.properties); + checkUnnamed708(o.properties); } buildCounterEntity--; } @@ -381,14 +381,274 @@ buildCounterFilter--; } -buildUnnamed1554() { +buildUnnamed709() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1554(core.Map<core.String, core.String> o) { +checkUnnamed709(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 buildCounterGoogleDatastoreAdminV1CommonMetadata = 0; +buildGoogleDatastoreAdminV1CommonMetadata() { + var o = new api.GoogleDatastoreAdminV1CommonMetadata(); + buildCounterGoogleDatastoreAdminV1CommonMetadata++; + if (buildCounterGoogleDatastoreAdminV1CommonMetadata < 3) { + o.endTime = "foo"; + o.labels = buildUnnamed709(); + o.operationType = "foo"; + o.startTime = "foo"; + o.state = "foo"; + } + buildCounterGoogleDatastoreAdminV1CommonMetadata--; + return o; +} + +checkGoogleDatastoreAdminV1CommonMetadata( + api.GoogleDatastoreAdminV1CommonMetadata o) { + buildCounterGoogleDatastoreAdminV1CommonMetadata++; + if (buildCounterGoogleDatastoreAdminV1CommonMetadata < 3) { + unittest.expect(o.endTime, unittest.equals('foo')); + checkUnnamed709(o.labels); + unittest.expect(o.operationType, unittest.equals('foo')); + unittest.expect(o.startTime, unittest.equals('foo')); + unittest.expect(o.state, unittest.equals('foo')); + } + buildCounterGoogleDatastoreAdminV1CommonMetadata--; +} + +buildUnnamed710() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed710(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed711() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed711(core.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 buildCounterGoogleDatastoreAdminV1EntityFilter = 0; +buildGoogleDatastoreAdminV1EntityFilter() { + var o = new api.GoogleDatastoreAdminV1EntityFilter(); + buildCounterGoogleDatastoreAdminV1EntityFilter++; + if (buildCounterGoogleDatastoreAdminV1EntityFilter < 3) { + o.kinds = buildUnnamed710(); + o.namespaceIds = buildUnnamed711(); + } + buildCounterGoogleDatastoreAdminV1EntityFilter--; + return o; +} + +checkGoogleDatastoreAdminV1EntityFilter( + api.GoogleDatastoreAdminV1EntityFilter o) { + buildCounterGoogleDatastoreAdminV1EntityFilter++; + if (buildCounterGoogleDatastoreAdminV1EntityFilter < 3) { + checkUnnamed710(o.kinds); + checkUnnamed711(o.namespaceIds); + } + buildCounterGoogleDatastoreAdminV1EntityFilter--; +} + +core.int buildCounterGoogleDatastoreAdminV1ExportEntitiesMetadata = 0; +buildGoogleDatastoreAdminV1ExportEntitiesMetadata() { + var o = new api.GoogleDatastoreAdminV1ExportEntitiesMetadata(); + buildCounterGoogleDatastoreAdminV1ExportEntitiesMetadata++; + if (buildCounterGoogleDatastoreAdminV1ExportEntitiesMetadata < 3) { + o.common = buildGoogleDatastoreAdminV1CommonMetadata(); + o.entityFilter = buildGoogleDatastoreAdminV1EntityFilter(); + o.outputUrlPrefix = "foo"; + o.progressBytes = buildGoogleDatastoreAdminV1Progress(); + o.progressEntities = buildGoogleDatastoreAdminV1Progress(); + } + buildCounterGoogleDatastoreAdminV1ExportEntitiesMetadata--; + return o; +} + +checkGoogleDatastoreAdminV1ExportEntitiesMetadata( + api.GoogleDatastoreAdminV1ExportEntitiesMetadata o) { + buildCounterGoogleDatastoreAdminV1ExportEntitiesMetadata++; + if (buildCounterGoogleDatastoreAdminV1ExportEntitiesMetadata < 3) { + checkGoogleDatastoreAdminV1CommonMetadata(o.common); + checkGoogleDatastoreAdminV1EntityFilter(o.entityFilter); + unittest.expect(o.outputUrlPrefix, unittest.equals('foo')); + checkGoogleDatastoreAdminV1Progress(o.progressBytes); + checkGoogleDatastoreAdminV1Progress(o.progressEntities); + } + buildCounterGoogleDatastoreAdminV1ExportEntitiesMetadata--; +} + +buildUnnamed712() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed712(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +core.int buildCounterGoogleDatastoreAdminV1ExportEntitiesRequest = 0; +buildGoogleDatastoreAdminV1ExportEntitiesRequest() { + var o = new api.GoogleDatastoreAdminV1ExportEntitiesRequest(); + buildCounterGoogleDatastoreAdminV1ExportEntitiesRequest++; + if (buildCounterGoogleDatastoreAdminV1ExportEntitiesRequest < 3) { + o.entityFilter = buildGoogleDatastoreAdminV1EntityFilter(); + o.labels = buildUnnamed712(); + o.outputUrlPrefix = "foo"; + } + buildCounterGoogleDatastoreAdminV1ExportEntitiesRequest--; + return o; +} + +checkGoogleDatastoreAdminV1ExportEntitiesRequest( + api.GoogleDatastoreAdminV1ExportEntitiesRequest o) { + buildCounterGoogleDatastoreAdminV1ExportEntitiesRequest++; + if (buildCounterGoogleDatastoreAdminV1ExportEntitiesRequest < 3) { + checkGoogleDatastoreAdminV1EntityFilter(o.entityFilter); + checkUnnamed712(o.labels); + unittest.expect(o.outputUrlPrefix, unittest.equals('foo')); + } + buildCounterGoogleDatastoreAdminV1ExportEntitiesRequest--; +} + +core.int buildCounterGoogleDatastoreAdminV1ExportEntitiesResponse = 0; +buildGoogleDatastoreAdminV1ExportEntitiesResponse() { + var o = new api.GoogleDatastoreAdminV1ExportEntitiesResponse(); + buildCounterGoogleDatastoreAdminV1ExportEntitiesResponse++; + if (buildCounterGoogleDatastoreAdminV1ExportEntitiesResponse < 3) { + o.outputUrl = "foo"; + } + buildCounterGoogleDatastoreAdminV1ExportEntitiesResponse--; + return o; +} + +checkGoogleDatastoreAdminV1ExportEntitiesResponse( + api.GoogleDatastoreAdminV1ExportEntitiesResponse o) { + buildCounterGoogleDatastoreAdminV1ExportEntitiesResponse++; + if (buildCounterGoogleDatastoreAdminV1ExportEntitiesResponse < 3) { + unittest.expect(o.outputUrl, unittest.equals('foo')); + } + buildCounterGoogleDatastoreAdminV1ExportEntitiesResponse--; +} + +core.int buildCounterGoogleDatastoreAdminV1ImportEntitiesMetadata = 0; +buildGoogleDatastoreAdminV1ImportEntitiesMetadata() { + var o = new api.GoogleDatastoreAdminV1ImportEntitiesMetadata(); + buildCounterGoogleDatastoreAdminV1ImportEntitiesMetadata++; + if (buildCounterGoogleDatastoreAdminV1ImportEntitiesMetadata < 3) { + o.common = buildGoogleDatastoreAdminV1CommonMetadata(); + o.entityFilter = buildGoogleDatastoreAdminV1EntityFilter(); + o.inputUrl = "foo"; + o.progressBytes = buildGoogleDatastoreAdminV1Progress(); + o.progressEntities = buildGoogleDatastoreAdminV1Progress(); + } + buildCounterGoogleDatastoreAdminV1ImportEntitiesMetadata--; + return o; +} + +checkGoogleDatastoreAdminV1ImportEntitiesMetadata( + api.GoogleDatastoreAdminV1ImportEntitiesMetadata o) { + buildCounterGoogleDatastoreAdminV1ImportEntitiesMetadata++; + if (buildCounterGoogleDatastoreAdminV1ImportEntitiesMetadata < 3) { + checkGoogleDatastoreAdminV1CommonMetadata(o.common); + checkGoogleDatastoreAdminV1EntityFilter(o.entityFilter); + unittest.expect(o.inputUrl, unittest.equals('foo')); + checkGoogleDatastoreAdminV1Progress(o.progressBytes); + checkGoogleDatastoreAdminV1Progress(o.progressEntities); + } + buildCounterGoogleDatastoreAdminV1ImportEntitiesMetadata--; +} + +buildUnnamed713() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed713(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 buildCounterGoogleDatastoreAdminV1ImportEntitiesRequest = 0; +buildGoogleDatastoreAdminV1ImportEntitiesRequest() { + var o = new api.GoogleDatastoreAdminV1ImportEntitiesRequest(); + buildCounterGoogleDatastoreAdminV1ImportEntitiesRequest++; + if (buildCounterGoogleDatastoreAdminV1ImportEntitiesRequest < 3) { + o.entityFilter = buildGoogleDatastoreAdminV1EntityFilter(); + o.inputUrl = "foo"; + o.labels = buildUnnamed713(); + } + buildCounterGoogleDatastoreAdminV1ImportEntitiesRequest--; + return o; +} + +checkGoogleDatastoreAdminV1ImportEntitiesRequest( + api.GoogleDatastoreAdminV1ImportEntitiesRequest o) { + buildCounterGoogleDatastoreAdminV1ImportEntitiesRequest++; + if (buildCounterGoogleDatastoreAdminV1ImportEntitiesRequest < 3) { + checkGoogleDatastoreAdminV1EntityFilter(o.entityFilter); + unittest.expect(o.inputUrl, unittest.equals('foo')); + checkUnnamed713(o.labels); + } + buildCounterGoogleDatastoreAdminV1ImportEntitiesRequest--; +} + +core.int buildCounterGoogleDatastoreAdminV1Progress = 0; +buildGoogleDatastoreAdminV1Progress() { + var o = new api.GoogleDatastoreAdminV1Progress(); + buildCounterGoogleDatastoreAdminV1Progress++; + if (buildCounterGoogleDatastoreAdminV1Progress < 3) { + o.workCompleted = "foo"; + o.workEstimated = "foo"; + } + buildCounterGoogleDatastoreAdminV1Progress--; + return o; +} + +checkGoogleDatastoreAdminV1Progress(api.GoogleDatastoreAdminV1Progress o) { + buildCounterGoogleDatastoreAdminV1Progress++; + if (buildCounterGoogleDatastoreAdminV1Progress < 3) { + unittest.expect(o.workCompleted, unittest.equals('foo')); + unittest.expect(o.workEstimated, unittest.equals('foo')); + } + buildCounterGoogleDatastoreAdminV1Progress--; +} + +buildUnnamed714() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed714(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')); @@ -400,7 +660,7 @@ buildCounterGoogleDatastoreAdminV1beta1CommonMetadata++; if (buildCounterGoogleDatastoreAdminV1beta1CommonMetadata < 3) { o.endTime = "foo"; - o.labels = buildUnnamed1554(); + o.labels = buildUnnamed714(); o.operationType = "foo"; o.startTime = "foo"; o.state = "foo"; @@ -414,7 +674,7 @@ buildCounterGoogleDatastoreAdminV1beta1CommonMetadata++; if (buildCounterGoogleDatastoreAdminV1beta1CommonMetadata < 3) { unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed1554(o.labels); + checkUnnamed714(o.labels); unittest.expect(o.operationType, unittest.equals('foo')); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); @@ -422,27 +682,27 @@ buildCounterGoogleDatastoreAdminV1beta1CommonMetadata--; } -buildUnnamed1555() { +buildUnnamed715() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1555(core.List<core.String> o) { +checkUnnamed715(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1556() { +buildUnnamed716() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1556(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')); @@ -453,8 +713,8 @@ var o = new api.GoogleDatastoreAdminV1beta1EntityFilter(); buildCounterGoogleDatastoreAdminV1beta1EntityFilter++; if (buildCounterGoogleDatastoreAdminV1beta1EntityFilter < 3) { - o.kinds = buildUnnamed1555(); - o.namespaceIds = buildUnnamed1556(); + o.kinds = buildUnnamed715(); + o.namespaceIds = buildUnnamed716(); } buildCounterGoogleDatastoreAdminV1beta1EntityFilter--; return o; @@ -464,8 +724,8 @@ api.GoogleDatastoreAdminV1beta1EntityFilter o) { buildCounterGoogleDatastoreAdminV1beta1EntityFilter++; if (buildCounterGoogleDatastoreAdminV1beta1EntityFilter < 3) { - checkUnnamed1555(o.kinds); - checkUnnamed1556(o.namespaceIds); + checkUnnamed715(o.kinds); + checkUnnamed716(o.namespaceIds); } buildCounterGoogleDatastoreAdminV1beta1EntityFilter--; } @@ -568,14 +828,14 @@ buildCounterGoogleDatastoreAdminV1beta1Progress--; } -buildUnnamed1557() { +buildUnnamed717() { var o = new core.List<api.GoogleLongrunningOperation>(); o.add(buildGoogleLongrunningOperation()); o.add(buildGoogleLongrunningOperation()); return o; } -checkUnnamed1557(core.List<api.GoogleLongrunningOperation> o) { +checkUnnamed717(core.List<api.GoogleLongrunningOperation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleLongrunningOperation(o[0]); checkGoogleLongrunningOperation(o[1]); @@ -587,7 +847,7 @@ buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1557(); + o.operations = buildUnnamed717(); } buildCounterGoogleLongrunningListOperationsResponse--; return o; @@ -598,12 +858,12 @@ buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1557(o.operations); + checkUnnamed717(o.operations); } buildCounterGoogleLongrunningListOperationsResponse--; } -buildUnnamed1558() { +buildUnnamed718() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -618,7 +878,7 @@ return o; } -checkUnnamed1558(core.Map<core.String, core.Object> o) { +checkUnnamed718(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)); @@ -632,7 +892,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1559() { +buildUnnamed719() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -647,7 +907,7 @@ return o; } -checkUnnamed1559(core.Map<core.String, core.Object> o) { +checkUnnamed719(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)); @@ -668,9 +928,9 @@ if (buildCounterGoogleLongrunningOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1558(); + o.metadata = buildUnnamed718(); o.name = "foo"; - o.response = buildUnnamed1559(); + o.response = buildUnnamed719(); } buildCounterGoogleLongrunningOperation--; return o; @@ -681,34 +941,34 @@ if (buildCounterGoogleLongrunningOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1558(o.metadata); + checkUnnamed718(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1559(o.response); + checkUnnamed719(o.response); } buildCounterGoogleLongrunningOperation--; } -buildUnnamed1560() { +buildUnnamed720() { var o = new core.Map<core.String, api.GqlQueryParameter>(); o["x"] = buildGqlQueryParameter(); o["y"] = buildGqlQueryParameter(); return o; } -checkUnnamed1560(core.Map<core.String, api.GqlQueryParameter> o) { +checkUnnamed720(core.Map<core.String, api.GqlQueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGqlQueryParameter(o["x"]); checkGqlQueryParameter(o["y"]); } -buildUnnamed1561() { +buildUnnamed721() { var o = new core.List<api.GqlQueryParameter>(); o.add(buildGqlQueryParameter()); o.add(buildGqlQueryParameter()); return o; } -checkUnnamed1561(core.List<api.GqlQueryParameter> o) { +checkUnnamed721(core.List<api.GqlQueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGqlQueryParameter(o[0]); checkGqlQueryParameter(o[1]); @@ -720,8 +980,8 @@ buildCounterGqlQuery++; if (buildCounterGqlQuery < 3) { o.allowLiterals = true; - o.namedBindings = buildUnnamed1560(); - o.positionalBindings = buildUnnamed1561(); + o.namedBindings = buildUnnamed720(); + o.positionalBindings = buildUnnamed721(); o.queryString = "foo"; } buildCounterGqlQuery--; @@ -732,8 +992,8 @@ buildCounterGqlQuery++; if (buildCounterGqlQuery < 3) { unittest.expect(o.allowLiterals, unittest.isTrue); - checkUnnamed1560(o.namedBindings); - checkUnnamed1561(o.positionalBindings); + checkUnnamed720(o.namedBindings); + checkUnnamed721(o.positionalBindings); unittest.expect(o.queryString, unittest.equals('foo')); } buildCounterGqlQuery--; @@ -760,14 +1020,14 @@ buildCounterGqlQueryParameter--; } -buildUnnamed1562() { +buildUnnamed722() { var o = new core.List<api.PathElement>(); o.add(buildPathElement()); o.add(buildPathElement()); return o; } -checkUnnamed1562(core.List<api.PathElement> o) { +checkUnnamed722(core.List<api.PathElement> o) { unittest.expect(o, unittest.hasLength(2)); checkPathElement(o[0]); checkPathElement(o[1]); @@ -779,7 +1039,7 @@ buildCounterKey++; if (buildCounterKey < 3) { o.partitionId = buildPartitionId(); - o.path = buildUnnamed1562(); + o.path = buildUnnamed722(); } buildCounterKey--; return o; @@ -789,7 +1049,7 @@ buildCounterKey++; if (buildCounterKey < 3) { checkPartitionId(o.partitionId); - checkUnnamed1562(o.path); + checkUnnamed722(o.path); } buildCounterKey--; } @@ -834,14 +1094,14 @@ buildCounterLatLng--; } -buildUnnamed1563() { +buildUnnamed723() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed1563(core.List<api.Key> o) { +checkUnnamed723(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -852,7 +1112,7 @@ var o = new api.LookupRequest(); buildCounterLookupRequest++; if (buildCounterLookupRequest < 3) { - o.keys = buildUnnamed1563(); + o.keys = buildUnnamed723(); o.readOptions = buildReadOptions(); } buildCounterLookupRequest--; @@ -862,46 +1122,46 @@ checkLookupRequest(api.LookupRequest o) { buildCounterLookupRequest++; if (buildCounterLookupRequest < 3) { - checkUnnamed1563(o.keys); + checkUnnamed723(o.keys); checkReadOptions(o.readOptions); } buildCounterLookupRequest--; } -buildUnnamed1564() { +buildUnnamed724() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed1564(core.List<api.Key> o) { +checkUnnamed724(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); } -buildUnnamed1565() { +buildUnnamed725() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed1565(core.List<api.EntityResult> o) { +checkUnnamed725(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); } -buildUnnamed1566() { +buildUnnamed726() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed1566(core.List<api.EntityResult> o) { +checkUnnamed726(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); @@ -912,9 +1172,9 @@ var o = new api.LookupResponse(); buildCounterLookupResponse++; if (buildCounterLookupResponse < 3) { - o.deferred = buildUnnamed1564(); - o.found = buildUnnamed1565(); - o.missing = buildUnnamed1566(); + o.deferred = buildUnnamed724(); + o.found = buildUnnamed725(); + o.missing = buildUnnamed726(); } buildCounterLookupResponse--; return o; @@ -923,9 +1183,9 @@ checkLookupResponse(api.LookupResponse o) { buildCounterLookupResponse++; if (buildCounterLookupResponse < 3) { - checkUnnamed1564(o.deferred); - checkUnnamed1565(o.found); - checkUnnamed1566(o.missing); + checkUnnamed724(o.deferred); + checkUnnamed725(o.found); + checkUnnamed726(o.missing); } buildCounterLookupResponse--; } @@ -1106,53 +1366,53 @@ buildCounterPropertyReference--; } -buildUnnamed1567() { +buildUnnamed727() { var o = new core.List<api.PropertyReference>(); o.add(buildPropertyReference()); o.add(buildPropertyReference()); return o; } -checkUnnamed1567(core.List<api.PropertyReference> o) { +checkUnnamed727(core.List<api.PropertyReference> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyReference(o[0]); checkPropertyReference(o[1]); } -buildUnnamed1568() { +buildUnnamed728() { var o = new core.List<api.KindExpression>(); o.add(buildKindExpression()); o.add(buildKindExpression()); return o; } -checkUnnamed1568(core.List<api.KindExpression> o) { +checkUnnamed728(core.List<api.KindExpression> o) { unittest.expect(o, unittest.hasLength(2)); checkKindExpression(o[0]); checkKindExpression(o[1]); } -buildUnnamed1569() { +buildUnnamed729() { var o = new core.List<api.PropertyOrder>(); o.add(buildPropertyOrder()); o.add(buildPropertyOrder()); return o; } -checkUnnamed1569(core.List<api.PropertyOrder> o) { +checkUnnamed729(core.List<api.PropertyOrder> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyOrder(o[0]); checkPropertyOrder(o[1]); } -buildUnnamed1570() { +buildUnnamed730() { var o = new core.List<api.Projection>(); o.add(buildProjection()); o.add(buildProjection()); return o; } -checkUnnamed1570(core.List<api.Projection> o) { +checkUnnamed730(core.List<api.Projection> o) { unittest.expect(o, unittest.hasLength(2)); checkProjection(o[0]); checkProjection(o[1]); @@ -1163,14 +1423,14 @@ var o = new api.Query(); buildCounterQuery++; if (buildCounterQuery < 3) { - o.distinctOn = buildUnnamed1567(); + o.distinctOn = buildUnnamed727(); o.endCursor = "foo"; o.filter = buildFilter(); - o.kind = buildUnnamed1568(); + o.kind = buildUnnamed728(); o.limit = 42; o.offset = 42; - o.order = buildUnnamed1569(); - o.projection = buildUnnamed1570(); + o.order = buildUnnamed729(); + o.projection = buildUnnamed730(); o.startCursor = "foo"; } buildCounterQuery--; @@ -1180,27 +1440,27 @@ checkQuery(api.Query o) { buildCounterQuery++; if (buildCounterQuery < 3) { - checkUnnamed1567(o.distinctOn); + checkUnnamed727(o.distinctOn); unittest.expect(o.endCursor, unittest.equals('foo')); checkFilter(o.filter); - checkUnnamed1568(o.kind); + checkUnnamed728(o.kind); unittest.expect(o.limit, unittest.equals(42)); unittest.expect(o.offset, unittest.equals(42)); - checkUnnamed1569(o.order); - checkUnnamed1570(o.projection); + checkUnnamed729(o.order); + checkUnnamed730(o.projection); unittest.expect(o.startCursor, unittest.equals('foo')); } buildCounterQuery--; } -buildUnnamed1571() { +buildUnnamed731() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed1571(core.List<api.EntityResult> o) { +checkUnnamed731(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); @@ -1213,7 +1473,7 @@ if (buildCounterQueryResultBatch < 3) { o.endCursor = "foo"; o.entityResultType = "foo"; - o.entityResults = buildUnnamed1571(); + o.entityResults = buildUnnamed731(); o.moreResults = "foo"; o.skippedCursor = "foo"; o.skippedResults = 42; @@ -1228,7 +1488,7 @@ if (buildCounterQueryResultBatch < 3) { unittest.expect(o.endCursor, unittest.equals('foo')); unittest.expect(o.entityResultType, unittest.equals('foo')); - checkUnnamed1571(o.entityResults); + checkUnnamed731(o.entityResults); unittest.expect(o.moreResults, unittest.equals('foo')); unittest.expect(o.skippedCursor, unittest.equals('foo')); unittest.expect(o.skippedResults, unittest.equals(42)); @@ -1292,14 +1552,14 @@ buildCounterReadWrite--; } -buildUnnamed1572() { +buildUnnamed732() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed1572(core.List<api.Key> o) { +checkUnnamed732(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -1311,7 +1571,7 @@ buildCounterReserveIdsRequest++; if (buildCounterReserveIdsRequest < 3) { o.databaseId = "foo"; - o.keys = buildUnnamed1572(); + o.keys = buildUnnamed732(); } buildCounterReserveIdsRequest--; return o; @@ -1321,7 +1581,7 @@ buildCounterReserveIdsRequest++; if (buildCounterReserveIdsRequest < 3) { unittest.expect(o.databaseId, unittest.equals('foo')); - checkUnnamed1572(o.keys); + checkUnnamed732(o.keys); } buildCounterReserveIdsRequest--; } @@ -1421,7 +1681,7 @@ buildCounterRunQueryResponse--; } -buildUnnamed1573() { +buildUnnamed733() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1436,7 +1696,7 @@ return o; } -checkUnnamed1573(core.Map<core.String, core.Object> o) { +checkUnnamed733(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)); @@ -1450,17 +1710,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1574() { +buildUnnamed734() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1573()); - o.add(buildUnnamed1573()); + o.add(buildUnnamed733()); + o.add(buildUnnamed733()); return o; } -checkUnnamed1574(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed734(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1573(o[0]); - checkUnnamed1573(o[1]); + checkUnnamed733(o[0]); + checkUnnamed733(o[1]); } core.int buildCounterStatus = 0; @@ -1469,7 +1729,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1574(); + o.details = buildUnnamed734(); o.message = "foo"; } buildCounterStatus--; @@ -1480,7 +1740,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1574(o.details); + checkUnnamed734(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1647,6 +1907,76 @@ }); }); + unittest.group("obj-schema-GoogleDatastoreAdminV1CommonMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleDatastoreAdminV1CommonMetadata(); + var od = + new api.GoogleDatastoreAdminV1CommonMetadata.fromJson(o.toJson()); + checkGoogleDatastoreAdminV1CommonMetadata(od); + }); + }); + + unittest.group("obj-schema-GoogleDatastoreAdminV1EntityFilter", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleDatastoreAdminV1EntityFilter(); + var od = new api.GoogleDatastoreAdminV1EntityFilter.fromJson(o.toJson()); + checkGoogleDatastoreAdminV1EntityFilter(od); + }); + }); + + unittest.group("obj-schema-GoogleDatastoreAdminV1ExportEntitiesMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleDatastoreAdminV1ExportEntitiesMetadata(); + var od = new api.GoogleDatastoreAdminV1ExportEntitiesMetadata.fromJson( + o.toJson()); + checkGoogleDatastoreAdminV1ExportEntitiesMetadata(od); + }); + }); + + unittest.group("obj-schema-GoogleDatastoreAdminV1ExportEntitiesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleDatastoreAdminV1ExportEntitiesRequest(); + var od = new api.GoogleDatastoreAdminV1ExportEntitiesRequest.fromJson( + o.toJson()); + checkGoogleDatastoreAdminV1ExportEntitiesRequest(od); + }); + }); + + unittest.group("obj-schema-GoogleDatastoreAdminV1ExportEntitiesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleDatastoreAdminV1ExportEntitiesResponse(); + var od = new api.GoogleDatastoreAdminV1ExportEntitiesResponse.fromJson( + o.toJson()); + checkGoogleDatastoreAdminV1ExportEntitiesResponse(od); + }); + }); + + unittest.group("obj-schema-GoogleDatastoreAdminV1ImportEntitiesMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleDatastoreAdminV1ImportEntitiesMetadata(); + var od = new api.GoogleDatastoreAdminV1ImportEntitiesMetadata.fromJson( + o.toJson()); + checkGoogleDatastoreAdminV1ImportEntitiesMetadata(od); + }); + }); + + unittest.group("obj-schema-GoogleDatastoreAdminV1ImportEntitiesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleDatastoreAdminV1ImportEntitiesRequest(); + var od = new api.GoogleDatastoreAdminV1ImportEntitiesRequest.fromJson( + o.toJson()); + checkGoogleDatastoreAdminV1ImportEntitiesRequest(od); + }); + }); + + unittest.group("obj-schema-GoogleDatastoreAdminV1Progress", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleDatastoreAdminV1Progress(); + var od = new api.GoogleDatastoreAdminV1Progress.fromJson(o.toJson()); + checkGoogleDatastoreAdminV1Progress(od); + }); + }); + unittest.group("obj-schema-GoogleDatastoreAdminV1beta1CommonMetadata", () { unittest.test("to-json--from-json", () { var o = buildGoogleDatastoreAdminV1beta1CommonMetadata(); @@ -2145,6 +2475,134 @@ }))); }); + unittest.test("method--export", () { + var mock = new HttpServerMock(); + api.ProjectsResourceApi res = new api.DatastoreApi(mock).projects; + var arg_request = buildGoogleDatastoreAdminV1ExportEntitiesRequest(); + var arg_projectId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.GoogleDatastoreAdminV1ExportEntitiesRequest.fromJson(json); + checkGoogleDatastoreAdminV1ExportEntitiesRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 12), + unittest.equals("v1/projects/")); + pathOffset += 12; + index = path.indexOf(":export", 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(":export")); + pathOffset += 7; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .export(arg_request, arg_projectId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleLongrunningOperation(response); + }))); + }); + + unittest.test("method--import", () { + var mock = new HttpServerMock(); + api.ProjectsResourceApi res = new api.DatastoreApi(mock).projects; + var arg_request = buildGoogleDatastoreAdminV1ImportEntitiesRequest(); + var arg_projectId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.GoogleDatastoreAdminV1ImportEntitiesRequest.fromJson(json); + checkGoogleDatastoreAdminV1ImportEntitiesRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 12), + unittest.equals("v1/projects/")); + pathOffset += 12; + index = path.indexOf(":import", 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(":import")); + pathOffset += 7; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .import(arg_request, arg_projectId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleLongrunningOperation(response); + }))); + }); + unittest.test("method--lookup", () { var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.DatastoreApi(mock).projects; @@ -2560,9 +3018,9 @@ api.ProjectsOperationsResourceApi res = new api.DatastoreApi(mock).projects.operations; var arg_name = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2595,11 +3053,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2611,9 +3069,9 @@ }), true); res .list(arg_name, + filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, - filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleLongrunningListOperationsResponse(response);
diff --git a/generated/googleapis/test/deploymentmanager/v2_test.dart b/generated/googleapis/test/deploymentmanager/v2_test.dart index c934cf3..f702dec 100644 --- a/generated/googleapis/test/deploymentmanager/v2_test.dart +++ b/generated/googleapis/test/deploymentmanager/v2_test.dart
@@ -50,27 +50,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed393() { +buildUnnamed103() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed393(core.List<api.AuditLogConfig> o) { +checkUnnamed103(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); } -buildUnnamed394() { +buildUnnamed104() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed394(core.List<core.String> o) { +checkUnnamed104(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -81,8 +81,8 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed393(); - o.exemptedMembers = buildUnnamed394(); + o.auditLogConfigs = buildUnnamed103(); + o.exemptedMembers = buildUnnamed104(); o.service = "foo"; } buildCounterAuditConfig--; @@ -92,21 +92,21 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed393(o.auditLogConfigs); - checkUnnamed394(o.exemptedMembers); + checkUnnamed103(o.auditLogConfigs); + checkUnnamed104(o.exemptedMembers); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed395() { +buildUnnamed105() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed395(core.List<core.String> o) { +checkUnnamed105(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -117,7 +117,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed395(); + o.exemptedMembers = buildUnnamed105(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -127,7 +127,7 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed395(o.exemptedMembers); + checkUnnamed105(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; @@ -152,14 +152,14 @@ buildCounterAuthorizationLoggingOptions--; } -buildUnnamed396() { +buildUnnamed106() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed396(core.List<core.String> o) { +checkUnnamed106(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -171,7 +171,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { o.condition = buildExpr(); - o.members = buildUnnamed396(); + o.members = buildUnnamed106(); o.role = "foo"; } buildCounterBinding--; @@ -182,20 +182,20 @@ buildCounterBinding++; if (buildCounterBinding < 3) { checkExpr(o.condition); - checkUnnamed396(o.members); + checkUnnamed106(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed397() { +buildUnnamed107() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed397(core.List<core.String> o) { +checkUnnamed107(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -211,7 +211,7 @@ o.svc = "foo"; o.sys = "foo"; o.value = "foo"; - o.values = buildUnnamed397(); + o.values = buildUnnamed107(); } buildCounterCondition--; return o; @@ -225,7 +225,7 @@ unittest.expect(o.svc, unittest.equals('foo')); unittest.expect(o.sys, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); - checkUnnamed397(o.values); + checkUnnamed107(o.values); } buildCounterCondition--; } @@ -249,14 +249,14 @@ buildCounterConfigFile--; } -buildUnnamed398() { +buildUnnamed108() { var o = new core.List<api.DeploymentLabelEntry>(); o.add(buildDeploymentLabelEntry()); o.add(buildDeploymentLabelEntry()); return o; } -checkUnnamed398(core.List<api.DeploymentLabelEntry> o) { +checkUnnamed108(core.List<api.DeploymentLabelEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDeploymentLabelEntry(o[0]); checkDeploymentLabelEntry(o[1]); @@ -271,7 +271,7 @@ o.fingerprint = "foo"; o.id = "foo"; o.insertTime = "foo"; - o.labels = buildUnnamed398(); + o.labels = buildUnnamed108(); o.manifest = "foo"; o.name = "foo"; o.operation = buildOperation(); @@ -290,7 +290,7 @@ unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.insertTime, unittest.equals('foo')); - checkUnnamed398(o.labels); + checkUnnamed108(o.labels); unittest.expect(o.manifest, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkOperation(o.operation); @@ -322,14 +322,14 @@ buildCounterDeploymentLabelEntry--; } -buildUnnamed399() { +buildUnnamed109() { var o = new core.List<api.DeploymentUpdateLabelEntry>(); o.add(buildDeploymentUpdateLabelEntry()); o.add(buildDeploymentUpdateLabelEntry()); return o; } -checkUnnamed399(core.List<api.DeploymentUpdateLabelEntry> o) { +checkUnnamed109(core.List<api.DeploymentUpdateLabelEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDeploymentUpdateLabelEntry(o[0]); checkDeploymentUpdateLabelEntry(o[1]); @@ -341,7 +341,7 @@ buildCounterDeploymentUpdate++; if (buildCounterDeploymentUpdate < 3) { o.description = "foo"; - o.labels = buildUnnamed399(); + o.labels = buildUnnamed109(); o.manifest = "foo"; } buildCounterDeploymentUpdate--; @@ -352,7 +352,7 @@ buildCounterDeploymentUpdate++; if (buildCounterDeploymentUpdate < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed399(o.labels); + checkUnnamed109(o.labels); unittest.expect(o.manifest, unittest.equals('foo')); } buildCounterDeploymentUpdate--; @@ -398,14 +398,14 @@ buildCounterDeploymentsCancelPreviewRequest--; } -buildUnnamed400() { +buildUnnamed110() { var o = new core.List<api.Deployment>(); o.add(buildDeployment()); o.add(buildDeployment()); return o; } -checkUnnamed400(core.List<api.Deployment> o) { +checkUnnamed110(core.List<api.Deployment> o) { unittest.expect(o, unittest.hasLength(2)); checkDeployment(o[0]); checkDeployment(o[1]); @@ -416,7 +416,7 @@ var o = new api.DeploymentsListResponse(); buildCounterDeploymentsListResponse++; if (buildCounterDeploymentsListResponse < 3) { - o.deployments = buildUnnamed400(); + o.deployments = buildUnnamed110(); o.nextPageToken = "foo"; } buildCounterDeploymentsListResponse--; @@ -426,7 +426,7 @@ checkDeploymentsListResponse(api.DeploymentsListResponse o) { buildCounterDeploymentsListResponse++; if (buildCounterDeploymentsListResponse < 3) { - checkUnnamed400(o.deployments); + checkUnnamed110(o.deployments); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDeploymentsListResponse--; @@ -476,6 +476,42 @@ buildCounterExpr--; } +buildUnnamed111() { + var o = new core.List<api.Binding>(); + o.add(buildBinding()); + o.add(buildBinding()); + return o; +} + +checkUnnamed111(core.List<api.Binding> o) { + unittest.expect(o, unittest.hasLength(2)); + checkBinding(o[0]); + checkBinding(o[1]); +} + +core.int buildCounterGlobalSetPolicyRequest = 0; +buildGlobalSetPolicyRequest() { + var o = new api.GlobalSetPolicyRequest(); + buildCounterGlobalSetPolicyRequest++; + if (buildCounterGlobalSetPolicyRequest < 3) { + o.bindings = buildUnnamed111(); + o.etag = "foo"; + o.policy = buildPolicy(); + } + buildCounterGlobalSetPolicyRequest--; + return o; +} + +checkGlobalSetPolicyRequest(api.GlobalSetPolicyRequest o) { + buildCounterGlobalSetPolicyRequest++; + if (buildCounterGlobalSetPolicyRequest < 3) { + checkUnnamed111(o.bindings); + unittest.expect(o.etag, unittest.equals('foo')); + checkPolicy(o.policy); + } + buildCounterGlobalSetPolicyRequest--; +} + core.int buildCounterImportFile = 0; buildImportFile() { var o = new api.ImportFile(); @@ -581,14 +617,14 @@ buildCounterLogConfigDataAccessOptions--; } -buildUnnamed401() { +buildUnnamed112() { var o = new core.List<api.ImportFile>(); o.add(buildImportFile()); o.add(buildImportFile()); return o; } -checkUnnamed401(core.List<api.ImportFile> o) { +checkUnnamed112(core.List<api.ImportFile> o) { unittest.expect(o, unittest.hasLength(2)); checkImportFile(o[0]); checkImportFile(o[1]); @@ -602,7 +638,7 @@ o.config = buildConfigFile(); o.expandedConfig = "foo"; o.id = "foo"; - o.imports = buildUnnamed401(); + o.imports = buildUnnamed112(); o.insertTime = "foo"; o.layout = "foo"; o.name = "foo"; @@ -618,7 +654,7 @@ checkConfigFile(o.config); unittest.expect(o.expandedConfig, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed401(o.imports); + checkUnnamed112(o.imports); unittest.expect(o.insertTime, unittest.equals('foo')); unittest.expect(o.layout, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -627,14 +663,14 @@ buildCounterManifest--; } -buildUnnamed402() { +buildUnnamed113() { var o = new core.List<api.Manifest>(); o.add(buildManifest()); o.add(buildManifest()); return o; } -checkUnnamed402(core.List<api.Manifest> o) { +checkUnnamed113(core.List<api.Manifest> o) { unittest.expect(o, unittest.hasLength(2)); checkManifest(o[0]); checkManifest(o[1]); @@ -645,7 +681,7 @@ var o = new api.ManifestsListResponse(); buildCounterManifestsListResponse++; if (buildCounterManifestsListResponse < 3) { - o.manifests = buildUnnamed402(); + o.manifests = buildUnnamed113(); o.nextPageToken = "foo"; } buildCounterManifestsListResponse--; @@ -655,7 +691,7 @@ checkManifestsListResponse(api.ManifestsListResponse o) { buildCounterManifestsListResponse++; if (buildCounterManifestsListResponse < 3) { - checkUnnamed402(o.manifests); + checkUnnamed113(o.manifests); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterManifestsListResponse--; @@ -684,14 +720,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed403() { +buildUnnamed114() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed403(core.List<api.OperationErrorErrors> o) { +checkUnnamed114(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -702,7 +738,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed403(); + o.errors = buildUnnamed114(); } buildCounterOperationError--; return o; @@ -711,7 +747,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed403(o.errors); + checkUnnamed114(o.errors); } buildCounterOperationError--; } @@ -737,14 +773,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed404() { +buildUnnamed115() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed404(core.List<api.OperationWarningsData> o) { +checkUnnamed115(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -756,7 +792,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed404(); + o.data = buildUnnamed115(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -767,20 +803,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed404(o.data); + checkUnnamed115(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed405() { +buildUnnamed116() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed405(core.List<api.OperationWarnings> o) { +checkUnnamed116(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -812,7 +848,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed405(); + o.warnings = buildUnnamed116(); o.zone = "foo"; } buildCounterOperation--; @@ -843,20 +879,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed405(o.warnings); + checkUnnamed116(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed406() { +buildUnnamed117() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed406(core.List<api.Operation> o) { +checkUnnamed117(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -868,7 +904,7 @@ buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed406(); + o.operations = buildUnnamed117(); } buildCounterOperationsListResponse--; return o; @@ -878,45 +914,45 @@ buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed406(o.operations); + checkUnnamed117(o.operations); } buildCounterOperationsListResponse--; } -buildUnnamed407() { +buildUnnamed118() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed407(core.List<api.AuditConfig> o) { +checkUnnamed118(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed408() { +buildUnnamed119() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed408(core.List<api.Binding> o) { +checkUnnamed119(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); } -buildUnnamed409() { +buildUnnamed120() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed409(core.List<api.Rule> o) { +checkUnnamed120(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -927,11 +963,11 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed407(); - o.bindings = buildUnnamed408(); + o.auditConfigs = buildUnnamed118(); + o.bindings = buildUnnamed119(); o.etag = "foo"; o.iamOwned = true; - o.rules = buildUnnamed409(); + o.rules = buildUnnamed120(); o.version = 42; } buildCounterPolicy--; @@ -941,11 +977,11 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed407(o.auditConfigs); - checkUnnamed408(o.bindings); + checkUnnamed118(o.auditConfigs); + checkUnnamed119(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.iamOwned, unittest.isTrue); - checkUnnamed409(o.rules); + checkUnnamed120(o.rules); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; @@ -972,14 +1008,14 @@ buildCounterResourceWarningsData--; } -buildUnnamed410() { +buildUnnamed121() { var o = new core.List<api.ResourceWarningsData>(); o.add(buildResourceWarningsData()); o.add(buildResourceWarningsData()); return o; } -checkUnnamed410(core.List<api.ResourceWarningsData> o) { +checkUnnamed121(core.List<api.ResourceWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceWarningsData(o[0]); checkResourceWarningsData(o[1]); @@ -991,7 +1027,7 @@ buildCounterResourceWarnings++; if (buildCounterResourceWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed410(); + o.data = buildUnnamed121(); o.message = "foo"; } buildCounterResourceWarnings--; @@ -1002,20 +1038,20 @@ buildCounterResourceWarnings++; if (buildCounterResourceWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed410(o.data); + checkUnnamed121(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterResourceWarnings--; } -buildUnnamed411() { +buildUnnamed122() { var o = new core.List<api.ResourceWarnings>(); o.add(buildResourceWarnings()); o.add(buildResourceWarnings()); return o; } -checkUnnamed411(core.List<api.ResourceWarnings> o) { +checkUnnamed122(core.List<api.ResourceWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceWarnings(o[0]); checkResourceWarnings(o[1]); @@ -1037,7 +1073,7 @@ o.update = buildResourceUpdate(); o.updateTime = "foo"; o.url = "foo"; - o.warnings = buildUnnamed411(); + o.warnings = buildUnnamed122(); } buildCounterResource--; return o; @@ -1057,7 +1093,7 @@ checkResourceUpdate(o.update); unittest.expect(o.updateTime, unittest.equals('foo')); unittest.expect(o.url, unittest.equals('foo')); - checkUnnamed411(o.warnings); + checkUnnamed122(o.warnings); } buildCounterResource--; } @@ -1104,14 +1140,14 @@ buildCounterResourceUpdateErrorErrors--; } -buildUnnamed412() { +buildUnnamed123() { var o = new core.List<api.ResourceUpdateErrorErrors>(); o.add(buildResourceUpdateErrorErrors()); o.add(buildResourceUpdateErrorErrors()); return o; } -checkUnnamed412(core.List<api.ResourceUpdateErrorErrors> o) { +checkUnnamed123(core.List<api.ResourceUpdateErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceUpdateErrorErrors(o[0]); checkResourceUpdateErrorErrors(o[1]); @@ -1122,7 +1158,7 @@ var o = new api.ResourceUpdateError(); buildCounterResourceUpdateError++; if (buildCounterResourceUpdateError < 3) { - o.errors = buildUnnamed412(); + o.errors = buildUnnamed123(); } buildCounterResourceUpdateError--; return o; @@ -1131,7 +1167,7 @@ checkResourceUpdateError(api.ResourceUpdateError o) { buildCounterResourceUpdateError++; if (buildCounterResourceUpdateError < 3) { - checkUnnamed412(o.errors); + checkUnnamed123(o.errors); } buildCounterResourceUpdateError--; } @@ -1157,14 +1193,14 @@ buildCounterResourceUpdateWarningsData--; } -buildUnnamed413() { +buildUnnamed124() { var o = new core.List<api.ResourceUpdateWarningsData>(); o.add(buildResourceUpdateWarningsData()); o.add(buildResourceUpdateWarningsData()); return o; } -checkUnnamed413(core.List<api.ResourceUpdateWarningsData> o) { +checkUnnamed124(core.List<api.ResourceUpdateWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceUpdateWarningsData(o[0]); checkResourceUpdateWarningsData(o[1]); @@ -1176,7 +1212,7 @@ buildCounterResourceUpdateWarnings++; if (buildCounterResourceUpdateWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed413(); + o.data = buildUnnamed124(); o.message = "foo"; } buildCounterResourceUpdateWarnings--; @@ -1187,20 +1223,20 @@ buildCounterResourceUpdateWarnings++; if (buildCounterResourceUpdateWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed413(o.data); + checkUnnamed124(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterResourceUpdateWarnings--; } -buildUnnamed414() { +buildUnnamed125() { var o = new core.List<api.ResourceUpdateWarnings>(); o.add(buildResourceUpdateWarnings()); o.add(buildResourceUpdateWarnings()); return o; } -checkUnnamed414(core.List<api.ResourceUpdateWarnings> o) { +checkUnnamed125(core.List<api.ResourceUpdateWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceUpdateWarnings(o[0]); checkResourceUpdateWarnings(o[1]); @@ -1218,7 +1254,7 @@ o.manifest = "foo"; o.properties = "foo"; o.state = "foo"; - o.warnings = buildUnnamed414(); + o.warnings = buildUnnamed125(); } buildCounterResourceUpdate--; return o; @@ -1234,19 +1270,19 @@ unittest.expect(o.manifest, unittest.equals('foo')); unittest.expect(o.properties, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); - checkUnnamed414(o.warnings); + checkUnnamed125(o.warnings); } buildCounterResourceUpdate--; } -buildUnnamed415() { +buildUnnamed126() { var o = new core.List<api.Resource>(); o.add(buildResource()); o.add(buildResource()); return o; } -checkUnnamed415(core.List<api.Resource> o) { +checkUnnamed126(core.List<api.Resource> o) { unittest.expect(o, unittest.hasLength(2)); checkResource(o[0]); checkResource(o[1]); @@ -1258,7 +1294,7 @@ buildCounterResourcesListResponse++; if (buildCounterResourcesListResponse < 3) { o.nextPageToken = "foo"; - o.resources = buildUnnamed415(); + o.resources = buildUnnamed126(); } buildCounterResourcesListResponse--; return o; @@ -1268,71 +1304,71 @@ buildCounterResourcesListResponse++; if (buildCounterResourcesListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed415(o.resources); + checkUnnamed126(o.resources); } buildCounterResourcesListResponse--; } -buildUnnamed416() { +buildUnnamed127() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed416(core.List<api.Condition> o) { +checkUnnamed127(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed417() { +buildUnnamed128() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed417(core.List<core.String> o) { +checkUnnamed128(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed418() { +buildUnnamed129() { var o = new core.List<api.LogConfig>(); o.add(buildLogConfig()); o.add(buildLogConfig()); return o; } -checkUnnamed418(core.List<api.LogConfig> o) { +checkUnnamed129(core.List<api.LogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkLogConfig(o[0]); checkLogConfig(o[1]); } -buildUnnamed419() { +buildUnnamed130() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed419(core.List<core.String> o) { +checkUnnamed130(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed420() { +buildUnnamed131() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed420(core.List<core.String> o) { +checkUnnamed131(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1344,12 +1380,12 @@ buildCounterRule++; if (buildCounterRule < 3) { o.action = "foo"; - o.conditions = buildUnnamed416(); + o.conditions = buildUnnamed127(); o.description = "foo"; - o.ins = buildUnnamed417(); - o.logConfigs = buildUnnamed418(); - o.notIns = buildUnnamed419(); - o.permissions = buildUnnamed420(); + o.ins = buildUnnamed128(); + o.logConfigs = buildUnnamed129(); + o.notIns = buildUnnamed130(); + o.permissions = buildUnnamed131(); } buildCounterRule--; return o; @@ -1359,24 +1395,24 @@ buildCounterRule++; if (buildCounterRule < 3) { unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed416(o.conditions); + checkUnnamed127(o.conditions); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed417(o.ins); - checkUnnamed418(o.logConfigs); - checkUnnamed419(o.notIns); - checkUnnamed420(o.permissions); + checkUnnamed128(o.ins); + checkUnnamed129(o.logConfigs); + checkUnnamed130(o.notIns); + checkUnnamed131(o.permissions); } buildCounterRule--; } -buildUnnamed421() { +buildUnnamed132() { var o = new core.List<api.ImportFile>(); o.add(buildImportFile()); o.add(buildImportFile()); return o; } -checkUnnamed421(core.List<api.ImportFile> o) { +checkUnnamed132(core.List<api.ImportFile> o) { unittest.expect(o, unittest.hasLength(2)); checkImportFile(o[0]); checkImportFile(o[1]); @@ -1388,7 +1424,7 @@ buildCounterTargetConfiguration++; if (buildCounterTargetConfiguration < 3) { o.config = buildConfigFile(); - o.imports = buildUnnamed421(); + o.imports = buildUnnamed132(); } buildCounterTargetConfiguration--; return o; @@ -1398,19 +1434,19 @@ buildCounterTargetConfiguration++; if (buildCounterTargetConfiguration < 3) { checkConfigFile(o.config); - checkUnnamed421(o.imports); + checkUnnamed132(o.imports); } buildCounterTargetConfiguration--; } -buildUnnamed422() { +buildUnnamed133() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed422(core.List<core.String> o) { +checkUnnamed133(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1421,7 +1457,7 @@ var o = new api.TestPermissionsRequest(); buildCounterTestPermissionsRequest++; if (buildCounterTestPermissionsRequest < 3) { - o.permissions = buildUnnamed422(); + o.permissions = buildUnnamed133(); } buildCounterTestPermissionsRequest--; return o; @@ -1430,19 +1466,19 @@ checkTestPermissionsRequest(api.TestPermissionsRequest o) { buildCounterTestPermissionsRequest++; if (buildCounterTestPermissionsRequest < 3) { - checkUnnamed422(o.permissions); + checkUnnamed133(o.permissions); } buildCounterTestPermissionsRequest--; } -buildUnnamed423() { +buildUnnamed134() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed423(core.List<core.String> o) { +checkUnnamed134(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1453,7 +1489,7 @@ var o = new api.TestPermissionsResponse(); buildCounterTestPermissionsResponse++; if (buildCounterTestPermissionsResponse < 3) { - o.permissions = buildUnnamed423(); + o.permissions = buildUnnamed134(); } buildCounterTestPermissionsResponse--; return o; @@ -1462,7 +1498,7 @@ checkTestPermissionsResponse(api.TestPermissionsResponse o) { buildCounterTestPermissionsResponse++; if (buildCounterTestPermissionsResponse < 3) { - checkUnnamed423(o.permissions); + checkUnnamed134(o.permissions); } buildCounterTestPermissionsResponse--; } @@ -1494,14 +1530,14 @@ buildCounterType--; } -buildUnnamed424() { +buildUnnamed135() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed424(core.List<api.Type> o) { +checkUnnamed135(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); @@ -1513,7 +1549,7 @@ buildCounterTypesListResponse++; if (buildCounterTypesListResponse < 3) { o.nextPageToken = "foo"; - o.types = buildUnnamed424(); + o.types = buildUnnamed135(); } buildCounterTypesListResponse--; return o; @@ -1523,7 +1559,7 @@ buildCounterTypesListResponse++; if (buildCounterTypesListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed424(o.types); + checkUnnamed135(o.types); } buildCounterTypesListResponse--; } @@ -1641,6 +1677,14 @@ }); }); + unittest.group("obj-schema-GlobalSetPolicyRequest", () { + unittest.test("to-json--from-json", () { + var o = buildGlobalSetPolicyRequest(); + var od = new api.GlobalSetPolicyRequest.fromJson(o.toJson()); + checkGlobalSetPolicyRequest(od); + }); + }); + unittest.group("obj-schema-ImportFile", () { unittest.test("to-json--from-json", () { var o = buildImportFile(); @@ -2093,6 +2137,7 @@ new api.DeploymentmanagerApi(mock).deployments; var arg_request = buildDeployment(); var arg_project = "foo"; + var arg_createPolicy = "foo"; var arg_preview = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -2126,6 +2171,8 @@ } } unittest.expect( + queryMap["createPolicy"].first, unittest.equals(arg_createPolicy)); + unittest.expect( queryMap["preview"].first, unittest.equals("$arg_preview")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -2137,7 +2184,9 @@ }), true); res .insert(arg_request, arg_project, - preview: arg_preview, $fields: arg_$fields) + createPolicy: arg_createPolicy, + preview: arg_preview, + $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperation(response); }))); @@ -2277,13 +2326,13 @@ var mock = new HttpServerMock(); api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deployments; - var arg_request = buildPolicy(); + var arg_request = buildGlobalSetPolicyRequest(); var arg_project = "foo"; var arg_resource = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.Policy.fromJson(json); - checkPolicy(obj); + var obj = new api.GlobalSetPolicyRequest.fromJson(json); + checkGlobalSetPolicyRequest(obj); var path = (req.url).path; var pathOffset = 0;
diff --git a/generated/googleapis/test/dfareporting/v2_8_test.dart b/generated/googleapis/test/dfareporting/v2_8_test.dart index 7c413ad..3f79bcf 100644 --- a/generated/googleapis/test/dfareporting/v2_8_test.dart +++ b/generated/googleapis/test/dfareporting/v2_8_test.dart
@@ -50,27 +50,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3134() { +buildUnnamed1738() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3134(core.List<core.String> o) { +checkUnnamed1738(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3135() { +buildUnnamed1739() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3135(core.List<core.String> o) { +checkUnnamed1739(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -81,12 +81,12 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.accountPermissionIds = buildUnnamed3134(); + o.accountPermissionIds = buildUnnamed1738(); o.accountProfile = "foo"; o.active = true; o.activeAdsLimitTier = "foo"; o.activeViewOptOut = true; - o.availablePermissionIds = buildUnnamed3135(); + o.availablePermissionIds = buildUnnamed1739(); o.countryId = "foo"; o.currencyId = "foo"; o.defaultCreativeSizeId = "foo"; @@ -108,12 +108,12 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed3134(o.accountPermissionIds); + checkUnnamed1738(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); - checkUnnamed3135(o.availablePermissionIds); + checkUnnamed1739(o.availablePermissionIds); unittest.expect(o.countryId, unittest.equals('foo')); unittest.expect(o.currencyId, unittest.equals('foo')); unittest.expect(o.defaultCreativeSizeId, unittest.equals('foo')); @@ -158,14 +158,14 @@ buildCounterAccountActiveAdSummary--; } -buildUnnamed3136() { +buildUnnamed1740() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3136(core.List<core.String> o) { +checkUnnamed1740(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -176,7 +176,7 @@ var o = new api.AccountPermission(); buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - o.accountProfiles = buildUnnamed3136(); + o.accountProfiles = buildUnnamed1740(); o.id = "foo"; o.kind = "foo"; o.level = "foo"; @@ -190,7 +190,7 @@ checkAccountPermission(api.AccountPermission o) { buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - checkUnnamed3136(o.accountProfiles); + checkUnnamed1740(o.accountProfiles); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.level, unittest.equals('foo')); @@ -223,14 +223,14 @@ buildCounterAccountPermissionGroup--; } -buildUnnamed3137() { +buildUnnamed1741() { var o = new core.List<api.AccountPermissionGroup>(); o.add(buildAccountPermissionGroup()); o.add(buildAccountPermissionGroup()); return o; } -checkUnnamed3137(core.List<api.AccountPermissionGroup> o) { +checkUnnamed1741(core.List<api.AccountPermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountPermissionGroup(o[0]); checkAccountPermissionGroup(o[1]); @@ -241,7 +241,7 @@ var o = new api.AccountPermissionGroupsListResponse(); buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - o.accountPermissionGroups = buildUnnamed3137(); + o.accountPermissionGroups = buildUnnamed1741(); o.kind = "foo"; } buildCounterAccountPermissionGroupsListResponse--; @@ -252,20 +252,20 @@ api.AccountPermissionGroupsListResponse o) { buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - checkUnnamed3137(o.accountPermissionGroups); + checkUnnamed1741(o.accountPermissionGroups); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionGroupsListResponse--; } -buildUnnamed3138() { +buildUnnamed1742() { var o = new core.List<api.AccountPermission>(); o.add(buildAccountPermission()); o.add(buildAccountPermission()); return o; } -checkUnnamed3138(core.List<api.AccountPermission> o) { +checkUnnamed1742(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 = buildUnnamed3138(); + o.accountPermissions = buildUnnamed1742(); o.kind = "foo"; } buildCounterAccountPermissionsListResponse--; @@ -286,7 +286,7 @@ checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) { buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - checkUnnamed3138(o.accountPermissions); + checkUnnamed1742(o.accountPermissions); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionsListResponse--; @@ -341,14 +341,14 @@ buildCounterAccountUserProfile--; } -buildUnnamed3139() { +buildUnnamed1743() { var o = new core.List<api.AccountUserProfile>(); o.add(buildAccountUserProfile()); o.add(buildAccountUserProfile()); return o; } -checkUnnamed3139(core.List<api.AccountUserProfile> o) { +checkUnnamed1743(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 = buildUnnamed3139(); + o.accountUserProfiles = buildUnnamed1743(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -370,21 +370,21 @@ checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) { buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - checkUnnamed3139(o.accountUserProfiles); + checkUnnamed1743(o.accountUserProfiles); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountUserProfilesListResponse--; } -buildUnnamed3140() { +buildUnnamed1744() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed3140(core.List<api.Account> o) { +checkUnnamed1744(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 = buildUnnamed3140(); + o.accounts = buildUnnamed1744(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -406,34 +406,34 @@ checkAccountsListResponse(api.AccountsListResponse o) { buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - checkUnnamed3140(o.accounts); + checkUnnamed1744(o.accounts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountsListResponse--; } -buildUnnamed3141() { +buildUnnamed1745() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed3141(core.List<api.DimensionValue> o) { +checkUnnamed1745(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed3142() { +buildUnnamed1746() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3142(core.List<core.String> o) { +checkUnnamed1746(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -444,9 +444,9 @@ var o = new api.Activities(); buildCounterActivities++; if (buildCounterActivities < 3) { - o.filters = buildUnnamed3141(); + o.filters = buildUnnamed1745(); o.kind = "foo"; - o.metricNames = buildUnnamed3142(); + o.metricNames = buildUnnamed1746(); } buildCounterActivities--; return o; @@ -455,47 +455,47 @@ checkActivities(api.Activities o) { buildCounterActivities++; if (buildCounterActivities < 3) { - checkUnnamed3141(o.filters); + checkUnnamed1745(o.filters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3142(o.metricNames); + checkUnnamed1746(o.metricNames); } buildCounterActivities--; } -buildUnnamed3143() { +buildUnnamed1747() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed3143(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed1747(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed3144() { +buildUnnamed1748() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed3144(core.List<api.EventTagOverride> o) { +checkUnnamed1748(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed3145() { +buildUnnamed1749() { var o = new core.List<api.PlacementAssignment>(); o.add(buildPlacementAssignment()); o.add(buildPlacementAssignment()); return o; } -checkUnnamed3145(core.List<api.PlacementAssignment> o) { +checkUnnamed1749(core.List<api.PlacementAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementAssignment(o[0]); checkPlacementAssignment(o[1]); @@ -519,7 +519,7 @@ o.comments = "foo"; o.compatibility = "foo"; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupAssignments = buildUnnamed3143(); + o.creativeGroupAssignments = buildUnnamed1747(); o.creativeRotation = buildCreativeRotation(); o.dayPartTargeting = buildDayPartTargeting(); o.defaultClickThroughEventTagProperties = @@ -527,7 +527,7 @@ o.deliverySchedule = buildDeliverySchedule(); o.dynamicClickTracker = true; o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.eventTagOverrides = buildUnnamed3144(); + o.eventTagOverrides = buildUnnamed1748(); o.geoTargeting = buildGeoTargeting(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -536,7 +536,7 @@ o.languageTargeting = buildLanguageTargeting(); o.lastModifiedInfo = buildLastModifiedInfo(); o.name = "foo"; - o.placementAssignments = buildUnnamed3145(); + o.placementAssignments = buildUnnamed1749(); o.remarketingListExpression = buildListTargetingExpression(); o.size = buildSize(); o.sslCompliant = true; @@ -567,7 +567,7 @@ unittest.expect(o.comments, unittest.equals('foo')); unittest.expect(o.compatibility, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); - checkUnnamed3143(o.creativeGroupAssignments); + checkUnnamed1747(o.creativeGroupAssignments); checkCreativeRotation(o.creativeRotation); checkDayPartTargeting(o.dayPartTargeting); checkDefaultClickThroughEventTagProperties( @@ -576,7 +576,7 @@ unittest.expect(o.dynamicClickTracker, unittest.isTrue); unittest.expect( o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed3144(o.eventTagOverrides); + checkUnnamed1748(o.eventTagOverrides); checkGeoTargeting(o.geoTargeting); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); @@ -585,7 +585,7 @@ checkLanguageTargeting(o.languageTargeting); checkLastModifiedInfo(o.lastModifiedInfo); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3145(o.placementAssignments); + checkUnnamed1749(o.placementAssignments); checkListTargetingExpression(o.remarketingListExpression); checkSize(o.size); unittest.expect(o.sslCompliant, unittest.isTrue); @@ -658,14 +658,14 @@ buildCounterAdSlot--; } -buildUnnamed3146() { +buildUnnamed1750() { var o = new core.List<api.Ad>(); o.add(buildAd()); o.add(buildAd()); return o; } -checkUnnamed3146(core.List<api.Ad> o) { +checkUnnamed1750(core.List<api.Ad> o) { unittest.expect(o, unittest.hasLength(2)); checkAd(o[0]); checkAd(o[1]); @@ -676,7 +676,7 @@ var o = new api.AdsListResponse(); buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - o.ads = buildUnnamed3146(); + o.ads = buildUnnamed1750(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -687,7 +687,7 @@ checkAdsListResponse(api.AdsListResponse o) { buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - checkUnnamed3146(o.ads); + checkUnnamed1750(o.ads); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -767,14 +767,14 @@ buildCounterAdvertiserGroup--; } -buildUnnamed3147() { +buildUnnamed1751() { var o = new core.List<api.AdvertiserGroup>(); o.add(buildAdvertiserGroup()); o.add(buildAdvertiserGroup()); return o; } -checkUnnamed3147(core.List<api.AdvertiserGroup> o) { +checkUnnamed1751(core.List<api.AdvertiserGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiserGroup(o[0]); checkAdvertiserGroup(o[1]); @@ -785,7 +785,7 @@ var o = new api.AdvertiserGroupsListResponse(); buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - o.advertiserGroups = buildUnnamed3147(); + o.advertiserGroups = buildUnnamed1751(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -796,21 +796,21 @@ checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - checkUnnamed3147(o.advertiserGroups); + checkUnnamed1751(o.advertiserGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdvertiserGroupsListResponse--; } -buildUnnamed3148() { +buildUnnamed1752() { var o = new core.List<api.Advertiser>(); o.add(buildAdvertiser()); o.add(buildAdvertiser()); return o; } -checkUnnamed3148(core.List<api.Advertiser> o) { +checkUnnamed1752(core.List<api.Advertiser> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiser(o[0]); checkAdvertiser(o[1]); @@ -821,7 +821,7 @@ var o = new api.AdvertisersListResponse(); buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - o.advertisers = buildUnnamed3148(); + o.advertisers = buildUnnamed1752(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -832,7 +832,7 @@ checkAdvertisersListResponse(api.AdvertisersListResponse o) { buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - checkUnnamed3148(o.advertisers); + checkUnnamed1752(o.advertisers); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -862,14 +862,14 @@ buildCounterAudienceSegment--; } -buildUnnamed3149() { +buildUnnamed1753() { var o = new core.List<api.AudienceSegment>(); o.add(buildAudienceSegment()); o.add(buildAudienceSegment()); return o; } -checkUnnamed3149(core.List<api.AudienceSegment> o) { +checkUnnamed1753(core.List<api.AudienceSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegment(o[0]); checkAudienceSegment(o[1]); @@ -880,7 +880,7 @@ var o = new api.AudienceSegmentGroup(); buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - o.audienceSegments = buildUnnamed3149(); + o.audienceSegments = buildUnnamed1753(); o.id = "foo"; o.name = "foo"; } @@ -891,7 +891,7 @@ checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - checkUnnamed3149(o.audienceSegments); + checkUnnamed1753(o.audienceSegments); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -927,14 +927,14 @@ buildCounterBrowser--; } -buildUnnamed3150() { +buildUnnamed1754() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed3150(core.List<api.Browser> o) { +checkUnnamed1754(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); @@ -945,7 +945,7 @@ var o = new api.BrowsersListResponse(); buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - o.browsers = buildUnnamed3150(); + o.browsers = buildUnnamed1754(); o.kind = "foo"; } buildCounterBrowsersListResponse--; @@ -955,72 +955,72 @@ checkBrowsersListResponse(api.BrowsersListResponse o) { buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - checkUnnamed3150(o.browsers); + checkUnnamed1754(o.browsers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBrowsersListResponse--; } -buildUnnamed3151() { +buildUnnamed1755() { var o = new core.List<api.CreativeOptimizationConfiguration>(); o.add(buildCreativeOptimizationConfiguration()); o.add(buildCreativeOptimizationConfiguration()); return o; } -checkUnnamed3151(core.List<api.CreativeOptimizationConfiguration> o) { +checkUnnamed1755(core.List<api.CreativeOptimizationConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeOptimizationConfiguration(o[0]); checkCreativeOptimizationConfiguration(o[1]); } -buildUnnamed3152() { +buildUnnamed1756() { var o = new core.List<api.AudienceSegmentGroup>(); o.add(buildAudienceSegmentGroup()); o.add(buildAudienceSegmentGroup()); return o; } -checkUnnamed3152(core.List<api.AudienceSegmentGroup> o) { +checkUnnamed1756(core.List<api.AudienceSegmentGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegmentGroup(o[0]); checkAudienceSegmentGroup(o[1]); } -buildUnnamed3153() { +buildUnnamed1757() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3153(core.List<core.String> o) { +checkUnnamed1757(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3154() { +buildUnnamed1758() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed3154(core.List<api.EventTagOverride> o) { +checkUnnamed1758(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed3155() { +buildUnnamed1759() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3155(core.List<core.String> o) { +checkUnnamed1759(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1033,23 +1033,23 @@ if (buildCounterCampaign < 3) { o.accountId = "foo"; o.adBlockingConfiguration = buildAdBlockingConfiguration(); - o.additionalCreativeOptimizationConfigurations = buildUnnamed3151(); + o.additionalCreativeOptimizationConfigurations = buildUnnamed1755(); o.advertiserGroupId = "foo"; o.advertiserId = "foo"; o.advertiserIdDimensionValue = buildDimensionValue(); o.archived = true; - o.audienceSegmentGroups = buildUnnamed3152(); + o.audienceSegmentGroups = buildUnnamed1756(); o.billingInvoiceCode = "foo"; o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); o.comment = "foo"; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupIds = buildUnnamed3153(); + o.creativeGroupIds = buildUnnamed1757(); o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.eventTagOverrides = buildUnnamed3154(); + o.eventTagOverrides = buildUnnamed1758(); o.externalId = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -1060,7 +1060,7 @@ o.nielsenOcrEnabled = true; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.subaccountId = "foo"; - o.traffickerEmails = buildUnnamed3155(); + o.traffickerEmails = buildUnnamed1759(); } buildCounterCampaign--; return o; @@ -1071,23 +1071,23 @@ if (buildCounterCampaign < 3) { unittest.expect(o.accountId, unittest.equals('foo')); checkAdBlockingConfiguration(o.adBlockingConfiguration); - checkUnnamed3151(o.additionalCreativeOptimizationConfigurations); + checkUnnamed1755(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); - checkUnnamed3152(o.audienceSegmentGroups); + checkUnnamed1756(o.audienceSegmentGroups); unittest.expect(o.billingInvoiceCode, unittest.equals('foo')); checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); unittest.expect(o.comment, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); - checkUnnamed3153(o.creativeGroupIds); + checkUnnamed1757(o.creativeGroupIds); checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); checkDefaultClickThroughEventTagProperties( o.defaultClickThroughEventTagProperties); unittest.expect( o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed3154(o.eventTagOverrides); + checkUnnamed1758(o.eventTagOverrides); unittest.expect(o.externalId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); @@ -1099,7 +1099,7 @@ unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed3155(o.traffickerEmails); + checkUnnamed1759(o.traffickerEmails); } buildCounterCampaign--; } @@ -1125,14 +1125,14 @@ buildCounterCampaignCreativeAssociation--; } -buildUnnamed3156() { +buildUnnamed1760() { var o = new core.List<api.CampaignCreativeAssociation>(); o.add(buildCampaignCreativeAssociation()); o.add(buildCampaignCreativeAssociation()); return o; } -checkUnnamed3156(core.List<api.CampaignCreativeAssociation> o) { +checkUnnamed1760(core.List<api.CampaignCreativeAssociation> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaignCreativeAssociation(o[0]); checkCampaignCreativeAssociation(o[1]); @@ -1143,7 +1143,7 @@ var o = new api.CampaignCreativeAssociationsListResponse(); buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - o.campaignCreativeAssociations = buildUnnamed3156(); + o.campaignCreativeAssociations = buildUnnamed1760(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1155,21 +1155,21 @@ api.CampaignCreativeAssociationsListResponse o) { buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - checkUnnamed3156(o.campaignCreativeAssociations); + checkUnnamed1760(o.campaignCreativeAssociations); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCampaignCreativeAssociationsListResponse--; } -buildUnnamed3157() { +buildUnnamed1761() { var o = new core.List<api.Campaign>(); o.add(buildCampaign()); o.add(buildCampaign()); return o; } -checkUnnamed3157(core.List<api.Campaign> o) { +checkUnnamed1761(core.List<api.Campaign> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaign(o[0]); checkCampaign(o[1]); @@ -1180,7 +1180,7 @@ var o = new api.CampaignsListResponse(); buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - o.campaigns = buildUnnamed3157(); + o.campaigns = buildUnnamed1761(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1191,7 +1191,7 @@ checkCampaignsListResponse(api.CampaignsListResponse o) { buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - checkUnnamed3157(o.campaigns); + checkUnnamed1761(o.campaigns); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1244,14 +1244,14 @@ buildCounterChangeLog--; } -buildUnnamed3158() { +buildUnnamed1762() { var o = new core.List<api.ChangeLog>(); o.add(buildChangeLog()); o.add(buildChangeLog()); return o; } -checkUnnamed3158(core.List<api.ChangeLog> o) { +checkUnnamed1762(core.List<api.ChangeLog> o) { unittest.expect(o, unittest.hasLength(2)); checkChangeLog(o[0]); checkChangeLog(o[1]); @@ -1262,7 +1262,7 @@ var o = new api.ChangeLogsListResponse(); buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - o.changeLogs = buildUnnamed3158(); + o.changeLogs = buildUnnamed1762(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1273,21 +1273,21 @@ checkChangeLogsListResponse(api.ChangeLogsListResponse o) { buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - checkUnnamed3158(o.changeLogs); + checkUnnamed1762(o.changeLogs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterChangeLogsListResponse--; } -buildUnnamed3159() { +buildUnnamed1763() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed3159(core.List<api.City> o) { +checkUnnamed1763(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); @@ -1298,7 +1298,7 @@ var o = new api.CitiesListResponse(); buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - o.cities = buildUnnamed3159(); + o.cities = buildUnnamed1763(); o.kind = "foo"; } buildCounterCitiesListResponse--; @@ -1308,7 +1308,7 @@ checkCitiesListResponse(api.CitiesListResponse o) { buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - checkUnnamed3159(o.cities); + checkUnnamed1763(o.cities); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCitiesListResponse--; @@ -1439,14 +1439,14 @@ buildCounterCompanionClickThroughOverride--; } -buildUnnamed3160() { +buildUnnamed1764() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed3160(core.List<api.Size> o) { +checkUnnamed1764(core.List<api.Size> o) { unittest.expect(o, unittest.hasLength(2)); checkSize(o[0]); checkSize(o[1]); @@ -1458,7 +1458,7 @@ buildCounterCompanionSetting++; if (buildCounterCompanionSetting < 3) { o.companionsDisabled = true; - o.enabledSizes = buildUnnamed3160(); + o.enabledSizes = buildUnnamed1764(); o.imageOnly = true; o.kind = "foo"; } @@ -1470,7 +1470,7 @@ buildCounterCompanionSetting++; if (buildCounterCompanionSetting < 3) { unittest.expect(o.companionsDisabled, unittest.isTrue); - checkUnnamed3160(o.enabledSizes); + checkUnnamed1764(o.enabledSizes); unittest.expect(o.imageOnly, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); } @@ -1534,14 +1534,14 @@ buildCounterConnectionType--; } -buildUnnamed3161() { +buildUnnamed1765() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed3161(core.List<api.ConnectionType> o) { +checkUnnamed1765(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); @@ -1552,7 +1552,7 @@ var o = new api.ConnectionTypesListResponse(); buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - o.connectionTypes = buildUnnamed3161(); + o.connectionTypes = buildUnnamed1765(); o.kind = "foo"; } buildCounterConnectionTypesListResponse--; @@ -1562,20 +1562,20 @@ checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - checkUnnamed3161(o.connectionTypes); + checkUnnamed1765(o.connectionTypes); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConnectionTypesListResponse--; } -buildUnnamed3162() { +buildUnnamed1766() { var o = new core.List<api.ContentCategory>(); o.add(buildContentCategory()); o.add(buildContentCategory()); return o; } -checkUnnamed3162(core.List<api.ContentCategory> o) { +checkUnnamed1766(core.List<api.ContentCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkContentCategory(o[0]); checkContentCategory(o[1]); @@ -1586,7 +1586,7 @@ var o = new api.ContentCategoriesListResponse(); buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - o.contentCategories = buildUnnamed3162(); + o.contentCategories = buildUnnamed1766(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1597,7 +1597,7 @@ checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - checkUnnamed3162(o.contentCategories); + checkUnnamed1766(o.contentCategories); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1629,27 +1629,27 @@ buildCounterContentCategory--; } -buildUnnamed3163() { +buildUnnamed1767() { var o = new core.List<api.CustomFloodlightVariable>(); o.add(buildCustomFloodlightVariable()); o.add(buildCustomFloodlightVariable()); return o; } -checkUnnamed3163(core.List<api.CustomFloodlightVariable> o) { +checkUnnamed1767(core.List<api.CustomFloodlightVariable> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomFloodlightVariable(o[0]); checkCustomFloodlightVariable(o[1]); } -buildUnnamed3164() { +buildUnnamed1768() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3164(core.List<core.String> o) { +checkUnnamed1768(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1661,9 +1661,9 @@ buildCounterConversion++; if (buildCounterConversion < 3) { o.childDirectedTreatment = true; - o.customVariables = buildUnnamed3163(); + o.customVariables = buildUnnamed1767(); o.encryptedUserId = "foo"; - o.encryptedUserIdCandidates = buildUnnamed3164(); + o.encryptedUserIdCandidates = buildUnnamed1768(); o.floodlightActivityId = "foo"; o.floodlightConfigurationId = "foo"; o.gclid = "foo"; @@ -1683,9 +1683,9 @@ buildCounterConversion++; if (buildCounterConversion < 3) { unittest.expect(o.childDirectedTreatment, unittest.isTrue); - checkUnnamed3163(o.customVariables); + checkUnnamed1767(o.customVariables); unittest.expect(o.encryptedUserId, unittest.equals('foo')); - checkUnnamed3164(o.encryptedUserIdCandidates); + checkUnnamed1768(o.encryptedUserIdCandidates); unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); unittest.expect(o.gclid, unittest.equals('foo')); @@ -1723,14 +1723,14 @@ buildCounterConversionError--; } -buildUnnamed3165() { +buildUnnamed1769() { var o = new core.List<api.ConversionError>(); o.add(buildConversionError()); o.add(buildConversionError()); return o; } -checkUnnamed3165(core.List<api.ConversionError> o) { +checkUnnamed1769(core.List<api.ConversionError> o) { unittest.expect(o, unittest.hasLength(2)); checkConversionError(o[0]); checkConversionError(o[1]); @@ -1742,7 +1742,7 @@ buildCounterConversionStatus++; if (buildCounterConversionStatus < 3) { o.conversion = buildConversion(); - o.errors = buildUnnamed3165(); + o.errors = buildUnnamed1769(); o.kind = "foo"; } buildCounterConversionStatus--; @@ -1753,20 +1753,20 @@ buildCounterConversionStatus++; if (buildCounterConversionStatus < 3) { checkConversion(o.conversion); - checkUnnamed3165(o.errors); + checkUnnamed1769(o.errors); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionStatus--; } -buildUnnamed3166() { +buildUnnamed1770() { var o = new core.List<api.Conversion>(); o.add(buildConversion()); o.add(buildConversion()); return o; } -checkUnnamed3166(core.List<api.Conversion> o) { +checkUnnamed1770(core.List<api.Conversion> o) { unittest.expect(o, unittest.hasLength(2)); checkConversion(o[0]); checkConversion(o[1]); @@ -1777,7 +1777,7 @@ var o = new api.ConversionsBatchInsertRequest(); buildCounterConversionsBatchInsertRequest++; if (buildCounterConversionsBatchInsertRequest < 3) { - o.conversions = buildUnnamed3166(); + o.conversions = buildUnnamed1770(); o.encryptionInfo = buildEncryptionInfo(); o.kind = "foo"; } @@ -1788,21 +1788,21 @@ checkConversionsBatchInsertRequest(api.ConversionsBatchInsertRequest o) { buildCounterConversionsBatchInsertRequest++; if (buildCounterConversionsBatchInsertRequest < 3) { - checkUnnamed3166(o.conversions); + checkUnnamed1770(o.conversions); checkEncryptionInfo(o.encryptionInfo); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionsBatchInsertRequest--; } -buildUnnamed3167() { +buildUnnamed1771() { var o = new core.List<api.ConversionStatus>(); o.add(buildConversionStatus()); o.add(buildConversionStatus()); return o; } -checkUnnamed3167(core.List<api.ConversionStatus> o) { +checkUnnamed1771(core.List<api.ConversionStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkConversionStatus(o[0]); checkConversionStatus(o[1]); @@ -1815,7 +1815,7 @@ if (buildCounterConversionsBatchInsertResponse < 3) { o.hasFailures = true; o.kind = "foo"; - o.status = buildUnnamed3167(); + o.status = buildUnnamed1771(); } buildCounterConversionsBatchInsertResponse--; return o; @@ -1826,19 +1826,19 @@ if (buildCounterConversionsBatchInsertResponse < 3) { unittest.expect(o.hasFailures, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3167(o.status); + checkUnnamed1771(o.status); } buildCounterConversionsBatchInsertResponse--; } -buildUnnamed3168() { +buildUnnamed1772() { var o = new core.List<api.Conversion>(); o.add(buildConversion()); o.add(buildConversion()); return o; } -checkUnnamed3168(core.List<api.Conversion> o) { +checkUnnamed1772(core.List<api.Conversion> o) { unittest.expect(o, unittest.hasLength(2)); checkConversion(o[0]); checkConversion(o[1]); @@ -1849,7 +1849,7 @@ var o = new api.ConversionsBatchUpdateRequest(); buildCounterConversionsBatchUpdateRequest++; if (buildCounterConversionsBatchUpdateRequest < 3) { - o.conversions = buildUnnamed3168(); + o.conversions = buildUnnamed1772(); o.encryptionInfo = buildEncryptionInfo(); o.kind = "foo"; } @@ -1860,21 +1860,21 @@ checkConversionsBatchUpdateRequest(api.ConversionsBatchUpdateRequest o) { buildCounterConversionsBatchUpdateRequest++; if (buildCounterConversionsBatchUpdateRequest < 3) { - checkUnnamed3168(o.conversions); + checkUnnamed1772(o.conversions); checkEncryptionInfo(o.encryptionInfo); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionsBatchUpdateRequest--; } -buildUnnamed3169() { +buildUnnamed1773() { var o = new core.List<api.ConversionStatus>(); o.add(buildConversionStatus()); o.add(buildConversionStatus()); return o; } -checkUnnamed3169(core.List<api.ConversionStatus> o) { +checkUnnamed1773(core.List<api.ConversionStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkConversionStatus(o[0]); checkConversionStatus(o[1]); @@ -1887,7 +1887,7 @@ if (buildCounterConversionsBatchUpdateResponse < 3) { o.hasFailures = true; o.kind = "foo"; - o.status = buildUnnamed3169(); + o.status = buildUnnamed1773(); } buildCounterConversionsBatchUpdateResponse--; return o; @@ -1898,19 +1898,19 @@ if (buildCounterConversionsBatchUpdateResponse < 3) { unittest.expect(o.hasFailures, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3169(o.status); + checkUnnamed1773(o.status); } buildCounterConversionsBatchUpdateResponse--; } -buildUnnamed3170() { +buildUnnamed1774() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed3170(core.List<api.Country> o) { +checkUnnamed1774(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); @@ -1921,7 +1921,7 @@ var o = new api.CountriesListResponse(); buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - o.countries = buildUnnamed3170(); + o.countries = buildUnnamed1774(); o.kind = "foo"; } buildCounterCountriesListResponse--; @@ -1931,7 +1931,7 @@ checkCountriesListResponse(api.CountriesListResponse o) { buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - checkUnnamed3170(o.countries); + checkUnnamed1774(o.countries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCountriesListResponse--; @@ -1964,157 +1964,157 @@ buildCounterCountry--; } -buildUnnamed3171() { +buildUnnamed1775() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3171(core.List<core.String> o) { +checkUnnamed1775(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3172() { +buildUnnamed1776() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3172(core.List<core.String> o) { +checkUnnamed1776(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3173() { +buildUnnamed1777() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed3173(core.List<api.ClickTag> o) { +checkUnnamed1777(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed3174() { +buildUnnamed1778() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3174(core.List<core.String> o) { +checkUnnamed1778(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3175() { +buildUnnamed1779() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3175(core.List<core.String> o) { +checkUnnamed1779(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3176() { +buildUnnamed1780() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed3176(core.List<api.CreativeCustomEvent> o) { +checkUnnamed1780(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed3177() { +buildUnnamed1781() { var o = new core.List<api.CreativeAsset>(); o.add(buildCreativeAsset()); o.add(buildCreativeAsset()); return o; } -checkUnnamed3177(core.List<api.CreativeAsset> o) { +checkUnnamed1781(core.List<api.CreativeAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAsset(o[0]); checkCreativeAsset(o[1]); } -buildUnnamed3178() { +buildUnnamed1782() { var o = new core.List<api.CreativeFieldAssignment>(); o.add(buildCreativeFieldAssignment()); o.add(buildCreativeFieldAssignment()); return o; } -checkUnnamed3178(core.List<api.CreativeFieldAssignment> o) { +checkUnnamed1782(core.List<api.CreativeFieldAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldAssignment(o[0]); checkCreativeFieldAssignment(o[1]); } -buildUnnamed3179() { +buildUnnamed1783() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3179(core.List<core.String> o) { +checkUnnamed1783(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3180() { +buildUnnamed1784() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed3180(core.List<api.CreativeCustomEvent> o) { +checkUnnamed1784(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed3181() { +buildUnnamed1785() { var o = new core.List<api.ThirdPartyTrackingUrl>(); o.add(buildThirdPartyTrackingUrl()); o.add(buildThirdPartyTrackingUrl()); return o; } -checkUnnamed3181(core.List<api.ThirdPartyTrackingUrl> o) { +checkUnnamed1785(core.List<api.ThirdPartyTrackingUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyTrackingUrl(o[0]); checkThirdPartyTrackingUrl(o[1]); } -buildUnnamed3182() { +buildUnnamed1786() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed3182(core.List<api.CreativeCustomEvent> o) { +checkUnnamed1786(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); @@ -2128,7 +2128,7 @@ o.accountId = "foo"; o.active = true; o.adParameters = "foo"; - o.adTagKeys = buildUnnamed3171(); + o.adTagKeys = buildUnnamed1775(); o.advertiserId = "foo"; o.allowScriptAccess = true; o.archived = true; @@ -2138,21 +2138,21 @@ o.autoAdvanceImages = true; o.backgroundColor = "foo"; o.backupImageClickThroughUrl = "foo"; - o.backupImageFeatures = buildUnnamed3172(); + o.backupImageFeatures = buildUnnamed1776(); o.backupImageReportingLabel = "foo"; o.backupImageTargetWindow = buildTargetWindow(); - o.clickTags = buildUnnamed3173(); + o.clickTags = buildUnnamed1777(); o.commercialId = "foo"; - o.companionCreatives = buildUnnamed3174(); - o.compatibility = buildUnnamed3175(); + o.companionCreatives = buildUnnamed1778(); + o.compatibility = buildUnnamed1779(); o.convertFlashToHtml5 = true; - o.counterCustomEvents = buildUnnamed3176(); + o.counterCustomEvents = buildUnnamed1780(); o.creativeAssetSelection = buildCreativeAssetSelection(); - o.creativeAssets = buildUnnamed3177(); - o.creativeFieldAssignments = buildUnnamed3178(); - o.customKeyValues = buildUnnamed3179(); + o.creativeAssets = buildUnnamed1781(); + o.creativeFieldAssignments = buildUnnamed1782(); + o.customKeyValues = buildUnnamed1783(); o.dynamicAssetSelection = true; - o.exitCustomEvents = buildUnnamed3180(); + o.exitCustomEvents = buildUnnamed1784(); o.fsCommand = buildFsCommand(); o.htmlCode = "foo"; o.htmlCodeLocked = true; @@ -2180,8 +2180,8 @@ o.subaccountId = "foo"; o.thirdPartyBackupImageImpressionsUrl = "foo"; o.thirdPartyRichMediaImpressionsUrl = "foo"; - o.thirdPartyUrls = buildUnnamed3181(); - o.timerCustomEvents = buildUnnamed3182(); + o.thirdPartyUrls = buildUnnamed1785(); + o.timerCustomEvents = buildUnnamed1786(); o.totalFileSize = "foo"; o.type = "foo"; o.universalAdId = buildUniversalAdId(); @@ -2199,7 +2199,7 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.active, unittest.isTrue); unittest.expect(o.adParameters, unittest.equals('foo')); - checkUnnamed3171(o.adTagKeys); + checkUnnamed1775(o.adTagKeys); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.allowScriptAccess, unittest.isTrue); unittest.expect(o.archived, unittest.isTrue); @@ -2209,21 +2209,21 @@ unittest.expect(o.autoAdvanceImages, unittest.isTrue); unittest.expect(o.backgroundColor, unittest.equals('foo')); unittest.expect(o.backupImageClickThroughUrl, unittest.equals('foo')); - checkUnnamed3172(o.backupImageFeatures); + checkUnnamed1776(o.backupImageFeatures); unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); checkTargetWindow(o.backupImageTargetWindow); - checkUnnamed3173(o.clickTags); + checkUnnamed1777(o.clickTags); unittest.expect(o.commercialId, unittest.equals('foo')); - checkUnnamed3174(o.companionCreatives); - checkUnnamed3175(o.compatibility); + checkUnnamed1778(o.companionCreatives); + checkUnnamed1779(o.compatibility); unittest.expect(o.convertFlashToHtml5, unittest.isTrue); - checkUnnamed3176(o.counterCustomEvents); + checkUnnamed1780(o.counterCustomEvents); checkCreativeAssetSelection(o.creativeAssetSelection); - checkUnnamed3177(o.creativeAssets); - checkUnnamed3178(o.creativeFieldAssignments); - checkUnnamed3179(o.customKeyValues); + checkUnnamed1781(o.creativeAssets); + checkUnnamed1782(o.creativeFieldAssignments); + checkUnnamed1783(o.customKeyValues); unittest.expect(o.dynamicAssetSelection, unittest.isTrue); - checkUnnamed3180(o.exitCustomEvents); + checkUnnamed1784(o.exitCustomEvents); checkFsCommand(o.fsCommand); unittest.expect(o.htmlCode, unittest.equals('foo')); unittest.expect(o.htmlCodeLocked, unittest.isTrue); @@ -2253,8 +2253,8 @@ o.thirdPartyBackupImageImpressionsUrl, unittest.equals('foo')); unittest.expect( o.thirdPartyRichMediaImpressionsUrl, unittest.equals('foo')); - checkUnnamed3181(o.thirdPartyUrls); - checkUnnamed3182(o.timerCustomEvents); + checkUnnamed1785(o.thirdPartyUrls); + checkUnnamed1786(o.timerCustomEvents); unittest.expect(o.totalFileSize, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); checkUniversalAdId(o.universalAdId); @@ -2265,27 +2265,27 @@ buildCounterCreative--; } -buildUnnamed3183() { +buildUnnamed1787() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3183(core.List<core.String> o) { +checkUnnamed1787(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3184() { +buildUnnamed1788() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3184(core.List<core.String> o) { +checkUnnamed1788(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2305,9 +2305,9 @@ o.bitRate = 42; o.childAssetType = "foo"; o.collapsedSize = buildSize(); - o.companionCreativeIds = buildUnnamed3183(); + o.companionCreativeIds = buildUnnamed1787(); o.customStartTimeValue = 42; - o.detectedFeatures = buildUnnamed3184(); + o.detectedFeatures = buildUnnamed1788(); o.displayType = "foo"; o.duration = 42; o.durationType = "foo"; @@ -2357,9 +2357,9 @@ unittest.expect(o.bitRate, unittest.equals(42)); unittest.expect(o.childAssetType, unittest.equals('foo')); checkSize(o.collapsedSize); - checkUnnamed3183(o.companionCreativeIds); + checkUnnamed1787(o.companionCreativeIds); unittest.expect(o.customStartTimeValue, unittest.equals(42)); - checkUnnamed3184(o.detectedFeatures); + checkUnnamed1788(o.detectedFeatures); unittest.expect(o.displayType, unittest.equals('foo')); unittest.expect(o.duration, unittest.equals(42)); unittest.expect(o.durationType, unittest.equals('foo')); @@ -2417,40 +2417,40 @@ buildCounterCreativeAssetId--; } -buildUnnamed3185() { +buildUnnamed1789() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed3185(core.List<api.ClickTag> o) { +checkUnnamed1789(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed3186() { +buildUnnamed1790() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3186(core.List<core.String> o) { +checkUnnamed1790(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3187() { +buildUnnamed1791() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3187(core.List<core.String> o) { +checkUnnamed1791(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2462,12 +2462,12 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { o.assetIdentifier = buildCreativeAssetId(); - o.clickTags = buildUnnamed3185(); - o.detectedFeatures = buildUnnamed3186(); + o.clickTags = buildUnnamed1789(); + o.detectedFeatures = buildUnnamed1790(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); o.kind = "foo"; - o.warnedValidationRules = buildUnnamed3187(); + o.warnedValidationRules = buildUnnamed1791(); } buildCounterCreativeAssetMetadata--; return o; @@ -2477,24 +2477,24 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { checkCreativeAssetId(o.assetIdentifier); - checkUnnamed3185(o.clickTags); - checkUnnamed3186(o.detectedFeatures); + checkUnnamed1789(o.clickTags); + checkUnnamed1790(o.detectedFeatures); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3187(o.warnedValidationRules); + checkUnnamed1791(o.warnedValidationRules); } buildCounterCreativeAssetMetadata--; } -buildUnnamed3188() { +buildUnnamed1792() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed3188(core.List<api.Rule> o) { +checkUnnamed1792(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -2506,7 +2506,7 @@ buildCounterCreativeAssetSelection++; if (buildCounterCreativeAssetSelection < 3) { o.defaultAssetId = "foo"; - o.rules = buildUnnamed3188(); + o.rules = buildUnnamed1792(); } buildCounterCreativeAssetSelection--; return o; @@ -2516,45 +2516,45 @@ buildCounterCreativeAssetSelection++; if (buildCounterCreativeAssetSelection < 3) { unittest.expect(o.defaultAssetId, unittest.equals('foo')); - checkUnnamed3188(o.rules); + checkUnnamed1792(o.rules); } buildCounterCreativeAssetSelection--; } -buildUnnamed3189() { +buildUnnamed1793() { var o = new core.List<api.CompanionClickThroughOverride>(); o.add(buildCompanionClickThroughOverride()); o.add(buildCompanionClickThroughOverride()); return o; } -checkUnnamed3189(core.List<api.CompanionClickThroughOverride> o) { +checkUnnamed1793(core.List<api.CompanionClickThroughOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkCompanionClickThroughOverride(o[0]); checkCompanionClickThroughOverride(o[1]); } -buildUnnamed3190() { +buildUnnamed1794() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed3190(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed1794(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed3191() { +buildUnnamed1795() { var o = new core.List<api.RichMediaExitOverride>(); o.add(buildRichMediaExitOverride()); o.add(buildRichMediaExitOverride()); return o; } -checkUnnamed3191(core.List<api.RichMediaExitOverride> o) { +checkUnnamed1795(core.List<api.RichMediaExitOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkRichMediaExitOverride(o[0]); checkRichMediaExitOverride(o[1]); @@ -2568,12 +2568,12 @@ o.active = true; o.applyEventTags = true; o.clickThroughUrl = buildClickThroughUrl(); - o.companionCreativeOverrides = buildUnnamed3189(); - o.creativeGroupAssignments = buildUnnamed3190(); + o.companionCreativeOverrides = buildUnnamed1793(); + o.creativeGroupAssignments = buildUnnamed1794(); o.creativeId = "foo"; o.creativeIdDimensionValue = buildDimensionValue(); o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.richMediaExitOverrides = buildUnnamed3191(); + o.richMediaExitOverrides = buildUnnamed1795(); o.sequence = 42; o.sslCompliant = true; o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); @@ -2589,13 +2589,13 @@ unittest.expect(o.active, unittest.isTrue); unittest.expect(o.applyEventTags, unittest.isTrue); checkClickThroughUrl(o.clickThroughUrl); - checkUnnamed3189(o.companionCreativeOverrides); - checkUnnamed3190(o.creativeGroupAssignments); + checkUnnamed1793(o.companionCreativeOverrides); + checkUnnamed1794(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"))); - checkUnnamed3191(o.richMediaExitOverrides); + checkUnnamed1795(o.richMediaExitOverrides); unittest.expect(o.sequence, unittest.equals(42)); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.startTime, @@ -2717,14 +2717,14 @@ buildCounterCreativeFieldValue--; } -buildUnnamed3192() { +buildUnnamed1796() { var o = new core.List<api.CreativeFieldValue>(); o.add(buildCreativeFieldValue()); o.add(buildCreativeFieldValue()); return o; } -checkUnnamed3192(core.List<api.CreativeFieldValue> o) { +checkUnnamed1796(core.List<api.CreativeFieldValue> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldValue(o[0]); checkCreativeFieldValue(o[1]); @@ -2735,7 +2735,7 @@ var o = new api.CreativeFieldValuesListResponse(); buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - o.creativeFieldValues = buildUnnamed3192(); + o.creativeFieldValues = buildUnnamed1796(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2746,21 +2746,21 @@ checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - checkUnnamed3192(o.creativeFieldValues); + checkUnnamed1796(o.creativeFieldValues); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeFieldValuesListResponse--; } -buildUnnamed3193() { +buildUnnamed1797() { var o = new core.List<api.CreativeField>(); o.add(buildCreativeField()); o.add(buildCreativeField()); return o; } -checkUnnamed3193(core.List<api.CreativeField> o) { +checkUnnamed1797(core.List<api.CreativeField> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeField(o[0]); checkCreativeField(o[1]); @@ -2771,7 +2771,7 @@ var o = new api.CreativeFieldsListResponse(); buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - o.creativeFields = buildUnnamed3193(); + o.creativeFields = buildUnnamed1797(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2782,7 +2782,7 @@ checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - checkUnnamed3193(o.creativeFields); + checkUnnamed1797(o.creativeFields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2843,14 +2843,14 @@ buildCounterCreativeGroupAssignment--; } -buildUnnamed3194() { +buildUnnamed1798() { var o = new core.List<api.CreativeGroup>(); o.add(buildCreativeGroup()); o.add(buildCreativeGroup()); return o; } -checkUnnamed3194(core.List<api.CreativeGroup> o) { +checkUnnamed1798(core.List<api.CreativeGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroup(o[0]); checkCreativeGroup(o[1]); @@ -2861,7 +2861,7 @@ var o = new api.CreativeGroupsListResponse(); buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - o.creativeGroups = buildUnnamed3194(); + o.creativeGroups = buildUnnamed1798(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2872,21 +2872,21 @@ checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - checkUnnamed3194(o.creativeGroups); + checkUnnamed1798(o.creativeGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeGroupsListResponse--; } -buildUnnamed3195() { +buildUnnamed1799() { var o = new core.List<api.OptimizationActivity>(); o.add(buildOptimizationActivity()); o.add(buildOptimizationActivity()); return o; } -checkUnnamed3195(core.List<api.OptimizationActivity> o) { +checkUnnamed1799(core.List<api.OptimizationActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkOptimizationActivity(o[0]); checkOptimizationActivity(o[1]); @@ -2899,7 +2899,7 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { o.id = "foo"; o.name = "foo"; - o.optimizationActivitys = buildUnnamed3195(); + o.optimizationActivitys = buildUnnamed1799(); o.optimizationModel = "foo"; } buildCounterCreativeOptimizationConfiguration--; @@ -2912,20 +2912,20 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3195(o.optimizationActivitys); + checkUnnamed1799(o.optimizationActivitys); unittest.expect(o.optimizationModel, unittest.equals('foo')); } buildCounterCreativeOptimizationConfiguration--; } -buildUnnamed3196() { +buildUnnamed1800() { var o = new core.List<api.CreativeAssignment>(); o.add(buildCreativeAssignment()); o.add(buildCreativeAssignment()); return o; } -checkUnnamed3196(core.List<api.CreativeAssignment> o) { +checkUnnamed1800(core.List<api.CreativeAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAssignment(o[0]); checkCreativeAssignment(o[1]); @@ -2936,7 +2936,7 @@ var o = new api.CreativeRotation(); buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - o.creativeAssignments = buildUnnamed3196(); + o.creativeAssignments = buildUnnamed1800(); o.creativeOptimizationConfigurationId = "foo"; o.type = "foo"; o.weightCalculationStrategy = "foo"; @@ -2948,7 +2948,7 @@ checkCreativeRotation(api.CreativeRotation o) { buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - checkUnnamed3196(o.creativeAssignments); + checkUnnamed1800(o.creativeAssignments); unittest.expect( o.creativeOptimizationConfigurationId, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -2978,14 +2978,14 @@ buildCounterCreativeSettings--; } -buildUnnamed3197() { +buildUnnamed1801() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed3197(core.List<api.Creative> o) { +checkUnnamed1801(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -2996,7 +2996,7 @@ var o = new api.CreativesListResponse(); buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - o.creatives = buildUnnamed3197(); + o.creatives = buildUnnamed1801(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3007,60 +3007,60 @@ checkCreativesListResponse(api.CreativesListResponse o) { buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - checkUnnamed3197(o.creatives); + checkUnnamed1801(o.creatives); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativesListResponse--; } -buildUnnamed3198() { +buildUnnamed1802() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3198(core.List<api.Dimension> o) { +checkUnnamed1802(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed3199() { +buildUnnamed1803() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3199(core.List<api.Dimension> o) { +checkUnnamed1803(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed3200() { +buildUnnamed1804() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed3200(core.List<api.Metric> o) { +checkUnnamed1804(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed3201() { +buildUnnamed1805() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed3201(core.List<api.Metric> o) { +checkUnnamed1805(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -3071,11 +3071,11 @@ var o = new api.CrossDimensionReachReportCompatibleFields(); buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - o.breakdown = buildUnnamed3198(); - o.dimensionFilters = buildUnnamed3199(); + o.breakdown = buildUnnamed1802(); + o.dimensionFilters = buildUnnamed1803(); o.kind = "foo"; - o.metrics = buildUnnamed3200(); - o.overlapMetrics = buildUnnamed3201(); + o.metrics = buildUnnamed1804(); + o.overlapMetrics = buildUnnamed1805(); } buildCounterCrossDimensionReachReportCompatibleFields--; return o; @@ -3085,11 +3085,11 @@ api.CrossDimensionReachReportCompatibleFields o) { buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - checkUnnamed3198(o.breakdown); - checkUnnamed3199(o.dimensionFilters); + checkUnnamed1802(o.breakdown); + checkUnnamed1803(o.dimensionFilters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3200(o.metrics); - checkUnnamed3201(o.overlapMetrics); + checkUnnamed1804(o.metrics); + checkUnnamed1805(o.overlapMetrics); } buildCounterCrossDimensionReachReportCompatibleFields--; } @@ -3117,14 +3117,14 @@ buildCounterCustomFloodlightVariable--; } -buildUnnamed3202() { +buildUnnamed1806() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed3202(core.List<api.DimensionValue> o) { +checkUnnamed1806(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -3135,7 +3135,7 @@ var o = new api.CustomRichMediaEvents(); buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - o.filteredEventIds = buildUnnamed3202(); + o.filteredEventIds = buildUnnamed1806(); o.kind = "foo"; } buildCounterCustomRichMediaEvents--; @@ -3145,7 +3145,7 @@ checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - checkUnnamed3202(o.filteredEventIds); + checkUnnamed1806(o.filteredEventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCustomRichMediaEvents--; @@ -3178,27 +3178,27 @@ buildCounterDateRange--; } -buildUnnamed3203() { +buildUnnamed1807() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3203(core.List<core.String> o) { +checkUnnamed1807(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3204() { +buildUnnamed1808() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3204(core.List<core.int> o) { +checkUnnamed1808(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)); @@ -3209,8 +3209,8 @@ var o = new api.DayPartTargeting(); buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - o.daysOfWeek = buildUnnamed3203(); - o.hoursOfDay = buildUnnamed3204(); + o.daysOfWeek = buildUnnamed1807(); + o.hoursOfDay = buildUnnamed1808(); o.userLocalTime = true; } buildCounterDayPartTargeting--; @@ -3220,8 +3220,8 @@ checkDayPartTargeting(api.DayPartTargeting o) { buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - checkUnnamed3203(o.daysOfWeek); - checkUnnamed3204(o.hoursOfDay); + checkUnnamed1807(o.daysOfWeek); + checkUnnamed1808(o.hoursOfDay); unittest.expect(o.userLocalTime, unittest.isTrue); } buildCounterDayPartTargeting--; @@ -3374,14 +3374,14 @@ buildCounterDimensionValue--; } -buildUnnamed3205() { +buildUnnamed1809() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed3205(core.List<api.DimensionValue> o) { +checkUnnamed1809(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -3393,7 +3393,7 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { o.etag = "foo"; - o.items = buildUnnamed3205(); + o.items = buildUnnamed1809(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3405,21 +3405,21 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3205(o.items); + checkUnnamed1809(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDimensionValueList--; } -buildUnnamed3206() { +buildUnnamed1810() { var o = new core.List<api.DimensionFilter>(); o.add(buildDimensionFilter()); o.add(buildDimensionFilter()); return o; } -checkUnnamed3206(core.List<api.DimensionFilter> o) { +checkUnnamed1810(core.List<api.DimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilter(o[0]); checkDimensionFilter(o[1]); @@ -3432,7 +3432,7 @@ if (buildCounterDimensionValueRequest < 3) { o.dimensionName = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.filters = buildUnnamed3206(); + o.filters = buildUnnamed1810(); o.kind = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -3446,7 +3446,7 @@ unittest.expect(o.dimensionName, unittest.equals('foo')); unittest.expect( o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed3206(o.filters); + checkUnnamed1810(o.filters); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -3454,40 +3454,40 @@ buildCounterDimensionValueRequest--; } -buildUnnamed3207() { +buildUnnamed1811() { var o = new core.List<api.DirectorySiteContactAssignment>(); o.add(buildDirectorySiteContactAssignment()); o.add(buildDirectorySiteContactAssignment()); return o; } -checkUnnamed3207(core.List<api.DirectorySiteContactAssignment> o) { +checkUnnamed1811(core.List<api.DirectorySiteContactAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContactAssignment(o[0]); checkDirectorySiteContactAssignment(o[1]); } -buildUnnamed3208() { +buildUnnamed1812() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3208(core.List<core.String> 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')); } -buildUnnamed3209() { +buildUnnamed1813() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3209(core.List<core.String> o) { +checkUnnamed1813(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3499,14 +3499,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { o.active = true; - o.contactAssignments = buildUnnamed3207(); + o.contactAssignments = buildUnnamed1811(); o.countryId = "foo"; o.currencyId = "foo"; o.description = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); - o.inpageTagFormats = buildUnnamed3208(); - o.interstitialTagFormats = buildUnnamed3209(); + o.inpageTagFormats = buildUnnamed1812(); + o.interstitialTagFormats = buildUnnamed1813(); o.kind = "foo"; o.name = "foo"; o.parentId = "foo"; @@ -3521,14 +3521,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { unittest.expect(o.active, unittest.isTrue); - checkUnnamed3207(o.contactAssignments); + checkUnnamed1811(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); - checkUnnamed3208(o.inpageTagFormats); - checkUnnamed3209(o.interstitialTagFormats); + checkUnnamed1812(o.inpageTagFormats); + checkUnnamed1813(o.interstitialTagFormats); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentId, unittest.equals('foo')); @@ -3596,14 +3596,14 @@ buildCounterDirectorySiteContactAssignment--; } -buildUnnamed3210() { +buildUnnamed1814() { var o = new core.List<api.DirectorySiteContact>(); o.add(buildDirectorySiteContact()); o.add(buildDirectorySiteContact()); return o; } -checkUnnamed3210(core.List<api.DirectorySiteContact> o) { +checkUnnamed1814(core.List<api.DirectorySiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContact(o[0]); checkDirectorySiteContact(o[1]); @@ -3614,7 +3614,7 @@ var o = new api.DirectorySiteContactsListResponse(); buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - o.directorySiteContacts = buildUnnamed3210(); + o.directorySiteContacts = buildUnnamed1814(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3626,7 +3626,7 @@ api.DirectorySiteContactsListResponse o) { buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - checkUnnamed3210(o.directorySiteContacts); + checkUnnamed1814(o.directorySiteContacts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3664,14 +3664,14 @@ buildCounterDirectorySiteSettings--; } -buildUnnamed3211() { +buildUnnamed1815() { var o = new core.List<api.DirectorySite>(); o.add(buildDirectorySite()); o.add(buildDirectorySite()); return o; } -checkUnnamed3211(core.List<api.DirectorySite> o) { +checkUnnamed1815(core.List<api.DirectorySite> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySite(o[0]); checkDirectorySite(o[1]); @@ -3682,7 +3682,7 @@ var o = new api.DirectorySitesListResponse(); buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - o.directorySites = buildUnnamed3211(); + o.directorySites = buildUnnamed1815(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3693,7 +3693,7 @@ checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - checkUnnamed3211(o.directorySites); + checkUnnamed1815(o.directorySites); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3725,14 +3725,14 @@ buildCounterDynamicTargetingKey--; } -buildUnnamed3212() { +buildUnnamed1816() { var o = new core.List<api.DynamicTargetingKey>(); o.add(buildDynamicTargetingKey()); o.add(buildDynamicTargetingKey()); return o; } -checkUnnamed3212(core.List<api.DynamicTargetingKey> o) { +checkUnnamed1816(core.List<api.DynamicTargetingKey> o) { unittest.expect(o, unittest.hasLength(2)); checkDynamicTargetingKey(o[0]); checkDynamicTargetingKey(o[1]); @@ -3743,7 +3743,7 @@ var o = new api.DynamicTargetingKeysListResponse(); buildCounterDynamicTargetingKeysListResponse++; if (buildCounterDynamicTargetingKeysListResponse < 3) { - o.dynamicTargetingKeys = buildUnnamed3212(); + o.dynamicTargetingKeys = buildUnnamed1816(); o.kind = "foo"; } buildCounterDynamicTargetingKeysListResponse--; @@ -3753,7 +3753,7 @@ checkDynamicTargetingKeysListResponse(api.DynamicTargetingKeysListResponse o) { buildCounterDynamicTargetingKeysListResponse++; if (buildCounterDynamicTargetingKeysListResponse < 3) { - checkUnnamed3212(o.dynamicTargetingKeys); + checkUnnamed1816(o.dynamicTargetingKeys); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDynamicTargetingKeysListResponse--; @@ -3784,14 +3784,14 @@ buildCounterEncryptionInfo--; } -buildUnnamed3213() { +buildUnnamed1817() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3213(core.List<core.String> o) { +checkUnnamed1817(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3813,7 +3813,7 @@ o.kind = "foo"; o.name = "foo"; o.siteFilterType = "foo"; - o.siteIds = buildUnnamed3213(); + o.siteIds = buildUnnamed1817(); o.sslCompliant = true; o.status = "foo"; o.subaccountId = "foo"; @@ -3839,7 +3839,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.siteFilterType, unittest.equals('foo')); - checkUnnamed3213(o.siteIds); + checkUnnamed1817(o.siteIds); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); @@ -3871,14 +3871,14 @@ buildCounterEventTagOverride--; } -buildUnnamed3214() { +buildUnnamed1818() { var o = new core.List<api.EventTag>(); o.add(buildEventTag()); o.add(buildEventTag()); return o; } -checkUnnamed3214(core.List<api.EventTag> o) { +checkUnnamed1818(core.List<api.EventTag> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTag(o[0]); checkEventTag(o[1]); @@ -3889,7 +3889,7 @@ var o = new api.EventTagsListResponse(); buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - o.eventTags = buildUnnamed3214(); + o.eventTags = buildUnnamed1818(); o.kind = "foo"; } buildCounterEventTagsListResponse--; @@ -3899,7 +3899,7 @@ checkEventTagsListResponse(api.EventTagsListResponse o) { buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - checkUnnamed3214(o.eventTags); + checkUnnamed1818(o.eventTags); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventTagsListResponse--; @@ -3963,14 +3963,14 @@ buildCounterFile--; } -buildUnnamed3215() { +buildUnnamed1819() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed3215(core.List<api.File> o) { +checkUnnamed1819(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -3982,7 +3982,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { o.etag = "foo"; - o.items = buildUnnamed3215(); + o.items = buildUnnamed1819(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3994,7 +3994,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3215(o.items); + checkUnnamed1819(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4050,14 +4050,14 @@ buildCounterFloodlightActivitiesGenerateTagResponse--; } -buildUnnamed3216() { +buildUnnamed1820() { var o = new core.List<api.FloodlightActivity>(); o.add(buildFloodlightActivity()); o.add(buildFloodlightActivity()); return o; } -checkUnnamed3216(core.List<api.FloodlightActivity> o) { +checkUnnamed1820(core.List<api.FloodlightActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivity(o[0]); checkFloodlightActivity(o[1]); @@ -4068,7 +4068,7 @@ var o = new api.FloodlightActivitiesListResponse(); buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - o.floodlightActivities = buildUnnamed3216(); + o.floodlightActivities = buildUnnamed1820(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4079,47 +4079,47 @@ checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - checkUnnamed3216(o.floodlightActivities); + checkUnnamed1820(o.floodlightActivities); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFloodlightActivitiesListResponse--; } -buildUnnamed3217() { +buildUnnamed1821() { var o = new core.List<api.FloodlightActivityDynamicTag>(); o.add(buildFloodlightActivityDynamicTag()); o.add(buildFloodlightActivityDynamicTag()); return o; } -checkUnnamed3217(core.List<api.FloodlightActivityDynamicTag> o) { +checkUnnamed1821(core.List<api.FloodlightActivityDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityDynamicTag(o[0]); checkFloodlightActivityDynamicTag(o[1]); } -buildUnnamed3218() { +buildUnnamed1822() { var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); o.add(buildFloodlightActivityPublisherDynamicTag()); o.add(buildFloodlightActivityPublisherDynamicTag()); return o; } -checkUnnamed3218(core.List<api.FloodlightActivityPublisherDynamicTag> o) { +checkUnnamed1822(core.List<api.FloodlightActivityPublisherDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityPublisherDynamicTag(o[0]); checkFloodlightActivityPublisherDynamicTag(o[1]); } -buildUnnamed3219() { +buildUnnamed1823() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3219(core.List<core.String> o) { +checkUnnamed1823(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4135,7 +4135,7 @@ o.advertiserIdDimensionValue = buildDimensionValue(); o.cacheBustingType = "foo"; o.countingMethod = "foo"; - o.defaultTags = buildUnnamed3217(); + o.defaultTags = buildUnnamed1821(); o.expectedUrl = "foo"; o.floodlightActivityGroupId = "foo"; o.floodlightActivityGroupName = "foo"; @@ -4150,14 +4150,14 @@ o.kind = "foo"; o.name = "foo"; o.notes = "foo"; - o.publisherTags = buildUnnamed3218(); + o.publisherTags = buildUnnamed1822(); o.secure = true; o.sslCompliant = true; o.sslRequired = true; o.subaccountId = "foo"; o.tagFormat = "foo"; o.tagString = "foo"; - o.userDefinedVariableTypes = buildUnnamed3219(); + o.userDefinedVariableTypes = buildUnnamed1823(); } buildCounterFloodlightActivity--; return o; @@ -4171,7 +4171,7 @@ checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.cacheBustingType, unittest.equals('foo')); unittest.expect(o.countingMethod, unittest.equals('foo')); - checkUnnamed3217(o.defaultTags); + checkUnnamed1821(o.defaultTags); unittest.expect(o.expectedUrl, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupId, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupName, unittest.equals('foo')); @@ -4186,14 +4186,14 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed3218(o.publisherTags); + checkUnnamed1822(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')); - checkUnnamed3219(o.userDefinedVariableTypes); + checkUnnamed1823(o.userDefinedVariableTypes); } buildCounterFloodlightActivity--; } @@ -4262,14 +4262,14 @@ buildCounterFloodlightActivityGroup--; } -buildUnnamed3220() { +buildUnnamed1824() { var o = new core.List<api.FloodlightActivityGroup>(); o.add(buildFloodlightActivityGroup()); o.add(buildFloodlightActivityGroup()); return o; } -checkUnnamed3220(core.List<api.FloodlightActivityGroup> o) { +checkUnnamed1824(core.List<api.FloodlightActivityGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityGroup(o[0]); checkFloodlightActivityGroup(o[1]); @@ -4280,7 +4280,7 @@ var o = new api.FloodlightActivityGroupsListResponse(); buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - o.floodlightActivityGroups = buildUnnamed3220(); + o.floodlightActivityGroups = buildUnnamed1824(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4292,7 +4292,7 @@ api.FloodlightActivityGroupsListResponse o) { buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - checkUnnamed3220(o.floodlightActivityGroups); + checkUnnamed1824(o.floodlightActivityGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4329,27 +4329,27 @@ buildCounterFloodlightActivityPublisherDynamicTag--; } -buildUnnamed3221() { +buildUnnamed1825() { var o = new core.List<api.ThirdPartyAuthenticationToken>(); o.add(buildThirdPartyAuthenticationToken()); o.add(buildThirdPartyAuthenticationToken()); return o; } -checkUnnamed3221(core.List<api.ThirdPartyAuthenticationToken> o) { +checkUnnamed1825(core.List<api.ThirdPartyAuthenticationToken> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyAuthenticationToken(o[0]); checkThirdPartyAuthenticationToken(o[1]); } -buildUnnamed3222() { +buildUnnamed1826() { var o = new core.List<api.UserDefinedVariableConfiguration>(); o.add(buildUserDefinedVariableConfiguration()); o.add(buildUserDefinedVariableConfiguration()); return o; } -checkUnnamed3222(core.List<api.UserDefinedVariableConfiguration> o) { +checkUnnamed1826(core.List<api.UserDefinedVariableConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedVariableConfiguration(o[0]); checkUserDefinedVariableConfiguration(o[1]); @@ -4375,8 +4375,8 @@ o.omnitureSettings = buildOmnitureSettings(); o.subaccountId = "foo"; o.tagSettings = buildTagSettings(); - o.thirdPartyAuthenticationTokens = buildUnnamed3221(); - o.userDefinedVariableConfigurations = buildUnnamed3222(); + o.thirdPartyAuthenticationTokens = buildUnnamed1825(); + o.userDefinedVariableConfigurations = buildUnnamed1826(); } buildCounterFloodlightConfiguration--; return o; @@ -4401,20 +4401,20 @@ checkOmnitureSettings(o.omnitureSettings); unittest.expect(o.subaccountId, unittest.equals('foo')); checkTagSettings(o.tagSettings); - checkUnnamed3221(o.thirdPartyAuthenticationTokens); - checkUnnamed3222(o.userDefinedVariableConfigurations); + checkUnnamed1825(o.thirdPartyAuthenticationTokens); + checkUnnamed1826(o.userDefinedVariableConfigurations); } buildCounterFloodlightConfiguration--; } -buildUnnamed3223() { +buildUnnamed1827() { var o = new core.List<api.FloodlightConfiguration>(); o.add(buildFloodlightConfiguration()); o.add(buildFloodlightConfiguration()); return o; } -checkUnnamed3223(core.List<api.FloodlightConfiguration> o) { +checkUnnamed1827(core.List<api.FloodlightConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightConfiguration(o[0]); checkFloodlightConfiguration(o[1]); @@ -4425,7 +4425,7 @@ var o = new api.FloodlightConfigurationsListResponse(); buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - o.floodlightConfigurations = buildUnnamed3223(); + o.floodlightConfigurations = buildUnnamed1827(); o.kind = "foo"; } buildCounterFloodlightConfigurationsListResponse--; @@ -4436,46 +4436,46 @@ api.FloodlightConfigurationsListResponse o) { buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - checkUnnamed3223(o.floodlightConfigurations); + checkUnnamed1827(o.floodlightConfigurations); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterFloodlightConfigurationsListResponse--; } -buildUnnamed3224() { +buildUnnamed1828() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3224(core.List<api.Dimension> o) { +checkUnnamed1828(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed3225() { +buildUnnamed1829() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3225(core.List<api.Dimension> o) { +checkUnnamed1829(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed3226() { +buildUnnamed1830() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed3226(core.List<api.Metric> o) { +checkUnnamed1830(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -4486,10 +4486,10 @@ var o = new api.FloodlightReportCompatibleFields(); buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed3224(); - o.dimensions = buildUnnamed3225(); + o.dimensionFilters = buildUnnamed1828(); + o.dimensions = buildUnnamed1829(); o.kind = "foo"; - o.metrics = buildUnnamed3226(); + o.metrics = buildUnnamed1830(); } buildCounterFloodlightReportCompatibleFields--; return o; @@ -4498,10 +4498,10 @@ checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - checkUnnamed3224(o.dimensionFilters); - checkUnnamed3225(o.dimensions); + checkUnnamed1828(o.dimensionFilters); + checkUnnamed1829(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3226(o.metrics); + checkUnnamed1830(o.metrics); } buildCounterFloodlightReportCompatibleFields--; } @@ -4554,66 +4554,66 @@ buildCounterFsCommand--; } -buildUnnamed3227() { +buildUnnamed1831() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed3227(core.List<api.City> o) { +checkUnnamed1831(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); } -buildUnnamed3228() { +buildUnnamed1832() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed3228(core.List<api.Country> o) { +checkUnnamed1832(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); } -buildUnnamed3229() { +buildUnnamed1833() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed3229(core.List<api.Metro> o) { +checkUnnamed1833(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); } -buildUnnamed3230() { +buildUnnamed1834() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed3230(core.List<api.PostalCode> o) { +checkUnnamed1834(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); } -buildUnnamed3231() { +buildUnnamed1835() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed3231(core.List<api.Region> o) { +checkUnnamed1835(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -4624,12 +4624,12 @@ var o = new api.GeoTargeting(); buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - o.cities = buildUnnamed3227(); - o.countries = buildUnnamed3228(); + o.cities = buildUnnamed1831(); + o.countries = buildUnnamed1832(); o.excludeCountries = true; - o.metros = buildUnnamed3229(); - o.postalCodes = buildUnnamed3230(); - o.regions = buildUnnamed3231(); + o.metros = buildUnnamed1833(); + o.postalCodes = buildUnnamed1834(); + o.regions = buildUnnamed1835(); } buildCounterGeoTargeting--; return o; @@ -4638,24 +4638,24 @@ checkGeoTargeting(api.GeoTargeting o) { buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - checkUnnamed3227(o.cities); - checkUnnamed3228(o.countries); + checkUnnamed1831(o.cities); + checkUnnamed1832(o.countries); unittest.expect(o.excludeCountries, unittest.isTrue); - checkUnnamed3229(o.metros); - checkUnnamed3230(o.postalCodes); - checkUnnamed3231(o.regions); + checkUnnamed1833(o.metros); + checkUnnamed1834(o.postalCodes); + checkUnnamed1835(o.regions); } buildCounterGeoTargeting--; } -buildUnnamed3232() { +buildUnnamed1836() { var o = new core.List<api.AdSlot>(); o.add(buildAdSlot()); o.add(buildAdSlot()); return o; } -checkUnnamed3232(core.List<api.AdSlot> o) { +checkUnnamed1836(core.List<api.AdSlot> o) { unittest.expect(o, unittest.hasLength(2)); checkAdSlot(o[0]); checkAdSlot(o[1]); @@ -4667,7 +4667,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { o.accountId = "foo"; - o.adSlots = buildUnnamed3232(); + o.adSlots = buildUnnamed1836(); o.advertiserId = "foo"; o.contentCategoryId = "foo"; o.estimatedClickThroughRate = "foo"; @@ -4695,7 +4695,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed3232(o.adSlots); + checkUnnamed1836(o.adSlots); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); unittest.expect(o.estimatedClickThroughRate, unittest.equals('foo')); @@ -4718,14 +4718,14 @@ buildCounterInventoryItem--; } -buildUnnamed3233() { +buildUnnamed1837() { var o = new core.List<api.InventoryItem>(); o.add(buildInventoryItem()); o.add(buildInventoryItem()); return o; } -checkUnnamed3233(core.List<api.InventoryItem> o) { +checkUnnamed1837(core.List<api.InventoryItem> o) { unittest.expect(o, unittest.hasLength(2)); checkInventoryItem(o[0]); checkInventoryItem(o[1]); @@ -4736,7 +4736,7 @@ var o = new api.InventoryItemsListResponse(); buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - o.inventoryItems = buildUnnamed3233(); + o.inventoryItems = buildUnnamed1837(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4747,7 +4747,7 @@ checkInventoryItemsListResponse(api.InventoryItemsListResponse o) { buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - checkUnnamed3233(o.inventoryItems); + checkUnnamed1837(o.inventoryItems); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4800,14 +4800,14 @@ buildCounterLandingPage--; } -buildUnnamed3234() { +buildUnnamed1838() { var o = new core.List<api.LandingPage>(); o.add(buildLandingPage()); o.add(buildLandingPage()); return o; } -checkUnnamed3234(core.List<api.LandingPage> o) { +checkUnnamed1838(core.List<api.LandingPage> o) { unittest.expect(o, unittest.hasLength(2)); checkLandingPage(o[0]); checkLandingPage(o[1]); @@ -4819,7 +4819,7 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { o.kind = "foo"; - o.landingPages = buildUnnamed3234(); + o.landingPages = buildUnnamed1838(); } buildCounterLandingPagesListResponse--; return o; @@ -4829,7 +4829,7 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3234(o.landingPages); + checkUnnamed1838(o.landingPages); } buildCounterLandingPagesListResponse--; } @@ -4859,14 +4859,14 @@ buildCounterLanguage--; } -buildUnnamed3235() { +buildUnnamed1839() { var o = new core.List<api.Language>(); o.add(buildLanguage()); o.add(buildLanguage()); return o; } -checkUnnamed3235(core.List<api.Language> o) { +checkUnnamed1839(core.List<api.Language> o) { unittest.expect(o, unittest.hasLength(2)); checkLanguage(o[0]); checkLanguage(o[1]); @@ -4877,7 +4877,7 @@ var o = new api.LanguageTargeting(); buildCounterLanguageTargeting++; if (buildCounterLanguageTargeting < 3) { - o.languages = buildUnnamed3235(); + o.languages = buildUnnamed1839(); } buildCounterLanguageTargeting--; return o; @@ -4886,19 +4886,19 @@ checkLanguageTargeting(api.LanguageTargeting o) { buildCounterLanguageTargeting++; if (buildCounterLanguageTargeting < 3) { - checkUnnamed3235(o.languages); + checkUnnamed1839(o.languages); } buildCounterLanguageTargeting--; } -buildUnnamed3236() { +buildUnnamed1840() { var o = new core.List<api.Language>(); o.add(buildLanguage()); o.add(buildLanguage()); return o; } -checkUnnamed3236(core.List<api.Language> o) { +checkUnnamed1840(core.List<api.Language> o) { unittest.expect(o, unittest.hasLength(2)); checkLanguage(o[0]); checkLanguage(o[1]); @@ -4910,7 +4910,7 @@ buildCounterLanguagesListResponse++; if (buildCounterLanguagesListResponse < 3) { o.kind = "foo"; - o.languages = buildUnnamed3236(); + o.languages = buildUnnamed1840(); } buildCounterLanguagesListResponse--; return o; @@ -4920,7 +4920,7 @@ buildCounterLanguagesListResponse++; if (buildCounterLanguagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3236(o.languages); + checkUnnamed1840(o.languages); } buildCounterLanguagesListResponse--; } @@ -4944,14 +4944,14 @@ buildCounterLastModifiedInfo--; } -buildUnnamed3237() { +buildUnnamed1841() { var o = new core.List<api.ListPopulationTerm>(); o.add(buildListPopulationTerm()); o.add(buildListPopulationTerm()); return o; } -checkUnnamed3237(core.List<api.ListPopulationTerm> o) { +checkUnnamed1841(core.List<api.ListPopulationTerm> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationTerm(o[0]); checkListPopulationTerm(o[1]); @@ -4962,7 +4962,7 @@ var o = new api.ListPopulationClause(); buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - o.terms = buildUnnamed3237(); + o.terms = buildUnnamed1841(); } buildCounterListPopulationClause--; return o; @@ -4971,19 +4971,19 @@ checkListPopulationClause(api.ListPopulationClause o) { buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - checkUnnamed3237(o.terms); + checkUnnamed1841(o.terms); } buildCounterListPopulationClause--; } -buildUnnamed3238() { +buildUnnamed1842() { var o = new core.List<api.ListPopulationClause>(); o.add(buildListPopulationClause()); o.add(buildListPopulationClause()); return o; } -checkUnnamed3238(core.List<api.ListPopulationClause> o) { +checkUnnamed1842(core.List<api.ListPopulationClause> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationClause(o[0]); checkListPopulationClause(o[1]); @@ -4996,7 +4996,7 @@ if (buildCounterListPopulationRule < 3) { o.floodlightActivityId = "foo"; o.floodlightActivityName = "foo"; - o.listPopulationClauses = buildUnnamed3238(); + o.listPopulationClauses = buildUnnamed1842(); } buildCounterListPopulationRule--; return o; @@ -5007,7 +5007,7 @@ if (buildCounterListPopulationRule < 3) { unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightActivityName, unittest.equals('foo')); - checkUnnamed3238(o.listPopulationClauses); + checkUnnamed1842(o.listPopulationClauses); } buildCounterListPopulationRule--; } @@ -5137,14 +5137,14 @@ buildCounterMetro--; } -buildUnnamed3239() { +buildUnnamed1843() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed3239(core.List<api.Metro> o) { +checkUnnamed1843(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); @@ -5156,7 +5156,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { o.kind = "foo"; - o.metros = buildUnnamed3239(); + o.metros = buildUnnamed1843(); } buildCounterMetrosListResponse--; return o; @@ -5166,7 +5166,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3239(o.metros); + checkUnnamed1843(o.metros); } buildCounterMetrosListResponse--; } @@ -5198,14 +5198,14 @@ buildCounterMobileCarrier--; } -buildUnnamed3240() { +buildUnnamed1844() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed3240(core.List<api.MobileCarrier> o) { +checkUnnamed1844(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); @@ -5217,7 +5217,7 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { o.kind = "foo"; - o.mobileCarriers = buildUnnamed3240(); + o.mobileCarriers = buildUnnamed1844(); } buildCounterMobileCarriersListResponse--; return o; @@ -5227,19 +5227,19 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3240(o.mobileCarriers); + checkUnnamed1844(o.mobileCarriers); } buildCounterMobileCarriersListResponse--; } -buildUnnamed3241() { +buildUnnamed1845() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3241(core.List<core.String> o) { +checkUnnamed1845(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5251,7 +5251,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { o.kind = "foo"; - o.objectIds = buildUnnamed3241(); + o.objectIds = buildUnnamed1845(); o.status = "foo"; } buildCounterObjectFilter--; @@ -5262,7 +5262,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3241(o.objectIds); + checkUnnamed1845(o.objectIds); unittest.expect(o.status, unittest.equals('foo')); } buildCounterObjectFilter--; @@ -5366,14 +5366,14 @@ buildCounterOperatingSystemVersion--; } -buildUnnamed3242() { +buildUnnamed1846() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed3242(core.List<api.OperatingSystemVersion> o) { +checkUnnamed1846(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); @@ -5385,7 +5385,7 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { o.kind = "foo"; - o.operatingSystemVersions = buildUnnamed3242(); + o.operatingSystemVersions = buildUnnamed1846(); } buildCounterOperatingSystemVersionsListResponse--; return o; @@ -5396,19 +5396,19 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3242(o.operatingSystemVersions); + checkUnnamed1846(o.operatingSystemVersions); } buildCounterOperatingSystemVersionsListResponse--; } -buildUnnamed3243() { +buildUnnamed1847() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed3243(core.List<api.OperatingSystem> o) { +checkUnnamed1847(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); @@ -5420,7 +5420,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { o.kind = "foo"; - o.operatingSystems = buildUnnamed3243(); + o.operatingSystems = buildUnnamed1847(); } buildCounterOperatingSystemsListResponse--; return o; @@ -5430,7 +5430,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3243(o.operatingSystems); + checkUnnamed1847(o.operatingSystems); } buildCounterOperatingSystemsListResponse--; } @@ -5458,53 +5458,53 @@ buildCounterOptimizationActivity--; } -buildUnnamed3244() { +buildUnnamed1848() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3244(core.List<core.String> o) { +checkUnnamed1848(core.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() { +buildUnnamed1849() { var o = new core.List<api.OrderContact>(); o.add(buildOrderContact()); o.add(buildOrderContact()); return o; } -checkUnnamed3245(core.List<api.OrderContact> o) { +checkUnnamed1849(core.List<api.OrderContact> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderContact(o[0]); checkOrderContact(o[1]); } -buildUnnamed3246() { +buildUnnamed1850() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3246(core.List<core.String> o) { +checkUnnamed1850(core.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() { +buildUnnamed1851() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3247(core.List<core.String> o) { +checkUnnamed1851(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5517,11 +5517,11 @@ if (buildCounterOrder < 3) { o.accountId = "foo"; o.advertiserId = "foo"; - o.approverUserProfileIds = buildUnnamed3244(); + o.approverUserProfileIds = buildUnnamed1848(); o.buyerInvoiceId = "foo"; o.buyerOrganizationName = "foo"; o.comments = "foo"; - o.contacts = buildUnnamed3245(); + o.contacts = buildUnnamed1849(); o.id = "foo"; o.kind = "foo"; o.lastModifiedInfo = buildLastModifiedInfo(); @@ -5531,8 +5531,8 @@ o.projectId = "foo"; o.sellerOrderId = "foo"; o.sellerOrganizationName = "foo"; - o.siteId = buildUnnamed3246(); - o.siteNames = buildUnnamed3247(); + o.siteId = buildUnnamed1850(); + o.siteNames = buildUnnamed1851(); o.subaccountId = "foo"; o.termsAndConditions = "foo"; } @@ -5545,11 +5545,11 @@ if (buildCounterOrder < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); - checkUnnamed3244(o.approverUserProfileIds); + checkUnnamed1848(o.approverUserProfileIds); unittest.expect(o.buyerInvoiceId, unittest.equals('foo')); unittest.expect(o.buyerOrganizationName, unittest.equals('foo')); unittest.expect(o.comments, unittest.equals('foo')); - checkUnnamed3245(o.contacts); + checkUnnamed1849(o.contacts); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkLastModifiedInfo(o.lastModifiedInfo); @@ -5559,8 +5559,8 @@ unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.sellerOrderId, unittest.equals('foo')); unittest.expect(o.sellerOrganizationName, unittest.equals('foo')); - checkUnnamed3246(o.siteId); - checkUnnamed3247(o.siteNames); + checkUnnamed1850(o.siteId); + checkUnnamed1851(o.siteNames); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.termsAndConditions, unittest.equals('foo')); } @@ -5594,27 +5594,27 @@ buildCounterOrderContact--; } -buildUnnamed3248() { +buildUnnamed1852() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3248(core.List<core.String> o) { +checkUnnamed1852(core.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() { +buildUnnamed1853() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3249(core.List<core.String> o) { +checkUnnamed1853(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5628,13 +5628,13 @@ o.accountId = "foo"; o.advertiserId = "foo"; o.amendedOrderDocumentId = "foo"; - o.approvedByUserProfileIds = buildUnnamed3248(); + o.approvedByUserProfileIds = buildUnnamed1852(); o.cancelled = true; o.createdInfo = buildLastModifiedInfo(); o.effectiveDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.id = "foo"; o.kind = "foo"; - o.lastSentRecipients = buildUnnamed3249(); + o.lastSentRecipients = buildUnnamed1853(); o.lastSentTime = core.DateTime.parse("2002-02-27T14:01:02"); o.orderId = "foo"; o.projectId = "foo"; @@ -5653,14 +5653,14 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.amendedOrderDocumentId, unittest.equals('foo')); - checkUnnamed3248(o.approvedByUserProfileIds); + checkUnnamed1852(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')); - checkUnnamed3249(o.lastSentRecipients); + checkUnnamed1853(o.lastSentRecipients); unittest.expect(o.lastSentTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.orderId, unittest.equals('foo')); @@ -5673,14 +5673,14 @@ buildCounterOrderDocument--; } -buildUnnamed3250() { +buildUnnamed1854() { var o = new core.List<api.OrderDocument>(); o.add(buildOrderDocument()); o.add(buildOrderDocument()); return o; } -checkUnnamed3250(core.List<api.OrderDocument> o) { +checkUnnamed1854(core.List<api.OrderDocument> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderDocument(o[0]); checkOrderDocument(o[1]); @@ -5693,7 +5693,7 @@ if (buildCounterOrderDocumentsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orderDocuments = buildUnnamed3250(); + o.orderDocuments = buildUnnamed1854(); } buildCounterOrderDocumentsListResponse--; return o; @@ -5704,19 +5704,19 @@ if (buildCounterOrderDocumentsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3250(o.orderDocuments); + checkUnnamed1854(o.orderDocuments); } buildCounterOrderDocumentsListResponse--; } -buildUnnamed3251() { +buildUnnamed1855() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed3251(core.List<api.Order> o) { +checkUnnamed1855(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -5729,7 +5729,7 @@ if (buildCounterOrdersListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orders = buildUnnamed3251(); + o.orders = buildUnnamed1855(); } buildCounterOrdersListResponse--; return o; @@ -5740,58 +5740,58 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3251(o.orders); + checkUnnamed1855(o.orders); } buildCounterOrdersListResponse--; } -buildUnnamed3252() { +buildUnnamed1856() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3252(core.List<api.Dimension> o) { +checkUnnamed1856(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed3253() { +buildUnnamed1857() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3253(core.List<api.Dimension> o) { +checkUnnamed1857(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed3254() { +buildUnnamed1858() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed3254(core.List<api.Metric> o) { +checkUnnamed1858(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed3255() { +buildUnnamed1859() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3255(core.List<api.Dimension> o) { +checkUnnamed1859(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); @@ -5802,11 +5802,11 @@ var o = new api.PathToConversionReportCompatibleFields(); buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - o.conversionDimensions = buildUnnamed3252(); - o.customFloodlightVariables = buildUnnamed3253(); + o.conversionDimensions = buildUnnamed1856(); + o.customFloodlightVariables = buildUnnamed1857(); o.kind = "foo"; - o.metrics = buildUnnamed3254(); - o.perInteractionDimensions = buildUnnamed3255(); + o.metrics = buildUnnamed1858(); + o.perInteractionDimensions = buildUnnamed1859(); } buildCounterPathToConversionReportCompatibleFields--; return o; @@ -5816,23 +5816,23 @@ api.PathToConversionReportCompatibleFields o) { buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - checkUnnamed3252(o.conversionDimensions); - checkUnnamed3253(o.customFloodlightVariables); + checkUnnamed1856(o.conversionDimensions); + checkUnnamed1857(o.customFloodlightVariables); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3254(o.metrics); - checkUnnamed3255(o.perInteractionDimensions); + checkUnnamed1858(o.metrics); + checkUnnamed1859(o.perInteractionDimensions); } buildCounterPathToConversionReportCompatibleFields--; } -buildUnnamed3256() { +buildUnnamed1860() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3256(core.List<core.String> o) { +checkUnnamed1860(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5878,7 +5878,7 @@ o.sslRequired = true; o.status = "foo"; o.subaccountId = "foo"; - o.tagFormats = buildUnnamed3256(); + o.tagFormats = buildUnnamed1860(); o.tagSetting = buildTagSetting(); o.videoActiveViewOptOut = true; o.videoSettings = buildVideoSettings(); @@ -5926,7 +5926,7 @@ unittest.expect(o.sslRequired, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed3256(o.tagFormats); + checkUnnamed1860(o.tagFormats); checkTagSetting(o.tagSetting); unittest.expect(o.videoActiveViewOptOut, unittest.isTrue); checkVideoSettings(o.videoSettings); @@ -5960,14 +5960,14 @@ buildCounterPlacementAssignment--; } -buildUnnamed3257() { +buildUnnamed1861() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3257(core.List<core.String> o) { +checkUnnamed1861(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5984,7 +5984,7 @@ o.archived = true; o.campaignId = "foo"; o.campaignIdDimensionValue = buildDimensionValue(); - o.childPlacementIds = buildUnnamed3257(); + o.childPlacementIds = buildUnnamed1861(); o.comment = "foo"; o.contentCategoryId = "foo"; o.createInfo = buildLastModifiedInfo(); @@ -6018,7 +6018,7 @@ unittest.expect(o.archived, unittest.isTrue); unittest.expect(o.campaignId, unittest.equals('foo')); checkDimensionValue(o.campaignIdDimensionValue); - checkUnnamed3257(o.childPlacementIds); + checkUnnamed1861(o.childPlacementIds); unittest.expect(o.comment, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); @@ -6042,14 +6042,14 @@ buildCounterPlacementGroup--; } -buildUnnamed3258() { +buildUnnamed1862() { var o = new core.List<api.PlacementGroup>(); o.add(buildPlacementGroup()); o.add(buildPlacementGroup()); return o; } -checkUnnamed3258(core.List<api.PlacementGroup> o) { +checkUnnamed1862(core.List<api.PlacementGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementGroup(o[0]); checkPlacementGroup(o[1]); @@ -6062,7 +6062,7 @@ if (buildCounterPlacementGroupsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementGroups = buildUnnamed3258(); + o.placementGroups = buildUnnamed1862(); } buildCounterPlacementGroupsListResponse--; return o; @@ -6073,19 +6073,19 @@ if (buildCounterPlacementGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3258(o.placementGroups); + checkUnnamed1862(o.placementGroups); } buildCounterPlacementGroupsListResponse--; } -buildUnnamed3259() { +buildUnnamed1863() { var o = new core.List<api.PlacementStrategy>(); o.add(buildPlacementStrategy()); o.add(buildPlacementStrategy()); return o; } -checkUnnamed3259(core.List<api.PlacementStrategy> o) { +checkUnnamed1863(core.List<api.PlacementStrategy> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementStrategy(o[0]); checkPlacementStrategy(o[1]); @@ -6098,7 +6098,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementStrategies = buildUnnamed3259(); + o.placementStrategies = buildUnnamed1863(); } buildCounterPlacementStrategiesListResponse--; return o; @@ -6109,7 +6109,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3259(o.placementStrategies); + checkUnnamed1863(o.placementStrategies); } buildCounterPlacementStrategiesListResponse--; } @@ -6139,14 +6139,14 @@ buildCounterPlacementStrategy--; } -buildUnnamed3260() { +buildUnnamed1864() { var o = new core.List<api.TagData>(); o.add(buildTagData()); o.add(buildTagData()); return o; } -checkUnnamed3260(core.List<api.TagData> o) { +checkUnnamed1864(core.List<api.TagData> o) { unittest.expect(o, unittest.hasLength(2)); checkTagData(o[0]); checkTagData(o[1]); @@ -6158,7 +6158,7 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { o.placementId = "foo"; - o.tagDatas = buildUnnamed3260(); + o.tagDatas = buildUnnamed1864(); } buildCounterPlacementTag--; return o; @@ -6168,19 +6168,19 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { unittest.expect(o.placementId, unittest.equals('foo')); - checkUnnamed3260(o.tagDatas); + checkUnnamed1864(o.tagDatas); } buildCounterPlacementTag--; } -buildUnnamed3261() { +buildUnnamed1865() { var o = new core.List<api.PlacementTag>(); o.add(buildPlacementTag()); o.add(buildPlacementTag()); return o; } -checkUnnamed3261(core.List<api.PlacementTag> o) { +checkUnnamed1865(core.List<api.PlacementTag> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementTag(o[0]); checkPlacementTag(o[1]); @@ -6192,7 +6192,7 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { o.kind = "foo"; - o.placementTags = buildUnnamed3261(); + o.placementTags = buildUnnamed1865(); } buildCounterPlacementsGenerateTagsResponse--; return o; @@ -6202,19 +6202,19 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3261(o.placementTags); + checkUnnamed1865(o.placementTags); } buildCounterPlacementsGenerateTagsResponse--; } -buildUnnamed3262() { +buildUnnamed1866() { var o = new core.List<api.Placement>(); o.add(buildPlacement()); o.add(buildPlacement()); return o; } -checkUnnamed3262(core.List<api.Placement> o) { +checkUnnamed1866(core.List<api.Placement> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacement(o[0]); checkPlacement(o[1]); @@ -6227,7 +6227,7 @@ if (buildCounterPlacementsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placements = buildUnnamed3262(); + o.placements = buildUnnamed1866(); } buildCounterPlacementsListResponse--; return o; @@ -6238,7 +6238,7 @@ if (buildCounterPlacementsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3262(o.placements); + checkUnnamed1866(o.placements); } buildCounterPlacementsListResponse--; } @@ -6266,14 +6266,14 @@ buildCounterPlatformType--; } -buildUnnamed3263() { +buildUnnamed1867() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed3263(core.List<api.PlatformType> o) { +checkUnnamed1867(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -6285,7 +6285,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { o.kind = "foo"; - o.platformTypes = buildUnnamed3263(); + o.platformTypes = buildUnnamed1867(); } buildCounterPlatformTypesListResponse--; return o; @@ -6295,7 +6295,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3263(o.platformTypes); + checkUnnamed1867(o.platformTypes); } buildCounterPlatformTypesListResponse--; } @@ -6362,14 +6362,14 @@ buildCounterPostalCode--; } -buildUnnamed3264() { +buildUnnamed1868() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed3264(core.List<api.PostalCode> o) { +checkUnnamed1868(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); @@ -6381,7 +6381,7 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { o.kind = "foo"; - o.postalCodes = buildUnnamed3264(); + o.postalCodes = buildUnnamed1868(); } buildCounterPostalCodesListResponse--; return o; @@ -6391,19 +6391,19 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3264(o.postalCodes); + checkUnnamed1868(o.postalCodes); } buildCounterPostalCodesListResponse--; } -buildUnnamed3265() { +buildUnnamed1869() { var o = new core.List<api.Flight>(); o.add(buildFlight()); o.add(buildFlight()); return o; } -checkUnnamed3265(core.List<api.Flight> o) { +checkUnnamed1869(core.List<api.Flight> o) { unittest.expect(o, unittest.hasLength(2)); checkFlight(o[0]); checkFlight(o[1]); @@ -6416,7 +6416,7 @@ if (buildCounterPricing < 3) { o.capCostType = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.flights = buildUnnamed3265(); + o.flights = buildUnnamed1869(); o.groupType = "foo"; o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -6431,7 +6431,7 @@ unittest.expect(o.capCostType, unittest.equals('foo')); unittest.expect( o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed3265(o.flights); + checkUnnamed1869(o.flights); unittest.expect(o.groupType, unittest.equals('foo')); unittest.expect(o.pricingType, unittest.equals('foo')); unittest.expect(o.startDate, @@ -6440,14 +6440,14 @@ buildCounterPricing--; } -buildUnnamed3266() { +buildUnnamed1870() { var o = new core.List<api.PricingSchedulePricingPeriod>(); o.add(buildPricingSchedulePricingPeriod()); o.add(buildPricingSchedulePricingPeriod()); return o; } -checkUnnamed3266(core.List<api.PricingSchedulePricingPeriod> o) { +checkUnnamed1870(core.List<api.PricingSchedulePricingPeriod> o) { unittest.expect(o, unittest.hasLength(2)); checkPricingSchedulePricingPeriod(o[0]); checkPricingSchedulePricingPeriod(o[1]); @@ -6463,7 +6463,7 @@ o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.flighted = true; o.floodlightActivityId = "foo"; - o.pricingPeriods = buildUnnamed3266(); + o.pricingPeriods = buildUnnamed1870(); o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.testingStartDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -6481,7 +6481,7 @@ 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')); - checkUnnamed3266(o.pricingPeriods); + checkUnnamed1870(o.pricingPeriods); unittest.expect(o.pricingType, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -6583,14 +6583,14 @@ buildCounterProject--; } -buildUnnamed3267() { +buildUnnamed1871() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed3267(core.List<api.Project> o) { +checkUnnamed1871(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -6603,7 +6603,7 @@ if (buildCounterProjectsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.projects = buildUnnamed3267(); + o.projects = buildUnnamed1871(); } buildCounterProjectsListResponse--; return o; @@ -6614,71 +6614,71 @@ if (buildCounterProjectsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3267(o.projects); + checkUnnamed1871(o.projects); } buildCounterProjectsListResponse--; } -buildUnnamed3268() { +buildUnnamed1872() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3268(core.List<api.Dimension> o) { +checkUnnamed1872(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed3269() { +buildUnnamed1873() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3269(core.List<api.Dimension> o) { +checkUnnamed1873(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed3270() { +buildUnnamed1874() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed3270(core.List<api.Metric> o) { +checkUnnamed1874(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed3271() { +buildUnnamed1875() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed3271(core.List<api.Metric> o) { +checkUnnamed1875(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed3272() { +buildUnnamed1876() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed3272(core.List<api.Metric> o) { +checkUnnamed1876(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -6689,12 +6689,12 @@ var o = new api.ReachReportCompatibleFields(); buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed3268(); - o.dimensions = buildUnnamed3269(); + o.dimensionFilters = buildUnnamed1872(); + o.dimensions = buildUnnamed1873(); o.kind = "foo"; - o.metrics = buildUnnamed3270(); - o.pivotedActivityMetrics = buildUnnamed3271(); - o.reachByFrequencyMetrics = buildUnnamed3272(); + o.metrics = buildUnnamed1874(); + o.pivotedActivityMetrics = buildUnnamed1875(); + o.reachByFrequencyMetrics = buildUnnamed1876(); } buildCounterReachReportCompatibleFields--; return o; @@ -6703,12 +6703,12 @@ checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - checkUnnamed3268(o.dimensionFilters); - checkUnnamed3269(o.dimensions); + checkUnnamed1872(o.dimensionFilters); + checkUnnamed1873(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3270(o.metrics); - checkUnnamed3271(o.pivotedActivityMetrics); - checkUnnamed3272(o.reachByFrequencyMetrics); + checkUnnamed1874(o.metrics); + checkUnnamed1875(o.pivotedActivityMetrics); + checkUnnamed1876(o.reachByFrequencyMetrics); } buildCounterReachReportCompatibleFields--; } @@ -6765,14 +6765,14 @@ buildCounterRegion--; } -buildUnnamed3273() { +buildUnnamed1877() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed3273(core.List<api.Region> o) { +checkUnnamed1877(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -6784,7 +6784,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { o.kind = "foo"; - o.regions = buildUnnamed3273(); + o.regions = buildUnnamed1877(); } buildCounterRegionsListResponse--; return o; @@ -6794,7 +6794,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3273(o.regions); + checkUnnamed1877(o.regions); } buildCounterRegionsListResponse--; } @@ -6842,27 +6842,27 @@ buildCounterRemarketingList--; } -buildUnnamed3274() { +buildUnnamed1878() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3274(core.List<core.String> o) { +checkUnnamed1878(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3275() { +buildUnnamed1879() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3275(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')); @@ -6875,8 +6875,8 @@ if (buildCounterRemarketingListShare < 3) { o.kind = "foo"; o.remarketingListId = "foo"; - o.sharedAccountIds = buildUnnamed3274(); - o.sharedAdvertiserIds = buildUnnamed3275(); + o.sharedAccountIds = buildUnnamed1878(); + o.sharedAdvertiserIds = buildUnnamed1879(); } buildCounterRemarketingListShare--; return o; @@ -6887,20 +6887,20 @@ if (buildCounterRemarketingListShare < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.remarketingListId, unittest.equals('foo')); - checkUnnamed3274(o.sharedAccountIds); - checkUnnamed3275(o.sharedAdvertiserIds); + checkUnnamed1878(o.sharedAccountIds); + checkUnnamed1879(o.sharedAdvertiserIds); } buildCounterRemarketingListShare--; } -buildUnnamed3276() { +buildUnnamed1880() { var o = new core.List<api.RemarketingList>(); o.add(buildRemarketingList()); o.add(buildRemarketingList()); return o; } -checkUnnamed3276(core.List<api.RemarketingList> o) { +checkUnnamed1880(core.List<api.RemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkRemarketingList(o[0]); checkRemarketingList(o[1]); @@ -6913,7 +6913,7 @@ if (buildCounterRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.remarketingLists = buildUnnamed3276(); + o.remarketingLists = buildUnnamed1880(); } buildCounterRemarketingListsListResponse--; return o; @@ -6924,45 +6924,45 @@ if (buildCounterRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3276(o.remarketingLists); + checkUnnamed1880(o.remarketingLists); } buildCounterRemarketingListsListResponse--; } -buildUnnamed3277() { +buildUnnamed1881() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed3277(core.List<api.DimensionValue> o) { +checkUnnamed1881(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed3278() { +buildUnnamed1882() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed3278(core.List<api.SortedDimension> o) { +checkUnnamed1882(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed3279() { +buildUnnamed1883() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3279(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')); @@ -6976,9 +6976,9 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed3277(); - o.dimensions = buildUnnamed3278(); - o.metricNames = buildUnnamed3279(); + o.dimensionFilters = buildUnnamed1881(); + o.dimensions = buildUnnamed1882(); + o.metricNames = buildUnnamed1883(); } buildCounterReportCriteria--; return o; @@ -6990,60 +6990,60 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed3277(o.dimensionFilters); - checkUnnamed3278(o.dimensions); - checkUnnamed3279(o.metricNames); + checkUnnamed1881(o.dimensionFilters); + checkUnnamed1882(o.dimensions); + checkUnnamed1883(o.metricNames); } buildCounterReportCriteria--; } -buildUnnamed3280() { +buildUnnamed1884() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed3280(core.List<api.SortedDimension> o) { +checkUnnamed1884(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed3281() { +buildUnnamed1885() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed3281(core.List<api.DimensionValue> o) { +checkUnnamed1885(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed3282() { +buildUnnamed1886() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3282(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')); } -buildUnnamed3283() { +buildUnnamed1887() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3283(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')); @@ -7054,12 +7054,12 @@ var o = new api.ReportCrossDimensionReachCriteria(); buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - o.breakdown = buildUnnamed3280(); + o.breakdown = buildUnnamed1884(); o.dateRange = buildDateRange(); o.dimension = "foo"; - o.dimensionFilters = buildUnnamed3281(); - o.metricNames = buildUnnamed3282(); - o.overlapMetricNames = buildUnnamed3283(); + o.dimensionFilters = buildUnnamed1885(); + o.metricNames = buildUnnamed1886(); + o.overlapMetricNames = buildUnnamed1887(); o.pivoted = true; } buildCounterReportCrossDimensionReachCriteria--; @@ -7070,25 +7070,25 @@ api.ReportCrossDimensionReachCriteria o) { buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - checkUnnamed3280(o.breakdown); + checkUnnamed1884(o.breakdown); checkDateRange(o.dateRange); unittest.expect(o.dimension, unittest.equals('foo')); - checkUnnamed3281(o.dimensionFilters); - checkUnnamed3282(o.metricNames); - checkUnnamed3283(o.overlapMetricNames); + checkUnnamed1885(o.dimensionFilters); + checkUnnamed1886(o.metricNames); + checkUnnamed1887(o.overlapMetricNames); unittest.expect(o.pivoted, unittest.isTrue); } buildCounterReportCrossDimensionReachCriteria--; } -buildUnnamed3284() { +buildUnnamed1888() { var o = new core.List<api.Recipient>(); o.add(buildRecipient()); o.add(buildRecipient()); return o; } -checkUnnamed3284(core.List<api.Recipient> o) { +checkUnnamed1888(core.List<api.Recipient> o) { unittest.expect(o, unittest.hasLength(2)); checkRecipient(o[0]); checkRecipient(o[1]); @@ -7102,7 +7102,7 @@ o.emailOwner = true; o.emailOwnerDeliveryType = "foo"; o.message = "foo"; - o.recipients = buildUnnamed3284(); + o.recipients = buildUnnamed1888(); } buildCounterReportDelivery--; return o; @@ -7114,58 +7114,58 @@ unittest.expect(o.emailOwner, unittest.isTrue); unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); unittest.expect(o.message, unittest.equals('foo')); - checkUnnamed3284(o.recipients); + checkUnnamed1888(o.recipients); } buildCounterReportDelivery--; } -buildUnnamed3285() { +buildUnnamed1889() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed3285(core.List<api.DimensionValue> o) { +checkUnnamed1889(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed3286() { +buildUnnamed1890() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed3286(core.List<api.DimensionValue> o) { +checkUnnamed1890(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed3287() { +buildUnnamed1891() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed3287(core.List<api.SortedDimension> o) { +checkUnnamed1891(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed3288() { +buildUnnamed1892() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3288(core.List<core.String> o) { +checkUnnamed1892(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7200,12 +7200,12 @@ var o = new api.ReportFloodlightCriteria(); buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - o.customRichMediaEvents = buildUnnamed3285(); + o.customRichMediaEvents = buildUnnamed1889(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed3286(); - o.dimensions = buildUnnamed3287(); + o.dimensionFilters = buildUnnamed1890(); + o.dimensions = buildUnnamed1891(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed3288(); + o.metricNames = buildUnnamed1892(); o.reportProperties = buildReportFloodlightCriteriaReportProperties(); } buildCounterReportFloodlightCriteria--; @@ -7215,90 +7215,90 @@ checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - checkUnnamed3285(o.customRichMediaEvents); + checkUnnamed1889(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed3286(o.dimensionFilters); - checkUnnamed3287(o.dimensions); + checkUnnamed1890(o.dimensionFilters); + checkUnnamed1891(o.dimensions); checkDimensionValue(o.floodlightConfigId); - checkUnnamed3288(o.metricNames); + checkUnnamed1892(o.metricNames); checkReportFloodlightCriteriaReportProperties(o.reportProperties); } buildCounterReportFloodlightCriteria--; } -buildUnnamed3289() { +buildUnnamed1893() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed3289(core.List<api.DimensionValue> o) { +checkUnnamed1893(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed3290() { +buildUnnamed1894() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed3290(core.List<api.SortedDimension> o) { +checkUnnamed1894(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed3291() { +buildUnnamed1895() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed3291(core.List<api.SortedDimension> o) { +checkUnnamed1895(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed3292() { +buildUnnamed1896() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed3292(core.List<api.DimensionValue> o) { +checkUnnamed1896(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed3293() { +buildUnnamed1897() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3293(core.List<core.String> o) { +checkUnnamed1897(core.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() { +buildUnnamed1898() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed3294(core.List<api.SortedDimension> o) { +checkUnnamed1898(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); @@ -7345,14 +7345,14 @@ var o = new api.ReportPathToConversionCriteria(); buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - o.activityFilters = buildUnnamed3289(); - o.conversionDimensions = buildUnnamed3290(); - o.customFloodlightVariables = buildUnnamed3291(); - o.customRichMediaEvents = buildUnnamed3292(); + o.activityFilters = buildUnnamed1893(); + o.conversionDimensions = buildUnnamed1894(); + o.customFloodlightVariables = buildUnnamed1895(); + o.customRichMediaEvents = buildUnnamed1896(); o.dateRange = buildDateRange(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed3293(); - o.perInteractionDimensions = buildUnnamed3294(); + o.metricNames = buildUnnamed1897(); + o.perInteractionDimensions = buildUnnamed1898(); o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); } buildCounterReportPathToConversionCriteria--; @@ -7362,66 +7362,66 @@ checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - checkUnnamed3289(o.activityFilters); - checkUnnamed3290(o.conversionDimensions); - checkUnnamed3291(o.customFloodlightVariables); - checkUnnamed3292(o.customRichMediaEvents); + checkUnnamed1893(o.activityFilters); + checkUnnamed1894(o.conversionDimensions); + checkUnnamed1895(o.customFloodlightVariables); + checkUnnamed1896(o.customRichMediaEvents); checkDateRange(o.dateRange); checkDimensionValue(o.floodlightConfigId); - checkUnnamed3293(o.metricNames); - checkUnnamed3294(o.perInteractionDimensions); + checkUnnamed1897(o.metricNames); + checkUnnamed1898(o.perInteractionDimensions); checkReportPathToConversionCriteriaReportProperties(o.reportProperties); } buildCounterReportPathToConversionCriteria--; } -buildUnnamed3295() { +buildUnnamed1899() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed3295(core.List<api.DimensionValue> o) { +checkUnnamed1899(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed3296() { +buildUnnamed1900() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed3296(core.List<api.SortedDimension> o) { +checkUnnamed1900(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed3297() { +buildUnnamed1901() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3297(core.List<core.String> o) { +checkUnnamed1901(core.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() { +buildUnnamed1902() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3298(core.List<core.String> o) { +checkUnnamed1902(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7435,11 +7435,11 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed3295(); - o.dimensions = buildUnnamed3296(); + o.dimensionFilters = buildUnnamed1899(); + o.dimensions = buildUnnamed1900(); o.enableAllDimensionCombinations = true; - o.metricNames = buildUnnamed3297(); - o.reachByFrequencyMetricNames = buildUnnamed3298(); + o.metricNames = buildUnnamed1901(); + o.reachByFrequencyMetricNames = buildUnnamed1902(); } buildCounterReportReachCriteria--; return o; @@ -7451,23 +7451,23 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed3295(o.dimensionFilters); - checkUnnamed3296(o.dimensions); + checkUnnamed1899(o.dimensionFilters); + checkUnnamed1900(o.dimensions); unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); - checkUnnamed3297(o.metricNames); - checkUnnamed3298(o.reachByFrequencyMetricNames); + checkUnnamed1901(o.metricNames); + checkUnnamed1902(o.reachByFrequencyMetricNames); } buildCounterReportReachCriteria--; } -buildUnnamed3299() { +buildUnnamed1903() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3299(core.List<core.String> o) { +checkUnnamed1903(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7482,7 +7482,7 @@ o.every = 42; o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.repeats = "foo"; - o.repeatsOnWeekDays = buildUnnamed3299(); + o.repeatsOnWeekDays = buildUnnamed1903(); o.runsOnDayOfMonth = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -7498,7 +7498,7 @@ unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.repeats, unittest.equals('foo')); - checkUnnamed3299(o.repeatsOnWeekDays); + checkUnnamed1903(o.repeatsOnWeekDays); unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -7559,53 +7559,53 @@ buildCounterReport--; } -buildUnnamed3300() { +buildUnnamed1904() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3300(core.List<api.Dimension> o) { +checkUnnamed1904(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed3301() { +buildUnnamed1905() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3301(core.List<api.Dimension> o) { +checkUnnamed1905(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed3302() { +buildUnnamed1906() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed3302(core.List<api.Metric> o) { +checkUnnamed1906(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed3303() { +buildUnnamed1907() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed3303(core.List<api.Metric> o) { +checkUnnamed1907(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -7616,11 +7616,11 @@ var o = new api.ReportCompatibleFields(); buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed3300(); - o.dimensions = buildUnnamed3301(); + o.dimensionFilters = buildUnnamed1904(); + o.dimensions = buildUnnamed1905(); o.kind = "foo"; - o.metrics = buildUnnamed3302(); - o.pivotedActivityMetrics = buildUnnamed3303(); + o.metrics = buildUnnamed1906(); + o.pivotedActivityMetrics = buildUnnamed1907(); } buildCounterReportCompatibleFields--; return o; @@ -7629,23 +7629,23 @@ checkReportCompatibleFields(api.ReportCompatibleFields o) { buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - checkUnnamed3300(o.dimensionFilters); - checkUnnamed3301(o.dimensions); + checkUnnamed1904(o.dimensionFilters); + checkUnnamed1905(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3302(o.metrics); - checkUnnamed3303(o.pivotedActivityMetrics); + checkUnnamed1906(o.metrics); + checkUnnamed1907(o.pivotedActivityMetrics); } buildCounterReportCompatibleFields--; } -buildUnnamed3304() { +buildUnnamed1908() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed3304(core.List<api.Report> o) { +checkUnnamed1908(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -7657,7 +7657,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { o.etag = "foo"; - o.items = buildUnnamed3304(); + o.items = buildUnnamed1908(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -7669,7 +7669,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3304(o.items); + checkUnnamed1908(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -7745,14 +7745,14 @@ buildCounterRule--; } -buildUnnamed3305() { +buildUnnamed1909() { var o = new core.List<api.SiteContact>(); o.add(buildSiteContact()); o.add(buildSiteContact()); return o; } -checkUnnamed3305(core.List<api.SiteContact> o) { +checkUnnamed1909(core.List<api.SiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkSiteContact(o[0]); checkSiteContact(o[1]); @@ -7772,7 +7772,7 @@ o.keyName = "foo"; o.kind = "foo"; o.name = "foo"; - o.siteContacts = buildUnnamed3305(); + o.siteContacts = buildUnnamed1909(); o.siteSettings = buildSiteSettings(); o.subaccountId = "foo"; } @@ -7792,7 +7792,7 @@ unittest.expect(o.keyName, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3305(o.siteContacts); + checkUnnamed1909(o.siteContacts); checkSiteSettings(o.siteSettings); unittest.expect(o.subaccountId, unittest.equals('foo')); } @@ -7865,14 +7865,14 @@ buildCounterSiteSettings--; } -buildUnnamed3306() { +buildUnnamed1910() { var o = new core.List<api.Site>(); o.add(buildSite()); o.add(buildSite()); return o; } -checkUnnamed3306(core.List<api.Site> o) { +checkUnnamed1910(core.List<api.Site> o) { unittest.expect(o, unittest.hasLength(2)); checkSite(o[0]); checkSite(o[1]); @@ -7885,7 +7885,7 @@ if (buildCounterSitesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.sites = buildUnnamed3306(); + o.sites = buildUnnamed1910(); } buildCounterSitesListResponse--; return o; @@ -7896,7 +7896,7 @@ if (buildCounterSitesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3306(o.sites); + checkUnnamed1910(o.sites); } buildCounterSitesListResponse--; } @@ -7928,14 +7928,14 @@ buildCounterSize--; } -buildUnnamed3307() { +buildUnnamed1911() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed3307(core.List<api.Size> o) { +checkUnnamed1911(core.List<api.Size> o) { unittest.expect(o, unittest.hasLength(2)); checkSize(o[0]); checkSize(o[1]); @@ -7947,7 +7947,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { o.kind = "foo"; - o.sizes = buildUnnamed3307(); + o.sizes = buildUnnamed1911(); } buildCounterSizesListResponse--; return o; @@ -7957,7 +7957,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3307(o.sizes); + checkUnnamed1911(o.sizes); } buildCounterSizesListResponse--; } @@ -8010,14 +8010,14 @@ buildCounterSortedDimension--; } -buildUnnamed3308() { +buildUnnamed1912() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3308(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')); @@ -8029,7 +8029,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { o.accountId = "foo"; - o.availablePermissionIds = buildUnnamed3308(); + o.availablePermissionIds = buildUnnamed1912(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -8042,7 +8042,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed3308(o.availablePermissionIds); + checkUnnamed1912(o.availablePermissionIds); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -8050,14 +8050,14 @@ buildCounterSubaccount--; } -buildUnnamed3309() { +buildUnnamed1913() { var o = new core.List<api.Subaccount>(); o.add(buildSubaccount()); o.add(buildSubaccount()); return o; } -checkUnnamed3309(core.List<api.Subaccount> o) { +checkUnnamed1913(core.List<api.Subaccount> o) { unittest.expect(o, unittest.hasLength(2)); checkSubaccount(o[0]); checkSubaccount(o[1]); @@ -8070,7 +8070,7 @@ if (buildCounterSubaccountsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.subaccounts = buildUnnamed3309(); + o.subaccounts = buildUnnamed1913(); } buildCounterSubaccountsListResponse--; return o; @@ -8081,7 +8081,7 @@ if (buildCounterSubaccountsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3309(o.subaccounts); + checkUnnamed1913(o.subaccounts); } buildCounterSubaccountsListResponse--; } @@ -8221,14 +8221,14 @@ buildCounterTargetableRemarketingList--; } -buildUnnamed3310() { +buildUnnamed1914() { var o = new core.List<api.TargetableRemarketingList>(); o.add(buildTargetableRemarketingList()); o.add(buildTargetableRemarketingList()); return o; } -checkUnnamed3310(core.List<api.TargetableRemarketingList> o) { +checkUnnamed1914(core.List<api.TargetableRemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetableRemarketingList(o[0]); checkTargetableRemarketingList(o[1]); @@ -8241,7 +8241,7 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.targetableRemarketingLists = buildUnnamed3310(); + o.targetableRemarketingLists = buildUnnamed1914(); } buildCounterTargetableRemarketingListsListResponse--; return o; @@ -8253,7 +8253,7 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3310(o.targetableRemarketingLists); + checkUnnamed1914(o.targetableRemarketingLists); } buildCounterTargetableRemarketingListsListResponse--; } @@ -8301,14 +8301,14 @@ buildCounterTargetingTemplate--; } -buildUnnamed3311() { +buildUnnamed1915() { var o = new core.List<api.TargetingTemplate>(); o.add(buildTargetingTemplate()); o.add(buildTargetingTemplate()); return o; } -checkUnnamed3311(core.List<api.TargetingTemplate> o) { +checkUnnamed1915(core.List<api.TargetingTemplate> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingTemplate(o[0]); checkTargetingTemplate(o[1]); @@ -8321,7 +8321,7 @@ if (buildCounterTargetingTemplatesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.targetingTemplates = buildUnnamed3311(); + o.targetingTemplates = buildUnnamed1915(); } buildCounterTargetingTemplatesListResponse--; return o; @@ -8332,84 +8332,84 @@ if (buildCounterTargetingTemplatesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3311(o.targetingTemplates); + checkUnnamed1915(o.targetingTemplates); } buildCounterTargetingTemplatesListResponse--; } -buildUnnamed3312() { +buildUnnamed1916() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed3312(core.List<api.Browser> o) { +checkUnnamed1916(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); } -buildUnnamed3313() { +buildUnnamed1917() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed3313(core.List<api.ConnectionType> o) { +checkUnnamed1917(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); } -buildUnnamed3314() { +buildUnnamed1918() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed3314(core.List<api.MobileCarrier> o) { +checkUnnamed1918(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); } -buildUnnamed3315() { +buildUnnamed1919() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed3315(core.List<api.OperatingSystemVersion> o) { +checkUnnamed1919(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); } -buildUnnamed3316() { +buildUnnamed1920() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed3316(core.List<api.OperatingSystem> o) { +checkUnnamed1920(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); } -buildUnnamed3317() { +buildUnnamed1921() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed3317(core.List<api.PlatformType> o) { +checkUnnamed1921(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -8420,12 +8420,12 @@ var o = new api.TechnologyTargeting(); buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - o.browsers = buildUnnamed3312(); - o.connectionTypes = buildUnnamed3313(); - o.mobileCarriers = buildUnnamed3314(); - o.operatingSystemVersions = buildUnnamed3315(); - o.operatingSystems = buildUnnamed3316(); - o.platformTypes = buildUnnamed3317(); + o.browsers = buildUnnamed1916(); + o.connectionTypes = buildUnnamed1917(); + o.mobileCarriers = buildUnnamed1918(); + o.operatingSystemVersions = buildUnnamed1919(); + o.operatingSystems = buildUnnamed1920(); + o.platformTypes = buildUnnamed1921(); } buildCounterTechnologyTargeting--; return o; @@ -8434,12 +8434,12 @@ checkTechnologyTargeting(api.TechnologyTargeting o) { buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - checkUnnamed3312(o.browsers); - checkUnnamed3313(o.connectionTypes); - checkUnnamed3314(o.mobileCarriers); - checkUnnamed3315(o.operatingSystemVersions); - checkUnnamed3316(o.operatingSystems); - checkUnnamed3317(o.platformTypes); + checkUnnamed1916(o.browsers); + checkUnnamed1917(o.connectionTypes); + checkUnnamed1918(o.mobileCarriers); + checkUnnamed1919(o.operatingSystemVersions); + checkUnnamed1920(o.operatingSystems); + checkUnnamed1921(o.platformTypes); } buildCounterTechnologyTargeting--; } @@ -8486,14 +8486,14 @@ buildCounterThirdPartyTrackingUrl--; } -buildUnnamed3318() { +buildUnnamed1922() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3318(core.List<core.int> o) { +checkUnnamed1922(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)); @@ -8504,7 +8504,7 @@ var o = new api.TranscodeSetting(); buildCounterTranscodeSetting++; if (buildCounterTranscodeSetting < 3) { - o.enabledVideoFormats = buildUnnamed3318(); + o.enabledVideoFormats = buildUnnamed1922(); o.kind = "foo"; } buildCounterTranscodeSetting--; @@ -8514,7 +8514,7 @@ checkTranscodeSetting(api.TranscodeSetting o) { buildCounterTranscodeSetting++; if (buildCounterTranscodeSetting < 3) { - checkUnnamed3318(o.enabledVideoFormats); + checkUnnamed1922(o.enabledVideoFormats); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTranscodeSetting--; @@ -8597,14 +8597,14 @@ buildCounterUserProfile--; } -buildUnnamed3319() { +buildUnnamed1923() { var o = new core.List<api.UserProfile>(); o.add(buildUserProfile()); o.add(buildUserProfile()); return o; } -checkUnnamed3319(core.List<api.UserProfile> o) { +checkUnnamed1923(core.List<api.UserProfile> o) { unittest.expect(o, unittest.hasLength(2)); checkUserProfile(o[0]); checkUserProfile(o[1]); @@ -8616,7 +8616,7 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { o.etag = "foo"; - o.items = buildUnnamed3319(); + o.items = buildUnnamed1923(); o.kind = "foo"; } buildCounterUserProfileList--; @@ -8627,20 +8627,20 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3319(o.items); + checkUnnamed1923(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUserProfileList--; } -buildUnnamed3320() { +buildUnnamed1924() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed3320(core.List<api.UserRolePermission> o) { +checkUnnamed1924(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -8657,7 +8657,7 @@ o.kind = "foo"; o.name = "foo"; o.parentUserRoleId = "foo"; - o.permissions = buildUnnamed3320(); + o.permissions = buildUnnamed1924(); o.subaccountId = "foo"; } buildCounterUserRole--; @@ -8673,7 +8673,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentUserRoleId, unittest.equals('foo')); - checkUnnamed3320(o.permissions); + checkUnnamed1924(o.permissions); unittest.expect(o.subaccountId, unittest.equals('foo')); } buildCounterUserRole--; @@ -8729,14 +8729,14 @@ buildCounterUserRolePermissionGroup--; } -buildUnnamed3321() { +buildUnnamed1925() { var o = new core.List<api.UserRolePermissionGroup>(); o.add(buildUserRolePermissionGroup()); o.add(buildUserRolePermissionGroup()); return o; } -checkUnnamed3321(core.List<api.UserRolePermissionGroup> o) { +checkUnnamed1925(core.List<api.UserRolePermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermissionGroup(o[0]); checkUserRolePermissionGroup(o[1]); @@ -8748,7 +8748,7 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { o.kind = "foo"; - o.userRolePermissionGroups = buildUnnamed3321(); + o.userRolePermissionGroups = buildUnnamed1925(); } buildCounterUserRolePermissionGroupsListResponse--; return o; @@ -8759,19 +8759,19 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3321(o.userRolePermissionGroups); + checkUnnamed1925(o.userRolePermissionGroups); } buildCounterUserRolePermissionGroupsListResponse--; } -buildUnnamed3322() { +buildUnnamed1926() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed3322(core.List<api.UserRolePermission> o) { +checkUnnamed1926(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -8783,7 +8783,7 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { o.kind = "foo"; - o.userRolePermissions = buildUnnamed3322(); + o.userRolePermissions = buildUnnamed1926(); } buildCounterUserRolePermissionsListResponse--; return o; @@ -8793,19 +8793,19 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3322(o.userRolePermissions); + checkUnnamed1926(o.userRolePermissions); } buildCounterUserRolePermissionsListResponse--; } -buildUnnamed3323() { +buildUnnamed1927() { var o = new core.List<api.UserRole>(); o.add(buildUserRole()); o.add(buildUserRole()); return o; } -checkUnnamed3323(core.List<api.UserRole> o) { +checkUnnamed1927(core.List<api.UserRole> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRole(o[0]); checkUserRole(o[1]); @@ -8818,7 +8818,7 @@ if (buildCounterUserRolesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.userRoles = buildUnnamed3323(); + o.userRoles = buildUnnamed1927(); } buildCounterUserRolesListResponse--; return o; @@ -8829,7 +8829,7 @@ if (buildCounterUserRolesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3323(o.userRoles); + checkUnnamed1927(o.userRoles); } buildCounterUserRolesListResponse--; } @@ -8861,14 +8861,14 @@ buildCounterVideoFormat--; } -buildUnnamed3324() { +buildUnnamed1928() { var o = new core.List<api.VideoFormat>(); o.add(buildVideoFormat()); o.add(buildVideoFormat()); return o; } -checkUnnamed3324(core.List<api.VideoFormat> o) { +checkUnnamed1928(core.List<api.VideoFormat> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoFormat(o[0]); checkVideoFormat(o[1]); @@ -8880,7 +8880,7 @@ buildCounterVideoFormatsListResponse++; if (buildCounterVideoFormatsListResponse < 3) { o.kind = "foo"; - o.videoFormats = buildUnnamed3324(); + o.videoFormats = buildUnnamed1928(); } buildCounterVideoFormatsListResponse--; return o; @@ -8890,7 +8890,7 @@ buildCounterVideoFormatsListResponse++; if (buildCounterVideoFormatsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3324(o.videoFormats); + checkUnnamed1928(o.videoFormats); } buildCounterVideoFormatsListResponse--; } @@ -8941,1145 +8941,1145 @@ buildCounterVideoSettings--; } -buildUnnamed3325() { +buildUnnamed1929() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3325(core.List<core.String> o) { +checkUnnamed1929(core.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() { +buildUnnamed1930() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3326(core.List<core.String> o) { +checkUnnamed1930(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3327() { +buildUnnamed1931() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3327(core.List<core.String> o) { +checkUnnamed1931(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3328() { +buildUnnamed1932() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3328(core.List<core.String> o) { +checkUnnamed1932(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3329() { +buildUnnamed1933() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3329(core.List<core.String> o) { +checkUnnamed1933(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3330() { +buildUnnamed1934() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3330(core.List<core.String> o) { +checkUnnamed1934(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3331() { +buildUnnamed1935() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3331(core.List<core.String> o) { +checkUnnamed1935(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3332() { +buildUnnamed1936() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3332(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')); } -buildUnnamed3333() { +buildUnnamed1937() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3333(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')); } -buildUnnamed3334() { +buildUnnamed1938() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3334(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')); } -buildUnnamed3335() { +buildUnnamed1939() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3335(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')); } -buildUnnamed3336() { +buildUnnamed1940() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3336(core.List<core.String> o) { +checkUnnamed1940(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3337() { +buildUnnamed1941() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3337(core.List<core.String> o) { +checkUnnamed1941(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3338() { +buildUnnamed1942() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3338(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')); } -buildUnnamed3339() { +buildUnnamed1943() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3339(core.List<core.String> o) { +checkUnnamed1943(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3340() { +buildUnnamed1944() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3340(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')); } -buildUnnamed3341() { +buildUnnamed1945() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3341(core.List<core.String> o) { +checkUnnamed1945(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3342() { +buildUnnamed1946() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3342(core.List<core.String> o) { +checkUnnamed1946(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3343() { +buildUnnamed1947() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3343(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')); } -buildUnnamed3344() { +buildUnnamed1948() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3344(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')); } -buildUnnamed3345() { +buildUnnamed1949() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3345(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')); } -buildUnnamed3346() { +buildUnnamed1950() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3346(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')); } -buildUnnamed3347() { +buildUnnamed1951() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3347(core.List<core.String> o) { +checkUnnamed1951(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3348() { +buildUnnamed1952() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3348(core.List<core.String> o) { +checkUnnamed1952(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3349() { +buildUnnamed1953() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3349(core.List<core.String> o) { +checkUnnamed1953(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3350() { +buildUnnamed1954() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3350(core.List<core.String> o) { +checkUnnamed1954(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3351() { +buildUnnamed1955() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3351(core.List<core.String> o) { +checkUnnamed1955(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3352() { +buildUnnamed1956() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3352(core.List<core.String> o) { +checkUnnamed1956(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3353() { +buildUnnamed1957() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3353(core.List<core.String> o) { +checkUnnamed1957(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3354() { +buildUnnamed1958() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3354(core.List<core.String> o) { +checkUnnamed1958(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3355() { +buildUnnamed1959() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3355(core.List<core.String> o) { +checkUnnamed1959(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3356() { +buildUnnamed1960() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3356(core.List<core.String> o) { +checkUnnamed1960(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3357() { +buildUnnamed1961() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3357(core.List<core.String> o) { +checkUnnamed1961(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3358() { +buildUnnamed1962() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3358(core.List<core.String> o) { +checkUnnamed1962(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3359() { +buildUnnamed1963() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3359(core.List<core.String> o) { +checkUnnamed1963(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3360() { +buildUnnamed1964() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3360(core.List<core.String> o) { +checkUnnamed1964(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3361() { +buildUnnamed1965() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3361(core.List<core.String> o) { +checkUnnamed1965(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3362() { +buildUnnamed1966() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3362(core.List<core.String> o) { +checkUnnamed1966(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3363() { +buildUnnamed1967() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3363(core.List<core.String> o) { +checkUnnamed1967(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3364() { +buildUnnamed1968() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3364(core.List<core.String> o) { +checkUnnamed1968(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3365() { +buildUnnamed1969() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3365(core.List<core.String> o) { +checkUnnamed1969(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3366() { +buildUnnamed1970() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3366(core.List<core.String> o) { +checkUnnamed1970(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3367() { +buildUnnamed1971() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3367(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')); } -buildUnnamed3368() { +buildUnnamed1972() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3368(core.List<core.String> o) { +checkUnnamed1972(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3369() { +buildUnnamed1973() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3369(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')); } -buildUnnamed3370() { +buildUnnamed1974() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3370(core.List<core.String> o) { +checkUnnamed1974(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3371() { +buildUnnamed1975() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3371(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')); } -buildUnnamed3372() { +buildUnnamed1976() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3372(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')); } -buildUnnamed3373() { +buildUnnamed1977() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3373(core.List<core.String> o) { +checkUnnamed1977(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3374() { +buildUnnamed1978() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3374(core.List<core.String> o) { +checkUnnamed1978(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3375() { +buildUnnamed1979() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3375(core.List<core.String> o) { +checkUnnamed1979(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3376() { +buildUnnamed1980() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3376(core.List<core.String> o) { +checkUnnamed1980(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3377() { +buildUnnamed1981() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3377(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')); } -buildUnnamed3378() { +buildUnnamed1982() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3378(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')); } -buildUnnamed3379() { +buildUnnamed1983() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3379(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')); } -buildUnnamed3380() { +buildUnnamed1984() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3380(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')); } -buildUnnamed3381() { +buildUnnamed1985() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3381(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')); } -buildUnnamed3382() { +buildUnnamed1986() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3382(core.List<core.String> o) { +checkUnnamed1986(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3383() { +buildUnnamed1987() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3383(core.List<core.String> o) { +checkUnnamed1987(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3384() { +buildUnnamed1988() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3384(core.List<core.String> o) { +checkUnnamed1988(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3385() { +buildUnnamed1989() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3385(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')); } -buildUnnamed3386() { +buildUnnamed1990() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3386(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')); } -buildUnnamed3387() { +buildUnnamed1991() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3387(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')); } -buildUnnamed3388() { +buildUnnamed1992() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3388(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')); } -buildUnnamed3389() { +buildUnnamed1993() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3389(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')); } -buildUnnamed3390() { +buildUnnamed1994() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3390(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')); } -buildUnnamed3391() { +buildUnnamed1995() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3391(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')); } -buildUnnamed3392() { +buildUnnamed1996() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3392(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')); } -buildUnnamed3393() { +buildUnnamed1997() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3393(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')); } -buildUnnamed3394() { +buildUnnamed1998() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3394(core.List<core.String> o) { +checkUnnamed1998(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3395() { +buildUnnamed1999() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3395(core.List<core.String> o) { +checkUnnamed1999(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3396() { +buildUnnamed2000() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3396(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')); } -buildUnnamed3397() { +buildUnnamed2001() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3397(core.List<core.String> o) { +checkUnnamed2001(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3398() { +buildUnnamed2002() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3398(core.List<core.String> o) { +checkUnnamed2002(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3399() { +buildUnnamed2003() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3399(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')); } -buildUnnamed3400() { +buildUnnamed2004() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3400(core.List<core.String> o) { +checkUnnamed2004(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3401() { +buildUnnamed2005() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3401(core.List<core.String> o) { +checkUnnamed2005(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3402() { +buildUnnamed2006() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3402(core.List<core.String> o) { +checkUnnamed2006(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3403() { +buildUnnamed2007() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3403(core.List<core.String> o) { +checkUnnamed2007(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3404() { +buildUnnamed2008() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3404(core.List<core.String> o) { +checkUnnamed2008(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3405() { +buildUnnamed2009() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3405(core.List<core.String> o) { +checkUnnamed2009(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3406() { +buildUnnamed2010() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3406(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')); } -buildUnnamed3407() { +buildUnnamed2011() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3407(core.List<core.String> o) { +checkUnnamed2011(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3408() { +buildUnnamed2012() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3408(core.List<core.String> o) { +checkUnnamed2012(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3409() { +buildUnnamed2013() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3409(core.List<core.String> o) { +checkUnnamed2013(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3410() { +buildUnnamed2014() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3410(core.List<core.String> o) { +checkUnnamed2014(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3411() { +buildUnnamed2015() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3411(core.List<core.String> o) { +checkUnnamed2015(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3412() { +buildUnnamed2016() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3412(core.List<core.String> o) { +checkUnnamed2016(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -12334,7 +12334,7 @@ new api.DfareportingApi(mock).accountUserProfiles; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed3325(); + var arg_ids = buildUnnamed1929(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -12636,7 +12636,7 @@ api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed3326(); + var arg_ids = buildUnnamed1930(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -12996,26 +12996,26 @@ var arg_active = true; var arg_advertiserId = "foo"; var arg_archived = true; - var arg_audienceSegmentIds = buildUnnamed3327(); - var arg_campaignIds = buildUnnamed3328(); + var arg_audienceSegmentIds = buildUnnamed1931(); + var arg_campaignIds = buildUnnamed1932(); var arg_compatibility = "foo"; - var arg_creativeIds = buildUnnamed3329(); - var arg_creativeOptimizationConfigurationIds = buildUnnamed3330(); + var arg_creativeIds = buildUnnamed1933(); + var arg_creativeOptimizationConfigurationIds = buildUnnamed1934(); var arg_dynamicClickTracker = true; - var arg_ids = buildUnnamed3331(); - var arg_landingPageIds = buildUnnamed3332(); + var arg_ids = buildUnnamed1935(); + var arg_landingPageIds = buildUnnamed1936(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; - var arg_placementIds = buildUnnamed3333(); - var arg_remarketingListIds = buildUnnamed3334(); + var arg_placementIds = buildUnnamed1937(); + var arg_remarketingListIds = buildUnnamed1938(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed3335(); + var arg_sizeIds = buildUnnamed1939(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_sslCompliant = true; var arg_sslRequired = true; - var arg_type = buildUnnamed3336(); + var arg_type = buildUnnamed1940(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -13482,7 +13482,7 @@ api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; var arg_profileId = "foo"; - var arg_ids = buildUnnamed3337(); + var arg_ids = buildUnnamed1941(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -13841,9 +13841,9 @@ api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed3338(); - var arg_floodlightConfigurationIds = buildUnnamed3339(); - var arg_ids = buildUnnamed3340(); + var arg_advertiserGroupIds = buildUnnamed1942(); + var arg_floodlightConfigurationIds = buildUnnamed1943(); + var arg_ids = buildUnnamed1944(); var arg_includeAdvertisersWithoutGroupsOnly = true; var arg_maxResults = 42; var arg_onlyParent = true; @@ -14460,12 +14460,12 @@ var mock = new HttpServerMock(); api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed3341(); - var arg_advertiserIds = buildUnnamed3342(); + var arg_advertiserGroupIds = buildUnnamed1945(); + var arg_advertiserIds = buildUnnamed1946(); var arg_archived = true; var arg_atLeastOneOptimizationActivity = true; - var arg_excludedIds = buildUnnamed3343(); - var arg_ids = buildUnnamed3344(); + var arg_excludedIds = buildUnnamed1947(); + var arg_ids = buildUnnamed1948(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; @@ -14778,15 +14778,15 @@ api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; var arg_profileId = "foo"; var arg_action = "foo"; - var arg_ids = buildUnnamed3345(); + var arg_ids = buildUnnamed1949(); var arg_maxChangeTime = "foo"; var arg_maxResults = 42; var arg_minChangeTime = "foo"; - var arg_objectIds = buildUnnamed3346(); + var arg_objectIds = buildUnnamed1950(); var arg_objectType = "foo"; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_userProfileIds = buildUnnamed3347(); + var arg_userProfileIds = buildUnnamed1951(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -14879,10 +14879,10 @@ var mock = new HttpServerMock(); api.CitiesResourceApi res = new api.DfareportingApi(mock).cities; var arg_profileId = "foo"; - var arg_countryDartIds = buildUnnamed3348(); - var arg_dartIds = buildUnnamed3349(); + var arg_countryDartIds = buildUnnamed1952(); + var arg_dartIds = buildUnnamed1953(); var arg_namePrefix = "foo"; - var arg_regionDartIds = buildUnnamed3350(); + var arg_regionDartIds = buildUnnamed1954(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -15291,7 +15291,7 @@ api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; var arg_profileId = "foo"; - var arg_ids = buildUnnamed3351(); + var arg_ids = buildUnnamed1955(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -16097,7 +16097,7 @@ new api.DfareportingApi(mock).creativeFieldValues; var arg_profileId = "foo"; var arg_creativeFieldId = "foo"; - var arg_ids = buildUnnamed3352(); + var arg_ids = buildUnnamed1956(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -16552,8 +16552,8 @@ api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed3353(); - var arg_ids = buildUnnamed3354(); + var arg_advertiserIds = buildUnnamed1957(); + var arg_ids = buildUnnamed1958(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -16915,9 +16915,9 @@ api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed3355(); + var arg_advertiserIds = buildUnnamed1959(); var arg_groupNumber = 42; - var arg_ids = buildUnnamed3356(); + var arg_ids = buildUnnamed1960(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -17283,18 +17283,18 @@ var arg_advertiserId = "foo"; var arg_archived = true; var arg_campaignId = "foo"; - var arg_companionCreativeIds = buildUnnamed3357(); - var arg_creativeFieldIds = buildUnnamed3358(); - var arg_ids = buildUnnamed3359(); + var arg_companionCreativeIds = buildUnnamed1961(); + var arg_creativeFieldIds = buildUnnamed1962(); + var arg_ids = buildUnnamed1963(); var arg_maxResults = 42; var arg_pageToken = "foo"; - var arg_renderingIds = buildUnnamed3360(); + var arg_renderingIds = buildUnnamed1964(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed3361(); + var arg_sizeIds = buildUnnamed1965(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_studioCreativeId = "foo"; - var arg_types = buildUnnamed3362(); + var arg_types = buildUnnamed1966(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -17685,8 +17685,8 @@ api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).directorySiteContacts; var arg_profileId = "foo"; - var arg_directorySiteIds = buildUnnamed3363(); - var arg_ids = buildUnnamed3364(); + var arg_directorySiteIds = buildUnnamed1967(); + var arg_ids = buildUnnamed1968(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -17919,7 +17919,7 @@ var arg_active = true; var arg_countryId = "foo"; var arg_dfpNetworkCode = "foo"; - var arg_ids = buildUnnamed3365(); + var arg_ids = buildUnnamed1969(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_parentId = "foo"; @@ -18171,7 +18171,7 @@ new api.DfareportingApi(mock).dynamicTargetingKeys; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_names = buildUnnamed3366(); + var arg_names = buildUnnamed1970(); var arg_objectId = "foo"; var arg_objectType = "foo"; var arg_$fields = "foo"; @@ -18451,8 +18451,8 @@ var arg_campaignId = "foo"; var arg_definitionsOnly = true; var arg_enabled = true; - var arg_eventTagTypes = buildUnnamed3367(); - var arg_ids = buildUnnamed3368(); + var arg_eventTagTypes = buildUnnamed1971(); + var arg_ids = buildUnnamed1972(); var arg_searchString = "foo"; var arg_sortField = "foo"; var arg_sortOrder = "foo"; @@ -19106,12 +19106,12 @@ new api.DfareportingApi(mock).floodlightActivities; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_floodlightActivityGroupIds = buildUnnamed3369(); + var arg_floodlightActivityGroupIds = buildUnnamed1973(); var arg_floodlightActivityGroupName = "foo"; var arg_floodlightActivityGroupTagString = "foo"; var arg_floodlightActivityGroupType = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed3370(); + var arg_ids = buildUnnamed1974(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -19495,7 +19495,7 @@ var arg_profileId = "foo"; var arg_advertiserId = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed3371(); + var arg_ids = buildUnnamed1975(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -19797,7 +19797,7 @@ api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock).floodlightConfigurations; var arg_profileId = "foo"; - var arg_ids = buildUnnamed3372(); + var arg_ids = buildUnnamed1976(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -20079,12 +20079,12 @@ new api.DfareportingApi(mock).inventoryItems; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed3373(); + var arg_ids = buildUnnamed1977(); var arg_inPlan = true; var arg_maxResults = 42; - var arg_orderId = buildUnnamed3374(); + var arg_orderId = buildUnnamed1978(); var arg_pageToken = "foo"; - var arg_siteId = buildUnnamed3375(); + var arg_siteId = buildUnnamed1979(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_type = "foo"; @@ -21253,12 +21253,12 @@ var arg_profileId = "foo"; var arg_projectId = "foo"; var arg_approved = true; - var arg_ids = buildUnnamed3376(); + var arg_ids = buildUnnamed1980(); var arg_maxResults = 42; - var arg_orderId = buildUnnamed3377(); + var arg_orderId = buildUnnamed1981(); var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed3378(); + var arg_siteId = buildUnnamed1982(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_$fields = "foo"; @@ -21436,11 +21436,11 @@ api.OrdersResourceApi res = new api.DfareportingApi(mock).orders; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed3379(); + var arg_ids = buildUnnamed1983(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed3380(); + var arg_siteId = buildUnnamed1984(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_$fields = "foo"; @@ -21671,12 +21671,12 @@ api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed3381(); + var arg_advertiserIds = buildUnnamed1985(); var arg_archived = true; - var arg_campaignIds = buildUnnamed3382(); - var arg_contentCategoryIds = buildUnnamed3383(); - var arg_directorySiteIds = buildUnnamed3384(); - var arg_ids = buildUnnamed3385(); + var arg_campaignIds = buildUnnamed1986(); + var arg_contentCategoryIds = buildUnnamed1987(); + var arg_directorySiteIds = buildUnnamed1988(); + var arg_ids = buildUnnamed1989(); var arg_maxEndDate = "foo"; var arg_maxResults = 42; var arg_maxStartDate = "foo"; @@ -21684,10 +21684,10 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_placementGroupType = "foo"; - var arg_placementStrategyIds = buildUnnamed3386(); - var arg_pricingTypes = buildUnnamed3387(); + var arg_placementStrategyIds = buildUnnamed1990(); + var arg_pricingTypes = buildUnnamed1991(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed3388(); + var arg_siteIds = buildUnnamed1992(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_$fields = "foo"; @@ -22146,7 +22146,7 @@ api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; var arg_profileId = "foo"; - var arg_ids = buildUnnamed3389(); + var arg_ids = buildUnnamed1993(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -22371,8 +22371,8 @@ api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; var arg_campaignId = "foo"; - var arg_placementIds = buildUnnamed3390(); - var arg_tagFormats = buildUnnamed3391(); + var arg_placementIds = buildUnnamed1994(); + var arg_tagFormats = buildUnnamed1995(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -22577,14 +22577,14 @@ var mock = new HttpServerMock(); api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed3392(); + var arg_advertiserIds = buildUnnamed1996(); var arg_archived = true; - var arg_campaignIds = buildUnnamed3393(); - var arg_compatibilities = buildUnnamed3394(); - var arg_contentCategoryIds = buildUnnamed3395(); - var arg_directorySiteIds = buildUnnamed3396(); - var arg_groupIds = buildUnnamed3397(); - var arg_ids = buildUnnamed3398(); + var arg_campaignIds = buildUnnamed1997(); + var arg_compatibilities = buildUnnamed1998(); + var arg_contentCategoryIds = buildUnnamed1999(); + var arg_directorySiteIds = buildUnnamed2000(); + var arg_groupIds = buildUnnamed2001(); + var arg_ids = buildUnnamed2002(); var arg_maxEndDate = "foo"; var arg_maxResults = 42; var arg_maxStartDate = "foo"; @@ -22592,11 +22592,11 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_paymentSource = "foo"; - var arg_placementStrategyIds = buildUnnamed3399(); - var arg_pricingTypes = buildUnnamed3400(); + var arg_placementStrategyIds = buildUnnamed2003(); + var arg_pricingTypes = buildUnnamed2004(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed3401(); - var arg_sizeIds = buildUnnamed3402(); + var arg_siteIds = buildUnnamed2005(); + var arg_sizeIds = buildUnnamed2006(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_$fields = "foo"; @@ -23190,8 +23190,8 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed3403(); - var arg_ids = buildUnnamed3404(); + var arg_advertiserIds = buildUnnamed2007(); + var arg_ids = buildUnnamed2008(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -24794,9 +24794,9 @@ var arg_acceptsPublisherPaidPlacements = true; var arg_adWordsSite = true; var arg_approved = true; - var arg_campaignIds = buildUnnamed3405(); - var arg_directorySiteIds = buildUnnamed3406(); - var arg_ids = buildUnnamed3407(); + var arg_campaignIds = buildUnnamed2009(); + var arg_directorySiteIds = buildUnnamed2010(); + var arg_ids = buildUnnamed2011(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -25183,7 +25183,7 @@ var arg_profileId = "foo"; var arg_height = 42; var arg_iabStandard = true; - var arg_ids = buildUnnamed3408(); + var arg_ids = buildUnnamed2012(); var arg_width = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -25396,7 +25396,7 @@ api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; var arg_profileId = "foo"; - var arg_ids = buildUnnamed3409(); + var arg_ids = buildUnnamed2013(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -25916,7 +25916,7 @@ new api.DfareportingApi(mock).targetingTemplates; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_ids = buildUnnamed3410(); + var arg_ids = buildUnnamed2014(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -26454,7 +26454,7 @@ api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).userRolePermissions; var arg_profileId = "foo"; - var arg_ids = buildUnnamed3411(); + var arg_ids = buildUnnamed2015(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -26717,7 +26717,7 @@ api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; var arg_profileId = "foo"; var arg_accountUserRoleOnly = true; - var arg_ids = buildUnnamed3412(); + var arg_ids = buildUnnamed2016(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo";
diff --git a/generated/googleapis/test/dfareporting/v3_0_test.dart b/generated/googleapis/test/dfareporting/v3_0_test.dart index 2623bc6..4d828e1 100644 --- a/generated/googleapis/test/dfareporting/v3_0_test.dart +++ b/generated/googleapis/test/dfareporting/v3_0_test.dart
@@ -50,27 +50,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed523() { +buildUnnamed846() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed523(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')); } -buildUnnamed524() { +buildUnnamed847() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed524(core.List<core.String> o) { +checkUnnamed847(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -81,12 +81,12 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.accountPermissionIds = buildUnnamed523(); + o.accountPermissionIds = buildUnnamed846(); o.accountProfile = "foo"; o.active = true; o.activeAdsLimitTier = "foo"; o.activeViewOptOut = true; - o.availablePermissionIds = buildUnnamed524(); + o.availablePermissionIds = buildUnnamed847(); o.countryId = "foo"; o.currencyId = "foo"; o.defaultCreativeSizeId = "foo"; @@ -108,12 +108,12 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed523(o.accountPermissionIds); + checkUnnamed846(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); - checkUnnamed524(o.availablePermissionIds); + checkUnnamed847(o.availablePermissionIds); unittest.expect(o.countryId, unittest.equals('foo')); unittest.expect(o.currencyId, unittest.equals('foo')); unittest.expect(o.defaultCreativeSizeId, unittest.equals('foo')); @@ -158,14 +158,14 @@ buildCounterAccountActiveAdSummary--; } -buildUnnamed525() { +buildUnnamed848() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed525(core.List<core.String> o) { +checkUnnamed848(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -176,7 +176,7 @@ var o = new api.AccountPermission(); buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - o.accountProfiles = buildUnnamed525(); + o.accountProfiles = buildUnnamed848(); o.id = "foo"; o.kind = "foo"; o.level = "foo"; @@ -190,7 +190,7 @@ checkAccountPermission(api.AccountPermission o) { buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - checkUnnamed525(o.accountProfiles); + checkUnnamed848(o.accountProfiles); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.level, unittest.equals('foo')); @@ -223,14 +223,14 @@ buildCounterAccountPermissionGroup--; } -buildUnnamed526() { +buildUnnamed849() { var o = new core.List<api.AccountPermissionGroup>(); o.add(buildAccountPermissionGroup()); o.add(buildAccountPermissionGroup()); return o; } -checkUnnamed526(core.List<api.AccountPermissionGroup> o) { +checkUnnamed849(core.List<api.AccountPermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountPermissionGroup(o[0]); checkAccountPermissionGroup(o[1]); @@ -241,7 +241,7 @@ var o = new api.AccountPermissionGroupsListResponse(); buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - o.accountPermissionGroups = buildUnnamed526(); + o.accountPermissionGroups = buildUnnamed849(); o.kind = "foo"; } buildCounterAccountPermissionGroupsListResponse--; @@ -252,20 +252,20 @@ api.AccountPermissionGroupsListResponse o) { buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - checkUnnamed526(o.accountPermissionGroups); + checkUnnamed849(o.accountPermissionGroups); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionGroupsListResponse--; } -buildUnnamed527() { +buildUnnamed850() { var o = new core.List<api.AccountPermission>(); o.add(buildAccountPermission()); o.add(buildAccountPermission()); return o; } -checkUnnamed527(core.List<api.AccountPermission> o) { +checkUnnamed850(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 = buildUnnamed527(); + o.accountPermissions = buildUnnamed850(); o.kind = "foo"; } buildCounterAccountPermissionsListResponse--; @@ -286,7 +286,7 @@ checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) { buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - checkUnnamed527(o.accountPermissions); + checkUnnamed850(o.accountPermissions); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionsListResponse--; @@ -341,14 +341,14 @@ buildCounterAccountUserProfile--; } -buildUnnamed528() { +buildUnnamed851() { var o = new core.List<api.AccountUserProfile>(); o.add(buildAccountUserProfile()); o.add(buildAccountUserProfile()); return o; } -checkUnnamed528(core.List<api.AccountUserProfile> o) { +checkUnnamed851(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 = buildUnnamed528(); + o.accountUserProfiles = buildUnnamed851(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -370,21 +370,21 @@ checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) { buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - checkUnnamed528(o.accountUserProfiles); + checkUnnamed851(o.accountUserProfiles); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountUserProfilesListResponse--; } -buildUnnamed529() { +buildUnnamed852() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed529(core.List<api.Account> o) { +checkUnnamed852(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 = buildUnnamed529(); + o.accounts = buildUnnamed852(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -406,34 +406,34 @@ checkAccountsListResponse(api.AccountsListResponse o) { buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - checkUnnamed529(o.accounts); + checkUnnamed852(o.accounts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountsListResponse--; } -buildUnnamed530() { +buildUnnamed853() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed530(core.List<api.DimensionValue> o) { +checkUnnamed853(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed531() { +buildUnnamed854() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed531(core.List<core.String> o) { +checkUnnamed854(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -444,9 +444,9 @@ var o = new api.Activities(); buildCounterActivities++; if (buildCounterActivities < 3) { - o.filters = buildUnnamed530(); + o.filters = buildUnnamed853(); o.kind = "foo"; - o.metricNames = buildUnnamed531(); + o.metricNames = buildUnnamed854(); } buildCounterActivities--; return o; @@ -455,47 +455,47 @@ checkActivities(api.Activities o) { buildCounterActivities++; if (buildCounterActivities < 3) { - checkUnnamed530(o.filters); + checkUnnamed853(o.filters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed531(o.metricNames); + checkUnnamed854(o.metricNames); } buildCounterActivities--; } -buildUnnamed532() { +buildUnnamed855() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed532(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed855(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed533() { +buildUnnamed856() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed533(core.List<api.EventTagOverride> o) { +checkUnnamed856(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed534() { +buildUnnamed857() { var o = new core.List<api.PlacementAssignment>(); o.add(buildPlacementAssignment()); o.add(buildPlacementAssignment()); return o; } -checkUnnamed534(core.List<api.PlacementAssignment> o) { +checkUnnamed857(core.List<api.PlacementAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementAssignment(o[0]); checkPlacementAssignment(o[1]); @@ -519,7 +519,7 @@ o.comments = "foo"; o.compatibility = "foo"; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupAssignments = buildUnnamed532(); + o.creativeGroupAssignments = buildUnnamed855(); o.creativeRotation = buildCreativeRotation(); o.dayPartTargeting = buildDayPartTargeting(); o.defaultClickThroughEventTagProperties = @@ -527,7 +527,7 @@ o.deliverySchedule = buildDeliverySchedule(); o.dynamicClickTracker = true; o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.eventTagOverrides = buildUnnamed533(); + o.eventTagOverrides = buildUnnamed856(); o.geoTargeting = buildGeoTargeting(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -536,7 +536,7 @@ o.languageTargeting = buildLanguageTargeting(); o.lastModifiedInfo = buildLastModifiedInfo(); o.name = "foo"; - o.placementAssignments = buildUnnamed534(); + o.placementAssignments = buildUnnamed857(); o.remarketingListExpression = buildListTargetingExpression(); o.size = buildSize(); o.sslCompliant = true; @@ -567,7 +567,7 @@ unittest.expect(o.comments, unittest.equals('foo')); unittest.expect(o.compatibility, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); - checkUnnamed532(o.creativeGroupAssignments); + checkUnnamed855(o.creativeGroupAssignments); checkCreativeRotation(o.creativeRotation); checkDayPartTargeting(o.dayPartTargeting); checkDefaultClickThroughEventTagProperties( @@ -576,7 +576,7 @@ unittest.expect(o.dynamicClickTracker, unittest.isTrue); unittest.expect( o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed533(o.eventTagOverrides); + checkUnnamed856(o.eventTagOverrides); checkGeoTargeting(o.geoTargeting); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); @@ -585,7 +585,7 @@ checkLanguageTargeting(o.languageTargeting); checkLastModifiedInfo(o.lastModifiedInfo); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed534(o.placementAssignments); + checkUnnamed857(o.placementAssignments); checkListTargetingExpression(o.remarketingListExpression); checkSize(o.size); unittest.expect(o.sslCompliant, unittest.isTrue); @@ -658,14 +658,14 @@ buildCounterAdSlot--; } -buildUnnamed535() { +buildUnnamed858() { var o = new core.List<api.Ad>(); o.add(buildAd()); o.add(buildAd()); return o; } -checkUnnamed535(core.List<api.Ad> o) { +checkUnnamed858(core.List<api.Ad> o) { unittest.expect(o, unittest.hasLength(2)); checkAd(o[0]); checkAd(o[1]); @@ -676,7 +676,7 @@ var o = new api.AdsListResponse(); buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - o.ads = buildUnnamed535(); + o.ads = buildUnnamed858(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -687,7 +687,7 @@ checkAdsListResponse(api.AdsListResponse o) { buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - checkUnnamed535(o.ads); + checkUnnamed858(o.ads); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -767,14 +767,14 @@ buildCounterAdvertiserGroup--; } -buildUnnamed536() { +buildUnnamed859() { var o = new core.List<api.AdvertiserGroup>(); o.add(buildAdvertiserGroup()); o.add(buildAdvertiserGroup()); return o; } -checkUnnamed536(core.List<api.AdvertiserGroup> o) { +checkUnnamed859(core.List<api.AdvertiserGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiserGroup(o[0]); checkAdvertiserGroup(o[1]); @@ -785,7 +785,7 @@ var o = new api.AdvertiserGroupsListResponse(); buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - o.advertiserGroups = buildUnnamed536(); + o.advertiserGroups = buildUnnamed859(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -796,21 +796,21 @@ checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - checkUnnamed536(o.advertiserGroups); + checkUnnamed859(o.advertiserGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdvertiserGroupsListResponse--; } -buildUnnamed537() { +buildUnnamed860() { var o = new core.List<api.LandingPage>(); o.add(buildLandingPage()); o.add(buildLandingPage()); return o; } -checkUnnamed537(core.List<api.LandingPage> o) { +checkUnnamed860(core.List<api.LandingPage> o) { unittest.expect(o, unittest.hasLength(2)); checkLandingPage(o[0]); checkLandingPage(o[1]); @@ -822,7 +822,7 @@ buildCounterAdvertiserLandingPagesListResponse++; if (buildCounterAdvertiserLandingPagesListResponse < 3) { o.kind = "foo"; - o.landingPages = buildUnnamed537(); + o.landingPages = buildUnnamed860(); o.nextPageToken = "foo"; } buildCounterAdvertiserLandingPagesListResponse--; @@ -834,20 +834,20 @@ buildCounterAdvertiserLandingPagesListResponse++; if (buildCounterAdvertiserLandingPagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed537(o.landingPages); + checkUnnamed860(o.landingPages); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdvertiserLandingPagesListResponse--; } -buildUnnamed538() { +buildUnnamed861() { var o = new core.List<api.Advertiser>(); o.add(buildAdvertiser()); o.add(buildAdvertiser()); return o; } -checkUnnamed538(core.List<api.Advertiser> o) { +checkUnnamed861(core.List<api.Advertiser> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiser(o[0]); checkAdvertiser(o[1]); @@ -858,7 +858,7 @@ var o = new api.AdvertisersListResponse(); buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - o.advertisers = buildUnnamed538(); + o.advertisers = buildUnnamed861(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -869,7 +869,7 @@ checkAdvertisersListResponse(api.AdvertisersListResponse o) { buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - checkUnnamed538(o.advertisers); + checkUnnamed861(o.advertisers); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -899,14 +899,14 @@ buildCounterAudienceSegment--; } -buildUnnamed539() { +buildUnnamed862() { var o = new core.List<api.AudienceSegment>(); o.add(buildAudienceSegment()); o.add(buildAudienceSegment()); return o; } -checkUnnamed539(core.List<api.AudienceSegment> o) { +checkUnnamed862(core.List<api.AudienceSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegment(o[0]); checkAudienceSegment(o[1]); @@ -917,7 +917,7 @@ var o = new api.AudienceSegmentGroup(); buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - o.audienceSegments = buildUnnamed539(); + o.audienceSegments = buildUnnamed862(); o.id = "foo"; o.name = "foo"; } @@ -928,7 +928,7 @@ checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - checkUnnamed539(o.audienceSegments); + checkUnnamed862(o.audienceSegments); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -964,14 +964,14 @@ buildCounterBrowser--; } -buildUnnamed540() { +buildUnnamed863() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed540(core.List<api.Browser> o) { +checkUnnamed863(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); @@ -982,7 +982,7 @@ var o = new api.BrowsersListResponse(); buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - o.browsers = buildUnnamed540(); + o.browsers = buildUnnamed863(); o.kind = "foo"; } buildCounterBrowsersListResponse--; @@ -992,72 +992,72 @@ checkBrowsersListResponse(api.BrowsersListResponse o) { buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - checkUnnamed540(o.browsers); + checkUnnamed863(o.browsers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBrowsersListResponse--; } -buildUnnamed541() { +buildUnnamed864() { var o = new core.List<api.CreativeOptimizationConfiguration>(); o.add(buildCreativeOptimizationConfiguration()); o.add(buildCreativeOptimizationConfiguration()); return o; } -checkUnnamed541(core.List<api.CreativeOptimizationConfiguration> o) { +checkUnnamed864(core.List<api.CreativeOptimizationConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeOptimizationConfiguration(o[0]); checkCreativeOptimizationConfiguration(o[1]); } -buildUnnamed542() { +buildUnnamed865() { var o = new core.List<api.AudienceSegmentGroup>(); o.add(buildAudienceSegmentGroup()); o.add(buildAudienceSegmentGroup()); return o; } -checkUnnamed542(core.List<api.AudienceSegmentGroup> o) { +checkUnnamed865(core.List<api.AudienceSegmentGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegmentGroup(o[0]); checkAudienceSegmentGroup(o[1]); } -buildUnnamed543() { +buildUnnamed866() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed543(core.List<core.String> o) { +checkUnnamed866(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed544() { +buildUnnamed867() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed544(core.List<api.EventTagOverride> o) { +checkUnnamed867(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed545() { +buildUnnamed868() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed545(core.List<core.String> o) { +checkUnnamed868(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1070,24 +1070,24 @@ if (buildCounterCampaign < 3) { o.accountId = "foo"; o.adBlockingConfiguration = buildAdBlockingConfiguration(); - o.additionalCreativeOptimizationConfigurations = buildUnnamed541(); + o.additionalCreativeOptimizationConfigurations = buildUnnamed864(); o.advertiserGroupId = "foo"; o.advertiserId = "foo"; o.advertiserIdDimensionValue = buildDimensionValue(); o.archived = true; - o.audienceSegmentGroups = buildUnnamed542(); + o.audienceSegmentGroups = buildUnnamed865(); o.billingInvoiceCode = "foo"; o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); o.comment = "foo"; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupIds = buildUnnamed543(); + o.creativeGroupIds = buildUnnamed866(); o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.defaultLandingPageId = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.eventTagOverrides = buildUnnamed544(); + o.eventTagOverrides = buildUnnamed867(); o.externalId = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -1098,7 +1098,7 @@ o.nielsenOcrEnabled = true; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.subaccountId = "foo"; - o.traffickerEmails = buildUnnamed545(); + o.traffickerEmails = buildUnnamed868(); } buildCounterCampaign--; return o; @@ -1109,24 +1109,24 @@ if (buildCounterCampaign < 3) { unittest.expect(o.accountId, unittest.equals('foo')); checkAdBlockingConfiguration(o.adBlockingConfiguration); - checkUnnamed541(o.additionalCreativeOptimizationConfigurations); + checkUnnamed864(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); - checkUnnamed542(o.audienceSegmentGroups); + checkUnnamed865(o.audienceSegmentGroups); unittest.expect(o.billingInvoiceCode, unittest.equals('foo')); checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); unittest.expect(o.comment, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); - checkUnnamed543(o.creativeGroupIds); + checkUnnamed866(o.creativeGroupIds); checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); checkDefaultClickThroughEventTagProperties( o.defaultClickThroughEventTagProperties); unittest.expect(o.defaultLandingPageId, unittest.equals('foo')); unittest.expect( o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed544(o.eventTagOverrides); + checkUnnamed867(o.eventTagOverrides); unittest.expect(o.externalId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); @@ -1138,7 +1138,7 @@ unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed545(o.traffickerEmails); + checkUnnamed868(o.traffickerEmails); } buildCounterCampaign--; } @@ -1164,14 +1164,14 @@ buildCounterCampaignCreativeAssociation--; } -buildUnnamed546() { +buildUnnamed869() { var o = new core.List<api.CampaignCreativeAssociation>(); o.add(buildCampaignCreativeAssociation()); o.add(buildCampaignCreativeAssociation()); return o; } -checkUnnamed546(core.List<api.CampaignCreativeAssociation> o) { +checkUnnamed869(core.List<api.CampaignCreativeAssociation> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaignCreativeAssociation(o[0]); checkCampaignCreativeAssociation(o[1]); @@ -1182,7 +1182,7 @@ var o = new api.CampaignCreativeAssociationsListResponse(); buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - o.campaignCreativeAssociations = buildUnnamed546(); + o.campaignCreativeAssociations = buildUnnamed869(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1194,21 +1194,21 @@ api.CampaignCreativeAssociationsListResponse o) { buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - checkUnnamed546(o.campaignCreativeAssociations); + checkUnnamed869(o.campaignCreativeAssociations); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCampaignCreativeAssociationsListResponse--; } -buildUnnamed547() { +buildUnnamed870() { var o = new core.List<api.Campaign>(); o.add(buildCampaign()); o.add(buildCampaign()); return o; } -checkUnnamed547(core.List<api.Campaign> o) { +checkUnnamed870(core.List<api.Campaign> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaign(o[0]); checkCampaign(o[1]); @@ -1219,7 +1219,7 @@ var o = new api.CampaignsListResponse(); buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - o.campaigns = buildUnnamed547(); + o.campaigns = buildUnnamed870(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1230,7 +1230,7 @@ checkCampaignsListResponse(api.CampaignsListResponse o) { buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - checkUnnamed547(o.campaigns); + checkUnnamed870(o.campaigns); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1283,14 +1283,14 @@ buildCounterChangeLog--; } -buildUnnamed548() { +buildUnnamed871() { var o = new core.List<api.ChangeLog>(); o.add(buildChangeLog()); o.add(buildChangeLog()); return o; } -checkUnnamed548(core.List<api.ChangeLog> o) { +checkUnnamed871(core.List<api.ChangeLog> o) { unittest.expect(o, unittest.hasLength(2)); checkChangeLog(o[0]); checkChangeLog(o[1]); @@ -1301,7 +1301,7 @@ var o = new api.ChangeLogsListResponse(); buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - o.changeLogs = buildUnnamed548(); + o.changeLogs = buildUnnamed871(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1312,21 +1312,21 @@ checkChangeLogsListResponse(api.ChangeLogsListResponse o) { buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - checkUnnamed548(o.changeLogs); + checkUnnamed871(o.changeLogs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterChangeLogsListResponse--; } -buildUnnamed549() { +buildUnnamed872() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed549(core.List<api.City> o) { +checkUnnamed872(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); @@ -1337,7 +1337,7 @@ var o = new api.CitiesListResponse(); buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - o.cities = buildUnnamed549(); + o.cities = buildUnnamed872(); o.kind = "foo"; } buildCounterCitiesListResponse--; @@ -1347,7 +1347,7 @@ checkCitiesListResponse(api.CitiesListResponse o) { buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - checkUnnamed549(o.cities); + checkUnnamed872(o.cities); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCitiesListResponse--; @@ -1478,14 +1478,14 @@ buildCounterCompanionClickThroughOverride--; } -buildUnnamed550() { +buildUnnamed873() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed550(core.List<api.Size> o) { +checkUnnamed873(core.List<api.Size> o) { unittest.expect(o, unittest.hasLength(2)); checkSize(o[0]); checkSize(o[1]); @@ -1497,7 +1497,7 @@ buildCounterCompanionSetting++; if (buildCounterCompanionSetting < 3) { o.companionsDisabled = true; - o.enabledSizes = buildUnnamed550(); + o.enabledSizes = buildUnnamed873(); o.imageOnly = true; o.kind = "foo"; } @@ -1509,7 +1509,7 @@ buildCounterCompanionSetting++; if (buildCounterCompanionSetting < 3) { unittest.expect(o.companionsDisabled, unittest.isTrue); - checkUnnamed550(o.enabledSizes); + checkUnnamed873(o.enabledSizes); unittest.expect(o.imageOnly, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); } @@ -1573,14 +1573,14 @@ buildCounterConnectionType--; } -buildUnnamed551() { +buildUnnamed874() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed551(core.List<api.ConnectionType> o) { +checkUnnamed874(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); @@ -1591,7 +1591,7 @@ var o = new api.ConnectionTypesListResponse(); buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - o.connectionTypes = buildUnnamed551(); + o.connectionTypes = buildUnnamed874(); o.kind = "foo"; } buildCounterConnectionTypesListResponse--; @@ -1601,20 +1601,20 @@ checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - checkUnnamed551(o.connectionTypes); + checkUnnamed874(o.connectionTypes); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConnectionTypesListResponse--; } -buildUnnamed552() { +buildUnnamed875() { var o = new core.List<api.ContentCategory>(); o.add(buildContentCategory()); o.add(buildContentCategory()); return o; } -checkUnnamed552(core.List<api.ContentCategory> o) { +checkUnnamed875(core.List<api.ContentCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkContentCategory(o[0]); checkContentCategory(o[1]); @@ -1625,7 +1625,7 @@ var o = new api.ContentCategoriesListResponse(); buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - o.contentCategories = buildUnnamed552(); + o.contentCategories = buildUnnamed875(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1636,7 +1636,7 @@ checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - checkUnnamed552(o.contentCategories); + checkUnnamed875(o.contentCategories); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1668,27 +1668,27 @@ buildCounterContentCategory--; } -buildUnnamed553() { +buildUnnamed876() { var o = new core.List<api.CustomFloodlightVariable>(); o.add(buildCustomFloodlightVariable()); o.add(buildCustomFloodlightVariable()); return o; } -checkUnnamed553(core.List<api.CustomFloodlightVariable> o) { +checkUnnamed876(core.List<api.CustomFloodlightVariable> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomFloodlightVariable(o[0]); checkCustomFloodlightVariable(o[1]); } -buildUnnamed554() { +buildUnnamed877() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed554(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')); @@ -1700,9 +1700,9 @@ buildCounterConversion++; if (buildCounterConversion < 3) { o.childDirectedTreatment = true; - o.customVariables = buildUnnamed553(); + o.customVariables = buildUnnamed876(); o.encryptedUserId = "foo"; - o.encryptedUserIdCandidates = buildUnnamed554(); + o.encryptedUserIdCandidates = buildUnnamed877(); o.floodlightActivityId = "foo"; o.floodlightConfigurationId = "foo"; o.gclid = "foo"; @@ -1722,9 +1722,9 @@ buildCounterConversion++; if (buildCounterConversion < 3) { unittest.expect(o.childDirectedTreatment, unittest.isTrue); - checkUnnamed553(o.customVariables); + checkUnnamed876(o.customVariables); unittest.expect(o.encryptedUserId, unittest.equals('foo')); - checkUnnamed554(o.encryptedUserIdCandidates); + checkUnnamed877(o.encryptedUserIdCandidates); unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); unittest.expect(o.gclid, unittest.equals('foo')); @@ -1762,14 +1762,14 @@ buildCounterConversionError--; } -buildUnnamed555() { +buildUnnamed878() { var o = new core.List<api.ConversionError>(); o.add(buildConversionError()); o.add(buildConversionError()); return o; } -checkUnnamed555(core.List<api.ConversionError> o) { +checkUnnamed878(core.List<api.ConversionError> o) { unittest.expect(o, unittest.hasLength(2)); checkConversionError(o[0]); checkConversionError(o[1]); @@ -1781,7 +1781,7 @@ buildCounterConversionStatus++; if (buildCounterConversionStatus < 3) { o.conversion = buildConversion(); - o.errors = buildUnnamed555(); + o.errors = buildUnnamed878(); o.kind = "foo"; } buildCounterConversionStatus--; @@ -1792,20 +1792,20 @@ buildCounterConversionStatus++; if (buildCounterConversionStatus < 3) { checkConversion(o.conversion); - checkUnnamed555(o.errors); + checkUnnamed878(o.errors); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionStatus--; } -buildUnnamed556() { +buildUnnamed879() { var o = new core.List<api.Conversion>(); o.add(buildConversion()); o.add(buildConversion()); return o; } -checkUnnamed556(core.List<api.Conversion> o) { +checkUnnamed879(core.List<api.Conversion> o) { unittest.expect(o, unittest.hasLength(2)); checkConversion(o[0]); checkConversion(o[1]); @@ -1816,7 +1816,7 @@ var o = new api.ConversionsBatchInsertRequest(); buildCounterConversionsBatchInsertRequest++; if (buildCounterConversionsBatchInsertRequest < 3) { - o.conversions = buildUnnamed556(); + o.conversions = buildUnnamed879(); o.encryptionInfo = buildEncryptionInfo(); o.kind = "foo"; } @@ -1827,21 +1827,21 @@ checkConversionsBatchInsertRequest(api.ConversionsBatchInsertRequest o) { buildCounterConversionsBatchInsertRequest++; if (buildCounterConversionsBatchInsertRequest < 3) { - checkUnnamed556(o.conversions); + checkUnnamed879(o.conversions); checkEncryptionInfo(o.encryptionInfo); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionsBatchInsertRequest--; } -buildUnnamed557() { +buildUnnamed880() { var o = new core.List<api.ConversionStatus>(); o.add(buildConversionStatus()); o.add(buildConversionStatus()); return o; } -checkUnnamed557(core.List<api.ConversionStatus> o) { +checkUnnamed880(core.List<api.ConversionStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkConversionStatus(o[0]); checkConversionStatus(o[1]); @@ -1854,7 +1854,7 @@ if (buildCounterConversionsBatchInsertResponse < 3) { o.hasFailures = true; o.kind = "foo"; - o.status = buildUnnamed557(); + o.status = buildUnnamed880(); } buildCounterConversionsBatchInsertResponse--; return o; @@ -1865,19 +1865,19 @@ if (buildCounterConversionsBatchInsertResponse < 3) { unittest.expect(o.hasFailures, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed557(o.status); + checkUnnamed880(o.status); } buildCounterConversionsBatchInsertResponse--; } -buildUnnamed558() { +buildUnnamed881() { var o = new core.List<api.Conversion>(); o.add(buildConversion()); o.add(buildConversion()); return o; } -checkUnnamed558(core.List<api.Conversion> o) { +checkUnnamed881(core.List<api.Conversion> o) { unittest.expect(o, unittest.hasLength(2)); checkConversion(o[0]); checkConversion(o[1]); @@ -1888,7 +1888,7 @@ var o = new api.ConversionsBatchUpdateRequest(); buildCounterConversionsBatchUpdateRequest++; if (buildCounterConversionsBatchUpdateRequest < 3) { - o.conversions = buildUnnamed558(); + o.conversions = buildUnnamed881(); o.encryptionInfo = buildEncryptionInfo(); o.kind = "foo"; } @@ -1899,21 +1899,21 @@ checkConversionsBatchUpdateRequest(api.ConversionsBatchUpdateRequest o) { buildCounterConversionsBatchUpdateRequest++; if (buildCounterConversionsBatchUpdateRequest < 3) { - checkUnnamed558(o.conversions); + checkUnnamed881(o.conversions); checkEncryptionInfo(o.encryptionInfo); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionsBatchUpdateRequest--; } -buildUnnamed559() { +buildUnnamed882() { var o = new core.List<api.ConversionStatus>(); o.add(buildConversionStatus()); o.add(buildConversionStatus()); return o; } -checkUnnamed559(core.List<api.ConversionStatus> o) { +checkUnnamed882(core.List<api.ConversionStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkConversionStatus(o[0]); checkConversionStatus(o[1]); @@ -1926,7 +1926,7 @@ if (buildCounterConversionsBatchUpdateResponse < 3) { o.hasFailures = true; o.kind = "foo"; - o.status = buildUnnamed559(); + o.status = buildUnnamed882(); } buildCounterConversionsBatchUpdateResponse--; return o; @@ -1937,19 +1937,19 @@ if (buildCounterConversionsBatchUpdateResponse < 3) { unittest.expect(o.hasFailures, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed559(o.status); + checkUnnamed882(o.status); } buildCounterConversionsBatchUpdateResponse--; } -buildUnnamed560() { +buildUnnamed883() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed560(core.List<api.Country> o) { +checkUnnamed883(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); @@ -1960,7 +1960,7 @@ var o = new api.CountriesListResponse(); buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - o.countries = buildUnnamed560(); + o.countries = buildUnnamed883(); o.kind = "foo"; } buildCounterCountriesListResponse--; @@ -1970,7 +1970,7 @@ checkCountriesListResponse(api.CountriesListResponse o) { buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - checkUnnamed560(o.countries); + checkUnnamed883(o.countries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCountriesListResponse--; @@ -2003,157 +2003,157 @@ buildCounterCountry--; } -buildUnnamed561() { +buildUnnamed884() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed561(core.List<core.String> o) { +checkUnnamed884(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed562() { +buildUnnamed885() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed562(core.List<core.String> o) { +checkUnnamed885(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed563() { +buildUnnamed886() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed563(core.List<api.ClickTag> o) { +checkUnnamed886(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed564() { +buildUnnamed887() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed564(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')); } -buildUnnamed565() { +buildUnnamed888() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed565(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')); } -buildUnnamed566() { +buildUnnamed889() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed566(core.List<api.CreativeCustomEvent> o) { +checkUnnamed889(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed567() { +buildUnnamed890() { var o = new core.List<api.CreativeAsset>(); o.add(buildCreativeAsset()); o.add(buildCreativeAsset()); return o; } -checkUnnamed567(core.List<api.CreativeAsset> o) { +checkUnnamed890(core.List<api.CreativeAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAsset(o[0]); checkCreativeAsset(o[1]); } -buildUnnamed568() { +buildUnnamed891() { var o = new core.List<api.CreativeFieldAssignment>(); o.add(buildCreativeFieldAssignment()); o.add(buildCreativeFieldAssignment()); return o; } -checkUnnamed568(core.List<api.CreativeFieldAssignment> o) { +checkUnnamed891(core.List<api.CreativeFieldAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldAssignment(o[0]); checkCreativeFieldAssignment(o[1]); } -buildUnnamed569() { +buildUnnamed892() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed569(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')); } -buildUnnamed570() { +buildUnnamed893() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed570(core.List<api.CreativeCustomEvent> o) { +checkUnnamed893(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed571() { +buildUnnamed894() { var o = new core.List<api.ThirdPartyTrackingUrl>(); o.add(buildThirdPartyTrackingUrl()); o.add(buildThirdPartyTrackingUrl()); return o; } -checkUnnamed571(core.List<api.ThirdPartyTrackingUrl> o) { +checkUnnamed894(core.List<api.ThirdPartyTrackingUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyTrackingUrl(o[0]); checkThirdPartyTrackingUrl(o[1]); } -buildUnnamed572() { +buildUnnamed895() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed572(core.List<api.CreativeCustomEvent> o) { +checkUnnamed895(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); @@ -2167,7 +2167,7 @@ o.accountId = "foo"; o.active = true; o.adParameters = "foo"; - o.adTagKeys = buildUnnamed561(); + o.adTagKeys = buildUnnamed884(); o.advertiserId = "foo"; o.allowScriptAccess = true; o.archived = true; @@ -2177,21 +2177,21 @@ o.autoAdvanceImages = true; o.backgroundColor = "foo"; o.backupImageClickThroughUrl = buildCreativeClickThroughUrl(); - o.backupImageFeatures = buildUnnamed562(); + o.backupImageFeatures = buildUnnamed885(); o.backupImageReportingLabel = "foo"; o.backupImageTargetWindow = buildTargetWindow(); - o.clickTags = buildUnnamed563(); + o.clickTags = buildUnnamed886(); o.commercialId = "foo"; - o.companionCreatives = buildUnnamed564(); - o.compatibility = buildUnnamed565(); + o.companionCreatives = buildUnnamed887(); + o.compatibility = buildUnnamed888(); o.convertFlashToHtml5 = true; - o.counterCustomEvents = buildUnnamed566(); + o.counterCustomEvents = buildUnnamed889(); o.creativeAssetSelection = buildCreativeAssetSelection(); - o.creativeAssets = buildUnnamed567(); - o.creativeFieldAssignments = buildUnnamed568(); - o.customKeyValues = buildUnnamed569(); + o.creativeAssets = buildUnnamed890(); + o.creativeFieldAssignments = buildUnnamed891(); + o.customKeyValues = buildUnnamed892(); o.dynamicAssetSelection = true; - o.exitCustomEvents = buildUnnamed570(); + o.exitCustomEvents = buildUnnamed893(); o.fsCommand = buildFsCommand(); o.htmlCode = "foo"; o.htmlCodeLocked = true; @@ -2220,8 +2220,8 @@ o.subaccountId = "foo"; o.thirdPartyBackupImageImpressionsUrl = "foo"; o.thirdPartyRichMediaImpressionsUrl = "foo"; - o.thirdPartyUrls = buildUnnamed571(); - o.timerCustomEvents = buildUnnamed572(); + o.thirdPartyUrls = buildUnnamed894(); + o.timerCustomEvents = buildUnnamed895(); o.totalFileSize = "foo"; o.type = "foo"; o.universalAdId = buildUniversalAdId(); @@ -2239,7 +2239,7 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.active, unittest.isTrue); unittest.expect(o.adParameters, unittest.equals('foo')); - checkUnnamed561(o.adTagKeys); + checkUnnamed884(o.adTagKeys); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.allowScriptAccess, unittest.isTrue); unittest.expect(o.archived, unittest.isTrue); @@ -2249,21 +2249,21 @@ unittest.expect(o.autoAdvanceImages, unittest.isTrue); unittest.expect(o.backgroundColor, unittest.equals('foo')); checkCreativeClickThroughUrl(o.backupImageClickThroughUrl); - checkUnnamed562(o.backupImageFeatures); + checkUnnamed885(o.backupImageFeatures); unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); checkTargetWindow(o.backupImageTargetWindow); - checkUnnamed563(o.clickTags); + checkUnnamed886(o.clickTags); unittest.expect(o.commercialId, unittest.equals('foo')); - checkUnnamed564(o.companionCreatives); - checkUnnamed565(o.compatibility); + checkUnnamed887(o.companionCreatives); + checkUnnamed888(o.compatibility); unittest.expect(o.convertFlashToHtml5, unittest.isTrue); - checkUnnamed566(o.counterCustomEvents); + checkUnnamed889(o.counterCustomEvents); checkCreativeAssetSelection(o.creativeAssetSelection); - checkUnnamed567(o.creativeAssets); - checkUnnamed568(o.creativeFieldAssignments); - checkUnnamed569(o.customKeyValues); + checkUnnamed890(o.creativeAssets); + checkUnnamed891(o.creativeFieldAssignments); + checkUnnamed892(o.customKeyValues); unittest.expect(o.dynamicAssetSelection, unittest.isTrue); - checkUnnamed570(o.exitCustomEvents); + checkUnnamed893(o.exitCustomEvents); checkFsCommand(o.fsCommand); unittest.expect(o.htmlCode, unittest.equals('foo')); unittest.expect(o.htmlCodeLocked, unittest.isTrue); @@ -2294,8 +2294,8 @@ o.thirdPartyBackupImageImpressionsUrl, unittest.equals('foo')); unittest.expect( o.thirdPartyRichMediaImpressionsUrl, unittest.equals('foo')); - checkUnnamed571(o.thirdPartyUrls); - checkUnnamed572(o.timerCustomEvents); + checkUnnamed894(o.thirdPartyUrls); + checkUnnamed895(o.timerCustomEvents); unittest.expect(o.totalFileSize, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); checkUniversalAdId(o.universalAdId); @@ -2306,27 +2306,27 @@ buildCounterCreative--; } -buildUnnamed573() { +buildUnnamed896() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed573(core.List<core.String> o) { +checkUnnamed896(core.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() { +buildUnnamed897() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed574(core.List<core.String> o) { +checkUnnamed897(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2346,9 +2346,9 @@ o.bitRate = 42; o.childAssetType = "foo"; o.collapsedSize = buildSize(); - o.companionCreativeIds = buildUnnamed573(); + o.companionCreativeIds = buildUnnamed896(); o.customStartTimeValue = 42; - o.detectedFeatures = buildUnnamed574(); + o.detectedFeatures = buildUnnamed897(); o.displayType = "foo"; o.duration = 42; o.durationType = "foo"; @@ -2399,9 +2399,9 @@ unittest.expect(o.bitRate, unittest.equals(42)); unittest.expect(o.childAssetType, unittest.equals('foo')); checkSize(o.collapsedSize); - checkUnnamed573(o.companionCreativeIds); + checkUnnamed896(o.companionCreativeIds); unittest.expect(o.customStartTimeValue, unittest.equals(42)); - checkUnnamed574(o.detectedFeatures); + checkUnnamed897(o.detectedFeatures); unittest.expect(o.displayType, unittest.equals('foo')); unittest.expect(o.duration, unittest.equals(42)); unittest.expect(o.durationType, unittest.equals('foo')); @@ -2460,40 +2460,40 @@ buildCounterCreativeAssetId--; } -buildUnnamed575() { +buildUnnamed898() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed575(core.List<api.ClickTag> o) { +checkUnnamed898(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed576() { +buildUnnamed899() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed576(core.List<core.String> o) { +checkUnnamed899(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed577() { +buildUnnamed900() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed577(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')); @@ -2505,12 +2505,12 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { o.assetIdentifier = buildCreativeAssetId(); - o.clickTags = buildUnnamed575(); - o.detectedFeatures = buildUnnamed576(); + o.clickTags = buildUnnamed898(); + o.detectedFeatures = buildUnnamed899(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); o.kind = "foo"; - o.warnedValidationRules = buildUnnamed577(); + o.warnedValidationRules = buildUnnamed900(); } buildCounterCreativeAssetMetadata--; return o; @@ -2520,24 +2520,24 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { checkCreativeAssetId(o.assetIdentifier); - checkUnnamed575(o.clickTags); - checkUnnamed576(o.detectedFeatures); + checkUnnamed898(o.clickTags); + checkUnnamed899(o.detectedFeatures); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed577(o.warnedValidationRules); + checkUnnamed900(o.warnedValidationRules); } buildCounterCreativeAssetMetadata--; } -buildUnnamed578() { +buildUnnamed901() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed578(core.List<api.Rule> o) { +checkUnnamed901(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -2549,7 +2549,7 @@ buildCounterCreativeAssetSelection++; if (buildCounterCreativeAssetSelection < 3) { o.defaultAssetId = "foo"; - o.rules = buildUnnamed578(); + o.rules = buildUnnamed901(); } buildCounterCreativeAssetSelection--; return o; @@ -2559,45 +2559,45 @@ buildCounterCreativeAssetSelection++; if (buildCounterCreativeAssetSelection < 3) { unittest.expect(o.defaultAssetId, unittest.equals('foo')); - checkUnnamed578(o.rules); + checkUnnamed901(o.rules); } buildCounterCreativeAssetSelection--; } -buildUnnamed579() { +buildUnnamed902() { var o = new core.List<api.CompanionClickThroughOverride>(); o.add(buildCompanionClickThroughOverride()); o.add(buildCompanionClickThroughOverride()); return o; } -checkUnnamed579(core.List<api.CompanionClickThroughOverride> o) { +checkUnnamed902(core.List<api.CompanionClickThroughOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkCompanionClickThroughOverride(o[0]); checkCompanionClickThroughOverride(o[1]); } -buildUnnamed580() { +buildUnnamed903() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed580(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed903(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed581() { +buildUnnamed904() { var o = new core.List<api.RichMediaExitOverride>(); o.add(buildRichMediaExitOverride()); o.add(buildRichMediaExitOverride()); return o; } -checkUnnamed581(core.List<api.RichMediaExitOverride> o) { +checkUnnamed904(core.List<api.RichMediaExitOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkRichMediaExitOverride(o[0]); checkRichMediaExitOverride(o[1]); @@ -2611,12 +2611,12 @@ o.active = true; o.applyEventTags = true; o.clickThroughUrl = buildClickThroughUrl(); - o.companionCreativeOverrides = buildUnnamed579(); - o.creativeGroupAssignments = buildUnnamed580(); + o.companionCreativeOverrides = buildUnnamed902(); + o.creativeGroupAssignments = buildUnnamed903(); o.creativeId = "foo"; o.creativeIdDimensionValue = buildDimensionValue(); o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.richMediaExitOverrides = buildUnnamed581(); + o.richMediaExitOverrides = buildUnnamed904(); o.sequence = 42; o.sslCompliant = true; o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); @@ -2632,13 +2632,13 @@ unittest.expect(o.active, unittest.isTrue); unittest.expect(o.applyEventTags, unittest.isTrue); checkClickThroughUrl(o.clickThroughUrl); - checkUnnamed579(o.companionCreativeOverrides); - checkUnnamed580(o.creativeGroupAssignments); + checkUnnamed902(o.companionCreativeOverrides); + checkUnnamed903(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"))); - checkUnnamed581(o.richMediaExitOverrides); + checkUnnamed904(o.richMediaExitOverrides); unittest.expect(o.sequence, unittest.equals(42)); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.startTime, @@ -2783,14 +2783,14 @@ buildCounterCreativeFieldValue--; } -buildUnnamed582() { +buildUnnamed905() { var o = new core.List<api.CreativeFieldValue>(); o.add(buildCreativeFieldValue()); o.add(buildCreativeFieldValue()); return o; } -checkUnnamed582(core.List<api.CreativeFieldValue> o) { +checkUnnamed905(core.List<api.CreativeFieldValue> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldValue(o[0]); checkCreativeFieldValue(o[1]); @@ -2801,7 +2801,7 @@ var o = new api.CreativeFieldValuesListResponse(); buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - o.creativeFieldValues = buildUnnamed582(); + o.creativeFieldValues = buildUnnamed905(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2812,21 +2812,21 @@ checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - checkUnnamed582(o.creativeFieldValues); + checkUnnamed905(o.creativeFieldValues); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeFieldValuesListResponse--; } -buildUnnamed583() { +buildUnnamed906() { var o = new core.List<api.CreativeField>(); o.add(buildCreativeField()); o.add(buildCreativeField()); return o; } -checkUnnamed583(core.List<api.CreativeField> o) { +checkUnnamed906(core.List<api.CreativeField> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeField(o[0]); checkCreativeField(o[1]); @@ -2837,7 +2837,7 @@ var o = new api.CreativeFieldsListResponse(); buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - o.creativeFields = buildUnnamed583(); + o.creativeFields = buildUnnamed906(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2848,7 +2848,7 @@ checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - checkUnnamed583(o.creativeFields); + checkUnnamed906(o.creativeFields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2909,14 +2909,14 @@ buildCounterCreativeGroupAssignment--; } -buildUnnamed584() { +buildUnnamed907() { var o = new core.List<api.CreativeGroup>(); o.add(buildCreativeGroup()); o.add(buildCreativeGroup()); return o; } -checkUnnamed584(core.List<api.CreativeGroup> o) { +checkUnnamed907(core.List<api.CreativeGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroup(o[0]); checkCreativeGroup(o[1]); @@ -2927,7 +2927,7 @@ var o = new api.CreativeGroupsListResponse(); buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - o.creativeGroups = buildUnnamed584(); + o.creativeGroups = buildUnnamed907(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2938,21 +2938,21 @@ checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - checkUnnamed584(o.creativeGroups); + checkUnnamed907(o.creativeGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeGroupsListResponse--; } -buildUnnamed585() { +buildUnnamed908() { var o = new core.List<api.OptimizationActivity>(); o.add(buildOptimizationActivity()); o.add(buildOptimizationActivity()); return o; } -checkUnnamed585(core.List<api.OptimizationActivity> o) { +checkUnnamed908(core.List<api.OptimizationActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkOptimizationActivity(o[0]); checkOptimizationActivity(o[1]); @@ -2965,7 +2965,7 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { o.id = "foo"; o.name = "foo"; - o.optimizationActivitys = buildUnnamed585(); + o.optimizationActivitys = buildUnnamed908(); o.optimizationModel = "foo"; } buildCounterCreativeOptimizationConfiguration--; @@ -2978,20 +2978,20 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed585(o.optimizationActivitys); + checkUnnamed908(o.optimizationActivitys); unittest.expect(o.optimizationModel, unittest.equals('foo')); } buildCounterCreativeOptimizationConfiguration--; } -buildUnnamed586() { +buildUnnamed909() { var o = new core.List<api.CreativeAssignment>(); o.add(buildCreativeAssignment()); o.add(buildCreativeAssignment()); return o; } -checkUnnamed586(core.List<api.CreativeAssignment> o) { +checkUnnamed909(core.List<api.CreativeAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAssignment(o[0]); checkCreativeAssignment(o[1]); @@ -3002,7 +3002,7 @@ var o = new api.CreativeRotation(); buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - o.creativeAssignments = buildUnnamed586(); + o.creativeAssignments = buildUnnamed909(); o.creativeOptimizationConfigurationId = "foo"; o.type = "foo"; o.weightCalculationStrategy = "foo"; @@ -3014,7 +3014,7 @@ checkCreativeRotation(api.CreativeRotation o) { buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - checkUnnamed586(o.creativeAssignments); + checkUnnamed909(o.creativeAssignments); unittest.expect( o.creativeOptimizationConfigurationId, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -3044,14 +3044,14 @@ buildCounterCreativeSettings--; } -buildUnnamed587() { +buildUnnamed910() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed587(core.List<api.Creative> o) { +checkUnnamed910(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -3062,7 +3062,7 @@ var o = new api.CreativesListResponse(); buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - o.creatives = buildUnnamed587(); + o.creatives = buildUnnamed910(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3073,60 +3073,60 @@ checkCreativesListResponse(api.CreativesListResponse o) { buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - checkUnnamed587(o.creatives); + checkUnnamed910(o.creatives); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativesListResponse--; } -buildUnnamed588() { +buildUnnamed911() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed588(core.List<api.Dimension> o) { +checkUnnamed911(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed589() { +buildUnnamed912() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed589(core.List<api.Dimension> o) { +checkUnnamed912(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed590() { +buildUnnamed913() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed590(core.List<api.Metric> o) { +checkUnnamed913(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed591() { +buildUnnamed914() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed591(core.List<api.Metric> o) { +checkUnnamed914(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -3137,11 +3137,11 @@ var o = new api.CrossDimensionReachReportCompatibleFields(); buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - o.breakdown = buildUnnamed588(); - o.dimensionFilters = buildUnnamed589(); + o.breakdown = buildUnnamed911(); + o.dimensionFilters = buildUnnamed912(); o.kind = "foo"; - o.metrics = buildUnnamed590(); - o.overlapMetrics = buildUnnamed591(); + o.metrics = buildUnnamed913(); + o.overlapMetrics = buildUnnamed914(); } buildCounterCrossDimensionReachReportCompatibleFields--; return o; @@ -3151,11 +3151,11 @@ api.CrossDimensionReachReportCompatibleFields o) { buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - checkUnnamed588(o.breakdown); - checkUnnamed589(o.dimensionFilters); + checkUnnamed911(o.breakdown); + checkUnnamed912(o.dimensionFilters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed590(o.metrics); - checkUnnamed591(o.overlapMetrics); + checkUnnamed913(o.metrics); + checkUnnamed914(o.overlapMetrics); } buildCounterCrossDimensionReachReportCompatibleFields--; } @@ -3183,14 +3183,14 @@ buildCounterCustomFloodlightVariable--; } -buildUnnamed592() { +buildUnnamed915() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed592(core.List<api.DimensionValue> o) { +checkUnnamed915(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -3201,7 +3201,7 @@ var o = new api.CustomRichMediaEvents(); buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - o.filteredEventIds = buildUnnamed592(); + o.filteredEventIds = buildUnnamed915(); o.kind = "foo"; } buildCounterCustomRichMediaEvents--; @@ -3211,7 +3211,7 @@ checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - checkUnnamed592(o.filteredEventIds); + checkUnnamed915(o.filteredEventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCustomRichMediaEvents--; @@ -3244,27 +3244,27 @@ buildCounterDateRange--; } -buildUnnamed593() { +buildUnnamed916() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed593(core.List<core.String> o) { +checkUnnamed916(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed594() { +buildUnnamed917() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed594(core.List<core.int> o) { +checkUnnamed917(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)); @@ -3275,8 +3275,8 @@ var o = new api.DayPartTargeting(); buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - o.daysOfWeek = buildUnnamed593(); - o.hoursOfDay = buildUnnamed594(); + o.daysOfWeek = buildUnnamed916(); + o.hoursOfDay = buildUnnamed917(); o.userLocalTime = true; } buildCounterDayPartTargeting--; @@ -3286,8 +3286,8 @@ checkDayPartTargeting(api.DayPartTargeting o) { buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - checkUnnamed593(o.daysOfWeek); - checkUnnamed594(o.hoursOfDay); + checkUnnamed916(o.daysOfWeek); + checkUnnamed917(o.hoursOfDay); unittest.expect(o.userLocalTime, unittest.isTrue); } buildCounterDayPartTargeting--; @@ -3440,14 +3440,14 @@ buildCounterDimensionValue--; } -buildUnnamed595() { +buildUnnamed918() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed595(core.List<api.DimensionValue> o) { +checkUnnamed918(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -3459,7 +3459,7 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { o.etag = "foo"; - o.items = buildUnnamed595(); + o.items = buildUnnamed918(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3471,21 +3471,21 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed595(o.items); + checkUnnamed918(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDimensionValueList--; } -buildUnnamed596() { +buildUnnamed919() { var o = new core.List<api.DimensionFilter>(); o.add(buildDimensionFilter()); o.add(buildDimensionFilter()); return o; } -checkUnnamed596(core.List<api.DimensionFilter> o) { +checkUnnamed919(core.List<api.DimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilter(o[0]); checkDimensionFilter(o[1]); @@ -3498,7 +3498,7 @@ if (buildCounterDimensionValueRequest < 3) { o.dimensionName = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.filters = buildUnnamed596(); + o.filters = buildUnnamed919(); o.kind = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -3512,7 +3512,7 @@ unittest.expect(o.dimensionName, unittest.equals('foo')); unittest.expect( o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed596(o.filters); + checkUnnamed919(o.filters); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -3520,40 +3520,40 @@ buildCounterDimensionValueRequest--; } -buildUnnamed597() { +buildUnnamed920() { var o = new core.List<api.DirectorySiteContactAssignment>(); o.add(buildDirectorySiteContactAssignment()); o.add(buildDirectorySiteContactAssignment()); return o; } -checkUnnamed597(core.List<api.DirectorySiteContactAssignment> o) { +checkUnnamed920(core.List<api.DirectorySiteContactAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContactAssignment(o[0]); checkDirectorySiteContactAssignment(o[1]); } -buildUnnamed598() { +buildUnnamed921() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed598(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')); } -buildUnnamed599() { +buildUnnamed922() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed599(core.List<core.String> 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')); @@ -3565,14 +3565,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { o.active = true; - o.contactAssignments = buildUnnamed597(); + o.contactAssignments = buildUnnamed920(); o.countryId = "foo"; o.currencyId = "foo"; o.description = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); - o.inpageTagFormats = buildUnnamed598(); - o.interstitialTagFormats = buildUnnamed599(); + o.inpageTagFormats = buildUnnamed921(); + o.interstitialTagFormats = buildUnnamed922(); o.kind = "foo"; o.name = "foo"; o.parentId = "foo"; @@ -3587,14 +3587,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { unittest.expect(o.active, unittest.isTrue); - checkUnnamed597(o.contactAssignments); + checkUnnamed920(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); - checkUnnamed598(o.inpageTagFormats); - checkUnnamed599(o.interstitialTagFormats); + checkUnnamed921(o.inpageTagFormats); + checkUnnamed922(o.interstitialTagFormats); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentId, unittest.equals('foo')); @@ -3662,14 +3662,14 @@ buildCounterDirectorySiteContactAssignment--; } -buildUnnamed600() { +buildUnnamed923() { var o = new core.List<api.DirectorySiteContact>(); o.add(buildDirectorySiteContact()); o.add(buildDirectorySiteContact()); return o; } -checkUnnamed600(core.List<api.DirectorySiteContact> o) { +checkUnnamed923(core.List<api.DirectorySiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContact(o[0]); checkDirectorySiteContact(o[1]); @@ -3680,7 +3680,7 @@ var o = new api.DirectorySiteContactsListResponse(); buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - o.directorySiteContacts = buildUnnamed600(); + o.directorySiteContacts = buildUnnamed923(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3692,7 +3692,7 @@ api.DirectorySiteContactsListResponse o) { buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - checkUnnamed600(o.directorySiteContacts); + checkUnnamed923(o.directorySiteContacts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3730,14 +3730,14 @@ buildCounterDirectorySiteSettings--; } -buildUnnamed601() { +buildUnnamed924() { var o = new core.List<api.DirectorySite>(); o.add(buildDirectorySite()); o.add(buildDirectorySite()); return o; } -checkUnnamed601(core.List<api.DirectorySite> o) { +checkUnnamed924(core.List<api.DirectorySite> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySite(o[0]); checkDirectorySite(o[1]); @@ -3748,7 +3748,7 @@ var o = new api.DirectorySitesListResponse(); buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - o.directorySites = buildUnnamed601(); + o.directorySites = buildUnnamed924(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3759,7 +3759,7 @@ checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - checkUnnamed601(o.directorySites); + checkUnnamed924(o.directorySites); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3791,14 +3791,14 @@ buildCounterDynamicTargetingKey--; } -buildUnnamed602() { +buildUnnamed925() { var o = new core.List<api.DynamicTargetingKey>(); o.add(buildDynamicTargetingKey()); o.add(buildDynamicTargetingKey()); return o; } -checkUnnamed602(core.List<api.DynamicTargetingKey> o) { +checkUnnamed925(core.List<api.DynamicTargetingKey> o) { unittest.expect(o, unittest.hasLength(2)); checkDynamicTargetingKey(o[0]); checkDynamicTargetingKey(o[1]); @@ -3809,7 +3809,7 @@ var o = new api.DynamicTargetingKeysListResponse(); buildCounterDynamicTargetingKeysListResponse++; if (buildCounterDynamicTargetingKeysListResponse < 3) { - o.dynamicTargetingKeys = buildUnnamed602(); + o.dynamicTargetingKeys = buildUnnamed925(); o.kind = "foo"; } buildCounterDynamicTargetingKeysListResponse--; @@ -3819,7 +3819,7 @@ checkDynamicTargetingKeysListResponse(api.DynamicTargetingKeysListResponse o) { buildCounterDynamicTargetingKeysListResponse++; if (buildCounterDynamicTargetingKeysListResponse < 3) { - checkUnnamed602(o.dynamicTargetingKeys); + checkUnnamed925(o.dynamicTargetingKeys); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDynamicTargetingKeysListResponse--; @@ -3850,14 +3850,14 @@ buildCounterEncryptionInfo--; } -buildUnnamed603() { +buildUnnamed926() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed603(core.List<core.String> o) { +checkUnnamed926(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3879,7 +3879,7 @@ o.kind = "foo"; o.name = "foo"; o.siteFilterType = "foo"; - o.siteIds = buildUnnamed603(); + o.siteIds = buildUnnamed926(); o.sslCompliant = true; o.status = "foo"; o.subaccountId = "foo"; @@ -3905,7 +3905,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.siteFilterType, unittest.equals('foo')); - checkUnnamed603(o.siteIds); + checkUnnamed926(o.siteIds); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); @@ -3937,14 +3937,14 @@ buildCounterEventTagOverride--; } -buildUnnamed604() { +buildUnnamed927() { var o = new core.List<api.EventTag>(); o.add(buildEventTag()); o.add(buildEventTag()); return o; } -checkUnnamed604(core.List<api.EventTag> o) { +checkUnnamed927(core.List<api.EventTag> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTag(o[0]); checkEventTag(o[1]); @@ -3955,7 +3955,7 @@ var o = new api.EventTagsListResponse(); buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - o.eventTags = buildUnnamed604(); + o.eventTags = buildUnnamed927(); o.kind = "foo"; } buildCounterEventTagsListResponse--; @@ -3965,7 +3965,7 @@ checkEventTagsListResponse(api.EventTagsListResponse o) { buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - checkUnnamed604(o.eventTags); + checkUnnamed927(o.eventTags); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventTagsListResponse--; @@ -4029,14 +4029,14 @@ buildCounterFile--; } -buildUnnamed605() { +buildUnnamed928() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed605(core.List<api.File> o) { +checkUnnamed928(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -4048,7 +4048,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { o.etag = "foo"; - o.items = buildUnnamed605(); + o.items = buildUnnamed928(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4060,7 +4060,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed605(o.items); + checkUnnamed928(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4118,14 +4118,14 @@ buildCounterFloodlightActivitiesGenerateTagResponse--; } -buildUnnamed606() { +buildUnnamed929() { var o = new core.List<api.FloodlightActivity>(); o.add(buildFloodlightActivity()); o.add(buildFloodlightActivity()); return o; } -checkUnnamed606(core.List<api.FloodlightActivity> o) { +checkUnnamed929(core.List<api.FloodlightActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivity(o[0]); checkFloodlightActivity(o[1]); @@ -4136,7 +4136,7 @@ var o = new api.FloodlightActivitiesListResponse(); buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - o.floodlightActivities = buildUnnamed606(); + o.floodlightActivities = buildUnnamed929(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4147,47 +4147,47 @@ checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - checkUnnamed606(o.floodlightActivities); + checkUnnamed929(o.floodlightActivities); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFloodlightActivitiesListResponse--; } -buildUnnamed607() { +buildUnnamed930() { var o = new core.List<api.FloodlightActivityDynamicTag>(); o.add(buildFloodlightActivityDynamicTag()); o.add(buildFloodlightActivityDynamicTag()); return o; } -checkUnnamed607(core.List<api.FloodlightActivityDynamicTag> o) { +checkUnnamed930(core.List<api.FloodlightActivityDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityDynamicTag(o[0]); checkFloodlightActivityDynamicTag(o[1]); } -buildUnnamed608() { +buildUnnamed931() { var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); o.add(buildFloodlightActivityPublisherDynamicTag()); o.add(buildFloodlightActivityPublisherDynamicTag()); return o; } -checkUnnamed608(core.List<api.FloodlightActivityPublisherDynamicTag> o) { +checkUnnamed931(core.List<api.FloodlightActivityPublisherDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityPublisherDynamicTag(o[0]); checkFloodlightActivityPublisherDynamicTag(o[1]); } -buildUnnamed609() { +buildUnnamed932() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed609(core.List<core.String> o) { +checkUnnamed932(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4203,7 +4203,7 @@ o.advertiserIdDimensionValue = buildDimensionValue(); o.cacheBustingType = "foo"; o.countingMethod = "foo"; - o.defaultTags = buildUnnamed607(); + o.defaultTags = buildUnnamed930(); o.expectedUrl = "foo"; o.floodlightActivityGroupId = "foo"; o.floodlightActivityGroupName = "foo"; @@ -4218,14 +4218,14 @@ o.kind = "foo"; o.name = "foo"; o.notes = "foo"; - o.publisherTags = buildUnnamed608(); + o.publisherTags = buildUnnamed931(); o.secure = true; o.sslCompliant = true; o.sslRequired = true; o.subaccountId = "foo"; o.tagFormat = "foo"; o.tagString = "foo"; - o.userDefinedVariableTypes = buildUnnamed609(); + o.userDefinedVariableTypes = buildUnnamed932(); } buildCounterFloodlightActivity--; return o; @@ -4239,7 +4239,7 @@ checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.cacheBustingType, unittest.equals('foo')); unittest.expect(o.countingMethod, unittest.equals('foo')); - checkUnnamed607(o.defaultTags); + checkUnnamed930(o.defaultTags); unittest.expect(o.expectedUrl, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupId, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupName, unittest.equals('foo')); @@ -4254,14 +4254,14 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed608(o.publisherTags); + checkUnnamed931(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')); - checkUnnamed609(o.userDefinedVariableTypes); + checkUnnamed932(o.userDefinedVariableTypes); } buildCounterFloodlightActivity--; } @@ -4330,14 +4330,14 @@ buildCounterFloodlightActivityGroup--; } -buildUnnamed610() { +buildUnnamed933() { var o = new core.List<api.FloodlightActivityGroup>(); o.add(buildFloodlightActivityGroup()); o.add(buildFloodlightActivityGroup()); return o; } -checkUnnamed610(core.List<api.FloodlightActivityGroup> o) { +checkUnnamed933(core.List<api.FloodlightActivityGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityGroup(o[0]); checkFloodlightActivityGroup(o[1]); @@ -4348,7 +4348,7 @@ var o = new api.FloodlightActivityGroupsListResponse(); buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - o.floodlightActivityGroups = buildUnnamed610(); + o.floodlightActivityGroups = buildUnnamed933(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4360,7 +4360,7 @@ api.FloodlightActivityGroupsListResponse o) { buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - checkUnnamed610(o.floodlightActivityGroups); + checkUnnamed933(o.floodlightActivityGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4397,27 +4397,27 @@ buildCounterFloodlightActivityPublisherDynamicTag--; } -buildUnnamed611() { +buildUnnamed934() { var o = new core.List<api.ThirdPartyAuthenticationToken>(); o.add(buildThirdPartyAuthenticationToken()); o.add(buildThirdPartyAuthenticationToken()); return o; } -checkUnnamed611(core.List<api.ThirdPartyAuthenticationToken> o) { +checkUnnamed934(core.List<api.ThirdPartyAuthenticationToken> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyAuthenticationToken(o[0]); checkThirdPartyAuthenticationToken(o[1]); } -buildUnnamed612() { +buildUnnamed935() { var o = new core.List<api.UserDefinedVariableConfiguration>(); o.add(buildUserDefinedVariableConfiguration()); o.add(buildUserDefinedVariableConfiguration()); return o; } -checkUnnamed612(core.List<api.UserDefinedVariableConfiguration> o) { +checkUnnamed935(core.List<api.UserDefinedVariableConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedVariableConfiguration(o[0]); checkUserDefinedVariableConfiguration(o[1]); @@ -4443,8 +4443,8 @@ o.omnitureSettings = buildOmnitureSettings(); o.subaccountId = "foo"; o.tagSettings = buildTagSettings(); - o.thirdPartyAuthenticationTokens = buildUnnamed611(); - o.userDefinedVariableConfigurations = buildUnnamed612(); + o.thirdPartyAuthenticationTokens = buildUnnamed934(); + o.userDefinedVariableConfigurations = buildUnnamed935(); } buildCounterFloodlightConfiguration--; return o; @@ -4469,20 +4469,20 @@ checkOmnitureSettings(o.omnitureSettings); unittest.expect(o.subaccountId, unittest.equals('foo')); checkTagSettings(o.tagSettings); - checkUnnamed611(o.thirdPartyAuthenticationTokens); - checkUnnamed612(o.userDefinedVariableConfigurations); + checkUnnamed934(o.thirdPartyAuthenticationTokens); + checkUnnamed935(o.userDefinedVariableConfigurations); } buildCounterFloodlightConfiguration--; } -buildUnnamed613() { +buildUnnamed936() { var o = new core.List<api.FloodlightConfiguration>(); o.add(buildFloodlightConfiguration()); o.add(buildFloodlightConfiguration()); return o; } -checkUnnamed613(core.List<api.FloodlightConfiguration> o) { +checkUnnamed936(core.List<api.FloodlightConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightConfiguration(o[0]); checkFloodlightConfiguration(o[1]); @@ -4493,7 +4493,7 @@ var o = new api.FloodlightConfigurationsListResponse(); buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - o.floodlightConfigurations = buildUnnamed613(); + o.floodlightConfigurations = buildUnnamed936(); o.kind = "foo"; } buildCounterFloodlightConfigurationsListResponse--; @@ -4504,46 +4504,46 @@ api.FloodlightConfigurationsListResponse o) { buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - checkUnnamed613(o.floodlightConfigurations); + checkUnnamed936(o.floodlightConfigurations); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterFloodlightConfigurationsListResponse--; } -buildUnnamed614() { +buildUnnamed937() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed614(core.List<api.Dimension> o) { +checkUnnamed937(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed615() { +buildUnnamed938() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed615(core.List<api.Dimension> o) { +checkUnnamed938(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed616() { +buildUnnamed939() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed616(core.List<api.Metric> o) { +checkUnnamed939(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -4554,10 +4554,10 @@ var o = new api.FloodlightReportCompatibleFields(); buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed614(); - o.dimensions = buildUnnamed615(); + o.dimensionFilters = buildUnnamed937(); + o.dimensions = buildUnnamed938(); o.kind = "foo"; - o.metrics = buildUnnamed616(); + o.metrics = buildUnnamed939(); } buildCounterFloodlightReportCompatibleFields--; return o; @@ -4566,10 +4566,10 @@ checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - checkUnnamed614(o.dimensionFilters); - checkUnnamed615(o.dimensions); + checkUnnamed937(o.dimensionFilters); + checkUnnamed938(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed616(o.metrics); + checkUnnamed939(o.metrics); } buildCounterFloodlightReportCompatibleFields--; } @@ -4622,66 +4622,66 @@ buildCounterFsCommand--; } -buildUnnamed617() { +buildUnnamed940() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed617(core.List<api.City> o) { +checkUnnamed940(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); } -buildUnnamed618() { +buildUnnamed941() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed618(core.List<api.Country> o) { +checkUnnamed941(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); } -buildUnnamed619() { +buildUnnamed942() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed619(core.List<api.Metro> o) { +checkUnnamed942(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); } -buildUnnamed620() { +buildUnnamed943() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed620(core.List<api.PostalCode> o) { +checkUnnamed943(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); } -buildUnnamed621() { +buildUnnamed944() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed621(core.List<api.Region> o) { +checkUnnamed944(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -4692,12 +4692,12 @@ var o = new api.GeoTargeting(); buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - o.cities = buildUnnamed617(); - o.countries = buildUnnamed618(); + o.cities = buildUnnamed940(); + o.countries = buildUnnamed941(); o.excludeCountries = true; - o.metros = buildUnnamed619(); - o.postalCodes = buildUnnamed620(); - o.regions = buildUnnamed621(); + o.metros = buildUnnamed942(); + o.postalCodes = buildUnnamed943(); + o.regions = buildUnnamed944(); } buildCounterGeoTargeting--; return o; @@ -4706,24 +4706,24 @@ checkGeoTargeting(api.GeoTargeting o) { buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - checkUnnamed617(o.cities); - checkUnnamed618(o.countries); + checkUnnamed940(o.cities); + checkUnnamed941(o.countries); unittest.expect(o.excludeCountries, unittest.isTrue); - checkUnnamed619(o.metros); - checkUnnamed620(o.postalCodes); - checkUnnamed621(o.regions); + checkUnnamed942(o.metros); + checkUnnamed943(o.postalCodes); + checkUnnamed944(o.regions); } buildCounterGeoTargeting--; } -buildUnnamed622() { +buildUnnamed945() { var o = new core.List<api.AdSlot>(); o.add(buildAdSlot()); o.add(buildAdSlot()); return o; } -checkUnnamed622(core.List<api.AdSlot> o) { +checkUnnamed945(core.List<api.AdSlot> o) { unittest.expect(o, unittest.hasLength(2)); checkAdSlot(o[0]); checkAdSlot(o[1]); @@ -4735,7 +4735,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { o.accountId = "foo"; - o.adSlots = buildUnnamed622(); + o.adSlots = buildUnnamed945(); o.advertiserId = "foo"; o.contentCategoryId = "foo"; o.estimatedClickThroughRate = "foo"; @@ -4763,7 +4763,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed622(o.adSlots); + checkUnnamed945(o.adSlots); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); unittest.expect(o.estimatedClickThroughRate, unittest.equals('foo')); @@ -4786,14 +4786,14 @@ buildCounterInventoryItem--; } -buildUnnamed623() { +buildUnnamed946() { var o = new core.List<api.InventoryItem>(); o.add(buildInventoryItem()); o.add(buildInventoryItem()); return o; } -checkUnnamed623(core.List<api.InventoryItem> o) { +checkUnnamed946(core.List<api.InventoryItem> o) { unittest.expect(o, unittest.hasLength(2)); checkInventoryItem(o[0]); checkInventoryItem(o[1]); @@ -4804,7 +4804,7 @@ var o = new api.InventoryItemsListResponse(); buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - o.inventoryItems = buildUnnamed623(); + o.inventoryItems = buildUnnamed946(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4815,7 +4815,7 @@ checkInventoryItemsListResponse(api.InventoryItemsListResponse o) { buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - checkUnnamed623(o.inventoryItems); + checkUnnamed946(o.inventoryItems); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4895,14 +4895,14 @@ buildCounterLanguage--; } -buildUnnamed624() { +buildUnnamed947() { var o = new core.List<api.Language>(); o.add(buildLanguage()); o.add(buildLanguage()); return o; } -checkUnnamed624(core.List<api.Language> o) { +checkUnnamed947(core.List<api.Language> o) { unittest.expect(o, unittest.hasLength(2)); checkLanguage(o[0]); checkLanguage(o[1]); @@ -4913,7 +4913,7 @@ var o = new api.LanguageTargeting(); buildCounterLanguageTargeting++; if (buildCounterLanguageTargeting < 3) { - o.languages = buildUnnamed624(); + o.languages = buildUnnamed947(); } buildCounterLanguageTargeting--; return o; @@ -4922,19 +4922,19 @@ checkLanguageTargeting(api.LanguageTargeting o) { buildCounterLanguageTargeting++; if (buildCounterLanguageTargeting < 3) { - checkUnnamed624(o.languages); + checkUnnamed947(o.languages); } buildCounterLanguageTargeting--; } -buildUnnamed625() { +buildUnnamed948() { var o = new core.List<api.Language>(); o.add(buildLanguage()); o.add(buildLanguage()); return o; } -checkUnnamed625(core.List<api.Language> o) { +checkUnnamed948(core.List<api.Language> o) { unittest.expect(o, unittest.hasLength(2)); checkLanguage(o[0]); checkLanguage(o[1]); @@ -4946,7 +4946,7 @@ buildCounterLanguagesListResponse++; if (buildCounterLanguagesListResponse < 3) { o.kind = "foo"; - o.languages = buildUnnamed625(); + o.languages = buildUnnamed948(); } buildCounterLanguagesListResponse--; return o; @@ -4956,7 +4956,7 @@ buildCounterLanguagesListResponse++; if (buildCounterLanguagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed625(o.languages); + checkUnnamed948(o.languages); } buildCounterLanguagesListResponse--; } @@ -4980,14 +4980,14 @@ buildCounterLastModifiedInfo--; } -buildUnnamed626() { +buildUnnamed949() { var o = new core.List<api.ListPopulationTerm>(); o.add(buildListPopulationTerm()); o.add(buildListPopulationTerm()); return o; } -checkUnnamed626(core.List<api.ListPopulationTerm> o) { +checkUnnamed949(core.List<api.ListPopulationTerm> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationTerm(o[0]); checkListPopulationTerm(o[1]); @@ -4998,7 +4998,7 @@ var o = new api.ListPopulationClause(); buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - o.terms = buildUnnamed626(); + o.terms = buildUnnamed949(); } buildCounterListPopulationClause--; return o; @@ -5007,19 +5007,19 @@ checkListPopulationClause(api.ListPopulationClause o) { buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - checkUnnamed626(o.terms); + checkUnnamed949(o.terms); } buildCounterListPopulationClause--; } -buildUnnamed627() { +buildUnnamed950() { var o = new core.List<api.ListPopulationClause>(); o.add(buildListPopulationClause()); o.add(buildListPopulationClause()); return o; } -checkUnnamed627(core.List<api.ListPopulationClause> o) { +checkUnnamed950(core.List<api.ListPopulationClause> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationClause(o[0]); checkListPopulationClause(o[1]); @@ -5032,7 +5032,7 @@ if (buildCounterListPopulationRule < 3) { o.floodlightActivityId = "foo"; o.floodlightActivityName = "foo"; - o.listPopulationClauses = buildUnnamed627(); + o.listPopulationClauses = buildUnnamed950(); } buildCounterListPopulationRule--; return o; @@ -5043,7 +5043,7 @@ if (buildCounterListPopulationRule < 3) { unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightActivityName, unittest.equals('foo')); - checkUnnamed627(o.listPopulationClauses); + checkUnnamed950(o.listPopulationClauses); } buildCounterListPopulationRule--; } @@ -5173,14 +5173,14 @@ buildCounterMetro--; } -buildUnnamed628() { +buildUnnamed951() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed628(core.List<api.Metro> o) { +checkUnnamed951(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); @@ -5192,7 +5192,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { o.kind = "foo"; - o.metros = buildUnnamed628(); + o.metros = buildUnnamed951(); } buildCounterMetrosListResponse--; return o; @@ -5202,7 +5202,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed628(o.metros); + checkUnnamed951(o.metros); } buildCounterMetrosListResponse--; } @@ -5234,14 +5234,14 @@ buildCounterMobileCarrier--; } -buildUnnamed629() { +buildUnnamed952() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed629(core.List<api.MobileCarrier> o) { +checkUnnamed952(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); @@ -5253,7 +5253,7 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { o.kind = "foo"; - o.mobileCarriers = buildUnnamed629(); + o.mobileCarriers = buildUnnamed952(); } buildCounterMobileCarriersListResponse--; return o; @@ -5263,19 +5263,19 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed629(o.mobileCarriers); + checkUnnamed952(o.mobileCarriers); } buildCounterMobileCarriersListResponse--; } -buildUnnamed630() { +buildUnnamed953() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed630(core.List<core.String> o) { +checkUnnamed953(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5287,7 +5287,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { o.kind = "foo"; - o.objectIds = buildUnnamed630(); + o.objectIds = buildUnnamed953(); o.status = "foo"; } buildCounterObjectFilter--; @@ -5298,7 +5298,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed630(o.objectIds); + checkUnnamed953(o.objectIds); unittest.expect(o.status, unittest.equals('foo')); } buildCounterObjectFilter--; @@ -5402,14 +5402,14 @@ buildCounterOperatingSystemVersion--; } -buildUnnamed631() { +buildUnnamed954() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed631(core.List<api.OperatingSystemVersion> o) { +checkUnnamed954(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); @@ -5421,7 +5421,7 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { o.kind = "foo"; - o.operatingSystemVersions = buildUnnamed631(); + o.operatingSystemVersions = buildUnnamed954(); } buildCounterOperatingSystemVersionsListResponse--; return o; @@ -5432,19 +5432,19 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed631(o.operatingSystemVersions); + checkUnnamed954(o.operatingSystemVersions); } buildCounterOperatingSystemVersionsListResponse--; } -buildUnnamed632() { +buildUnnamed955() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed632(core.List<api.OperatingSystem> o) { +checkUnnamed955(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); @@ -5456,7 +5456,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { o.kind = "foo"; - o.operatingSystems = buildUnnamed632(); + o.operatingSystems = buildUnnamed955(); } buildCounterOperatingSystemsListResponse--; return o; @@ -5466,7 +5466,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed632(o.operatingSystems); + checkUnnamed955(o.operatingSystems); } buildCounterOperatingSystemsListResponse--; } @@ -5494,53 +5494,53 @@ buildCounterOptimizationActivity--; } -buildUnnamed633() { +buildUnnamed956() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed633(core.List<core.String> o) { +checkUnnamed956(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed634() { +buildUnnamed957() { var o = new core.List<api.OrderContact>(); o.add(buildOrderContact()); o.add(buildOrderContact()); return o; } -checkUnnamed634(core.List<api.OrderContact> o) { +checkUnnamed957(core.List<api.OrderContact> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderContact(o[0]); checkOrderContact(o[1]); } -buildUnnamed635() { +buildUnnamed958() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed635(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')); } -buildUnnamed636() { +buildUnnamed959() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed636(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')); @@ -5553,11 +5553,11 @@ if (buildCounterOrder < 3) { o.accountId = "foo"; o.advertiserId = "foo"; - o.approverUserProfileIds = buildUnnamed633(); + o.approverUserProfileIds = buildUnnamed956(); o.buyerInvoiceId = "foo"; o.buyerOrganizationName = "foo"; o.comments = "foo"; - o.contacts = buildUnnamed634(); + o.contacts = buildUnnamed957(); o.id = "foo"; o.kind = "foo"; o.lastModifiedInfo = buildLastModifiedInfo(); @@ -5567,8 +5567,8 @@ o.projectId = "foo"; o.sellerOrderId = "foo"; o.sellerOrganizationName = "foo"; - o.siteId = buildUnnamed635(); - o.siteNames = buildUnnamed636(); + o.siteId = buildUnnamed958(); + o.siteNames = buildUnnamed959(); o.subaccountId = "foo"; o.termsAndConditions = "foo"; } @@ -5581,11 +5581,11 @@ if (buildCounterOrder < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); - checkUnnamed633(o.approverUserProfileIds); + checkUnnamed956(o.approverUserProfileIds); unittest.expect(o.buyerInvoiceId, unittest.equals('foo')); unittest.expect(o.buyerOrganizationName, unittest.equals('foo')); unittest.expect(o.comments, unittest.equals('foo')); - checkUnnamed634(o.contacts); + checkUnnamed957(o.contacts); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkLastModifiedInfo(o.lastModifiedInfo); @@ -5595,8 +5595,8 @@ unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.sellerOrderId, unittest.equals('foo')); unittest.expect(o.sellerOrganizationName, unittest.equals('foo')); - checkUnnamed635(o.siteId); - checkUnnamed636(o.siteNames); + checkUnnamed958(o.siteId); + checkUnnamed959(o.siteNames); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.termsAndConditions, unittest.equals('foo')); } @@ -5630,27 +5630,27 @@ buildCounterOrderContact--; } -buildUnnamed637() { +buildUnnamed960() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed637(core.List<core.String> o) { +checkUnnamed960(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed638() { +buildUnnamed961() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed638(core.List<core.String> o) { +checkUnnamed961(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5664,13 +5664,13 @@ o.accountId = "foo"; o.advertiserId = "foo"; o.amendedOrderDocumentId = "foo"; - o.approvedByUserProfileIds = buildUnnamed637(); + o.approvedByUserProfileIds = buildUnnamed960(); o.cancelled = true; o.createdInfo = buildLastModifiedInfo(); o.effectiveDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.id = "foo"; o.kind = "foo"; - o.lastSentRecipients = buildUnnamed638(); + o.lastSentRecipients = buildUnnamed961(); o.lastSentTime = core.DateTime.parse("2002-02-27T14:01:02"); o.orderId = "foo"; o.projectId = "foo"; @@ -5689,14 +5689,14 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.amendedOrderDocumentId, unittest.equals('foo')); - checkUnnamed637(o.approvedByUserProfileIds); + checkUnnamed960(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')); - checkUnnamed638(o.lastSentRecipients); + checkUnnamed961(o.lastSentRecipients); unittest.expect(o.lastSentTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.orderId, unittest.equals('foo')); @@ -5709,14 +5709,14 @@ buildCounterOrderDocument--; } -buildUnnamed639() { +buildUnnamed962() { var o = new core.List<api.OrderDocument>(); o.add(buildOrderDocument()); o.add(buildOrderDocument()); return o; } -checkUnnamed639(core.List<api.OrderDocument> o) { +checkUnnamed962(core.List<api.OrderDocument> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderDocument(o[0]); checkOrderDocument(o[1]); @@ -5729,7 +5729,7 @@ if (buildCounterOrderDocumentsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orderDocuments = buildUnnamed639(); + o.orderDocuments = buildUnnamed962(); } buildCounterOrderDocumentsListResponse--; return o; @@ -5740,19 +5740,19 @@ if (buildCounterOrderDocumentsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed639(o.orderDocuments); + checkUnnamed962(o.orderDocuments); } buildCounterOrderDocumentsListResponse--; } -buildUnnamed640() { +buildUnnamed963() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed640(core.List<api.Order> o) { +checkUnnamed963(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -5765,7 +5765,7 @@ if (buildCounterOrdersListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orders = buildUnnamed640(); + o.orders = buildUnnamed963(); } buildCounterOrdersListResponse--; return o; @@ -5776,58 +5776,58 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed640(o.orders); + checkUnnamed963(o.orders); } buildCounterOrdersListResponse--; } -buildUnnamed641() { +buildUnnamed964() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed641(core.List<api.Dimension> o) { +checkUnnamed964(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed642() { +buildUnnamed965() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed642(core.List<api.Dimension> o) { +checkUnnamed965(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed643() { +buildUnnamed966() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed643(core.List<api.Metric> o) { +checkUnnamed966(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed644() { +buildUnnamed967() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed644(core.List<api.Dimension> o) { +checkUnnamed967(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); @@ -5838,11 +5838,11 @@ var o = new api.PathToConversionReportCompatibleFields(); buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - o.conversionDimensions = buildUnnamed641(); - o.customFloodlightVariables = buildUnnamed642(); + o.conversionDimensions = buildUnnamed964(); + o.customFloodlightVariables = buildUnnamed965(); o.kind = "foo"; - o.metrics = buildUnnamed643(); - o.perInteractionDimensions = buildUnnamed644(); + o.metrics = buildUnnamed966(); + o.perInteractionDimensions = buildUnnamed967(); } buildCounterPathToConversionReportCompatibleFields--; return o; @@ -5852,23 +5852,23 @@ api.PathToConversionReportCompatibleFields o) { buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - checkUnnamed641(o.conversionDimensions); - checkUnnamed642(o.customFloodlightVariables); + checkUnnamed964(o.conversionDimensions); + checkUnnamed965(o.customFloodlightVariables); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed643(o.metrics); - checkUnnamed644(o.perInteractionDimensions); + checkUnnamed966(o.metrics); + checkUnnamed967(o.perInteractionDimensions); } buildCounterPathToConversionReportCompatibleFields--; } -buildUnnamed645() { +buildUnnamed968() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed645(core.List<core.String> o) { +checkUnnamed968(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5914,7 +5914,7 @@ o.sslRequired = true; o.status = "foo"; o.subaccountId = "foo"; - o.tagFormats = buildUnnamed645(); + o.tagFormats = buildUnnamed968(); o.tagSetting = buildTagSetting(); o.videoActiveViewOptOut = true; o.videoSettings = buildVideoSettings(); @@ -5962,7 +5962,7 @@ unittest.expect(o.sslRequired, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed645(o.tagFormats); + checkUnnamed968(o.tagFormats); checkTagSetting(o.tagSetting); unittest.expect(o.videoActiveViewOptOut, unittest.isTrue); checkVideoSettings(o.videoSettings); @@ -5996,14 +5996,14 @@ buildCounterPlacementAssignment--; } -buildUnnamed646() { +buildUnnamed969() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed646(core.List<core.String> o) { +checkUnnamed969(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6020,7 +6020,7 @@ o.archived = true; o.campaignId = "foo"; o.campaignIdDimensionValue = buildDimensionValue(); - o.childPlacementIds = buildUnnamed646(); + o.childPlacementIds = buildUnnamed969(); o.comment = "foo"; o.contentCategoryId = "foo"; o.createInfo = buildLastModifiedInfo(); @@ -6054,7 +6054,7 @@ unittest.expect(o.archived, unittest.isTrue); unittest.expect(o.campaignId, unittest.equals('foo')); checkDimensionValue(o.campaignIdDimensionValue); - checkUnnamed646(o.childPlacementIds); + checkUnnamed969(o.childPlacementIds); unittest.expect(o.comment, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); @@ -6078,14 +6078,14 @@ buildCounterPlacementGroup--; } -buildUnnamed647() { +buildUnnamed970() { var o = new core.List<api.PlacementGroup>(); o.add(buildPlacementGroup()); o.add(buildPlacementGroup()); return o; } -checkUnnamed647(core.List<api.PlacementGroup> o) { +checkUnnamed970(core.List<api.PlacementGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementGroup(o[0]); checkPlacementGroup(o[1]); @@ -6098,7 +6098,7 @@ if (buildCounterPlacementGroupsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementGroups = buildUnnamed647(); + o.placementGroups = buildUnnamed970(); } buildCounterPlacementGroupsListResponse--; return o; @@ -6109,19 +6109,19 @@ if (buildCounterPlacementGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed647(o.placementGroups); + checkUnnamed970(o.placementGroups); } buildCounterPlacementGroupsListResponse--; } -buildUnnamed648() { +buildUnnamed971() { var o = new core.List<api.PlacementStrategy>(); o.add(buildPlacementStrategy()); o.add(buildPlacementStrategy()); return o; } -checkUnnamed648(core.List<api.PlacementStrategy> o) { +checkUnnamed971(core.List<api.PlacementStrategy> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementStrategy(o[0]); checkPlacementStrategy(o[1]); @@ -6134,7 +6134,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementStrategies = buildUnnamed648(); + o.placementStrategies = buildUnnamed971(); } buildCounterPlacementStrategiesListResponse--; return o; @@ -6145,7 +6145,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed648(o.placementStrategies); + checkUnnamed971(o.placementStrategies); } buildCounterPlacementStrategiesListResponse--; } @@ -6175,14 +6175,14 @@ buildCounterPlacementStrategy--; } -buildUnnamed649() { +buildUnnamed972() { var o = new core.List<api.TagData>(); o.add(buildTagData()); o.add(buildTagData()); return o; } -checkUnnamed649(core.List<api.TagData> o) { +checkUnnamed972(core.List<api.TagData> o) { unittest.expect(o, unittest.hasLength(2)); checkTagData(o[0]); checkTagData(o[1]); @@ -6194,7 +6194,7 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { o.placementId = "foo"; - o.tagDatas = buildUnnamed649(); + o.tagDatas = buildUnnamed972(); } buildCounterPlacementTag--; return o; @@ -6204,19 +6204,19 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { unittest.expect(o.placementId, unittest.equals('foo')); - checkUnnamed649(o.tagDatas); + checkUnnamed972(o.tagDatas); } buildCounterPlacementTag--; } -buildUnnamed650() { +buildUnnamed973() { var o = new core.List<api.PlacementTag>(); o.add(buildPlacementTag()); o.add(buildPlacementTag()); return o; } -checkUnnamed650(core.List<api.PlacementTag> o) { +checkUnnamed973(core.List<api.PlacementTag> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementTag(o[0]); checkPlacementTag(o[1]); @@ -6228,7 +6228,7 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { o.kind = "foo"; - o.placementTags = buildUnnamed650(); + o.placementTags = buildUnnamed973(); } buildCounterPlacementsGenerateTagsResponse--; return o; @@ -6238,19 +6238,19 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed650(o.placementTags); + checkUnnamed973(o.placementTags); } buildCounterPlacementsGenerateTagsResponse--; } -buildUnnamed651() { +buildUnnamed974() { var o = new core.List<api.Placement>(); o.add(buildPlacement()); o.add(buildPlacement()); return o; } -checkUnnamed651(core.List<api.Placement> o) { +checkUnnamed974(core.List<api.Placement> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacement(o[0]); checkPlacement(o[1]); @@ -6263,7 +6263,7 @@ if (buildCounterPlacementsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placements = buildUnnamed651(); + o.placements = buildUnnamed974(); } buildCounterPlacementsListResponse--; return o; @@ -6274,7 +6274,7 @@ if (buildCounterPlacementsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed651(o.placements); + checkUnnamed974(o.placements); } buildCounterPlacementsListResponse--; } @@ -6302,14 +6302,14 @@ buildCounterPlatformType--; } -buildUnnamed652() { +buildUnnamed975() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed652(core.List<api.PlatformType> o) { +checkUnnamed975(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -6321,7 +6321,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { o.kind = "foo"; - o.platformTypes = buildUnnamed652(); + o.platformTypes = buildUnnamed975(); } buildCounterPlatformTypesListResponse--; return o; @@ -6331,7 +6331,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed652(o.platformTypes); + checkUnnamed975(o.platformTypes); } buildCounterPlatformTypesListResponse--; } @@ -6398,14 +6398,14 @@ buildCounterPostalCode--; } -buildUnnamed653() { +buildUnnamed976() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed653(core.List<api.PostalCode> o) { +checkUnnamed976(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); @@ -6417,7 +6417,7 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { o.kind = "foo"; - o.postalCodes = buildUnnamed653(); + o.postalCodes = buildUnnamed976(); } buildCounterPostalCodesListResponse--; return o; @@ -6427,19 +6427,19 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed653(o.postalCodes); + checkUnnamed976(o.postalCodes); } buildCounterPostalCodesListResponse--; } -buildUnnamed654() { +buildUnnamed977() { var o = new core.List<api.Flight>(); o.add(buildFlight()); o.add(buildFlight()); return o; } -checkUnnamed654(core.List<api.Flight> o) { +checkUnnamed977(core.List<api.Flight> o) { unittest.expect(o, unittest.hasLength(2)); checkFlight(o[0]); checkFlight(o[1]); @@ -6452,7 +6452,7 @@ if (buildCounterPricing < 3) { o.capCostType = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.flights = buildUnnamed654(); + o.flights = buildUnnamed977(); o.groupType = "foo"; o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -6467,7 +6467,7 @@ unittest.expect(o.capCostType, unittest.equals('foo')); unittest.expect( o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed654(o.flights); + checkUnnamed977(o.flights); unittest.expect(o.groupType, unittest.equals('foo')); unittest.expect(o.pricingType, unittest.equals('foo')); unittest.expect(o.startDate, @@ -6476,14 +6476,14 @@ buildCounterPricing--; } -buildUnnamed655() { +buildUnnamed978() { var o = new core.List<api.PricingSchedulePricingPeriod>(); o.add(buildPricingSchedulePricingPeriod()); o.add(buildPricingSchedulePricingPeriod()); return o; } -checkUnnamed655(core.List<api.PricingSchedulePricingPeriod> o) { +checkUnnamed978(core.List<api.PricingSchedulePricingPeriod> o) { unittest.expect(o, unittest.hasLength(2)); checkPricingSchedulePricingPeriod(o[0]); checkPricingSchedulePricingPeriod(o[1]); @@ -6499,7 +6499,7 @@ o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.flighted = true; o.floodlightActivityId = "foo"; - o.pricingPeriods = buildUnnamed655(); + o.pricingPeriods = buildUnnamed978(); o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.testingStartDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -6517,7 +6517,7 @@ 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')); - checkUnnamed655(o.pricingPeriods); + checkUnnamed978(o.pricingPeriods); unittest.expect(o.pricingType, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -6619,14 +6619,14 @@ buildCounterProject--; } -buildUnnamed656() { +buildUnnamed979() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed656(core.List<api.Project> o) { +checkUnnamed979(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -6639,7 +6639,7 @@ if (buildCounterProjectsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.projects = buildUnnamed656(); + o.projects = buildUnnamed979(); } buildCounterProjectsListResponse--; return o; @@ -6650,71 +6650,71 @@ if (buildCounterProjectsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed656(o.projects); + checkUnnamed979(o.projects); } buildCounterProjectsListResponse--; } -buildUnnamed657() { +buildUnnamed980() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed657(core.List<api.Dimension> o) { +checkUnnamed980(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed658() { +buildUnnamed981() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed658(core.List<api.Dimension> o) { +checkUnnamed981(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed659() { +buildUnnamed982() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed659(core.List<api.Metric> o) { +checkUnnamed982(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed660() { +buildUnnamed983() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed660(core.List<api.Metric> o) { +checkUnnamed983(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed661() { +buildUnnamed984() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed661(core.List<api.Metric> o) { +checkUnnamed984(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -6725,12 +6725,12 @@ var o = new api.ReachReportCompatibleFields(); buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed657(); - o.dimensions = buildUnnamed658(); + o.dimensionFilters = buildUnnamed980(); + o.dimensions = buildUnnamed981(); o.kind = "foo"; - o.metrics = buildUnnamed659(); - o.pivotedActivityMetrics = buildUnnamed660(); - o.reachByFrequencyMetrics = buildUnnamed661(); + o.metrics = buildUnnamed982(); + o.pivotedActivityMetrics = buildUnnamed983(); + o.reachByFrequencyMetrics = buildUnnamed984(); } buildCounterReachReportCompatibleFields--; return o; @@ -6739,12 +6739,12 @@ checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - checkUnnamed657(o.dimensionFilters); - checkUnnamed658(o.dimensions); + checkUnnamed980(o.dimensionFilters); + checkUnnamed981(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed659(o.metrics); - checkUnnamed660(o.pivotedActivityMetrics); - checkUnnamed661(o.reachByFrequencyMetrics); + checkUnnamed982(o.metrics); + checkUnnamed983(o.pivotedActivityMetrics); + checkUnnamed984(o.reachByFrequencyMetrics); } buildCounterReachReportCompatibleFields--; } @@ -6801,14 +6801,14 @@ buildCounterRegion--; } -buildUnnamed662() { +buildUnnamed985() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed662(core.List<api.Region> o) { +checkUnnamed985(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -6820,7 +6820,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { o.kind = "foo"; - o.regions = buildUnnamed662(); + o.regions = buildUnnamed985(); } buildCounterRegionsListResponse--; return o; @@ -6830,7 +6830,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed662(o.regions); + checkUnnamed985(o.regions); } buildCounterRegionsListResponse--; } @@ -6878,27 +6878,27 @@ buildCounterRemarketingList--; } -buildUnnamed663() { +buildUnnamed986() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed663(core.List<core.String> o) { +checkUnnamed986(core.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() { +buildUnnamed987() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed664(core.List<core.String> o) { +checkUnnamed987(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6911,8 +6911,8 @@ if (buildCounterRemarketingListShare < 3) { o.kind = "foo"; o.remarketingListId = "foo"; - o.sharedAccountIds = buildUnnamed663(); - o.sharedAdvertiserIds = buildUnnamed664(); + o.sharedAccountIds = buildUnnamed986(); + o.sharedAdvertiserIds = buildUnnamed987(); } buildCounterRemarketingListShare--; return o; @@ -6923,20 +6923,20 @@ if (buildCounterRemarketingListShare < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.remarketingListId, unittest.equals('foo')); - checkUnnamed663(o.sharedAccountIds); - checkUnnamed664(o.sharedAdvertiserIds); + checkUnnamed986(o.sharedAccountIds); + checkUnnamed987(o.sharedAdvertiserIds); } buildCounterRemarketingListShare--; } -buildUnnamed665() { +buildUnnamed988() { var o = new core.List<api.RemarketingList>(); o.add(buildRemarketingList()); o.add(buildRemarketingList()); return o; } -checkUnnamed665(core.List<api.RemarketingList> o) { +checkUnnamed988(core.List<api.RemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkRemarketingList(o[0]); checkRemarketingList(o[1]); @@ -6949,7 +6949,7 @@ if (buildCounterRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.remarketingLists = buildUnnamed665(); + o.remarketingLists = buildUnnamed988(); } buildCounterRemarketingListsListResponse--; return o; @@ -6960,45 +6960,45 @@ if (buildCounterRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed665(o.remarketingLists); + checkUnnamed988(o.remarketingLists); } buildCounterRemarketingListsListResponse--; } -buildUnnamed666() { +buildUnnamed989() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed666(core.List<api.DimensionValue> o) { +checkUnnamed989(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed667() { +buildUnnamed990() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed667(core.List<api.SortedDimension> o) { +checkUnnamed990(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed668() { +buildUnnamed991() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed668(core.List<core.String> o) { +checkUnnamed991(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7012,9 +7012,9 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed666(); - o.dimensions = buildUnnamed667(); - o.metricNames = buildUnnamed668(); + o.dimensionFilters = buildUnnamed989(); + o.dimensions = buildUnnamed990(); + o.metricNames = buildUnnamed991(); } buildCounterReportCriteria--; return o; @@ -7026,60 +7026,60 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed666(o.dimensionFilters); - checkUnnamed667(o.dimensions); - checkUnnamed668(o.metricNames); + checkUnnamed989(o.dimensionFilters); + checkUnnamed990(o.dimensions); + checkUnnamed991(o.metricNames); } buildCounterReportCriteria--; } -buildUnnamed669() { +buildUnnamed992() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed669(core.List<api.SortedDimension> o) { +checkUnnamed992(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed670() { +buildUnnamed993() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed670(core.List<api.DimensionValue> o) { +checkUnnamed993(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed671() { +buildUnnamed994() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed671(core.List<core.String> o) { +checkUnnamed994(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed672() { +buildUnnamed995() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed672(core.List<core.String> o) { +checkUnnamed995(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7090,12 +7090,12 @@ var o = new api.ReportCrossDimensionReachCriteria(); buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - o.breakdown = buildUnnamed669(); + o.breakdown = buildUnnamed992(); o.dateRange = buildDateRange(); o.dimension = "foo"; - o.dimensionFilters = buildUnnamed670(); - o.metricNames = buildUnnamed671(); - o.overlapMetricNames = buildUnnamed672(); + o.dimensionFilters = buildUnnamed993(); + o.metricNames = buildUnnamed994(); + o.overlapMetricNames = buildUnnamed995(); o.pivoted = true; } buildCounterReportCrossDimensionReachCriteria--; @@ -7106,25 +7106,25 @@ api.ReportCrossDimensionReachCriteria o) { buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - checkUnnamed669(o.breakdown); + checkUnnamed992(o.breakdown); checkDateRange(o.dateRange); unittest.expect(o.dimension, unittest.equals('foo')); - checkUnnamed670(o.dimensionFilters); - checkUnnamed671(o.metricNames); - checkUnnamed672(o.overlapMetricNames); + checkUnnamed993(o.dimensionFilters); + checkUnnamed994(o.metricNames); + checkUnnamed995(o.overlapMetricNames); unittest.expect(o.pivoted, unittest.isTrue); } buildCounterReportCrossDimensionReachCriteria--; } -buildUnnamed673() { +buildUnnamed996() { var o = new core.List<api.Recipient>(); o.add(buildRecipient()); o.add(buildRecipient()); return o; } -checkUnnamed673(core.List<api.Recipient> o) { +checkUnnamed996(core.List<api.Recipient> o) { unittest.expect(o, unittest.hasLength(2)); checkRecipient(o[0]); checkRecipient(o[1]); @@ -7138,7 +7138,7 @@ o.emailOwner = true; o.emailOwnerDeliveryType = "foo"; o.message = "foo"; - o.recipients = buildUnnamed673(); + o.recipients = buildUnnamed996(); } buildCounterReportDelivery--; return o; @@ -7150,58 +7150,58 @@ unittest.expect(o.emailOwner, unittest.isTrue); unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); unittest.expect(o.message, unittest.equals('foo')); - checkUnnamed673(o.recipients); + checkUnnamed996(o.recipients); } buildCounterReportDelivery--; } -buildUnnamed674() { +buildUnnamed997() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed674(core.List<api.DimensionValue> o) { +checkUnnamed997(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed675() { +buildUnnamed998() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed675(core.List<api.DimensionValue> o) { +checkUnnamed998(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed676() { +buildUnnamed999() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed676(core.List<api.SortedDimension> o) { +checkUnnamed999(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed677() { +buildUnnamed1000() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed677(core.List<core.String> o) { +checkUnnamed1000(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7236,12 +7236,12 @@ var o = new api.ReportFloodlightCriteria(); buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - o.customRichMediaEvents = buildUnnamed674(); + o.customRichMediaEvents = buildUnnamed997(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed675(); - o.dimensions = buildUnnamed676(); + o.dimensionFilters = buildUnnamed998(); + o.dimensions = buildUnnamed999(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed677(); + o.metricNames = buildUnnamed1000(); o.reportProperties = buildReportFloodlightCriteriaReportProperties(); } buildCounterReportFloodlightCriteria--; @@ -7251,90 +7251,90 @@ checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - checkUnnamed674(o.customRichMediaEvents); + checkUnnamed997(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed675(o.dimensionFilters); - checkUnnamed676(o.dimensions); + checkUnnamed998(o.dimensionFilters); + checkUnnamed999(o.dimensions); checkDimensionValue(o.floodlightConfigId); - checkUnnamed677(o.metricNames); + checkUnnamed1000(o.metricNames); checkReportFloodlightCriteriaReportProperties(o.reportProperties); } buildCounterReportFloodlightCriteria--; } -buildUnnamed678() { +buildUnnamed1001() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed678(core.List<api.DimensionValue> o) { +checkUnnamed1001(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed679() { +buildUnnamed1002() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed679(core.List<api.SortedDimension> o) { +checkUnnamed1002(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed680() { +buildUnnamed1003() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed680(core.List<api.SortedDimension> o) { +checkUnnamed1003(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed681() { +buildUnnamed1004() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed681(core.List<api.DimensionValue> o) { +checkUnnamed1004(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed682() { +buildUnnamed1005() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed682(core.List<core.String> o) { +checkUnnamed1005(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed683() { +buildUnnamed1006() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed683(core.List<api.SortedDimension> o) { +checkUnnamed1006(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); @@ -7381,14 +7381,14 @@ var o = new api.ReportPathToConversionCriteria(); buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - o.activityFilters = buildUnnamed678(); - o.conversionDimensions = buildUnnamed679(); - o.customFloodlightVariables = buildUnnamed680(); - o.customRichMediaEvents = buildUnnamed681(); + o.activityFilters = buildUnnamed1001(); + o.conversionDimensions = buildUnnamed1002(); + o.customFloodlightVariables = buildUnnamed1003(); + o.customRichMediaEvents = buildUnnamed1004(); o.dateRange = buildDateRange(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed682(); - o.perInteractionDimensions = buildUnnamed683(); + o.metricNames = buildUnnamed1005(); + o.perInteractionDimensions = buildUnnamed1006(); o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); } buildCounterReportPathToConversionCriteria--; @@ -7398,66 +7398,66 @@ checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - checkUnnamed678(o.activityFilters); - checkUnnamed679(o.conversionDimensions); - checkUnnamed680(o.customFloodlightVariables); - checkUnnamed681(o.customRichMediaEvents); + checkUnnamed1001(o.activityFilters); + checkUnnamed1002(o.conversionDimensions); + checkUnnamed1003(o.customFloodlightVariables); + checkUnnamed1004(o.customRichMediaEvents); checkDateRange(o.dateRange); checkDimensionValue(o.floodlightConfigId); - checkUnnamed682(o.metricNames); - checkUnnamed683(o.perInteractionDimensions); + checkUnnamed1005(o.metricNames); + checkUnnamed1006(o.perInteractionDimensions); checkReportPathToConversionCriteriaReportProperties(o.reportProperties); } buildCounterReportPathToConversionCriteria--; } -buildUnnamed684() { +buildUnnamed1007() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed684(core.List<api.DimensionValue> o) { +checkUnnamed1007(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed685() { +buildUnnamed1008() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed685(core.List<api.SortedDimension> o) { +checkUnnamed1008(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed686() { +buildUnnamed1009() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed686(core.List<core.String> o) { +checkUnnamed1009(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed687() { +buildUnnamed1010() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed687(core.List<core.String> o) { +checkUnnamed1010(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7471,11 +7471,11 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed684(); - o.dimensions = buildUnnamed685(); + o.dimensionFilters = buildUnnamed1007(); + o.dimensions = buildUnnamed1008(); o.enableAllDimensionCombinations = true; - o.metricNames = buildUnnamed686(); - o.reachByFrequencyMetricNames = buildUnnamed687(); + o.metricNames = buildUnnamed1009(); + o.reachByFrequencyMetricNames = buildUnnamed1010(); } buildCounterReportReachCriteria--; return o; @@ -7487,23 +7487,23 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed684(o.dimensionFilters); - checkUnnamed685(o.dimensions); + checkUnnamed1007(o.dimensionFilters); + checkUnnamed1008(o.dimensions); unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); - checkUnnamed686(o.metricNames); - checkUnnamed687(o.reachByFrequencyMetricNames); + checkUnnamed1009(o.metricNames); + checkUnnamed1010(o.reachByFrequencyMetricNames); } buildCounterReportReachCriteria--; } -buildUnnamed688() { +buildUnnamed1011() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed688(core.List<core.String> o) { +checkUnnamed1011(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7518,7 +7518,7 @@ o.every = 42; o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.repeats = "foo"; - o.repeatsOnWeekDays = buildUnnamed688(); + o.repeatsOnWeekDays = buildUnnamed1011(); o.runsOnDayOfMonth = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -7534,7 +7534,7 @@ unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.repeats, unittest.equals('foo')); - checkUnnamed688(o.repeatsOnWeekDays); + checkUnnamed1011(o.repeatsOnWeekDays); unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -7595,53 +7595,53 @@ buildCounterReport--; } -buildUnnamed689() { +buildUnnamed1012() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed689(core.List<api.Dimension> o) { +checkUnnamed1012(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed690() { +buildUnnamed1013() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed690(core.List<api.Dimension> o) { +checkUnnamed1013(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed691() { +buildUnnamed1014() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed691(core.List<api.Metric> o) { +checkUnnamed1014(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed692() { +buildUnnamed1015() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed692(core.List<api.Metric> o) { +checkUnnamed1015(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -7652,11 +7652,11 @@ var o = new api.ReportCompatibleFields(); buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed689(); - o.dimensions = buildUnnamed690(); + o.dimensionFilters = buildUnnamed1012(); + o.dimensions = buildUnnamed1013(); o.kind = "foo"; - o.metrics = buildUnnamed691(); - o.pivotedActivityMetrics = buildUnnamed692(); + o.metrics = buildUnnamed1014(); + o.pivotedActivityMetrics = buildUnnamed1015(); } buildCounterReportCompatibleFields--; return o; @@ -7665,23 +7665,23 @@ checkReportCompatibleFields(api.ReportCompatibleFields o) { buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - checkUnnamed689(o.dimensionFilters); - checkUnnamed690(o.dimensions); + checkUnnamed1012(o.dimensionFilters); + checkUnnamed1013(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed691(o.metrics); - checkUnnamed692(o.pivotedActivityMetrics); + checkUnnamed1014(o.metrics); + checkUnnamed1015(o.pivotedActivityMetrics); } buildCounterReportCompatibleFields--; } -buildUnnamed693() { +buildUnnamed1016() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed693(core.List<api.Report> o) { +checkUnnamed1016(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -7693,7 +7693,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { o.etag = "foo"; - o.items = buildUnnamed693(); + o.items = buildUnnamed1016(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -7705,7 +7705,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed693(o.items); + checkUnnamed1016(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -7781,14 +7781,14 @@ buildCounterRule--; } -buildUnnamed694() { +buildUnnamed1017() { var o = new core.List<api.SiteContact>(); o.add(buildSiteContact()); o.add(buildSiteContact()); return o; } -checkUnnamed694(core.List<api.SiteContact> o) { +checkUnnamed1017(core.List<api.SiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkSiteContact(o[0]); checkSiteContact(o[1]); @@ -7808,7 +7808,7 @@ o.keyName = "foo"; o.kind = "foo"; o.name = "foo"; - o.siteContacts = buildUnnamed694(); + o.siteContacts = buildUnnamed1017(); o.siteSettings = buildSiteSettings(); o.subaccountId = "foo"; } @@ -7828,7 +7828,7 @@ unittest.expect(o.keyName, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed694(o.siteContacts); + checkUnnamed1017(o.siteContacts); checkSiteSettings(o.siteSettings); unittest.expect(o.subaccountId, unittest.equals('foo')); } @@ -7901,14 +7901,14 @@ buildCounterSiteSettings--; } -buildUnnamed695() { +buildUnnamed1018() { var o = new core.List<api.Site>(); o.add(buildSite()); o.add(buildSite()); return o; } -checkUnnamed695(core.List<api.Site> o) { +checkUnnamed1018(core.List<api.Site> o) { unittest.expect(o, unittest.hasLength(2)); checkSite(o[0]); checkSite(o[1]); @@ -7921,7 +7921,7 @@ if (buildCounterSitesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.sites = buildUnnamed695(); + o.sites = buildUnnamed1018(); } buildCounterSitesListResponse--; return o; @@ -7932,7 +7932,7 @@ if (buildCounterSitesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed695(o.sites); + checkUnnamed1018(o.sites); } buildCounterSitesListResponse--; } @@ -7964,14 +7964,14 @@ buildCounterSize--; } -buildUnnamed696() { +buildUnnamed1019() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed696(core.List<api.Size> o) { +checkUnnamed1019(core.List<api.Size> o) { unittest.expect(o, unittest.hasLength(2)); checkSize(o[0]); checkSize(o[1]); @@ -7983,7 +7983,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { o.kind = "foo"; - o.sizes = buildUnnamed696(); + o.sizes = buildUnnamed1019(); } buildCounterSizesListResponse--; return o; @@ -7993,7 +7993,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed696(o.sizes); + checkUnnamed1019(o.sizes); } buildCounterSizesListResponse--; } @@ -8046,14 +8046,14 @@ buildCounterSortedDimension--; } -buildUnnamed697() { +buildUnnamed1020() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed697(core.List<core.String> o) { +checkUnnamed1020(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8065,7 +8065,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { o.accountId = "foo"; - o.availablePermissionIds = buildUnnamed697(); + o.availablePermissionIds = buildUnnamed1020(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -8078,7 +8078,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed697(o.availablePermissionIds); + checkUnnamed1020(o.availablePermissionIds); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -8086,14 +8086,14 @@ buildCounterSubaccount--; } -buildUnnamed698() { +buildUnnamed1021() { var o = new core.List<api.Subaccount>(); o.add(buildSubaccount()); o.add(buildSubaccount()); return o; } -checkUnnamed698(core.List<api.Subaccount> o) { +checkUnnamed1021(core.List<api.Subaccount> o) { unittest.expect(o, unittest.hasLength(2)); checkSubaccount(o[0]); checkSubaccount(o[1]); @@ -8106,7 +8106,7 @@ if (buildCounterSubaccountsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.subaccounts = buildUnnamed698(); + o.subaccounts = buildUnnamed1021(); } buildCounterSubaccountsListResponse--; return o; @@ -8117,7 +8117,7 @@ if (buildCounterSubaccountsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed698(o.subaccounts); + checkUnnamed1021(o.subaccounts); } buildCounterSubaccountsListResponse--; } @@ -8257,14 +8257,14 @@ buildCounterTargetableRemarketingList--; } -buildUnnamed699() { +buildUnnamed1022() { var o = new core.List<api.TargetableRemarketingList>(); o.add(buildTargetableRemarketingList()); o.add(buildTargetableRemarketingList()); return o; } -checkUnnamed699(core.List<api.TargetableRemarketingList> o) { +checkUnnamed1022(core.List<api.TargetableRemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetableRemarketingList(o[0]); checkTargetableRemarketingList(o[1]); @@ -8277,7 +8277,7 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.targetableRemarketingLists = buildUnnamed699(); + o.targetableRemarketingLists = buildUnnamed1022(); } buildCounterTargetableRemarketingListsListResponse--; return o; @@ -8289,7 +8289,7 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed699(o.targetableRemarketingLists); + checkUnnamed1022(o.targetableRemarketingLists); } buildCounterTargetableRemarketingListsListResponse--; } @@ -8337,14 +8337,14 @@ buildCounterTargetingTemplate--; } -buildUnnamed700() { +buildUnnamed1023() { var o = new core.List<api.TargetingTemplate>(); o.add(buildTargetingTemplate()); o.add(buildTargetingTemplate()); return o; } -checkUnnamed700(core.List<api.TargetingTemplate> o) { +checkUnnamed1023(core.List<api.TargetingTemplate> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingTemplate(o[0]); checkTargetingTemplate(o[1]); @@ -8357,7 +8357,7 @@ if (buildCounterTargetingTemplatesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.targetingTemplates = buildUnnamed700(); + o.targetingTemplates = buildUnnamed1023(); } buildCounterTargetingTemplatesListResponse--; return o; @@ -8368,84 +8368,84 @@ if (buildCounterTargetingTemplatesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed700(o.targetingTemplates); + checkUnnamed1023(o.targetingTemplates); } buildCounterTargetingTemplatesListResponse--; } -buildUnnamed701() { +buildUnnamed1024() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed701(core.List<api.Browser> o) { +checkUnnamed1024(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); } -buildUnnamed702() { +buildUnnamed1025() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed702(core.List<api.ConnectionType> o) { +checkUnnamed1025(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); } -buildUnnamed703() { +buildUnnamed1026() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed703(core.List<api.MobileCarrier> o) { +checkUnnamed1026(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); } -buildUnnamed704() { +buildUnnamed1027() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed704(core.List<api.OperatingSystemVersion> o) { +checkUnnamed1027(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); } -buildUnnamed705() { +buildUnnamed1028() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed705(core.List<api.OperatingSystem> o) { +checkUnnamed1028(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); } -buildUnnamed706() { +buildUnnamed1029() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed706(core.List<api.PlatformType> o) { +checkUnnamed1029(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -8456,12 +8456,12 @@ var o = new api.TechnologyTargeting(); buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - o.browsers = buildUnnamed701(); - o.connectionTypes = buildUnnamed702(); - o.mobileCarriers = buildUnnamed703(); - o.operatingSystemVersions = buildUnnamed704(); - o.operatingSystems = buildUnnamed705(); - o.platformTypes = buildUnnamed706(); + o.browsers = buildUnnamed1024(); + o.connectionTypes = buildUnnamed1025(); + o.mobileCarriers = buildUnnamed1026(); + o.operatingSystemVersions = buildUnnamed1027(); + o.operatingSystems = buildUnnamed1028(); + o.platformTypes = buildUnnamed1029(); } buildCounterTechnologyTargeting--; return o; @@ -8470,12 +8470,12 @@ checkTechnologyTargeting(api.TechnologyTargeting o) { buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - checkUnnamed701(o.browsers); - checkUnnamed702(o.connectionTypes); - checkUnnamed703(o.mobileCarriers); - checkUnnamed704(o.operatingSystemVersions); - checkUnnamed705(o.operatingSystems); - checkUnnamed706(o.platformTypes); + checkUnnamed1024(o.browsers); + checkUnnamed1025(o.connectionTypes); + checkUnnamed1026(o.mobileCarriers); + checkUnnamed1027(o.operatingSystemVersions); + checkUnnamed1028(o.operatingSystems); + checkUnnamed1029(o.platformTypes); } buildCounterTechnologyTargeting--; } @@ -8522,14 +8522,14 @@ buildCounterThirdPartyTrackingUrl--; } -buildUnnamed707() { +buildUnnamed1030() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed707(core.List<core.int> o) { +checkUnnamed1030(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)); @@ -8540,7 +8540,7 @@ var o = new api.TranscodeSetting(); buildCounterTranscodeSetting++; if (buildCounterTranscodeSetting < 3) { - o.enabledVideoFormats = buildUnnamed707(); + o.enabledVideoFormats = buildUnnamed1030(); o.kind = "foo"; } buildCounterTranscodeSetting--; @@ -8550,7 +8550,7 @@ checkTranscodeSetting(api.TranscodeSetting o) { buildCounterTranscodeSetting++; if (buildCounterTranscodeSetting < 3) { - checkUnnamed707(o.enabledVideoFormats); + checkUnnamed1030(o.enabledVideoFormats); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTranscodeSetting--; @@ -8633,14 +8633,14 @@ buildCounterUserProfile--; } -buildUnnamed708() { +buildUnnamed1031() { var o = new core.List<api.UserProfile>(); o.add(buildUserProfile()); o.add(buildUserProfile()); return o; } -checkUnnamed708(core.List<api.UserProfile> o) { +checkUnnamed1031(core.List<api.UserProfile> o) { unittest.expect(o, unittest.hasLength(2)); checkUserProfile(o[0]); checkUserProfile(o[1]); @@ -8652,7 +8652,7 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { o.etag = "foo"; - o.items = buildUnnamed708(); + o.items = buildUnnamed1031(); o.kind = "foo"; } buildCounterUserProfileList--; @@ -8663,20 +8663,20 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed708(o.items); + checkUnnamed1031(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUserProfileList--; } -buildUnnamed709() { +buildUnnamed1032() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed709(core.List<api.UserRolePermission> o) { +checkUnnamed1032(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -8693,7 +8693,7 @@ o.kind = "foo"; o.name = "foo"; o.parentUserRoleId = "foo"; - o.permissions = buildUnnamed709(); + o.permissions = buildUnnamed1032(); o.subaccountId = "foo"; } buildCounterUserRole--; @@ -8709,7 +8709,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentUserRoleId, unittest.equals('foo')); - checkUnnamed709(o.permissions); + checkUnnamed1032(o.permissions); unittest.expect(o.subaccountId, unittest.equals('foo')); } buildCounterUserRole--; @@ -8765,14 +8765,14 @@ buildCounterUserRolePermissionGroup--; } -buildUnnamed710() { +buildUnnamed1033() { var o = new core.List<api.UserRolePermissionGroup>(); o.add(buildUserRolePermissionGroup()); o.add(buildUserRolePermissionGroup()); return o; } -checkUnnamed710(core.List<api.UserRolePermissionGroup> o) { +checkUnnamed1033(core.List<api.UserRolePermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermissionGroup(o[0]); checkUserRolePermissionGroup(o[1]); @@ -8784,7 +8784,7 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { o.kind = "foo"; - o.userRolePermissionGroups = buildUnnamed710(); + o.userRolePermissionGroups = buildUnnamed1033(); } buildCounterUserRolePermissionGroupsListResponse--; return o; @@ -8795,19 +8795,19 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed710(o.userRolePermissionGroups); + checkUnnamed1033(o.userRolePermissionGroups); } buildCounterUserRolePermissionGroupsListResponse--; } -buildUnnamed711() { +buildUnnamed1034() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed711(core.List<api.UserRolePermission> o) { +checkUnnamed1034(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -8819,7 +8819,7 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { o.kind = "foo"; - o.userRolePermissions = buildUnnamed711(); + o.userRolePermissions = buildUnnamed1034(); } buildCounterUserRolePermissionsListResponse--; return o; @@ -8829,19 +8829,19 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed711(o.userRolePermissions); + checkUnnamed1034(o.userRolePermissions); } buildCounterUserRolePermissionsListResponse--; } -buildUnnamed712() { +buildUnnamed1035() { var o = new core.List<api.UserRole>(); o.add(buildUserRole()); o.add(buildUserRole()); return o; } -checkUnnamed712(core.List<api.UserRole> o) { +checkUnnamed1035(core.List<api.UserRole> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRole(o[0]); checkUserRole(o[1]); @@ -8854,7 +8854,7 @@ if (buildCounterUserRolesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.userRoles = buildUnnamed712(); + o.userRoles = buildUnnamed1035(); } buildCounterUserRolesListResponse--; return o; @@ -8865,7 +8865,7 @@ if (buildCounterUserRolesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed712(o.userRoles); + checkUnnamed1035(o.userRoles); } buildCounterUserRolesListResponse--; } @@ -8897,14 +8897,14 @@ buildCounterVideoFormat--; } -buildUnnamed713() { +buildUnnamed1036() { var o = new core.List<api.VideoFormat>(); o.add(buildVideoFormat()); o.add(buildVideoFormat()); return o; } -checkUnnamed713(core.List<api.VideoFormat> o) { +checkUnnamed1036(core.List<api.VideoFormat> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoFormat(o[0]); checkVideoFormat(o[1]); @@ -8916,7 +8916,7 @@ buildCounterVideoFormatsListResponse++; if (buildCounterVideoFormatsListResponse < 3) { o.kind = "foo"; - o.videoFormats = buildUnnamed713(); + o.videoFormats = buildUnnamed1036(); } buildCounterVideoFormatsListResponse--; return o; @@ -8926,7 +8926,7 @@ buildCounterVideoFormatsListResponse++; if (buildCounterVideoFormatsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed713(o.videoFormats); + checkUnnamed1036(o.videoFormats); } buildCounterVideoFormatsListResponse--; } @@ -8979,1171 +8979,1171 @@ buildCounterVideoSettings--; } -buildUnnamed714() { +buildUnnamed1037() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed714(core.List<core.String> o) { +checkUnnamed1037(core.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() { +buildUnnamed1038() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed715(core.List<core.String> o) { +checkUnnamed1038(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed716() { +buildUnnamed1039() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed716(core.List<core.String> o) { +checkUnnamed1039(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed717() { +buildUnnamed1040() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed717(core.List<core.String> o) { +checkUnnamed1040(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed718() { +buildUnnamed1041() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed718(core.List<core.String> o) { +checkUnnamed1041(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed719() { +buildUnnamed1042() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed719(core.List<core.String> o) { +checkUnnamed1042(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed720() { +buildUnnamed1043() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed720(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')); } -buildUnnamed721() { +buildUnnamed1044() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed721(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')); } -buildUnnamed722() { +buildUnnamed1045() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed722(core.List<core.String> o) { +checkUnnamed1045(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed723() { +buildUnnamed1046() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed723(core.List<core.String> o) { +checkUnnamed1046(core.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() { +buildUnnamed1047() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed724(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')); } -buildUnnamed725() { +buildUnnamed1048() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed725(core.List<core.String> o) { +checkUnnamed1048(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed726() { +buildUnnamed1049() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed726(core.List<core.String> o) { +checkUnnamed1049(core.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() { +buildUnnamed1050() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed727(core.List<core.String> o) { +checkUnnamed1050(core.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() { +buildUnnamed1051() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed728(core.List<core.String> o) { +checkUnnamed1051(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed729() { +buildUnnamed1052() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed729(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')); } -buildUnnamed730() { +buildUnnamed1053() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed730(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')); } -buildUnnamed731() { +buildUnnamed1054() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed731(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')); } -buildUnnamed732() { +buildUnnamed1055() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed732(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')); } -buildUnnamed733() { +buildUnnamed1056() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed733(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')); } -buildUnnamed734() { +buildUnnamed1057() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed734(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')); } -buildUnnamed735() { +buildUnnamed1058() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed735(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')); } -buildUnnamed736() { +buildUnnamed1059() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed736(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')); } -buildUnnamed737() { +buildUnnamed1060() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed737(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')); } -buildUnnamed738() { +buildUnnamed1061() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed738(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')); } -buildUnnamed739() { +buildUnnamed1062() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed739(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')); } -buildUnnamed740() { +buildUnnamed1063() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed740(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')); } -buildUnnamed741() { +buildUnnamed1064() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed741(core.List<core.String> o) { +checkUnnamed1064(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed742() { +buildUnnamed1065() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed742(core.List<core.String> o) { +checkUnnamed1065(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed743() { +buildUnnamed1066() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed743(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')); } -buildUnnamed744() { +buildUnnamed1067() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed744(core.List<core.String> o) { +checkUnnamed1067(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed745() { +buildUnnamed1068() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed745(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')); } -buildUnnamed746() { +buildUnnamed1069() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed746(core.List<core.String> o) { +checkUnnamed1069(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed747() { +buildUnnamed1070() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed747(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')); } -buildUnnamed748() { +buildUnnamed1071() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed748(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')); } -buildUnnamed749() { +buildUnnamed1072() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed749(core.List<core.String> o) { +checkUnnamed1072(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed750() { +buildUnnamed1073() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed750(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')); } -buildUnnamed751() { +buildUnnamed1074() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed751(core.List<core.String> o) { +checkUnnamed1074(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed752() { +buildUnnamed1075() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed752(core.List<core.String> o) { +checkUnnamed1075(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed753() { +buildUnnamed1076() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed753(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')); } -buildUnnamed754() { +buildUnnamed1077() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed754(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')); } -buildUnnamed755() { +buildUnnamed1078() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed755(core.List<core.String> o) { +checkUnnamed1078(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed756() { +buildUnnamed1079() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed756(core.List<core.String> o) { +checkUnnamed1079(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed757() { +buildUnnamed1080() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed757(core.List<core.String> o) { +checkUnnamed1080(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed758() { +buildUnnamed1081() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed758(core.List<core.String> o) { +checkUnnamed1081(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed759() { +buildUnnamed1082() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed759(core.List<core.String> o) { +checkUnnamed1082(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed760() { +buildUnnamed1083() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed760(core.List<core.String> o) { +checkUnnamed1083(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed761() { +buildUnnamed1084() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed761(core.List<core.String> o) { +checkUnnamed1084(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed762() { +buildUnnamed1085() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed762(core.List<core.String> o) { +checkUnnamed1085(core.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() { +buildUnnamed1086() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed763(core.List<core.String> o) { +checkUnnamed1086(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed764() { +buildUnnamed1087() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed764(core.List<core.String> o) { +checkUnnamed1087(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed765() { +buildUnnamed1088() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed765(core.List<core.String> o) { +checkUnnamed1088(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed766() { +buildUnnamed1089() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed766(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')); } -buildUnnamed767() { +buildUnnamed1090() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed767(core.List<core.String> o) { +checkUnnamed1090(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed768() { +buildUnnamed1091() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed768(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')); } -buildUnnamed769() { +buildUnnamed1092() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed769(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')); } -buildUnnamed770() { +buildUnnamed1093() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed770(core.List<core.String> o) { +checkUnnamed1093(core.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() { +buildUnnamed1094() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed771(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')); } -buildUnnamed772() { +buildUnnamed1095() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed772(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')); } -buildUnnamed773() { +buildUnnamed1096() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed773(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')); } -buildUnnamed774() { +buildUnnamed1097() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed774(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')); } -buildUnnamed775() { +buildUnnamed1098() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed775(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')); } -buildUnnamed776() { +buildUnnamed1099() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed776(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')); } -buildUnnamed777() { +buildUnnamed1100() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed777(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')); } -buildUnnamed778() { +buildUnnamed1101() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed778(core.List<core.String> o) { +checkUnnamed1101(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed779() { +buildUnnamed1102() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed779(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')); } -buildUnnamed780() { +buildUnnamed1103() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed780(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')); } -buildUnnamed781() { +buildUnnamed1104() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed781(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')); } -buildUnnamed782() { +buildUnnamed1105() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed782(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')); } -buildUnnamed783() { +buildUnnamed1106() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed783(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')); } -buildUnnamed784() { +buildUnnamed1107() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed784(core.List<core.String> o) { +checkUnnamed1107(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed785() { +buildUnnamed1108() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed785(core.List<core.String> o) { +checkUnnamed1108(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed786() { +buildUnnamed1109() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed786(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')); } -buildUnnamed787() { +buildUnnamed1110() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed787(core.List<core.String> o) { +checkUnnamed1110(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed788() { +buildUnnamed1111() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed788(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')); } -buildUnnamed789() { +buildUnnamed1112() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed789(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')); } -buildUnnamed790() { +buildUnnamed1113() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed790(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')); } -buildUnnamed791() { +buildUnnamed1114() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed791(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')); } -buildUnnamed792() { +buildUnnamed1115() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed792(core.List<core.String> o) { +checkUnnamed1115(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed793() { +buildUnnamed1116() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed793(core.List<core.String> o) { +checkUnnamed1116(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed794() { +buildUnnamed1117() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed794(core.List<core.String> o) { +checkUnnamed1117(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed795() { +buildUnnamed1118() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed795(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')); } -buildUnnamed796() { +buildUnnamed1119() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed796(core.List<core.String> o) { +checkUnnamed1119(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed797() { +buildUnnamed1120() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed797(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')); } -buildUnnamed798() { +buildUnnamed1121() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed798(core.List<core.String> o) { +checkUnnamed1121(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed799() { +buildUnnamed1122() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed799(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')); } -buildUnnamed800() { +buildUnnamed1123() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed800(core.List<core.String> o) { +checkUnnamed1123(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed801() { +buildUnnamed1124() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed801(core.List<core.String> o) { +checkUnnamed1124(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed802() { +buildUnnamed1125() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed802(core.List<core.String> o) { +checkUnnamed1125(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed803() { +buildUnnamed1126() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed803(core.List<core.String> o) { +checkUnnamed1126(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -12406,7 +12406,7 @@ new api.DfareportingApi(mock).accountUserProfiles; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed714(); + var arg_ids = buildUnnamed1037(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -12708,7 +12708,7 @@ api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed715(); + var arg_ids = buildUnnamed1038(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -13068,26 +13068,26 @@ var arg_active = true; var arg_advertiserId = "foo"; var arg_archived = true; - var arg_audienceSegmentIds = buildUnnamed716(); - var arg_campaignIds = buildUnnamed717(); + var arg_audienceSegmentIds = buildUnnamed1039(); + var arg_campaignIds = buildUnnamed1040(); var arg_compatibility = "foo"; - var arg_creativeIds = buildUnnamed718(); - var arg_creativeOptimizationConfigurationIds = buildUnnamed719(); + var arg_creativeIds = buildUnnamed1041(); + var arg_creativeOptimizationConfigurationIds = buildUnnamed1042(); var arg_dynamicClickTracker = true; - var arg_ids = buildUnnamed720(); - var arg_landingPageIds = buildUnnamed721(); + var arg_ids = buildUnnamed1043(); + var arg_landingPageIds = buildUnnamed1044(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; - var arg_placementIds = buildUnnamed722(); - var arg_remarketingListIds = buildUnnamed723(); + var arg_placementIds = buildUnnamed1045(); + var arg_remarketingListIds = buildUnnamed1046(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed724(); + var arg_sizeIds = buildUnnamed1047(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_sslCompliant = true; var arg_sslRequired = true; - var arg_type = buildUnnamed725(); + var arg_type = buildUnnamed1048(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -13554,7 +13554,7 @@ api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; var arg_profileId = "foo"; - var arg_ids = buildUnnamed726(); + var arg_ids = buildUnnamed1049(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -13913,9 +13913,9 @@ api.AdvertiserLandingPagesResourceApi res = new api.DfareportingApi(mock).advertiserLandingPages; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed727(); + var arg_advertiserIds = buildUnnamed1050(); var arg_archived = true; - var arg_ids = buildUnnamed728(); + var arg_ids = buildUnnamed1051(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -14285,9 +14285,9 @@ api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed729(); - var arg_floodlightConfigurationIds = buildUnnamed730(); - var arg_ids = buildUnnamed731(); + var arg_advertiserGroupIds = buildUnnamed1052(); + var arg_floodlightConfigurationIds = buildUnnamed1053(); + var arg_ids = buildUnnamed1054(); var arg_includeAdvertisersWithoutGroupsOnly = true; var arg_maxResults = 42; var arg_onlyParent = true; @@ -14896,12 +14896,12 @@ var mock = new HttpServerMock(); api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed732(); - var arg_advertiserIds = buildUnnamed733(); + var arg_advertiserGroupIds = buildUnnamed1055(); + var arg_advertiserIds = buildUnnamed1056(); var arg_archived = true; var arg_atLeastOneOptimizationActivity = true; - var arg_excludedIds = buildUnnamed734(); - var arg_ids = buildUnnamed735(); + var arg_excludedIds = buildUnnamed1057(); + var arg_ids = buildUnnamed1058(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; @@ -15214,15 +15214,15 @@ api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; var arg_profileId = "foo"; var arg_action = "foo"; - var arg_ids = buildUnnamed736(); + var arg_ids = buildUnnamed1059(); var arg_maxChangeTime = "foo"; var arg_maxResults = 42; var arg_minChangeTime = "foo"; - var arg_objectIds = buildUnnamed737(); + var arg_objectIds = buildUnnamed1060(); var arg_objectType = "foo"; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_userProfileIds = buildUnnamed738(); + var arg_userProfileIds = buildUnnamed1061(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -15315,10 +15315,10 @@ var mock = new HttpServerMock(); api.CitiesResourceApi res = new api.DfareportingApi(mock).cities; var arg_profileId = "foo"; - var arg_countryDartIds = buildUnnamed739(); - var arg_dartIds = buildUnnamed740(); + var arg_countryDartIds = buildUnnamed1062(); + var arg_dartIds = buildUnnamed1063(); var arg_namePrefix = "foo"; - var arg_regionDartIds = buildUnnamed741(); + var arg_regionDartIds = buildUnnamed1064(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -15727,7 +15727,7 @@ api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; var arg_profileId = "foo"; - var arg_ids = buildUnnamed742(); + var arg_ids = buildUnnamed1065(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -16533,7 +16533,7 @@ new api.DfareportingApi(mock).creativeFieldValues; var arg_profileId = "foo"; var arg_creativeFieldId = "foo"; - var arg_ids = buildUnnamed743(); + var arg_ids = buildUnnamed1066(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -16988,8 +16988,8 @@ api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed744(); - var arg_ids = buildUnnamed745(); + var arg_advertiserIds = buildUnnamed1067(); + var arg_ids = buildUnnamed1068(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -17351,9 +17351,9 @@ api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed746(); + var arg_advertiserIds = buildUnnamed1069(); var arg_groupNumber = 42; - var arg_ids = buildUnnamed747(); + var arg_ids = buildUnnamed1070(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -17719,18 +17719,18 @@ var arg_advertiserId = "foo"; var arg_archived = true; var arg_campaignId = "foo"; - var arg_companionCreativeIds = buildUnnamed748(); - var arg_creativeFieldIds = buildUnnamed749(); - var arg_ids = buildUnnamed750(); + var arg_companionCreativeIds = buildUnnamed1071(); + var arg_creativeFieldIds = buildUnnamed1072(); + var arg_ids = buildUnnamed1073(); var arg_maxResults = 42; var arg_pageToken = "foo"; - var arg_renderingIds = buildUnnamed751(); + var arg_renderingIds = buildUnnamed1074(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed752(); + var arg_sizeIds = buildUnnamed1075(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_studioCreativeId = "foo"; - var arg_types = buildUnnamed753(); + var arg_types = buildUnnamed1076(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -18121,8 +18121,8 @@ api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).directorySiteContacts; var arg_profileId = "foo"; - var arg_directorySiteIds = buildUnnamed754(); - var arg_ids = buildUnnamed755(); + var arg_directorySiteIds = buildUnnamed1077(); + var arg_ids = buildUnnamed1078(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -18355,7 +18355,7 @@ var arg_active = true; var arg_countryId = "foo"; var arg_dfpNetworkCode = "foo"; - var arg_ids = buildUnnamed756(); + var arg_ids = buildUnnamed1079(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_parentId = "foo"; @@ -18607,7 +18607,7 @@ new api.DfareportingApi(mock).dynamicTargetingKeys; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_names = buildUnnamed757(); + var arg_names = buildUnnamed1080(); var arg_objectId = "foo"; var arg_objectType = "foo"; var arg_$fields = "foo"; @@ -18887,8 +18887,8 @@ var arg_campaignId = "foo"; var arg_definitionsOnly = true; var arg_enabled = true; - var arg_eventTagTypes = buildUnnamed758(); - var arg_ids = buildUnnamed759(); + var arg_eventTagTypes = buildUnnamed1081(); + var arg_ids = buildUnnamed1082(); var arg_searchString = "foo"; var arg_sortField = "foo"; var arg_sortOrder = "foo"; @@ -19542,12 +19542,12 @@ new api.DfareportingApi(mock).floodlightActivities; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_floodlightActivityGroupIds = buildUnnamed760(); + var arg_floodlightActivityGroupIds = buildUnnamed1083(); var arg_floodlightActivityGroupName = "foo"; var arg_floodlightActivityGroupTagString = "foo"; var arg_floodlightActivityGroupType = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed761(); + var arg_ids = buildUnnamed1084(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -19931,7 +19931,7 @@ var arg_profileId = "foo"; var arg_advertiserId = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed762(); + var arg_ids = buildUnnamed1085(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -20233,7 +20233,7 @@ api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock).floodlightConfigurations; var arg_profileId = "foo"; - var arg_ids = buildUnnamed763(); + var arg_ids = buildUnnamed1086(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -20515,12 +20515,12 @@ new api.DfareportingApi(mock).inventoryItems; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed764(); + var arg_ids = buildUnnamed1087(); var arg_inPlan = true; var arg_maxResults = 42; - var arg_orderId = buildUnnamed765(); + var arg_orderId = buildUnnamed1088(); var arg_pageToken = "foo"; - var arg_siteId = buildUnnamed766(); + var arg_siteId = buildUnnamed1089(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_type = "foo"; @@ -21226,12 +21226,12 @@ var arg_profileId = "foo"; var arg_projectId = "foo"; var arg_approved = true; - var arg_ids = buildUnnamed767(); + var arg_ids = buildUnnamed1090(); var arg_maxResults = 42; - var arg_orderId = buildUnnamed768(); + var arg_orderId = buildUnnamed1091(); var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed769(); + var arg_siteId = buildUnnamed1092(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_$fields = "foo"; @@ -21409,11 +21409,11 @@ api.OrdersResourceApi res = new api.DfareportingApi(mock).orders; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed770(); + var arg_ids = buildUnnamed1093(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed771(); + var arg_siteId = buildUnnamed1094(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_$fields = "foo"; @@ -21644,12 +21644,12 @@ api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed772(); + var arg_advertiserIds = buildUnnamed1095(); var arg_archived = true; - var arg_campaignIds = buildUnnamed773(); - var arg_contentCategoryIds = buildUnnamed774(); - var arg_directorySiteIds = buildUnnamed775(); - var arg_ids = buildUnnamed776(); + var arg_campaignIds = buildUnnamed1096(); + var arg_contentCategoryIds = buildUnnamed1097(); + var arg_directorySiteIds = buildUnnamed1098(); + var arg_ids = buildUnnamed1099(); var arg_maxEndDate = "foo"; var arg_maxResults = 42; var arg_maxStartDate = "foo"; @@ -21657,10 +21657,10 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_placementGroupType = "foo"; - var arg_placementStrategyIds = buildUnnamed777(); - var arg_pricingTypes = buildUnnamed778(); + var arg_placementStrategyIds = buildUnnamed1100(); + var arg_pricingTypes = buildUnnamed1101(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed779(); + var arg_siteIds = buildUnnamed1102(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_$fields = "foo"; @@ -22119,7 +22119,7 @@ api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; var arg_profileId = "foo"; - var arg_ids = buildUnnamed780(); + var arg_ids = buildUnnamed1103(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -22344,8 +22344,8 @@ api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; var arg_campaignId = "foo"; - var arg_placementIds = buildUnnamed781(); - var arg_tagFormats = buildUnnamed782(); + var arg_placementIds = buildUnnamed1104(); + var arg_tagFormats = buildUnnamed1105(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -22550,14 +22550,14 @@ var mock = new HttpServerMock(); api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed783(); + var arg_advertiserIds = buildUnnamed1106(); var arg_archived = true; - var arg_campaignIds = buildUnnamed784(); - var arg_compatibilities = buildUnnamed785(); - var arg_contentCategoryIds = buildUnnamed786(); - var arg_directorySiteIds = buildUnnamed787(); - var arg_groupIds = buildUnnamed788(); - var arg_ids = buildUnnamed789(); + var arg_campaignIds = buildUnnamed1107(); + var arg_compatibilities = buildUnnamed1108(); + var arg_contentCategoryIds = buildUnnamed1109(); + var arg_directorySiteIds = buildUnnamed1110(); + var arg_groupIds = buildUnnamed1111(); + var arg_ids = buildUnnamed1112(); var arg_maxEndDate = "foo"; var arg_maxResults = 42; var arg_maxStartDate = "foo"; @@ -22565,11 +22565,11 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_paymentSource = "foo"; - var arg_placementStrategyIds = buildUnnamed790(); - var arg_pricingTypes = buildUnnamed791(); + var arg_placementStrategyIds = buildUnnamed1113(); + var arg_pricingTypes = buildUnnamed1114(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed792(); - var arg_sizeIds = buildUnnamed793(); + var arg_siteIds = buildUnnamed1115(); + var arg_sizeIds = buildUnnamed1116(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_$fields = "foo"; @@ -23163,8 +23163,8 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed794(); - var arg_ids = buildUnnamed795(); + var arg_advertiserIds = buildUnnamed1117(); + var arg_ids = buildUnnamed1118(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -24767,9 +24767,9 @@ var arg_acceptsPublisherPaidPlacements = true; var arg_adWordsSite = true; var arg_approved = true; - var arg_campaignIds = buildUnnamed796(); - var arg_directorySiteIds = buildUnnamed797(); - var arg_ids = buildUnnamed798(); + var arg_campaignIds = buildUnnamed1119(); + var arg_directorySiteIds = buildUnnamed1120(); + var arg_ids = buildUnnamed1121(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -25156,7 +25156,7 @@ var arg_profileId = "foo"; var arg_height = 42; var arg_iabStandard = true; - var arg_ids = buildUnnamed799(); + var arg_ids = buildUnnamed1122(); var arg_width = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -25369,7 +25369,7 @@ api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; var arg_profileId = "foo"; - var arg_ids = buildUnnamed800(); + var arg_ids = buildUnnamed1123(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -25889,7 +25889,7 @@ new api.DfareportingApi(mock).targetingTemplates; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_ids = buildUnnamed801(); + var arg_ids = buildUnnamed1124(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -26427,7 +26427,7 @@ api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).userRolePermissions; var arg_profileId = "foo"; - var arg_ids = buildUnnamed802(); + var arg_ids = buildUnnamed1125(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -26690,7 +26690,7 @@ api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; var arg_profileId = "foo"; var arg_accountUserRoleOnly = true; - var arg_ids = buildUnnamed803(); + var arg_ids = buildUnnamed1126(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo";
diff --git a/generated/googleapis/test/digitalassetlinks/v1_test.dart b/generated/googleapis/test/digitalassetlinks/v1_test.dart index 6fa39c6..441509c 100644 --- a/generated/googleapis/test/digitalassetlinks/v1_test.dart +++ b/generated/googleapis/test/digitalassetlinks/v1_test.dart
@@ -111,14 +111,14 @@ buildCounterCertificateInfo--; } -buildUnnamed1142() { +buildUnnamed3243() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1142(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')); @@ -130,7 +130,7 @@ buildCounterCheckResponse++; if (buildCounterCheckResponse < 3) { o.debugString = "foo"; - o.errorCode = buildUnnamed1142(); + o.errorCode = buildUnnamed3243(); o.linked = true; o.maxAge = "foo"; } @@ -142,34 +142,34 @@ buildCounterCheckResponse++; if (buildCounterCheckResponse < 3) { unittest.expect(o.debugString, unittest.equals('foo')); - checkUnnamed1142(o.errorCode); + checkUnnamed3243(o.errorCode); unittest.expect(o.linked, unittest.isTrue); unittest.expect(o.maxAge, unittest.equals('foo')); } buildCounterCheckResponse--; } -buildUnnamed1143() { +buildUnnamed3244() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1143(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')); } -buildUnnamed1144() { +buildUnnamed3245() { var o = new core.List<api.Statement>(); o.add(buildStatement()); o.add(buildStatement()); return o; } -checkUnnamed1144(core.List<api.Statement> o) { +checkUnnamed3245(core.List<api.Statement> o) { unittest.expect(o, unittest.hasLength(2)); checkStatement(o[0]); checkStatement(o[1]); @@ -181,9 +181,9 @@ buildCounterListResponse++; if (buildCounterListResponse < 3) { o.debugString = "foo"; - o.errorCode = buildUnnamed1143(); + o.errorCode = buildUnnamed3244(); o.maxAge = "foo"; - o.statements = buildUnnamed1144(); + o.statements = buildUnnamed3245(); } buildCounterListResponse--; return o; @@ -193,9 +193,9 @@ buildCounterListResponse++; if (buildCounterListResponse < 3) { unittest.expect(o.debugString, unittest.equals('foo')); - checkUnnamed1143(o.errorCode); + checkUnnamed3244(o.errorCode); unittest.expect(o.maxAge, unittest.equals('foo')); - checkUnnamed1144(o.statements); + checkUnnamed3245(o.statements); } buildCounterListResponse--; } @@ -391,10 +391,10 @@ var mock = new HttpServerMock(); api.StatementsResourceApi res = new api.DigitalassetlinksApi(mock).statements; - var arg_relation = "foo"; var arg_source_web_site = "foo"; var arg_source_androidApp_packageName = "foo"; var arg_source_androidApp_certificate_sha256Fingerprint = "foo"; + var arg_relation = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -426,8 +426,6 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["relation"].first, unittest.equals(arg_relation)); unittest.expect(queryMap["source.web.site"].first, unittest.equals(arg_source_web_site)); unittest.expect(queryMap["source.androidApp.packageName"].first, @@ -436,6 +434,8 @@ queryMap["source.androidApp.certificate.sha256Fingerprint"].first, unittest .equals(arg_source_androidApp_certificate_sha256Fingerprint)); + unittest.expect( + queryMap["relation"].first, unittest.equals(arg_relation)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -446,11 +446,11 @@ }), true); res .list( - relation: arg_relation, source_web_site: arg_source_web_site, source_androidApp_packageName: arg_source_androidApp_packageName, source_androidApp_certificate_sha256Fingerprint: arg_source_androidApp_certificate_sha256Fingerprint, + relation: arg_relation, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListResponse(response);
diff --git a/generated/googleapis/test/discovery/v1_test.dart b/generated/googleapis/test/discovery/v1_test.dart index 7b2ca53..a6c6887 100644 --- a/generated/googleapis/test/discovery/v1_test.dart +++ b/generated/googleapis/test/discovery/v1_test.dart
@@ -71,14 +71,14 @@ buildCounterDirectoryListItemsIcons--; } -buildUnnamed1761() { +buildUnnamed329() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1761(core.List<core.String> o) { +checkUnnamed329(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -96,7 +96,7 @@ o.icons = buildDirectoryListItemsIcons(); o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed1761(); + o.labels = buildUnnamed329(); o.name = "foo"; o.preferred = true; o.title = "foo"; @@ -116,7 +116,7 @@ checkDirectoryListItemsIcons(o.icons); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1761(o.labels); + checkUnnamed329(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.preferred, unittest.isTrue); unittest.expect(o.title, unittest.equals('foo')); @@ -125,14 +125,14 @@ buildCounterDirectoryListItems--; } -buildUnnamed1762() { +buildUnnamed330() { var o = new core.List<api.DirectoryListItems>(); o.add(buildDirectoryListItems()); o.add(buildDirectoryListItems()); return o; } -checkUnnamed1762(core.List<api.DirectoryListItems> o) { +checkUnnamed330(core.List<api.DirectoryListItems> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectoryListItems(o[0]); checkDirectoryListItems(o[1]); @@ -144,7 +144,7 @@ buildCounterDirectoryList++; if (buildCounterDirectoryList < 3) { o.discoveryVersion = "foo"; - o.items = buildUnnamed1762(); + o.items = buildUnnamed330(); o.kind = "foo"; } buildCounterDirectoryList--; @@ -155,20 +155,20 @@ buildCounterDirectoryList++; if (buildCounterDirectoryList < 3) { unittest.expect(o.discoveryVersion, unittest.equals('foo')); - checkUnnamed1762(o.items); + checkUnnamed330(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDirectoryList--; } -buildUnnamed1763() { +buildUnnamed331() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1763(core.List<core.String> o) { +checkUnnamed331(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -179,7 +179,7 @@ var o = new api.JsonSchemaAnnotations(); buildCounterJsonSchemaAnnotations++; if (buildCounterJsonSchemaAnnotations < 3) { - o.required = buildUnnamed1763(); + o.required = buildUnnamed331(); } buildCounterJsonSchemaAnnotations--; return o; @@ -188,45 +188,45 @@ checkJsonSchemaAnnotations(api.JsonSchemaAnnotations o) { buildCounterJsonSchemaAnnotations++; if (buildCounterJsonSchemaAnnotations < 3) { - checkUnnamed1763(o.required); + checkUnnamed331(o.required); } buildCounterJsonSchemaAnnotations--; } -buildUnnamed1764() { +buildUnnamed332() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1764(core.List<core.String> o) { +checkUnnamed332(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1765() { +buildUnnamed333() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1765(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')); } -buildUnnamed1766() { +buildUnnamed334() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed1766(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed334(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); @@ -253,14 +253,14 @@ buildCounterJsonSchemaVariantMap--; } -buildUnnamed1767() { +buildUnnamed335() { var o = new core.List<api.JsonSchemaVariantMap>(); o.add(buildJsonSchemaVariantMap()); o.add(buildJsonSchemaVariantMap()); return o; } -checkUnnamed1767(core.List<api.JsonSchemaVariantMap> o) { +checkUnnamed335(core.List<api.JsonSchemaVariantMap> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchemaVariantMap(o[0]); checkJsonSchemaVariantMap(o[1]); @@ -272,7 +272,7 @@ buildCounterJsonSchemaVariant++; if (buildCounterJsonSchemaVariant < 3) { o.discriminant = "foo"; - o.map = buildUnnamed1767(); + o.map = buildUnnamed335(); } buildCounterJsonSchemaVariant--; return o; @@ -282,7 +282,7 @@ buildCounterJsonSchemaVariant++; if (buildCounterJsonSchemaVariant < 3) { unittest.expect(o.discriminant, unittest.equals('foo')); - checkUnnamed1767(o.map); + checkUnnamed335(o.map); } buildCounterJsonSchemaVariant--; } @@ -297,8 +297,8 @@ o.annotations = buildJsonSchemaAnnotations(); o.default_ = "foo"; o.description = "foo"; - o.enum_ = buildUnnamed1764(); - o.enumDescriptions = buildUnnamed1765(); + o.enum_ = buildUnnamed332(); + o.enumDescriptions = buildUnnamed333(); o.format = "foo"; o.id = "foo"; o.items = buildJsonSchema(); @@ -306,7 +306,7 @@ o.maximum = "foo"; o.minimum = "foo"; o.pattern = "foo"; - o.properties = buildUnnamed1766(); + o.properties = buildUnnamed334(); o.readOnly = true; o.repeated = true; o.required = true; @@ -325,8 +325,8 @@ checkJsonSchemaAnnotations(o.annotations); unittest.expect(o.default_, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1764(o.enum_); - checkUnnamed1765(o.enumDescriptions); + checkUnnamed332(o.enum_); + checkUnnamed333(o.enumDescriptions); unittest.expect(o.format, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkJsonSchema(o.items); @@ -334,7 +334,7 @@ unittest.expect(o.maximum, unittest.equals('foo')); unittest.expect(o.minimum, unittest.equals('foo')); unittest.expect(o.pattern, unittest.equals('foo')); - checkUnnamed1766(o.properties); + checkUnnamed334(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--; } -buildUnnamed1768() { +buildUnnamed336() { var o = new core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue>(); o["x"] = buildRestDescriptionAuthOauth2ScopesValue(); o["y"] = buildRestDescriptionAuthOauth2ScopesValue(); return o; } -checkUnnamed1768( +checkUnnamed336( core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue> o) { unittest.expect(o, unittest.hasLength(2)); checkRestDescriptionAuthOauth2ScopesValue(o["x"]); @@ -383,7 +383,7 @@ var o = new api.RestDescriptionAuthOauth2(); buildCounterRestDescriptionAuthOauth2++; if (buildCounterRestDescriptionAuthOauth2 < 3) { - o.scopes = buildUnnamed1768(); + o.scopes = buildUnnamed336(); } buildCounterRestDescriptionAuthOauth2--; return o; @@ -392,7 +392,7 @@ checkRestDescriptionAuthOauth2(api.RestDescriptionAuthOauth2 o) { buildCounterRestDescriptionAuthOauth2++; if (buildCounterRestDescriptionAuthOauth2 < 3) { - checkUnnamed1768(o.scopes); + checkUnnamed336(o.scopes); } buildCounterRestDescriptionAuthOauth2--; } @@ -416,14 +416,14 @@ buildCounterRestDescriptionAuth--; } -buildUnnamed1769() { +buildUnnamed337() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1769(core.List<core.String> o) { +checkUnnamed337(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -450,66 +450,66 @@ buildCounterRestDescriptionIcons--; } -buildUnnamed1770() { +buildUnnamed338() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1770(core.List<core.String> o) { +checkUnnamed338(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1771() { +buildUnnamed339() { var o = new core.Map<core.String, api.RestMethod>(); o["x"] = buildRestMethod(); o["y"] = buildRestMethod(); return o; } -checkUnnamed1771(core.Map<core.String, api.RestMethod> o) { +checkUnnamed339(core.Map<core.String, api.RestMethod> o) { unittest.expect(o, unittest.hasLength(2)); checkRestMethod(o["x"]); checkRestMethod(o["y"]); } -buildUnnamed1772() { +buildUnnamed340() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed1772(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed340(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); } -buildUnnamed1773() { +buildUnnamed341() { var o = new core.Map<core.String, api.RestResource>(); o["x"] = buildRestResource(); o["y"] = buildRestResource(); return o; } -checkUnnamed1773(core.Map<core.String, api.RestResource> o) { +checkUnnamed341(core.Map<core.String, api.RestResource> o) { unittest.expect(o, unittest.hasLength(2)); checkRestResource(o["x"]); checkRestResource(o["y"]); } -buildUnnamed1774() { +buildUnnamed342() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed1774(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed342(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); @@ -530,22 +530,22 @@ o.documentationLink = "foo"; o.etag = "foo"; o.exponentialBackoffDefault = true; - o.features = buildUnnamed1769(); + o.features = buildUnnamed337(); o.icons = buildRestDescriptionIcons(); o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed1770(); - o.methods = buildUnnamed1771(); + o.labels = buildUnnamed338(); + o.methods = buildUnnamed339(); o.name = "foo"; o.ownerDomain = "foo"; o.ownerName = "foo"; o.packagePath = "foo"; - o.parameters = buildUnnamed1772(); + o.parameters = buildUnnamed340(); o.protocol = "foo"; - o.resources = buildUnnamed1773(); + o.resources = buildUnnamed341(); o.revision = "foo"; o.rootUrl = "foo"; - o.schemas = buildUnnamed1774(); + o.schemas = buildUnnamed342(); o.servicePath = "foo"; o.title = "foo"; o.version = "foo"; @@ -568,22 +568,22 @@ unittest.expect(o.documentationLink, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.exponentialBackoffDefault, unittest.isTrue); - checkUnnamed1769(o.features); + checkUnnamed337(o.features); checkRestDescriptionIcons(o.icons); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1770(o.labels); - checkUnnamed1771(o.methods); + checkUnnamed338(o.labels); + checkUnnamed339(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')); - checkUnnamed1772(o.parameters); + checkUnnamed340(o.parameters); unittest.expect(o.protocol, unittest.equals('foo')); - checkUnnamed1773(o.resources); + checkUnnamed341(o.resources); unittest.expect(o.revision, unittest.equals('foo')); unittest.expect(o.rootUrl, unittest.equals('foo')); - checkUnnamed1774(o.schemas); + checkUnnamed342(o.schemas); unittest.expect(o.servicePath, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -592,14 +592,14 @@ buildCounterRestDescription--; } -buildUnnamed1775() { +buildUnnamed343() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1775(core.List<core.String> o) { +checkUnnamed343(core.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.RestMethodMediaUpload(); buildCounterRestMethodMediaUpload++; if (buildCounterRestMethodMediaUpload < 3) { - o.accept = buildUnnamed1775(); + o.accept = buildUnnamed343(); o.maxSize = "foo"; o.protocols = buildRestMethodMediaUploadProtocols(); } @@ -686,34 +686,34 @@ checkRestMethodMediaUpload(api.RestMethodMediaUpload o) { buildCounterRestMethodMediaUpload++; if (buildCounterRestMethodMediaUpload < 3) { - checkUnnamed1775(o.accept); + checkUnnamed343(o.accept); unittest.expect(o.maxSize, unittest.equals('foo')); checkRestMethodMediaUploadProtocols(o.protocols); } buildCounterRestMethodMediaUpload--; } -buildUnnamed1776() { +buildUnnamed344() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1776(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')); } -buildUnnamed1777() { +buildUnnamed345() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed1777(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed345(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); @@ -759,14 +759,14 @@ buildCounterRestMethodResponse--; } -buildUnnamed1778() { +buildUnnamed346() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1778(core.List<core.String> o) { +checkUnnamed346(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -782,12 +782,12 @@ o.httpMethod = "foo"; o.id = "foo"; o.mediaUpload = buildRestMethodMediaUpload(); - o.parameterOrder = buildUnnamed1776(); - o.parameters = buildUnnamed1777(); + o.parameterOrder = buildUnnamed344(); + o.parameters = buildUnnamed345(); o.path = "foo"; o.request = buildRestMethodRequest(); o.response = buildRestMethodResponse(); - o.scopes = buildUnnamed1778(); + o.scopes = buildUnnamed346(); o.supportsMediaDownload = true; o.supportsMediaUpload = true; o.supportsSubscription = true; @@ -805,12 +805,12 @@ unittest.expect(o.httpMethod, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkRestMethodMediaUpload(o.mediaUpload); - checkUnnamed1776(o.parameterOrder); - checkUnnamed1777(o.parameters); + checkUnnamed344(o.parameterOrder); + checkUnnamed345(o.parameters); unittest.expect(o.path, unittest.equals('foo')); checkRestMethodRequest(o.request); checkRestMethodResponse(o.response); - checkUnnamed1778(o.scopes); + checkUnnamed346(o.scopes); unittest.expect(o.supportsMediaDownload, unittest.isTrue); unittest.expect(o.supportsMediaUpload, unittest.isTrue); unittest.expect(o.supportsSubscription, unittest.isTrue); @@ -819,27 +819,27 @@ buildCounterRestMethod--; } -buildUnnamed1779() { +buildUnnamed347() { var o = new core.Map<core.String, api.RestMethod>(); o["x"] = buildRestMethod(); o["y"] = buildRestMethod(); return o; } -checkUnnamed1779(core.Map<core.String, api.RestMethod> o) { +checkUnnamed347(core.Map<core.String, api.RestMethod> o) { unittest.expect(o, unittest.hasLength(2)); checkRestMethod(o["x"]); checkRestMethod(o["y"]); } -buildUnnamed1780() { +buildUnnamed348() { var o = new core.Map<core.String, api.RestResource>(); o["x"] = buildRestResource(); o["y"] = buildRestResource(); return o; } -checkUnnamed1780(core.Map<core.String, api.RestResource> o) { +checkUnnamed348(core.Map<core.String, api.RestResource> o) { unittest.expect(o, unittest.hasLength(2)); checkRestResource(o["x"]); checkRestResource(o["y"]); @@ -850,8 +850,8 @@ var o = new api.RestResource(); buildCounterRestResource++; if (buildCounterRestResource < 3) { - o.methods = buildUnnamed1779(); - o.resources = buildUnnamed1780(); + o.methods = buildUnnamed347(); + o.resources = buildUnnamed348(); } buildCounterRestResource--; return o; @@ -860,8 +860,8 @@ checkRestResource(api.RestResource o) { buildCounterRestResource++; if (buildCounterRestResource < 3) { - checkUnnamed1779(o.methods); - checkUnnamed1780(o.resources); + checkUnnamed347(o.methods); + checkUnnamed348(o.resources); } buildCounterRestResource--; }
diff --git a/generated/googleapis/test/dns/v1_test.dart b/generated/googleapis/test/dns/v1_test.dart index b462895..03d3333 100644 --- a/generated/googleapis/test/dns/v1_test.dart +++ b/generated/googleapis/test/dns/v1_test.dart
@@ -50,27 +50,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2639() { +buildUnnamed136() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed2639(core.List<api.ResourceRecordSet> o) { +checkUnnamed136(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); } -buildUnnamed2640() { +buildUnnamed137() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed2640(core.List<api.ResourceRecordSet> o) { +checkUnnamed137(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); @@ -81,9 +81,10 @@ var o = new api.Change(); buildCounterChange++; if (buildCounterChange < 3) { - o.additions = buildUnnamed2639(); - o.deletions = buildUnnamed2640(); + o.additions = buildUnnamed136(); + o.deletions = buildUnnamed137(); o.id = "foo"; + o.isServing = true; o.kind = "foo"; o.startTime = "foo"; o.status = "foo"; @@ -95,9 +96,10 @@ checkChange(api.Change o) { buildCounterChange++; if (buildCounterChange < 3) { - checkUnnamed2639(o.additions); - checkUnnamed2640(o.deletions); + checkUnnamed136(o.additions); + checkUnnamed137(o.deletions); unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.isServing, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); @@ -105,14 +107,14 @@ buildCounterChange--; } -buildUnnamed2641() { +buildUnnamed138() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed2641(core.List<api.Change> o) { +checkUnnamed138(core.List<api.Change> o) { unittest.expect(o, unittest.hasLength(2)); checkChange(o[0]); checkChange(o[1]); @@ -123,7 +125,8 @@ var o = new api.ChangesListResponse(); buildCounterChangesListResponse++; if (buildCounterChangesListResponse < 3) { - o.changes = buildUnnamed2641(); + o.changes = buildUnnamed138(); + o.header = buildResponseHeader(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -134,21 +137,171 @@ checkChangesListResponse(api.ChangesListResponse o) { buildCounterChangesListResponse++; if (buildCounterChangesListResponse < 3) { - checkUnnamed2641(o.changes); + checkUnnamed138(o.changes); + checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterChangesListResponse--; } -buildUnnamed2642() { +buildUnnamed139() { + var o = new core.List<api.DnsKeyDigest>(); + o.add(buildDnsKeyDigest()); + o.add(buildDnsKeyDigest()); + return o; +} + +checkUnnamed139(core.List<api.DnsKeyDigest> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDnsKeyDigest(o[0]); + checkDnsKeyDigest(o[1]); +} + +core.int buildCounterDnsKey = 0; +buildDnsKey() { + var o = new api.DnsKey(); + buildCounterDnsKey++; + if (buildCounterDnsKey < 3) { + o.algorithm = "foo"; + o.creationTime = "foo"; + o.description = "foo"; + o.digests = buildUnnamed139(); + o.id = "foo"; + o.isActive = true; + o.keyLength = 42; + o.keyTag = 42; + o.kind = "foo"; + o.publicKey = "foo"; + o.type = "foo"; + } + buildCounterDnsKey--; + return o; +} + +checkDnsKey(api.DnsKey o) { + buildCounterDnsKey++; + if (buildCounterDnsKey < 3) { + unittest.expect(o.algorithm, unittest.equals('foo')); + unittest.expect(o.creationTime, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + checkUnnamed139(o.digests); + unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.isActive, unittest.isTrue); + unittest.expect(o.keyLength, unittest.equals(42)); + unittest.expect(o.keyTag, unittest.equals(42)); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.publicKey, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterDnsKey--; +} + +core.int buildCounterDnsKeyDigest = 0; +buildDnsKeyDigest() { + var o = new api.DnsKeyDigest(); + buildCounterDnsKeyDigest++; + if (buildCounterDnsKeyDigest < 3) { + o.digest = "foo"; + o.type = "foo"; + } + buildCounterDnsKeyDigest--; + return o; +} + +checkDnsKeyDigest(api.DnsKeyDigest o) { + buildCounterDnsKeyDigest++; + if (buildCounterDnsKeyDigest < 3) { + unittest.expect(o.digest, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterDnsKeyDigest--; +} + +core.int buildCounterDnsKeySpec = 0; +buildDnsKeySpec() { + var o = new api.DnsKeySpec(); + buildCounterDnsKeySpec++; + if (buildCounterDnsKeySpec < 3) { + o.algorithm = "foo"; + o.keyLength = 42; + o.keyType = "foo"; + o.kind = "foo"; + } + buildCounterDnsKeySpec--; + return o; +} + +checkDnsKeySpec(api.DnsKeySpec o) { + buildCounterDnsKeySpec++; + if (buildCounterDnsKeySpec < 3) { + unittest.expect(o.algorithm, unittest.equals('foo')); + unittest.expect(o.keyLength, unittest.equals(42)); + unittest.expect(o.keyType, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterDnsKeySpec--; +} + +buildUnnamed140() { + var o = new core.List<api.DnsKey>(); + o.add(buildDnsKey()); + o.add(buildDnsKey()); + return o; +} + +checkUnnamed140(core.List<api.DnsKey> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDnsKey(o[0]); + checkDnsKey(o[1]); +} + +core.int buildCounterDnsKeysListResponse = 0; +buildDnsKeysListResponse() { + var o = new api.DnsKeysListResponse(); + buildCounterDnsKeysListResponse++; + if (buildCounterDnsKeysListResponse < 3) { + o.dnsKeys = buildUnnamed140(); + o.header = buildResponseHeader(); + o.kind = "foo"; + o.nextPageToken = "foo"; + } + buildCounterDnsKeysListResponse--; + return o; +} + +checkDnsKeysListResponse(api.DnsKeysListResponse o) { + buildCounterDnsKeysListResponse++; + if (buildCounterDnsKeysListResponse < 3) { + checkUnnamed140(o.dnsKeys); + checkResponseHeader(o.header); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterDnsKeysListResponse--; +} + +buildUnnamed141() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed141(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')); +} + +buildUnnamed142() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2642(core.List<core.String> o) { +checkUnnamed142(core.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,11 +315,13 @@ o.creationTime = "foo"; o.description = "foo"; o.dnsName = "foo"; + o.dnssecConfig = buildManagedZoneDnsSecConfig(); o.id = "foo"; o.kind = "foo"; + o.labels = buildUnnamed141(); o.name = "foo"; o.nameServerSet = "foo"; - o.nameServers = buildUnnamed2642(); + o.nameServers = buildUnnamed142(); } buildCounterManagedZone--; return o; @@ -178,23 +333,102 @@ unittest.expect(o.creationTime, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.dnsName, unittest.equals('foo')); + checkManagedZoneDnsSecConfig(o.dnssecConfig); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); + checkUnnamed141(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nameServerSet, unittest.equals('foo')); - checkUnnamed2642(o.nameServers); + checkUnnamed142(o.nameServers); } buildCounterManagedZone--; } -buildUnnamed2643() { +buildUnnamed143() { + var o = new core.List<api.DnsKeySpec>(); + o.add(buildDnsKeySpec()); + o.add(buildDnsKeySpec()); + return o; +} + +checkUnnamed143(core.List<api.DnsKeySpec> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDnsKeySpec(o[0]); + checkDnsKeySpec(o[1]); +} + +core.int buildCounterManagedZoneDnsSecConfig = 0; +buildManagedZoneDnsSecConfig() { + var o = new api.ManagedZoneDnsSecConfig(); + buildCounterManagedZoneDnsSecConfig++; + if (buildCounterManagedZoneDnsSecConfig < 3) { + o.defaultKeySpecs = buildUnnamed143(); + o.kind = "foo"; + o.nonExistence = "foo"; + o.state = "foo"; + } + buildCounterManagedZoneDnsSecConfig--; + return o; +} + +checkManagedZoneDnsSecConfig(api.ManagedZoneDnsSecConfig o) { + buildCounterManagedZoneDnsSecConfig++; + if (buildCounterManagedZoneDnsSecConfig < 3) { + checkUnnamed143(o.defaultKeySpecs); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nonExistence, unittest.equals('foo')); + unittest.expect(o.state, unittest.equals('foo')); + } + buildCounterManagedZoneDnsSecConfig--; +} + +buildUnnamed144() { + var o = new core.List<api.Operation>(); + o.add(buildOperation()); + o.add(buildOperation()); + return o; +} + +checkUnnamed144(core.List<api.Operation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkOperation(o[0]); + checkOperation(o[1]); +} + +core.int buildCounterManagedZoneOperationsListResponse = 0; +buildManagedZoneOperationsListResponse() { + var o = new api.ManagedZoneOperationsListResponse(); + buildCounterManagedZoneOperationsListResponse++; + if (buildCounterManagedZoneOperationsListResponse < 3) { + o.header = buildResponseHeader(); + o.kind = "foo"; + o.nextPageToken = "foo"; + o.operations = buildUnnamed144(); + } + buildCounterManagedZoneOperationsListResponse--; + return o; +} + +checkManagedZoneOperationsListResponse( + api.ManagedZoneOperationsListResponse o) { + buildCounterManagedZoneOperationsListResponse++; + if (buildCounterManagedZoneOperationsListResponse < 3) { + checkResponseHeader(o.header); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed144(o.operations); + } + buildCounterManagedZoneOperationsListResponse--; +} + +buildUnnamed145() { var o = new core.List<api.ManagedZone>(); o.add(buildManagedZone()); o.add(buildManagedZone()); return o; } -checkUnnamed2643(core.List<api.ManagedZone> o) { +checkUnnamed145(core.List<api.ManagedZone> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedZone(o[0]); checkManagedZone(o[1]); @@ -205,8 +439,9 @@ var o = new api.ManagedZonesListResponse(); buildCounterManagedZonesListResponse++; if (buildCounterManagedZonesListResponse < 3) { + o.header = buildResponseHeader(); o.kind = "foo"; - o.managedZones = buildUnnamed2643(); + o.managedZones = buildUnnamed145(); o.nextPageToken = "foo"; } buildCounterManagedZonesListResponse--; @@ -216,13 +451,89 @@ checkManagedZonesListResponse(api.ManagedZonesListResponse o) { buildCounterManagedZonesListResponse++; if (buildCounterManagedZonesListResponse < 3) { + checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2643(o.managedZones); + checkUnnamed145(o.managedZones); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterManagedZonesListResponse--; } +core.int buildCounterOperation = 0; +buildOperation() { + var o = new api.Operation(); + buildCounterOperation++; + if (buildCounterOperation < 3) { + o.dnsKeyContext = buildOperationDnsKeyContext(); + o.id = "foo"; + o.kind = "foo"; + o.startTime = "foo"; + o.status = "foo"; + o.type = "foo"; + o.user = "foo"; + o.zoneContext = buildOperationManagedZoneContext(); + } + buildCounterOperation--; + return o; +} + +checkOperation(api.Operation o) { + buildCounterOperation++; + if (buildCounterOperation < 3) { + checkOperationDnsKeyContext(o.dnsKeyContext); + unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.startTime, unittest.equals('foo')); + unittest.expect(o.status, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + unittest.expect(o.user, unittest.equals('foo')); + checkOperationManagedZoneContext(o.zoneContext); + } + buildCounterOperation--; +} + +core.int buildCounterOperationDnsKeyContext = 0; +buildOperationDnsKeyContext() { + var o = new api.OperationDnsKeyContext(); + buildCounterOperationDnsKeyContext++; + if (buildCounterOperationDnsKeyContext < 3) { + o.newValue = buildDnsKey(); + o.oldValue = buildDnsKey(); + } + buildCounterOperationDnsKeyContext--; + return o; +} + +checkOperationDnsKeyContext(api.OperationDnsKeyContext o) { + buildCounterOperationDnsKeyContext++; + if (buildCounterOperationDnsKeyContext < 3) { + checkDnsKey(o.newValue); + checkDnsKey(o.oldValue); + } + buildCounterOperationDnsKeyContext--; +} + +core.int buildCounterOperationManagedZoneContext = 0; +buildOperationManagedZoneContext() { + var o = new api.OperationManagedZoneContext(); + buildCounterOperationManagedZoneContext++; + if (buildCounterOperationManagedZoneContext < 3) { + o.newValue = buildManagedZone(); + o.oldValue = buildManagedZone(); + } + buildCounterOperationManagedZoneContext--; + return o; +} + +checkOperationManagedZoneContext(api.OperationManagedZoneContext o) { + buildCounterOperationManagedZoneContext++; + if (buildCounterOperationManagedZoneContext < 3) { + checkManagedZone(o.newValue); + checkManagedZone(o.oldValue); + } + buildCounterOperationManagedZoneContext--; +} + core.int buildCounterProject = 0; buildProject() { var o = new api.Project(); @@ -248,11 +559,26 @@ buildCounterProject--; } +buildUnnamed146() { + var o = new core.List<api.DnsKeySpec>(); + o.add(buildDnsKeySpec()); + o.add(buildDnsKeySpec()); + return o; +} + +checkUnnamed146(core.List<api.DnsKeySpec> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDnsKeySpec(o[0]); + checkDnsKeySpec(o[1]); +} + core.int buildCounterQuota = 0; buildQuota() { var o = new api.Quota(); buildCounterQuota++; if (buildCounterQuota < 3) { + o.blackHoleHidesSystemZones = true; + o.dnsKeysPerManagedZone = 42; o.kind = "foo"; o.managedZones = 42; o.resourceRecordsPerRrset = 42; @@ -260,6 +586,7 @@ o.rrsetDeletionsPerChange = 42; o.rrsetsPerManagedZone = 42; o.totalRrdataSizePerChange = 42; + o.whitelistedKeySpecs = buildUnnamed146(); } buildCounterQuota--; return o; @@ -268,6 +595,8 @@ checkQuota(api.Quota o) { buildCounterQuota++; if (buildCounterQuota < 3) { + unittest.expect(o.blackHoleHidesSystemZones, unittest.isTrue); + unittest.expect(o.dnsKeysPerManagedZone, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.managedZones, unittest.equals(42)); unittest.expect(o.resourceRecordsPerRrset, unittest.equals(42)); @@ -275,18 +604,32 @@ unittest.expect(o.rrsetDeletionsPerChange, unittest.equals(42)); unittest.expect(o.rrsetsPerManagedZone, unittest.equals(42)); unittest.expect(o.totalRrdataSizePerChange, unittest.equals(42)); + checkUnnamed146(o.whitelistedKeySpecs); } buildCounterQuota--; } -buildUnnamed2644() { +buildUnnamed147() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2644(core.List<core.String> o) { +checkUnnamed147(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed148() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed148(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -299,7 +642,8 @@ if (buildCounterResourceRecordSet < 3) { o.kind = "foo"; o.name = "foo"; - o.rrdatas = buildUnnamed2644(); + o.rrdatas = buildUnnamed147(); + o.signatureRrdatas = buildUnnamed148(); o.ttl = 42; o.type = "foo"; } @@ -312,21 +656,22 @@ if (buildCounterResourceRecordSet < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2644(o.rrdatas); + checkUnnamed147(o.rrdatas); + checkUnnamed148(o.signatureRrdatas); unittest.expect(o.ttl, unittest.equals(42)); unittest.expect(o.type, unittest.equals('foo')); } buildCounterResourceRecordSet--; } -buildUnnamed2645() { +buildUnnamed149() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed2645(core.List<api.ResourceRecordSet> o) { +checkUnnamed149(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); @@ -337,9 +682,10 @@ var o = new api.ResourceRecordSetsListResponse(); buildCounterResourceRecordSetsListResponse++; if (buildCounterResourceRecordSetsListResponse < 3) { + o.header = buildResponseHeader(); o.kind = "foo"; o.nextPageToken = "foo"; - o.rrsets = buildUnnamed2645(); + o.rrsets = buildUnnamed149(); } buildCounterResourceRecordSetsListResponse--; return o; @@ -348,13 +694,33 @@ checkResourceRecordSetsListResponse(api.ResourceRecordSetsListResponse o) { buildCounterResourceRecordSetsListResponse++; if (buildCounterResourceRecordSetsListResponse < 3) { + checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2645(o.rrsets); + checkUnnamed149(o.rrsets); } buildCounterResourceRecordSetsListResponse--; } +core.int buildCounterResponseHeader = 0; +buildResponseHeader() { + var o = new api.ResponseHeader(); + buildCounterResponseHeader++; + if (buildCounterResponseHeader < 3) { + o.operationId = "foo"; + } + buildCounterResponseHeader--; + return o; +} + +checkResponseHeader(api.ResponseHeader o) { + buildCounterResponseHeader++; + if (buildCounterResponseHeader < 3) { + unittest.expect(o.operationId, unittest.equals('foo')); + } + buildCounterResponseHeader--; +} + main() { unittest.group("obj-schema-Change", () { unittest.test("to-json--from-json", () { @@ -372,6 +738,38 @@ }); }); + unittest.group("obj-schema-DnsKey", () { + unittest.test("to-json--from-json", () { + var o = buildDnsKey(); + var od = new api.DnsKey.fromJson(o.toJson()); + checkDnsKey(od); + }); + }); + + unittest.group("obj-schema-DnsKeyDigest", () { + unittest.test("to-json--from-json", () { + var o = buildDnsKeyDigest(); + var od = new api.DnsKeyDigest.fromJson(o.toJson()); + checkDnsKeyDigest(od); + }); + }); + + unittest.group("obj-schema-DnsKeySpec", () { + unittest.test("to-json--from-json", () { + var o = buildDnsKeySpec(); + var od = new api.DnsKeySpec.fromJson(o.toJson()); + checkDnsKeySpec(od); + }); + }); + + unittest.group("obj-schema-DnsKeysListResponse", () { + unittest.test("to-json--from-json", () { + var o = buildDnsKeysListResponse(); + var od = new api.DnsKeysListResponse.fromJson(o.toJson()); + checkDnsKeysListResponse(od); + }); + }); + unittest.group("obj-schema-ManagedZone", () { unittest.test("to-json--from-json", () { var o = buildManagedZone(); @@ -380,6 +778,22 @@ }); }); + unittest.group("obj-schema-ManagedZoneDnsSecConfig", () { + unittest.test("to-json--from-json", () { + var o = buildManagedZoneDnsSecConfig(); + var od = new api.ManagedZoneDnsSecConfig.fromJson(o.toJson()); + checkManagedZoneDnsSecConfig(od); + }); + }); + + unittest.group("obj-schema-ManagedZoneOperationsListResponse", () { + unittest.test("to-json--from-json", () { + var o = buildManagedZoneOperationsListResponse(); + var od = new api.ManagedZoneOperationsListResponse.fromJson(o.toJson()); + checkManagedZoneOperationsListResponse(od); + }); + }); + unittest.group("obj-schema-ManagedZonesListResponse", () { unittest.test("to-json--from-json", () { var o = buildManagedZonesListResponse(); @@ -388,6 +802,30 @@ }); }); + 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-OperationDnsKeyContext", () { + unittest.test("to-json--from-json", () { + var o = buildOperationDnsKeyContext(); + var od = new api.OperationDnsKeyContext.fromJson(o.toJson()); + checkOperationDnsKeyContext(od); + }); + }); + + unittest.group("obj-schema-OperationManagedZoneContext", () { + unittest.test("to-json--from-json", () { + var o = buildOperationManagedZoneContext(); + var od = new api.OperationManagedZoneContext.fromJson(o.toJson()); + checkOperationManagedZoneContext(od); + }); + }); + unittest.group("obj-schema-Project", () { unittest.test("to-json--from-json", () { var o = buildProject(); @@ -420,6 +858,14 @@ }); }); + unittest.group("obj-schema-ResponseHeader", () { + unittest.test("to-json--from-json", () { + var o = buildResponseHeader(); + var od = new api.ResponseHeader.fromJson(o.toJson()); + checkResponseHeader(od); + }); + }); + unittest.group("resource-ChangesResourceApi", () { unittest.test("method--create", () { var mock = new HttpServerMock(); @@ -427,6 +873,7 @@ var arg_request = buildChange(); var arg_project = "foo"; var arg_managedZone = "foo"; + var arg_clientOperationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Change.fromJson(json); @@ -458,6 +905,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["clientOperationId"].first, + unittest.equals(arg_clientOperationId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -468,7 +917,7 @@ }), true); res .create(arg_request, arg_project, arg_managedZone, - $fields: arg_$fields) + clientOperationId: arg_clientOperationId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkChange(response); }))); @@ -480,6 +929,7 @@ var arg_project = "foo"; var arg_managedZone = "foo"; var arg_changeId = "foo"; + var arg_clientOperationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -508,6 +958,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["clientOperationId"].first, + unittest.equals(arg_clientOperationId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -517,7 +969,8 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .get(arg_project, arg_managedZone, arg_changeId, $fields: arg_$fields) + .get(arg_project, arg_managedZone, arg_changeId, + clientOperationId: arg_clientOperationId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkChange(response); }))); @@ -588,12 +1041,252 @@ }); }); + unittest.group("resource-DnsKeysResourceApi", () { + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.DnsKeysResourceApi res = new api.DnsApi(mock).dnsKeys; + var arg_project = "foo"; + var arg_managedZone = "foo"; + var arg_dnsKeyId = "foo"; + var arg_clientOperationId = "foo"; + var arg_digestType = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["clientOperationId"].first, + unittest.equals(arg_clientOperationId)); + unittest.expect( + queryMap["digestType"].first, unittest.equals(arg_digestType)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildDnsKey()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_project, arg_managedZone, arg_dnsKeyId, + clientOperationId: arg_clientOperationId, + digestType: arg_digestType, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkDnsKey(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.DnsKeysResourceApi res = new api.DnsApi(mock).dnsKeys; + var arg_project = "foo"; + var arg_managedZone = "foo"; + var arg_digestType = "foo"; + var arg_maxResults = 42; + var arg_pageToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["digestType"].first, unittest.equals(arg_digestType)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildDnsKeysListResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_project, arg_managedZone, + digestType: arg_digestType, + maxResults: arg_maxResults, + pageToken: arg_pageToken, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkDnsKeysListResponse(response); + }))); + }); + }); + + unittest.group("resource-ManagedZoneOperationsResourceApi", () { + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.ManagedZoneOperationsResourceApi res = + new api.DnsApi(mock).managedZoneOperations; + var arg_project = "foo"; + var arg_managedZone = "foo"; + var arg_operation = "foo"; + var arg_clientOperationId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["clientOperationId"].first, + unittest.equals(arg_clientOperationId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_project, arg_managedZone, arg_operation, + clientOperationId: arg_clientOperationId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.ManagedZoneOperationsResourceApi res = + new api.DnsApi(mock).managedZoneOperations; + var arg_project = "foo"; + var arg_managedZone = "foo"; + var arg_maxResults = 42; + var arg_pageToken = "foo"; + var arg_sortBy = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["sortBy"].first, unittest.equals(arg_sortBy)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildManagedZoneOperationsListResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_project, arg_managedZone, + maxResults: arg_maxResults, + pageToken: arg_pageToken, + sortBy: arg_sortBy, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkManagedZoneOperationsListResponse(response); + }))); + }); + }); + unittest.group("resource-ManagedZonesResourceApi", () { unittest.test("method--create", () { var mock = new HttpServerMock(); api.ManagedZonesResourceApi res = new api.DnsApi(mock).managedZones; var arg_request = buildManagedZone(); var arg_project = "foo"; + var arg_clientOperationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ManagedZone.fromJson(json); @@ -625,6 +1318,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["clientOperationId"].first, + unittest.equals(arg_clientOperationId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -634,7 +1329,8 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .create(arg_request, arg_project, $fields: arg_$fields) + .create(arg_request, arg_project, + clientOperationId: arg_clientOperationId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkManagedZone(response); }))); @@ -645,6 +1341,7 @@ api.ManagedZonesResourceApi res = new api.DnsApi(mock).managedZones; var arg_project = "foo"; var arg_managedZone = "foo"; + var arg_clientOperationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -673,6 +1370,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["clientOperationId"].first, + unittest.equals(arg_clientOperationId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -682,7 +1381,8 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .delete(arg_project, arg_managedZone, $fields: arg_$fields) + .delete(arg_project, arg_managedZone, + clientOperationId: arg_clientOperationId, $fields: arg_$fields) .then(unittest.expectAsync1((_) {})); }); @@ -691,6 +1391,7 @@ api.ManagedZonesResourceApi res = new api.DnsApi(mock).managedZones; var arg_project = "foo"; var arg_managedZone = "foo"; + var arg_clientOperationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -719,6 +1420,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["clientOperationId"].first, + unittest.equals(arg_clientOperationId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -728,7 +1431,8 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .get(arg_project, arg_managedZone, $fields: arg_$fields) + .get(arg_project, arg_managedZone, + clientOperationId: arg_clientOperationId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkManagedZone(response); }))); @@ -793,6 +1497,118 @@ checkManagedZonesListResponse(response); }))); }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.ManagedZonesResourceApi res = new api.DnsApi(mock).managedZones; + var arg_request = buildManagedZone(); + var arg_project = "foo"; + var arg_managedZone = "foo"; + var arg_clientOperationId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.ManagedZone.fromJson(json); + checkManagedZone(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["clientOperationId"].first, + unittest.equals(arg_clientOperationId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_managedZone, + clientOperationId: arg_clientOperationId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--update", () { + var mock = new HttpServerMock(); + api.ManagedZonesResourceApi res = new api.DnsApi(mock).managedZones; + var arg_request = buildManagedZone(); + var arg_project = "foo"; + var arg_managedZone = "foo"; + var arg_clientOperationId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.ManagedZone.fromJson(json); + checkManagedZone(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["clientOperationId"].first, + unittest.equals(arg_clientOperationId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_managedZone, + clientOperationId: arg_clientOperationId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); }); unittest.group("resource-ProjectsResourceApi", () { @@ -800,6 +1616,7 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.DnsApi(mock).projects; var arg_project = "foo"; + var arg_clientOperationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -828,6 +1645,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["clientOperationId"].first, + unittest.equals(arg_clientOperationId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -837,7 +1656,8 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .get(arg_project, $fields: arg_$fields) + .get(arg_project, + clientOperationId: arg_clientOperationId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkProject(response); })));
diff --git a/generated/googleapis/test/doubleclickbidmanager/v1_test.dart b/generated/googleapis/test/doubleclickbidmanager/v1_test.dart index c1a6778..4cdeb5c 100644 --- a/generated/googleapis/test/doubleclickbidmanager/v1_test.dart +++ b/generated/googleapis/test/doubleclickbidmanager/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1635() { +buildUnnamed1591() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1635(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')); @@ -69,7 +69,7 @@ buildCounterDownloadLineItemsRequest++; if (buildCounterDownloadLineItemsRequest < 3) { o.fileSpec = "foo"; - o.filterIds = buildUnnamed1635(); + o.filterIds = buildUnnamed1591(); o.filterType = "foo"; o.format = "foo"; } @@ -81,7 +81,7 @@ buildCounterDownloadLineItemsRequest++; if (buildCounterDownloadLineItemsRequest < 3) { unittest.expect(o.fileSpec, unittest.equals('foo')); - checkUnnamed1635(o.filterIds); + checkUnnamed1591(o.filterIds); unittest.expect(o.filterType, unittest.equals('foo')); unittest.expect(o.format, unittest.equals('foo')); } @@ -107,27 +107,27 @@ buildCounterDownloadLineItemsResponse--; } -buildUnnamed1636() { +buildUnnamed1592() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1636(core.List<core.String> o) { +checkUnnamed1592(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1637() { +buildUnnamed1593() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1637(core.List<core.String> o) { +checkUnnamed1593(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -138,8 +138,8 @@ var o = new api.DownloadRequest(); buildCounterDownloadRequest++; if (buildCounterDownloadRequest < 3) { - o.fileTypes = buildUnnamed1636(); - o.filterIds = buildUnnamed1637(); + o.fileTypes = buildUnnamed1592(); + o.filterIds = buildUnnamed1593(); o.filterType = "foo"; o.version = "foo"; } @@ -150,8 +150,8 @@ checkDownloadRequest(api.DownloadRequest o) { buildCounterDownloadRequest++; if (buildCounterDownloadRequest < 3) { - checkUnnamed1636(o.fileTypes); - checkUnnamed1637(o.filterIds); + checkUnnamed1592(o.fileTypes); + checkUnnamed1593(o.filterIds); unittest.expect(o.filterType, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); } @@ -206,14 +206,14 @@ buildCounterFilterPair--; } -buildUnnamed1638() { +buildUnnamed1594() { var o = new core.List<api.Query>(); o.add(buildQuery()); o.add(buildQuery()); return o; } -checkUnnamed1638(core.List<api.Query> o) { +checkUnnamed1594(core.List<api.Query> o) { unittest.expect(o, unittest.hasLength(2)); checkQuery(o[0]); checkQuery(o[1]); @@ -225,7 +225,7 @@ buildCounterListQueriesResponse++; if (buildCounterListQueriesResponse < 3) { o.kind = "foo"; - o.queries = buildUnnamed1638(); + o.queries = buildUnnamed1594(); } buildCounterListQueriesResponse--; return o; @@ -235,19 +235,19 @@ buildCounterListQueriesResponse++; if (buildCounterListQueriesResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1638(o.queries); + checkUnnamed1594(o.queries); } buildCounterListQueriesResponse--; } -buildUnnamed1639() { +buildUnnamed1595() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed1639(core.List<api.Report> o) { +checkUnnamed1595(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -259,7 +259,7 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { o.kind = "foo"; - o.reports = buildUnnamed1639(); + o.reports = buildUnnamed1595(); } buildCounterListReportsResponse--; return o; @@ -269,45 +269,45 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1639(o.reports); + checkUnnamed1595(o.reports); } buildCounterListReportsResponse--; } -buildUnnamed1640() { +buildUnnamed1596() { var o = new core.List<api.FilterPair>(); o.add(buildFilterPair()); o.add(buildFilterPair()); return o; } -checkUnnamed1640(core.List<api.FilterPair> o) { +checkUnnamed1596(core.List<api.FilterPair> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterPair(o[0]); checkFilterPair(o[1]); } -buildUnnamed1641() { +buildUnnamed1597() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1641(core.List<core.String> o) { +checkUnnamed1597(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1642() { +buildUnnamed1598() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1642(core.List<core.String> o) { +checkUnnamed1598(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -318,10 +318,10 @@ var o = new api.Parameters(); buildCounterParameters++; if (buildCounterParameters < 3) { - o.filters = buildUnnamed1640(); - o.groupBys = buildUnnamed1641(); + o.filters = buildUnnamed1596(); + o.groupBys = buildUnnamed1597(); o.includeInviteData = true; - o.metrics = buildUnnamed1642(); + o.metrics = buildUnnamed1598(); o.type = "foo"; } buildCounterParameters--; @@ -331,10 +331,10 @@ checkParameters(api.Parameters o) { buildCounterParameters++; if (buildCounterParameters < 3) { - checkUnnamed1640(o.filters); - checkUnnamed1641(o.groupBys); + checkUnnamed1596(o.filters); + checkUnnamed1597(o.groupBys); unittest.expect(o.includeInviteData, unittest.isTrue); - checkUnnamed1642(o.metrics); + checkUnnamed1598(o.metrics); unittest.expect(o.type, unittest.equals('foo')); } buildCounterParameters--; @@ -373,14 +373,14 @@ buildCounterQuery--; } -buildUnnamed1643() { +buildUnnamed1599() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1643(core.List<core.String> o) { +checkUnnamed1599(core.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,7 +400,7 @@ o.reportCount = 42; o.running = true; o.sendNotification = true; - o.shareEmailAddress = buildUnnamed1643(); + o.shareEmailAddress = buildUnnamed1599(); o.title = "foo"; } buildCounterQueryMetadata--; @@ -420,7 +420,7 @@ unittest.expect(o.reportCount, unittest.equals(42)); unittest.expect(o.running, unittest.isTrue); unittest.expect(o.sendNotification, unittest.isTrue); - checkUnnamed1643(o.shareEmailAddress); + checkUnnamed1599(o.shareEmailAddress); unittest.expect(o.title, unittest.equals('foo')); } buildCounterQueryMetadata--; @@ -564,14 +564,14 @@ buildCounterReportStatus--; } -buildUnnamed1644() { +buildUnnamed1600() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1644(core.List<core.String> o) { +checkUnnamed1600(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -585,7 +585,7 @@ o.changed = true; o.entityId = "foo"; o.entityName = "foo"; - o.errors = buildUnnamed1644(); + o.errors = buildUnnamed1600(); o.persisted = true; o.rowNumber = 42; } @@ -599,7 +599,7 @@ unittest.expect(o.changed, unittest.isTrue); unittest.expect(o.entityId, unittest.equals('foo')); unittest.expect(o.entityName, unittest.equals('foo')); - checkUnnamed1644(o.errors); + checkUnnamed1600(o.errors); unittest.expect(o.persisted, unittest.isTrue); unittest.expect(o.rowNumber, unittest.equals(42)); } @@ -673,27 +673,27 @@ buildCounterUploadLineItemsResponse--; } -buildUnnamed1645() { +buildUnnamed1601() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1645(core.List<core.String> o) { +checkUnnamed1601(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1646() { +buildUnnamed1602() { var o = new core.List<api.RowStatus>(); o.add(buildRowStatus()); o.add(buildRowStatus()); return o; } -checkUnnamed1646(core.List<api.RowStatus> o) { +checkUnnamed1602(core.List<api.RowStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRowStatus(o[0]); checkRowStatus(o[1]); @@ -704,8 +704,8 @@ var o = new api.UploadStatus(); buildCounterUploadStatus++; if (buildCounterUploadStatus < 3) { - o.errors = buildUnnamed1645(); - o.rowStatus = buildUnnamed1646(); + o.errors = buildUnnamed1601(); + o.rowStatus = buildUnnamed1602(); } buildCounterUploadStatus--; return o; @@ -714,8 +714,8 @@ checkUploadStatus(api.UploadStatus o) { buildCounterUploadStatus++; if (buildCounterUploadStatus < 3) { - checkUnnamed1645(o.errors); - checkUnnamed1646(o.rowStatus); + checkUnnamed1601(o.errors); + checkUnnamed1602(o.rowStatus); } buildCounterUploadStatus--; }
diff --git a/generated/googleapis/test/doubleclicksearch/v2_test.dart b/generated/googleapis/test/doubleclicksearch/v2_test.dart index 54f1547..7cb7d3c 100644 --- a/generated/googleapis/test/doubleclicksearch/v2_test.dart +++ b/generated/googleapis/test/doubleclicksearch/v2_test.dart
@@ -79,27 +79,27 @@ buildCounterAvailability--; } -buildUnnamed1130() { +buildUnnamed735() { var o = new core.List<api.CustomDimension>(); o.add(buildCustomDimension()); o.add(buildCustomDimension()); return o; } -checkUnnamed1130(core.List<api.CustomDimension> o) { +checkUnnamed735(core.List<api.CustomDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomDimension(o[0]); checkCustomDimension(o[1]); } -buildUnnamed1131() { +buildUnnamed736() { var o = new core.List<api.CustomMetric>(); o.add(buildCustomMetric()); o.add(buildCustomMetric()); return o; } -checkUnnamed1131(core.List<api.CustomMetric> o) { +checkUnnamed736(core.List<api.CustomMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomMetric(o[0]); checkCustomMetric(o[1]); @@ -124,8 +124,8 @@ o.countMillis = "foo"; o.criterionId = "foo"; o.currencyCode = "foo"; - o.customDimension = buildUnnamed1130(); - o.customMetric = buildUnnamed1131(); + o.customDimension = buildUnnamed735(); + o.customMetric = buildUnnamed736(); o.deviceType = "foo"; o.dsConversionId = "foo"; o.engineAccountId = "foo"; @@ -165,8 +165,8 @@ unittest.expect(o.countMillis, unittest.equals('foo')); unittest.expect(o.criterionId, unittest.equals('foo')); unittest.expect(o.currencyCode, unittest.equals('foo')); - checkUnnamed1130(o.customDimension); - checkUnnamed1131(o.customMetric); + checkUnnamed735(o.customDimension); + checkUnnamed736(o.customMetric); unittest.expect(o.deviceType, unittest.equals('foo')); unittest.expect(o.dsConversionId, unittest.equals('foo')); unittest.expect(o.engineAccountId, unittest.equals('foo')); @@ -188,14 +188,14 @@ buildCounterConversion--; } -buildUnnamed1132() { +buildUnnamed737() { var o = new core.List<api.Conversion>(); o.add(buildConversion()); o.add(buildConversion()); return o; } -checkUnnamed1132(core.List<api.Conversion> o) { +checkUnnamed737(core.List<api.Conversion> o) { unittest.expect(o, unittest.hasLength(2)); checkConversion(o[0]); checkConversion(o[1]); @@ -206,7 +206,7 @@ var o = new api.ConversionList(); buildCounterConversionList++; if (buildCounterConversionList < 3) { - o.conversion = buildUnnamed1132(); + o.conversion = buildUnnamed737(); o.kind = "foo"; } buildCounterConversionList--; @@ -216,7 +216,7 @@ checkConversionList(api.ConversionList o) { buildCounterConversionList++; if (buildCounterConversionList < 3) { - checkUnnamed1132(o.conversion); + checkUnnamed737(o.conversion); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionList--; @@ -285,27 +285,27 @@ buildCounterReportFiles--; } -buildUnnamed1133() { +buildUnnamed738() { var o = new core.List<api.ReportFiles>(); o.add(buildReportFiles()); o.add(buildReportFiles()); return o; } -checkUnnamed1133(core.List<api.ReportFiles> o) { +checkUnnamed738(core.List<api.ReportFiles> o) { unittest.expect(o, unittest.hasLength(2)); checkReportFiles(o[0]); checkReportFiles(o[1]); } -buildUnnamed1134() { +buildUnnamed739() { var o = new core.List<api.ReportRow>(); o.add(buildReportRow()); o.add(buildReportRow()); return o; } -checkUnnamed1134(core.List<api.ReportRow> o) { +checkUnnamed739(core.List<api.ReportRow> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRow(o[0]); checkReportRow(o[1]); @@ -316,13 +316,13 @@ var o = new api.Report(); buildCounterReport++; if (buildCounterReport < 3) { - o.files = buildUnnamed1133(); + o.files = buildUnnamed738(); o.id = "foo"; o.isReportReady = true; o.kind = "foo"; o.request = buildReportRequest(); o.rowCount = 42; - o.rows = buildUnnamed1134(); + o.rows = buildUnnamed739(); o.statisticsCurrencyCode = "foo"; o.statisticsTimeZone = "foo"; } @@ -333,13 +333,13 @@ checkReport(api.Report o) { buildCounterReport++; if (buildCounterReport < 3) { - checkUnnamed1133(o.files); + checkUnnamed738(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)); - checkUnnamed1134(o.rows); + checkUnnamed739(o.rows); unittest.expect(o.statisticsCurrencyCode, unittest.equals('foo')); unittest.expect(o.statisticsTimeZone, unittest.equals('foo')); } @@ -383,20 +383,20 @@ buildCounterReportApiColumnSpec--; } -buildUnnamed1135() { +buildUnnamed740() { var o = new core.List<api.ReportApiColumnSpec>(); o.add(buildReportApiColumnSpec()); o.add(buildReportApiColumnSpec()); return o; } -checkUnnamed1135(core.List<api.ReportApiColumnSpec> o) { +checkUnnamed740(core.List<api.ReportApiColumnSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkReportApiColumnSpec(o[0]); checkReportApiColumnSpec(o[1]); } -buildUnnamed1136() { +buildUnnamed741() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -411,7 +411,7 @@ return o; } -checkUnnamed1136(core.List<core.Object> o) { +checkUnnamed741(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -432,7 +432,7 @@ if (buildCounterReportRequestFilters < 3) { o.column = buildReportApiColumnSpec(); o.operator = "foo"; - o.values = buildUnnamed1136(); + o.values = buildUnnamed741(); } buildCounterReportRequestFilters--; return o; @@ -443,19 +443,19 @@ if (buildCounterReportRequestFilters < 3) { checkReportApiColumnSpec(o.column); unittest.expect(o.operator, unittest.equals('foo')); - checkUnnamed1136(o.values); + checkUnnamed741(o.values); } buildCounterReportRequestFilters--; } -buildUnnamed1137() { +buildUnnamed742() { var o = new core.List<api.ReportRequestFilters>(); o.add(buildReportRequestFilters()); o.add(buildReportRequestFilters()); return o; } -checkUnnamed1137(core.List<api.ReportRequestFilters> o) { +checkUnnamed742(core.List<api.ReportRequestFilters> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRequestFilters(o[0]); checkReportRequestFilters(o[1]); @@ -482,14 +482,14 @@ buildCounterReportRequestOrderBy--; } -buildUnnamed1138() { +buildUnnamed743() { var o = new core.List<api.ReportRequestOrderBy>(); o.add(buildReportRequestOrderBy()); o.add(buildReportRequestOrderBy()); return o; } -checkUnnamed1138(core.List<api.ReportRequestOrderBy> o) { +checkUnnamed743(core.List<api.ReportRequestOrderBy> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRequestOrderBy(o[0]); checkReportRequestOrderBy(o[1]); @@ -559,13 +559,13 @@ var o = new api.ReportRequest(); buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - o.columns = buildUnnamed1135(); + o.columns = buildUnnamed740(); o.downloadFormat = "foo"; - o.filters = buildUnnamed1137(); + o.filters = buildUnnamed742(); o.includeDeletedEntities = true; o.includeRemovedEntities = true; o.maxRowsPerFile = 42; - o.orderBy = buildUnnamed1138(); + o.orderBy = buildUnnamed743(); o.reportScope = buildReportRequestReportScope(); o.reportType = "foo"; o.rowCount = 42; @@ -581,13 +581,13 @@ checkReportRequest(api.ReportRequest o) { buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - checkUnnamed1135(o.columns); + checkUnnamed740(o.columns); unittest.expect(o.downloadFormat, unittest.equals('foo')); - checkUnnamed1137(o.filters); + checkUnnamed742(o.filters); unittest.expect(o.includeDeletedEntities, unittest.isTrue); unittest.expect(o.includeRemovedEntities, unittest.isTrue); unittest.expect(o.maxRowsPerFile, unittest.equals(42)); - checkUnnamed1138(o.orderBy); + checkUnnamed743(o.orderBy); checkReportRequestReportScope(o.reportScope); unittest.expect(o.reportType, unittest.equals('foo')); unittest.expect(o.rowCount, unittest.equals(42)); @@ -651,14 +651,14 @@ buildCounterSavedColumn--; } -buildUnnamed1139() { +buildUnnamed744() { var o = new core.List<api.SavedColumn>(); o.add(buildSavedColumn()); o.add(buildSavedColumn()); return o; } -checkUnnamed1139(core.List<api.SavedColumn> o) { +checkUnnamed744(core.List<api.SavedColumn> o) { unittest.expect(o, unittest.hasLength(2)); checkSavedColumn(o[0]); checkSavedColumn(o[1]); @@ -669,7 +669,7 @@ var o = new api.SavedColumnList(); buildCounterSavedColumnList++; if (buildCounterSavedColumnList < 3) { - o.items = buildUnnamed1139(); + o.items = buildUnnamed744(); o.kind = "foo"; } buildCounterSavedColumnList--; @@ -679,20 +679,20 @@ checkSavedColumnList(api.SavedColumnList o) { buildCounterSavedColumnList++; if (buildCounterSavedColumnList < 3) { - checkUnnamed1139(o.items); + checkUnnamed744(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterSavedColumnList--; } -buildUnnamed1140() { +buildUnnamed745() { var o = new core.List<api.Availability>(); o.add(buildAvailability()); o.add(buildAvailability()); return o; } -checkUnnamed1140(core.List<api.Availability> o) { +checkUnnamed745(core.List<api.Availability> o) { unittest.expect(o, unittest.hasLength(2)); checkAvailability(o[0]); checkAvailability(o[1]); @@ -703,7 +703,7 @@ var o = new api.UpdateAvailabilityRequest(); buildCounterUpdateAvailabilityRequest++; if (buildCounterUpdateAvailabilityRequest < 3) { - o.availabilities = buildUnnamed1140(); + o.availabilities = buildUnnamed745(); } buildCounterUpdateAvailabilityRequest--; return o; @@ -712,19 +712,19 @@ checkUpdateAvailabilityRequest(api.UpdateAvailabilityRequest o) { buildCounterUpdateAvailabilityRequest++; if (buildCounterUpdateAvailabilityRequest < 3) { - checkUnnamed1140(o.availabilities); + checkUnnamed745(o.availabilities); } buildCounterUpdateAvailabilityRequest--; } -buildUnnamed1141() { +buildUnnamed746() { var o = new core.List<api.Availability>(); o.add(buildAvailability()); o.add(buildAvailability()); return o; } -checkUnnamed1141(core.List<api.Availability> o) { +checkUnnamed746(core.List<api.Availability> o) { unittest.expect(o, unittest.hasLength(2)); checkAvailability(o[0]); checkAvailability(o[1]); @@ -735,7 +735,7 @@ var o = new api.UpdateAvailabilityResponse(); buildCounterUpdateAvailabilityResponse++; if (buildCounterUpdateAvailabilityResponse < 3) { - o.availabilities = buildUnnamed1141(); + o.availabilities = buildUnnamed746(); } buildCounterUpdateAvailabilityResponse--; return o; @@ -744,7 +744,7 @@ checkUpdateAvailabilityResponse(api.UpdateAvailabilityResponse o) { buildCounterUpdateAvailabilityResponse++; if (buildCounterUpdateAvailabilityResponse < 3) { - checkUnnamed1141(o.availabilities); + checkUnnamed746(o.availabilities); } buildCounterUpdateAvailabilityResponse--; }
diff --git a/generated/googleapis/test/drive/v2_test.dart b/generated/googleapis/test/drive/v2_test.dart index 6cedb30..5872f25 100644 --- a/generated/googleapis/test/drive/v2_test.dart +++ b/generated/googleapis/test/drive/v2_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed348() { +buildUnnamed4247() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed348(core.List<core.String> o) { +checkUnnamed4247(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -68,7 +68,7 @@ var o = new api.AboutAdditionalRoleInfoRoleSets(); buildCounterAboutAdditionalRoleInfoRoleSets++; if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { - o.additionalRoles = buildUnnamed348(); + o.additionalRoles = buildUnnamed4247(); o.primaryRole = "foo"; } buildCounterAboutAdditionalRoleInfoRoleSets--; @@ -78,20 +78,20 @@ checkAboutAdditionalRoleInfoRoleSets(api.AboutAdditionalRoleInfoRoleSets o) { buildCounterAboutAdditionalRoleInfoRoleSets++; if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { - checkUnnamed348(o.additionalRoles); + checkUnnamed4247(o.additionalRoles); unittest.expect(o.primaryRole, unittest.equals('foo')); } buildCounterAboutAdditionalRoleInfoRoleSets--; } -buildUnnamed349() { +buildUnnamed4248() { var o = new core.List<api.AboutAdditionalRoleInfoRoleSets>(); o.add(buildAboutAdditionalRoleInfoRoleSets()); o.add(buildAboutAdditionalRoleInfoRoleSets()); return o; } -checkUnnamed349(core.List<api.AboutAdditionalRoleInfoRoleSets> o) { +checkUnnamed4248(core.List<api.AboutAdditionalRoleInfoRoleSets> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutAdditionalRoleInfoRoleSets(o[0]); checkAboutAdditionalRoleInfoRoleSets(o[1]); @@ -102,7 +102,7 @@ var o = new api.AboutAdditionalRoleInfo(); buildCounterAboutAdditionalRoleInfo++; if (buildCounterAboutAdditionalRoleInfo < 3) { - o.roleSets = buildUnnamed349(); + o.roleSets = buildUnnamed4248(); o.type = "foo"; } buildCounterAboutAdditionalRoleInfo--; @@ -112,33 +112,33 @@ checkAboutAdditionalRoleInfo(api.AboutAdditionalRoleInfo o) { buildCounterAboutAdditionalRoleInfo++; if (buildCounterAboutAdditionalRoleInfo < 3) { - checkUnnamed349(o.roleSets); + checkUnnamed4248(o.roleSets); unittest.expect(o.type, unittest.equals('foo')); } buildCounterAboutAdditionalRoleInfo--; } -buildUnnamed350() { +buildUnnamed4249() { var o = new core.List<api.AboutAdditionalRoleInfo>(); o.add(buildAboutAdditionalRoleInfo()); o.add(buildAboutAdditionalRoleInfo()); return o; } -checkUnnamed350(core.List<api.AboutAdditionalRoleInfo> o) { +checkUnnamed4249(core.List<api.AboutAdditionalRoleInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutAdditionalRoleInfo(o[0]); checkAboutAdditionalRoleInfo(o[1]); } -buildUnnamed351() { +buildUnnamed4250() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed351(core.List<core.String> o) { +checkUnnamed4250(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -150,7 +150,7 @@ buildCounterAboutExportFormats++; if (buildCounterAboutExportFormats < 3) { o.source = "foo"; - o.targets = buildUnnamed351(); + o.targets = buildUnnamed4250(); } buildCounterAboutExportFormats--; return o; @@ -160,19 +160,19 @@ buildCounterAboutExportFormats++; if (buildCounterAboutExportFormats < 3) { unittest.expect(o.source, unittest.equals('foo')); - checkUnnamed351(o.targets); + checkUnnamed4250(o.targets); } buildCounterAboutExportFormats--; } -buildUnnamed352() { +buildUnnamed4251() { var o = new core.List<api.AboutExportFormats>(); o.add(buildAboutExportFormats()); o.add(buildAboutExportFormats()); return o; } -checkUnnamed352(core.List<api.AboutExportFormats> o) { +checkUnnamed4251(core.List<api.AboutExportFormats> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutExportFormats(o[0]); checkAboutExportFormats(o[1]); @@ -199,40 +199,40 @@ buildCounterAboutFeatures--; } -buildUnnamed353() { +buildUnnamed4252() { var o = new core.List<api.AboutFeatures>(); o.add(buildAboutFeatures()); o.add(buildAboutFeatures()); return o; } -checkUnnamed353(core.List<api.AboutFeatures> o) { +checkUnnamed4252(core.List<api.AboutFeatures> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutFeatures(o[0]); checkAboutFeatures(o[1]); } -buildUnnamed354() { +buildUnnamed4253() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed354(core.List<core.String> o) { +checkUnnamed4253(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed355() { +buildUnnamed4254() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed355(core.List<core.String> o) { +checkUnnamed4254(core.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 @@ buildCounterAboutImportFormats++; if (buildCounterAboutImportFormats < 3) { o.source = "foo"; - o.targets = buildUnnamed355(); + o.targets = buildUnnamed4254(); } buildCounterAboutImportFormats--; return o; @@ -254,19 +254,19 @@ buildCounterAboutImportFormats++; if (buildCounterAboutImportFormats < 3) { unittest.expect(o.source, unittest.equals('foo')); - checkUnnamed355(o.targets); + checkUnnamed4254(o.targets); } buildCounterAboutImportFormats--; } -buildUnnamed356() { +buildUnnamed4255() { var o = new core.List<api.AboutImportFormats>(); o.add(buildAboutImportFormats()); o.add(buildAboutImportFormats()); return o; } -checkUnnamed356(core.List<api.AboutImportFormats> o) { +checkUnnamed4255(core.List<api.AboutImportFormats> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutImportFormats(o[0]); checkAboutImportFormats(o[1]); @@ -293,14 +293,14 @@ buildCounterAboutMaxUploadSizes--; } -buildUnnamed357() { +buildUnnamed4256() { var o = new core.List<api.AboutMaxUploadSizes>(); o.add(buildAboutMaxUploadSizes()); o.add(buildAboutMaxUploadSizes()); return o; } -checkUnnamed357(core.List<api.AboutMaxUploadSizes> o) { +checkUnnamed4256(core.List<api.AboutMaxUploadSizes> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutMaxUploadSizes(o[0]); checkAboutMaxUploadSizes(o[1]); @@ -327,14 +327,14 @@ buildCounterAboutQuotaBytesByService--; } -buildUnnamed358() { +buildUnnamed4257() { var o = new core.List<api.AboutQuotaBytesByService>(); o.add(buildAboutQuotaBytesByService()); o.add(buildAboutQuotaBytesByService()); return o; } -checkUnnamed358(core.List<api.AboutQuotaBytesByService> o) { +checkUnnamed4257(core.List<api.AboutQuotaBytesByService> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutQuotaBytesByService(o[0]); checkAboutQuotaBytesByService(o[1]); @@ -363,14 +363,14 @@ buildCounterAboutTeamDriveThemes--; } -buildUnnamed359() { +buildUnnamed4258() { var o = new core.List<api.AboutTeamDriveThemes>(); o.add(buildAboutTeamDriveThemes()); o.add(buildAboutTeamDriveThemes()); return o; } -checkUnnamed359(core.List<api.AboutTeamDriveThemes> o) { +checkUnnamed4258(core.List<api.AboutTeamDriveThemes> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutTeamDriveThemes(o[0]); checkAboutTeamDriveThemes(o[1]); @@ -381,22 +381,22 @@ var o = new api.About(); buildCounterAbout++; if (buildCounterAbout < 3) { - o.additionalRoleInfo = buildUnnamed350(); + o.additionalRoleInfo = buildUnnamed4249(); o.canCreateTeamDrives = true; o.domainSharingPolicy = "foo"; o.etag = "foo"; - o.exportFormats = buildUnnamed352(); - o.features = buildUnnamed353(); - o.folderColorPalette = buildUnnamed354(); - o.importFormats = buildUnnamed356(); + o.exportFormats = buildUnnamed4251(); + o.features = buildUnnamed4252(); + o.folderColorPalette = buildUnnamed4253(); + o.importFormats = buildUnnamed4255(); o.isCurrentAppInstalled = true; o.kind = "foo"; o.languageCode = "foo"; o.largestChangeId = "foo"; - o.maxUploadSizes = buildUnnamed357(); + o.maxUploadSizes = buildUnnamed4256(); o.name = "foo"; o.permissionId = "foo"; - o.quotaBytesByService = buildUnnamed358(); + o.quotaBytesByService = buildUnnamed4257(); o.quotaBytesTotal = "foo"; o.quotaBytesUsed = "foo"; o.quotaBytesUsedAggregate = "foo"; @@ -405,7 +405,7 @@ o.remainingChangeIds = "foo"; o.rootFolderId = "foo"; o.selfLink = "foo"; - o.teamDriveThemes = buildUnnamed359(); + o.teamDriveThemes = buildUnnamed4258(); o.user = buildUser(); } buildCounterAbout--; @@ -415,22 +415,22 @@ checkAbout(api.About o) { buildCounterAbout++; if (buildCounterAbout < 3) { - checkUnnamed350(o.additionalRoleInfo); + checkUnnamed4249(o.additionalRoleInfo); unittest.expect(o.canCreateTeamDrives, unittest.isTrue); unittest.expect(o.domainSharingPolicy, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed352(o.exportFormats); - checkUnnamed353(o.features); - checkUnnamed354(o.folderColorPalette); - checkUnnamed356(o.importFormats); + checkUnnamed4251(o.exportFormats); + checkUnnamed4252(o.features); + checkUnnamed4253(o.folderColorPalette); + checkUnnamed4255(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')); - checkUnnamed357(o.maxUploadSizes); + checkUnnamed4256(o.maxUploadSizes); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.permissionId, unittest.equals('foo')); - checkUnnamed358(o.quotaBytesByService); + checkUnnamed4257(o.quotaBytesByService); unittest.expect(o.quotaBytesTotal, unittest.equals('foo')); unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); unittest.expect(o.quotaBytesUsedAggregate, unittest.equals('foo')); @@ -439,7 +439,7 @@ unittest.expect(o.remainingChangeIds, unittest.equals('foo')); unittest.expect(o.rootFolderId, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed359(o.teamDriveThemes); + checkUnnamed4258(o.teamDriveThemes); checkUser(o.user); } buildCounterAbout--; @@ -468,66 +468,66 @@ buildCounterAppIcons--; } -buildUnnamed360() { +buildUnnamed4259() { var o = new core.List<api.AppIcons>(); o.add(buildAppIcons()); o.add(buildAppIcons()); return o; } -checkUnnamed360(core.List<api.AppIcons> o) { +checkUnnamed4259(core.List<api.AppIcons> o) { unittest.expect(o, unittest.hasLength(2)); checkAppIcons(o[0]); checkAppIcons(o[1]); } -buildUnnamed361() { +buildUnnamed4260() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed361(core.List<core.String> o) { +checkUnnamed4260(core.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() { +buildUnnamed4261() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed362(core.List<core.String> o) { +checkUnnamed4261(core.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() { +buildUnnamed4262() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed363(core.List<core.String> o) { +checkUnnamed4262(core.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() { +buildUnnamed4263() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed364(core.List<core.String> o) { +checkUnnamed4263(core.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 @@ o.createInFolderTemplate = "foo"; o.createUrl = "foo"; o.hasDriveWideScope = true; - o.icons = buildUnnamed360(); + o.icons = buildUnnamed4259(); o.id = "foo"; o.installed = true; o.kind = "foo"; @@ -550,12 +550,12 @@ o.name = "foo"; o.objectType = "foo"; o.openUrlTemplate = "foo"; - o.primaryFileExtensions = buildUnnamed361(); - o.primaryMimeTypes = buildUnnamed362(); + o.primaryFileExtensions = buildUnnamed4260(); + o.primaryMimeTypes = buildUnnamed4261(); o.productId = "foo"; o.productUrl = "foo"; - o.secondaryFileExtensions = buildUnnamed363(); - o.secondaryMimeTypes = buildUnnamed364(); + o.secondaryFileExtensions = buildUnnamed4262(); + o.secondaryMimeTypes = buildUnnamed4263(); o.shortDescription = "foo"; o.supportsCreate = true; o.supportsImport = true; @@ -574,7 +574,7 @@ unittest.expect(o.createInFolderTemplate, unittest.equals('foo')); unittest.expect(o.createUrl, unittest.equals('foo')); unittest.expect(o.hasDriveWideScope, unittest.isTrue); - checkUnnamed360(o.icons); + checkUnnamed4259(o.icons); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.installed, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -582,12 +582,12 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.objectType, unittest.equals('foo')); unittest.expect(o.openUrlTemplate, unittest.equals('foo')); - checkUnnamed361(o.primaryFileExtensions); - checkUnnamed362(o.primaryMimeTypes); + checkUnnamed4260(o.primaryFileExtensions); + checkUnnamed4261(o.primaryMimeTypes); unittest.expect(o.productId, unittest.equals('foo')); unittest.expect(o.productUrl, unittest.equals('foo')); - checkUnnamed363(o.secondaryFileExtensions); - checkUnnamed364(o.secondaryMimeTypes); + checkUnnamed4262(o.secondaryFileExtensions); + checkUnnamed4263(o.secondaryMimeTypes); unittest.expect(o.shortDescription, unittest.equals('foo')); unittest.expect(o.supportsCreate, unittest.isTrue); unittest.expect(o.supportsImport, unittest.isTrue); @@ -598,27 +598,27 @@ buildCounterApp--; } -buildUnnamed365() { +buildUnnamed4264() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed365(core.List<core.String> o) { +checkUnnamed4264(core.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() { +buildUnnamed4265() { var o = new core.List<api.App>(); o.add(buildApp()); o.add(buildApp()); return o; } -checkUnnamed366(core.List<api.App> o) { +checkUnnamed4265(core.List<api.App> o) { unittest.expect(o, unittest.hasLength(2)); checkApp(o[0]); checkApp(o[1]); @@ -629,9 +629,9 @@ var o = new api.AppList(); buildCounterAppList++; if (buildCounterAppList < 3) { - o.defaultAppIds = buildUnnamed365(); + o.defaultAppIds = buildUnnamed4264(); o.etag = "foo"; - o.items = buildUnnamed366(); + o.items = buildUnnamed4265(); o.kind = "foo"; o.selfLink = "foo"; } @@ -642,9 +642,9 @@ checkAppList(api.AppList o) { buildCounterAppList++; if (buildCounterAppList < 3) { - checkUnnamed365(o.defaultAppIds); + checkUnnamed4264(o.defaultAppIds); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed366(o.items); + checkUnnamed4265(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } @@ -689,14 +689,14 @@ buildCounterChange--; } -buildUnnamed367() { +buildUnnamed4266() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed367(core.List<api.Change> o) { +checkUnnamed4266(core.List<api.Change> o) { unittest.expect(o, unittest.hasLength(2)); checkChange(o[0]); checkChange(o[1]); @@ -708,7 +708,7 @@ buildCounterChangeList++; if (buildCounterChangeList < 3) { o.etag = "foo"; - o.items = buildUnnamed367(); + o.items = buildUnnamed4266(); o.kind = "foo"; o.largestChangeId = "foo"; o.newStartPageToken = "foo"; @@ -724,7 +724,7 @@ buildCounterChangeList++; if (buildCounterChangeList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed367(o.items); + checkUnnamed4266(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.largestChangeId, unittest.equals('foo')); unittest.expect(o.newStartPageToken, unittest.equals('foo')); @@ -735,14 +735,14 @@ buildCounterChangeList--; } -buildUnnamed368() { +buildUnnamed4267() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed368(core.Map<core.String, core.String> o) { +checkUnnamed4267(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')); @@ -757,7 +757,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed368(); + o.params = buildUnnamed4267(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -775,7 +775,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed368(o.params); + checkUnnamed4267(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -785,14 +785,14 @@ buildCounterChannel--; } -buildUnnamed369() { +buildUnnamed4268() { var o = new core.List<api.ChildReference>(); o.add(buildChildReference()); o.add(buildChildReference()); return o; } -checkUnnamed369(core.List<api.ChildReference> o) { +checkUnnamed4268(core.List<api.ChildReference> o) { unittest.expect(o, unittest.hasLength(2)); checkChildReference(o[0]); checkChildReference(o[1]); @@ -804,7 +804,7 @@ buildCounterChildList++; if (buildCounterChildList < 3) { o.etag = "foo"; - o.items = buildUnnamed369(); + o.items = buildUnnamed4268(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -818,7 +818,7 @@ buildCounterChildList++; if (buildCounterChildList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed369(o.items); + checkUnnamed4268(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -873,14 +873,14 @@ buildCounterCommentContext--; } -buildUnnamed370() { +buildUnnamed4269() { var o = new core.List<api.CommentReply>(); o.add(buildCommentReply()); o.add(buildCommentReply()); return o; } -checkUnnamed370(core.List<api.CommentReply> o) { +checkUnnamed4269(core.List<api.CommentReply> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentReply(o[0]); checkCommentReply(o[1]); @@ -903,7 +903,7 @@ o.htmlContent = "foo"; o.kind = "foo"; o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); - o.replies = buildUnnamed370(); + o.replies = buildUnnamed4269(); o.selfLink = "foo"; o.status = "foo"; } @@ -928,21 +928,21 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed370(o.replies); + checkUnnamed4269(o.replies); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); } buildCounterComment--; } -buildUnnamed371() { +buildUnnamed4270() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed371(core.List<api.Comment> o) { +checkUnnamed4270(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -953,7 +953,7 @@ var o = new api.CommentList(); buildCounterCommentList++; if (buildCounterCommentList < 3) { - o.items = buildUnnamed371(); + o.items = buildUnnamed4270(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -966,7 +966,7 @@ checkCommentList(api.CommentList o) { buildCounterCommentList++; if (buildCounterCommentList < 3) { - checkUnnamed371(o.items); + checkUnnamed4270(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1012,14 +1012,14 @@ buildCounterCommentReply--; } -buildUnnamed372() { +buildUnnamed4271() { var o = new core.List<api.CommentReply>(); o.add(buildCommentReply()); o.add(buildCommentReply()); return o; } -checkUnnamed372(core.List<api.CommentReply> o) { +checkUnnamed4271(core.List<api.CommentReply> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentReply(o[0]); checkCommentReply(o[1]); @@ -1030,7 +1030,7 @@ var o = new api.CommentReplyList(); buildCounterCommentReplyList++; if (buildCounterCommentReplyList < 3) { - o.items = buildUnnamed372(); + o.items = buildUnnamed4271(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -1043,7 +1043,7 @@ checkCommentReplyList(api.CommentReplyList o) { buildCounterCommentReplyList++; if (buildCounterCommentReplyList < 3) { - checkUnnamed372(o.items); + checkUnnamed4271(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1103,14 +1103,14 @@ buildCounterFileCapabilities--; } -buildUnnamed373() { +buildUnnamed4272() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed373(core.Map<core.String, core.String> o) { +checkUnnamed4272(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')); @@ -1246,105 +1246,105 @@ buildCounterFileLabels--; } -buildUnnamed374() { +buildUnnamed4273() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed374(core.Map<core.String, core.String> o) { +checkUnnamed4273(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')); } -buildUnnamed375() { +buildUnnamed4274() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed375(core.List<core.String> o) { +checkUnnamed4274(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed376() { +buildUnnamed4275() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed376(core.List<api.User> o) { +checkUnnamed4275(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); } -buildUnnamed377() { +buildUnnamed4276() { var o = new core.List<api.ParentReference>(); o.add(buildParentReference()); o.add(buildParentReference()); return o; } -checkUnnamed377(core.List<api.ParentReference> o) { +checkUnnamed4276(core.List<api.ParentReference> o) { unittest.expect(o, unittest.hasLength(2)); checkParentReference(o[0]); checkParentReference(o[1]); } -buildUnnamed378() { +buildUnnamed4277() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed378(core.List<core.String> o) { +checkUnnamed4277(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed379() { +buildUnnamed4278() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed379(core.List<api.Permission> o) { +checkUnnamed4278(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); } -buildUnnamed380() { +buildUnnamed4279() { var o = new core.List<api.Property>(); o.add(buildProperty()); o.add(buildProperty()); return o; } -checkUnnamed380(core.List<api.Property> o) { +checkUnnamed4279(core.List<api.Property> o) { unittest.expect(o, unittest.hasLength(2)); checkProperty(o[0]); checkProperty(o[1]); } -buildUnnamed381() { +buildUnnamed4280() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed381(core.List<core.String> o) { +checkUnnamed4280(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1413,7 +1413,7 @@ o.embedLink = "foo"; o.etag = "foo"; o.explicitlyTrashed = true; - o.exportLinks = buildUnnamed373(); + o.exportLinks = buildUnnamed4272(); o.fileExtension = "foo"; o.fileSize = "foo"; o.folderColorRgb = "foo"; @@ -1436,22 +1436,22 @@ 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 = buildUnnamed374(); + o.openWithLinks = buildUnnamed4273(); o.originalFilename = "foo"; o.ownedByMe = true; - o.ownerNames = buildUnnamed375(); - o.owners = buildUnnamed376(); - o.parents = buildUnnamed377(); - o.permissionIds = buildUnnamed378(); - o.permissions = buildUnnamed379(); - o.properties = buildUnnamed380(); + o.ownerNames = buildUnnamed4274(); + o.owners = buildUnnamed4275(); + o.parents = buildUnnamed4276(); + o.permissionIds = buildUnnamed4277(); + o.permissions = buildUnnamed4278(); + o.properties = buildUnnamed4279(); 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 = buildUnnamed381(); + o.spaces = buildUnnamed4280(); o.teamDriveId = "foo"; o.thumbnail = buildFileThumbnail(); o.thumbnailLink = "foo"; @@ -1488,7 +1488,7 @@ unittest.expect(o.embedLink, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.explicitlyTrashed, unittest.isTrue); - checkUnnamed373(o.exportLinks); + checkUnnamed4272(o.exportLinks); unittest.expect(o.fileExtension, unittest.equals('foo')); unittest.expect(o.fileSize, unittest.equals('foo')); unittest.expect(o.folderColorRgb, unittest.equals('foo')); @@ -1515,15 +1515,15 @@ unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed374(o.openWithLinks); + checkUnnamed4273(o.openWithLinks); unittest.expect(o.originalFilename, unittest.equals('foo')); unittest.expect(o.ownedByMe, unittest.isTrue); - checkUnnamed375(o.ownerNames); - checkUnnamed376(o.owners); - checkUnnamed377(o.parents); - checkUnnamed378(o.permissionIds); - checkUnnamed379(o.permissions); - checkUnnamed380(o.properties); + checkUnnamed4274(o.ownerNames); + checkUnnamed4275(o.owners); + checkUnnamed4276(o.parents); + checkUnnamed4277(o.permissionIds); + checkUnnamed4278(o.permissions); + checkUnnamed4279(o.properties); unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.shareable, unittest.isTrue); @@ -1531,7 +1531,7 @@ unittest.expect(o.sharedWithMeDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); checkUser(o.sharingUser); - checkUnnamed381(o.spaces); + checkUnnamed4280(o.spaces); unittest.expect(o.teamDriveId, unittest.equals('foo')); checkFileThumbnail(o.thumbnail); unittest.expect(o.thumbnailLink, unittest.equals('foo')); @@ -1550,14 +1550,14 @@ buildCounterFile--; } -buildUnnamed382() { +buildUnnamed4281() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed382(core.List<api.File> o) { +checkUnnamed4281(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -1570,7 +1570,7 @@ if (buildCounterFileList < 3) { o.etag = "foo"; o.incompleteSearch = true; - o.items = buildUnnamed382(); + o.items = buildUnnamed4281(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -1585,7 +1585,7 @@ if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.incompleteSearch, unittest.isTrue); - checkUnnamed382(o.items); + checkUnnamed4281(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1594,14 +1594,14 @@ buildCounterFileList--; } -buildUnnamed383() { +buildUnnamed4282() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed383(core.List<core.String> o) { +checkUnnamed4282(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1612,7 +1612,7 @@ var o = new api.GeneratedIds(); buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - o.ids = buildUnnamed383(); + o.ids = buildUnnamed4282(); o.kind = "foo"; o.space = "foo"; } @@ -1623,21 +1623,21 @@ checkGeneratedIds(api.GeneratedIds o) { buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - checkUnnamed383(o.ids); + checkUnnamed4282(o.ids); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.space, unittest.equals('foo')); } buildCounterGeneratedIds--; } -buildUnnamed384() { +buildUnnamed4283() { var o = new core.List<api.ParentReference>(); o.add(buildParentReference()); o.add(buildParentReference()); return o; } -checkUnnamed384(core.List<api.ParentReference> o) { +checkUnnamed4283(core.List<api.ParentReference> o) { unittest.expect(o, unittest.hasLength(2)); checkParentReference(o[0]); checkParentReference(o[1]); @@ -1649,7 +1649,7 @@ buildCounterParentList++; if (buildCounterParentList < 3) { o.etag = "foo"; - o.items = buildUnnamed384(); + o.items = buildUnnamed4283(); o.kind = "foo"; o.selfLink = "foo"; } @@ -1661,7 +1661,7 @@ buildCounterParentList++; if (buildCounterParentList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed384(o.items); + checkUnnamed4283(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } @@ -1695,27 +1695,27 @@ buildCounterParentReference--; } -buildUnnamed385() { +buildUnnamed4284() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed385(core.List<core.String> o) { +checkUnnamed4284(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed386() { +buildUnnamed4285() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed386(core.List<core.String> o) { +checkUnnamed4285(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1726,7 +1726,7 @@ var o = new api.PermissionTeamDrivePermissionDetails(); buildCounterPermissionTeamDrivePermissionDetails++; if (buildCounterPermissionTeamDrivePermissionDetails < 3) { - o.additionalRoles = buildUnnamed386(); + o.additionalRoles = buildUnnamed4285(); o.inherited = true; o.inheritedFrom = "foo"; o.role = "foo"; @@ -1740,7 +1740,7 @@ api.PermissionTeamDrivePermissionDetails o) { buildCounterPermissionTeamDrivePermissionDetails++; if (buildCounterPermissionTeamDrivePermissionDetails < 3) { - checkUnnamed386(o.additionalRoles); + checkUnnamed4285(o.additionalRoles); unittest.expect(o.inherited, unittest.isTrue); unittest.expect(o.inheritedFrom, unittest.equals('foo')); unittest.expect(o.role, unittest.equals('foo')); @@ -1749,14 +1749,14 @@ buildCounterPermissionTeamDrivePermissionDetails--; } -buildUnnamed387() { +buildUnnamed4286() { var o = new core.List<api.PermissionTeamDrivePermissionDetails>(); o.add(buildPermissionTeamDrivePermissionDetails()); o.add(buildPermissionTeamDrivePermissionDetails()); return o; } -checkUnnamed387(core.List<api.PermissionTeamDrivePermissionDetails> o) { +checkUnnamed4286(core.List<api.PermissionTeamDrivePermissionDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkPermissionTeamDrivePermissionDetails(o[0]); checkPermissionTeamDrivePermissionDetails(o[1]); @@ -1767,7 +1767,7 @@ var o = new api.Permission(); buildCounterPermission++; if (buildCounterPermission < 3) { - o.additionalRoles = buildUnnamed385(); + o.additionalRoles = buildUnnamed4284(); o.authKey = "foo"; o.deleted = true; o.domain = "foo"; @@ -1780,7 +1780,7 @@ o.photoLink = "foo"; o.role = "foo"; o.selfLink = "foo"; - o.teamDrivePermissionDetails = buildUnnamed387(); + o.teamDrivePermissionDetails = buildUnnamed4286(); o.type = "foo"; o.value = "foo"; o.withLink = true; @@ -1792,7 +1792,7 @@ checkPermission(api.Permission o) { buildCounterPermission++; if (buildCounterPermission < 3) { - checkUnnamed385(o.additionalRoles); + checkUnnamed4284(o.additionalRoles); unittest.expect(o.authKey, unittest.equals('foo')); unittest.expect(o.deleted, unittest.isTrue); unittest.expect(o.domain, unittest.equals('foo')); @@ -1806,7 +1806,7 @@ unittest.expect(o.photoLink, unittest.equals('foo')); unittest.expect(o.role, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed387(o.teamDrivePermissionDetails); + checkUnnamed4286(o.teamDrivePermissionDetails); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); unittest.expect(o.withLink, unittest.isTrue); @@ -1835,14 +1835,14 @@ buildCounterPermissionId--; } -buildUnnamed388() { +buildUnnamed4287() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed388(core.List<api.Permission> o) { +checkUnnamed4287(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -1854,7 +1854,7 @@ buildCounterPermissionList++; if (buildCounterPermissionList < 3) { o.etag = "foo"; - o.items = buildUnnamed388(); + o.items = buildUnnamed4287(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1867,7 +1867,7 @@ buildCounterPermissionList++; if (buildCounterPermissionList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed388(o.items); + checkUnnamed4287(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1904,14 +1904,14 @@ buildCounterProperty--; } -buildUnnamed389() { +buildUnnamed4288() { var o = new core.List<api.Property>(); o.add(buildProperty()); o.add(buildProperty()); return o; } -checkUnnamed389(core.List<api.Property> o) { +checkUnnamed4288(core.List<api.Property> o) { unittest.expect(o, unittest.hasLength(2)); checkProperty(o[0]); checkProperty(o[1]); @@ -1923,7 +1923,7 @@ buildCounterPropertyList++; if (buildCounterPropertyList < 3) { o.etag = "foo"; - o.items = buildUnnamed389(); + o.items = buildUnnamed4288(); o.kind = "foo"; o.selfLink = "foo"; } @@ -1935,21 +1935,21 @@ buildCounterPropertyList++; if (buildCounterPropertyList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed389(o.items); + checkUnnamed4288(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterPropertyList--; } -buildUnnamed390() { +buildUnnamed4289() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed390(core.Map<core.String, core.String> o) { +checkUnnamed4289(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')); @@ -1962,7 +1962,7 @@ if (buildCounterRevision < 3) { o.downloadUrl = "foo"; o.etag = "foo"; - o.exportLinks = buildUnnamed390(); + o.exportLinks = buildUnnamed4289(); o.fileSize = "foo"; o.id = "foo"; o.kind = "foo"; @@ -1988,7 +1988,7 @@ if (buildCounterRevision < 3) { unittest.expect(o.downloadUrl, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed390(o.exportLinks); + checkUnnamed4289(o.exportLinks); unittest.expect(o.fileSize, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -2009,14 +2009,14 @@ buildCounterRevision--; } -buildUnnamed391() { +buildUnnamed4290() { var o = new core.List<api.Revision>(); o.add(buildRevision()); o.add(buildRevision()); return o; } -checkUnnamed391(core.List<api.Revision> o) { +checkUnnamed4290(core.List<api.Revision> o) { unittest.expect(o, unittest.hasLength(2)); checkRevision(o[0]); checkRevision(o[1]); @@ -2028,7 +2028,7 @@ buildCounterRevisionList++; if (buildCounterRevisionList < 3) { o.etag = "foo"; - o.items = buildUnnamed391(); + o.items = buildUnnamed4290(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2041,7 +2041,7 @@ buildCounterRevisionList++; if (buildCounterRevisionList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed391(o.items); + checkUnnamed4290(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2176,14 +2176,14 @@ buildCounterTeamDrive--; } -buildUnnamed392() { +buildUnnamed4291() { var o = new core.List<api.TeamDrive>(); o.add(buildTeamDrive()); o.add(buildTeamDrive()); return o; } -checkUnnamed392(core.List<api.TeamDrive> o) { +checkUnnamed4291(core.List<api.TeamDrive> o) { unittest.expect(o, unittest.hasLength(2)); checkTeamDrive(o[0]); checkTeamDrive(o[1]); @@ -2194,7 +2194,7 @@ var o = new api.TeamDriveList(); buildCounterTeamDriveList++; if (buildCounterTeamDriveList < 3) { - o.items = buildUnnamed392(); + o.items = buildUnnamed4291(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2205,7 +2205,7 @@ checkTeamDriveList(api.TeamDriveList o) { buildCounterTeamDriveList++; if (buildCounterTeamDriveList < 3) { - checkUnnamed392(o.items); + checkUnnamed4291(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); }
diff --git a/generated/googleapis/test/drive/v3_test.dart b/generated/googleapis/test/drive/v3_test.dart index 8920e60..9a56d7c 100644 --- a/generated/googleapis/test/drive/v3_test.dart +++ b/generated/googleapis/test/drive/v3_test.dart
@@ -50,79 +50,79 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2694() { +buildUnnamed3456() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2694(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')); } -buildUnnamed2695() { +buildUnnamed3457() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed2694(); - o["y"] = buildUnnamed2694(); + o["x"] = buildUnnamed3456(); + o["y"] = buildUnnamed3456(); return o; } -checkUnnamed2695(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed3457(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2694(o["x"]); - checkUnnamed2694(o["y"]); + checkUnnamed3456(o["x"]); + checkUnnamed3456(o["y"]); } -buildUnnamed2696() { +buildUnnamed3458() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2696(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')); } -buildUnnamed2697() { +buildUnnamed3459() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2697(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')); } -buildUnnamed2698() { +buildUnnamed3460() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed2697(); - o["y"] = buildUnnamed2697(); + o["x"] = buildUnnamed3459(); + o["y"] = buildUnnamed3459(); return o; } -checkUnnamed2698(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed3460(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2697(o["x"]); - checkUnnamed2697(o["y"]); + checkUnnamed3459(o["x"]); + checkUnnamed3459(o["y"]); } -buildUnnamed2699() { +buildUnnamed3461() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2699(core.Map<core.String, core.String> o) { +checkUnnamed3461(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')); @@ -176,14 +176,14 @@ buildCounterAboutTeamDriveThemes--; } -buildUnnamed2700() { +buildUnnamed3462() { var o = new core.List<api.AboutTeamDriveThemes>(); o.add(buildAboutTeamDriveThemes()); o.add(buildAboutTeamDriveThemes()); return o; } -checkUnnamed2700(core.List<api.AboutTeamDriveThemes> o) { +checkUnnamed3462(core.List<api.AboutTeamDriveThemes> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutTeamDriveThemes(o[0]); checkAboutTeamDriveThemes(o[1]); @@ -196,14 +196,14 @@ if (buildCounterAbout < 3) { o.appInstalled = true; o.canCreateTeamDrives = true; - o.exportFormats = buildUnnamed2695(); - o.folderColorPalette = buildUnnamed2696(); - o.importFormats = buildUnnamed2698(); + o.exportFormats = buildUnnamed3457(); + o.folderColorPalette = buildUnnamed3458(); + o.importFormats = buildUnnamed3460(); o.kind = "foo"; - o.maxImportSizes = buildUnnamed2699(); + o.maxImportSizes = buildUnnamed3461(); o.maxUploadSize = "foo"; o.storageQuota = buildAboutStorageQuota(); - o.teamDriveThemes = buildUnnamed2700(); + o.teamDriveThemes = buildUnnamed3462(); o.user = buildUser(); } buildCounterAbout--; @@ -215,14 +215,14 @@ if (buildCounterAbout < 3) { unittest.expect(o.appInstalled, unittest.isTrue); unittest.expect(o.canCreateTeamDrives, unittest.isTrue); - checkUnnamed2695(o.exportFormats); - checkUnnamed2696(o.folderColorPalette); - checkUnnamed2698(o.importFormats); + checkUnnamed3457(o.exportFormats); + checkUnnamed3458(o.folderColorPalette); + checkUnnamed3460(o.importFormats); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2699(o.maxImportSizes); + checkUnnamed3461(o.maxImportSizes); unittest.expect(o.maxUploadSize, unittest.equals('foo')); checkAboutStorageQuota(o.storageQuota); - checkUnnamed2700(o.teamDriveThemes); + checkUnnamed3462(o.teamDriveThemes); checkUser(o.user); } buildCounterAbout--; @@ -262,14 +262,14 @@ buildCounterChange--; } -buildUnnamed2701() { +buildUnnamed3463() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed2701(core.List<api.Change> o) { +checkUnnamed3463(core.List<api.Change> o) { unittest.expect(o, unittest.hasLength(2)); checkChange(o[0]); checkChange(o[1]); @@ -280,7 +280,7 @@ var o = new api.ChangeList(); buildCounterChangeList++; if (buildCounterChangeList < 3) { - o.changes = buildUnnamed2701(); + o.changes = buildUnnamed3463(); o.kind = "foo"; o.newStartPageToken = "foo"; o.nextPageToken = "foo"; @@ -292,7 +292,7 @@ checkChangeList(api.ChangeList o) { buildCounterChangeList++; if (buildCounterChangeList < 3) { - checkUnnamed2701(o.changes); + checkUnnamed3463(o.changes); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.newStartPageToken, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -300,14 +300,14 @@ buildCounterChangeList--; } -buildUnnamed2702() { +buildUnnamed3464() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2702(core.Map<core.String, core.String> o) { +checkUnnamed3464(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')); @@ -322,7 +322,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed2702(); + o.params = buildUnnamed3464(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -340,7 +340,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2702(o.params); + checkUnnamed3464(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -371,14 +371,14 @@ buildCounterCommentQuotedFileContent--; } -buildUnnamed2703() { +buildUnnamed3465() { var o = new core.List<api.Reply>(); o.add(buildReply()); o.add(buildReply()); return o; } -checkUnnamed2703(core.List<api.Reply> o) { +checkUnnamed3465(core.List<api.Reply> o) { unittest.expect(o, unittest.hasLength(2)); checkReply(o[0]); checkReply(o[1]); @@ -399,7 +399,7 @@ o.kind = "foo"; o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); o.quotedFileContent = buildCommentQuotedFileContent(); - o.replies = buildUnnamed2703(); + o.replies = buildUnnamed3465(); o.resolved = true; } buildCounterComment--; @@ -421,20 +421,20 @@ unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); checkCommentQuotedFileContent(o.quotedFileContent); - checkUnnamed2703(o.replies); + checkUnnamed3465(o.replies); unittest.expect(o.resolved, unittest.isTrue); } buildCounterComment--; } -buildUnnamed2704() { +buildUnnamed3466() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed2704(core.List<api.Comment> o) { +checkUnnamed3466(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -445,7 +445,7 @@ var o = new api.CommentList(); buildCounterCommentList++; if (buildCounterCommentList < 3) { - o.comments = buildUnnamed2704(); + o.comments = buildUnnamed3466(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -456,21 +456,21 @@ checkCommentList(api.CommentList o) { buildCounterCommentList++; if (buildCounterCommentList < 3) { - checkUnnamed2704(o.comments); + checkUnnamed3466(o.comments); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCommentList--; } -buildUnnamed2705() { +buildUnnamed3467() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2705(core.Map<core.String, core.String> o) { +checkUnnamed3467(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,79 +651,79 @@ buildCounterFileImageMediaMetadata--; } -buildUnnamed2706() { +buildUnnamed3468() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed2706(core.List<api.User> o) { +checkUnnamed3468(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); } -buildUnnamed2707() { +buildUnnamed3469() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2707(core.List<core.String> o) { +checkUnnamed3469(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2708() { +buildUnnamed3470() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2708(core.List<core.String> o) { +checkUnnamed3470(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2709() { +buildUnnamed3471() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed2709(core.List<api.Permission> o) { +checkUnnamed3471(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); } -buildUnnamed2710() { +buildUnnamed3472() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2710(core.Map<core.String, core.String> o) { +checkUnnamed3472(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')); } -buildUnnamed2711() { +buildUnnamed3473() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2711(core.List<core.String> o) { +checkUnnamed3473(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -757,7 +757,7 @@ var o = new api.File(); buildCounterFile++; if (buildCounterFile < 3) { - o.appProperties = buildUnnamed2705(); + o.appProperties = buildUnnamed3467(); o.capabilities = buildFileCapabilities(); o.contentHints = buildFileContentHints(); o.createdTime = core.DateTime.parse("2002-02-27T14:01:02"); @@ -783,17 +783,17 @@ o.name = "foo"; o.originalFilename = "foo"; o.ownedByMe = true; - o.owners = buildUnnamed2706(); - o.parents = buildUnnamed2707(); - o.permissionIds = buildUnnamed2708(); - o.permissions = buildUnnamed2709(); - o.properties = buildUnnamed2710(); + o.owners = buildUnnamed3468(); + o.parents = buildUnnamed3469(); + o.permissionIds = buildUnnamed3470(); + o.permissions = buildUnnamed3471(); + o.properties = buildUnnamed3472(); o.quotaBytesUsed = "foo"; o.shared = true; o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02"); o.sharingUser = buildUser(); o.size = "foo"; - o.spaces = buildUnnamed2711(); + o.spaces = buildUnnamed3473(); o.starred = true; o.teamDriveId = "foo"; o.thumbnailLink = "foo"; @@ -817,7 +817,7 @@ checkFile(api.File o) { buildCounterFile++; if (buildCounterFile < 3) { - checkUnnamed2705(o.appProperties); + checkUnnamed3467(o.appProperties); checkFileCapabilities(o.capabilities); checkFileContentHints(o.contentHints); unittest.expect(o.createdTime, @@ -846,18 +846,18 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.originalFilename, unittest.equals('foo')); unittest.expect(o.ownedByMe, unittest.isTrue); - checkUnnamed2706(o.owners); - checkUnnamed2707(o.parents); - checkUnnamed2708(o.permissionIds); - checkUnnamed2709(o.permissions); - checkUnnamed2710(o.properties); + checkUnnamed3468(o.owners); + checkUnnamed3469(o.parents); + checkUnnamed3470(o.permissionIds); + checkUnnamed3471(o.permissions); + checkUnnamed3472(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')); - checkUnnamed2711(o.spaces); + checkUnnamed3473(o.spaces); unittest.expect(o.starred, unittest.isTrue); unittest.expect(o.teamDriveId, unittest.equals('foo')); unittest.expect(o.thumbnailLink, unittest.equals('foo')); @@ -879,14 +879,14 @@ buildCounterFile--; } -buildUnnamed2712() { +buildUnnamed3474() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed2712(core.List<api.File> o) { +checkUnnamed3474(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -897,7 +897,7 @@ var o = new api.FileList(); buildCounterFileList++; if (buildCounterFileList < 3) { - o.files = buildUnnamed2712(); + o.files = buildUnnamed3474(); o.incompleteSearch = true; o.kind = "foo"; o.nextPageToken = "foo"; @@ -909,7 +909,7 @@ checkFileList(api.FileList o) { buildCounterFileList++; if (buildCounterFileList < 3) { - checkUnnamed2712(o.files); + checkUnnamed3474(o.files); unittest.expect(o.incompleteSearch, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -917,14 +917,14 @@ buildCounterFileList--; } -buildUnnamed2713() { +buildUnnamed3475() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2713(core.List<core.String> o) { +checkUnnamed3475(core.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,7 +935,7 @@ var o = new api.GeneratedIds(); buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - o.ids = buildUnnamed2713(); + o.ids = buildUnnamed3475(); o.kind = "foo"; o.space = "foo"; } @@ -946,7 +946,7 @@ checkGeneratedIds(api.GeneratedIds o) { buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - checkUnnamed2713(o.ids); + checkUnnamed3475(o.ids); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.space, unittest.equals('foo')); } @@ -979,14 +979,14 @@ buildCounterPermissionTeamDrivePermissionDetails--; } -buildUnnamed2714() { +buildUnnamed3476() { var o = new core.List<api.PermissionTeamDrivePermissionDetails>(); o.add(buildPermissionTeamDrivePermissionDetails()); o.add(buildPermissionTeamDrivePermissionDetails()); return o; } -checkUnnamed2714(core.List<api.PermissionTeamDrivePermissionDetails> o) { +checkUnnamed3476(core.List<api.PermissionTeamDrivePermissionDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkPermissionTeamDrivePermissionDetails(o[0]); checkPermissionTeamDrivePermissionDetails(o[1]); @@ -1007,7 +1007,7 @@ o.kind = "foo"; o.photoLink = "foo"; o.role = "foo"; - o.teamDrivePermissionDetails = buildUnnamed2714(); + o.teamDrivePermissionDetails = buildUnnamed3476(); o.type = "foo"; } buildCounterPermission--; @@ -1028,20 +1028,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.photoLink, unittest.equals('foo')); unittest.expect(o.role, unittest.equals('foo')); - checkUnnamed2714(o.teamDrivePermissionDetails); + checkUnnamed3476(o.teamDrivePermissionDetails); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPermission--; } -buildUnnamed2715() { +buildUnnamed3477() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed2715(core.List<api.Permission> o) { +checkUnnamed3477(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -1054,7 +1054,7 @@ if (buildCounterPermissionList < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.permissions = buildUnnamed2715(); + o.permissions = buildUnnamed3477(); } buildCounterPermissionList--; return o; @@ -1065,7 +1065,7 @@ if (buildCounterPermissionList < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2715(o.permissions); + checkUnnamed3477(o.permissions); } buildCounterPermissionList--; } @@ -1107,14 +1107,14 @@ buildCounterReply--; } -buildUnnamed2716() { +buildUnnamed3478() { var o = new core.List<api.Reply>(); o.add(buildReply()); o.add(buildReply()); return o; } -checkUnnamed2716(core.List<api.Reply> o) { +checkUnnamed3478(core.List<api.Reply> o) { unittest.expect(o, unittest.hasLength(2)); checkReply(o[0]); checkReply(o[1]); @@ -1127,7 +1127,7 @@ if (buildCounterReplyList < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.replies = buildUnnamed2716(); + o.replies = buildUnnamed3478(); } buildCounterReplyList--; return o; @@ -1138,7 +1138,7 @@ if (buildCounterReplyList < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2716(o.replies); + checkUnnamed3478(o.replies); } buildCounterReplyList--; } @@ -1185,14 +1185,14 @@ buildCounterRevision--; } -buildUnnamed2717() { +buildUnnamed3479() { var o = new core.List<api.Revision>(); o.add(buildRevision()); o.add(buildRevision()); return o; } -checkUnnamed2717(core.List<api.Revision> o) { +checkUnnamed3479(core.List<api.Revision> o) { unittest.expect(o, unittest.hasLength(2)); checkRevision(o[0]); checkRevision(o[1]); @@ -1205,7 +1205,7 @@ if (buildCounterRevisionList < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.revisions = buildUnnamed2717(); + o.revisions = buildUnnamed3479(); } buildCounterRevisionList--; return o; @@ -1216,7 +1216,7 @@ if (buildCounterRevisionList < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2717(o.revisions); + checkUnnamed3479(o.revisions); } buildCounterRevisionList--; } @@ -1348,14 +1348,14 @@ buildCounterTeamDrive--; } -buildUnnamed2718() { +buildUnnamed3480() { var o = new core.List<api.TeamDrive>(); o.add(buildTeamDrive()); o.add(buildTeamDrive()); return o; } -checkUnnamed2718(core.List<api.TeamDrive> o) { +checkUnnamed3480(core.List<api.TeamDrive> o) { unittest.expect(o, unittest.hasLength(2)); checkTeamDrive(o[0]); checkTeamDrive(o[1]); @@ -1368,7 +1368,7 @@ if (buildCounterTeamDriveList < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.teamDrives = buildUnnamed2718(); + o.teamDrives = buildUnnamed3480(); } buildCounterTeamDriveList--; return o; @@ -1379,7 +1379,7 @@ if (buildCounterTeamDriveList < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2718(o.teamDrives); + checkUnnamed3480(o.teamDrives); } buildCounterTeamDriveList--; }
diff --git a/generated/googleapis/test/firebasedynamiclinks/v1_test.dart b/generated/googleapis/test/firebasedynamiclinks/v1_test.dart index 32cd42f..0d6d4fb 100644 --- a/generated/googleapis/test/firebasedynamiclinks/v1_test.dart +++ b/generated/googleapis/test/firebasedynamiclinks/v1_test.dart
@@ -96,6 +96,67 @@ buildCounterAndroidInfo--; } +core.int buildCounterCreateManagedShortLinkRequest = 0; +buildCreateManagedShortLinkRequest() { + var o = new api.CreateManagedShortLinkRequest(); + buildCounterCreateManagedShortLinkRequest++; + if (buildCounterCreateManagedShortLinkRequest < 3) { + o.dynamicLinkInfo = buildDynamicLinkInfo(); + o.longDynamicLink = "foo"; + o.name = "foo"; + o.suffix = buildSuffix(); + } + buildCounterCreateManagedShortLinkRequest--; + return o; +} + +checkCreateManagedShortLinkRequest(api.CreateManagedShortLinkRequest o) { + buildCounterCreateManagedShortLinkRequest++; + if (buildCounterCreateManagedShortLinkRequest < 3) { + checkDynamicLinkInfo(o.dynamicLinkInfo); + unittest.expect(o.longDynamicLink, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + checkSuffix(o.suffix); + } + buildCounterCreateManagedShortLinkRequest--; +} + +buildUnnamed1713() { + var o = new core.List<api.DynamicLinkWarning>(); + o.add(buildDynamicLinkWarning()); + o.add(buildDynamicLinkWarning()); + return o; +} + +checkUnnamed1713(core.List<api.DynamicLinkWarning> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDynamicLinkWarning(o[0]); + checkDynamicLinkWarning(o[1]); +} + +core.int buildCounterCreateManagedShortLinkResponse = 0; +buildCreateManagedShortLinkResponse() { + var o = new api.CreateManagedShortLinkResponse(); + buildCounterCreateManagedShortLinkResponse++; + if (buildCounterCreateManagedShortLinkResponse < 3) { + o.managedShortLink = buildManagedShortLink(); + o.previewLink = "foo"; + o.warning = buildUnnamed1713(); + } + buildCounterCreateManagedShortLinkResponse--; + return o; +} + +checkCreateManagedShortLinkResponse(api.CreateManagedShortLinkResponse o) { + buildCounterCreateManagedShortLinkResponse++; + if (buildCounterCreateManagedShortLinkResponse < 3) { + checkManagedShortLink(o.managedShortLink); + unittest.expect(o.previewLink, unittest.equals('foo')); + checkUnnamed1713(o.warning); + } + buildCounterCreateManagedShortLinkResponse--; +} + core.int buildCounterCreateShortDynamicLinkRequest = 0; buildCreateShortDynamicLinkRequest() { var o = new api.CreateShortDynamicLinkRequest(); @@ -119,14 +180,14 @@ buildCounterCreateShortDynamicLinkRequest--; } -buildUnnamed1651() { +buildUnnamed1714() { var o = new core.List<api.DynamicLinkWarning>(); o.add(buildDynamicLinkWarning()); o.add(buildDynamicLinkWarning()); return o; } -checkUnnamed1651(core.List<api.DynamicLinkWarning> o) { +checkUnnamed1714(core.List<api.DynamicLinkWarning> o) { unittest.expect(o, unittest.hasLength(2)); checkDynamicLinkWarning(o[0]); checkDynamicLinkWarning(o[1]); @@ -139,7 +200,7 @@ if (buildCounterCreateShortDynamicLinkResponse < 3) { o.previewLink = "foo"; o.shortLink = "foo"; - o.warning = buildUnnamed1651(); + o.warning = buildUnnamed1714(); } buildCounterCreateShortDynamicLinkResponse--; return o; @@ -150,7 +211,7 @@ if (buildCounterCreateShortDynamicLinkResponse < 3) { unittest.expect(o.previewLink, unittest.equals('foo')); unittest.expect(o.shortLink, unittest.equals('foo')); - checkUnnamed1651(o.warning); + checkUnnamed1714(o.warning); } buildCounterCreateShortDynamicLinkResponse--; } @@ -236,6 +297,7 @@ o.analyticsInfo = buildAnalyticsInfo(); o.androidInfo = buildAndroidInfo(); o.desktopInfo = buildDesktopInfo(); + o.domainUriPrefix = "foo"; o.dynamicLinkDomain = "foo"; o.iosInfo = buildIosInfo(); o.link = "foo"; @@ -252,6 +314,7 @@ checkAnalyticsInfo(o.analyticsInfo); checkAndroidInfo(o.androidInfo); checkDesktopInfo(o.desktopInfo); + unittest.expect(o.domainUriPrefix, unittest.equals('foo')); unittest.expect(o.dynamicLinkDomain, unittest.equals('foo')); checkIosInfo(o.iosInfo); unittest.expect(o.link, unittest.equals('foo')); @@ -261,14 +324,14 @@ buildCounterDynamicLinkInfo--; } -buildUnnamed1652() { +buildUnnamed1715() { var o = new core.List<api.DynamicLinkEventStat>(); o.add(buildDynamicLinkEventStat()); o.add(buildDynamicLinkEventStat()); return o; } -checkUnnamed1652(core.List<api.DynamicLinkEventStat> o) { +checkUnnamed1715(core.List<api.DynamicLinkEventStat> o) { unittest.expect(o, unittest.hasLength(2)); checkDynamicLinkEventStat(o[0]); checkDynamicLinkEventStat(o[1]); @@ -279,7 +342,7 @@ var o = new api.DynamicLinkStats(); buildCounterDynamicLinkStats++; if (buildCounterDynamicLinkStats < 3) { - o.linkEventStats = buildUnnamed1652(); + o.linkEventStats = buildUnnamed1715(); } buildCounterDynamicLinkStats--; return o; @@ -288,7 +351,7 @@ checkDynamicLinkStats(api.DynamicLinkStats o) { buildCounterDynamicLinkStats++; if (buildCounterDynamicLinkStats < 3) { - checkUnnamed1652(o.linkEventStats); + checkUnnamed1715(o.linkEventStats); } buildCounterDynamicLinkStats--; } @@ -363,6 +426,7 @@ o.invitationId = "foo"; o.isStrongMatchExecutable = true; o.matchMessage = "foo"; + o.requestIpVersion = "foo"; o.requestedLink = "foo"; o.resolvedLink = "foo"; o.utmCampaign = "foo"; @@ -385,6 +449,7 @@ unittest.expect(o.invitationId, unittest.equals('foo')); unittest.expect(o.isStrongMatchExecutable, unittest.isTrue); unittest.expect(o.matchMessage, unittest.equals('foo')); + unittest.expect(o.requestIpVersion, unittest.equals('foo')); unittest.expect(o.requestedLink, unittest.equals('foo')); unittest.expect(o.resolvedLink, unittest.equals('foo')); unittest.expect(o.utmCampaign, unittest.equals('foo')); @@ -477,6 +542,48 @@ buildCounterIosInfo--; } +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')); +} + +core.int buildCounterManagedShortLink = 0; +buildManagedShortLink() { + var o = new api.ManagedShortLink(); + buildCounterManagedShortLink++; + if (buildCounterManagedShortLink < 3) { + o.creationTime = "foo"; + o.flaggedAttribute = buildUnnamed1716(); + o.info = buildDynamicLinkInfo(); + o.link = "foo"; + o.linkName = "foo"; + o.visibility = "foo"; + } + buildCounterManagedShortLink--; + return o; +} + +checkManagedShortLink(api.ManagedShortLink o) { + buildCounterManagedShortLink++; + if (buildCounterManagedShortLink < 3) { + unittest.expect(o.creationTime, unittest.equals('foo')); + checkUnnamed1716(o.flaggedAttribute); + checkDynamicLinkInfo(o.info); + unittest.expect(o.link, unittest.equals('foo')); + unittest.expect(o.linkName, unittest.equals('foo')); + unittest.expect(o.visibility, unittest.equals('foo')); + } + buildCounterManagedShortLink--; +} + core.int buildCounterNavigationInfo = 0; buildNavigationInfo() { var o = new api.NavigationInfo(); @@ -524,6 +631,7 @@ var o = new api.Suffix(); buildCounterSuffix++; if (buildCounterSuffix < 3) { + o.customSuffix = "foo"; o.option = "foo"; } buildCounterSuffix--; @@ -533,6 +641,7 @@ checkSuffix(api.Suffix o) { buildCounterSuffix++; if (buildCounterSuffix < 3) { + unittest.expect(o.customSuffix, unittest.equals('foo')); unittest.expect(o.option, unittest.equals('foo')); } buildCounterSuffix--; @@ -555,6 +664,22 @@ }); }); + unittest.group("obj-schema-CreateManagedShortLinkRequest", () { + unittest.test("to-json--from-json", () { + var o = buildCreateManagedShortLinkRequest(); + var od = new api.CreateManagedShortLinkRequest.fromJson(o.toJson()); + checkCreateManagedShortLinkRequest(od); + }); + }); + + unittest.group("obj-schema-CreateManagedShortLinkResponse", () { + unittest.test("to-json--from-json", () { + var o = buildCreateManagedShortLinkResponse(); + var od = new api.CreateManagedShortLinkResponse.fromJson(o.toJson()); + checkCreateManagedShortLinkResponse(od); + }); + }); + unittest.group("obj-schema-CreateShortDynamicLinkRequest", () { unittest.test("to-json--from-json", () { var o = buildCreateShortDynamicLinkRequest(); @@ -660,6 +785,14 @@ }); }); + unittest.group("obj-schema-ManagedShortLink", () { + unittest.test("to-json--from-json", () { + var o = buildManagedShortLink(); + var od = new api.ManagedShortLink.fromJson(o.toJson()); + checkManagedShortLink(od); + }); + }); + unittest.group("obj-schema-NavigationInfo", () { unittest.test("to-json--from-json", () { var o = buildNavigationInfo(); @@ -684,6 +817,62 @@ }); }); + unittest.group("resource-ManagedShortLinksResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.ManagedShortLinksResourceApi res = + new api.FirebasedynamiclinksApi(mock).managedShortLinks; + var arg_request = buildCreateManagedShortLinkRequest(); + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.CreateManagedShortLinkRequest.fromJson(json); + checkCreateManagedShortLinkRequest(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 + 27), + unittest.equals("v1/managedShortLinks:create")); + pathOffset += 27; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildCreateManagedShortLinkResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkCreateManagedShortLinkResponse(response); + }))); + }); + }); + unittest.group("resource-ShortLinksResourceApi", () { unittest.test("method--create", () { var mock = new HttpServerMock();
diff --git a/generated/googleapis/test/firebaseremoteconfig/v1_test.dart b/generated/googleapis/test/firebaseremoteconfig/v1_test.dart index 37889b1..d64fb73 100644 --- a/generated/googleapis/test/firebaseremoteconfig/v1_test.dart +++ b/generated/googleapis/test/firebaseremoteconfig/v1_test.dart
@@ -50,27 +50,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1781() { +buildUnnamed1717() { var o = new core.List<api.RemoteConfigCondition>(); o.add(buildRemoteConfigCondition()); o.add(buildRemoteConfigCondition()); return o; } -checkUnnamed1781(core.List<api.RemoteConfigCondition> o) { +checkUnnamed1717(core.List<api.RemoteConfigCondition> o) { unittest.expect(o, unittest.hasLength(2)); checkRemoteConfigCondition(o[0]); checkRemoteConfigCondition(o[1]); } -buildUnnamed1782() { +buildUnnamed1718() { var o = new core.Map<core.String, api.RemoteConfigParameter>(); o["x"] = buildRemoteConfigParameter(); o["y"] = buildRemoteConfigParameter(); return o; } -checkUnnamed1782(core.Map<core.String, api.RemoteConfigParameter> o) { +checkUnnamed1718(core.Map<core.String, api.RemoteConfigParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkRemoteConfigParameter(o["x"]); checkRemoteConfigParameter(o["y"]); @@ -81,8 +81,8 @@ var o = new api.RemoteConfig(); buildCounterRemoteConfig++; if (buildCounterRemoteConfig < 3) { - o.conditions = buildUnnamed1781(); - o.parameters = buildUnnamed1782(); + o.conditions = buildUnnamed1717(); + o.parameters = buildUnnamed1718(); } buildCounterRemoteConfig--; return o; @@ -91,8 +91,8 @@ checkRemoteConfig(api.RemoteConfig o) { buildCounterRemoteConfig++; if (buildCounterRemoteConfig < 3) { - checkUnnamed1781(o.conditions); - checkUnnamed1782(o.parameters); + checkUnnamed1717(o.conditions); + checkUnnamed1718(o.parameters); } buildCounterRemoteConfig--; } @@ -122,14 +122,14 @@ buildCounterRemoteConfigCondition--; } -buildUnnamed1783() { +buildUnnamed1719() { var o = new core.Map<core.String, api.RemoteConfigParameterValue>(); o["x"] = buildRemoteConfigParameterValue(); o["y"] = buildRemoteConfigParameterValue(); return o; } -checkUnnamed1783(core.Map<core.String, api.RemoteConfigParameterValue> o) { +checkUnnamed1719(core.Map<core.String, api.RemoteConfigParameterValue> o) { unittest.expect(o, unittest.hasLength(2)); checkRemoteConfigParameterValue(o["x"]); checkRemoteConfigParameterValue(o["y"]); @@ -140,7 +140,7 @@ var o = new api.RemoteConfigParameter(); buildCounterRemoteConfigParameter++; if (buildCounterRemoteConfigParameter < 3) { - o.conditionalValues = buildUnnamed1783(); + o.conditionalValues = buildUnnamed1719(); o.defaultValue = buildRemoteConfigParameterValue(); o.description = "foo"; } @@ -151,7 +151,7 @@ checkRemoteConfigParameter(api.RemoteConfigParameter o) { buildCounterRemoteConfigParameter++; if (buildCounterRemoteConfigParameter < 3) { - checkUnnamed1783(o.conditionalValues); + checkUnnamed1719(o.conditionalValues); checkRemoteConfigParameterValue(o.defaultValue); unittest.expect(o.description, unittest.equals('foo')); }
diff --git a/generated/googleapis/test/firebaserules/v1_test.dart b/generated/googleapis/test/firebaserules/v1_test.dart index 5010bc0..fe068e2 100644 --- a/generated/googleapis/test/firebaserules/v1_test.dart +++ b/generated/googleapis/test/firebaserules/v1_test.dart
@@ -117,7 +117,7 @@ buildCounterFile--; } -buildUnnamed3485() { +buildUnnamed691() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -132,7 +132,7 @@ return o; } -checkUnnamed3485(core.List<core.Object> o) { +checkUnnamed691(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted2 = (o[0]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); @@ -151,7 +151,7 @@ var o = new api.FunctionCall(); buildCounterFunctionCall++; if (buildCounterFunctionCall < 3) { - o.args = buildUnnamed3485(); + o.args = buildUnnamed691(); o.function = "foo"; } buildCounterFunctionCall--; @@ -161,20 +161,20 @@ checkFunctionCall(api.FunctionCall o) { buildCounterFunctionCall++; if (buildCounterFunctionCall < 3) { - checkUnnamed3485(o.args); + checkUnnamed691(o.args); unittest.expect(o.function, unittest.equals('foo')); } buildCounterFunctionCall--; } -buildUnnamed3486() { +buildUnnamed692() { var o = new core.List<api.Arg>(); o.add(buildArg()); o.add(buildArg()); return o; } -checkUnnamed3486(core.List<api.Arg> o) { +checkUnnamed692(core.List<api.Arg> o) { unittest.expect(o, unittest.hasLength(2)); checkArg(o[0]); checkArg(o[1]); @@ -185,7 +185,7 @@ var o = new api.FunctionMock(); buildCounterFunctionMock++; if (buildCounterFunctionMock < 3) { - o.args = buildUnnamed3486(); + o.args = buildUnnamed692(); o.function = "foo"; o.result = buildResult(); } @@ -196,7 +196,7 @@ checkFunctionMock(api.FunctionMock o) { buildCounterFunctionMock++; if (buildCounterFunctionMock < 3) { - checkUnnamed3486(o.args); + checkUnnamed692(o.args); unittest.expect(o.function, unittest.equals('foo')); checkResult(o.result); } @@ -253,14 +253,14 @@ buildCounterIssue--; } -buildUnnamed3487() { +buildUnnamed693() { var o = new core.List<api.Release>(); o.add(buildRelease()); o.add(buildRelease()); return o; } -checkUnnamed3487(core.List<api.Release> o) { +checkUnnamed693(core.List<api.Release> o) { unittest.expect(o, unittest.hasLength(2)); checkRelease(o[0]); checkRelease(o[1]); @@ -272,7 +272,7 @@ buildCounterListReleasesResponse++; if (buildCounterListReleasesResponse < 3) { o.nextPageToken = "foo"; - o.releases = buildUnnamed3487(); + o.releases = buildUnnamed693(); } buildCounterListReleasesResponse--; return o; @@ -282,19 +282,19 @@ buildCounterListReleasesResponse++; if (buildCounterListReleasesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3487(o.releases); + checkUnnamed693(o.releases); } buildCounterListReleasesResponse--; } -buildUnnamed3488() { +buildUnnamed694() { var o = new core.List<api.Ruleset>(); o.add(buildRuleset()); o.add(buildRuleset()); return o; } -checkUnnamed3488(core.List<api.Ruleset> o) { +checkUnnamed694(core.List<api.Ruleset> o) { unittest.expect(o, unittest.hasLength(2)); checkRuleset(o[0]); checkRuleset(o[1]); @@ -306,7 +306,7 @@ buildCounterListRulesetsResponse++; if (buildCounterListRulesetsResponse < 3) { o.nextPageToken = "foo"; - o.rulesets = buildUnnamed3488(); + o.rulesets = buildUnnamed694(); } buildCounterListRulesetsResponse--; return o; @@ -316,7 +316,7 @@ buildCounterListRulesetsResponse++; if (buildCounterListRulesetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3488(o.rulesets); + checkUnnamed694(o.rulesets); } buildCounterListRulesetsResponse--; } @@ -398,14 +398,14 @@ buildCounterRuleset--; } -buildUnnamed3489() { +buildUnnamed695() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed3489(core.List<api.File> o) { +checkUnnamed695(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -416,7 +416,7 @@ var o = new api.Source(); buildCounterSource++; if (buildCounterSource < 3) { - o.files = buildUnnamed3489(); + o.files = buildUnnamed695(); } buildCounterSource--; return o; @@ -425,7 +425,7 @@ checkSource(api.Source o) { buildCounterSource++; if (buildCounterSource < 3) { - checkUnnamed3489(o.files); + checkUnnamed695(o.files); } buildCounterSource--; } @@ -453,14 +453,14 @@ buildCounterSourcePosition--; } -buildUnnamed3490() { +buildUnnamed696() { var o = new core.List<api.FunctionMock>(); o.add(buildFunctionMock()); o.add(buildFunctionMock()); return o; } -checkUnnamed3490(core.List<api.FunctionMock> o) { +checkUnnamed696(core.List<api.FunctionMock> o) { unittest.expect(o, unittest.hasLength(2)); checkFunctionMock(o[0]); checkFunctionMock(o[1]); @@ -472,7 +472,7 @@ buildCounterTestCase++; if (buildCounterTestCase < 3) { o.expectation = "foo"; - o.functionMocks = buildUnnamed3490(); + o.functionMocks = buildUnnamed696(); o.request = { 'list': [1, 2, 3], 'bool': true, @@ -492,7 +492,7 @@ buildCounterTestCase++; if (buildCounterTestCase < 3) { unittest.expect(o.expectation, unittest.equals('foo')); - checkUnnamed3490(o.functionMocks); + checkUnnamed696(o.functionMocks); var casted5 = (o.request) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); @@ -507,27 +507,27 @@ buildCounterTestCase--; } -buildUnnamed3491() { +buildUnnamed697() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3491(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')); } -buildUnnamed3492() { +buildUnnamed698() { var o = new core.List<api.FunctionCall>(); o.add(buildFunctionCall()); o.add(buildFunctionCall()); return o; } -checkUnnamed3492(core.List<api.FunctionCall> o) { +checkUnnamed698(core.List<api.FunctionCall> o) { unittest.expect(o, unittest.hasLength(2)); checkFunctionCall(o[0]); checkFunctionCall(o[1]); @@ -538,9 +538,9 @@ var o = new api.TestResult(); buildCounterTestResult++; if (buildCounterTestResult < 3) { - o.debugMessages = buildUnnamed3491(); + o.debugMessages = buildUnnamed697(); o.errorPosition = buildSourcePosition(); - o.functionCalls = buildUnnamed3492(); + o.functionCalls = buildUnnamed698(); o.state = "foo"; } buildCounterTestResult--; @@ -550,9 +550,9 @@ checkTestResult(api.TestResult o) { buildCounterTestResult++; if (buildCounterTestResult < 3) { - checkUnnamed3491(o.debugMessages); + checkUnnamed697(o.debugMessages); checkSourcePosition(o.errorPosition); - checkUnnamed3492(o.functionCalls); + checkUnnamed698(o.functionCalls); unittest.expect(o.state, unittest.equals('foo')); } buildCounterTestResult--; @@ -579,27 +579,27 @@ buildCounterTestRulesetRequest--; } -buildUnnamed3493() { +buildUnnamed699() { var o = new core.List<api.Issue>(); o.add(buildIssue()); o.add(buildIssue()); return o; } -checkUnnamed3493(core.List<api.Issue> o) { +checkUnnamed699(core.List<api.Issue> o) { unittest.expect(o, unittest.hasLength(2)); checkIssue(o[0]); checkIssue(o[1]); } -buildUnnamed3494() { +buildUnnamed700() { var o = new core.List<api.TestResult>(); o.add(buildTestResult()); o.add(buildTestResult()); return o; } -checkUnnamed3494(core.List<api.TestResult> o) { +checkUnnamed700(core.List<api.TestResult> o) { unittest.expect(o, unittest.hasLength(2)); checkTestResult(o[0]); checkTestResult(o[1]); @@ -610,8 +610,8 @@ var o = new api.TestRulesetResponse(); buildCounterTestRulesetResponse++; if (buildCounterTestRulesetResponse < 3) { - o.issues = buildUnnamed3493(); - o.testResults = buildUnnamed3494(); + o.issues = buildUnnamed699(); + o.testResults = buildUnnamed700(); } buildCounterTestRulesetResponse--; return o; @@ -620,20 +620,20 @@ checkTestRulesetResponse(api.TestRulesetResponse o) { buildCounterTestRulesetResponse++; if (buildCounterTestRulesetResponse < 3) { - checkUnnamed3493(o.issues); - checkUnnamed3494(o.testResults); + checkUnnamed699(o.issues); + checkUnnamed700(o.testResults); } buildCounterTestRulesetResponse--; } -buildUnnamed3495() { +buildUnnamed701() { var o = new core.List<api.TestCase>(); o.add(buildTestCase()); o.add(buildTestCase()); return o; } -checkUnnamed3495(core.List<api.TestCase> o) { +checkUnnamed701(core.List<api.TestCase> o) { unittest.expect(o, unittest.hasLength(2)); checkTestCase(o[0]); checkTestCase(o[1]); @@ -644,7 +644,7 @@ var o = new api.TestSuite(); buildCounterTestSuite++; if (buildCounterTestSuite < 3) { - o.testCases = buildUnnamed3495(); + o.testCases = buildUnnamed701(); } buildCounterTestSuite--; return o; @@ -653,7 +653,7 @@ checkTestSuite(api.TestSuite o) { buildCounterTestSuite++; if (buildCounterTestSuite < 3) { - checkUnnamed3495(o.testCases); + checkUnnamed701(o.testCases); } buildCounterTestSuite--; } @@ -1401,9 +1401,9 @@ api.ProjectsRulesetsResourceApi res = new api.FirebaserulesApi(mock).projects.rulesets; var arg_name = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1436,11 +1436,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1451,9 +1451,9 @@ }), true); res .list(arg_name, + filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, - filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListRulesetsResponse(response);
diff --git a/generated/googleapis/test/fitness/v1_test.dart b/generated/googleapis/test/fitness/v1_test.dart index 9d9ecea..6edac69 100644 --- a/generated/googleapis/test/fitness/v1_test.dart +++ b/generated/googleapis/test/fitness/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1218() { +buildUnnamed3096() { var o = new core.List<api.Dataset>(); o.add(buildDataset()); o.add(buildDataset()); return o; } -checkUnnamed1218(core.List<api.Dataset> o) { +checkUnnamed3096(core.List<api.Dataset> o) { unittest.expect(o, unittest.hasLength(2)); checkDataset(o[0]); checkDataset(o[1]); @@ -69,7 +69,7 @@ buildCounterAggregateBucket++; if (buildCounterAggregateBucket < 3) { o.activity = 42; - o.dataset = buildUnnamed1218(); + o.dataset = buildUnnamed3096(); o.endTimeMillis = "foo"; o.session = buildSession(); o.startTimeMillis = "foo"; @@ -83,7 +83,7 @@ buildCounterAggregateBucket++; if (buildCounterAggregateBucket < 3) { unittest.expect(o.activity, unittest.equals(42)); - checkUnnamed1218(o.dataset); + checkUnnamed3096(o.dataset); unittest.expect(o.endTimeMillis, unittest.equals('foo')); checkSession(o.session); unittest.expect(o.startTimeMillis, unittest.equals('foo')); @@ -113,27 +113,27 @@ buildCounterAggregateBy--; } -buildUnnamed1219() { +buildUnnamed3097() { var o = new core.List<api.AggregateBy>(); o.add(buildAggregateBy()); o.add(buildAggregateBy()); return o; } -checkUnnamed1219(core.List<api.AggregateBy> o) { +checkUnnamed3097(core.List<api.AggregateBy> o) { unittest.expect(o, unittest.hasLength(2)); checkAggregateBy(o[0]); checkAggregateBy(o[1]); } -buildUnnamed1220() { +buildUnnamed3098() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1220(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')); @@ -144,13 +144,13 @@ var o = new api.AggregateRequest(); buildCounterAggregateRequest++; if (buildCounterAggregateRequest < 3) { - o.aggregateBy = buildUnnamed1219(); + o.aggregateBy = buildUnnamed3097(); o.bucketByActivitySegment = buildBucketByActivity(); o.bucketByActivityType = buildBucketByActivity(); o.bucketBySession = buildBucketBySession(); o.bucketByTime = buildBucketByTime(); o.endTimeMillis = "foo"; - o.filteredDataQualityStandard = buildUnnamed1220(); + o.filteredDataQualityStandard = buildUnnamed3098(); o.startTimeMillis = "foo"; } buildCounterAggregateRequest--; @@ -160,26 +160,26 @@ checkAggregateRequest(api.AggregateRequest o) { buildCounterAggregateRequest++; if (buildCounterAggregateRequest < 3) { - checkUnnamed1219(o.aggregateBy); + checkUnnamed3097(o.aggregateBy); checkBucketByActivity(o.bucketByActivitySegment); checkBucketByActivity(o.bucketByActivityType); checkBucketBySession(o.bucketBySession); checkBucketByTime(o.bucketByTime); unittest.expect(o.endTimeMillis, unittest.equals('foo')); - checkUnnamed1220(o.filteredDataQualityStandard); + checkUnnamed3098(o.filteredDataQualityStandard); unittest.expect(o.startTimeMillis, unittest.equals('foo')); } buildCounterAggregateRequest--; } -buildUnnamed1221() { +buildUnnamed3099() { var o = new core.List<api.AggregateBucket>(); o.add(buildAggregateBucket()); o.add(buildAggregateBucket()); return o; } -checkUnnamed1221(core.List<api.AggregateBucket> o) { +checkUnnamed3099(core.List<api.AggregateBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkAggregateBucket(o[0]); checkAggregateBucket(o[1]); @@ -190,7 +190,7 @@ var o = new api.AggregateResponse(); buildCounterAggregateResponse++; if (buildCounterAggregateResponse < 3) { - o.bucket = buildUnnamed1221(); + o.bucket = buildUnnamed3099(); } buildCounterAggregateResponse--; return o; @@ -199,7 +199,7 @@ checkAggregateResponse(api.AggregateResponse o) { buildCounterAggregateResponse++; if (buildCounterAggregateResponse < 3) { - checkUnnamed1221(o.bucket); + checkUnnamed3099(o.bucket); } buildCounterAggregateResponse--; } @@ -313,14 +313,14 @@ buildCounterBucketByTimePeriod--; } -buildUnnamed1222() { +buildUnnamed3100() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed1222(core.List<api.Value> o) { +checkUnnamed3100(core.List<api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o[0]); checkValue(o[1]); @@ -338,7 +338,7 @@ o.originDataSourceId = "foo"; o.rawTimestampNanos = "foo"; o.startTimeNanos = "foo"; - o.value = buildUnnamed1222(); + o.value = buildUnnamed3100(); } buildCounterDataPoint--; return o; @@ -354,19 +354,19 @@ unittest.expect(o.originDataSourceId, unittest.equals('foo')); unittest.expect(o.rawTimestampNanos, unittest.equals('foo')); unittest.expect(o.startTimeNanos, unittest.equals('foo')); - checkUnnamed1222(o.value); + checkUnnamed3100(o.value); } buildCounterDataPoint--; } -buildUnnamed1223() { +buildUnnamed3101() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1223(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')); @@ -378,7 +378,7 @@ buildCounterDataSource++; if (buildCounterDataSource < 3) { o.application = buildApplication(); - o.dataQualityStandard = buildUnnamed1223(); + o.dataQualityStandard = buildUnnamed3101(); o.dataStreamId = "foo"; o.dataStreamName = "foo"; o.dataType = buildDataType(); @@ -394,7 +394,7 @@ buildCounterDataSource++; if (buildCounterDataSource < 3) { checkApplication(o.application); - checkUnnamed1223(o.dataQualityStandard); + checkUnnamed3101(o.dataQualityStandard); unittest.expect(o.dataStreamId, unittest.equals('foo')); unittest.expect(o.dataStreamName, unittest.equals('foo')); checkDataType(o.dataType); @@ -405,14 +405,14 @@ buildCounterDataSource--; } -buildUnnamed1224() { +buildUnnamed3102() { var o = new core.List<api.DataTypeField>(); o.add(buildDataTypeField()); o.add(buildDataTypeField()); return o; } -checkUnnamed1224(core.List<api.DataTypeField> o) { +checkUnnamed3102(core.List<api.DataTypeField> o) { unittest.expect(o, unittest.hasLength(2)); checkDataTypeField(o[0]); checkDataTypeField(o[1]); @@ -423,7 +423,7 @@ var o = new api.DataType(); buildCounterDataType++; if (buildCounterDataType < 3) { - o.field = buildUnnamed1224(); + o.field = buildUnnamed3102(); o.name = "foo"; } buildCounterDataType--; @@ -433,7 +433,7 @@ checkDataType(api.DataType o) { buildCounterDataType++; if (buildCounterDataType < 3) { - checkUnnamed1224(o.field); + checkUnnamed3102(o.field); unittest.expect(o.name, unittest.equals('foo')); } buildCounterDataType--; @@ -462,14 +462,14 @@ buildCounterDataTypeField--; } -buildUnnamed1225() { +buildUnnamed3103() { var o = new core.List<api.DataPoint>(); o.add(buildDataPoint()); o.add(buildDataPoint()); return o; } -checkUnnamed1225(core.List<api.DataPoint> o) { +checkUnnamed3103(core.List<api.DataPoint> o) { unittest.expect(o, unittest.hasLength(2)); checkDataPoint(o[0]); checkDataPoint(o[1]); @@ -484,7 +484,7 @@ o.maxEndTimeNs = "foo"; o.minStartTimeNs = "foo"; o.nextPageToken = "foo"; - o.point = buildUnnamed1225(); + o.point = buildUnnamed3103(); } buildCounterDataset--; return o; @@ -497,7 +497,7 @@ unittest.expect(o.maxEndTimeNs, unittest.equals('foo')); unittest.expect(o.minStartTimeNs, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1225(o.point); + checkUnnamed3103(o.point); } buildCounterDataset--; } @@ -529,27 +529,27 @@ buildCounterDevice--; } -buildUnnamed1226() { +buildUnnamed3104() { var o = new core.List<api.DataPoint>(); o.add(buildDataPoint()); o.add(buildDataPoint()); return o; } -checkUnnamed1226(core.List<api.DataPoint> o) { +checkUnnamed3104(core.List<api.DataPoint> o) { unittest.expect(o, unittest.hasLength(2)); checkDataPoint(o[0]); checkDataPoint(o[1]); } -buildUnnamed1227() { +buildUnnamed3105() { var o = new core.List<api.DataPoint>(); o.add(buildDataPoint()); o.add(buildDataPoint()); return o; } -checkUnnamed1227(core.List<api.DataPoint> o) { +checkUnnamed3105(core.List<api.DataPoint> o) { unittest.expect(o, unittest.hasLength(2)); checkDataPoint(o[0]); checkDataPoint(o[1]); @@ -561,8 +561,8 @@ buildCounterListDataPointChangesResponse++; if (buildCounterListDataPointChangesResponse < 3) { o.dataSourceId = "foo"; - o.deletedDataPoint = buildUnnamed1226(); - o.insertedDataPoint = buildUnnamed1227(); + o.deletedDataPoint = buildUnnamed3104(); + o.insertedDataPoint = buildUnnamed3105(); o.nextPageToken = "foo"; } buildCounterListDataPointChangesResponse--; @@ -573,21 +573,21 @@ buildCounterListDataPointChangesResponse++; if (buildCounterListDataPointChangesResponse < 3) { unittest.expect(o.dataSourceId, unittest.equals('foo')); - checkUnnamed1226(o.deletedDataPoint); - checkUnnamed1227(o.insertedDataPoint); + checkUnnamed3104(o.deletedDataPoint); + checkUnnamed3105(o.insertedDataPoint); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDataPointChangesResponse--; } -buildUnnamed1228() { +buildUnnamed3106() { var o = new core.List<api.DataSource>(); o.add(buildDataSource()); o.add(buildDataSource()); return o; } -checkUnnamed1228(core.List<api.DataSource> o) { +checkUnnamed3106(core.List<api.DataSource> o) { unittest.expect(o, unittest.hasLength(2)); checkDataSource(o[0]); checkDataSource(o[1]); @@ -598,7 +598,7 @@ var o = new api.ListDataSourcesResponse(); buildCounterListDataSourcesResponse++; if (buildCounterListDataSourcesResponse < 3) { - o.dataSource = buildUnnamed1228(); + o.dataSource = buildUnnamed3106(); } buildCounterListDataSourcesResponse--; return o; @@ -607,32 +607,32 @@ checkListDataSourcesResponse(api.ListDataSourcesResponse o) { buildCounterListDataSourcesResponse++; if (buildCounterListDataSourcesResponse < 3) { - checkUnnamed1228(o.dataSource); + checkUnnamed3106(o.dataSource); } buildCounterListDataSourcesResponse--; } -buildUnnamed1229() { +buildUnnamed3107() { var o = new core.List<api.Session>(); o.add(buildSession()); o.add(buildSession()); return o; } -checkUnnamed1229(core.List<api.Session> o) { +checkUnnamed3107(core.List<api.Session> o) { unittest.expect(o, unittest.hasLength(2)); checkSession(o[0]); checkSession(o[1]); } -buildUnnamed1230() { +buildUnnamed3108() { var o = new core.List<api.Session>(); o.add(buildSession()); o.add(buildSession()); return o; } -checkUnnamed1230(core.List<api.Session> o) { +checkUnnamed3108(core.List<api.Session> o) { unittest.expect(o, unittest.hasLength(2)); checkSession(o[0]); checkSession(o[1]); @@ -643,10 +643,10 @@ var o = new api.ListSessionsResponse(); buildCounterListSessionsResponse++; if (buildCounterListSessionsResponse < 3) { - o.deletedSession = buildUnnamed1229(); + o.deletedSession = buildUnnamed3107(); o.hasMoreData = true; o.nextPageToken = "foo"; - o.session = buildUnnamed1230(); + o.session = buildUnnamed3108(); } buildCounterListSessionsResponse--; return o; @@ -655,10 +655,10 @@ checkListSessionsResponse(api.ListSessionsResponse o) { buildCounterListSessionsResponse++; if (buildCounterListSessionsResponse < 3) { - checkUnnamed1229(o.deletedSession); + checkUnnamed3107(o.deletedSession); unittest.expect(o.hasMoreData, unittest.isTrue); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1230(o.session); + checkUnnamed3108(o.session); } buildCounterListSessionsResponse--; } @@ -717,14 +717,14 @@ buildCounterSession--; } -buildUnnamed1231() { +buildUnnamed3109() { var o = new core.List<api.ValueMapValEntry>(); o.add(buildValueMapValEntry()); o.add(buildValueMapValEntry()); return o; } -checkUnnamed1231(core.List<api.ValueMapValEntry> o) { +checkUnnamed3109(core.List<api.ValueMapValEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkValueMapValEntry(o[0]); checkValueMapValEntry(o[1]); @@ -737,7 +737,7 @@ if (buildCounterValue < 3) { o.fpVal = 42.0; o.intVal = 42; - o.mapVal = buildUnnamed1231(); + o.mapVal = buildUnnamed3109(); o.stringVal = "foo"; } buildCounterValue--; @@ -749,7 +749,7 @@ if (buildCounterValue < 3) { unittest.expect(o.fpVal, unittest.equals(42.0)); unittest.expect(o.intVal, unittest.equals(42)); - checkUnnamed1231(o.mapVal); + checkUnnamed3109(o.mapVal); unittest.expect(o.stringVal, unittest.equals('foo')); } buildCounterValue--; @@ -776,14 +776,14 @@ buildCounterValueMapValEntry--; } -buildUnnamed1232() { +buildUnnamed3110() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1232(core.List<core.String> 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')); @@ -1122,7 +1122,7 @@ api.UsersDataSourcesResourceApi res = new api.FitnessApi(mock).users.dataSources; var arg_userId = "foo"; - var arg_dataTypeName = buildUnnamed1232(); + var arg_dataTypeName = buildUnnamed3110(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path;
diff --git a/generated/googleapis/test/fusiontables/v1_test.dart b/generated/googleapis/test/fusiontables/v1_test.dart index 2990b6b..bf9ac6b 100644 --- a/generated/googleapis/test/fusiontables/v1_test.dart +++ b/generated/googleapis/test/fusiontables/v1_test.dart
@@ -131,14 +131,14 @@ buildCounterColumn--; } -buildUnnamed1988() { +buildUnnamed1196() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed1988(core.List<api.Column> o) { +checkUnnamed1196(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -149,7 +149,7 @@ var o = new api.ColumnList(); buildCounterColumnList++; if (buildCounterColumnList < 3) { - o.items = buildUnnamed1988(); + o.items = buildUnnamed1196(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -161,7 +161,7 @@ checkColumnList(api.ColumnList o) { buildCounterColumnList++; if (buildCounterColumnList < 3) { - checkUnnamed1988(o.items); + checkUnnamed1196(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -169,7 +169,7 @@ buildCounterColumnList--; } -buildUnnamed1989() { +buildUnnamed1197() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -184,7 +184,7 @@ return o; } -checkUnnamed1989(core.List<core.Object> o) { +checkUnnamed1197(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -203,7 +203,7 @@ var o = new api.Geometry(); buildCounterGeometry++; if (buildCounterGeometry < 3) { - o.geometries = buildUnnamed1989(); + o.geometries = buildUnnamed1197(); o.geometry = { 'list': [1, 2, 3], 'bool': true, @@ -218,7 +218,7 @@ checkGeometry(api.Geometry o) { buildCounterGeometry++; if (buildCounterGeometry < 3) { - checkUnnamed1989(o.geometries); + checkUnnamed1197(o.geometries); var casted3 = (o.geometry) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); @@ -250,30 +250,30 @@ buildCounterImport--; } -buildUnnamed1990() { +buildUnnamed1198() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed1990(core.List<core.double> o) { +checkUnnamed1198(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)); } -buildUnnamed1991() { +buildUnnamed1199() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed1990()); - o.add(buildUnnamed1990()); + o.add(buildUnnamed1198()); + o.add(buildUnnamed1198()); return o; } -checkUnnamed1991(core.List<core.List<core.double>> o) { +checkUnnamed1199(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1990(o[0]); - checkUnnamed1990(o[1]); + checkUnnamed1198(o[0]); + checkUnnamed1198(o[1]); } core.int buildCounterLine = 0; @@ -281,7 +281,7 @@ var o = new api.Line(); buildCounterLine++; if (buildCounterLine < 3) { - o.coordinates = buildUnnamed1991(); + o.coordinates = buildUnnamed1199(); o.type = "foo"; } buildCounterLine--; @@ -291,7 +291,7 @@ checkLine(api.Line o) { buildCounterLine++; if (buildCounterLine < 3) { - checkUnnamed1991(o.coordinates); + checkUnnamed1199(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterLine--; @@ -324,14 +324,14 @@ buildCounterLineStyle--; } -buildUnnamed1992() { +buildUnnamed1200() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed1992(core.List<core.double> o) { +checkUnnamed1200(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 = buildUnnamed1992(); + o.coordinates = buildUnnamed1200(); o.type = "foo"; } buildCounterPoint--; @@ -352,7 +352,7 @@ checkPoint(api.Point o) { buildCounterPoint++; if (buildCounterPoint < 3) { - checkUnnamed1992(o.coordinates); + checkUnnamed1200(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPoint--; @@ -379,43 +379,43 @@ buildCounterPointStyle--; } -buildUnnamed1993() { +buildUnnamed1201() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed1993(core.List<core.double> o) { +checkUnnamed1201(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)); } -buildUnnamed1994() { +buildUnnamed1202() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed1993()); - o.add(buildUnnamed1993()); + o.add(buildUnnamed1201()); + o.add(buildUnnamed1201()); return o; } -checkUnnamed1994(core.List<core.List<core.double>> o) { +checkUnnamed1202(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1993(o[0]); - checkUnnamed1993(o[1]); + checkUnnamed1201(o[0]); + checkUnnamed1201(o[1]); } -buildUnnamed1995() { +buildUnnamed1203() { var o = new core.List<core.List<core.List<core.double>>>(); - o.add(buildUnnamed1994()); - o.add(buildUnnamed1994()); + o.add(buildUnnamed1202()); + o.add(buildUnnamed1202()); return o; } -checkUnnamed1995(core.List<core.List<core.List<core.double>>> o) { +checkUnnamed1203(core.List<core.List<core.List<core.double>>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1994(o[0]); - checkUnnamed1994(o[1]); + checkUnnamed1202(o[0]); + checkUnnamed1202(o[1]); } core.int buildCounterPolygon = 0; @@ -423,7 +423,7 @@ var o = new api.Polygon(); buildCounterPolygon++; if (buildCounterPolygon < 3) { - o.coordinates = buildUnnamed1995(); + o.coordinates = buildUnnamed1203(); o.type = "foo"; } buildCounterPolygon--; @@ -433,7 +433,7 @@ checkPolygon(api.Polygon o) { buildCounterPolygon++; if (buildCounterPolygon < 3) { - checkUnnamed1995(o.coordinates); + checkUnnamed1203(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPolygon--; @@ -472,20 +472,20 @@ buildCounterPolygonStyle--; } -buildUnnamed1996() { +buildUnnamed1204() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1996(core.List<core.String> o) { +checkUnnamed1204(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1997() { +buildUnnamed1205() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -500,7 +500,7 @@ return o; } -checkUnnamed1997(core.List<core.Object> o) { +checkUnnamed1205(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted4 = (o[0]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); @@ -514,17 +514,17 @@ unittest.expect(casted5["string"], unittest.equals('foo')); } -buildUnnamed1998() { +buildUnnamed1206() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed1997()); - o.add(buildUnnamed1997()); + o.add(buildUnnamed1205()); + o.add(buildUnnamed1205()); return o; } -checkUnnamed1998(core.List<core.List<core.Object>> o) { +checkUnnamed1206(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1997(o[0]); - checkUnnamed1997(o[1]); + checkUnnamed1205(o[0]); + checkUnnamed1205(o[1]); } core.int buildCounterSqlresponse = 0; @@ -532,9 +532,9 @@ var o = new api.Sqlresponse(); buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - o.columns = buildUnnamed1996(); + o.columns = buildUnnamed1204(); o.kind = "foo"; - o.rows = buildUnnamed1998(); + o.rows = buildUnnamed1206(); } buildCounterSqlresponse--; return o; @@ -543,21 +543,21 @@ checkSqlresponse(api.Sqlresponse o) { buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - checkUnnamed1996(o.columns); + checkUnnamed1204(o.columns); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1998(o.rows); + checkUnnamed1206(o.rows); } buildCounterSqlresponse--; } -buildUnnamed1999() { +buildUnnamed1207() { var o = new core.List<api.Bucket>(); o.add(buildBucket()); o.add(buildBucket()); return o; } -checkUnnamed1999(core.List<api.Bucket> o) { +checkUnnamed1207(core.List<api.Bucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBucket(o[0]); checkBucket(o[1]); @@ -584,14 +584,14 @@ buildCounterStyleFunctionGradientColors--; } -buildUnnamed2000() { +buildUnnamed1208() { var o = new core.List<api.StyleFunctionGradientColors>(); o.add(buildStyleFunctionGradientColors()); o.add(buildStyleFunctionGradientColors()); return o; } -checkUnnamed2000(core.List<api.StyleFunctionGradientColors> o) { +checkUnnamed1208(core.List<api.StyleFunctionGradientColors> o) { unittest.expect(o, unittest.hasLength(2)); checkStyleFunctionGradientColors(o[0]); checkStyleFunctionGradientColors(o[1]); @@ -602,7 +602,7 @@ var o = new api.StyleFunctionGradient(); buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - o.colors = buildUnnamed2000(); + o.colors = buildUnnamed1208(); o.max = 42.0; o.min = 42.0; } @@ -613,7 +613,7 @@ checkStyleFunctionGradient(api.StyleFunctionGradient o) { buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - checkUnnamed2000(o.colors); + checkUnnamed1208(o.colors); unittest.expect(o.max, unittest.equals(42.0)); unittest.expect(o.min, unittest.equals(42.0)); } @@ -625,7 +625,7 @@ var o = new api.StyleFunction(); buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - o.buckets = buildUnnamed1999(); + o.buckets = buildUnnamed1207(); o.columnName = "foo"; o.gradient = buildStyleFunctionGradient(); o.kind = "foo"; @@ -637,7 +637,7 @@ checkStyleFunction(api.StyleFunction o) { buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - checkUnnamed1999(o.buckets); + checkUnnamed1207(o.buckets); unittest.expect(o.columnName, unittest.equals('foo')); checkStyleFunctionGradient(o.gradient); unittest.expect(o.kind, unittest.equals('foo')); @@ -676,14 +676,14 @@ buildCounterStyleSetting--; } -buildUnnamed2001() { +buildUnnamed1209() { var o = new core.List<api.StyleSetting>(); o.add(buildStyleSetting()); o.add(buildStyleSetting()); return o; } -checkUnnamed2001(core.List<api.StyleSetting> o) { +checkUnnamed1209(core.List<api.StyleSetting> o) { unittest.expect(o, unittest.hasLength(2)); checkStyleSetting(o[0]); checkStyleSetting(o[1]); @@ -694,7 +694,7 @@ var o = new api.StyleSettingList(); buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - o.items = buildUnnamed2001(); + o.items = buildUnnamed1209(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -706,7 +706,7 @@ checkStyleSettingList(api.StyleSettingList o) { buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - checkUnnamed2001(o.items); + checkUnnamed1209(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -714,27 +714,27 @@ buildCounterStyleSettingList--; } -buildUnnamed2002() { +buildUnnamed1210() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2002(core.List<core.String> o) { +checkUnnamed1210(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2003() { +buildUnnamed1211() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed2003(core.List<api.Column> o) { +checkUnnamed1211(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -747,8 +747,8 @@ if (buildCounterTable < 3) { o.attribution = "foo"; o.attributionLink = "foo"; - o.baseTableIds = buildUnnamed2002(); - o.columns = buildUnnamed2003(); + o.baseTableIds = buildUnnamed1210(); + o.columns = buildUnnamed1211(); o.description = "foo"; o.isExportable = true; o.kind = "foo"; @@ -765,8 +765,8 @@ if (buildCounterTable < 3) { unittest.expect(o.attribution, unittest.equals('foo')); unittest.expect(o.attributionLink, unittest.equals('foo')); - checkUnnamed2002(o.baseTableIds); - checkUnnamed2003(o.columns); + checkUnnamed1210(o.baseTableIds); + checkUnnamed1211(o.columns); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.isExportable, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -777,14 +777,14 @@ buildCounterTable--; } -buildUnnamed2004() { +buildUnnamed1212() { var o = new core.List<api.Table>(); o.add(buildTable()); o.add(buildTable()); return o; } -checkUnnamed2004(core.List<api.Table> o) { +checkUnnamed1212(core.List<api.Table> o) { unittest.expect(o, unittest.hasLength(2)); checkTable(o[0]); checkTable(o[1]); @@ -795,7 +795,7 @@ var o = new api.TableList(); buildCounterTableList++; if (buildCounterTableList < 3) { - o.items = buildUnnamed2004(); + o.items = buildUnnamed1212(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -806,7 +806,7 @@ checkTableList(api.TableList o) { buildCounterTableList++; if (buildCounterTableList < 3) { - checkUnnamed2004(o.items); + checkUnnamed1212(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -840,14 +840,14 @@ buildCounterTask--; } -buildUnnamed2005() { +buildUnnamed1213() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed2005(core.List<api.Task> o) { +checkUnnamed1213(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -858,7 +858,7 @@ var o = new api.TaskList(); buildCounterTaskList++; if (buildCounterTaskList < 3) { - o.items = buildUnnamed2005(); + o.items = buildUnnamed1213(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -870,7 +870,7 @@ checkTaskList(api.TaskList o) { buildCounterTaskList++; if (buildCounterTaskList < 3) { - checkUnnamed2005(o.items); + checkUnnamed1213(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -878,14 +878,14 @@ buildCounterTaskList--; } -buildUnnamed2006() { +buildUnnamed1214() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2006(core.List<core.String> o) { +checkUnnamed1214(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -896,7 +896,7 @@ var o = new api.Template(); buildCounterTemplate++; if (buildCounterTemplate < 3) { - o.automaticColumnNames = buildUnnamed2006(); + o.automaticColumnNames = buildUnnamed1214(); o.body = "foo"; o.kind = "foo"; o.name = "foo"; @@ -910,7 +910,7 @@ checkTemplate(api.Template o) { buildCounterTemplate++; if (buildCounterTemplate < 3) { - checkUnnamed2006(o.automaticColumnNames); + checkUnnamed1214(o.automaticColumnNames); unittest.expect(o.body, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -920,14 +920,14 @@ buildCounterTemplate--; } -buildUnnamed2007() { +buildUnnamed1215() { var o = new core.List<api.Template>(); o.add(buildTemplate()); o.add(buildTemplate()); return o; } -checkUnnamed2007(core.List<api.Template> o) { +checkUnnamed1215(core.List<api.Template> o) { unittest.expect(o, unittest.hasLength(2)); checkTemplate(o[0]); checkTemplate(o[1]); @@ -938,7 +938,7 @@ var o = new api.TemplateList(); buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - o.items = buildUnnamed2007(); + o.items = buildUnnamed1215(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -950,7 +950,7 @@ checkTemplateList(api.TemplateList o) { buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - checkUnnamed2007(o.items); + checkUnnamed1215(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 f7be7f9..a7c7937 100644 --- a/generated/googleapis/test/fusiontables/v2_test.dart +++ b/generated/googleapis/test/fusiontables/v2_test.dart
@@ -100,14 +100,14 @@ buildCounterColumnBaseColumn--; } -buildUnnamed1342() { +buildUnnamed774() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1342(core.List<core.String> o) { +checkUnnamed774(core.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,7 +128,7 @@ o.kind = "foo"; o.name = "foo"; o.type = "foo"; - o.validValues = buildUnnamed1342(); + o.validValues = buildUnnamed774(); o.validateData = true; } buildCounterColumn--; @@ -148,20 +148,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); - checkUnnamed1342(o.validValues); + checkUnnamed774(o.validValues); unittest.expect(o.validateData, unittest.isTrue); } buildCounterColumn--; } -buildUnnamed1343() { +buildUnnamed775() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed1343(core.List<api.Column> o) { +checkUnnamed775(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -172,7 +172,7 @@ var o = new api.ColumnList(); buildCounterColumnList++; if (buildCounterColumnList < 3) { - o.items = buildUnnamed1343(); + o.items = buildUnnamed775(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -184,7 +184,7 @@ checkColumnList(api.ColumnList o) { buildCounterColumnList++; if (buildCounterColumnList < 3) { - checkUnnamed1343(o.items); + checkUnnamed775(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -192,7 +192,7 @@ buildCounterColumnList--; } -buildUnnamed1344() { +buildUnnamed776() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -207,7 +207,7 @@ return o; } -checkUnnamed1344(core.List<core.Object> o) { +checkUnnamed776(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -226,7 +226,7 @@ var o = new api.Geometry(); buildCounterGeometry++; if (buildCounterGeometry < 3) { - o.geometries = buildUnnamed1344(); + o.geometries = buildUnnamed776(); o.geometry = { 'list': [1, 2, 3], 'bool': true, @@ -241,7 +241,7 @@ checkGeometry(api.Geometry o) { buildCounterGeometry++; if (buildCounterGeometry < 3) { - checkUnnamed1344(o.geometries); + checkUnnamed776(o.geometries); var casted3 = (o.geometry) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); @@ -273,30 +273,30 @@ buildCounterImport--; } -buildUnnamed1345() { +buildUnnamed777() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed1345(core.List<core.double> o) { +checkUnnamed777(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)); } -buildUnnamed1346() { +buildUnnamed778() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed1345()); - o.add(buildUnnamed1345()); + o.add(buildUnnamed777()); + o.add(buildUnnamed777()); return o; } -checkUnnamed1346(core.List<core.List<core.double>> o) { +checkUnnamed778(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1345(o[0]); - checkUnnamed1345(o[1]); + checkUnnamed777(o[0]); + checkUnnamed777(o[1]); } core.int buildCounterLine = 0; @@ -304,7 +304,7 @@ var o = new api.Line(); buildCounterLine++; if (buildCounterLine < 3) { - o.coordinates = buildUnnamed1346(); + o.coordinates = buildUnnamed778(); o.type = "foo"; } buildCounterLine--; @@ -314,7 +314,7 @@ checkLine(api.Line o) { buildCounterLine++; if (buildCounterLine < 3) { - checkUnnamed1346(o.coordinates); + checkUnnamed778(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterLine--; @@ -347,14 +347,14 @@ buildCounterLineStyle--; } -buildUnnamed1347() { +buildUnnamed779() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed1347(core.List<core.double> o) { +checkUnnamed779(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)); @@ -365,7 +365,7 @@ var o = new api.Point(); buildCounterPoint++; if (buildCounterPoint < 3) { - o.coordinates = buildUnnamed1347(); + o.coordinates = buildUnnamed779(); o.type = "foo"; } buildCounterPoint--; @@ -375,7 +375,7 @@ checkPoint(api.Point o) { buildCounterPoint++; if (buildCounterPoint < 3) { - checkUnnamed1347(o.coordinates); + checkUnnamed779(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPoint--; @@ -402,43 +402,43 @@ buildCounterPointStyle--; } -buildUnnamed1348() { +buildUnnamed780() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed1348(core.List<core.double> o) { +checkUnnamed780(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)); } -buildUnnamed1349() { +buildUnnamed781() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed1348()); - o.add(buildUnnamed1348()); + o.add(buildUnnamed780()); + o.add(buildUnnamed780()); return o; } -checkUnnamed1349(core.List<core.List<core.double>> o) { +checkUnnamed781(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1348(o[0]); - checkUnnamed1348(o[1]); + checkUnnamed780(o[0]); + checkUnnamed780(o[1]); } -buildUnnamed1350() { +buildUnnamed782() { var o = new core.List<core.List<core.List<core.double>>>(); - o.add(buildUnnamed1349()); - o.add(buildUnnamed1349()); + o.add(buildUnnamed781()); + o.add(buildUnnamed781()); return o; } -checkUnnamed1350(core.List<core.List<core.List<core.double>>> o) { +checkUnnamed782(core.List<core.List<core.List<core.double>>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1349(o[0]); - checkUnnamed1349(o[1]); + checkUnnamed781(o[0]); + checkUnnamed781(o[1]); } core.int buildCounterPolygon = 0; @@ -446,7 +446,7 @@ var o = new api.Polygon(); buildCounterPolygon++; if (buildCounterPolygon < 3) { - o.coordinates = buildUnnamed1350(); + o.coordinates = buildUnnamed782(); o.type = "foo"; } buildCounterPolygon--; @@ -456,7 +456,7 @@ checkPolygon(api.Polygon o) { buildCounterPolygon++; if (buildCounterPolygon < 3) { - checkUnnamed1350(o.coordinates); + checkUnnamed782(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPolygon--; @@ -495,20 +495,20 @@ buildCounterPolygonStyle--; } -buildUnnamed1351() { +buildUnnamed783() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1351(core.List<core.String> o) { +checkUnnamed783(core.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() { +buildUnnamed784() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -523,7 +523,7 @@ return o; } -checkUnnamed1352(core.List<core.Object> o) { +checkUnnamed784(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted4 = (o[0]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); @@ -537,17 +537,17 @@ unittest.expect(casted5["string"], unittest.equals('foo')); } -buildUnnamed1353() { +buildUnnamed785() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed1352()); - o.add(buildUnnamed1352()); + o.add(buildUnnamed784()); + o.add(buildUnnamed784()); return o; } -checkUnnamed1353(core.List<core.List<core.Object>> o) { +checkUnnamed785(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1352(o[0]); - checkUnnamed1352(o[1]); + checkUnnamed784(o[0]); + checkUnnamed784(o[1]); } core.int buildCounterSqlresponse = 0; @@ -555,9 +555,9 @@ var o = new api.Sqlresponse(); buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - o.columns = buildUnnamed1351(); + o.columns = buildUnnamed783(); o.kind = "foo"; - o.rows = buildUnnamed1353(); + o.rows = buildUnnamed785(); } buildCounterSqlresponse--; return o; @@ -566,21 +566,21 @@ checkSqlresponse(api.Sqlresponse o) { buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - checkUnnamed1351(o.columns); + checkUnnamed783(o.columns); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1353(o.rows); + checkUnnamed785(o.rows); } buildCounterSqlresponse--; } -buildUnnamed1354() { +buildUnnamed786() { var o = new core.List<api.Bucket>(); o.add(buildBucket()); o.add(buildBucket()); return o; } -checkUnnamed1354(core.List<api.Bucket> o) { +checkUnnamed786(core.List<api.Bucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBucket(o[0]); checkBucket(o[1]); @@ -607,14 +607,14 @@ buildCounterStyleFunctionGradientColors--; } -buildUnnamed1355() { +buildUnnamed787() { var o = new core.List<api.StyleFunctionGradientColors>(); o.add(buildStyleFunctionGradientColors()); o.add(buildStyleFunctionGradientColors()); return o; } -checkUnnamed1355(core.List<api.StyleFunctionGradientColors> o) { +checkUnnamed787(core.List<api.StyleFunctionGradientColors> o) { unittest.expect(o, unittest.hasLength(2)); checkStyleFunctionGradientColors(o[0]); checkStyleFunctionGradientColors(o[1]); @@ -625,7 +625,7 @@ var o = new api.StyleFunctionGradient(); buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - o.colors = buildUnnamed1355(); + o.colors = buildUnnamed787(); o.max = 42.0; o.min = 42.0; } @@ -636,7 +636,7 @@ checkStyleFunctionGradient(api.StyleFunctionGradient o) { buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - checkUnnamed1355(o.colors); + checkUnnamed787(o.colors); unittest.expect(o.max, unittest.equals(42.0)); unittest.expect(o.min, unittest.equals(42.0)); } @@ -648,7 +648,7 @@ var o = new api.StyleFunction(); buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - o.buckets = buildUnnamed1354(); + o.buckets = buildUnnamed786(); o.columnName = "foo"; o.gradient = buildStyleFunctionGradient(); o.kind = "foo"; @@ -660,7 +660,7 @@ checkStyleFunction(api.StyleFunction o) { buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - checkUnnamed1354(o.buckets); + checkUnnamed786(o.buckets); unittest.expect(o.columnName, unittest.equals('foo')); checkStyleFunctionGradient(o.gradient); unittest.expect(o.kind, unittest.equals('foo')); @@ -699,14 +699,14 @@ buildCounterStyleSetting--; } -buildUnnamed1356() { +buildUnnamed788() { var o = new core.List<api.StyleSetting>(); o.add(buildStyleSetting()); o.add(buildStyleSetting()); return o; } -checkUnnamed1356(core.List<api.StyleSetting> o) { +checkUnnamed788(core.List<api.StyleSetting> o) { unittest.expect(o, unittest.hasLength(2)); checkStyleSetting(o[0]); checkStyleSetting(o[1]); @@ -717,7 +717,7 @@ var o = new api.StyleSettingList(); buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - o.items = buildUnnamed1356(); + o.items = buildUnnamed788(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -729,7 +729,7 @@ checkStyleSettingList(api.StyleSettingList o) { buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - checkUnnamed1356(o.items); + checkUnnamed788(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -737,27 +737,27 @@ buildCounterStyleSettingList--; } -buildUnnamed1357() { +buildUnnamed789() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1357(core.List<core.String> o) { +checkUnnamed789(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1358() { +buildUnnamed790() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed1358(core.List<api.Column> o) { +checkUnnamed790(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -770,9 +770,9 @@ if (buildCounterTable < 3) { o.attribution = "foo"; o.attributionLink = "foo"; - o.baseTableIds = buildUnnamed1357(); + o.baseTableIds = buildUnnamed789(); o.columnPropertiesJsonSchema = "foo"; - o.columns = buildUnnamed1358(); + o.columns = buildUnnamed790(); o.description = "foo"; o.isExportable = true; o.kind = "foo"; @@ -791,9 +791,9 @@ if (buildCounterTable < 3) { unittest.expect(o.attribution, unittest.equals('foo')); unittest.expect(o.attributionLink, unittest.equals('foo')); - checkUnnamed1357(o.baseTableIds); + checkUnnamed789(o.baseTableIds); unittest.expect(o.columnPropertiesJsonSchema, unittest.equals('foo')); - checkUnnamed1358(o.columns); + checkUnnamed790(o.columns); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.isExportable, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -806,14 +806,14 @@ buildCounterTable--; } -buildUnnamed1359() { +buildUnnamed791() { var o = new core.List<api.Table>(); o.add(buildTable()); o.add(buildTable()); return o; } -checkUnnamed1359(core.List<api.Table> o) { +checkUnnamed791(core.List<api.Table> o) { unittest.expect(o, unittest.hasLength(2)); checkTable(o[0]); checkTable(o[1]); @@ -824,7 +824,7 @@ var o = new api.TableList(); buildCounterTableList++; if (buildCounterTableList < 3) { - o.items = buildUnnamed1359(); + o.items = buildUnnamed791(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -835,7 +835,7 @@ checkTableList(api.TableList o) { buildCounterTableList++; if (buildCounterTableList < 3) { - checkUnnamed1359(o.items); + checkUnnamed791(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -869,14 +869,14 @@ buildCounterTask--; } -buildUnnamed1360() { +buildUnnamed792() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed1360(core.List<api.Task> o) { +checkUnnamed792(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -887,7 +887,7 @@ var o = new api.TaskList(); buildCounterTaskList++; if (buildCounterTaskList < 3) { - o.items = buildUnnamed1360(); + o.items = buildUnnamed792(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -899,7 +899,7 @@ checkTaskList(api.TaskList o) { buildCounterTaskList++; if (buildCounterTaskList < 3) { - checkUnnamed1360(o.items); + checkUnnamed792(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -907,14 +907,14 @@ buildCounterTaskList--; } -buildUnnamed1361() { +buildUnnamed793() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1361(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')); @@ -925,7 +925,7 @@ var o = new api.Template(); buildCounterTemplate++; if (buildCounterTemplate < 3) { - o.automaticColumnNames = buildUnnamed1361(); + o.automaticColumnNames = buildUnnamed793(); o.body = "foo"; o.kind = "foo"; o.name = "foo"; @@ -939,7 +939,7 @@ checkTemplate(api.Template o) { buildCounterTemplate++; if (buildCounterTemplate < 3) { - checkUnnamed1361(o.automaticColumnNames); + checkUnnamed793(o.automaticColumnNames); unittest.expect(o.body, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -949,14 +949,14 @@ buildCounterTemplate--; } -buildUnnamed1362() { +buildUnnamed794() { var o = new core.List<api.Template>(); o.add(buildTemplate()); o.add(buildTemplate()); return o; } -checkUnnamed1362(core.List<api.Template> o) { +checkUnnamed794(core.List<api.Template> o) { unittest.expect(o, unittest.hasLength(2)); checkTemplate(o[0]); checkTemplate(o[1]); @@ -967,7 +967,7 @@ var o = new api.TemplateList(); buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - o.items = buildUnnamed1362(); + o.items = buildUnnamed794(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -979,7 +979,7 @@ checkTemplateList(api.TemplateList o) { buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - checkUnnamed1362(o.items); + checkUnnamed794(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/games/v1_test.dart b/generated/googleapis/test/games/v1_test.dart index 13f372c..666aab9 100644 --- a/generated/googleapis/test/games/v1_test.dart +++ b/generated/googleapis/test/games/v1_test.dart
@@ -93,14 +93,14 @@ buildCounterAchievementDefinition--; } -buildUnnamed1502() { +buildUnnamed3843() { var o = new core.List<api.AchievementDefinition>(); o.add(buildAchievementDefinition()); o.add(buildAchievementDefinition()); return o; } -checkUnnamed1502(core.List<api.AchievementDefinition> o) { +checkUnnamed3843(core.List<api.AchievementDefinition> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementDefinition(o[0]); checkAchievementDefinition(o[1]); @@ -111,7 +111,7 @@ var o = new api.AchievementDefinitionsListResponse(); buildCounterAchievementDefinitionsListResponse++; if (buildCounterAchievementDefinitionsListResponse < 3) { - o.items = buildUnnamed1502(); + o.items = buildUnnamed3843(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -123,7 +123,7 @@ api.AchievementDefinitionsListResponse o) { buildCounterAchievementDefinitionsListResponse++; if (buildCounterAchievementDefinitionsListResponse < 3) { - checkUnnamed1502(o.items); + checkUnnamed3843(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -219,14 +219,14 @@ buildCounterAchievementUnlockResponse--; } -buildUnnamed1503() { +buildUnnamed3844() { var o = new core.List<api.AchievementUpdateRequest>(); o.add(buildAchievementUpdateRequest()); o.add(buildAchievementUpdateRequest()); return o; } -checkUnnamed1503(core.List<api.AchievementUpdateRequest> o) { +checkUnnamed3844(core.List<api.AchievementUpdateRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementUpdateRequest(o[0]); checkAchievementUpdateRequest(o[1]); @@ -238,7 +238,7 @@ buildCounterAchievementUpdateMultipleRequest++; if (buildCounterAchievementUpdateMultipleRequest < 3) { o.kind = "foo"; - o.updates = buildUnnamed1503(); + o.updates = buildUnnamed3844(); } buildCounterAchievementUpdateMultipleRequest--; return o; @@ -248,19 +248,19 @@ buildCounterAchievementUpdateMultipleRequest++; if (buildCounterAchievementUpdateMultipleRequest < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1503(o.updates); + checkUnnamed3844(o.updates); } buildCounterAchievementUpdateMultipleRequest--; } -buildUnnamed1504() { +buildUnnamed3845() { var o = new core.List<api.AchievementUpdateResponse>(); o.add(buildAchievementUpdateResponse()); o.add(buildAchievementUpdateResponse()); return o; } -checkUnnamed1504(core.List<api.AchievementUpdateResponse> o) { +checkUnnamed3845(core.List<api.AchievementUpdateResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementUpdateResponse(o[0]); checkAchievementUpdateResponse(o[1]); @@ -272,7 +272,7 @@ buildCounterAchievementUpdateMultipleResponse++; if (buildCounterAchievementUpdateMultipleResponse < 3) { o.kind = "foo"; - o.updatedAchievements = buildUnnamed1504(); + o.updatedAchievements = buildUnnamed3845(); } buildCounterAchievementUpdateMultipleResponse--; return o; @@ -283,7 +283,7 @@ buildCounterAchievementUpdateMultipleResponse++; if (buildCounterAchievementUpdateMultipleResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1504(o.updatedAchievements); + checkUnnamed3845(o.updatedAchievements); } buildCounterAchievementUpdateMultipleResponse--; } @@ -394,40 +394,40 @@ buildCounterAnonymousPlayer--; } -buildUnnamed1505() { +buildUnnamed3846() { var o = new core.List<api.ImageAsset>(); o.add(buildImageAsset()); o.add(buildImageAsset()); return o; } -checkUnnamed1505(core.List<api.ImageAsset> o) { +checkUnnamed3846(core.List<api.ImageAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkImageAsset(o[0]); checkImageAsset(o[1]); } -buildUnnamed1506() { +buildUnnamed3847() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1506(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')); } -buildUnnamed1507() { +buildUnnamed3848() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed1507(core.List<api.Instance> o) { +checkUnnamed3848(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -439,13 +439,13 @@ buildCounterApplication++; if (buildCounterApplication < 3) { o.achievementCount = 42; - o.assets = buildUnnamed1505(); + o.assets = buildUnnamed3846(); o.author = "foo"; o.category = buildApplicationCategory(); o.description = "foo"; - o.enabledFeatures = buildUnnamed1506(); + o.enabledFeatures = buildUnnamed3847(); o.id = "foo"; - o.instances = buildUnnamed1507(); + o.instances = buildUnnamed3848(); o.kind = "foo"; o.lastUpdatedTimestamp = "foo"; o.leaderboardCount = 42; @@ -460,13 +460,13 @@ buildCounterApplication++; if (buildCounterApplication < 3) { unittest.expect(o.achievementCount, unittest.equals(42)); - checkUnnamed1505(o.assets); + checkUnnamed3846(o.assets); unittest.expect(o.author, unittest.equals('foo')); checkApplicationCategory(o.category); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1506(o.enabledFeatures); + checkUnnamed3847(o.enabledFeatures); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1507(o.instances); + checkUnnamed3848(o.instances); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastUpdatedTimestamp, unittest.equals('foo')); unittest.expect(o.leaderboardCount, unittest.equals(42)); @@ -545,14 +545,14 @@ buildCounterCategory--; } -buildUnnamed1508() { +buildUnnamed3849() { var o = new core.List<api.Category>(); o.add(buildCategory()); o.add(buildCategory()); return o; } -checkUnnamed1508(core.List<api.Category> o) { +checkUnnamed3849(core.List<api.Category> o) { unittest.expect(o, unittest.hasLength(2)); checkCategory(o[0]); checkCategory(o[1]); @@ -563,7 +563,7 @@ var o = new api.CategoryListResponse(); buildCounterCategoryListResponse++; if (buildCounterCategoryListResponse < 3) { - o.items = buildUnnamed1508(); + o.items = buildUnnamed3849(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -574,7 +574,7 @@ checkCategoryListResponse(api.CategoryListResponse o) { buildCounterCategoryListResponse++; if (buildCounterCategoryListResponse < 3) { - checkUnnamed1508(o.items); + checkUnnamed3849(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -625,14 +625,14 @@ buildCounterEventChild--; } -buildUnnamed1509() { +buildUnnamed3850() { var o = new core.List<api.EventChild>(); o.add(buildEventChild()); o.add(buildEventChild()); return o; } -checkUnnamed1509(core.List<api.EventChild> o) { +checkUnnamed3850(core.List<api.EventChild> o) { unittest.expect(o, unittest.hasLength(2)); checkEventChild(o[0]); checkEventChild(o[1]); @@ -643,7 +643,7 @@ var o = new api.EventDefinition(); buildCounterEventDefinition++; if (buildCounterEventDefinition < 3) { - o.childEvents = buildUnnamed1509(); + o.childEvents = buildUnnamed3850(); o.description = "foo"; o.displayName = "foo"; o.id = "foo"; @@ -659,7 +659,7 @@ checkEventDefinition(api.EventDefinition o) { buildCounterEventDefinition++; if (buildCounterEventDefinition < 3) { - checkUnnamed1509(o.childEvents); + checkUnnamed3850(o.childEvents); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -671,14 +671,14 @@ buildCounterEventDefinition--; } -buildUnnamed1510() { +buildUnnamed3851() { var o = new core.List<api.EventDefinition>(); o.add(buildEventDefinition()); o.add(buildEventDefinition()); return o; } -checkUnnamed1510(core.List<api.EventDefinition> o) { +checkUnnamed3851(core.List<api.EventDefinition> o) { unittest.expect(o, unittest.hasLength(2)); checkEventDefinition(o[0]); checkEventDefinition(o[1]); @@ -689,7 +689,7 @@ var o = new api.EventDefinitionListResponse(); buildCounterEventDefinitionListResponse++; if (buildCounterEventDefinitionListResponse < 3) { - o.items = buildUnnamed1510(); + o.items = buildUnnamed3851(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -700,7 +700,7 @@ checkEventDefinitionListResponse(api.EventDefinitionListResponse o) { buildCounterEventDefinitionListResponse++; if (buildCounterEventDefinitionListResponse < 3) { - checkUnnamed1510(o.items); + checkUnnamed3851(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -730,14 +730,14 @@ buildCounterEventPeriodRange--; } -buildUnnamed1511() { +buildUnnamed3852() { var o = new core.List<api.EventUpdateRequest>(); o.add(buildEventUpdateRequest()); o.add(buildEventUpdateRequest()); return o; } -checkUnnamed1511(core.List<api.EventUpdateRequest> o) { +checkUnnamed3852(core.List<api.EventUpdateRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkEventUpdateRequest(o[0]); checkEventUpdateRequest(o[1]); @@ -750,7 +750,7 @@ if (buildCounterEventPeriodUpdate < 3) { o.kind = "foo"; o.timePeriod = buildEventPeriodRange(); - o.updates = buildUnnamed1511(); + o.updates = buildUnnamed3852(); } buildCounterEventPeriodUpdate--; return o; @@ -761,7 +761,7 @@ if (buildCounterEventPeriodUpdate < 3) { unittest.expect(o.kind, unittest.equals('foo')); checkEventPeriodRange(o.timePeriod); - checkUnnamed1511(o.updates); + checkUnnamed3852(o.updates); } buildCounterEventPeriodUpdate--; } @@ -789,14 +789,14 @@ buildCounterEventRecordFailure--; } -buildUnnamed1512() { +buildUnnamed3853() { var o = new core.List<api.EventPeriodUpdate>(); o.add(buildEventPeriodUpdate()); o.add(buildEventPeriodUpdate()); return o; } -checkUnnamed1512(core.List<api.EventPeriodUpdate> o) { +checkUnnamed3853(core.List<api.EventPeriodUpdate> o) { unittest.expect(o, unittest.hasLength(2)); checkEventPeriodUpdate(o[0]); checkEventPeriodUpdate(o[1]); @@ -810,7 +810,7 @@ o.currentTimeMillis = "foo"; o.kind = "foo"; o.requestId = "foo"; - o.timePeriods = buildUnnamed1512(); + o.timePeriods = buildUnnamed3853(); } buildCounterEventRecordRequest--; return o; @@ -822,7 +822,7 @@ unittest.expect(o.currentTimeMillis, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.requestId, unittest.equals('foo')); - checkUnnamed1512(o.timePeriods); + checkUnnamed3853(o.timePeriods); } buildCounterEventRecordRequest--; } @@ -850,40 +850,40 @@ buildCounterEventUpdateRequest--; } -buildUnnamed1513() { +buildUnnamed3854() { var o = new core.List<api.EventBatchRecordFailure>(); o.add(buildEventBatchRecordFailure()); o.add(buildEventBatchRecordFailure()); return o; } -checkUnnamed1513(core.List<api.EventBatchRecordFailure> o) { +checkUnnamed3854(core.List<api.EventBatchRecordFailure> o) { unittest.expect(o, unittest.hasLength(2)); checkEventBatchRecordFailure(o[0]); checkEventBatchRecordFailure(o[1]); } -buildUnnamed1514() { +buildUnnamed3855() { var o = new core.List<api.EventRecordFailure>(); o.add(buildEventRecordFailure()); o.add(buildEventRecordFailure()); return o; } -checkUnnamed1514(core.List<api.EventRecordFailure> o) { +checkUnnamed3855(core.List<api.EventRecordFailure> o) { unittest.expect(o, unittest.hasLength(2)); checkEventRecordFailure(o[0]); checkEventRecordFailure(o[1]); } -buildUnnamed1515() { +buildUnnamed3856() { var o = new core.List<api.PlayerEvent>(); o.add(buildPlayerEvent()); o.add(buildPlayerEvent()); return o; } -checkUnnamed1515(core.List<api.PlayerEvent> o) { +checkUnnamed3856(core.List<api.PlayerEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerEvent(o[0]); checkPlayerEvent(o[1]); @@ -894,10 +894,10 @@ var o = new api.EventUpdateResponse(); buildCounterEventUpdateResponse++; if (buildCounterEventUpdateResponse < 3) { - o.batchFailures = buildUnnamed1513(); - o.eventFailures = buildUnnamed1514(); + o.batchFailures = buildUnnamed3854(); + o.eventFailures = buildUnnamed3855(); o.kind = "foo"; - o.playerEvents = buildUnnamed1515(); + o.playerEvents = buildUnnamed3856(); } buildCounterEventUpdateResponse--; return o; @@ -906,10 +906,10 @@ checkEventUpdateResponse(api.EventUpdateResponse o) { buildCounterEventUpdateResponse++; if (buildCounterEventUpdateResponse < 3) { - checkUnnamed1513(o.batchFailures); - checkUnnamed1514(o.eventFailures); + checkUnnamed3854(o.batchFailures); + checkUnnamed3855(o.eventFailures); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1515(o.playerEvents); + checkUnnamed3856(o.playerEvents); } buildCounterEventUpdateResponse--; } @@ -1163,14 +1163,14 @@ buildCounterLeaderboardEntry--; } -buildUnnamed1516() { +buildUnnamed3857() { var o = new core.List<api.Leaderboard>(); o.add(buildLeaderboard()); o.add(buildLeaderboard()); return o; } -checkUnnamed1516(core.List<api.Leaderboard> o) { +checkUnnamed3857(core.List<api.Leaderboard> o) { unittest.expect(o, unittest.hasLength(2)); checkLeaderboard(o[0]); checkLeaderboard(o[1]); @@ -1181,7 +1181,7 @@ var o = new api.LeaderboardListResponse(); buildCounterLeaderboardListResponse++; if (buildCounterLeaderboardListResponse < 3) { - o.items = buildUnnamed1516(); + o.items = buildUnnamed3857(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1192,7 +1192,7 @@ checkLeaderboardListResponse(api.LeaderboardListResponse o) { buildCounterLeaderboardListResponse++; if (buildCounterLeaderboardListResponse < 3) { - checkUnnamed1516(o.items); + checkUnnamed3857(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1226,14 +1226,14 @@ buildCounterLeaderboardScoreRank--; } -buildUnnamed1517() { +buildUnnamed3858() { var o = new core.List<api.LeaderboardEntry>(); o.add(buildLeaderboardEntry()); o.add(buildLeaderboardEntry()); return o; } -checkUnnamed1517(core.List<api.LeaderboardEntry> o) { +checkUnnamed3858(core.List<api.LeaderboardEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLeaderboardEntry(o[0]); checkLeaderboardEntry(o[1]); @@ -1244,7 +1244,7 @@ var o = new api.LeaderboardScores(); buildCounterLeaderboardScores++; if (buildCounterLeaderboardScores < 3) { - o.items = buildUnnamed1517(); + o.items = buildUnnamed3858(); o.kind = "foo"; o.nextPageToken = "foo"; o.numScores = "foo"; @@ -1258,7 +1258,7 @@ checkLeaderboardScores(api.LeaderboardScores o) { buildCounterLeaderboardScores++; if (buildCounterLeaderboardScores < 3) { - checkUnnamed1517(o.items); + checkUnnamed3858(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.numScores, unittest.equals('foo')); @@ -1268,14 +1268,14 @@ buildCounterLeaderboardScores--; } -buildUnnamed1518() { +buildUnnamed3859() { var o = new core.List<api.PlayerLevel>(); o.add(buildPlayerLevel()); o.add(buildPlayerLevel()); return o; } -checkUnnamed1518(core.List<api.PlayerLevel> o) { +checkUnnamed3859(core.List<api.PlayerLevel> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerLevel(o[0]); checkPlayerLevel(o[1]); @@ -1288,7 +1288,7 @@ if (buildCounterMetagameConfig < 3) { o.currentVersion = 42; o.kind = "foo"; - o.playerLevels = buildUnnamed1518(); + o.playerLevels = buildUnnamed3859(); } buildCounterMetagameConfig--; return o; @@ -1299,7 +1299,7 @@ if (buildCounterMetagameConfig < 3) { unittest.expect(o.currentVersion, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1518(o.playerLevels); + checkUnnamed3859(o.playerLevels); } buildCounterMetagameConfig--; } @@ -1536,14 +1536,14 @@ buildCounterPlayerAchievement--; } -buildUnnamed1519() { +buildUnnamed3860() { var o = new core.List<api.PlayerAchievement>(); o.add(buildPlayerAchievement()); o.add(buildPlayerAchievement()); return o; } -checkUnnamed1519(core.List<api.PlayerAchievement> o) { +checkUnnamed3860(core.List<api.PlayerAchievement> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerAchievement(o[0]); checkPlayerAchievement(o[1]); @@ -1554,7 +1554,7 @@ var o = new api.PlayerAchievementListResponse(); buildCounterPlayerAchievementListResponse++; if (buildCounterPlayerAchievementListResponse < 3) { - o.items = buildUnnamed1519(); + o.items = buildUnnamed3860(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1565,7 +1565,7 @@ checkPlayerAchievementListResponse(api.PlayerAchievementListResponse o) { buildCounterPlayerAchievementListResponse++; if (buildCounterPlayerAchievementListResponse < 3) { - checkUnnamed1519(o.items); + checkUnnamed3860(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1599,14 +1599,14 @@ buildCounterPlayerEvent--; } -buildUnnamed1520() { +buildUnnamed3861() { var o = new core.List<api.PlayerEvent>(); o.add(buildPlayerEvent()); o.add(buildPlayerEvent()); return o; } -checkUnnamed1520(core.List<api.PlayerEvent> o) { +checkUnnamed3861(core.List<api.PlayerEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerEvent(o[0]); checkPlayerEvent(o[1]); @@ -1617,7 +1617,7 @@ var o = new api.PlayerEventListResponse(); buildCounterPlayerEventListResponse++; if (buildCounterPlayerEventListResponse < 3) { - o.items = buildUnnamed1520(); + o.items = buildUnnamed3861(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1628,7 +1628,7 @@ checkPlayerEventListResponse(api.PlayerEventListResponse o) { buildCounterPlayerEventListResponse++; if (buildCounterPlayerEventListResponse < 3) { - checkUnnamed1520(o.items); + checkUnnamed3861(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1697,14 +1697,14 @@ buildCounterPlayerLeaderboardScore--; } -buildUnnamed1521() { +buildUnnamed3862() { var o = new core.List<api.PlayerLeaderboardScore>(); o.add(buildPlayerLeaderboardScore()); o.add(buildPlayerLeaderboardScore()); return o; } -checkUnnamed1521(core.List<api.PlayerLeaderboardScore> o) { +checkUnnamed3862(core.List<api.PlayerLeaderboardScore> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerLeaderboardScore(o[0]); checkPlayerLeaderboardScore(o[1]); @@ -1715,7 +1715,7 @@ var o = new api.PlayerLeaderboardScoreListResponse(); buildCounterPlayerLeaderboardScoreListResponse++; if (buildCounterPlayerLeaderboardScoreListResponse < 3) { - o.items = buildUnnamed1521(); + o.items = buildUnnamed3862(); o.kind = "foo"; o.nextPageToken = "foo"; o.player = buildPlayer(); @@ -1728,7 +1728,7 @@ api.PlayerLeaderboardScoreListResponse o) { buildCounterPlayerLeaderboardScoreListResponse++; if (buildCounterPlayerLeaderboardScoreListResponse < 3) { - checkUnnamed1521(o.items); + checkUnnamed3862(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPlayer(o.player); @@ -1761,14 +1761,14 @@ buildCounterPlayerLevel--; } -buildUnnamed1522() { +buildUnnamed3863() { var o = new core.List<api.Player>(); o.add(buildPlayer()); o.add(buildPlayer()); return o; } -checkUnnamed1522(core.List<api.Player> o) { +checkUnnamed3863(core.List<api.Player> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayer(o[0]); checkPlayer(o[1]); @@ -1779,7 +1779,7 @@ var o = new api.PlayerListResponse(); buildCounterPlayerListResponse++; if (buildCounterPlayerListResponse < 3) { - o.items = buildUnnamed1522(); + o.items = buildUnnamed3863(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1790,7 +1790,7 @@ checkPlayerListResponse(api.PlayerListResponse o) { buildCounterPlayerListResponse++; if (buildCounterPlayerListResponse < 3) { - checkUnnamed1522(o.items); + checkUnnamed3863(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1824,14 +1824,14 @@ buildCounterPlayerScore--; } -buildUnnamed1523() { +buildUnnamed3864() { var o = new core.List<api.PlayerScoreResponse>(); o.add(buildPlayerScoreResponse()); o.add(buildPlayerScoreResponse()); return o; } -checkUnnamed1523(core.List<api.PlayerScoreResponse> o) { +checkUnnamed3864(core.List<api.PlayerScoreResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerScoreResponse(o[0]); checkPlayerScoreResponse(o[1]); @@ -1843,7 +1843,7 @@ buildCounterPlayerScoreListResponse++; if (buildCounterPlayerScoreListResponse < 3) { o.kind = "foo"; - o.submittedScores = buildUnnamed1523(); + o.submittedScores = buildUnnamed3864(); } buildCounterPlayerScoreListResponse--; return o; @@ -1853,32 +1853,32 @@ buildCounterPlayerScoreListResponse++; if (buildCounterPlayerScoreListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1523(o.submittedScores); + checkUnnamed3864(o.submittedScores); } buildCounterPlayerScoreListResponse--; } -buildUnnamed1524() { +buildUnnamed3865() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1524(core.List<core.String> o) { +checkUnnamed3865(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1525() { +buildUnnamed3866() { var o = new core.List<api.PlayerScore>(); o.add(buildPlayerScore()); o.add(buildPlayerScore()); return o; } -checkUnnamed1525(core.List<api.PlayerScore> o) { +checkUnnamed3866(core.List<api.PlayerScore> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerScore(o[0]); checkPlayerScore(o[1]); @@ -1889,12 +1889,12 @@ var o = new api.PlayerScoreResponse(); buildCounterPlayerScoreResponse++; if (buildCounterPlayerScoreResponse < 3) { - o.beatenScoreTimeSpans = buildUnnamed1524(); + o.beatenScoreTimeSpans = buildUnnamed3865(); o.formattedScore = "foo"; o.kind = "foo"; o.leaderboardId = "foo"; o.scoreTag = "foo"; - o.unbeatenScores = buildUnnamed1525(); + o.unbeatenScores = buildUnnamed3866(); } buildCounterPlayerScoreResponse--; return o; @@ -1903,24 +1903,24 @@ checkPlayerScoreResponse(api.PlayerScoreResponse o) { buildCounterPlayerScoreResponse++; if (buildCounterPlayerScoreResponse < 3) { - checkUnnamed1524(o.beatenScoreTimeSpans); + checkUnnamed3865(o.beatenScoreTimeSpans); unittest.expect(o.formattedScore, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.leaderboardId, unittest.equals('foo')); unittest.expect(o.scoreTag, unittest.equals('foo')); - checkUnnamed1525(o.unbeatenScores); + checkUnnamed3866(o.unbeatenScores); } buildCounterPlayerScoreResponse--; } -buildUnnamed1526() { +buildUnnamed3867() { var o = new core.List<api.ScoreSubmission>(); o.add(buildScoreSubmission()); o.add(buildScoreSubmission()); return o; } -checkUnnamed1526(core.List<api.ScoreSubmission> o) { +checkUnnamed3867(core.List<api.ScoreSubmission> o) { unittest.expect(o, unittest.hasLength(2)); checkScoreSubmission(o[0]); checkScoreSubmission(o[1]); @@ -1932,7 +1932,7 @@ buildCounterPlayerScoreSubmissionList++; if (buildCounterPlayerScoreSubmissionList < 3) { o.kind = "foo"; - o.scores = buildUnnamed1526(); + o.scores = buildUnnamed3867(); } buildCounterPlayerScoreSubmissionList--; return o; @@ -1942,7 +1942,7 @@ buildCounterPlayerScoreSubmissionList++; if (buildCounterPlayerScoreSubmissionList < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1526(o.scores); + checkUnnamed3867(o.scores); } buildCounterPlayerScoreSubmissionList--; } @@ -2035,14 +2035,14 @@ buildCounterPushTokenId--; } -buildUnnamed1527() { +buildUnnamed3868() { var o = new core.List<api.QuestMilestone>(); o.add(buildQuestMilestone()); o.add(buildQuestMilestone()); return o; } -checkUnnamed1527(core.List<api.QuestMilestone> o) { +checkUnnamed3868(core.List<api.QuestMilestone> o) { unittest.expect(o, unittest.hasLength(2)); checkQuestMilestone(o[0]); checkQuestMilestone(o[1]); @@ -2064,7 +2064,7 @@ o.isDefaultIconUrl = true; o.kind = "foo"; o.lastUpdatedTimestampMillis = "foo"; - o.milestones = buildUnnamed1527(); + o.milestones = buildUnnamed3868(); o.name = "foo"; o.notifyTimestampMillis = "foo"; o.startTimestampMillis = "foo"; @@ -2088,7 +2088,7 @@ unittest.expect(o.isDefaultIconUrl, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastUpdatedTimestampMillis, unittest.equals('foo')); - checkUnnamed1527(o.milestones); + checkUnnamed3868(o.milestones); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notifyTimestampMillis, unittest.equals('foo')); unittest.expect(o.startTimestampMillis, unittest.equals('foo')); @@ -2147,14 +2147,14 @@ buildCounterQuestCriterion--; } -buildUnnamed1528() { +buildUnnamed3869() { var o = new core.List<api.Quest>(); o.add(buildQuest()); o.add(buildQuest()); return o; } -checkUnnamed1528(core.List<api.Quest> o) { +checkUnnamed3869(core.List<api.Quest> o) { unittest.expect(o, unittest.hasLength(2)); checkQuest(o[0]); checkQuest(o[1]); @@ -2165,7 +2165,7 @@ var o = new api.QuestListResponse(); buildCounterQuestListResponse++; if (buildCounterQuestListResponse < 3) { - o.items = buildUnnamed1528(); + o.items = buildUnnamed3869(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2176,21 +2176,21 @@ checkQuestListResponse(api.QuestListResponse o) { buildCounterQuestListResponse++; if (buildCounterQuestListResponse < 3) { - checkUnnamed1528(o.items); + checkUnnamed3869(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterQuestListResponse--; } -buildUnnamed1529() { +buildUnnamed3870() { var o = new core.List<api.QuestCriterion>(); o.add(buildQuestCriterion()); o.add(buildQuestCriterion()); return o; } -checkUnnamed1529(core.List<api.QuestCriterion> o) { +checkUnnamed3870(core.List<api.QuestCriterion> o) { unittest.expect(o, unittest.hasLength(2)); checkQuestCriterion(o[0]); checkQuestCriterion(o[1]); @@ -2202,7 +2202,7 @@ buildCounterQuestMilestone++; if (buildCounterQuestMilestone < 3) { o.completionRewardData = "foo"; - o.criteria = buildUnnamed1529(); + o.criteria = buildUnnamed3870(); o.id = "foo"; o.kind = "foo"; o.state = "foo"; @@ -2215,7 +2215,7 @@ buildCounterQuestMilestone++; if (buildCounterQuestMilestone < 3) { unittest.expect(o.completionRewardData, unittest.equals('foo')); - checkUnnamed1529(o.criteria); + checkUnnamed3870(o.criteria); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); @@ -2246,14 +2246,14 @@ buildCounterRevisionCheckResponse--; } -buildUnnamed1530() { +buildUnnamed3871() { var o = new core.List<api.RoomParticipant>(); o.add(buildRoomParticipant()); o.add(buildRoomParticipant()); return o; } -checkUnnamed1530(core.List<api.RoomParticipant> o) { +checkUnnamed3871(core.List<api.RoomParticipant> o) { unittest.expect(o, unittest.hasLength(2)); checkRoomParticipant(o[0]); checkRoomParticipant(o[1]); @@ -2272,7 +2272,7 @@ o.inviterId = "foo"; o.kind = "foo"; o.lastUpdateDetails = buildRoomModification(); - o.participants = buildUnnamed1530(); + o.participants = buildUnnamed3871(); o.roomId = "foo"; o.roomStatusVersion = 42; o.status = "foo"; @@ -2293,7 +2293,7 @@ unittest.expect(o.inviterId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkRoomModification(o.lastUpdateDetails); - checkUnnamed1530(o.participants); + checkUnnamed3871(o.participants); unittest.expect(o.roomId, unittest.equals('foo')); unittest.expect(o.roomStatusVersion, unittest.equals(42)); unittest.expect(o.status, unittest.equals('foo')); @@ -2369,27 +2369,27 @@ buildCounterRoomClientAddress--; } -buildUnnamed1531() { +buildUnnamed3872() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1531(core.List<core.String> o) { +checkUnnamed3872(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1532() { +buildUnnamed3873() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1532(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')); @@ -2401,9 +2401,9 @@ buildCounterRoomCreateRequest++; if (buildCounterRoomCreateRequest < 3) { o.autoMatchingCriteria = buildRoomAutoMatchingCriteria(); - o.capabilities = buildUnnamed1531(); + o.capabilities = buildUnnamed3872(); o.clientAddress = buildRoomClientAddress(); - o.invitedPlayerIds = buildUnnamed1532(); + o.invitedPlayerIds = buildUnnamed3873(); o.kind = "foo"; o.networkDiagnostics = buildNetworkDiagnostics(); o.requestId = "foo"; @@ -2417,9 +2417,9 @@ buildCounterRoomCreateRequest++; if (buildCounterRoomCreateRequest < 3) { checkRoomAutoMatchingCriteria(o.autoMatchingCriteria); - checkUnnamed1531(o.capabilities); + checkUnnamed3872(o.capabilities); checkRoomClientAddress(o.clientAddress); - checkUnnamed1532(o.invitedPlayerIds); + checkUnnamed3873(o.invitedPlayerIds); unittest.expect(o.kind, unittest.equals('foo')); checkNetworkDiagnostics(o.networkDiagnostics); unittest.expect(o.requestId, unittest.equals('foo')); @@ -2428,14 +2428,14 @@ buildCounterRoomCreateRequest--; } -buildUnnamed1533() { +buildUnnamed3874() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1533(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')); @@ -2446,7 +2446,7 @@ var o = new api.RoomJoinRequest(); buildCounterRoomJoinRequest++; if (buildCounterRoomJoinRequest < 3) { - o.capabilities = buildUnnamed1533(); + o.capabilities = buildUnnamed3874(); o.clientAddress = buildRoomClientAddress(); o.kind = "foo"; o.networkDiagnostics = buildNetworkDiagnostics(); @@ -2458,7 +2458,7 @@ checkRoomJoinRequest(api.RoomJoinRequest o) { buildCounterRoomJoinRequest++; if (buildCounterRoomJoinRequest < 3) { - checkUnnamed1533(o.capabilities); + checkUnnamed3874(o.capabilities); checkRoomClientAddress(o.clientAddress); unittest.expect(o.kind, unittest.equals('foo')); checkNetworkDiagnostics(o.networkDiagnostics); @@ -2466,14 +2466,14 @@ buildCounterRoomJoinRequest--; } -buildUnnamed1534() { +buildUnnamed3875() { var o = new core.List<api.PeerSessionDiagnostics>(); o.add(buildPeerSessionDiagnostics()); o.add(buildPeerSessionDiagnostics()); return o; } -checkUnnamed1534(core.List<api.PeerSessionDiagnostics> o) { +checkUnnamed3875(core.List<api.PeerSessionDiagnostics> o) { unittest.expect(o, unittest.hasLength(2)); checkPeerSessionDiagnostics(o[0]); checkPeerSessionDiagnostics(o[1]); @@ -2490,7 +2490,7 @@ o.kind = "foo"; o.networkOperatorCode = "foo"; o.networkOperatorName = "foo"; - o.peerSession = buildUnnamed1534(); + o.peerSession = buildUnnamed3875(); o.socketsUsed = true; } buildCounterRoomLeaveDiagnostics--; @@ -2506,7 +2506,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.networkOperatorCode, unittest.equals('foo')); unittest.expect(o.networkOperatorName, unittest.equals('foo')); - checkUnnamed1534(o.peerSession); + checkUnnamed3875(o.peerSession); unittest.expect(o.socketsUsed, unittest.isTrue); } buildCounterRoomLeaveDiagnostics--; @@ -2535,14 +2535,14 @@ buildCounterRoomLeaveRequest--; } -buildUnnamed1535() { +buildUnnamed3876() { var o = new core.List<api.Room>(); o.add(buildRoom()); o.add(buildRoom()); return o; } -checkUnnamed1535(core.List<api.Room> o) { +checkUnnamed3876(core.List<api.Room> o) { unittest.expect(o, unittest.hasLength(2)); checkRoom(o[0]); checkRoom(o[1]); @@ -2553,7 +2553,7 @@ var o = new api.RoomList(); buildCounterRoomList++; if (buildCounterRoomList < 3) { - o.items = buildUnnamed1535(); + o.items = buildUnnamed3876(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2564,7 +2564,7 @@ checkRoomList(api.RoomList o) { buildCounterRoomList++; if (buildCounterRoomList < 3) { - checkUnnamed1535(o.items); + checkUnnamed3876(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2625,14 +2625,14 @@ buildCounterRoomP2PStatus--; } -buildUnnamed1536() { +buildUnnamed3877() { var o = new core.List<api.RoomP2PStatus>(); o.add(buildRoomP2PStatus()); o.add(buildRoomP2PStatus()); return o; } -checkUnnamed1536(core.List<api.RoomP2PStatus> o) { +checkUnnamed3877(core.List<api.RoomP2PStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRoomP2PStatus(o[0]); checkRoomP2PStatus(o[1]); @@ -2644,7 +2644,7 @@ buildCounterRoomP2PStatuses++; if (buildCounterRoomP2PStatuses < 3) { o.kind = "foo"; - o.updates = buildUnnamed1536(); + o.updates = buildUnnamed3877(); } buildCounterRoomP2PStatuses--; return o; @@ -2654,19 +2654,19 @@ buildCounterRoomP2PStatuses++; if (buildCounterRoomP2PStatuses < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1536(o.updates); + checkUnnamed3877(o.updates); } buildCounterRoomP2PStatuses--; } -buildUnnamed1537() { +buildUnnamed3878() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1537(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')); @@ -2679,7 +2679,7 @@ if (buildCounterRoomParticipant < 3) { o.autoMatched = true; o.autoMatchedPlayer = buildAnonymousPlayer(); - o.capabilities = buildUnnamed1537(); + o.capabilities = buildUnnamed3878(); o.clientAddress = buildRoomClientAddress(); o.connected = true; o.id = "foo"; @@ -2697,7 +2697,7 @@ if (buildCounterRoomParticipant < 3) { unittest.expect(o.autoMatched, unittest.isTrue); checkAnonymousPlayer(o.autoMatchedPlayer); - checkUnnamed1537(o.capabilities); + checkUnnamed3878(o.capabilities); checkRoomClientAddress(o.clientAddress); unittest.expect(o.connected, unittest.isTrue); unittest.expect(o.id, unittest.equals('foo')); @@ -2709,14 +2709,14 @@ buildCounterRoomParticipant--; } -buildUnnamed1538() { +buildUnnamed3879() { var o = new core.List<api.RoomParticipant>(); o.add(buildRoomParticipant()); o.add(buildRoomParticipant()); return o; } -checkUnnamed1538(core.List<api.RoomParticipant> o) { +checkUnnamed3879(core.List<api.RoomParticipant> o) { unittest.expect(o, unittest.hasLength(2)); checkRoomParticipant(o[0]); checkRoomParticipant(o[1]); @@ -2729,7 +2729,7 @@ if (buildCounterRoomStatus < 3) { o.autoMatchingStatus = buildRoomAutoMatchStatus(); o.kind = "foo"; - o.participants = buildUnnamed1538(); + o.participants = buildUnnamed3879(); o.roomId = "foo"; o.status = "foo"; o.statusVersion = 42; @@ -2743,7 +2743,7 @@ if (buildCounterRoomStatus < 3) { checkRoomAutoMatchStatus(o.autoMatchingStatus); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1538(o.participants); + checkUnnamed3879(o.participants); unittest.expect(o.roomId, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.statusVersion, unittest.equals(42)); @@ -2844,14 +2844,14 @@ buildCounterSnapshotImage--; } -buildUnnamed1539() { +buildUnnamed3880() { var o = new core.List<api.Snapshot>(); o.add(buildSnapshot()); o.add(buildSnapshot()); return o; } -checkUnnamed1539(core.List<api.Snapshot> o) { +checkUnnamed3880(core.List<api.Snapshot> o) { unittest.expect(o, unittest.hasLength(2)); checkSnapshot(o[0]); checkSnapshot(o[1]); @@ -2862,7 +2862,7 @@ var o = new api.SnapshotListResponse(); buildCounterSnapshotListResponse++; if (buildCounterSnapshotListResponse < 3) { - o.items = buildUnnamed1539(); + o.items = buildUnnamed3880(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2873,7 +2873,7 @@ checkSnapshotListResponse(api.SnapshotListResponse o) { buildCounterSnapshotListResponse++; if (buildCounterSnapshotListResponse < 3) { - checkUnnamed1539(o.items); + checkUnnamed3880(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2905,27 +2905,27 @@ buildCounterTurnBasedAutoMatchingCriteria--; } -buildUnnamed1540() { +buildUnnamed3881() { var o = new core.List<api.TurnBasedMatchParticipant>(); o.add(buildTurnBasedMatchParticipant()); o.add(buildTurnBasedMatchParticipant()); return o; } -checkUnnamed1540(core.List<api.TurnBasedMatchParticipant> o) { +checkUnnamed3881(core.List<api.TurnBasedMatchParticipant> o) { unittest.expect(o, unittest.hasLength(2)); checkTurnBasedMatchParticipant(o[0]); checkTurnBasedMatchParticipant(o[1]); } -buildUnnamed1541() { +buildUnnamed3882() { var o = new core.List<api.ParticipantResult>(); o.add(buildParticipantResult()); o.add(buildParticipantResult()); return o; } -checkUnnamed1541(core.List<api.ParticipantResult> o) { +checkUnnamed3882(core.List<api.ParticipantResult> o) { unittest.expect(o, unittest.hasLength(2)); checkParticipantResult(o[0]); checkParticipantResult(o[1]); @@ -2947,11 +2947,11 @@ o.matchId = "foo"; o.matchNumber = 42; o.matchVersion = 42; - o.participants = buildUnnamed1540(); + o.participants = buildUnnamed3881(); o.pendingParticipantId = "foo"; o.previousMatchData = buildTurnBasedMatchData(); o.rematchId = "foo"; - o.results = buildUnnamed1541(); + o.results = buildUnnamed3882(); o.status = "foo"; o.userMatchStatus = "foo"; o.variant = 42; @@ -2975,11 +2975,11 @@ unittest.expect(o.matchId, unittest.equals('foo')); unittest.expect(o.matchNumber, unittest.equals(42)); unittest.expect(o.matchVersion, unittest.equals(42)); - checkUnnamed1540(o.participants); + checkUnnamed3881(o.participants); unittest.expect(o.pendingParticipantId, unittest.equals('foo')); checkTurnBasedMatchData(o.previousMatchData); unittest.expect(o.rematchId, unittest.equals('foo')); - checkUnnamed1541(o.results); + checkUnnamed3882(o.results); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.userMatchStatus, unittest.equals('foo')); unittest.expect(o.variant, unittest.equals(42)); @@ -2988,14 +2988,14 @@ buildCounterTurnBasedMatch--; } -buildUnnamed1542() { +buildUnnamed3883() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1542(core.List<core.String> o) { +checkUnnamed3883(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3007,7 +3007,7 @@ buildCounterTurnBasedMatchCreateRequest++; if (buildCounterTurnBasedMatchCreateRequest < 3) { o.autoMatchingCriteria = buildTurnBasedAutoMatchingCriteria(); - o.invitedPlayerIds = buildUnnamed1542(); + o.invitedPlayerIds = buildUnnamed3883(); o.kind = "foo"; o.requestId = "foo"; o.variant = 42; @@ -3020,7 +3020,7 @@ buildCounterTurnBasedMatchCreateRequest++; if (buildCounterTurnBasedMatchCreateRequest < 3) { checkTurnBasedAutoMatchingCriteria(o.autoMatchingCriteria); - checkUnnamed1542(o.invitedPlayerIds); + checkUnnamed3883(o.invitedPlayerIds); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.requestId, unittest.equals('foo')); unittest.expect(o.variant, unittest.equals(42)); @@ -3072,14 +3072,14 @@ buildCounterTurnBasedMatchDataRequest--; } -buildUnnamed1543() { +buildUnnamed3884() { var o = new core.List<api.TurnBasedMatch>(); o.add(buildTurnBasedMatch()); o.add(buildTurnBasedMatch()); return o; } -checkUnnamed1543(core.List<api.TurnBasedMatch> o) { +checkUnnamed3884(core.List<api.TurnBasedMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkTurnBasedMatch(o[0]); checkTurnBasedMatch(o[1]); @@ -3090,7 +3090,7 @@ var o = new api.TurnBasedMatchList(); buildCounterTurnBasedMatchList++; if (buildCounterTurnBasedMatchList < 3) { - o.items = buildUnnamed1543(); + o.items = buildUnnamed3884(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3101,7 +3101,7 @@ checkTurnBasedMatchList(api.TurnBasedMatchList o) { buildCounterTurnBasedMatchList++; if (buildCounterTurnBasedMatchList < 3) { - checkUnnamed1543(o.items); + checkUnnamed3884(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3183,14 +3183,14 @@ buildCounterTurnBasedMatchRematch--; } -buildUnnamed1544() { +buildUnnamed3885() { var o = new core.List<api.ParticipantResult>(); o.add(buildParticipantResult()); o.add(buildParticipantResult()); return o; } -checkUnnamed1544(core.List<api.ParticipantResult> o) { +checkUnnamed3885(core.List<api.ParticipantResult> o) { unittest.expect(o, unittest.hasLength(2)); checkParticipantResult(o[0]); checkParticipantResult(o[1]); @@ -3204,7 +3204,7 @@ o.data = buildTurnBasedMatchDataRequest(); o.kind = "foo"; o.matchVersion = 42; - o.results = buildUnnamed1544(); + o.results = buildUnnamed3885(); } buildCounterTurnBasedMatchResults--; return o; @@ -3216,19 +3216,19 @@ checkTurnBasedMatchDataRequest(o.data); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.matchVersion, unittest.equals(42)); - checkUnnamed1544(o.results); + checkUnnamed3885(o.results); } buildCounterTurnBasedMatchResults--; } -buildUnnamed1545() { +buildUnnamed3886() { var o = new core.List<api.TurnBasedMatch>(); o.add(buildTurnBasedMatch()); o.add(buildTurnBasedMatch()); return o; } -checkUnnamed1545(core.List<api.TurnBasedMatch> o) { +checkUnnamed3886(core.List<api.TurnBasedMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkTurnBasedMatch(o[0]); checkTurnBasedMatch(o[1]); @@ -3239,7 +3239,7 @@ var o = new api.TurnBasedMatchSync(); buildCounterTurnBasedMatchSync++; if (buildCounterTurnBasedMatchSync < 3) { - o.items = buildUnnamed1545(); + o.items = buildUnnamed3886(); o.kind = "foo"; o.moreAvailable = true; o.nextPageToken = "foo"; @@ -3251,7 +3251,7 @@ checkTurnBasedMatchSync(api.TurnBasedMatchSync o) { buildCounterTurnBasedMatchSync++; if (buildCounterTurnBasedMatchSync < 3) { - checkUnnamed1545(o.items); + checkUnnamed3886(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.moreAvailable, unittest.isTrue); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -3259,14 +3259,14 @@ buildCounterTurnBasedMatchSync--; } -buildUnnamed1546() { +buildUnnamed3887() { var o = new core.List<api.ParticipantResult>(); o.add(buildParticipantResult()); o.add(buildParticipantResult()); return o; } -checkUnnamed1546(core.List<api.ParticipantResult> o) { +checkUnnamed3887(core.List<api.ParticipantResult> o) { unittest.expect(o, unittest.hasLength(2)); checkParticipantResult(o[0]); checkParticipantResult(o[1]); @@ -3281,7 +3281,7 @@ o.kind = "foo"; o.matchVersion = 42; o.pendingParticipantId = "foo"; - o.results = buildUnnamed1546(); + o.results = buildUnnamed3887(); } buildCounterTurnBasedMatchTurn--; return o; @@ -3294,7 +3294,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.matchVersion, unittest.equals(42)); unittest.expect(o.pendingParticipantId, unittest.equals('foo')); - checkUnnamed1546(o.results); + checkUnnamed3887(o.results); } buildCounterTurnBasedMatchTurn--; }
diff --git a/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart b/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart index d071e0a..43be2d7 100644 --- a/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart +++ b/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart
@@ -112,14 +112,14 @@ buildCounterAchievementConfigurationDetail--; } -buildUnnamed3496() { +buildUnnamed1325() { var o = new core.List<api.AchievementConfiguration>(); o.add(buildAchievementConfiguration()); o.add(buildAchievementConfiguration()); return o; } -checkUnnamed3496(core.List<api.AchievementConfiguration> o) { +checkUnnamed1325(core.List<api.AchievementConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementConfiguration(o[0]); checkAchievementConfiguration(o[1]); @@ -130,7 +130,7 @@ var o = new api.AchievementConfigurationListResponse(); buildCounterAchievementConfigurationListResponse++; if (buildCounterAchievementConfigurationListResponse < 3) { - o.items = buildUnnamed3496(); + o.items = buildUnnamed1325(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -142,7 +142,7 @@ api.AchievementConfigurationListResponse o) { buildCounterAchievementConfigurationListResponse++; if (buildCounterAchievementConfigurationListResponse < 3) { - checkUnnamed3496(o.items); + checkUnnamed1325(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -288,14 +288,14 @@ buildCounterLeaderboardConfigurationDetail--; } -buildUnnamed3497() { +buildUnnamed1326() { var o = new core.List<api.LeaderboardConfiguration>(); o.add(buildLeaderboardConfiguration()); o.add(buildLeaderboardConfiguration()); return o; } -checkUnnamed3497(core.List<api.LeaderboardConfiguration> o) { +checkUnnamed1326(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 = buildUnnamed3497(); + o.items = buildUnnamed1326(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -318,7 +318,7 @@ api.LeaderboardConfigurationListResponse o) { buildCounterLeaderboardConfigurationListResponse++; if (buildCounterLeaderboardConfigurationListResponse < 3) { - checkUnnamed3497(o.items); + checkUnnamed1326(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -348,14 +348,14 @@ buildCounterLocalizedString--; } -buildUnnamed3498() { +buildUnnamed1327() { var o = new core.List<api.LocalizedString>(); o.add(buildLocalizedString()); o.add(buildLocalizedString()); return o; } -checkUnnamed3498(core.List<api.LocalizedString> o) { +checkUnnamed1327(core.List<api.LocalizedString> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedString(o[0]); checkLocalizedString(o[1]); @@ -367,7 +367,7 @@ buildCounterLocalizedStringBundle++; if (buildCounterLocalizedStringBundle < 3) { o.kind = "foo"; - o.translations = buildUnnamed3498(); + o.translations = buildUnnamed1327(); } buildCounterLocalizedStringBundle--; return o; @@ -377,7 +377,7 @@ buildCounterLocalizedStringBundle++; if (buildCounterLocalizedStringBundle < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3498(o.translations); + checkUnnamed1327(o.translations); } buildCounterLocalizedStringBundle--; }
diff --git a/generated/googleapis/test/gamesmanagement/v1management_test.dart b/generated/googleapis/test/gamesmanagement/v1management_test.dart index 5f1e5f1..080172e 100644 --- a/generated/googleapis/test/gamesmanagement/v1management_test.dart +++ b/generated/googleapis/test/gamesmanagement/v1management_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed6() { +buildUnnamed3494() { var o = new core.List<api.AchievementResetResponse>(); o.add(buildAchievementResetResponse()); o.add(buildAchievementResetResponse()); return o; } -checkUnnamed6(core.List<api.AchievementResetResponse> o) { +checkUnnamed3494(core.List<api.AchievementResetResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementResetResponse(o[0]); checkAchievementResetResponse(o[1]); @@ -69,7 +69,7 @@ buildCounterAchievementResetAllResponse++; if (buildCounterAchievementResetAllResponse < 3) { o.kind = "foo"; - o.results = buildUnnamed6(); + o.results = buildUnnamed3494(); } buildCounterAchievementResetAllResponse--; return o; @@ -79,19 +79,19 @@ buildCounterAchievementResetAllResponse++; if (buildCounterAchievementResetAllResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed6(o.results); + checkUnnamed3494(o.results); } buildCounterAchievementResetAllResponse--; } -buildUnnamed7() { +buildUnnamed3495() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed7(core.List<core.String> o) { +checkUnnamed3495(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -102,7 +102,7 @@ var o = new api.AchievementResetMultipleForAllRequest(); buildCounterAchievementResetMultipleForAllRequest++; if (buildCounterAchievementResetMultipleForAllRequest < 3) { - o.achievementIds = buildUnnamed7(); + o.achievementIds = buildUnnamed3495(); o.kind = "foo"; } buildCounterAchievementResetMultipleForAllRequest--; @@ -113,7 +113,7 @@ api.AchievementResetMultipleForAllRequest o) { buildCounterAchievementResetMultipleForAllRequest++; if (buildCounterAchievementResetMultipleForAllRequest < 3) { - checkUnnamed7(o.achievementIds); + checkUnnamed3495(o.achievementIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAchievementResetMultipleForAllRequest--; @@ -144,14 +144,14 @@ buildCounterAchievementResetResponse--; } -buildUnnamed8() { +buildUnnamed3496() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed8(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')); @@ -162,7 +162,7 @@ var o = new api.EventsResetMultipleForAllRequest(); buildCounterEventsResetMultipleForAllRequest++; if (buildCounterEventsResetMultipleForAllRequest < 3) { - o.eventIds = buildUnnamed8(); + o.eventIds = buildUnnamed3496(); o.kind = "foo"; } buildCounterEventsResetMultipleForAllRequest--; @@ -172,7 +172,7 @@ checkEventsResetMultipleForAllRequest(api.EventsResetMultipleForAllRequest o) { buildCounterEventsResetMultipleForAllRequest++; if (buildCounterEventsResetMultipleForAllRequest < 3) { - checkUnnamed8(o.eventIds); + checkUnnamed3496(o.eventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventsResetMultipleForAllRequest--; @@ -271,14 +271,14 @@ buildCounterHiddenPlayer--; } -buildUnnamed9() { +buildUnnamed3497() { var o = new core.List<api.HiddenPlayer>(); o.add(buildHiddenPlayer()); o.add(buildHiddenPlayer()); return o; } -checkUnnamed9(core.List<api.HiddenPlayer> o) { +checkUnnamed3497(core.List<api.HiddenPlayer> o) { unittest.expect(o, unittest.hasLength(2)); checkHiddenPlayer(o[0]); checkHiddenPlayer(o[1]); @@ -289,7 +289,7 @@ var o = new api.HiddenPlayerList(); buildCounterHiddenPlayerList++; if (buildCounterHiddenPlayerList < 3) { - o.items = buildUnnamed9(); + o.items = buildUnnamed3497(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -300,7 +300,7 @@ checkHiddenPlayerList(api.HiddenPlayerList o) { buildCounterHiddenPlayerList++; if (buildCounterHiddenPlayerList < 3) { - checkUnnamed9(o.items); + checkUnnamed3497(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -369,14 +369,14 @@ buildCounterPlayer--; } -buildUnnamed10() { +buildUnnamed3498() { var o = new core.List<api.PlayerScoreResetResponse>(); o.add(buildPlayerScoreResetResponse()); o.add(buildPlayerScoreResetResponse()); return o; } -checkUnnamed10(core.List<api.PlayerScoreResetResponse> o) { +checkUnnamed3498(core.List<api.PlayerScoreResetResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerScoreResetResponse(o[0]); checkPlayerScoreResetResponse(o[1]); @@ -388,7 +388,7 @@ buildCounterPlayerScoreResetAllResponse++; if (buildCounterPlayerScoreResetAllResponse < 3) { o.kind = "foo"; - o.results = buildUnnamed10(); + o.results = buildUnnamed3498(); } buildCounterPlayerScoreResetAllResponse--; return o; @@ -398,19 +398,19 @@ buildCounterPlayerScoreResetAllResponse++; if (buildCounterPlayerScoreResetAllResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed10(o.results); + checkUnnamed3498(o.results); } buildCounterPlayerScoreResetAllResponse--; } -buildUnnamed11() { +buildUnnamed3499() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed11(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')); @@ -423,7 +423,7 @@ if (buildCounterPlayerScoreResetResponse < 3) { o.definitionId = "foo"; o.kind = "foo"; - o.resetScoreTimeSpans = buildUnnamed11(); + o.resetScoreTimeSpans = buildUnnamed3499(); } buildCounterPlayerScoreResetResponse--; return o; @@ -434,7 +434,7 @@ if (buildCounterPlayerScoreResetResponse < 3) { unittest.expect(o.definitionId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed11(o.resetScoreTimeSpans); + checkUnnamed3499(o.resetScoreTimeSpans); } buildCounterPlayerScoreResetResponse--; } @@ -460,14 +460,14 @@ buildCounterProfileSettings--; } -buildUnnamed12() { +buildUnnamed3500() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed12(core.List<core.String> o) { +checkUnnamed3500(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -479,7 +479,7 @@ buildCounterQuestsResetMultipleForAllRequest++; if (buildCounterQuestsResetMultipleForAllRequest < 3) { o.kind = "foo"; - o.questIds = buildUnnamed12(); + o.questIds = buildUnnamed3500(); } buildCounterQuestsResetMultipleForAllRequest--; return o; @@ -489,19 +489,19 @@ buildCounterQuestsResetMultipleForAllRequest++; if (buildCounterQuestsResetMultipleForAllRequest < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed12(o.questIds); + checkUnnamed3500(o.questIds); } buildCounterQuestsResetMultipleForAllRequest--; } -buildUnnamed13() { +buildUnnamed3501() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed13(core.List<core.String> o) { +checkUnnamed3501(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -513,7 +513,7 @@ buildCounterScoresResetMultipleForAllRequest++; if (buildCounterScoresResetMultipleForAllRequest < 3) { o.kind = "foo"; - o.leaderboardIds = buildUnnamed13(); + o.leaderboardIds = buildUnnamed3501(); } buildCounterScoresResetMultipleForAllRequest--; return o; @@ -523,7 +523,7 @@ buildCounterScoresResetMultipleForAllRequest++; if (buildCounterScoresResetMultipleForAllRequest < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed13(o.leaderboardIds); + checkUnnamed3501(o.leaderboardIds); } buildCounterScoresResetMultipleForAllRequest--; }
diff --git a/generated/googleapis/test/genomics/v1_test.dart b/generated/googleapis/test/genomics/v1_test.dart index b4372ed..ddb22b3 100644 --- a/generated/googleapis/test/genomics/v1_test.dart +++ b/generated/googleapis/test/genomics/v1_test.dart
@@ -50,7 +50,7 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1002() { +buildUnnamed2246() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -65,7 +65,7 @@ return o; } -checkUnnamed1002(core.List<core.Object> o) { +checkUnnamed2246(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -79,17 +79,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1003() { +buildUnnamed2247() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed1002(); - o["y"] = buildUnnamed1002(); + o["x"] = buildUnnamed2246(); + o["y"] = buildUnnamed2246(); return o; } -checkUnnamed1003(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2247(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1002(o["x"]); - checkUnnamed1002(o["y"]); + checkUnnamed2246(o["x"]); + checkUnnamed2246(o["y"]); } core.int buildCounterAnnotation = 0; @@ -100,7 +100,7 @@ o.annotationSetId = "foo"; o.end = "foo"; o.id = "foo"; - o.info = buildUnnamed1003(); + o.info = buildUnnamed2247(); o.name = "foo"; o.referenceId = "foo"; o.referenceName = "foo"; @@ -120,7 +120,7 @@ unittest.expect(o.annotationSetId, unittest.equals('foo')); unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1003(o.info); + checkUnnamed2247(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.referenceId, unittest.equals('foo')); unittest.expect(o.referenceName, unittest.equals('foo')); @@ -133,7 +133,7 @@ buildCounterAnnotation--; } -buildUnnamed1004() { +buildUnnamed2248() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -148,7 +148,7 @@ return o; } -checkUnnamed1004(core.List<core.Object> o) { +checkUnnamed2248(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -162,17 +162,17 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed1005() { +buildUnnamed2249() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed1004(); - o["y"] = buildUnnamed1004(); + o["x"] = buildUnnamed2248(); + o["y"] = buildUnnamed2248(); return o; } -checkUnnamed1005(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2249(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1004(o["x"]); - checkUnnamed1004(o["y"]); + checkUnnamed2248(o["x"]); + checkUnnamed2248(o["y"]); } core.int buildCounterAnnotationSet = 0; @@ -182,7 +182,7 @@ if (buildCounterAnnotationSet < 3) { o.datasetId = "foo"; o.id = "foo"; - o.info = buildUnnamed1005(); + o.info = buildUnnamed2249(); o.name = "foo"; o.referenceSetId = "foo"; o.sourceUri = "foo"; @@ -197,7 +197,7 @@ if (buildCounterAnnotationSet < 3) { unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1005(o.info); + checkUnnamed2249(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); unittest.expect(o.sourceUri, unittest.equals('foo')); @@ -206,14 +206,14 @@ buildCounterAnnotationSet--; } -buildUnnamed1006() { +buildUnnamed2250() { var o = new core.List<api.Annotation>(); o.add(buildAnnotation()); o.add(buildAnnotation()); return o; } -checkUnnamed1006(core.List<api.Annotation> o) { +checkUnnamed2250(core.List<api.Annotation> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotation(o[0]); checkAnnotation(o[1]); @@ -224,7 +224,7 @@ var o = new api.BatchCreateAnnotationsRequest(); buildCounterBatchCreateAnnotationsRequest++; if (buildCounterBatchCreateAnnotationsRequest < 3) { - o.annotations = buildUnnamed1006(); + o.annotations = buildUnnamed2250(); o.requestId = "foo"; } buildCounterBatchCreateAnnotationsRequest--; @@ -234,20 +234,20 @@ checkBatchCreateAnnotationsRequest(api.BatchCreateAnnotationsRequest o) { buildCounterBatchCreateAnnotationsRequest++; if (buildCounterBatchCreateAnnotationsRequest < 3) { - checkUnnamed1006(o.annotations); + checkUnnamed2250(o.annotations); unittest.expect(o.requestId, unittest.equals('foo')); } buildCounterBatchCreateAnnotationsRequest--; } -buildUnnamed1007() { +buildUnnamed2251() { var o = new core.List<api.Entry>(); o.add(buildEntry()); o.add(buildEntry()); return o; } -checkUnnamed1007(core.List<api.Entry> o) { +checkUnnamed2251(core.List<api.Entry> o) { unittest.expect(o, unittest.hasLength(2)); checkEntry(o[0]); checkEntry(o[1]); @@ -258,7 +258,7 @@ var o = new api.BatchCreateAnnotationsResponse(); buildCounterBatchCreateAnnotationsResponse++; if (buildCounterBatchCreateAnnotationsResponse < 3) { - o.entries = buildUnnamed1007(); + o.entries = buildUnnamed2251(); } buildCounterBatchCreateAnnotationsResponse--; return o; @@ -267,19 +267,19 @@ checkBatchCreateAnnotationsResponse(api.BatchCreateAnnotationsResponse o) { buildCounterBatchCreateAnnotationsResponse++; if (buildCounterBatchCreateAnnotationsResponse < 3) { - checkUnnamed1007(o.entries); + checkUnnamed2251(o.entries); } buildCounterBatchCreateAnnotationsResponse--; } -buildUnnamed1008() { +buildUnnamed2252() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1008(core.List<core.String> o) { +checkUnnamed2252(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -290,7 +290,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed1008(); + o.members = buildUnnamed2252(); o.role = "foo"; } buildCounterBinding--; @@ -300,13 +300,13 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed1008(o.members); + checkUnnamed2252(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed1009() { +buildUnnamed2253() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -321,7 +321,7 @@ return o; } -checkUnnamed1009(core.List<core.Object> o) { +checkUnnamed2253(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -335,27 +335,27 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1010() { +buildUnnamed2254() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed1009(); - o["y"] = buildUnnamed1009(); + o["x"] = buildUnnamed2253(); + o["y"] = buildUnnamed2253(); return o; } -checkUnnamed1010(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2254(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1009(o["x"]); - checkUnnamed1009(o["y"]); + checkUnnamed2253(o["x"]); + checkUnnamed2253(o["y"]); } -buildUnnamed1011() { +buildUnnamed2255() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1011(core.List<core.String> o) { +checkUnnamed2255(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -368,10 +368,10 @@ if (buildCounterCallSet < 3) { o.created = "foo"; o.id = "foo"; - o.info = buildUnnamed1010(); + o.info = buildUnnamed2254(); o.name = "foo"; o.sampleId = "foo"; - o.variantSetIds = buildUnnamed1011(); + o.variantSetIds = buildUnnamed2255(); } buildCounterCallSet--; return o; @@ -382,10 +382,10 @@ if (buildCounterCallSet < 3) { unittest.expect(o.created, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1010(o.info); + checkUnnamed2254(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.sampleId, unittest.equals('foo')); - checkUnnamed1011(o.variantSetIds); + checkUnnamed2255(o.variantSetIds); } buildCounterCallSet--; } @@ -428,27 +428,27 @@ buildCounterCigarUnit--; } -buildUnnamed1012() { +buildUnnamed2256() { var o = new core.List<api.ExternalId>(); o.add(buildExternalId()); o.add(buildExternalId()); return o; } -checkUnnamed1012(core.List<api.ExternalId> o) { +checkUnnamed2256(core.List<api.ExternalId> o) { unittest.expect(o, unittest.hasLength(2)); checkExternalId(o[0]); checkExternalId(o[1]); } -buildUnnamed1013() { +buildUnnamed2257() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1013(core.List<core.String> o) { +checkUnnamed2257(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -460,8 +460,8 @@ buildCounterClinicalCondition++; if (buildCounterClinicalCondition < 3) { o.conceptId = "foo"; - o.externalIds = buildUnnamed1012(); - o.names = buildUnnamed1013(); + o.externalIds = buildUnnamed2256(); + o.names = buildUnnamed2257(); o.omimId = "foo"; } buildCounterClinicalCondition--; @@ -472,8 +472,8 @@ buildCounterClinicalCondition++; if (buildCounterClinicalCondition < 3) { unittest.expect(o.conceptId, unittest.equals('foo')); - checkUnnamed1012(o.externalIds); - checkUnnamed1013(o.names); + checkUnnamed2256(o.externalIds); + checkUnnamed2257(o.names); unittest.expect(o.omimId, unittest.equals('foo')); } buildCounterClinicalCondition--; @@ -500,14 +500,14 @@ buildCounterCodingSequence--; } -buildUnnamed1014() { +buildUnnamed2258() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1014(core.List<core.String> o) { +checkUnnamed2258(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -518,7 +518,7 @@ var o = new api.ComputeEngine(); buildCounterComputeEngine++; if (buildCounterComputeEngine < 3) { - o.diskNames = buildUnnamed1014(); + o.diskNames = buildUnnamed2258(); o.instanceName = "foo"; o.machineType = "foo"; o.zone = "foo"; @@ -530,7 +530,7 @@ checkComputeEngine(api.ComputeEngine o) { buildCounterComputeEngine++; if (buildCounterComputeEngine < 3) { - checkUnnamed1014(o.diskNames); + checkUnnamed2258(o.diskNames); unittest.expect(o.instanceName, unittest.equals('foo')); unittest.expect(o.machineType, unittest.equals('foo')); unittest.expect(o.zone, unittest.equals('foo')); @@ -538,6 +538,65 @@ buildCounterComputeEngine--; } +buildUnnamed2259() { + var o = new core.Map<core.String, core.int>(); + o["x"] = 42; + o["y"] = 42; + return o; +} + +checkUnnamed2259(core.Map<core.String, core.int> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals(42)); + unittest.expect(o["y"], unittest.equals(42)); +} + +core.int buildCounterContainerStartedEvent = 0; +buildContainerStartedEvent() { + var o = new api.ContainerStartedEvent(); + buildCounterContainerStartedEvent++; + if (buildCounterContainerStartedEvent < 3) { + o.actionId = 42; + o.ipAddress = "foo"; + o.portMappings = buildUnnamed2259(); + } + buildCounterContainerStartedEvent--; + return o; +} + +checkContainerStartedEvent(api.ContainerStartedEvent o) { + buildCounterContainerStartedEvent++; + if (buildCounterContainerStartedEvent < 3) { + unittest.expect(o.actionId, unittest.equals(42)); + unittest.expect(o.ipAddress, unittest.equals('foo')); + checkUnnamed2259(o.portMappings); + } + buildCounterContainerStartedEvent--; +} + +core.int buildCounterContainerStoppedEvent = 0; +buildContainerStoppedEvent() { + var o = new api.ContainerStoppedEvent(); + buildCounterContainerStoppedEvent++; + if (buildCounterContainerStoppedEvent < 3) { + o.actionId = 42; + o.exitStatus = 42; + o.stderr = "foo"; + } + buildCounterContainerStoppedEvent--; + return o; +} + +checkContainerStoppedEvent(api.ContainerStoppedEvent o) { + buildCounterContainerStoppedEvent++; + if (buildCounterContainerStoppedEvent < 3) { + unittest.expect(o.actionId, unittest.equals(42)); + unittest.expect(o.exitStatus, unittest.equals(42)); + unittest.expect(o.stderr, unittest.equals('foo')); + } + buildCounterContainerStoppedEvent--; +} + core.int buildCounterCoverageBucket = 0; buildCoverageBucket() { var o = new api.CoverageBucket(); @@ -584,6 +643,40 @@ buildCounterDataset--; } +buildUnnamed2260() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2260(core.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 buildCounterDelayedEvent = 0; +buildDelayedEvent() { + var o = new api.DelayedEvent(); + buildCounterDelayedEvent++; + if (buildCounterDelayedEvent < 3) { + o.cause = "foo"; + o.metrics = buildUnnamed2260(); + } + buildCounterDelayedEvent--; + return o; +} + +checkDelayedEvent(api.DelayedEvent o) { + buildCounterDelayedEvent++; + if (buildCounterDelayedEvent < 3) { + unittest.expect(o.cause, unittest.equals('foo')); + checkUnnamed2260(o.metrics); + } + buildCounterDelayedEvent--; +} + core.int buildCounterEmpty = 0; buildEmpty() { var o = new api.Empty(); @@ -620,6 +713,58 @@ buildCounterEntry--; } +buildUnnamed2261() { + 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; +} + +checkUnnamed2261(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')); +} + +core.int buildCounterEvent = 0; +buildEvent() { + var o = new api.Event(); + buildCounterEvent++; + if (buildCounterEvent < 3) { + o.description = "foo"; + o.details = buildUnnamed2261(); + o.timestamp = "foo"; + } + buildCounterEvent--; + return o; +} + +checkEvent(api.Event o) { + buildCounterEvent++; + if (buildCounterEvent < 3) { + unittest.expect(o.description, unittest.equals('foo')); + checkUnnamed2261(o.details); + unittest.expect(o.timestamp, unittest.equals('foo')); + } + buildCounterEvent--; +} + core.int buildCounterExon = 0; buildExon() { var o = new api.Exon(); @@ -668,14 +813,14 @@ buildCounterExperiment--; } -buildUnnamed1015() { +buildUnnamed2262() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1015(core.List<core.String> o) { +checkUnnamed2262(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -688,7 +833,7 @@ if (buildCounterExportReadGroupSetRequest < 3) { o.exportUri = "foo"; o.projectId = "foo"; - o.referenceNames = buildUnnamed1015(); + o.referenceNames = buildUnnamed2262(); } buildCounterExportReadGroupSetRequest--; return o; @@ -699,19 +844,19 @@ if (buildCounterExportReadGroupSetRequest < 3) { unittest.expect(o.exportUri, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); - checkUnnamed1015(o.referenceNames); + checkUnnamed2262(o.referenceNames); } buildCounterExportReadGroupSetRequest--; } -buildUnnamed1016() { +buildUnnamed2263() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1016(core.List<core.String> o) { +checkUnnamed2263(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -724,7 +869,7 @@ if (buildCounterExportVariantSetRequest < 3) { o.bigqueryDataset = "foo"; o.bigqueryTable = "foo"; - o.callSetIds = buildUnnamed1016(); + o.callSetIds = buildUnnamed2263(); o.format = "foo"; o.projectId = "foo"; } @@ -737,7 +882,7 @@ if (buildCounterExportVariantSetRequest < 3) { unittest.expect(o.bigqueryDataset, unittest.equals('foo')); unittest.expect(o.bigqueryTable, unittest.equals('foo')); - checkUnnamed1016(o.callSetIds); + checkUnnamed2263(o.callSetIds); unittest.expect(o.format, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); } @@ -765,6 +910,27 @@ buildCounterExternalId--; } +core.int buildCounterFailedEvent = 0; +buildFailedEvent() { + var o = new api.FailedEvent(); + buildCounterFailedEvent++; + if (buildCounterFailedEvent < 3) { + o.cause = "foo"; + o.code = "foo"; + } + buildCounterFailedEvent--; + return o; +} + +checkFailedEvent(api.FailedEvent o) { + buildCounterFailedEvent++; + if (buildCounterFailedEvent < 3) { + unittest.expect(o.cause, unittest.equals('foo')); + unittest.expect(o.code, unittest.equals('foo')); + } + buildCounterFailedEvent--; +} + core.int buildCounterGetIamPolicyRequest = 0; buildGetIamPolicyRequest() { var o = new api.GetIamPolicyRequest(); @@ -780,14 +946,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed1017() { +buildUnnamed2264() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1017(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')); @@ -801,7 +967,7 @@ o.datasetId = "foo"; o.partitionStrategy = "foo"; o.referenceSetId = "foo"; - o.sourceUris = buildUnnamed1017(); + o.sourceUris = buildUnnamed2264(); } buildCounterImportReadGroupSetsRequest--; return o; @@ -813,19 +979,19 @@ unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.partitionStrategy, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); - checkUnnamed1017(o.sourceUris); + checkUnnamed2264(o.sourceUris); } buildCounterImportReadGroupSetsRequest--; } -buildUnnamed1018() { +buildUnnamed2265() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1018(core.List<core.String> o) { +checkUnnamed2265(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -836,7 +1002,7 @@ var o = new api.ImportReadGroupSetsResponse(); buildCounterImportReadGroupSetsResponse++; if (buildCounterImportReadGroupSetsResponse < 3) { - o.readGroupSetIds = buildUnnamed1018(); + o.readGroupSetIds = buildUnnamed2265(); } buildCounterImportReadGroupSetsResponse--; return o; @@ -845,32 +1011,32 @@ checkImportReadGroupSetsResponse(api.ImportReadGroupSetsResponse o) { buildCounterImportReadGroupSetsResponse++; if (buildCounterImportReadGroupSetsResponse < 3) { - checkUnnamed1018(o.readGroupSetIds); + checkUnnamed2265(o.readGroupSetIds); } buildCounterImportReadGroupSetsResponse--; } -buildUnnamed1019() { +buildUnnamed2266() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1019(core.Map<core.String, core.String> o) { +checkUnnamed2266(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')); } -buildUnnamed1020() { +buildUnnamed2267() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1020(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')); @@ -882,9 +1048,9 @@ buildCounterImportVariantsRequest++; if (buildCounterImportVariantsRequest < 3) { o.format = "foo"; - o.infoMergeConfig = buildUnnamed1019(); + o.infoMergeConfig = buildUnnamed2266(); o.normalizeReferenceNames = true; - o.sourceUris = buildUnnamed1020(); + o.sourceUris = buildUnnamed2267(); o.variantSetId = "foo"; } buildCounterImportVariantsRequest--; @@ -895,22 +1061,22 @@ buildCounterImportVariantsRequest++; if (buildCounterImportVariantsRequest < 3) { unittest.expect(o.format, unittest.equals('foo')); - checkUnnamed1019(o.infoMergeConfig); + checkUnnamed2266(o.infoMergeConfig); unittest.expect(o.normalizeReferenceNames, unittest.isTrue); - checkUnnamed1020(o.sourceUris); + checkUnnamed2267(o.sourceUris); unittest.expect(o.variantSetId, unittest.equals('foo')); } buildCounterImportVariantsRequest--; } -buildUnnamed1021() { +buildUnnamed2268() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1021(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')); @@ -921,7 +1087,7 @@ var o = new api.ImportVariantsResponse(); buildCounterImportVariantsResponse++; if (buildCounterImportVariantsResponse < 3) { - o.callSetIds = buildUnnamed1021(); + o.callSetIds = buildUnnamed2268(); } buildCounterImportVariantsResponse--; return o; @@ -930,19 +1096,19 @@ checkImportVariantsResponse(api.ImportVariantsResponse o) { buildCounterImportVariantsResponse++; if (buildCounterImportVariantsResponse < 3) { - checkUnnamed1021(o.callSetIds); + checkUnnamed2268(o.callSetIds); } buildCounterImportVariantsResponse--; } -buildUnnamed1022() { +buildUnnamed2269() { var o = new core.List<api.CigarUnit>(); o.add(buildCigarUnit()); o.add(buildCigarUnit()); return o; } -checkUnnamed1022(core.List<api.CigarUnit> o) { +checkUnnamed2269(core.List<api.CigarUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkCigarUnit(o[0]); checkCigarUnit(o[1]); @@ -953,7 +1119,7 @@ var o = new api.LinearAlignment(); buildCounterLinearAlignment++; if (buildCounterLinearAlignment < 3) { - o.cigar = buildUnnamed1022(); + o.cigar = buildUnnamed2269(); o.mappingQuality = 42; o.position = buildPosition(); } @@ -964,7 +1130,7 @@ checkLinearAlignment(api.LinearAlignment o) { buildCounterLinearAlignment++; if (buildCounterLinearAlignment < 3) { - checkUnnamed1022(o.cigar); + checkUnnamed2269(o.cigar); unittest.expect(o.mappingQuality, unittest.equals(42)); checkPosition(o.position); } @@ -994,14 +1160,14 @@ buildCounterListBasesResponse--; } -buildUnnamed1023() { +buildUnnamed2270() { var o = new core.List<api.CoverageBucket>(); o.add(buildCoverageBucket()); o.add(buildCoverageBucket()); return o; } -checkUnnamed1023(core.List<api.CoverageBucket> o) { +checkUnnamed2270(core.List<api.CoverageBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkCoverageBucket(o[0]); checkCoverageBucket(o[1]); @@ -1013,7 +1179,7 @@ buildCounterListCoverageBucketsResponse++; if (buildCounterListCoverageBucketsResponse < 3) { o.bucketWidth = "foo"; - o.coverageBuckets = buildUnnamed1023(); + o.coverageBuckets = buildUnnamed2270(); o.nextPageToken = "foo"; } buildCounterListCoverageBucketsResponse--; @@ -1024,20 +1190,20 @@ buildCounterListCoverageBucketsResponse++; if (buildCounterListCoverageBucketsResponse < 3) { unittest.expect(o.bucketWidth, unittest.equals('foo')); - checkUnnamed1023(o.coverageBuckets); + checkUnnamed2270(o.coverageBuckets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCoverageBucketsResponse--; } -buildUnnamed1024() { +buildUnnamed2271() { var o = new core.List<api.Dataset>(); o.add(buildDataset()); o.add(buildDataset()); return o; } -checkUnnamed1024(core.List<api.Dataset> o) { +checkUnnamed2271(core.List<api.Dataset> o) { unittest.expect(o, unittest.hasLength(2)); checkDataset(o[0]); checkDataset(o[1]); @@ -1048,7 +1214,7 @@ var o = new api.ListDatasetsResponse(); buildCounterListDatasetsResponse++; if (buildCounterListDatasetsResponse < 3) { - o.datasets = buildUnnamed1024(); + o.datasets = buildUnnamed2271(); o.nextPageToken = "foo"; } buildCounterListDatasetsResponse--; @@ -1058,20 +1224,20 @@ checkListDatasetsResponse(api.ListDatasetsResponse o) { buildCounterListDatasetsResponse++; if (buildCounterListDatasetsResponse < 3) { - checkUnnamed1024(o.datasets); + checkUnnamed2271(o.datasets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDatasetsResponse--; } -buildUnnamed1025() { +buildUnnamed2272() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1025(core.List<api.Operation> o) { +checkUnnamed2272(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1083,7 +1249,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1025(); + o.operations = buildUnnamed2272(); } buildCounterListOperationsResponse--; return o; @@ -1093,32 +1259,32 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1025(o.operations); + checkUnnamed2272(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1026() { +buildUnnamed2273() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1026(core.Map<core.String, core.String> o) { +checkUnnamed2273(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')); } -buildUnnamed1027() { +buildUnnamed2274() { var o = new core.List<api.Variant>(); o.add(buildVariant()); o.add(buildVariant()); return o; } -checkUnnamed1027(core.List<api.Variant> o) { +checkUnnamed2274(core.List<api.Variant> o) { unittest.expect(o, unittest.hasLength(2)); checkVariant(o[0]); checkVariant(o[1]); @@ -1129,9 +1295,9 @@ var o = new api.MergeVariantsRequest(); buildCounterMergeVariantsRequest++; if (buildCounterMergeVariantsRequest < 3) { - o.infoMergeConfig = buildUnnamed1026(); + o.infoMergeConfig = buildUnnamed2273(); o.variantSetId = "foo"; - o.variants = buildUnnamed1027(); + o.variants = buildUnnamed2274(); } buildCounterMergeVariantsRequest--; return o; @@ -1140,14 +1306,14 @@ checkMergeVariantsRequest(api.MergeVariantsRequest o) { buildCounterMergeVariantsRequest++; if (buildCounterMergeVariantsRequest < 3) { - checkUnnamed1026(o.infoMergeConfig); + checkUnnamed2273(o.infoMergeConfig); unittest.expect(o.variantSetId, unittest.equals('foo')); - checkUnnamed1027(o.variants); + checkUnnamed2274(o.variants); } buildCounterMergeVariantsRequest--; } -buildUnnamed1028() { +buildUnnamed2275() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1162,36 +1328,7 @@ return o; } -checkUnnamed1028(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')); -} - -buildUnnamed1029() { - 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; -} - -checkUnnamed1029(core.Map<core.String, core.Object> o) { +checkUnnamed2275(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)); @@ -1205,6 +1342,35 @@ unittest.expect(casted10["string"], unittest.equals('foo')); } +buildUnnamed2276() { + 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; +} + +checkUnnamed2276(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')); +} + core.int buildCounterOperation = 0; buildOperation() { var o = new api.Operation(); @@ -1212,9 +1378,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1028(); + o.metadata = buildUnnamed2275(); o.name = "foo"; - o.response = buildUnnamed1029(); + o.response = buildUnnamed2276(); } buildCounterOperation--; return o; @@ -1225,9 +1391,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1028(o.metadata); + checkUnnamed2275(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1029(o.response); + checkUnnamed2276(o.response); } buildCounterOperation--; } @@ -1255,33 +1421,33 @@ buildCounterOperationEvent--; } -buildUnnamed1030() { +buildUnnamed2277() { var o = new core.List<api.OperationEvent>(); o.add(buildOperationEvent()); o.add(buildOperationEvent()); return o; } -checkUnnamed1030(core.List<api.OperationEvent> o) { +checkUnnamed2277(core.List<api.OperationEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationEvent(o[0]); checkOperationEvent(o[1]); } -buildUnnamed1031() { +buildUnnamed2278() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1031(core.Map<core.String, core.String> o) { +checkUnnamed2278(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')); } -buildUnnamed1032() { +buildUnnamed2279() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1296,36 +1462,7 @@ return o; } -checkUnnamed1032(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')); -} - -buildUnnamed1033() { - 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; -} - -checkUnnamed1033(core.Map<core.String, core.Object> o) { +checkUnnamed2279(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)); @@ -1339,6 +1476,35 @@ unittest.expect(casted14["string"], unittest.equals('foo')); } +buildUnnamed2280() { + 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; +} + +checkUnnamed2280(core.Map<core.String, core.Object> o) { + unittest.expect(o, unittest.hasLength(2)); + var casted15 = (o["x"]) 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["y"]) 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')); +} + core.int buildCounterOperationMetadata = 0; buildOperationMetadata() { var o = new api.OperationMetadata(); @@ -1347,11 +1513,11 @@ o.clientId = "foo"; o.createTime = "foo"; o.endTime = "foo"; - o.events = buildUnnamed1030(); - o.labels = buildUnnamed1031(); + o.events = buildUnnamed2277(); + o.labels = buildUnnamed2278(); o.projectId = "foo"; - o.request = buildUnnamed1032(); - o.runtimeMetadata = buildUnnamed1033(); + o.request = buildUnnamed2279(); + o.runtimeMetadata = buildUnnamed2280(); o.startTime = "foo"; } buildCounterOperationMetadata--; @@ -1364,24 +1530,24 @@ unittest.expect(o.clientId, unittest.equals('foo')); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed1030(o.events); - checkUnnamed1031(o.labels); + checkUnnamed2277(o.events); + checkUnnamed2278(o.labels); unittest.expect(o.projectId, unittest.equals('foo')); - checkUnnamed1032(o.request); - checkUnnamed1033(o.runtimeMetadata); + checkUnnamed2279(o.request); + checkUnnamed2280(o.runtimeMetadata); unittest.expect(o.startTime, unittest.equals('foo')); } buildCounterOperationMetadata--; } -buildUnnamed1034() { +buildUnnamed2281() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1034(core.List<api.Binding> o) { +checkUnnamed2281(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -1392,7 +1558,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed1034(); + o.bindings = buildUnnamed2281(); o.etag = "foo"; o.version = 42; } @@ -1403,7 +1569,7 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1034(o.bindings); + checkUnnamed2281(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -1460,6 +1626,44 @@ buildCounterProgram--; } +core.int buildCounterPullStartedEvent = 0; +buildPullStartedEvent() { + var o = new api.PullStartedEvent(); + buildCounterPullStartedEvent++; + if (buildCounterPullStartedEvent < 3) { + o.imageUri = "foo"; + } + buildCounterPullStartedEvent--; + return o; +} + +checkPullStartedEvent(api.PullStartedEvent o) { + buildCounterPullStartedEvent++; + if (buildCounterPullStartedEvent < 3) { + unittest.expect(o.imageUri, unittest.equals('foo')); + } + buildCounterPullStartedEvent--; +} + +core.int buildCounterPullStoppedEvent = 0; +buildPullStoppedEvent() { + var o = new api.PullStoppedEvent(); + buildCounterPullStoppedEvent++; + if (buildCounterPullStoppedEvent < 3) { + o.imageUri = "foo"; + } + buildCounterPullStoppedEvent--; + return o; +} + +checkPullStoppedEvent(api.PullStoppedEvent o) { + buildCounterPullStoppedEvent++; + if (buildCounterPullStoppedEvent < 3) { + unittest.expect(o.imageUri, unittest.equals('foo')); + } + buildCounterPullStoppedEvent--; +} + core.int buildCounterRange = 0; buildRange() { var o = new api.Range(); @@ -1483,20 +1687,20 @@ buildCounterRange--; } -buildUnnamed1035() { +buildUnnamed2282() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1035(core.List<core.int> o) { +checkUnnamed2282(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)); } -buildUnnamed1036() { +buildUnnamed2283() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -1511,31 +1715,31 @@ return o; } -checkUnnamed1036(core.List<core.Object> o) { +checkUnnamed2283(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')); + 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')); } -buildUnnamed1037() { +buildUnnamed2284() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed1036(); - o["y"] = buildUnnamed1036(); + o["x"] = buildUnnamed2283(); + o["y"] = buildUnnamed2283(); return o; } -checkUnnamed1037(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2284(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1036(o["x"]); - checkUnnamed1036(o["y"]); + checkUnnamed2283(o["x"]); + checkUnnamed2283(o["y"]); } core.int buildCounterRead = 0; @@ -1543,7 +1747,7 @@ var o = new api.Read(); buildCounterRead++; if (buildCounterRead < 3) { - o.alignedQuality = buildUnnamed1035(); + o.alignedQuality = buildUnnamed2282(); o.alignedSequence = "foo"; o.alignment = buildLinearAlignment(); o.duplicateFragment = true; @@ -1551,7 +1755,7 @@ o.fragmentLength = 42; o.fragmentName = "foo"; o.id = "foo"; - o.info = buildUnnamed1037(); + o.info = buildUnnamed2284(); o.nextMatePosition = buildPosition(); o.numberReads = 42; o.properPlacement = true; @@ -1568,7 +1772,7 @@ checkRead(api.Read o) { buildCounterRead++; if (buildCounterRead < 3) { - checkUnnamed1035(o.alignedQuality); + checkUnnamed2282(o.alignedQuality); unittest.expect(o.alignedSequence, unittest.equals('foo')); checkLinearAlignment(o.alignment); unittest.expect(o.duplicateFragment, unittest.isTrue); @@ -1576,7 +1780,7 @@ unittest.expect(o.fragmentLength, unittest.equals(42)); unittest.expect(o.fragmentName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1037(o.info); + checkUnnamed2284(o.info); checkPosition(o.nextMatePosition); unittest.expect(o.numberReads, unittest.equals(42)); unittest.expect(o.properPlacement, unittest.isTrue); @@ -1589,7 +1793,7 @@ buildCounterRead--; } -buildUnnamed1038() { +buildUnnamed2285() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -1604,41 +1808,41 @@ return o; } -checkUnnamed1038(core.List<core.Object> o) { +checkUnnamed2285(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')); + 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')); } -buildUnnamed1039() { +buildUnnamed2286() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed1038(); - o["y"] = buildUnnamed1038(); + o["x"] = buildUnnamed2285(); + o["y"] = buildUnnamed2285(); return o; } -checkUnnamed1039(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2286(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1038(o["x"]); - checkUnnamed1038(o["y"]); + checkUnnamed2285(o["x"]); + checkUnnamed2285(o["y"]); } -buildUnnamed1040() { +buildUnnamed2287() { var o = new core.List<api.Program>(); o.add(buildProgram()); o.add(buildProgram()); return o; } -checkUnnamed1040(core.List<api.Program> o) { +checkUnnamed2287(core.List<api.Program> o) { unittest.expect(o, unittest.hasLength(2)); checkProgram(o[0]); checkProgram(o[1]); @@ -1653,10 +1857,10 @@ o.description = "foo"; o.experiment = buildExperiment(); o.id = "foo"; - o.info = buildUnnamed1039(); + o.info = buildUnnamed2286(); o.name = "foo"; o.predictedInsertSize = 42; - o.programs = buildUnnamed1040(); + o.programs = buildUnnamed2287(); o.referenceSetId = "foo"; o.sampleId = "foo"; } @@ -1671,17 +1875,17 @@ unittest.expect(o.description, unittest.equals('foo')); checkExperiment(o.experiment); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1039(o.info); + checkUnnamed2286(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.predictedInsertSize, unittest.equals(42)); - checkUnnamed1040(o.programs); + checkUnnamed2287(o.programs); unittest.expect(o.referenceSetId, unittest.equals('foo')); unittest.expect(o.sampleId, unittest.equals('foo')); } buildCounterReadGroup--; } -buildUnnamed1041() { +buildUnnamed2288() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -1696,41 +1900,41 @@ return o; } -checkUnnamed1041(core.List<core.Object> o) { +checkUnnamed2288(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')); + var casted21 = (o[0]) 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[1]) 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')); } -buildUnnamed1042() { +buildUnnamed2289() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed1041(); - o["y"] = buildUnnamed1041(); + o["x"] = buildUnnamed2288(); + o["y"] = buildUnnamed2288(); return o; } -checkUnnamed1042(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2289(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1041(o["x"]); - checkUnnamed1041(o["y"]); + checkUnnamed2288(o["x"]); + checkUnnamed2288(o["y"]); } -buildUnnamed1043() { +buildUnnamed2290() { var o = new core.List<api.ReadGroup>(); o.add(buildReadGroup()); o.add(buildReadGroup()); return o; } -checkUnnamed1043(core.List<api.ReadGroup> o) { +checkUnnamed2290(core.List<api.ReadGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkReadGroup(o[0]); checkReadGroup(o[1]); @@ -1744,9 +1948,9 @@ o.datasetId = "foo"; o.filename = "foo"; o.id = "foo"; - o.info = buildUnnamed1042(); + o.info = buildUnnamed2289(); o.name = "foo"; - o.readGroups = buildUnnamed1043(); + o.readGroups = buildUnnamed2290(); o.referenceSetId = "foo"; } buildCounterReadGroupSet--; @@ -1759,22 +1963,22 @@ unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.filename, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1042(o.info); + checkUnnamed2289(o.info); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1043(o.readGroups); + checkUnnamed2290(o.readGroups); unittest.expect(o.referenceSetId, unittest.equals('foo')); } buildCounterReadGroupSet--; } -buildUnnamed1044() { +buildUnnamed2291() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1044(core.List<core.String> o) { +checkUnnamed2291(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1790,7 +1994,7 @@ o.md5checksum = "foo"; o.name = "foo"; o.ncbiTaxonId = 42; - o.sourceAccessions = buildUnnamed1044(); + o.sourceAccessions = buildUnnamed2291(); o.sourceUri = "foo"; } buildCounterReference--; @@ -1805,7 +2009,7 @@ unittest.expect(o.md5checksum, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.ncbiTaxonId, unittest.equals(42)); - checkUnnamed1044(o.sourceAccessions); + checkUnnamed2291(o.sourceAccessions); unittest.expect(o.sourceUri, unittest.equals('foo')); } buildCounterReference--; @@ -1832,27 +2036,27 @@ buildCounterReferenceBound--; } -buildUnnamed1045() { +buildUnnamed2292() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1045(core.List<core.String> o) { +checkUnnamed2292(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1046() { +buildUnnamed2293() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1046(core.List<core.String> o) { +checkUnnamed2293(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1868,8 +2072,8 @@ o.id = "foo"; o.md5checksum = "foo"; o.ncbiTaxonId = 42; - o.referenceIds = buildUnnamed1045(); - o.sourceAccessions = buildUnnamed1046(); + o.referenceIds = buildUnnamed2292(); + o.sourceAccessions = buildUnnamed2293(); o.sourceUri = "foo"; } buildCounterReferenceSet--; @@ -1884,8 +2088,8 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.md5checksum, unittest.equals('foo')); unittest.expect(o.ncbiTaxonId, unittest.equals(42)); - checkUnnamed1045(o.referenceIds); - checkUnnamed1046(o.sourceAccessions); + checkUnnamed2292(o.referenceIds); + checkUnnamed2293(o.sourceAccessions); unittest.expect(o.sourceUri, unittest.equals('foo')); } buildCounterReferenceSet--; @@ -1910,27 +2114,27 @@ buildCounterRuntimeMetadata--; } -buildUnnamed1047() { +buildUnnamed2294() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1047(core.List<core.String> o) { +checkUnnamed2294(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1048() { +buildUnnamed2295() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1048(core.List<core.String> o) { +checkUnnamed2295(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1941,12 +2145,12 @@ var o = new api.SearchAnnotationSetsRequest(); buildCounterSearchAnnotationSetsRequest++; if (buildCounterSearchAnnotationSetsRequest < 3) { - o.datasetIds = buildUnnamed1047(); + o.datasetIds = buildUnnamed2294(); o.name = "foo"; o.pageSize = 42; o.pageToken = "foo"; o.referenceSetId = "foo"; - o.types = buildUnnamed1048(); + o.types = buildUnnamed2295(); } buildCounterSearchAnnotationSetsRequest--; return o; @@ -1955,24 +2159,24 @@ checkSearchAnnotationSetsRequest(api.SearchAnnotationSetsRequest o) { buildCounterSearchAnnotationSetsRequest++; if (buildCounterSearchAnnotationSetsRequest < 3) { - checkUnnamed1047(o.datasetIds); + checkUnnamed2294(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')); - checkUnnamed1048(o.types); + checkUnnamed2295(o.types); } buildCounterSearchAnnotationSetsRequest--; } -buildUnnamed1049() { +buildUnnamed2296() { var o = new core.List<api.AnnotationSet>(); o.add(buildAnnotationSet()); o.add(buildAnnotationSet()); return o; } -checkUnnamed1049(core.List<api.AnnotationSet> o) { +checkUnnamed2296(core.List<api.AnnotationSet> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotationSet(o[0]); checkAnnotationSet(o[1]); @@ -1983,7 +2187,7 @@ var o = new api.SearchAnnotationSetsResponse(); buildCounterSearchAnnotationSetsResponse++; if (buildCounterSearchAnnotationSetsResponse < 3) { - o.annotationSets = buildUnnamed1049(); + o.annotationSets = buildUnnamed2296(); o.nextPageToken = "foo"; } buildCounterSearchAnnotationSetsResponse--; @@ -1993,20 +2197,20 @@ checkSearchAnnotationSetsResponse(api.SearchAnnotationSetsResponse o) { buildCounterSearchAnnotationSetsResponse++; if (buildCounterSearchAnnotationSetsResponse < 3) { - checkUnnamed1049(o.annotationSets); + checkUnnamed2296(o.annotationSets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchAnnotationSetsResponse--; } -buildUnnamed1050() { +buildUnnamed2297() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1050(core.List<core.String> o) { +checkUnnamed2297(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2017,7 +2221,7 @@ var o = new api.SearchAnnotationsRequest(); buildCounterSearchAnnotationsRequest++; if (buildCounterSearchAnnotationsRequest < 3) { - o.annotationSetIds = buildUnnamed1050(); + o.annotationSetIds = buildUnnamed2297(); o.end = "foo"; o.pageSize = 42; o.pageToken = "foo"; @@ -2032,7 +2236,7 @@ checkSearchAnnotationsRequest(api.SearchAnnotationsRequest o) { buildCounterSearchAnnotationsRequest++; if (buildCounterSearchAnnotationsRequest < 3) { - checkUnnamed1050(o.annotationSetIds); + checkUnnamed2297(o.annotationSetIds); unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); @@ -2043,14 +2247,14 @@ buildCounterSearchAnnotationsRequest--; } -buildUnnamed1051() { +buildUnnamed2298() { var o = new core.List<api.Annotation>(); o.add(buildAnnotation()); o.add(buildAnnotation()); return o; } -checkUnnamed1051(core.List<api.Annotation> o) { +checkUnnamed2298(core.List<api.Annotation> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotation(o[0]); checkAnnotation(o[1]); @@ -2061,7 +2265,7 @@ var o = new api.SearchAnnotationsResponse(); buildCounterSearchAnnotationsResponse++; if (buildCounterSearchAnnotationsResponse < 3) { - o.annotations = buildUnnamed1051(); + o.annotations = buildUnnamed2298(); o.nextPageToken = "foo"; } buildCounterSearchAnnotationsResponse--; @@ -2071,20 +2275,20 @@ checkSearchAnnotationsResponse(api.SearchAnnotationsResponse o) { buildCounterSearchAnnotationsResponse++; if (buildCounterSearchAnnotationsResponse < 3) { - checkUnnamed1051(o.annotations); + checkUnnamed2298(o.annotations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchAnnotationsResponse--; } -buildUnnamed1052() { +buildUnnamed2299() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1052(core.List<core.String> o) { +checkUnnamed2299(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2098,7 +2302,7 @@ o.name = "foo"; o.pageSize = 42; o.pageToken = "foo"; - o.variantSetIds = buildUnnamed1052(); + o.variantSetIds = buildUnnamed2299(); } buildCounterSearchCallSetsRequest--; return o; @@ -2110,19 +2314,19 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed1052(o.variantSetIds); + checkUnnamed2299(o.variantSetIds); } buildCounterSearchCallSetsRequest--; } -buildUnnamed1053() { +buildUnnamed2300() { var o = new core.List<api.CallSet>(); o.add(buildCallSet()); o.add(buildCallSet()); return o; } -checkUnnamed1053(core.List<api.CallSet> o) { +checkUnnamed2300(core.List<api.CallSet> o) { unittest.expect(o, unittest.hasLength(2)); checkCallSet(o[0]); checkCallSet(o[1]); @@ -2133,7 +2337,7 @@ var o = new api.SearchCallSetsResponse(); buildCounterSearchCallSetsResponse++; if (buildCounterSearchCallSetsResponse < 3) { - o.callSets = buildUnnamed1053(); + o.callSets = buildUnnamed2300(); o.nextPageToken = "foo"; } buildCounterSearchCallSetsResponse--; @@ -2143,20 +2347,20 @@ checkSearchCallSetsResponse(api.SearchCallSetsResponse o) { buildCounterSearchCallSetsResponse++; if (buildCounterSearchCallSetsResponse < 3) { - checkUnnamed1053(o.callSets); + checkUnnamed2300(o.callSets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchCallSetsResponse--; } -buildUnnamed1054() { +buildUnnamed2301() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1054(core.List<core.String> o) { +checkUnnamed2301(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2167,7 +2371,7 @@ var o = new api.SearchReadGroupSetsRequest(); buildCounterSearchReadGroupSetsRequest++; if (buildCounterSearchReadGroupSetsRequest < 3) { - o.datasetIds = buildUnnamed1054(); + o.datasetIds = buildUnnamed2301(); o.name = "foo"; o.pageSize = 42; o.pageToken = "foo"; @@ -2179,7 +2383,7 @@ checkSearchReadGroupSetsRequest(api.SearchReadGroupSetsRequest o) { buildCounterSearchReadGroupSetsRequest++; if (buildCounterSearchReadGroupSetsRequest < 3) { - checkUnnamed1054(o.datasetIds); + checkUnnamed2301(o.datasetIds); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); @@ -2187,14 +2391,14 @@ buildCounterSearchReadGroupSetsRequest--; } -buildUnnamed1055() { +buildUnnamed2302() { var o = new core.List<api.ReadGroupSet>(); o.add(buildReadGroupSet()); o.add(buildReadGroupSet()); return o; } -checkUnnamed1055(core.List<api.ReadGroupSet> o) { +checkUnnamed2302(core.List<api.ReadGroupSet> o) { unittest.expect(o, unittest.hasLength(2)); checkReadGroupSet(o[0]); checkReadGroupSet(o[1]); @@ -2206,7 +2410,7 @@ buildCounterSearchReadGroupSetsResponse++; if (buildCounterSearchReadGroupSetsResponse < 3) { o.nextPageToken = "foo"; - o.readGroupSets = buildUnnamed1055(); + o.readGroupSets = buildUnnamed2302(); } buildCounterSearchReadGroupSetsResponse--; return o; @@ -2216,32 +2420,32 @@ buildCounterSearchReadGroupSetsResponse++; if (buildCounterSearchReadGroupSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1055(o.readGroupSets); + checkUnnamed2302(o.readGroupSets); } buildCounterSearchReadGroupSetsResponse--; } -buildUnnamed1056() { +buildUnnamed2303() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1056(core.List<core.String> o) { +checkUnnamed2303(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1057() { +buildUnnamed2304() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1057(core.List<core.String> o) { +checkUnnamed2304(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2255,8 +2459,8 @@ o.end = "foo"; o.pageSize = 42; o.pageToken = "foo"; - o.readGroupIds = buildUnnamed1056(); - o.readGroupSetIds = buildUnnamed1057(); + o.readGroupIds = buildUnnamed2303(); + o.readGroupSetIds = buildUnnamed2304(); o.referenceName = "foo"; o.start = "foo"; } @@ -2270,22 +2474,22 @@ unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed1056(o.readGroupIds); - checkUnnamed1057(o.readGroupSetIds); + checkUnnamed2303(o.readGroupIds); + checkUnnamed2304(o.readGroupSetIds); unittest.expect(o.referenceName, unittest.equals('foo')); unittest.expect(o.start, unittest.equals('foo')); } buildCounterSearchReadsRequest--; } -buildUnnamed1058() { +buildUnnamed2305() { var o = new core.List<api.Read>(); o.add(buildRead()); o.add(buildRead()); return o; } -checkUnnamed1058(core.List<api.Read> o) { +checkUnnamed2305(core.List<api.Read> o) { unittest.expect(o, unittest.hasLength(2)); checkRead(o[0]); checkRead(o[1]); @@ -2296,7 +2500,7 @@ var o = new api.SearchReadsResponse(); buildCounterSearchReadsResponse++; if (buildCounterSearchReadsResponse < 3) { - o.alignments = buildUnnamed1058(); + o.alignments = buildUnnamed2305(); o.nextPageToken = "foo"; } buildCounterSearchReadsResponse--; @@ -2306,33 +2510,33 @@ checkSearchReadsResponse(api.SearchReadsResponse o) { buildCounterSearchReadsResponse++; if (buildCounterSearchReadsResponse < 3) { - checkUnnamed1058(o.alignments); + checkUnnamed2305(o.alignments); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchReadsResponse--; } -buildUnnamed1059() { +buildUnnamed2306() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1059(core.List<core.String> o) { +checkUnnamed2306(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1060() { +buildUnnamed2307() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1060(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')); @@ -2343,9 +2547,9 @@ var o = new api.SearchReferenceSetsRequest(); buildCounterSearchReferenceSetsRequest++; if (buildCounterSearchReferenceSetsRequest < 3) { - o.accessions = buildUnnamed1059(); + o.accessions = buildUnnamed2306(); o.assemblyId = "foo"; - o.md5checksums = buildUnnamed1060(); + o.md5checksums = buildUnnamed2307(); o.pageSize = 42; o.pageToken = "foo"; } @@ -2356,23 +2560,23 @@ checkSearchReferenceSetsRequest(api.SearchReferenceSetsRequest o) { buildCounterSearchReferenceSetsRequest++; if (buildCounterSearchReferenceSetsRequest < 3) { - checkUnnamed1059(o.accessions); + checkUnnamed2306(o.accessions); unittest.expect(o.assemblyId, unittest.equals('foo')); - checkUnnamed1060(o.md5checksums); + checkUnnamed2307(o.md5checksums); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); } buildCounterSearchReferenceSetsRequest--; } -buildUnnamed1061() { +buildUnnamed2308() { var o = new core.List<api.ReferenceSet>(); o.add(buildReferenceSet()); o.add(buildReferenceSet()); return o; } -checkUnnamed1061(core.List<api.ReferenceSet> o) { +checkUnnamed2308(core.List<api.ReferenceSet> o) { unittest.expect(o, unittest.hasLength(2)); checkReferenceSet(o[0]); checkReferenceSet(o[1]); @@ -2384,7 +2588,7 @@ buildCounterSearchReferenceSetsResponse++; if (buildCounterSearchReferenceSetsResponse < 3) { o.nextPageToken = "foo"; - o.referenceSets = buildUnnamed1061(); + o.referenceSets = buildUnnamed2308(); } buildCounterSearchReferenceSetsResponse--; return o; @@ -2394,32 +2598,32 @@ buildCounterSearchReferenceSetsResponse++; if (buildCounterSearchReferenceSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1061(o.referenceSets); + checkUnnamed2308(o.referenceSets); } buildCounterSearchReferenceSetsResponse--; } -buildUnnamed1062() { +buildUnnamed2309() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1062(core.List<core.String> o) { +checkUnnamed2309(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1063() { +buildUnnamed2310() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1063(core.List<core.String> o) { +checkUnnamed2310(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2430,8 +2634,8 @@ var o = new api.SearchReferencesRequest(); buildCounterSearchReferencesRequest++; if (buildCounterSearchReferencesRequest < 3) { - o.accessions = buildUnnamed1062(); - o.md5checksums = buildUnnamed1063(); + o.accessions = buildUnnamed2309(); + o.md5checksums = buildUnnamed2310(); o.pageSize = 42; o.pageToken = "foo"; o.referenceSetId = "foo"; @@ -2443,8 +2647,8 @@ checkSearchReferencesRequest(api.SearchReferencesRequest o) { buildCounterSearchReferencesRequest++; if (buildCounterSearchReferencesRequest < 3) { - checkUnnamed1062(o.accessions); - checkUnnamed1063(o.md5checksums); + checkUnnamed2309(o.accessions); + checkUnnamed2310(o.md5checksums); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); @@ -2452,14 +2656,14 @@ buildCounterSearchReferencesRequest--; } -buildUnnamed1064() { +buildUnnamed2311() { var o = new core.List<api.Reference>(); o.add(buildReference()); o.add(buildReference()); return o; } -checkUnnamed1064(core.List<api.Reference> o) { +checkUnnamed2311(core.List<api.Reference> o) { unittest.expect(o, unittest.hasLength(2)); checkReference(o[0]); checkReference(o[1]); @@ -2471,7 +2675,7 @@ buildCounterSearchReferencesResponse++; if (buildCounterSearchReferencesResponse < 3) { o.nextPageToken = "foo"; - o.references = buildUnnamed1064(); + o.references = buildUnnamed2311(); } buildCounterSearchReferencesResponse--; return o; @@ -2481,19 +2685,19 @@ buildCounterSearchReferencesResponse++; if (buildCounterSearchReferencesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1064(o.references); + checkUnnamed2311(o.references); } buildCounterSearchReferencesResponse--; } -buildUnnamed1065() { +buildUnnamed2312() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1065(core.List<core.String> o) { +checkUnnamed2312(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2504,7 +2708,7 @@ var o = new api.SearchVariantSetsRequest(); buildCounterSearchVariantSetsRequest++; if (buildCounterSearchVariantSetsRequest < 3) { - o.datasetIds = buildUnnamed1065(); + o.datasetIds = buildUnnamed2312(); o.pageSize = 42; o.pageToken = "foo"; } @@ -2515,21 +2719,21 @@ checkSearchVariantSetsRequest(api.SearchVariantSetsRequest o) { buildCounterSearchVariantSetsRequest++; if (buildCounterSearchVariantSetsRequest < 3) { - checkUnnamed1065(o.datasetIds); + checkUnnamed2312(o.datasetIds); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); } buildCounterSearchVariantSetsRequest--; } -buildUnnamed1066() { +buildUnnamed2313() { var o = new core.List<api.VariantSet>(); o.add(buildVariantSet()); o.add(buildVariantSet()); return o; } -checkUnnamed1066(core.List<api.VariantSet> o) { +checkUnnamed2313(core.List<api.VariantSet> o) { unittest.expect(o, unittest.hasLength(2)); checkVariantSet(o[0]); checkVariantSet(o[1]); @@ -2541,7 +2745,7 @@ buildCounterSearchVariantSetsResponse++; if (buildCounterSearchVariantSetsResponse < 3) { o.nextPageToken = "foo"; - o.variantSets = buildUnnamed1066(); + o.variantSets = buildUnnamed2313(); } buildCounterSearchVariantSetsResponse--; return o; @@ -2551,32 +2755,32 @@ buildCounterSearchVariantSetsResponse++; if (buildCounterSearchVariantSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1066(o.variantSets); + checkUnnamed2313(o.variantSets); } buildCounterSearchVariantSetsResponse--; } -buildUnnamed1067() { +buildUnnamed2314() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1067(core.List<core.String> o) { +checkUnnamed2314(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1068() { +buildUnnamed2315() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1068(core.List<core.String> o) { +checkUnnamed2315(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2587,7 +2791,7 @@ var o = new api.SearchVariantsRequest(); buildCounterSearchVariantsRequest++; if (buildCounterSearchVariantsRequest < 3) { - o.callSetIds = buildUnnamed1067(); + o.callSetIds = buildUnnamed2314(); o.end = "foo"; o.maxCalls = 42; o.pageSize = 42; @@ -2595,7 +2799,7 @@ o.referenceName = "foo"; o.start = "foo"; o.variantName = "foo"; - o.variantSetIds = buildUnnamed1068(); + o.variantSetIds = buildUnnamed2315(); } buildCounterSearchVariantsRequest--; return o; @@ -2604,7 +2808,7 @@ checkSearchVariantsRequest(api.SearchVariantsRequest o) { buildCounterSearchVariantsRequest++; if (buildCounterSearchVariantsRequest < 3) { - checkUnnamed1067(o.callSetIds); + checkUnnamed2314(o.callSetIds); unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.maxCalls, unittest.equals(42)); unittest.expect(o.pageSize, unittest.equals(42)); @@ -2612,19 +2816,19 @@ unittest.expect(o.referenceName, unittest.equals('foo')); unittest.expect(o.start, unittest.equals('foo')); unittest.expect(o.variantName, unittest.equals('foo')); - checkUnnamed1068(o.variantSetIds); + checkUnnamed2315(o.variantSetIds); } buildCounterSearchVariantsRequest--; } -buildUnnamed1069() { +buildUnnamed2316() { var o = new core.List<api.Variant>(); o.add(buildVariant()); o.add(buildVariant()); return o; } -checkUnnamed1069(core.List<api.Variant> o) { +checkUnnamed2316(core.List<api.Variant> o) { unittest.expect(o, unittest.hasLength(2)); checkVariant(o[0]); checkVariant(o[1]); @@ -2636,7 +2840,7 @@ buildCounterSearchVariantsResponse++; if (buildCounterSearchVariantsResponse < 3) { o.nextPageToken = "foo"; - o.variants = buildUnnamed1069(); + o.variants = buildUnnamed2316(); } buildCounterSearchVariantsResponse--; return o; @@ -2646,7 +2850,7 @@ buildCounterSearchVariantsResponse++; if (buildCounterSearchVariantsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1069(o.variants); + checkUnnamed2316(o.variants); } buildCounterSearchVariantsResponse--; } @@ -2670,7 +2874,7 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed1070() { +buildUnnamed2317() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2685,31 +2889,31 @@ return o; } -checkUnnamed1070(core.Map<core.String, core.Object> o) { +checkUnnamed2317(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')); + 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')); } -buildUnnamed1071() { +buildUnnamed2318() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1070()); - o.add(buildUnnamed1070()); + o.add(buildUnnamed2317()); + o.add(buildUnnamed2317()); return o; } -checkUnnamed1071(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2318(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1070(o[0]); - checkUnnamed1070(o[1]); + checkUnnamed2317(o[0]); + checkUnnamed2317(o[1]); } core.int buildCounterStatus = 0; @@ -2718,7 +2922,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1071(); + o.details = buildUnnamed2318(); o.message = "foo"; } buildCounterStatus--; @@ -2729,20 +2933,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1071(o.details); + checkUnnamed2318(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed1072() { +buildUnnamed2319() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1072(core.List<core.String> o) { +checkUnnamed2319(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2753,7 +2957,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1072(); + o.permissions = buildUnnamed2319(); } buildCounterTestIamPermissionsRequest--; return o; @@ -2762,19 +2966,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1072(o.permissions); + checkUnnamed2319(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1073() { +buildUnnamed2320() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1073(core.List<core.String> o) { +checkUnnamed2320(core.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 +2989,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1073(); + o.permissions = buildUnnamed2320(); } buildCounterTestIamPermissionsResponse--; return o; @@ -2794,19 +2998,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1073(o.permissions); + checkUnnamed2320(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed1074() { +buildUnnamed2321() { var o = new core.List<api.Exon>(); o.add(buildExon()); o.add(buildExon()); return o; } -checkUnnamed1074(core.List<api.Exon> o) { +checkUnnamed2321(core.List<api.Exon> o) { unittest.expect(o, unittest.hasLength(2)); checkExon(o[0]); checkExon(o[1]); @@ -2818,7 +3022,7 @@ buildCounterTranscript++; if (buildCounterTranscript < 3) { o.codingSequence = buildCodingSequence(); - o.exons = buildUnnamed1074(); + o.exons = buildUnnamed2321(); o.geneId = "foo"; } buildCounterTranscript--; @@ -2829,7 +3033,7 @@ buildCounterTranscript++; if (buildCounterTranscript < 3) { checkCodingSequence(o.codingSequence); - checkUnnamed1074(o.exons); + checkUnnamed2321(o.exons); unittest.expect(o.geneId, unittest.equals('foo')); } buildCounterTranscript--; @@ -2850,46 +3054,67 @@ buildCounterUndeleteDatasetRequest--; } -buildUnnamed1075() { +core.int buildCounterUnexpectedExitStatusEvent = 0; +buildUnexpectedExitStatusEvent() { + var o = new api.UnexpectedExitStatusEvent(); + buildCounterUnexpectedExitStatusEvent++; + if (buildCounterUnexpectedExitStatusEvent < 3) { + o.actionId = 42; + o.exitStatus = 42; + } + buildCounterUnexpectedExitStatusEvent--; + return o; +} + +checkUnexpectedExitStatusEvent(api.UnexpectedExitStatusEvent o) { + buildCounterUnexpectedExitStatusEvent++; + if (buildCounterUnexpectedExitStatusEvent < 3) { + unittest.expect(o.actionId, unittest.equals(42)); + unittest.expect(o.exitStatus, unittest.equals(42)); + } + buildCounterUnexpectedExitStatusEvent--; +} + +buildUnnamed2322() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1075(core.List<core.String> o) { +checkUnnamed2322(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1076() { +buildUnnamed2323() { var o = new core.List<api.VariantCall>(); o.add(buildVariantCall()); o.add(buildVariantCall()); return o; } -checkUnnamed1076(core.List<api.VariantCall> o) { +checkUnnamed2323(core.List<api.VariantCall> o) { unittest.expect(o, unittest.hasLength(2)); checkVariantCall(o[0]); checkVariantCall(o[1]); } -buildUnnamed1077() { +buildUnnamed2324() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1077(core.List<core.String> o) { +checkUnnamed2324(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1078() { +buildUnnamed2325() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -2904,188 +3129,7 @@ return o; } -checkUnnamed1078(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')); -} - -buildUnnamed1079() { - var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed1078(); - o["y"] = buildUnnamed1078(); - return o; -} - -checkUnnamed1079(core.Map<core.String, core.List<core.Object>> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1078(o["x"]); - checkUnnamed1078(o["y"]); -} - -buildUnnamed1080() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1080(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterVariant = 0; -buildVariant() { - var o = new api.Variant(); - buildCounterVariant++; - if (buildCounterVariant < 3) { - o.alternateBases = buildUnnamed1075(); - o.calls = buildUnnamed1076(); - o.created = "foo"; - o.end = "foo"; - o.filter = buildUnnamed1077(); - o.id = "foo"; - o.info = buildUnnamed1079(); - o.names = buildUnnamed1080(); - o.quality = 42.0; - o.referenceBases = "foo"; - o.referenceName = "foo"; - o.start = "foo"; - o.variantSetId = "foo"; - } - buildCounterVariant--; - return o; -} - -checkVariant(api.Variant o) { - buildCounterVariant++; - if (buildCounterVariant < 3) { - checkUnnamed1075(o.alternateBases); - checkUnnamed1076(o.calls); - unittest.expect(o.created, unittest.equals('foo')); - unittest.expect(o.end, unittest.equals('foo')); - checkUnnamed1077(o.filter); - unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1079(o.info); - checkUnnamed1080(o.names); - unittest.expect(o.quality, unittest.equals(42.0)); - unittest.expect(o.referenceBases, unittest.equals('foo')); - unittest.expect(o.referenceName, unittest.equals('foo')); - unittest.expect(o.start, unittest.equals('foo')); - unittest.expect(o.variantSetId, unittest.equals('foo')); - } - buildCounterVariant--; -} - -buildUnnamed1081() { - var o = new core.List<api.ClinicalCondition>(); - o.add(buildClinicalCondition()); - o.add(buildClinicalCondition()); - return o; -} - -checkUnnamed1081(core.List<api.ClinicalCondition> o) { - unittest.expect(o, unittest.hasLength(2)); - checkClinicalCondition(o[0]); - checkClinicalCondition(o[1]); -} - -buildUnnamed1082() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1082(core.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 buildCounterVariantAnnotation = 0; -buildVariantAnnotation() { - var o = new api.VariantAnnotation(); - buildCounterVariantAnnotation++; - if (buildCounterVariantAnnotation < 3) { - o.alternateBases = "foo"; - o.clinicalSignificance = "foo"; - o.conditions = buildUnnamed1081(); - o.effect = "foo"; - o.geneId = "foo"; - o.transcriptIds = buildUnnamed1082(); - o.type = "foo"; - } - buildCounterVariantAnnotation--; - return o; -} - -checkVariantAnnotation(api.VariantAnnotation o) { - buildCounterVariantAnnotation++; - if (buildCounterVariantAnnotation < 3) { - unittest.expect(o.alternateBases, unittest.equals('foo')); - unittest.expect(o.clinicalSignificance, unittest.equals('foo')); - checkUnnamed1081(o.conditions); - unittest.expect(o.effect, unittest.equals('foo')); - unittest.expect(o.geneId, unittest.equals('foo')); - checkUnnamed1082(o.transcriptIds); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterVariantAnnotation--; -} - -buildUnnamed1083() { - var o = new core.List<core.int>(); - o.add(42); - o.add(42); - return o; -} - -checkUnnamed1083(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)); -} - -buildUnnamed1084() { - var o = new core.List<core.double>(); - o.add(42.0); - o.add(42.0); - return o; -} - -checkUnnamed1084(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)); -} - -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; -} - -checkUnnamed1085(core.List<core.Object> o) { +checkUnnamed2325(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted25 = (o[0]) as core.Map; unittest.expect(casted25, unittest.hasLength(3)); @@ -3099,106 +3143,159 @@ unittest.expect(casted26["string"], unittest.equals('foo')); } -buildUnnamed1086() { +buildUnnamed2326() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed1085(); - o["y"] = buildUnnamed1085(); + o["x"] = buildUnnamed2325(); + o["y"] = buildUnnamed2325(); return o; } -checkUnnamed1086(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2326(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1085(o["x"]); - checkUnnamed1085(o["y"]); + checkUnnamed2325(o["x"]); + checkUnnamed2325(o["y"]); } -core.int buildCounterVariantCall = 0; -buildVariantCall() { - var o = new api.VariantCall(); - buildCounterVariantCall++; - if (buildCounterVariantCall < 3) { - o.callSetId = "foo"; - o.callSetName = "foo"; - o.genotype = buildUnnamed1083(); - o.genotypeLikelihood = buildUnnamed1084(); - o.info = buildUnnamed1086(); - o.phaseset = "foo"; - } - buildCounterVariantCall--; +buildUnnamed2327() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); return o; } -checkVariantCall(api.VariantCall o) { - buildCounterVariantCall++; - if (buildCounterVariantCall < 3) { - unittest.expect(o.callSetId, unittest.equals('foo')); - unittest.expect(o.callSetName, unittest.equals('foo')); - checkUnnamed1083(o.genotype); - checkUnnamed1084(o.genotypeLikelihood); - checkUnnamed1086(o.info); - unittest.expect(o.phaseset, unittest.equals('foo')); - } - buildCounterVariantCall--; -} - -buildUnnamed1087() { - var o = new core.List<api.VariantSetMetadata>(); - o.add(buildVariantSetMetadata()); - o.add(buildVariantSetMetadata()); - return o; -} - -checkUnnamed1087(core.List<api.VariantSetMetadata> o) { +checkUnnamed2327(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); - checkVariantSetMetadata(o[0]); - checkVariantSetMetadata(o[1]); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1088() { - var o = new core.List<api.ReferenceBound>(); - o.add(buildReferenceBound()); - o.add(buildReferenceBound()); - return o; -} - -checkUnnamed1088(core.List<api.ReferenceBound> o) { - unittest.expect(o, unittest.hasLength(2)); - checkReferenceBound(o[0]); - checkReferenceBound(o[1]); -} - -core.int buildCounterVariantSet = 0; -buildVariantSet() { - var o = new api.VariantSet(); - buildCounterVariantSet++; - if (buildCounterVariantSet < 3) { - o.datasetId = "foo"; - o.description = "foo"; +core.int buildCounterVariant = 0; +buildVariant() { + var o = new api.Variant(); + buildCounterVariant++; + if (buildCounterVariant < 3) { + o.alternateBases = buildUnnamed2322(); + o.calls = buildUnnamed2323(); + o.created = "foo"; + o.end = "foo"; + o.filter = buildUnnamed2324(); o.id = "foo"; - o.metadata = buildUnnamed1087(); - o.name = "foo"; - o.referenceBounds = buildUnnamed1088(); - o.referenceSetId = "foo"; + o.info = buildUnnamed2326(); + o.names = buildUnnamed2327(); + o.quality = 42.0; + o.referenceBases = "foo"; + o.referenceName = "foo"; + o.start = "foo"; + o.variantSetId = "foo"; } - buildCounterVariantSet--; + buildCounterVariant--; return o; } -checkVariantSet(api.VariantSet o) { - buildCounterVariantSet++; - if (buildCounterVariantSet < 3) { - unittest.expect(o.datasetId, unittest.equals('foo')); - unittest.expect(o.description, unittest.equals('foo')); +checkVariant(api.Variant o) { + buildCounterVariant++; + if (buildCounterVariant < 3) { + checkUnnamed2322(o.alternateBases); + checkUnnamed2323(o.calls); + unittest.expect(o.created, unittest.equals('foo')); + unittest.expect(o.end, unittest.equals('foo')); + checkUnnamed2324(o.filter); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1087(o.metadata); - unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1088(o.referenceBounds); - unittest.expect(o.referenceSetId, unittest.equals('foo')); + checkUnnamed2326(o.info); + checkUnnamed2327(o.names); + unittest.expect(o.quality, unittest.equals(42.0)); + unittest.expect(o.referenceBases, unittest.equals('foo')); + unittest.expect(o.referenceName, unittest.equals('foo')); + unittest.expect(o.start, unittest.equals('foo')); + unittest.expect(o.variantSetId, unittest.equals('foo')); } - buildCounterVariantSet--; + buildCounterVariant--; } -buildUnnamed1089() { +buildUnnamed2328() { + var o = new core.List<api.ClinicalCondition>(); + o.add(buildClinicalCondition()); + o.add(buildClinicalCondition()); + return o; +} + +checkUnnamed2328(core.List<api.ClinicalCondition> o) { + unittest.expect(o, unittest.hasLength(2)); + checkClinicalCondition(o[0]); + checkClinicalCondition(o[1]); +} + +buildUnnamed2329() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2329(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterVariantAnnotation = 0; +buildVariantAnnotation() { + var o = new api.VariantAnnotation(); + buildCounterVariantAnnotation++; + if (buildCounterVariantAnnotation < 3) { + o.alternateBases = "foo"; + o.clinicalSignificance = "foo"; + o.conditions = buildUnnamed2328(); + o.effect = "foo"; + o.geneId = "foo"; + o.transcriptIds = buildUnnamed2329(); + o.type = "foo"; + } + buildCounterVariantAnnotation--; + return o; +} + +checkVariantAnnotation(api.VariantAnnotation o) { + buildCounterVariantAnnotation++; + if (buildCounterVariantAnnotation < 3) { + unittest.expect(o.alternateBases, unittest.equals('foo')); + unittest.expect(o.clinicalSignificance, unittest.equals('foo')); + checkUnnamed2328(o.conditions); + unittest.expect(o.effect, unittest.equals('foo')); + unittest.expect(o.geneId, unittest.equals('foo')); + checkUnnamed2329(o.transcriptIds); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterVariantAnnotation--; +} + +buildUnnamed2330() { + var o = new core.List<core.int>(); + o.add(42); + o.add(42); + return o; +} + +checkUnnamed2330(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)); +} + +buildUnnamed2331() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed2331(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)); +} + +buildUnnamed2332() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -3213,7 +3310,7 @@ return o; } -checkUnnamed1089(core.List<core.Object> o) { +checkUnnamed2332(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted27 = (o[0]) as core.Map; unittest.expect(casted27, unittest.hasLength(3)); @@ -3227,17 +3324,145 @@ unittest.expect(casted28["string"], unittest.equals('foo')); } -buildUnnamed1090() { +buildUnnamed2333() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed1089(); - o["y"] = buildUnnamed1089(); + o["x"] = buildUnnamed2332(); + o["y"] = buildUnnamed2332(); return o; } -checkUnnamed1090(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2333(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1089(o["x"]); - checkUnnamed1089(o["y"]); + checkUnnamed2332(o["x"]); + checkUnnamed2332(o["y"]); +} + +core.int buildCounterVariantCall = 0; +buildVariantCall() { + var o = new api.VariantCall(); + buildCounterVariantCall++; + if (buildCounterVariantCall < 3) { + o.callSetId = "foo"; + o.callSetName = "foo"; + o.genotype = buildUnnamed2330(); + o.genotypeLikelihood = buildUnnamed2331(); + o.info = buildUnnamed2333(); + o.phaseset = "foo"; + } + buildCounterVariantCall--; + return o; +} + +checkVariantCall(api.VariantCall o) { + buildCounterVariantCall++; + if (buildCounterVariantCall < 3) { + unittest.expect(o.callSetId, unittest.equals('foo')); + unittest.expect(o.callSetName, unittest.equals('foo')); + checkUnnamed2330(o.genotype); + checkUnnamed2331(o.genotypeLikelihood); + checkUnnamed2333(o.info); + unittest.expect(o.phaseset, unittest.equals('foo')); + } + buildCounterVariantCall--; +} + +buildUnnamed2334() { + var o = new core.List<api.VariantSetMetadata>(); + o.add(buildVariantSetMetadata()); + o.add(buildVariantSetMetadata()); + return o; +} + +checkUnnamed2334(core.List<api.VariantSetMetadata> o) { + unittest.expect(o, unittest.hasLength(2)); + checkVariantSetMetadata(o[0]); + checkVariantSetMetadata(o[1]); +} + +buildUnnamed2335() { + var o = new core.List<api.ReferenceBound>(); + o.add(buildReferenceBound()); + o.add(buildReferenceBound()); + return o; +} + +checkUnnamed2335(core.List<api.ReferenceBound> o) { + unittest.expect(o, unittest.hasLength(2)); + checkReferenceBound(o[0]); + checkReferenceBound(o[1]); +} + +core.int buildCounterVariantSet = 0; +buildVariantSet() { + var o = new api.VariantSet(); + buildCounterVariantSet++; + if (buildCounterVariantSet < 3) { + o.datasetId = "foo"; + o.description = "foo"; + o.id = "foo"; + o.metadata = buildUnnamed2334(); + o.name = "foo"; + o.referenceBounds = buildUnnamed2335(); + o.referenceSetId = "foo"; + } + buildCounterVariantSet--; + return o; +} + +checkVariantSet(api.VariantSet o) { + buildCounterVariantSet++; + if (buildCounterVariantSet < 3) { + unittest.expect(o.datasetId, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.id, unittest.equals('foo')); + checkUnnamed2334(o.metadata); + unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed2335(o.referenceBounds); + unittest.expect(o.referenceSetId, unittest.equals('foo')); + } + buildCounterVariantSet--; +} + +buildUnnamed2336() { + 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; +} + +checkUnnamed2336(core.List<core.Object> o) { + unittest.expect(o, unittest.hasLength(2)); + var casted29 = (o[0]) 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[1]) 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')); +} + +buildUnnamed2337() { + var o = new core.Map<core.String, core.List<core.Object>>(); + o["x"] = buildUnnamed2336(); + o["y"] = buildUnnamed2336(); + return o; +} + +checkUnnamed2337(core.Map<core.String, core.List<core.Object>> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed2336(o["x"]); + checkUnnamed2336(o["y"]); } core.int buildCounterVariantSetMetadata = 0; @@ -3247,7 +3472,7 @@ if (buildCounterVariantSetMetadata < 3) { o.description = "foo"; o.id = "foo"; - o.info = buildUnnamed1090(); + o.info = buildUnnamed2337(); o.key = "foo"; o.number = "foo"; o.type = "foo"; @@ -3262,7 +3487,7 @@ if (buildCounterVariantSetMetadata < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1090(o.info); + checkUnnamed2337(o.info); unittest.expect(o.key, unittest.equals('foo')); unittest.expect(o.number, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -3271,6 +3496,48 @@ buildCounterVariantSetMetadata--; } +core.int buildCounterWorkerAssignedEvent = 0; +buildWorkerAssignedEvent() { + var o = new api.WorkerAssignedEvent(); + buildCounterWorkerAssignedEvent++; + if (buildCounterWorkerAssignedEvent < 3) { + o.instance = "foo"; + o.zone = "foo"; + } + buildCounterWorkerAssignedEvent--; + return o; +} + +checkWorkerAssignedEvent(api.WorkerAssignedEvent o) { + buildCounterWorkerAssignedEvent++; + if (buildCounterWorkerAssignedEvent < 3) { + unittest.expect(o.instance, unittest.equals('foo')); + unittest.expect(o.zone, unittest.equals('foo')); + } + buildCounterWorkerAssignedEvent--; +} + +core.int buildCounterWorkerReleasedEvent = 0; +buildWorkerReleasedEvent() { + var o = new api.WorkerReleasedEvent(); + buildCounterWorkerReleasedEvent++; + if (buildCounterWorkerReleasedEvent < 3) { + o.instance = "foo"; + o.zone = "foo"; + } + buildCounterWorkerReleasedEvent--; + return o; +} + +checkWorkerReleasedEvent(api.WorkerReleasedEvent o) { + buildCounterWorkerReleasedEvent++; + if (buildCounterWorkerReleasedEvent < 3) { + unittest.expect(o.instance, unittest.equals('foo')); + unittest.expect(o.zone, unittest.equals('foo')); + } + buildCounterWorkerReleasedEvent--; +} + main() { unittest.group("obj-schema-Annotation", () { unittest.test("to-json--from-json", () { @@ -3360,6 +3627,22 @@ }); }); + unittest.group("obj-schema-ContainerStartedEvent", () { + unittest.test("to-json--from-json", () { + var o = buildContainerStartedEvent(); + var od = new api.ContainerStartedEvent.fromJson(o.toJson()); + checkContainerStartedEvent(od); + }); + }); + + unittest.group("obj-schema-ContainerStoppedEvent", () { + unittest.test("to-json--from-json", () { + var o = buildContainerStoppedEvent(); + var od = new api.ContainerStoppedEvent.fromJson(o.toJson()); + checkContainerStoppedEvent(od); + }); + }); + unittest.group("obj-schema-CoverageBucket", () { unittest.test("to-json--from-json", () { var o = buildCoverageBucket(); @@ -3376,6 +3659,14 @@ }); }); + unittest.group("obj-schema-DelayedEvent", () { + unittest.test("to-json--from-json", () { + var o = buildDelayedEvent(); + var od = new api.DelayedEvent.fromJson(o.toJson()); + checkDelayedEvent(od); + }); + }); + unittest.group("obj-schema-Empty", () { unittest.test("to-json--from-json", () { var o = buildEmpty(); @@ -3392,6 +3683,14 @@ }); }); + unittest.group("obj-schema-Event", () { + unittest.test("to-json--from-json", () { + var o = buildEvent(); + var od = new api.Event.fromJson(o.toJson()); + checkEvent(od); + }); + }); + unittest.group("obj-schema-Exon", () { unittest.test("to-json--from-json", () { var o = buildExon(); @@ -3432,6 +3731,14 @@ }); }); + unittest.group("obj-schema-FailedEvent", () { + unittest.test("to-json--from-json", () { + var o = buildFailedEvent(); + var od = new api.FailedEvent.fromJson(o.toJson()); + checkFailedEvent(od); + }); + }); + unittest.group("obj-schema-GetIamPolicyRequest", () { unittest.test("to-json--from-json", () { var o = buildGetIamPolicyRequest(); @@ -3568,6 +3875,22 @@ }); }); + unittest.group("obj-schema-PullStartedEvent", () { + unittest.test("to-json--from-json", () { + var o = buildPullStartedEvent(); + var od = new api.PullStartedEvent.fromJson(o.toJson()); + checkPullStartedEvent(od); + }); + }); + + unittest.group("obj-schema-PullStoppedEvent", () { + unittest.test("to-json--from-json", () { + var o = buildPullStoppedEvent(); + var od = new api.PullStoppedEvent.fromJson(o.toJson()); + checkPullStoppedEvent(od); + }); + }); + unittest.group("obj-schema-Range", () { unittest.test("to-json--from-json", () { var o = buildRange(); @@ -3824,6 +4147,14 @@ }); }); + unittest.group("obj-schema-UnexpectedExitStatusEvent", () { + unittest.test("to-json--from-json", () { + var o = buildUnexpectedExitStatusEvent(); + var od = new api.UnexpectedExitStatusEvent.fromJson(o.toJson()); + checkUnexpectedExitStatusEvent(od); + }); + }); + unittest.group("obj-schema-Variant", () { unittest.test("to-json--from-json", () { var o = buildVariant(); @@ -3864,6 +4195,22 @@ }); }); + unittest.group("obj-schema-WorkerAssignedEvent", () { + unittest.test("to-json--from-json", () { + var o = buildWorkerAssignedEvent(); + var od = new api.WorkerAssignedEvent.fromJson(o.toJson()); + checkWorkerAssignedEvent(od); + }); + }); + + unittest.group("obj-schema-WorkerReleasedEvent", () { + unittest.test("to-json--from-json", () { + var o = buildWorkerReleasedEvent(); + var od = new api.WorkerReleasedEvent.fromJson(o.toJson()); + checkWorkerReleasedEvent(od); + }); + }); + unittest.group("resource-AnnotationsResourceApi", () { unittest.test("method--batchCreate", () { var mock = new HttpServerMock(); @@ -5370,9 +5717,9 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; var arg_name = "foo"; + var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5405,11 +5752,11 @@ 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)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5420,9 +5767,9 @@ }), true); res .list(arg_name, + pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken, - pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response); @@ -5780,12 +6127,12 @@ api.ReadgroupsetsCoveragebucketsResourceApi res = new api.GenomicsApi(mock).readgroupsets.coveragebuckets; var arg_readGroupSetId = "foo"; + var arg_start = "foo"; + var arg_targetBucketWidth = "foo"; var arg_referenceName = "foo"; var arg_end = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_start = "foo"; - var arg_targetBucketWidth = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5826,6 +6173,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["start"].first, unittest.equals(arg_start)); + unittest.expect(queryMap["targetBucketWidth"].first, + unittest.equals(arg_targetBucketWidth)); unittest.expect(queryMap["referenceName"].first, unittest.equals(arg_referenceName)); unittest.expect(queryMap["end"].first, unittest.equals(arg_end)); @@ -5833,9 +6183,6 @@ queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["start"].first, unittest.equals(arg_start)); - unittest.expect(queryMap["targetBucketWidth"].first, - unittest.equals(arg_targetBucketWidth)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5846,12 +6193,12 @@ }), true); res .list(arg_readGroupSetId, + start: arg_start, + targetBucketWidth: arg_targetBucketWidth, referenceName: arg_referenceName, end: arg_end, pageToken: arg_pageToken, pageSize: arg_pageSize, - start: arg_start, - targetBucketWidth: arg_targetBucketWidth, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListCoverageBucketsResponse(response); @@ -6028,10 +6375,10 @@ api.ReferencesBasesResourceApi res = new api.GenomicsApi(mock).references.bases; var arg_referenceId = "foo"; + var arg_end = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_start = "foo"; - var arg_end = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6072,12 +6419,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["end"].first, unittest.equals(arg_end)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["start"].first, unittest.equals(arg_start)); - unittest.expect(queryMap["end"].first, unittest.equals(arg_end)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6088,10 +6435,10 @@ }), true); res .list(arg_referenceId, + end: arg_end, pageToken: arg_pageToken, pageSize: arg_pageSize, start: arg_start, - end: arg_end, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListBasesResponse(response);
diff --git a/generated/googleapis/test/gmail/v1_test.dart b/generated/googleapis/test/gmail/v1_test.dart index 78845d4..d6f713c 100644 --- a/generated/googleapis/test/gmail/v1_test.dart +++ b/generated/googleapis/test/gmail/v1_test.dart
@@ -73,14 +73,14 @@ buildCounterAutoForwarding--; } -buildUnnamed1831() { +buildUnnamed2338() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1831(core.List<core.String> o) { +checkUnnamed2338(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -91,7 +91,7 @@ var o = new api.BatchDeleteMessagesRequest(); buildCounterBatchDeleteMessagesRequest++; if (buildCounterBatchDeleteMessagesRequest < 3) { - o.ids = buildUnnamed1831(); + o.ids = buildUnnamed2338(); } buildCounterBatchDeleteMessagesRequest--; return o; @@ -100,45 +100,45 @@ checkBatchDeleteMessagesRequest(api.BatchDeleteMessagesRequest o) { buildCounterBatchDeleteMessagesRequest++; if (buildCounterBatchDeleteMessagesRequest < 3) { - checkUnnamed1831(o.ids); + checkUnnamed2338(o.ids); } buildCounterBatchDeleteMessagesRequest--; } -buildUnnamed1832() { +buildUnnamed2339() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1832(core.List<core.String> o) { +checkUnnamed2339(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1833() { +buildUnnamed2340() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1833(core.List<core.String> o) { +checkUnnamed2340(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1834() { +buildUnnamed2341() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1834(core.List<core.String> o) { +checkUnnamed2341(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -149,9 +149,9 @@ var o = new api.BatchModifyMessagesRequest(); buildCounterBatchModifyMessagesRequest++; if (buildCounterBatchModifyMessagesRequest < 3) { - o.addLabelIds = buildUnnamed1832(); - o.ids = buildUnnamed1833(); - o.removeLabelIds = buildUnnamed1834(); + o.addLabelIds = buildUnnamed2339(); + o.ids = buildUnnamed2340(); + o.removeLabelIds = buildUnnamed2341(); } buildCounterBatchModifyMessagesRequest--; return o; @@ -160,9 +160,9 @@ checkBatchModifyMessagesRequest(api.BatchModifyMessagesRequest o) { buildCounterBatchModifyMessagesRequest++; if (buildCounterBatchModifyMessagesRequest < 3) { - checkUnnamed1832(o.addLabelIds); - checkUnnamed1833(o.ids); - checkUnnamed1834(o.removeLabelIds); + checkUnnamed2339(o.addLabelIds); + checkUnnamed2340(o.ids); + checkUnnamed2341(o.removeLabelIds); } buildCounterBatchModifyMessagesRequest--; } @@ -211,27 +211,27 @@ buildCounterFilter--; } -buildUnnamed1835() { +buildUnnamed2342() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1835(core.List<core.String> o) { +checkUnnamed2342(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1836() { +buildUnnamed2343() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1836(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')); @@ -242,9 +242,9 @@ var o = new api.FilterAction(); buildCounterFilterAction++; if (buildCounterFilterAction < 3) { - o.addLabelIds = buildUnnamed1835(); + o.addLabelIds = buildUnnamed2342(); o.forward = "foo"; - o.removeLabelIds = buildUnnamed1836(); + o.removeLabelIds = buildUnnamed2343(); } buildCounterFilterAction--; return o; @@ -253,9 +253,9 @@ checkFilterAction(api.FilterAction o) { buildCounterFilterAction++; if (buildCounterFilterAction < 3) { - checkUnnamed1835(o.addLabelIds); + checkUnnamed2342(o.addLabelIds); unittest.expect(o.forward, unittest.equals('foo')); - checkUnnamed1836(o.removeLabelIds); + checkUnnamed2343(o.removeLabelIds); } buildCounterFilterAction--; } @@ -316,66 +316,66 @@ buildCounterForwardingAddress--; } -buildUnnamed1837() { +buildUnnamed2344() { var o = new core.List<api.HistoryLabelAdded>(); o.add(buildHistoryLabelAdded()); o.add(buildHistoryLabelAdded()); return o; } -checkUnnamed1837(core.List<api.HistoryLabelAdded> o) { +checkUnnamed2344(core.List<api.HistoryLabelAdded> o) { unittest.expect(o, unittest.hasLength(2)); checkHistoryLabelAdded(o[0]); checkHistoryLabelAdded(o[1]); } -buildUnnamed1838() { +buildUnnamed2345() { var o = new core.List<api.HistoryLabelRemoved>(); o.add(buildHistoryLabelRemoved()); o.add(buildHistoryLabelRemoved()); return o; } -checkUnnamed1838(core.List<api.HistoryLabelRemoved> o) { +checkUnnamed2345(core.List<api.HistoryLabelRemoved> o) { unittest.expect(o, unittest.hasLength(2)); checkHistoryLabelRemoved(o[0]); checkHistoryLabelRemoved(o[1]); } -buildUnnamed1839() { +buildUnnamed2346() { var o = new core.List<api.Message>(); o.add(buildMessage()); o.add(buildMessage()); return o; } -checkUnnamed1839(core.List<api.Message> o) { +checkUnnamed2346(core.List<api.Message> o) { unittest.expect(o, unittest.hasLength(2)); checkMessage(o[0]); checkMessage(o[1]); } -buildUnnamed1840() { +buildUnnamed2347() { var o = new core.List<api.HistoryMessageAdded>(); o.add(buildHistoryMessageAdded()); o.add(buildHistoryMessageAdded()); return o; } -checkUnnamed1840(core.List<api.HistoryMessageAdded> o) { +checkUnnamed2347(core.List<api.HistoryMessageAdded> o) { unittest.expect(o, unittest.hasLength(2)); checkHistoryMessageAdded(o[0]); checkHistoryMessageAdded(o[1]); } -buildUnnamed1841() { +buildUnnamed2348() { var o = new core.List<api.HistoryMessageDeleted>(); o.add(buildHistoryMessageDeleted()); o.add(buildHistoryMessageDeleted()); return o; } -checkUnnamed1841(core.List<api.HistoryMessageDeleted> o) { +checkUnnamed2348(core.List<api.HistoryMessageDeleted> o) { unittest.expect(o, unittest.hasLength(2)); checkHistoryMessageDeleted(o[0]); checkHistoryMessageDeleted(o[1]); @@ -387,11 +387,11 @@ buildCounterHistory++; if (buildCounterHistory < 3) { o.id = "foo"; - o.labelsAdded = buildUnnamed1837(); - o.labelsRemoved = buildUnnamed1838(); - o.messages = buildUnnamed1839(); - o.messagesAdded = buildUnnamed1840(); - o.messagesDeleted = buildUnnamed1841(); + o.labelsAdded = buildUnnamed2344(); + o.labelsRemoved = buildUnnamed2345(); + o.messages = buildUnnamed2346(); + o.messagesAdded = buildUnnamed2347(); + o.messagesDeleted = buildUnnamed2348(); } buildCounterHistory--; return o; @@ -401,23 +401,23 @@ buildCounterHistory++; if (buildCounterHistory < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1837(o.labelsAdded); - checkUnnamed1838(o.labelsRemoved); - checkUnnamed1839(o.messages); - checkUnnamed1840(o.messagesAdded); - checkUnnamed1841(o.messagesDeleted); + checkUnnamed2344(o.labelsAdded); + checkUnnamed2345(o.labelsRemoved); + checkUnnamed2346(o.messages); + checkUnnamed2347(o.messagesAdded); + checkUnnamed2348(o.messagesDeleted); } buildCounterHistory--; } -buildUnnamed1842() { +buildUnnamed2349() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1842(core.List<core.String> o) { +checkUnnamed2349(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -428,7 +428,7 @@ var o = new api.HistoryLabelAdded(); buildCounterHistoryLabelAdded++; if (buildCounterHistoryLabelAdded < 3) { - o.labelIds = buildUnnamed1842(); + o.labelIds = buildUnnamed2349(); o.message = buildMessage(); } buildCounterHistoryLabelAdded--; @@ -438,20 +438,20 @@ checkHistoryLabelAdded(api.HistoryLabelAdded o) { buildCounterHistoryLabelAdded++; if (buildCounterHistoryLabelAdded < 3) { - checkUnnamed1842(o.labelIds); + checkUnnamed2349(o.labelIds); checkMessage(o.message); } buildCounterHistoryLabelAdded--; } -buildUnnamed1843() { +buildUnnamed2350() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1843(core.List<core.String> o) { +checkUnnamed2350(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -462,7 +462,7 @@ var o = new api.HistoryLabelRemoved(); buildCounterHistoryLabelRemoved++; if (buildCounterHistoryLabelRemoved < 3) { - o.labelIds = buildUnnamed1843(); + o.labelIds = buildUnnamed2350(); o.message = buildMessage(); } buildCounterHistoryLabelRemoved--; @@ -472,7 +472,7 @@ checkHistoryLabelRemoved(api.HistoryLabelRemoved o) { buildCounterHistoryLabelRemoved++; if (buildCounterHistoryLabelRemoved < 3) { - checkUnnamed1843(o.labelIds); + checkUnnamed2350(o.labelIds); checkMessage(o.message); } buildCounterHistoryLabelRemoved--; @@ -599,14 +599,14 @@ buildCounterLabelColor--; } -buildUnnamed1844() { +buildUnnamed2351() { var o = new core.List<api.Draft>(); o.add(buildDraft()); o.add(buildDraft()); return o; } -checkUnnamed1844(core.List<api.Draft> o) { +checkUnnamed2351(core.List<api.Draft> o) { unittest.expect(o, unittest.hasLength(2)); checkDraft(o[0]); checkDraft(o[1]); @@ -617,7 +617,7 @@ var o = new api.ListDraftsResponse(); buildCounterListDraftsResponse++; if (buildCounterListDraftsResponse < 3) { - o.drafts = buildUnnamed1844(); + o.drafts = buildUnnamed2351(); o.nextPageToken = "foo"; o.resultSizeEstimate = 42; } @@ -628,21 +628,21 @@ checkListDraftsResponse(api.ListDraftsResponse o) { buildCounterListDraftsResponse++; if (buildCounterListDraftsResponse < 3) { - checkUnnamed1844(o.drafts); + checkUnnamed2351(o.drafts); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.resultSizeEstimate, unittest.equals(42)); } buildCounterListDraftsResponse--; } -buildUnnamed1845() { +buildUnnamed2352() { var o = new core.List<api.Filter>(); o.add(buildFilter()); o.add(buildFilter()); return o; } -checkUnnamed1845(core.List<api.Filter> o) { +checkUnnamed2352(core.List<api.Filter> o) { unittest.expect(o, unittest.hasLength(2)); checkFilter(o[0]); checkFilter(o[1]); @@ -653,7 +653,7 @@ var o = new api.ListFiltersResponse(); buildCounterListFiltersResponse++; if (buildCounterListFiltersResponse < 3) { - o.filter = buildUnnamed1845(); + o.filter = buildUnnamed2352(); } buildCounterListFiltersResponse--; return o; @@ -662,19 +662,19 @@ checkListFiltersResponse(api.ListFiltersResponse o) { buildCounterListFiltersResponse++; if (buildCounterListFiltersResponse < 3) { - checkUnnamed1845(o.filter); + checkUnnamed2352(o.filter); } buildCounterListFiltersResponse--; } -buildUnnamed1846() { +buildUnnamed2353() { var o = new core.List<api.ForwardingAddress>(); o.add(buildForwardingAddress()); o.add(buildForwardingAddress()); return o; } -checkUnnamed1846(core.List<api.ForwardingAddress> o) { +checkUnnamed2353(core.List<api.ForwardingAddress> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingAddress(o[0]); checkForwardingAddress(o[1]); @@ -685,7 +685,7 @@ var o = new api.ListForwardingAddressesResponse(); buildCounterListForwardingAddressesResponse++; if (buildCounterListForwardingAddressesResponse < 3) { - o.forwardingAddresses = buildUnnamed1846(); + o.forwardingAddresses = buildUnnamed2353(); } buildCounterListForwardingAddressesResponse--; return o; @@ -694,19 +694,19 @@ checkListForwardingAddressesResponse(api.ListForwardingAddressesResponse o) { buildCounterListForwardingAddressesResponse++; if (buildCounterListForwardingAddressesResponse < 3) { - checkUnnamed1846(o.forwardingAddresses); + checkUnnamed2353(o.forwardingAddresses); } buildCounterListForwardingAddressesResponse--; } -buildUnnamed1847() { +buildUnnamed2354() { var o = new core.List<api.History>(); o.add(buildHistory()); o.add(buildHistory()); return o; } -checkUnnamed1847(core.List<api.History> o) { +checkUnnamed2354(core.List<api.History> o) { unittest.expect(o, unittest.hasLength(2)); checkHistory(o[0]); checkHistory(o[1]); @@ -717,7 +717,7 @@ var o = new api.ListHistoryResponse(); buildCounterListHistoryResponse++; if (buildCounterListHistoryResponse < 3) { - o.history = buildUnnamed1847(); + o.history = buildUnnamed2354(); o.historyId = "foo"; o.nextPageToken = "foo"; } @@ -728,21 +728,21 @@ checkListHistoryResponse(api.ListHistoryResponse o) { buildCounterListHistoryResponse++; if (buildCounterListHistoryResponse < 3) { - checkUnnamed1847(o.history); + checkUnnamed2354(o.history); unittest.expect(o.historyId, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListHistoryResponse--; } -buildUnnamed1848() { +buildUnnamed2355() { var o = new core.List<api.Label>(); o.add(buildLabel()); o.add(buildLabel()); return o; } -checkUnnamed1848(core.List<api.Label> o) { +checkUnnamed2355(core.List<api.Label> o) { unittest.expect(o, unittest.hasLength(2)); checkLabel(o[0]); checkLabel(o[1]); @@ -753,7 +753,7 @@ var o = new api.ListLabelsResponse(); buildCounterListLabelsResponse++; if (buildCounterListLabelsResponse < 3) { - o.labels = buildUnnamed1848(); + o.labels = buildUnnamed2355(); } buildCounterListLabelsResponse--; return o; @@ -762,19 +762,19 @@ checkListLabelsResponse(api.ListLabelsResponse o) { buildCounterListLabelsResponse++; if (buildCounterListLabelsResponse < 3) { - checkUnnamed1848(o.labels); + checkUnnamed2355(o.labels); } buildCounterListLabelsResponse--; } -buildUnnamed1849() { +buildUnnamed2356() { var o = new core.List<api.Message>(); o.add(buildMessage()); o.add(buildMessage()); return o; } -checkUnnamed1849(core.List<api.Message> o) { +checkUnnamed2356(core.List<api.Message> o) { unittest.expect(o, unittest.hasLength(2)); checkMessage(o[0]); checkMessage(o[1]); @@ -785,7 +785,7 @@ var o = new api.ListMessagesResponse(); buildCounterListMessagesResponse++; if (buildCounterListMessagesResponse < 3) { - o.messages = buildUnnamed1849(); + o.messages = buildUnnamed2356(); o.nextPageToken = "foo"; o.resultSizeEstimate = 42; } @@ -796,21 +796,21 @@ checkListMessagesResponse(api.ListMessagesResponse o) { buildCounterListMessagesResponse++; if (buildCounterListMessagesResponse < 3) { - checkUnnamed1849(o.messages); + checkUnnamed2356(o.messages); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.resultSizeEstimate, unittest.equals(42)); } buildCounterListMessagesResponse--; } -buildUnnamed1850() { +buildUnnamed2357() { var o = new core.List<api.SendAs>(); o.add(buildSendAs()); o.add(buildSendAs()); return o; } -checkUnnamed1850(core.List<api.SendAs> o) { +checkUnnamed2357(core.List<api.SendAs> o) { unittest.expect(o, unittest.hasLength(2)); checkSendAs(o[0]); checkSendAs(o[1]); @@ -821,7 +821,7 @@ var o = new api.ListSendAsResponse(); buildCounterListSendAsResponse++; if (buildCounterListSendAsResponse < 3) { - o.sendAs = buildUnnamed1850(); + o.sendAs = buildUnnamed2357(); } buildCounterListSendAsResponse--; return o; @@ -830,19 +830,19 @@ checkListSendAsResponse(api.ListSendAsResponse o) { buildCounterListSendAsResponse++; if (buildCounterListSendAsResponse < 3) { - checkUnnamed1850(o.sendAs); + checkUnnamed2357(o.sendAs); } buildCounterListSendAsResponse--; } -buildUnnamed1851() { +buildUnnamed2358() { var o = new core.List<api.SmimeInfo>(); o.add(buildSmimeInfo()); o.add(buildSmimeInfo()); return o; } -checkUnnamed1851(core.List<api.SmimeInfo> o) { +checkUnnamed2358(core.List<api.SmimeInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSmimeInfo(o[0]); checkSmimeInfo(o[1]); @@ -853,7 +853,7 @@ var o = new api.ListSmimeInfoResponse(); buildCounterListSmimeInfoResponse++; if (buildCounterListSmimeInfoResponse < 3) { - o.smimeInfo = buildUnnamed1851(); + o.smimeInfo = buildUnnamed2358(); } buildCounterListSmimeInfoResponse--; return o; @@ -862,19 +862,19 @@ checkListSmimeInfoResponse(api.ListSmimeInfoResponse o) { buildCounterListSmimeInfoResponse++; if (buildCounterListSmimeInfoResponse < 3) { - checkUnnamed1851(o.smimeInfo); + checkUnnamed2358(o.smimeInfo); } buildCounterListSmimeInfoResponse--; } -buildUnnamed1852() { +buildUnnamed2359() { var o = new core.List<api.Thread>(); o.add(buildThread()); o.add(buildThread()); return o; } -checkUnnamed1852(core.List<api.Thread> o) { +checkUnnamed2359(core.List<api.Thread> o) { unittest.expect(o, unittest.hasLength(2)); checkThread(o[0]); checkThread(o[1]); @@ -887,7 +887,7 @@ if (buildCounterListThreadsResponse < 3) { o.nextPageToken = "foo"; o.resultSizeEstimate = 42; - o.threads = buildUnnamed1852(); + o.threads = buildUnnamed2359(); } buildCounterListThreadsResponse--; return o; @@ -898,19 +898,19 @@ if (buildCounterListThreadsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.resultSizeEstimate, unittest.equals(42)); - checkUnnamed1852(o.threads); + checkUnnamed2359(o.threads); } buildCounterListThreadsResponse--; } -buildUnnamed1853() { +buildUnnamed2360() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1853(core.List<core.String> o) { +checkUnnamed2360(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -924,7 +924,7 @@ o.historyId = "foo"; o.id = "foo"; o.internalDate = "foo"; - o.labelIds = buildUnnamed1853(); + o.labelIds = buildUnnamed2360(); o.payload = buildMessagePart(); o.raw = "foo"; o.sizeEstimate = 42; @@ -941,7 +941,7 @@ unittest.expect(o.historyId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.internalDate, unittest.equals('foo')); - checkUnnamed1853(o.labelIds); + checkUnnamed2360(o.labelIds); checkMessagePart(o.payload); unittest.expect(o.raw, unittest.equals('foo')); unittest.expect(o.sizeEstimate, unittest.equals(42)); @@ -951,27 +951,27 @@ buildCounterMessage--; } -buildUnnamed1854() { +buildUnnamed2361() { var o = new core.List<api.MessagePartHeader>(); o.add(buildMessagePartHeader()); o.add(buildMessagePartHeader()); return o; } -checkUnnamed1854(core.List<api.MessagePartHeader> o) { +checkUnnamed2361(core.List<api.MessagePartHeader> o) { unittest.expect(o, unittest.hasLength(2)); checkMessagePartHeader(o[0]); checkMessagePartHeader(o[1]); } -buildUnnamed1855() { +buildUnnamed2362() { var o = new core.List<api.MessagePart>(); o.add(buildMessagePart()); o.add(buildMessagePart()); return o; } -checkUnnamed1855(core.List<api.MessagePart> o) { +checkUnnamed2362(core.List<api.MessagePart> o) { unittest.expect(o, unittest.hasLength(2)); checkMessagePart(o[0]); checkMessagePart(o[1]); @@ -984,10 +984,10 @@ if (buildCounterMessagePart < 3) { o.body = buildMessagePartBody(); o.filename = "foo"; - o.headers = buildUnnamed1854(); + o.headers = buildUnnamed2361(); o.mimeType = "foo"; o.partId = "foo"; - o.parts = buildUnnamed1855(); + o.parts = buildUnnamed2362(); } buildCounterMessagePart--; return o; @@ -998,10 +998,10 @@ if (buildCounterMessagePart < 3) { checkMessagePartBody(o.body); unittest.expect(o.filename, unittest.equals('foo')); - checkUnnamed1854(o.headers); + checkUnnamed2361(o.headers); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.partId, unittest.equals('foo')); - checkUnnamed1855(o.parts); + checkUnnamed2362(o.parts); } buildCounterMessagePart--; } @@ -1050,27 +1050,27 @@ buildCounterMessagePartHeader--; } -buildUnnamed1856() { +buildUnnamed2363() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1856(core.List<core.String> o) { +checkUnnamed2363(core.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() { +buildUnnamed2364() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1857(core.List<core.String> o) { +checkUnnamed2364(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1081,8 +1081,8 @@ var o = new api.ModifyMessageRequest(); buildCounterModifyMessageRequest++; if (buildCounterModifyMessageRequest < 3) { - o.addLabelIds = buildUnnamed1856(); - o.removeLabelIds = buildUnnamed1857(); + o.addLabelIds = buildUnnamed2363(); + o.removeLabelIds = buildUnnamed2364(); } buildCounterModifyMessageRequest--; return o; @@ -1091,33 +1091,33 @@ checkModifyMessageRequest(api.ModifyMessageRequest o) { buildCounterModifyMessageRequest++; if (buildCounterModifyMessageRequest < 3) { - checkUnnamed1856(o.addLabelIds); - checkUnnamed1857(o.removeLabelIds); + checkUnnamed2363(o.addLabelIds); + checkUnnamed2364(o.removeLabelIds); } buildCounterModifyMessageRequest--; } -buildUnnamed1858() { +buildUnnamed2365() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1858(core.List<core.String> o) { +checkUnnamed2365(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1859() { +buildUnnamed2366() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1859(core.List<core.String> o) { +checkUnnamed2366(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1128,8 +1128,8 @@ var o = new api.ModifyThreadRequest(); buildCounterModifyThreadRequest++; if (buildCounterModifyThreadRequest < 3) { - o.addLabelIds = buildUnnamed1858(); - o.removeLabelIds = buildUnnamed1859(); + o.addLabelIds = buildUnnamed2365(); + o.removeLabelIds = buildUnnamed2366(); } buildCounterModifyThreadRequest--; return o; @@ -1138,8 +1138,8 @@ checkModifyThreadRequest(api.ModifyThreadRequest o) { buildCounterModifyThreadRequest++; if (buildCounterModifyThreadRequest < 3) { - checkUnnamed1858(o.addLabelIds); - checkUnnamed1859(o.removeLabelIds); + checkUnnamed2365(o.addLabelIds); + checkUnnamed2366(o.removeLabelIds); } buildCounterModifyThreadRequest--; } @@ -1283,14 +1283,14 @@ buildCounterSmtpMsa--; } -buildUnnamed1860() { +buildUnnamed2367() { var o = new core.List<api.Message>(); o.add(buildMessage()); o.add(buildMessage()); return o; } -checkUnnamed1860(core.List<api.Message> o) { +checkUnnamed2367(core.List<api.Message> o) { unittest.expect(o, unittest.hasLength(2)); checkMessage(o[0]); checkMessage(o[1]); @@ -1303,7 +1303,7 @@ if (buildCounterThread < 3) { o.historyId = "foo"; o.id = "foo"; - o.messages = buildUnnamed1860(); + o.messages = buildUnnamed2367(); o.snippet = "foo"; } buildCounterThread--; @@ -1315,7 +1315,7 @@ if (buildCounterThread < 3) { unittest.expect(o.historyId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1860(o.messages); + checkUnnamed2367(o.messages); unittest.expect(o.snippet, unittest.equals('foo')); } buildCounterThread--; @@ -1354,14 +1354,14 @@ buildCounterVacationSettings--; } -buildUnnamed1861() { +buildUnnamed2368() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1861(core.List<core.String> o) { +checkUnnamed2368(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1373,7 +1373,7 @@ buildCounterWatchRequest++; if (buildCounterWatchRequest < 3) { o.labelFilterAction = "foo"; - o.labelIds = buildUnnamed1861(); + o.labelIds = buildUnnamed2368(); o.topicName = "foo"; } buildCounterWatchRequest--; @@ -1384,7 +1384,7 @@ buildCounterWatchRequest++; if (buildCounterWatchRequest < 3) { unittest.expect(o.labelFilterAction, unittest.equals('foo')); - checkUnnamed1861(o.labelIds); + checkUnnamed2368(o.labelIds); unittest.expect(o.topicName, unittest.equals('foo')); } buildCounterWatchRequest--; @@ -1411,66 +1411,66 @@ buildCounterWatchResponse--; } -buildUnnamed1862() { +buildUnnamed2369() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1862(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')); } -buildUnnamed1863() { +buildUnnamed2370() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1863(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')); } -buildUnnamed1864() { +buildUnnamed2371() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1864(core.List<core.String> o) { +checkUnnamed2371(core.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() { +buildUnnamed2372() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1865(core.List<core.String> o) { +checkUnnamed2372(core.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() { +buildUnnamed2373() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1866(core.List<core.String> o) { +checkUnnamed2373(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2271,7 +2271,7 @@ var mock = new HttpServerMock(); api.UsersHistoryResourceApi res = new api.GmailApi(mock).users.history; var arg_userId = "foo"; - var arg_historyTypes = buildUnnamed1862(); + var arg_historyTypes = buildUnnamed2369(); var arg_labelId = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; @@ -2785,7 +2785,7 @@ var arg_userId = "foo"; var arg_id = "foo"; var arg_format = "foo"; - var arg_metadataHeaders = buildUnnamed1863(); + var arg_metadataHeaders = buildUnnamed2370(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2974,7 +2974,7 @@ api.UsersMessagesResourceApi res = new api.GmailApi(mock).users.messages; var arg_userId = "foo"; var arg_includeSpamTrash = true; - var arg_labelIds = buildUnnamed1864(); + var arg_labelIds = buildUnnamed2371(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_q = "foo"; @@ -4736,7 +4736,7 @@ var arg_userId = "foo"; var arg_id = "foo"; var arg_format = "foo"; - var arg_metadataHeaders = buildUnnamed1865(); + var arg_metadataHeaders = buildUnnamed2372(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4791,7 +4791,7 @@ api.UsersThreadsResourceApi res = new api.GmailApi(mock).users.threads; var arg_userId = "foo"; var arg_includeSpamTrash = true; - var arg_labelIds = buildUnnamed1866(); + var arg_labelIds = buildUnnamed2373(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_q = "foo";
diff --git a/generated/googleapis/test/iam/v1_test.dart b/generated/googleapis/test/iam/v1_test.dart index 3febf1e..37428ba 100644 --- a/generated/googleapis/test/iam/v1_test.dart +++ b/generated/googleapis/test/iam/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed110() { +buildUnnamed3276() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed110(core.List<api.AuditLogConfig> o) { +checkUnnamed3276(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -68,7 +68,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed110(); + o.auditLogConfigs = buildUnnamed3276(); o.service = "foo"; } buildCounterAuditConfig--; @@ -78,7 +78,7 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed110(o.auditLogConfigs); + checkUnnamed3276(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; @@ -103,14 +103,14 @@ buildCounterAuditData--; } -buildUnnamed111() { +buildUnnamed3277() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed111(core.List<core.String> 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')); @@ -121,7 +121,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed111(); + o.exemptedMembers = buildUnnamed3277(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -131,7 +131,7 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed111(o.exemptedMembers); + checkUnnamed3277(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; @@ -156,14 +156,14 @@ buildCounterAuditableService--; } -buildUnnamed112() { +buildUnnamed3278() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed112(core.List<core.String> 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')); @@ -174,7 +174,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed112(); + o.members = buildUnnamed3278(); o.role = "foo"; } buildCounterBinding--; @@ -184,7 +184,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed112(o.members); + checkUnnamed3278(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -291,14 +291,14 @@ buildCounterEmpty--; } -buildUnnamed113() { +buildUnnamed3279() { var o = new core.List<api.Role>(); o.add(buildRole()); o.add(buildRole()); return o; } -checkUnnamed113(core.List<api.Role> o) { +checkUnnamed3279(core.List<api.Role> o) { unittest.expect(o, unittest.hasLength(2)); checkRole(o[0]); checkRole(o[1]); @@ -310,7 +310,7 @@ buildCounterListRolesResponse++; if (buildCounterListRolesResponse < 3) { o.nextPageToken = "foo"; - o.roles = buildUnnamed113(); + o.roles = buildUnnamed3279(); } buildCounterListRolesResponse--; return o; @@ -320,19 +320,19 @@ buildCounterListRolesResponse++; if (buildCounterListRolesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed113(o.roles); + checkUnnamed3279(o.roles); } buildCounterListRolesResponse--; } -buildUnnamed114() { +buildUnnamed3280() { var o = new core.List<api.ServiceAccountKey>(); o.add(buildServiceAccountKey()); o.add(buildServiceAccountKey()); return o; } -checkUnnamed114(core.List<api.ServiceAccountKey> o) { +checkUnnamed3280(core.List<api.ServiceAccountKey> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccountKey(o[0]); checkServiceAccountKey(o[1]); @@ -343,7 +343,7 @@ var o = new api.ListServiceAccountKeysResponse(); buildCounterListServiceAccountKeysResponse++; if (buildCounterListServiceAccountKeysResponse < 3) { - o.keys = buildUnnamed114(); + o.keys = buildUnnamed3280(); } buildCounterListServiceAccountKeysResponse--; return o; @@ -352,19 +352,19 @@ checkListServiceAccountKeysResponse(api.ListServiceAccountKeysResponse o) { buildCounterListServiceAccountKeysResponse++; if (buildCounterListServiceAccountKeysResponse < 3) { - checkUnnamed114(o.keys); + checkUnnamed3280(o.keys); } buildCounterListServiceAccountKeysResponse--; } -buildUnnamed115() { +buildUnnamed3281() { var o = new core.List<api.ServiceAccount>(); o.add(buildServiceAccount()); o.add(buildServiceAccount()); return o; } -checkUnnamed115(core.List<api.ServiceAccount> o) { +checkUnnamed3281(core.List<api.ServiceAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -375,7 +375,7 @@ var o = new api.ListServiceAccountsResponse(); buildCounterListServiceAccountsResponse++; if (buildCounterListServiceAccountsResponse < 3) { - o.accounts = buildUnnamed115(); + o.accounts = buildUnnamed3281(); o.nextPageToken = "foo"; } buildCounterListServiceAccountsResponse--; @@ -385,7 +385,7 @@ checkListServiceAccountsResponse(api.ListServiceAccountsResponse o) { buildCounterListServiceAccountsResponse++; if (buildCounterListServiceAccountsResponse < 3) { - checkUnnamed115(o.accounts); + checkUnnamed3281(o.accounts); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListServiceAccountsResponse--; @@ -422,27 +422,27 @@ buildCounterPermission--; } -buildUnnamed116() { +buildUnnamed3282() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed116(core.List<api.AuditConfig> o) { +checkUnnamed3282(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed117() { +buildUnnamed3283() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed117(core.List<api.Binding> o) { +checkUnnamed3283(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -453,8 +453,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed116(); - o.bindings = buildUnnamed117(); + o.auditConfigs = buildUnnamed3282(); + o.bindings = buildUnnamed3283(); o.etag = "foo"; o.version = 42; } @@ -465,22 +465,22 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed116(o.auditConfigs); - checkUnnamed117(o.bindings); + checkUnnamed3282(o.auditConfigs); + checkUnnamed3283(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed118() { +buildUnnamed3284() { var o = new core.List<api.BindingDelta>(); o.add(buildBindingDelta()); o.add(buildBindingDelta()); return o; } -checkUnnamed118(core.List<api.BindingDelta> o) { +checkUnnamed3284(core.List<api.BindingDelta> o) { unittest.expect(o, unittest.hasLength(2)); checkBindingDelta(o[0]); checkBindingDelta(o[1]); @@ -491,7 +491,7 @@ var o = new api.PolicyDelta(); buildCounterPolicyDelta++; if (buildCounterPolicyDelta < 3) { - o.bindingDeltas = buildUnnamed118(); + o.bindingDeltas = buildUnnamed3284(); } buildCounterPolicyDelta--; return o; @@ -500,7 +500,7 @@ checkPolicyDelta(api.PolicyDelta o) { buildCounterPolicyDelta++; if (buildCounterPolicyDelta < 3) { - checkUnnamed118(o.bindingDeltas); + checkUnnamed3284(o.bindingDeltas); } buildCounterPolicyDelta--; } @@ -524,14 +524,14 @@ buildCounterQueryAuditableServicesRequest--; } -buildUnnamed119() { +buildUnnamed3285() { var o = new core.List<api.AuditableService>(); o.add(buildAuditableService()); o.add(buildAuditableService()); return o; } -checkUnnamed119(core.List<api.AuditableService> o) { +checkUnnamed3285(core.List<api.AuditableService> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditableService(o[0]); checkAuditableService(o[1]); @@ -542,7 +542,7 @@ var o = new api.QueryAuditableServicesResponse(); buildCounterQueryAuditableServicesResponse++; if (buildCounterQueryAuditableServicesResponse < 3) { - o.services = buildUnnamed119(); + o.services = buildUnnamed3285(); } buildCounterQueryAuditableServicesResponse--; return o; @@ -551,7 +551,7 @@ checkQueryAuditableServicesResponse(api.QueryAuditableServicesResponse o) { buildCounterQueryAuditableServicesResponse++; if (buildCounterQueryAuditableServicesResponse < 3) { - checkUnnamed119(o.services); + checkUnnamed3285(o.services); } buildCounterQueryAuditableServicesResponse--; } @@ -581,14 +581,14 @@ buildCounterQueryGrantableRolesRequest--; } -buildUnnamed120() { +buildUnnamed3286() { var o = new core.List<api.Role>(); o.add(buildRole()); o.add(buildRole()); return o; } -checkUnnamed120(core.List<api.Role> o) { +checkUnnamed3286(core.List<api.Role> o) { unittest.expect(o, unittest.hasLength(2)); checkRole(o[0]); checkRole(o[1]); @@ -600,7 +600,7 @@ buildCounterQueryGrantableRolesResponse++; if (buildCounterQueryGrantableRolesResponse < 3) { o.nextPageToken = "foo"; - o.roles = buildUnnamed120(); + o.roles = buildUnnamed3286(); } buildCounterQueryGrantableRolesResponse--; return o; @@ -610,7 +610,7 @@ buildCounterQueryGrantableRolesResponse++; if (buildCounterQueryGrantableRolesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed120(o.roles); + checkUnnamed3286(o.roles); } buildCounterQueryGrantableRolesResponse--; } @@ -638,14 +638,14 @@ buildCounterQueryTestablePermissionsRequest--; } -buildUnnamed121() { +buildUnnamed3287() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed121(core.List<api.Permission> o) { +checkUnnamed3287(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -657,7 +657,7 @@ buildCounterQueryTestablePermissionsResponse++; if (buildCounterQueryTestablePermissionsResponse < 3) { o.nextPageToken = "foo"; - o.permissions = buildUnnamed121(); + o.permissions = buildUnnamed3287(); } buildCounterQueryTestablePermissionsResponse--; return o; @@ -667,19 +667,19 @@ buildCounterQueryTestablePermissionsResponse++; if (buildCounterQueryTestablePermissionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed121(o.permissions); + checkUnnamed3287(o.permissions); } buildCounterQueryTestablePermissionsResponse--; } -buildUnnamed122() { +buildUnnamed3288() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed122(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')); @@ -693,7 +693,7 @@ o.deleted = true; o.description = "foo"; o.etag = "foo"; - o.includedPermissions = buildUnnamed122(); + o.includedPermissions = buildUnnamed3288(); o.name = "foo"; o.stage = "foo"; o.title = "foo"; @@ -708,7 +708,7 @@ unittest.expect(o.deleted, unittest.isTrue); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed122(o.includedPermissions); + checkUnnamed3288(o.includedPermissions); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.stage, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); @@ -879,14 +879,14 @@ buildCounterSignJwtResponse--; } -buildUnnamed123() { +buildUnnamed3289() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed123(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')); @@ -897,7 +897,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed123(); + o.permissions = buildUnnamed3289(); } buildCounterTestIamPermissionsRequest--; return o; @@ -906,19 +906,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed123(o.permissions); + checkUnnamed3289(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed124() { +buildUnnamed3290() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed124(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')); @@ -929,7 +929,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed124(); + o.permissions = buildUnnamed3290(); } buildCounterTestIamPermissionsResponse--; return o; @@ -938,7 +938,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed124(o.permissions); + checkUnnamed3290(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -962,14 +962,14 @@ buildCounterUndeleteRoleRequest--; } -buildUnnamed125() { +buildUnnamed3291() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed125(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')); @@ -1463,10 +1463,10 @@ api.OrganizationsRolesResourceApi res = new api.IamApi(mock).organizations.roles; var arg_parent = "foo"; - var arg_showDeleted = true; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_view = "foo"; + var arg_showDeleted = true; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1499,13 +1499,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect( queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); - unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1516,10 +1516,10 @@ }), true); res .list(arg_parent, - showDeleted: arg_showDeleted, - pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view, + showDeleted: arg_showDeleted, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListRolesResponse(response); @@ -1862,10 +1862,10 @@ var mock = new HttpServerMock(); api.ProjectsRolesResourceApi res = new api.IamApi(mock).projects.roles; var arg_parent = "foo"; - var arg_showDeleted = true; var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_view = "foo"; + var arg_showDeleted = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1899,12 +1899,12 @@ } } unittest.expect( - queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); - unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); + unittest.expect( + queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1915,10 +1915,10 @@ }), true); res .list(arg_parent, - showDeleted: arg_showDeleted, pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view, + showDeleted: arg_showDeleted, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListRolesResponse(response); @@ -2764,7 +2764,7 @@ api.ProjectsServiceAccountsKeysResourceApi res = new api.IamApi(mock).projects.serviceAccounts.keys; var arg_name = "foo"; - var arg_keyTypes = buildUnnamed125(); + var arg_keyTypes = buildUnnamed3291(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path;
diff --git a/generated/googleapis/test/identitytoolkit/v3_test.dart b/generated/googleapis/test/identitytoolkit/v3_test.dart index 2261222..e0d42c9 100644 --- a/generated/googleapis/test/identitytoolkit/v3_test.dart +++ b/generated/googleapis/test/identitytoolkit/v3_test.dart
@@ -50,27 +50,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed89() { +buildUnnamed154() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed89(core.List<core.String> o) { +checkUnnamed154(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed90() { +buildUnnamed155() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed90(core.List<core.String> o) { +checkUnnamed155(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -81,7 +81,7 @@ var o = new api.CreateAuthUriResponse(); buildCounterCreateAuthUriResponse++; if (buildCounterCreateAuthUriResponse < 3) { - o.allProviders = buildUnnamed89(); + o.allProviders = buildUnnamed154(); o.authUri = "foo"; o.captchaRequired = true; o.forExistingProvider = true; @@ -89,7 +89,7 @@ o.providerId = "foo"; o.registered = true; o.sessionId = "foo"; - o.signinMethods = buildUnnamed90(); + o.signinMethods = buildUnnamed155(); } buildCounterCreateAuthUriResponse--; return o; @@ -98,7 +98,7 @@ checkCreateAuthUriResponse(api.CreateAuthUriResponse o) { buildCounterCreateAuthUriResponse++; if (buildCounterCreateAuthUriResponse < 3) { - checkUnnamed89(o.allProviders); + checkUnnamed154(o.allProviders); unittest.expect(o.authUri, unittest.equals('foo')); unittest.expect(o.captchaRequired, unittest.isTrue); unittest.expect(o.forExistingProvider, unittest.isTrue); @@ -106,7 +106,7 @@ unittest.expect(o.providerId, unittest.equals('foo')); unittest.expect(o.registered, unittest.isTrue); unittest.expect(o.sessionId, unittest.equals('foo')); - checkUnnamed90(o.signinMethods); + checkUnnamed155(o.signinMethods); } buildCounterCreateAuthUriResponse--; } @@ -130,14 +130,14 @@ buildCounterDeleteAccountResponse--; } -buildUnnamed91() { +buildUnnamed156() { var o = new core.List<api.UserInfo>(); o.add(buildUserInfo()); o.add(buildUserInfo()); return o; } -checkUnnamed91(core.List<api.UserInfo> o) { +checkUnnamed156(core.List<api.UserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfo(o[0]); checkUserInfo(o[1]); @@ -150,7 +150,7 @@ if (buildCounterDownloadAccountResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.users = buildUnnamed91(); + o.users = buildUnnamed156(); } buildCounterDownloadAccountResponse--; return o; @@ -161,7 +161,7 @@ if (buildCounterDownloadAccountResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed91(o.users); + checkUnnamed156(o.users); } buildCounterDownloadAccountResponse--; } @@ -226,14 +226,14 @@ buildCounterEmailTemplate--; } -buildUnnamed92() { +buildUnnamed157() { var o = new core.List<api.UserInfo>(); o.add(buildUserInfo()); o.add(buildUserInfo()); return o; } -checkUnnamed92(core.List<api.UserInfo> o) { +checkUnnamed157(core.List<api.UserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfo(o[0]); checkUserInfo(o[1]); @@ -245,7 +245,7 @@ buildCounterGetAccountInfoResponse++; if (buildCounterGetAccountInfoResponse < 3) { o.kind = "foo"; - o.users = buildUnnamed92(); + o.users = buildUnnamed157(); } buildCounterGetAccountInfoResponse--; return o; @@ -255,7 +255,7 @@ buildCounterGetAccountInfoResponse++; if (buildCounterGetAccountInfoResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed92(o.users); + checkUnnamed157(o.users); } buildCounterGetAccountInfoResponse--; } @@ -306,14 +306,14 @@ buildCounterGetRecaptchaParamResponse--; } -buildUnnamed93() { +buildUnnamed158() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed93(core.Map<core.String, core.String> o) { +checkUnnamed158(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')); @@ -329,7 +329,7 @@ o.clientId = "foo"; o.context = "foo"; o.continueUri = "foo"; - o.customParameter = buildUnnamed93(); + o.customParameter = buildUnnamed158(); o.hostedDomain = "foo"; o.identifier = "foo"; o.oauthConsumerKey = "foo"; @@ -338,6 +338,8 @@ o.otaApp = "foo"; o.providerId = "foo"; o.sessionId = "foo"; + o.tenantId = "foo"; + o.tenantProjectNumber = "foo"; } buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest--; return o; @@ -352,7 +354,7 @@ unittest.expect(o.clientId, unittest.equals('foo')); unittest.expect(o.context, unittest.equals('foo')); unittest.expect(o.continueUri, unittest.equals('foo')); - checkUnnamed93(o.customParameter); + checkUnnamed158(o.customParameter); unittest.expect(o.hostedDomain, unittest.equals('foo')); unittest.expect(o.identifier, unittest.equals('foo')); unittest.expect(o.oauthConsumerKey, unittest.equals('foo')); @@ -361,6 +363,8 @@ unittest.expect(o.otaApp, unittest.equals('foo')); unittest.expect(o.providerId, unittest.equals('foo')); unittest.expect(o.sessionId, unittest.equals('foo')); + unittest.expect(o.tenantId, unittest.equals('foo')); + unittest.expect(o.tenantProjectNumber, unittest.equals('foo')); } buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest--; } @@ -439,40 +443,40 @@ buildCounterIdentitytoolkitRelyingpartyEmailLinkSigninRequest--; } -buildUnnamed94() { +buildUnnamed159() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed94(core.List<core.String> o) { +checkUnnamed159(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed95() { +buildUnnamed160() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed95(core.List<core.String> o) { +checkUnnamed160(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed96() { +buildUnnamed161() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed96(core.List<core.String> o) { +checkUnnamed161(core.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,10 +488,10 @@ buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { o.delegatedProjectNumber = "foo"; - o.email = buildUnnamed94(); + o.email = buildUnnamed159(); o.idToken = "foo"; - o.localId = buildUnnamed95(); - o.phoneNumber = buildUnnamed96(); + o.localId = buildUnnamed160(); + o.phoneNumber = buildUnnamed161(); } buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; return o; @@ -498,35 +502,35 @@ buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); - checkUnnamed94(o.email); + checkUnnamed159(o.email); unittest.expect(o.idToken, unittest.equals('foo')); - checkUnnamed95(o.localId); - checkUnnamed96(o.phoneNumber); + checkUnnamed160(o.localId); + checkUnnamed161(o.phoneNumber); } buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; } -buildUnnamed97() { +buildUnnamed162() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed97(core.List<core.String> o) { +checkUnnamed162(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed98() { +buildUnnamed163() { var o = new core.List<api.IdpConfig>(); o.add(buildIdpConfig()); o.add(buildIdpConfig()); return o; } -checkUnnamed98(core.List<api.IdpConfig> o) { +checkUnnamed163(core.List<api.IdpConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkIdpConfig(o[0]); checkIdpConfig(o[1]); @@ -539,11 +543,11 @@ if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { o.allowPasswordUser = true; o.apiKey = "foo"; - o.authorizedDomains = buildUnnamed97(); + o.authorizedDomains = buildUnnamed162(); o.changeEmailTemplate = buildEmailTemplate(); o.dynamicLinksDomain = "foo"; o.enableAnonymousUser = true; - o.idpConfig = buildUnnamed98(); + o.idpConfig = buildUnnamed163(); o.legacyResetPasswordTemplate = buildEmailTemplate(); o.projectId = "foo"; o.resetPasswordTemplate = buildEmailTemplate(); @@ -560,11 +564,11 @@ if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { unittest.expect(o.allowPasswordUser, unittest.isTrue); unittest.expect(o.apiKey, unittest.equals('foo')); - checkUnnamed97(o.authorizedDomains); + checkUnnamed162(o.authorizedDomains); checkEmailTemplate(o.changeEmailTemplate); unittest.expect(o.dynamicLinksDomain, unittest.equals('foo')); unittest.expect(o.enableAnonymousUser, unittest.isTrue); - checkUnnamed98(o.idpConfig); + checkUnnamed163(o.idpConfig); checkEmailTemplate(o.legacyResetPasswordTemplate); unittest.expect(o.projectId, unittest.equals('foo')); checkEmailTemplate(o.resetPasswordTemplate); @@ -661,40 +665,40 @@ buildCounterIdentitytoolkitRelyingpartySendVerificationCodeResponse--; } -buildUnnamed99() { +buildUnnamed164() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed99(core.List<core.String> o) { +checkUnnamed164(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed100() { +buildUnnamed165() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed100(core.List<core.String> o) { +checkUnnamed165(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed101() { +buildUnnamed166() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed101(core.List<core.String> o) { +checkUnnamed166(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -710,8 +714,8 @@ o.createdAt = "foo"; o.customAttributes = "foo"; o.delegatedProjectNumber = "foo"; - o.deleteAttribute = buildUnnamed99(); - o.deleteProvider = buildUnnamed100(); + o.deleteAttribute = buildUnnamed164(); + o.deleteProvider = buildUnnamed165(); o.disableUser = true; o.displayName = "foo"; o.email = "foo"; @@ -724,7 +728,7 @@ o.password = "foo"; o.phoneNumber = "foo"; o.photoUrl = "foo"; - o.provider = buildUnnamed101(); + o.provider = buildUnnamed166(); o.returnSecureToken = true; o.upgradeToFederatedLogin = true; o.validSince = "foo"; @@ -742,8 +746,8 @@ unittest.expect(o.createdAt, unittest.equals('foo')); unittest.expect(o.customAttributes, unittest.equals('foo')); unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); - checkUnnamed99(o.deleteAttribute); - checkUnnamed100(o.deleteProvider); + checkUnnamed164(o.deleteAttribute); + checkUnnamed165(o.deleteProvider); unittest.expect(o.disableUser, unittest.isTrue); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.email, unittest.equals('foo')); @@ -756,7 +760,7 @@ unittest.expect(o.password, unittest.equals('foo')); unittest.expect(o.phoneNumber, unittest.equals('foo')); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed101(o.provider); + checkUnnamed166(o.provider); unittest.expect(o.returnSecureToken, unittest.isTrue); unittest.expect(o.upgradeToFederatedLogin, unittest.isTrue); unittest.expect(o.validSince, unittest.equals('foo')); @@ -764,27 +768,27 @@ buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--; } -buildUnnamed102() { +buildUnnamed167() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed102(core.List<core.String> o) { +checkUnnamed167(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed103() { +buildUnnamed168() { var o = new core.List<api.IdpConfig>(); o.add(buildIdpConfig()); o.add(buildIdpConfig()); return o; } -checkUnnamed103(core.List<api.IdpConfig> o) { +checkUnnamed168(core.List<api.IdpConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkIdpConfig(o[0]); checkIdpConfig(o[1]); @@ -797,11 +801,11 @@ if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { o.allowPasswordUser = true; o.apiKey = "foo"; - o.authorizedDomains = buildUnnamed102(); + o.authorizedDomains = buildUnnamed167(); o.changeEmailTemplate = buildEmailTemplate(); o.delegatedProjectNumber = "foo"; o.enableAnonymousUser = true; - o.idpConfig = buildUnnamed103(); + o.idpConfig = buildUnnamed168(); o.legacyResetPasswordTemplate = buildEmailTemplate(); o.resetPasswordTemplate = buildEmailTemplate(); o.useEmailSending = true; @@ -817,11 +821,11 @@ if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { unittest.expect(o.allowPasswordUser, unittest.isTrue); unittest.expect(o.apiKey, unittest.equals('foo')); - checkUnnamed102(o.authorizedDomains); + checkUnnamed167(o.authorizedDomains); checkEmailTemplate(o.changeEmailTemplate); unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); unittest.expect(o.enableAnonymousUser, unittest.isTrue); - checkUnnamed103(o.idpConfig); + checkUnnamed168(o.idpConfig); checkEmailTemplate(o.legacyResetPasswordTemplate); checkEmailTemplate(o.resetPasswordTemplate); unittest.expect(o.useEmailSending, unittest.isTrue); @@ -909,6 +913,8 @@ o.password = "foo"; o.phoneNumber = "foo"; o.photoUrl = "foo"; + o.tenantId = "foo"; + o.tenantProjectNumber = "foo"; } buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest--; return o; @@ -930,18 +936,20 @@ unittest.expect(o.password, unittest.equals('foo')); unittest.expect(o.phoneNumber, unittest.equals('foo')); unittest.expect(o.photoUrl, unittest.equals('foo')); + unittest.expect(o.tenantId, unittest.equals('foo')); + unittest.expect(o.tenantProjectNumber, unittest.equals('foo')); } buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest--; } -buildUnnamed104() { +buildUnnamed169() { var o = new core.List<api.UserInfo>(); o.add(buildUserInfo()); o.add(buildUserInfo()); return o; } -checkUnnamed104(core.List<api.UserInfo> o) { +checkUnnamed169(core.List<api.UserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfo(o[0]); checkUserInfo(o[1]); @@ -965,7 +973,7 @@ o.sanityCheck = true; o.signerKey = "foo"; o.targetProjectId = "foo"; - o.users = buildUnnamed104(); + o.users = buildUnnamed169(); } buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; return o; @@ -988,7 +996,7 @@ unittest.expect(o.sanityCheck, unittest.isTrue); unittest.expect(o.signerKey, unittest.equals('foo')); unittest.expect(o.targetProjectId, unittest.equals('foo')); - checkUnnamed104(o.users); + checkUnnamed169(o.users); } buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; } @@ -1009,6 +1017,8 @@ o.returnRefreshToken = true; o.returnSecureToken = true; o.sessionId = "foo"; + o.tenantId = "foo"; + o.tenantProjectNumber = "foo"; } buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest--; return o; @@ -1029,6 +1039,8 @@ unittest.expect(o.returnRefreshToken, unittest.isTrue); unittest.expect(o.returnSecureToken, unittest.isTrue); unittest.expect(o.sessionId, unittest.equals('foo')); + unittest.expect(o.tenantId, unittest.equals('foo')); + unittest.expect(o.tenantProjectNumber, unittest.equals('foo')); } buildCounterIdentitytoolkitRelyingpartyVerifyAssertionRequest--; } @@ -1073,6 +1085,8 @@ o.password = "foo"; o.pendingIdToken = "foo"; o.returnSecureToken = true; + o.tenantId = "foo"; + o.tenantProjectNumber = "foo"; } buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest--; return o; @@ -1091,6 +1105,8 @@ unittest.expect(o.password, unittest.equals('foo')); unittest.expect(o.pendingIdToken, unittest.equals('foo')); unittest.expect(o.returnSecureToken, unittest.isTrue); + unittest.expect(o.tenantId, unittest.equals('foo')); + unittest.expect(o.tenantProjectNumber, unittest.equals('foo')); } buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest--; } @@ -1165,14 +1181,14 @@ buildCounterIdentitytoolkitRelyingpartyVerifyPhoneNumberResponse--; } -buildUnnamed105() { +buildUnnamed170() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed105(core.List<core.String> o) { +checkUnnamed170(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1188,7 +1204,7 @@ o.experimentPercent = 42; o.provider = "foo"; o.secret = "foo"; - o.whitelistedAudiences = buildUnnamed105(); + o.whitelistedAudiences = buildUnnamed170(); } buildCounterIdpConfig--; return o; @@ -1202,7 +1218,7 @@ unittest.expect(o.experimentPercent, unittest.equals(42)); unittest.expect(o.provider, unittest.equals('foo')); unittest.expect(o.secret, unittest.equals('foo')); - checkUnnamed105(o.whitelistedAudiences); + checkUnnamed170(o.whitelistedAudiences); } buildCounterIdpConfig--; } @@ -1305,14 +1321,14 @@ buildCounterSetAccountInfoResponseProviderUserInfo--; } -buildUnnamed106() { +buildUnnamed171() { var o = new core.List<api.SetAccountInfoResponseProviderUserInfo>(); o.add(buildSetAccountInfoResponseProviderUserInfo()); o.add(buildSetAccountInfoResponseProviderUserInfo()); return o; } -checkUnnamed106(core.List<api.SetAccountInfoResponseProviderUserInfo> o) { +checkUnnamed171(core.List<api.SetAccountInfoResponseProviderUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSetAccountInfoResponseProviderUserInfo(o[0]); checkSetAccountInfoResponseProviderUserInfo(o[1]); @@ -1333,7 +1349,7 @@ o.newEmail = "foo"; o.passwordHash = "foo"; o.photoUrl = "foo"; - o.providerUserInfo = buildUnnamed106(); + o.providerUserInfo = buildUnnamed171(); o.refreshToken = "foo"; } buildCounterSetAccountInfoResponse--; @@ -1353,7 +1369,7 @@ unittest.expect(o.newEmail, unittest.equals('foo')); unittest.expect(o.passwordHash, unittest.equals('foo')); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed106(o.providerUserInfo); + checkUnnamed171(o.providerUserInfo); unittest.expect(o.refreshToken, unittest.equals('foo')); } buildCounterSetAccountInfoResponse--; @@ -1411,14 +1427,14 @@ buildCounterUploadAccountResponseError--; } -buildUnnamed107() { +buildUnnamed172() { var o = new core.List<api.UploadAccountResponseError>(); o.add(buildUploadAccountResponseError()); o.add(buildUploadAccountResponseError()); return o; } -checkUnnamed107(core.List<api.UploadAccountResponseError> o) { +checkUnnamed172(core.List<api.UploadAccountResponseError> o) { unittest.expect(o, unittest.hasLength(2)); checkUploadAccountResponseError(o[0]); checkUploadAccountResponseError(o[1]); @@ -1429,7 +1445,7 @@ var o = new api.UploadAccountResponse(); buildCounterUploadAccountResponse++; if (buildCounterUploadAccountResponse < 3) { - o.error = buildUnnamed107(); + o.error = buildUnnamed172(); o.kind = "foo"; } buildCounterUploadAccountResponse--; @@ -1439,7 +1455,7 @@ checkUploadAccountResponse(api.UploadAccountResponse o) { buildCounterUploadAccountResponse++; if (buildCounterUploadAccountResponse < 3) { - checkUnnamed107(o.error); + checkUnnamed172(o.error); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUploadAccountResponse--; @@ -1478,14 +1494,14 @@ buildCounterUserInfoProviderUserInfo--; } -buildUnnamed108() { +buildUnnamed173() { var o = new core.List<api.UserInfoProviderUserInfo>(); o.add(buildUserInfoProviderUserInfo()); o.add(buildUserInfoProviderUserInfo()); return o; } -checkUnnamed108(core.List<api.UserInfoProviderUserInfo> o) { +checkUnnamed173(core.List<api.UserInfoProviderUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfoProviderUserInfo(o[0]); checkUserInfoProviderUserInfo(o[1]); @@ -1509,7 +1525,7 @@ o.passwordUpdatedAt = 42.0; o.phoneNumber = "foo"; o.photoUrl = "foo"; - o.providerUserInfo = buildUnnamed108(); + o.providerUserInfo = buildUnnamed173(); o.rawPassword = "foo"; o.salt = "foo"; o.screenName = "foo"; @@ -1536,7 +1552,7 @@ unittest.expect(o.passwordUpdatedAt, unittest.equals(42.0)); unittest.expect(o.phoneNumber, unittest.equals('foo')); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed108(o.providerUserInfo); + checkUnnamed173(o.providerUserInfo); unittest.expect(o.rawPassword, unittest.equals('foo')); unittest.expect(o.salt, unittest.equals('foo')); unittest.expect(o.screenName, unittest.equals('foo')); @@ -1546,14 +1562,14 @@ buildCounterUserInfo--; } -buildUnnamed109() { +buildUnnamed174() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed109(core.List<core.String> 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')); @@ -1602,7 +1618,7 @@ o.refreshToken = "foo"; o.screenName = "foo"; o.timeZone = "foo"; - o.verifiedProvider = buildUnnamed109(); + o.verifiedProvider = buildUnnamed174(); } buildCounterVerifyAssertionResponse--; return o; @@ -1649,7 +1665,7 @@ unittest.expect(o.refreshToken, unittest.equals('foo')); unittest.expect(o.screenName, unittest.equals('foo')); unittest.expect(o.timeZone, unittest.equals('foo')); - checkUnnamed109(o.verifiedProvider); + checkUnnamed174(o.verifiedProvider); } buildCounterVerifyAssertionResponse--; }
diff --git a/generated/googleapis/test/kgsearch/v1_test.dart b/generated/googleapis/test/kgsearch/v1_test.dart index 53f20f8..bfa8125 100644 --- a/generated/googleapis/test/kgsearch/v1_test.dart +++ b/generated/googleapis/test/kgsearch/v1_test.dart
@@ -50,7 +50,7 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3559() { +buildUnnamed39() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -65,7 +65,7 @@ return o; } -checkUnnamed3559(core.List<core.Object> o) { +checkUnnamed39(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -94,7 +94,7 @@ 'bool': true, 'string': 'foo' }; - o.itemListElement = buildUnnamed3559(); + o.itemListElement = buildUnnamed39(); } buildCounterSearchResponse--; return o; @@ -113,45 +113,45 @@ unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); - checkUnnamed3559(o.itemListElement); + checkUnnamed39(o.itemListElement); } buildCounterSearchResponse--; } -buildUnnamed3560() { +buildUnnamed40() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3560(core.List<core.String> o) { +checkUnnamed40(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3561() { +buildUnnamed41() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3561(core.List<core.String> o) { +checkUnnamed41(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3562() { +buildUnnamed42() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3562(core.List<core.String> o) { +checkUnnamed42(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -170,13 +170,13 @@ unittest.test("method--search", () { var mock = new HttpServerMock(); api.EntitiesResourceApi res = new api.KgsearchApi(mock).entities; + var arg_types = buildUnnamed40(); var arg_indent = true; - var arg_languages = buildUnnamed3560(); - var arg_ids = buildUnnamed3561(); + var arg_languages = buildUnnamed41(); + var arg_ids = buildUnnamed42(); var arg_limit = 42; var arg_prefix = true; var arg_query = "foo"; - var arg_types = buildUnnamed3562(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -208,6 +208,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["types"], unittest.equals(arg_types)); unittest.expect( queryMap["indent"].first, unittest.equals("$arg_indent")); unittest.expect(queryMap["languages"], unittest.equals(arg_languages)); @@ -217,7 +218,6 @@ unittest.expect( queryMap["prefix"].first, unittest.equals("$arg_prefix")); unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); - unittest.expect(queryMap["types"], unittest.equals(arg_types)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -228,13 +228,13 @@ }), true); res .search( + types: arg_types, indent: arg_indent, languages: arg_languages, ids: arg_ids, limit: arg_limit, prefix: arg_prefix, query: arg_query, - types: arg_types, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSearchResponse(response);
diff --git a/generated/googleapis/test/language/v1_test.dart b/generated/googleapis/test/language/v1_test.dart index 987e7d4..e9140a6 100644 --- a/generated/googleapis/test/language/v1_test.dart +++ b/generated/googleapis/test/language/v1_test.dart
@@ -71,14 +71,14 @@ buildCounterAnalyzeEntitiesRequest--; } -buildUnnamed864() { +buildUnnamed3442() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed864(core.List<api.Entity> o) { +checkUnnamed3442(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); @@ -89,7 +89,7 @@ var o = new api.AnalyzeEntitiesResponse(); buildCounterAnalyzeEntitiesResponse++; if (buildCounterAnalyzeEntitiesResponse < 3) { - o.entities = buildUnnamed864(); + o.entities = buildUnnamed3442(); o.language = "foo"; } buildCounterAnalyzeEntitiesResponse--; @@ -99,7 +99,7 @@ checkAnalyzeEntitiesResponse(api.AnalyzeEntitiesResponse o) { buildCounterAnalyzeEntitiesResponse++; if (buildCounterAnalyzeEntitiesResponse < 3) { - checkUnnamed864(o.entities); + checkUnnamed3442(o.entities); unittest.expect(o.language, unittest.equals('foo')); } buildCounterAnalyzeEntitiesResponse--; @@ -126,14 +126,14 @@ buildCounterAnalyzeEntitySentimentRequest--; } -buildUnnamed865() { +buildUnnamed3443() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed865(core.List<api.Entity> o) { +checkUnnamed3443(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); @@ -144,7 +144,7 @@ var o = new api.AnalyzeEntitySentimentResponse(); buildCounterAnalyzeEntitySentimentResponse++; if (buildCounterAnalyzeEntitySentimentResponse < 3) { - o.entities = buildUnnamed865(); + o.entities = buildUnnamed3443(); o.language = "foo"; } buildCounterAnalyzeEntitySentimentResponse--; @@ -154,7 +154,7 @@ checkAnalyzeEntitySentimentResponse(api.AnalyzeEntitySentimentResponse o) { buildCounterAnalyzeEntitySentimentResponse++; if (buildCounterAnalyzeEntitySentimentResponse < 3) { - checkUnnamed865(o.entities); + checkUnnamed3443(o.entities); unittest.expect(o.language, unittest.equals('foo')); } buildCounterAnalyzeEntitySentimentResponse--; @@ -181,14 +181,14 @@ buildCounterAnalyzeSentimentRequest--; } -buildUnnamed866() { +buildUnnamed3444() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed866(core.List<api.Sentence> o) { +checkUnnamed3444(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); @@ -201,7 +201,7 @@ if (buildCounterAnalyzeSentimentResponse < 3) { o.documentSentiment = buildSentiment(); o.language = "foo"; - o.sentences = buildUnnamed866(); + o.sentences = buildUnnamed3444(); } buildCounterAnalyzeSentimentResponse--; return o; @@ -212,7 +212,7 @@ if (buildCounterAnalyzeSentimentResponse < 3) { checkSentiment(o.documentSentiment); unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed866(o.sentences); + checkUnnamed3444(o.sentences); } buildCounterAnalyzeSentimentResponse--; } @@ -238,27 +238,27 @@ buildCounterAnalyzeSyntaxRequest--; } -buildUnnamed867() { +buildUnnamed3445() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed867(core.List<api.Sentence> o) { +checkUnnamed3445(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); } -buildUnnamed868() { +buildUnnamed3446() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed868(core.List<api.Token> o) { +checkUnnamed3446(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -270,8 +270,8 @@ buildCounterAnalyzeSyntaxResponse++; if (buildCounterAnalyzeSyntaxResponse < 3) { o.language = "foo"; - o.sentences = buildUnnamed867(); - o.tokens = buildUnnamed868(); + o.sentences = buildUnnamed3445(); + o.tokens = buildUnnamed3446(); } buildCounterAnalyzeSyntaxResponse--; return o; @@ -281,8 +281,8 @@ buildCounterAnalyzeSyntaxResponse++; if (buildCounterAnalyzeSyntaxResponse < 3) { unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed867(o.sentences); - checkUnnamed868(o.tokens); + checkUnnamed3445(o.sentences); + checkUnnamed3446(o.tokens); } buildCounterAnalyzeSyntaxResponse--; } @@ -310,53 +310,53 @@ buildCounterAnnotateTextRequest--; } -buildUnnamed869() { +buildUnnamed3447() { var o = new core.List<api.ClassificationCategory>(); o.add(buildClassificationCategory()); o.add(buildClassificationCategory()); return o; } -checkUnnamed869(core.List<api.ClassificationCategory> o) { +checkUnnamed3447(core.List<api.ClassificationCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkClassificationCategory(o[0]); checkClassificationCategory(o[1]); } -buildUnnamed870() { +buildUnnamed3448() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed870(core.List<api.Entity> o) { +checkUnnamed3448(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); } -buildUnnamed871() { +buildUnnamed3449() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed871(core.List<api.Sentence> o) { +checkUnnamed3449(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); } -buildUnnamed872() { +buildUnnamed3450() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed872(core.List<api.Token> o) { +checkUnnamed3450(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -367,12 +367,12 @@ var o = new api.AnnotateTextResponse(); buildCounterAnnotateTextResponse++; if (buildCounterAnnotateTextResponse < 3) { - o.categories = buildUnnamed869(); + o.categories = buildUnnamed3447(); o.documentSentiment = buildSentiment(); - o.entities = buildUnnamed870(); + o.entities = buildUnnamed3448(); o.language = "foo"; - o.sentences = buildUnnamed871(); - o.tokens = buildUnnamed872(); + o.sentences = buildUnnamed3449(); + o.tokens = buildUnnamed3450(); } buildCounterAnnotateTextResponse--; return o; @@ -381,12 +381,12 @@ checkAnnotateTextResponse(api.AnnotateTextResponse o) { buildCounterAnnotateTextResponse++; if (buildCounterAnnotateTextResponse < 3) { - checkUnnamed869(o.categories); + checkUnnamed3447(o.categories); checkSentiment(o.documentSentiment); - checkUnnamed870(o.entities); + checkUnnamed3448(o.entities); unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed871(o.sentences); - checkUnnamed872(o.tokens); + checkUnnamed3449(o.sentences); + checkUnnamed3450(o.tokens); } buildCounterAnnotateTextResponse--; } @@ -431,14 +431,14 @@ buildCounterClassifyTextRequest--; } -buildUnnamed873() { +buildUnnamed3451() { var o = new core.List<api.ClassificationCategory>(); o.add(buildClassificationCategory()); o.add(buildClassificationCategory()); return o; } -checkUnnamed873(core.List<api.ClassificationCategory> o) { +checkUnnamed3451(core.List<api.ClassificationCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkClassificationCategory(o[0]); checkClassificationCategory(o[1]); @@ -449,7 +449,7 @@ var o = new api.ClassifyTextResponse(); buildCounterClassifyTextResponse++; if (buildCounterClassifyTextResponse < 3) { - o.categories = buildUnnamed873(); + o.categories = buildUnnamed3451(); } buildCounterClassifyTextResponse--; return o; @@ -458,7 +458,7 @@ checkClassifyTextResponse(api.ClassifyTextResponse o) { buildCounterClassifyTextResponse++; if (buildCounterClassifyTextResponse < 3) { - checkUnnamed873(o.categories); + checkUnnamed3451(o.categories); } buildCounterClassifyTextResponse--; } @@ -509,27 +509,27 @@ buildCounterDocument--; } -buildUnnamed874() { +buildUnnamed3452() { var o = new core.List<api.EntityMention>(); o.add(buildEntityMention()); o.add(buildEntityMention()); return o; } -checkUnnamed874(core.List<api.EntityMention> o) { +checkUnnamed3452(core.List<api.EntityMention> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityMention(o[0]); checkEntityMention(o[1]); } -buildUnnamed875() { +buildUnnamed3453() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed875(core.Map<core.String, core.String> o) { +checkUnnamed3453(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')); @@ -540,8 +540,8 @@ var o = new api.Entity(); buildCounterEntity++; if (buildCounterEntity < 3) { - o.mentions = buildUnnamed874(); - o.metadata = buildUnnamed875(); + o.mentions = buildUnnamed3452(); + o.metadata = buildUnnamed3453(); o.name = "foo"; o.salience = 42.0; o.sentiment = buildSentiment(); @@ -554,8 +554,8 @@ checkEntity(api.Entity o) { buildCounterEntity++; if (buildCounterEntity < 3) { - checkUnnamed874(o.mentions); - checkUnnamed875(o.metadata); + checkUnnamed3452(o.mentions); + checkUnnamed3453(o.metadata); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.salience, unittest.equals(42.0)); checkSentiment(o.sentiment); @@ -697,7 +697,7 @@ buildCounterSentiment--; } -buildUnnamed876() { +buildUnnamed3454() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -712,7 +712,7 @@ return o; } -checkUnnamed876(core.Map<core.String, core.Object> o) { +checkUnnamed3454(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)); @@ -726,17 +726,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed877() { +buildUnnamed3455() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed876()); - o.add(buildUnnamed876()); + o.add(buildUnnamed3454()); + o.add(buildUnnamed3454()); return o; } -checkUnnamed877(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3455(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed876(o[0]); - checkUnnamed876(o[1]); + checkUnnamed3454(o[0]); + checkUnnamed3454(o[1]); } core.int buildCounterStatus = 0; @@ -745,7 +745,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed877(); + o.details = buildUnnamed3455(); o.message = "foo"; } buildCounterStatus--; @@ -756,7 +756,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed877(o.details); + checkUnnamed3455(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--;
diff --git a/generated/googleapis/test/licensing/v1_test.dart b/generated/googleapis/test/licensing/v1_test.dart index b7bf860..124cc6c 100644 --- a/generated/googleapis/test/licensing/v1_test.dart +++ b/generated/googleapis/test/licensing/v1_test.dart
@@ -102,14 +102,14 @@ buildCounterLicenseAssignmentInsert--; } -buildUnnamed1910() { +buildUnnamed3241() { var o = new core.List<api.LicenseAssignment>(); o.add(buildLicenseAssignment()); o.add(buildLicenseAssignment()); return o; } -checkUnnamed1910(core.List<api.LicenseAssignment> o) { +checkUnnamed3241(core.List<api.LicenseAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkLicenseAssignment(o[0]); checkLicenseAssignment(o[1]); @@ -121,7 +121,7 @@ buildCounterLicenseAssignmentList++; if (buildCounterLicenseAssignmentList < 3) { o.etag = "foo"; - o.items = buildUnnamed1910(); + o.items = buildUnnamed3241(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -133,7 +133,7 @@ buildCounterLicenseAssignmentList++; if (buildCounterLicenseAssignmentList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1910(o.items); + checkUnnamed3241(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); }
diff --git a/generated/googleapis/test/logging/v2_test.dart b/generated/googleapis/test/logging/v2_test.dart index 8998510..136b5b3 100644 --- a/generated/googleapis/test/logging/v2_test.dart +++ b/generated/googleapis/test/logging/v2_test.dart
@@ -88,14 +88,14 @@ buildCounterEmpty--; } -buildUnnamed328() { +buildUnnamed2643() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed328(core.List<core.double> o) { +checkUnnamed2643(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)); @@ -106,7 +106,7 @@ var o = new api.Explicit(); buildCounterExplicit++; if (buildCounterExplicit < 3) { - o.bounds = buildUnnamed328(); + o.bounds = buildUnnamed2643(); } buildCounterExplicit--; return o; @@ -115,7 +115,7 @@ checkExplicit(api.Explicit o) { buildCounterExplicit++; if (buildCounterExplicit < 3) { - checkUnnamed328(o.bounds); + checkUnnamed2643(o.bounds); } buildCounterExplicit--; } @@ -236,14 +236,14 @@ buildCounterLinear--; } -buildUnnamed329() { +buildUnnamed2644() { var o = new core.List<api.LogExclusion>(); o.add(buildLogExclusion()); o.add(buildLogExclusion()); return o; } -checkUnnamed329(core.List<api.LogExclusion> o) { +checkUnnamed2644(core.List<api.LogExclusion> o) { unittest.expect(o, unittest.hasLength(2)); checkLogExclusion(o[0]); checkLogExclusion(o[1]); @@ -254,7 +254,7 @@ var o = new api.ListExclusionsResponse(); buildCounterListExclusionsResponse++; if (buildCounterListExclusionsResponse < 3) { - o.exclusions = buildUnnamed329(); + o.exclusions = buildUnnamed2644(); o.nextPageToken = "foo"; } buildCounterListExclusionsResponse--; @@ -264,33 +264,33 @@ checkListExclusionsResponse(api.ListExclusionsResponse o) { buildCounterListExclusionsResponse++; if (buildCounterListExclusionsResponse < 3) { - checkUnnamed329(o.exclusions); + checkUnnamed2644(o.exclusions); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListExclusionsResponse--; } -buildUnnamed330() { +buildUnnamed2645() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed330(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')); } -buildUnnamed331() { +buildUnnamed2646() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed331(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')); @@ -305,8 +305,8 @@ o.orderBy = "foo"; o.pageSize = 42; o.pageToken = "foo"; - o.projectIds = buildUnnamed330(); - o.resourceNames = buildUnnamed331(); + o.projectIds = buildUnnamed2645(); + o.resourceNames = buildUnnamed2646(); } buildCounterListLogEntriesRequest--; return o; @@ -319,20 +319,20 @@ unittest.expect(o.orderBy, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed330(o.projectIds); - checkUnnamed331(o.resourceNames); + checkUnnamed2645(o.projectIds); + checkUnnamed2646(o.resourceNames); } buildCounterListLogEntriesRequest--; } -buildUnnamed332() { +buildUnnamed2647() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed332(core.List<api.LogEntry> o) { +checkUnnamed2647(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); @@ -343,7 +343,7 @@ var o = new api.ListLogEntriesResponse(); buildCounterListLogEntriesResponse++; if (buildCounterListLogEntriesResponse < 3) { - o.entries = buildUnnamed332(); + o.entries = buildUnnamed2647(); o.nextPageToken = "foo"; } buildCounterListLogEntriesResponse--; @@ -353,20 +353,20 @@ checkListLogEntriesResponse(api.ListLogEntriesResponse o) { buildCounterListLogEntriesResponse++; if (buildCounterListLogEntriesResponse < 3) { - checkUnnamed332(o.entries); + checkUnnamed2647(o.entries); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLogEntriesResponse--; } -buildUnnamed333() { +buildUnnamed2648() { var o = new core.List<api.LogMetric>(); o.add(buildLogMetric()); o.add(buildLogMetric()); return o; } -checkUnnamed333(core.List<api.LogMetric> o) { +checkUnnamed2648(core.List<api.LogMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkLogMetric(o[0]); checkLogMetric(o[1]); @@ -377,7 +377,7 @@ var o = new api.ListLogMetricsResponse(); buildCounterListLogMetricsResponse++; if (buildCounterListLogMetricsResponse < 3) { - o.metrics = buildUnnamed333(); + o.metrics = buildUnnamed2648(); o.nextPageToken = "foo"; } buildCounterListLogMetricsResponse--; @@ -387,20 +387,20 @@ checkListLogMetricsResponse(api.ListLogMetricsResponse o) { buildCounterListLogMetricsResponse++; if (buildCounterListLogMetricsResponse < 3) { - checkUnnamed333(o.metrics); + checkUnnamed2648(o.metrics); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLogMetricsResponse--; } -buildUnnamed334() { +buildUnnamed2649() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed334(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')); @@ -411,7 +411,7 @@ var o = new api.ListLogsResponse(); buildCounterListLogsResponse++; if (buildCounterListLogsResponse < 3) { - o.logNames = buildUnnamed334(); + o.logNames = buildUnnamed2649(); o.nextPageToken = "foo"; } buildCounterListLogsResponse--; @@ -421,20 +421,20 @@ checkListLogsResponse(api.ListLogsResponse o) { buildCounterListLogsResponse++; if (buildCounterListLogsResponse < 3) { - checkUnnamed334(o.logNames); + checkUnnamed2649(o.logNames); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLogsResponse--; } -buildUnnamed335() { +buildUnnamed2650() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed335(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed2650(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); @@ -446,7 +446,7 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { o.nextPageToken = "foo"; - o.resourceDescriptors = buildUnnamed335(); + o.resourceDescriptors = buildUnnamed2650(); } buildCounterListMonitoredResourceDescriptorsResponse--; return o; @@ -457,19 +457,19 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed335(o.resourceDescriptors); + checkUnnamed2650(o.resourceDescriptors); } buildCounterListMonitoredResourceDescriptorsResponse--; } -buildUnnamed336() { +buildUnnamed2651() { var o = new core.List<api.LogSink>(); o.add(buildLogSink()); o.add(buildLogSink()); return o; } -checkUnnamed336(core.List<api.LogSink> o) { +checkUnnamed2651(core.List<api.LogSink> o) { unittest.expect(o, unittest.hasLength(2)); checkLogSink(o[0]); checkLogSink(o[1]); @@ -481,7 +481,7 @@ buildCounterListSinksResponse++; if (buildCounterListSinksResponse < 3) { o.nextPageToken = "foo"; - o.sinks = buildUnnamed336(); + o.sinks = buildUnnamed2651(); } buildCounterListSinksResponse--; return o; @@ -491,12 +491,12 @@ buildCounterListSinksResponse++; if (buildCounterListSinksResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed336(o.sinks); + checkUnnamed2651(o.sinks); } buildCounterListSinksResponse--; } -buildUnnamed337() { +buildUnnamed2652() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -511,7 +511,7 @@ return o; } -checkUnnamed337(core.Map<core.String, core.Object> o) { +checkUnnamed2652(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)); @@ -525,20 +525,20 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed338() { +buildUnnamed2653() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed338(core.Map<core.String, core.String> o) { +checkUnnamed2653(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')); } -buildUnnamed339() { +buildUnnamed2654() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -553,7 +553,7 @@ return o; } -checkUnnamed339(core.Map<core.String, core.Object> o) { +checkUnnamed2654(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)); @@ -574,11 +574,12 @@ if (buildCounterLogEntry < 3) { o.httpRequest = buildHttpRequest(); o.insertId = "foo"; - o.jsonPayload = buildUnnamed337(); - o.labels = buildUnnamed338(); + o.jsonPayload = buildUnnamed2652(); + o.labels = buildUnnamed2653(); o.logName = "foo"; + o.metadata = buildMonitoredResourceMetadata(); o.operation = buildLogEntryOperation(); - o.protoPayload = buildUnnamed339(); + o.protoPayload = buildUnnamed2654(); o.receiveTimestamp = "foo"; o.resource = buildMonitoredResource(); o.severity = "foo"; @@ -597,11 +598,12 @@ if (buildCounterLogEntry < 3) { checkHttpRequest(o.httpRequest); unittest.expect(o.insertId, unittest.equals('foo')); - checkUnnamed337(o.jsonPayload); - checkUnnamed338(o.labels); + checkUnnamed2652(o.jsonPayload); + checkUnnamed2653(o.labels); unittest.expect(o.logName, unittest.equals('foo')); + checkMonitoredResourceMetadata(o.metadata); checkLogEntryOperation(o.operation); - checkUnnamed339(o.protoPayload); + checkUnnamed2654(o.protoPayload); unittest.expect(o.receiveTimestamp, unittest.equals('foo')); checkMonitoredResource(o.resource); unittest.expect(o.severity, unittest.equals('foo')); @@ -712,14 +714,14 @@ buildCounterLogLine--; } -buildUnnamed340() { +buildUnnamed2655() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed340(core.Map<core.String, core.String> o) { +checkUnnamed2655(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')); @@ -733,7 +735,7 @@ o.bucketOptions = buildBucketOptions(); o.description = "foo"; o.filter = "foo"; - o.labelExtractors = buildUnnamed340(); + o.labelExtractors = buildUnnamed2655(); o.metricDescriptor = buildMetricDescriptor(); o.name = "foo"; o.valueExtractor = "foo"; @@ -749,7 +751,7 @@ checkBucketOptions(o.bucketOptions); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.filter, unittest.equals('foo')); - checkUnnamed340(o.labelExtractors); + checkUnnamed2655(o.labelExtractors); checkMetricDescriptor(o.metricDescriptor); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.valueExtractor, unittest.equals('foo')); @@ -791,14 +793,14 @@ buildCounterLogSink--; } -buildUnnamed341() { +buildUnnamed2656() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed341(core.List<api.LabelDescriptor> o) { +checkUnnamed2656(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -811,7 +813,7 @@ if (buildCounterMetricDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed341(); + o.labels = buildUnnamed2656(); o.metricKind = "foo"; o.name = "foo"; o.type = "foo"; @@ -827,7 +829,7 @@ if (buildCounterMetricDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed341(o.labels); + checkUnnamed2656(o.labels); unittest.expect(o.metricKind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -837,14 +839,14 @@ buildCounterMetricDescriptor--; } -buildUnnamed342() { +buildUnnamed2657() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed342(core.Map<core.String, core.String> o) { +checkUnnamed2657(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')); @@ -855,7 +857,7 @@ var o = new api.MonitoredResource(); buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - o.labels = buildUnnamed342(); + o.labels = buildUnnamed2657(); o.type = "foo"; } buildCounterMonitoredResource--; @@ -865,20 +867,20 @@ checkMonitoredResource(api.MonitoredResource o) { buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - checkUnnamed342(o.labels); + checkUnnamed2657(o.labels); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResource--; } -buildUnnamed343() { +buildUnnamed2658() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed343(core.List<api.LabelDescriptor> o) { +checkUnnamed2658(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -891,7 +893,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed343(); + o.labels = buildUnnamed2658(); o.name = "foo"; o.type = "foo"; } @@ -904,34 +906,97 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed343(o.labels); + checkUnnamed2658(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResourceDescriptor--; } -buildUnnamed344() { +buildUnnamed2659() { + 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; +} + +checkUnnamed2659(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')); +} + +buildUnnamed2660() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed2660(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 buildCounterMonitoredResourceMetadata = 0; +buildMonitoredResourceMetadata() { + var o = new api.MonitoredResourceMetadata(); + buildCounterMonitoredResourceMetadata++; + if (buildCounterMonitoredResourceMetadata < 3) { + o.systemLabels = buildUnnamed2659(); + o.userLabels = buildUnnamed2660(); + } + buildCounterMonitoredResourceMetadata--; + return o; +} + +checkMonitoredResourceMetadata(api.MonitoredResourceMetadata o) { + buildCounterMonitoredResourceMetadata++; + if (buildCounterMonitoredResourceMetadata < 3) { + checkUnnamed2659(o.systemLabels); + checkUnnamed2660(o.userLabels); + } + buildCounterMonitoredResourceMetadata--; +} + +buildUnnamed2661() { var o = new core.List<api.LogLine>(); o.add(buildLogLine()); o.add(buildLogLine()); return o; } -checkUnnamed344(core.List<api.LogLine> o) { +checkUnnamed2661(core.List<api.LogLine> o) { unittest.expect(o, unittest.hasLength(2)); checkLogLine(o[0]); checkLogLine(o[1]); } -buildUnnamed345() { +buildUnnamed2662() { var o = new core.List<api.SourceReference>(); o.add(buildSourceReference()); o.add(buildSourceReference()); return o; } -checkUnnamed345(core.List<api.SourceReference> o) { +checkUnnamed2662(core.List<api.SourceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceReference(o[0]); checkSourceReference(o[1]); @@ -954,7 +1019,7 @@ o.instanceIndex = 42; o.ip = "foo"; o.latency = "foo"; - o.line = buildUnnamed344(); + o.line = buildUnnamed2661(); o.megaCycles = "foo"; o.method = "foo"; o.moduleId = "foo"; @@ -964,7 +1029,7 @@ o.requestId = "foo"; o.resource = "foo"; o.responseSize = "foo"; - o.sourceReference = buildUnnamed345(); + o.sourceReference = buildUnnamed2662(); o.startTime = "foo"; o.status = 42; o.taskName = "foo"; @@ -994,7 +1059,7 @@ unittest.expect(o.instanceIndex, unittest.equals(42)); unittest.expect(o.ip, unittest.equals('foo')); unittest.expect(o.latency, unittest.equals('foo')); - checkUnnamed344(o.line); + checkUnnamed2661(o.line); unittest.expect(o.megaCycles, unittest.equals('foo')); unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.moduleId, unittest.equals('foo')); @@ -1004,7 +1069,7 @@ unittest.expect(o.requestId, unittest.equals('foo')); unittest.expect(o.resource, unittest.equals('foo')); unittest.expect(o.responseSize, unittest.equals('foo')); - checkUnnamed345(o.sourceReference); + checkUnnamed2662(o.sourceReference); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.status, unittest.equals(42)); unittest.expect(o.taskName, unittest.equals('foo')); @@ -1062,27 +1127,27 @@ buildCounterSourceReference--; } -buildUnnamed346() { +buildUnnamed2663() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed346(core.List<api.LogEntry> o) { +checkUnnamed2663(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); } -buildUnnamed347() { +buildUnnamed2664() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed347(core.Map<core.String, core.String> o) { +checkUnnamed2664(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')); @@ -1094,8 +1159,8 @@ buildCounterWriteLogEntriesRequest++; if (buildCounterWriteLogEntriesRequest < 3) { o.dryRun = true; - o.entries = buildUnnamed346(); - o.labels = buildUnnamed347(); + o.entries = buildUnnamed2663(); + o.labels = buildUnnamed2664(); o.logName = "foo"; o.partialSuccess = true; o.resource = buildMonitoredResource(); @@ -1108,8 +1173,8 @@ buildCounterWriteLogEntriesRequest++; if (buildCounterWriteLogEntriesRequest < 3) { unittest.expect(o.dryRun, unittest.isTrue); - checkUnnamed346(o.entries); - checkUnnamed347(o.labels); + checkUnnamed2663(o.entries); + checkUnnamed2664(o.labels); unittest.expect(o.logName, unittest.equals('foo')); unittest.expect(o.partialSuccess, unittest.isTrue); checkMonitoredResource(o.resource); @@ -1326,6 +1391,14 @@ }); }); + unittest.group("obj-schema-MonitoredResourceMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildMonitoredResourceMetadata(); + var od = new api.MonitoredResourceMetadata.fromJson(o.toJson()); + checkMonitoredResourceMetadata(od); + }); + }); + unittest.group("obj-schema-RequestLog", () { unittest.test("to-json--from-json", () { var o = buildRequestLog(); @@ -1707,8 +1780,8 @@ api.BillingAccountsLogsResourceApi res = new api.LoggingApi(mock).billingAccounts.logs; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1741,10 +1814,10 @@ 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1755,8 +1828,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLogsResponse(response); @@ -2392,8 +2465,8 @@ var mock = new HttpServerMock(); api.ExclusionsResourceApi res = new api.LoggingApi(mock).exclusions; var arg_parent = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2426,10 +2499,10 @@ 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(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2440,8 +2513,8 @@ }), true); res .list(arg_parent, - pageSize: arg_pageSize, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListExclusionsResponse(response); @@ -2674,8 +2747,8 @@ api.FoldersExclusionsResourceApi res = new api.LoggingApi(mock).folders.exclusions; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2708,10 +2781,10 @@ 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2722,8 +2795,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListExclusionsResponse(response); @@ -2847,8 +2920,8 @@ var mock = new HttpServerMock(); api.FoldersLogsResourceApi res = new api.LoggingApi(mock).folders.logs; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2881,10 +2954,10 @@ 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2895,8 +2968,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLogsResponse(response); @@ -3374,8 +3447,8 @@ var mock = new HttpServerMock(); api.MonitoredResourceDescriptorsResourceApi res = new api.LoggingApi(mock).monitoredResourceDescriptors; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3407,10 +3480,10 @@ 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(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3422,8 +3495,8 @@ }), true); res .list( - pageSize: arg_pageSize, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListMonitoredResourceDescriptorsResponse(response); @@ -3597,8 +3670,8 @@ api.OrganizationsExclusionsResourceApi res = new api.LoggingApi(mock).organizations.exclusions; var arg_parent = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3631,10 +3704,10 @@ 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(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3645,8 +3718,8 @@ }), true); res .list(arg_parent, - pageSize: arg_pageSize, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListExclusionsResponse(response); @@ -3772,8 +3845,8 @@ api.OrganizationsLogsResourceApi res = new api.LoggingApi(mock).organizations.logs; var arg_parent = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3806,10 +3879,10 @@ 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(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3820,8 +3893,8 @@ }), true); res .list(arg_parent, - pageSize: arg_pageSize, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLogsResponse(response); @@ -4526,8 +4599,8 @@ var mock = new HttpServerMock(); api.ProjectsLogsResourceApi res = new api.LoggingApi(mock).projects.logs; var arg_parent = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4560,10 +4633,10 @@ 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(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4574,8 +4647,8 @@ }), true); res .list(arg_parent, - pageSize: arg_pageSize, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLogsResponse(response); @@ -5033,8 +5106,8 @@ api.ProjectsSinksResourceApi res = new api.LoggingApi(mock).projects.sinks; var arg_parent = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5067,10 +5140,10 @@ 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(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5081,8 +5154,8 @@ }), true); res .list(arg_parent, - pageSize: arg_pageSize, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListSinksResponse(response);
diff --git a/generated/googleapis/test/manufacturers/v1_test.dart b/generated/googleapis/test/manufacturers/v1_test.dart index 3d64894..ad4ccf3 100644 --- a/generated/googleapis/test/manufacturers/v1_test.dart +++ b/generated/googleapis/test/manufacturers/v1_test.dart
@@ -50,79 +50,105 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2456() { +buildUnnamed4292() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed2456(core.List<api.Image> o) { +checkUnnamed4292(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); } -buildUnnamed2457() { +buildUnnamed4293() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4293(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4294() { var o = new core.List<api.FeatureDescription>(); o.add(buildFeatureDescription()); o.add(buildFeatureDescription()); return o; } -checkUnnamed2457(core.List<api.FeatureDescription> o) { +checkUnnamed4294(core.List<api.FeatureDescription> o) { unittest.expect(o, unittest.hasLength(2)); checkFeatureDescription(o[0]); checkFeatureDescription(o[1]); } -buildUnnamed2458() { +buildUnnamed4295() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2458(core.List<core.String> o) { +checkUnnamed4295(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2459() { +buildUnnamed4296() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4296(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4297() { var o = new core.List<api.ProductDetail>(); o.add(buildProductDetail()); o.add(buildProductDetail()); return o; } -checkUnnamed2459(core.List<api.ProductDetail> o) { +checkUnnamed4297(core.List<api.ProductDetail> o) { unittest.expect(o, unittest.hasLength(2)); checkProductDetail(o[0]); checkProductDetail(o[1]); } -buildUnnamed2460() { +buildUnnamed4298() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2460(core.List<core.String> o) { +checkUnnamed4298(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2461() { +buildUnnamed4299() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2461(core.List<core.String> o) { +checkUnnamed4299(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -133,7 +159,7 @@ var o = new api.Attributes(); buildCounterAttributes++; if (buildCounterAttributes < 3) { - o.additionalImageLink = buildUnnamed2456(); + o.additionalImageLink = buildUnnamed4292(); o.ageGroup = "foo"; o.brand = "foo"; o.capacity = buildCapacity(); @@ -141,21 +167,23 @@ o.count = buildCount(); o.description = "foo"; o.disclosureDate = "foo"; - o.featureDescription = buildUnnamed2457(); + o.excludedDestination = buildUnnamed4293(); + o.featureDescription = buildUnnamed4294(); o.flavor = "foo"; o.format = "foo"; o.gender = "foo"; - o.gtin = buildUnnamed2458(); + o.gtin = buildUnnamed4295(); o.imageLink = buildImage(); + o.includedDestination = buildUnnamed4296(); o.itemGroupId = "foo"; o.material = "foo"; o.mpn = "foo"; o.pattern = "foo"; - o.productDetail = buildUnnamed2459(); + o.productDetail = buildUnnamed4297(); o.productLine = "foo"; o.productName = "foo"; o.productPageUrl = "foo"; - o.productType = buildUnnamed2460(); + o.productType = buildUnnamed4298(); o.releaseDate = "foo"; o.scent = "foo"; o.size = "foo"; @@ -165,7 +193,7 @@ o.targetClientId = "foo"; o.theme = "foo"; o.title = "foo"; - o.videoLink = buildUnnamed2461(); + o.videoLink = buildUnnamed4299(); } buildCounterAttributes--; return o; @@ -174,7 +202,7 @@ checkAttributes(api.Attributes o) { buildCounterAttributes++; if (buildCounterAttributes < 3) { - checkUnnamed2456(o.additionalImageLink); + checkUnnamed4292(o.additionalImageLink); unittest.expect(o.ageGroup, unittest.equals('foo')); unittest.expect(o.brand, unittest.equals('foo')); checkCapacity(o.capacity); @@ -182,21 +210,23 @@ checkCount(o.count); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.disclosureDate, unittest.equals('foo')); - checkUnnamed2457(o.featureDescription); + checkUnnamed4293(o.excludedDestination); + checkUnnamed4294(o.featureDescription); unittest.expect(o.flavor, unittest.equals('foo')); unittest.expect(o.format, unittest.equals('foo')); unittest.expect(o.gender, unittest.equals('foo')); - checkUnnamed2458(o.gtin); + checkUnnamed4295(o.gtin); checkImage(o.imageLink); + checkUnnamed4296(o.includedDestination); unittest.expect(o.itemGroupId, unittest.equals('foo')); unittest.expect(o.material, unittest.equals('foo')); unittest.expect(o.mpn, unittest.equals('foo')); unittest.expect(o.pattern, unittest.equals('foo')); - checkUnnamed2459(o.productDetail); + checkUnnamed4297(o.productDetail); unittest.expect(o.productLine, unittest.equals('foo')); unittest.expect(o.productName, unittest.equals('foo')); unittest.expect(o.productPageUrl, unittest.equals('foo')); - checkUnnamed2460(o.productType); + checkUnnamed4298(o.productType); unittest.expect(o.releaseDate, unittest.equals('foo')); unittest.expect(o.scent, unittest.equals('foo')); unittest.expect(o.size, unittest.equals('foo')); @@ -206,7 +236,7 @@ unittest.expect(o.targetClientId, unittest.equals('foo')); unittest.expect(o.theme, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed2461(o.videoLink); + checkUnnamed4299(o.videoLink); } buildCounterAttributes--; } @@ -253,6 +283,27 @@ buildCounterCount--; } +core.int buildCounterDestinationStatus = 0; +buildDestinationStatus() { + var o = new api.DestinationStatus(); + buildCounterDestinationStatus++; + if (buildCounterDestinationStatus < 3) { + o.destination = "foo"; + o.status = "foo"; + } + buildCounterDestinationStatus--; + return o; +} + +checkDestinationStatus(api.DestinationStatus o) { + buildCounterDestinationStatus++; + if (buildCounterDestinationStatus < 3) { + unittest.expect(o.destination, unittest.equals('foo')); + unittest.expect(o.status, unittest.equals('foo')); + } + buildCounterDestinationStatus--; +} + core.int buildCounterEmpty = 0; buildEmpty() { var o = new api.Empty(); @@ -321,8 +372,11 @@ if (buildCounterIssue < 3) { o.attribute = "foo"; o.description = "foo"; + o.destination = "foo"; + o.resolution = "foo"; o.severity = "foo"; o.timestamp = "foo"; + o.title = "foo"; o.type = "foo"; } buildCounterIssue--; @@ -334,21 +388,24 @@ if (buildCounterIssue < 3) { unittest.expect(o.attribute, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.destination, unittest.equals('foo')); + unittest.expect(o.resolution, unittest.equals('foo')); unittest.expect(o.severity, unittest.equals('foo')); unittest.expect(o.timestamp, unittest.equals('foo')); + unittest.expect(o.title, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterIssue--; } -buildUnnamed2462() { +buildUnnamed4300() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed2462(core.List<api.Product> o) { +checkUnnamed4300(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -360,7 +417,7 @@ buildCounterListProductsResponse++; if (buildCounterListProductsResponse < 3) { o.nextPageToken = "foo"; - o.products = buildUnnamed2462(); + o.products = buildUnnamed4300(); } buildCounterListProductsResponse--; return o; @@ -370,7 +427,7 @@ buildCounterListProductsResponse++; if (buildCounterListProductsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2462(o.products); + checkUnnamed4300(o.products); } buildCounterListProductsResponse--; } @@ -396,27 +453,40 @@ buildCounterPrice--; } -buildUnnamed2463() { +buildUnnamed4301() { + var o = new core.List<api.DestinationStatus>(); + o.add(buildDestinationStatus()); + o.add(buildDestinationStatus()); + return o; +} + +checkUnnamed4301(core.List<api.DestinationStatus> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDestinationStatus(o[0]); + checkDestinationStatus(o[1]); +} + +buildUnnamed4302() { var o = new core.List<api.Issue>(); o.add(buildIssue()); o.add(buildIssue()); return o; } -checkUnnamed2463(core.List<api.Issue> o) { +checkUnnamed4302(core.List<api.Issue> o) { unittest.expect(o, unittest.hasLength(2)); checkIssue(o[0]); checkIssue(o[1]); } -buildUnnamed2464() { +buildUnnamed4303() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2464(core.List<core.String> o) { +checkUnnamed4303(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -427,10 +497,12 @@ var o = new api.Product(); buildCounterProduct++; if (buildCounterProduct < 3) { + o.attributes = buildAttributes(); o.contentLanguage = "foo"; + o.destinationStatuses = buildUnnamed4301(); o.finalAttributes = buildAttributes(); - o.issues = buildUnnamed2463(); - o.manuallyDeletedAttributes = buildUnnamed2464(); + o.issues = buildUnnamed4302(); + o.manuallyDeletedAttributes = buildUnnamed4303(); o.manuallyProvidedAttributes = buildAttributes(); o.name = "foo"; o.parent = "foo"; @@ -445,10 +517,12 @@ checkProduct(api.Product o) { buildCounterProduct++; if (buildCounterProduct < 3) { + checkAttributes(o.attributes); unittest.expect(o.contentLanguage, unittest.equals('foo')); + checkUnnamed4301(o.destinationStatuses); checkAttributes(o.finalAttributes); - checkUnnamed2463(o.issues); - checkUnnamed2464(o.manuallyDeletedAttributes); + checkUnnamed4302(o.issues); + checkUnnamed4303(o.manuallyDeletedAttributes); checkAttributes(o.manuallyProvidedAttributes); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); @@ -482,6 +556,32 @@ buildCounterProductDetail--; } +buildUnnamed4304() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4304(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4305() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4305(core.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-Attributes", () { unittest.test("to-json--from-json", () { @@ -507,6 +607,14 @@ }); }); + unittest.group("obj-schema-DestinationStatus", () { + unittest.test("to-json--from-json", () { + var o = buildDestinationStatus(); + var od = new api.DestinationStatus.fromJson(o.toJson()); + checkDestinationStatus(od); + }); + }); + unittest.group("obj-schema-Empty", () { unittest.test("to-json--from-json", () { var o = buildEmpty(); @@ -631,6 +739,7 @@ new api.ManufacturersApi(mock).accounts.products; var arg_parent = "foo"; var arg_name = "foo"; + var arg_include = buildUnnamed4304(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -663,6 +772,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["include"], unittest.equals(arg_include)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -672,7 +782,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .get(arg_parent, arg_name, $fields: arg_$fields) + .get(arg_parent, arg_name, include: arg_include, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkProduct(response); }))); @@ -685,6 +795,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_include = buildUnnamed4305(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -721,6 +832,7 @@ queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["include"], unittest.equals(arg_include)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -733,13 +845,14 @@ .list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize, + include: arg_include, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListProductsResponse(response); }))); }); - unittest.test("method--uploadProduct", () { + unittest.test("method--update", () { var mock = new HttpServerMock(); api.AccountsProductsResourceApi res = new api.ManufacturersApi(mock).accounts.products; @@ -790,8 +903,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .uploadProduct(arg_request, arg_parent, arg_name, - $fields: arg_$fields) + .update(arg_request, arg_parent, arg_name, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkEmpty(response); })));
diff --git a/generated/googleapis/test/mirror/v1_test.dart b/generated/googleapis/test/mirror/v1_test.dart index b38b249..27d6506 100644 --- a/generated/googleapis/test/mirror/v1_test.dart +++ b/generated/googleapis/test/mirror/v1_test.dart
@@ -50,40 +50,40 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2876() { +buildUnnamed1720() { var o = new core.List<api.AuthToken>(); o.add(buildAuthToken()); o.add(buildAuthToken()); return o; } -checkUnnamed2876(core.List<api.AuthToken> o) { +checkUnnamed1720(core.List<api.AuthToken> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthToken(o[0]); checkAuthToken(o[1]); } -buildUnnamed2877() { +buildUnnamed1721() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2877(core.List<core.String> o) { +checkUnnamed1721(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2878() { +buildUnnamed1722() { var o = new core.List<api.UserData>(); o.add(buildUserData()); o.add(buildUserData()); return o; } -checkUnnamed2878(core.List<api.UserData> o) { +checkUnnamed1722(core.List<api.UserData> o) { unittest.expect(o, unittest.hasLength(2)); checkUserData(o[0]); checkUserData(o[1]); @@ -94,10 +94,10 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.authTokens = buildUnnamed2876(); - o.features = buildUnnamed2877(); + o.authTokens = buildUnnamed1720(); + o.features = buildUnnamed1721(); o.password = "foo"; - o.userData = buildUnnamed2878(); + o.userData = buildUnnamed1722(); } buildCounterAccount--; return o; @@ -106,10 +106,10 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed2876(o.authTokens); - checkUnnamed2877(o.features); + checkUnnamed1720(o.authTokens); + checkUnnamed1721(o.features); unittest.expect(o.password, unittest.equals('foo')); - checkUnnamed2878(o.userData); + checkUnnamed1722(o.userData); } buildCounterAccount--; } @@ -139,14 +139,14 @@ buildCounterAttachment--; } -buildUnnamed2879() { +buildUnnamed1723() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed2879(core.List<api.Attachment> o) { +checkUnnamed1723(core.List<api.Attachment> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachment(o[0]); checkAttachment(o[1]); @@ -157,7 +157,7 @@ var o = new api.AttachmentsListResponse(); buildCounterAttachmentsListResponse++; if (buildCounterAttachmentsListResponse < 3) { - o.items = buildUnnamed2879(); + o.items = buildUnnamed1723(); o.kind = "foo"; } buildCounterAttachmentsListResponse--; @@ -167,7 +167,7 @@ checkAttachmentsListResponse(api.AttachmentsListResponse o) { buildCounterAttachmentsListResponse++; if (buildCounterAttachmentsListResponse < 3) { - checkUnnamed2879(o.items); + checkUnnamed1723(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAttachmentsListResponse--; @@ -213,53 +213,53 @@ buildCounterCommand--; } -buildUnnamed2880() { +buildUnnamed1724() { var o = new core.List<api.Command>(); o.add(buildCommand()); o.add(buildCommand()); return o; } -checkUnnamed2880(core.List<api.Command> o) { +checkUnnamed1724(core.List<api.Command> o) { unittest.expect(o, unittest.hasLength(2)); checkCommand(o[0]); checkCommand(o[1]); } -buildUnnamed2881() { +buildUnnamed1725() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2881(core.List<core.String> o) { +checkUnnamed1725(core.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() { +buildUnnamed1726() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2882(core.List<core.String> o) { +checkUnnamed1726(core.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() { +buildUnnamed1727() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2883(core.List<core.String> o) { +checkUnnamed1727(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -270,15 +270,15 @@ var o = new api.Contact(); buildCounterContact++; if (buildCounterContact < 3) { - o.acceptCommands = buildUnnamed2880(); - o.acceptTypes = buildUnnamed2881(); + o.acceptCommands = buildUnnamed1724(); + o.acceptTypes = buildUnnamed1725(); o.displayName = "foo"; o.id = "foo"; - o.imageUrls = buildUnnamed2882(); + o.imageUrls = buildUnnamed1726(); o.kind = "foo"; o.phoneNumber = "foo"; o.priority = 42; - o.sharingFeatures = buildUnnamed2883(); + o.sharingFeatures = buildUnnamed1727(); o.source = "foo"; o.speakableName = "foo"; o.type = "foo"; @@ -290,15 +290,15 @@ checkContact(api.Contact o) { buildCounterContact++; if (buildCounterContact < 3) { - checkUnnamed2880(o.acceptCommands); - checkUnnamed2881(o.acceptTypes); + checkUnnamed1724(o.acceptCommands); + checkUnnamed1725(o.acceptTypes); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2882(o.imageUrls); + checkUnnamed1726(o.imageUrls); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.phoneNumber, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42)); - checkUnnamed2883(o.sharingFeatures); + checkUnnamed1727(o.sharingFeatures); unittest.expect(o.source, unittest.equals('foo')); unittest.expect(o.speakableName, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -306,14 +306,14 @@ buildCounterContact--; } -buildUnnamed2884() { +buildUnnamed1728() { var o = new core.List<api.Contact>(); o.add(buildContact()); o.add(buildContact()); return o; } -checkUnnamed2884(core.List<api.Contact> o) { +checkUnnamed1728(core.List<api.Contact> o) { unittest.expect(o, unittest.hasLength(2)); checkContact(o[0]); checkContact(o[1]); @@ -324,7 +324,7 @@ var o = new api.ContactsListResponse(); buildCounterContactsListResponse++; if (buildCounterContactsListResponse < 3) { - o.items = buildUnnamed2884(); + o.items = buildUnnamed1728(); o.kind = "foo"; } buildCounterContactsListResponse--; @@ -334,7 +334,7 @@ checkContactsListResponse(api.ContactsListResponse o) { buildCounterContactsListResponse++; if (buildCounterContactsListResponse < 3) { - checkUnnamed2884(o.items); + checkUnnamed1728(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterContactsListResponse--; @@ -374,14 +374,14 @@ buildCounterLocation--; } -buildUnnamed2885() { +buildUnnamed1729() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed2885(core.List<api.Location> o) { +checkUnnamed1729(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 = buildUnnamed2885(); + o.items = buildUnnamed1729(); o.kind = "foo"; } buildCounterLocationsListResponse--; @@ -402,20 +402,20 @@ checkLocationsListResponse(api.LocationsListResponse o) { buildCounterLocationsListResponse++; if (buildCounterLocationsListResponse < 3) { - checkUnnamed2885(o.items); + checkUnnamed1729(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterLocationsListResponse--; } -buildUnnamed2886() { +buildUnnamed1730() { var o = new core.List<api.MenuValue>(); o.add(buildMenuValue()); o.add(buildMenuValue()); return o; } -checkUnnamed2886(core.List<api.MenuValue> o) { +checkUnnamed1730(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 = buildUnnamed2886(); + o.values = buildUnnamed1730(); } 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); - checkUnnamed2886(o.values); + checkUnnamed1730(o.values); } buildCounterMenuItem--; } @@ -473,14 +473,14 @@ buildCounterMenuValue--; } -buildUnnamed2887() { +buildUnnamed1731() { var o = new core.List<api.UserAction>(); o.add(buildUserAction()); o.add(buildUserAction()); return o; } -checkUnnamed2887(core.List<api.UserAction> o) { +checkUnnamed1731(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 = buildUnnamed2887(); + o.userActions = buildUnnamed1731(); 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')); - checkUnnamed2887(o.userActions); + checkUnnamed1731(o.userActions); unittest.expect(o.userToken, unittest.equals('foo')); unittest.expect(o.verifyToken, unittest.equals('foo')); } @@ -560,14 +560,14 @@ buildCounterSetting--; } -buildUnnamed2888() { +buildUnnamed1732() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2888(core.List<core.String> o) { +checkUnnamed1732(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -583,7 +583,7 @@ o.id = "foo"; o.kind = "foo"; o.notification = buildNotification(); - o.operation = buildUnnamed2888(); + o.operation = buildUnnamed1732(); o.updated = core.DateTime.parse("2002-02-27T14:01:02"); o.userToken = "foo"; o.verifyToken = "foo"; @@ -600,7 +600,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkNotification(o.notification); - checkUnnamed2888(o.operation); + checkUnnamed1732(o.operation); unittest.expect( o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.userToken, unittest.equals('foo')); @@ -609,14 +609,14 @@ buildCounterSubscription--; } -buildUnnamed2889() { +buildUnnamed1733() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed2889(core.List<api.Subscription> o) { +checkUnnamed1733(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -627,7 +627,7 @@ var o = new api.SubscriptionsListResponse(); buildCounterSubscriptionsListResponse++; if (buildCounterSubscriptionsListResponse < 3) { - o.items = buildUnnamed2889(); + o.items = buildUnnamed1733(); o.kind = "foo"; } buildCounterSubscriptionsListResponse--; @@ -637,46 +637,46 @@ checkSubscriptionsListResponse(api.SubscriptionsListResponse o) { buildCounterSubscriptionsListResponse++; if (buildCounterSubscriptionsListResponse < 3) { - checkUnnamed2889(o.items); + checkUnnamed1733(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterSubscriptionsListResponse--; } -buildUnnamed2890() { +buildUnnamed1734() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed2890(core.List<api.Attachment> o) { +checkUnnamed1734(core.List<api.Attachment> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachment(o[0]); checkAttachment(o[1]); } -buildUnnamed2891() { +buildUnnamed1735() { var o = new core.List<api.MenuItem>(); o.add(buildMenuItem()); o.add(buildMenuItem()); return o; } -checkUnnamed2891(core.List<api.MenuItem> o) { +checkUnnamed1735(core.List<api.MenuItem> o) { unittest.expect(o, unittest.hasLength(2)); checkMenuItem(o[0]); checkMenuItem(o[1]); } -buildUnnamed2892() { +buildUnnamed1736() { var o = new core.List<api.Contact>(); o.add(buildContact()); o.add(buildContact()); return o; } -checkUnnamed2892(core.List<api.Contact> o) { +checkUnnamed1736(core.List<api.Contact> o) { unittest.expect(o, unittest.hasLength(2)); checkContact(o[0]); checkContact(o[1]); @@ -687,7 +687,7 @@ var o = new api.TimelineItem(); buildCounterTimelineItem++; if (buildCounterTimelineItem < 3) { - o.attachments = buildUnnamed2890(); + o.attachments = buildUnnamed1734(); o.bundleId = "foo"; o.canonicalUrl = "foo"; o.created = core.DateTime.parse("2002-02-27T14:01:02"); @@ -702,10 +702,10 @@ o.isPinned = true; o.kind = "foo"; o.location = buildLocation(); - o.menuItems = buildUnnamed2891(); + o.menuItems = buildUnnamed1735(); o.notification = buildNotificationConfig(); o.pinScore = 42; - o.recipients = buildUnnamed2892(); + o.recipients = buildUnnamed1736(); o.selfLink = "foo"; o.sourceItemId = "foo"; o.speakableText = "foo"; @@ -721,7 +721,7 @@ checkTimelineItem(api.TimelineItem o) { buildCounterTimelineItem++; if (buildCounterTimelineItem < 3) { - checkUnnamed2890(o.attachments); + checkUnnamed1734(o.attachments); unittest.expect(o.bundleId, unittest.equals('foo')); unittest.expect(o.canonicalUrl, unittest.equals('foo')); unittest.expect( @@ -738,10 +738,10 @@ unittest.expect(o.isPinned, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); checkLocation(o.location); - checkUnnamed2891(o.menuItems); + checkUnnamed1735(o.menuItems); checkNotificationConfig(o.notification); unittest.expect(o.pinScore, unittest.equals(42)); - checkUnnamed2892(o.recipients); + checkUnnamed1736(o.recipients); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.sourceItemId, unittest.equals('foo')); unittest.expect(o.speakableText, unittest.equals('foo')); @@ -754,14 +754,14 @@ buildCounterTimelineItem--; } -buildUnnamed2893() { +buildUnnamed1737() { var o = new core.List<api.TimelineItem>(); o.add(buildTimelineItem()); o.add(buildTimelineItem()); return o; } -checkUnnamed2893(core.List<api.TimelineItem> o) { +checkUnnamed1737(core.List<api.TimelineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkTimelineItem(o[0]); checkTimelineItem(o[1]); @@ -772,7 +772,7 @@ var o = new api.TimelineListResponse(); buildCounterTimelineListResponse++; if (buildCounterTimelineListResponse < 3) { - o.items = buildUnnamed2893(); + o.items = buildUnnamed1737(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -783,7 +783,7 @@ checkTimelineListResponse(api.TimelineListResponse o) { buildCounterTimelineListResponse++; if (buildCounterTimelineListResponse < 3) { - checkUnnamed2893(o.items); + checkUnnamed1737(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); }
diff --git a/generated/googleapis/test/ml/v1_test.dart b/generated/googleapis/test/ml/v1_test.dart index 1284577..f96bf2e 100644 --- a/generated/googleapis/test/ml/v1_test.dart +++ b/generated/googleapis/test/ml/v1_test.dart
@@ -50,7 +50,7 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1734() { +buildUnnamed3412() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -65,7 +65,7 @@ return o; } -checkUnnamed1734(core.Map<core.String, core.Object> o) { +checkUnnamed3412(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)); @@ -79,17 +79,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1735() { +buildUnnamed3413() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1734()); - o.add(buildUnnamed1734()); + o.add(buildUnnamed3412()); + o.add(buildUnnamed3412()); return o; } -checkUnnamed1735(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3413(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1734(o[0]); - checkUnnamed1734(o[1]); + checkUnnamed3412(o[0]); + checkUnnamed3412(o[1]); } core.int buildCounterGoogleApiHttpBody = 0; @@ -99,7 +99,7 @@ if (buildCounterGoogleApiHttpBody < 3) { o.contentType = "foo"; o.data = "foo"; - o.extensions = buildUnnamed1735(); + o.extensions = buildUnnamed3413(); } buildCounterGoogleApiHttpBody--; return o; @@ -110,7 +110,7 @@ if (buildCounterGoogleApiHttpBody < 3) { unittest.expect(o.contentType, unittest.equals('foo')); unittest.expect(o.data, unittest.equals('foo')); - checkUnnamed1735(o.extensions); + checkUnnamed3413(o.extensions); } buildCounterGoogleApiHttpBody--; } @@ -172,14 +172,14 @@ buildCounterGoogleCloudMlV1CancelJobRequest--; } -buildUnnamed1736() { +buildUnnamed3414() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1736(core.List<core.String> o) { +checkUnnamed3414(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -190,7 +190,7 @@ var o = new api.GoogleCloudMlV1Capability(); buildCounterGoogleCloudMlV1Capability++; if (buildCounterGoogleCloudMlV1Capability < 3) { - o.availableAccelerators = buildUnnamed1736(); + o.availableAccelerators = buildUnnamed3414(); o.type = "foo"; } buildCounterGoogleCloudMlV1Capability--; @@ -200,17 +200,37 @@ checkGoogleCloudMlV1Capability(api.GoogleCloudMlV1Capability o) { buildCounterGoogleCloudMlV1Capability++; if (buildCounterGoogleCloudMlV1Capability < 3) { - checkUnnamed1736(o.availableAccelerators); + checkUnnamed3414(o.availableAccelerators); unittest.expect(o.type, unittest.equals('foo')); } buildCounterGoogleCloudMlV1Capability--; } +core.int buildCounterGoogleCloudMlV1Config = 0; +buildGoogleCloudMlV1Config() { + var o = new api.GoogleCloudMlV1Config(); + buildCounterGoogleCloudMlV1Config++; + if (buildCounterGoogleCloudMlV1Config < 3) { + o.tpuServiceAccount = "foo"; + } + buildCounterGoogleCloudMlV1Config--; + return o; +} + +checkGoogleCloudMlV1Config(api.GoogleCloudMlV1Config o) { + buildCounterGoogleCloudMlV1Config++; + if (buildCounterGoogleCloudMlV1Config < 3) { + unittest.expect(o.tpuServiceAccount, unittest.equals('foo')); + } + buildCounterGoogleCloudMlV1Config--; +} + core.int buildCounterGoogleCloudMlV1GetConfigResponse = 0; buildGoogleCloudMlV1GetConfigResponse() { var o = new api.GoogleCloudMlV1GetConfigResponse(); buildCounterGoogleCloudMlV1GetConfigResponse++; if (buildCounterGoogleCloudMlV1GetConfigResponse < 3) { + o.config = buildGoogleCloudMlV1Config(); o.serviceAccount = "foo"; o.serviceAccountProject = "foo"; } @@ -221,13 +241,14 @@ checkGoogleCloudMlV1GetConfigResponse(api.GoogleCloudMlV1GetConfigResponse o) { buildCounterGoogleCloudMlV1GetConfigResponse++; if (buildCounterGoogleCloudMlV1GetConfigResponse < 3) { + checkGoogleCloudMlV1Config(o.config); unittest.expect(o.serviceAccount, unittest.equals('foo')); unittest.expect(o.serviceAccountProject, unittest.equals('foo')); } buildCounterGoogleCloudMlV1GetConfigResponse--; } -buildUnnamed1737() { +buildUnnamed3415() { var o = new core .List<api.GoogleCloudMlV1HyperparameterOutputHyperparameterMetric>(); o.add(buildGoogleCloudMlV1HyperparameterOutputHyperparameterMetric()); @@ -235,21 +256,21 @@ return o; } -checkUnnamed1737( +checkUnnamed3415( core.List<api.GoogleCloudMlV1HyperparameterOutputHyperparameterMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(o[0]); checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(o[1]); } -buildUnnamed1738() { +buildUnnamed3416() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1738(core.Map<core.String, core.String> o) { +checkUnnamed3416(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')); @@ -260,10 +281,10 @@ var o = new api.GoogleCloudMlV1HyperparameterOutput(); buildCounterGoogleCloudMlV1HyperparameterOutput++; if (buildCounterGoogleCloudMlV1HyperparameterOutput < 3) { - o.allMetrics = buildUnnamed1737(); + o.allMetrics = buildUnnamed3415(); o.finalMetric = buildGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(); - o.hyperparameters = buildUnnamed1738(); + o.hyperparameters = buildUnnamed3416(); o.isTrialStoppedEarly = true; o.trialId = "foo"; } @@ -275,23 +296,23 @@ api.GoogleCloudMlV1HyperparameterOutput o) { buildCounterGoogleCloudMlV1HyperparameterOutput++; if (buildCounterGoogleCloudMlV1HyperparameterOutput < 3) { - checkUnnamed1737(o.allMetrics); + checkUnnamed3415(o.allMetrics); checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(o.finalMetric); - checkUnnamed1738(o.hyperparameters); + checkUnnamed3416(o.hyperparameters); unittest.expect(o.isTrialStoppedEarly, unittest.isTrue); unittest.expect(o.trialId, unittest.equals('foo')); } buildCounterGoogleCloudMlV1HyperparameterOutput--; } -buildUnnamed1739() { +buildUnnamed3417() { var o = new core.List<api.GoogleCloudMlV1ParameterSpec>(); o.add(buildGoogleCloudMlV1ParameterSpec()); o.add(buildGoogleCloudMlV1ParameterSpec()); return o; } -checkUnnamed1739(core.List<api.GoogleCloudMlV1ParameterSpec> o) { +checkUnnamed3417(core.List<api.GoogleCloudMlV1ParameterSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1ParameterSpec(o[0]); checkGoogleCloudMlV1ParameterSpec(o[1]); @@ -302,12 +323,13 @@ var o = new api.GoogleCloudMlV1HyperparameterSpec(); buildCounterGoogleCloudMlV1HyperparameterSpec++; if (buildCounterGoogleCloudMlV1HyperparameterSpec < 3) { + o.algorithm = "foo"; o.enableTrialEarlyStopping = true; o.goal = "foo"; o.hyperparameterMetricTag = "foo"; o.maxParallelTrials = 42; o.maxTrials = 42; - o.params = buildUnnamed1739(); + o.params = buildUnnamed3417(); o.resumePreviousJobId = "foo"; } buildCounterGoogleCloudMlV1HyperparameterSpec--; @@ -318,12 +340,13 @@ api.GoogleCloudMlV1HyperparameterSpec o) { buildCounterGoogleCloudMlV1HyperparameterSpec++; if (buildCounterGoogleCloudMlV1HyperparameterSpec < 3) { + unittest.expect(o.algorithm, unittest.equals('foo')); unittest.expect(o.enableTrialEarlyStopping, unittest.isTrue); unittest.expect(o.goal, unittest.equals('foo')); unittest.expect(o.hyperparameterMetricTag, unittest.equals('foo')); unittest.expect(o.maxParallelTrials, unittest.equals(42)); unittest.expect(o.maxTrials, unittest.equals(42)); - checkUnnamed1739(o.params); + checkUnnamed3417(o.params); unittest.expect(o.resumePreviousJobId, unittest.equals('foo')); } buildCounterGoogleCloudMlV1HyperparameterSpec--; @@ -366,14 +389,14 @@ buildCounterGoogleCloudMlV1Job--; } -buildUnnamed1740() { +buildUnnamed3418() { var o = new core.List<api.GoogleCloudMlV1Job>(); o.add(buildGoogleCloudMlV1Job()); o.add(buildGoogleCloudMlV1Job()); return o; } -checkUnnamed1740(core.List<api.GoogleCloudMlV1Job> o) { +checkUnnamed3418(core.List<api.GoogleCloudMlV1Job> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1Job(o[0]); checkGoogleCloudMlV1Job(o[1]); @@ -384,7 +407,7 @@ var o = new api.GoogleCloudMlV1ListJobsResponse(); buildCounterGoogleCloudMlV1ListJobsResponse++; if (buildCounterGoogleCloudMlV1ListJobsResponse < 3) { - o.jobs = buildUnnamed1740(); + o.jobs = buildUnnamed3418(); o.nextPageToken = "foo"; } buildCounterGoogleCloudMlV1ListJobsResponse--; @@ -394,20 +417,20 @@ checkGoogleCloudMlV1ListJobsResponse(api.GoogleCloudMlV1ListJobsResponse o) { buildCounterGoogleCloudMlV1ListJobsResponse++; if (buildCounterGoogleCloudMlV1ListJobsResponse < 3) { - checkUnnamed1740(o.jobs); + checkUnnamed3418(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterGoogleCloudMlV1ListJobsResponse--; } -buildUnnamed1741() { +buildUnnamed3419() { var o = new core.List<api.GoogleCloudMlV1Location>(); o.add(buildGoogleCloudMlV1Location()); o.add(buildGoogleCloudMlV1Location()); return o; } -checkUnnamed1741(core.List<api.GoogleCloudMlV1Location> o) { +checkUnnamed3419(core.List<api.GoogleCloudMlV1Location> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1Location(o[0]); checkGoogleCloudMlV1Location(o[1]); @@ -418,7 +441,7 @@ var o = new api.GoogleCloudMlV1ListLocationsResponse(); buildCounterGoogleCloudMlV1ListLocationsResponse++; if (buildCounterGoogleCloudMlV1ListLocationsResponse < 3) { - o.locations = buildUnnamed1741(); + o.locations = buildUnnamed3419(); o.nextPageToken = "foo"; } buildCounterGoogleCloudMlV1ListLocationsResponse--; @@ -429,20 +452,20 @@ api.GoogleCloudMlV1ListLocationsResponse o) { buildCounterGoogleCloudMlV1ListLocationsResponse++; if (buildCounterGoogleCloudMlV1ListLocationsResponse < 3) { - checkUnnamed1741(o.locations); + checkUnnamed3419(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterGoogleCloudMlV1ListLocationsResponse--; } -buildUnnamed1742() { +buildUnnamed3420() { var o = new core.List<api.GoogleCloudMlV1Model>(); o.add(buildGoogleCloudMlV1Model()); o.add(buildGoogleCloudMlV1Model()); return o; } -checkUnnamed1742(core.List<api.GoogleCloudMlV1Model> o) { +checkUnnamed3420(core.List<api.GoogleCloudMlV1Model> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1Model(o[0]); checkGoogleCloudMlV1Model(o[1]); @@ -453,7 +476,7 @@ var o = new api.GoogleCloudMlV1ListModelsResponse(); buildCounterGoogleCloudMlV1ListModelsResponse++; if (buildCounterGoogleCloudMlV1ListModelsResponse < 3) { - o.models = buildUnnamed1742(); + o.models = buildUnnamed3420(); o.nextPageToken = "foo"; } buildCounterGoogleCloudMlV1ListModelsResponse--; @@ -464,20 +487,20 @@ api.GoogleCloudMlV1ListModelsResponse o) { buildCounterGoogleCloudMlV1ListModelsResponse++; if (buildCounterGoogleCloudMlV1ListModelsResponse < 3) { - checkUnnamed1742(o.models); + checkUnnamed3420(o.models); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterGoogleCloudMlV1ListModelsResponse--; } -buildUnnamed1743() { +buildUnnamed3421() { var o = new core.List<api.GoogleCloudMlV1Version>(); o.add(buildGoogleCloudMlV1Version()); o.add(buildGoogleCloudMlV1Version()); return o; } -checkUnnamed1743(core.List<api.GoogleCloudMlV1Version> o) { +checkUnnamed3421(core.List<api.GoogleCloudMlV1Version> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1Version(o[0]); checkGoogleCloudMlV1Version(o[1]); @@ -489,7 +512,7 @@ buildCounterGoogleCloudMlV1ListVersionsResponse++; if (buildCounterGoogleCloudMlV1ListVersionsResponse < 3) { o.nextPageToken = "foo"; - o.versions = buildUnnamed1743(); + o.versions = buildUnnamed3421(); } buildCounterGoogleCloudMlV1ListVersionsResponse--; return o; @@ -500,19 +523,19 @@ buildCounterGoogleCloudMlV1ListVersionsResponse++; if (buildCounterGoogleCloudMlV1ListVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1743(o.versions); + checkUnnamed3421(o.versions); } buildCounterGoogleCloudMlV1ListVersionsResponse--; } -buildUnnamed1744() { +buildUnnamed3422() { var o = new core.List<api.GoogleCloudMlV1Capability>(); o.add(buildGoogleCloudMlV1Capability()); o.add(buildGoogleCloudMlV1Capability()); return o; } -checkUnnamed1744(core.List<api.GoogleCloudMlV1Capability> o) { +checkUnnamed3422(core.List<api.GoogleCloudMlV1Capability> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1Capability(o[0]); checkGoogleCloudMlV1Capability(o[1]); @@ -523,7 +546,7 @@ var o = new api.GoogleCloudMlV1Location(); buildCounterGoogleCloudMlV1Location++; if (buildCounterGoogleCloudMlV1Location < 3) { - o.capabilities = buildUnnamed1744(); + o.capabilities = buildUnnamed3422(); o.name = "foo"; } buildCounterGoogleCloudMlV1Location--; @@ -533,7 +556,7 @@ checkGoogleCloudMlV1Location(api.GoogleCloudMlV1Location o) { buildCounterGoogleCloudMlV1Location++; if (buildCounterGoogleCloudMlV1Location < 3) { - checkUnnamed1744(o.capabilities); + checkUnnamed3422(o.capabilities); unittest.expect(o.name, unittest.equals('foo')); } buildCounterGoogleCloudMlV1Location--; @@ -558,14 +581,14 @@ buildCounterGoogleCloudMlV1ManualScaling--; } -buildUnnamed1745() { +buildUnnamed3423() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1745(core.List<core.String> o) { +checkUnnamed3423(core.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,7 +603,7 @@ o.description = "foo"; o.name = "foo"; o.onlinePredictionLogging = true; - o.regions = buildUnnamed1745(); + o.regions = buildUnnamed3423(); } buildCounterGoogleCloudMlV1Model--; return o; @@ -593,7 +616,7 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.onlinePredictionLogging, unittest.isTrue); - checkUnnamed1745(o.regions); + checkUnnamed3423(o.regions); } buildCounterGoogleCloudMlV1Model--; } @@ -631,27 +654,27 @@ buildCounterGoogleCloudMlV1OperationMetadata--; } -buildUnnamed1746() { +buildUnnamed3424() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1746(core.List<core.String> o) { +checkUnnamed3424(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1747() { +buildUnnamed3425() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed1747(core.List<core.double> o) { +checkUnnamed3425(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)); @@ -662,8 +685,8 @@ var o = new api.GoogleCloudMlV1ParameterSpec(); buildCounterGoogleCloudMlV1ParameterSpec++; if (buildCounterGoogleCloudMlV1ParameterSpec < 3) { - o.categoricalValues = buildUnnamed1746(); - o.discreteValues = buildUnnamed1747(); + o.categoricalValues = buildUnnamed3424(); + o.discreteValues = buildUnnamed3425(); o.maxValue = 42.0; o.minValue = 42.0; o.parameterName = "foo"; @@ -677,8 +700,8 @@ checkGoogleCloudMlV1ParameterSpec(api.GoogleCloudMlV1ParameterSpec o) { buildCounterGoogleCloudMlV1ParameterSpec++; if (buildCounterGoogleCloudMlV1ParameterSpec < 3) { - checkUnnamed1746(o.categoricalValues); - checkUnnamed1747(o.discreteValues); + checkUnnamed3424(o.categoricalValues); + checkUnnamed3425(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')); @@ -707,14 +730,14 @@ buildCounterGoogleCloudMlV1PredictRequest--; } -buildUnnamed1748() { +buildUnnamed3426() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1748(core.List<core.String> o) { +checkUnnamed3426(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -727,7 +750,7 @@ if (buildCounterGoogleCloudMlV1PredictionInput < 3) { o.batchSize = "foo"; o.dataFormat = "foo"; - o.inputPaths = buildUnnamed1748(); + o.inputPaths = buildUnnamed3426(); o.maxWorkerCount = "foo"; o.modelName = "foo"; o.outputPath = "foo"; @@ -746,7 +769,7 @@ if (buildCounterGoogleCloudMlV1PredictionInput < 3) { unittest.expect(o.batchSize, unittest.equals('foo')); unittest.expect(o.dataFormat, unittest.equals('foo')); - checkUnnamed1748(o.inputPaths); + checkUnnamed3426(o.inputPaths); unittest.expect(o.maxWorkerCount, unittest.equals('foo')); unittest.expect(o.modelName, unittest.equals('foo')); unittest.expect(o.outputPath, unittest.equals('foo')); @@ -800,27 +823,27 @@ buildCounterGoogleCloudMlV1SetDefaultVersionRequest--; } -buildUnnamed1749() { +buildUnnamed3427() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1749(core.List<core.String> o) { +checkUnnamed3427(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1750() { +buildUnnamed3428() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1750(core.List<core.String> o) { +checkUnnamed3428(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -831,11 +854,11 @@ var o = new api.GoogleCloudMlV1TrainingInput(); buildCounterGoogleCloudMlV1TrainingInput++; if (buildCounterGoogleCloudMlV1TrainingInput < 3) { - o.args = buildUnnamed1749(); + o.args = buildUnnamed3427(); o.hyperparameters = buildGoogleCloudMlV1HyperparameterSpec(); o.jobDir = "foo"; o.masterType = "foo"; - o.packageUris = buildUnnamed1750(); + o.packageUris = buildUnnamed3428(); o.parameterServerCount = "foo"; o.parameterServerType = "foo"; o.pythonModule = "foo"; @@ -853,11 +876,11 @@ checkGoogleCloudMlV1TrainingInput(api.GoogleCloudMlV1TrainingInput o) { buildCounterGoogleCloudMlV1TrainingInput++; if (buildCounterGoogleCloudMlV1TrainingInput < 3) { - checkUnnamed1749(o.args); + checkUnnamed3427(o.args); checkGoogleCloudMlV1HyperparameterSpec(o.hyperparameters); unittest.expect(o.jobDir, unittest.equals('foo')); unittest.expect(o.masterType, unittest.equals('foo')); - checkUnnamed1750(o.packageUris); + checkUnnamed3428(o.packageUris); unittest.expect(o.parameterServerCount, unittest.equals('foo')); unittest.expect(o.parameterServerType, unittest.equals('foo')); unittest.expect(o.pythonModule, unittest.equals('foo')); @@ -871,14 +894,14 @@ buildCounterGoogleCloudMlV1TrainingInput--; } -buildUnnamed1751() { +buildUnnamed3429() { var o = new core.List<api.GoogleCloudMlV1HyperparameterOutput>(); o.add(buildGoogleCloudMlV1HyperparameterOutput()); o.add(buildGoogleCloudMlV1HyperparameterOutput()); return o; } -checkUnnamed1751(core.List<api.GoogleCloudMlV1HyperparameterOutput> o) { +checkUnnamed3429(core.List<api.GoogleCloudMlV1HyperparameterOutput> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1HyperparameterOutput(o[0]); checkGoogleCloudMlV1HyperparameterOutput(o[1]); @@ -892,7 +915,7 @@ o.completedTrialCount = "foo"; o.consumedMLUnits = 42.0; o.isHyperparameterTuningJob = true; - o.trials = buildUnnamed1751(); + o.trials = buildUnnamed3429(); } buildCounterGoogleCloudMlV1TrainingOutput--; return o; @@ -904,7 +927,7 @@ unittest.expect(o.completedTrialCount, unittest.equals('foo')); unittest.expect(o.consumedMLUnits, unittest.equals(42.0)); unittest.expect(o.isHyperparameterTuningJob, unittest.isTrue); - checkUnnamed1751(o.trials); + checkUnnamed3429(o.trials); } buildCounterGoogleCloudMlV1TrainingOutput--; } @@ -919,10 +942,12 @@ o.deploymentUri = "foo"; o.description = "foo"; o.errorMessage = "foo"; + o.framework = "foo"; o.isDefault = true; o.lastUseTime = "foo"; o.manualScaling = buildGoogleCloudMlV1ManualScaling(); o.name = "foo"; + o.pythonVersion = "foo"; o.runtimeVersion = "foo"; o.state = "foo"; } @@ -938,24 +963,94 @@ unittest.expect(o.deploymentUri, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.errorMessage, unittest.equals('foo')); + unittest.expect(o.framework, unittest.equals('foo')); unittest.expect(o.isDefault, unittest.isTrue); unittest.expect(o.lastUseTime, unittest.equals('foo')); checkGoogleCloudMlV1ManualScaling(o.manualScaling); unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.pythonVersion, unittest.equals('foo')); unittest.expect(o.runtimeVersion, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); } buildCounterGoogleCloudMlV1Version--; } -buildUnnamed1752() { +buildUnnamed3430() { + var o = new core.List<api.GoogleIamV1AuditLogConfig>(); + o.add(buildGoogleIamV1AuditLogConfig()); + o.add(buildGoogleIamV1AuditLogConfig()); + return o; +} + +checkUnnamed3430(core.List<api.GoogleIamV1AuditLogConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleIamV1AuditLogConfig(o[0]); + checkGoogleIamV1AuditLogConfig(o[1]); +} + +core.int buildCounterGoogleIamV1AuditConfig = 0; +buildGoogleIamV1AuditConfig() { + var o = new api.GoogleIamV1AuditConfig(); + buildCounterGoogleIamV1AuditConfig++; + if (buildCounterGoogleIamV1AuditConfig < 3) { + o.auditLogConfigs = buildUnnamed3430(); + o.service = "foo"; + } + buildCounterGoogleIamV1AuditConfig--; + return o; +} + +checkGoogleIamV1AuditConfig(api.GoogleIamV1AuditConfig o) { + buildCounterGoogleIamV1AuditConfig++; + if (buildCounterGoogleIamV1AuditConfig < 3) { + checkUnnamed3430(o.auditLogConfigs); + unittest.expect(o.service, unittest.equals('foo')); + } + buildCounterGoogleIamV1AuditConfig--; +} + +buildUnnamed3431() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1752(core.List<core.String> o) { +checkUnnamed3431(core.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 buildCounterGoogleIamV1AuditLogConfig = 0; +buildGoogleIamV1AuditLogConfig() { + var o = new api.GoogleIamV1AuditLogConfig(); + buildCounterGoogleIamV1AuditLogConfig++; + if (buildCounterGoogleIamV1AuditLogConfig < 3) { + o.exemptedMembers = buildUnnamed3431(); + o.logType = "foo"; + } + buildCounterGoogleIamV1AuditLogConfig--; + return o; +} + +checkGoogleIamV1AuditLogConfig(api.GoogleIamV1AuditLogConfig o) { + buildCounterGoogleIamV1AuditLogConfig++; + if (buildCounterGoogleIamV1AuditLogConfig < 3) { + checkUnnamed3431(o.exemptedMembers); + unittest.expect(o.logType, unittest.equals('foo')); + } + buildCounterGoogleIamV1AuditLogConfig--; +} + +buildUnnamed3432() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3432(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -966,7 +1061,7 @@ var o = new api.GoogleIamV1Binding(); buildCounterGoogleIamV1Binding++; if (buildCounterGoogleIamV1Binding < 3) { - o.members = buildUnnamed1752(); + o.members = buildUnnamed3432(); o.role = "foo"; } buildCounterGoogleIamV1Binding--; @@ -976,20 +1071,33 @@ checkGoogleIamV1Binding(api.GoogleIamV1Binding o) { buildCounterGoogleIamV1Binding++; if (buildCounterGoogleIamV1Binding < 3) { - checkUnnamed1752(o.members); + checkUnnamed3432(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterGoogleIamV1Binding--; } -buildUnnamed1753() { +buildUnnamed3433() { + var o = new core.List<api.GoogleIamV1AuditConfig>(); + o.add(buildGoogleIamV1AuditConfig()); + o.add(buildGoogleIamV1AuditConfig()); + return o; +} + +checkUnnamed3433(core.List<api.GoogleIamV1AuditConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleIamV1AuditConfig(o[0]); + checkGoogleIamV1AuditConfig(o[1]); +} + +buildUnnamed3434() { var o = new core.List<api.GoogleIamV1Binding>(); o.add(buildGoogleIamV1Binding()); o.add(buildGoogleIamV1Binding()); return o; } -checkUnnamed1753(core.List<api.GoogleIamV1Binding> o) { +checkUnnamed3434(core.List<api.GoogleIamV1Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleIamV1Binding(o[0]); checkGoogleIamV1Binding(o[1]); @@ -1000,7 +1108,8 @@ var o = new api.GoogleIamV1Policy(); buildCounterGoogleIamV1Policy++; if (buildCounterGoogleIamV1Policy < 3) { - o.bindings = buildUnnamed1753(); + o.auditConfigs = buildUnnamed3433(); + o.bindings = buildUnnamed3434(); o.etag = "foo"; o.version = 42; } @@ -1011,7 +1120,8 @@ checkGoogleIamV1Policy(api.GoogleIamV1Policy o) { buildCounterGoogleIamV1Policy++; if (buildCounterGoogleIamV1Policy < 3) { - checkUnnamed1753(o.bindings); + checkUnnamed3433(o.auditConfigs); + checkUnnamed3434(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -1024,6 +1134,7 @@ buildCounterGoogleIamV1SetIamPolicyRequest++; if (buildCounterGoogleIamV1SetIamPolicyRequest < 3) { o.policy = buildGoogleIamV1Policy(); + o.updateMask = "foo"; } buildCounterGoogleIamV1SetIamPolicyRequest--; return o; @@ -1033,18 +1144,19 @@ buildCounterGoogleIamV1SetIamPolicyRequest++; if (buildCounterGoogleIamV1SetIamPolicyRequest < 3) { checkGoogleIamV1Policy(o.policy); + unittest.expect(o.updateMask, unittest.equals('foo')); } buildCounterGoogleIamV1SetIamPolicyRequest--; } -buildUnnamed1754() { +buildUnnamed3435() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1754(core.List<core.String> o) { +checkUnnamed3435(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1055,7 +1167,7 @@ var o = new api.GoogleIamV1TestIamPermissionsRequest(); buildCounterGoogleIamV1TestIamPermissionsRequest++; if (buildCounterGoogleIamV1TestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1754(); + o.permissions = buildUnnamed3435(); } buildCounterGoogleIamV1TestIamPermissionsRequest--; return o; @@ -1065,19 +1177,19 @@ api.GoogleIamV1TestIamPermissionsRequest o) { buildCounterGoogleIamV1TestIamPermissionsRequest++; if (buildCounterGoogleIamV1TestIamPermissionsRequest < 3) { - checkUnnamed1754(o.permissions); + checkUnnamed3435(o.permissions); } buildCounterGoogleIamV1TestIamPermissionsRequest--; } -buildUnnamed1755() { +buildUnnamed3436() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1755(core.List<core.String> o) { +checkUnnamed3436(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1088,7 +1200,7 @@ var o = new api.GoogleIamV1TestIamPermissionsResponse(); buildCounterGoogleIamV1TestIamPermissionsResponse++; if (buildCounterGoogleIamV1TestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1755(); + o.permissions = buildUnnamed3436(); } buildCounterGoogleIamV1TestIamPermissionsResponse--; return o; @@ -1098,19 +1210,19 @@ api.GoogleIamV1TestIamPermissionsResponse o) { buildCounterGoogleIamV1TestIamPermissionsResponse++; if (buildCounterGoogleIamV1TestIamPermissionsResponse < 3) { - checkUnnamed1755(o.permissions); + checkUnnamed3436(o.permissions); } buildCounterGoogleIamV1TestIamPermissionsResponse--; } -buildUnnamed1756() { +buildUnnamed3437() { var o = new core.List<api.GoogleLongrunningOperation>(); o.add(buildGoogleLongrunningOperation()); o.add(buildGoogleLongrunningOperation()); return o; } -checkUnnamed1756(core.List<api.GoogleLongrunningOperation> o) { +checkUnnamed3437(core.List<api.GoogleLongrunningOperation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleLongrunningOperation(o[0]); checkGoogleLongrunningOperation(o[1]); @@ -1122,7 +1234,7 @@ buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1756(); + o.operations = buildUnnamed3437(); } buildCounterGoogleLongrunningListOperationsResponse--; return o; @@ -1133,12 +1245,12 @@ buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1756(o.operations); + checkUnnamed3437(o.operations); } buildCounterGoogleLongrunningListOperationsResponse--; } -buildUnnamed1757() { +buildUnnamed3438() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1153,7 +1265,7 @@ return o; } -checkUnnamed1757(core.Map<core.String, core.Object> o) { +checkUnnamed3438(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)); @@ -1167,7 +1279,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed1758() { +buildUnnamed3439() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1182,7 +1294,7 @@ return o; } -checkUnnamed1758(core.Map<core.String, core.Object> o) { +checkUnnamed3439(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)); @@ -1203,9 +1315,9 @@ if (buildCounterGoogleLongrunningOperation < 3) { o.done = true; o.error = buildGoogleRpcStatus(); - o.metadata = buildUnnamed1757(); + o.metadata = buildUnnamed3438(); o.name = "foo"; - o.response = buildUnnamed1758(); + o.response = buildUnnamed3439(); } buildCounterGoogleLongrunningOperation--; return o; @@ -1216,9 +1328,9 @@ if (buildCounterGoogleLongrunningOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkGoogleRpcStatus(o.error); - checkUnnamed1757(o.metadata); + checkUnnamed3438(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1758(o.response); + checkUnnamed3439(o.response); } buildCounterGoogleLongrunningOperation--; } @@ -1238,7 +1350,7 @@ buildCounterGoogleProtobufEmpty--; } -buildUnnamed1759() { +buildUnnamed3440() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1253,7 +1365,7 @@ return o; } -checkUnnamed1759(core.Map<core.String, core.Object> o) { +checkUnnamed3440(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)); @@ -1267,17 +1379,17 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed1760() { +buildUnnamed3441() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1759()); - o.add(buildUnnamed1759()); + o.add(buildUnnamed3440()); + o.add(buildUnnamed3440()); return o; } -checkUnnamed1760(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3441(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1759(o[0]); - checkUnnamed1759(o[1]); + checkUnnamed3440(o[0]); + checkUnnamed3440(o[1]); } core.int buildCounterGoogleRpcStatus = 0; @@ -1286,7 +1398,7 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { o.code = 42; - o.details = buildUnnamed1760(); + o.details = buildUnnamed3441(); o.message = "foo"; } buildCounterGoogleRpcStatus--; @@ -1297,7 +1409,7 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1760(o.details); + checkUnnamed3441(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterGoogleRpcStatus--; @@ -1347,6 +1459,14 @@ }); }); + unittest.group("obj-schema-GoogleCloudMlV1Config", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1Config(); + var od = new api.GoogleCloudMlV1Config.fromJson(o.toJson()); + checkGoogleCloudMlV1Config(od); + }); + }); + unittest.group("obj-schema-GoogleCloudMlV1GetConfigResponse", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudMlV1GetConfigResponse(); @@ -1509,6 +1629,22 @@ }); }); + unittest.group("obj-schema-GoogleIamV1AuditConfig", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleIamV1AuditConfig(); + var od = new api.GoogleIamV1AuditConfig.fromJson(o.toJson()); + checkGoogleIamV1AuditConfig(od); + }); + }); + + unittest.group("obj-schema-GoogleIamV1AuditLogConfig", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleIamV1AuditLogConfig(); + var od = new api.GoogleIamV1AuditLogConfig.fromJson(o.toJson()); + checkGoogleIamV1AuditLogConfig(od); + }); + }); + unittest.group("obj-schema-GoogleIamV1Binding", () { unittest.test("to-json--from-json", () { var o = buildGoogleIamV1Binding(); @@ -1909,9 +2045,9 @@ 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"; - var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1944,11 +2080,11 @@ 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)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1959,9 +2095,9 @@ }), true); res .list(arg_parent, + pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken, - pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudMlV1ListJobsResponse(response); @@ -2138,8 +2274,8 @@ api.ProjectsLocationsResourceApi res = new api.MlApi(mock).projects.locations; var arg_parent = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2172,10 +2308,10 @@ 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(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2187,8 +2323,8 @@ }), true); res .list(arg_parent, - pageSize: arg_pageSize, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudMlV1ListLocationsResponse(response); @@ -2409,9 +2545,9 @@ var mock = new HttpServerMock(); api.ProjectsModelsResourceApi res = new api.MlApi(mock).projects.models; var arg_parent = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2444,11 +2580,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2460,9 +2596,9 @@ }), true); res .list(arg_parent, + filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, - filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudMlV1ListModelsResponse(response); @@ -2806,9 +2942,9 @@ api.ProjectsModelsVersionsResourceApi res = new api.MlApi(mock).projects.models.versions; var arg_parent = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2841,11 +2977,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2857,9 +2993,9 @@ }), true); res .list(arg_parent, + filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, - filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudMlV1ListVersionsResponse(response); @@ -3146,9 +3282,9 @@ api.ProjectsOperationsResourceApi res = new api.MlApi(mock).projects.operations; var arg_name = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3181,11 +3317,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3197,9 +3333,9 @@ }), true); res .list(arg_name, + filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, - filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleLongrunningListOperationsResponse(response);
diff --git a/generated/googleapis/test/monitoring/v3_test.dart b/generated/googleapis/test/monitoring/v3_test.dart index d8a07d2..0f47e02 100644 --- a/generated/googleapis/test/monitoring/v3_test.dart +++ b/generated/googleapis/test/monitoring/v3_test.dart
@@ -50,6 +50,120 @@ return new http.StreamedResponse(stream, status, headers: headers); } +buildUnnamed3720() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3720(core.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 buildCounterAggregation = 0; +buildAggregation() { + var o = new api.Aggregation(); + buildCounterAggregation++; + if (buildCounterAggregation < 3) { + o.alignmentPeriod = "foo"; + o.crossSeriesReducer = "foo"; + o.groupByFields = buildUnnamed3720(); + o.perSeriesAligner = "foo"; + } + buildCounterAggregation--; + return o; +} + +checkAggregation(api.Aggregation o) { + buildCounterAggregation++; + if (buildCounterAggregation < 3) { + unittest.expect(o.alignmentPeriod, unittest.equals('foo')); + unittest.expect(o.crossSeriesReducer, unittest.equals('foo')); + checkUnnamed3720(o.groupByFields); + unittest.expect(o.perSeriesAligner, unittest.equals('foo')); + } + buildCounterAggregation--; +} + +buildUnnamed3721() { + var o = new core.List<api.Condition>(); + o.add(buildCondition()); + o.add(buildCondition()); + return o; +} + +checkUnnamed3721(core.List<api.Condition> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCondition(o[0]); + checkCondition(o[1]); +} + +buildUnnamed3722() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed3723() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed3723(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 buildCounterAlertPolicy = 0; +buildAlertPolicy() { + var o = new api.AlertPolicy(); + buildCounterAlertPolicy++; + if (buildCounterAlertPolicy < 3) { + o.combiner = "foo"; + o.conditions = buildUnnamed3721(); + o.creationRecord = buildMutationRecord(); + o.displayName = "foo"; + o.documentation = buildDocumentation(); + o.enabled = true; + o.mutationRecord = buildMutationRecord(); + o.name = "foo"; + o.notificationChannels = buildUnnamed3722(); + o.userLabels = buildUnnamed3723(); + } + buildCounterAlertPolicy--; + return o; +} + +checkAlertPolicy(api.AlertPolicy o) { + buildCounterAlertPolicy++; + if (buildCounterAlertPolicy < 3) { + unittest.expect(o.combiner, unittest.equals('foo')); + checkUnnamed3721(o.conditions); + checkMutationRecord(o.creationRecord); + unittest.expect(o.displayName, unittest.equals('foo')); + checkDocumentation(o.documentation); + unittest.expect(o.enabled, unittest.isTrue); + checkMutationRecord(o.mutationRecord); + unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed3722(o.notificationChannels); + checkUnnamed3723(o.userLabels); + } + buildCounterAlertPolicy--; +} + core.int buildCounterBasicAuthentication = 0; buildBasicAuthentication() { var o = new api.BasicAuthentication(); @@ -94,27 +208,27 @@ buildCounterBucketOptions--; } -buildUnnamed1292() { +buildUnnamed3724() { var o = new core.Map<core.String, api.TypedValue>(); o["x"] = buildTypedValue(); o["y"] = buildTypedValue(); return o; } -checkUnnamed1292(core.Map<core.String, api.TypedValue> o) { +checkUnnamed3724(core.Map<core.String, api.TypedValue> o) { unittest.expect(o, unittest.hasLength(2)); checkTypedValue(o["x"]); checkTypedValue(o["y"]); } -buildUnnamed1293() { +buildUnnamed3725() { var o = new core.List<api.CollectdValue>(); o.add(buildCollectdValue()); o.add(buildCollectdValue()); return o; } -checkUnnamed1293(core.List<api.CollectdValue> o) { +checkUnnamed3725(core.List<api.CollectdValue> o) { unittest.expect(o, unittest.hasLength(2)); checkCollectdValue(o[0]); checkCollectdValue(o[1]); @@ -126,13 +240,13 @@ buildCounterCollectdPayload++; if (buildCounterCollectdPayload < 3) { o.endTime = "foo"; - o.metadata = buildUnnamed1292(); + o.metadata = buildUnnamed3724(); o.plugin = "foo"; o.pluginInstance = "foo"; o.startTime = "foo"; o.type = "foo"; o.typeInstance = "foo"; - o.values = buildUnnamed1293(); + o.values = buildUnnamed3725(); } buildCounterCollectdPayload--; return o; @@ -142,25 +256,25 @@ buildCounterCollectdPayload++; if (buildCounterCollectdPayload < 3) { unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed1292(o.metadata); + checkUnnamed3724(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')); - checkUnnamed1293(o.values); + checkUnnamed3725(o.values); } buildCounterCollectdPayload--; } -buildUnnamed1294() { +buildUnnamed3726() { var o = new core.List<api.CollectdValueError>(); o.add(buildCollectdValueError()); o.add(buildCollectdValueError()); return o; } -checkUnnamed1294(core.List<api.CollectdValueError> o) { +checkUnnamed3726(core.List<api.CollectdValueError> o) { unittest.expect(o, unittest.hasLength(2)); checkCollectdValueError(o[0]); checkCollectdValueError(o[1]); @@ -173,7 +287,7 @@ if (buildCounterCollectdPayloadError < 3) { o.error = buildStatus(); o.index = 42; - o.valueErrors = buildUnnamed1294(); + o.valueErrors = buildUnnamed3726(); } buildCounterCollectdPayloadError--; return o; @@ -184,7 +298,7 @@ if (buildCounterCollectdPayloadError < 3) { checkStatus(o.error); unittest.expect(o.index, unittest.equals(42)); - checkUnnamed1294(o.valueErrors); + checkUnnamed3726(o.valueErrors); } buildCounterCollectdPayloadError--; } @@ -233,6 +347,31 @@ buildCounterCollectdValueError--; } +core.int buildCounterCondition = 0; +buildCondition() { + var o = new api.Condition(); + buildCounterCondition++; + if (buildCounterCondition < 3) { + o.conditionAbsent = buildMetricAbsence(); + o.conditionThreshold = buildMetricThreshold(); + o.displayName = "foo"; + o.name = "foo"; + } + buildCounterCondition--; + return o; +} + +checkCondition(api.Condition o) { + buildCounterCondition++; + if (buildCounterCondition < 3) { + checkMetricAbsence(o.conditionAbsent); + checkMetricThreshold(o.conditionThreshold); + unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterCondition--; +} + core.int buildCounterContentMatcher = 0; buildContentMatcher() { var o = new api.ContentMatcher(); @@ -252,14 +391,14 @@ buildCounterContentMatcher--; } -buildUnnamed1295() { +buildUnnamed3727() { var o = new core.List<api.CollectdPayload>(); o.add(buildCollectdPayload()); o.add(buildCollectdPayload()); return o; } -checkUnnamed1295(core.List<api.CollectdPayload> o) { +checkUnnamed3727(core.List<api.CollectdPayload> o) { unittest.expect(o, unittest.hasLength(2)); checkCollectdPayload(o[0]); checkCollectdPayload(o[1]); @@ -270,7 +409,7 @@ var o = new api.CreateCollectdTimeSeriesRequest(); buildCounterCreateCollectdTimeSeriesRequest++; if (buildCounterCreateCollectdTimeSeriesRequest < 3) { - o.collectdPayloads = buildUnnamed1295(); + o.collectdPayloads = buildUnnamed3727(); o.collectdVersion = "foo"; o.resource = buildMonitoredResource(); } @@ -281,21 +420,21 @@ checkCreateCollectdTimeSeriesRequest(api.CreateCollectdTimeSeriesRequest o) { buildCounterCreateCollectdTimeSeriesRequest++; if (buildCounterCreateCollectdTimeSeriesRequest < 3) { - checkUnnamed1295(o.collectdPayloads); + checkUnnamed3727(o.collectdPayloads); unittest.expect(o.collectdVersion, unittest.equals('foo')); checkMonitoredResource(o.resource); } buildCounterCreateCollectdTimeSeriesRequest--; } -buildUnnamed1296() { +buildUnnamed3728() { var o = new core.List<api.CollectdPayloadError>(); o.add(buildCollectdPayloadError()); o.add(buildCollectdPayloadError()); return o; } -checkUnnamed1296(core.List<api.CollectdPayloadError> o) { +checkUnnamed3728(core.List<api.CollectdPayloadError> o) { unittest.expect(o, unittest.hasLength(2)); checkCollectdPayloadError(o[0]); checkCollectdPayloadError(o[1]); @@ -306,7 +445,7 @@ var o = new api.CreateCollectdTimeSeriesResponse(); buildCounterCreateCollectdTimeSeriesResponse++; if (buildCounterCreateCollectdTimeSeriesResponse < 3) { - o.payloadErrors = buildUnnamed1296(); + o.payloadErrors = buildUnnamed3728(); } buildCounterCreateCollectdTimeSeriesResponse--; return o; @@ -315,19 +454,19 @@ checkCreateCollectdTimeSeriesResponse(api.CreateCollectdTimeSeriesResponse o) { buildCounterCreateCollectdTimeSeriesResponse++; if (buildCounterCreateCollectdTimeSeriesResponse < 3) { - checkUnnamed1296(o.payloadErrors); + checkUnnamed3728(o.payloadErrors); } buildCounterCreateCollectdTimeSeriesResponse--; } -buildUnnamed1297() { +buildUnnamed3729() { var o = new core.List<api.TimeSeries>(); o.add(buildTimeSeries()); o.add(buildTimeSeries()); return o; } -checkUnnamed1297(core.List<api.TimeSeries> o) { +checkUnnamed3729(core.List<api.TimeSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkTimeSeries(o[0]); checkTimeSeries(o[1]); @@ -338,7 +477,7 @@ var o = new api.CreateTimeSeriesRequest(); buildCounterCreateTimeSeriesRequest++; if (buildCounterCreateTimeSeriesRequest < 3) { - o.timeSeries = buildUnnamed1297(); + o.timeSeries = buildUnnamed3729(); } buildCounterCreateTimeSeriesRequest--; return o; @@ -347,32 +486,46 @@ checkCreateTimeSeriesRequest(api.CreateTimeSeriesRequest o) { buildCounterCreateTimeSeriesRequest++; if (buildCounterCreateTimeSeriesRequest < 3) { - checkUnnamed1297(o.timeSeries); + checkUnnamed3729(o.timeSeries); } buildCounterCreateTimeSeriesRequest--; } -buildUnnamed1298() { +buildUnnamed3730() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1298(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')); } +buildUnnamed3731() { + var o = new core.List<api.Exemplar>(); + o.add(buildExemplar()); + o.add(buildExemplar()); + return o; +} + +checkUnnamed3731(core.List<api.Exemplar> o) { + unittest.expect(o, unittest.hasLength(2)); + checkExemplar(o[0]); + checkExemplar(o[1]); +} + core.int buildCounterDistribution = 0; buildDistribution() { var o = new api.Distribution(); buildCounterDistribution++; if (buildCounterDistribution < 3) { - o.bucketCounts = buildUnnamed1298(); + o.bucketCounts = buildUnnamed3730(); o.bucketOptions = buildBucketOptions(); o.count = "foo"; + o.exemplars = buildUnnamed3731(); o.mean = 42.0; o.range = buildRange(); o.sumOfSquaredDeviation = 42.0; @@ -384,9 +537,10 @@ checkDistribution(api.Distribution o) { buildCounterDistribution++; if (buildCounterDistribution < 3) { - checkUnnamed1298(o.bucketCounts); + checkUnnamed3730(o.bucketCounts); checkBucketOptions(o.bucketOptions); unittest.expect(o.count, unittest.equals('foo')); + checkUnnamed3731(o.exemplars); unittest.expect(o.mean, unittest.equals(42.0)); checkRange(o.range); unittest.expect(o.sumOfSquaredDeviation, unittest.equals(42.0)); @@ -394,6 +548,27 @@ buildCounterDistribution--; } +core.int buildCounterDocumentation = 0; +buildDocumentation() { + var o = new api.Documentation(); + buildCounterDocumentation++; + if (buildCounterDocumentation < 3) { + o.content = "foo"; + o.mimeType = "foo"; + } + buildCounterDocumentation--; + return o; +} + +checkDocumentation(api.Documentation o) { + buildCounterDocumentation++; + if (buildCounterDocumentation < 3) { + unittest.expect(o.content, unittest.equals('foo')); + unittest.expect(o.mimeType, unittest.equals('foo')); + } + buildCounterDocumentation--; +} + core.int buildCounterEmpty = 0; buildEmpty() { var o = new api.Empty(); @@ -409,14 +584,79 @@ buildCounterEmpty--; } -buildUnnamed1299() { +buildUnnamed3732() { + 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; +} + +checkUnnamed3732(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')); +} + +buildUnnamed3733() { + var o = new core.List<core.Map<core.String, core.Object>>(); + o.add(buildUnnamed3732()); + o.add(buildUnnamed3732()); + return o; +} + +checkUnnamed3733(core.List<core.Map<core.String, core.Object>> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed3732(o[0]); + checkUnnamed3732(o[1]); +} + +core.int buildCounterExemplar = 0; +buildExemplar() { + var o = new api.Exemplar(); + buildCounterExemplar++; + if (buildCounterExemplar < 3) { + o.attachments = buildUnnamed3733(); + o.timestamp = "foo"; + o.value = 42.0; + } + buildCounterExemplar--; + return o; +} + +checkExemplar(api.Exemplar o) { + buildCounterExemplar++; + if (buildCounterExemplar < 3) { + checkUnnamed3733(o.attachments); + unittest.expect(o.timestamp, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals(42.0)); + } + buildCounterExemplar--; +} + +buildUnnamed3734() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed1299(core.List<core.double> o) { +checkUnnamed3734(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)); @@ -427,7 +667,7 @@ var o = new api.Explicit(); buildCounterExplicit++; if (buildCounterExplicit < 3) { - o.bounds = buildUnnamed1299(); + o.bounds = buildUnnamed3734(); } buildCounterExplicit--; return o; @@ -436,7 +676,7 @@ checkExplicit(api.Explicit o) { buildCounterExplicit++; if (buildCounterExplicit < 3) { - checkUnnamed1299(o.bounds); + checkUnnamed3734(o.bounds); } buildCounterExplicit--; } @@ -464,14 +704,14 @@ buildCounterExponential--; } -buildUnnamed1300() { +buildUnnamed3735() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1300(core.List<api.Option> o) { +checkUnnamed3735(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -489,7 +729,7 @@ o.name = "foo"; o.number = 42; o.oneofIndex = 42; - o.options = buildUnnamed1300(); + o.options = buildUnnamed3735(); o.packed = true; o.typeUrl = "foo"; } @@ -507,13 +747,55 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); unittest.expect(o.oneofIndex, unittest.equals(42)); - checkUnnamed1300(o.options); + checkUnnamed3735(o.options); unittest.expect(o.packed, unittest.isTrue); unittest.expect(o.typeUrl, unittest.equals('foo')); } buildCounterField--; } +core.int buildCounterGetNotificationChannelVerificationCodeRequest = 0; +buildGetNotificationChannelVerificationCodeRequest() { + var o = new api.GetNotificationChannelVerificationCodeRequest(); + buildCounterGetNotificationChannelVerificationCodeRequest++; + if (buildCounterGetNotificationChannelVerificationCodeRequest < 3) { + o.expireTime = "foo"; + } + buildCounterGetNotificationChannelVerificationCodeRequest--; + return o; +} + +checkGetNotificationChannelVerificationCodeRequest( + api.GetNotificationChannelVerificationCodeRequest o) { + buildCounterGetNotificationChannelVerificationCodeRequest++; + if (buildCounterGetNotificationChannelVerificationCodeRequest < 3) { + unittest.expect(o.expireTime, unittest.equals('foo')); + } + buildCounterGetNotificationChannelVerificationCodeRequest--; +} + +core.int buildCounterGetNotificationChannelVerificationCodeResponse = 0; +buildGetNotificationChannelVerificationCodeResponse() { + var o = new api.GetNotificationChannelVerificationCodeResponse(); + buildCounterGetNotificationChannelVerificationCodeResponse++; + if (buildCounterGetNotificationChannelVerificationCodeResponse < 3) { + o.code = "foo"; + o.expireTime = "foo"; + } + buildCounterGetNotificationChannelVerificationCodeResponse--; + return o; +} + +checkGetNotificationChannelVerificationCodeResponse( + api.GetNotificationChannelVerificationCodeResponse o) { + buildCounterGetNotificationChannelVerificationCodeResponse++; + if (buildCounterGetNotificationChannelVerificationCodeResponse < 3) { + unittest.expect(o.code, unittest.equals('foo')); + unittest.expect(o.expireTime, unittest.equals('foo')); + } + buildCounterGetNotificationChannelVerificationCodeResponse--; +} + core.int buildCounterGroup = 0; buildGroup() { var o = new api.Group(); @@ -541,14 +823,14 @@ buildCounterGroup--; } -buildUnnamed1301() { +buildUnnamed3736() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1301(core.Map<core.String, core.String> o) { +checkUnnamed3736(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')); @@ -560,7 +842,7 @@ buildCounterHttpCheck++; if (buildCounterHttpCheck < 3) { o.authInfo = buildBasicAuthentication(); - o.headers = buildUnnamed1301(); + o.headers = buildUnnamed3736(); o.maskHeaders = true; o.path = "foo"; o.port = 42; @@ -574,7 +856,7 @@ buildCounterHttpCheck++; if (buildCounterHttpCheck < 3) { checkBasicAuthentication(o.authInfo); - checkUnnamed1301(o.headers); + checkUnnamed3736(o.headers); unittest.expect(o.maskHeaders, unittest.isTrue); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.port, unittest.equals(42)); @@ -656,14 +938,48 @@ buildCounterLinear--; } -buildUnnamed1302() { +buildUnnamed3737() { + var o = new core.List<api.AlertPolicy>(); + o.add(buildAlertPolicy()); + o.add(buildAlertPolicy()); + return o; +} + +checkUnnamed3737(core.List<api.AlertPolicy> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAlertPolicy(o[0]); + checkAlertPolicy(o[1]); +} + +core.int buildCounterListAlertPoliciesResponse = 0; +buildListAlertPoliciesResponse() { + var o = new api.ListAlertPoliciesResponse(); + buildCounterListAlertPoliciesResponse++; + if (buildCounterListAlertPoliciesResponse < 3) { + o.alertPolicies = buildUnnamed3737(); + o.nextPageToken = "foo"; + } + buildCounterListAlertPoliciesResponse--; + return o; +} + +checkListAlertPoliciesResponse(api.ListAlertPoliciesResponse o) { + buildCounterListAlertPoliciesResponse++; + if (buildCounterListAlertPoliciesResponse < 3) { + checkUnnamed3737(o.alertPolicies); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListAlertPoliciesResponse--; +} + +buildUnnamed3738() { var o = new core.List<api.MonitoredResource>(); o.add(buildMonitoredResource()); o.add(buildMonitoredResource()); return o; } -checkUnnamed1302(core.List<api.MonitoredResource> o) { +checkUnnamed3738(core.List<api.MonitoredResource> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResource(o[0]); checkMonitoredResource(o[1]); @@ -674,7 +990,7 @@ var o = new api.ListGroupMembersResponse(); buildCounterListGroupMembersResponse++; if (buildCounterListGroupMembersResponse < 3) { - o.members = buildUnnamed1302(); + o.members = buildUnnamed3738(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -685,21 +1001,21 @@ checkListGroupMembersResponse(api.ListGroupMembersResponse o) { buildCounterListGroupMembersResponse++; if (buildCounterListGroupMembersResponse < 3) { - checkUnnamed1302(o.members); + checkUnnamed3738(o.members); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListGroupMembersResponse--; } -buildUnnamed1303() { +buildUnnamed3739() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed1303(core.List<api.Group> o) { +checkUnnamed3739(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -710,7 +1026,7 @@ var o = new api.ListGroupsResponse(); buildCounterListGroupsResponse++; if (buildCounterListGroupsResponse < 3) { - o.group = buildUnnamed1303(); + o.group = buildUnnamed3739(); o.nextPageToken = "foo"; } buildCounterListGroupsResponse--; @@ -720,20 +1036,20 @@ checkListGroupsResponse(api.ListGroupsResponse o) { buildCounterListGroupsResponse++; if (buildCounterListGroupsResponse < 3) { - checkUnnamed1303(o.group); + checkUnnamed3739(o.group); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListGroupsResponse--; } -buildUnnamed1304() { +buildUnnamed3740() { var o = new core.List<api.MetricDescriptor>(); o.add(buildMetricDescriptor()); o.add(buildMetricDescriptor()); return o; } -checkUnnamed1304(core.List<api.MetricDescriptor> o) { +checkUnnamed3740(core.List<api.MetricDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricDescriptor(o[0]); checkMetricDescriptor(o[1]); @@ -744,7 +1060,7 @@ var o = new api.ListMetricDescriptorsResponse(); buildCounterListMetricDescriptorsResponse++; if (buildCounterListMetricDescriptorsResponse < 3) { - o.metricDescriptors = buildUnnamed1304(); + o.metricDescriptors = buildUnnamed3740(); o.nextPageToken = "foo"; } buildCounterListMetricDescriptorsResponse--; @@ -754,20 +1070,20 @@ checkListMetricDescriptorsResponse(api.ListMetricDescriptorsResponse o) { buildCounterListMetricDescriptorsResponse++; if (buildCounterListMetricDescriptorsResponse < 3) { - checkUnnamed1304(o.metricDescriptors); + checkUnnamed3740(o.metricDescriptors); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListMetricDescriptorsResponse--; } -buildUnnamed1305() { +buildUnnamed3741() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed1305(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed3741(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); @@ -779,7 +1095,7 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { o.nextPageToken = "foo"; - o.resourceDescriptors = buildUnnamed1305(); + o.resourceDescriptors = buildUnnamed3741(); } buildCounterListMonitoredResourceDescriptorsResponse--; return o; @@ -790,19 +1106,101 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1305(o.resourceDescriptors); + checkUnnamed3741(o.resourceDescriptors); } buildCounterListMonitoredResourceDescriptorsResponse--; } -buildUnnamed1306() { +buildUnnamed3742() { + var o = new core.List<api.NotificationChannelDescriptor>(); + o.add(buildNotificationChannelDescriptor()); + o.add(buildNotificationChannelDescriptor()); + return o; +} + +checkUnnamed3742(core.List<api.NotificationChannelDescriptor> o) { + unittest.expect(o, unittest.hasLength(2)); + checkNotificationChannelDescriptor(o[0]); + checkNotificationChannelDescriptor(o[1]); +} + +core.int buildCounterListNotificationChannelDescriptorsResponse = 0; +buildListNotificationChannelDescriptorsResponse() { + var o = new api.ListNotificationChannelDescriptorsResponse(); + buildCounterListNotificationChannelDescriptorsResponse++; + if (buildCounterListNotificationChannelDescriptorsResponse < 3) { + o.channelDescriptors = buildUnnamed3742(); + o.nextPageToken = "foo"; + } + buildCounterListNotificationChannelDescriptorsResponse--; + return o; +} + +checkListNotificationChannelDescriptorsResponse( + api.ListNotificationChannelDescriptorsResponse o) { + buildCounterListNotificationChannelDescriptorsResponse++; + if (buildCounterListNotificationChannelDescriptorsResponse < 3) { + checkUnnamed3742(o.channelDescriptors); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListNotificationChannelDescriptorsResponse--; +} + +buildUnnamed3743() { + var o = new core.List<api.NotificationChannel>(); + o.add(buildNotificationChannel()); + o.add(buildNotificationChannel()); + return o; +} + +checkUnnamed3743(core.List<api.NotificationChannel> o) { + unittest.expect(o, unittest.hasLength(2)); + checkNotificationChannel(o[0]); + checkNotificationChannel(o[1]); +} + +core.int buildCounterListNotificationChannelsResponse = 0; +buildListNotificationChannelsResponse() { + var o = new api.ListNotificationChannelsResponse(); + buildCounterListNotificationChannelsResponse++; + if (buildCounterListNotificationChannelsResponse < 3) { + o.nextPageToken = "foo"; + o.notificationChannels = buildUnnamed3743(); + } + buildCounterListNotificationChannelsResponse--; + return o; +} + +checkListNotificationChannelsResponse(api.ListNotificationChannelsResponse o) { + buildCounterListNotificationChannelsResponse++; + if (buildCounterListNotificationChannelsResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed3743(o.notificationChannels); + } + buildCounterListNotificationChannelsResponse--; +} + +buildUnnamed3744() { + var o = new core.List<api.Status>(); + o.add(buildStatus()); + o.add(buildStatus()); + return o; +} + +checkUnnamed3744(core.List<api.Status> o) { + unittest.expect(o, unittest.hasLength(2)); + checkStatus(o[0]); + checkStatus(o[1]); +} + +buildUnnamed3745() { var o = new core.List<api.TimeSeries>(); o.add(buildTimeSeries()); o.add(buildTimeSeries()); return o; } -checkUnnamed1306(core.List<api.TimeSeries> o) { +checkUnnamed3745(core.List<api.TimeSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkTimeSeries(o[0]); checkTimeSeries(o[1]); @@ -813,8 +1211,9 @@ var o = new api.ListTimeSeriesResponse(); buildCounterListTimeSeriesResponse++; if (buildCounterListTimeSeriesResponse < 3) { + o.executionErrors = buildUnnamed3744(); o.nextPageToken = "foo"; - o.timeSeries = buildUnnamed1306(); + o.timeSeries = buildUnnamed3745(); } buildCounterListTimeSeriesResponse--; return o; @@ -823,20 +1222,21 @@ checkListTimeSeriesResponse(api.ListTimeSeriesResponse o) { buildCounterListTimeSeriesResponse++; if (buildCounterListTimeSeriesResponse < 3) { + checkUnnamed3744(o.executionErrors); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1306(o.timeSeries); + checkUnnamed3745(o.timeSeries); } buildCounterListTimeSeriesResponse--; } -buildUnnamed1307() { +buildUnnamed3746() { var o = new core.List<api.UptimeCheckConfig>(); o.add(buildUptimeCheckConfig()); o.add(buildUptimeCheckConfig()); return o; } -checkUnnamed1307(core.List<api.UptimeCheckConfig> o) { +checkUnnamed3746(core.List<api.UptimeCheckConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkUptimeCheckConfig(o[0]); checkUptimeCheckConfig(o[1]); @@ -849,7 +1249,7 @@ if (buildCounterListUptimeCheckConfigsResponse < 3) { o.nextPageToken = "foo"; o.totalSize = 42; - o.uptimeCheckConfigs = buildUnnamed1307(); + o.uptimeCheckConfigs = buildUnnamed3746(); } buildCounterListUptimeCheckConfigsResponse--; return o; @@ -860,19 +1260,19 @@ if (buildCounterListUptimeCheckConfigsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); - checkUnnamed1307(o.uptimeCheckConfigs); + checkUnnamed3746(o.uptimeCheckConfigs); } buildCounterListUptimeCheckConfigsResponse--; } -buildUnnamed1308() { +buildUnnamed3747() { var o = new core.List<api.UptimeCheckIp>(); o.add(buildUptimeCheckIp()); o.add(buildUptimeCheckIp()); return o; } -checkUnnamed1308(core.List<api.UptimeCheckIp> o) { +checkUnnamed3747(core.List<api.UptimeCheckIp> o) { unittest.expect(o, unittest.hasLength(2)); checkUptimeCheckIp(o[0]); checkUptimeCheckIp(o[1]); @@ -884,7 +1284,7 @@ buildCounterListUptimeCheckIpsResponse++; if (buildCounterListUptimeCheckIpsResponse < 3) { o.nextPageToken = "foo"; - o.uptimeCheckIps = buildUnnamed1308(); + o.uptimeCheckIps = buildUnnamed3747(); } buildCounterListUptimeCheckIpsResponse--; return o; @@ -894,19 +1294,19 @@ buildCounterListUptimeCheckIpsResponse++; if (buildCounterListUptimeCheckIpsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1308(o.uptimeCheckIps); + checkUnnamed3747(o.uptimeCheckIps); } buildCounterListUptimeCheckIpsResponse--; } -buildUnnamed1309() { +buildUnnamed3748() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1309(core.Map<core.String, core.String> o) { +checkUnnamed3748(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')); @@ -917,7 +1317,7 @@ var o = new api.Metric(); buildCounterMetric++; if (buildCounterMetric < 3) { - o.labels = buildUnnamed1309(); + o.labels = buildUnnamed3748(); o.type = "foo"; } buildCounterMetric--; @@ -927,20 +1327,58 @@ checkMetric(api.Metric o) { buildCounterMetric++; if (buildCounterMetric < 3) { - checkUnnamed1309(o.labels); + checkUnnamed3748(o.labels); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMetric--; } -buildUnnamed1310() { +buildUnnamed3749() { + var o = new core.List<api.Aggregation>(); + o.add(buildAggregation()); + o.add(buildAggregation()); + return o; +} + +checkUnnamed3749(core.List<api.Aggregation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAggregation(o[0]); + checkAggregation(o[1]); +} + +core.int buildCounterMetricAbsence = 0; +buildMetricAbsence() { + var o = new api.MetricAbsence(); + buildCounterMetricAbsence++; + if (buildCounterMetricAbsence < 3) { + o.aggregations = buildUnnamed3749(); + o.duration = "foo"; + o.filter = "foo"; + o.trigger = buildTrigger(); + } + buildCounterMetricAbsence--; + return o; +} + +checkMetricAbsence(api.MetricAbsence o) { + buildCounterMetricAbsence++; + if (buildCounterMetricAbsence < 3) { + checkUnnamed3749(o.aggregations); + unittest.expect(o.duration, unittest.equals('foo')); + unittest.expect(o.filter, unittest.equals('foo')); + checkTrigger(o.trigger); + } + buildCounterMetricAbsence--; +} + +buildUnnamed3750() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1310(core.List<api.LabelDescriptor> o) { +checkUnnamed3750(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -953,7 +1391,7 @@ if (buildCounterMetricDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1310(); + o.labels = buildUnnamed3750(); o.metricKind = "foo"; o.name = "foo"; o.type = "foo"; @@ -969,7 +1407,7 @@ if (buildCounterMetricDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1310(o.labels); + checkUnnamed3750(o.labels); unittest.expect(o.metricKind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -979,14 +1417,73 @@ buildCounterMetricDescriptor--; } -buildUnnamed1311() { +buildUnnamed3751() { + var o = new core.List<api.Aggregation>(); + o.add(buildAggregation()); + o.add(buildAggregation()); + return o; +} + +checkUnnamed3751(core.List<api.Aggregation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAggregation(o[0]); + checkAggregation(o[1]); +} + +buildUnnamed3752() { + var o = new core.List<api.Aggregation>(); + o.add(buildAggregation()); + o.add(buildAggregation()); + return o; +} + +checkUnnamed3752(core.List<api.Aggregation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAggregation(o[0]); + checkAggregation(o[1]); +} + +core.int buildCounterMetricThreshold = 0; +buildMetricThreshold() { + var o = new api.MetricThreshold(); + buildCounterMetricThreshold++; + if (buildCounterMetricThreshold < 3) { + o.aggregations = buildUnnamed3751(); + o.comparison = "foo"; + o.denominatorAggregations = buildUnnamed3752(); + o.denominatorFilter = "foo"; + o.duration = "foo"; + o.filter = "foo"; + o.thresholdValue = 42.0; + o.trigger = buildTrigger(); + } + buildCounterMetricThreshold--; + return o; +} + +checkMetricThreshold(api.MetricThreshold o) { + buildCounterMetricThreshold++; + if (buildCounterMetricThreshold < 3) { + checkUnnamed3751(o.aggregations); + unittest.expect(o.comparison, unittest.equals('foo')); + checkUnnamed3752(o.denominatorAggregations); + unittest.expect(o.denominatorFilter, unittest.equals('foo')); + unittest.expect(o.duration, unittest.equals('foo')); + unittest.expect(o.filter, unittest.equals('foo')); + unittest.expect(o.thresholdValue, unittest.equals(42.0)); + checkTrigger(o.trigger); + } + buildCounterMetricThreshold--; +} + +buildUnnamed3753() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1311(core.Map<core.String, core.String> o) { +checkUnnamed3753(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')); @@ -997,7 +1494,7 @@ var o = new api.MonitoredResource(); buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - o.labels = buildUnnamed1311(); + o.labels = buildUnnamed3753(); o.type = "foo"; } buildCounterMonitoredResource--; @@ -1007,20 +1504,20 @@ checkMonitoredResource(api.MonitoredResource o) { buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - checkUnnamed1311(o.labels); + checkUnnamed3753(o.labels); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResource--; } -buildUnnamed1312() { +buildUnnamed3754() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1312(core.List<api.LabelDescriptor> o) { +checkUnnamed3754(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1033,7 +1530,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1312(); + o.labels = buildUnnamed3754(); o.name = "foo"; o.type = "foo"; } @@ -1046,14 +1543,14 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1312(o.labels); + checkUnnamed3754(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResourceDescriptor--; } -buildUnnamed1313() { +buildUnnamed3755() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1068,70 +1565,7 @@ return o; } -checkUnnamed1313(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')); -} - -buildUnnamed1314() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed1314(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 buildCounterMonitoredResourceMetadata = 0; -buildMonitoredResourceMetadata() { - var o = new api.MonitoredResourceMetadata(); - buildCounterMonitoredResourceMetadata++; - if (buildCounterMonitoredResourceMetadata < 3) { - o.systemLabels = buildUnnamed1313(); - o.userLabels = buildUnnamed1314(); - } - buildCounterMonitoredResourceMetadata--; - return o; -} - -checkMonitoredResourceMetadata(api.MonitoredResourceMetadata o) { - buildCounterMonitoredResourceMetadata++; - if (buildCounterMonitoredResourceMetadata < 3) { - checkUnnamed1313(o.systemLabels); - checkUnnamed1314(o.userLabels); - } - buildCounterMonitoredResourceMetadata--; -} - -buildUnnamed1315() { - 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; -} - -checkUnnamed1315(core.Map<core.String, core.Object> o) { +checkUnnamed3755(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)); @@ -1145,13 +1579,211 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } +buildUnnamed3756() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed3756(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 buildCounterMonitoredResourceMetadata = 0; +buildMonitoredResourceMetadata() { + var o = new api.MonitoredResourceMetadata(); + buildCounterMonitoredResourceMetadata++; + if (buildCounterMonitoredResourceMetadata < 3) { + o.systemLabels = buildUnnamed3755(); + o.userLabels = buildUnnamed3756(); + } + buildCounterMonitoredResourceMetadata--; + return o; +} + +checkMonitoredResourceMetadata(api.MonitoredResourceMetadata o) { + buildCounterMonitoredResourceMetadata++; + if (buildCounterMonitoredResourceMetadata < 3) { + checkUnnamed3755(o.systemLabels); + checkUnnamed3756(o.userLabels); + } + buildCounterMonitoredResourceMetadata--; +} + +core.int buildCounterMutationRecord = 0; +buildMutationRecord() { + var o = new api.MutationRecord(); + buildCounterMutationRecord++; + if (buildCounterMutationRecord < 3) { + o.mutateTime = "foo"; + o.mutatedBy = "foo"; + } + buildCounterMutationRecord--; + return o; +} + +checkMutationRecord(api.MutationRecord o) { + buildCounterMutationRecord++; + if (buildCounterMutationRecord < 3) { + unittest.expect(o.mutateTime, unittest.equals('foo')); + unittest.expect(o.mutatedBy, unittest.equals('foo')); + } + buildCounterMutationRecord--; +} + +buildUnnamed3757() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed3757(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')); +} + +buildUnnamed3758() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed3758(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 buildCounterNotificationChannel = 0; +buildNotificationChannel() { + var o = new api.NotificationChannel(); + buildCounterNotificationChannel++; + if (buildCounterNotificationChannel < 3) { + o.description = "foo"; + o.displayName = "foo"; + o.enabled = true; + o.labels = buildUnnamed3757(); + o.name = "foo"; + o.type = "foo"; + o.userLabels = buildUnnamed3758(); + o.verificationStatus = "foo"; + } + buildCounterNotificationChannel--; + return o; +} + +checkNotificationChannel(api.NotificationChannel o) { + buildCounterNotificationChannel++; + if (buildCounterNotificationChannel < 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.enabled, unittest.isTrue); + checkUnnamed3757(o.labels); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + checkUnnamed3758(o.userLabels); + unittest.expect(o.verificationStatus, unittest.equals('foo')); + } + buildCounterNotificationChannel--; +} + +buildUnnamed3759() { + var o = new core.List<api.LabelDescriptor>(); + o.add(buildLabelDescriptor()); + o.add(buildLabelDescriptor()); + return o; +} + +checkUnnamed3759(core.List<api.LabelDescriptor> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLabelDescriptor(o[0]); + checkLabelDescriptor(o[1]); +} + +buildUnnamed3760() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3760(core.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 buildCounterNotificationChannelDescriptor = 0; +buildNotificationChannelDescriptor() { + var o = new api.NotificationChannelDescriptor(); + buildCounterNotificationChannelDescriptor++; + if (buildCounterNotificationChannelDescriptor < 3) { + o.description = "foo"; + o.displayName = "foo"; + o.labels = buildUnnamed3759(); + o.name = "foo"; + o.supportedTiers = buildUnnamed3760(); + o.type = "foo"; + } + buildCounterNotificationChannelDescriptor--; + return o; +} + +checkNotificationChannelDescriptor(api.NotificationChannelDescriptor o) { + buildCounterNotificationChannelDescriptor++; + if (buildCounterNotificationChannelDescriptor < 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.displayName, unittest.equals('foo')); + checkUnnamed3759(o.labels); + unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed3760(o.supportedTiers); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterNotificationChannelDescriptor--; +} + +buildUnnamed3761() { + 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; +} + +checkUnnamed3761(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')); +} + core.int buildCounterOption = 0; buildOption() { var o = new api.Option(); buildCounterOption++; if (buildCounterOption < 3) { o.name = "foo"; - o.value = buildUnnamed1315(); + o.value = buildUnnamed3761(); } buildCounterOption--; return o; @@ -1161,7 +1793,7 @@ buildCounterOption++; if (buildCounterOption < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1315(o.value); + checkUnnamed3761(o.value); } buildCounterOption--; } @@ -1229,6 +1861,22 @@ buildCounterResourceGroup--; } +core.int buildCounterSendNotificationChannelVerificationCodeRequest = 0; +buildSendNotificationChannelVerificationCodeRequest() { + var o = new api.SendNotificationChannelVerificationCodeRequest(); + buildCounterSendNotificationChannelVerificationCodeRequest++; + if (buildCounterSendNotificationChannelVerificationCodeRequest < 3) {} + buildCounterSendNotificationChannelVerificationCodeRequest--; + return o; +} + +checkSendNotificationChannelVerificationCodeRequest( + api.SendNotificationChannelVerificationCodeRequest o) { + buildCounterSendNotificationChannelVerificationCodeRequest++; + if (buildCounterSendNotificationChannelVerificationCodeRequest < 3) {} + buildCounterSendNotificationChannelVerificationCodeRequest--; +} + core.int buildCounterSourceContext = 0; buildSourceContext() { var o = new api.SourceContext(); @@ -1248,7 +1896,7 @@ buildCounterSourceContext--; } -buildUnnamed1316() { +buildUnnamed3762() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1263,31 +1911,31 @@ return o; } -checkUnnamed1316(core.Map<core.String, core.Object> o) { +checkUnnamed3762(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')); + 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')); } -buildUnnamed1317() { +buildUnnamed3763() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1316()); - o.add(buildUnnamed1316()); + o.add(buildUnnamed3762()); + o.add(buildUnnamed3762()); return o; } -checkUnnamed1317(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3763(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1316(o[0]); - checkUnnamed1316(o[1]); + checkUnnamed3762(o[0]); + checkUnnamed3762(o[1]); } core.int buildCounterStatus = 0; @@ -1296,7 +1944,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1317(); + o.details = buildUnnamed3763(); o.message = "foo"; } buildCounterStatus--; @@ -1307,7 +1955,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1317(o.details); + checkUnnamed3763(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1353,14 +2001,14 @@ buildCounterTimeInterval--; } -buildUnnamed1318() { +buildUnnamed3764() { var o = new core.List<api.Point>(); o.add(buildPoint()); o.add(buildPoint()); return o; } -checkUnnamed1318(core.List<api.Point> o) { +checkUnnamed3764(core.List<api.Point> o) { unittest.expect(o, unittest.hasLength(2)); checkPoint(o[0]); checkPoint(o[1]); @@ -1374,7 +2022,7 @@ o.metadata = buildMonitoredResourceMetadata(); o.metric = buildMetric(); o.metricKind = "foo"; - o.points = buildUnnamed1318(); + o.points = buildUnnamed3764(); o.resource = buildMonitoredResource(); o.valueType = "foo"; } @@ -1388,47 +2036,68 @@ checkMonitoredResourceMetadata(o.metadata); checkMetric(o.metric); unittest.expect(o.metricKind, unittest.equals('foo')); - checkUnnamed1318(o.points); + checkUnnamed3764(o.points); checkMonitoredResource(o.resource); unittest.expect(o.valueType, unittest.equals('foo')); } buildCounterTimeSeries--; } -buildUnnamed1319() { +core.int buildCounterTrigger = 0; +buildTrigger() { + var o = new api.Trigger(); + buildCounterTrigger++; + if (buildCounterTrigger < 3) { + o.count = 42; + o.percent = 42.0; + } + buildCounterTrigger--; + return o; +} + +checkTrigger(api.Trigger o) { + buildCounterTrigger++; + if (buildCounterTrigger < 3) { + unittest.expect(o.count, unittest.equals(42)); + unittest.expect(o.percent, unittest.equals(42.0)); + } + buildCounterTrigger--; +} + +buildUnnamed3765() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed1319(core.List<api.Field> o) { +checkUnnamed3765(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); } -buildUnnamed1320() { +buildUnnamed3766() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1320(core.List<core.String> o) { +checkUnnamed3766(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1321() { +buildUnnamed3767() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1321(core.List<api.Option> o) { +checkUnnamed3767(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1439,10 +2108,10 @@ var o = new api.Type(); buildCounterType++; if (buildCounterType < 3) { - o.fields = buildUnnamed1319(); + o.fields = buildUnnamed3765(); o.name = "foo"; - o.oneofs = buildUnnamed1320(); - o.options = buildUnnamed1321(); + o.oneofs = buildUnnamed3766(); + o.options = buildUnnamed3767(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -1453,10 +2122,10 @@ checkType(api.Type o) { buildCounterType++; if (buildCounterType < 3) { - checkUnnamed1319(o.fields); + checkUnnamed3765(o.fields); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1320(o.oneofs); - checkUnnamed1321(o.options); + checkUnnamed3766(o.oneofs); + checkUnnamed3767(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } @@ -1490,40 +2159,40 @@ buildCounterTypedValue--; } -buildUnnamed1322() { +buildUnnamed3768() { var o = new core.List<api.ContentMatcher>(); o.add(buildContentMatcher()); o.add(buildContentMatcher()); return o; } -checkUnnamed1322(core.List<api.ContentMatcher> o) { +checkUnnamed3768(core.List<api.ContentMatcher> o) { unittest.expect(o, unittest.hasLength(2)); checkContentMatcher(o[0]); checkContentMatcher(o[1]); } -buildUnnamed1323() { +buildUnnamed3769() { var o = new core.List<api.InternalChecker>(); o.add(buildInternalChecker()); o.add(buildInternalChecker()); return o; } -checkUnnamed1323(core.List<api.InternalChecker> o) { +checkUnnamed3769(core.List<api.InternalChecker> o) { unittest.expect(o, unittest.hasLength(2)); checkInternalChecker(o[0]); checkInternalChecker(o[1]); } -buildUnnamed1324() { +buildUnnamed3770() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1324(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')); @@ -1534,16 +2203,16 @@ var o = new api.UptimeCheckConfig(); buildCounterUptimeCheckConfig++; if (buildCounterUptimeCheckConfig < 3) { - o.contentMatchers = buildUnnamed1322(); + o.contentMatchers = buildUnnamed3768(); o.displayName = "foo"; o.httpCheck = buildHttpCheck(); - o.internalCheckers = buildUnnamed1323(); + o.internalCheckers = buildUnnamed3769(); o.isInternal = true; o.monitoredResource = buildMonitoredResource(); o.name = "foo"; o.period = "foo"; o.resourceGroup = buildResourceGroup(); - o.selectedRegions = buildUnnamed1324(); + o.selectedRegions = buildUnnamed3770(); o.tcpCheck = buildTcpCheck(); o.timeout = "foo"; } @@ -1554,16 +2223,16 @@ checkUptimeCheckConfig(api.UptimeCheckConfig o) { buildCounterUptimeCheckConfig++; if (buildCounterUptimeCheckConfig < 3) { - checkUnnamed1322(o.contentMatchers); + checkUnnamed3768(o.contentMatchers); unittest.expect(o.displayName, unittest.equals('foo')); checkHttpCheck(o.httpCheck); - checkUnnamed1323(o.internalCheckers); + checkUnnamed3769(o.internalCheckers); unittest.expect(o.isInternal, unittest.isTrue); checkMonitoredResource(o.monitoredResource); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.period, unittest.equals('foo')); checkResourceGroup(o.resourceGroup); - checkUnnamed1324(o.selectedRegions); + checkUnnamed3770(o.selectedRegions); checkTcpCheck(o.tcpCheck); unittest.expect(o.timeout, unittest.equals('foo')); } @@ -1593,20 +2262,55 @@ buildCounterUptimeCheckIp--; } -buildUnnamed1325() { +core.int buildCounterVerifyNotificationChannelRequest = 0; +buildVerifyNotificationChannelRequest() { + var o = new api.VerifyNotificationChannelRequest(); + buildCounterVerifyNotificationChannelRequest++; + if (buildCounterVerifyNotificationChannelRequest < 3) { + o.code = "foo"; + } + buildCounterVerifyNotificationChannelRequest--; + return o; +} + +checkVerifyNotificationChannelRequest(api.VerifyNotificationChannelRequest o) { + buildCounterVerifyNotificationChannelRequest++; + if (buildCounterVerifyNotificationChannelRequest < 3) { + unittest.expect(o.code, unittest.equals('foo')); + } + buildCounterVerifyNotificationChannelRequest--; +} + +buildUnnamed3771() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1325(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')); } main() { + unittest.group("obj-schema-Aggregation", () { + unittest.test("to-json--from-json", () { + var o = buildAggregation(); + var od = new api.Aggregation.fromJson(o.toJson()); + checkAggregation(od); + }); + }); + + unittest.group("obj-schema-AlertPolicy", () { + unittest.test("to-json--from-json", () { + var o = buildAlertPolicy(); + var od = new api.AlertPolicy.fromJson(o.toJson()); + checkAlertPolicy(od); + }); + }); + unittest.group("obj-schema-BasicAuthentication", () { unittest.test("to-json--from-json", () { var o = buildBasicAuthentication(); @@ -1655,6 +2359,14 @@ }); }); + 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-ContentMatcher", () { unittest.test("to-json--from-json", () { var o = buildContentMatcher(); @@ -1695,6 +2407,14 @@ }); }); + unittest.group("obj-schema-Documentation", () { + unittest.test("to-json--from-json", () { + var o = buildDocumentation(); + var od = new api.Documentation.fromJson(o.toJson()); + checkDocumentation(od); + }); + }); + unittest.group("obj-schema-Empty", () { unittest.test("to-json--from-json", () { var o = buildEmpty(); @@ -1703,6 +2423,14 @@ }); }); + unittest.group("obj-schema-Exemplar", () { + unittest.test("to-json--from-json", () { + var o = buildExemplar(); + var od = new api.Exemplar.fromJson(o.toJson()); + checkExemplar(od); + }); + }); + unittest.group("obj-schema-Explicit", () { unittest.test("to-json--from-json", () { var o = buildExplicit(); @@ -1727,6 +2455,26 @@ }); }); + unittest.group("obj-schema-GetNotificationChannelVerificationCodeRequest", + () { + unittest.test("to-json--from-json", () { + var o = buildGetNotificationChannelVerificationCodeRequest(); + var od = new api.GetNotificationChannelVerificationCodeRequest.fromJson( + o.toJson()); + checkGetNotificationChannelVerificationCodeRequest(od); + }); + }); + + unittest.group("obj-schema-GetNotificationChannelVerificationCodeResponse", + () { + unittest.test("to-json--from-json", () { + var o = buildGetNotificationChannelVerificationCodeResponse(); + var od = new api.GetNotificationChannelVerificationCodeResponse.fromJson( + o.toJson()); + checkGetNotificationChannelVerificationCodeResponse(od); + }); + }); + unittest.group("obj-schema-Group", () { unittest.test("to-json--from-json", () { var o = buildGroup(); @@ -1767,6 +2515,14 @@ }); }); + unittest.group("obj-schema-ListAlertPoliciesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListAlertPoliciesResponse(); + var od = new api.ListAlertPoliciesResponse.fromJson(o.toJson()); + checkListAlertPoliciesResponse(od); + }); + }); + unittest.group("obj-schema-ListGroupMembersResponse", () { unittest.test("to-json--from-json", () { var o = buildListGroupMembersResponse(); @@ -1800,6 +2556,23 @@ }); }); + unittest.group("obj-schema-ListNotificationChannelDescriptorsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListNotificationChannelDescriptorsResponse(); + var od = new api.ListNotificationChannelDescriptorsResponse.fromJson( + o.toJson()); + checkListNotificationChannelDescriptorsResponse(od); + }); + }); + + unittest.group("obj-schema-ListNotificationChannelsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListNotificationChannelsResponse(); + var od = new api.ListNotificationChannelsResponse.fromJson(o.toJson()); + checkListNotificationChannelsResponse(od); + }); + }); + unittest.group("obj-schema-ListTimeSeriesResponse", () { unittest.test("to-json--from-json", () { var o = buildListTimeSeriesResponse(); @@ -1832,6 +2605,14 @@ }); }); + unittest.group("obj-schema-MetricAbsence", () { + unittest.test("to-json--from-json", () { + var o = buildMetricAbsence(); + var od = new api.MetricAbsence.fromJson(o.toJson()); + checkMetricAbsence(od); + }); + }); + unittest.group("obj-schema-MetricDescriptor", () { unittest.test("to-json--from-json", () { var o = buildMetricDescriptor(); @@ -1840,6 +2621,14 @@ }); }); + unittest.group("obj-schema-MetricThreshold", () { + unittest.test("to-json--from-json", () { + var o = buildMetricThreshold(); + var od = new api.MetricThreshold.fromJson(o.toJson()); + checkMetricThreshold(od); + }); + }); + unittest.group("obj-schema-MonitoredResource", () { unittest.test("to-json--from-json", () { var o = buildMonitoredResource(); @@ -1864,6 +2653,30 @@ }); }); + unittest.group("obj-schema-MutationRecord", () { + unittest.test("to-json--from-json", () { + var o = buildMutationRecord(); + var od = new api.MutationRecord.fromJson(o.toJson()); + checkMutationRecord(od); + }); + }); + + unittest.group("obj-schema-NotificationChannel", () { + unittest.test("to-json--from-json", () { + var o = buildNotificationChannel(); + var od = new api.NotificationChannel.fromJson(o.toJson()); + checkNotificationChannel(od); + }); + }); + + unittest.group("obj-schema-NotificationChannelDescriptor", () { + unittest.test("to-json--from-json", () { + var o = buildNotificationChannelDescriptor(); + var od = new api.NotificationChannelDescriptor.fromJson(o.toJson()); + checkNotificationChannelDescriptor(od); + }); + }); + unittest.group("obj-schema-Option", () { unittest.test("to-json--from-json", () { var o = buildOption(); @@ -1896,6 +2709,16 @@ }); }); + unittest.group("obj-schema-SendNotificationChannelVerificationCodeRequest", + () { + unittest.test("to-json--from-json", () { + var o = buildSendNotificationChannelVerificationCodeRequest(); + var od = new api.SendNotificationChannelVerificationCodeRequest.fromJson( + o.toJson()); + checkSendNotificationChannelVerificationCodeRequest(od); + }); + }); + unittest.group("obj-schema-SourceContext", () { unittest.test("to-json--from-json", () { var o = buildSourceContext(); @@ -1936,6 +2759,14 @@ }); }); + unittest.group("obj-schema-Trigger", () { + unittest.test("to-json--from-json", () { + var o = buildTrigger(); + var od = new api.Trigger.fromJson(o.toJson()); + checkTrigger(od); + }); + }); + unittest.group("obj-schema-Type", () { unittest.test("to-json--from-json", () { var o = buildType(); @@ -1968,6 +2799,304 @@ }); }); + unittest.group("obj-schema-VerifyNotificationChannelRequest", () { + unittest.test("to-json--from-json", () { + var o = buildVerifyNotificationChannelRequest(); + var od = new api.VerifyNotificationChannelRequest.fromJson(o.toJson()); + checkVerifyNotificationChannelRequest(od); + }); + }); + + unittest.group("resource-ProjectsAlertPoliciesResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.ProjectsAlertPoliciesResourceApi res = + new api.MonitoringApi(mock).projects.alertPolicies; + var arg_request = buildAlertPolicy(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.AlertPolicy.fromJson(json); + checkAlertPolicy(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("v3/")); + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildAlertPolicy()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkAlertPolicy(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.ProjectsAlertPoliciesResourceApi res = + new api.MonitoringApi(mock).projects.alertPolicies; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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("v3/")); + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.ProjectsAlertPoliciesResourceApi res = + new api.MonitoringApi(mock).projects.alertPolicies; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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("v3/")); + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildAlertPolicy()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkAlertPolicy(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.ProjectsAlertPoliciesResourceApi res = + new api.MonitoringApi(mock).projects.alertPolicies; + var arg_name = "foo"; + var arg_filter = "foo"; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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("v3/")); + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListAlertPoliciesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_name, + filter: arg_filter, + orderBy: arg_orderBy, + pageToken: arg_pageToken, + pageSize: arg_pageSize, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListAlertPoliciesResponse(response); + }))); + }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.ProjectsAlertPoliciesResourceApi res = + new api.MonitoringApi(mock).projects.alertPolicies; + var arg_request = buildAlertPolicy(); + var arg_name = "foo"; + var arg_updateMask = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.AlertPolicy.fromJson(json); + checkAlertPolicy(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("v3/")); + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildAlertPolicy()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .patch(arg_request, arg_name, + updateMask: arg_updateMask, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkAlertPolicy(response); + }))); + }); + }); + unittest.group("resource-ProjectsCollectdTimeSeriesResourceApi", () { unittest.test("method--create", () { var mock = new HttpServerMock(); @@ -2196,11 +3325,11 @@ api.ProjectsGroupsResourceApi res = new api.MonitoringApi(mock).projects.groups; var arg_name = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_ancestorsOfGroup = "foo"; var arg_childrenOfGroup = "foo"; var arg_descendantsOfGroup = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2233,8 +3362,6 @@ 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["ancestorsOfGroup"].first, @@ -2243,6 +3370,8 @@ unittest.equals(arg_childrenOfGroup)); unittest.expect(queryMap["descendantsOfGroup"].first, unittest.equals(arg_descendantsOfGroup)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2253,11 +3382,11 @@ }), true); res .list(arg_name, - pageToken: arg_pageToken, pageSize: arg_pageSize, ancestorsOfGroup: arg_ancestorsOfGroup, childrenOfGroup: arg_childrenOfGroup, descendantsOfGroup: arg_descendantsOfGroup, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListGroupsResponse(response); @@ -2684,9 +3813,9 @@ api.ProjectsMonitoredResourceDescriptorsResourceApi res = new api.MonitoringApi(mock).projects.monitoredResourceDescriptors; var arg_name = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2719,11 +3848,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2735,9 +3864,9 @@ }), true); res .list(arg_name, + filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, - filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListMonitoredResourceDescriptorsResponse(response); @@ -2745,6 +3874,588 @@ }); }); + unittest.group("resource-ProjectsNotificationChannelDescriptorsResourceApi", + () { + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.ProjectsNotificationChannelDescriptorsResourceApi res = + new api.MonitoringApi(mock).projects.notificationChannelDescriptors; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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("v3/")); + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildNotificationChannelDescriptor()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkNotificationChannelDescriptor(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.ProjectsNotificationChannelDescriptorsResourceApi res = + new api.MonitoringApi(mock).projects.notificationChannelDescriptors; + var arg_name = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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("v3/")); + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildListNotificationChannelDescriptorsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_name, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListNotificationChannelDescriptorsResponse(response); + }))); + }); + }); + + unittest.group("resource-ProjectsNotificationChannelsResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.ProjectsNotificationChannelsResourceApi res = + new api.MonitoringApi(mock).projects.notificationChannels; + var arg_request = buildNotificationChannel(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.NotificationChannel.fromJson(json); + checkNotificationChannel(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("v3/")); + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildNotificationChannel()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkNotificationChannel(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.ProjectsNotificationChannelsResourceApi res = + new api.MonitoringApi(mock).projects.notificationChannels; + var arg_name = "foo"; + var arg_force = true; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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("v3/")); + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["force"].first, unittest.equals("$arg_force")); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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, force: arg_force, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.ProjectsNotificationChannelsResourceApi res = + new api.MonitoringApi(mock).projects.notificationChannels; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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("v3/")); + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildNotificationChannel()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkNotificationChannel(response); + }))); + }); + + unittest.test("method--getVerificationCode", () { + var mock = new HttpServerMock(); + api.ProjectsNotificationChannelsResourceApi res = + new api.MonitoringApi(mock).projects.notificationChannels; + var arg_request = buildGetNotificationChannelVerificationCodeRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.GetNotificationChannelVerificationCodeRequest.fromJson( + json); + checkGetNotificationChannelVerificationCodeRequest(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("v3/")); + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildGetNotificationChannelVerificationCodeResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .getVerificationCode(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGetNotificationChannelVerificationCodeResponse(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.ProjectsNotificationChannelsResourceApi res = + new api.MonitoringApi(mock).projects.notificationChannels; + var arg_name = "foo"; + var arg_filter = "foo"; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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("v3/")); + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListNotificationChannelsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_name, + filter: arg_filter, + orderBy: arg_orderBy, + pageToken: arg_pageToken, + pageSize: arg_pageSize, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListNotificationChannelsResponse(response); + }))); + }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.ProjectsNotificationChannelsResourceApi res = + new api.MonitoringApi(mock).projects.notificationChannels; + var arg_request = buildNotificationChannel(); + var arg_name = "foo"; + var arg_updateMask = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.NotificationChannel.fromJson(json); + checkNotificationChannel(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("v3/")); + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildNotificationChannel()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .patch(arg_request, arg_name, + updateMask: arg_updateMask, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkNotificationChannel(response); + }))); + }); + + unittest.test("method--sendVerificationCode", () { + var mock = new HttpServerMock(); + api.ProjectsNotificationChannelsResourceApi res = + new api.MonitoringApi(mock).projects.notificationChannels; + var arg_request = buildSendNotificationChannelVerificationCodeRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.SendNotificationChannelVerificationCodeRequest.fromJson( + json); + checkSendNotificationChannelVerificationCodeRequest(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("v3/")); + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .sendVerificationCode(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--verify", () { + var mock = new HttpServerMock(); + api.ProjectsNotificationChannelsResourceApi res = + new api.MonitoringApi(mock).projects.notificationChannels; + var arg_request = buildVerifyNotificationChannelRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.VerifyNotificationChannelRequest.fromJson(json); + checkVerifyNotificationChannelRequest(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("v3/")); + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildNotificationChannel()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .verify(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkNotificationChannel(response); + }))); + }); + }); + unittest.group("resource-ProjectsTimeSeriesResourceApi", () { unittest.test("method--create", () { var mock = new HttpServerMock(); @@ -2807,17 +4518,17 @@ api.ProjectsTimeSeriesResourceApi res = new api.MonitoringApi(mock).projects.timeSeries; var arg_name = "foo"; - var arg_aggregation_groupByFields = buildUnnamed1325(); var arg_interval_endTime = "foo"; var arg_aggregation_alignmentPeriod = "foo"; var arg_pageSize = 42; var arg_orderBy = "foo"; var arg_aggregation_crossSeriesReducer = "foo"; var arg_filter = "foo"; - var arg_pageToken = "foo"; var arg_aggregation_perSeriesAligner = "foo"; + var arg_pageToken = "foo"; var arg_interval_startTime = "foo"; var arg_view = "foo"; + var arg_aggregation_groupByFields = buildUnnamed3771(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2850,8 +4561,6 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["aggregation.groupByFields"], - unittest.equals(arg_aggregation_groupByFields)); unittest.expect(queryMap["interval.endTime"].first, unittest.equals(arg_interval_endTime)); unittest.expect(queryMap["aggregation.alignmentPeriod"].first, @@ -2863,13 +4572,15 @@ unittest.expect(queryMap["aggregation.crossSeriesReducer"].first, unittest.equals(arg_aggregation_crossSeriesReducer)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["aggregation.perSeriesAligner"].first, unittest.equals(arg_aggregation_perSeriesAligner)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["interval.startTime"].first, unittest.equals(arg_interval_startTime)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); + unittest.expect(queryMap["aggregation.groupByFields"], + unittest.equals(arg_aggregation_groupByFields)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2880,7 +4591,6 @@ }), true); res .list(arg_name, - aggregation_groupByFields: arg_aggregation_groupByFields, interval_endTime: arg_interval_endTime, aggregation_alignmentPeriod: arg_aggregation_alignmentPeriod, pageSize: arg_pageSize, @@ -2888,10 +4598,11 @@ aggregation_crossSeriesReducer: arg_aggregation_crossSeriesReducer, filter: arg_filter, - pageToken: arg_pageToken, aggregation_perSeriesAligner: arg_aggregation_perSeriesAligner, + pageToken: arg_pageToken, interval_startTime: arg_interval_startTime, view: arg_view, + aggregation_groupByFields: arg_aggregation_groupByFields, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListTimeSeriesResponse(response); @@ -3187,8 +4898,8 @@ var mock = new HttpServerMock(); api.UptimeCheckIpsResourceApi res = new api.MonitoringApi(mock).uptimeCheckIps; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3220,10 +4931,10 @@ 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3234,8 +4945,8 @@ }), true); res .list( - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListUptimeCheckIpsResponse(response);
diff --git a/generated/googleapis/test/oauth2/v2_test.dart b/generated/googleapis/test/oauth2/v2_test.dart index 4393931..361d542 100644 --- a/generated/googleapis/test/oauth2/v2_test.dart +++ b/generated/googleapis/test/oauth2/v2_test.dart
@@ -79,14 +79,14 @@ buildCounterJwkKeys--; } -buildUnnamed3563() { +buildUnnamed2124() { var o = new core.List<api.JwkKeys>(); o.add(buildJwkKeys()); o.add(buildJwkKeys()); return o; } -checkUnnamed3563(core.List<api.JwkKeys> o) { +checkUnnamed2124(core.List<api.JwkKeys> o) { unittest.expect(o, unittest.hasLength(2)); checkJwkKeys(o[0]); checkJwkKeys(o[1]); @@ -97,7 +97,7 @@ var o = new api.Jwk(); buildCounterJwk++; if (buildCounterJwk < 3) { - o.keys = buildUnnamed3563(); + o.keys = buildUnnamed2124(); } buildCounterJwk--; return o; @@ -106,7 +106,7 @@ checkJwk(api.Jwk o) { buildCounterJwk++; if (buildCounterJwk < 3) { - checkUnnamed3563(o.keys); + checkUnnamed2124(o.keys); } buildCounterJwk--; }
diff --git a/generated/googleapis/test/oslogin/v1_test.dart b/generated/googleapis/test/oslogin/v1_test.dart index f41e4ef..1a5e74d 100644 --- a/generated/googleapis/test/oslogin/v1_test.dart +++ b/generated/googleapis/test/oslogin/v1_test.dart
@@ -84,27 +84,27 @@ buildCounterImportSshPublicKeyResponse--; } -buildUnnamed1435() { +buildUnnamed37() { var o = new core.List<api.PosixAccount>(); o.add(buildPosixAccount()); o.add(buildPosixAccount()); return o; } -checkUnnamed1435(core.List<api.PosixAccount> o) { +checkUnnamed37(core.List<api.PosixAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkPosixAccount(o[0]); checkPosixAccount(o[1]); } -buildUnnamed1436() { +buildUnnamed38() { var o = new core.Map<core.String, api.SshPublicKey>(); o["x"] = buildSshPublicKey(); o["y"] = buildSshPublicKey(); return o; } -checkUnnamed1436(core.Map<core.String, api.SshPublicKey> o) { +checkUnnamed38(core.Map<core.String, api.SshPublicKey> o) { unittest.expect(o, unittest.hasLength(2)); checkSshPublicKey(o["x"]); checkSshPublicKey(o["y"]); @@ -116,8 +116,8 @@ buildCounterLoginProfile++; if (buildCounterLoginProfile < 3) { o.name = "foo"; - o.posixAccounts = buildUnnamed1435(); - o.sshPublicKeys = buildUnnamed1436(); + o.posixAccounts = buildUnnamed37(); + o.sshPublicKeys = buildUnnamed38(); } buildCounterLoginProfile--; return o; @@ -127,8 +127,8 @@ buildCounterLoginProfile++; if (buildCounterLoginProfile < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1435(o.posixAccounts); - checkUnnamed1436(o.sshPublicKeys); + checkUnnamed37(o.posixAccounts); + checkUnnamed38(o.sshPublicKeys); } buildCounterLoginProfile--; } @@ -142,6 +142,7 @@ o.gecos = "foo"; o.gid = "foo"; o.homeDirectory = "foo"; + o.operatingSystemType = "foo"; o.primary = true; o.shell = "foo"; o.systemId = "foo"; @@ -159,6 +160,7 @@ unittest.expect(o.gecos, unittest.equals('foo')); unittest.expect(o.gid, unittest.equals('foo')); unittest.expect(o.homeDirectory, unittest.equals('foo')); + unittest.expect(o.operatingSystemType, unittest.equals('foo')); unittest.expect(o.primary, unittest.isTrue); unittest.expect(o.shell, unittest.equals('foo')); unittest.expect(o.systemId, unittest.equals('foo'));
diff --git a/generated/googleapis/test/pagespeedonline/v1_test.dart b/generated/googleapis/test/pagespeedonline/v1_test.dart index 28607ca..dd9034d 100644 --- a/generated/googleapis/test/pagespeedonline/v1_test.dart +++ b/generated/googleapis/test/pagespeedonline/v1_test.dart
@@ -75,7 +75,7 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs--; } -buildUnnamed1680() { +buildUnnamed3232() { var o = new core .List<api.ResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs()); @@ -83,7 +83,7 @@ return o; } -checkUnnamed1680( +checkUnnamed3232( core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs> o) { unittest.expect(o, unittest.hasLength(2)); @@ -96,7 +96,7 @@ var o = new api.ResultFormattedResultsRuleResultsValueUrlBlocksHeader(); buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader < 3) { - o.args = buildUnnamed1680(); + o.args = buildUnnamed3232(); o.format = "foo"; } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader--; @@ -107,7 +107,7 @@ api.ResultFormattedResultsRuleResultsValueUrlBlocksHeader o) { buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader < 3) { - checkUnnamed1680(o.args); + checkUnnamed3232(o.args); unittest.expect(o.format, unittest.equals('foo')); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader--; @@ -140,7 +140,7 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs--; } -buildUnnamed1681() { +buildUnnamed3233() { var o = new core.List< api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs()); @@ -148,7 +148,7 @@ return o; } -checkUnnamed1681( +checkUnnamed3233( core.List< api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs> o) { @@ -164,7 +164,7 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails < 3) { - o.args = buildUnnamed1681(); + o.args = buildUnnamed3233(); o.format = "foo"; } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails--; @@ -176,13 +176,13 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails < 3) { - checkUnnamed1681(o.args); + checkUnnamed3233(o.args); unittest.expect(o.format, unittest.equals('foo')); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails--; } -buildUnnamed1682() { +buildUnnamed3234() { var o = new core .List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails()); @@ -190,7 +190,7 @@ return o; } -checkUnnamed1682( +checkUnnamed3234( core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails> o) { unittest.expect(o, unittest.hasLength(2)); @@ -225,7 +225,7 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs--; } -buildUnnamed1683() { +buildUnnamed3235() { var o = new core.List< api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs()); @@ -233,7 +233,7 @@ return o; } -checkUnnamed1683( +checkUnnamed3235( core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs> o) { unittest.expect(o, unittest.hasLength(2)); @@ -248,7 +248,7 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult < 3) { - o.args = buildUnnamed1683(); + o.args = buildUnnamed3235(); o.format = "foo"; } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult--; @@ -260,7 +260,7 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult < 3) { - checkUnnamed1683(o.args); + checkUnnamed3235(o.args); unittest.expect(o.format, unittest.equals('foo')); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult--; @@ -271,7 +271,7 @@ var o = new api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls(); buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls < 3) { - o.details = buildUnnamed1682(); + o.details = buildUnnamed3234(); o.result = buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult(); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls--; @@ -282,13 +282,13 @@ api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls o) { buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls < 3) { - checkUnnamed1682(o.details); + checkUnnamed3234(o.details); checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult(o.result); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls--; } -buildUnnamed1684() { +buildUnnamed3236() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrls()); @@ -296,7 +296,7 @@ return o; } -checkUnnamed1684( +checkUnnamed3236( core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValueUrlBlocksUrls(o[0]); @@ -309,7 +309,7 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocks++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocks < 3) { o.header = buildResultFormattedResultsRuleResultsValueUrlBlocksHeader(); - o.urls = buildUnnamed1684(); + o.urls = buildUnnamed3236(); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocks--; return o; @@ -320,19 +320,19 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocks++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocks < 3) { checkResultFormattedResultsRuleResultsValueUrlBlocksHeader(o.header); - checkUnnamed1684(o.urls); + checkUnnamed3236(o.urls); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocks--; } -buildUnnamed1685() { +buildUnnamed3237() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocks>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocks()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocks()); return o; } -checkUnnamed1685( +checkUnnamed3237( core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocks> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValueUrlBlocks(o[0]); @@ -346,7 +346,7 @@ if (buildCounterResultFormattedResultsRuleResultsValue < 3) { o.localizedRuleName = "foo"; o.ruleImpact = 42.0; - o.urlBlocks = buildUnnamed1685(); + o.urlBlocks = buildUnnamed3237(); } buildCounterResultFormattedResultsRuleResultsValue--; return o; @@ -358,12 +358,12 @@ if (buildCounterResultFormattedResultsRuleResultsValue < 3) { unittest.expect(o.localizedRuleName, unittest.equals('foo')); unittest.expect(o.ruleImpact, unittest.equals(42.0)); - checkUnnamed1685(o.urlBlocks); + checkUnnamed3237(o.urlBlocks); } buildCounterResultFormattedResultsRuleResultsValue--; } -buildUnnamed1686() { +buildUnnamed3238() { var o = new core.Map<core.String, api.ResultFormattedResultsRuleResultsValue>(); o["x"] = buildResultFormattedResultsRuleResultsValue(); @@ -371,7 +371,7 @@ return o; } -checkUnnamed1686( +checkUnnamed3238( core.Map<core.String, api.ResultFormattedResultsRuleResultsValue> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValue(o["x"]); @@ -384,7 +384,7 @@ buildCounterResultFormattedResults++; if (buildCounterResultFormattedResults < 3) { o.locale = "foo"; - o.ruleResults = buildUnnamed1686(); + o.ruleResults = buildUnnamed3238(); } buildCounterResultFormattedResults--; return o; @@ -394,19 +394,19 @@ buildCounterResultFormattedResults++; if (buildCounterResultFormattedResults < 3) { unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed1686(o.ruleResults); + checkUnnamed3238(o.ruleResults); } buildCounterResultFormattedResults--; } -buildUnnamed1687() { +buildUnnamed3239() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1687(core.List<core.String> 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')); @@ -509,7 +509,7 @@ o.captchaResult = "foo"; o.formattedResults = buildResultFormattedResults(); o.id = "foo"; - o.invalidRules = buildUnnamed1687(); + o.invalidRules = buildUnnamed3239(); o.kind = "foo"; o.pageStats = buildResultPageStats(); o.responseCode = 42; @@ -528,7 +528,7 @@ unittest.expect(o.captchaResult, unittest.equals('foo')); checkResultFormattedResults(o.formattedResults); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1687(o.invalidRules); + checkUnnamed3239(o.invalidRules); unittest.expect(o.kind, unittest.equals('foo')); checkResultPageStats(o.pageStats); unittest.expect(o.responseCode, unittest.equals(42)); @@ -540,14 +540,14 @@ buildCounterResult--; } -buildUnnamed1688() { +buildUnnamed3240() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1688(core.List<core.String> 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')); @@ -705,7 +705,7 @@ var arg_url = "foo"; var arg_filterThirdPartyResources = true; var arg_locale = "foo"; - var arg_rule = buildUnnamed1688(); + var arg_rule = buildUnnamed3240(); var arg_screenshot = true; var arg_strategy = "foo"; var arg_$fields = "foo";
diff --git a/generated/googleapis/test/pagespeedonline/v2_test.dart b/generated/googleapis/test/pagespeedonline/v2_test.dart index 0981653..9b2ecb4 100644 --- a/generated/googleapis/test/pagespeedonline/v2_test.dart +++ b/generated/googleapis/test/pagespeedonline/v2_test.dart
@@ -76,14 +76,14 @@ buildCounterPagespeedApiFormatStringV2ArgsRects--; } -buildUnnamed188() { +buildUnnamed3603() { var o = new core.List<api.PagespeedApiFormatStringV2ArgsRects>(); o.add(buildPagespeedApiFormatStringV2ArgsRects()); o.add(buildPagespeedApiFormatStringV2ArgsRects()); return o; } -checkUnnamed188(core.List<api.PagespeedApiFormatStringV2ArgsRects> o) { +checkUnnamed3603(core.List<api.PagespeedApiFormatStringV2ArgsRects> o) { unittest.expect(o, unittest.hasLength(2)); checkPagespeedApiFormatStringV2ArgsRects(o[0]); checkPagespeedApiFormatStringV2ArgsRects(o[1]); @@ -115,14 +115,15 @@ buildCounterPagespeedApiFormatStringV2ArgsSecondaryRects--; } -buildUnnamed189() { +buildUnnamed3604() { var o = new core.List<api.PagespeedApiFormatStringV2ArgsSecondaryRects>(); o.add(buildPagespeedApiFormatStringV2ArgsSecondaryRects()); o.add(buildPagespeedApiFormatStringV2ArgsSecondaryRects()); return o; } -checkUnnamed189(core.List<api.PagespeedApiFormatStringV2ArgsSecondaryRects> o) { +checkUnnamed3604( + core.List<api.PagespeedApiFormatStringV2ArgsSecondaryRects> o) { unittest.expect(o, unittest.hasLength(2)); checkPagespeedApiFormatStringV2ArgsSecondaryRects(o[0]); checkPagespeedApiFormatStringV2ArgsSecondaryRects(o[1]); @@ -134,8 +135,8 @@ buildCounterPagespeedApiFormatStringV2Args++; if (buildCounterPagespeedApiFormatStringV2Args < 3) { o.key = "foo"; - o.rects = buildUnnamed188(); - o.secondaryRects = buildUnnamed189(); + o.rects = buildUnnamed3603(); + o.secondaryRects = buildUnnamed3604(); o.type = "foo"; o.value = "foo"; } @@ -147,22 +148,22 @@ buildCounterPagespeedApiFormatStringV2Args++; if (buildCounterPagespeedApiFormatStringV2Args < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed188(o.rects); - checkUnnamed189(o.secondaryRects); + checkUnnamed3603(o.rects); + checkUnnamed3604(o.secondaryRects); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); } buildCounterPagespeedApiFormatStringV2Args--; } -buildUnnamed190() { +buildUnnamed3605() { var o = new core.List<api.PagespeedApiFormatStringV2Args>(); o.add(buildPagespeedApiFormatStringV2Args()); o.add(buildPagespeedApiFormatStringV2Args()); return o; } -checkUnnamed190(core.List<api.PagespeedApiFormatStringV2Args> o) { +checkUnnamed3605(core.List<api.PagespeedApiFormatStringV2Args> o) { unittest.expect(o, unittest.hasLength(2)); checkPagespeedApiFormatStringV2Args(o[0]); checkPagespeedApiFormatStringV2Args(o[1]); @@ -173,7 +174,7 @@ var o = new api.PagespeedApiFormatStringV2(); buildCounterPagespeedApiFormatStringV2++; if (buildCounterPagespeedApiFormatStringV2 < 3) { - o.args = buildUnnamed190(); + o.args = buildUnnamed3605(); o.format = "foo"; } buildCounterPagespeedApiFormatStringV2--; @@ -183,7 +184,7 @@ checkPagespeedApiFormatStringV2(api.PagespeedApiFormatStringV2 o) { buildCounterPagespeedApiFormatStringV2++; if (buildCounterPagespeedApiFormatStringV2 < 3) { - checkUnnamed190(o.args); + checkUnnamed3605(o.args); unittest.expect(o.format, unittest.equals('foo')); } buildCounterPagespeedApiFormatStringV2--; @@ -243,27 +244,27 @@ buildCounterPagespeedApiImageV2--; } -buildUnnamed191() { +buildUnnamed3606() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed191(core.List<core.String> o) { +checkUnnamed3606(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed192() { +buildUnnamed3607() { var o = new core.List<api.PagespeedApiFormatStringV2>(); o.add(buildPagespeedApiFormatStringV2()); o.add(buildPagespeedApiFormatStringV2()); return o; } -checkUnnamed192(core.List<api.PagespeedApiFormatStringV2> o) { +checkUnnamed3607(core.List<api.PagespeedApiFormatStringV2> o) { unittest.expect(o, unittest.hasLength(2)); checkPagespeedApiFormatStringV2(o[0]); checkPagespeedApiFormatStringV2(o[1]); @@ -274,7 +275,7 @@ var o = new api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls(); buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls < 3) { - o.details = buildUnnamed192(); + o.details = buildUnnamed3607(); o.result = buildPagespeedApiFormatStringV2(); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls--; @@ -285,13 +286,13 @@ api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls o) { buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls < 3) { - checkUnnamed192(o.details); + checkUnnamed3607(o.details); checkPagespeedApiFormatStringV2(o.result); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls--; } -buildUnnamed193() { +buildUnnamed3608() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrls()); @@ -299,7 +300,7 @@ return o; } -checkUnnamed193( +checkUnnamed3608( core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValueUrlBlocksUrls(o[0]); @@ -312,7 +313,7 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocks++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocks < 3) { o.header = buildPagespeedApiFormatStringV2(); - o.urls = buildUnnamed193(); + o.urls = buildUnnamed3608(); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocks--; return o; @@ -323,19 +324,19 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocks++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocks < 3) { checkPagespeedApiFormatStringV2(o.header); - checkUnnamed193(o.urls); + checkUnnamed3608(o.urls); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocks--; } -buildUnnamed194() { +buildUnnamed3609() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocks>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocks()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocks()); return o; } -checkUnnamed194( +checkUnnamed3609( core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocks> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValueUrlBlocks(o[0]); @@ -347,11 +348,11 @@ var o = new api.ResultFormattedResultsRuleResultsValue(); buildCounterResultFormattedResultsRuleResultsValue++; if (buildCounterResultFormattedResultsRuleResultsValue < 3) { - o.groups = buildUnnamed191(); + o.groups = buildUnnamed3606(); o.localizedRuleName = "foo"; o.ruleImpact = 42.0; o.summary = buildPagespeedApiFormatStringV2(); - o.urlBlocks = buildUnnamed194(); + o.urlBlocks = buildUnnamed3609(); } buildCounterResultFormattedResultsRuleResultsValue--; return o; @@ -361,16 +362,16 @@ api.ResultFormattedResultsRuleResultsValue o) { buildCounterResultFormattedResultsRuleResultsValue++; if (buildCounterResultFormattedResultsRuleResultsValue < 3) { - checkUnnamed191(o.groups); + checkUnnamed3606(o.groups); unittest.expect(o.localizedRuleName, unittest.equals('foo')); unittest.expect(o.ruleImpact, unittest.equals(42.0)); checkPagespeedApiFormatStringV2(o.summary); - checkUnnamed194(o.urlBlocks); + checkUnnamed3609(o.urlBlocks); } buildCounterResultFormattedResultsRuleResultsValue--; } -buildUnnamed195() { +buildUnnamed3610() { var o = new core.Map<core.String, api.ResultFormattedResultsRuleResultsValue>(); o["x"] = buildResultFormattedResultsRuleResultsValue(); @@ -378,7 +379,7 @@ return o; } -checkUnnamed195( +checkUnnamed3610( core.Map<core.String, api.ResultFormattedResultsRuleResultsValue> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValue(o["x"]); @@ -391,7 +392,7 @@ buildCounterResultFormattedResults++; if (buildCounterResultFormattedResults < 3) { o.locale = "foo"; - o.ruleResults = buildUnnamed195(); + o.ruleResults = buildUnnamed3610(); } buildCounterResultFormattedResults--; return o; @@ -401,19 +402,19 @@ buildCounterResultFormattedResults++; if (buildCounterResultFormattedResults < 3) { unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed195(o.ruleResults); + checkUnnamed3610(o.ruleResults); } buildCounterResultFormattedResults--; } -buildUnnamed196() { +buildUnnamed3611() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed196(core.List<core.String> o) { +checkUnnamed3611(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -481,14 +482,14 @@ buildCounterResultRuleGroupsValue--; } -buildUnnamed197() { +buildUnnamed3612() { var o = new core.Map<core.String, api.ResultRuleGroupsValue>(); o["x"] = buildResultRuleGroupsValue(); o["y"] = buildResultRuleGroupsValue(); return o; } -checkUnnamed197(core.Map<core.String, api.ResultRuleGroupsValue> o) { +checkUnnamed3612(core.Map<core.String, api.ResultRuleGroupsValue> o) { unittest.expect(o, unittest.hasLength(2)); checkResultRuleGroupsValue(o["x"]); checkResultRuleGroupsValue(o["y"]); @@ -523,11 +524,11 @@ o.captchaResult = "foo"; o.formattedResults = buildResultFormattedResults(); o.id = "foo"; - o.invalidRules = buildUnnamed196(); + o.invalidRules = buildUnnamed3611(); o.kind = "foo"; o.pageStats = buildResultPageStats(); o.responseCode = 42; - o.ruleGroups = buildUnnamed197(); + o.ruleGroups = buildUnnamed3612(); o.screenshot = buildPagespeedApiImageV2(); o.title = "foo"; o.version = buildResultVersion(); @@ -542,11 +543,11 @@ unittest.expect(o.captchaResult, unittest.equals('foo')); checkResultFormattedResults(o.formattedResults); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed196(o.invalidRules); + checkUnnamed3611(o.invalidRules); unittest.expect(o.kind, unittest.equals('foo')); checkResultPageStats(o.pageStats); unittest.expect(o.responseCode, unittest.equals(42)); - checkUnnamed197(o.ruleGroups); + checkUnnamed3612(o.ruleGroups); checkPagespeedApiImageV2(o.screenshot); unittest.expect(o.title, unittest.equals('foo')); checkResultVersion(o.version); @@ -554,14 +555,14 @@ buildCounterResult--; } -buildUnnamed198() { +buildUnnamed3613() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed198(core.List<core.String> o) { +checkUnnamed3613(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -695,7 +696,7 @@ var arg_url = "foo"; var arg_filterThirdPartyResources = true; var arg_locale = "foo"; - var arg_rule = buildUnnamed198(); + var arg_rule = buildUnnamed3613(); var arg_screenshot = true; var arg_strategy = "foo"; var arg_$fields = "foo";
diff --git a/generated/googleapis/test/partners/v2_test.dart b/generated/googleapis/test/partners/v2_test.dart index a62029a..1c173b8 100644 --- a/generated/googleapis/test/partners/v2_test.dart +++ b/generated/googleapis/test/partners/v2_test.dart
@@ -96,14 +96,14 @@ buildCounterAnalytics--; } -buildUnnamed126() { +buildUnnamed1603() { var o = new core.List<api.LatLng>(); o.add(buildLatLng()); o.add(buildLatLng()); return o; } -checkUnnamed126(core.List<api.LatLng> o) { +checkUnnamed1603(core.List<api.LatLng> o) { unittest.expect(o, unittest.hasLength(2)); checkLatLng(o[0]); checkLatLng(o[1]); @@ -115,7 +115,7 @@ buildCounterAnalyticsDataPoint++; if (buildCounterAnalyticsDataPoint < 3) { o.eventCount = 42; - o.eventLocations = buildUnnamed126(); + o.eventLocations = buildUnnamed1603(); } buildCounterAnalyticsDataPoint--; return o; @@ -125,7 +125,7 @@ buildCounterAnalyticsDataPoint++; if (buildCounterAnalyticsDataPoint < 3) { unittest.expect(o.eventCount, unittest.equals(42)); - checkUnnamed126(o.eventLocations); + checkUnnamed1603(o.eventLocations); } buildCounterAnalyticsDataPoint--; } @@ -153,27 +153,27 @@ buildCounterAnalyticsSummary--; } -buildUnnamed127() { +buildUnnamed1604() { var o = new core.List<api.CountryOfferInfo>(); o.add(buildCountryOfferInfo()); o.add(buildCountryOfferInfo()); return o; } -checkUnnamed127(core.List<api.CountryOfferInfo> o) { +checkUnnamed1604(core.List<api.CountryOfferInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkCountryOfferInfo(o[0]); checkCountryOfferInfo(o[1]); } -buildUnnamed128() { +buildUnnamed1605() { var o = new core.List<api.OfferCustomer>(); o.add(buildOfferCustomer()); o.add(buildOfferCustomer()); return o; } -checkUnnamed128(core.List<api.OfferCustomer> o) { +checkUnnamed1605(core.List<api.OfferCustomer> o) { unittest.expect(o, unittest.hasLength(2)); checkOfferCustomer(o[0]); checkOfferCustomer(o[1]); @@ -185,14 +185,14 @@ buildCounterAvailableOffer++; if (buildCounterAvailableOffer < 3) { o.available = 42; - o.countryOfferInfos = buildUnnamed127(); + o.countryOfferInfos = buildUnnamed1604(); o.description = "foo"; o.id = "foo"; o.maxAccountAge = 42; o.name = "foo"; o.offerLevel = "foo"; o.offerType = "foo"; - o.qualifiedCustomer = buildUnnamed128(); + o.qualifiedCustomer = buildUnnamed1605(); o.qualifiedCustomersComplete = true; o.showSpecialOfferCopy = true; o.terms = "foo"; @@ -205,14 +205,14 @@ buildCounterAvailableOffer++; if (buildCounterAvailableOffer < 3) { unittest.expect(o.available, unittest.equals(42)); - checkUnnamed127(o.countryOfferInfos); + checkUnnamed1604(o.countryOfferInfos); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.maxAccountAge, unittest.equals(42)); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.offerLevel, unittest.equals('foo')); unittest.expect(o.offerType, unittest.equals('foo')); - checkUnnamed128(o.qualifiedCustomer); + checkUnnamed1605(o.qualifiedCustomer); unittest.expect(o.qualifiedCustomersComplete, unittest.isTrue); unittest.expect(o.showSpecialOfferCopy, unittest.isTrue); unittest.expect(o.terms, unittest.equals('foo')); @@ -268,14 +268,14 @@ buildCounterCertificationExamStatus--; } -buildUnnamed129() { +buildUnnamed1606() { var o = new core.List<api.CertificationExamStatus>(); o.add(buildCertificationExamStatus()); o.add(buildCertificationExamStatus()); return o; } -checkUnnamed129(core.List<api.CertificationExamStatus> o) { +checkUnnamed1606(core.List<api.CertificationExamStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkCertificationExamStatus(o[0]); checkCertificationExamStatus(o[1]); @@ -286,7 +286,7 @@ var o = new api.CertificationStatus(); buildCounterCertificationStatus++; if (buildCounterCertificationStatus < 3) { - o.examStatuses = buildUnnamed129(); + o.examStatuses = buildUnnamed1606(); o.isCertified = true; o.type = "foo"; o.userCount = 42; @@ -298,7 +298,7 @@ checkCertificationStatus(api.CertificationStatus o) { buildCounterCertificationStatus++; if (buildCounterCertificationStatus < 3) { - checkUnnamed129(o.examStatuses); + checkUnnamed1606(o.examStatuses); unittest.expect(o.isCertified, unittest.isTrue); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.userCount, unittest.equals(42)); @@ -306,131 +306,131 @@ buildCounterCertificationStatus--; } -buildUnnamed130() { +buildUnnamed1607() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed130(core.List<core.String> o) { +checkUnnamed1607(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed131() { +buildUnnamed1608() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed131(core.List<core.String> o) { +checkUnnamed1608(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed132() { +buildUnnamed1609() { var o = new core.List<api.CertificationStatus>(); o.add(buildCertificationStatus()); o.add(buildCertificationStatus()); return o; } -checkUnnamed132(core.List<api.CertificationStatus> o) { +checkUnnamed1609(core.List<api.CertificationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkCertificationStatus(o[0]); checkCertificationStatus(o[1]); } -buildUnnamed133() { +buildUnnamed1610() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed133(core.List<core.String> o) { +checkUnnamed1610(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed134() { +buildUnnamed1611() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed134(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')); } -buildUnnamed135() { +buildUnnamed1612() { var o = new core.List<api.LocalizedCompanyInfo>(); o.add(buildLocalizedCompanyInfo()); o.add(buildLocalizedCompanyInfo()); return o; } -checkUnnamed135(core.List<api.LocalizedCompanyInfo> o) { +checkUnnamed1612(core.List<api.LocalizedCompanyInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedCompanyInfo(o[0]); checkLocalizedCompanyInfo(o[1]); } -buildUnnamed136() { +buildUnnamed1613() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed136(core.List<api.Location> o) { +checkUnnamed1613(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); } -buildUnnamed137() { +buildUnnamed1614() { var o = new core.List<api.Rank>(); o.add(buildRank()); o.add(buildRank()); return o; } -checkUnnamed137(core.List<api.Rank> o) { +checkUnnamed1614(core.List<api.Rank> o) { unittest.expect(o, unittest.hasLength(2)); checkRank(o[0]); checkRank(o[1]); } -buildUnnamed138() { +buildUnnamed1615() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed138(core.List<core.String> o) { +checkUnnamed1615(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed139() { +buildUnnamed1616() { var o = new core.List<api.SpecializationStatus>(); o.add(buildSpecializationStatus()); o.add(buildSpecializationStatus()); return o; } -checkUnnamed139(core.List<api.SpecializationStatus> o) { +checkUnnamed1616(core.List<api.SpecializationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkSpecializationStatus(o[0]); checkSpecializationStatus(o[1]); @@ -441,16 +441,17 @@ var o = new api.Company(); buildCounterCompany++; if (buildCounterCompany < 3) { - o.additionalWebsites = buildUnnamed130(); - o.autoApprovalEmailDomains = buildUnnamed131(); + o.additionalWebsites = buildUnnamed1607(); + o.autoApprovalEmailDomains = buildUnnamed1608(); + o.badgeAuthorityInAwn = true; o.badgeTier = "foo"; - o.certificationStatuses = buildUnnamed132(); - o.companyTypes = buildUnnamed133(); + o.certificationStatuses = buildUnnamed1609(); + o.companyTypes = buildUnnamed1610(); o.convertedMinMonthlyBudget = buildMoney(); o.id = "foo"; - o.industries = buildUnnamed134(); - o.localizedInfos = buildUnnamed135(); - o.locations = buildUnnamed136(); + o.industries = buildUnnamed1611(); + o.localizedInfos = buildUnnamed1612(); + o.locations = buildUnnamed1613(); o.name = "foo"; o.originalMinMonthlyBudget = buildMoney(); o.primaryAdwordsManagerAccountId = "foo"; @@ -458,9 +459,9 @@ o.primaryLocation = buildLocation(); o.profileStatus = "foo"; o.publicProfile = buildPublicProfile(); - o.ranks = buildUnnamed137(); - o.services = buildUnnamed138(); - o.specializationStatus = buildUnnamed139(); + o.ranks = buildUnnamed1614(); + o.services = buildUnnamed1615(); + o.specializationStatus = buildUnnamed1616(); o.websiteUrl = "foo"; } buildCounterCompany--; @@ -470,16 +471,17 @@ checkCompany(api.Company o) { buildCounterCompany++; if (buildCounterCompany < 3) { - checkUnnamed130(o.additionalWebsites); - checkUnnamed131(o.autoApprovalEmailDomains); + checkUnnamed1607(o.additionalWebsites); + checkUnnamed1608(o.autoApprovalEmailDomains); + unittest.expect(o.badgeAuthorityInAwn, unittest.isTrue); unittest.expect(o.badgeTier, unittest.equals('foo')); - checkUnnamed132(o.certificationStatuses); - checkUnnamed133(o.companyTypes); + checkUnnamed1609(o.certificationStatuses); + checkUnnamed1610(o.companyTypes); checkMoney(o.convertedMinMonthlyBudget); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed134(o.industries); - checkUnnamed135(o.localizedInfos); - checkUnnamed136(o.locations); + checkUnnamed1611(o.industries); + checkUnnamed1612(o.localizedInfos); + checkUnnamed1613(o.locations); unittest.expect(o.name, unittest.equals('foo')); checkMoney(o.originalMinMonthlyBudget); unittest.expect(o.primaryAdwordsManagerAccountId, unittest.equals('foo')); @@ -487,35 +489,35 @@ checkLocation(o.primaryLocation); unittest.expect(o.profileStatus, unittest.equals('foo')); checkPublicProfile(o.publicProfile); - checkUnnamed137(o.ranks); - checkUnnamed138(o.services); - checkUnnamed139(o.specializationStatus); + checkUnnamed1614(o.ranks); + checkUnnamed1615(o.services); + checkUnnamed1616(o.specializationStatus); unittest.expect(o.websiteUrl, unittest.equals('foo')); } buildCounterCompany--; } -buildUnnamed140() { +buildUnnamed1617() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed140(core.List<core.String> o) { +checkUnnamed1617(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed141() { +buildUnnamed1618() { var o = new core.List<api.SpecializationStatus>(); o.add(buildSpecializationStatus()); o.add(buildSpecializationStatus()); return o; } -checkUnnamed141(core.List<api.SpecializationStatus> o) { +checkUnnamed1618(core.List<api.SpecializationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkSpecializationStatus(o[0]); checkSpecializationStatus(o[1]); @@ -541,8 +543,8 @@ o.primaryCountryCode = "foo"; o.primaryLanguageCode = "foo"; o.resolvedTimestamp = "foo"; - o.segment = buildUnnamed140(); - o.specializationStatus = buildUnnamed141(); + o.segment = buildUnnamed1617(); + o.specializationStatus = buildUnnamed1618(); o.state = "foo"; o.website = "foo"; } @@ -568,8 +570,8 @@ unittest.expect(o.primaryCountryCode, unittest.equals('foo')); unittest.expect(o.primaryLanguageCode, unittest.equals('foo')); unittest.expect(o.resolvedTimestamp, unittest.equals('foo')); - checkUnnamed140(o.segment); - checkUnnamed141(o.specializationStatus); + checkUnnamed1617(o.segment); + checkUnnamed1618(o.specializationStatus); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.website, unittest.equals('foo')); } @@ -708,14 +710,14 @@ buildCounterEmpty--; } -buildUnnamed142() { +buildUnnamed1619() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed142(core.List<core.String> o) { +checkUnnamed1619(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -727,7 +729,7 @@ buildCounterEventData++; if (buildCounterEventData < 3) { o.key = "foo"; - o.values = buildUnnamed142(); + o.values = buildUnnamed1619(); } buildCounterEventData--; return o; @@ -737,7 +739,7 @@ buildCounterEventData++; if (buildCounterEventData < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed142(o.values); + checkUnnamed1619(o.values); } buildCounterEventData--; } @@ -873,14 +875,14 @@ buildCounterLatLng--; } -buildUnnamed143() { +buildUnnamed1620() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed143(core.List<core.String> o) { +checkUnnamed1620(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -897,7 +899,7 @@ o.email = "foo"; o.familyName = "foo"; o.givenName = "foo"; - o.gpsMotivations = buildUnnamed143(); + o.gpsMotivations = buildUnnamed1620(); o.id = "foo"; o.languageCode = "foo"; o.marketingOptIn = true; @@ -920,7 +922,7 @@ unittest.expect(o.email, unittest.equals('foo')); unittest.expect(o.familyName, unittest.equals('foo')); unittest.expect(o.givenName, unittest.equals('foo')); - checkUnnamed143(o.gpsMotivations); + checkUnnamed1620(o.gpsMotivations); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.languageCode, unittest.equals('foo')); unittest.expect(o.marketingOptIn, unittest.isTrue); @@ -933,14 +935,14 @@ buildCounterLead--; } -buildUnnamed144() { +buildUnnamed1621() { var o = new core.List<api.Analytics>(); o.add(buildAnalytics()); o.add(buildAnalytics()); return o; } -checkUnnamed144(core.List<api.Analytics> o) { +checkUnnamed1621(core.List<api.Analytics> o) { unittest.expect(o, unittest.hasLength(2)); checkAnalytics(o[0]); checkAnalytics(o[1]); @@ -951,7 +953,7 @@ var o = new api.ListAnalyticsResponse(); buildCounterListAnalyticsResponse++; if (buildCounterListAnalyticsResponse < 3) { - o.analytics = buildUnnamed144(); + o.analytics = buildUnnamed1621(); o.analyticsSummary = buildAnalyticsSummary(); o.nextPageToken = "foo"; o.responseMetadata = buildResponseMetadata(); @@ -963,7 +965,7 @@ checkListAnalyticsResponse(api.ListAnalyticsResponse o) { buildCounterListAnalyticsResponse++; if (buildCounterListAnalyticsResponse < 3) { - checkUnnamed144(o.analytics); + checkUnnamed1621(o.analytics); checkAnalyticsSummary(o.analyticsSummary); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkResponseMetadata(o.responseMetadata); @@ -971,14 +973,14 @@ buildCounterListAnalyticsResponse--; } -buildUnnamed145() { +buildUnnamed1622() { var o = new core.List<api.Company>(); o.add(buildCompany()); o.add(buildCompany()); return o; } -checkUnnamed145(core.List<api.Company> o) { +checkUnnamed1622(core.List<api.Company> o) { unittest.expect(o, unittest.hasLength(2)); checkCompany(o[0]); checkCompany(o[1]); @@ -989,7 +991,7 @@ var o = new api.ListCompaniesResponse(); buildCounterListCompaniesResponse++; if (buildCounterListCompaniesResponse < 3) { - o.companies = buildUnnamed145(); + o.companies = buildUnnamed1622(); o.nextPageToken = "foo"; o.responseMetadata = buildResponseMetadata(); } @@ -1000,21 +1002,21 @@ checkListCompaniesResponse(api.ListCompaniesResponse o) { buildCounterListCompaniesResponse++; if (buildCounterListCompaniesResponse < 3) { - checkUnnamed145(o.companies); + checkUnnamed1622(o.companies); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkResponseMetadata(o.responseMetadata); } buildCounterListCompaniesResponse--; } -buildUnnamed146() { +buildUnnamed1623() { var o = new core.List<api.Lead>(); o.add(buildLead()); o.add(buildLead()); return o; } -checkUnnamed146(core.List<api.Lead> o) { +checkUnnamed1623(core.List<api.Lead> o) { unittest.expect(o, unittest.hasLength(2)); checkLead(o[0]); checkLead(o[1]); @@ -1025,7 +1027,7 @@ var o = new api.ListLeadsResponse(); buildCounterListLeadsResponse++; if (buildCounterListLeadsResponse < 3) { - o.leads = buildUnnamed146(); + o.leads = buildUnnamed1623(); o.nextPageToken = "foo"; o.responseMetadata = buildResponseMetadata(); o.totalSize = 42; @@ -1037,7 +1039,7 @@ checkListLeadsResponse(api.ListLeadsResponse o) { buildCounterListLeadsResponse++; if (buildCounterListLeadsResponse < 3) { - checkUnnamed146(o.leads); + checkUnnamed1623(o.leads); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkResponseMetadata(o.responseMetadata); unittest.expect(o.totalSize, unittest.equals(42)); @@ -1045,14 +1047,14 @@ buildCounterListLeadsResponse--; } -buildUnnamed147() { +buildUnnamed1624() { var o = new core.List<api.HistoricalOffer>(); o.add(buildHistoricalOffer()); o.add(buildHistoricalOffer()); return o; } -checkUnnamed147(core.List<api.HistoricalOffer> o) { +checkUnnamed1624(core.List<api.HistoricalOffer> o) { unittest.expect(o, unittest.hasLength(2)); checkHistoricalOffer(o[0]); checkHistoricalOffer(o[1]); @@ -1065,7 +1067,7 @@ if (buildCounterListOffersHistoryResponse < 3) { o.canShowEntireCompany = true; o.nextPageToken = "foo"; - o.offers = buildUnnamed147(); + o.offers = buildUnnamed1624(); o.responseMetadata = buildResponseMetadata(); o.showingEntireCompany = true; o.totalResults = 42; @@ -1079,7 +1081,7 @@ if (buildCounterListOffersHistoryResponse < 3) { unittest.expect(o.canShowEntireCompany, unittest.isTrue); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed147(o.offers); + checkUnnamed1624(o.offers); checkResponseMetadata(o.responseMetadata); unittest.expect(o.showingEntireCompany, unittest.isTrue); unittest.expect(o.totalResults, unittest.equals(42)); @@ -1087,14 +1089,14 @@ buildCounterListOffersHistoryResponse--; } -buildUnnamed148() { +buildUnnamed1625() { var o = new core.List<api.AvailableOffer>(); o.add(buildAvailableOffer()); o.add(buildAvailableOffer()); return o; } -checkUnnamed148(core.List<api.AvailableOffer> o) { +checkUnnamed1625(core.List<api.AvailableOffer> o) { unittest.expect(o, unittest.hasLength(2)); checkAvailableOffer(o[0]); checkAvailableOffer(o[1]); @@ -1105,7 +1107,7 @@ var o = new api.ListOffersResponse(); buildCounterListOffersResponse++; if (buildCounterListOffersResponse < 3) { - o.availableOffers = buildUnnamed148(); + o.availableOffers = buildUnnamed1625(); o.noOfferReason = "foo"; o.responseMetadata = buildResponseMetadata(); } @@ -1116,21 +1118,21 @@ checkListOffersResponse(api.ListOffersResponse o) { buildCounterListOffersResponse++; if (buildCounterListOffersResponse < 3) { - checkUnnamed148(o.availableOffers); + checkUnnamed1625(o.availableOffers); unittest.expect(o.noOfferReason, unittest.equals('foo')); checkResponseMetadata(o.responseMetadata); } buildCounterListOffersResponse--; } -buildUnnamed149() { +buildUnnamed1626() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed149(core.List<core.String> o) { +checkUnnamed1626(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1142,7 +1144,7 @@ buildCounterListUserStatesResponse++; if (buildCounterListUserStatesResponse < 3) { o.responseMetadata = buildResponseMetadata(); - o.userStates = buildUnnamed149(); + o.userStates = buildUnnamed1626(); } buildCounterListUserStatesResponse--; return o; @@ -1152,19 +1154,19 @@ buildCounterListUserStatesResponse++; if (buildCounterListUserStatesResponse < 3) { checkResponseMetadata(o.responseMetadata); - checkUnnamed149(o.userStates); + checkUnnamed1626(o.userStates); } buildCounterListUserStatesResponse--; } -buildUnnamed150() { +buildUnnamed1627() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed150(core.List<core.String> o) { +checkUnnamed1627(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1175,7 +1177,7 @@ var o = new api.LocalizedCompanyInfo(); buildCounterLocalizedCompanyInfo++; if (buildCounterLocalizedCompanyInfo < 3) { - o.countryCodes = buildUnnamed150(); + o.countryCodes = buildUnnamed1627(); o.displayName = "foo"; o.languageCode = "foo"; o.overview = "foo"; @@ -1187,7 +1189,7 @@ checkLocalizedCompanyInfo(api.LocalizedCompanyInfo o) { buildCounterLocalizedCompanyInfo++; if (buildCounterLocalizedCompanyInfo < 3) { - checkUnnamed150(o.countryCodes); + checkUnnamed1627(o.countryCodes); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.languageCode, unittest.equals('foo')); unittest.expect(o.overview, unittest.equals('foo')); @@ -1195,14 +1197,14 @@ buildCounterLocalizedCompanyInfo--; } -buildUnnamed151() { +buildUnnamed1628() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed151(core.List<core.String> o) { +checkUnnamed1628(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1214,7 +1216,7 @@ buildCounterLocation++; if (buildCounterLocation < 3) { o.address = "foo"; - o.addressLine = buildUnnamed151(); + o.addressLine = buildUnnamed1628(); o.administrativeArea = "foo"; o.dependentLocality = "foo"; o.languageCode = "foo"; @@ -1232,7 +1234,7 @@ buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.address, unittest.equals('foo')); - checkUnnamed151(o.addressLine); + checkUnnamed1628(o.addressLine); unittest.expect(o.administrativeArea, unittest.equals('foo')); unittest.expect(o.dependentLocality, unittest.equals('foo')); unittest.expect(o.languageCode, unittest.equals('foo')); @@ -1245,14 +1247,14 @@ buildCounterLocation--; } -buildUnnamed152() { +buildUnnamed1629() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed152(core.Map<core.String, core.String> o) { +checkUnnamed1629(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')); @@ -1263,7 +1265,7 @@ var o = new api.LogMessageRequest(); buildCounterLogMessageRequest++; if (buildCounterLogMessageRequest < 3) { - o.clientInfo = buildUnnamed152(); + o.clientInfo = buildUnnamed1629(); o.details = "foo"; o.level = "foo"; o.requestMetadata = buildRequestMetadata(); @@ -1275,7 +1277,7 @@ checkLogMessageRequest(api.LogMessageRequest o) { buildCounterLogMessageRequest++; if (buildCounterLogMessageRequest < 3) { - checkUnnamed152(o.clientInfo); + checkUnnamed1629(o.clientInfo); unittest.expect(o.details, unittest.equals('foo')); unittest.expect(o.level, unittest.equals('foo')); checkRequestMetadata(o.requestMetadata); @@ -1302,14 +1304,14 @@ buildCounterLogMessageResponse--; } -buildUnnamed153() { +buildUnnamed1630() { var o = new core.List<api.EventData>(); o.add(buildEventData()); o.add(buildEventData()); return o; } -checkUnnamed153(core.List<api.EventData> o) { +checkUnnamed1630(core.List<api.EventData> o) { unittest.expect(o, unittest.hasLength(2)); checkEventData(o[0]); checkEventData(o[1]); @@ -1322,7 +1324,7 @@ if (buildCounterLogUserEventRequest < 3) { o.eventAction = "foo"; o.eventCategory = "foo"; - o.eventDatas = buildUnnamed153(); + o.eventDatas = buildUnnamed1630(); o.eventScope = "foo"; o.lead = buildLead(); o.requestMetadata = buildRequestMetadata(); @@ -1337,7 +1339,7 @@ if (buildCounterLogUserEventRequest < 3) { unittest.expect(o.eventAction, unittest.equals('foo')); unittest.expect(o.eventCategory, unittest.equals('foo')); - checkUnnamed153(o.eventDatas); + checkUnnamed1630(o.eventDatas); unittest.expect(o.eventScope, unittest.equals('foo')); checkLead(o.lead); checkRequestMetadata(o.requestMetadata); @@ -1519,14 +1521,14 @@ buildCounterRecaptchaChallenge--; } -buildUnnamed154() { +buildUnnamed1631() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed154(core.List<core.String> o) { +checkUnnamed1631(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1537,7 +1539,7 @@ var o = new api.RequestMetadata(); buildCounterRequestMetadata++; if (buildCounterRequestMetadata < 3) { - o.experimentIds = buildUnnamed154(); + o.experimentIds = buildUnnamed1631(); o.locale = "foo"; o.partnersSessionId = "foo"; o.trafficSource = buildTrafficSource(); @@ -1550,7 +1552,7 @@ checkRequestMetadata(api.RequestMetadata o) { buildCounterRequestMetadata++; if (buildCounterRequestMetadata < 3) { - checkUnnamed154(o.experimentIds); + checkUnnamed1631(o.experimentIds); unittest.expect(o.locale, unittest.equals('foo')); unittest.expect(o.partnersSessionId, unittest.equals('foo')); checkTrafficSource(o.trafficSource); @@ -1620,53 +1622,53 @@ buildCounterTrafficSource--; } -buildUnnamed155() { +buildUnnamed1632() { var o = new core.List<api.AdWordsManagerAccountInfo>(); o.add(buildAdWordsManagerAccountInfo()); o.add(buildAdWordsManagerAccountInfo()); return o; } -checkUnnamed155(core.List<api.AdWordsManagerAccountInfo> o) { +checkUnnamed1632(core.List<api.AdWordsManagerAccountInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkAdWordsManagerAccountInfo(o[0]); checkAdWordsManagerAccountInfo(o[1]); } -buildUnnamed156() { +buildUnnamed1633() { var o = new core.List<api.Certification>(); o.add(buildCertification()); o.add(buildCertification()); return o; } -checkUnnamed156(core.List<api.Certification> o) { +checkUnnamed1633(core.List<api.Certification> o) { unittest.expect(o, unittest.hasLength(2)); checkCertification(o[0]); checkCertification(o[1]); } -buildUnnamed157() { +buildUnnamed1634() { var o = new core.List<api.ExamStatus>(); o.add(buildExamStatus()); o.add(buildExamStatus()); return o; } -checkUnnamed157(core.List<api.ExamStatus> o) { +checkUnnamed1634(core.List<api.ExamStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkExamStatus(o[0]); checkExamStatus(o[1]); } -buildUnnamed158() { +buildUnnamed1635() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed158(core.List<core.String> o) { +checkUnnamed1635(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1677,15 +1679,16 @@ var o = new api.User(); buildCounterUser++; if (buildCounterUser < 3) { - o.availableAdwordsManagerAccounts = buildUnnamed155(); - o.certificationStatus = buildUnnamed156(); + o.afaInfoShared = true; + o.availableAdwordsManagerAccounts = buildUnnamed1632(); + o.certificationStatus = buildUnnamed1633(); o.company = buildCompanyRelation(); o.companyVerificationEmail = "foo"; - o.examStatus = buildUnnamed157(); + o.examStatus = buildUnnamed1634(); o.id = "foo"; o.internalId = "foo"; o.lastAccessTime = "foo"; - o.primaryEmails = buildUnnamed158(); + o.primaryEmails = buildUnnamed1635(); o.profile = buildUserProfile(); o.publicProfile = buildPublicProfile(); } @@ -1696,15 +1699,16 @@ checkUser(api.User o) { buildCounterUser++; if (buildCounterUser < 3) { - checkUnnamed155(o.availableAdwordsManagerAccounts); - checkUnnamed156(o.certificationStatus); + unittest.expect(o.afaInfoShared, unittest.isTrue); + checkUnnamed1632(o.availableAdwordsManagerAccounts); + checkUnnamed1633(o.certificationStatus); checkCompanyRelation(o.company); unittest.expect(o.companyVerificationEmail, unittest.equals('foo')); - checkUnnamed157(o.examStatus); + checkUnnamed1634(o.examStatus); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.internalId, unittest.equals('foo')); unittest.expect(o.lastAccessTime, unittest.equals('foo')); - checkUnnamed158(o.primaryEmails); + checkUnnamed1635(o.primaryEmails); checkUserProfile(o.profile); checkPublicProfile(o.publicProfile); } @@ -1732,66 +1736,66 @@ buildCounterUserOverrides--; } -buildUnnamed159() { +buildUnnamed1636() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed159(core.List<core.String> o) { +checkUnnamed1636(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed160() { +buildUnnamed1637() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed160(core.List<core.String> o) { +checkUnnamed1637(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed161() { +buildUnnamed1638() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed161(core.List<core.String> o) { +checkUnnamed1638(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed162() { +buildUnnamed1639() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed162(core.List<core.String> o) { +checkUnnamed1639(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed163() { +buildUnnamed1640() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed163(core.List<core.String> o) { +checkUnnamed1640(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1804,15 +1808,15 @@ if (buildCounterUserProfile < 3) { o.address = buildLocation(); o.adwordsManagerAccount = "foo"; - o.channels = buildUnnamed159(); + o.channels = buildUnnamed1636(); o.emailAddress = "foo"; o.emailOptIns = buildOptIns(); o.familyName = "foo"; o.givenName = "foo"; - o.industries = buildUnnamed160(); - o.jobFunctions = buildUnnamed161(); - o.languages = buildUnnamed162(); - o.markets = buildUnnamed163(); + o.industries = buildUnnamed1637(); + o.jobFunctions = buildUnnamed1638(); + o.languages = buildUnnamed1639(); + o.markets = buildUnnamed1640(); o.migrateToAfa = true; o.phoneNumber = "foo"; o.primaryCountryCode = "foo"; @@ -1827,15 +1831,15 @@ if (buildCounterUserProfile < 3) { checkLocation(o.address); unittest.expect(o.adwordsManagerAccount, unittest.equals('foo')); - checkUnnamed159(o.channels); + checkUnnamed1636(o.channels); unittest.expect(o.emailAddress, unittest.equals('foo')); checkOptIns(o.emailOptIns); unittest.expect(o.familyName, unittest.equals('foo')); unittest.expect(o.givenName, unittest.equals('foo')); - checkUnnamed160(o.industries); - checkUnnamed161(o.jobFunctions); - checkUnnamed162(o.languages); - checkUnnamed163(o.markets); + checkUnnamed1637(o.industries); + checkUnnamed1638(o.jobFunctions); + checkUnnamed1639(o.languages); + checkUnnamed1640(o.markets); unittest.expect(o.migrateToAfa, unittest.isTrue); unittest.expect(o.phoneNumber, unittest.equals('foo')); unittest.expect(o.primaryCountryCode, unittest.equals('foo')); @@ -1844,248 +1848,248 @@ buildCounterUserProfile--; } -buildUnnamed164() { +buildUnnamed1641() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed164(core.List<core.String> o) { +checkUnnamed1641(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed165() { +buildUnnamed1642() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed165(core.List<core.String> o) { +checkUnnamed1642(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed166() { +buildUnnamed1643() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed166(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')); } -buildUnnamed167() { +buildUnnamed1644() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed167(core.List<core.String> o) { +checkUnnamed1644(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed168() { +buildUnnamed1645() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed168(core.List<core.String> o) { +checkUnnamed1645(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed169() { +buildUnnamed1646() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed169(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')); } -buildUnnamed170() { +buildUnnamed1647() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed170(core.List<core.String> o) { +checkUnnamed1647(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed171() { +buildUnnamed1648() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed171(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')); } -buildUnnamed172() { +buildUnnamed1649() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed172(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')); } -buildUnnamed173() { +buildUnnamed1650() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed173(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')); } -buildUnnamed174() { +buildUnnamed1651() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed174(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')); } -buildUnnamed175() { +buildUnnamed1652() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed175(core.List<core.String> o) { +checkUnnamed1652(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed176() { +buildUnnamed1653() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed176(core.List<core.String> o) { +checkUnnamed1653(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed177() { +buildUnnamed1654() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed177(core.List<core.String> o) { +checkUnnamed1654(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed178() { +buildUnnamed1655() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed178(core.List<core.String> o) { +checkUnnamed1655(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed179() { +buildUnnamed1656() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed179(core.List<core.String> o) { +checkUnnamed1656(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed180() { +buildUnnamed1657() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed180(core.List<core.String> o) { +checkUnnamed1657(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed181() { +buildUnnamed1658() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed181(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')); } -buildUnnamed182() { +buildUnnamed1659() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed182(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')); @@ -2480,15 +2484,15 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.AnalyticsResourceApi res = new api.PartnersApi(mock).analytics; - var arg_requestMetadata_partnersSessionId = "foo"; - var arg_requestMetadata_userOverrides_userId = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; var arg_requestMetadata_locale = "foo"; var arg_requestMetadata_userOverrides_ipAddress = "foo"; - var arg_requestMetadata_experimentIds = buildUnnamed164(); + var arg_requestMetadata_experimentIds = buildUnnamed1641(); var arg_requestMetadata_trafficSource_trafficSubId = "foo"; + var arg_requestMetadata_userOverrides_userId = "foo"; + var arg_requestMetadata_partnersSessionId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2520,10 +2524,6 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["requestMetadata.partnersSessionId"].first, - unittest.equals(arg_requestMetadata_partnersSessionId)); - unittest.expect(queryMap["requestMetadata.userOverrides.userId"].first, - unittest.equals(arg_requestMetadata_userOverrides_userId)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), @@ -2541,6 +2541,10 @@ unittest.expect( queryMap["requestMetadata.trafficSource.trafficSubId"].first, unittest.equals(arg_requestMetadata_trafficSource_trafficSubId)); + unittest.expect(queryMap["requestMetadata.userOverrides.userId"].first, + unittest.equals(arg_requestMetadata_userOverrides_userId)); + unittest.expect(queryMap["requestMetadata.partnersSessionId"].first, + unittest.equals(arg_requestMetadata_partnersSessionId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2551,10 +2555,6 @@ }), true); res .list( - requestMetadata_partnersSessionId: - arg_requestMetadata_partnersSessionId, - requestMetadata_userOverrides_userId: - arg_requestMetadata_userOverrides_userId, pageToken: arg_pageToken, pageSize: arg_pageSize, requestMetadata_trafficSource_trafficSourceId: @@ -2565,6 +2565,10 @@ requestMetadata_experimentIds: arg_requestMetadata_experimentIds, requestMetadata_trafficSource_trafficSubId: arg_requestMetadata_trafficSource_trafficSubId, + requestMetadata_userOverrides_userId: + arg_requestMetadata_userOverrides_userId, + requestMetadata_partnersSessionId: + arg_requestMetadata_partnersSessionId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListAnalyticsResponse(response); @@ -2635,12 +2639,12 @@ var arg_companyId = "foo"; var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; var arg_requestMetadata_userOverrides_ipAddress = "foo"; + var arg_requestMetadata_experimentIds = buildUnnamed1642(); var arg_currencyCode = "foo"; - var arg_requestMetadata_experimentIds = buildUnnamed165(); - var arg_requestMetadata_trafficSource_trafficSubId = "foo"; var arg_orderBy = "foo"; - var arg_requestMetadata_partnersSessionId = "foo"; + var arg_requestMetadata_trafficSource_trafficSubId = "foo"; var arg_requestMetadata_userOverrides_userId = "foo"; + var arg_requestMetadata_partnersSessionId = "foo"; var arg_view = "foo"; var arg_requestMetadata_locale = "foo"; var arg_address = "foo"; @@ -2684,19 +2688,19 @@ unittest.expect( queryMap["requestMetadata.userOverrides.ipAddress"].first, unittest.equals(arg_requestMetadata_userOverrides_ipAddress)); - unittest.expect( - queryMap["currencyCode"].first, unittest.equals(arg_currencyCode)); unittest.expect(queryMap["requestMetadata.experimentIds"], unittest.equals(arg_requestMetadata_experimentIds)); unittest.expect( - queryMap["requestMetadata.trafficSource.trafficSubId"].first, - unittest.equals(arg_requestMetadata_trafficSource_trafficSubId)); + queryMap["currencyCode"].first, unittest.equals(arg_currencyCode)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); - unittest.expect(queryMap["requestMetadata.partnersSessionId"].first, - unittest.equals(arg_requestMetadata_partnersSessionId)); + unittest.expect( + queryMap["requestMetadata.trafficSource.trafficSubId"].first, + unittest.equals(arg_requestMetadata_trafficSource_trafficSubId)); unittest.expect(queryMap["requestMetadata.userOverrides.userId"].first, unittest.equals(arg_requestMetadata_userOverrides_userId)); + unittest.expect(queryMap["requestMetadata.partnersSessionId"].first, + unittest.equals(arg_requestMetadata_partnersSessionId)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["requestMetadata.locale"].first, unittest.equals(arg_requestMetadata_locale)); @@ -2716,15 +2720,15 @@ arg_requestMetadata_trafficSource_trafficSourceId, requestMetadata_userOverrides_ipAddress: arg_requestMetadata_userOverrides_ipAddress, - currencyCode: arg_currencyCode, requestMetadata_experimentIds: arg_requestMetadata_experimentIds, + currencyCode: arg_currencyCode, + orderBy: arg_orderBy, requestMetadata_trafficSource_trafficSubId: arg_requestMetadata_trafficSource_trafficSubId, - orderBy: arg_orderBy, - requestMetadata_partnersSessionId: - arg_requestMetadata_partnersSessionId, requestMetadata_userOverrides_userId: arg_requestMetadata_userOverrides_userId, + requestMetadata_partnersSessionId: + arg_requestMetadata_partnersSessionId, view: arg_view, requestMetadata_locale: arg_requestMetadata_locale, address: arg_address, @@ -2738,26 +2742,26 @@ var mock = new HttpServerMock(); api.CompaniesResourceApi res = new api.PartnersApi(mock).companies; var arg_requestMetadata_partnersSessionId = "foo"; - var arg_companyName = "foo"; var arg_pageToken = "foo"; - var arg_industries = buildUnnamed166(); + var arg_companyName = "foo"; + var arg_industries = buildUnnamed1643(); var arg_websiteUrl = "foo"; - var arg_gpsMotivations = buildUnnamed167(); - var arg_languageCodes = buildUnnamed168(); + var arg_gpsMotivations = buildUnnamed1644(); + var arg_languageCodes = buildUnnamed1645(); var arg_pageSize = 42; var arg_requestMetadata_userOverrides_ipAddress = "foo"; - var arg_requestMetadata_experimentIds = buildUnnamed169(); + var arg_requestMetadata_experimentIds = buildUnnamed1646(); var arg_orderBy = "foo"; - var arg_specializations = buildUnnamed170(); + var arg_specializations = buildUnnamed1647(); var arg_maxMonthlyBudget_currencyCode = "foo"; var arg_requestMetadata_userOverrides_userId = "foo"; var arg_minMonthlyBudget_currencyCode = "foo"; var arg_view = "foo"; - var arg_requestMetadata_locale = "foo"; var arg_address = "foo"; + var arg_requestMetadata_locale = "foo"; var arg_minMonthlyBudget_units = "foo"; var arg_maxMonthlyBudget_nanos = 42; - var arg_services = buildUnnamed171(); + var arg_services = buildUnnamed1648(); var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; var arg_maxMonthlyBudget_units = "foo"; var arg_minMonthlyBudget_nanos = 42; @@ -2796,10 +2800,10 @@ unittest.expect(queryMap["requestMetadata.partnersSessionId"].first, unittest.equals(arg_requestMetadata_partnersSessionId)); unittest.expect( - queryMap["companyName"].first, unittest.equals(arg_companyName)); - unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( + queryMap["companyName"].first, unittest.equals(arg_companyName)); + unittest.expect( queryMap["industries"], unittest.equals(arg_industries)); unittest.expect( queryMap["websiteUrl"].first, unittest.equals(arg_websiteUrl)); @@ -2825,10 +2829,10 @@ unittest.expect(queryMap["minMonthlyBudget.currencyCode"].first, unittest.equals(arg_minMonthlyBudget_currencyCode)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); - unittest.expect(queryMap["requestMetadata.locale"].first, - unittest.equals(arg_requestMetadata_locale)); unittest.expect( queryMap["address"].first, unittest.equals(arg_address)); + unittest.expect(queryMap["requestMetadata.locale"].first, + unittest.equals(arg_requestMetadata_locale)); unittest.expect(queryMap["minMonthlyBudget.units"].first, unittest.equals(arg_minMonthlyBudget_units)); unittest.expect( @@ -2858,8 +2862,8 @@ .list( requestMetadata_partnersSessionId: arg_requestMetadata_partnersSessionId, - companyName: arg_companyName, pageToken: arg_pageToken, + companyName: arg_companyName, industries: arg_industries, websiteUrl: arg_websiteUrl, gpsMotivations: arg_gpsMotivations, @@ -2875,8 +2879,8 @@ arg_requestMetadata_userOverrides_userId, minMonthlyBudget_currencyCode: arg_minMonthlyBudget_currencyCode, view: arg_view, - requestMetadata_locale: arg_requestMetadata_locale, address: arg_address, + requestMetadata_locale: arg_requestMetadata_locale, minMonthlyBudget_units: arg_minMonthlyBudget_units, maxMonthlyBudget_nanos: arg_maxMonthlyBudget_nanos, services: arg_services, @@ -2963,14 +2967,14 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.LeadsResourceApi res = new api.PartnersApi(mock).leads; - var arg_requestMetadata_partnersSessionId = "foo"; var arg_requestMetadata_userOverrides_userId = "foo"; + var arg_requestMetadata_partnersSessionId = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; var arg_requestMetadata_locale = "foo"; var arg_requestMetadata_userOverrides_ipAddress = "foo"; - var arg_requestMetadata_experimentIds = buildUnnamed172(); + var arg_requestMetadata_experimentIds = buildUnnamed1649(); var arg_requestMetadata_trafficSource_trafficSubId = "foo"; var arg_orderBy = "foo"; var arg_$fields = "foo"; @@ -3004,10 +3008,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["requestMetadata.partnersSessionId"].first, - unittest.equals(arg_requestMetadata_partnersSessionId)); unittest.expect(queryMap["requestMetadata.userOverrides.userId"].first, unittest.equals(arg_requestMetadata_userOverrides_userId)); + unittest.expect(queryMap["requestMetadata.partnersSessionId"].first, + unittest.equals(arg_requestMetadata_partnersSessionId)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), @@ -3037,10 +3041,10 @@ }), true); res .list( - requestMetadata_partnersSessionId: - arg_requestMetadata_partnersSessionId, requestMetadata_userOverrides_userId: arg_requestMetadata_userOverrides_userId, + requestMetadata_partnersSessionId: + arg_requestMetadata_partnersSessionId, pageToken: arg_pageToken, pageSize: arg_pageSize, requestMetadata_trafficSource_trafficSourceId: @@ -3063,12 +3067,12 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.OffersResourceApi res = new api.PartnersApi(mock).offers; - var arg_requestMetadata_userOverrides_userId = "foo"; var arg_requestMetadata_partnersSessionId = "foo"; + var arg_requestMetadata_userOverrides_userId = "foo"; var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; var arg_requestMetadata_locale = "foo"; var arg_requestMetadata_userOverrides_ipAddress = "foo"; - var arg_requestMetadata_experimentIds = buildUnnamed173(); + var arg_requestMetadata_experimentIds = buildUnnamed1650(); var arg_requestMetadata_trafficSource_trafficSubId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -3101,10 +3105,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["requestMetadata.userOverrides.userId"].first, - unittest.equals(arg_requestMetadata_userOverrides_userId)); unittest.expect(queryMap["requestMetadata.partnersSessionId"].first, unittest.equals(arg_requestMetadata_partnersSessionId)); + unittest.expect(queryMap["requestMetadata.userOverrides.userId"].first, + unittest.equals(arg_requestMetadata_userOverrides_userId)); unittest.expect( queryMap["requestMetadata.trafficSource.trafficSourceId"].first, unittest.equals(arg_requestMetadata_trafficSource_trafficSourceId)); @@ -3128,10 +3132,10 @@ }), true); res .list( - requestMetadata_userOverrides_userId: - arg_requestMetadata_userOverrides_userId, requestMetadata_partnersSessionId: arg_requestMetadata_partnersSessionId, + requestMetadata_userOverrides_userId: + arg_requestMetadata_userOverrides_userId, requestMetadata_trafficSource_trafficSourceId: arg_requestMetadata_trafficSource_trafficSourceId, requestMetadata_locale: arg_requestMetadata_locale, @@ -3160,7 +3164,7 @@ var arg_requestMetadata_locale = "foo"; var arg_requestMetadata_userOverrides_ipAddress = "foo"; var arg_entireCompany = true; - var arg_requestMetadata_experimentIds = buildUnnamed174(); + var arg_requestMetadata_experimentIds = buildUnnamed1651(); var arg_orderBy = "foo"; var arg_requestMetadata_trafficSource_trafficSubId = "foo"; var arg_$fields = "foo"; @@ -3311,13 +3315,13 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.UserStatesResourceApi res = new api.PartnersApi(mock).userStates; - var arg_requestMetadata_locale = "foo"; - var arg_requestMetadata_userOverrides_ipAddress = "foo"; - var arg_requestMetadata_experimentIds = buildUnnamed175(); - var arg_requestMetadata_trafficSource_trafficSubId = "foo"; var arg_requestMetadata_userOverrides_userId = "foo"; var arg_requestMetadata_partnersSessionId = "foo"; var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; + var arg_requestMetadata_locale = "foo"; + var arg_requestMetadata_userOverrides_ipAddress = "foo"; + var arg_requestMetadata_experimentIds = buildUnnamed1652(); + var arg_requestMetadata_trafficSource_trafficSubId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3349,6 +3353,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["requestMetadata.userOverrides.userId"].first, + unittest.equals(arg_requestMetadata_userOverrides_userId)); + unittest.expect(queryMap["requestMetadata.partnersSessionId"].first, + unittest.equals(arg_requestMetadata_partnersSessionId)); + unittest.expect( + queryMap["requestMetadata.trafficSource.trafficSourceId"].first, + unittest.equals(arg_requestMetadata_trafficSource_trafficSourceId)); unittest.expect(queryMap["requestMetadata.locale"].first, unittest.equals(arg_requestMetadata_locale)); unittest.expect( @@ -3359,13 +3370,6 @@ unittest.expect( queryMap["requestMetadata.trafficSource.trafficSubId"].first, unittest.equals(arg_requestMetadata_trafficSource_trafficSubId)); - unittest.expect(queryMap["requestMetadata.userOverrides.userId"].first, - unittest.equals(arg_requestMetadata_userOverrides_userId)); - unittest.expect(queryMap["requestMetadata.partnersSessionId"].first, - unittest.equals(arg_requestMetadata_partnersSessionId)); - unittest.expect( - queryMap["requestMetadata.trafficSource.trafficSourceId"].first, - unittest.equals(arg_requestMetadata_trafficSource_trafficSourceId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3376,18 +3380,18 @@ }), true); res .list( - requestMetadata_locale: arg_requestMetadata_locale, - requestMetadata_userOverrides_ipAddress: - arg_requestMetadata_userOverrides_ipAddress, - requestMetadata_experimentIds: arg_requestMetadata_experimentIds, - requestMetadata_trafficSource_trafficSubId: - arg_requestMetadata_trafficSource_trafficSubId, requestMetadata_userOverrides_userId: arg_requestMetadata_userOverrides_userId, requestMetadata_partnersSessionId: arg_requestMetadata_partnersSessionId, requestMetadata_trafficSource_trafficSourceId: arg_requestMetadata_trafficSource_trafficSourceId, + requestMetadata_locale: arg_requestMetadata_locale, + requestMetadata_userOverrides_ipAddress: + arg_requestMetadata_userOverrides_ipAddress, + requestMetadata_experimentIds: arg_requestMetadata_experimentIds, + requestMetadata_trafficSource_trafficSubId: + arg_requestMetadata_trafficSource_trafficSubId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListUserStatesResponse(response); @@ -3401,13 +3405,13 @@ api.UsersResourceApi res = new api.PartnersApi(mock).users; var arg_request = buildCompanyRelation(); var arg_userId = "foo"; - var arg_requestMetadata_experimentIds = buildUnnamed176(); - var arg_requestMetadata_trafficSource_trafficSubId = "foo"; var arg_requestMetadata_userOverrides_userId = "foo"; var arg_requestMetadata_partnersSessionId = "foo"; var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; var arg_requestMetadata_locale = "foo"; var arg_requestMetadata_userOverrides_ipAddress = "foo"; + var arg_requestMetadata_experimentIds = buildUnnamed1653(); + var arg_requestMetadata_trafficSource_trafficSubId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CompanyRelation.fromJson(json); @@ -3451,11 +3455,6 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["requestMetadata.experimentIds"], - unittest.equals(arg_requestMetadata_experimentIds)); - unittest.expect( - queryMap["requestMetadata.trafficSource.trafficSubId"].first, - unittest.equals(arg_requestMetadata_trafficSource_trafficSubId)); unittest.expect(queryMap["requestMetadata.userOverrides.userId"].first, unittest.equals(arg_requestMetadata_userOverrides_userId)); unittest.expect(queryMap["requestMetadata.partnersSessionId"].first, @@ -3468,6 +3467,11 @@ unittest.expect( queryMap["requestMetadata.userOverrides.ipAddress"].first, unittest.equals(arg_requestMetadata_userOverrides_ipAddress)); + unittest.expect(queryMap["requestMetadata.experimentIds"], + unittest.equals(arg_requestMetadata_experimentIds)); + unittest.expect( + queryMap["requestMetadata.trafficSource.trafficSubId"].first, + unittest.equals(arg_requestMetadata_trafficSource_trafficSubId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3478,9 +3482,6 @@ }), true); res .createCompanyRelation(arg_request, arg_userId, - requestMetadata_experimentIds: arg_requestMetadata_experimentIds, - requestMetadata_trafficSource_trafficSubId: - arg_requestMetadata_trafficSource_trafficSubId, requestMetadata_userOverrides_userId: arg_requestMetadata_userOverrides_userId, requestMetadata_partnersSessionId: @@ -3490,6 +3491,9 @@ requestMetadata_locale: arg_requestMetadata_locale, requestMetadata_userOverrides_ipAddress: arg_requestMetadata_userOverrides_ipAddress, + requestMetadata_experimentIds: arg_requestMetadata_experimentIds, + requestMetadata_trafficSource_trafficSubId: + arg_requestMetadata_trafficSource_trafficSubId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCompanyRelation(response); @@ -3502,10 +3506,10 @@ var arg_userId = "foo"; var arg_requestMetadata_locale = "foo"; var arg_requestMetadata_userOverrides_ipAddress = "foo"; - var arg_requestMetadata_experimentIds = buildUnnamed177(); + var arg_requestMetadata_experimentIds = buildUnnamed1654(); var arg_requestMetadata_trafficSource_trafficSubId = "foo"; - var arg_requestMetadata_userOverrides_userId = "foo"; var arg_requestMetadata_partnersSessionId = "foo"; + var arg_requestMetadata_userOverrides_userId = "foo"; var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -3557,10 +3561,10 @@ unittest.expect( queryMap["requestMetadata.trafficSource.trafficSubId"].first, unittest.equals(arg_requestMetadata_trafficSource_trafficSubId)); - unittest.expect(queryMap["requestMetadata.userOverrides.userId"].first, - unittest.equals(arg_requestMetadata_userOverrides_userId)); unittest.expect(queryMap["requestMetadata.partnersSessionId"].first, unittest.equals(arg_requestMetadata_partnersSessionId)); + unittest.expect(queryMap["requestMetadata.userOverrides.userId"].first, + unittest.equals(arg_requestMetadata_userOverrides_userId)); unittest.expect( queryMap["requestMetadata.trafficSource.trafficSourceId"].first, unittest.equals(arg_requestMetadata_trafficSource_trafficSourceId)); @@ -3580,10 +3584,10 @@ requestMetadata_experimentIds: arg_requestMetadata_experimentIds, requestMetadata_trafficSource_trafficSubId: arg_requestMetadata_trafficSource_trafficSubId, - requestMetadata_userOverrides_userId: - arg_requestMetadata_userOverrides_userId, requestMetadata_partnersSessionId: arg_requestMetadata_partnersSessionId, + requestMetadata_userOverrides_userId: + arg_requestMetadata_userOverrides_userId, requestMetadata_trafficSource_trafficSourceId: arg_requestMetadata_trafficSource_trafficSourceId, $fields: arg_$fields) @@ -3596,14 +3600,14 @@ var mock = new HttpServerMock(); api.UsersResourceApi res = new api.PartnersApi(mock).users; var arg_userId = "foo"; + var arg_requestMetadata_locale = "foo"; + var arg_requestMetadata_userOverrides_ipAddress = "foo"; + var arg_requestMetadata_experimentIds = buildUnnamed1655(); var arg_requestMetadata_trafficSource_trafficSubId = "foo"; var arg_requestMetadata_userOverrides_userId = "foo"; var arg_requestMetadata_partnersSessionId = "foo"; var arg_userView = "foo"; var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; - var arg_requestMetadata_locale = "foo"; - var arg_requestMetadata_userOverrides_ipAddress = "foo"; - var arg_requestMetadata_experimentIds = buildUnnamed178(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3638,6 +3642,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["requestMetadata.locale"].first, + unittest.equals(arg_requestMetadata_locale)); + unittest.expect( + queryMap["requestMetadata.userOverrides.ipAddress"].first, + unittest.equals(arg_requestMetadata_userOverrides_ipAddress)); + unittest.expect(queryMap["requestMetadata.experimentIds"], + unittest.equals(arg_requestMetadata_experimentIds)); unittest.expect( queryMap["requestMetadata.trafficSource.trafficSubId"].first, unittest.equals(arg_requestMetadata_trafficSource_trafficSubId)); @@ -3650,13 +3661,6 @@ unittest.expect( queryMap["requestMetadata.trafficSource.trafficSourceId"].first, unittest.equals(arg_requestMetadata_trafficSource_trafficSourceId)); - unittest.expect(queryMap["requestMetadata.locale"].first, - unittest.equals(arg_requestMetadata_locale)); - unittest.expect( - queryMap["requestMetadata.userOverrides.ipAddress"].first, - unittest.equals(arg_requestMetadata_userOverrides_ipAddress)); - unittest.expect(queryMap["requestMetadata.experimentIds"], - unittest.equals(arg_requestMetadata_experimentIds)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3667,6 +3671,10 @@ }), true); res .get(arg_userId, + requestMetadata_locale: arg_requestMetadata_locale, + requestMetadata_userOverrides_ipAddress: + arg_requestMetadata_userOverrides_ipAddress, + requestMetadata_experimentIds: arg_requestMetadata_experimentIds, requestMetadata_trafficSource_trafficSubId: arg_requestMetadata_trafficSource_trafficSubId, requestMetadata_userOverrides_userId: @@ -3676,10 +3684,6 @@ userView: arg_userView, requestMetadata_trafficSource_trafficSourceId: arg_requestMetadata_trafficSource_trafficSourceId, - requestMetadata_locale: arg_requestMetadata_locale, - requestMetadata_userOverrides_ipAddress: - arg_requestMetadata_userOverrides_ipAddress, - requestMetadata_experimentIds: arg_requestMetadata_experimentIds, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkUser(response); @@ -3695,7 +3699,7 @@ var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; var arg_requestMetadata_locale = "foo"; var arg_requestMetadata_userOverrides_ipAddress = "foo"; - var arg_requestMetadata_experimentIds = buildUnnamed179(); + var arg_requestMetadata_experimentIds = buildUnnamed1656(); var arg_requestMetadata_trafficSource_trafficSubId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -3781,13 +3785,13 @@ unittest.test("method--getPartnersstatus", () { var mock = new HttpServerMock(); api.V2ResourceApi res = new api.PartnersApi(mock).v2; - var arg_requestMetadata_experimentIds = buildUnnamed180(); - var arg_requestMetadata_trafficSource_trafficSubId = "foo"; - var arg_requestMetadata_userOverrides_userId = "foo"; var arg_requestMetadata_partnersSessionId = "foo"; + var arg_requestMetadata_userOverrides_userId = "foo"; var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; var arg_requestMetadata_locale = "foo"; var arg_requestMetadata_userOverrides_ipAddress = "foo"; + var arg_requestMetadata_experimentIds = buildUnnamed1657(); + var arg_requestMetadata_trafficSource_trafficSubId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3819,15 +3823,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["requestMetadata.experimentIds"], - unittest.equals(arg_requestMetadata_experimentIds)); - unittest.expect( - queryMap["requestMetadata.trafficSource.trafficSubId"].first, - unittest.equals(arg_requestMetadata_trafficSource_trafficSubId)); - unittest.expect(queryMap["requestMetadata.userOverrides.userId"].first, - unittest.equals(arg_requestMetadata_userOverrides_userId)); unittest.expect(queryMap["requestMetadata.partnersSessionId"].first, unittest.equals(arg_requestMetadata_partnersSessionId)); + unittest.expect(queryMap["requestMetadata.userOverrides.userId"].first, + unittest.equals(arg_requestMetadata_userOverrides_userId)); unittest.expect( queryMap["requestMetadata.trafficSource.trafficSourceId"].first, unittest.equals(arg_requestMetadata_trafficSource_trafficSourceId)); @@ -3836,6 +3835,11 @@ unittest.expect( queryMap["requestMetadata.userOverrides.ipAddress"].first, unittest.equals(arg_requestMetadata_userOverrides_ipAddress)); + unittest.expect(queryMap["requestMetadata.experimentIds"], + unittest.equals(arg_requestMetadata_experimentIds)); + unittest.expect( + queryMap["requestMetadata.trafficSource.trafficSubId"].first, + unittest.equals(arg_requestMetadata_trafficSource_trafficSubId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3846,18 +3850,18 @@ }), true); res .getPartnersstatus( - requestMetadata_experimentIds: arg_requestMetadata_experimentIds, - requestMetadata_trafficSource_trafficSubId: - arg_requestMetadata_trafficSource_trafficSubId, - requestMetadata_userOverrides_userId: - arg_requestMetadata_userOverrides_userId, requestMetadata_partnersSessionId: arg_requestMetadata_partnersSessionId, + requestMetadata_userOverrides_userId: + arg_requestMetadata_userOverrides_userId, requestMetadata_trafficSource_trafficSourceId: arg_requestMetadata_trafficSource_trafficSourceId, requestMetadata_locale: arg_requestMetadata_locale, requestMetadata_userOverrides_ipAddress: arg_requestMetadata_userOverrides_ipAddress, + requestMetadata_experimentIds: arg_requestMetadata_experimentIds, + requestMetadata_trafficSource_trafficSubId: + arg_requestMetadata_trafficSource_trafficSubId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGetPartnersStatusResponse(response); @@ -3868,14 +3872,14 @@ var mock = new HttpServerMock(); api.V2ResourceApi res = new api.PartnersApi(mock).v2; var arg_request = buildCompany(); - var arg_requestMetadata_userOverrides_userId = "foo"; - var arg_requestMetadata_partnersSessionId = "foo"; var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; var arg_requestMetadata_locale = "foo"; var arg_requestMetadata_userOverrides_ipAddress = "foo"; var arg_updateMask = "foo"; - var arg_requestMetadata_experimentIds = buildUnnamed181(); + var arg_requestMetadata_experimentIds = buildUnnamed1658(); var arg_requestMetadata_trafficSource_trafficSubId = "foo"; + var arg_requestMetadata_userOverrides_userId = "foo"; + var arg_requestMetadata_partnersSessionId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Company.fromJson(json); @@ -3910,10 +3914,6 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["requestMetadata.userOverrides.userId"].first, - unittest.equals(arg_requestMetadata_userOverrides_userId)); - unittest.expect(queryMap["requestMetadata.partnersSessionId"].first, - unittest.equals(arg_requestMetadata_partnersSessionId)); unittest.expect( queryMap["requestMetadata.trafficSource.trafficSourceId"].first, unittest.equals(arg_requestMetadata_trafficSource_trafficSourceId)); @@ -3929,6 +3929,10 @@ unittest.expect( queryMap["requestMetadata.trafficSource.trafficSubId"].first, unittest.equals(arg_requestMetadata_trafficSource_trafficSubId)); + unittest.expect(queryMap["requestMetadata.userOverrides.userId"].first, + unittest.equals(arg_requestMetadata_userOverrides_userId)); + unittest.expect(queryMap["requestMetadata.partnersSessionId"].first, + unittest.equals(arg_requestMetadata_partnersSessionId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3939,10 +3943,6 @@ }), true); res .updateCompanies(arg_request, - requestMetadata_userOverrides_userId: - arg_requestMetadata_userOverrides_userId, - requestMetadata_partnersSessionId: - arg_requestMetadata_partnersSessionId, requestMetadata_trafficSource_trafficSourceId: arg_requestMetadata_trafficSource_trafficSourceId, requestMetadata_locale: arg_requestMetadata_locale, @@ -3952,6 +3952,10 @@ requestMetadata_experimentIds: arg_requestMetadata_experimentIds, requestMetadata_trafficSource_trafficSubId: arg_requestMetadata_trafficSource_trafficSubId, + requestMetadata_userOverrides_userId: + arg_requestMetadata_userOverrides_userId, + requestMetadata_partnersSessionId: + arg_requestMetadata_partnersSessionId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCompany(response); @@ -3968,7 +3972,7 @@ var arg_requestMetadata_locale = "foo"; var arg_requestMetadata_userOverrides_ipAddress = "foo"; var arg_updateMask = "foo"; - var arg_requestMetadata_experimentIds = buildUnnamed182(); + var arg_requestMetadata_experimentIds = buildUnnamed1659(); var arg_requestMetadata_trafficSource_trafficSubId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
diff --git a/generated/googleapis/test/people/v1_test.dart b/generated/googleapis/test/people/v1_test.dart index ad2f711..63d1d4c 100644 --- a/generated/googleapis/test/people/v1_test.dart +++ b/generated/googleapis/test/people/v1_test.dart
@@ -112,14 +112,14 @@ buildCounterAgeRangeType--; } -buildUnnamed3091() { +buildUnnamed3614() { var o = new core.List<api.ContactGroupResponse>(); o.add(buildContactGroupResponse()); o.add(buildContactGroupResponse()); return o; } -checkUnnamed3091(core.List<api.ContactGroupResponse> o) { +checkUnnamed3614(core.List<api.ContactGroupResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkContactGroupResponse(o[0]); checkContactGroupResponse(o[1]); @@ -130,7 +130,7 @@ var o = new api.BatchGetContactGroupsResponse(); buildCounterBatchGetContactGroupsResponse++; if (buildCounterBatchGetContactGroupsResponse < 3) { - o.responses = buildUnnamed3091(); + o.responses = buildUnnamed3614(); } buildCounterBatchGetContactGroupsResponse--; return o; @@ -139,7 +139,7 @@ checkBatchGetContactGroupsResponse(api.BatchGetContactGroupsResponse o) { buildCounterBatchGetContactGroupsResponse++; if (buildCounterBatchGetContactGroupsResponse < 3) { - checkUnnamed3091(o.responses); + checkUnnamed3614(o.responses); } buildCounterBatchGetContactGroupsResponse--; } @@ -211,14 +211,14 @@ buildCounterBraggingRights--; } -buildUnnamed3092() { +buildUnnamed3615() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3092(core.List<core.String> o) { +checkUnnamed3615(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -233,7 +233,7 @@ o.formattedName = "foo"; o.groupType = "foo"; o.memberCount = 42; - o.memberResourceNames = buildUnnamed3092(); + o.memberResourceNames = buildUnnamed3615(); o.metadata = buildContactGroupMetadata(); o.name = "foo"; o.resourceName = "foo"; @@ -249,7 +249,7 @@ unittest.expect(o.formattedName, unittest.equals('foo')); unittest.expect(o.groupType, unittest.equals('foo')); unittest.expect(o.memberCount, unittest.equals(42)); - checkUnnamed3092(o.memberResourceNames); + checkUnnamed3615(o.memberResourceNames); checkContactGroupMetadata(o.metadata); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.resourceName, unittest.equals('foo')); @@ -517,14 +517,14 @@ buildCounterGender--; } -buildUnnamed3093() { +buildUnnamed3616() { var o = new core.List<api.PersonResponse>(); o.add(buildPersonResponse()); o.add(buildPersonResponse()); return o; } -checkUnnamed3093(core.List<api.PersonResponse> o) { +checkUnnamed3616(core.List<api.PersonResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonResponse(o[0]); checkPersonResponse(o[1]); @@ -535,7 +535,7 @@ var o = new api.GetPeopleResponse(); buildCounterGetPeopleResponse++; if (buildCounterGetPeopleResponse < 3) { - o.responses = buildUnnamed3093(); + o.responses = buildUnnamed3616(); } buildCounterGetPeopleResponse--; return o; @@ -544,7 +544,7 @@ checkGetPeopleResponse(api.GetPeopleResponse o) { buildCounterGetPeopleResponse++; if (buildCounterGetPeopleResponse < 3) { - checkUnnamed3093(o.responses); + checkUnnamed3616(o.responses); } buildCounterGetPeopleResponse--; } @@ -599,14 +599,14 @@ buildCounterInterest--; } -buildUnnamed3094() { +buildUnnamed3617() { var o = new core.List<api.Person>(); o.add(buildPerson()); o.add(buildPerson()); return o; } -checkUnnamed3094(core.List<api.Person> o) { +checkUnnamed3617(core.List<api.Person> o) { unittest.expect(o, unittest.hasLength(2)); checkPerson(o[0]); checkPerson(o[1]); @@ -617,7 +617,7 @@ var o = new api.ListConnectionsResponse(); buildCounterListConnectionsResponse++; if (buildCounterListConnectionsResponse < 3) { - o.connections = buildUnnamed3094(); + o.connections = buildUnnamed3617(); o.nextPageToken = "foo"; o.nextSyncToken = "foo"; o.totalItems = 42; @@ -630,7 +630,7 @@ checkListConnectionsResponse(api.ListConnectionsResponse o) { buildCounterListConnectionsResponse++; if (buildCounterListConnectionsResponse < 3) { - checkUnnamed3094(o.connections); + checkUnnamed3617(o.connections); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.nextSyncToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -639,14 +639,14 @@ buildCounterListConnectionsResponse--; } -buildUnnamed3095() { +buildUnnamed3618() { var o = new core.List<api.ContactGroup>(); o.add(buildContactGroup()); o.add(buildContactGroup()); return o; } -checkUnnamed3095(core.List<api.ContactGroup> o) { +checkUnnamed3618(core.List<api.ContactGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkContactGroup(o[0]); checkContactGroup(o[1]); @@ -657,7 +657,7 @@ var o = new api.ListContactGroupsResponse(); buildCounterListContactGroupsResponse++; if (buildCounterListContactGroupsResponse < 3) { - o.contactGroups = buildUnnamed3095(); + o.contactGroups = buildUnnamed3618(); o.nextPageToken = "foo"; o.nextSyncToken = "foo"; o.totalItems = 42; @@ -669,7 +669,7 @@ checkListContactGroupsResponse(api.ListContactGroupsResponse o) { buildCounterListContactGroupsResponse++; if (buildCounterListContactGroupsResponse < 3) { - checkUnnamed3095(o.contactGroups); + checkUnnamed3618(o.contactGroups); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.nextSyncToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -721,27 +721,27 @@ buildCounterMembership--; } -buildUnnamed3096() { +buildUnnamed3619() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3096(core.List<core.String> o) { +checkUnnamed3619(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3097() { +buildUnnamed3620() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3097(core.List<core.String> o) { +checkUnnamed3620(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -752,8 +752,8 @@ var o = new api.ModifyContactGroupMembersRequest(); buildCounterModifyContactGroupMembersRequest++; if (buildCounterModifyContactGroupMembersRequest < 3) { - o.resourceNamesToAdd = buildUnnamed3096(); - o.resourceNamesToRemove = buildUnnamed3097(); + o.resourceNamesToAdd = buildUnnamed3619(); + o.resourceNamesToRemove = buildUnnamed3620(); } buildCounterModifyContactGroupMembersRequest--; return o; @@ -762,20 +762,20 @@ checkModifyContactGroupMembersRequest(api.ModifyContactGroupMembersRequest o) { buildCounterModifyContactGroupMembersRequest++; if (buildCounterModifyContactGroupMembersRequest < 3) { - checkUnnamed3096(o.resourceNamesToAdd); - checkUnnamed3097(o.resourceNamesToRemove); + checkUnnamed3619(o.resourceNamesToAdd); + checkUnnamed3620(o.resourceNamesToRemove); } buildCounterModifyContactGroupMembersRequest--; } -buildUnnamed3098() { +buildUnnamed3621() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3098(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')); @@ -786,7 +786,7 @@ var o = new api.ModifyContactGroupMembersResponse(); buildCounterModifyContactGroupMembersResponse++; if (buildCounterModifyContactGroupMembersResponse < 3) { - o.notFoundResourceNames = buildUnnamed3098(); + o.notFoundResourceNames = buildUnnamed3621(); } buildCounterModifyContactGroupMembersResponse--; return o; @@ -796,7 +796,7 @@ api.ModifyContactGroupMembersResponse o) { buildCounterModifyContactGroupMembersResponse++; if (buildCounterModifyContactGroupMembersResponse < 3) { - checkUnnamed3098(o.notFoundResourceNames); + checkUnnamed3621(o.notFoundResourceNames); } buildCounterModifyContactGroupMembersResponse--; } @@ -935,352 +935,365 @@ buildCounterOrganization--; } -buildUnnamed3099() { +buildUnnamed3622() { var o = new core.List<api.Address>(); o.add(buildAddress()); o.add(buildAddress()); return o; } -checkUnnamed3099(core.List<api.Address> o) { +checkUnnamed3622(core.List<api.Address> o) { unittest.expect(o, unittest.hasLength(2)); checkAddress(o[0]); checkAddress(o[1]); } -buildUnnamed3100() { +buildUnnamed3623() { var o = new core.List<api.AgeRangeType>(); o.add(buildAgeRangeType()); o.add(buildAgeRangeType()); return o; } -checkUnnamed3100(core.List<api.AgeRangeType> o) { +checkUnnamed3623(core.List<api.AgeRangeType> o) { unittest.expect(o, unittest.hasLength(2)); checkAgeRangeType(o[0]); checkAgeRangeType(o[1]); } -buildUnnamed3101() { +buildUnnamed3624() { var o = new core.List<api.Biography>(); o.add(buildBiography()); o.add(buildBiography()); return o; } -checkUnnamed3101(core.List<api.Biography> o) { +checkUnnamed3624(core.List<api.Biography> o) { unittest.expect(o, unittest.hasLength(2)); checkBiography(o[0]); checkBiography(o[1]); } -buildUnnamed3102() { +buildUnnamed3625() { var o = new core.List<api.Birthday>(); o.add(buildBirthday()); o.add(buildBirthday()); return o; } -checkUnnamed3102(core.List<api.Birthday> o) { +checkUnnamed3625(core.List<api.Birthday> o) { unittest.expect(o, unittest.hasLength(2)); checkBirthday(o[0]); checkBirthday(o[1]); } -buildUnnamed3103() { +buildUnnamed3626() { var o = new core.List<api.BraggingRights>(); o.add(buildBraggingRights()); o.add(buildBraggingRights()); return o; } -checkUnnamed3103(core.List<api.BraggingRights> o) { +checkUnnamed3626(core.List<api.BraggingRights> o) { unittest.expect(o, unittest.hasLength(2)); checkBraggingRights(o[0]); checkBraggingRights(o[1]); } -buildUnnamed3104() { +buildUnnamed3627() { var o = new core.List<api.CoverPhoto>(); o.add(buildCoverPhoto()); o.add(buildCoverPhoto()); return o; } -checkUnnamed3104(core.List<api.CoverPhoto> o) { +checkUnnamed3627(core.List<api.CoverPhoto> o) { unittest.expect(o, unittest.hasLength(2)); checkCoverPhoto(o[0]); checkCoverPhoto(o[1]); } -buildUnnamed3105() { +buildUnnamed3628() { var o = new core.List<api.EmailAddress>(); o.add(buildEmailAddress()); o.add(buildEmailAddress()); return o; } -checkUnnamed3105(core.List<api.EmailAddress> o) { +checkUnnamed3628(core.List<api.EmailAddress> o) { unittest.expect(o, unittest.hasLength(2)); checkEmailAddress(o[0]); checkEmailAddress(o[1]); } -buildUnnamed3106() { +buildUnnamed3629() { var o = new core.List<api.Event>(); o.add(buildEvent()); o.add(buildEvent()); return o; } -checkUnnamed3106(core.List<api.Event> o) { +checkUnnamed3629(core.List<api.Event> o) { unittest.expect(o, unittest.hasLength(2)); checkEvent(o[0]); checkEvent(o[1]); } -buildUnnamed3107() { +buildUnnamed3630() { var o = new core.List<api.Gender>(); o.add(buildGender()); o.add(buildGender()); return o; } -checkUnnamed3107(core.List<api.Gender> o) { +checkUnnamed3630(core.List<api.Gender> o) { unittest.expect(o, unittest.hasLength(2)); checkGender(o[0]); checkGender(o[1]); } -buildUnnamed3108() { +buildUnnamed3631() { var o = new core.List<api.ImClient>(); o.add(buildImClient()); o.add(buildImClient()); return o; } -checkUnnamed3108(core.List<api.ImClient> o) { +checkUnnamed3631(core.List<api.ImClient> o) { unittest.expect(o, unittest.hasLength(2)); checkImClient(o[0]); checkImClient(o[1]); } -buildUnnamed3109() { +buildUnnamed3632() { var o = new core.List<api.Interest>(); o.add(buildInterest()); o.add(buildInterest()); return o; } -checkUnnamed3109(core.List<api.Interest> o) { +checkUnnamed3632(core.List<api.Interest> o) { unittest.expect(o, unittest.hasLength(2)); checkInterest(o[0]); checkInterest(o[1]); } -buildUnnamed3110() { +buildUnnamed3633() { var o = new core.List<api.Locale>(); o.add(buildLocale()); o.add(buildLocale()); return o; } -checkUnnamed3110(core.List<api.Locale> o) { +checkUnnamed3633(core.List<api.Locale> o) { unittest.expect(o, unittest.hasLength(2)); checkLocale(o[0]); checkLocale(o[1]); } -buildUnnamed3111() { +buildUnnamed3634() { var o = new core.List<api.Membership>(); o.add(buildMembership()); o.add(buildMembership()); return o; } -checkUnnamed3111(core.List<api.Membership> o) { +checkUnnamed3634(core.List<api.Membership> o) { unittest.expect(o, unittest.hasLength(2)); checkMembership(o[0]); checkMembership(o[1]); } -buildUnnamed3112() { +buildUnnamed3635() { var o = new core.List<api.Name>(); o.add(buildName()); o.add(buildName()); return o; } -checkUnnamed3112(core.List<api.Name> o) { +checkUnnamed3635(core.List<api.Name> o) { unittest.expect(o, unittest.hasLength(2)); checkName(o[0]); checkName(o[1]); } -buildUnnamed3113() { +buildUnnamed3636() { var o = new core.List<api.Nickname>(); o.add(buildNickname()); o.add(buildNickname()); return o; } -checkUnnamed3113(core.List<api.Nickname> o) { +checkUnnamed3636(core.List<api.Nickname> o) { unittest.expect(o, unittest.hasLength(2)); checkNickname(o[0]); checkNickname(o[1]); } -buildUnnamed3114() { +buildUnnamed3637() { var o = new core.List<api.Occupation>(); o.add(buildOccupation()); o.add(buildOccupation()); return o; } -checkUnnamed3114(core.List<api.Occupation> o) { +checkUnnamed3637(core.List<api.Occupation> o) { unittest.expect(o, unittest.hasLength(2)); checkOccupation(o[0]); checkOccupation(o[1]); } -buildUnnamed3115() { +buildUnnamed3638() { var o = new core.List<api.Organization>(); o.add(buildOrganization()); o.add(buildOrganization()); return o; } -checkUnnamed3115(core.List<api.Organization> o) { +checkUnnamed3638(core.List<api.Organization> o) { unittest.expect(o, unittest.hasLength(2)); checkOrganization(o[0]); checkOrganization(o[1]); } -buildUnnamed3116() { +buildUnnamed3639() { var o = new core.List<api.PhoneNumber>(); o.add(buildPhoneNumber()); o.add(buildPhoneNumber()); return o; } -checkUnnamed3116(core.List<api.PhoneNumber> o) { +checkUnnamed3639(core.List<api.PhoneNumber> o) { unittest.expect(o, unittest.hasLength(2)); checkPhoneNumber(o[0]); checkPhoneNumber(o[1]); } -buildUnnamed3117() { +buildUnnamed3640() { var o = new core.List<api.Photo>(); o.add(buildPhoto()); o.add(buildPhoto()); return o; } -checkUnnamed3117(core.List<api.Photo> o) { +checkUnnamed3640(core.List<api.Photo> o) { unittest.expect(o, unittest.hasLength(2)); checkPhoto(o[0]); checkPhoto(o[1]); } -buildUnnamed3118() { +buildUnnamed3641() { var o = new core.List<api.Relation>(); o.add(buildRelation()); o.add(buildRelation()); return o; } -checkUnnamed3118(core.List<api.Relation> o) { +checkUnnamed3641(core.List<api.Relation> o) { unittest.expect(o, unittest.hasLength(2)); checkRelation(o[0]); checkRelation(o[1]); } -buildUnnamed3119() { +buildUnnamed3642() { var o = new core.List<api.RelationshipInterest>(); o.add(buildRelationshipInterest()); o.add(buildRelationshipInterest()); return o; } -checkUnnamed3119(core.List<api.RelationshipInterest> o) { +checkUnnamed3642(core.List<api.RelationshipInterest> o) { unittest.expect(o, unittest.hasLength(2)); checkRelationshipInterest(o[0]); checkRelationshipInterest(o[1]); } -buildUnnamed3120() { +buildUnnamed3643() { var o = new core.List<api.RelationshipStatus>(); o.add(buildRelationshipStatus()); o.add(buildRelationshipStatus()); return o; } -checkUnnamed3120(core.List<api.RelationshipStatus> o) { +checkUnnamed3643(core.List<api.RelationshipStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRelationshipStatus(o[0]); checkRelationshipStatus(o[1]); } -buildUnnamed3121() { +buildUnnamed3644() { var o = new core.List<api.Residence>(); o.add(buildResidence()); o.add(buildResidence()); return o; } -checkUnnamed3121(core.List<api.Residence> o) { +checkUnnamed3644(core.List<api.Residence> o) { unittest.expect(o, unittest.hasLength(2)); checkResidence(o[0]); checkResidence(o[1]); } -buildUnnamed3122() { +buildUnnamed3645() { + var o = new core.List<api.SipAddress>(); + o.add(buildSipAddress()); + o.add(buildSipAddress()); + return o; +} + +checkUnnamed3645(core.List<api.SipAddress> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSipAddress(o[0]); + checkSipAddress(o[1]); +} + +buildUnnamed3646() { var o = new core.List<api.Skill>(); o.add(buildSkill()); o.add(buildSkill()); return o; } -checkUnnamed3122(core.List<api.Skill> o) { +checkUnnamed3646(core.List<api.Skill> o) { unittest.expect(o, unittest.hasLength(2)); checkSkill(o[0]); checkSkill(o[1]); } -buildUnnamed3123() { +buildUnnamed3647() { var o = new core.List<api.Tagline>(); o.add(buildTagline()); o.add(buildTagline()); return o; } -checkUnnamed3123(core.List<api.Tagline> o) { +checkUnnamed3647(core.List<api.Tagline> o) { unittest.expect(o, unittest.hasLength(2)); checkTagline(o[0]); checkTagline(o[1]); } -buildUnnamed3124() { +buildUnnamed3648() { var o = new core.List<api.Url>(); o.add(buildUrl()); o.add(buildUrl()); return o; } -checkUnnamed3124(core.List<api.Url> o) { +checkUnnamed3648(core.List<api.Url> o) { unittest.expect(o, unittest.hasLength(2)); checkUrl(o[0]); checkUrl(o[1]); } -buildUnnamed3125() { +buildUnnamed3649() { var o = new core.List<api.UserDefined>(); o.add(buildUserDefined()); o.add(buildUserDefined()); return o; } -checkUnnamed3125(core.List<api.UserDefined> o) { +checkUnnamed3649(core.List<api.UserDefined> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefined(o[0]); checkUserDefined(o[1]); @@ -1291,37 +1304,38 @@ var o = new api.Person(); buildCounterPerson++; if (buildCounterPerson < 3) { - o.addresses = buildUnnamed3099(); + o.addresses = buildUnnamed3622(); o.ageRange = "foo"; - o.ageRanges = buildUnnamed3100(); - o.biographies = buildUnnamed3101(); - o.birthdays = buildUnnamed3102(); - o.braggingRights = buildUnnamed3103(); - o.coverPhotos = buildUnnamed3104(); - o.emailAddresses = buildUnnamed3105(); + o.ageRanges = buildUnnamed3623(); + o.biographies = buildUnnamed3624(); + o.birthdays = buildUnnamed3625(); + o.braggingRights = buildUnnamed3626(); + o.coverPhotos = buildUnnamed3627(); + o.emailAddresses = buildUnnamed3628(); o.etag = "foo"; - o.events = buildUnnamed3106(); - o.genders = buildUnnamed3107(); - o.imClients = buildUnnamed3108(); - o.interests = buildUnnamed3109(); - o.locales = buildUnnamed3110(); - o.memberships = buildUnnamed3111(); + o.events = buildUnnamed3629(); + o.genders = buildUnnamed3630(); + o.imClients = buildUnnamed3631(); + o.interests = buildUnnamed3632(); + o.locales = buildUnnamed3633(); + o.memberships = buildUnnamed3634(); o.metadata = buildPersonMetadata(); - o.names = buildUnnamed3112(); - o.nicknames = buildUnnamed3113(); - o.occupations = buildUnnamed3114(); - o.organizations = buildUnnamed3115(); - o.phoneNumbers = buildUnnamed3116(); - o.photos = buildUnnamed3117(); - o.relations = buildUnnamed3118(); - o.relationshipInterests = buildUnnamed3119(); - o.relationshipStatuses = buildUnnamed3120(); - o.residences = buildUnnamed3121(); + o.names = buildUnnamed3635(); + o.nicknames = buildUnnamed3636(); + o.occupations = buildUnnamed3637(); + o.organizations = buildUnnamed3638(); + o.phoneNumbers = buildUnnamed3639(); + o.photos = buildUnnamed3640(); + o.relations = buildUnnamed3641(); + o.relationshipInterests = buildUnnamed3642(); + o.relationshipStatuses = buildUnnamed3643(); + o.residences = buildUnnamed3644(); o.resourceName = "foo"; - o.skills = buildUnnamed3122(); - o.taglines = buildUnnamed3123(); - o.urls = buildUnnamed3124(); - o.userDefined = buildUnnamed3125(); + o.sipAddresses = buildUnnamed3645(); + o.skills = buildUnnamed3646(); + o.taglines = buildUnnamed3647(); + o.urls = buildUnnamed3648(); + o.userDefined = buildUnnamed3649(); } buildCounterPerson--; return o; @@ -1330,75 +1344,76 @@ checkPerson(api.Person o) { buildCounterPerson++; if (buildCounterPerson < 3) { - checkUnnamed3099(o.addresses); + checkUnnamed3622(o.addresses); unittest.expect(o.ageRange, unittest.equals('foo')); - checkUnnamed3100(o.ageRanges); - checkUnnamed3101(o.biographies); - checkUnnamed3102(o.birthdays); - checkUnnamed3103(o.braggingRights); - checkUnnamed3104(o.coverPhotos); - checkUnnamed3105(o.emailAddresses); + checkUnnamed3623(o.ageRanges); + checkUnnamed3624(o.biographies); + checkUnnamed3625(o.birthdays); + checkUnnamed3626(o.braggingRights); + checkUnnamed3627(o.coverPhotos); + checkUnnamed3628(o.emailAddresses); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3106(o.events); - checkUnnamed3107(o.genders); - checkUnnamed3108(o.imClients); - checkUnnamed3109(o.interests); - checkUnnamed3110(o.locales); - checkUnnamed3111(o.memberships); + checkUnnamed3629(o.events); + checkUnnamed3630(o.genders); + checkUnnamed3631(o.imClients); + checkUnnamed3632(o.interests); + checkUnnamed3633(o.locales); + checkUnnamed3634(o.memberships); checkPersonMetadata(o.metadata); - checkUnnamed3112(o.names); - checkUnnamed3113(o.nicknames); - checkUnnamed3114(o.occupations); - checkUnnamed3115(o.organizations); - checkUnnamed3116(o.phoneNumbers); - checkUnnamed3117(o.photos); - checkUnnamed3118(o.relations); - checkUnnamed3119(o.relationshipInterests); - checkUnnamed3120(o.relationshipStatuses); - checkUnnamed3121(o.residences); + checkUnnamed3635(o.names); + checkUnnamed3636(o.nicknames); + checkUnnamed3637(o.occupations); + checkUnnamed3638(o.organizations); + checkUnnamed3639(o.phoneNumbers); + checkUnnamed3640(o.photos); + checkUnnamed3641(o.relations); + checkUnnamed3642(o.relationshipInterests); + checkUnnamed3643(o.relationshipStatuses); + checkUnnamed3644(o.residences); unittest.expect(o.resourceName, unittest.equals('foo')); - checkUnnamed3122(o.skills); - checkUnnamed3123(o.taglines); - checkUnnamed3124(o.urls); - checkUnnamed3125(o.userDefined); + checkUnnamed3645(o.sipAddresses); + checkUnnamed3646(o.skills); + checkUnnamed3647(o.taglines); + checkUnnamed3648(o.urls); + checkUnnamed3649(o.userDefined); } buildCounterPerson--; } -buildUnnamed3126() { +buildUnnamed3650() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3126(core.List<core.String> o) { +checkUnnamed3650(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3127() { +buildUnnamed3651() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3127(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')); } -buildUnnamed3128() { +buildUnnamed3652() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed3128(core.List<api.Source> o) { +checkUnnamed3652(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -1410,10 +1425,10 @@ buildCounterPersonMetadata++; if (buildCounterPersonMetadata < 3) { o.deleted = true; - o.linkedPeopleResourceNames = buildUnnamed3126(); + o.linkedPeopleResourceNames = buildUnnamed3650(); o.objectType = "foo"; - o.previousResourceNames = buildUnnamed3127(); - o.sources = buildUnnamed3128(); + o.previousResourceNames = buildUnnamed3651(); + o.sources = buildUnnamed3652(); } buildCounterPersonMetadata--; return o; @@ -1423,10 +1438,10 @@ buildCounterPersonMetadata++; if (buildCounterPersonMetadata < 3) { unittest.expect(o.deleted, unittest.isTrue); - checkUnnamed3126(o.linkedPeopleResourceNames); + checkUnnamed3650(o.linkedPeopleResourceNames); unittest.expect(o.objectType, unittest.equals('foo')); - checkUnnamed3127(o.previousResourceNames); - checkUnnamed3128(o.sources); + checkUnnamed3651(o.previousResourceNames); + checkUnnamed3652(o.sources); } buildCounterPersonMetadata--; } @@ -1506,14 +1521,14 @@ buildCounterPhoto--; } -buildUnnamed3129() { +buildUnnamed3653() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3129(core.List<core.String> o) { +checkUnnamed3653(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1525,7 +1540,7 @@ buildCounterProfileMetadata++; if (buildCounterProfileMetadata < 3) { o.objectType = "foo"; - o.userTypes = buildUnnamed3129(); + o.userTypes = buildUnnamed3653(); } buildCounterProfileMetadata--; return o; @@ -1535,7 +1550,7 @@ buildCounterProfileMetadata++; if (buildCounterProfileMetadata < 3) { unittest.expect(o.objectType, unittest.equals('foo')); - checkUnnamed3129(o.userTypes); + checkUnnamed3653(o.userTypes); } buildCounterProfileMetadata--; } @@ -1634,6 +1649,31 @@ buildCounterResidence--; } +core.int buildCounterSipAddress = 0; +buildSipAddress() { + var o = new api.SipAddress(); + buildCounterSipAddress++; + if (buildCounterSipAddress < 3) { + o.formattedType = "foo"; + o.metadata = buildFieldMetadata(); + o.type = "foo"; + o.value = "foo"; + } + buildCounterSipAddress--; + return o; +} + +checkSipAddress(api.SipAddress o) { + buildCounterSipAddress++; + if (buildCounterSipAddress < 3) { + unittest.expect(o.formattedType, unittest.equals('foo')); + checkFieldMetadata(o.metadata); + unittest.expect(o.type, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterSipAddress--; +} + core.int buildCounterSkill = 0; buildSkill() { var o = new api.Skill(); @@ -1682,7 +1722,7 @@ buildCounterSource--; } -buildUnnamed3130() { +buildUnnamed3654() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1697,7 +1737,7 @@ return o; } -checkUnnamed3130(core.Map<core.String, core.Object> o) { +checkUnnamed3654(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)); @@ -1711,17 +1751,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3131() { +buildUnnamed3655() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3130()); - o.add(buildUnnamed3130()); + o.add(buildUnnamed3654()); + o.add(buildUnnamed3654()); return o; } -checkUnnamed3131(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3655(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3130(o[0]); - checkUnnamed3130(o[1]); + checkUnnamed3654(o[0]); + checkUnnamed3654(o[1]); } core.int buildCounterStatus = 0; @@ -1730,7 +1770,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3131(); + o.details = buildUnnamed3655(); o.message = "foo"; } buildCounterStatus--; @@ -1741,7 +1781,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3131(o.details); + checkUnnamed3655(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1835,27 +1875,27 @@ buildCounterUserDefined--; } -buildUnnamed3132() { +buildUnnamed3656() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3132(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')); } -buildUnnamed3133() { +buildUnnamed3657() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3133(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')); @@ -2198,6 +2238,14 @@ }); }); + unittest.group("obj-schema-SipAddress", () { + unittest.test("to-json--from-json", () { + var o = buildSipAddress(); + var od = new api.SipAddress.fromJson(o.toJson()); + checkSipAddress(od); + }); + }); + unittest.group("obj-schema-Skill", () { unittest.test("to-json--from-json", () { var o = buildSkill(); @@ -2258,8 +2306,8 @@ unittest.test("method--batchGet", () { var mock = new HttpServerMock(); api.ContactGroupsResourceApi res = new api.PeopleApi(mock).contactGroups; - var arg_resourceNames = buildUnnamed3132(); var arg_maxMembers = 42; + var arg_resourceNames = buildUnnamed3656(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2291,10 +2339,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["resourceNames"], unittest.equals(arg_resourceNames)); unittest.expect(core.int.parse(queryMap["maxMembers"].first), unittest.equals(arg_maxMembers)); + unittest.expect( + queryMap["resourceNames"], unittest.equals(arg_resourceNames)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2305,8 +2353,8 @@ }), true); res .batchGet( - resourceNames: arg_resourceNames, maxMembers: arg_maxMembers, + resourceNames: arg_resourceNames, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkBatchGetContactGroupsResponse(response); @@ -2479,9 +2527,9 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.ContactGroupsResourceApi res = new api.PeopleApi(mock).contactGroups; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_syncToken = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2513,12 +2561,12 @@ 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["syncToken"].first, unittest.equals(arg_syncToken)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2529,9 +2577,9 @@ }), true); res .list( - pageToken: arg_pageToken, pageSize: arg_pageSize, syncToken: arg_syncToken, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListContactGroupsResponse(response); @@ -2825,7 +2873,7 @@ api.PeopleResourceApi res = new api.PeopleApi(mock).people; var arg_personFields = "foo"; var arg_requestMask_includeField = "foo"; - var arg_resourceNames = buildUnnamed3133(); + var arg_resourceNames = buildUnnamed3657(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2948,13 +2996,13 @@ api.PeopleConnectionsResourceApi res = new api.PeopleApi(mock).people.connections; var arg_resourceName = "foo"; - var arg_sortOrder = "foo"; var arg_requestSyncToken = true; var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_requestMask_includeField = "foo"; var arg_syncToken = "foo"; var arg_personFields = "foo"; + var arg_sortOrder = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2987,8 +3035,6 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); unittest.expect(queryMap["requestSyncToken"].first, unittest.equals("$arg_requestSyncToken")); unittest.expect( @@ -3001,6 +3047,8 @@ queryMap["syncToken"].first, unittest.equals(arg_syncToken)); unittest.expect( queryMap["personFields"].first, unittest.equals(arg_personFields)); + unittest.expect( + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3011,13 +3059,13 @@ }), true); res .list(arg_resourceName, - sortOrder: arg_sortOrder, requestSyncToken: arg_requestSyncToken, pageToken: arg_pageToken, pageSize: arg_pageSize, requestMask_includeField: arg_requestMask_includeField, syncToken: arg_syncToken, personFields: arg_personFields, + sortOrder: arg_sortOrder, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListConnectionsResponse(response);
diff --git a/generated/googleapis/test/plus/v1_test.dart b/generated/googleapis/test/plus/v1_test.dart index 93d919c..66d8776 100644 --- a/generated/googleapis/test/plus/v1_test.dart +++ b/generated/googleapis/test/plus/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3442() { +buildUnnamed3888() { var o = new core.List<api.PlusAclentryResource>(); o.add(buildPlusAclentryResource()); o.add(buildPlusAclentryResource()); return o; } -checkUnnamed3442(core.List<api.PlusAclentryResource> o) { +checkUnnamed3888(core.List<api.PlusAclentryResource> o) { unittest.expect(o, unittest.hasLength(2)); checkPlusAclentryResource(o[0]); checkPlusAclentryResource(o[1]); @@ -69,7 +69,7 @@ buildCounterAcl++; if (buildCounterAcl < 3) { o.description = "foo"; - o.items = buildUnnamed3442(); + o.items = buildUnnamed3888(); o.kind = "foo"; } buildCounterAcl--; @@ -80,7 +80,7 @@ buildCounterAcl++; if (buildCounterAcl < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed3442(o.items); + checkUnnamed3888(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAcl--; @@ -453,14 +453,14 @@ buildCounterActivityObjectAttachmentsThumbnails--; } -buildUnnamed3443() { +buildUnnamed3889() { var o = new core.List<api.ActivityObjectAttachmentsThumbnails>(); o.add(buildActivityObjectAttachmentsThumbnails()); o.add(buildActivityObjectAttachmentsThumbnails()); return o; } -checkUnnamed3443(core.List<api.ActivityObjectAttachmentsThumbnails> o) { +checkUnnamed3889(core.List<api.ActivityObjectAttachmentsThumbnails> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityObjectAttachmentsThumbnails(o[0]); checkActivityObjectAttachmentsThumbnails(o[1]); @@ -478,7 +478,7 @@ o.id = "foo"; o.image = buildActivityObjectAttachmentsImage(); o.objectType = "foo"; - o.thumbnails = buildUnnamed3443(); + o.thumbnails = buildUnnamed3889(); o.url = "foo"; } buildCounterActivityObjectAttachments--; @@ -495,20 +495,20 @@ unittest.expect(o.id, unittest.equals('foo')); checkActivityObjectAttachmentsImage(o.image); unittest.expect(o.objectType, unittest.equals('foo')); - checkUnnamed3443(o.thumbnails); + checkUnnamed3889(o.thumbnails); unittest.expect(o.url, unittest.equals('foo')); } buildCounterActivityObjectAttachments--; } -buildUnnamed3444() { +buildUnnamed3890() { var o = new core.List<api.ActivityObjectAttachments>(); o.add(buildActivityObjectAttachments()); o.add(buildActivityObjectAttachments()); return o; } -checkUnnamed3444(core.List<api.ActivityObjectAttachments> o) { +checkUnnamed3890(core.List<api.ActivityObjectAttachments> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityObjectAttachments(o[0]); checkActivityObjectAttachments(o[1]); @@ -583,7 +583,7 @@ buildCounterActivityObject++; if (buildCounterActivityObject < 3) { o.actor = buildActivityObjectActor(); - o.attachments = buildUnnamed3444(); + o.attachments = buildUnnamed3890(); o.content = "foo"; o.id = "foo"; o.objectType = "foo"; @@ -601,7 +601,7 @@ buildCounterActivityObject++; if (buildCounterActivityObject < 3) { checkActivityObjectActor(o.actor); - checkUnnamed3444(o.attachments); + checkUnnamed3890(o.attachments); unittest.expect(o.content, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.objectType, unittest.equals('foo')); @@ -692,14 +692,14 @@ buildCounterActivity--; } -buildUnnamed3445() { +buildUnnamed3891() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed3445(core.List<api.Activity> o) { +checkUnnamed3891(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -712,7 +712,7 @@ if (buildCounterActivityFeed < 3) { o.etag = "foo"; o.id = "foo"; - o.items = buildUnnamed3445(); + o.items = buildUnnamed3891(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -729,7 +729,7 @@ if (buildCounterActivityFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3445(o.items); + checkUnnamed3891(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -871,14 +871,14 @@ buildCounterCommentInReplyTo--; } -buildUnnamed3446() { +buildUnnamed3892() { var o = new core.List<api.CommentInReplyTo>(); o.add(buildCommentInReplyTo()); o.add(buildCommentInReplyTo()); return o; } -checkUnnamed3446(core.List<api.CommentInReplyTo> o) { +checkUnnamed3892(core.List<api.CommentInReplyTo> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentInReplyTo(o[0]); checkCommentInReplyTo(o[1]); @@ -934,7 +934,7 @@ o.actor = buildCommentActor(); o.etag = "foo"; o.id = "foo"; - o.inReplyTo = buildUnnamed3446(); + o.inReplyTo = buildUnnamed3892(); o.kind = "foo"; o.object = buildCommentObject(); o.plusoners = buildCommentPlusoners(); @@ -953,7 +953,7 @@ checkCommentActor(o.actor); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3446(o.inReplyTo); + checkUnnamed3892(o.inReplyTo); unittest.expect(o.kind, unittest.equals('foo')); checkCommentObject(o.object); checkCommentPlusoners(o.plusoners); @@ -967,14 +967,14 @@ buildCounterComment--; } -buildUnnamed3447() { +buildUnnamed3893() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed3447(core.List<api.Comment> o) { +checkUnnamed3893(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -987,7 +987,7 @@ if (buildCounterCommentFeed < 3) { o.etag = "foo"; o.id = "foo"; - o.items = buildUnnamed3447(); + o.items = buildUnnamed3893(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -1003,7 +1003,7 @@ if (buildCounterCommentFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3447(o.items); + checkUnnamed3893(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1014,14 +1014,14 @@ buildCounterCommentFeed--; } -buildUnnamed3448() { +buildUnnamed3894() { var o = new core.List<api.Person>(); o.add(buildPerson()); o.add(buildPerson()); return o; } -checkUnnamed3448(core.List<api.Person> o) { +checkUnnamed3894(core.List<api.Person> o) { unittest.expect(o, unittest.hasLength(2)); checkPerson(o[0]); checkPerson(o[1]); @@ -1033,7 +1033,7 @@ buildCounterPeopleFeed++; if (buildCounterPeopleFeed < 3) { o.etag = "foo"; - o.items = buildUnnamed3448(); + o.items = buildUnnamed3894(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1048,7 +1048,7 @@ buildCounterPeopleFeed++; if (buildCounterPeopleFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3448(o.items); + checkUnnamed3894(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1167,14 +1167,14 @@ buildCounterPersonEmails--; } -buildUnnamed3449() { +buildUnnamed3895() { var o = new core.List<api.PersonEmails>(); o.add(buildPersonEmails()); o.add(buildPersonEmails()); return o; } -checkUnnamed3449(core.List<api.PersonEmails> o) { +checkUnnamed3895(core.List<api.PersonEmails> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonEmails(o[0]); checkPersonEmails(o[1]); @@ -1265,14 +1265,14 @@ buildCounterPersonOrganizations--; } -buildUnnamed3450() { +buildUnnamed3896() { var o = new core.List<api.PersonOrganizations>(); o.add(buildPersonOrganizations()); o.add(buildPersonOrganizations()); return o; } -checkUnnamed3450(core.List<api.PersonOrganizations> o) { +checkUnnamed3896(core.List<api.PersonOrganizations> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonOrganizations(o[0]); checkPersonOrganizations(o[1]); @@ -1299,14 +1299,14 @@ buildCounterPersonPlacesLived--; } -buildUnnamed3451() { +buildUnnamed3897() { var o = new core.List<api.PersonPlacesLived>(); o.add(buildPersonPlacesLived()); o.add(buildPersonPlacesLived()); return o; } -checkUnnamed3451(core.List<api.PersonPlacesLived> o) { +checkUnnamed3897(core.List<api.PersonPlacesLived> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonPlacesLived(o[0]); checkPersonPlacesLived(o[1]); @@ -1335,14 +1335,14 @@ buildCounterPersonUrls--; } -buildUnnamed3452() { +buildUnnamed3898() { var o = new core.List<api.PersonUrls>(); o.add(buildPersonUrls()); o.add(buildPersonUrls()); return o; } -checkUnnamed3452(core.List<api.PersonUrls> o) { +checkUnnamed3898(core.List<api.PersonUrls> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonUrls(o[0]); checkPersonUrls(o[1]); @@ -1362,7 +1362,7 @@ o.currentLocation = "foo"; o.displayName = "foo"; o.domain = "foo"; - o.emails = buildUnnamed3449(); + o.emails = buildUnnamed3895(); o.etag = "foo"; o.gender = "foo"; o.id = "foo"; @@ -1374,14 +1374,14 @@ o.nickname = "foo"; o.objectType = "foo"; o.occupation = "foo"; - o.organizations = buildUnnamed3450(); - o.placesLived = buildUnnamed3451(); + o.organizations = buildUnnamed3896(); + o.placesLived = buildUnnamed3897(); o.plusOneCount = 42; o.relationshipStatus = "foo"; o.skills = "foo"; o.tagline = "foo"; o.url = "foo"; - o.urls = buildUnnamed3452(); + o.urls = buildUnnamed3898(); o.verified = true; } buildCounterPerson--; @@ -1400,7 +1400,7 @@ unittest.expect(o.currentLocation, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.domain, unittest.equals('foo')); - checkUnnamed3449(o.emails); + checkUnnamed3895(o.emails); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.gender, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -1412,14 +1412,14 @@ unittest.expect(o.nickname, unittest.equals('foo')); unittest.expect(o.objectType, unittest.equals('foo')); unittest.expect(o.occupation, unittest.equals('foo')); - checkUnnamed3450(o.organizations); - checkUnnamed3451(o.placesLived); + checkUnnamed3896(o.organizations); + checkUnnamed3897(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')); - checkUnnamed3452(o.urls); + checkUnnamed3898(o.urls); unittest.expect(o.verified, unittest.isTrue); } buildCounterPerson--;
diff --git a/generated/googleapis/test/plusdomains/v1_test.dart b/generated/googleapis/test/plusdomains/v1_test.dart index 4b11ee1..95d756c 100644 --- a/generated/googleapis/test/plusdomains/v1_test.dart +++ b/generated/googleapis/test/plusdomains/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed504() { +buildUnnamed3246() { var o = new core.List<api.PlusDomainsAclentryResource>(); o.add(buildPlusDomainsAclentryResource()); o.add(buildPlusDomainsAclentryResource()); return o; } -checkUnnamed504(core.List<api.PlusDomainsAclentryResource> o) { +checkUnnamed3246(core.List<api.PlusDomainsAclentryResource> o) { unittest.expect(o, unittest.hasLength(2)); checkPlusDomainsAclentryResource(o[0]); checkPlusDomainsAclentryResource(o[1]); @@ -70,7 +70,7 @@ if (buildCounterAcl < 3) { o.description = "foo"; o.domainRestricted = true; - o.items = buildUnnamed504(); + o.items = buildUnnamed3246(); o.kind = "foo"; } buildCounterAcl--; @@ -82,7 +82,7 @@ if (buildCounterAcl < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.domainRestricted, unittest.isTrue); - checkUnnamed504(o.items); + checkUnnamed3246(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAcl--; @@ -425,14 +425,14 @@ buildCounterActivityObjectAttachmentsPreviewThumbnails--; } -buildUnnamed505() { +buildUnnamed3247() { var o = new core.List<api.ActivityObjectAttachmentsPreviewThumbnails>(); o.add(buildActivityObjectAttachmentsPreviewThumbnails()); o.add(buildActivityObjectAttachmentsPreviewThumbnails()); return o; } -checkUnnamed505(core.List<api.ActivityObjectAttachmentsPreviewThumbnails> o) { +checkUnnamed3247(core.List<api.ActivityObjectAttachmentsPreviewThumbnails> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityObjectAttachmentsPreviewThumbnails(o[0]); checkActivityObjectAttachmentsPreviewThumbnails(o[1]); @@ -488,14 +488,14 @@ buildCounterActivityObjectAttachmentsThumbnails--; } -buildUnnamed506() { +buildUnnamed3248() { var o = new core.List<api.ActivityObjectAttachmentsThumbnails>(); o.add(buildActivityObjectAttachmentsThumbnails()); o.add(buildActivityObjectAttachmentsThumbnails()); return o; } -checkUnnamed506(core.List<api.ActivityObjectAttachmentsThumbnails> o) { +checkUnnamed3248(core.List<api.ActivityObjectAttachmentsThumbnails> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityObjectAttachmentsThumbnails(o[0]); checkActivityObjectAttachmentsThumbnails(o[1]); @@ -513,8 +513,8 @@ o.id = "foo"; o.image = buildActivityObjectAttachmentsImage(); o.objectType = "foo"; - o.previewThumbnails = buildUnnamed505(); - o.thumbnails = buildUnnamed506(); + o.previewThumbnails = buildUnnamed3247(); + o.thumbnails = buildUnnamed3248(); o.url = "foo"; } buildCounterActivityObjectAttachments--; @@ -531,21 +531,21 @@ unittest.expect(o.id, unittest.equals('foo')); checkActivityObjectAttachmentsImage(o.image); unittest.expect(o.objectType, unittest.equals('foo')); - checkUnnamed505(o.previewThumbnails); - checkUnnamed506(o.thumbnails); + checkUnnamed3247(o.previewThumbnails); + checkUnnamed3248(o.thumbnails); unittest.expect(o.url, unittest.equals('foo')); } buildCounterActivityObjectAttachments--; } -buildUnnamed507() { +buildUnnamed3249() { var o = new core.List<api.ActivityObjectAttachments>(); o.add(buildActivityObjectAttachments()); o.add(buildActivityObjectAttachments()); return o; } -checkUnnamed507(core.List<api.ActivityObjectAttachments> o) { +checkUnnamed3249(core.List<api.ActivityObjectAttachments> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityObjectAttachments(o[0]); checkActivityObjectAttachments(o[1]); @@ -647,7 +647,7 @@ buildCounterActivityObject++; if (buildCounterActivityObject < 3) { o.actor = buildActivityObjectActor(); - o.attachments = buildUnnamed507(); + o.attachments = buildUnnamed3249(); o.content = "foo"; o.id = "foo"; o.objectType = "foo"; @@ -666,7 +666,7 @@ buildCounterActivityObject++; if (buildCounterActivityObject < 3) { checkActivityObjectActor(o.actor); - checkUnnamed507(o.attachments); + checkUnnamed3249(o.attachments); unittest.expect(o.content, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.objectType, unittest.equals('foo')); @@ -758,14 +758,14 @@ buildCounterActivity--; } -buildUnnamed508() { +buildUnnamed3250() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed508(core.List<api.Activity> o) { +checkUnnamed3250(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -778,7 +778,7 @@ if (buildCounterActivityFeed < 3) { o.etag = "foo"; o.id = "foo"; - o.items = buildUnnamed508(); + o.items = buildUnnamed3250(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -795,7 +795,7 @@ if (buildCounterActivityFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed508(o.items); + checkUnnamed3250(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -834,14 +834,14 @@ buildCounterAudience--; } -buildUnnamed509() { +buildUnnamed3251() { var o = new core.List<api.Audience>(); o.add(buildAudience()); o.add(buildAudience()); return o; } -checkUnnamed509(core.List<api.Audience> o) { +checkUnnamed3251(core.List<api.Audience> o) { unittest.expect(o, unittest.hasLength(2)); checkAudience(o[0]); checkAudience(o[1]); @@ -853,7 +853,7 @@ buildCounterAudiencesFeed++; if (buildCounterAudiencesFeed < 3) { o.etag = "foo"; - o.items = buildUnnamed509(); + o.items = buildUnnamed3251(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -866,7 +866,7 @@ buildCounterAudiencesFeed++; if (buildCounterAudiencesFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed509(o.items); + checkUnnamed3251(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -924,14 +924,14 @@ buildCounterCircle--; } -buildUnnamed510() { +buildUnnamed3252() { var o = new core.List<api.Circle>(); o.add(buildCircle()); o.add(buildCircle()); return o; } -checkUnnamed510(core.List<api.Circle> o) { +checkUnnamed3252(core.List<api.Circle> o) { unittest.expect(o, unittest.hasLength(2)); checkCircle(o[0]); checkCircle(o[1]); @@ -943,7 +943,7 @@ buildCounterCircleFeed++; if (buildCounterCircleFeed < 3) { o.etag = "foo"; - o.items = buildUnnamed510(); + o.items = buildUnnamed3252(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -959,7 +959,7 @@ buildCounterCircleFeed++; if (buildCounterCircleFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed510(o.items); + checkUnnamed3252(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1100,14 +1100,14 @@ buildCounterCommentInReplyTo--; } -buildUnnamed511() { +buildUnnamed3253() { var o = new core.List<api.CommentInReplyTo>(); o.add(buildCommentInReplyTo()); o.add(buildCommentInReplyTo()); return o; } -checkUnnamed511(core.List<api.CommentInReplyTo> o) { +checkUnnamed3253(core.List<api.CommentInReplyTo> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentInReplyTo(o[0]); checkCommentInReplyTo(o[1]); @@ -1163,7 +1163,7 @@ o.actor = buildCommentActor(); o.etag = "foo"; o.id = "foo"; - o.inReplyTo = buildUnnamed511(); + o.inReplyTo = buildUnnamed3253(); o.kind = "foo"; o.object = buildCommentObject(); o.plusoners = buildCommentPlusoners(); @@ -1182,7 +1182,7 @@ checkCommentActor(o.actor); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed511(o.inReplyTo); + checkUnnamed3253(o.inReplyTo); unittest.expect(o.kind, unittest.equals('foo')); checkCommentObject(o.object); checkCommentPlusoners(o.plusoners); @@ -1196,14 +1196,14 @@ buildCounterComment--; } -buildUnnamed512() { +buildUnnamed3254() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed512(core.List<api.Comment> o) { +checkUnnamed3254(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1216,7 +1216,7 @@ if (buildCounterCommentFeed < 3) { o.etag = "foo"; o.id = "foo"; - o.items = buildUnnamed512(); + o.items = buildUnnamed3254(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -1232,7 +1232,7 @@ if (buildCounterCommentFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed512(o.items); + checkUnnamed3254(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1307,14 +1307,14 @@ buildCounterMediaExif--; } -buildUnnamed513() { +buildUnnamed3255() { var o = new core.List<api.Videostream>(); o.add(buildVideostream()); o.add(buildVideostream()); return o; } -checkUnnamed513(core.List<api.Videostream> o) { +checkUnnamed3255(core.List<api.Videostream> o) { unittest.expect(o, unittest.hasLength(2)); checkVideostream(o[0]); checkVideostream(o[1]); @@ -1336,7 +1336,7 @@ o.mediaUrl = "foo"; o.published = core.DateTime.parse("2002-02-27T14:01:02"); o.sizeBytes = "foo"; - o.streams = buildUnnamed513(); + o.streams = buildUnnamed3255(); o.summary = "foo"; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); o.url = "foo"; @@ -1364,7 +1364,7 @@ unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.sizeBytes, unittest.equals('foo')); - checkUnnamed513(o.streams); + checkUnnamed3255(o.streams); unittest.expect(o.summary, unittest.equals('foo')); unittest.expect( o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -1376,14 +1376,14 @@ buildCounterMedia--; } -buildUnnamed514() { +buildUnnamed3256() { var o = new core.List<api.Person>(); o.add(buildPerson()); o.add(buildPerson()); return o; } -checkUnnamed514(core.List<api.Person> o) { +checkUnnamed3256(core.List<api.Person> o) { unittest.expect(o, unittest.hasLength(2)); checkPerson(o[0]); checkPerson(o[1]); @@ -1395,7 +1395,7 @@ buildCounterPeopleFeed++; if (buildCounterPeopleFeed < 3) { o.etag = "foo"; - o.items = buildUnnamed514(); + o.items = buildUnnamed3256(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1410,7 +1410,7 @@ buildCounterPeopleFeed++; if (buildCounterPeopleFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed514(o.items); + checkUnnamed3256(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1508,14 +1508,14 @@ buildCounterPersonEmails--; } -buildUnnamed515() { +buildUnnamed3257() { var o = new core.List<api.PersonEmails>(); o.add(buildPersonEmails()); o.add(buildPersonEmails()); return o; } -checkUnnamed515(core.List<api.PersonEmails> o) { +checkUnnamed3257(core.List<api.PersonEmails> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonEmails(o[0]); checkPersonEmails(o[1]); @@ -1606,14 +1606,14 @@ buildCounterPersonOrganizations--; } -buildUnnamed516() { +buildUnnamed3258() { var o = new core.List<api.PersonOrganizations>(); o.add(buildPersonOrganizations()); o.add(buildPersonOrganizations()); return o; } -checkUnnamed516(core.List<api.PersonOrganizations> o) { +checkUnnamed3258(core.List<api.PersonOrganizations> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonOrganizations(o[0]); checkPersonOrganizations(o[1]); @@ -1640,14 +1640,14 @@ buildCounterPersonPlacesLived--; } -buildUnnamed517() { +buildUnnamed3259() { var o = new core.List<api.PersonPlacesLived>(); o.add(buildPersonPlacesLived()); o.add(buildPersonPlacesLived()); return o; } -checkUnnamed517(core.List<api.PersonPlacesLived> o) { +checkUnnamed3259(core.List<api.PersonPlacesLived> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonPlacesLived(o[0]); checkPersonPlacesLived(o[1]); @@ -1676,14 +1676,14 @@ buildCounterPersonUrls--; } -buildUnnamed518() { +buildUnnamed3260() { var o = new core.List<api.PersonUrls>(); o.add(buildPersonUrls()); o.add(buildPersonUrls()); return o; } -checkUnnamed518(core.List<api.PersonUrls> o) { +checkUnnamed3260(core.List<api.PersonUrls> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonUrls(o[0]); checkPersonUrls(o[1]); @@ -1702,7 +1702,7 @@ o.currentLocation = "foo"; o.displayName = "foo"; o.domain = "foo"; - o.emails = buildUnnamed515(); + o.emails = buildUnnamed3257(); o.etag = "foo"; o.gender = "foo"; o.id = "foo"; @@ -1713,14 +1713,14 @@ o.nickname = "foo"; o.objectType = "foo"; o.occupation = "foo"; - o.organizations = buildUnnamed516(); - o.placesLived = buildUnnamed517(); + o.organizations = buildUnnamed3258(); + o.placesLived = buildUnnamed3259(); o.plusOneCount = 42; o.relationshipStatus = "foo"; o.skills = "foo"; o.tagline = "foo"; o.url = "foo"; - o.urls = buildUnnamed518(); + o.urls = buildUnnamed3260(); o.verified = true; } buildCounterPerson--; @@ -1738,7 +1738,7 @@ unittest.expect(o.currentLocation, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.domain, unittest.equals('foo')); - checkUnnamed515(o.emails); + checkUnnamed3257(o.emails); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.gender, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -1749,14 +1749,14 @@ unittest.expect(o.nickname, unittest.equals('foo')); unittest.expect(o.objectType, unittest.equals('foo')); unittest.expect(o.occupation, unittest.equals('foo')); - checkUnnamed516(o.organizations); - checkUnnamed517(o.placesLived); + checkUnnamed3258(o.organizations); + checkUnnamed3259(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')); - checkUnnamed518(o.urls); + checkUnnamed3260(o.urls); unittest.expect(o.verified, unittest.isTrue); } buildCounterPerson--; @@ -1877,53 +1877,53 @@ buildCounterVideostream--; } -buildUnnamed519() { +buildUnnamed3261() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed519(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')); } -buildUnnamed520() { +buildUnnamed3262() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed520(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')); } -buildUnnamed521() { +buildUnnamed3263() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed521(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')); } -buildUnnamed522() { +buildUnnamed3264() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed522(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')); @@ -2721,8 +2721,8 @@ var mock = new HttpServerMock(); api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; var arg_circleId = "foo"; - var arg_email = buildUnnamed519(); - var arg_userId = buildUnnamed520(); + var arg_email = buildUnnamed3261(); + var arg_userId = buildUnnamed3262(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3095,8 +3095,8 @@ var mock = new HttpServerMock(); api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; var arg_circleId = "foo"; - var arg_email = buildUnnamed521(); - var arg_userId = buildUnnamed522(); + var arg_email = buildUnnamed3263(); + var arg_userId = buildUnnamed3264(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path;
diff --git a/generated/googleapis/test/poly/v1_test.dart b/generated/googleapis/test/poly/v1_test.dart index 0f33f4b..07ea780 100644 --- a/generated/googleapis/test/poly/v1_test.dart +++ b/generated/googleapis/test/poly/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed183() { +buildUnnamed3226() { var o = new core.List<api.Format>(); o.add(buildFormat()); o.add(buildFormat()); return o; } -checkUnnamed183(core.List<api.Format> o) { +checkUnnamed3226(core.List<api.Format> o) { unittest.expect(o, unittest.hasLength(2)); checkFormat(o[0]); checkFormat(o[1]); @@ -72,7 +72,7 @@ o.createTime = "foo"; o.description = "foo"; o.displayName = "foo"; - o.formats = buildUnnamed183(); + o.formats = buildUnnamed3226(); o.isCurated = true; o.license = "foo"; o.metadata = "foo"; @@ -93,7 +93,7 @@ unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed183(o.formats); + checkUnnamed3226(o.formats); unittest.expect(o.isCurated, unittest.isTrue); unittest.expect(o.license, unittest.equals('foo')); unittest.expect(o.metadata, unittest.equals('foo')); @@ -106,6 +106,31 @@ buildCounterAsset--; } +core.int buildCounterAssetImportMessage = 0; +buildAssetImportMessage() { + var o = new api.AssetImportMessage(); + buildCounterAssetImportMessage++; + if (buildCounterAssetImportMessage < 3) { + o.code = "foo"; + o.filePath = "foo"; + o.imageError = buildImageError(); + o.objParseError = buildObjParseError(); + } + buildCounterAssetImportMessage--; + return o; +} + +checkAssetImportMessage(api.AssetImportMessage o) { + buildCounterAssetImportMessage++; + if (buildCounterAssetImportMessage < 3) { + unittest.expect(o.code, unittest.equals('foo')); + unittest.expect(o.filePath, unittest.equals('foo')); + checkImageError(o.imageError); + checkObjParseError(o.objParseError); + } + buildCounterAssetImportMessage--; +} + core.int buildCounterFile = 0; buildFile() { var o = new api.File(); @@ -129,14 +154,14 @@ buildCounterFile--; } -buildUnnamed184() { +buildUnnamed3227() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed184(core.List<api.File> o) { +checkUnnamed3227(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -149,7 +174,7 @@ if (buildCounterFormat < 3) { o.formatComplexity = buildFormatComplexity(); o.formatType = "foo"; - o.resources = buildUnnamed184(); + o.resources = buildUnnamed3227(); o.root = buildFile(); } buildCounterFormat--; @@ -161,7 +186,7 @@ if (buildCounterFormat < 3) { checkFormatComplexity(o.formatComplexity); unittest.expect(o.formatType, unittest.equals('foo')); - checkUnnamed184(o.resources); + checkUnnamed3227(o.resources); checkFile(o.root); } buildCounterFormat--; @@ -188,14 +213,35 @@ buildCounterFormatComplexity--; } -buildUnnamed185() { +core.int buildCounterImageError = 0; +buildImageError() { + var o = new api.ImageError(); + buildCounterImageError++; + if (buildCounterImageError < 3) { + o.code = "foo"; + o.filePath = "foo"; + } + buildCounterImageError--; + return o; +} + +checkImageError(api.ImageError o) { + buildCounterImageError++; + if (buildCounterImageError < 3) { + unittest.expect(o.code, unittest.equals('foo')); + unittest.expect(o.filePath, unittest.equals('foo')); + } + buildCounterImageError--; +} + +buildUnnamed3228() { var o = new core.List<api.Asset>(); o.add(buildAsset()); o.add(buildAsset()); return o; } -checkUnnamed185(core.List<api.Asset> o) { +checkUnnamed3228(core.List<api.Asset> o) { unittest.expect(o, unittest.hasLength(2)); checkAsset(o[0]); checkAsset(o[1]); @@ -206,7 +252,7 @@ var o = new api.ListAssetsResponse(); buildCounterListAssetsResponse++; if (buildCounterListAssetsResponse < 3) { - o.assets = buildUnnamed185(); + o.assets = buildUnnamed3228(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -217,21 +263,21 @@ checkListAssetsResponse(api.ListAssetsResponse o) { buildCounterListAssetsResponse++; if (buildCounterListAssetsResponse < 3) { - checkUnnamed185(o.assets); + checkUnnamed3228(o.assets); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListAssetsResponse--; } -buildUnnamed186() { +buildUnnamed3229() { var o = new core.List<api.Asset>(); o.add(buildAsset()); o.add(buildAsset()); return o; } -checkUnnamed186(core.List<api.Asset> o) { +checkUnnamed3229(core.List<api.Asset> o) { unittest.expect(o, unittest.hasLength(2)); checkAsset(o[0]); checkAsset(o[1]); @@ -242,7 +288,7 @@ var o = new api.ListLikedAssetsResponse(); buildCounterListLikedAssetsResponse++; if (buildCounterListLikedAssetsResponse < 3) { - o.assets = buildUnnamed186(); + o.assets = buildUnnamed3229(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -253,21 +299,21 @@ checkListLikedAssetsResponse(api.ListLikedAssetsResponse o) { buildCounterListLikedAssetsResponse++; if (buildCounterListLikedAssetsResponse < 3) { - checkUnnamed186(o.assets); + checkUnnamed3229(o.assets); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListLikedAssetsResponse--; } -buildUnnamed187() { +buildUnnamed3230() { var o = new core.List<api.UserAsset>(); o.add(buildUserAsset()); o.add(buildUserAsset()); return o; } -checkUnnamed187(core.List<api.UserAsset> o) { +checkUnnamed3230(core.List<api.UserAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkUserAsset(o[0]); checkUserAsset(o[1]); @@ -280,7 +326,7 @@ if (buildCounterListUserAssetsResponse < 3) { o.nextPageToken = "foo"; o.totalSize = 42; - o.userAssets = buildUnnamed187(); + o.userAssets = buildUnnamed3230(); } buildCounterListUserAssetsResponse--; return o; @@ -291,11 +337,40 @@ if (buildCounterListUserAssetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); - checkUnnamed187(o.userAssets); + checkUnnamed3230(o.userAssets); } buildCounterListUserAssetsResponse--; } +core.int buildCounterObjParseError = 0; +buildObjParseError() { + var o = new api.ObjParseError(); + buildCounterObjParseError++; + if (buildCounterObjParseError < 3) { + o.code = "foo"; + o.endIndex = 42; + o.filePath = "foo"; + o.line = "foo"; + o.lineNumber = 42; + o.startIndex = 42; + } + buildCounterObjParseError--; + return o; +} + +checkObjParseError(api.ObjParseError o) { + buildCounterObjParseError++; + if (buildCounterObjParseError < 3) { + unittest.expect(o.code, unittest.equals('foo')); + unittest.expect(o.endIndex, unittest.equals(42)); + unittest.expect(o.filePath, unittest.equals('foo')); + unittest.expect(o.line, unittest.equals('foo')); + unittest.expect(o.lineNumber, unittest.equals(42)); + unittest.expect(o.startIndex, unittest.equals(42)); + } + buildCounterObjParseError--; +} + core.int buildCounterPresentationParams = 0; buildPresentationParams() { var o = new api.PresentationParams(); @@ -342,6 +417,44 @@ buildCounterQuaternion--; } +buildUnnamed3231() { + var o = new core.List<api.AssetImportMessage>(); + o.add(buildAssetImportMessage()); + o.add(buildAssetImportMessage()); + return o; +} + +checkUnnamed3231(core.List<api.AssetImportMessage> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAssetImportMessage(o[0]); + checkAssetImportMessage(o[1]); +} + +core.int buildCounterStartAssetImportResponse = 0; +buildStartAssetImportResponse() { + var o = new api.StartAssetImportResponse(); + buildCounterStartAssetImportResponse++; + if (buildCounterStartAssetImportResponse < 3) { + o.assetId = "foo"; + o.assetImportId = "foo"; + o.assetImportMessages = buildUnnamed3231(); + o.publishUrl = "foo"; + } + buildCounterStartAssetImportResponse--; + return o; +} + +checkStartAssetImportResponse(api.StartAssetImportResponse o) { + buildCounterStartAssetImportResponse++; + if (buildCounterStartAssetImportResponse < 3) { + unittest.expect(o.assetId, unittest.equals('foo')); + unittest.expect(o.assetImportId, unittest.equals('foo')); + checkUnnamed3231(o.assetImportMessages); + unittest.expect(o.publishUrl, unittest.equals('foo')); + } + buildCounterStartAssetImportResponse--; +} + core.int buildCounterUserAsset = 0; buildUserAsset() { var o = new api.UserAsset(); @@ -370,6 +483,14 @@ }); }); + unittest.group("obj-schema-AssetImportMessage", () { + unittest.test("to-json--from-json", () { + var o = buildAssetImportMessage(); + var od = new api.AssetImportMessage.fromJson(o.toJson()); + checkAssetImportMessage(od); + }); + }); + unittest.group("obj-schema-File", () { unittest.test("to-json--from-json", () { var o = buildFile(); @@ -394,6 +515,14 @@ }); }); + unittest.group("obj-schema-ImageError", () { + unittest.test("to-json--from-json", () { + var o = buildImageError(); + var od = new api.ImageError.fromJson(o.toJson()); + checkImageError(od); + }); + }); + unittest.group("obj-schema-ListAssetsResponse", () { unittest.test("to-json--from-json", () { var o = buildListAssetsResponse(); @@ -418,6 +547,14 @@ }); }); + unittest.group("obj-schema-ObjParseError", () { + unittest.test("to-json--from-json", () { + var o = buildObjParseError(); + var od = new api.ObjParseError.fromJson(o.toJson()); + checkObjParseError(od); + }); + }); + unittest.group("obj-schema-PresentationParams", () { unittest.test("to-json--from-json", () { var o = buildPresentationParams(); @@ -434,6 +571,14 @@ }); }); + unittest.group("obj-schema-StartAssetImportResponse", () { + unittest.test("to-json--from-json", () { + var o = buildStartAssetImportResponse(); + var od = new api.StartAssetImportResponse.fromJson(o.toJson()); + checkStartAssetImportResponse(od); + }); + }); + unittest.group("obj-schema-UserAsset", () { unittest.test("to-json--from-json", () { var o = buildUserAsset(); @@ -497,14 +642,14 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.AssetsResourceApi res = new api.PolyApi(mock).assets; - var arg_category = "foo"; - var arg_maxComplexity = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_keywords = "foo"; var arg_orderBy = "foo"; var arg_format = "foo"; var arg_curated = true; + var arg_category = "foo"; + var arg_pageToken = "foo"; + var arg_maxComplexity = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -537,20 +682,20 @@ } } unittest.expect( - queryMap["category"].first, unittest.equals(arg_category)); - unittest.expect(queryMap["maxComplexity"].first, - unittest.equals(arg_maxComplexity)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); - unittest.expect( queryMap["keywords"].first, unittest.equals(arg_keywords)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["format"].first, unittest.equals(arg_format)); unittest.expect( queryMap["curated"].first, unittest.equals("$arg_curated")); + unittest.expect( + queryMap["category"].first, unittest.equals(arg_category)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["maxComplexity"].first, + unittest.equals(arg_maxComplexity)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -561,14 +706,14 @@ }), true); res .list( - category: arg_category, - maxComplexity: arg_maxComplexity, - pageToken: arg_pageToken, - pageSize: arg_pageSize, keywords: arg_keywords, orderBy: arg_orderBy, format: arg_format, curated: arg_curated, + category: arg_category, + pageToken: arg_pageToken, + maxComplexity: arg_maxComplexity, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListAssetsResponse(response); @@ -581,11 +726,11 @@ var mock = new HttpServerMock(); api.UsersAssetsResourceApi res = new api.PolyApi(mock).users.assets; var arg_name = "foo"; - var arg_orderBy = "foo"; var arg_format = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_visibility = "foo"; + var arg_orderBy = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -618,8 +763,6 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["format"].first, unittest.equals(arg_format)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -627,6 +770,8 @@ unittest.equals(arg_pageSize)); unittest.expect( queryMap["visibility"].first, unittest.equals(arg_visibility)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -637,11 +782,11 @@ }), true); res .list(arg_name, - orderBy: arg_orderBy, format: arg_format, pageToken: arg_pageToken, pageSize: arg_pageSize, visibility: arg_visibility, + orderBy: arg_orderBy, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListUserAssetsResponse(response); @@ -655,10 +800,10 @@ api.UsersLikedassetsResourceApi res = new api.PolyApi(mock).users.likedassets; var arg_name = "foo"; - var arg_orderBy = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_format = "foo"; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -691,13 +836,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["format"].first, unittest.equals(arg_format)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); - unittest.expect(queryMap["format"].first, unittest.equals(arg_format)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -708,10 +853,10 @@ }), true); res .list(arg_name, - orderBy: arg_orderBy, - pageToken: arg_pageToken, pageSize: arg_pageSize, format: arg_format, + orderBy: arg_orderBy, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLikedAssetsResponse(response);
diff --git a/generated/googleapis/test/prediction/v1_6_test.dart b/generated/googleapis/test/prediction/v1_6_test.dart index da4bdc1..ae8dcaf 100644 --- a/generated/googleapis/test/prediction/v1_6_test.dart +++ b/generated/googleapis/test/prediction/v1_6_test.dart
@@ -72,14 +72,14 @@ buildCounterAnalyzeDataDescriptionFeaturesCategoricalValues--; } -buildUnnamed2815() { +buildUnnamed4429() { var o = new core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues>(); o.add(buildAnalyzeDataDescriptionFeaturesCategoricalValues()); o.add(buildAnalyzeDataDescriptionFeaturesCategoricalValues()); return o; } -checkUnnamed2815( +checkUnnamed4429( core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues> o) { unittest.expect(o, unittest.hasLength(2)); checkAnalyzeDataDescriptionFeaturesCategoricalValues(o[0]); @@ -92,7 +92,7 @@ buildCounterAnalyzeDataDescriptionFeaturesCategorical++; if (buildCounterAnalyzeDataDescriptionFeaturesCategorical < 3) { o.count = "foo"; - o.values = buildUnnamed2815(); + o.values = buildUnnamed4429(); } buildCounterAnalyzeDataDescriptionFeaturesCategorical--; return o; @@ -103,7 +103,7 @@ buildCounterAnalyzeDataDescriptionFeaturesCategorical++; if (buildCounterAnalyzeDataDescriptionFeaturesCategorical < 3) { unittest.expect(o.count, unittest.equals('foo')); - checkUnnamed2815(o.values); + checkUnnamed4429(o.values); } buildCounterAnalyzeDataDescriptionFeaturesCategorical--; } @@ -177,14 +177,14 @@ buildCounterAnalyzeDataDescriptionFeatures--; } -buildUnnamed2816() { +buildUnnamed4430() { var o = new core.List<api.AnalyzeDataDescriptionFeatures>(); o.add(buildAnalyzeDataDescriptionFeatures()); o.add(buildAnalyzeDataDescriptionFeatures()); return o; } -checkUnnamed2816(core.List<api.AnalyzeDataDescriptionFeatures> o) { +checkUnnamed4430(core.List<api.AnalyzeDataDescriptionFeatures> o) { unittest.expect(o, unittest.hasLength(2)); checkAnalyzeDataDescriptionFeatures(o[0]); checkAnalyzeDataDescriptionFeatures(o[1]); @@ -236,14 +236,14 @@ buildCounterAnalyzeDataDescriptionOutputFeatureText--; } -buildUnnamed2817() { +buildUnnamed4431() { var o = new core.List<api.AnalyzeDataDescriptionOutputFeatureText>(); o.add(buildAnalyzeDataDescriptionOutputFeatureText()); o.add(buildAnalyzeDataDescriptionOutputFeatureText()); return o; } -checkUnnamed2817(core.List<api.AnalyzeDataDescriptionOutputFeatureText> o) { +checkUnnamed4431(core.List<api.AnalyzeDataDescriptionOutputFeatureText> o) { unittest.expect(o, unittest.hasLength(2)); checkAnalyzeDataDescriptionOutputFeatureText(o[0]); checkAnalyzeDataDescriptionOutputFeatureText(o[1]); @@ -255,7 +255,7 @@ buildCounterAnalyzeDataDescriptionOutputFeature++; if (buildCounterAnalyzeDataDescriptionOutputFeature < 3) { o.numeric = buildAnalyzeDataDescriptionOutputFeatureNumeric(); - o.text = buildUnnamed2817(); + o.text = buildUnnamed4431(); } buildCounterAnalyzeDataDescriptionOutputFeature--; return o; @@ -266,7 +266,7 @@ buildCounterAnalyzeDataDescriptionOutputFeature++; if (buildCounterAnalyzeDataDescriptionOutputFeature < 3) { checkAnalyzeDataDescriptionOutputFeatureNumeric(o.numeric); - checkUnnamed2817(o.text); + checkUnnamed4431(o.text); } buildCounterAnalyzeDataDescriptionOutputFeature--; } @@ -276,7 +276,7 @@ var o = new api.AnalyzeDataDescription(); buildCounterAnalyzeDataDescription++; if (buildCounterAnalyzeDataDescription < 3) { - o.features = buildUnnamed2816(); + o.features = buildUnnamed4430(); o.outputFeature = buildAnalyzeDataDescriptionOutputFeature(); } buildCounterAnalyzeDataDescription--; @@ -286,72 +286,72 @@ checkAnalyzeDataDescription(api.AnalyzeDataDescription o) { buildCounterAnalyzeDataDescription++; if (buildCounterAnalyzeDataDescription < 3) { - checkUnnamed2816(o.features); + checkUnnamed4430(o.features); checkAnalyzeDataDescriptionOutputFeature(o.outputFeature); } buildCounterAnalyzeDataDescription--; } -buildUnnamed2818() { +buildUnnamed4432() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2818(core.Map<core.String, core.String> o) { +checkUnnamed4432(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')); } -buildUnnamed2819() { +buildUnnamed4433() { var o = new core.List<core.Map<core.String, core.String>>(); - o.add(buildUnnamed2818()); - o.add(buildUnnamed2818()); + o.add(buildUnnamed4432()); + o.add(buildUnnamed4432()); return o; } -checkUnnamed2819(core.List<core.Map<core.String, core.String>> o) { +checkUnnamed4433(core.List<core.Map<core.String, core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2818(o[0]); - checkUnnamed2818(o[1]); + checkUnnamed4432(o[0]); + checkUnnamed4432(o[1]); } -buildUnnamed2820() { +buildUnnamed4434() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2820(core.Map<core.String, core.String> o) { +checkUnnamed4434(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')); } -buildUnnamed2821() { +buildUnnamed4435() { var o = new core.Map<core.String, core.Map<core.String, core.String>>(); - o["x"] = buildUnnamed2820(); - o["y"] = buildUnnamed2820(); + o["x"] = buildUnnamed4434(); + o["y"] = buildUnnamed4434(); return o; } -checkUnnamed2821(core.Map<core.String, core.Map<core.String, core.String>> o) { +checkUnnamed4435(core.Map<core.String, core.Map<core.String, core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2820(o["x"]); - checkUnnamed2820(o["y"]); + checkUnnamed4434(o["x"]); + checkUnnamed4434(o["y"]); } -buildUnnamed2822() { +buildUnnamed4436() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2822(core.Map<core.String, core.String> o) { +checkUnnamed4436(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')); @@ -362,8 +362,8 @@ var o = new api.AnalyzeModelDescription(); buildCounterAnalyzeModelDescription++; if (buildCounterAnalyzeModelDescription < 3) { - o.confusionMatrix = buildUnnamed2821(); - o.confusionMatrixRowTotals = buildUnnamed2822(); + o.confusionMatrix = buildUnnamed4435(); + o.confusionMatrixRowTotals = buildUnnamed4436(); o.modelinfo = buildInsert2(); } buildCounterAnalyzeModelDescription--; @@ -373,8 +373,8 @@ checkAnalyzeModelDescription(api.AnalyzeModelDescription o) { buildCounterAnalyzeModelDescription++; if (buildCounterAnalyzeModelDescription < 3) { - checkUnnamed2821(o.confusionMatrix); - checkUnnamed2822(o.confusionMatrixRowTotals); + checkUnnamed4435(o.confusionMatrix); + checkUnnamed4436(o.confusionMatrixRowTotals); checkInsert2(o.modelinfo); } buildCounterAnalyzeModelDescription--; @@ -386,7 +386,7 @@ buildCounterAnalyze++; if (buildCounterAnalyze < 3) { o.dataDescription = buildAnalyzeDataDescription(); - o.errors = buildUnnamed2819(); + o.errors = buildUnnamed4433(); o.id = "foo"; o.kind = "foo"; o.modelDescription = buildAnalyzeModelDescription(); @@ -400,7 +400,7 @@ buildCounterAnalyze++; if (buildCounterAnalyze < 3) { checkAnalyzeDataDescription(o.dataDescription); - checkUnnamed2819(o.errors); + checkUnnamed4433(o.errors); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkAnalyzeModelDescription(o.modelDescription); @@ -409,7 +409,7 @@ buildCounterAnalyze--; } -buildUnnamed2823() { +buildUnnamed4437() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -424,7 +424,7 @@ return o; } -checkUnnamed2823(core.List<core.Object> o) { +checkUnnamed4437(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -443,7 +443,7 @@ var o = new api.InputInput(); buildCounterInputInput++; if (buildCounterInputInput < 3) { - o.csvInstance = buildUnnamed2823(); + o.csvInstance = buildUnnamed4437(); } buildCounterInputInput--; return o; @@ -452,7 +452,7 @@ checkInputInput(api.InputInput o) { buildCounterInputInput++; if (buildCounterInputInput < 3) { - checkUnnamed2823(o.csvInstance); + checkUnnamed4437(o.csvInstance); } buildCounterInputInput--; } @@ -476,7 +476,7 @@ buildCounterInput--; } -buildUnnamed2824() { +buildUnnamed4438() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -491,7 +491,7 @@ return o; } -checkUnnamed2824(core.List<core.Object> o) { +checkUnnamed4438(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -510,7 +510,7 @@ var o = new api.InsertTrainingInstances(); buildCounterInsertTrainingInstances++; if (buildCounterInsertTrainingInstances < 3) { - o.csvInstance = buildUnnamed2824(); + o.csvInstance = buildUnnamed4438(); o.output = "foo"; } buildCounterInsertTrainingInstances--; @@ -520,49 +520,49 @@ checkInsertTrainingInstances(api.InsertTrainingInstances o) { buildCounterInsertTrainingInstances++; if (buildCounterInsertTrainingInstances < 3) { - checkUnnamed2824(o.csvInstance); + checkUnnamed4438(o.csvInstance); unittest.expect(o.output, unittest.equals('foo')); } buildCounterInsertTrainingInstances--; } -buildUnnamed2825() { +buildUnnamed4439() { var o = new core.List<api.InsertTrainingInstances>(); o.add(buildInsertTrainingInstances()); o.add(buildInsertTrainingInstances()); return o; } -checkUnnamed2825(core.List<api.InsertTrainingInstances> o) { +checkUnnamed4439(core.List<api.InsertTrainingInstances> o) { unittest.expect(o, unittest.hasLength(2)); checkInsertTrainingInstances(o[0]); checkInsertTrainingInstances(o[1]); } -buildUnnamed2826() { +buildUnnamed4440() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed2826(core.Map<core.String, core.double> o) { +checkUnnamed4440(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)); } -buildUnnamed2827() { +buildUnnamed4441() { var o = new core.List<core.Map<core.String, core.double>>(); - o.add(buildUnnamed2826()); - o.add(buildUnnamed2826()); + o.add(buildUnnamed4440()); + o.add(buildUnnamed4440()); return o; } -checkUnnamed2827(core.List<core.Map<core.String, core.double>> o) { +checkUnnamed4441(core.List<core.Map<core.String, core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2826(o[0]); - checkUnnamed2826(o[1]); + checkUnnamed4440(o[0]); + checkUnnamed4440(o[1]); } core.int buildCounterInsert = 0; @@ -576,8 +576,8 @@ o.storageDataLocation = "foo"; o.storagePMMLLocation = "foo"; o.storagePMMLModelLocation = "foo"; - o.trainingInstances = buildUnnamed2825(); - o.utility = buildUnnamed2827(); + o.trainingInstances = buildUnnamed4439(); + o.utility = buildUnnamed4441(); } buildCounterInsert--; return o; @@ -592,8 +592,8 @@ unittest.expect(o.storageDataLocation, unittest.equals('foo')); unittest.expect(o.storagePMMLLocation, unittest.equals('foo')); unittest.expect(o.storagePMMLModelLocation, unittest.equals('foo')); - checkUnnamed2825(o.trainingInstances); - checkUnnamed2827(o.utility); + checkUnnamed4439(o.trainingInstances); + checkUnnamed4441(o.utility); } buildCounterInsert--; } @@ -668,14 +668,14 @@ buildCounterInsert2--; } -buildUnnamed2828() { +buildUnnamed4442() { var o = new core.List<api.Insert2>(); o.add(buildInsert2()); o.add(buildInsert2()); return o; } -checkUnnamed2828(core.List<api.Insert2> o) { +checkUnnamed4442(core.List<api.Insert2> o) { unittest.expect(o, unittest.hasLength(2)); checkInsert2(o[0]); checkInsert2(o[1]); @@ -686,7 +686,7 @@ var o = new api.List(); buildCounterList++; if (buildCounterList < 3) { - o.items = buildUnnamed2828(); + o.items = buildUnnamed4442(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -698,7 +698,7 @@ checkList(api.List o) { buildCounterList++; if (buildCounterList < 3) { - checkUnnamed2828(o.items); + checkUnnamed4442(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -727,14 +727,14 @@ buildCounterOutputOutputMulti--; } -buildUnnamed2829() { +buildUnnamed4443() { var o = new core.List<api.OutputOutputMulti>(); o.add(buildOutputOutputMulti()); o.add(buildOutputOutputMulti()); return o; } -checkUnnamed2829(core.List<api.OutputOutputMulti> o) { +checkUnnamed4443(core.List<api.OutputOutputMulti> o) { unittest.expect(o, unittest.hasLength(2)); checkOutputOutputMulti(o[0]); checkOutputOutputMulti(o[1]); @@ -748,7 +748,7 @@ o.id = "foo"; o.kind = "foo"; o.outputLabel = "foo"; - o.outputMulti = buildUnnamed2829(); + o.outputMulti = buildUnnamed4443(); o.outputValue = "foo"; o.selfLink = "foo"; } @@ -762,14 +762,14 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.outputLabel, unittest.equals('foo')); - checkUnnamed2829(o.outputMulti); + checkUnnamed4443(o.outputMulti); unittest.expect(o.outputValue, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterOutput--; } -buildUnnamed2830() { +buildUnnamed4444() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -784,7 +784,7 @@ return o; } -checkUnnamed2830(core.List<core.Object> o) { +checkUnnamed4444(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -803,7 +803,7 @@ var o = new api.Update(); buildCounterUpdate++; if (buildCounterUpdate < 3) { - o.csvInstance = buildUnnamed2830(); + o.csvInstance = buildUnnamed4444(); o.output = "foo"; } buildCounterUpdate--; @@ -813,7 +813,7 @@ checkUpdate(api.Update o) { buildCounterUpdate++; if (buildCounterUpdate < 3) { - checkUnnamed2830(o.csvInstance); + checkUnnamed4444(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 6853ee3..cd5295a 100644 --- a/generated/googleapis/test/pubsub/v1_test.dart +++ b/generated/googleapis/test/pubsub/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1326() { +buildUnnamed206() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1326(core.List<core.String> o) { +checkUnnamed206(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -68,7 +68,7 @@ var o = new api.AcknowledgeRequest(); buildCounterAcknowledgeRequest++; if (buildCounterAcknowledgeRequest < 3) { - o.ackIds = buildUnnamed1326(); + o.ackIds = buildUnnamed206(); } buildCounterAcknowledgeRequest--; return o; @@ -77,19 +77,19 @@ checkAcknowledgeRequest(api.AcknowledgeRequest o) { buildCounterAcknowledgeRequest++; if (buildCounterAcknowledgeRequest < 3) { - checkUnnamed1326(o.ackIds); + checkUnnamed206(o.ackIds); } buildCounterAcknowledgeRequest--; } -buildUnnamed1327() { +buildUnnamed207() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1327(core.List<core.String> o) { +checkUnnamed207(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -100,7 +100,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed1327(); + o.members = buildUnnamed207(); o.role = "foo"; } buildCounterBinding--; @@ -110,7 +110,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed1327(o.members); + checkUnnamed207(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -150,14 +150,14 @@ buildCounterEmpty--; } -buildUnnamed1328() { +buildUnnamed208() { var o = new core.List<api.Snapshot>(); o.add(buildSnapshot()); o.add(buildSnapshot()); return o; } -checkUnnamed1328(core.List<api.Snapshot> o) { +checkUnnamed208(core.List<api.Snapshot> o) { unittest.expect(o, unittest.hasLength(2)); checkSnapshot(o[0]); checkSnapshot(o[1]); @@ -169,7 +169,7 @@ buildCounterListSnapshotsResponse++; if (buildCounterListSnapshotsResponse < 3) { o.nextPageToken = "foo"; - o.snapshots = buildUnnamed1328(); + o.snapshots = buildUnnamed208(); } buildCounterListSnapshotsResponse--; return o; @@ -179,19 +179,19 @@ buildCounterListSnapshotsResponse++; if (buildCounterListSnapshotsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1328(o.snapshots); + checkUnnamed208(o.snapshots); } buildCounterListSnapshotsResponse--; } -buildUnnamed1329() { +buildUnnamed209() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed1329(core.List<api.Subscription> o) { +checkUnnamed209(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -203,7 +203,7 @@ buildCounterListSubscriptionsResponse++; if (buildCounterListSubscriptionsResponse < 3) { o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed1329(); + o.subscriptions = buildUnnamed209(); } buildCounterListSubscriptionsResponse--; return o; @@ -213,19 +213,19 @@ buildCounterListSubscriptionsResponse++; if (buildCounterListSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1329(o.subscriptions); + checkUnnamed209(o.subscriptions); } buildCounterListSubscriptionsResponse--; } -buildUnnamed1330() { +buildUnnamed210() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1330(core.List<core.String> o) { +checkUnnamed210(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -237,7 +237,7 @@ buildCounterListTopicSnapshotsResponse++; if (buildCounterListTopicSnapshotsResponse < 3) { o.nextPageToken = "foo"; - o.snapshots = buildUnnamed1330(); + o.snapshots = buildUnnamed210(); } buildCounterListTopicSnapshotsResponse--; return o; @@ -247,19 +247,19 @@ buildCounterListTopicSnapshotsResponse++; if (buildCounterListTopicSnapshotsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1330(o.snapshots); + checkUnnamed210(o.snapshots); } buildCounterListTopicSnapshotsResponse--; } -buildUnnamed1331() { +buildUnnamed211() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1331(core.List<core.String> o) { +checkUnnamed211(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -271,7 +271,7 @@ buildCounterListTopicSubscriptionsResponse++; if (buildCounterListTopicSubscriptionsResponse < 3) { o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed1331(); + o.subscriptions = buildUnnamed211(); } buildCounterListTopicSubscriptionsResponse--; return o; @@ -281,19 +281,19 @@ buildCounterListTopicSubscriptionsResponse++; if (buildCounterListTopicSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1331(o.subscriptions); + checkUnnamed211(o.subscriptions); } buildCounterListTopicSubscriptionsResponse--; } -buildUnnamed1332() { +buildUnnamed212() { var o = new core.List<api.Topic>(); o.add(buildTopic()); o.add(buildTopic()); return o; } -checkUnnamed1332(core.List<api.Topic> o) { +checkUnnamed212(core.List<api.Topic> o) { unittest.expect(o, unittest.hasLength(2)); checkTopic(o[0]); checkTopic(o[1]); @@ -305,7 +305,7 @@ buildCounterListTopicsResponse++; if (buildCounterListTopicsResponse < 3) { o.nextPageToken = "foo"; - o.topics = buildUnnamed1332(); + o.topics = buildUnnamed212(); } buildCounterListTopicsResponse--; return o; @@ -315,19 +315,19 @@ buildCounterListTopicsResponse++; if (buildCounterListTopicsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1332(o.topics); + checkUnnamed212(o.topics); } buildCounterListTopicsResponse--; } -buildUnnamed1333() { +buildUnnamed213() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1333(core.List<core.String> o) { +checkUnnamed213(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -339,7 +339,7 @@ buildCounterModifyAckDeadlineRequest++; if (buildCounterModifyAckDeadlineRequest < 3) { o.ackDeadlineSeconds = 42; - o.ackIds = buildUnnamed1333(); + o.ackIds = buildUnnamed213(); } buildCounterModifyAckDeadlineRequest--; return o; @@ -349,7 +349,7 @@ buildCounterModifyAckDeadlineRequest++; if (buildCounterModifyAckDeadlineRequest < 3) { unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); - checkUnnamed1333(o.ackIds); + checkUnnamed213(o.ackIds); } buildCounterModifyAckDeadlineRequest--; } @@ -373,14 +373,14 @@ buildCounterModifyPushConfigRequest--; } -buildUnnamed1334() { +buildUnnamed214() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1334(core.List<api.Binding> o) { +checkUnnamed214(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -391,7 +391,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed1334(); + o.bindings = buildUnnamed214(); o.etag = "foo"; o.version = 42; } @@ -402,21 +402,21 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1334(o.bindings); + checkUnnamed214(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed1335() { +buildUnnamed215() { var o = new core.List<api.PubsubMessage>(); o.add(buildPubsubMessage()); o.add(buildPubsubMessage()); return o; } -checkUnnamed1335(core.List<api.PubsubMessage> o) { +checkUnnamed215(core.List<api.PubsubMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkPubsubMessage(o[0]); checkPubsubMessage(o[1]); @@ -427,7 +427,7 @@ var o = new api.PublishRequest(); buildCounterPublishRequest++; if (buildCounterPublishRequest < 3) { - o.messages = buildUnnamed1335(); + o.messages = buildUnnamed215(); } buildCounterPublishRequest--; return o; @@ -436,19 +436,19 @@ checkPublishRequest(api.PublishRequest o) { buildCounterPublishRequest++; if (buildCounterPublishRequest < 3) { - checkUnnamed1335(o.messages); + checkUnnamed215(o.messages); } buildCounterPublishRequest--; } -buildUnnamed1336() { +buildUnnamed216() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1336(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')); @@ -459,7 +459,7 @@ var o = new api.PublishResponse(); buildCounterPublishResponse++; if (buildCounterPublishResponse < 3) { - o.messageIds = buildUnnamed1336(); + o.messageIds = buildUnnamed216(); } buildCounterPublishResponse--; return o; @@ -468,19 +468,19 @@ checkPublishResponse(api.PublishResponse o) { buildCounterPublishResponse++; if (buildCounterPublishResponse < 3) { - checkUnnamed1336(o.messageIds); + checkUnnamed216(o.messageIds); } buildCounterPublishResponse--; } -buildUnnamed1337() { +buildUnnamed217() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1337(core.Map<core.String, core.String> o) { +checkUnnamed217(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')); @@ -491,7 +491,7 @@ var o = new api.PubsubMessage(); buildCounterPubsubMessage++; if (buildCounterPubsubMessage < 3) { - o.attributes = buildUnnamed1337(); + o.attributes = buildUnnamed217(); o.data = "foo"; o.messageId = "foo"; o.publishTime = "foo"; @@ -503,7 +503,7 @@ checkPubsubMessage(api.PubsubMessage o) { buildCounterPubsubMessage++; if (buildCounterPubsubMessage < 3) { - checkUnnamed1337(o.attributes); + checkUnnamed217(o.attributes); unittest.expect(o.data, unittest.equals('foo')); unittest.expect(o.messageId, unittest.equals('foo')); unittest.expect(o.publishTime, unittest.equals('foo')); @@ -532,14 +532,14 @@ buildCounterPullRequest--; } -buildUnnamed1338() { +buildUnnamed218() { var o = new core.List<api.ReceivedMessage>(); o.add(buildReceivedMessage()); o.add(buildReceivedMessage()); return o; } -checkUnnamed1338(core.List<api.ReceivedMessage> o) { +checkUnnamed218(core.List<api.ReceivedMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkReceivedMessage(o[0]); checkReceivedMessage(o[1]); @@ -550,7 +550,7 @@ var o = new api.PullResponse(); buildCounterPullResponse++; if (buildCounterPullResponse < 3) { - o.receivedMessages = buildUnnamed1338(); + o.receivedMessages = buildUnnamed218(); } buildCounterPullResponse--; return o; @@ -559,19 +559,19 @@ checkPullResponse(api.PullResponse o) { buildCounterPullResponse++; if (buildCounterPullResponse < 3) { - checkUnnamed1338(o.receivedMessages); + checkUnnamed218(o.receivedMessages); } buildCounterPullResponse--; } -buildUnnamed1339() { +buildUnnamed219() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1339(core.Map<core.String, core.String> o) { +checkUnnamed219(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')); @@ -582,7 +582,7 @@ var o = new api.PushConfig(); buildCounterPushConfig++; if (buildCounterPushConfig < 3) { - o.attributes = buildUnnamed1339(); + o.attributes = buildUnnamed219(); o.pushEndpoint = "foo"; } buildCounterPushConfig--; @@ -592,7 +592,7 @@ checkPushConfig(api.PushConfig o) { buildCounterPushConfig++; if (buildCounterPushConfig < 3) { - checkUnnamed1339(o.attributes); + checkUnnamed219(o.attributes); unittest.expect(o.pushEndpoint, unittest.equals('foo')); } buildCounterPushConfig--; @@ -726,14 +726,14 @@ buildCounterSubscription--; } -buildUnnamed1340() { +buildUnnamed220() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1340(core.List<core.String> o) { +checkUnnamed220(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -744,7 +744,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1340(); + o.permissions = buildUnnamed220(); } buildCounterTestIamPermissionsRequest--; return o; @@ -753,19 +753,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1340(o.permissions); + checkUnnamed220(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1341() { +buildUnnamed221() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1341(core.List<core.String> o) { +checkUnnamed221(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -776,7 +776,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1341(); + o.permissions = buildUnnamed221(); } buildCounterTestIamPermissionsResponse--; return o; @@ -785,7 +785,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1341(o.permissions); + checkUnnamed221(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -1801,8 +1801,8 @@ api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_project = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1835,10 +1835,10 @@ 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(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1849,8 +1849,8 @@ }), true); res .list(arg_project, - pageSize: arg_pageSize, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListSubscriptionsResponse(response);
diff --git a/generated/googleapis/test/reseller/v1_test.dart b/generated/googleapis/test/reseller/v1_test.dart index ee4ba2c..8173eb3 100644 --- a/generated/googleapis/test/reseller/v1_test.dart +++ b/generated/googleapis/test/reseller/v1_test.dart
@@ -168,14 +168,14 @@ buildCounterRenewalSettings--; } -buildUnnamed1911() { +buildUnnamed3840() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1911(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')); @@ -186,7 +186,7 @@ var o = new api.ResellernotifyGetwatchdetailsResponse(); buildCounterResellernotifyGetwatchdetailsResponse++; if (buildCounterResellernotifyGetwatchdetailsResponse < 3) { - o.serviceAccountEmailAddresses = buildUnnamed1911(); + o.serviceAccountEmailAddresses = buildUnnamed3840(); o.topicName = "foo"; } buildCounterResellernotifyGetwatchdetailsResponse--; @@ -197,7 +197,7 @@ api.ResellernotifyGetwatchdetailsResponse o) { buildCounterResellernotifyGetwatchdetailsResponse++; if (buildCounterResellernotifyGetwatchdetailsResponse < 3) { - checkUnnamed1911(o.serviceAccountEmailAddresses); + checkUnnamed3840(o.serviceAccountEmailAddresses); unittest.expect(o.topicName, unittest.equals('foo')); } buildCounterResellernotifyGetwatchdetailsResponse--; @@ -292,14 +292,14 @@ buildCounterSubscriptionPlan--; } -buildUnnamed1912() { +buildUnnamed3841() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1912(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')); @@ -367,7 +367,7 @@ o.skuName = "foo"; o.status = "foo"; o.subscriptionId = "foo"; - o.suspensionReasons = buildUnnamed1912(); + o.suspensionReasons = buildUnnamed3841(); o.transferInfo = buildSubscriptionTransferInfo(); o.trialSettings = buildSubscriptionTrialSettings(); } @@ -393,21 +393,21 @@ unittest.expect(o.skuName, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subscriptionId, unittest.equals('foo')); - checkUnnamed1912(o.suspensionReasons); + checkUnnamed3841(o.suspensionReasons); checkSubscriptionTransferInfo(o.transferInfo); checkSubscriptionTrialSettings(o.trialSettings); } buildCounterSubscription--; } -buildUnnamed1913() { +buildUnnamed3842() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed1913(core.List<api.Subscription> o) { +checkUnnamed3842(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -420,7 +420,7 @@ if (buildCounterSubscriptions < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed1913(); + o.subscriptions = buildUnnamed3842(); } buildCounterSubscriptions--; return o; @@ -431,7 +431,7 @@ if (buildCounterSubscriptions < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1913(o.subscriptions); + checkUnnamed3842(o.subscriptions); } buildCounterSubscriptions--; }
diff --git a/generated/googleapis/test/runtimeconfig/v1_test.dart b/generated/googleapis/test/runtimeconfig/v1_test.dart index 220d234..5789266 100644 --- a/generated/googleapis/test/runtimeconfig/v1_test.dart +++ b/generated/googleapis/test/runtimeconfig/v1_test.dart
@@ -80,14 +80,14 @@ buildCounterEmpty--; } -buildUnnamed3734() { +buildUnnamed2587() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3734(core.List<api.Operation> o) { +checkUnnamed2587(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -99,7 +99,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3734(); + o.operations = buildUnnamed2587(); } buildCounterListOperationsResponse--; return o; @@ -109,12 +109,12 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3734(o.operations); + checkUnnamed2587(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3735() { +buildUnnamed2588() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -129,7 +129,7 @@ return o; } -checkUnnamed3735(core.Map<core.String, core.Object> o) { +checkUnnamed2588(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)); @@ -143,7 +143,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3736() { +buildUnnamed2589() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -158,7 +158,7 @@ return o; } -checkUnnamed3736(core.Map<core.String, core.Object> o) { +checkUnnamed2589(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)); @@ -179,9 +179,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3735(); + o.metadata = buildUnnamed2588(); o.name = "foo"; - o.response = buildUnnamed3736(); + o.response = buildUnnamed2589(); } buildCounterOperation--; return o; @@ -192,14 +192,14 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3735(o.metadata); + checkUnnamed2588(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3736(o.response); + checkUnnamed2589(o.response); } buildCounterOperation--; } -buildUnnamed3737() { +buildUnnamed2590() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -214,7 +214,7 @@ return o; } -checkUnnamed3737(core.Map<core.String, core.Object> o) { +checkUnnamed2590(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)); @@ -228,17 +228,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed3738() { +buildUnnamed2591() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3737()); - o.add(buildUnnamed3737()); + o.add(buildUnnamed2590()); + o.add(buildUnnamed2590()); return o; } -checkUnnamed3738(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2591(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3737(o[0]); - checkUnnamed3737(o[1]); + checkUnnamed2590(o[0]); + checkUnnamed2590(o[1]); } core.int buildCounterStatus = 0; @@ -247,7 +247,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3738(); + o.details = buildUnnamed2591(); o.message = "foo"; } buildCounterStatus--; @@ -258,7 +258,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3738(o.details); + checkUnnamed2591(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -416,9 +416,9 @@ 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"; - var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -451,11 +451,11 @@ 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)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -466,9 +466,9 @@ }), true); res .list(arg_name, + pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken, - pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response);
diff --git a/generated/googleapis/test/safebrowsing/v4_test.dart b/generated/googleapis/test/safebrowsing/v4_test.dart index eb50311..b5a34df 100644 --- a/generated/googleapis/test/safebrowsing/v4_test.dart +++ b/generated/googleapis/test/safebrowsing/v4_test.dart
@@ -90,14 +90,14 @@ buildCounterClientInfo--; } -buildUnnamed2564() { +buildUnnamed3965() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2564(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')); @@ -113,7 +113,7 @@ o.maxDatabaseEntries = 42; o.maxUpdateEntries = 42; o.region = "foo"; - o.supportedCompressions = buildUnnamed2564(); + o.supportedCompressions = buildUnnamed3965(); } buildCounterConstraints--; return o; @@ -127,7 +127,7 @@ unittest.expect(o.maxDatabaseEntries, unittest.equals(42)); unittest.expect(o.maxUpdateEntries, unittest.equals(42)); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed2564(o.supportedCompressions); + checkUnnamed3965(o.supportedCompressions); } buildCounterConstraints--; } @@ -147,14 +147,14 @@ buildCounterEmpty--; } -buildUnnamed2565() { +buildUnnamed3966() { var o = new core.List<api.ListUpdateRequest>(); o.add(buildListUpdateRequest()); o.add(buildListUpdateRequest()); return o; } -checkUnnamed2565(core.List<api.ListUpdateRequest> o) { +checkUnnamed3966(core.List<api.ListUpdateRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkListUpdateRequest(o[0]); checkListUpdateRequest(o[1]); @@ -166,7 +166,7 @@ buildCounterFetchThreatListUpdatesRequest++; if (buildCounterFetchThreatListUpdatesRequest < 3) { o.client = buildClientInfo(); - o.listUpdateRequests = buildUnnamed2565(); + o.listUpdateRequests = buildUnnamed3966(); } buildCounterFetchThreatListUpdatesRequest--; return o; @@ -176,19 +176,19 @@ buildCounterFetchThreatListUpdatesRequest++; if (buildCounterFetchThreatListUpdatesRequest < 3) { checkClientInfo(o.client); - checkUnnamed2565(o.listUpdateRequests); + checkUnnamed3966(o.listUpdateRequests); } buildCounterFetchThreatListUpdatesRequest--; } -buildUnnamed2566() { +buildUnnamed3967() { var o = new core.List<api.ListUpdateResponse>(); o.add(buildListUpdateResponse()); o.add(buildListUpdateResponse()); return o; } -checkUnnamed2566(core.List<api.ListUpdateResponse> o) { +checkUnnamed3967(core.List<api.ListUpdateResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkListUpdateResponse(o[0]); checkListUpdateResponse(o[1]); @@ -199,7 +199,7 @@ var o = new api.FetchThreatListUpdatesResponse(); buildCounterFetchThreatListUpdatesResponse++; if (buildCounterFetchThreatListUpdatesResponse < 3) { - o.listUpdateResponses = buildUnnamed2566(); + o.listUpdateResponses = buildUnnamed3967(); o.minimumWaitDuration = "foo"; } buildCounterFetchThreatListUpdatesResponse--; @@ -209,20 +209,20 @@ checkFetchThreatListUpdatesResponse(api.FetchThreatListUpdatesResponse o) { buildCounterFetchThreatListUpdatesResponse++; if (buildCounterFetchThreatListUpdatesResponse < 3) { - checkUnnamed2566(o.listUpdateResponses); + checkUnnamed3967(o.listUpdateResponses); unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); } buildCounterFetchThreatListUpdatesResponse--; } -buildUnnamed2567() { +buildUnnamed3968() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2567(core.List<core.String> o) { +checkUnnamed3968(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -235,7 +235,7 @@ if (buildCounterFindFullHashesRequest < 3) { o.apiClient = buildClientInfo(); o.client = buildClientInfo(); - o.clientStates = buildUnnamed2567(); + o.clientStates = buildUnnamed3968(); o.threatInfo = buildThreatInfo(); } buildCounterFindFullHashesRequest--; @@ -247,20 +247,20 @@ if (buildCounterFindFullHashesRequest < 3) { checkClientInfo(o.apiClient); checkClientInfo(o.client); - checkUnnamed2567(o.clientStates); + checkUnnamed3968(o.clientStates); checkThreatInfo(o.threatInfo); } buildCounterFindFullHashesRequest--; } -buildUnnamed2568() { +buildUnnamed3969() { var o = new core.List<api.ThreatMatch>(); o.add(buildThreatMatch()); o.add(buildThreatMatch()); return o; } -checkUnnamed2568(core.List<api.ThreatMatch> o) { +checkUnnamed3969(core.List<api.ThreatMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatMatch(o[0]); checkThreatMatch(o[1]); @@ -271,7 +271,7 @@ var o = new api.FindFullHashesResponse(); buildCounterFindFullHashesResponse++; if (buildCounterFindFullHashesResponse < 3) { - o.matches = buildUnnamed2568(); + o.matches = buildUnnamed3969(); o.minimumWaitDuration = "foo"; o.negativeCacheDuration = "foo"; } @@ -282,7 +282,7 @@ checkFindFullHashesResponse(api.FindFullHashesResponse o) { buildCounterFindFullHashesResponse++; if (buildCounterFindFullHashesResponse < 3) { - checkUnnamed2568(o.matches); + checkUnnamed3969(o.matches); unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); unittest.expect(o.negativeCacheDuration, unittest.equals('foo')); } @@ -310,14 +310,14 @@ buildCounterFindThreatMatchesRequest--; } -buildUnnamed2569() { +buildUnnamed3970() { var o = new core.List<api.ThreatMatch>(); o.add(buildThreatMatch()); o.add(buildThreatMatch()); return o; } -checkUnnamed2569(core.List<api.ThreatMatch> o) { +checkUnnamed3970(core.List<api.ThreatMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatMatch(o[0]); checkThreatMatch(o[1]); @@ -328,7 +328,7 @@ var o = new api.FindThreatMatchesResponse(); buildCounterFindThreatMatchesResponse++; if (buildCounterFindThreatMatchesResponse < 3) { - o.matches = buildUnnamed2569(); + o.matches = buildUnnamed3970(); } buildCounterFindThreatMatchesResponse--; return o; @@ -337,19 +337,19 @@ checkFindThreatMatchesResponse(api.FindThreatMatchesResponse o) { buildCounterFindThreatMatchesResponse++; if (buildCounterFindThreatMatchesResponse < 3) { - checkUnnamed2569(o.matches); + checkUnnamed3970(o.matches); } buildCounterFindThreatMatchesResponse--; } -buildUnnamed2570() { +buildUnnamed3971() { var o = new core.List<api.ThreatListDescriptor>(); o.add(buildThreatListDescriptor()); o.add(buildThreatListDescriptor()); return o; } -checkUnnamed2570(core.List<api.ThreatListDescriptor> o) { +checkUnnamed3971(core.List<api.ThreatListDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatListDescriptor(o[0]); checkThreatListDescriptor(o[1]); @@ -360,7 +360,7 @@ var o = new api.ListThreatListsResponse(); buildCounterListThreatListsResponse++; if (buildCounterListThreatListsResponse < 3) { - o.threatLists = buildUnnamed2570(); + o.threatLists = buildUnnamed3971(); } buildCounterListThreatListsResponse--; return o; @@ -369,7 +369,7 @@ checkListThreatListsResponse(api.ListThreatListsResponse o) { buildCounterListThreatListsResponse++; if (buildCounterListThreatListsResponse < 3) { - checkUnnamed2570(o.threatLists); + checkUnnamed3971(o.threatLists); } buildCounterListThreatListsResponse--; } @@ -401,27 +401,27 @@ buildCounterListUpdateRequest--; } -buildUnnamed2571() { +buildUnnamed3972() { var o = new core.List<api.ThreatEntrySet>(); o.add(buildThreatEntrySet()); o.add(buildThreatEntrySet()); return o; } -checkUnnamed2571(core.List<api.ThreatEntrySet> o) { +checkUnnamed3972(core.List<api.ThreatEntrySet> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatEntrySet(o[0]); checkThreatEntrySet(o[1]); } -buildUnnamed2572() { +buildUnnamed3973() { var o = new core.List<api.ThreatEntrySet>(); o.add(buildThreatEntrySet()); o.add(buildThreatEntrySet()); return o; } -checkUnnamed2572(core.List<api.ThreatEntrySet> o) { +checkUnnamed3973(core.List<api.ThreatEntrySet> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatEntrySet(o[0]); checkThreatEntrySet(o[1]); @@ -432,11 +432,11 @@ var o = new api.ListUpdateResponse(); buildCounterListUpdateResponse++; if (buildCounterListUpdateResponse < 3) { - o.additions = buildUnnamed2571(); + o.additions = buildUnnamed3972(); o.checksum = buildChecksum(); o.newClientState = "foo"; o.platformType = "foo"; - o.removals = buildUnnamed2572(); + o.removals = buildUnnamed3973(); o.responseType = "foo"; o.threatEntryType = "foo"; o.threatType = "foo"; @@ -448,11 +448,11 @@ checkListUpdateResponse(api.ListUpdateResponse o) { buildCounterListUpdateResponse++; if (buildCounterListUpdateResponse < 3) { - checkUnnamed2571(o.additions); + checkUnnamed3972(o.additions); checkChecksum(o.checksum); unittest.expect(o.newClientState, unittest.equals('foo')); unittest.expect(o.platformType, unittest.equals('foo')); - checkUnnamed2572(o.removals); + checkUnnamed3973(o.removals); unittest.expect(o.responseType, unittest.equals('foo')); unittest.expect(o.threatEntryType, unittest.equals('foo')); unittest.expect(o.threatType, unittest.equals('foo')); @@ -502,14 +502,14 @@ buildCounterRawHashes--; } -buildUnnamed2573() { +buildUnnamed3974() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2573(core.List<core.int> o) { +checkUnnamed3974(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)); @@ -520,7 +520,7 @@ var o = new api.RawIndices(); buildCounterRawIndices++; if (buildCounterRawIndices < 3) { - o.indices = buildUnnamed2573(); + o.indices = buildUnnamed3974(); } buildCounterRawIndices--; return o; @@ -529,7 +529,7 @@ checkRawIndices(api.RawIndices o) { buildCounterRawIndices++; if (buildCounterRawIndices < 3) { - checkUnnamed2573(o.indices); + checkUnnamed3974(o.indices); } buildCounterRawIndices--; } @@ -582,14 +582,14 @@ buildCounterThreatEntry--; } -buildUnnamed2574() { +buildUnnamed3975() { var o = new core.List<api.MetadataEntry>(); o.add(buildMetadataEntry()); o.add(buildMetadataEntry()); return o; } -checkUnnamed2574(core.List<api.MetadataEntry> o) { +checkUnnamed3975(core.List<api.MetadataEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataEntry(o[0]); checkMetadataEntry(o[1]); @@ -600,7 +600,7 @@ var o = new api.ThreatEntryMetadata(); buildCounterThreatEntryMetadata++; if (buildCounterThreatEntryMetadata < 3) { - o.entries = buildUnnamed2574(); + o.entries = buildUnnamed3975(); } buildCounterThreatEntryMetadata--; return o; @@ -609,7 +609,7 @@ checkThreatEntryMetadata(api.ThreatEntryMetadata o) { buildCounterThreatEntryMetadata++; if (buildCounterThreatEntryMetadata < 3) { - checkUnnamed2574(o.entries); + checkUnnamed3975(o.entries); } buildCounterThreatEntryMetadata--; } @@ -641,14 +641,14 @@ buildCounterThreatEntrySet--; } -buildUnnamed2575() { +buildUnnamed3976() { var o = new core.List<api.ThreatSource>(); o.add(buildThreatSource()); o.add(buildThreatSource()); return o; } -checkUnnamed2575(core.List<api.ThreatSource> o) { +checkUnnamed3976(core.List<api.ThreatSource> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatSource(o[0]); checkThreatSource(o[1]); @@ -662,7 +662,7 @@ o.clientInfo = buildClientInfo(); o.entry = buildThreatEntry(); o.platformType = "foo"; - o.resources = buildUnnamed2575(); + o.resources = buildUnnamed3976(); o.threatType = "foo"; o.userInfo = buildUserInfo(); } @@ -676,60 +676,60 @@ checkClientInfo(o.clientInfo); checkThreatEntry(o.entry); unittest.expect(o.platformType, unittest.equals('foo')); - checkUnnamed2575(o.resources); + checkUnnamed3976(o.resources); unittest.expect(o.threatType, unittest.equals('foo')); checkUserInfo(o.userInfo); } buildCounterThreatHit--; } -buildUnnamed2576() { +buildUnnamed3977() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2576(core.List<core.String> o) { +checkUnnamed3977(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2577() { +buildUnnamed3978() { var o = new core.List<api.ThreatEntry>(); o.add(buildThreatEntry()); o.add(buildThreatEntry()); return o; } -checkUnnamed2577(core.List<api.ThreatEntry> o) { +checkUnnamed3978(core.List<api.ThreatEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatEntry(o[0]); checkThreatEntry(o[1]); } -buildUnnamed2578() { +buildUnnamed3979() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2578(core.List<core.String> o) { +checkUnnamed3979(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2579() { +buildUnnamed3980() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2579(core.List<core.String> o) { +checkUnnamed3980(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -740,10 +740,10 @@ var o = new api.ThreatInfo(); buildCounterThreatInfo++; if (buildCounterThreatInfo < 3) { - o.platformTypes = buildUnnamed2576(); - o.threatEntries = buildUnnamed2577(); - o.threatEntryTypes = buildUnnamed2578(); - o.threatTypes = buildUnnamed2579(); + o.platformTypes = buildUnnamed3977(); + o.threatEntries = buildUnnamed3978(); + o.threatEntryTypes = buildUnnamed3979(); + o.threatTypes = buildUnnamed3980(); } buildCounterThreatInfo--; return o; @@ -752,10 +752,10 @@ checkThreatInfo(api.ThreatInfo o) { buildCounterThreatInfo++; if (buildCounterThreatInfo < 3) { - checkUnnamed2576(o.platformTypes); - checkUnnamed2577(o.threatEntries); - checkUnnamed2578(o.threatEntryTypes); - checkUnnamed2579(o.threatTypes); + checkUnnamed3977(o.platformTypes); + checkUnnamed3978(o.threatEntries); + checkUnnamed3979(o.threatEntryTypes); + checkUnnamed3980(o.threatTypes); } buildCounterThreatInfo--; }
diff --git a/generated/googleapis/test/script/v1_test.dart b/generated/googleapis/test/script/v1_test.dart index 0848260..9921ff5 100644 --- a/generated/googleapis/test/script/v1_test.dart +++ b/generated/googleapis/test/script/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1145() { +buildUnnamed3390() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed1145(core.List<api.File> o) { +checkUnnamed3390(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -68,7 +68,7 @@ var o = new api.Content(); buildCounterContent++; if (buildCounterContent < 3) { - o.files = buildUnnamed1145(); + o.files = buildUnnamed3390(); o.scriptId = "foo"; } buildCounterContent--; @@ -78,7 +78,7 @@ checkContent(api.Content o) { buildCounterContent++; if (buildCounterContent < 3) { - checkUnnamed1145(o.files); + checkUnnamed3390(o.files); unittest.expect(o.scriptId, unittest.equals('foo')); } buildCounterContent--; @@ -105,14 +105,14 @@ buildCounterCreateProjectRequest--; } -buildUnnamed1146() { +buildUnnamed3391() { var o = new core.List<api.EntryPoint>(); o.add(buildEntryPoint()); o.add(buildEntryPoint()); return o; } -checkUnnamed1146(core.List<api.EntryPoint> o) { +checkUnnamed3391(core.List<api.EntryPoint> o) { unittest.expect(o, unittest.hasLength(2)); checkEntryPoint(o[0]); checkEntryPoint(o[1]); @@ -125,7 +125,7 @@ if (buildCounterDeployment < 3) { o.deploymentConfig = buildDeploymentConfig(); o.deploymentId = "foo"; - o.entryPoints = buildUnnamed1146(); + o.entryPoints = buildUnnamed3391(); o.functionSet = buildGoogleAppsScriptTypeFunctionSet(); o.scopeSet = buildGoogleAppsScriptTypeScopeSet(); o.updateTime = "foo"; @@ -139,7 +139,7 @@ if (buildCounterDeployment < 3) { checkDeploymentConfig(o.deploymentConfig); unittest.expect(o.deploymentId, unittest.equals('foo')); - checkUnnamed1146(o.entryPoints); + checkUnnamed3391(o.entryPoints); checkGoogleAppsScriptTypeFunctionSet(o.functionSet); checkGoogleAppsScriptTypeScopeSet(o.scopeSet); unittest.expect(o.updateTime, unittest.equals('foo')); @@ -212,14 +212,14 @@ buildCounterEntryPoint--; } -buildUnnamed1147() { +buildUnnamed3392() { var o = new core.List<api.ScriptStackTraceElement>(); o.add(buildScriptStackTraceElement()); o.add(buildScriptStackTraceElement()); return o; } -checkUnnamed1147(core.List<api.ScriptStackTraceElement> o) { +checkUnnamed3392(core.List<api.ScriptStackTraceElement> o) { unittest.expect(o, unittest.hasLength(2)); checkScriptStackTraceElement(o[0]); checkScriptStackTraceElement(o[1]); @@ -232,7 +232,7 @@ if (buildCounterExecutionError < 3) { o.errorMessage = "foo"; o.errorType = "foo"; - o.scriptStackTraceElements = buildUnnamed1147(); + o.scriptStackTraceElements = buildUnnamed3392(); } buildCounterExecutionError--; return o; @@ -243,12 +243,12 @@ if (buildCounterExecutionError < 3) { unittest.expect(o.errorMessage, unittest.equals('foo')); unittest.expect(o.errorType, unittest.equals('foo')); - checkUnnamed1147(o.scriptStackTraceElements); + checkUnnamed3392(o.scriptStackTraceElements); } buildCounterExecutionError--; } -buildUnnamed1148() { +buildUnnamed3393() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -263,7 +263,7 @@ return o; } -checkUnnamed1148(core.List<core.Object> o) { +checkUnnamed3393(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -284,7 +284,7 @@ if (buildCounterExecutionRequest < 3) { o.devMode = true; o.function = "foo"; - o.parameters = buildUnnamed1148(); + o.parameters = buildUnnamed3393(); o.sessionState = "foo"; } buildCounterExecutionRequest--; @@ -296,7 +296,7 @@ if (buildCounterExecutionRequest < 3) { unittest.expect(o.devMode, unittest.isTrue); unittest.expect(o.function, unittest.equals('foo')); - checkUnnamed1148(o.parameters); + checkUnnamed3393(o.parameters); unittest.expect(o.sessionState, unittest.equals('foo')); } buildCounterExecutionRequest--; @@ -449,14 +449,14 @@ buildCounterGoogleAppsScriptTypeFunction--; } -buildUnnamed1149() { +buildUnnamed3394() { var o = new core.List<api.GoogleAppsScriptTypeFunction>(); o.add(buildGoogleAppsScriptTypeFunction()); o.add(buildGoogleAppsScriptTypeFunction()); return o; } -checkUnnamed1149(core.List<api.GoogleAppsScriptTypeFunction> o) { +checkUnnamed3394(core.List<api.GoogleAppsScriptTypeFunction> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAppsScriptTypeFunction(o[0]); checkGoogleAppsScriptTypeFunction(o[1]); @@ -467,7 +467,7 @@ var o = new api.GoogleAppsScriptTypeFunctionSet(); buildCounterGoogleAppsScriptTypeFunctionSet++; if (buildCounterGoogleAppsScriptTypeFunctionSet < 3) { - o.values = buildUnnamed1149(); + o.values = buildUnnamed3394(); } buildCounterGoogleAppsScriptTypeFunctionSet--; return o; @@ -476,7 +476,7 @@ checkGoogleAppsScriptTypeFunctionSet(api.GoogleAppsScriptTypeFunctionSet o) { buildCounterGoogleAppsScriptTypeFunctionSet++; if (buildCounterGoogleAppsScriptTypeFunctionSet < 3) { - checkUnnamed1149(o.values); + checkUnnamed3394(o.values); } buildCounterGoogleAppsScriptTypeFunctionSet--; } @@ -535,14 +535,14 @@ buildCounterGoogleAppsScriptTypeScope--; } -buildUnnamed1150() { +buildUnnamed3395() { var o = new core.List<api.GoogleAppsScriptTypeScope>(); o.add(buildGoogleAppsScriptTypeScope()); o.add(buildGoogleAppsScriptTypeScope()); return o; } -checkUnnamed1150(core.List<api.GoogleAppsScriptTypeScope> o) { +checkUnnamed3395(core.List<api.GoogleAppsScriptTypeScope> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAppsScriptTypeScope(o[0]); checkGoogleAppsScriptTypeScope(o[1]); @@ -553,7 +553,7 @@ var o = new api.GoogleAppsScriptTypeScopeSet(); buildCounterGoogleAppsScriptTypeScopeSet++; if (buildCounterGoogleAppsScriptTypeScopeSet < 3) { - o.values = buildUnnamed1150(); + o.values = buildUnnamed3395(); } buildCounterGoogleAppsScriptTypeScopeSet--; return o; @@ -562,7 +562,7 @@ checkGoogleAppsScriptTypeScopeSet(api.GoogleAppsScriptTypeScopeSet o) { buildCounterGoogleAppsScriptTypeScopeSet++; if (buildCounterGoogleAppsScriptTypeScopeSet < 3) { - checkUnnamed1150(o.values); + checkUnnamed3395(o.values); } buildCounterGoogleAppsScriptTypeScopeSet--; } @@ -635,14 +635,14 @@ buildCounterGoogleAppsScriptTypeWebAppEntryPoint--; } -buildUnnamed1151() { +buildUnnamed3396() { var o = new core.List<api.Deployment>(); o.add(buildDeployment()); o.add(buildDeployment()); return o; } -checkUnnamed1151(core.List<api.Deployment> o) { +checkUnnamed3396(core.List<api.Deployment> o) { unittest.expect(o, unittest.hasLength(2)); checkDeployment(o[0]); checkDeployment(o[1]); @@ -653,7 +653,7 @@ var o = new api.ListDeploymentsResponse(); buildCounterListDeploymentsResponse++; if (buildCounterListDeploymentsResponse < 3) { - o.deployments = buildUnnamed1151(); + o.deployments = buildUnnamed3396(); o.nextPageToken = "foo"; } buildCounterListDeploymentsResponse--; @@ -663,20 +663,20 @@ checkListDeploymentsResponse(api.ListDeploymentsResponse o) { buildCounterListDeploymentsResponse++; if (buildCounterListDeploymentsResponse < 3) { - checkUnnamed1151(o.deployments); + checkUnnamed3396(o.deployments); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDeploymentsResponse--; } -buildUnnamed1152() { +buildUnnamed3397() { var o = new core.List<api.GoogleAppsScriptTypeProcess>(); o.add(buildGoogleAppsScriptTypeProcess()); o.add(buildGoogleAppsScriptTypeProcess()); return o; } -checkUnnamed1152(core.List<api.GoogleAppsScriptTypeProcess> o) { +checkUnnamed3397(core.List<api.GoogleAppsScriptTypeProcess> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAppsScriptTypeProcess(o[0]); checkGoogleAppsScriptTypeProcess(o[1]); @@ -688,7 +688,7 @@ buildCounterListScriptProcessesResponse++; if (buildCounterListScriptProcessesResponse < 3) { o.nextPageToken = "foo"; - o.processes = buildUnnamed1152(); + o.processes = buildUnnamed3397(); } buildCounterListScriptProcessesResponse--; return o; @@ -698,19 +698,19 @@ buildCounterListScriptProcessesResponse++; if (buildCounterListScriptProcessesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1152(o.processes); + checkUnnamed3397(o.processes); } buildCounterListScriptProcessesResponse--; } -buildUnnamed1153() { +buildUnnamed3398() { var o = new core.List<api.GoogleAppsScriptTypeProcess>(); o.add(buildGoogleAppsScriptTypeProcess()); o.add(buildGoogleAppsScriptTypeProcess()); return o; } -checkUnnamed1153(core.List<api.GoogleAppsScriptTypeProcess> o) { +checkUnnamed3398(core.List<api.GoogleAppsScriptTypeProcess> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAppsScriptTypeProcess(o[0]); checkGoogleAppsScriptTypeProcess(o[1]); @@ -722,7 +722,7 @@ buildCounterListUserProcessesResponse++; if (buildCounterListUserProcessesResponse < 3) { o.nextPageToken = "foo"; - o.processes = buildUnnamed1153(); + o.processes = buildUnnamed3398(); } buildCounterListUserProcessesResponse--; return o; @@ -732,19 +732,19 @@ buildCounterListUserProcessesResponse++; if (buildCounterListUserProcessesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1153(o.processes); + checkUnnamed3398(o.processes); } buildCounterListUserProcessesResponse--; } -buildUnnamed1154() { +buildUnnamed3399() { var o = new core.List<api.Version>(); o.add(buildVersion()); o.add(buildVersion()); return o; } -checkUnnamed1154(core.List<api.Version> o) { +checkUnnamed3399(core.List<api.Version> o) { unittest.expect(o, unittest.hasLength(2)); checkVersion(o[0]); checkVersion(o[1]); @@ -756,7 +756,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { o.nextPageToken = "foo"; - o.versions = buildUnnamed1154(); + o.versions = buildUnnamed3399(); } buildCounterListVersionsResponse--; return o; @@ -766,45 +766,45 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1154(o.versions); + checkUnnamed3399(o.versions); } buildCounterListVersionsResponse--; } -buildUnnamed1155() { +buildUnnamed3400() { var o = new core.List<api.MetricsValue>(); o.add(buildMetricsValue()); o.add(buildMetricsValue()); return o; } -checkUnnamed1155(core.List<api.MetricsValue> o) { +checkUnnamed3400(core.List<api.MetricsValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricsValue(o[0]); checkMetricsValue(o[1]); } -buildUnnamed1156() { +buildUnnamed3401() { var o = new core.List<api.MetricsValue>(); o.add(buildMetricsValue()); o.add(buildMetricsValue()); return o; } -checkUnnamed1156(core.List<api.MetricsValue> o) { +checkUnnamed3401(core.List<api.MetricsValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricsValue(o[0]); checkMetricsValue(o[1]); } -buildUnnamed1157() { +buildUnnamed3402() { var o = new core.List<api.MetricsValue>(); o.add(buildMetricsValue()); o.add(buildMetricsValue()); return o; } -checkUnnamed1157(core.List<api.MetricsValue> o) { +checkUnnamed3402(core.List<api.MetricsValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricsValue(o[0]); checkMetricsValue(o[1]); @@ -815,9 +815,9 @@ var o = new api.Metrics(); buildCounterMetrics++; if (buildCounterMetrics < 3) { - o.activeUsers = buildUnnamed1155(); - o.failedExecutions = buildUnnamed1156(); - o.totalExecutions = buildUnnamed1157(); + o.activeUsers = buildUnnamed3400(); + o.failedExecutions = buildUnnamed3401(); + o.totalExecutions = buildUnnamed3402(); } buildCounterMetrics--; return o; @@ -826,9 +826,9 @@ checkMetrics(api.Metrics o) { buildCounterMetrics++; if (buildCounterMetrics < 3) { - checkUnnamed1155(o.activeUsers); - checkUnnamed1156(o.failedExecutions); - checkUnnamed1157(o.totalExecutions); + checkUnnamed3400(o.activeUsers); + checkUnnamed3401(o.failedExecutions); + checkUnnamed3402(o.totalExecutions); } buildCounterMetrics--; } @@ -856,7 +856,7 @@ buildCounterMetricsValue--; } -buildUnnamed1158() { +buildUnnamed3403() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -871,7 +871,7 @@ return o; } -checkUnnamed1158(core.Map<core.String, core.Object> o) { +checkUnnamed3403(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)); @@ -892,7 +892,7 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.response = buildUnnamed1158(); + o.response = buildUnnamed3403(); } buildCounterOperation--; return o; @@ -903,7 +903,7 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1158(o.response); + checkUnnamed3403(o.response); } buildCounterOperation--; } @@ -960,7 +960,7 @@ buildCounterScriptStackTraceElement--; } -buildUnnamed1159() { +buildUnnamed3404() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -975,7 +975,7 @@ return o; } -checkUnnamed1159(core.Map<core.String, core.Object> o) { +checkUnnamed3404(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)); @@ -989,17 +989,17 @@ unittest.expect(casted7["string"], unittest.equals('foo')); } -buildUnnamed1160() { +buildUnnamed3405() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1159()); - o.add(buildUnnamed1159()); + o.add(buildUnnamed3404()); + o.add(buildUnnamed3404()); return o; } -checkUnnamed1160(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3405(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1159(o[0]); - checkUnnamed1159(o[1]); + checkUnnamed3404(o[0]); + checkUnnamed3404(o[1]); } core.int buildCounterStatus = 0; @@ -1008,7 +1008,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1160(); + o.details = buildUnnamed3405(); o.message = "foo"; } buildCounterStatus--; @@ -1019,7 +1019,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1160(o.details); + checkUnnamed3405(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1069,79 +1069,79 @@ buildCounterVersion--; } -buildUnnamed1161() { +buildUnnamed3406() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1161(core.List<core.String> o) { +checkUnnamed3406(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1162() { +buildUnnamed3407() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1162(core.List<core.String> o) { +checkUnnamed3407(core.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() { +buildUnnamed3408() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1163(core.List<core.String> o) { +checkUnnamed3408(core.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() { +buildUnnamed3409() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1164(core.List<core.String> o) { +checkUnnamed3409(core.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() { +buildUnnamed3410() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1165(core.List<core.String> o) { +checkUnnamed3410(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1166() { +buildUnnamed3411() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1166(core.List<core.String> o) { +checkUnnamed3411(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1419,17 +1419,17 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.ProcessesResourceApi res = new api.ScriptApi(mock).processes; + var arg_userProcessFilter_deploymentId = "foo"; + var arg_pageToken = "foo"; + var arg_userProcessFilter_endTime = "foo"; var arg_pageSize = 42; var arg_userProcessFilter_startTime = "foo"; var arg_userProcessFilter_projectName = "foo"; - var arg_userProcessFilter_userAccessLevels = buildUnnamed1161(); + var arg_userProcessFilter_userAccessLevels = buildUnnamed3406(); var arg_userProcessFilter_functionName = "foo"; var arg_userProcessFilter_scriptId = "foo"; - var arg_userProcessFilter_statuses = buildUnnamed1162(); - var arg_userProcessFilter_types = buildUnnamed1163(); - var arg_userProcessFilter_deploymentId = "foo"; - var arg_userProcessFilter_endTime = "foo"; - var arg_pageToken = "foo"; + var arg_userProcessFilter_types = buildUnnamed3407(); + var arg_userProcessFilter_statuses = buildUnnamed3408(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1461,6 +1461,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["userProcessFilter.deploymentId"].first, + unittest.equals(arg_userProcessFilter_deploymentId)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["userProcessFilter.endTime"].first, + unittest.equals(arg_userProcessFilter_endTime)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["userProcessFilter.startTime"].first, @@ -1473,16 +1479,10 @@ unittest.equals(arg_userProcessFilter_functionName)); unittest.expect(queryMap["userProcessFilter.scriptId"].first, unittest.equals(arg_userProcessFilter_scriptId)); - unittest.expect(queryMap["userProcessFilter.statuses"], - unittest.equals(arg_userProcessFilter_statuses)); unittest.expect(queryMap["userProcessFilter.types"], unittest.equals(arg_userProcessFilter_types)); - unittest.expect(queryMap["userProcessFilter.deploymentId"].first, - unittest.equals(arg_userProcessFilter_deploymentId)); - unittest.expect(queryMap["userProcessFilter.endTime"].first, - unittest.equals(arg_userProcessFilter_endTime)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["userProcessFilter.statuses"], + unittest.equals(arg_userProcessFilter_statuses)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1493,6 +1493,10 @@ }), true); res .list( + userProcessFilter_deploymentId: + arg_userProcessFilter_deploymentId, + pageToken: arg_pageToken, + userProcessFilter_endTime: arg_userProcessFilter_endTime, pageSize: arg_pageSize, userProcessFilter_startTime: arg_userProcessFilter_startTime, userProcessFilter_projectName: arg_userProcessFilter_projectName, @@ -1501,12 +1505,8 @@ userProcessFilter_functionName: arg_userProcessFilter_functionName, userProcessFilter_scriptId: arg_userProcessFilter_scriptId, - userProcessFilter_statuses: arg_userProcessFilter_statuses, userProcessFilter_types: arg_userProcessFilter_types, - userProcessFilter_deploymentId: - arg_userProcessFilter_deploymentId, - userProcessFilter_endTime: arg_userProcessFilter_endTime, - pageToken: arg_pageToken, + userProcessFilter_statuses: arg_userProcessFilter_statuses, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListUserProcessesResponse(response); @@ -1516,16 +1516,16 @@ unittest.test("method--listScriptProcesses", () { var mock = new HttpServerMock(); api.ProcessesResourceApi res = new api.ScriptApi(mock).processes; + var arg_scriptProcessFilter_functionName = "foo"; + var arg_scriptProcessFilter_startTime = "foo"; + var arg_scriptProcessFilter_deploymentId = "foo"; + var arg_scriptId = "foo"; + var arg_scriptProcessFilter_types = buildUnnamed3409(); + var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_scriptProcessFilter_endTime = "foo"; - var arg_scriptProcessFilter_userAccessLevels = buildUnnamed1164(); - var arg_scriptProcessFilter_statuses = buildUnnamed1165(); - var arg_scriptProcessFilter_startTime = "foo"; - var arg_scriptProcessFilter_functionName = "foo"; - var arg_scriptProcessFilter_types = buildUnnamed1166(); - var arg_scriptId = "foo"; - var arg_scriptProcessFilter_deploymentId = "foo"; - var arg_pageToken = "foo"; + var arg_scriptProcessFilter_userAccessLevels = buildUnnamed3410(); + var arg_scriptProcessFilter_statuses = buildUnnamed3411(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1557,6 +1557,18 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["scriptProcessFilter.functionName"].first, + unittest.equals(arg_scriptProcessFilter_functionName)); + unittest.expect(queryMap["scriptProcessFilter.startTime"].first, + unittest.equals(arg_scriptProcessFilter_startTime)); + unittest.expect(queryMap["scriptProcessFilter.deploymentId"].first, + unittest.equals(arg_scriptProcessFilter_deploymentId)); + unittest.expect( + queryMap["scriptId"].first, unittest.equals(arg_scriptId)); + unittest.expect(queryMap["scriptProcessFilter.types"], + unittest.equals(arg_scriptProcessFilter_types)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["scriptProcessFilter.endTime"].first, @@ -1565,18 +1577,6 @@ unittest.equals(arg_scriptProcessFilter_userAccessLevels)); unittest.expect(queryMap["scriptProcessFilter.statuses"], unittest.equals(arg_scriptProcessFilter_statuses)); - unittest.expect(queryMap["scriptProcessFilter.startTime"].first, - unittest.equals(arg_scriptProcessFilter_startTime)); - unittest.expect(queryMap["scriptProcessFilter.functionName"].first, - unittest.equals(arg_scriptProcessFilter_functionName)); - unittest.expect(queryMap["scriptProcessFilter.types"], - unittest.equals(arg_scriptProcessFilter_types)); - unittest.expect( - queryMap["scriptId"].first, unittest.equals(arg_scriptId)); - unittest.expect(queryMap["scriptProcessFilter.deploymentId"].first, - unittest.equals(arg_scriptProcessFilter_deploymentId)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1587,19 +1587,19 @@ }), true); res .listScriptProcesses( + scriptProcessFilter_functionName: + arg_scriptProcessFilter_functionName, + scriptProcessFilter_startTime: arg_scriptProcessFilter_startTime, + scriptProcessFilter_deploymentId: + arg_scriptProcessFilter_deploymentId, + scriptId: arg_scriptId, + scriptProcessFilter_types: arg_scriptProcessFilter_types, + pageToken: arg_pageToken, pageSize: arg_pageSize, scriptProcessFilter_endTime: arg_scriptProcessFilter_endTime, scriptProcessFilter_userAccessLevels: arg_scriptProcessFilter_userAccessLevels, scriptProcessFilter_statuses: arg_scriptProcessFilter_statuses, - scriptProcessFilter_startTime: arg_scriptProcessFilter_startTime, - scriptProcessFilter_functionName: - arg_scriptProcessFilter_functionName, - scriptProcessFilter_types: arg_scriptProcessFilter_types, - scriptId: arg_scriptId, - scriptProcessFilter_deploymentId: - arg_scriptProcessFilter_deploymentId, - pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListScriptProcessesResponse(response); @@ -1781,8 +1781,8 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.ScriptApi(mock).projects; var arg_scriptId = "foo"; - var arg_metricsGranularity = "foo"; var arg_metricsFilter_deploymentId = "foo"; + var arg_metricsGranularity = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1823,10 +1823,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["metricsGranularity"].first, - unittest.equals(arg_metricsGranularity)); unittest.expect(queryMap["metricsFilter.deploymentId"].first, unittest.equals(arg_metricsFilter_deploymentId)); + unittest.expect(queryMap["metricsGranularity"].first, + unittest.equals(arg_metricsGranularity)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1837,8 +1837,8 @@ }), true); res .getMetrics(arg_scriptId, - metricsGranularity: arg_metricsGranularity, metricsFilter_deploymentId: arg_metricsFilter_deploymentId, + metricsGranularity: arg_metricsGranularity, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkMetrics(response); @@ -2107,8 +2107,8 @@ api.ProjectsDeploymentsResourceApi res = new api.ScriptApi(mock).projects.deployments; var arg_scriptId = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2149,10 +2149,10 @@ 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(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2163,8 +2163,8 @@ }), true); res .list(arg_scriptId, - pageSize: arg_pageSize, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDeploymentsResponse(response);
diff --git a/generated/googleapis/test/searchconsole/v1_test.dart b/generated/googleapis/test/searchconsole/v1_test.dart index a699d4e..6a531f9 100644 --- a/generated/googleapis/test/searchconsole/v1_test.dart +++ b/generated/googleapis/test/searchconsole/v1_test.dart
@@ -149,27 +149,27 @@ buildCounterRunMobileFriendlyTestRequest--; } -buildUnnamed2646() { +buildUnnamed2641() { var o = new core.List<api.MobileFriendlyIssue>(); o.add(buildMobileFriendlyIssue()); o.add(buildMobileFriendlyIssue()); return o; } -checkUnnamed2646(core.List<api.MobileFriendlyIssue> o) { +checkUnnamed2641(core.List<api.MobileFriendlyIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileFriendlyIssue(o[0]); checkMobileFriendlyIssue(o[1]); } -buildUnnamed2647() { +buildUnnamed2642() { var o = new core.List<api.ResourceIssue>(); o.add(buildResourceIssue()); o.add(buildResourceIssue()); return o; } -checkUnnamed2647(core.List<api.ResourceIssue> o) { +checkUnnamed2642(core.List<api.ResourceIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceIssue(o[0]); checkResourceIssue(o[1]); @@ -181,8 +181,8 @@ buildCounterRunMobileFriendlyTestResponse++; if (buildCounterRunMobileFriendlyTestResponse < 3) { o.mobileFriendliness = "foo"; - o.mobileFriendlyIssues = buildUnnamed2646(); - o.resourceIssues = buildUnnamed2647(); + o.mobileFriendlyIssues = buildUnnamed2641(); + o.resourceIssues = buildUnnamed2642(); o.screenshot = buildImage(); o.testStatus = buildTestStatus(); } @@ -194,8 +194,8 @@ buildCounterRunMobileFriendlyTestResponse++; if (buildCounterRunMobileFriendlyTestResponse < 3) { unittest.expect(o.mobileFriendliness, unittest.equals('foo')); - checkUnnamed2646(o.mobileFriendlyIssues); - checkUnnamed2647(o.resourceIssues); + checkUnnamed2641(o.mobileFriendlyIssues); + checkUnnamed2642(o.resourceIssues); checkImage(o.screenshot); checkTestStatus(o.testStatus); }
diff --git a/generated/googleapis/test/serviceconsumermanagement/v1_test.dart b/generated/googleapis/test/serviceconsumermanagement/v1_test.dart index 08ff708..bb7d604 100644 --- a/generated/googleapis/test/serviceconsumermanagement/v1_test.dart +++ b/generated/googleapis/test/serviceconsumermanagement/v1_test.dart
@@ -71,40 +71,40 @@ buildCounterAddTenantProjectRequest--; } -buildUnnamed3564() { +buildUnnamed2374() { var o = new core.List<api.Method>(); o.add(buildMethod()); o.add(buildMethod()); return o; } -checkUnnamed3564(core.List<api.Method> o) { +checkUnnamed2374(core.List<api.Method> o) { unittest.expect(o, unittest.hasLength(2)); checkMethod(o[0]); checkMethod(o[1]); } -buildUnnamed3565() { +buildUnnamed2375() { var o = new core.List<api.Mixin>(); o.add(buildMixin()); o.add(buildMixin()); return o; } -checkUnnamed3565(core.List<api.Mixin> o) { +checkUnnamed2375(core.List<api.Mixin> o) { unittest.expect(o, unittest.hasLength(2)); checkMixin(o[0]); checkMixin(o[1]); } -buildUnnamed3566() { +buildUnnamed2376() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed3566(core.List<api.Option> o) { +checkUnnamed2376(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -115,10 +115,10 @@ var o = new api.Api(); buildCounterApi++; if (buildCounterApi < 3) { - o.methods = buildUnnamed3564(); - o.mixins = buildUnnamed3565(); + o.methods = buildUnnamed2374(); + o.mixins = buildUnnamed2375(); o.name = "foo"; - o.options = buildUnnamed3566(); + o.options = buildUnnamed2376(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; o.version = "foo"; @@ -130,10 +130,10 @@ checkApi(api.Api o) { buildCounterApi++; if (buildCounterApi < 3) { - checkUnnamed3564(o.methods); - checkUnnamed3565(o.mixins); + checkUnnamed2374(o.methods); + checkUnnamed2375(o.mixins); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3566(o.options); + checkUnnamed2376(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -189,27 +189,27 @@ buildCounterAuthRequirement--; } -buildUnnamed3567() { +buildUnnamed2377() { var o = new core.List<api.AuthProvider>(); o.add(buildAuthProvider()); o.add(buildAuthProvider()); return o; } -checkUnnamed3567(core.List<api.AuthProvider> o) { +checkUnnamed2377(core.List<api.AuthProvider> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthProvider(o[0]); checkAuthProvider(o[1]); } -buildUnnamed3568() { +buildUnnamed2378() { var o = new core.List<api.AuthenticationRule>(); o.add(buildAuthenticationRule()); o.add(buildAuthenticationRule()); return o; } -checkUnnamed3568(core.List<api.AuthenticationRule> o) { +checkUnnamed2378(core.List<api.AuthenticationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthenticationRule(o[0]); checkAuthenticationRule(o[1]); @@ -220,8 +220,8 @@ var o = new api.Authentication(); buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - o.providers = buildUnnamed3567(); - o.rules = buildUnnamed3568(); + o.providers = buildUnnamed2377(); + o.rules = buildUnnamed2378(); } buildCounterAuthentication--; return o; @@ -230,20 +230,20 @@ checkAuthentication(api.Authentication o) { buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - checkUnnamed3567(o.providers); - checkUnnamed3568(o.rules); + checkUnnamed2377(o.providers); + checkUnnamed2378(o.rules); } buildCounterAuthentication--; } -buildUnnamed3569() { +buildUnnamed2379() { var o = new core.List<api.AuthRequirement>(); o.add(buildAuthRequirement()); o.add(buildAuthRequirement()); return o; } -checkUnnamed3569(core.List<api.AuthRequirement> o) { +checkUnnamed2379(core.List<api.AuthRequirement> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthRequirement(o[0]); checkAuthRequirement(o[1]); @@ -255,9 +255,8 @@ buildCounterAuthenticationRule++; if (buildCounterAuthenticationRule < 3) { o.allowWithoutCredential = true; - o.customAuth = buildCustomAuthRequirements(); o.oauth = buildOAuthRequirements(); - o.requirements = buildUnnamed3569(); + o.requirements = buildUnnamed2379(); o.selector = "foo"; } buildCounterAuthenticationRule--; @@ -268,9 +267,8 @@ buildCounterAuthenticationRule++; if (buildCounterAuthenticationRule < 3) { unittest.expect(o.allowWithoutCredential, unittest.isTrue); - checkCustomAuthRequirements(o.customAuth); checkOAuthRequirements(o.oauth); - checkUnnamed3569(o.requirements); + checkUnnamed2379(o.requirements); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterAuthenticationRule--; @@ -316,14 +314,14 @@ buildCounterAuthorizationRule--; } -buildUnnamed3570() { +buildUnnamed2380() { var o = new core.List<api.BackendRule>(); o.add(buildBackendRule()); o.add(buildBackendRule()); return o; } -checkUnnamed3570(core.List<api.BackendRule> o) { +checkUnnamed2380(core.List<api.BackendRule> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendRule(o[0]); checkBackendRule(o[1]); @@ -334,7 +332,7 @@ var o = new api.Backend(); buildCounterBackend++; if (buildCounterBackend < 3) { - o.rules = buildUnnamed3570(); + o.rules = buildUnnamed2380(); } buildCounterBackend--; return o; @@ -343,7 +341,7 @@ checkBackend(api.Backend o) { buildCounterBackend++; if (buildCounterBackend < 3) { - checkUnnamed3570(o.rules); + checkUnnamed2380(o.rules); } buildCounterBackend--; } @@ -373,14 +371,14 @@ buildCounterBackendRule--; } -buildUnnamed3571() { +buildUnnamed2381() { var o = new core.List<api.BillingDestination>(); o.add(buildBillingDestination()); o.add(buildBillingDestination()); return o; } -checkUnnamed3571(core.List<api.BillingDestination> o) { +checkUnnamed2381(core.List<api.BillingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkBillingDestination(o[0]); checkBillingDestination(o[1]); @@ -391,7 +389,7 @@ var o = new api.Billing(); buildCounterBilling++; if (buildCounterBilling < 3) { - o.consumerDestinations = buildUnnamed3571(); + o.consumerDestinations = buildUnnamed2381(); } buildCounterBilling--; return o; @@ -400,7 +398,7 @@ checkBilling(api.Billing o) { buildCounterBilling++; if (buildCounterBilling < 3) { - checkUnnamed3571(o.consumerDestinations); + checkUnnamed2381(o.consumerDestinations); } buildCounterBilling--; } @@ -424,14 +422,14 @@ buildCounterBillingConfig--; } -buildUnnamed3572() { +buildUnnamed2382() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3572(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')); @@ -442,7 +440,7 @@ var o = new api.BillingDestination(); buildCounterBillingDestination++; if (buildCounterBillingDestination < 3) { - o.metrics = buildUnnamed3572(); + o.metrics = buildUnnamed2382(); o.monitoredResource = "foo"; } buildCounterBillingDestination--; @@ -452,7 +450,7 @@ checkBillingDestination(api.BillingDestination o) { buildCounterBillingDestination++; if (buildCounterBillingDestination < 3) { - checkUnnamed3572(o.metrics); + checkUnnamed2382(o.metrics); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterBillingDestination--; @@ -473,14 +471,14 @@ buildCounterCancelOperationRequest--; } -buildUnnamed3573() { +buildUnnamed2383() { var o = new core.List<api.ContextRule>(); o.add(buildContextRule()); o.add(buildContextRule()); return o; } -checkUnnamed3573(core.List<api.ContextRule> o) { +checkUnnamed2383(core.List<api.ContextRule> o) { unittest.expect(o, unittest.hasLength(2)); checkContextRule(o[0]); checkContextRule(o[1]); @@ -491,7 +489,7 @@ var o = new api.Context(); buildCounterContext++; if (buildCounterContext < 3) { - o.rules = buildUnnamed3573(); + o.rules = buildUnnamed2383(); } buildCounterContext--; return o; @@ -500,58 +498,58 @@ checkContext(api.Context o) { buildCounterContext++; if (buildCounterContext < 3) { - checkUnnamed3573(o.rules); + checkUnnamed2383(o.rules); } buildCounterContext--; } -buildUnnamed3574() { +buildUnnamed2384() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3574(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')); } -buildUnnamed3575() { +buildUnnamed2385() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3575(core.List<core.String> o) { +checkUnnamed2385(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3576() { +buildUnnamed2386() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3576(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')); } -buildUnnamed3577() { +buildUnnamed2387() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3577(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')); @@ -562,10 +560,10 @@ var o = new api.ContextRule(); buildCounterContextRule++; if (buildCounterContextRule < 3) { - o.allowedRequestExtensions = buildUnnamed3574(); - o.allowedResponseExtensions = buildUnnamed3575(); - o.provided = buildUnnamed3576(); - o.requested = buildUnnamed3577(); + o.allowedRequestExtensions = buildUnnamed2384(); + o.allowedResponseExtensions = buildUnnamed2385(); + o.provided = buildUnnamed2386(); + o.requested = buildUnnamed2387(); o.selector = "foo"; } buildCounterContextRule--; @@ -575,10 +573,10 @@ checkContextRule(api.ContextRule o) { buildCounterContextRule++; if (buildCounterContextRule < 3) { - checkUnnamed3574(o.allowedRequestExtensions); - checkUnnamed3575(o.allowedResponseExtensions); - checkUnnamed3576(o.provided); - checkUnnamed3577(o.requested); + checkUnnamed2384(o.allowedRequestExtensions); + checkUnnamed2385(o.allowedResponseExtensions); + checkUnnamed2386(o.provided); + checkUnnamed2387(o.requested); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterContextRule--; @@ -622,46 +620,27 @@ buildCounterCreateTenancyUnitRequest--; } -core.int buildCounterCustomAuthRequirements = 0; -buildCustomAuthRequirements() { - var o = new api.CustomAuthRequirements(); - buildCounterCustomAuthRequirements++; - if (buildCounterCustomAuthRequirements < 3) { - o.provider = "foo"; - } - buildCounterCustomAuthRequirements--; - return o; -} - -checkCustomAuthRequirements(api.CustomAuthRequirements o) { - buildCounterCustomAuthRequirements++; - if (buildCounterCustomAuthRequirements < 3) { - unittest.expect(o.provider, unittest.equals('foo')); - } - buildCounterCustomAuthRequirements--; -} - -buildUnnamed3578() { +buildUnnamed2388() { var o = new core.List<api.CustomErrorRule>(); o.add(buildCustomErrorRule()); o.add(buildCustomErrorRule()); return o; } -checkUnnamed3578(core.List<api.CustomErrorRule> o) { +checkUnnamed2388(core.List<api.CustomErrorRule> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomErrorRule(o[0]); checkCustomErrorRule(o[1]); } -buildUnnamed3579() { +buildUnnamed2389() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3579(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')); @@ -672,8 +651,8 @@ var o = new api.CustomError(); buildCounterCustomError++; if (buildCounterCustomError < 3) { - o.rules = buildUnnamed3578(); - o.types = buildUnnamed3579(); + o.rules = buildUnnamed2388(); + o.types = buildUnnamed2389(); } buildCounterCustomError--; return o; @@ -682,8 +661,8 @@ checkCustomError(api.CustomError o) { buildCounterCustomError++; if (buildCounterCustomError < 3) { - checkUnnamed3578(o.rules); - checkUnnamed3579(o.types); + checkUnnamed2388(o.rules); + checkUnnamed2389(o.types); } buildCounterCustomError--; } @@ -730,27 +709,27 @@ buildCounterCustomHttpPattern--; } -buildUnnamed3580() { +buildUnnamed2390() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed3580(core.List<api.Page> o) { +checkUnnamed2390(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed3581() { +buildUnnamed2391() { var o = new core.List<api.DocumentationRule>(); o.add(buildDocumentationRule()); o.add(buildDocumentationRule()); return o; } -checkUnnamed3581(core.List<api.DocumentationRule> o) { +checkUnnamed2391(core.List<api.DocumentationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkDocumentationRule(o[0]); checkDocumentationRule(o[1]); @@ -763,8 +742,8 @@ if (buildCounterDocumentation < 3) { o.documentationRootUrl = "foo"; o.overview = "foo"; - o.pages = buildUnnamed3580(); - o.rules = buildUnnamed3581(); + o.pages = buildUnnamed2390(); + o.rules = buildUnnamed2391(); o.summary = "foo"; } buildCounterDocumentation--; @@ -776,8 +755,8 @@ if (buildCounterDocumentation < 3) { unittest.expect(o.documentationRootUrl, unittest.equals('foo')); unittest.expect(o.overview, unittest.equals('foo')); - checkUnnamed3580(o.pages); - checkUnnamed3581(o.rules); + checkUnnamed2390(o.pages); + checkUnnamed2391(o.rules); unittest.expect(o.summary, unittest.equals('foo')); } buildCounterDocumentation--; @@ -821,27 +800,27 @@ buildCounterEmpty--; } -buildUnnamed3582() { +buildUnnamed2392() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3582(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')); } -buildUnnamed3583() { +buildUnnamed2393() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3583(core.List<core.String> o) { +checkUnnamed2393(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -852,9 +831,9 @@ var o = new api.Endpoint(); buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - o.aliases = buildUnnamed3582(); + o.aliases = buildUnnamed2392(); o.allowCors = true; - o.features = buildUnnamed3583(); + o.features = buildUnnamed2393(); o.name = "foo"; o.target = "foo"; } @@ -865,36 +844,36 @@ checkEndpoint(api.Endpoint o) { buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - checkUnnamed3582(o.aliases); + checkUnnamed2392(o.aliases); unittest.expect(o.allowCors, unittest.isTrue); - checkUnnamed3583(o.features); + checkUnnamed2393(o.features); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); } buildCounterEndpoint--; } -buildUnnamed3584() { +buildUnnamed2394() { var o = new core.List<api.EnumValue>(); o.add(buildEnumValue()); o.add(buildEnumValue()); return o; } -checkUnnamed3584(core.List<api.EnumValue> o) { +checkUnnamed2394(core.List<api.EnumValue> o) { unittest.expect(o, unittest.hasLength(2)); checkEnumValue(o[0]); checkEnumValue(o[1]); } -buildUnnamed3585() { +buildUnnamed2395() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed3585(core.List<api.Option> o) { +checkUnnamed2395(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -905,9 +884,9 @@ var o = new api.Enum(); buildCounterEnum++; if (buildCounterEnum < 3) { - o.enumvalue = buildUnnamed3584(); + o.enumvalue = buildUnnamed2394(); o.name = "foo"; - o.options = buildUnnamed3585(); + o.options = buildUnnamed2395(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -918,23 +897,23 @@ checkEnum(api.Enum o) { buildCounterEnum++; if (buildCounterEnum < 3) { - checkUnnamed3584(o.enumvalue); + checkUnnamed2394(o.enumvalue); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3585(o.options); + checkUnnamed2395(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } buildCounterEnum--; } -buildUnnamed3586() { +buildUnnamed2396() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed3586(core.List<api.Option> o) { +checkUnnamed2396(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -947,7 +926,7 @@ if (buildCounterEnumValue < 3) { o.name = "foo"; o.number = 42; - o.options = buildUnnamed3586(); + o.options = buildUnnamed2396(); } buildCounterEnumValue--; return o; @@ -958,7 +937,7 @@ if (buildCounterEnumValue < 3) { unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); - checkUnnamed3586(o.options); + checkUnnamed2396(o.options); } buildCounterEnumValue--; } @@ -982,14 +961,14 @@ buildCounterExperimental--; } -buildUnnamed3587() { +buildUnnamed2397() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed3587(core.List<api.Option> o) { +checkUnnamed2397(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1007,7 +986,7 @@ o.name = "foo"; o.number = 42; o.oneofIndex = 42; - o.options = buildUnnamed3587(); + o.options = buildUnnamed2397(); o.packed = true; o.typeUrl = "foo"; } @@ -1025,21 +1004,21 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); unittest.expect(o.oneofIndex, unittest.equals(42)); - checkUnnamed3587(o.options); + checkUnnamed2397(o.options); unittest.expect(o.packed, unittest.isTrue); unittest.expect(o.typeUrl, unittest.equals('foo')); } buildCounterField--; } -buildUnnamed3588() { +buildUnnamed2398() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed3588(core.List<api.HttpRule> o) { +checkUnnamed2398(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -1051,7 +1030,7 @@ buildCounterHttp++; if (buildCounterHttp < 3) { o.fullyDecodeReservedExpansion = true; - o.rules = buildUnnamed3588(); + o.rules = buildUnnamed2398(); } buildCounterHttp--; return o; @@ -1061,32 +1040,32 @@ buildCounterHttp++; if (buildCounterHttp < 3) { unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); - checkUnnamed3588(o.rules); + checkUnnamed2398(o.rules); } buildCounterHttp--; } -buildUnnamed3589() { +buildUnnamed2399() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed3589(core.List<api.HttpRule> o) { +checkUnnamed2399(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); } -buildUnnamed3590() { +buildUnnamed2400() { var o = new core.List<api.AuthorizationRule>(); o.add(buildAuthorizationRule()); o.add(buildAuthorizationRule()); return o; } -checkUnnamed3590(core.List<api.AuthorizationRule> o) { +checkUnnamed2400(core.List<api.AuthorizationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthorizationRule(o[0]); checkAuthorizationRule(o[1]); @@ -1097,8 +1076,8 @@ var o = new api.HttpRule(); buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - o.additionalBindings = buildUnnamed3589(); - o.authorizations = buildUnnamed3590(); + o.additionalBindings = buildUnnamed2399(); + o.authorizations = buildUnnamed2400(); o.body = "foo"; o.custom = buildCustomHttpPattern(); o.delete = "foo"; @@ -1119,8 +1098,8 @@ checkHttpRule(api.HttpRule o) { buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - checkUnnamed3589(o.additionalBindings); - checkUnnamed3590(o.authorizations); + checkUnnamed2399(o.additionalBindings); + checkUnnamed2400(o.authorizations); unittest.expect(o.body, unittest.equals('foo')); checkCustomHttpPattern(o.custom); unittest.expect(o.delete, unittest.equals('foo')); @@ -1160,14 +1139,14 @@ buildCounterLabelDescriptor--; } -buildUnnamed3591() { +buildUnnamed2401() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3591(core.List<api.Operation> o) { +checkUnnamed2401(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1179,7 +1158,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3591(); + o.operations = buildUnnamed2401(); } buildCounterListOperationsResponse--; return o; @@ -1189,19 +1168,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3591(o.operations); + checkUnnamed2401(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3592() { +buildUnnamed2402() { var o = new core.List<api.TenancyUnit>(); o.add(buildTenancyUnit()); o.add(buildTenancyUnit()); return o; } -checkUnnamed3592(core.List<api.TenancyUnit> o) { +checkUnnamed2402(core.List<api.TenancyUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkTenancyUnit(o[0]); checkTenancyUnit(o[1]); @@ -1213,7 +1192,7 @@ buildCounterListTenancyUnitsResponse++; if (buildCounterListTenancyUnitsResponse < 3) { o.nextPageToken = "foo"; - o.tenancyUnits = buildUnnamed3592(); + o.tenancyUnits = buildUnnamed2402(); } buildCounterListTenancyUnitsResponse--; return o; @@ -1223,19 +1202,19 @@ buildCounterListTenancyUnitsResponse++; if (buildCounterListTenancyUnitsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3592(o.tenancyUnits); + checkUnnamed2402(o.tenancyUnits); } buildCounterListTenancyUnitsResponse--; } -buildUnnamed3593() { +buildUnnamed2403() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed3593(core.List<api.LabelDescriptor> o) { +checkUnnamed2403(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1248,7 +1227,7 @@ if (buildCounterLogDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed3593(); + o.labels = buildUnnamed2403(); o.name = "foo"; } buildCounterLogDescriptor--; @@ -1260,33 +1239,33 @@ if (buildCounterLogDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed3593(o.labels); + checkUnnamed2403(o.labels); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLogDescriptor--; } -buildUnnamed3594() { +buildUnnamed2404() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed3594(core.List<api.LoggingDestination> o) { +checkUnnamed2404(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); } -buildUnnamed3595() { +buildUnnamed2405() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed3595(core.List<api.LoggingDestination> o) { +checkUnnamed2405(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); @@ -1297,8 +1276,8 @@ var o = new api.Logging(); buildCounterLogging++; if (buildCounterLogging < 3) { - o.consumerDestinations = buildUnnamed3594(); - o.producerDestinations = buildUnnamed3595(); + o.consumerDestinations = buildUnnamed2404(); + o.producerDestinations = buildUnnamed2405(); } buildCounterLogging--; return o; @@ -1307,20 +1286,20 @@ checkLogging(api.Logging o) { buildCounterLogging++; if (buildCounterLogging < 3) { - checkUnnamed3594(o.consumerDestinations); - checkUnnamed3595(o.producerDestinations); + checkUnnamed2404(o.consumerDestinations); + checkUnnamed2405(o.producerDestinations); } buildCounterLogging--; } -buildUnnamed3596() { +buildUnnamed2406() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3596(core.List<core.String> o) { +checkUnnamed2406(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1331,7 +1310,7 @@ var o = new api.LoggingDestination(); buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - o.logs = buildUnnamed3596(); + o.logs = buildUnnamed2406(); o.monitoredResource = "foo"; } buildCounterLoggingDestination--; @@ -1341,7 +1320,7 @@ checkLoggingDestination(api.LoggingDestination o) { buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - checkUnnamed3596(o.logs); + checkUnnamed2406(o.logs); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterLoggingDestination--; @@ -1376,14 +1355,14 @@ buildCounterMediaDownload--; } -buildUnnamed3597() { +buildUnnamed2407() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3597(core.List<core.String> o) { +checkUnnamed2407(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1398,7 +1377,7 @@ o.dropzone = "foo"; o.enabled = true; o.maxSize = "foo"; - o.mimeTypes = buildUnnamed3597(); + o.mimeTypes = buildUnnamed2407(); o.progressNotification = true; o.startNotification = true; o.uploadService = "foo"; @@ -1414,7 +1393,7 @@ unittest.expect(o.dropzone, unittest.equals('foo')); unittest.expect(o.enabled, unittest.isTrue); unittest.expect(o.maxSize, unittest.equals('foo')); - checkUnnamed3597(o.mimeTypes); + checkUnnamed2407(o.mimeTypes); unittest.expect(o.progressNotification, unittest.isTrue); unittest.expect(o.startNotification, unittest.isTrue); unittest.expect(o.uploadService, unittest.equals('foo')); @@ -1422,14 +1401,14 @@ buildCounterMediaUpload--; } -buildUnnamed3598() { +buildUnnamed2408() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed3598(core.List<api.Option> o) { +checkUnnamed2408(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1441,7 +1420,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { o.name = "foo"; - o.options = buildUnnamed3598(); + o.options = buildUnnamed2408(); o.requestStreaming = true; o.requestTypeUrl = "foo"; o.responseStreaming = true; @@ -1456,7 +1435,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3598(o.options); + checkUnnamed2408(o.options); unittest.expect(o.requestStreaming, unittest.isTrue); unittest.expect(o.requestTypeUrl, unittest.equals('foo')); unittest.expect(o.responseStreaming, unittest.isTrue); @@ -1466,14 +1445,14 @@ buildCounterMethod--; } -buildUnnamed3599() { +buildUnnamed2409() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed3599(core.List<api.LabelDescriptor> o) { +checkUnnamed2409(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1486,7 +1465,7 @@ if (buildCounterMetricDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed3599(); + o.labels = buildUnnamed2409(); o.metricKind = "foo"; o.name = "foo"; o.type = "foo"; @@ -1502,7 +1481,7 @@ if (buildCounterMetricDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed3599(o.labels); + checkUnnamed2409(o.labels); unittest.expect(o.metricKind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -1512,14 +1491,14 @@ buildCounterMetricDescriptor--; } -buildUnnamed3600() { +buildUnnamed2410() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3600(core.Map<core.String, core.String> o) { +checkUnnamed2410(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')); @@ -1530,7 +1509,7 @@ var o = new api.MetricRule(); buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - o.metricCosts = buildUnnamed3600(); + o.metricCosts = buildUnnamed2410(); o.selector = "foo"; } buildCounterMetricRule--; @@ -1540,7 +1519,7 @@ checkMetricRule(api.MetricRule o) { buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - checkUnnamed3600(o.metricCosts); + checkUnnamed2410(o.metricCosts); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterMetricRule--; @@ -1567,14 +1546,14 @@ buildCounterMixin--; } -buildUnnamed3601() { +buildUnnamed2411() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed3601(core.List<api.LabelDescriptor> o) { +checkUnnamed2411(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1587,7 +1566,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed3601(); + o.labels = buildUnnamed2411(); o.name = "foo"; o.type = "foo"; } @@ -1600,34 +1579,34 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed3601(o.labels); + checkUnnamed2411(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResourceDescriptor--; } -buildUnnamed3602() { +buildUnnamed2412() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed3602(core.List<api.MonitoringDestination> o) { +checkUnnamed2412(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); } -buildUnnamed3603() { +buildUnnamed2413() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed3603(core.List<api.MonitoringDestination> o) { +checkUnnamed2413(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); @@ -1638,8 +1617,8 @@ var o = new api.Monitoring(); buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - o.consumerDestinations = buildUnnamed3602(); - o.producerDestinations = buildUnnamed3603(); + o.consumerDestinations = buildUnnamed2412(); + o.producerDestinations = buildUnnamed2413(); } buildCounterMonitoring--; return o; @@ -1648,20 +1627,20 @@ checkMonitoring(api.Monitoring o) { buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - checkUnnamed3602(o.consumerDestinations); - checkUnnamed3603(o.producerDestinations); + checkUnnamed2412(o.consumerDestinations); + checkUnnamed2413(o.producerDestinations); } buildCounterMonitoring--; } -buildUnnamed3604() { +buildUnnamed2414() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3604(core.List<core.String> o) { +checkUnnamed2414(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1672,7 +1651,7 @@ var o = new api.MonitoringDestination(); buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - o.metrics = buildUnnamed3604(); + o.metrics = buildUnnamed2414(); o.monitoredResource = "foo"; } buildCounterMonitoringDestination--; @@ -1682,7 +1661,7 @@ checkMonitoringDestination(api.MonitoringDestination o) { buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - checkUnnamed3604(o.metrics); + checkUnnamed2414(o.metrics); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterMonitoringDestination--; @@ -1707,7 +1686,7 @@ buildCounterOAuthRequirements--; } -buildUnnamed3605() { +buildUnnamed2415() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1722,7 +1701,7 @@ return o; } -checkUnnamed3605(core.Map<core.String, core.Object> o) { +checkUnnamed2415(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)); @@ -1736,7 +1715,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3606() { +buildUnnamed2416() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1751,7 +1730,7 @@ return o; } -checkUnnamed3606(core.Map<core.String, core.Object> o) { +checkUnnamed2416(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)); @@ -1772,9 +1751,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3605(); + o.metadata = buildUnnamed2415(); o.name = "foo"; - o.response = buildUnnamed3606(); + o.response = buildUnnamed2416(); } buildCounterOperation--; return o; @@ -1785,14 +1764,14 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3605(o.metadata); + checkUnnamed2415(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3606(o.response); + checkUnnamed2416(o.response); } buildCounterOperation--; } -buildUnnamed3607() { +buildUnnamed2417() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1807,7 +1786,7 @@ return o; } -checkUnnamed3607(core.Map<core.String, core.Object> o) { +checkUnnamed2417(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)); @@ -1827,7 +1806,7 @@ buildCounterOption++; if (buildCounterOption < 3) { o.name = "foo"; - o.value = buildUnnamed3607(); + o.value = buildUnnamed2417(); } buildCounterOption--; return o; @@ -1837,19 +1816,19 @@ buildCounterOption++; if (buildCounterOption < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3607(o.value); + checkUnnamed2417(o.value); } buildCounterOption--; } -buildUnnamed3608() { +buildUnnamed2418() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed3608(core.List<api.Page> o) { +checkUnnamed2418(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -1862,7 +1841,7 @@ if (buildCounterPage < 3) { o.content = "foo"; o.name = "foo"; - o.subpages = buildUnnamed3608(); + o.subpages = buildUnnamed2418(); } buildCounterPage--; return o; @@ -1873,19 +1852,19 @@ if (buildCounterPage < 3) { unittest.expect(o.content, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3608(o.subpages); + checkUnnamed2418(o.subpages); } buildCounterPage--; } -buildUnnamed3609() { +buildUnnamed2419() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3609(core.List<core.String> o) { +checkUnnamed2419(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1896,7 +1875,7 @@ var o = new api.PolicyBinding(); buildCounterPolicyBinding++; if (buildCounterPolicyBinding < 3) { - o.members = buildUnnamed3609(); + o.members = buildUnnamed2419(); o.role = "foo"; } buildCounterPolicyBinding--; @@ -1906,33 +1885,33 @@ checkPolicyBinding(api.PolicyBinding o) { buildCounterPolicyBinding++; if (buildCounterPolicyBinding < 3) { - checkUnnamed3609(o.members); + checkUnnamed2419(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterPolicyBinding--; } -buildUnnamed3610() { +buildUnnamed2420() { var o = new core.List<api.QuotaLimit>(); o.add(buildQuotaLimit()); o.add(buildQuotaLimit()); return o; } -checkUnnamed3610(core.List<api.QuotaLimit> o) { +checkUnnamed2420(core.List<api.QuotaLimit> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaLimit(o[0]); checkQuotaLimit(o[1]); } -buildUnnamed3611() { +buildUnnamed2421() { var o = new core.List<api.MetricRule>(); o.add(buildMetricRule()); o.add(buildMetricRule()); return o; } -checkUnnamed3611(core.List<api.MetricRule> o) { +checkUnnamed2421(core.List<api.MetricRule> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricRule(o[0]); checkMetricRule(o[1]); @@ -1943,8 +1922,8 @@ var o = new api.Quota(); buildCounterQuota++; if (buildCounterQuota < 3) { - o.limits = buildUnnamed3610(); - o.metricRules = buildUnnamed3611(); + o.limits = buildUnnamed2420(); + o.metricRules = buildUnnamed2421(); } buildCounterQuota--; return o; @@ -1953,20 +1932,20 @@ checkQuota(api.Quota o) { buildCounterQuota++; if (buildCounterQuota < 3) { - checkUnnamed3610(o.limits); - checkUnnamed3611(o.metricRules); + checkUnnamed2420(o.limits); + checkUnnamed2421(o.metricRules); } buildCounterQuota--; } -buildUnnamed3612() { +buildUnnamed2422() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3612(core.Map<core.String, core.String> o) { +checkUnnamed2422(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')); @@ -1986,7 +1965,7 @@ o.metric = "foo"; o.name = "foo"; o.unit = "foo"; - o.values = buildUnnamed3612(); + o.values = buildUnnamed2422(); } buildCounterQuotaLimit--; return o; @@ -2004,7 +1983,7 @@ unittest.expect(o.metric, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.unit, unittest.equals('foo')); - checkUnnamed3612(o.values); + checkUnnamed2422(o.values); } buildCounterQuotaLimit--; } @@ -2028,14 +2007,14 @@ buildCounterRemoveTenantProjectRequest--; } -buildUnnamed3613() { +buildUnnamed2423() { var o = new core.List<api.TenancyUnit>(); o.add(buildTenancyUnit()); o.add(buildTenancyUnit()); return o; } -checkUnnamed3613(core.List<api.TenancyUnit> o) { +checkUnnamed2423(core.List<api.TenancyUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkTenancyUnit(o[0]); checkTenancyUnit(o[1]); @@ -2047,7 +2026,7 @@ buildCounterSearchTenancyUnitsResponse++; if (buildCounterSearchTenancyUnitsResponse < 3) { o.nextPageToken = "foo"; - o.tenancyUnits = buildUnnamed3613(); + o.tenancyUnits = buildUnnamed2423(); } buildCounterSearchTenancyUnitsResponse--; return o; @@ -2057,110 +2036,110 @@ buildCounterSearchTenancyUnitsResponse++; if (buildCounterSearchTenancyUnitsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3613(o.tenancyUnits); + checkUnnamed2423(o.tenancyUnits); } buildCounterSearchTenancyUnitsResponse--; } -buildUnnamed3614() { +buildUnnamed2424() { var o = new core.List<api.Api>(); o.add(buildApi()); o.add(buildApi()); return o; } -checkUnnamed3614(core.List<api.Api> o) { +checkUnnamed2424(core.List<api.Api> o) { unittest.expect(o, unittest.hasLength(2)); checkApi(o[0]); checkApi(o[1]); } -buildUnnamed3615() { +buildUnnamed2425() { var o = new core.List<api.Endpoint>(); o.add(buildEndpoint()); o.add(buildEndpoint()); return o; } -checkUnnamed3615(core.List<api.Endpoint> o) { +checkUnnamed2425(core.List<api.Endpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkEndpoint(o[0]); checkEndpoint(o[1]); } -buildUnnamed3616() { +buildUnnamed2426() { var o = new core.List<api.Enum>(); o.add(buildEnum()); o.add(buildEnum()); return o; } -checkUnnamed3616(core.List<api.Enum> o) { +checkUnnamed2426(core.List<api.Enum> o) { unittest.expect(o, unittest.hasLength(2)); checkEnum(o[0]); checkEnum(o[1]); } -buildUnnamed3617() { +buildUnnamed2427() { var o = new core.List<api.LogDescriptor>(); o.add(buildLogDescriptor()); o.add(buildLogDescriptor()); return o; } -checkUnnamed3617(core.List<api.LogDescriptor> o) { +checkUnnamed2427(core.List<api.LogDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLogDescriptor(o[0]); checkLogDescriptor(o[1]); } -buildUnnamed3618() { +buildUnnamed2428() { var o = new core.List<api.MetricDescriptor>(); o.add(buildMetricDescriptor()); o.add(buildMetricDescriptor()); return o; } -checkUnnamed3618(core.List<api.MetricDescriptor> o) { +checkUnnamed2428(core.List<api.MetricDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricDescriptor(o[0]); checkMetricDescriptor(o[1]); } -buildUnnamed3619() { +buildUnnamed2429() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed3619(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed2429(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); } -buildUnnamed3620() { +buildUnnamed2430() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed3620(core.List<api.Type> o) { +checkUnnamed2430(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); } -buildUnnamed3621() { +buildUnnamed2431() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed3621(core.List<api.Type> o) { +checkUnnamed2431(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); @@ -2171,7 +2150,7 @@ var o = new api.Service(); buildCounterService++; if (buildCounterService < 3) { - o.apis = buildUnnamed3614(); + o.apis = buildUnnamed2424(); o.authentication = buildAuthentication(); o.backend = buildBackend(); o.billing = buildBilling(); @@ -2180,26 +2159,25 @@ o.control = buildControl(); o.customError = buildCustomError(); o.documentation = buildDocumentation(); - o.endpoints = buildUnnamed3615(); - o.enums = buildUnnamed3616(); + o.endpoints = buildUnnamed2425(); + o.enums = buildUnnamed2426(); o.experimental = buildExperimental(); o.http = buildHttp(); o.id = "foo"; o.logging = buildLogging(); - o.logs = buildUnnamed3617(); - o.metrics = buildUnnamed3618(); - o.monitoredResources = buildUnnamed3619(); + o.logs = buildUnnamed2427(); + o.metrics = buildUnnamed2428(); + o.monitoredResources = buildUnnamed2429(); o.monitoring = buildMonitoring(); o.name = "foo"; o.producerProjectId = "foo"; o.quota = buildQuota(); o.sourceInfo = buildSourceInfo(); o.systemParameters = buildSystemParameters(); - o.systemTypes = buildUnnamed3620(); + o.systemTypes = buildUnnamed2430(); o.title = "foo"; - o.types = buildUnnamed3621(); + o.types = buildUnnamed2431(); o.usage = buildUsage(); - o.visibility = buildVisibility(); } buildCounterService--; return o; @@ -2208,7 +2186,7 @@ checkService(api.Service o) { buildCounterService++; if (buildCounterService < 3) { - checkUnnamed3614(o.apis); + checkUnnamed2424(o.apis); checkAuthentication(o.authentication); checkBackend(o.backend); checkBilling(o.billing); @@ -2217,38 +2195,37 @@ checkControl(o.control); checkCustomError(o.customError); checkDocumentation(o.documentation); - checkUnnamed3615(o.endpoints); - checkUnnamed3616(o.enums); + checkUnnamed2425(o.endpoints); + checkUnnamed2426(o.enums); checkExperimental(o.experimental); checkHttp(o.http); unittest.expect(o.id, unittest.equals('foo')); checkLogging(o.logging); - checkUnnamed3617(o.logs); - checkUnnamed3618(o.metrics); - checkUnnamed3619(o.monitoredResources); + checkUnnamed2427(o.logs); + checkUnnamed2428(o.metrics); + checkUnnamed2429(o.monitoredResources); checkMonitoring(o.monitoring); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.producerProjectId, unittest.equals('foo')); checkQuota(o.quota); checkSourceInfo(o.sourceInfo); checkSystemParameters(o.systemParameters); - checkUnnamed3620(o.systemTypes); + checkUnnamed2430(o.systemTypes); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed3621(o.types); + checkUnnamed2431(o.types); checkUsage(o.usage); - checkVisibility(o.visibility); } buildCounterService--; } -buildUnnamed3622() { +buildUnnamed2432() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3622(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')); @@ -2260,7 +2237,7 @@ buildCounterServiceAccountConfig++; if (buildCounterServiceAccountConfig < 3) { o.accountId = "foo"; - o.tenantProjectRoles = buildUnnamed3622(); + o.tenantProjectRoles = buildUnnamed2432(); } buildCounterServiceAccountConfig--; return o; @@ -2270,7 +2247,7 @@ buildCounterServiceAccountConfig++; if (buildCounterServiceAccountConfig < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed3622(o.tenantProjectRoles); + checkUnnamed2432(o.tenantProjectRoles); } buildCounterServiceAccountConfig--; } @@ -2294,7 +2271,7 @@ buildCounterSourceContext--; } -buildUnnamed3623() { +buildUnnamed2433() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2309,7 +2286,7 @@ return o; } -checkUnnamed3623(core.Map<core.String, core.Object> o) { +checkUnnamed2433(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)); @@ -2323,17 +2300,17 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed3624() { +buildUnnamed2434() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3623()); - o.add(buildUnnamed3623()); + o.add(buildUnnamed2433()); + o.add(buildUnnamed2433()); return o; } -checkUnnamed3624(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2434(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3623(o[0]); - checkUnnamed3623(o[1]); + checkUnnamed2433(o[0]); + checkUnnamed2433(o[1]); } core.int buildCounterSourceInfo = 0; @@ -2341,7 +2318,7 @@ var o = new api.SourceInfo(); buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - o.sourceFiles = buildUnnamed3624(); + o.sourceFiles = buildUnnamed2434(); } buildCounterSourceInfo--; return o; @@ -2350,12 +2327,12 @@ checkSourceInfo(api.SourceInfo o) { buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - checkUnnamed3624(o.sourceFiles); + checkUnnamed2434(o.sourceFiles); } buildCounterSourceInfo--; } -buildUnnamed3625() { +buildUnnamed2435() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2370,7 +2347,7 @@ return o; } -checkUnnamed3625(core.Map<core.String, core.Object> o) { +checkUnnamed2435(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)); @@ -2384,17 +2361,17 @@ unittest.expect(casted10["string"], unittest.equals('foo')); } -buildUnnamed3626() { +buildUnnamed2436() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3625()); - o.add(buildUnnamed3625()); + o.add(buildUnnamed2435()); + o.add(buildUnnamed2435()); return o; } -checkUnnamed3626(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2436(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3625(o[0]); - checkUnnamed3625(o[1]); + checkUnnamed2435(o[0]); + checkUnnamed2435(o[1]); } core.int buildCounterStatus = 0; @@ -2403,7 +2380,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3626(); + o.details = buildUnnamed2436(); o.message = "foo"; } buildCounterStatus--; @@ -2414,7 +2391,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3626(o.details); + checkUnnamed2436(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -2443,14 +2420,14 @@ buildCounterSystemParameter--; } -buildUnnamed3627() { +buildUnnamed2437() { var o = new core.List<api.SystemParameter>(); o.add(buildSystemParameter()); o.add(buildSystemParameter()); return o; } -checkUnnamed3627(core.List<api.SystemParameter> o) { +checkUnnamed2437(core.List<api.SystemParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameter(o[0]); checkSystemParameter(o[1]); @@ -2461,7 +2438,7 @@ var o = new api.SystemParameterRule(); buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - o.parameters = buildUnnamed3627(); + o.parameters = buildUnnamed2437(); o.selector = "foo"; } buildCounterSystemParameterRule--; @@ -2471,20 +2448,20 @@ checkSystemParameterRule(api.SystemParameterRule o) { buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - checkUnnamed3627(o.parameters); + checkUnnamed2437(o.parameters); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterSystemParameterRule--; } -buildUnnamed3628() { +buildUnnamed2438() { var o = new core.List<api.SystemParameterRule>(); o.add(buildSystemParameterRule()); o.add(buildSystemParameterRule()); return o; } -checkUnnamed3628(core.List<api.SystemParameterRule> o) { +checkUnnamed2438(core.List<api.SystemParameterRule> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameterRule(o[0]); checkSystemParameterRule(o[1]); @@ -2495,7 +2472,7 @@ var o = new api.SystemParameters(); buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - o.rules = buildUnnamed3628(); + o.rules = buildUnnamed2438(); } buildCounterSystemParameters--; return o; @@ -2504,19 +2481,19 @@ checkSystemParameters(api.SystemParameters o) { buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - checkUnnamed3628(o.rules); + checkUnnamed2438(o.rules); } buildCounterSystemParameters--; } -buildUnnamed3629() { +buildUnnamed2439() { var o = new core.List<api.TenantResource>(); o.add(buildTenantResource()); o.add(buildTenantResource()); return o; } -checkUnnamed3629(core.List<api.TenantResource> o) { +checkUnnamed2439(core.List<api.TenantResource> o) { unittest.expect(o, unittest.hasLength(2)); checkTenantResource(o[0]); checkTenantResource(o[1]); @@ -2531,7 +2508,7 @@ o.createTime = "foo"; o.name = "foo"; o.service = "foo"; - o.tenantResources = buildUnnamed3629(); + o.tenantResources = buildUnnamed2439(); } buildCounterTenancyUnit--; return o; @@ -2544,32 +2521,32 @@ unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.service, unittest.equals('foo')); - checkUnnamed3629(o.tenantResources); + checkUnnamed2439(o.tenantResources); } buildCounterTenancyUnit--; } -buildUnnamed3630() { +buildUnnamed2440() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3630(core.Map<core.String, core.String> o) { +checkUnnamed2440(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')); } -buildUnnamed3631() { +buildUnnamed2441() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3631(core.List<core.String> o) { +checkUnnamed2441(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2582,9 +2559,9 @@ if (buildCounterTenantProjectConfig < 3) { o.billingConfig = buildBillingConfig(); o.folder = "foo"; - o.labels = buildUnnamed3630(); + o.labels = buildUnnamed2440(); o.serviceAccountConfig = buildServiceAccountConfig(); - o.services = buildUnnamed3631(); + o.services = buildUnnamed2441(); o.tenantProjectPolicy = buildTenantProjectPolicy(); } buildCounterTenantProjectConfig--; @@ -2596,22 +2573,22 @@ if (buildCounterTenantProjectConfig < 3) { checkBillingConfig(o.billingConfig); unittest.expect(o.folder, unittest.equals('foo')); - checkUnnamed3630(o.labels); + checkUnnamed2440(o.labels); checkServiceAccountConfig(o.serviceAccountConfig); - checkUnnamed3631(o.services); + checkUnnamed2441(o.services); checkTenantProjectPolicy(o.tenantProjectPolicy); } buildCounterTenantProjectConfig--; } -buildUnnamed3632() { +buildUnnamed2442() { var o = new core.List<api.PolicyBinding>(); o.add(buildPolicyBinding()); o.add(buildPolicyBinding()); return o; } -checkUnnamed3632(core.List<api.PolicyBinding> o) { +checkUnnamed2442(core.List<api.PolicyBinding> o) { unittest.expect(o, unittest.hasLength(2)); checkPolicyBinding(o[0]); checkPolicyBinding(o[1]); @@ -2622,7 +2599,7 @@ var o = new api.TenantProjectPolicy(); buildCounterTenantProjectPolicy++; if (buildCounterTenantProjectPolicy < 3) { - o.policyBindings = buildUnnamed3632(); + o.policyBindings = buildUnnamed2442(); } buildCounterTenantProjectPolicy--; return o; @@ -2631,7 +2608,7 @@ checkTenantProjectPolicy(api.TenantProjectPolicy o) { buildCounterTenantProjectPolicy++; if (buildCounterTenantProjectPolicy < 3) { - checkUnnamed3632(o.policyBindings); + checkUnnamed2442(o.policyBindings); } buildCounterTenantProjectPolicy--; } @@ -2659,40 +2636,40 @@ buildCounterTenantResource--; } -buildUnnamed3633() { +buildUnnamed2443() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed3633(core.List<api.Field> o) { +checkUnnamed2443(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); } -buildUnnamed3634() { +buildUnnamed2444() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3634(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')); } -buildUnnamed3635() { +buildUnnamed2445() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed3635(core.List<api.Option> o) { +checkUnnamed2445(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -2703,10 +2680,10 @@ var o = new api.Type(); buildCounterType++; if (buildCounterType < 3) { - o.fields = buildUnnamed3633(); + o.fields = buildUnnamed2443(); o.name = "foo"; - o.oneofs = buildUnnamed3634(); - o.options = buildUnnamed3635(); + o.oneofs = buildUnnamed2444(); + o.options = buildUnnamed2445(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -2717,37 +2694,37 @@ checkType(api.Type o) { buildCounterType++; if (buildCounterType < 3) { - checkUnnamed3633(o.fields); + checkUnnamed2443(o.fields); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3634(o.oneofs); - checkUnnamed3635(o.options); + checkUnnamed2444(o.oneofs); + checkUnnamed2445(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } buildCounterType--; } -buildUnnamed3636() { +buildUnnamed2446() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3636(core.List<core.String> o) { +checkUnnamed2446(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3637() { +buildUnnamed2447() { var o = new core.List<api.UsageRule>(); o.add(buildUsageRule()); o.add(buildUsageRule()); return o; } -checkUnnamed3637(core.List<api.UsageRule> o) { +checkUnnamed2447(core.List<api.UsageRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageRule(o[0]); checkUsageRule(o[1]); @@ -2759,8 +2736,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { o.producerNotificationChannel = "foo"; - o.requirements = buildUnnamed3636(); - o.rules = buildUnnamed3637(); + o.requirements = buildUnnamed2446(); + o.rules = buildUnnamed2447(); } buildCounterUsage--; return o; @@ -2770,8 +2747,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); - checkUnnamed3636(o.requirements); - checkUnnamed3637(o.rules); + checkUnnamed2446(o.requirements); + checkUnnamed2447(o.rules); } buildCounterUsage--; } @@ -2799,59 +2776,6 @@ buildCounterUsageRule--; } -buildUnnamed3638() { - var o = new core.List<api.VisibilityRule>(); - o.add(buildVisibilityRule()); - o.add(buildVisibilityRule()); - return o; -} - -checkUnnamed3638(core.List<api.VisibilityRule> o) { - unittest.expect(o, unittest.hasLength(2)); - checkVisibilityRule(o[0]); - checkVisibilityRule(o[1]); -} - -core.int buildCounterVisibility = 0; -buildVisibility() { - var o = new api.Visibility(); - buildCounterVisibility++; - if (buildCounterVisibility < 3) { - o.rules = buildUnnamed3638(); - } - buildCounterVisibility--; - return o; -} - -checkVisibility(api.Visibility o) { - buildCounterVisibility++; - if (buildCounterVisibility < 3) { - checkUnnamed3638(o.rules); - } - buildCounterVisibility--; -} - -core.int buildCounterVisibilityRule = 0; -buildVisibilityRule() { - var o = new api.VisibilityRule(); - buildCounterVisibilityRule++; - if (buildCounterVisibilityRule < 3) { - o.restriction = "foo"; - o.selector = "foo"; - } - buildCounterVisibilityRule--; - return o; -} - -checkVisibilityRule(api.VisibilityRule o) { - buildCounterVisibilityRule++; - if (buildCounterVisibilityRule < 3) { - unittest.expect(o.restriction, unittest.equals('foo')); - unittest.expect(o.selector, unittest.equals('foo')); - } - buildCounterVisibilityRule--; -} - main() { unittest.group("obj-schema-AddTenantProjectRequest", () { unittest.test("to-json--from-json", () { @@ -2997,14 +2921,6 @@ }); }); - unittest.group("obj-schema-CustomAuthRequirements", () { - unittest.test("to-json--from-json", () { - var o = buildCustomAuthRequirements(); - var od = new api.CustomAuthRequirements.fromJson(o.toJson()); - checkCustomAuthRequirements(od); - }); - }); - unittest.group("obj-schema-CustomError", () { unittest.test("to-json--from-json", () { var o = buildCustomError(); @@ -3421,22 +3337,6 @@ }); }); - unittest.group("obj-schema-Visibility", () { - unittest.test("to-json--from-json", () { - var o = buildVisibility(); - var od = new api.Visibility.fromJson(o.toJson()); - checkVisibility(od); - }); - }); - - unittest.group("obj-schema-VisibilityRule", () { - unittest.test("to-json--from-json", () { - var o = buildVisibilityRule(); - var od = new api.VisibilityRule.fromJson(o.toJson()); - checkVisibilityRule(od); - }); - }); - unittest.group("resource-OperationsResourceApi", () { unittest.test("method--cancel", () { var mock = new HttpServerMock();
diff --git a/generated/googleapis/test/servicecontrol/v1_test.dart b/generated/googleapis/test/servicecontrol/v1_test.dart index c4ca5fc..874784b 100644 --- a/generated/googleapis/test/servicecontrol/v1_test.dart +++ b/generated/googleapis/test/servicecontrol/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1595() { +buildUnnamed2085() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1595(core.List<core.String> o) { +checkUnnamed2085(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -68,7 +68,7 @@ var o = new api.AllocateInfo(); buildCounterAllocateInfo++; if (buildCounterAllocateInfo < 3) { - o.unusedArguments = buildUnnamed1595(); + o.unusedArguments = buildUnnamed2085(); } buildCounterAllocateInfo--; return o; @@ -77,7 +77,7 @@ checkAllocateInfo(api.AllocateInfo o) { buildCounterAllocateInfo++; if (buildCounterAllocateInfo < 3) { - checkUnnamed1595(o.unusedArguments); + checkUnnamed2085(o.unusedArguments); } buildCounterAllocateInfo--; } @@ -103,27 +103,27 @@ buildCounterAllocateQuotaRequest--; } -buildUnnamed1596() { +buildUnnamed2086() { var o = new core.List<api.QuotaError>(); o.add(buildQuotaError()); o.add(buildQuotaError()); return o; } -checkUnnamed1596(core.List<api.QuotaError> o) { +checkUnnamed2086(core.List<api.QuotaError> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaError(o[0]); checkQuotaError(o[1]); } -buildUnnamed1597() { +buildUnnamed2087() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1597(core.List<api.MetricValueSet> o) { +checkUnnamed2087(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); @@ -134,10 +134,10 @@ var o = new api.AllocateQuotaResponse(); buildCounterAllocateQuotaResponse++; if (buildCounterAllocateQuotaResponse < 3) { - o.allocateErrors = buildUnnamed1596(); + o.allocateErrors = buildUnnamed2086(); o.allocateInfo = buildAllocateInfo(); o.operationId = "foo"; - o.quotaMetrics = buildUnnamed1597(); + o.quotaMetrics = buildUnnamed2087(); o.serviceConfigId = "foo"; } buildCounterAllocateQuotaResponse--; @@ -147,29 +147,29 @@ checkAllocateQuotaResponse(api.AllocateQuotaResponse o) { buildCounterAllocateQuotaResponse++; if (buildCounterAllocateQuotaResponse < 3) { - checkUnnamed1596(o.allocateErrors); + checkUnnamed2086(o.allocateErrors); checkAllocateInfo(o.allocateInfo); unittest.expect(o.operationId, unittest.equals('foo')); - checkUnnamed1597(o.quotaMetrics); + checkUnnamed2087(o.quotaMetrics); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterAllocateQuotaResponse--; } -buildUnnamed1598() { +buildUnnamed2088() { var o = new core.List<api.AuthorizationInfo>(); o.add(buildAuthorizationInfo()); o.add(buildAuthorizationInfo()); return o; } -checkUnnamed1598(core.List<api.AuthorizationInfo> o) { +checkUnnamed2088(core.List<api.AuthorizationInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthorizationInfo(o[0]); checkAuthorizationInfo(o[1]); } -buildUnnamed1599() { +buildUnnamed2089() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -184,7 +184,7 @@ return o; } -checkUnnamed1599(core.Map<core.String, core.Object> o) { +checkUnnamed2089(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)); @@ -198,7 +198,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1600() { +buildUnnamed2090() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -213,7 +213,7 @@ return o; } -checkUnnamed1600(core.Map<core.String, core.Object> o) { +checkUnnamed2090(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)); @@ -227,7 +227,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed1601() { +buildUnnamed2091() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -242,7 +242,7 @@ return o; } -checkUnnamed1601(core.Map<core.String, core.Object> o) { +checkUnnamed2091(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)); @@ -256,7 +256,7 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1602() { +buildUnnamed2092() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -271,7 +271,7 @@ return o; } -checkUnnamed1602(core.Map<core.String, core.Object> o) { +checkUnnamed2092(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)); @@ -291,15 +291,15 @@ buildCounterAuditLog++; if (buildCounterAuditLog < 3) { o.authenticationInfo = buildAuthenticationInfo(); - o.authorizationInfo = buildUnnamed1598(); - o.metadata = buildUnnamed1599(); + o.authorizationInfo = buildUnnamed2088(); + o.metadata = buildUnnamed2089(); o.methodName = "foo"; o.numResponseItems = "foo"; - o.request = buildUnnamed1600(); + o.request = buildUnnamed2090(); o.requestMetadata = buildRequestMetadata(); o.resourceName = "foo"; - o.response = buildUnnamed1601(); - o.serviceData = buildUnnamed1602(); + o.response = buildUnnamed2091(); + o.serviceData = buildUnnamed2092(); o.serviceName = "foo"; o.status = buildStatus(); } @@ -311,22 +311,22 @@ buildCounterAuditLog++; if (buildCounterAuditLog < 3) { checkAuthenticationInfo(o.authenticationInfo); - checkUnnamed1598(o.authorizationInfo); - checkUnnamed1599(o.metadata); + checkUnnamed2088(o.authorizationInfo); + checkUnnamed2089(o.metadata); unittest.expect(o.methodName, unittest.equals('foo')); unittest.expect(o.numResponseItems, unittest.equals('foo')); - checkUnnamed1600(o.request); + checkUnnamed2090(o.request); checkRequestMetadata(o.requestMetadata); unittest.expect(o.resourceName, unittest.equals('foo')); - checkUnnamed1601(o.response); - checkUnnamed1602(o.serviceData); + checkUnnamed2091(o.response); + checkUnnamed2092(o.serviceData); unittest.expect(o.serviceName, unittest.equals('foo')); checkStatus(o.status); } buildCounterAuditLog--; } -buildUnnamed1603() { +buildUnnamed2093() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -341,7 +341,7 @@ return o; } -checkUnnamed1603(core.Map<core.String, core.Object> o) { +checkUnnamed2093(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)); @@ -362,7 +362,7 @@ if (buildCounterAuthenticationInfo < 3) { o.authoritySelector = "foo"; o.principalEmail = "foo"; - o.thirdPartyPrincipal = buildUnnamed1603(); + o.thirdPartyPrincipal = buildUnnamed2093(); } buildCounterAuthenticationInfo--; return o; @@ -373,7 +373,7 @@ if (buildCounterAuthenticationInfo < 3) { unittest.expect(o.authoritySelector, unittest.equals('foo')); unittest.expect(o.principalEmail, unittest.equals('foo')); - checkUnnamed1603(o.thirdPartyPrincipal); + checkUnnamed2093(o.thirdPartyPrincipal); } buildCounterAuthenticationInfo--; } @@ -424,14 +424,14 @@ buildCounterCheckError--; } -buildUnnamed1604() { +buildUnnamed2094() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1604(core.List<core.String> o) { +checkUnnamed2094(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -443,7 +443,7 @@ buildCounterCheckInfo++; if (buildCounterCheckInfo < 3) { o.consumerInfo = buildConsumerInfo(); - o.unusedArguments = buildUnnamed1604(); + o.unusedArguments = buildUnnamed2094(); } buildCounterCheckInfo--; return o; @@ -453,7 +453,7 @@ buildCounterCheckInfo++; if (buildCounterCheckInfo < 3) { checkConsumerInfo(o.consumerInfo); - checkUnnamed1604(o.unusedArguments); + checkUnnamed2094(o.unusedArguments); } buildCounterCheckInfo--; } @@ -483,14 +483,14 @@ buildCounterCheckRequest--; } -buildUnnamed1605() { +buildUnnamed2095() { var o = new core.List<api.CheckError>(); o.add(buildCheckError()); o.add(buildCheckError()); return o; } -checkUnnamed1605(core.List<api.CheckError> o) { +checkUnnamed2095(core.List<api.CheckError> o) { unittest.expect(o, unittest.hasLength(2)); checkCheckError(o[0]); checkCheckError(o[1]); @@ -501,7 +501,7 @@ var o = new api.CheckResponse(); buildCounterCheckResponse++; if (buildCounterCheckResponse < 3) { - o.checkErrors = buildUnnamed1605(); + o.checkErrors = buildUnnamed2095(); o.checkInfo = buildCheckInfo(); o.operationId = "foo"; o.quotaInfo = buildQuotaInfo(); @@ -514,7 +514,7 @@ checkCheckResponse(api.CheckResponse o) { buildCounterCheckResponse++; if (buildCounterCheckResponse < 3) { - checkUnnamed1605(o.checkErrors); + checkUnnamed2095(o.checkErrors); checkCheckInfo(o.checkInfo); unittest.expect(o.operationId, unittest.equals('foo')); checkQuotaInfo(o.quotaInfo); @@ -542,14 +542,14 @@ buildCounterConsumerInfo--; } -buildUnnamed1606() { +buildUnnamed2096() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1606(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')); @@ -560,7 +560,7 @@ var o = new api.Distribution(); buildCounterDistribution++; if (buildCounterDistribution < 3) { - o.bucketCounts = buildUnnamed1606(); + o.bucketCounts = buildUnnamed2096(); o.count = "foo"; o.explicitBuckets = buildExplicitBuckets(); o.exponentialBuckets = buildExponentialBuckets(); @@ -577,7 +577,7 @@ checkDistribution(api.Distribution o) { buildCounterDistribution++; if (buildCounterDistribution < 3) { - checkUnnamed1606(o.bucketCounts); + checkUnnamed2096(o.bucketCounts); unittest.expect(o.count, unittest.equals('foo')); checkExplicitBuckets(o.explicitBuckets); checkExponentialBuckets(o.exponentialBuckets); @@ -611,27 +611,27 @@ buildCounterEndReconciliationRequest--; } -buildUnnamed1607() { +buildUnnamed2097() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1607(core.List<api.MetricValueSet> o) { +checkUnnamed2097(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); } -buildUnnamed1608() { +buildUnnamed2098() { var o = new core.List<api.QuotaError>(); o.add(buildQuotaError()); o.add(buildQuotaError()); return o; } -checkUnnamed1608(core.List<api.QuotaError> o) { +checkUnnamed2098(core.List<api.QuotaError> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaError(o[0]); checkQuotaError(o[1]); @@ -643,8 +643,8 @@ buildCounterEndReconciliationResponse++; if (buildCounterEndReconciliationResponse < 3) { o.operationId = "foo"; - o.quotaMetrics = buildUnnamed1607(); - o.reconciliationErrors = buildUnnamed1608(); + o.quotaMetrics = buildUnnamed2097(); + o.reconciliationErrors = buildUnnamed2098(); o.serviceConfigId = "foo"; } buildCounterEndReconciliationResponse--; @@ -655,21 +655,21 @@ buildCounterEndReconciliationResponse++; if (buildCounterEndReconciliationResponse < 3) { unittest.expect(o.operationId, unittest.equals('foo')); - checkUnnamed1607(o.quotaMetrics); - checkUnnamed1608(o.reconciliationErrors); + checkUnnamed2097(o.quotaMetrics); + checkUnnamed2098(o.reconciliationErrors); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterEndReconciliationResponse--; } -buildUnnamed1609() { +buildUnnamed2099() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed1609(core.List<core.double> o) { +checkUnnamed2099(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)); @@ -680,7 +680,7 @@ var o = new api.ExplicitBuckets(); buildCounterExplicitBuckets++; if (buildCounterExplicitBuckets < 3) { - o.bounds = buildUnnamed1609(); + o.bounds = buildUnnamed2099(); } buildCounterExplicitBuckets--; return o; @@ -689,7 +689,7 @@ checkExplicitBuckets(api.ExplicitBuckets o) { buildCounterExplicitBuckets++; if (buildCounterExplicitBuckets < 3) { - checkUnnamed1609(o.bounds); + checkUnnamed2099(o.bounds); } buildCounterExplicitBuckets--; } @@ -740,20 +740,20 @@ buildCounterLinearBuckets--; } -buildUnnamed1610() { +buildUnnamed2100() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1610(core.Map<core.String, core.String> o) { +checkUnnamed2100(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')); } -buildUnnamed1611() { +buildUnnamed2101() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -768,7 +768,7 @@ return o; } -checkUnnamed1611(core.Map<core.String, core.Object> o) { +checkUnnamed2101(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)); @@ -782,7 +782,7 @@ unittest.expect(casted12["string"], unittest.equals('foo')); } -buildUnnamed1612() { +buildUnnamed2102() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -797,7 +797,7 @@ return o; } -checkUnnamed1612(core.Map<core.String, core.Object> o) { +checkUnnamed2102(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)); @@ -817,11 +817,11 @@ buildCounterLogEntry++; if (buildCounterLogEntry < 3) { o.insertId = "foo"; - o.labels = buildUnnamed1610(); + o.labels = buildUnnamed2100(); o.name = "foo"; - o.protoPayload = buildUnnamed1611(); + o.protoPayload = buildUnnamed2101(); o.severity = "foo"; - o.structPayload = buildUnnamed1612(); + o.structPayload = buildUnnamed2102(); o.textPayload = "foo"; o.timestamp = "foo"; } @@ -833,25 +833,25 @@ buildCounterLogEntry++; if (buildCounterLogEntry < 3) { unittest.expect(o.insertId, unittest.equals('foo')); - checkUnnamed1610(o.labels); + checkUnnamed2100(o.labels); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1611(o.protoPayload); + checkUnnamed2101(o.protoPayload); unittest.expect(o.severity, unittest.equals('foo')); - checkUnnamed1612(o.structPayload); + checkUnnamed2102(o.structPayload); unittest.expect(o.textPayload, unittest.equals('foo')); unittest.expect(o.timestamp, unittest.equals('foo')); } buildCounterLogEntry--; } -buildUnnamed1613() { +buildUnnamed2103() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1613(core.Map<core.String, core.String> o) { +checkUnnamed2103(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')); @@ -867,7 +867,7 @@ o.doubleValue = 42.0; o.endTime = "foo"; o.int64Value = "foo"; - o.labels = buildUnnamed1613(); + o.labels = buildUnnamed2103(); o.moneyValue = buildMoney(); o.startTime = "foo"; o.stringValue = "foo"; @@ -884,7 +884,7 @@ unittest.expect(o.doubleValue, unittest.equals(42.0)); unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.int64Value, unittest.equals('foo')); - checkUnnamed1613(o.labels); + checkUnnamed2103(o.labels); checkMoney(o.moneyValue); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.stringValue, unittest.equals('foo')); @@ -892,14 +892,14 @@ buildCounterMetricValue--; } -buildUnnamed1614() { +buildUnnamed2104() { var o = new core.List<api.MetricValue>(); o.add(buildMetricValue()); o.add(buildMetricValue()); return o; } -checkUnnamed1614(core.List<api.MetricValue> o) { +checkUnnamed2104(core.List<api.MetricValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValue(o[0]); checkMetricValue(o[1]); @@ -911,7 +911,7 @@ buildCounterMetricValueSet++; if (buildCounterMetricValueSet < 3) { o.metricName = "foo"; - o.metricValues = buildUnnamed1614(); + o.metricValues = buildUnnamed2104(); } buildCounterMetricValueSet--; return o; @@ -921,7 +921,7 @@ buildCounterMetricValueSet++; if (buildCounterMetricValueSet < 3) { unittest.expect(o.metricName, unittest.equals('foo')); - checkUnnamed1614(o.metricValues); + checkUnnamed2104(o.metricValues); } buildCounterMetricValueSet--; } @@ -949,66 +949,66 @@ buildCounterMoney--; } -buildUnnamed1615() { +buildUnnamed2105() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1615(core.Map<core.String, core.String> o) { +checkUnnamed2105(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')); } -buildUnnamed1616() { +buildUnnamed2106() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed1616(core.List<api.LogEntry> o) { +checkUnnamed2106(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); } -buildUnnamed1617() { +buildUnnamed2107() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1617(core.List<api.MetricValueSet> o) { +checkUnnamed2107(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); } -buildUnnamed1618() { +buildUnnamed2108() { var o = new core.List<api.ResourceInfo>(); o.add(buildResourceInfo()); o.add(buildResourceInfo()); return o; } -checkUnnamed1618(core.List<api.ResourceInfo> o) { +checkUnnamed2108(core.List<api.ResourceInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceInfo(o[0]); checkResourceInfo(o[1]); } -buildUnnamed1619() { +buildUnnamed2109() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1619(core.Map<core.String, core.String> o) { +checkUnnamed2109(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')); @@ -1022,16 +1022,16 @@ o.consumerId = "foo"; o.endTime = "foo"; o.importance = "foo"; - o.labels = buildUnnamed1615(); - o.logEntries = buildUnnamed1616(); - o.metricValueSets = buildUnnamed1617(); + o.labels = buildUnnamed2105(); + o.logEntries = buildUnnamed2106(); + o.metricValueSets = buildUnnamed2107(); o.operationId = "foo"; o.operationName = "foo"; o.quotaProperties = buildQuotaProperties(); o.resourceContainer = "foo"; - o.resources = buildUnnamed1618(); + o.resources = buildUnnamed2108(); o.startTime = "foo"; - o.userLabels = buildUnnamed1619(); + o.userLabels = buildUnnamed2109(); } buildCounterOperation--; return o; @@ -1043,16 +1043,16 @@ unittest.expect(o.consumerId, unittest.equals('foo')); unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.importance, unittest.equals('foo')); - checkUnnamed1615(o.labels); - checkUnnamed1616(o.logEntries); - checkUnnamed1617(o.metricValueSets); + checkUnnamed2105(o.labels); + checkUnnamed2106(o.logEntries); + checkUnnamed2107(o.metricValueSets); unittest.expect(o.operationId, unittest.equals('foo')); unittest.expect(o.operationName, unittest.equals('foo')); checkQuotaProperties(o.quotaProperties); unittest.expect(o.resourceContainer, unittest.equals('foo')); - checkUnnamed1618(o.resources); + checkUnnamed2108(o.resources); unittest.expect(o.startTime, unittest.equals('foo')); - checkUnnamed1619(o.userLabels); + checkUnnamed2109(o.userLabels); } buildCounterOperation--; } @@ -1080,40 +1080,40 @@ buildCounterQuotaError--; } -buildUnnamed1620() { +buildUnnamed2110() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1620(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')); } -buildUnnamed1621() { +buildUnnamed2111() { var o = new core.Map<core.String, core.int>(); o["x"] = 42; o["y"] = 42; return o; } -checkUnnamed1621(core.Map<core.String, core.int> o) { +checkUnnamed2111(core.Map<core.String, core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42)); unittest.expect(o["y"], unittest.equals(42)); } -buildUnnamed1622() { +buildUnnamed2112() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1622(core.List<api.MetricValueSet> o) { +checkUnnamed2112(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); @@ -1124,9 +1124,9 @@ var o = new api.QuotaInfo(); buildCounterQuotaInfo++; if (buildCounterQuotaInfo < 3) { - o.limitExceeded = buildUnnamed1620(); - o.quotaConsumed = buildUnnamed1621(); - o.quotaMetrics = buildUnnamed1622(); + o.limitExceeded = buildUnnamed2110(); + o.quotaConsumed = buildUnnamed2111(); + o.quotaMetrics = buildUnnamed2112(); } buildCounterQuotaInfo--; return o; @@ -1135,34 +1135,34 @@ checkQuotaInfo(api.QuotaInfo o) { buildCounterQuotaInfo++; if (buildCounterQuotaInfo < 3) { - checkUnnamed1620(o.limitExceeded); - checkUnnamed1621(o.quotaConsumed); - checkUnnamed1622(o.quotaMetrics); + checkUnnamed2110(o.limitExceeded); + checkUnnamed2111(o.quotaConsumed); + checkUnnamed2112(o.quotaMetrics); } buildCounterQuotaInfo--; } -buildUnnamed1623() { +buildUnnamed2113() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1623(core.Map<core.String, core.String> o) { +checkUnnamed2113(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')); } -buildUnnamed1624() { +buildUnnamed2114() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1624(core.List<api.MetricValueSet> o) { +checkUnnamed2114(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); @@ -1174,10 +1174,10 @@ buildCounterQuotaOperation++; if (buildCounterQuotaOperation < 3) { o.consumerId = "foo"; - o.labels = buildUnnamed1623(); + o.labels = buildUnnamed2113(); o.methodName = "foo"; o.operationId = "foo"; - o.quotaMetrics = buildUnnamed1624(); + o.quotaMetrics = buildUnnamed2114(); o.quotaMode = "foo"; } buildCounterQuotaOperation--; @@ -1188,10 +1188,10 @@ buildCounterQuotaOperation++; if (buildCounterQuotaOperation < 3) { unittest.expect(o.consumerId, unittest.equals('foo')); - checkUnnamed1623(o.labels); + checkUnnamed2113(o.labels); unittest.expect(o.methodName, unittest.equals('foo')); unittest.expect(o.operationId, unittest.equals('foo')); - checkUnnamed1624(o.quotaMetrics); + checkUnnamed2114(o.quotaMetrics); unittest.expect(o.quotaMode, unittest.equals('foo')); } buildCounterQuotaOperation--; @@ -1237,27 +1237,27 @@ buildCounterReleaseQuotaRequest--; } -buildUnnamed1625() { +buildUnnamed2115() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1625(core.List<api.MetricValueSet> o) { +checkUnnamed2115(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); } -buildUnnamed1626() { +buildUnnamed2116() { var o = new core.List<api.QuotaError>(); o.add(buildQuotaError()); o.add(buildQuotaError()); return o; } -checkUnnamed1626(core.List<api.QuotaError> o) { +checkUnnamed2116(core.List<api.QuotaError> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaError(o[0]); checkQuotaError(o[1]); @@ -1269,8 +1269,8 @@ buildCounterReleaseQuotaResponse++; if (buildCounterReleaseQuotaResponse < 3) { o.operationId = "foo"; - o.quotaMetrics = buildUnnamed1625(); - o.releaseErrors = buildUnnamed1626(); + o.quotaMetrics = buildUnnamed2115(); + o.releaseErrors = buildUnnamed2116(); o.serviceConfigId = "foo"; } buildCounterReleaseQuotaResponse--; @@ -1281,8 +1281,8 @@ buildCounterReleaseQuotaResponse++; if (buildCounterReleaseQuotaResponse < 3) { unittest.expect(o.operationId, unittest.equals('foo')); - checkUnnamed1625(o.quotaMetrics); - checkUnnamed1626(o.releaseErrors); + checkUnnamed2115(o.quotaMetrics); + checkUnnamed2116(o.releaseErrors); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterReleaseQuotaResponse--; @@ -1330,14 +1330,14 @@ buildCounterReportInfo--; } -buildUnnamed1627() { +buildUnnamed2117() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1627(core.List<api.Operation> o) { +checkUnnamed2117(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1348,7 +1348,7 @@ var o = new api.ReportRequest(); buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - o.operations = buildUnnamed1627(); + o.operations = buildUnnamed2117(); o.serviceConfigId = "foo"; } buildCounterReportRequest--; @@ -1358,33 +1358,33 @@ checkReportRequest(api.ReportRequest o) { buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - checkUnnamed1627(o.operations); + checkUnnamed2117(o.operations); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterReportRequest--; } -buildUnnamed1628() { +buildUnnamed2118() { var o = new core.List<api.ReportError>(); o.add(buildReportError()); o.add(buildReportError()); return o; } -checkUnnamed1628(core.List<api.ReportError> o) { +checkUnnamed2118(core.List<api.ReportError> o) { unittest.expect(o, unittest.hasLength(2)); checkReportError(o[0]); checkReportError(o[1]); } -buildUnnamed1629() { +buildUnnamed2119() { var o = new core.List<api.ReportInfo>(); o.add(buildReportInfo()); o.add(buildReportInfo()); return o; } -checkUnnamed1629(core.List<api.ReportInfo> o) { +checkUnnamed2119(core.List<api.ReportInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkReportInfo(o[0]); checkReportInfo(o[1]); @@ -1395,8 +1395,8 @@ var o = new api.ReportResponse(); buildCounterReportResponse++; if (buildCounterReportResponse < 3) { - o.reportErrors = buildUnnamed1628(); - o.reportInfos = buildUnnamed1629(); + o.reportErrors = buildUnnamed2118(); + o.reportInfos = buildUnnamed2119(); o.serviceConfigId = "foo"; } buildCounterReportResponse--; @@ -1406,8 +1406,8 @@ checkReportResponse(api.ReportResponse o) { buildCounterReportResponse++; if (buildCounterReportResponse < 3) { - checkUnnamed1628(o.reportErrors); - checkUnnamed1629(o.reportInfos); + checkUnnamed2118(o.reportErrors); + checkUnnamed2119(o.reportInfos); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterReportResponse--; @@ -1478,27 +1478,27 @@ buildCounterStartReconciliationRequest--; } -buildUnnamed1630() { +buildUnnamed2120() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1630(core.List<api.MetricValueSet> o) { +checkUnnamed2120(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); } -buildUnnamed1631() { +buildUnnamed2121() { var o = new core.List<api.QuotaError>(); o.add(buildQuotaError()); o.add(buildQuotaError()); return o; } -checkUnnamed1631(core.List<api.QuotaError> o) { +checkUnnamed2121(core.List<api.QuotaError> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaError(o[0]); checkQuotaError(o[1]); @@ -1510,8 +1510,8 @@ buildCounterStartReconciliationResponse++; if (buildCounterStartReconciliationResponse < 3) { o.operationId = "foo"; - o.quotaMetrics = buildUnnamed1630(); - o.reconciliationErrors = buildUnnamed1631(); + o.quotaMetrics = buildUnnamed2120(); + o.reconciliationErrors = buildUnnamed2121(); o.serviceConfigId = "foo"; } buildCounterStartReconciliationResponse--; @@ -1522,14 +1522,14 @@ buildCounterStartReconciliationResponse++; if (buildCounterStartReconciliationResponse < 3) { unittest.expect(o.operationId, unittest.equals('foo')); - checkUnnamed1630(o.quotaMetrics); - checkUnnamed1631(o.reconciliationErrors); + checkUnnamed2120(o.quotaMetrics); + checkUnnamed2121(o.reconciliationErrors); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterStartReconciliationResponse--; } -buildUnnamed1632() { +buildUnnamed2122() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1544,7 +1544,7 @@ return o; } -checkUnnamed1632(core.Map<core.String, core.Object> o) { +checkUnnamed2122(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted15 = (o["x"]) as core.Map; unittest.expect(casted15, unittest.hasLength(3)); @@ -1558,17 +1558,17 @@ unittest.expect(casted16["string"], unittest.equals('foo')); } -buildUnnamed1633() { +buildUnnamed2123() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1632()); - o.add(buildUnnamed1632()); + o.add(buildUnnamed2122()); + o.add(buildUnnamed2122()); return o; } -checkUnnamed1633(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2123(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1632(o[0]); - checkUnnamed1632(o[1]); + checkUnnamed2122(o[0]); + checkUnnamed2122(o[1]); } core.int buildCounterStatus = 0; @@ -1577,7 +1577,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1633(); + o.details = buildUnnamed2123(); o.message = "foo"; } buildCounterStatus--; @@ -1588,7 +1588,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1633(o.details); + checkUnnamed2123(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 d00976b..77f25e5 100644 --- a/generated/googleapis/test/servicemanagement/v1_test.dart +++ b/generated/googleapis/test/servicemanagement/v1_test.dart
@@ -69,40 +69,40 @@ buildCounterAdvice--; } -buildUnnamed2894() { +buildUnnamed4321() { var o = new core.List<api.Method>(); o.add(buildMethod()); o.add(buildMethod()); return o; } -checkUnnamed2894(core.List<api.Method> o) { +checkUnnamed4321(core.List<api.Method> o) { unittest.expect(o, unittest.hasLength(2)); checkMethod(o[0]); checkMethod(o[1]); } -buildUnnamed2895() { +buildUnnamed4322() { var o = new core.List<api.Mixin>(); o.add(buildMixin()); o.add(buildMixin()); return o; } -checkUnnamed2895(core.List<api.Mixin> o) { +checkUnnamed4322(core.List<api.Mixin> o) { unittest.expect(o, unittest.hasLength(2)); checkMixin(o[0]); checkMixin(o[1]); } -buildUnnamed2896() { +buildUnnamed4323() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed2896(core.List<api.Option> o) { +checkUnnamed4323(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -113,10 +113,10 @@ var o = new api.Api(); buildCounterApi++; if (buildCounterApi < 3) { - o.methods = buildUnnamed2894(); - o.mixins = buildUnnamed2895(); + o.methods = buildUnnamed4321(); + o.mixins = buildUnnamed4322(); o.name = "foo"; - o.options = buildUnnamed2896(); + o.options = buildUnnamed4323(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; o.version = "foo"; @@ -128,10 +128,10 @@ checkApi(api.Api o) { buildCounterApi++; if (buildCounterApi < 3) { - checkUnnamed2894(o.methods); - checkUnnamed2895(o.mixins); + checkUnnamed4321(o.methods); + checkUnnamed4322(o.mixins); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2896(o.options); + checkUnnamed4323(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -139,14 +139,14 @@ buildCounterApi--; } -buildUnnamed2897() { +buildUnnamed4324() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed2897(core.List<api.AuditLogConfig> o) { +checkUnnamed4324(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -157,7 +157,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed2897(); + o.auditLogConfigs = buildUnnamed4324(); o.service = "foo"; } buildCounterAuditConfig--; @@ -167,20 +167,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed2897(o.auditLogConfigs); + checkUnnamed4324(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed2898() { +buildUnnamed4325() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2898(core.List<core.String> o) { +checkUnnamed4325(core.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,7 +191,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed2898(); + o.exemptedMembers = buildUnnamed4325(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -201,7 +201,7 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed2898(o.exemptedMembers); + checkUnnamed4325(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; @@ -255,27 +255,27 @@ buildCounterAuthRequirement--; } -buildUnnamed2899() { +buildUnnamed4326() { var o = new core.List<api.AuthProvider>(); o.add(buildAuthProvider()); o.add(buildAuthProvider()); return o; } -checkUnnamed2899(core.List<api.AuthProvider> o) { +checkUnnamed4326(core.List<api.AuthProvider> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthProvider(o[0]); checkAuthProvider(o[1]); } -buildUnnamed2900() { +buildUnnamed4327() { var o = new core.List<api.AuthenticationRule>(); o.add(buildAuthenticationRule()); o.add(buildAuthenticationRule()); return o; } -checkUnnamed2900(core.List<api.AuthenticationRule> o) { +checkUnnamed4327(core.List<api.AuthenticationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthenticationRule(o[0]); checkAuthenticationRule(o[1]); @@ -286,8 +286,8 @@ var o = new api.Authentication(); buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - o.providers = buildUnnamed2899(); - o.rules = buildUnnamed2900(); + o.providers = buildUnnamed4326(); + o.rules = buildUnnamed4327(); } buildCounterAuthentication--; return o; @@ -296,20 +296,20 @@ checkAuthentication(api.Authentication o) { buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - checkUnnamed2899(o.providers); - checkUnnamed2900(o.rules); + checkUnnamed4326(o.providers); + checkUnnamed4327(o.rules); } buildCounterAuthentication--; } -buildUnnamed2901() { +buildUnnamed4328() { var o = new core.List<api.AuthRequirement>(); o.add(buildAuthRequirement()); o.add(buildAuthRequirement()); return o; } -checkUnnamed2901(core.List<api.AuthRequirement> o) { +checkUnnamed4328(core.List<api.AuthRequirement> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthRequirement(o[0]); checkAuthRequirement(o[1]); @@ -321,9 +321,8 @@ buildCounterAuthenticationRule++; if (buildCounterAuthenticationRule < 3) { o.allowWithoutCredential = true; - o.customAuth = buildCustomAuthRequirements(); o.oauth = buildOAuthRequirements(); - o.requirements = buildUnnamed2901(); + o.requirements = buildUnnamed4328(); o.selector = "foo"; } buildCounterAuthenticationRule--; @@ -334,9 +333,8 @@ buildCounterAuthenticationRule++; if (buildCounterAuthenticationRule < 3) { unittest.expect(o.allowWithoutCredential, unittest.isTrue); - checkCustomAuthRequirements(o.customAuth); checkOAuthRequirements(o.oauth); - checkUnnamed2901(o.requirements); + checkUnnamed4328(o.requirements); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterAuthenticationRule--; @@ -361,14 +359,14 @@ buildCounterAuthorizationConfig--; } -buildUnnamed2902() { +buildUnnamed4329() { var o = new core.List<api.BackendRule>(); o.add(buildBackendRule()); o.add(buildBackendRule()); return o; } -checkUnnamed2902(core.List<api.BackendRule> o) { +checkUnnamed4329(core.List<api.BackendRule> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendRule(o[0]); checkBackendRule(o[1]); @@ -379,7 +377,7 @@ var o = new api.Backend(); buildCounterBackend++; if (buildCounterBackend < 3) { - o.rules = buildUnnamed2902(); + o.rules = buildUnnamed4329(); } buildCounterBackend--; return o; @@ -388,7 +386,7 @@ checkBackend(api.Backend o) { buildCounterBackend++; if (buildCounterBackend < 3) { - checkUnnamed2902(o.rules); + checkUnnamed4329(o.rules); } buildCounterBackend--; } @@ -418,14 +416,14 @@ buildCounterBackendRule--; } -buildUnnamed2903() { +buildUnnamed4330() { var o = new core.List<api.BillingDestination>(); o.add(buildBillingDestination()); o.add(buildBillingDestination()); return o; } -checkUnnamed2903(core.List<api.BillingDestination> o) { +checkUnnamed4330(core.List<api.BillingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkBillingDestination(o[0]); checkBillingDestination(o[1]); @@ -436,7 +434,7 @@ var o = new api.Billing(); buildCounterBilling++; if (buildCounterBilling < 3) { - o.consumerDestinations = buildUnnamed2903(); + o.consumerDestinations = buildUnnamed4330(); } buildCounterBilling--; return o; @@ -445,19 +443,19 @@ checkBilling(api.Billing o) { buildCounterBilling++; if (buildCounterBilling < 3) { - checkUnnamed2903(o.consumerDestinations); + checkUnnamed4330(o.consumerDestinations); } buildCounterBilling--; } -buildUnnamed2904() { +buildUnnamed4331() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2904(core.List<core.String> o) { +checkUnnamed4331(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -468,7 +466,7 @@ var o = new api.BillingDestination(); buildCounterBillingDestination++; if (buildCounterBillingDestination < 3) { - o.metrics = buildUnnamed2904(); + o.metrics = buildUnnamed4331(); o.monitoredResource = "foo"; } buildCounterBillingDestination--; @@ -478,20 +476,20 @@ checkBillingDestination(api.BillingDestination o) { buildCounterBillingDestination++; if (buildCounterBillingDestination < 3) { - checkUnnamed2904(o.metrics); + checkUnnamed4331(o.metrics); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterBillingDestination--; } -buildUnnamed2905() { +buildUnnamed4332() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2905(core.List<core.String> o) { +checkUnnamed4332(core.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,8 +500,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.condition = buildExpr(); - o.members = buildUnnamed2905(); + o.members = buildUnnamed4332(); o.role = "foo"; } buildCounterBinding--; @@ -513,21 +510,20 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkExpr(o.condition); - checkUnnamed2905(o.members); + checkUnnamed4332(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed2906() { +buildUnnamed4333() { var o = new core.List<api.ConfigChange>(); o.add(buildConfigChange()); o.add(buildConfigChange()); return o; } -checkUnnamed2906(core.List<api.ConfigChange> o) { +checkUnnamed4333(core.List<api.ConfigChange> o) { unittest.expect(o, unittest.hasLength(2)); checkConfigChange(o[0]); checkConfigChange(o[1]); @@ -538,7 +534,7 @@ var o = new api.ChangeReport(); buildCounterChangeReport++; if (buildCounterChangeReport < 3) { - o.configChanges = buildUnnamed2906(); + o.configChanges = buildUnnamed4333(); } buildCounterChangeReport--; return o; @@ -547,19 +543,19 @@ checkChangeReport(api.ChangeReport o) { buildCounterChangeReport++; if (buildCounterChangeReport < 3) { - checkUnnamed2906(o.configChanges); + checkUnnamed4333(o.configChanges); } buildCounterChangeReport--; } -buildUnnamed2907() { +buildUnnamed4334() { var o = new core.List<api.Advice>(); o.add(buildAdvice()); o.add(buildAdvice()); return o; } -checkUnnamed2907(core.List<api.Advice> o) { +checkUnnamed4334(core.List<api.Advice> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvice(o[0]); checkAdvice(o[1]); @@ -570,7 +566,7 @@ var o = new api.ConfigChange(); buildCounterConfigChange++; if (buildCounterConfigChange < 3) { - o.advices = buildUnnamed2907(); + o.advices = buildUnnamed4334(); o.changeType = "foo"; o.element = "foo"; o.newValue = "foo"; @@ -583,7 +579,7 @@ checkConfigChange(api.ConfigChange o) { buildCounterConfigChange++; if (buildCounterConfigChange < 3) { - checkUnnamed2907(o.advices); + checkUnnamed4334(o.advices); unittest.expect(o.changeType, unittest.equals('foo')); unittest.expect(o.element, unittest.equals('foo')); unittest.expect(o.newValue, unittest.equals('foo')); @@ -634,14 +630,14 @@ buildCounterConfigRef--; } -buildUnnamed2908() { +buildUnnamed4335() { var o = new core.List<api.ConfigFile>(); o.add(buildConfigFile()); o.add(buildConfigFile()); return o; } -checkUnnamed2908(core.List<api.ConfigFile> o) { +checkUnnamed4335(core.List<api.ConfigFile> o) { unittest.expect(o, unittest.hasLength(2)); checkConfigFile(o[0]); checkConfigFile(o[1]); @@ -652,7 +648,7 @@ var o = new api.ConfigSource(); buildCounterConfigSource++; if (buildCounterConfigSource < 3) { - o.files = buildUnnamed2908(); + o.files = buildUnnamed4335(); o.id = "foo"; } buildCounterConfigSource--; @@ -662,20 +658,20 @@ checkConfigSource(api.ConfigSource o) { buildCounterConfigSource++; if (buildCounterConfigSource < 3) { - checkUnnamed2908(o.files); + checkUnnamed4335(o.files); unittest.expect(o.id, unittest.equals('foo')); } buildCounterConfigSource--; } -buildUnnamed2909() { +buildUnnamed4336() { var o = new core.List<api.ContextRule>(); o.add(buildContextRule()); o.add(buildContextRule()); return o; } -checkUnnamed2909(core.List<api.ContextRule> o) { +checkUnnamed4336(core.List<api.ContextRule> o) { unittest.expect(o, unittest.hasLength(2)); checkContextRule(o[0]); checkContextRule(o[1]); @@ -686,7 +682,7 @@ var o = new api.Context(); buildCounterContext++; if (buildCounterContext < 3) { - o.rules = buildUnnamed2909(); + o.rules = buildUnnamed4336(); } buildCounterContext--; return o; @@ -695,32 +691,58 @@ checkContext(api.Context o) { buildCounterContext++; if (buildCounterContext < 3) { - checkUnnamed2909(o.rules); + checkUnnamed4336(o.rules); } buildCounterContext--; } -buildUnnamed2910() { +buildUnnamed4337() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2910(core.List<core.String> o) { +checkUnnamed4337(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2911() { +buildUnnamed4338() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2911(core.List<core.String> o) { +checkUnnamed4338(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4339() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4339(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4340() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4340(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -731,8 +753,10 @@ var o = new api.ContextRule(); buildCounterContextRule++; if (buildCounterContextRule < 3) { - o.provided = buildUnnamed2910(); - o.requested = buildUnnamed2911(); + o.allowedRequestExtensions = buildUnnamed4337(); + o.allowedResponseExtensions = buildUnnamed4338(); + o.provided = buildUnnamed4339(); + o.requested = buildUnnamed4340(); o.selector = "foo"; } buildCounterContextRule--; @@ -742,8 +766,10 @@ checkContextRule(api.ContextRule o) { buildCounterContextRule++; if (buildCounterContextRule < 3) { - checkUnnamed2910(o.provided); - checkUnnamed2911(o.requested); + checkUnnamed4337(o.allowedRequestExtensions); + checkUnnamed4338(o.allowedResponseExtensions); + checkUnnamed4339(o.provided); + checkUnnamed4340(o.requested); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterContextRule--; @@ -768,46 +794,27 @@ buildCounterControl--; } -core.int buildCounterCustomAuthRequirements = 0; -buildCustomAuthRequirements() { - var o = new api.CustomAuthRequirements(); - buildCounterCustomAuthRequirements++; - if (buildCounterCustomAuthRequirements < 3) { - o.provider = "foo"; - } - buildCounterCustomAuthRequirements--; - return o; -} - -checkCustomAuthRequirements(api.CustomAuthRequirements o) { - buildCounterCustomAuthRequirements++; - if (buildCounterCustomAuthRequirements < 3) { - unittest.expect(o.provider, unittest.equals('foo')); - } - buildCounterCustomAuthRequirements--; -} - -buildUnnamed2912() { +buildUnnamed4341() { var o = new core.List<api.CustomErrorRule>(); o.add(buildCustomErrorRule()); o.add(buildCustomErrorRule()); return o; } -checkUnnamed2912(core.List<api.CustomErrorRule> o) { +checkUnnamed4341(core.List<api.CustomErrorRule> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomErrorRule(o[0]); checkCustomErrorRule(o[1]); } -buildUnnamed2913() { +buildUnnamed4342() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2913(core.List<core.String> o) { +checkUnnamed4342(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -818,8 +825,8 @@ var o = new api.CustomError(); buildCounterCustomError++; if (buildCounterCustomError < 3) { - o.rules = buildUnnamed2912(); - o.types = buildUnnamed2913(); + o.rules = buildUnnamed4341(); + o.types = buildUnnamed4342(); } buildCounterCustomError--; return o; @@ -828,8 +835,8 @@ checkCustomError(api.CustomError o) { buildCounterCustomError++; if (buildCounterCustomError < 3) { - checkUnnamed2912(o.rules); - checkUnnamed2913(o.types); + checkUnnamed4341(o.rules); + checkUnnamed4342(o.types); } buildCounterCustomError--; } @@ -933,27 +940,27 @@ buildCounterDisableServiceRequest--; } -buildUnnamed2914() { +buildUnnamed4343() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed2914(core.List<api.Page> o) { +checkUnnamed4343(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed2915() { +buildUnnamed4344() { var o = new core.List<api.DocumentationRule>(); o.add(buildDocumentationRule()); o.add(buildDocumentationRule()); return o; } -checkUnnamed2915(core.List<api.DocumentationRule> o) { +checkUnnamed4344(core.List<api.DocumentationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkDocumentationRule(o[0]); checkDocumentationRule(o[1]); @@ -966,8 +973,8 @@ if (buildCounterDocumentation < 3) { o.documentationRootUrl = "foo"; o.overview = "foo"; - o.pages = buildUnnamed2914(); - o.rules = buildUnnamed2915(); + o.pages = buildUnnamed4343(); + o.rules = buildUnnamed4344(); o.summary = "foo"; } buildCounterDocumentation--; @@ -979,8 +986,8 @@ if (buildCounterDocumentation < 3) { unittest.expect(o.documentationRootUrl, unittest.equals('foo')); unittest.expect(o.overview, unittest.equals('foo')); - checkUnnamed2914(o.pages); - checkUnnamed2915(o.rules); + checkUnnamed4343(o.pages); + checkUnnamed4344(o.rules); unittest.expect(o.summary, unittest.equals('foo')); } buildCounterDocumentation--; @@ -1028,27 +1035,27 @@ buildCounterEnableServiceRequest--; } -buildUnnamed2916() { +buildUnnamed4345() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2916(core.List<core.String> o) { +checkUnnamed4345(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2917() { +buildUnnamed4346() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2917(core.List<core.String> o) { +checkUnnamed4346(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1059,9 +1066,9 @@ var o = new api.Endpoint(); buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - o.aliases = buildUnnamed2916(); + o.aliases = buildUnnamed4345(); o.allowCors = true; - o.features = buildUnnamed2917(); + o.features = buildUnnamed4346(); o.name = "foo"; o.target = "foo"; } @@ -1072,36 +1079,36 @@ checkEndpoint(api.Endpoint o) { buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - checkUnnamed2916(o.aliases); + checkUnnamed4345(o.aliases); unittest.expect(o.allowCors, unittest.isTrue); - checkUnnamed2917(o.features); + checkUnnamed4346(o.features); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); } buildCounterEndpoint--; } -buildUnnamed2918() { +buildUnnamed4347() { var o = new core.List<api.EnumValue>(); o.add(buildEnumValue()); o.add(buildEnumValue()); return o; } -checkUnnamed2918(core.List<api.EnumValue> o) { +checkUnnamed4347(core.List<api.EnumValue> o) { unittest.expect(o, unittest.hasLength(2)); checkEnumValue(o[0]); checkEnumValue(o[1]); } -buildUnnamed2919() { +buildUnnamed4348() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed2919(core.List<api.Option> o) { +checkUnnamed4348(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1112,9 +1119,9 @@ var o = new api.Enum(); buildCounterEnum++; if (buildCounterEnum < 3) { - o.enumvalue = buildUnnamed2918(); + o.enumvalue = buildUnnamed4347(); o.name = "foo"; - o.options = buildUnnamed2919(); + o.options = buildUnnamed4348(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -1125,23 +1132,23 @@ checkEnum(api.Enum o) { buildCounterEnum++; if (buildCounterEnum < 3) { - checkUnnamed2918(o.enumvalue); + checkUnnamed4347(o.enumvalue); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2919(o.options); + checkUnnamed4348(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } buildCounterEnum--; } -buildUnnamed2920() { +buildUnnamed4349() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed2920(core.List<api.Option> o) { +checkUnnamed4349(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1154,7 +1161,7 @@ if (buildCounterEnumValue < 3) { o.name = "foo"; o.number = 42; - o.options = buildUnnamed2920(); + o.options = buildUnnamed4349(); } buildCounterEnumValue--; return o; @@ -1165,7 +1172,7 @@ if (buildCounterEnumValue < 3) { unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); - checkUnnamed2920(o.options); + checkUnnamed4349(o.options); } buildCounterEnumValue--; } @@ -1189,39 +1196,14 @@ buildCounterExperimental--; } -core.int buildCounterExpr = 0; -buildExpr() { - var o = new api.Expr(); - buildCounterExpr++; - if (buildCounterExpr < 3) { - o.description = "foo"; - o.expression = "foo"; - o.location = "foo"; - o.title = "foo"; - } - buildCounterExpr--; - return o; -} - -checkExpr(api.Expr o) { - buildCounterExpr++; - if (buildCounterExpr < 3) { - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.expression, unittest.equals('foo')); - unittest.expect(o.location, unittest.equals('foo')); - unittest.expect(o.title, unittest.equals('foo')); - } - buildCounterExpr--; -} - -buildUnnamed2921() { +buildUnnamed4350() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed2921(core.List<api.Option> o) { +checkUnnamed4350(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1239,7 +1221,7 @@ o.name = "foo"; o.number = 42; o.oneofIndex = 42; - o.options = buildUnnamed2921(); + o.options = buildUnnamed4350(); o.packed = true; o.typeUrl = "foo"; } @@ -1257,14 +1239,14 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); unittest.expect(o.oneofIndex, unittest.equals(42)); - checkUnnamed2921(o.options); + checkUnnamed4350(o.options); unittest.expect(o.packed, unittest.isTrue); unittest.expect(o.typeUrl, unittest.equals('foo')); } buildCounterField--; } -buildUnnamed2922() { +buildUnnamed4351() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1279,7 +1261,7 @@ return o; } -checkUnnamed2922(core.Map<core.String, core.Object> o) { +checkUnnamed4351(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)); @@ -1293,7 +1275,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2923() { +buildUnnamed4352() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1308,7 +1290,7 @@ return o; } -checkUnnamed2923(core.Map<core.String, core.Object> o) { +checkUnnamed4352(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)); @@ -1327,8 +1309,8 @@ var o = new api.GenerateConfigReportRequest(); buildCounterGenerateConfigReportRequest++; if (buildCounterGenerateConfigReportRequest < 3) { - o.newConfig = buildUnnamed2922(); - o.oldConfig = buildUnnamed2923(); + o.newConfig = buildUnnamed4351(); + o.oldConfig = buildUnnamed4352(); } buildCounterGenerateConfigReportRequest--; return o; @@ -1337,33 +1319,33 @@ checkGenerateConfigReportRequest(api.GenerateConfigReportRequest o) { buildCounterGenerateConfigReportRequest++; if (buildCounterGenerateConfigReportRequest < 3) { - checkUnnamed2922(o.newConfig); - checkUnnamed2923(o.oldConfig); + checkUnnamed4351(o.newConfig); + checkUnnamed4352(o.oldConfig); } buildCounterGenerateConfigReportRequest--; } -buildUnnamed2924() { +buildUnnamed4353() { var o = new core.List<api.ChangeReport>(); o.add(buildChangeReport()); o.add(buildChangeReport()); return o; } -checkUnnamed2924(core.List<api.ChangeReport> o) { +checkUnnamed4353(core.List<api.ChangeReport> o) { unittest.expect(o, unittest.hasLength(2)); checkChangeReport(o[0]); checkChangeReport(o[1]); } -buildUnnamed2925() { +buildUnnamed4354() { var o = new core.List<api.Diagnostic>(); o.add(buildDiagnostic()); o.add(buildDiagnostic()); return o; } -checkUnnamed2925(core.List<api.Diagnostic> o) { +checkUnnamed4354(core.List<api.Diagnostic> o) { unittest.expect(o, unittest.hasLength(2)); checkDiagnostic(o[0]); checkDiagnostic(o[1]); @@ -1374,8 +1356,8 @@ var o = new api.GenerateConfigReportResponse(); buildCounterGenerateConfigReportResponse++; if (buildCounterGenerateConfigReportResponse < 3) { - o.changeReports = buildUnnamed2924(); - o.diagnostics = buildUnnamed2925(); + o.changeReports = buildUnnamed4353(); + o.diagnostics = buildUnnamed4354(); o.id = "foo"; o.serviceName = "foo"; } @@ -1386,8 +1368,8 @@ checkGenerateConfigReportResponse(api.GenerateConfigReportResponse o) { buildCounterGenerateConfigReportResponse++; if (buildCounterGenerateConfigReportResponse < 3) { - checkUnnamed2924(o.changeReports); - checkUnnamed2925(o.diagnostics); + checkUnnamed4353(o.changeReports); + checkUnnamed4354(o.diagnostics); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.serviceName, unittest.equals('foo')); } @@ -1409,14 +1391,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed2926() { +buildUnnamed4355() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed2926(core.List<api.HttpRule> o) { +checkUnnamed4355(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -1428,7 +1410,7 @@ buildCounterHttp++; if (buildCounterHttp < 3) { o.fullyDecodeReservedExpansion = true; - o.rules = buildUnnamed2926(); + o.rules = buildUnnamed4355(); } buildCounterHttp--; return o; @@ -1438,19 +1420,19 @@ buildCounterHttp++; if (buildCounterHttp < 3) { unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); - checkUnnamed2926(o.rules); + checkUnnamed4355(o.rules); } buildCounterHttp--; } -buildUnnamed2927() { +buildUnnamed4356() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed2927(core.List<api.HttpRule> o) { +checkUnnamed4356(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -1461,7 +1443,7 @@ var o = new api.HttpRule(); buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - o.additionalBindings = buildUnnamed2927(); + o.additionalBindings = buildUnnamed4356(); o.body = "foo"; o.custom = buildCustomHttpPattern(); o.delete = "foo"; @@ -1480,7 +1462,7 @@ checkHttpRule(api.HttpRule o) { buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - checkUnnamed2927(o.additionalBindings); + checkUnnamed4356(o.additionalBindings); unittest.expect(o.body, unittest.equals('foo')); checkCustomHttpPattern(o.custom); unittest.expect(o.delete, unittest.equals('foo')); @@ -1518,14 +1500,14 @@ buildCounterLabelDescriptor--; } -buildUnnamed2928() { +buildUnnamed4357() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2928(core.List<api.Operation> o) { +checkUnnamed4357(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1537,7 +1519,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed2928(); + o.operations = buildUnnamed4357(); } buildCounterListOperationsResponse--; return o; @@ -1547,19 +1529,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2928(o.operations); + checkUnnamed4357(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed2929() { +buildUnnamed4358() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed2929(core.List<api.Service> o) { +checkUnnamed4358(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -1571,7 +1553,7 @@ buildCounterListServiceConfigsResponse++; if (buildCounterListServiceConfigsResponse < 3) { o.nextPageToken = "foo"; - o.serviceConfigs = buildUnnamed2929(); + o.serviceConfigs = buildUnnamed4358(); } buildCounterListServiceConfigsResponse--; return o; @@ -1581,19 +1563,19 @@ buildCounterListServiceConfigsResponse++; if (buildCounterListServiceConfigsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2929(o.serviceConfigs); + checkUnnamed4358(o.serviceConfigs); } buildCounterListServiceConfigsResponse--; } -buildUnnamed2930() { +buildUnnamed4359() { var o = new core.List<api.Rollout>(); o.add(buildRollout()); o.add(buildRollout()); return o; } -checkUnnamed2930(core.List<api.Rollout> o) { +checkUnnamed4359(core.List<api.Rollout> o) { unittest.expect(o, unittest.hasLength(2)); checkRollout(o[0]); checkRollout(o[1]); @@ -1605,7 +1587,7 @@ buildCounterListServiceRolloutsResponse++; if (buildCounterListServiceRolloutsResponse < 3) { o.nextPageToken = "foo"; - o.rollouts = buildUnnamed2930(); + o.rollouts = buildUnnamed4359(); } buildCounterListServiceRolloutsResponse--; return o; @@ -1615,19 +1597,19 @@ buildCounterListServiceRolloutsResponse++; if (buildCounterListServiceRolloutsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2930(o.rollouts); + checkUnnamed4359(o.rollouts); } buildCounterListServiceRolloutsResponse--; } -buildUnnamed2931() { +buildUnnamed4360() { var o = new core.List<api.ManagedService>(); o.add(buildManagedService()); o.add(buildManagedService()); return o; } -checkUnnamed2931(core.List<api.ManagedService> o) { +checkUnnamed4360(core.List<api.ManagedService> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedService(o[0]); checkManagedService(o[1]); @@ -1639,7 +1621,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed2931(); + o.services = buildUnnamed4360(); } buildCounterListServicesResponse--; return o; @@ -1649,19 +1631,19 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2931(o.services); + checkUnnamed4360(o.services); } buildCounterListServicesResponse--; } -buildUnnamed2932() { +buildUnnamed4361() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed2932(core.List<api.LabelDescriptor> o) { +checkUnnamed4361(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1674,7 +1656,7 @@ if (buildCounterLogDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed2932(); + o.labels = buildUnnamed4361(); o.name = "foo"; } buildCounterLogDescriptor--; @@ -1686,33 +1668,33 @@ if (buildCounterLogDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed2932(o.labels); + checkUnnamed4361(o.labels); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLogDescriptor--; } -buildUnnamed2933() { +buildUnnamed4362() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed2933(core.List<api.LoggingDestination> o) { +checkUnnamed4362(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); } -buildUnnamed2934() { +buildUnnamed4363() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed2934(core.List<api.LoggingDestination> o) { +checkUnnamed4363(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); @@ -1723,8 +1705,8 @@ var o = new api.Logging(); buildCounterLogging++; if (buildCounterLogging < 3) { - o.consumerDestinations = buildUnnamed2933(); - o.producerDestinations = buildUnnamed2934(); + o.consumerDestinations = buildUnnamed4362(); + o.producerDestinations = buildUnnamed4363(); } buildCounterLogging--; return o; @@ -1733,20 +1715,20 @@ checkLogging(api.Logging o) { buildCounterLogging++; if (buildCounterLogging < 3) { - checkUnnamed2933(o.consumerDestinations); - checkUnnamed2934(o.producerDestinations); + checkUnnamed4362(o.consumerDestinations); + checkUnnamed4363(o.producerDestinations); } buildCounterLogging--; } -buildUnnamed2935() { +buildUnnamed4364() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2935(core.List<core.String> o) { +checkUnnamed4364(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1757,7 +1739,7 @@ var o = new api.LoggingDestination(); buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - o.logs = buildUnnamed2935(); + o.logs = buildUnnamed4364(); o.monitoredResource = "foo"; } buildCounterLoggingDestination--; @@ -1767,7 +1749,7 @@ checkLoggingDestination(api.LoggingDestination o) { buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - checkUnnamed2935(o.logs); + checkUnnamed4364(o.logs); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterLoggingDestination--; @@ -1823,14 +1805,14 @@ buildCounterMediaDownload--; } -buildUnnamed2936() { +buildUnnamed4365() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2936(core.List<core.String> o) { +checkUnnamed4365(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1845,7 +1827,7 @@ o.dropzone = "foo"; o.enabled = true; o.maxSize = "foo"; - o.mimeTypes = buildUnnamed2936(); + o.mimeTypes = buildUnnamed4365(); o.progressNotification = true; o.startNotification = true; o.uploadService = "foo"; @@ -1861,7 +1843,7 @@ unittest.expect(o.dropzone, unittest.equals('foo')); unittest.expect(o.enabled, unittest.isTrue); unittest.expect(o.maxSize, unittest.equals('foo')); - checkUnnamed2936(o.mimeTypes); + checkUnnamed4365(o.mimeTypes); unittest.expect(o.progressNotification, unittest.isTrue); unittest.expect(o.startNotification, unittest.isTrue); unittest.expect(o.uploadService, unittest.equals('foo')); @@ -1869,14 +1851,14 @@ buildCounterMediaUpload--; } -buildUnnamed2937() { +buildUnnamed4366() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed2937(core.List<api.Option> o) { +checkUnnamed4366(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1888,7 +1870,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { o.name = "foo"; - o.options = buildUnnamed2937(); + o.options = buildUnnamed4366(); o.requestStreaming = true; o.requestTypeUrl = "foo"; o.responseStreaming = true; @@ -1903,7 +1885,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2937(o.options); + checkUnnamed4366(o.options); unittest.expect(o.requestStreaming, unittest.isTrue); unittest.expect(o.requestTypeUrl, unittest.equals('foo')); unittest.expect(o.responseStreaming, unittest.isTrue); @@ -1913,14 +1895,14 @@ buildCounterMethod--; } -buildUnnamed2938() { +buildUnnamed4367() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed2938(core.List<api.LabelDescriptor> o) { +checkUnnamed4367(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1933,7 +1915,7 @@ if (buildCounterMetricDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed2938(); + o.labels = buildUnnamed4367(); o.metricKind = "foo"; o.name = "foo"; o.type = "foo"; @@ -1949,7 +1931,7 @@ if (buildCounterMetricDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed2938(o.labels); + checkUnnamed4367(o.labels); unittest.expect(o.metricKind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -1959,14 +1941,14 @@ buildCounterMetricDescriptor--; } -buildUnnamed2939() { +buildUnnamed4368() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2939(core.Map<core.String, core.String> o) { +checkUnnamed4368(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')); @@ -1977,7 +1959,7 @@ var o = new api.MetricRule(); buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - o.metricCosts = buildUnnamed2939(); + o.metricCosts = buildUnnamed4368(); o.selector = "foo"; } buildCounterMetricRule--; @@ -1987,7 +1969,7 @@ checkMetricRule(api.MetricRule o) { buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - checkUnnamed2939(o.metricCosts); + checkUnnamed4368(o.metricCosts); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterMetricRule--; @@ -2014,14 +1996,14 @@ buildCounterMixin--; } -buildUnnamed2940() { +buildUnnamed4369() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed2940(core.List<api.LabelDescriptor> o) { +checkUnnamed4369(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -2034,7 +2016,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed2940(); + o.labels = buildUnnamed4369(); o.name = "foo"; o.type = "foo"; } @@ -2047,34 +2029,34 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed2940(o.labels); + checkUnnamed4369(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResourceDescriptor--; } -buildUnnamed2941() { +buildUnnamed4370() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed2941(core.List<api.MonitoringDestination> o) { +checkUnnamed4370(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); } -buildUnnamed2942() { +buildUnnamed4371() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed2942(core.List<api.MonitoringDestination> o) { +checkUnnamed4371(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); @@ -2085,8 +2067,8 @@ var o = new api.Monitoring(); buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - o.consumerDestinations = buildUnnamed2941(); - o.producerDestinations = buildUnnamed2942(); + o.consumerDestinations = buildUnnamed4370(); + o.producerDestinations = buildUnnamed4371(); } buildCounterMonitoring--; return o; @@ -2095,20 +2077,20 @@ checkMonitoring(api.Monitoring o) { buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - checkUnnamed2941(o.consumerDestinations); - checkUnnamed2942(o.producerDestinations); + checkUnnamed4370(o.consumerDestinations); + checkUnnamed4371(o.producerDestinations); } buildCounterMonitoring--; } -buildUnnamed2943() { +buildUnnamed4372() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2943(core.List<core.String> o) { +checkUnnamed4372(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2119,7 +2101,7 @@ var o = new api.MonitoringDestination(); buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - o.metrics = buildUnnamed2943(); + o.metrics = buildUnnamed4372(); o.monitoredResource = "foo"; } buildCounterMonitoringDestination--; @@ -2129,7 +2111,7 @@ checkMonitoringDestination(api.MonitoringDestination o) { buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - checkUnnamed2943(o.metrics); + checkUnnamed4372(o.metrics); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterMonitoringDestination--; @@ -2154,7 +2136,7 @@ buildCounterOAuthRequirements--; } -buildUnnamed2944() { +buildUnnamed4373() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2169,7 +2151,7 @@ return o; } -checkUnnamed2944(core.Map<core.String, core.Object> o) { +checkUnnamed4373(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)); @@ -2183,7 +2165,7 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed2945() { +buildUnnamed4374() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2198,7 +2180,7 @@ return o; } -checkUnnamed2945(core.Map<core.String, core.Object> o) { +checkUnnamed4374(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)); @@ -2219,9 +2201,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2944(); + o.metadata = buildUnnamed4373(); o.name = "foo"; - o.response = buildUnnamed2945(); + o.response = buildUnnamed4374(); } buildCounterOperation--; return o; @@ -2232,34 +2214,34 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2944(o.metadata); + checkUnnamed4373(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2945(o.response); + checkUnnamed4374(o.response); } buildCounterOperation--; } -buildUnnamed2946() { +buildUnnamed4375() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2946(core.List<core.String> o) { +checkUnnamed4375(core.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() { +buildUnnamed4376() { var o = new core.List<api.Step>(); o.add(buildStep()); o.add(buildStep()); return o; } -checkUnnamed2947(core.List<api.Step> o) { +checkUnnamed4376(core.List<api.Step> o) { unittest.expect(o, unittest.hasLength(2)); checkStep(o[0]); checkStep(o[1]); @@ -2271,9 +2253,9 @@ buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { o.progressPercentage = 42; - o.resourceNames = buildUnnamed2946(); + o.resourceNames = buildUnnamed4375(); o.startTime = "foo"; - o.steps = buildUnnamed2947(); + o.steps = buildUnnamed4376(); } buildCounterOperationMetadata--; return o; @@ -2283,14 +2265,14 @@ buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { unittest.expect(o.progressPercentage, unittest.equals(42)); - checkUnnamed2946(o.resourceNames); + checkUnnamed4375(o.resourceNames); unittest.expect(o.startTime, unittest.equals('foo')); - checkUnnamed2947(o.steps); + checkUnnamed4376(o.steps); } buildCounterOperationMetadata--; } -buildUnnamed2948() { +buildUnnamed4377() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2305,7 +2287,7 @@ return o; } -checkUnnamed2948(core.Map<core.String, core.Object> o) { +checkUnnamed4377(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)); @@ -2325,7 +2307,7 @@ buildCounterOption++; if (buildCounterOption < 3) { o.name = "foo"; - o.value = buildUnnamed2948(); + o.value = buildUnnamed4377(); } buildCounterOption--; return o; @@ -2335,19 +2317,19 @@ buildCounterOption++; if (buildCounterOption < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2948(o.value); + checkUnnamed4377(o.value); } buildCounterOption--; } -buildUnnamed2949() { +buildUnnamed4378() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed2949(core.List<api.Page> o) { +checkUnnamed4378(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -2360,7 +2342,7 @@ if (buildCounterPage < 3) { o.content = "foo"; o.name = "foo"; - o.subpages = buildUnnamed2949(); + o.subpages = buildUnnamed4378(); } buildCounterPage--; return o; @@ -2371,32 +2353,32 @@ if (buildCounterPage < 3) { unittest.expect(o.content, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2949(o.subpages); + checkUnnamed4378(o.subpages); } buildCounterPage--; } -buildUnnamed2950() { +buildUnnamed4379() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed2950(core.List<api.AuditConfig> o) { +checkUnnamed4379(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed2951() { +buildUnnamed4380() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed2951(core.List<api.Binding> o) { +checkUnnamed4380(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -2407,8 +2389,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed2950(); - o.bindings = buildUnnamed2951(); + o.auditConfigs = buildUnnamed4379(); + o.bindings = buildUnnamed4380(); o.etag = "foo"; o.version = 42; } @@ -2419,35 +2401,35 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed2950(o.auditConfigs); - checkUnnamed2951(o.bindings); + checkUnnamed4379(o.auditConfigs); + checkUnnamed4380(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed2952() { +buildUnnamed4381() { var o = new core.List<api.QuotaLimit>(); o.add(buildQuotaLimit()); o.add(buildQuotaLimit()); return o; } -checkUnnamed2952(core.List<api.QuotaLimit> o) { +checkUnnamed4381(core.List<api.QuotaLimit> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaLimit(o[0]); checkQuotaLimit(o[1]); } -buildUnnamed2953() { +buildUnnamed4382() { var o = new core.List<api.MetricRule>(); o.add(buildMetricRule()); o.add(buildMetricRule()); return o; } -checkUnnamed2953(core.List<api.MetricRule> o) { +checkUnnamed4382(core.List<api.MetricRule> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricRule(o[0]); checkMetricRule(o[1]); @@ -2458,8 +2440,8 @@ var o = new api.Quota(); buildCounterQuota++; if (buildCounterQuota < 3) { - o.limits = buildUnnamed2952(); - o.metricRules = buildUnnamed2953(); + o.limits = buildUnnamed4381(); + o.metricRules = buildUnnamed4382(); } buildCounterQuota--; return o; @@ -2468,20 +2450,20 @@ checkQuota(api.Quota o) { buildCounterQuota++; if (buildCounterQuota < 3) { - checkUnnamed2952(o.limits); - checkUnnamed2953(o.metricRules); + checkUnnamed4381(o.limits); + checkUnnamed4382(o.metricRules); } buildCounterQuota--; } -buildUnnamed2954() { +buildUnnamed4383() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2954(core.Map<core.String, core.String> o) { +checkUnnamed4383(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')); @@ -2501,7 +2483,7 @@ o.metric = "foo"; o.name = "foo"; o.unit = "foo"; - o.values = buildUnnamed2954(); + o.values = buildUnnamed4383(); } buildCounterQuotaLimit--; return o; @@ -2519,7 +2501,7 @@ unittest.expect(o.metric, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.unit, unittest.equals('foo')); - checkUnnamed2954(o.values); + checkUnnamed4383(o.values); } buildCounterQuotaLimit--; } @@ -2555,105 +2537,105 @@ buildCounterRollout--; } -buildUnnamed2955() { +buildUnnamed4384() { var o = new core.List<api.Api>(); o.add(buildApi()); o.add(buildApi()); return o; } -checkUnnamed2955(core.List<api.Api> o) { +checkUnnamed4384(core.List<api.Api> o) { unittest.expect(o, unittest.hasLength(2)); checkApi(o[0]); checkApi(o[1]); } -buildUnnamed2956() { +buildUnnamed4385() { var o = new core.List<api.Endpoint>(); o.add(buildEndpoint()); o.add(buildEndpoint()); return o; } -checkUnnamed2956(core.List<api.Endpoint> o) { +checkUnnamed4385(core.List<api.Endpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkEndpoint(o[0]); checkEndpoint(o[1]); } -buildUnnamed2957() { +buildUnnamed4386() { var o = new core.List<api.Enum>(); o.add(buildEnum()); o.add(buildEnum()); return o; } -checkUnnamed2957(core.List<api.Enum> o) { +checkUnnamed4386(core.List<api.Enum> o) { unittest.expect(o, unittest.hasLength(2)); checkEnum(o[0]); checkEnum(o[1]); } -buildUnnamed2958() { +buildUnnamed4387() { var o = new core.List<api.LogDescriptor>(); o.add(buildLogDescriptor()); o.add(buildLogDescriptor()); return o; } -checkUnnamed2958(core.List<api.LogDescriptor> o) { +checkUnnamed4387(core.List<api.LogDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLogDescriptor(o[0]); checkLogDescriptor(o[1]); } -buildUnnamed2959() { +buildUnnamed4388() { var o = new core.List<api.MetricDescriptor>(); o.add(buildMetricDescriptor()); o.add(buildMetricDescriptor()); return o; } -checkUnnamed2959(core.List<api.MetricDescriptor> o) { +checkUnnamed4388(core.List<api.MetricDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricDescriptor(o[0]); checkMetricDescriptor(o[1]); } -buildUnnamed2960() { +buildUnnamed4389() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed2960(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed4389(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); } -buildUnnamed2961() { +buildUnnamed4390() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed2961(core.List<api.Type> o) { +checkUnnamed4390(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); } -buildUnnamed2962() { +buildUnnamed4391() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed2962(core.List<api.Type> o) { +checkUnnamed4391(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); @@ -2664,7 +2646,7 @@ var o = new api.Service(); buildCounterService++; if (buildCounterService < 3) { - o.apis = buildUnnamed2955(); + o.apis = buildUnnamed4384(); o.authentication = buildAuthentication(); o.backend = buildBackend(); o.billing = buildBilling(); @@ -2673,26 +2655,25 @@ o.control = buildControl(); o.customError = buildCustomError(); o.documentation = buildDocumentation(); - o.endpoints = buildUnnamed2956(); - o.enums = buildUnnamed2957(); + o.endpoints = buildUnnamed4385(); + o.enums = buildUnnamed4386(); o.experimental = buildExperimental(); o.http = buildHttp(); o.id = "foo"; o.logging = buildLogging(); - o.logs = buildUnnamed2958(); - o.metrics = buildUnnamed2959(); - o.monitoredResources = buildUnnamed2960(); + o.logs = buildUnnamed4387(); + o.metrics = buildUnnamed4388(); + o.monitoredResources = buildUnnamed4389(); o.monitoring = buildMonitoring(); o.name = "foo"; o.producerProjectId = "foo"; o.quota = buildQuota(); o.sourceInfo = buildSourceInfo(); o.systemParameters = buildSystemParameters(); - o.systemTypes = buildUnnamed2961(); + o.systemTypes = buildUnnamed4390(); o.title = "foo"; - o.types = buildUnnamed2962(); + o.types = buildUnnamed4391(); o.usage = buildUsage(); - o.visibility = buildVisibility(); } buildCounterService--; return o; @@ -2701,7 +2682,7 @@ checkService(api.Service o) { buildCounterService++; if (buildCounterService < 3) { - checkUnnamed2955(o.apis); + checkUnnamed4384(o.apis); checkAuthentication(o.authentication); checkBackend(o.backend); checkBilling(o.billing); @@ -2710,26 +2691,25 @@ checkControl(o.control); checkCustomError(o.customError); checkDocumentation(o.documentation); - checkUnnamed2956(o.endpoints); - checkUnnamed2957(o.enums); + checkUnnamed4385(o.endpoints); + checkUnnamed4386(o.enums); checkExperimental(o.experimental); checkHttp(o.http); unittest.expect(o.id, unittest.equals('foo')); checkLogging(o.logging); - checkUnnamed2958(o.logs); - checkUnnamed2959(o.metrics); - checkUnnamed2960(o.monitoredResources); + checkUnnamed4387(o.logs); + checkUnnamed4388(o.metrics); + checkUnnamed4389(o.monitoredResources); checkMonitoring(o.monitoring); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.producerProjectId, unittest.equals('foo')); checkQuota(o.quota); checkSourceInfo(o.sourceInfo); checkSystemParameters(o.systemParameters); - checkUnnamed2961(o.systemTypes); + checkUnnamed4390(o.systemTypes); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed2962(o.types); + checkUnnamed4391(o.types); checkUsage(o.usage); - checkVisibility(o.visibility); } buildCounterService--; } @@ -2774,7 +2754,7 @@ buildCounterSourceContext--; } -buildUnnamed2963() { +buildUnnamed4392() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2789,7 +2769,7 @@ return o; } -checkUnnamed2963(core.Map<core.String, core.Object> o) { +checkUnnamed4392(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)); @@ -2803,17 +2783,17 @@ unittest.expect(casted12["string"], unittest.equals('foo')); } -buildUnnamed2964() { +buildUnnamed4393() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2963()); - o.add(buildUnnamed2963()); + o.add(buildUnnamed4392()); + o.add(buildUnnamed4392()); return o; } -checkUnnamed2964(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed4393(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2963(o[0]); - checkUnnamed2963(o[1]); + checkUnnamed4392(o[0]); + checkUnnamed4392(o[1]); } core.int buildCounterSourceInfo = 0; @@ -2821,7 +2801,7 @@ var o = new api.SourceInfo(); buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - o.sourceFiles = buildUnnamed2964(); + o.sourceFiles = buildUnnamed4393(); } buildCounterSourceInfo--; return o; @@ -2830,12 +2810,12 @@ checkSourceInfo(api.SourceInfo o) { buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - checkUnnamed2964(o.sourceFiles); + checkUnnamed4393(o.sourceFiles); } buildCounterSourceInfo--; } -buildUnnamed2965() { +buildUnnamed4394() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2850,7 +2830,7 @@ return o; } -checkUnnamed2965(core.Map<core.String, core.Object> o) { +checkUnnamed4394(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)); @@ -2864,17 +2844,17 @@ unittest.expect(casted14["string"], unittest.equals('foo')); } -buildUnnamed2966() { +buildUnnamed4395() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2965()); - o.add(buildUnnamed2965()); + o.add(buildUnnamed4394()); + o.add(buildUnnamed4394()); return o; } -checkUnnamed2966(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed4395(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2965(o[0]); - checkUnnamed2965(o[1]); + checkUnnamed4394(o[0]); + checkUnnamed4394(o[1]); } core.int buildCounterStatus = 0; @@ -2883,7 +2863,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2966(); + o.details = buildUnnamed4395(); o.message = "foo"; } buildCounterStatus--; @@ -2894,7 +2874,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2966(o.details); + checkUnnamed4395(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -2984,14 +2964,14 @@ buildCounterSystemParameter--; } -buildUnnamed2967() { +buildUnnamed4396() { var o = new core.List<api.SystemParameter>(); o.add(buildSystemParameter()); o.add(buildSystemParameter()); return o; } -checkUnnamed2967(core.List<api.SystemParameter> o) { +checkUnnamed4396(core.List<api.SystemParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameter(o[0]); checkSystemParameter(o[1]); @@ -3002,7 +2982,7 @@ var o = new api.SystemParameterRule(); buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - o.parameters = buildUnnamed2967(); + o.parameters = buildUnnamed4396(); o.selector = "foo"; } buildCounterSystemParameterRule--; @@ -3012,20 +2992,20 @@ checkSystemParameterRule(api.SystemParameterRule o) { buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - checkUnnamed2967(o.parameters); + checkUnnamed4396(o.parameters); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterSystemParameterRule--; } -buildUnnamed2968() { +buildUnnamed4397() { var o = new core.List<api.SystemParameterRule>(); o.add(buildSystemParameterRule()); o.add(buildSystemParameterRule()); return o; } -checkUnnamed2968(core.List<api.SystemParameterRule> o) { +checkUnnamed4397(core.List<api.SystemParameterRule> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameterRule(o[0]); checkSystemParameterRule(o[1]); @@ -3036,7 +3016,7 @@ var o = new api.SystemParameters(); buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - o.rules = buildUnnamed2968(); + o.rules = buildUnnamed4397(); } buildCounterSystemParameters--; return o; @@ -3045,19 +3025,19 @@ checkSystemParameters(api.SystemParameters o) { buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - checkUnnamed2968(o.rules); + checkUnnamed4397(o.rules); } buildCounterSystemParameters--; } -buildUnnamed2969() { +buildUnnamed4398() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2969(core.List<core.String> o) { +checkUnnamed4398(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3068,7 +3048,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed2969(); + o.permissions = buildUnnamed4398(); } buildCounterTestIamPermissionsRequest--; return o; @@ -3077,19 +3057,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed2969(o.permissions); + checkUnnamed4398(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed2970() { +buildUnnamed4399() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2970(core.List<core.String> o) { +checkUnnamed4399(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3100,7 +3080,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed2970(); + o.permissions = buildUnnamed4399(); } buildCounterTestIamPermissionsResponse--; return o; @@ -3109,19 +3089,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed2970(o.permissions); + checkUnnamed4399(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed2971() { +buildUnnamed4400() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed2971(core.Map<core.String, core.double> o) { +checkUnnamed4400(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)); @@ -3132,7 +3112,7 @@ var o = new api.TrafficPercentStrategy(); buildCounterTrafficPercentStrategy++; if (buildCounterTrafficPercentStrategy < 3) { - o.percentages = buildUnnamed2971(); + o.percentages = buildUnnamed4400(); } buildCounterTrafficPercentStrategy--; return o; @@ -3141,45 +3121,45 @@ checkTrafficPercentStrategy(api.TrafficPercentStrategy o) { buildCounterTrafficPercentStrategy++; if (buildCounterTrafficPercentStrategy < 3) { - checkUnnamed2971(o.percentages); + checkUnnamed4400(o.percentages); } buildCounterTrafficPercentStrategy--; } -buildUnnamed2972() { +buildUnnamed4401() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed2972(core.List<api.Field> o) { +checkUnnamed4401(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); } -buildUnnamed2973() { +buildUnnamed4402() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2973(core.List<core.String> o) { +checkUnnamed4402(core.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() { +buildUnnamed4403() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed2974(core.List<api.Option> o) { +checkUnnamed4403(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -3190,10 +3170,10 @@ var o = new api.Type(); buildCounterType++; if (buildCounterType < 3) { - o.fields = buildUnnamed2972(); + o.fields = buildUnnamed4401(); o.name = "foo"; - o.oneofs = buildUnnamed2973(); - o.options = buildUnnamed2974(); + o.oneofs = buildUnnamed4402(); + o.options = buildUnnamed4403(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -3204,10 +3184,10 @@ checkType(api.Type o) { buildCounterType++; if (buildCounterType < 3) { - checkUnnamed2972(o.fields); + checkUnnamed4401(o.fields); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2973(o.oneofs); - checkUnnamed2974(o.options); + checkUnnamed4402(o.oneofs); + checkUnnamed4403(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } @@ -3233,27 +3213,27 @@ buildCounterUndeleteServiceResponse--; } -buildUnnamed2975() { +buildUnnamed4404() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2975(core.List<core.String> o) { +checkUnnamed4404(core.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() { +buildUnnamed4405() { var o = new core.List<api.UsageRule>(); o.add(buildUsageRule()); o.add(buildUsageRule()); return o; } -checkUnnamed2976(core.List<api.UsageRule> o) { +checkUnnamed4405(core.List<api.UsageRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageRule(o[0]); checkUsageRule(o[1]); @@ -3265,8 +3245,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { o.producerNotificationChannel = "foo"; - o.requirements = buildUnnamed2975(); - o.rules = buildUnnamed2976(); + o.requirements = buildUnnamed4404(); + o.rules = buildUnnamed4405(); } buildCounterUsage--; return o; @@ -3276,8 +3256,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); - checkUnnamed2975(o.requirements); - checkUnnamed2976(o.rules); + checkUnnamed4404(o.requirements); + checkUnnamed4405(o.rules); } buildCounterUsage--; } @@ -3305,59 +3285,6 @@ buildCounterUsageRule--; } -buildUnnamed2977() { - var o = new core.List<api.VisibilityRule>(); - o.add(buildVisibilityRule()); - o.add(buildVisibilityRule()); - return o; -} - -checkUnnamed2977(core.List<api.VisibilityRule> o) { - unittest.expect(o, unittest.hasLength(2)); - checkVisibilityRule(o[0]); - checkVisibilityRule(o[1]); -} - -core.int buildCounterVisibility = 0; -buildVisibility() { - var o = new api.Visibility(); - buildCounterVisibility++; - if (buildCounterVisibility < 3) { - o.rules = buildUnnamed2977(); - } - buildCounterVisibility--; - return o; -} - -checkVisibility(api.Visibility o) { - buildCounterVisibility++; - if (buildCounterVisibility < 3) { - checkUnnamed2977(o.rules); - } - buildCounterVisibility--; -} - -core.int buildCounterVisibilityRule = 0; -buildVisibilityRule() { - var o = new api.VisibilityRule(); - buildCounterVisibilityRule++; - if (buildCounterVisibilityRule < 3) { - o.restriction = "foo"; - o.selector = "foo"; - } - buildCounterVisibilityRule--; - return o; -} - -checkVisibilityRule(api.VisibilityRule o) { - buildCounterVisibilityRule++; - if (buildCounterVisibilityRule < 3) { - unittest.expect(o.restriction, unittest.equals('foo')); - unittest.expect(o.selector, unittest.equals('foo')); - } - buildCounterVisibilityRule--; -} - main() { unittest.group("obj-schema-Advice", () { unittest.test("to-json--from-json", () { @@ -3535,14 +3462,6 @@ }); }); - unittest.group("obj-schema-CustomAuthRequirements", () { - unittest.test("to-json--from-json", () { - var o = buildCustomAuthRequirements(); - var od = new api.CustomAuthRequirements.fromJson(o.toJson()); - checkCustomAuthRequirements(od); - }); - }); - unittest.group("obj-schema-CustomError", () { unittest.test("to-json--from-json", () { var o = buildCustomError(); @@ -3647,14 +3566,6 @@ }); }); - unittest.group("obj-schema-Expr", () { - unittest.test("to-json--from-json", () { - var o = buildExpr(); - var od = new api.Expr.fromJson(o.toJson()); - checkExpr(od); - }); - }); - unittest.group("obj-schema-Field", () { unittest.test("to-json--from-json", () { var o = buildField(); @@ -4063,22 +3974,6 @@ }); }); - unittest.group("obj-schema-Visibility", () { - unittest.test("to-json--from-json", () { - var o = buildVisibility(); - var od = new api.Visibility.fromJson(o.toJson()); - checkVisibility(od); - }); - }); - - unittest.group("obj-schema-VisibilityRule", () { - unittest.test("to-json--from-json", () { - var o = buildVisibilityRule(); - var od = new api.VisibilityRule.fromJson(o.toJson()); - checkVisibilityRule(od); - }); - }); - unittest.group("resource-OperationsResourceApi", () { unittest.test("method--get", () { var mock = new HttpServerMock(); @@ -4541,8 +4436,8 @@ var mock = new HttpServerMock(); api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; var arg_serviceName = "foo"; - var arg_configId = "foo"; var arg_view = "foo"; + var arg_configId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4583,9 +4478,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect( queryMap["configId"].first, unittest.equals(arg_configId)); - unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4596,7 +4491,7 @@ }), true); res .getConfig(arg_serviceName, - configId: arg_configId, view: arg_view, $fields: arg_$fields) + view: arg_view, configId: arg_configId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkService(response); }))); @@ -4660,10 +4555,10 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; - var arg_pageSize = 42; - var arg_producerProjectId = "foo"; var arg_consumerId = "foo"; var arg_pageToken = "foo"; + var arg_pageSize = 42; + var arg_producerProjectId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4695,14 +4590,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); - unittest.expect(queryMap["producerProjectId"].first, - unittest.equals(arg_producerProjectId)); unittest.expect( queryMap["consumerId"].first, unittest.equals(arg_consumerId)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["producerProjectId"].first, + unittest.equals(arg_producerProjectId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4713,10 +4608,10 @@ }), true); res .list( - pageSize: arg_pageSize, - producerProjectId: arg_producerProjectId, consumerId: arg_consumerId, pageToken: arg_pageToken, + pageSize: arg_pageSize, + producerProjectId: arg_producerProjectId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListServicesResponse(response);
diff --git a/generated/googleapis/test/serviceusage/v1_test.dart b/generated/googleapis/test/serviceusage/v1_test.dart deleted file mode 100644 index ca82617..0000000 --- a/generated/googleapis/test/serviceusage/v1_test.dart +++ /dev/null
@@ -1,3788 +0,0 @@ -library googleapis.serviceusage.v1.test; - -import "dart:core" as core; -import "dart:async" as async; -import "dart:convert" as convert; - -import 'package:http/http.dart' as http; -import 'package:test/test.dart' as unittest; - -import 'package:googleapis/serviceusage/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<core.String, core.String> headers, core.String body) { - var stream = new async.Stream.fromIterable([convert.utf8.encode(body)]); - return new http.StreamedResponse(stream, status, headers: headers); -} - -buildUnnamed2380() { - var o = new core.List<api.Method>(); - o.add(buildMethod()); - o.add(buildMethod()); - return o; -} - -checkUnnamed2380(core.List<api.Method> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMethod(o[0]); - checkMethod(o[1]); -} - -buildUnnamed2381() { - var o = new core.List<api.Mixin>(); - o.add(buildMixin()); - o.add(buildMixin()); - return o; -} - -checkUnnamed2381(core.List<api.Mixin> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMixin(o[0]); - checkMixin(o[1]); -} - -buildUnnamed2382() { - var o = new core.List<api.Option>(); - o.add(buildOption()); - o.add(buildOption()); - return o; -} - -checkUnnamed2382(core.List<api.Option> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOption(o[0]); - checkOption(o[1]); -} - -core.int buildCounterApi = 0; -buildApi() { - var o = new api.Api(); - buildCounterApi++; - if (buildCounterApi < 3) { - o.methods = buildUnnamed2380(); - o.mixins = buildUnnamed2381(); - o.name = "foo"; - o.options = buildUnnamed2382(); - o.sourceContext = buildSourceContext(); - o.syntax = "foo"; - o.version = "foo"; - } - buildCounterApi--; - return o; -} - -checkApi(api.Api o) { - buildCounterApi++; - if (buildCounterApi < 3) { - checkUnnamed2380(o.methods); - checkUnnamed2381(o.mixins); - unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2382(o.options); - checkSourceContext(o.sourceContext); - unittest.expect(o.syntax, unittest.equals('foo')); - unittest.expect(o.version, unittest.equals('foo')); - } - buildCounterApi--; -} - -core.int buildCounterAuthProvider = 0; -buildAuthProvider() { - var o = new api.AuthProvider(); - buildCounterAuthProvider++; - if (buildCounterAuthProvider < 3) { - o.audiences = "foo"; - o.authorizationUrl = "foo"; - o.id = "foo"; - o.issuer = "foo"; - o.jwksUri = "foo"; - } - buildCounterAuthProvider--; - return o; -} - -checkAuthProvider(api.AuthProvider o) { - buildCounterAuthProvider++; - if (buildCounterAuthProvider < 3) { - unittest.expect(o.audiences, unittest.equals('foo')); - unittest.expect(o.authorizationUrl, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.issuer, unittest.equals('foo')); - unittest.expect(o.jwksUri, unittest.equals('foo')); - } - buildCounterAuthProvider--; -} - -core.int buildCounterAuthRequirement = 0; -buildAuthRequirement() { - var o = new api.AuthRequirement(); - buildCounterAuthRequirement++; - if (buildCounterAuthRequirement < 3) { - o.audiences = "foo"; - o.providerId = "foo"; - } - buildCounterAuthRequirement--; - return o; -} - -checkAuthRequirement(api.AuthRequirement o) { - buildCounterAuthRequirement++; - if (buildCounterAuthRequirement < 3) { - unittest.expect(o.audiences, unittest.equals('foo')); - unittest.expect(o.providerId, unittest.equals('foo')); - } - buildCounterAuthRequirement--; -} - -buildUnnamed2383() { - var o = new core.List<api.AuthProvider>(); - o.add(buildAuthProvider()); - o.add(buildAuthProvider()); - return o; -} - -checkUnnamed2383(core.List<api.AuthProvider> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAuthProvider(o[0]); - checkAuthProvider(o[1]); -} - -buildUnnamed2384() { - var o = new core.List<api.AuthenticationRule>(); - o.add(buildAuthenticationRule()); - o.add(buildAuthenticationRule()); - return o; -} - -checkUnnamed2384(core.List<api.AuthenticationRule> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAuthenticationRule(o[0]); - checkAuthenticationRule(o[1]); -} - -core.int buildCounterAuthentication = 0; -buildAuthentication() { - var o = new api.Authentication(); - buildCounterAuthentication++; - if (buildCounterAuthentication < 3) { - o.providers = buildUnnamed2383(); - o.rules = buildUnnamed2384(); - } - buildCounterAuthentication--; - return o; -} - -checkAuthentication(api.Authentication o) { - buildCounterAuthentication++; - if (buildCounterAuthentication < 3) { - checkUnnamed2383(o.providers); - checkUnnamed2384(o.rules); - } - buildCounterAuthentication--; -} - -buildUnnamed2385() { - var o = new core.List<api.AuthRequirement>(); - o.add(buildAuthRequirement()); - o.add(buildAuthRequirement()); - return o; -} - -checkUnnamed2385(core.List<api.AuthRequirement> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAuthRequirement(o[0]); - checkAuthRequirement(o[1]); -} - -core.int buildCounterAuthenticationRule = 0; -buildAuthenticationRule() { - var o = new api.AuthenticationRule(); - buildCounterAuthenticationRule++; - if (buildCounterAuthenticationRule < 3) { - o.allowWithoutCredential = true; - o.customAuth = buildCustomAuthRequirements(); - o.oauth = buildOAuthRequirements(); - o.requirements = buildUnnamed2385(); - o.selector = "foo"; - } - buildCounterAuthenticationRule--; - return o; -} - -checkAuthenticationRule(api.AuthenticationRule o) { - buildCounterAuthenticationRule++; - if (buildCounterAuthenticationRule < 3) { - unittest.expect(o.allowWithoutCredential, unittest.isTrue); - checkCustomAuthRequirements(o.customAuth); - checkOAuthRequirements(o.oauth); - checkUnnamed2385(o.requirements); - unittest.expect(o.selector, unittest.equals('foo')); - } - buildCounterAuthenticationRule--; -} - -core.int buildCounterAuthorizationConfig = 0; -buildAuthorizationConfig() { - var o = new api.AuthorizationConfig(); - buildCounterAuthorizationConfig++; - if (buildCounterAuthorizationConfig < 3) { - o.provider = "foo"; - } - buildCounterAuthorizationConfig--; - return o; -} - -checkAuthorizationConfig(api.AuthorizationConfig o) { - buildCounterAuthorizationConfig++; - if (buildCounterAuthorizationConfig < 3) { - unittest.expect(o.provider, unittest.equals('foo')); - } - buildCounterAuthorizationConfig--; -} - -core.int buildCounterAuthorizationRule = 0; -buildAuthorizationRule() { - var o = new api.AuthorizationRule(); - buildCounterAuthorizationRule++; - if (buildCounterAuthorizationRule < 3) { - o.permissions = "foo"; - o.selector = "foo"; - } - buildCounterAuthorizationRule--; - return o; -} - -checkAuthorizationRule(api.AuthorizationRule o) { - buildCounterAuthorizationRule++; - if (buildCounterAuthorizationRule < 3) { - unittest.expect(o.permissions, unittest.equals('foo')); - unittest.expect(o.selector, unittest.equals('foo')); - } - buildCounterAuthorizationRule--; -} - -buildUnnamed2386() { - var o = new core.List<api.BackendRule>(); - o.add(buildBackendRule()); - o.add(buildBackendRule()); - return o; -} - -checkUnnamed2386(core.List<api.BackendRule> o) { - unittest.expect(o, unittest.hasLength(2)); - checkBackendRule(o[0]); - checkBackendRule(o[1]); -} - -core.int buildCounterBackend = 0; -buildBackend() { - var o = new api.Backend(); - buildCounterBackend++; - if (buildCounterBackend < 3) { - o.rules = buildUnnamed2386(); - } - buildCounterBackend--; - return o; -} - -checkBackend(api.Backend o) { - buildCounterBackend++; - if (buildCounterBackend < 3) { - checkUnnamed2386(o.rules); - } - buildCounterBackend--; -} - -core.int buildCounterBackendRule = 0; -buildBackendRule() { - var o = new api.BackendRule(); - buildCounterBackendRule++; - if (buildCounterBackendRule < 3) { - o.address = "foo"; - o.deadline = 42.0; - o.minDeadline = 42.0; - o.selector = "foo"; - } - buildCounterBackendRule--; - return o; -} - -checkBackendRule(api.BackendRule o) { - buildCounterBackendRule++; - if (buildCounterBackendRule < 3) { - unittest.expect(o.address, unittest.equals('foo')); - unittest.expect(o.deadline, unittest.equals(42.0)); - unittest.expect(o.minDeadline, unittest.equals(42.0)); - unittest.expect(o.selector, unittest.equals('foo')); - } - buildCounterBackendRule--; -} - -buildUnnamed2387() { - var o = new core.List<api.BillingDestination>(); - o.add(buildBillingDestination()); - o.add(buildBillingDestination()); - return o; -} - -checkUnnamed2387(core.List<api.BillingDestination> o) { - unittest.expect(o, unittest.hasLength(2)); - checkBillingDestination(o[0]); - checkBillingDestination(o[1]); -} - -core.int buildCounterBilling = 0; -buildBilling() { - var o = new api.Billing(); - buildCounterBilling++; - if (buildCounterBilling < 3) { - o.consumerDestinations = buildUnnamed2387(); - } - buildCounterBilling--; - return o; -} - -checkBilling(api.Billing o) { - buildCounterBilling++; - if (buildCounterBilling < 3) { - checkUnnamed2387(o.consumerDestinations); - } - buildCounterBilling--; -} - -buildUnnamed2388() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -core.int buildCounterBillingDestination = 0; -buildBillingDestination() { - var o = new api.BillingDestination(); - buildCounterBillingDestination++; - if (buildCounterBillingDestination < 3) { - o.metrics = buildUnnamed2388(); - o.monitoredResource = "foo"; - } - buildCounterBillingDestination--; - return o; -} - -checkBillingDestination(api.BillingDestination o) { - buildCounterBillingDestination++; - if (buildCounterBillingDestination < 3) { - checkUnnamed2388(o.metrics); - unittest.expect(o.monitoredResource, unittest.equals('foo')); - } - buildCounterBillingDestination--; -} - -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--; -} - -buildUnnamed2389() { - var o = new core.List<api.ContextRule>(); - o.add(buildContextRule()); - o.add(buildContextRule()); - return o; -} - -checkUnnamed2389(core.List<api.ContextRule> o) { - unittest.expect(o, unittest.hasLength(2)); - checkContextRule(o[0]); - checkContextRule(o[1]); -} - -core.int buildCounterContext = 0; -buildContext() { - var o = new api.Context(); - buildCounterContext++; - if (buildCounterContext < 3) { - o.rules = buildUnnamed2389(); - } - buildCounterContext--; - return o; -} - -checkContext(api.Context o) { - buildCounterContext++; - if (buildCounterContext < 3) { - checkUnnamed2389(o.rules); - } - buildCounterContext--; -} - -buildUnnamed2390() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2390(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2391() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2391(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2392() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2393() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2393(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterContextRule = 0; -buildContextRule() { - var o = new api.ContextRule(); - buildCounterContextRule++; - if (buildCounterContextRule < 3) { - o.allowedRequestExtensions = buildUnnamed2390(); - o.allowedResponseExtensions = buildUnnamed2391(); - o.provided = buildUnnamed2392(); - o.requested = buildUnnamed2393(); - o.selector = "foo"; - } - buildCounterContextRule--; - return o; -} - -checkContextRule(api.ContextRule o) { - buildCounterContextRule++; - if (buildCounterContextRule < 3) { - checkUnnamed2390(o.allowedRequestExtensions); - checkUnnamed2391(o.allowedResponseExtensions); - checkUnnamed2392(o.provided); - checkUnnamed2393(o.requested); - unittest.expect(o.selector, unittest.equals('foo')); - } - buildCounterContextRule--; -} - -core.int buildCounterControl = 0; -buildControl() { - var o = new api.Control(); - buildCounterControl++; - if (buildCounterControl < 3) { - o.environment = "foo"; - } - buildCounterControl--; - return o; -} - -checkControl(api.Control o) { - buildCounterControl++; - if (buildCounterControl < 3) { - unittest.expect(o.environment, unittest.equals('foo')); - } - buildCounterControl--; -} - -core.int buildCounterCustomAuthRequirements = 0; -buildCustomAuthRequirements() { - var o = new api.CustomAuthRequirements(); - buildCounterCustomAuthRequirements++; - if (buildCounterCustomAuthRequirements < 3) { - o.provider = "foo"; - } - buildCounterCustomAuthRequirements--; - return o; -} - -checkCustomAuthRequirements(api.CustomAuthRequirements o) { - buildCounterCustomAuthRequirements++; - if (buildCounterCustomAuthRequirements < 3) { - unittest.expect(o.provider, unittest.equals('foo')); - } - buildCounterCustomAuthRequirements--; -} - -buildUnnamed2394() { - var o = new core.List<api.CustomErrorRule>(); - o.add(buildCustomErrorRule()); - o.add(buildCustomErrorRule()); - return o; -} - -checkUnnamed2394(core.List<api.CustomErrorRule> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCustomErrorRule(o[0]); - checkCustomErrorRule(o[1]); -} - -buildUnnamed2395() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2395(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterCustomError = 0; -buildCustomError() { - var o = new api.CustomError(); - buildCounterCustomError++; - if (buildCounterCustomError < 3) { - o.rules = buildUnnamed2394(); - o.types = buildUnnamed2395(); - } - buildCounterCustomError--; - return o; -} - -checkCustomError(api.CustomError o) { - buildCounterCustomError++; - if (buildCounterCustomError < 3) { - checkUnnamed2394(o.rules); - checkUnnamed2395(o.types); - } - buildCounterCustomError--; -} - -core.int buildCounterCustomErrorRule = 0; -buildCustomErrorRule() { - var o = new api.CustomErrorRule(); - buildCounterCustomErrorRule++; - if (buildCounterCustomErrorRule < 3) { - o.isErrorType = true; - o.selector = "foo"; - } - buildCounterCustomErrorRule--; - return o; -} - -checkCustomErrorRule(api.CustomErrorRule o) { - buildCounterCustomErrorRule++; - if (buildCounterCustomErrorRule < 3) { - unittest.expect(o.isErrorType, unittest.isTrue); - unittest.expect(o.selector, unittest.equals('foo')); - } - buildCounterCustomErrorRule--; -} - -core.int buildCounterCustomHttpPattern = 0; -buildCustomHttpPattern() { - var o = new api.CustomHttpPattern(); - buildCounterCustomHttpPattern++; - if (buildCounterCustomHttpPattern < 3) { - o.kind = "foo"; - o.path = "foo"; - } - buildCounterCustomHttpPattern--; - return o; -} - -checkCustomHttpPattern(api.CustomHttpPattern o) { - buildCounterCustomHttpPattern++; - if (buildCounterCustomHttpPattern < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.path, unittest.equals('foo')); - } - buildCounterCustomHttpPattern--; -} - -core.int buildCounterDisableServiceRequest = 0; -buildDisableServiceRequest() { - var o = new api.DisableServiceRequest(); - buildCounterDisableServiceRequest++; - if (buildCounterDisableServiceRequest < 3) {} - buildCounterDisableServiceRequest--; - return o; -} - -checkDisableServiceRequest(api.DisableServiceRequest o) { - buildCounterDisableServiceRequest++; - if (buildCounterDisableServiceRequest < 3) {} - buildCounterDisableServiceRequest--; -} - -buildUnnamed2396() { - var o = new core.List<api.Page>(); - o.add(buildPage()); - o.add(buildPage()); - return o; -} - -checkUnnamed2396(core.List<api.Page> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPage(o[0]); - checkPage(o[1]); -} - -buildUnnamed2397() { - var o = new core.List<api.DocumentationRule>(); - o.add(buildDocumentationRule()); - o.add(buildDocumentationRule()); - return o; -} - -checkUnnamed2397(core.List<api.DocumentationRule> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDocumentationRule(o[0]); - checkDocumentationRule(o[1]); -} - -core.int buildCounterDocumentation = 0; -buildDocumentation() { - var o = new api.Documentation(); - buildCounterDocumentation++; - if (buildCounterDocumentation < 3) { - o.documentationRootUrl = "foo"; - o.overview = "foo"; - o.pages = buildUnnamed2396(); - o.rules = buildUnnamed2397(); - o.summary = "foo"; - } - buildCounterDocumentation--; - return o; -} - -checkDocumentation(api.Documentation o) { - buildCounterDocumentation++; - if (buildCounterDocumentation < 3) { - unittest.expect(o.documentationRootUrl, unittest.equals('foo')); - unittest.expect(o.overview, unittest.equals('foo')); - checkUnnamed2396(o.pages); - checkUnnamed2397(o.rules); - unittest.expect(o.summary, unittest.equals('foo')); - } - buildCounterDocumentation--; -} - -core.int buildCounterDocumentationRule = 0; -buildDocumentationRule() { - var o = new api.DocumentationRule(); - buildCounterDocumentationRule++; - if (buildCounterDocumentationRule < 3) { - o.deprecationDescription = "foo"; - o.description = "foo"; - o.selector = "foo"; - } - buildCounterDocumentationRule--; - return o; -} - -checkDocumentationRule(api.DocumentationRule o) { - buildCounterDocumentationRule++; - if (buildCounterDocumentationRule < 3) { - unittest.expect(o.deprecationDescription, unittest.equals('foo')); - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.selector, unittest.equals('foo')); - } - buildCounterDocumentationRule--; -} - -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 buildCounterEnableServiceRequest = 0; -buildEnableServiceRequest() { - var o = new api.EnableServiceRequest(); - buildCounterEnableServiceRequest++; - if (buildCounterEnableServiceRequest < 3) {} - buildCounterEnableServiceRequest--; - return o; -} - -checkEnableServiceRequest(api.EnableServiceRequest o) { - buildCounterEnableServiceRequest++; - if (buildCounterEnableServiceRequest < 3) {} - buildCounterEnableServiceRequest--; -} - -core.int buildCounterEnabledState = 0; -buildEnabledState() { - var o = new api.EnabledState(); - buildCounterEnabledState++; - if (buildCounterEnabledState < 3) { - o.state = "foo"; - } - buildCounterEnabledState--; - return o; -} - -checkEnabledState(api.EnabledState o) { - buildCounterEnabledState++; - if (buildCounterEnabledState < 3) { - unittest.expect(o.state, unittest.equals('foo')); - } - buildCounterEnabledState--; -} - -buildUnnamed2398() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2399() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -core.int buildCounterEndpoint = 0; -buildEndpoint() { - var o = new api.Endpoint(); - buildCounterEndpoint++; - if (buildCounterEndpoint < 3) { - o.aliases = buildUnnamed2398(); - o.allowCors = true; - o.features = buildUnnamed2399(); - o.name = "foo"; - o.target = "foo"; - } - buildCounterEndpoint--; - return o; -} - -checkEndpoint(api.Endpoint o) { - buildCounterEndpoint++; - if (buildCounterEndpoint < 3) { - checkUnnamed2398(o.aliases); - unittest.expect(o.allowCors, unittest.isTrue); - checkUnnamed2399(o.features); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.target, unittest.equals('foo')); - } - buildCounterEndpoint--; -} - -buildUnnamed2400() { - var o = new core.List<api.EnumValue>(); - o.add(buildEnumValue()); - o.add(buildEnumValue()); - return o; -} - -checkUnnamed2400(core.List<api.EnumValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkEnumValue(o[0]); - checkEnumValue(o[1]); -} - -buildUnnamed2401() { - var o = new core.List<api.Option>(); - o.add(buildOption()); - o.add(buildOption()); - return o; -} - -checkUnnamed2401(core.List<api.Option> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOption(o[0]); - checkOption(o[1]); -} - -core.int buildCounterEnum = 0; -buildEnum() { - var o = new api.Enum(); - buildCounterEnum++; - if (buildCounterEnum < 3) { - o.enumvalue = buildUnnamed2400(); - o.name = "foo"; - o.options = buildUnnamed2401(); - o.sourceContext = buildSourceContext(); - o.syntax = "foo"; - } - buildCounterEnum--; - return o; -} - -checkEnum(api.Enum o) { - buildCounterEnum++; - if (buildCounterEnum < 3) { - checkUnnamed2400(o.enumvalue); - unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2401(o.options); - checkSourceContext(o.sourceContext); - unittest.expect(o.syntax, unittest.equals('foo')); - } - buildCounterEnum--; -} - -buildUnnamed2402() { - var o = new core.List<api.Option>(); - o.add(buildOption()); - o.add(buildOption()); - return o; -} - -checkUnnamed2402(core.List<api.Option> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOption(o[0]); - checkOption(o[1]); -} - -core.int buildCounterEnumValue = 0; -buildEnumValue() { - var o = new api.EnumValue(); - buildCounterEnumValue++; - if (buildCounterEnumValue < 3) { - o.name = "foo"; - o.number = 42; - o.options = buildUnnamed2402(); - } - buildCounterEnumValue--; - return o; -} - -checkEnumValue(api.EnumValue o) { - buildCounterEnumValue++; - if (buildCounterEnumValue < 3) { - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.number, unittest.equals(42)); - checkUnnamed2402(o.options); - } - buildCounterEnumValue--; -} - -core.int buildCounterExperimental = 0; -buildExperimental() { - var o = new api.Experimental(); - buildCounterExperimental++; - if (buildCounterExperimental < 3) { - o.authorization = buildAuthorizationConfig(); - } - buildCounterExperimental--; - return o; -} - -checkExperimental(api.Experimental o) { - buildCounterExperimental++; - if (buildCounterExperimental < 3) { - checkAuthorizationConfig(o.authorization); - } - buildCounterExperimental--; -} - -buildUnnamed2403() { - var o = new core.List<api.Option>(); - o.add(buildOption()); - o.add(buildOption()); - return o; -} - -checkUnnamed2403(core.List<api.Option> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOption(o[0]); - checkOption(o[1]); -} - -core.int buildCounterField = 0; -buildField() { - var o = new api.Field(); - buildCounterField++; - if (buildCounterField < 3) { - o.cardinality = "foo"; - o.defaultValue = "foo"; - o.jsonName = "foo"; - o.kind = "foo"; - o.name = "foo"; - o.number = 42; - o.oneofIndex = 42; - o.options = buildUnnamed2403(); - o.packed = true; - o.typeUrl = "foo"; - } - buildCounterField--; - return o; -} - -checkField(api.Field o) { - buildCounterField++; - if (buildCounterField < 3) { - unittest.expect(o.cardinality, unittest.equals('foo')); - unittest.expect(o.defaultValue, unittest.equals('foo')); - unittest.expect(o.jsonName, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.number, unittest.equals(42)); - unittest.expect(o.oneofIndex, unittest.equals(42)); - checkUnnamed2403(o.options); - unittest.expect(o.packed, unittest.isTrue); - unittest.expect(o.typeUrl, unittest.equals('foo')); - } - buildCounterField--; -} - -buildUnnamed2404() { - var o = new core.List<api.Api>(); - o.add(buildApi()); - o.add(buildApi()); - return o; -} - -checkUnnamed2404(core.List<api.Api> o) { - unittest.expect(o, unittest.hasLength(2)); - checkApi(o[0]); - checkApi(o[1]); -} - -buildUnnamed2405() { - var o = new core.List<api.Endpoint>(); - o.add(buildEndpoint()); - o.add(buildEndpoint()); - return o; -} - -checkUnnamed2405(core.List<api.Endpoint> o) { - unittest.expect(o, unittest.hasLength(2)); - checkEndpoint(o[0]); - checkEndpoint(o[1]); -} - -buildUnnamed2406() { - var o = new core.List<api.Enum>(); - o.add(buildEnum()); - o.add(buildEnum()); - return o; -} - -checkUnnamed2406(core.List<api.Enum> o) { - unittest.expect(o, unittest.hasLength(2)); - checkEnum(o[0]); - checkEnum(o[1]); -} - -buildUnnamed2407() { - var o = new core.List<api.LogDescriptor>(); - o.add(buildLogDescriptor()); - o.add(buildLogDescriptor()); - return o; -} - -checkUnnamed2407(core.List<api.LogDescriptor> o) { - unittest.expect(o, unittest.hasLength(2)); - checkLogDescriptor(o[0]); - checkLogDescriptor(o[1]); -} - -buildUnnamed2408() { - var o = new core.List<api.MetricDescriptor>(); - o.add(buildMetricDescriptor()); - o.add(buildMetricDescriptor()); - return o; -} - -checkUnnamed2408(core.List<api.MetricDescriptor> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetricDescriptor(o[0]); - checkMetricDescriptor(o[1]); -} - -buildUnnamed2409() { - var o = new core.List<api.MonitoredResourceDescriptor>(); - o.add(buildMonitoredResourceDescriptor()); - o.add(buildMonitoredResourceDescriptor()); - return o; -} - -checkUnnamed2409(core.List<api.MonitoredResourceDescriptor> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMonitoredResourceDescriptor(o[0]); - checkMonitoredResourceDescriptor(o[1]); -} - -buildUnnamed2410() { - var o = new core.List<api.Type>(); - o.add(buildType()); - o.add(buildType()); - return o; -} - -checkUnnamed2410(core.List<api.Type> o) { - unittest.expect(o, unittest.hasLength(2)); - checkType(o[0]); - checkType(o[1]); -} - -buildUnnamed2411() { - var o = new core.List<api.Type>(); - o.add(buildType()); - o.add(buildType()); - return o; -} - -checkUnnamed2411(core.List<api.Type> o) { - unittest.expect(o, unittest.hasLength(2)); - checkType(o[0]); - checkType(o[1]); -} - -core.int buildCounterGoogleApiService = 0; -buildGoogleApiService() { - var o = new api.GoogleApiService(); - buildCounterGoogleApiService++; - if (buildCounterGoogleApiService < 3) { - o.apis = buildUnnamed2404(); - o.authentication = buildAuthentication(); - o.backend = buildBackend(); - o.billing = buildBilling(); - o.configVersion = 42; - o.context = buildContext(); - o.control = buildControl(); - o.customError = buildCustomError(); - o.documentation = buildDocumentation(); - o.endpoints = buildUnnamed2405(); - o.enums = buildUnnamed2406(); - o.experimental = buildExperimental(); - o.http = buildHttp(); - o.id = "foo"; - o.logging = buildLogging(); - o.logs = buildUnnamed2407(); - o.metrics = buildUnnamed2408(); - o.monitoredResources = buildUnnamed2409(); - o.monitoring = buildMonitoring(); - o.name = "foo"; - o.producerProjectId = "foo"; - o.quota = buildQuota(); - o.sourceInfo = buildSourceInfo(); - o.systemParameters = buildSystemParameters(); - o.systemTypes = buildUnnamed2410(); - o.title = "foo"; - o.types = buildUnnamed2411(); - o.usage = buildUsage(); - o.visibility = buildVisibility(); - } - buildCounterGoogleApiService--; - return o; -} - -checkGoogleApiService(api.GoogleApiService o) { - buildCounterGoogleApiService++; - if (buildCounterGoogleApiService < 3) { - checkUnnamed2404(o.apis); - checkAuthentication(o.authentication); - checkBackend(o.backend); - checkBilling(o.billing); - unittest.expect(o.configVersion, unittest.equals(42)); - checkContext(o.context); - checkControl(o.control); - checkCustomError(o.customError); - checkDocumentation(o.documentation); - checkUnnamed2405(o.endpoints); - checkUnnamed2406(o.enums); - checkExperimental(o.experimental); - checkHttp(o.http); - unittest.expect(o.id, unittest.equals('foo')); - checkLogging(o.logging); - checkUnnamed2407(o.logs); - checkUnnamed2408(o.metrics); - checkUnnamed2409(o.monitoredResources); - checkMonitoring(o.monitoring); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.producerProjectId, unittest.equals('foo')); - checkQuota(o.quota); - checkSourceInfo(o.sourceInfo); - checkSystemParameters(o.systemParameters); - checkUnnamed2410(o.systemTypes); - unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed2411(o.types); - checkUsage(o.usage); - checkVisibility(o.visibility); - } - buildCounterGoogleApiService--; -} - -buildUnnamed2412() { - var o = new core.List<api.HttpRule>(); - o.add(buildHttpRule()); - o.add(buildHttpRule()); - return o; -} - -checkUnnamed2412(core.List<api.HttpRule> o) { - unittest.expect(o, unittest.hasLength(2)); - checkHttpRule(o[0]); - checkHttpRule(o[1]); -} - -core.int buildCounterHttp = 0; -buildHttp() { - var o = new api.Http(); - buildCounterHttp++; - if (buildCounterHttp < 3) { - o.fullyDecodeReservedExpansion = true; - o.rules = buildUnnamed2412(); - } - buildCounterHttp--; - return o; -} - -checkHttp(api.Http o) { - buildCounterHttp++; - if (buildCounterHttp < 3) { - unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); - checkUnnamed2412(o.rules); - } - buildCounterHttp--; -} - -buildUnnamed2413() { - var o = new core.List<api.HttpRule>(); - o.add(buildHttpRule()); - o.add(buildHttpRule()); - return o; -} - -checkUnnamed2413(core.List<api.HttpRule> o) { - unittest.expect(o, unittest.hasLength(2)); - checkHttpRule(o[0]); - checkHttpRule(o[1]); -} - -buildUnnamed2414() { - var o = new core.List<api.AuthorizationRule>(); - o.add(buildAuthorizationRule()); - o.add(buildAuthorizationRule()); - return o; -} - -checkUnnamed2414(core.List<api.AuthorizationRule> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAuthorizationRule(o[0]); - checkAuthorizationRule(o[1]); -} - -core.int buildCounterHttpRule = 0; -buildHttpRule() { - var o = new api.HttpRule(); - buildCounterHttpRule++; - if (buildCounterHttpRule < 3) { - o.additionalBindings = buildUnnamed2413(); - o.authorizations = buildUnnamed2414(); - o.body = "foo"; - o.custom = buildCustomHttpPattern(); - o.delete = "foo"; - o.get = "foo"; - o.mediaDownload = buildMediaDownload(); - o.mediaUpload = buildMediaUpload(); - o.patch = "foo"; - o.post = "foo"; - o.put = "foo"; - o.restCollection = "foo"; - o.restMethodName = "foo"; - o.selector = "foo"; - } - buildCounterHttpRule--; - return o; -} - -checkHttpRule(api.HttpRule o) { - buildCounterHttpRule++; - if (buildCounterHttpRule < 3) { - checkUnnamed2413(o.additionalBindings); - checkUnnamed2414(o.authorizations); - unittest.expect(o.body, unittest.equals('foo')); - checkCustomHttpPattern(o.custom); - unittest.expect(o.delete, unittest.equals('foo')); - unittest.expect(o.get, unittest.equals('foo')); - checkMediaDownload(o.mediaDownload); - checkMediaUpload(o.mediaUpload); - unittest.expect(o.patch, unittest.equals('foo')); - unittest.expect(o.post, unittest.equals('foo')); - unittest.expect(o.put, unittest.equals('foo')); - unittest.expect(o.restCollection, unittest.equals('foo')); - unittest.expect(o.restMethodName, unittest.equals('foo')); - unittest.expect(o.selector, unittest.equals('foo')); - } - buildCounterHttpRule--; -} - -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--; -} - -buildUnnamed2415() { - var o = new core.List<api.ServiceState>(); - o.add(buildServiceState()); - o.add(buildServiceState()); - return o; -} - -checkUnnamed2415(core.List<api.ServiceState> o) { - unittest.expect(o, unittest.hasLength(2)); - checkServiceState(o[0]); - checkServiceState(o[1]); -} - -core.int buildCounterListEnabledServicesResponse = 0; -buildListEnabledServicesResponse() { - var o = new api.ListEnabledServicesResponse(); - buildCounterListEnabledServicesResponse++; - if (buildCounterListEnabledServicesResponse < 3) { - o.nextPageToken = "foo"; - o.services = buildUnnamed2415(); - } - buildCounterListEnabledServicesResponse--; - return o; -} - -checkListEnabledServicesResponse(api.ListEnabledServicesResponse o) { - buildCounterListEnabledServicesResponse++; - if (buildCounterListEnabledServicesResponse < 3) { - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2415(o.services); - } - buildCounterListEnabledServicesResponse--; -} - -buildUnnamed2416() { - var o = new core.List<api.Operation>(); - o.add(buildOperation()); - o.add(buildOperation()); - return o; -} - -checkUnnamed2416(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 = buildUnnamed2416(); - } - buildCounterListOperationsResponse--; - return o; -} - -checkListOperationsResponse(api.ListOperationsResponse o) { - buildCounterListOperationsResponse++; - if (buildCounterListOperationsResponse < 3) { - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2416(o.operations); - } - buildCounterListOperationsResponse--; -} - -buildUnnamed2417() { - var o = new core.List<api.LabelDescriptor>(); - o.add(buildLabelDescriptor()); - o.add(buildLabelDescriptor()); - return o; -} - -checkUnnamed2417(core.List<api.LabelDescriptor> o) { - unittest.expect(o, unittest.hasLength(2)); - checkLabelDescriptor(o[0]); - checkLabelDescriptor(o[1]); -} - -core.int buildCounterLogDescriptor = 0; -buildLogDescriptor() { - var o = new api.LogDescriptor(); - buildCounterLogDescriptor++; - if (buildCounterLogDescriptor < 3) { - o.description = "foo"; - o.displayName = "foo"; - o.labels = buildUnnamed2417(); - o.name = "foo"; - } - buildCounterLogDescriptor--; - return o; -} - -checkLogDescriptor(api.LogDescriptor o) { - buildCounterLogDescriptor++; - if (buildCounterLogDescriptor < 3) { - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed2417(o.labels); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterLogDescriptor--; -} - -buildUnnamed2418() { - var o = new core.List<api.LoggingDestination>(); - o.add(buildLoggingDestination()); - o.add(buildLoggingDestination()); - return o; -} - -checkUnnamed2418(core.List<api.LoggingDestination> o) { - unittest.expect(o, unittest.hasLength(2)); - checkLoggingDestination(o[0]); - checkLoggingDestination(o[1]); -} - -buildUnnamed2419() { - var o = new core.List<api.LoggingDestination>(); - o.add(buildLoggingDestination()); - o.add(buildLoggingDestination()); - return o; -} - -checkUnnamed2419(core.List<api.LoggingDestination> o) { - unittest.expect(o, unittest.hasLength(2)); - checkLoggingDestination(o[0]); - checkLoggingDestination(o[1]); -} - -core.int buildCounterLogging = 0; -buildLogging() { - var o = new api.Logging(); - buildCounterLogging++; - if (buildCounterLogging < 3) { - o.consumerDestinations = buildUnnamed2418(); - o.producerDestinations = buildUnnamed2419(); - } - buildCounterLogging--; - return o; -} - -checkLogging(api.Logging o) { - buildCounterLogging++; - if (buildCounterLogging < 3) { - checkUnnamed2418(o.consumerDestinations); - checkUnnamed2419(o.producerDestinations); - } - buildCounterLogging--; -} - -buildUnnamed2420() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2420(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterLoggingDestination = 0; -buildLoggingDestination() { - var o = new api.LoggingDestination(); - buildCounterLoggingDestination++; - if (buildCounterLoggingDestination < 3) { - o.logs = buildUnnamed2420(); - o.monitoredResource = "foo"; - } - buildCounterLoggingDestination--; - return o; -} - -checkLoggingDestination(api.LoggingDestination o) { - buildCounterLoggingDestination++; - if (buildCounterLoggingDestination < 3) { - checkUnnamed2420(o.logs); - unittest.expect(o.monitoredResource, unittest.equals('foo')); - } - buildCounterLoggingDestination--; -} - -core.int buildCounterMediaDownload = 0; -buildMediaDownload() { - var o = new api.MediaDownload(); - buildCounterMediaDownload++; - if (buildCounterMediaDownload < 3) { - o.completeNotification = true; - o.downloadService = "foo"; - o.dropzone = "foo"; - o.enabled = true; - o.maxDirectDownloadSize = "foo"; - o.useDirectDownload = true; - } - buildCounterMediaDownload--; - return o; -} - -checkMediaDownload(api.MediaDownload o) { - buildCounterMediaDownload++; - if (buildCounterMediaDownload < 3) { - unittest.expect(o.completeNotification, unittest.isTrue); - unittest.expect(o.downloadService, unittest.equals('foo')); - unittest.expect(o.dropzone, unittest.equals('foo')); - unittest.expect(o.enabled, unittest.isTrue); - unittest.expect(o.maxDirectDownloadSize, unittest.equals('foo')); - unittest.expect(o.useDirectDownload, unittest.isTrue); - } - buildCounterMediaDownload--; -} - -buildUnnamed2421() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2421(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterMediaUpload = 0; -buildMediaUpload() { - var o = new api.MediaUpload(); - buildCounterMediaUpload++; - if (buildCounterMediaUpload < 3) { - o.completeNotification = true; - o.dropzone = "foo"; - o.enabled = true; - o.maxSize = "foo"; - o.mimeTypes = buildUnnamed2421(); - o.progressNotification = true; - o.startNotification = true; - o.uploadService = "foo"; - } - buildCounterMediaUpload--; - return o; -} - -checkMediaUpload(api.MediaUpload o) { - buildCounterMediaUpload++; - if (buildCounterMediaUpload < 3) { - unittest.expect(o.completeNotification, unittest.isTrue); - unittest.expect(o.dropzone, unittest.equals('foo')); - unittest.expect(o.enabled, unittest.isTrue); - unittest.expect(o.maxSize, unittest.equals('foo')); - checkUnnamed2421(o.mimeTypes); - unittest.expect(o.progressNotification, unittest.isTrue); - unittest.expect(o.startNotification, unittest.isTrue); - unittest.expect(o.uploadService, unittest.equals('foo')); - } - buildCounterMediaUpload--; -} - -buildUnnamed2422() { - var o = new core.List<api.Option>(); - o.add(buildOption()); - o.add(buildOption()); - return o; -} - -checkUnnamed2422(core.List<api.Option> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOption(o[0]); - checkOption(o[1]); -} - -core.int buildCounterMethod = 0; -buildMethod() { - var o = new api.Method(); - buildCounterMethod++; - if (buildCounterMethod < 3) { - o.name = "foo"; - o.options = buildUnnamed2422(); - o.requestStreaming = true; - o.requestTypeUrl = "foo"; - o.responseStreaming = true; - o.responseTypeUrl = "foo"; - o.syntax = "foo"; - } - buildCounterMethod--; - return o; -} - -checkMethod(api.Method o) { - buildCounterMethod++; - if (buildCounterMethod < 3) { - unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2422(o.options); - unittest.expect(o.requestStreaming, unittest.isTrue); - unittest.expect(o.requestTypeUrl, unittest.equals('foo')); - unittest.expect(o.responseStreaming, unittest.isTrue); - unittest.expect(o.responseTypeUrl, unittest.equals('foo')); - unittest.expect(o.syntax, unittest.equals('foo')); - } - buildCounterMethod--; -} - -buildUnnamed2423() { - var o = new core.List<api.LabelDescriptor>(); - o.add(buildLabelDescriptor()); - o.add(buildLabelDescriptor()); - return o; -} - -checkUnnamed2423(core.List<api.LabelDescriptor> o) { - unittest.expect(o, unittest.hasLength(2)); - checkLabelDescriptor(o[0]); - checkLabelDescriptor(o[1]); -} - -core.int buildCounterMetricDescriptor = 0; -buildMetricDescriptor() { - var o = new api.MetricDescriptor(); - buildCounterMetricDescriptor++; - if (buildCounterMetricDescriptor < 3) { - o.description = "foo"; - o.displayName = "foo"; - o.labels = buildUnnamed2423(); - o.metricKind = "foo"; - o.name = "foo"; - o.type = "foo"; - o.unit = "foo"; - o.valueType = "foo"; - } - buildCounterMetricDescriptor--; - return o; -} - -checkMetricDescriptor(api.MetricDescriptor o) { - buildCounterMetricDescriptor++; - if (buildCounterMetricDescriptor < 3) { - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed2423(o.labels); - unittest.expect(o.metricKind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - unittest.expect(o.unit, unittest.equals('foo')); - unittest.expect(o.valueType, unittest.equals('foo')); - } - buildCounterMetricDescriptor--; -} - -buildUnnamed2424() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed2424(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 buildCounterMetricRule = 0; -buildMetricRule() { - var o = new api.MetricRule(); - buildCounterMetricRule++; - if (buildCounterMetricRule < 3) { - o.metricCosts = buildUnnamed2424(); - o.selector = "foo"; - } - buildCounterMetricRule--; - return o; -} - -checkMetricRule(api.MetricRule o) { - buildCounterMetricRule++; - if (buildCounterMetricRule < 3) { - checkUnnamed2424(o.metricCosts); - unittest.expect(o.selector, unittest.equals('foo')); - } - buildCounterMetricRule--; -} - -core.int buildCounterMixin = 0; -buildMixin() { - var o = new api.Mixin(); - buildCounterMixin++; - if (buildCounterMixin < 3) { - o.name = "foo"; - o.root = "foo"; - } - buildCounterMixin--; - return o; -} - -checkMixin(api.Mixin o) { - buildCounterMixin++; - if (buildCounterMixin < 3) { - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.root, unittest.equals('foo')); - } - buildCounterMixin--; -} - -buildUnnamed2425() { - var o = new core.List<api.LabelDescriptor>(); - o.add(buildLabelDescriptor()); - o.add(buildLabelDescriptor()); - return o; -} - -checkUnnamed2425(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 = buildUnnamed2425(); - 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')); - checkUnnamed2425(o.labels); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterMonitoredResourceDescriptor--; -} - -buildUnnamed2426() { - var o = new core.List<api.MonitoringDestination>(); - o.add(buildMonitoringDestination()); - o.add(buildMonitoringDestination()); - return o; -} - -checkUnnamed2426(core.List<api.MonitoringDestination> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMonitoringDestination(o[0]); - checkMonitoringDestination(o[1]); -} - -buildUnnamed2427() { - var o = new core.List<api.MonitoringDestination>(); - o.add(buildMonitoringDestination()); - o.add(buildMonitoringDestination()); - return o; -} - -checkUnnamed2427(core.List<api.MonitoringDestination> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMonitoringDestination(o[0]); - checkMonitoringDestination(o[1]); -} - -core.int buildCounterMonitoring = 0; -buildMonitoring() { - var o = new api.Monitoring(); - buildCounterMonitoring++; - if (buildCounterMonitoring < 3) { - o.consumerDestinations = buildUnnamed2426(); - o.producerDestinations = buildUnnamed2427(); - } - buildCounterMonitoring--; - return o; -} - -checkMonitoring(api.Monitoring o) { - buildCounterMonitoring++; - if (buildCounterMonitoring < 3) { - checkUnnamed2426(o.consumerDestinations); - checkUnnamed2427(o.producerDestinations); - } - buildCounterMonitoring--; -} - -buildUnnamed2428() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2428(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterMonitoringDestination = 0; -buildMonitoringDestination() { - var o = new api.MonitoringDestination(); - buildCounterMonitoringDestination++; - if (buildCounterMonitoringDestination < 3) { - o.metrics = buildUnnamed2428(); - o.monitoredResource = "foo"; - } - buildCounterMonitoringDestination--; - return o; -} - -checkMonitoringDestination(api.MonitoringDestination o) { - buildCounterMonitoringDestination++; - if (buildCounterMonitoringDestination < 3) { - checkUnnamed2428(o.metrics); - unittest.expect(o.monitoredResource, unittest.equals('foo')); - } - buildCounterMonitoringDestination--; -} - -core.int buildCounterOAuthRequirements = 0; -buildOAuthRequirements() { - var o = new api.OAuthRequirements(); - buildCounterOAuthRequirements++; - if (buildCounterOAuthRequirements < 3) { - o.canonicalScopes = "foo"; - } - buildCounterOAuthRequirements--; - return o; -} - -checkOAuthRequirements(api.OAuthRequirements o) { - buildCounterOAuthRequirements++; - if (buildCounterOAuthRequirements < 3) { - unittest.expect(o.canonicalScopes, unittest.equals('foo')); - } - buildCounterOAuthRequirements--; -} - -buildUnnamed2429() { - 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; -} - -checkUnnamed2429(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')); -} - -buildUnnamed2430() { - 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; -} - -checkUnnamed2430(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 = buildUnnamed2429(); - o.name = "foo"; - o.response = buildUnnamed2430(); - } - buildCounterOperation--; - return o; -} - -checkOperation(api.Operation o) { - buildCounterOperation++; - if (buildCounterOperation < 3) { - unittest.expect(o.done, unittest.isTrue); - checkStatus(o.error); - checkUnnamed2429(o.metadata); - unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2430(o.response); - } - buildCounterOperation--; -} - -buildUnnamed2431() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2431(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2432() { - var o = new core.List<api.Step>(); - o.add(buildStep()); - o.add(buildStep()); - return o; -} - -checkUnnamed2432(core.List<api.Step> o) { - unittest.expect(o, unittest.hasLength(2)); - checkStep(o[0]); - checkStep(o[1]); -} - -core.int buildCounterOperationMetadata = 0; -buildOperationMetadata() { - var o = new api.OperationMetadata(); - buildCounterOperationMetadata++; - if (buildCounterOperationMetadata < 3) { - o.progressPercentage = 42; - o.resourceNames = buildUnnamed2431(); - o.startTime = "foo"; - o.steps = buildUnnamed2432(); - } - buildCounterOperationMetadata--; - return o; -} - -checkOperationMetadata(api.OperationMetadata o) { - buildCounterOperationMetadata++; - if (buildCounterOperationMetadata < 3) { - unittest.expect(o.progressPercentage, unittest.equals(42)); - checkUnnamed2431(o.resourceNames); - unittest.expect(o.startTime, unittest.equals('foo')); - checkUnnamed2432(o.steps); - } - buildCounterOperationMetadata--; -} - -buildUnnamed2433() { - 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; -} - -checkUnnamed2433(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')); -} - -core.int buildCounterOption = 0; -buildOption() { - var o = new api.Option(); - buildCounterOption++; - if (buildCounterOption < 3) { - o.name = "foo"; - o.value = buildUnnamed2433(); - } - buildCounterOption--; - return o; -} - -checkOption(api.Option o) { - buildCounterOption++; - if (buildCounterOption < 3) { - unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2433(o.value); - } - buildCounterOption--; -} - -buildUnnamed2434() { - var o = new core.List<api.Page>(); - o.add(buildPage()); - o.add(buildPage()); - return o; -} - -checkUnnamed2434(core.List<api.Page> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPage(o[0]); - checkPage(o[1]); -} - -core.int buildCounterPage = 0; -buildPage() { - var o = new api.Page(); - buildCounterPage++; - if (buildCounterPage < 3) { - o.content = "foo"; - o.name = "foo"; - o.subpages = buildUnnamed2434(); - } - buildCounterPage--; - return o; -} - -checkPage(api.Page o) { - buildCounterPage++; - if (buildCounterPage < 3) { - unittest.expect(o.content, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2434(o.subpages); - } - buildCounterPage--; -} - -core.int buildCounterPublishedService = 0; -buildPublishedService() { - var o = new api.PublishedService(); - buildCounterPublishedService++; - if (buildCounterPublishedService < 3) { - o.name = "foo"; - o.service = buildGoogleApiService(); - } - buildCounterPublishedService--; - return o; -} - -checkPublishedService(api.PublishedService o) { - buildCounterPublishedService++; - if (buildCounterPublishedService < 3) { - unittest.expect(o.name, unittest.equals('foo')); - checkGoogleApiService(o.service); - } - buildCounterPublishedService--; -} - -buildUnnamed2435() { - var o = new core.List<api.QuotaLimit>(); - o.add(buildQuotaLimit()); - o.add(buildQuotaLimit()); - return o; -} - -checkUnnamed2435(core.List<api.QuotaLimit> o) { - unittest.expect(o, unittest.hasLength(2)); - checkQuotaLimit(o[0]); - checkQuotaLimit(o[1]); -} - -buildUnnamed2436() { - var o = new core.List<api.MetricRule>(); - o.add(buildMetricRule()); - o.add(buildMetricRule()); - return o; -} - -checkUnnamed2436(core.List<api.MetricRule> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetricRule(o[0]); - checkMetricRule(o[1]); -} - -core.int buildCounterQuota = 0; -buildQuota() { - var o = new api.Quota(); - buildCounterQuota++; - if (buildCounterQuota < 3) { - o.limits = buildUnnamed2435(); - o.metricRules = buildUnnamed2436(); - } - buildCounterQuota--; - return o; -} - -checkQuota(api.Quota o) { - buildCounterQuota++; - if (buildCounterQuota < 3) { - checkUnnamed2435(o.limits); - checkUnnamed2436(o.metricRules); - } - buildCounterQuota--; -} - -buildUnnamed2437() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed2437(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 buildCounterQuotaLimit = 0; -buildQuotaLimit() { - var o = new api.QuotaLimit(); - buildCounterQuotaLimit++; - if (buildCounterQuotaLimit < 3) { - o.defaultLimit = "foo"; - o.description = "foo"; - o.displayName = "foo"; - o.duration = "foo"; - o.freeTier = "foo"; - o.maxLimit = "foo"; - o.metric = "foo"; - o.name = "foo"; - o.unit = "foo"; - o.values = buildUnnamed2437(); - } - buildCounterQuotaLimit--; - return o; -} - -checkQuotaLimit(api.QuotaLimit o) { - buildCounterQuotaLimit++; - if (buildCounterQuotaLimit < 3) { - unittest.expect(o.defaultLimit, unittest.equals('foo')); - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.displayName, unittest.equals('foo')); - unittest.expect(o.duration, unittest.equals('foo')); - unittest.expect(o.freeTier, unittest.equals('foo')); - unittest.expect(o.maxLimit, unittest.equals('foo')); - unittest.expect(o.metric, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.unit, unittest.equals('foo')); - checkUnnamed2437(o.values); - } - buildCounterQuotaLimit--; -} - -buildUnnamed2438() { - var o = new core.List<api.PublishedService>(); - o.add(buildPublishedService()); - o.add(buildPublishedService()); - return o; -} - -checkUnnamed2438(core.List<api.PublishedService> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPublishedService(o[0]); - checkPublishedService(o[1]); -} - -core.int buildCounterSearchServicesResponse = 0; -buildSearchServicesResponse() { - var o = new api.SearchServicesResponse(); - buildCounterSearchServicesResponse++; - if (buildCounterSearchServicesResponse < 3) { - o.nextPageToken = "foo"; - o.services = buildUnnamed2438(); - } - buildCounterSearchServicesResponse--; - return o; -} - -checkSearchServicesResponse(api.SearchServicesResponse o) { - buildCounterSearchServicesResponse++; - if (buildCounterSearchServicesResponse < 3) { - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2438(o.services); - } - buildCounterSearchServicesResponse--; -} - -core.int buildCounterServiceState = 0; -buildServiceState() { - var o = new api.ServiceState(); - buildCounterServiceState++; - if (buildCounterServiceState < 3) { - o.enabled = buildEnabledState(); - o.name = "foo"; - o.service = buildPublishedService(); - } - buildCounterServiceState--; - return o; -} - -checkServiceState(api.ServiceState o) { - buildCounterServiceState++; - if (buildCounterServiceState < 3) { - checkEnabledState(o.enabled); - unittest.expect(o.name, unittest.equals('foo')); - checkPublishedService(o.service); - } - buildCounterServiceState--; -} - -core.int buildCounterSourceContext = 0; -buildSourceContext() { - var o = new api.SourceContext(); - buildCounterSourceContext++; - if (buildCounterSourceContext < 3) { - o.fileName = "foo"; - } - buildCounterSourceContext--; - return o; -} - -checkSourceContext(api.SourceContext o) { - buildCounterSourceContext++; - if (buildCounterSourceContext < 3) { - unittest.expect(o.fileName, unittest.equals('foo')); - } - buildCounterSourceContext--; -} - -buildUnnamed2439() { - 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; -} - -checkUnnamed2439(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')); -} - -buildUnnamed2440() { - var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2439()); - o.add(buildUnnamed2439()); - return o; -} - -checkUnnamed2440(core.List<core.Map<core.String, core.Object>> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2439(o[0]); - checkUnnamed2439(o[1]); -} - -core.int buildCounterSourceInfo = 0; -buildSourceInfo() { - var o = new api.SourceInfo(); - buildCounterSourceInfo++; - if (buildCounterSourceInfo < 3) { - o.sourceFiles = buildUnnamed2440(); - } - buildCounterSourceInfo--; - return o; -} - -checkSourceInfo(api.SourceInfo o) { - buildCounterSourceInfo++; - if (buildCounterSourceInfo < 3) { - checkUnnamed2440(o.sourceFiles); - } - buildCounterSourceInfo--; -} - -buildUnnamed2441() { - 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; -} - -checkUnnamed2441(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')); -} - -buildUnnamed2442() { - var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2441()); - o.add(buildUnnamed2441()); - return o; -} - -checkUnnamed2442(core.List<core.Map<core.String, core.Object>> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2441(o[0]); - checkUnnamed2441(o[1]); -} - -core.int buildCounterStatus = 0; -buildStatus() { - var o = new api.Status(); - buildCounterStatus++; - if (buildCounterStatus < 3) { - o.code = 42; - o.details = buildUnnamed2442(); - o.message = "foo"; - } - buildCounterStatus--; - return o; -} - -checkStatus(api.Status o) { - buildCounterStatus++; - if (buildCounterStatus < 3) { - unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2442(o.details); - unittest.expect(o.message, unittest.equals('foo')); - } - buildCounterStatus--; -} - -core.int buildCounterStep = 0; -buildStep() { - var o = new api.Step(); - buildCounterStep++; - if (buildCounterStep < 3) { - o.description = "foo"; - o.status = "foo"; - } - buildCounterStep--; - return o; -} - -checkStep(api.Step o) { - buildCounterStep++; - if (buildCounterStep < 3) { - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.status, unittest.equals('foo')); - } - buildCounterStep--; -} - -core.int buildCounterSystemParameter = 0; -buildSystemParameter() { - var o = new api.SystemParameter(); - buildCounterSystemParameter++; - if (buildCounterSystemParameter < 3) { - o.httpHeader = "foo"; - o.name = "foo"; - o.urlQueryParameter = "foo"; - } - buildCounterSystemParameter--; - return o; -} - -checkSystemParameter(api.SystemParameter o) { - buildCounterSystemParameter++; - if (buildCounterSystemParameter < 3) { - unittest.expect(o.httpHeader, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.urlQueryParameter, unittest.equals('foo')); - } - buildCounterSystemParameter--; -} - -buildUnnamed2443() { - var o = new core.List<api.SystemParameter>(); - o.add(buildSystemParameter()); - o.add(buildSystemParameter()); - return o; -} - -checkUnnamed2443(core.List<api.SystemParameter> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSystemParameter(o[0]); - checkSystemParameter(o[1]); -} - -core.int buildCounterSystemParameterRule = 0; -buildSystemParameterRule() { - var o = new api.SystemParameterRule(); - buildCounterSystemParameterRule++; - if (buildCounterSystemParameterRule < 3) { - o.parameters = buildUnnamed2443(); - o.selector = "foo"; - } - buildCounterSystemParameterRule--; - return o; -} - -checkSystemParameterRule(api.SystemParameterRule o) { - buildCounterSystemParameterRule++; - if (buildCounterSystemParameterRule < 3) { - checkUnnamed2443(o.parameters); - unittest.expect(o.selector, unittest.equals('foo')); - } - buildCounterSystemParameterRule--; -} - -buildUnnamed2444() { - var o = new core.List<api.SystemParameterRule>(); - o.add(buildSystemParameterRule()); - o.add(buildSystemParameterRule()); - return o; -} - -checkUnnamed2444(core.List<api.SystemParameterRule> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSystemParameterRule(o[0]); - checkSystemParameterRule(o[1]); -} - -core.int buildCounterSystemParameters = 0; -buildSystemParameters() { - var o = new api.SystemParameters(); - buildCounterSystemParameters++; - if (buildCounterSystemParameters < 3) { - o.rules = buildUnnamed2444(); - } - buildCounterSystemParameters--; - return o; -} - -checkSystemParameters(api.SystemParameters o) { - buildCounterSystemParameters++; - if (buildCounterSystemParameters < 3) { - checkUnnamed2444(o.rules); - } - buildCounterSystemParameters--; -} - -buildUnnamed2445() { - var o = new core.List<api.Field>(); - o.add(buildField()); - o.add(buildField()); - return o; -} - -checkUnnamed2445(core.List<api.Field> o) { - unittest.expect(o, unittest.hasLength(2)); - checkField(o[0]); - checkField(o[1]); -} - -buildUnnamed2446() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2446(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2447() { - var o = new core.List<api.Option>(); - o.add(buildOption()); - o.add(buildOption()); - return o; -} - -checkUnnamed2447(core.List<api.Option> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOption(o[0]); - checkOption(o[1]); -} - -core.int buildCounterType = 0; -buildType() { - var o = new api.Type(); - buildCounterType++; - if (buildCounterType < 3) { - o.fields = buildUnnamed2445(); - o.name = "foo"; - o.oneofs = buildUnnamed2446(); - o.options = buildUnnamed2447(); - o.sourceContext = buildSourceContext(); - o.syntax = "foo"; - } - buildCounterType--; - return o; -} - -checkType(api.Type o) { - buildCounterType++; - if (buildCounterType < 3) { - checkUnnamed2445(o.fields); - unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2446(o.oneofs); - checkUnnamed2447(o.options); - checkSourceContext(o.sourceContext); - unittest.expect(o.syntax, unittest.equals('foo')); - } - buildCounterType--; -} - -buildUnnamed2448() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2449() { - var o = new core.List<api.UsageRule>(); - o.add(buildUsageRule()); - o.add(buildUsageRule()); - return o; -} - -checkUnnamed2449(core.List<api.UsageRule> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUsageRule(o[0]); - checkUsageRule(o[1]); -} - -core.int buildCounterUsage = 0; -buildUsage() { - var o = new api.Usage(); - buildCounterUsage++; - if (buildCounterUsage < 3) { - o.producerNotificationChannel = "foo"; - o.requirements = buildUnnamed2448(); - o.rules = buildUnnamed2449(); - } - buildCounterUsage--; - return o; -} - -checkUsage(api.Usage o) { - buildCounterUsage++; - if (buildCounterUsage < 3) { - unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); - checkUnnamed2448(o.requirements); - checkUnnamed2449(o.rules); - } - buildCounterUsage--; -} - -core.int buildCounterUsageRule = 0; -buildUsageRule() { - var o = new api.UsageRule(); - buildCounterUsageRule++; - if (buildCounterUsageRule < 3) { - o.allowUnregisteredCalls = true; - o.selector = "foo"; - o.skipServiceControl = true; - } - buildCounterUsageRule--; - return o; -} - -checkUsageRule(api.UsageRule o) { - buildCounterUsageRule++; - if (buildCounterUsageRule < 3) { - unittest.expect(o.allowUnregisteredCalls, unittest.isTrue); - unittest.expect(o.selector, unittest.equals('foo')); - unittest.expect(o.skipServiceControl, unittest.isTrue); - } - buildCounterUsageRule--; -} - -buildUnnamed2450() { - var o = new core.List<api.VisibilityRule>(); - o.add(buildVisibilityRule()); - o.add(buildVisibilityRule()); - return o; -} - -checkUnnamed2450(core.List<api.VisibilityRule> o) { - unittest.expect(o, unittest.hasLength(2)); - checkVisibilityRule(o[0]); - checkVisibilityRule(o[1]); -} - -core.int buildCounterVisibility = 0; -buildVisibility() { - var o = new api.Visibility(); - buildCounterVisibility++; - if (buildCounterVisibility < 3) { - o.rules = buildUnnamed2450(); - } - buildCounterVisibility--; - return o; -} - -checkVisibility(api.Visibility o) { - buildCounterVisibility++; - if (buildCounterVisibility < 3) { - checkUnnamed2450(o.rules); - } - buildCounterVisibility--; -} - -core.int buildCounterVisibilityRule = 0; -buildVisibilityRule() { - var o = new api.VisibilityRule(); - buildCounterVisibilityRule++; - if (buildCounterVisibilityRule < 3) { - o.restriction = "foo"; - o.selector = "foo"; - } - buildCounterVisibilityRule--; - return o; -} - -checkVisibilityRule(api.VisibilityRule o) { - buildCounterVisibilityRule++; - if (buildCounterVisibilityRule < 3) { - unittest.expect(o.restriction, unittest.equals('foo')); - unittest.expect(o.selector, unittest.equals('foo')); - } - buildCounterVisibilityRule--; -} - -main() { - unittest.group("obj-schema-Api", () { - unittest.test("to-json--from-json", () { - var o = buildApi(); - var od = new api.Api.fromJson(o.toJson()); - checkApi(od); - }); - }); - - unittest.group("obj-schema-AuthProvider", () { - unittest.test("to-json--from-json", () { - var o = buildAuthProvider(); - var od = new api.AuthProvider.fromJson(o.toJson()); - checkAuthProvider(od); - }); - }); - - unittest.group("obj-schema-AuthRequirement", () { - unittest.test("to-json--from-json", () { - var o = buildAuthRequirement(); - var od = new api.AuthRequirement.fromJson(o.toJson()); - checkAuthRequirement(od); - }); - }); - - unittest.group("obj-schema-Authentication", () { - unittest.test("to-json--from-json", () { - var o = buildAuthentication(); - var od = new api.Authentication.fromJson(o.toJson()); - checkAuthentication(od); - }); - }); - - unittest.group("obj-schema-AuthenticationRule", () { - unittest.test("to-json--from-json", () { - var o = buildAuthenticationRule(); - var od = new api.AuthenticationRule.fromJson(o.toJson()); - checkAuthenticationRule(od); - }); - }); - - unittest.group("obj-schema-AuthorizationConfig", () { - unittest.test("to-json--from-json", () { - var o = buildAuthorizationConfig(); - var od = new api.AuthorizationConfig.fromJson(o.toJson()); - checkAuthorizationConfig(od); - }); - }); - - unittest.group("obj-schema-AuthorizationRule", () { - unittest.test("to-json--from-json", () { - var o = buildAuthorizationRule(); - var od = new api.AuthorizationRule.fromJson(o.toJson()); - checkAuthorizationRule(od); - }); - }); - - unittest.group("obj-schema-Backend", () { - unittest.test("to-json--from-json", () { - var o = buildBackend(); - var od = new api.Backend.fromJson(o.toJson()); - checkBackend(od); - }); - }); - - unittest.group("obj-schema-BackendRule", () { - unittest.test("to-json--from-json", () { - var o = buildBackendRule(); - var od = new api.BackendRule.fromJson(o.toJson()); - checkBackendRule(od); - }); - }); - - unittest.group("obj-schema-Billing", () { - unittest.test("to-json--from-json", () { - var o = buildBilling(); - var od = new api.Billing.fromJson(o.toJson()); - checkBilling(od); - }); - }); - - unittest.group("obj-schema-BillingDestination", () { - unittest.test("to-json--from-json", () { - var o = buildBillingDestination(); - var od = new api.BillingDestination.fromJson(o.toJson()); - checkBillingDestination(od); - }); - }); - - 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-Context", () { - unittest.test("to-json--from-json", () { - var o = buildContext(); - var od = new api.Context.fromJson(o.toJson()); - checkContext(od); - }); - }); - - unittest.group("obj-schema-ContextRule", () { - unittest.test("to-json--from-json", () { - var o = buildContextRule(); - var od = new api.ContextRule.fromJson(o.toJson()); - checkContextRule(od); - }); - }); - - unittest.group("obj-schema-Control", () { - unittest.test("to-json--from-json", () { - var o = buildControl(); - var od = new api.Control.fromJson(o.toJson()); - checkControl(od); - }); - }); - - unittest.group("obj-schema-CustomAuthRequirements", () { - unittest.test("to-json--from-json", () { - var o = buildCustomAuthRequirements(); - var od = new api.CustomAuthRequirements.fromJson(o.toJson()); - checkCustomAuthRequirements(od); - }); - }); - - unittest.group("obj-schema-CustomError", () { - unittest.test("to-json--from-json", () { - var o = buildCustomError(); - var od = new api.CustomError.fromJson(o.toJson()); - checkCustomError(od); - }); - }); - - unittest.group("obj-schema-CustomErrorRule", () { - unittest.test("to-json--from-json", () { - var o = buildCustomErrorRule(); - var od = new api.CustomErrorRule.fromJson(o.toJson()); - checkCustomErrorRule(od); - }); - }); - - unittest.group("obj-schema-CustomHttpPattern", () { - unittest.test("to-json--from-json", () { - var o = buildCustomHttpPattern(); - var od = new api.CustomHttpPattern.fromJson(o.toJson()); - checkCustomHttpPattern(od); - }); - }); - - unittest.group("obj-schema-DisableServiceRequest", () { - unittest.test("to-json--from-json", () { - var o = buildDisableServiceRequest(); - var od = new api.DisableServiceRequest.fromJson(o.toJson()); - checkDisableServiceRequest(od); - }); - }); - - unittest.group("obj-schema-Documentation", () { - unittest.test("to-json--from-json", () { - var o = buildDocumentation(); - var od = new api.Documentation.fromJson(o.toJson()); - checkDocumentation(od); - }); - }); - - unittest.group("obj-schema-DocumentationRule", () { - unittest.test("to-json--from-json", () { - var o = buildDocumentationRule(); - var od = new api.DocumentationRule.fromJson(o.toJson()); - checkDocumentationRule(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-EnableServiceRequest", () { - unittest.test("to-json--from-json", () { - var o = buildEnableServiceRequest(); - var od = new api.EnableServiceRequest.fromJson(o.toJson()); - checkEnableServiceRequest(od); - }); - }); - - unittest.group("obj-schema-EnabledState", () { - unittest.test("to-json--from-json", () { - var o = buildEnabledState(); - var od = new api.EnabledState.fromJson(o.toJson()); - checkEnabledState(od); - }); - }); - - unittest.group("obj-schema-Endpoint", () { - unittest.test("to-json--from-json", () { - var o = buildEndpoint(); - var od = new api.Endpoint.fromJson(o.toJson()); - checkEndpoint(od); - }); - }); - - unittest.group("obj-schema-Enum", () { - unittest.test("to-json--from-json", () { - var o = buildEnum(); - var od = new api.Enum.fromJson(o.toJson()); - checkEnum(od); - }); - }); - - unittest.group("obj-schema-EnumValue", () { - unittest.test("to-json--from-json", () { - var o = buildEnumValue(); - var od = new api.EnumValue.fromJson(o.toJson()); - checkEnumValue(od); - }); - }); - - unittest.group("obj-schema-Experimental", () { - unittest.test("to-json--from-json", () { - var o = buildExperimental(); - var od = new api.Experimental.fromJson(o.toJson()); - checkExperimental(od); - }); - }); - - unittest.group("obj-schema-Field", () { - unittest.test("to-json--from-json", () { - var o = buildField(); - var od = new api.Field.fromJson(o.toJson()); - checkField(od); - }); - }); - - unittest.group("obj-schema-GoogleApiService", () { - unittest.test("to-json--from-json", () { - var o = buildGoogleApiService(); - var od = new api.GoogleApiService.fromJson(o.toJson()); - checkGoogleApiService(od); - }); - }); - - unittest.group("obj-schema-Http", () { - unittest.test("to-json--from-json", () { - var o = buildHttp(); - var od = new api.Http.fromJson(o.toJson()); - checkHttp(od); - }); - }); - - unittest.group("obj-schema-HttpRule", () { - unittest.test("to-json--from-json", () { - var o = buildHttpRule(); - var od = new api.HttpRule.fromJson(o.toJson()); - checkHttpRule(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-ListEnabledServicesResponse", () { - unittest.test("to-json--from-json", () { - var o = buildListEnabledServicesResponse(); - var od = new api.ListEnabledServicesResponse.fromJson(o.toJson()); - checkListEnabledServicesResponse(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-LogDescriptor", () { - unittest.test("to-json--from-json", () { - var o = buildLogDescriptor(); - var od = new api.LogDescriptor.fromJson(o.toJson()); - checkLogDescriptor(od); - }); - }); - - unittest.group("obj-schema-Logging", () { - unittest.test("to-json--from-json", () { - var o = buildLogging(); - var od = new api.Logging.fromJson(o.toJson()); - checkLogging(od); - }); - }); - - unittest.group("obj-schema-LoggingDestination", () { - unittest.test("to-json--from-json", () { - var o = buildLoggingDestination(); - var od = new api.LoggingDestination.fromJson(o.toJson()); - checkLoggingDestination(od); - }); - }); - - unittest.group("obj-schema-MediaDownload", () { - unittest.test("to-json--from-json", () { - var o = buildMediaDownload(); - var od = new api.MediaDownload.fromJson(o.toJson()); - checkMediaDownload(od); - }); - }); - - unittest.group("obj-schema-MediaUpload", () { - unittest.test("to-json--from-json", () { - var o = buildMediaUpload(); - var od = new api.MediaUpload.fromJson(o.toJson()); - checkMediaUpload(od); - }); - }); - - unittest.group("obj-schema-Method", () { - unittest.test("to-json--from-json", () { - var o = buildMethod(); - var od = new api.Method.fromJson(o.toJson()); - checkMethod(od); - }); - }); - - unittest.group("obj-schema-MetricDescriptor", () { - unittest.test("to-json--from-json", () { - var o = buildMetricDescriptor(); - var od = new api.MetricDescriptor.fromJson(o.toJson()); - checkMetricDescriptor(od); - }); - }); - - unittest.group("obj-schema-MetricRule", () { - unittest.test("to-json--from-json", () { - var o = buildMetricRule(); - var od = new api.MetricRule.fromJson(o.toJson()); - checkMetricRule(od); - }); - }); - - unittest.group("obj-schema-Mixin", () { - unittest.test("to-json--from-json", () { - var o = buildMixin(); - var od = new api.Mixin.fromJson(o.toJson()); - checkMixin(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-Monitoring", () { - unittest.test("to-json--from-json", () { - var o = buildMonitoring(); - var od = new api.Monitoring.fromJson(o.toJson()); - checkMonitoring(od); - }); - }); - - unittest.group("obj-schema-MonitoringDestination", () { - unittest.test("to-json--from-json", () { - var o = buildMonitoringDestination(); - var od = new api.MonitoringDestination.fromJson(o.toJson()); - checkMonitoringDestination(od); - }); - }); - - unittest.group("obj-schema-OAuthRequirements", () { - unittest.test("to-json--from-json", () { - var o = buildOAuthRequirements(); - var od = new api.OAuthRequirements.fromJson(o.toJson()); - checkOAuthRequirements(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-OperationMetadata", () { - unittest.test("to-json--from-json", () { - var o = buildOperationMetadata(); - var od = new api.OperationMetadata.fromJson(o.toJson()); - checkOperationMetadata(od); - }); - }); - - unittest.group("obj-schema-Option", () { - unittest.test("to-json--from-json", () { - var o = buildOption(); - var od = new api.Option.fromJson(o.toJson()); - checkOption(od); - }); - }); - - unittest.group("obj-schema-Page", () { - unittest.test("to-json--from-json", () { - var o = buildPage(); - var od = new api.Page.fromJson(o.toJson()); - checkPage(od); - }); - }); - - unittest.group("obj-schema-PublishedService", () { - unittest.test("to-json--from-json", () { - var o = buildPublishedService(); - var od = new api.PublishedService.fromJson(o.toJson()); - checkPublishedService(od); - }); - }); - - unittest.group("obj-schema-Quota", () { - unittest.test("to-json--from-json", () { - var o = buildQuota(); - var od = new api.Quota.fromJson(o.toJson()); - checkQuota(od); - }); - }); - - unittest.group("obj-schema-QuotaLimit", () { - unittest.test("to-json--from-json", () { - var o = buildQuotaLimit(); - var od = new api.QuotaLimit.fromJson(o.toJson()); - checkQuotaLimit(od); - }); - }); - - unittest.group("obj-schema-SearchServicesResponse", () { - unittest.test("to-json--from-json", () { - var o = buildSearchServicesResponse(); - var od = new api.SearchServicesResponse.fromJson(o.toJson()); - checkSearchServicesResponse(od); - }); - }); - - unittest.group("obj-schema-ServiceState", () { - unittest.test("to-json--from-json", () { - var o = buildServiceState(); - var od = new api.ServiceState.fromJson(o.toJson()); - checkServiceState(od); - }); - }); - - unittest.group("obj-schema-SourceContext", () { - unittest.test("to-json--from-json", () { - var o = buildSourceContext(); - var od = new api.SourceContext.fromJson(o.toJson()); - checkSourceContext(od); - }); - }); - - unittest.group("obj-schema-SourceInfo", () { - unittest.test("to-json--from-json", () { - var o = buildSourceInfo(); - var od = new api.SourceInfo.fromJson(o.toJson()); - checkSourceInfo(od); - }); - }); - - unittest.group("obj-schema-Status", () { - unittest.test("to-json--from-json", () { - var o = buildStatus(); - var od = new api.Status.fromJson(o.toJson()); - checkStatus(od); - }); - }); - - unittest.group("obj-schema-Step", () { - unittest.test("to-json--from-json", () { - var o = buildStep(); - var od = new api.Step.fromJson(o.toJson()); - checkStep(od); - }); - }); - - unittest.group("obj-schema-SystemParameter", () { - unittest.test("to-json--from-json", () { - var o = buildSystemParameter(); - var od = new api.SystemParameter.fromJson(o.toJson()); - checkSystemParameter(od); - }); - }); - - unittest.group("obj-schema-SystemParameterRule", () { - unittest.test("to-json--from-json", () { - var o = buildSystemParameterRule(); - var od = new api.SystemParameterRule.fromJson(o.toJson()); - checkSystemParameterRule(od); - }); - }); - - unittest.group("obj-schema-SystemParameters", () { - unittest.test("to-json--from-json", () { - var o = buildSystemParameters(); - var od = new api.SystemParameters.fromJson(o.toJson()); - checkSystemParameters(od); - }); - }); - - unittest.group("obj-schema-Type", () { - unittest.test("to-json--from-json", () { - var o = buildType(); - var od = new api.Type.fromJson(o.toJson()); - checkType(od); - }); - }); - - unittest.group("obj-schema-Usage", () { - unittest.test("to-json--from-json", () { - var o = buildUsage(); - var od = new api.Usage.fromJson(o.toJson()); - checkUsage(od); - }); - }); - - unittest.group("obj-schema-UsageRule", () { - unittest.test("to-json--from-json", () { - var o = buildUsageRule(); - var od = new api.UsageRule.fromJson(o.toJson()); - checkUsageRule(od); - }); - }); - - unittest.group("obj-schema-Visibility", () { - unittest.test("to-json--from-json", () { - var o = buildVisibility(); - var od = new api.Visibility.fromJson(o.toJson()); - checkVisibility(od); - }); - }); - - unittest.group("obj-schema-VisibilityRule", () { - unittest.test("to-json--from-json", () { - var o = buildVisibilityRule(); - var od = new api.VisibilityRule.fromJson(o.toJson()); - checkVisibilityRule(od); - }); - }); - - unittest.group("resource-OperationsResourceApi", () { - unittest.test("method--cancel", () { - var mock = new HttpServerMock(); - api.OperationsResourceApi res = new api.ServiceusageApi(mock).operations; - var arg_request = buildCancelOperationRequest(); - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - 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, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkEmpty(response); - }))); - }); - - unittest.test("method--delete", () { - var mock = new HttpServerMock(); - api.OperationsResourceApi res = new api.ServiceusageApi(mock).operations; - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - 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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - 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, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkEmpty(response); - }))); - }); - - unittest.test("method--get", () { - var mock = new HttpServerMock(); - api.OperationsResourceApi res = new api.ServiceusageApi(mock).operations; - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - 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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - 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_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkOperation(response); - }))); - }); - - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.OperationsResourceApi res = new api.ServiceusageApi(mock).operations; - var arg_filter = "foo"; - var arg_name = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - 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/operations")); - pathOffset += 13; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["name"].first, unittest.equals(arg_name)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - 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( - filter: arg_filter, - name: arg_name, - pageToken: arg_pageToken, - pageSize: arg_pageSize, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkListOperationsResponse(response); - }))); - }); - }); - - unittest.group("resource-ServicesResourceApi", () { - unittest.test("method--disable", () { - var mock = new HttpServerMock(); - api.ServicesResourceApi res = new api.ServiceusageApi(mock).services; - var arg_request = buildDisableServiceRequest(); - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.DisableServiceRequest.fromJson(json); - checkDisableServiceRequest(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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - 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 - .disable(arg_request, arg_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkOperation(response); - }))); - }); - - unittest.test("method--enable", () { - var mock = new HttpServerMock(); - api.ServicesResourceApi res = new api.ServiceusageApi(mock).services; - var arg_request = buildEnableServiceRequest(); - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.EnableServiceRequest.fromJson(json); - checkEnableServiceRequest(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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - 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 - .enable(arg_request, arg_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkOperation(response); - }))); - }); - - unittest.test("method--get", () { - var mock = new HttpServerMock(); - api.ServicesResourceApi res = new api.ServiceusageApi(mock).services; - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - 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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildServiceState()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .get(arg_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkServiceState(response); - }))); - }); - - unittest.test("method--listEnabled", () { - var mock = new HttpServerMock(); - api.ServicesResourceApi res = new api.ServiceusageApi(mock).services; - var arg_parent = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - 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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildListEnabledServicesResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .listEnabled(arg_parent, - pageToken: arg_pageToken, - pageSize: arg_pageSize, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkListEnabledServicesResponse(response); - }))); - }); - - unittest.test("method--search", () { - var mock = new HttpServerMock(); - api.ServicesResourceApi res = new api.ServiceusageApi(mock).services; - var arg_pageToken = "foo"; - var arg_pageSize = 42; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), - unittest.equals("v1/services:search")); - pathOffset += 18; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildSearchServicesResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .search( - pageToken: arg_pageToken, - pageSize: arg_pageSize, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkSearchServicesResponse(response); - }))); - }); - }); -}
diff --git a/generated/googleapis/test/serviceuser/v1_test.dart b/generated/googleapis/test/serviceuser/v1_test.dart index 958dbdc..868a1a7 100644 --- a/generated/googleapis/test/serviceuser/v1_test.dart +++ b/generated/googleapis/test/serviceuser/v1_test.dart
@@ -50,40 +50,40 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed14() { +buildUnnamed3772() { var o = new core.List<api.Method>(); o.add(buildMethod()); o.add(buildMethod()); return o; } -checkUnnamed14(core.List<api.Method> o) { +checkUnnamed3772(core.List<api.Method> o) { unittest.expect(o, unittest.hasLength(2)); checkMethod(o[0]); checkMethod(o[1]); } -buildUnnamed15() { +buildUnnamed3773() { var o = new core.List<api.Mixin>(); o.add(buildMixin()); o.add(buildMixin()); return o; } -checkUnnamed15(core.List<api.Mixin> o) { +checkUnnamed3773(core.List<api.Mixin> o) { unittest.expect(o, unittest.hasLength(2)); checkMixin(o[0]); checkMixin(o[1]); } -buildUnnamed16() { +buildUnnamed3774() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed16(core.List<api.Option> o) { +checkUnnamed3774(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -94,10 +94,10 @@ var o = new api.Api(); buildCounterApi++; if (buildCounterApi < 3) { - o.methods = buildUnnamed14(); - o.mixins = buildUnnamed15(); + o.methods = buildUnnamed3772(); + o.mixins = buildUnnamed3773(); o.name = "foo"; - o.options = buildUnnamed16(); + o.options = buildUnnamed3774(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; o.version = "foo"; @@ -109,10 +109,10 @@ checkApi(api.Api o) { buildCounterApi++; if (buildCounterApi < 3) { - checkUnnamed14(o.methods); - checkUnnamed15(o.mixins); + checkUnnamed3772(o.methods); + checkUnnamed3773(o.mixins); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed16(o.options); + checkUnnamed3774(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -168,27 +168,27 @@ buildCounterAuthRequirement--; } -buildUnnamed17() { +buildUnnamed3775() { var o = new core.List<api.AuthProvider>(); o.add(buildAuthProvider()); o.add(buildAuthProvider()); return o; } -checkUnnamed17(core.List<api.AuthProvider> o) { +checkUnnamed3775(core.List<api.AuthProvider> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthProvider(o[0]); checkAuthProvider(o[1]); } -buildUnnamed18() { +buildUnnamed3776() { var o = new core.List<api.AuthenticationRule>(); o.add(buildAuthenticationRule()); o.add(buildAuthenticationRule()); return o; } -checkUnnamed18(core.List<api.AuthenticationRule> o) { +checkUnnamed3776(core.List<api.AuthenticationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthenticationRule(o[0]); checkAuthenticationRule(o[1]); @@ -199,8 +199,8 @@ var o = new api.Authentication(); buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - o.providers = buildUnnamed17(); - o.rules = buildUnnamed18(); + o.providers = buildUnnamed3775(); + o.rules = buildUnnamed3776(); } buildCounterAuthentication--; return o; @@ -209,20 +209,20 @@ checkAuthentication(api.Authentication o) { buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - checkUnnamed17(o.providers); - checkUnnamed18(o.rules); + checkUnnamed3775(o.providers); + checkUnnamed3776(o.rules); } buildCounterAuthentication--; } -buildUnnamed19() { +buildUnnamed3777() { var o = new core.List<api.AuthRequirement>(); o.add(buildAuthRequirement()); o.add(buildAuthRequirement()); return o; } -checkUnnamed19(core.List<api.AuthRequirement> o) { +checkUnnamed3777(core.List<api.AuthRequirement> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthRequirement(o[0]); checkAuthRequirement(o[1]); @@ -234,9 +234,8 @@ buildCounterAuthenticationRule++; if (buildCounterAuthenticationRule < 3) { o.allowWithoutCredential = true; - o.customAuth = buildCustomAuthRequirements(); o.oauth = buildOAuthRequirements(); - o.requirements = buildUnnamed19(); + o.requirements = buildUnnamed3777(); o.selector = "foo"; } buildCounterAuthenticationRule--; @@ -247,9 +246,8 @@ buildCounterAuthenticationRule++; if (buildCounterAuthenticationRule < 3) { unittest.expect(o.allowWithoutCredential, unittest.isTrue); - checkCustomAuthRequirements(o.customAuth); checkOAuthRequirements(o.oauth); - checkUnnamed19(o.requirements); + checkUnnamed3777(o.requirements); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterAuthenticationRule--; @@ -274,14 +272,14 @@ buildCounterAuthorizationConfig--; } -buildUnnamed20() { +buildUnnamed3778() { var o = new core.List<api.BackendRule>(); o.add(buildBackendRule()); o.add(buildBackendRule()); return o; } -checkUnnamed20(core.List<api.BackendRule> o) { +checkUnnamed3778(core.List<api.BackendRule> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendRule(o[0]); checkBackendRule(o[1]); @@ -292,7 +290,7 @@ var o = new api.Backend(); buildCounterBackend++; if (buildCounterBackend < 3) { - o.rules = buildUnnamed20(); + o.rules = buildUnnamed3778(); } buildCounterBackend--; return o; @@ -301,7 +299,7 @@ checkBackend(api.Backend o) { buildCounterBackend++; if (buildCounterBackend < 3) { - checkUnnamed20(o.rules); + checkUnnamed3778(o.rules); } buildCounterBackend--; } @@ -331,14 +329,14 @@ buildCounterBackendRule--; } -buildUnnamed21() { +buildUnnamed3779() { var o = new core.List<api.BillingDestination>(); o.add(buildBillingDestination()); o.add(buildBillingDestination()); return o; } -checkUnnamed21(core.List<api.BillingDestination> o) { +checkUnnamed3779(core.List<api.BillingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkBillingDestination(o[0]); checkBillingDestination(o[1]); @@ -349,7 +347,7 @@ var o = new api.Billing(); buildCounterBilling++; if (buildCounterBilling < 3) { - o.consumerDestinations = buildUnnamed21(); + o.consumerDestinations = buildUnnamed3779(); } buildCounterBilling--; return o; @@ -358,19 +356,19 @@ checkBilling(api.Billing o) { buildCounterBilling++; if (buildCounterBilling < 3) { - checkUnnamed21(o.consumerDestinations); + checkUnnamed3779(o.consumerDestinations); } buildCounterBilling--; } -buildUnnamed22() { +buildUnnamed3780() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed22(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')); @@ -381,7 +379,7 @@ var o = new api.BillingDestination(); buildCounterBillingDestination++; if (buildCounterBillingDestination < 3) { - o.metrics = buildUnnamed22(); + o.metrics = buildUnnamed3780(); o.monitoredResource = "foo"; } buildCounterBillingDestination--; @@ -391,20 +389,20 @@ checkBillingDestination(api.BillingDestination o) { buildCounterBillingDestination++; if (buildCounterBillingDestination < 3) { - checkUnnamed22(o.metrics); + checkUnnamed3780(o.metrics); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterBillingDestination--; } -buildUnnamed23() { +buildUnnamed3781() { var o = new core.List<api.ContextRule>(); o.add(buildContextRule()); o.add(buildContextRule()); return o; } -checkUnnamed23(core.List<api.ContextRule> o) { +checkUnnamed3781(core.List<api.ContextRule> o) { unittest.expect(o, unittest.hasLength(2)); checkContextRule(o[0]); checkContextRule(o[1]); @@ -415,7 +413,7 @@ var o = new api.Context(); buildCounterContext++; if (buildCounterContext < 3) { - o.rules = buildUnnamed23(); + o.rules = buildUnnamed3781(); } buildCounterContext--; return o; @@ -424,32 +422,58 @@ checkContext(api.Context o) { buildCounterContext++; if (buildCounterContext < 3) { - checkUnnamed23(o.rules); + checkUnnamed3781(o.rules); } buildCounterContext--; } -buildUnnamed24() { +buildUnnamed3782() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed24(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')); } -buildUnnamed25() { +buildUnnamed3783() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed25(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')); +} + +buildUnnamed3784() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed3785() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); @@ -460,8 +484,10 @@ var o = new api.ContextRule(); buildCounterContextRule++; if (buildCounterContextRule < 3) { - o.provided = buildUnnamed24(); - o.requested = buildUnnamed25(); + o.allowedRequestExtensions = buildUnnamed3782(); + o.allowedResponseExtensions = buildUnnamed3783(); + o.provided = buildUnnamed3784(); + o.requested = buildUnnamed3785(); o.selector = "foo"; } buildCounterContextRule--; @@ -471,8 +497,10 @@ checkContextRule(api.ContextRule o) { buildCounterContextRule++; if (buildCounterContextRule < 3) { - checkUnnamed24(o.provided); - checkUnnamed25(o.requested); + checkUnnamed3782(o.allowedRequestExtensions); + checkUnnamed3783(o.allowedResponseExtensions); + checkUnnamed3784(o.provided); + checkUnnamed3785(o.requested); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterContextRule--; @@ -497,46 +525,27 @@ buildCounterControl--; } -core.int buildCounterCustomAuthRequirements = 0; -buildCustomAuthRequirements() { - var o = new api.CustomAuthRequirements(); - buildCounterCustomAuthRequirements++; - if (buildCounterCustomAuthRequirements < 3) { - o.provider = "foo"; - } - buildCounterCustomAuthRequirements--; - return o; -} - -checkCustomAuthRequirements(api.CustomAuthRequirements o) { - buildCounterCustomAuthRequirements++; - if (buildCounterCustomAuthRequirements < 3) { - unittest.expect(o.provider, unittest.equals('foo')); - } - buildCounterCustomAuthRequirements--; -} - -buildUnnamed26() { +buildUnnamed3786() { var o = new core.List<api.CustomErrorRule>(); o.add(buildCustomErrorRule()); o.add(buildCustomErrorRule()); return o; } -checkUnnamed26(core.List<api.CustomErrorRule> o) { +checkUnnamed3786(core.List<api.CustomErrorRule> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomErrorRule(o[0]); checkCustomErrorRule(o[1]); } -buildUnnamed27() { +buildUnnamed3787() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed27(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')); @@ -547,8 +556,8 @@ var o = new api.CustomError(); buildCounterCustomError++; if (buildCounterCustomError < 3) { - o.rules = buildUnnamed26(); - o.types = buildUnnamed27(); + o.rules = buildUnnamed3786(); + o.types = buildUnnamed3787(); } buildCounterCustomError--; return o; @@ -557,8 +566,8 @@ checkCustomError(api.CustomError o) { buildCounterCustomError++; if (buildCounterCustomError < 3) { - checkUnnamed26(o.rules); - checkUnnamed27(o.types); + checkUnnamed3786(o.rules); + checkUnnamed3787(o.types); } buildCounterCustomError--; } @@ -620,27 +629,27 @@ buildCounterDisableServiceRequest--; } -buildUnnamed28() { +buildUnnamed3788() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed28(core.List<api.Page> o) { +checkUnnamed3788(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed29() { +buildUnnamed3789() { var o = new core.List<api.DocumentationRule>(); o.add(buildDocumentationRule()); o.add(buildDocumentationRule()); return o; } -checkUnnamed29(core.List<api.DocumentationRule> o) { +checkUnnamed3789(core.List<api.DocumentationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkDocumentationRule(o[0]); checkDocumentationRule(o[1]); @@ -653,8 +662,8 @@ if (buildCounterDocumentation < 3) { o.documentationRootUrl = "foo"; o.overview = "foo"; - o.pages = buildUnnamed28(); - o.rules = buildUnnamed29(); + o.pages = buildUnnamed3788(); + o.rules = buildUnnamed3789(); o.summary = "foo"; } buildCounterDocumentation--; @@ -666,8 +675,8 @@ if (buildCounterDocumentation < 3) { unittest.expect(o.documentationRootUrl, unittest.equals('foo')); unittest.expect(o.overview, unittest.equals('foo')); - checkUnnamed28(o.pages); - checkUnnamed29(o.rules); + checkUnnamed3788(o.pages); + checkUnnamed3789(o.rules); unittest.expect(o.summary, unittest.equals('foo')); } buildCounterDocumentation--; @@ -711,27 +720,27 @@ buildCounterEnableServiceRequest--; } -buildUnnamed30() { +buildUnnamed3790() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed30(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')); } -buildUnnamed31() { +buildUnnamed3791() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed31(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')); @@ -742,9 +751,9 @@ var o = new api.Endpoint(); buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - o.aliases = buildUnnamed30(); + o.aliases = buildUnnamed3790(); o.allowCors = true; - o.features = buildUnnamed31(); + o.features = buildUnnamed3791(); o.name = "foo"; o.target = "foo"; } @@ -755,36 +764,36 @@ checkEndpoint(api.Endpoint o) { buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - checkUnnamed30(o.aliases); + checkUnnamed3790(o.aliases); unittest.expect(o.allowCors, unittest.isTrue); - checkUnnamed31(o.features); + checkUnnamed3791(o.features); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); } buildCounterEndpoint--; } -buildUnnamed32() { +buildUnnamed3792() { var o = new core.List<api.EnumValue>(); o.add(buildEnumValue()); o.add(buildEnumValue()); return o; } -checkUnnamed32(core.List<api.EnumValue> o) { +checkUnnamed3792(core.List<api.EnumValue> o) { unittest.expect(o, unittest.hasLength(2)); checkEnumValue(o[0]); checkEnumValue(o[1]); } -buildUnnamed33() { +buildUnnamed3793() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed33(core.List<api.Option> o) { +checkUnnamed3793(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -795,9 +804,9 @@ var o = new api.Enum(); buildCounterEnum++; if (buildCounterEnum < 3) { - o.enumvalue = buildUnnamed32(); + o.enumvalue = buildUnnamed3792(); o.name = "foo"; - o.options = buildUnnamed33(); + o.options = buildUnnamed3793(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -808,23 +817,23 @@ checkEnum(api.Enum o) { buildCounterEnum++; if (buildCounterEnum < 3) { - checkUnnamed32(o.enumvalue); + checkUnnamed3792(o.enumvalue); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed33(o.options); + checkUnnamed3793(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } buildCounterEnum--; } -buildUnnamed34() { +buildUnnamed3794() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed34(core.List<api.Option> o) { +checkUnnamed3794(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -837,7 +846,7 @@ if (buildCounterEnumValue < 3) { o.name = "foo"; o.number = 42; - o.options = buildUnnamed34(); + o.options = buildUnnamed3794(); } buildCounterEnumValue--; return o; @@ -848,7 +857,7 @@ if (buildCounterEnumValue < 3) { unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); - checkUnnamed34(o.options); + checkUnnamed3794(o.options); } buildCounterEnumValue--; } @@ -872,14 +881,14 @@ buildCounterExperimental--; } -buildUnnamed35() { +buildUnnamed3795() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed35(core.List<api.Option> o) { +checkUnnamed3795(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -897,7 +906,7 @@ o.name = "foo"; o.number = 42; o.oneofIndex = 42; - o.options = buildUnnamed35(); + o.options = buildUnnamed3795(); o.packed = true; o.typeUrl = "foo"; } @@ -915,21 +924,21 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); unittest.expect(o.oneofIndex, unittest.equals(42)); - checkUnnamed35(o.options); + checkUnnamed3795(o.options); unittest.expect(o.packed, unittest.isTrue); unittest.expect(o.typeUrl, unittest.equals('foo')); } buildCounterField--; } -buildUnnamed36() { +buildUnnamed3796() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed36(core.List<api.HttpRule> o) { +checkUnnamed3796(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -941,7 +950,7 @@ buildCounterHttp++; if (buildCounterHttp < 3) { o.fullyDecodeReservedExpansion = true; - o.rules = buildUnnamed36(); + o.rules = buildUnnamed3796(); } buildCounterHttp--; return o; @@ -951,19 +960,19 @@ buildCounterHttp++; if (buildCounterHttp < 3) { unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); - checkUnnamed36(o.rules); + checkUnnamed3796(o.rules); } buildCounterHttp--; } -buildUnnamed37() { +buildUnnamed3797() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed37(core.List<api.HttpRule> o) { +checkUnnamed3797(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -974,7 +983,7 @@ var o = new api.HttpRule(); buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - o.additionalBindings = buildUnnamed37(); + o.additionalBindings = buildUnnamed3797(); o.body = "foo"; o.custom = buildCustomHttpPattern(); o.delete = "foo"; @@ -993,7 +1002,7 @@ checkHttpRule(api.HttpRule o) { buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - checkUnnamed37(o.additionalBindings); + checkUnnamed3797(o.additionalBindings); unittest.expect(o.body, unittest.equals('foo')); checkCustomHttpPattern(o.custom); unittest.expect(o.delete, unittest.equals('foo')); @@ -1031,14 +1040,14 @@ buildCounterLabelDescriptor--; } -buildUnnamed38() { +buildUnnamed3798() { var o = new core.List<api.PublishedService>(); o.add(buildPublishedService()); o.add(buildPublishedService()); return o; } -checkUnnamed38(core.List<api.PublishedService> o) { +checkUnnamed3798(core.List<api.PublishedService> o) { unittest.expect(o, unittest.hasLength(2)); checkPublishedService(o[0]); checkPublishedService(o[1]); @@ -1050,7 +1059,7 @@ buildCounterListEnabledServicesResponse++; if (buildCounterListEnabledServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed38(); + o.services = buildUnnamed3798(); } buildCounterListEnabledServicesResponse--; return o; @@ -1060,19 +1069,19 @@ buildCounterListEnabledServicesResponse++; if (buildCounterListEnabledServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed38(o.services); + checkUnnamed3798(o.services); } buildCounterListEnabledServicesResponse--; } -buildUnnamed39() { +buildUnnamed3799() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed39(core.List<api.LabelDescriptor> o) { +checkUnnamed3799(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1085,7 +1094,7 @@ if (buildCounterLogDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed39(); + o.labels = buildUnnamed3799(); o.name = "foo"; } buildCounterLogDescriptor--; @@ -1097,33 +1106,33 @@ if (buildCounterLogDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed39(o.labels); + checkUnnamed3799(o.labels); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLogDescriptor--; } -buildUnnamed40() { +buildUnnamed3800() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed40(core.List<api.LoggingDestination> o) { +checkUnnamed3800(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); } -buildUnnamed41() { +buildUnnamed3801() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed41(core.List<api.LoggingDestination> o) { +checkUnnamed3801(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); @@ -1134,8 +1143,8 @@ var o = new api.Logging(); buildCounterLogging++; if (buildCounterLogging < 3) { - o.consumerDestinations = buildUnnamed40(); - o.producerDestinations = buildUnnamed41(); + o.consumerDestinations = buildUnnamed3800(); + o.producerDestinations = buildUnnamed3801(); } buildCounterLogging--; return o; @@ -1144,20 +1153,20 @@ checkLogging(api.Logging o) { buildCounterLogging++; if (buildCounterLogging < 3) { - checkUnnamed40(o.consumerDestinations); - checkUnnamed41(o.producerDestinations); + checkUnnamed3800(o.consumerDestinations); + checkUnnamed3801(o.producerDestinations); } buildCounterLogging--; } -buildUnnamed42() { +buildUnnamed3802() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed42(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')); @@ -1168,7 +1177,7 @@ var o = new api.LoggingDestination(); buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - o.logs = buildUnnamed42(); + o.logs = buildUnnamed3802(); o.monitoredResource = "foo"; } buildCounterLoggingDestination--; @@ -1178,7 +1187,7 @@ checkLoggingDestination(api.LoggingDestination o) { buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - checkUnnamed42(o.logs); + checkUnnamed3802(o.logs); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterLoggingDestination--; @@ -1213,14 +1222,14 @@ buildCounterMediaDownload--; } -buildUnnamed43() { +buildUnnamed3803() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed43(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')); @@ -1235,7 +1244,7 @@ o.dropzone = "foo"; o.enabled = true; o.maxSize = "foo"; - o.mimeTypes = buildUnnamed43(); + o.mimeTypes = buildUnnamed3803(); o.progressNotification = true; o.startNotification = true; o.uploadService = "foo"; @@ -1251,7 +1260,7 @@ unittest.expect(o.dropzone, unittest.equals('foo')); unittest.expect(o.enabled, unittest.isTrue); unittest.expect(o.maxSize, unittest.equals('foo')); - checkUnnamed43(o.mimeTypes); + checkUnnamed3803(o.mimeTypes); unittest.expect(o.progressNotification, unittest.isTrue); unittest.expect(o.startNotification, unittest.isTrue); unittest.expect(o.uploadService, unittest.equals('foo')); @@ -1259,14 +1268,14 @@ buildCounterMediaUpload--; } -buildUnnamed44() { +buildUnnamed3804() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed44(core.List<api.Option> o) { +checkUnnamed3804(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1278,7 +1287,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { o.name = "foo"; - o.options = buildUnnamed44(); + o.options = buildUnnamed3804(); o.requestStreaming = true; o.requestTypeUrl = "foo"; o.responseStreaming = true; @@ -1293,7 +1302,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed44(o.options); + checkUnnamed3804(o.options); unittest.expect(o.requestStreaming, unittest.isTrue); unittest.expect(o.requestTypeUrl, unittest.equals('foo')); unittest.expect(o.responseStreaming, unittest.isTrue); @@ -1303,14 +1312,14 @@ buildCounterMethod--; } -buildUnnamed45() { +buildUnnamed3805() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed45(core.List<api.LabelDescriptor> o) { +checkUnnamed3805(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1323,7 +1332,7 @@ if (buildCounterMetricDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed45(); + o.labels = buildUnnamed3805(); o.metricKind = "foo"; o.name = "foo"; o.type = "foo"; @@ -1339,7 +1348,7 @@ if (buildCounterMetricDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed45(o.labels); + checkUnnamed3805(o.labels); unittest.expect(o.metricKind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -1349,14 +1358,14 @@ buildCounterMetricDescriptor--; } -buildUnnamed46() { +buildUnnamed3806() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed46(core.Map<core.String, core.String> o) { +checkUnnamed3806(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')); @@ -1367,7 +1376,7 @@ var o = new api.MetricRule(); buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - o.metricCosts = buildUnnamed46(); + o.metricCosts = buildUnnamed3806(); o.selector = "foo"; } buildCounterMetricRule--; @@ -1377,7 +1386,7 @@ checkMetricRule(api.MetricRule o) { buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - checkUnnamed46(o.metricCosts); + checkUnnamed3806(o.metricCosts); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterMetricRule--; @@ -1404,14 +1413,14 @@ buildCounterMixin--; } -buildUnnamed47() { +buildUnnamed3807() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed47(core.List<api.LabelDescriptor> o) { +checkUnnamed3807(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1424,7 +1433,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed47(); + o.labels = buildUnnamed3807(); o.name = "foo"; o.type = "foo"; } @@ -1437,34 +1446,34 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed47(o.labels); + checkUnnamed3807(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResourceDescriptor--; } -buildUnnamed48() { +buildUnnamed3808() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed48(core.List<api.MonitoringDestination> o) { +checkUnnamed3808(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); } -buildUnnamed49() { +buildUnnamed3809() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed49(core.List<api.MonitoringDestination> o) { +checkUnnamed3809(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); @@ -1475,8 +1484,8 @@ var o = new api.Monitoring(); buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - o.consumerDestinations = buildUnnamed48(); - o.producerDestinations = buildUnnamed49(); + o.consumerDestinations = buildUnnamed3808(); + o.producerDestinations = buildUnnamed3809(); } buildCounterMonitoring--; return o; @@ -1485,20 +1494,20 @@ checkMonitoring(api.Monitoring o) { buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - checkUnnamed48(o.consumerDestinations); - checkUnnamed49(o.producerDestinations); + checkUnnamed3808(o.consumerDestinations); + checkUnnamed3809(o.producerDestinations); } buildCounterMonitoring--; } -buildUnnamed50() { +buildUnnamed3810() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed50(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')); @@ -1509,7 +1518,7 @@ var o = new api.MonitoringDestination(); buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - o.metrics = buildUnnamed50(); + o.metrics = buildUnnamed3810(); o.monitoredResource = "foo"; } buildCounterMonitoringDestination--; @@ -1519,7 +1528,7 @@ checkMonitoringDestination(api.MonitoringDestination o) { buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - checkUnnamed50(o.metrics); + checkUnnamed3810(o.metrics); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterMonitoringDestination--; @@ -1544,7 +1553,7 @@ buildCounterOAuthRequirements--; } -buildUnnamed51() { +buildUnnamed3811() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1559,7 +1568,7 @@ return o; } -checkUnnamed51(core.Map<core.String, core.Object> o) { +checkUnnamed3811(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)); @@ -1573,7 +1582,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed52() { +buildUnnamed3812() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1588,7 +1597,7 @@ return o; } -checkUnnamed52(core.Map<core.String, core.Object> o) { +checkUnnamed3812(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)); @@ -1609,9 +1618,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed51(); + o.metadata = buildUnnamed3811(); o.name = "foo"; - o.response = buildUnnamed52(); + o.response = buildUnnamed3812(); } buildCounterOperation--; return o; @@ -1622,34 +1631,34 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed51(o.metadata); + checkUnnamed3811(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed52(o.response); + checkUnnamed3812(o.response); } buildCounterOperation--; } -buildUnnamed53() { +buildUnnamed3813() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed53(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')); } -buildUnnamed54() { +buildUnnamed3814() { var o = new core.List<api.Step>(); o.add(buildStep()); o.add(buildStep()); return o; } -checkUnnamed54(core.List<api.Step> o) { +checkUnnamed3814(core.List<api.Step> o) { unittest.expect(o, unittest.hasLength(2)); checkStep(o[0]); checkStep(o[1]); @@ -1661,9 +1670,9 @@ buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { o.progressPercentage = 42; - o.resourceNames = buildUnnamed53(); + o.resourceNames = buildUnnamed3813(); o.startTime = "foo"; - o.steps = buildUnnamed54(); + o.steps = buildUnnamed3814(); } buildCounterOperationMetadata--; return o; @@ -1673,14 +1682,14 @@ buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { unittest.expect(o.progressPercentage, unittest.equals(42)); - checkUnnamed53(o.resourceNames); + checkUnnamed3813(o.resourceNames); unittest.expect(o.startTime, unittest.equals('foo')); - checkUnnamed54(o.steps); + checkUnnamed3814(o.steps); } buildCounterOperationMetadata--; } -buildUnnamed55() { +buildUnnamed3815() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1695,7 +1704,7 @@ return o; } -checkUnnamed55(core.Map<core.String, core.Object> o) { +checkUnnamed3815(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)); @@ -1715,7 +1724,7 @@ buildCounterOption++; if (buildCounterOption < 3) { o.name = "foo"; - o.value = buildUnnamed55(); + o.value = buildUnnamed3815(); } buildCounterOption--; return o; @@ -1725,19 +1734,19 @@ buildCounterOption++; if (buildCounterOption < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed55(o.value); + checkUnnamed3815(o.value); } buildCounterOption--; } -buildUnnamed56() { +buildUnnamed3816() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed56(core.List<api.Page> o) { +checkUnnamed3816(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -1750,7 +1759,7 @@ if (buildCounterPage < 3) { o.content = "foo"; o.name = "foo"; - o.subpages = buildUnnamed56(); + o.subpages = buildUnnamed3816(); } buildCounterPage--; return o; @@ -1761,7 +1770,7 @@ if (buildCounterPage < 3) { unittest.expect(o.content, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed56(o.subpages); + checkUnnamed3816(o.subpages); } buildCounterPage--; } @@ -1787,27 +1796,27 @@ buildCounterPublishedService--; } -buildUnnamed57() { +buildUnnamed3817() { var o = new core.List<api.QuotaLimit>(); o.add(buildQuotaLimit()); o.add(buildQuotaLimit()); return o; } -checkUnnamed57(core.List<api.QuotaLimit> o) { +checkUnnamed3817(core.List<api.QuotaLimit> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaLimit(o[0]); checkQuotaLimit(o[1]); } -buildUnnamed58() { +buildUnnamed3818() { var o = new core.List<api.MetricRule>(); o.add(buildMetricRule()); o.add(buildMetricRule()); return o; } -checkUnnamed58(core.List<api.MetricRule> o) { +checkUnnamed3818(core.List<api.MetricRule> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricRule(o[0]); checkMetricRule(o[1]); @@ -1818,8 +1827,8 @@ var o = new api.Quota(); buildCounterQuota++; if (buildCounterQuota < 3) { - o.limits = buildUnnamed57(); - o.metricRules = buildUnnamed58(); + o.limits = buildUnnamed3817(); + o.metricRules = buildUnnamed3818(); } buildCounterQuota--; return o; @@ -1828,20 +1837,20 @@ checkQuota(api.Quota o) { buildCounterQuota++; if (buildCounterQuota < 3) { - checkUnnamed57(o.limits); - checkUnnamed58(o.metricRules); + checkUnnamed3817(o.limits); + checkUnnamed3818(o.metricRules); } buildCounterQuota--; } -buildUnnamed59() { +buildUnnamed3819() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed59(core.Map<core.String, core.String> o) { +checkUnnamed3819(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')); @@ -1861,7 +1870,7 @@ o.metric = "foo"; o.name = "foo"; o.unit = "foo"; - o.values = buildUnnamed59(); + o.values = buildUnnamed3819(); } buildCounterQuotaLimit--; return o; @@ -1879,19 +1888,19 @@ unittest.expect(o.metric, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.unit, unittest.equals('foo')); - checkUnnamed59(o.values); + checkUnnamed3819(o.values); } buildCounterQuotaLimit--; } -buildUnnamed60() { +buildUnnamed3820() { var o = new core.List<api.PublishedService>(); o.add(buildPublishedService()); o.add(buildPublishedService()); return o; } -checkUnnamed60(core.List<api.PublishedService> o) { +checkUnnamed3820(core.List<api.PublishedService> o) { unittest.expect(o, unittest.hasLength(2)); checkPublishedService(o[0]); checkPublishedService(o[1]); @@ -1903,7 +1912,7 @@ buildCounterSearchServicesResponse++; if (buildCounterSearchServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed60(); + o.services = buildUnnamed3820(); } buildCounterSearchServicesResponse--; return o; @@ -1913,110 +1922,110 @@ buildCounterSearchServicesResponse++; if (buildCounterSearchServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed60(o.services); + checkUnnamed3820(o.services); } buildCounterSearchServicesResponse--; } -buildUnnamed61() { +buildUnnamed3821() { var o = new core.List<api.Api>(); o.add(buildApi()); o.add(buildApi()); return o; } -checkUnnamed61(core.List<api.Api> o) { +checkUnnamed3821(core.List<api.Api> o) { unittest.expect(o, unittest.hasLength(2)); checkApi(o[0]); checkApi(o[1]); } -buildUnnamed62() { +buildUnnamed3822() { var o = new core.List<api.Endpoint>(); o.add(buildEndpoint()); o.add(buildEndpoint()); return o; } -checkUnnamed62(core.List<api.Endpoint> o) { +checkUnnamed3822(core.List<api.Endpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkEndpoint(o[0]); checkEndpoint(o[1]); } -buildUnnamed63() { +buildUnnamed3823() { var o = new core.List<api.Enum>(); o.add(buildEnum()); o.add(buildEnum()); return o; } -checkUnnamed63(core.List<api.Enum> o) { +checkUnnamed3823(core.List<api.Enum> o) { unittest.expect(o, unittest.hasLength(2)); checkEnum(o[0]); checkEnum(o[1]); } -buildUnnamed64() { +buildUnnamed3824() { var o = new core.List<api.LogDescriptor>(); o.add(buildLogDescriptor()); o.add(buildLogDescriptor()); return o; } -checkUnnamed64(core.List<api.LogDescriptor> o) { +checkUnnamed3824(core.List<api.LogDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLogDescriptor(o[0]); checkLogDescriptor(o[1]); } -buildUnnamed65() { +buildUnnamed3825() { var o = new core.List<api.MetricDescriptor>(); o.add(buildMetricDescriptor()); o.add(buildMetricDescriptor()); return o; } -checkUnnamed65(core.List<api.MetricDescriptor> o) { +checkUnnamed3825(core.List<api.MetricDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricDescriptor(o[0]); checkMetricDescriptor(o[1]); } -buildUnnamed66() { +buildUnnamed3826() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed66(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed3826(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); } -buildUnnamed67() { +buildUnnamed3827() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed67(core.List<api.Type> o) { +checkUnnamed3827(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); } -buildUnnamed68() { +buildUnnamed3828() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed68(core.List<api.Type> o) { +checkUnnamed3828(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); @@ -2027,7 +2036,7 @@ var o = new api.Service(); buildCounterService++; if (buildCounterService < 3) { - o.apis = buildUnnamed61(); + o.apis = buildUnnamed3821(); o.authentication = buildAuthentication(); o.backend = buildBackend(); o.billing = buildBilling(); @@ -2036,26 +2045,25 @@ o.control = buildControl(); o.customError = buildCustomError(); o.documentation = buildDocumentation(); - o.endpoints = buildUnnamed62(); - o.enums = buildUnnamed63(); + o.endpoints = buildUnnamed3822(); + o.enums = buildUnnamed3823(); o.experimental = buildExperimental(); o.http = buildHttp(); o.id = "foo"; o.logging = buildLogging(); - o.logs = buildUnnamed64(); - o.metrics = buildUnnamed65(); - o.monitoredResources = buildUnnamed66(); + o.logs = buildUnnamed3824(); + o.metrics = buildUnnamed3825(); + o.monitoredResources = buildUnnamed3826(); o.monitoring = buildMonitoring(); o.name = "foo"; o.producerProjectId = "foo"; o.quota = buildQuota(); o.sourceInfo = buildSourceInfo(); o.systemParameters = buildSystemParameters(); - o.systemTypes = buildUnnamed67(); + o.systemTypes = buildUnnamed3827(); o.title = "foo"; - o.types = buildUnnamed68(); + o.types = buildUnnamed3828(); o.usage = buildUsage(); - o.visibility = buildVisibility(); } buildCounterService--; return o; @@ -2064,7 +2072,7 @@ checkService(api.Service o) { buildCounterService++; if (buildCounterService < 3) { - checkUnnamed61(o.apis); + checkUnnamed3821(o.apis); checkAuthentication(o.authentication); checkBackend(o.backend); checkBilling(o.billing); @@ -2073,26 +2081,25 @@ checkControl(o.control); checkCustomError(o.customError); checkDocumentation(o.documentation); - checkUnnamed62(o.endpoints); - checkUnnamed63(o.enums); + checkUnnamed3822(o.endpoints); + checkUnnamed3823(o.enums); checkExperimental(o.experimental); checkHttp(o.http); unittest.expect(o.id, unittest.equals('foo')); checkLogging(o.logging); - checkUnnamed64(o.logs); - checkUnnamed65(o.metrics); - checkUnnamed66(o.monitoredResources); + checkUnnamed3824(o.logs); + checkUnnamed3825(o.metrics); + checkUnnamed3826(o.monitoredResources); checkMonitoring(o.monitoring); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.producerProjectId, unittest.equals('foo')); checkQuota(o.quota); checkSourceInfo(o.sourceInfo); checkSystemParameters(o.systemParameters); - checkUnnamed67(o.systemTypes); + checkUnnamed3827(o.systemTypes); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed68(o.types); + checkUnnamed3828(o.types); checkUsage(o.usage); - checkVisibility(o.visibility); } buildCounterService--; } @@ -2116,7 +2123,7 @@ buildCounterSourceContext--; } -buildUnnamed69() { +buildUnnamed3829() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2131,7 +2138,7 @@ return o; } -checkUnnamed69(core.Map<core.String, core.Object> o) { +checkUnnamed3829(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)); @@ -2145,17 +2152,17 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed70() { +buildUnnamed3830() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed69()); - o.add(buildUnnamed69()); + o.add(buildUnnamed3829()); + o.add(buildUnnamed3829()); return o; } -checkUnnamed70(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3830(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed69(o[0]); - checkUnnamed69(o[1]); + checkUnnamed3829(o[0]); + checkUnnamed3829(o[1]); } core.int buildCounterSourceInfo = 0; @@ -2163,7 +2170,7 @@ var o = new api.SourceInfo(); buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - o.sourceFiles = buildUnnamed70(); + o.sourceFiles = buildUnnamed3830(); } buildCounterSourceInfo--; return o; @@ -2172,12 +2179,12 @@ checkSourceInfo(api.SourceInfo o) { buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - checkUnnamed70(o.sourceFiles); + checkUnnamed3830(o.sourceFiles); } buildCounterSourceInfo--; } -buildUnnamed71() { +buildUnnamed3831() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2192,7 +2199,7 @@ return o; } -checkUnnamed71(core.Map<core.String, core.Object> o) { +checkUnnamed3831(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)); @@ -2206,17 +2213,17 @@ unittest.expect(casted10["string"], unittest.equals('foo')); } -buildUnnamed72() { +buildUnnamed3832() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed71()); - o.add(buildUnnamed71()); + o.add(buildUnnamed3831()); + o.add(buildUnnamed3831()); return o; } -checkUnnamed72(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3832(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed71(o[0]); - checkUnnamed71(o[1]); + checkUnnamed3831(o[0]); + checkUnnamed3831(o[1]); } core.int buildCounterStatus = 0; @@ -2225,7 +2232,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed72(); + o.details = buildUnnamed3832(); o.message = "foo"; } buildCounterStatus--; @@ -2236,7 +2243,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed72(o.details); + checkUnnamed3832(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -2286,14 +2293,14 @@ buildCounterSystemParameter--; } -buildUnnamed73() { +buildUnnamed3833() { var o = new core.List<api.SystemParameter>(); o.add(buildSystemParameter()); o.add(buildSystemParameter()); return o; } -checkUnnamed73(core.List<api.SystemParameter> o) { +checkUnnamed3833(core.List<api.SystemParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameter(o[0]); checkSystemParameter(o[1]); @@ -2304,7 +2311,7 @@ var o = new api.SystemParameterRule(); buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - o.parameters = buildUnnamed73(); + o.parameters = buildUnnamed3833(); o.selector = "foo"; } buildCounterSystemParameterRule--; @@ -2314,20 +2321,20 @@ checkSystemParameterRule(api.SystemParameterRule o) { buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - checkUnnamed73(o.parameters); + checkUnnamed3833(o.parameters); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterSystemParameterRule--; } -buildUnnamed74() { +buildUnnamed3834() { var o = new core.List<api.SystemParameterRule>(); o.add(buildSystemParameterRule()); o.add(buildSystemParameterRule()); return o; } -checkUnnamed74(core.List<api.SystemParameterRule> o) { +checkUnnamed3834(core.List<api.SystemParameterRule> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameterRule(o[0]); checkSystemParameterRule(o[1]); @@ -2338,7 +2345,7 @@ var o = new api.SystemParameters(); buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - o.rules = buildUnnamed74(); + o.rules = buildUnnamed3834(); } buildCounterSystemParameters--; return o; @@ -2347,45 +2354,45 @@ checkSystemParameters(api.SystemParameters o) { buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - checkUnnamed74(o.rules); + checkUnnamed3834(o.rules); } buildCounterSystemParameters--; } -buildUnnamed75() { +buildUnnamed3835() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed75(core.List<api.Field> o) { +checkUnnamed3835(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); } -buildUnnamed76() { +buildUnnamed3836() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed76(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')); } -buildUnnamed77() { +buildUnnamed3837() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed77(core.List<api.Option> o) { +checkUnnamed3837(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -2396,10 +2403,10 @@ var o = new api.Type(); buildCounterType++; if (buildCounterType < 3) { - o.fields = buildUnnamed75(); + o.fields = buildUnnamed3835(); o.name = "foo"; - o.oneofs = buildUnnamed76(); - o.options = buildUnnamed77(); + o.oneofs = buildUnnamed3836(); + o.options = buildUnnamed3837(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -2410,37 +2417,37 @@ checkType(api.Type o) { buildCounterType++; if (buildCounterType < 3) { - checkUnnamed75(o.fields); + checkUnnamed3835(o.fields); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed76(o.oneofs); - checkUnnamed77(o.options); + checkUnnamed3836(o.oneofs); + checkUnnamed3837(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } buildCounterType--; } -buildUnnamed78() { +buildUnnamed3838() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed78(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')); } -buildUnnamed79() { +buildUnnamed3839() { var o = new core.List<api.UsageRule>(); o.add(buildUsageRule()); o.add(buildUsageRule()); return o; } -checkUnnamed79(core.List<api.UsageRule> o) { +checkUnnamed3839(core.List<api.UsageRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageRule(o[0]); checkUsageRule(o[1]); @@ -2452,8 +2459,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { o.producerNotificationChannel = "foo"; - o.requirements = buildUnnamed78(); - o.rules = buildUnnamed79(); + o.requirements = buildUnnamed3838(); + o.rules = buildUnnamed3839(); } buildCounterUsage--; return o; @@ -2463,8 +2470,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); - checkUnnamed78(o.requirements); - checkUnnamed79(o.rules); + checkUnnamed3838(o.requirements); + checkUnnamed3839(o.rules); } buildCounterUsage--; } @@ -2492,59 +2499,6 @@ buildCounterUsageRule--; } -buildUnnamed80() { - var o = new core.List<api.VisibilityRule>(); - o.add(buildVisibilityRule()); - o.add(buildVisibilityRule()); - return o; -} - -checkUnnamed80(core.List<api.VisibilityRule> o) { - unittest.expect(o, unittest.hasLength(2)); - checkVisibilityRule(o[0]); - checkVisibilityRule(o[1]); -} - -core.int buildCounterVisibility = 0; -buildVisibility() { - var o = new api.Visibility(); - buildCounterVisibility++; - if (buildCounterVisibility < 3) { - o.rules = buildUnnamed80(); - } - buildCounterVisibility--; - return o; -} - -checkVisibility(api.Visibility o) { - buildCounterVisibility++; - if (buildCounterVisibility < 3) { - checkUnnamed80(o.rules); - } - buildCounterVisibility--; -} - -core.int buildCounterVisibilityRule = 0; -buildVisibilityRule() { - var o = new api.VisibilityRule(); - buildCounterVisibilityRule++; - if (buildCounterVisibilityRule < 3) { - o.restriction = "foo"; - o.selector = "foo"; - } - buildCounterVisibilityRule--; - return o; -} - -checkVisibilityRule(api.VisibilityRule o) { - buildCounterVisibilityRule++; - if (buildCounterVisibilityRule < 3) { - unittest.expect(o.restriction, unittest.equals('foo')); - unittest.expect(o.selector, unittest.equals('foo')); - } - buildCounterVisibilityRule--; -} - main() { unittest.group("obj-schema-Api", () { unittest.test("to-json--from-json", () { @@ -2650,14 +2604,6 @@ }); }); - unittest.group("obj-schema-CustomAuthRequirements", () { - unittest.test("to-json--from-json", () { - var o = buildCustomAuthRequirements(); - var od = new api.CustomAuthRequirements.fromJson(o.toJson()); - checkCustomAuthRequirements(od); - }); - }); - unittest.group("obj-schema-CustomError", () { unittest.test("to-json--from-json", () { var o = buildCustomError(); @@ -3042,22 +2988,6 @@ }); }); - unittest.group("obj-schema-Visibility", () { - unittest.test("to-json--from-json", () { - var o = buildVisibility(); - var od = new api.Visibility.fromJson(o.toJson()); - checkVisibility(od); - }); - }); - - unittest.group("obj-schema-VisibilityRule", () { - unittest.test("to-json--from-json", () { - var o = buildVisibilityRule(); - var od = new api.VisibilityRule.fromJson(o.toJson()); - checkVisibilityRule(od); - }); - }); - unittest.group("resource-ProjectsServicesResourceApi", () { unittest.test("method--disable", () { var mock = new HttpServerMock(); @@ -3176,8 +3106,8 @@ api.ProjectsServicesResourceApi res = new api.ServiceuserApi(mock).projects.services; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3210,10 +3140,10 @@ 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3224,8 +3154,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListEnabledServicesResponse(response);
diff --git a/generated/googleapis/test/sheets/v4_test.dart b/generated/googleapis/test/sheets/v4_test.dart index 8430387..ac8d7c8 100644 --- a/generated/googleapis/test/sheets/v4_test.dart +++ b/generated/googleapis/test/sheets/v4_test.dart
@@ -147,6 +147,57 @@ buildCounterAddConditionalFormatRuleRequest--; } +core.int buildCounterAddDimensionGroupRequest = 0; +buildAddDimensionGroupRequest() { + var o = new api.AddDimensionGroupRequest(); + buildCounterAddDimensionGroupRequest++; + if (buildCounterAddDimensionGroupRequest < 3) { + o.range = buildDimensionRange(); + } + buildCounterAddDimensionGroupRequest--; + return o; +} + +checkAddDimensionGroupRequest(api.AddDimensionGroupRequest o) { + buildCounterAddDimensionGroupRequest++; + if (buildCounterAddDimensionGroupRequest < 3) { + checkDimensionRange(o.range); + } + buildCounterAddDimensionGroupRequest--; +} + +buildUnnamed3981() { + var o = new core.List<api.DimensionGroup>(); + o.add(buildDimensionGroup()); + o.add(buildDimensionGroup()); + return o; +} + +checkUnnamed3981(core.List<api.DimensionGroup> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDimensionGroup(o[0]); + checkDimensionGroup(o[1]); +} + +core.int buildCounterAddDimensionGroupResponse = 0; +buildAddDimensionGroupResponse() { + var o = new api.AddDimensionGroupResponse(); + buildCounterAddDimensionGroupResponse++; + if (buildCounterAddDimensionGroupResponse < 3) { + o.dimensionGroups = buildUnnamed3981(); + } + buildCounterAddDimensionGroupResponse--; + return o; +} + +checkAddDimensionGroupResponse(api.AddDimensionGroupResponse o) { + buildCounterAddDimensionGroupResponse++; + if (buildCounterAddDimensionGroupResponse < 3) { + checkUnnamed3981(o.dimensionGroups); + } + buildCounterAddDimensionGroupResponse--; +} + core.int buildCounterAddFilterViewRequest = 0; buildAddFilterViewRequest() { var o = new api.AddFilterViewRequest(); @@ -299,14 +350,14 @@ buildCounterAddSheetResponse--; } -buildUnnamed3016() { +buildUnnamed3982() { var o = new core.List<api.RowData>(); o.add(buildRowData()); o.add(buildRowData()); return o; } -checkUnnamed3016(core.List<api.RowData> o) { +checkUnnamed3982(core.List<api.RowData> o) { unittest.expect(o, unittest.hasLength(2)); checkRowData(o[0]); checkRowData(o[1]); @@ -318,7 +369,7 @@ buildCounterAppendCellsRequest++; if (buildCounterAppendCellsRequest < 3) { o.fields = "foo"; - o.rows = buildUnnamed3016(); + o.rows = buildUnnamed3982(); o.sheetId = 42; } buildCounterAppendCellsRequest--; @@ -329,7 +380,7 @@ buildCounterAppendCellsRequest++; if (buildCounterAppendCellsRequest < 3) { unittest.expect(o.fields, unittest.equals('foo')); - checkUnnamed3016(o.rows); + checkUnnamed3982(o.rows); unittest.expect(o.sheetId, unittest.equals(42)); } buildCounterAppendCellsRequest--; @@ -524,6 +575,7 @@ var o = new api.BasicChartSeries(); buildCounterBasicChartSeries++; if (buildCounterBasicChartSeries < 3) { + o.color = buildColor(); o.lineStyle = buildLineStyle(); o.series = buildChartData(); o.targetAxis = "foo"; @@ -536,6 +588,7 @@ checkBasicChartSeries(api.BasicChartSeries o) { buildCounterBasicChartSeries++; if (buildCounterBasicChartSeries < 3) { + checkColor(o.color); checkLineStyle(o.lineStyle); checkChartData(o.series); unittest.expect(o.targetAxis, unittest.equals('foo')); @@ -544,40 +597,40 @@ buildCounterBasicChartSeries--; } -buildUnnamed3017() { +buildUnnamed3983() { var o = new core.List<api.BasicChartAxis>(); o.add(buildBasicChartAxis()); o.add(buildBasicChartAxis()); return o; } -checkUnnamed3017(core.List<api.BasicChartAxis> o) { +checkUnnamed3983(core.List<api.BasicChartAxis> o) { unittest.expect(o, unittest.hasLength(2)); checkBasicChartAxis(o[0]); checkBasicChartAxis(o[1]); } -buildUnnamed3018() { +buildUnnamed3984() { var o = new core.List<api.BasicChartDomain>(); o.add(buildBasicChartDomain()); o.add(buildBasicChartDomain()); return o; } -checkUnnamed3018(core.List<api.BasicChartDomain> o) { +checkUnnamed3984(core.List<api.BasicChartDomain> o) { unittest.expect(o, unittest.hasLength(2)); checkBasicChartDomain(o[0]); checkBasicChartDomain(o[1]); } -buildUnnamed3019() { +buildUnnamed3985() { var o = new core.List<api.BasicChartSeries>(); o.add(buildBasicChartSeries()); o.add(buildBasicChartSeries()); return o; } -checkUnnamed3019(core.List<api.BasicChartSeries> o) { +checkUnnamed3985(core.List<api.BasicChartSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkBasicChartSeries(o[0]); checkBasicChartSeries(o[1]); @@ -588,15 +641,15 @@ var o = new api.BasicChartSpec(); buildCounterBasicChartSpec++; if (buildCounterBasicChartSpec < 3) { - o.axis = buildUnnamed3017(); + o.axis = buildUnnamed3983(); o.chartType = "foo"; o.compareMode = "foo"; - o.domains = buildUnnamed3018(); + o.domains = buildUnnamed3984(); o.headerCount = 42; o.interpolateNulls = true; o.legendPosition = "foo"; o.lineSmoothing = true; - o.series = buildUnnamed3019(); + o.series = buildUnnamed3985(); o.stackedType = "foo"; o.threeDimensional = true; } @@ -607,42 +660,42 @@ checkBasicChartSpec(api.BasicChartSpec o) { buildCounterBasicChartSpec++; if (buildCounterBasicChartSpec < 3) { - checkUnnamed3017(o.axis); + checkUnnamed3983(o.axis); unittest.expect(o.chartType, unittest.equals('foo')); unittest.expect(o.compareMode, unittest.equals('foo')); - checkUnnamed3018(o.domains); + checkUnnamed3984(o.domains); unittest.expect(o.headerCount, unittest.equals(42)); unittest.expect(o.interpolateNulls, unittest.isTrue); unittest.expect(o.legendPosition, unittest.equals('foo')); unittest.expect(o.lineSmoothing, unittest.isTrue); - checkUnnamed3019(o.series); + checkUnnamed3985(o.series); unittest.expect(o.stackedType, unittest.equals('foo')); unittest.expect(o.threeDimensional, unittest.isTrue); } buildCounterBasicChartSpec--; } -buildUnnamed3020() { +buildUnnamed3986() { var o = new core.Map<core.String, api.FilterCriteria>(); o["x"] = buildFilterCriteria(); o["y"] = buildFilterCriteria(); return o; } -checkUnnamed3020(core.Map<core.String, api.FilterCriteria> o) { +checkUnnamed3986(core.Map<core.String, api.FilterCriteria> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterCriteria(o["x"]); checkFilterCriteria(o["y"]); } -buildUnnamed3021() { +buildUnnamed3987() { var o = new core.List<api.SortSpec>(); o.add(buildSortSpec()); o.add(buildSortSpec()); return o; } -checkUnnamed3021(core.List<api.SortSpec> o) { +checkUnnamed3987(core.List<api.SortSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSortSpec(o[0]); checkSortSpec(o[1]); @@ -653,9 +706,9 @@ var o = new api.BasicFilter(); buildCounterBasicFilter++; if (buildCounterBasicFilter < 3) { - o.criteria = buildUnnamed3020(); + o.criteria = buildUnnamed3986(); o.range = buildGridRange(); - o.sortSpecs = buildUnnamed3021(); + o.sortSpecs = buildUnnamed3987(); } buildCounterBasicFilter--; return o; @@ -664,21 +717,21 @@ checkBasicFilter(api.BasicFilter o) { buildCounterBasicFilter++; if (buildCounterBasicFilter < 3) { - checkUnnamed3020(o.criteria); + checkUnnamed3986(o.criteria); checkGridRange(o.range); - checkUnnamed3021(o.sortSpecs); + checkUnnamed3987(o.sortSpecs); } buildCounterBasicFilter--; } -buildUnnamed3022() { +buildUnnamed3988() { var o = new core.List<api.DataFilter>(); o.add(buildDataFilter()); o.add(buildDataFilter()); return o; } -checkUnnamed3022(core.List<api.DataFilter> o) { +checkUnnamed3988(core.List<api.DataFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDataFilter(o[0]); checkDataFilter(o[1]); @@ -689,7 +742,7 @@ var o = new api.BatchClearValuesByDataFilterRequest(); buildCounterBatchClearValuesByDataFilterRequest++; if (buildCounterBatchClearValuesByDataFilterRequest < 3) { - o.dataFilters = buildUnnamed3022(); + o.dataFilters = buildUnnamed3988(); } buildCounterBatchClearValuesByDataFilterRequest--; return o; @@ -699,19 +752,19 @@ api.BatchClearValuesByDataFilterRequest o) { buildCounterBatchClearValuesByDataFilterRequest++; if (buildCounterBatchClearValuesByDataFilterRequest < 3) { - checkUnnamed3022(o.dataFilters); + checkUnnamed3988(o.dataFilters); } buildCounterBatchClearValuesByDataFilterRequest--; } -buildUnnamed3023() { +buildUnnamed3989() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3023(core.List<core.String> o) { +checkUnnamed3989(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -722,7 +775,7 @@ var o = new api.BatchClearValuesByDataFilterResponse(); buildCounterBatchClearValuesByDataFilterResponse++; if (buildCounterBatchClearValuesByDataFilterResponse < 3) { - o.clearedRanges = buildUnnamed3023(); + o.clearedRanges = buildUnnamed3989(); o.spreadsheetId = "foo"; } buildCounterBatchClearValuesByDataFilterResponse--; @@ -733,20 +786,20 @@ api.BatchClearValuesByDataFilterResponse o) { buildCounterBatchClearValuesByDataFilterResponse++; if (buildCounterBatchClearValuesByDataFilterResponse < 3) { - checkUnnamed3023(o.clearedRanges); + checkUnnamed3989(o.clearedRanges); unittest.expect(o.spreadsheetId, unittest.equals('foo')); } buildCounterBatchClearValuesByDataFilterResponse--; } -buildUnnamed3024() { +buildUnnamed3990() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3024(core.List<core.String> o) { +checkUnnamed3990(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -757,7 +810,7 @@ var o = new api.BatchClearValuesRequest(); buildCounterBatchClearValuesRequest++; if (buildCounterBatchClearValuesRequest < 3) { - o.ranges = buildUnnamed3024(); + o.ranges = buildUnnamed3990(); } buildCounterBatchClearValuesRequest--; return o; @@ -766,19 +819,19 @@ checkBatchClearValuesRequest(api.BatchClearValuesRequest o) { buildCounterBatchClearValuesRequest++; if (buildCounterBatchClearValuesRequest < 3) { - checkUnnamed3024(o.ranges); + checkUnnamed3990(o.ranges); } buildCounterBatchClearValuesRequest--; } -buildUnnamed3025() { +buildUnnamed3991() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3025(core.List<core.String> o) { +checkUnnamed3991(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -789,7 +842,7 @@ var o = new api.BatchClearValuesResponse(); buildCounterBatchClearValuesResponse++; if (buildCounterBatchClearValuesResponse < 3) { - o.clearedRanges = buildUnnamed3025(); + o.clearedRanges = buildUnnamed3991(); o.spreadsheetId = "foo"; } buildCounterBatchClearValuesResponse--; @@ -799,20 +852,20 @@ checkBatchClearValuesResponse(api.BatchClearValuesResponse o) { buildCounterBatchClearValuesResponse++; if (buildCounterBatchClearValuesResponse < 3) { - checkUnnamed3025(o.clearedRanges); + checkUnnamed3991(o.clearedRanges); unittest.expect(o.spreadsheetId, unittest.equals('foo')); } buildCounterBatchClearValuesResponse--; } -buildUnnamed3026() { +buildUnnamed3992() { var o = new core.List<api.DataFilter>(); o.add(buildDataFilter()); o.add(buildDataFilter()); return o; } -checkUnnamed3026(core.List<api.DataFilter> o) { +checkUnnamed3992(core.List<api.DataFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDataFilter(o[0]); checkDataFilter(o[1]); @@ -823,7 +876,7 @@ var o = new api.BatchGetValuesByDataFilterRequest(); buildCounterBatchGetValuesByDataFilterRequest++; if (buildCounterBatchGetValuesByDataFilterRequest < 3) { - o.dataFilters = buildUnnamed3026(); + o.dataFilters = buildUnnamed3992(); o.dateTimeRenderOption = "foo"; o.majorDimension = "foo"; o.valueRenderOption = "foo"; @@ -836,7 +889,7 @@ api.BatchGetValuesByDataFilterRequest o) { buildCounterBatchGetValuesByDataFilterRequest++; if (buildCounterBatchGetValuesByDataFilterRequest < 3) { - checkUnnamed3026(o.dataFilters); + checkUnnamed3992(o.dataFilters); unittest.expect(o.dateTimeRenderOption, unittest.equals('foo')); unittest.expect(o.majorDimension, unittest.equals('foo')); unittest.expect(o.valueRenderOption, unittest.equals('foo')); @@ -844,14 +897,14 @@ buildCounterBatchGetValuesByDataFilterRequest--; } -buildUnnamed3027() { +buildUnnamed3993() { var o = new core.List<api.MatchedValueRange>(); o.add(buildMatchedValueRange()); o.add(buildMatchedValueRange()); return o; } -checkUnnamed3027(core.List<api.MatchedValueRange> o) { +checkUnnamed3993(core.List<api.MatchedValueRange> o) { unittest.expect(o, unittest.hasLength(2)); checkMatchedValueRange(o[0]); checkMatchedValueRange(o[1]); @@ -863,7 +916,7 @@ buildCounterBatchGetValuesByDataFilterResponse++; if (buildCounterBatchGetValuesByDataFilterResponse < 3) { o.spreadsheetId = "foo"; - o.valueRanges = buildUnnamed3027(); + o.valueRanges = buildUnnamed3993(); } buildCounterBatchGetValuesByDataFilterResponse--; return o; @@ -874,19 +927,19 @@ buildCounterBatchGetValuesByDataFilterResponse++; if (buildCounterBatchGetValuesByDataFilterResponse < 3) { unittest.expect(o.spreadsheetId, unittest.equals('foo')); - checkUnnamed3027(o.valueRanges); + checkUnnamed3993(o.valueRanges); } buildCounterBatchGetValuesByDataFilterResponse--; } -buildUnnamed3028() { +buildUnnamed3994() { var o = new core.List<api.ValueRange>(); o.add(buildValueRange()); o.add(buildValueRange()); return o; } -checkUnnamed3028(core.List<api.ValueRange> o) { +checkUnnamed3994(core.List<api.ValueRange> o) { unittest.expect(o, unittest.hasLength(2)); checkValueRange(o[0]); checkValueRange(o[1]); @@ -898,7 +951,7 @@ buildCounterBatchGetValuesResponse++; if (buildCounterBatchGetValuesResponse < 3) { o.spreadsheetId = "foo"; - o.valueRanges = buildUnnamed3028(); + o.valueRanges = buildUnnamed3994(); } buildCounterBatchGetValuesResponse--; return o; @@ -908,32 +961,32 @@ buildCounterBatchGetValuesResponse++; if (buildCounterBatchGetValuesResponse < 3) { unittest.expect(o.spreadsheetId, unittest.equals('foo')); - checkUnnamed3028(o.valueRanges); + checkUnnamed3994(o.valueRanges); } buildCounterBatchGetValuesResponse--; } -buildUnnamed3029() { +buildUnnamed3995() { var o = new core.List<api.Request>(); o.add(buildRequest()); o.add(buildRequest()); return o; } -checkUnnamed3029(core.List<api.Request> o) { +checkUnnamed3995(core.List<api.Request> o) { unittest.expect(o, unittest.hasLength(2)); checkRequest(o[0]); checkRequest(o[1]); } -buildUnnamed3030() { +buildUnnamed3996() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3030(core.List<core.String> o) { +checkUnnamed3996(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -945,9 +998,9 @@ buildCounterBatchUpdateSpreadsheetRequest++; if (buildCounterBatchUpdateSpreadsheetRequest < 3) { o.includeSpreadsheetInResponse = true; - o.requests = buildUnnamed3029(); + o.requests = buildUnnamed3995(); o.responseIncludeGridData = true; - o.responseRanges = buildUnnamed3030(); + o.responseRanges = buildUnnamed3996(); } buildCounterBatchUpdateSpreadsheetRequest--; return o; @@ -957,21 +1010,21 @@ buildCounterBatchUpdateSpreadsheetRequest++; if (buildCounterBatchUpdateSpreadsheetRequest < 3) { unittest.expect(o.includeSpreadsheetInResponse, unittest.isTrue); - checkUnnamed3029(o.requests); + checkUnnamed3995(o.requests); unittest.expect(o.responseIncludeGridData, unittest.isTrue); - checkUnnamed3030(o.responseRanges); + checkUnnamed3996(o.responseRanges); } buildCounterBatchUpdateSpreadsheetRequest--; } -buildUnnamed3031() { +buildUnnamed3997() { var o = new core.List<api.Response>(); o.add(buildResponse()); o.add(buildResponse()); return o; } -checkUnnamed3031(core.List<api.Response> o) { +checkUnnamed3997(core.List<api.Response> o) { unittest.expect(o, unittest.hasLength(2)); checkResponse(o[0]); checkResponse(o[1]); @@ -982,7 +1035,7 @@ var o = new api.BatchUpdateSpreadsheetResponse(); buildCounterBatchUpdateSpreadsheetResponse++; if (buildCounterBatchUpdateSpreadsheetResponse < 3) { - o.replies = buildUnnamed3031(); + o.replies = buildUnnamed3997(); o.spreadsheetId = "foo"; o.updatedSpreadsheet = buildSpreadsheet(); } @@ -993,21 +1046,21 @@ checkBatchUpdateSpreadsheetResponse(api.BatchUpdateSpreadsheetResponse o) { buildCounterBatchUpdateSpreadsheetResponse++; if (buildCounterBatchUpdateSpreadsheetResponse < 3) { - checkUnnamed3031(o.replies); + checkUnnamed3997(o.replies); unittest.expect(o.spreadsheetId, unittest.equals('foo')); checkSpreadsheet(o.updatedSpreadsheet); } buildCounterBatchUpdateSpreadsheetResponse--; } -buildUnnamed3032() { +buildUnnamed3998() { var o = new core.List<api.DataFilterValueRange>(); o.add(buildDataFilterValueRange()); o.add(buildDataFilterValueRange()); return o; } -checkUnnamed3032(core.List<api.DataFilterValueRange> o) { +checkUnnamed3998(core.List<api.DataFilterValueRange> o) { unittest.expect(o, unittest.hasLength(2)); checkDataFilterValueRange(o[0]); checkDataFilterValueRange(o[1]); @@ -1018,7 +1071,7 @@ var o = new api.BatchUpdateValuesByDataFilterRequest(); buildCounterBatchUpdateValuesByDataFilterRequest++; if (buildCounterBatchUpdateValuesByDataFilterRequest < 3) { - o.data = buildUnnamed3032(); + o.data = buildUnnamed3998(); o.includeValuesInResponse = true; o.responseDateTimeRenderOption = "foo"; o.responseValueRenderOption = "foo"; @@ -1032,7 +1085,7 @@ api.BatchUpdateValuesByDataFilterRequest o) { buildCounterBatchUpdateValuesByDataFilterRequest++; if (buildCounterBatchUpdateValuesByDataFilterRequest < 3) { - checkUnnamed3032(o.data); + checkUnnamed3998(o.data); unittest.expect(o.includeValuesInResponse, unittest.isTrue); unittest.expect(o.responseDateTimeRenderOption, unittest.equals('foo')); unittest.expect(o.responseValueRenderOption, unittest.equals('foo')); @@ -1041,14 +1094,14 @@ buildCounterBatchUpdateValuesByDataFilterRequest--; } -buildUnnamed3033() { +buildUnnamed3999() { var o = new core.List<api.UpdateValuesByDataFilterResponse>(); o.add(buildUpdateValuesByDataFilterResponse()); o.add(buildUpdateValuesByDataFilterResponse()); return o; } -checkUnnamed3033(core.List<api.UpdateValuesByDataFilterResponse> o) { +checkUnnamed3999(core.List<api.UpdateValuesByDataFilterResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkUpdateValuesByDataFilterResponse(o[0]); checkUpdateValuesByDataFilterResponse(o[1]); @@ -1059,7 +1112,7 @@ var o = new api.BatchUpdateValuesByDataFilterResponse(); buildCounterBatchUpdateValuesByDataFilterResponse++; if (buildCounterBatchUpdateValuesByDataFilterResponse < 3) { - o.responses = buildUnnamed3033(); + o.responses = buildUnnamed3999(); o.spreadsheetId = "foo"; o.totalUpdatedCells = 42; o.totalUpdatedColumns = 42; @@ -1074,7 +1127,7 @@ api.BatchUpdateValuesByDataFilterResponse o) { buildCounterBatchUpdateValuesByDataFilterResponse++; if (buildCounterBatchUpdateValuesByDataFilterResponse < 3) { - checkUnnamed3033(o.responses); + checkUnnamed3999(o.responses); unittest.expect(o.spreadsheetId, unittest.equals('foo')); unittest.expect(o.totalUpdatedCells, unittest.equals(42)); unittest.expect(o.totalUpdatedColumns, unittest.equals(42)); @@ -1084,14 +1137,14 @@ buildCounterBatchUpdateValuesByDataFilterResponse--; } -buildUnnamed3034() { +buildUnnamed4000() { var o = new core.List<api.ValueRange>(); o.add(buildValueRange()); o.add(buildValueRange()); return o; } -checkUnnamed3034(core.List<api.ValueRange> o) { +checkUnnamed4000(core.List<api.ValueRange> o) { unittest.expect(o, unittest.hasLength(2)); checkValueRange(o[0]); checkValueRange(o[1]); @@ -1102,7 +1155,7 @@ var o = new api.BatchUpdateValuesRequest(); buildCounterBatchUpdateValuesRequest++; if (buildCounterBatchUpdateValuesRequest < 3) { - o.data = buildUnnamed3034(); + o.data = buildUnnamed4000(); o.includeValuesInResponse = true; o.responseDateTimeRenderOption = "foo"; o.responseValueRenderOption = "foo"; @@ -1115,7 +1168,7 @@ checkBatchUpdateValuesRequest(api.BatchUpdateValuesRequest o) { buildCounterBatchUpdateValuesRequest++; if (buildCounterBatchUpdateValuesRequest < 3) { - checkUnnamed3034(o.data); + checkUnnamed4000(o.data); unittest.expect(o.includeValuesInResponse, unittest.isTrue); unittest.expect(o.responseDateTimeRenderOption, unittest.equals('foo')); unittest.expect(o.responseValueRenderOption, unittest.equals('foo')); @@ -1124,14 +1177,14 @@ buildCounterBatchUpdateValuesRequest--; } -buildUnnamed3035() { +buildUnnamed4001() { var o = new core.List<api.UpdateValuesResponse>(); o.add(buildUpdateValuesResponse()); o.add(buildUpdateValuesResponse()); return o; } -checkUnnamed3035(core.List<api.UpdateValuesResponse> o) { +checkUnnamed4001(core.List<api.UpdateValuesResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkUpdateValuesResponse(o[0]); checkUpdateValuesResponse(o[1]); @@ -1142,7 +1195,7 @@ var o = new api.BatchUpdateValuesResponse(); buildCounterBatchUpdateValuesResponse++; if (buildCounterBatchUpdateValuesResponse < 3) { - o.responses = buildUnnamed3035(); + o.responses = buildUnnamed4001(); o.spreadsheetId = "foo"; o.totalUpdatedCells = 42; o.totalUpdatedColumns = 42; @@ -1156,7 +1209,7 @@ checkBatchUpdateValuesResponse(api.BatchUpdateValuesResponse o) { buildCounterBatchUpdateValuesResponse++; if (buildCounterBatchUpdateValuesResponse < 3) { - checkUnnamed3035(o.responses); + checkUnnamed4001(o.responses); unittest.expect(o.spreadsheetId, unittest.equals('foo')); unittest.expect(o.totalUpdatedCells, unittest.equals(42)); unittest.expect(o.totalUpdatedColumns, unittest.equals(42)); @@ -1166,14 +1219,14 @@ buildCounterBatchUpdateValuesResponse--; } -buildUnnamed3036() { +buildUnnamed4002() { var o = new core.List<api.ConditionValue>(); o.add(buildConditionValue()); o.add(buildConditionValue()); return o; } -checkUnnamed3036(core.List<api.ConditionValue> o) { +checkUnnamed4002(core.List<api.ConditionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkConditionValue(o[0]); checkConditionValue(o[1]); @@ -1185,7 +1238,7 @@ buildCounterBooleanCondition++; if (buildCounterBooleanCondition < 3) { o.type = "foo"; - o.values = buildUnnamed3036(); + o.values = buildUnnamed4002(); } buildCounterBooleanCondition--; return o; @@ -1195,7 +1248,7 @@ buildCounterBooleanCondition++; if (buildCounterBooleanCondition < 3) { unittest.expect(o.type, unittest.equals('foo')); - checkUnnamed3036(o.values); + checkUnnamed4002(o.values); } buildCounterBooleanCondition--; } @@ -1308,14 +1361,14 @@ buildCounterBubbleChartSpec--; } -buildUnnamed3037() { +buildUnnamed4003() { var o = new core.List<api.CandlestickData>(); o.add(buildCandlestickData()); o.add(buildCandlestickData()); return o; } -checkUnnamed3037(core.List<api.CandlestickData> o) { +checkUnnamed4003(core.List<api.CandlestickData> o) { unittest.expect(o, unittest.hasLength(2)); checkCandlestickData(o[0]); checkCandlestickData(o[1]); @@ -1326,7 +1379,7 @@ var o = new api.CandlestickChartSpec(); buildCounterCandlestickChartSpec++; if (buildCounterCandlestickChartSpec < 3) { - o.data = buildUnnamed3037(); + o.data = buildUnnamed4003(); o.domain = buildCandlestickDomain(); } buildCounterCandlestickChartSpec--; @@ -1336,7 +1389,7 @@ checkCandlestickChartSpec(api.CandlestickChartSpec o) { buildCounterCandlestickChartSpec++; if (buildCounterCandlestickChartSpec < 3) { - checkUnnamed3037(o.data); + checkUnnamed4003(o.data); checkCandlestickDomain(o.domain); } buildCounterCandlestickChartSpec--; @@ -1407,14 +1460,14 @@ buildCounterCandlestickSeries--; } -buildUnnamed3038() { +buildUnnamed4004() { var o = new core.List<api.TextFormatRun>(); o.add(buildTextFormatRun()); o.add(buildTextFormatRun()); return o; } -checkUnnamed3038(core.List<api.TextFormatRun> o) { +checkUnnamed4004(core.List<api.TextFormatRun> o) { unittest.expect(o, unittest.hasLength(2)); checkTextFormatRun(o[0]); checkTextFormatRun(o[1]); @@ -1432,7 +1485,7 @@ o.hyperlink = "foo"; o.note = "foo"; o.pivotTable = buildPivotTable(); - o.textFormatRuns = buildUnnamed3038(); + o.textFormatRuns = buildUnnamed4004(); o.userEnteredFormat = buildCellFormat(); o.userEnteredValue = buildExtendedValue(); } @@ -1450,7 +1503,7 @@ unittest.expect(o.hyperlink, unittest.equals('foo')); unittest.expect(o.note, unittest.equals('foo')); checkPivotTable(o.pivotTable); - checkUnnamed3038(o.textFormatRuns); + checkUnnamed4004(o.textFormatRuns); checkCellFormat(o.userEnteredFormat); checkExtendedValue(o.userEnteredValue); } @@ -1515,14 +1568,14 @@ buildCounterChartData--; } -buildUnnamed3039() { +buildUnnamed4005() { var o = new core.List<api.GridRange>(); o.add(buildGridRange()); o.add(buildGridRange()); return o; } -checkUnnamed3039(core.List<api.GridRange> o) { +checkUnnamed4005(core.List<api.GridRange> o) { unittest.expect(o, unittest.hasLength(2)); checkGridRange(o[0]); checkGridRange(o[1]); @@ -1533,7 +1586,7 @@ var o = new api.ChartSourceRange(); buildCounterChartSourceRange++; if (buildCounterChartSourceRange < 3) { - o.sources = buildUnnamed3039(); + o.sources = buildUnnamed4005(); } buildCounterChartSourceRange--; return o; @@ -1542,7 +1595,7 @@ checkChartSourceRange(api.ChartSourceRange o) { buildCounterChartSourceRange++; if (buildCounterChartSourceRange < 3) { - checkUnnamed3039(o.sources); + checkUnnamed4005(o.sources); } buildCounterChartSourceRange--; } @@ -1569,6 +1622,7 @@ o.title = "foo"; o.titleTextFormat = buildTextFormat(); o.titleTextPosition = buildTextPosition(); + o.treemapChart = buildTreemapChartSpec(); o.waterfallChart = buildWaterfallChartSpec(); } buildCounterChartSpec--; @@ -1595,6 +1649,7 @@ unittest.expect(o.title, unittest.equals('foo')); checkTextFormat(o.titleTextFormat); checkTextPosition(o.titleTextPosition); + checkTreemapChartSpec(o.treemapChart); checkWaterfallChartSpec(o.waterfallChart); } buildCounterChartSpec--; @@ -1701,14 +1756,14 @@ buildCounterConditionValue--; } -buildUnnamed3040() { +buildUnnamed4006() { var o = new core.List<api.GridRange>(); o.add(buildGridRange()); o.add(buildGridRange()); return o; } -checkUnnamed3040(core.List<api.GridRange> o) { +checkUnnamed4006(core.List<api.GridRange> o) { unittest.expect(o, unittest.hasLength(2)); checkGridRange(o[0]); checkGridRange(o[1]); @@ -1721,7 +1776,7 @@ if (buildCounterConditionalFormatRule < 3) { o.booleanRule = buildBooleanRule(); o.gradientRule = buildGradientRule(); - o.ranges = buildUnnamed3040(); + o.ranges = buildUnnamed4006(); } buildCounterConditionalFormatRule--; return o; @@ -1732,7 +1787,7 @@ if (buildCounterConditionalFormatRule < 3) { checkBooleanRule(o.booleanRule); checkGradientRule(o.gradientRule); - checkUnnamed3040(o.ranges); + checkUnnamed4006(o.ranges); } buildCounterConditionalFormatRule--; } @@ -1866,7 +1921,7 @@ buildCounterDataFilter--; } -buildUnnamed3041() { +buildUnnamed4007() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -1881,7 +1936,7 @@ return o; } -checkUnnamed3041(core.List<core.Object> o) { +checkUnnamed4007(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -1895,17 +1950,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3042() { +buildUnnamed4008() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed3041()); - o.add(buildUnnamed3041()); + o.add(buildUnnamed4007()); + o.add(buildUnnamed4007()); return o; } -checkUnnamed3042(core.List<core.List<core.Object>> o) { +checkUnnamed4008(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3041(o[0]); - checkUnnamed3041(o[1]); + checkUnnamed4007(o[0]); + checkUnnamed4007(o[1]); } core.int buildCounterDataFilterValueRange = 0; @@ -1915,7 +1970,7 @@ if (buildCounterDataFilterValueRange < 3) { o.dataFilter = buildDataFilter(); o.majorDimension = "foo"; - o.values = buildUnnamed3042(); + o.values = buildUnnamed4008(); } buildCounterDataFilterValueRange--; return o; @@ -1926,7 +1981,7 @@ if (buildCounterDataFilterValueRange < 3) { checkDataFilter(o.dataFilter); unittest.expect(o.majorDimension, unittest.equals('foo')); - checkUnnamed3042(o.values); + checkUnnamed4008(o.values); } buildCounterDataFilterValueRange--; } @@ -1956,6 +2011,25 @@ buildCounterDataValidationRule--; } +core.int buildCounterDateTimeRule = 0; +buildDateTimeRule() { + var o = new api.DateTimeRule(); + buildCounterDateTimeRule++; + if (buildCounterDateTimeRule < 3) { + o.type = "foo"; + } + buildCounterDateTimeRule--; + return o; +} + +checkDateTimeRule(api.DateTimeRule o) { + buildCounterDateTimeRule++; + if (buildCounterDateTimeRule < 3) { + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterDateTimeRule--; +} + core.int buildCounterDeleteBandingRequest = 0; buildDeleteBandingRequest() { var o = new api.DeleteBandingRequest(); @@ -2036,14 +2110,14 @@ buildCounterDeleteDeveloperMetadataRequest--; } -buildUnnamed3043() { +buildUnnamed4009() { var o = new core.List<api.DeveloperMetadata>(); o.add(buildDeveloperMetadata()); o.add(buildDeveloperMetadata()); return o; } -checkUnnamed3043(core.List<api.DeveloperMetadata> o) { +checkUnnamed4009(core.List<api.DeveloperMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkDeveloperMetadata(o[0]); checkDeveloperMetadata(o[1]); @@ -2054,7 +2128,7 @@ var o = new api.DeleteDeveloperMetadataResponse(); buildCounterDeleteDeveloperMetadataResponse++; if (buildCounterDeleteDeveloperMetadataResponse < 3) { - o.deletedDeveloperMetadata = buildUnnamed3043(); + o.deletedDeveloperMetadata = buildUnnamed4009(); } buildCounterDeleteDeveloperMetadataResponse--; return o; @@ -2063,11 +2137,62 @@ checkDeleteDeveloperMetadataResponse(api.DeleteDeveloperMetadataResponse o) { buildCounterDeleteDeveloperMetadataResponse++; if (buildCounterDeleteDeveloperMetadataResponse < 3) { - checkUnnamed3043(o.deletedDeveloperMetadata); + checkUnnamed4009(o.deletedDeveloperMetadata); } buildCounterDeleteDeveloperMetadataResponse--; } +core.int buildCounterDeleteDimensionGroupRequest = 0; +buildDeleteDimensionGroupRequest() { + var o = new api.DeleteDimensionGroupRequest(); + buildCounterDeleteDimensionGroupRequest++; + if (buildCounterDeleteDimensionGroupRequest < 3) { + o.range = buildDimensionRange(); + } + buildCounterDeleteDimensionGroupRequest--; + return o; +} + +checkDeleteDimensionGroupRequest(api.DeleteDimensionGroupRequest o) { + buildCounterDeleteDimensionGroupRequest++; + if (buildCounterDeleteDimensionGroupRequest < 3) { + checkDimensionRange(o.range); + } + buildCounterDeleteDimensionGroupRequest--; +} + +buildUnnamed4010() { + var o = new core.List<api.DimensionGroup>(); + o.add(buildDimensionGroup()); + o.add(buildDimensionGroup()); + return o; +} + +checkUnnamed4010(core.List<api.DimensionGroup> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDimensionGroup(o[0]); + checkDimensionGroup(o[1]); +} + +core.int buildCounterDeleteDimensionGroupResponse = 0; +buildDeleteDimensionGroupResponse() { + var o = new api.DeleteDimensionGroupResponse(); + buildCounterDeleteDimensionGroupResponse++; + if (buildCounterDeleteDimensionGroupResponse < 3) { + o.dimensionGroups = buildUnnamed4010(); + } + buildCounterDeleteDimensionGroupResponse--; + return o; +} + +checkDeleteDimensionGroupResponse(api.DeleteDimensionGroupResponse o) { + buildCounterDeleteDimensionGroupResponse++; + if (buildCounterDeleteDimensionGroupResponse < 3) { + checkUnnamed4010(o.dimensionGroups); + } + buildCounterDeleteDimensionGroupResponse--; +} + core.int buildCounterDeleteDimensionRequest = 0; buildDeleteDimensionRequest() { var o = new api.DeleteDimensionRequest(); @@ -2286,14 +2411,37 @@ buildCounterDeveloperMetadataLookup--; } -buildUnnamed3044() { +core.int buildCounterDimensionGroup = 0; +buildDimensionGroup() { + var o = new api.DimensionGroup(); + buildCounterDimensionGroup++; + if (buildCounterDimensionGroup < 3) { + o.collapsed = true; + o.depth = 42; + o.range = buildDimensionRange(); + } + buildCounterDimensionGroup--; + return o; +} + +checkDimensionGroup(api.DimensionGroup o) { + buildCounterDimensionGroup++; + if (buildCounterDimensionGroup < 3) { + unittest.expect(o.collapsed, unittest.isTrue); + unittest.expect(o.depth, unittest.equals(42)); + checkDimensionRange(o.range); + } + buildCounterDimensionGroup--; +} + +buildUnnamed4011() { var o = new core.List<api.DeveloperMetadata>(); o.add(buildDeveloperMetadata()); o.add(buildDeveloperMetadata()); return o; } -checkUnnamed3044(core.List<api.DeveloperMetadata> o) { +checkUnnamed4011(core.List<api.DeveloperMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkDeveloperMetadata(o[0]); checkDeveloperMetadata(o[1]); @@ -2304,7 +2452,7 @@ var o = new api.DimensionProperties(); buildCounterDimensionProperties++; if (buildCounterDimensionProperties < 3) { - o.developerMetadata = buildUnnamed3044(); + o.developerMetadata = buildUnnamed4011(); o.hiddenByFilter = true; o.hiddenByUser = true; o.pixelSize = 42; @@ -2316,7 +2464,7 @@ checkDimensionProperties(api.DimensionProperties o) { buildCounterDimensionProperties++; if (buildCounterDimensionProperties < 3) { - checkUnnamed3044(o.developerMetadata); + checkUnnamed4011(o.developerMetadata); unittest.expect(o.hiddenByFilter, unittest.isTrue); unittest.expect(o.hiddenByUser, unittest.isTrue); unittest.expect(o.pixelSize, unittest.equals(42)); @@ -2431,27 +2579,27 @@ buildCounterDuplicateSheetResponse--; } -buildUnnamed3045() { +buildUnnamed4012() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3045(core.List<core.String> o) { +checkUnnamed4012(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3046() { +buildUnnamed4013() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3046(core.List<core.String> o) { +checkUnnamed4013(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2463,8 +2611,8 @@ buildCounterEditors++; if (buildCounterEditors < 3) { o.domainUsersCanEdit = true; - o.groups = buildUnnamed3045(); - o.users = buildUnnamed3046(); + o.groups = buildUnnamed4012(); + o.users = buildUnnamed4013(); } buildCounterEditors--; return o; @@ -2474,8 +2622,8 @@ buildCounterEditors++; if (buildCounterEditors < 3) { unittest.expect(o.domainUsersCanEdit, unittest.isTrue); - checkUnnamed3045(o.groups); - checkUnnamed3046(o.users); + checkUnnamed4012(o.groups); + checkUnnamed4013(o.users); } buildCounterEditors--; } @@ -2574,14 +2722,14 @@ buildCounterExtendedValue--; } -buildUnnamed3047() { +buildUnnamed4014() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3047(core.List<core.String> o) { +checkUnnamed4014(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2593,7 +2741,7 @@ buildCounterFilterCriteria++; if (buildCounterFilterCriteria < 3) { o.condition = buildBooleanCondition(); - o.hiddenValues = buildUnnamed3047(); + o.hiddenValues = buildUnnamed4014(); } buildCounterFilterCriteria--; return o; @@ -2603,32 +2751,32 @@ buildCounterFilterCriteria++; if (buildCounterFilterCriteria < 3) { checkBooleanCondition(o.condition); - checkUnnamed3047(o.hiddenValues); + checkUnnamed4014(o.hiddenValues); } buildCounterFilterCriteria--; } -buildUnnamed3048() { +buildUnnamed4015() { var o = new core.Map<core.String, api.FilterCriteria>(); o["x"] = buildFilterCriteria(); o["y"] = buildFilterCriteria(); return o; } -checkUnnamed3048(core.Map<core.String, api.FilterCriteria> o) { +checkUnnamed4015(core.Map<core.String, api.FilterCriteria> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterCriteria(o["x"]); checkFilterCriteria(o["y"]); } -buildUnnamed3049() { +buildUnnamed4016() { var o = new core.List<api.SortSpec>(); o.add(buildSortSpec()); o.add(buildSortSpec()); return o; } -checkUnnamed3049(core.List<api.SortSpec> o) { +checkUnnamed4016(core.List<api.SortSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSortSpec(o[0]); checkSortSpec(o[1]); @@ -2639,11 +2787,11 @@ var o = new api.FilterView(); buildCounterFilterView++; if (buildCounterFilterView < 3) { - o.criteria = buildUnnamed3048(); + o.criteria = buildUnnamed4015(); o.filterViewId = 42; o.namedRangeId = "foo"; o.range = buildGridRange(); - o.sortSpecs = buildUnnamed3049(); + o.sortSpecs = buildUnnamed4016(); o.title = "foo"; } buildCounterFilterView--; @@ -2653,11 +2801,11 @@ checkFilterView(api.FilterView o) { buildCounterFilterView++; if (buildCounterFilterView < 3) { - checkUnnamed3048(o.criteria); + checkUnnamed4015(o.criteria); unittest.expect(o.filterViewId, unittest.equals(42)); unittest.expect(o.namedRangeId, unittest.equals('foo')); checkGridRange(o.range); - checkUnnamed3049(o.sortSpecs); + checkUnnamed4016(o.sortSpecs); unittest.expect(o.title, unittest.equals('foo')); } buildCounterFilterView--; @@ -2725,14 +2873,14 @@ buildCounterFindReplaceResponse--; } -buildUnnamed3050() { +buildUnnamed4017() { var o = new core.List<api.DataFilter>(); o.add(buildDataFilter()); o.add(buildDataFilter()); return o; } -checkUnnamed3050(core.List<api.DataFilter> o) { +checkUnnamed4017(core.List<api.DataFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDataFilter(o[0]); checkDataFilter(o[1]); @@ -2743,7 +2891,7 @@ var o = new api.GetSpreadsheetByDataFilterRequest(); buildCounterGetSpreadsheetByDataFilterRequest++; if (buildCounterGetSpreadsheetByDataFilterRequest < 3) { - o.dataFilters = buildUnnamed3050(); + o.dataFilters = buildUnnamed4017(); o.includeGridData = true; } buildCounterGetSpreadsheetByDataFilterRequest--; @@ -2754,7 +2902,7 @@ api.GetSpreadsheetByDataFilterRequest o) { buildCounterGetSpreadsheetByDataFilterRequest++; if (buildCounterGetSpreadsheetByDataFilterRequest < 3) { - checkUnnamed3050(o.dataFilters); + checkUnnamed4017(o.dataFilters); unittest.expect(o.includeGridData, unittest.isTrue); } buildCounterGetSpreadsheetByDataFilterRequest--; @@ -2806,40 +2954,40 @@ buildCounterGridCoordinate--; } -buildUnnamed3051() { +buildUnnamed4018() { var o = new core.List<api.DimensionProperties>(); o.add(buildDimensionProperties()); o.add(buildDimensionProperties()); return o; } -checkUnnamed3051(core.List<api.DimensionProperties> o) { +checkUnnamed4018(core.List<api.DimensionProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionProperties(o[0]); checkDimensionProperties(o[1]); } -buildUnnamed3052() { +buildUnnamed4019() { var o = new core.List<api.RowData>(); o.add(buildRowData()); o.add(buildRowData()); return o; } -checkUnnamed3052(core.List<api.RowData> o) { +checkUnnamed4019(core.List<api.RowData> o) { unittest.expect(o, unittest.hasLength(2)); checkRowData(o[0]); checkRowData(o[1]); } -buildUnnamed3053() { +buildUnnamed4020() { var o = new core.List<api.DimensionProperties>(); o.add(buildDimensionProperties()); o.add(buildDimensionProperties()); return o; } -checkUnnamed3053(core.List<api.DimensionProperties> o) { +checkUnnamed4020(core.List<api.DimensionProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionProperties(o[0]); checkDimensionProperties(o[1]); @@ -2850,9 +2998,9 @@ var o = new api.GridData(); buildCounterGridData++; if (buildCounterGridData < 3) { - o.columnMetadata = buildUnnamed3051(); - o.rowData = buildUnnamed3052(); - o.rowMetadata = buildUnnamed3053(); + o.columnMetadata = buildUnnamed4018(); + o.rowData = buildUnnamed4019(); + o.rowMetadata = buildUnnamed4020(); o.startColumn = 42; o.startRow = 42; } @@ -2863,9 +3011,9 @@ checkGridData(api.GridData o) { buildCounterGridData++; if (buildCounterGridData < 3) { - checkUnnamed3051(o.columnMetadata); - checkUnnamed3052(o.rowData); - checkUnnamed3053(o.rowMetadata); + checkUnnamed4018(o.columnMetadata); + checkUnnamed4019(o.rowData); + checkUnnamed4020(o.rowMetadata); unittest.expect(o.startColumn, unittest.equals(42)); unittest.expect(o.startRow, unittest.equals(42)); } @@ -2878,10 +3026,12 @@ buildCounterGridProperties++; if (buildCounterGridProperties < 3) { o.columnCount = 42; + o.columnGroupControlAfter = true; o.frozenColumnCount = 42; o.frozenRowCount = 42; o.hideGridlines = true; o.rowCount = 42; + o.rowGroupControlAfter = true; } buildCounterGridProperties--; return o; @@ -2891,10 +3041,12 @@ buildCounterGridProperties++; if (buildCounterGridProperties < 3) { unittest.expect(o.columnCount, unittest.equals(42)); + unittest.expect(o.columnGroupControlAfter, unittest.isTrue); unittest.expect(o.frozenColumnCount, unittest.equals(42)); unittest.expect(o.frozenRowCount, unittest.equals(42)); unittest.expect(o.hideGridlines, unittest.isTrue); unittest.expect(o.rowCount, unittest.equals(42)); + unittest.expect(o.rowGroupControlAfter, unittest.isTrue); } buildCounterGridProperties--; } @@ -2926,14 +3078,14 @@ buildCounterGridRange--; } -buildUnnamed3054() { +buildUnnamed4021() { var o = new core.List<api.HistogramSeries>(); o.add(buildHistogramSeries()); o.add(buildHistogramSeries()); return o; } -checkUnnamed3054(core.List<api.HistogramSeries> o) { +checkUnnamed4021(core.List<api.HistogramSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkHistogramSeries(o[0]); checkHistogramSeries(o[1]); @@ -2947,7 +3099,7 @@ o.bucketSize = 42.0; o.legendPosition = "foo"; o.outlierPercentile = 42.0; - o.series = buildUnnamed3054(); + o.series = buildUnnamed4021(); o.showItemDividers = true; } buildCounterHistogramChartSpec--; @@ -2960,7 +3112,7 @@ unittest.expect(o.bucketSize, unittest.equals(42.0)); unittest.expect(o.legendPosition, unittest.equals('foo')); unittest.expect(o.outlierPercentile, unittest.equals(42.0)); - checkUnnamed3054(o.series); + checkUnnamed4021(o.series); unittest.expect(o.showItemDividers, unittest.isTrue); } buildCounterHistogramChartSpec--; @@ -3117,14 +3269,14 @@ buildCounterLineStyle--; } -buildUnnamed3055() { +buildUnnamed4022() { var o = new core.List<api.ManualRuleGroup>(); o.add(buildManualRuleGroup()); o.add(buildManualRuleGroup()); return o; } -checkUnnamed3055(core.List<api.ManualRuleGroup> o) { +checkUnnamed4022(core.List<api.ManualRuleGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkManualRuleGroup(o[0]); checkManualRuleGroup(o[1]); @@ -3135,7 +3287,7 @@ var o = new api.ManualRule(); buildCounterManualRule++; if (buildCounterManualRule < 3) { - o.groups = buildUnnamed3055(); + o.groups = buildUnnamed4022(); } buildCounterManualRule--; return o; @@ -3144,19 +3296,19 @@ checkManualRule(api.ManualRule o) { buildCounterManualRule++; if (buildCounterManualRule < 3) { - checkUnnamed3055(o.groups); + checkUnnamed4022(o.groups); } buildCounterManualRule--; } -buildUnnamed3056() { +buildUnnamed4023() { var o = new core.List<api.ExtendedValue>(); o.add(buildExtendedValue()); o.add(buildExtendedValue()); return o; } -checkUnnamed3056(core.List<api.ExtendedValue> o) { +checkUnnamed4023(core.List<api.ExtendedValue> o) { unittest.expect(o, unittest.hasLength(2)); checkExtendedValue(o[0]); checkExtendedValue(o[1]); @@ -3168,7 +3320,7 @@ buildCounterManualRuleGroup++; if (buildCounterManualRuleGroup < 3) { o.groupName = buildExtendedValue(); - o.items = buildUnnamed3056(); + o.items = buildUnnamed4023(); } buildCounterManualRuleGroup--; return o; @@ -3178,19 +3330,19 @@ buildCounterManualRuleGroup++; if (buildCounterManualRuleGroup < 3) { checkExtendedValue(o.groupName); - checkUnnamed3056(o.items); + checkUnnamed4023(o.items); } buildCounterManualRuleGroup--; } -buildUnnamed3057() { +buildUnnamed4024() { var o = new core.List<api.DataFilter>(); o.add(buildDataFilter()); o.add(buildDataFilter()); return o; } -checkUnnamed3057(core.List<api.DataFilter> o) { +checkUnnamed4024(core.List<api.DataFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDataFilter(o[0]); checkDataFilter(o[1]); @@ -3201,7 +3353,7 @@ var o = new api.MatchedDeveloperMetadata(); buildCounterMatchedDeveloperMetadata++; if (buildCounterMatchedDeveloperMetadata < 3) { - o.dataFilters = buildUnnamed3057(); + o.dataFilters = buildUnnamed4024(); o.developerMetadata = buildDeveloperMetadata(); } buildCounterMatchedDeveloperMetadata--; @@ -3211,20 +3363,20 @@ checkMatchedDeveloperMetadata(api.MatchedDeveloperMetadata o) { buildCounterMatchedDeveloperMetadata++; if (buildCounterMatchedDeveloperMetadata < 3) { - checkUnnamed3057(o.dataFilters); + checkUnnamed4024(o.dataFilters); checkDeveloperMetadata(o.developerMetadata); } buildCounterMatchedDeveloperMetadata--; } -buildUnnamed3058() { +buildUnnamed4025() { var o = new core.List<api.DataFilter>(); o.add(buildDataFilter()); o.add(buildDataFilter()); return o; } -checkUnnamed3058(core.List<api.DataFilter> o) { +checkUnnamed4025(core.List<api.DataFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDataFilter(o[0]); checkDataFilter(o[1]); @@ -3235,7 +3387,7 @@ var o = new api.MatchedValueRange(); buildCounterMatchedValueRange++; if (buildCounterMatchedValueRange < 3) { - o.dataFilters = buildUnnamed3058(); + o.dataFilters = buildUnnamed4025(); o.valueRange = buildValueRange(); } buildCounterMatchedValueRange--; @@ -3245,7 +3397,7 @@ checkMatchedValueRange(api.MatchedValueRange o) { buildCounterMatchedValueRange++; if (buildCounterMatchedValueRange < 3) { - checkUnnamed3058(o.dataFilters); + checkUnnamed4025(o.dataFilters); checkValueRange(o.valueRange); } buildCounterMatchedValueRange--; @@ -3472,14 +3624,14 @@ buildCounterPieChartSpec--; } -buildUnnamed3059() { +buildUnnamed4026() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3059(core.List<core.String> o) { +checkUnnamed4026(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3490,7 +3642,7 @@ var o = new api.PivotFilterCriteria(); buildCounterPivotFilterCriteria++; if (buildCounterPivotFilterCriteria < 3) { - o.visibleValues = buildUnnamed3059(); + o.visibleValues = buildUnnamed4026(); } buildCounterPivotFilterCriteria--; return o; @@ -3499,19 +3651,19 @@ checkPivotFilterCriteria(api.PivotFilterCriteria o) { buildCounterPivotFilterCriteria++; if (buildCounterPivotFilterCriteria < 3) { - checkUnnamed3059(o.visibleValues); + checkUnnamed4026(o.visibleValues); } buildCounterPivotFilterCriteria--; } -buildUnnamed3060() { +buildUnnamed4027() { var o = new core.List<api.PivotGroupValueMetadata>(); o.add(buildPivotGroupValueMetadata()); o.add(buildPivotGroupValueMetadata()); return o; } -checkUnnamed3060(core.List<api.PivotGroupValueMetadata> o) { +checkUnnamed4027(core.List<api.PivotGroupValueMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotGroupValueMetadata(o[0]); checkPivotGroupValueMetadata(o[1]); @@ -3529,7 +3681,7 @@ o.sortOrder = "foo"; o.sourceColumnOffset = 42; o.valueBucket = buildPivotGroupSortValueBucket(); - o.valueMetadata = buildUnnamed3060(); + o.valueMetadata = buildUnnamed4027(); } buildCounterPivotGroup--; return o; @@ -3545,7 +3697,7 @@ unittest.expect(o.sortOrder, unittest.equals('foo')); unittest.expect(o.sourceColumnOffset, unittest.equals(42)); checkPivotGroupSortValueBucket(o.valueBucket); - checkUnnamed3060(o.valueMetadata); + checkUnnamed4027(o.valueMetadata); } buildCounterPivotGroup--; } @@ -3555,6 +3707,7 @@ var o = new api.PivotGroupRule(); buildCounterPivotGroupRule++; if (buildCounterPivotGroupRule < 3) { + o.dateTimeRule = buildDateTimeRule(); o.histogramRule = buildHistogramRule(); o.manualRule = buildManualRule(); } @@ -3565,20 +3718,21 @@ checkPivotGroupRule(api.PivotGroupRule o) { buildCounterPivotGroupRule++; if (buildCounterPivotGroupRule < 3) { + checkDateTimeRule(o.dateTimeRule); checkHistogramRule(o.histogramRule); checkManualRule(o.manualRule); } buildCounterPivotGroupRule--; } -buildUnnamed3061() { +buildUnnamed4028() { var o = new core.List<api.ExtendedValue>(); o.add(buildExtendedValue()); o.add(buildExtendedValue()); return o; } -checkUnnamed3061(core.List<api.ExtendedValue> o) { +checkUnnamed4028(core.List<api.ExtendedValue> o) { unittest.expect(o, unittest.hasLength(2)); checkExtendedValue(o[0]); checkExtendedValue(o[1]); @@ -3589,7 +3743,7 @@ var o = new api.PivotGroupSortValueBucket(); buildCounterPivotGroupSortValueBucket++; if (buildCounterPivotGroupSortValueBucket < 3) { - o.buckets = buildUnnamed3061(); + o.buckets = buildUnnamed4028(); o.valuesIndex = 42; } buildCounterPivotGroupSortValueBucket--; @@ -3599,7 +3753,7 @@ checkPivotGroupSortValueBucket(api.PivotGroupSortValueBucket o) { buildCounterPivotGroupSortValueBucket++; if (buildCounterPivotGroupSortValueBucket < 3) { - checkUnnamed3061(o.buckets); + checkUnnamed4028(o.buckets); unittest.expect(o.valuesIndex, unittest.equals(42)); } buildCounterPivotGroupSortValueBucket--; @@ -3626,53 +3780,53 @@ buildCounterPivotGroupValueMetadata--; } -buildUnnamed3062() { +buildUnnamed4029() { var o = new core.List<api.PivotGroup>(); o.add(buildPivotGroup()); o.add(buildPivotGroup()); return o; } -checkUnnamed3062(core.List<api.PivotGroup> o) { +checkUnnamed4029(core.List<api.PivotGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotGroup(o[0]); checkPivotGroup(o[1]); } -buildUnnamed3063() { +buildUnnamed4030() { var o = new core.Map<core.String, api.PivotFilterCriteria>(); o["x"] = buildPivotFilterCriteria(); o["y"] = buildPivotFilterCriteria(); return o; } -checkUnnamed3063(core.Map<core.String, api.PivotFilterCriteria> o) { +checkUnnamed4030(core.Map<core.String, api.PivotFilterCriteria> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotFilterCriteria(o["x"]); checkPivotFilterCriteria(o["y"]); } -buildUnnamed3064() { +buildUnnamed4031() { var o = new core.List<api.PivotGroup>(); o.add(buildPivotGroup()); o.add(buildPivotGroup()); return o; } -checkUnnamed3064(core.List<api.PivotGroup> o) { +checkUnnamed4031(core.List<api.PivotGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotGroup(o[0]); checkPivotGroup(o[1]); } -buildUnnamed3065() { +buildUnnamed4032() { var o = new core.List<api.PivotValue>(); o.add(buildPivotValue()); o.add(buildPivotValue()); return o; } -checkUnnamed3065(core.List<api.PivotValue> o) { +checkUnnamed4032(core.List<api.PivotValue> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotValue(o[0]); checkPivotValue(o[1]); @@ -3683,12 +3837,12 @@ var o = new api.PivotTable(); buildCounterPivotTable++; if (buildCounterPivotTable < 3) { - o.columns = buildUnnamed3062(); - o.criteria = buildUnnamed3063(); - o.rows = buildUnnamed3064(); + o.columns = buildUnnamed4029(); + o.criteria = buildUnnamed4030(); + o.rows = buildUnnamed4031(); o.source = buildGridRange(); o.valueLayout = "foo"; - o.values = buildUnnamed3065(); + o.values = buildUnnamed4032(); } buildCounterPivotTable--; return o; @@ -3697,12 +3851,12 @@ checkPivotTable(api.PivotTable o) { buildCounterPivotTable++; if (buildCounterPivotTable < 3) { - checkUnnamed3062(o.columns); - checkUnnamed3063(o.criteria); - checkUnnamed3064(o.rows); + checkUnnamed4029(o.columns); + checkUnnamed4030(o.criteria); + checkUnnamed4031(o.rows); checkGridRange(o.source); unittest.expect(o.valueLayout, unittest.equals('foo')); - checkUnnamed3065(o.values); + checkUnnamed4032(o.values); } buildCounterPivotTable--; } @@ -3734,14 +3888,14 @@ buildCounterPivotValue--; } -buildUnnamed3066() { +buildUnnamed4033() { var o = new core.List<api.GridRange>(); o.add(buildGridRange()); o.add(buildGridRange()); return o; } -checkUnnamed3066(core.List<api.GridRange> o) { +checkUnnamed4033(core.List<api.GridRange> o) { unittest.expect(o, unittest.hasLength(2)); checkGridRange(o[0]); checkGridRange(o[1]); @@ -3758,7 +3912,7 @@ o.protectedRangeId = 42; o.range = buildGridRange(); o.requestingUserCanEdit = true; - o.unprotectedRanges = buildUnnamed3066(); + o.unprotectedRanges = buildUnnamed4033(); o.warningOnly = true; } buildCounterProtectedRange--; @@ -3774,7 +3928,7 @@ unittest.expect(o.protectedRangeId, unittest.equals(42)); checkGridRange(o.range); unittest.expect(o.requestingUserCanEdit, unittest.isTrue); - checkUnnamed3066(o.unprotectedRanges); + checkUnnamed4033(o.unprotectedRanges); unittest.expect(o.warningOnly, unittest.isTrue); } buildCounterProtectedRange--; @@ -3830,6 +3984,7 @@ o.addBanding = buildAddBandingRequest(); o.addChart = buildAddChartRequest(); o.addConditionalFormatRule = buildAddConditionalFormatRuleRequest(); + o.addDimensionGroup = buildAddDimensionGroupRequest(); o.addFilterView = buildAddFilterViewRequest(); o.addNamedRange = buildAddNamedRangeRequest(); o.addProtectedRange = buildAddProtectedRangeRequest(); @@ -3846,6 +4001,7 @@ o.deleteConditionalFormatRule = buildDeleteConditionalFormatRuleRequest(); o.deleteDeveloperMetadata = buildDeleteDeveloperMetadataRequest(); o.deleteDimension = buildDeleteDimensionRequest(); + o.deleteDimensionGroup = buildDeleteDimensionGroupRequest(); o.deleteEmbeddedObject = buildDeleteEmbeddedObjectRequest(); o.deleteFilterView = buildDeleteFilterViewRequest(); o.deleteNamedRange = buildDeleteNamedRangeRequest(); @@ -3873,6 +4029,7 @@ o.updateChartSpec = buildUpdateChartSpecRequest(); o.updateConditionalFormatRule = buildUpdateConditionalFormatRuleRequest(); o.updateDeveloperMetadata = buildUpdateDeveloperMetadataRequest(); + o.updateDimensionGroup = buildUpdateDimensionGroupRequest(); o.updateDimensionProperties = buildUpdateDimensionPropertiesRequest(); o.updateEmbeddedObjectPosition = buildUpdateEmbeddedObjectPositionRequest(); o.updateFilterView = buildUpdateFilterViewRequest(); @@ -3891,6 +4048,7 @@ checkAddBandingRequest(o.addBanding); checkAddChartRequest(o.addChart); checkAddConditionalFormatRuleRequest(o.addConditionalFormatRule); + checkAddDimensionGroupRequest(o.addDimensionGroup); checkAddFilterViewRequest(o.addFilterView); checkAddNamedRangeRequest(o.addNamedRange); checkAddProtectedRangeRequest(o.addProtectedRange); @@ -3907,6 +4065,7 @@ checkDeleteConditionalFormatRuleRequest(o.deleteConditionalFormatRule); checkDeleteDeveloperMetadataRequest(o.deleteDeveloperMetadata); checkDeleteDimensionRequest(o.deleteDimension); + checkDeleteDimensionGroupRequest(o.deleteDimensionGroup); checkDeleteEmbeddedObjectRequest(o.deleteEmbeddedObject); checkDeleteFilterViewRequest(o.deleteFilterView); checkDeleteNamedRangeRequest(o.deleteNamedRange); @@ -3934,6 +4093,7 @@ checkUpdateChartSpecRequest(o.updateChartSpec); checkUpdateConditionalFormatRuleRequest(o.updateConditionalFormatRule); checkUpdateDeveloperMetadataRequest(o.updateDeveloperMetadata); + checkUpdateDimensionGroupRequest(o.updateDimensionGroup); checkUpdateDimensionPropertiesRequest(o.updateDimensionProperties); checkUpdateEmbeddedObjectPositionRequest(o.updateEmbeddedObjectPosition); checkUpdateFilterViewRequest(o.updateFilterView); @@ -3952,6 +4112,7 @@ if (buildCounterResponse < 3) { o.addBanding = buildAddBandingResponse(); o.addChart = buildAddChartResponse(); + o.addDimensionGroup = buildAddDimensionGroupResponse(); o.addFilterView = buildAddFilterViewResponse(); o.addNamedRange = buildAddNamedRangeResponse(); o.addProtectedRange = buildAddProtectedRangeResponse(); @@ -3959,6 +4120,7 @@ o.createDeveloperMetadata = buildCreateDeveloperMetadataResponse(); o.deleteConditionalFormatRule = buildDeleteConditionalFormatRuleResponse(); o.deleteDeveloperMetadata = buildDeleteDeveloperMetadataResponse(); + o.deleteDimensionGroup = buildDeleteDimensionGroupResponse(); o.duplicateFilterView = buildDuplicateFilterViewResponse(); o.duplicateSheet = buildDuplicateSheetResponse(); o.findReplace = buildFindReplaceResponse(); @@ -3976,6 +4138,7 @@ if (buildCounterResponse < 3) { checkAddBandingResponse(o.addBanding); checkAddChartResponse(o.addChart); + checkAddDimensionGroupResponse(o.addDimensionGroup); checkAddFilterViewResponse(o.addFilterView); checkAddNamedRangeResponse(o.addNamedRange); checkAddProtectedRangeResponse(o.addProtectedRange); @@ -3983,6 +4146,7 @@ checkCreateDeveloperMetadataResponse(o.createDeveloperMetadata); checkDeleteConditionalFormatRuleResponse(o.deleteConditionalFormatRule); checkDeleteDeveloperMetadataResponse(o.deleteDeveloperMetadata); + checkDeleteDimensionGroupResponse(o.deleteDimensionGroup); checkDuplicateFilterViewResponse(o.duplicateFilterView); checkDuplicateSheetResponse(o.duplicateSheet); checkFindReplaceResponse(o.findReplace); @@ -3993,14 +4157,14 @@ buildCounterResponse--; } -buildUnnamed3067() { +buildUnnamed4034() { var o = new core.List<api.CellData>(); o.add(buildCellData()); o.add(buildCellData()); return o; } -checkUnnamed3067(core.List<api.CellData> o) { +checkUnnamed4034(core.List<api.CellData> o) { unittest.expect(o, unittest.hasLength(2)); checkCellData(o[0]); checkCellData(o[1]); @@ -4011,7 +4175,7 @@ var o = new api.RowData(); buildCounterRowData++; if (buildCounterRowData < 3) { - o.values = buildUnnamed3067(); + o.values = buildUnnamed4034(); } buildCounterRowData--; return o; @@ -4020,19 +4184,19 @@ checkRowData(api.RowData o) { buildCounterRowData++; if (buildCounterRowData < 3) { - checkUnnamed3067(o.values); + checkUnnamed4034(o.values); } buildCounterRowData--; } -buildUnnamed3068() { +buildUnnamed4035() { var o = new core.List<api.DataFilter>(); o.add(buildDataFilter()); o.add(buildDataFilter()); return o; } -checkUnnamed3068(core.List<api.DataFilter> o) { +checkUnnamed4035(core.List<api.DataFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDataFilter(o[0]); checkDataFilter(o[1]); @@ -4043,7 +4207,7 @@ var o = new api.SearchDeveloperMetadataRequest(); buildCounterSearchDeveloperMetadataRequest++; if (buildCounterSearchDeveloperMetadataRequest < 3) { - o.dataFilters = buildUnnamed3068(); + o.dataFilters = buildUnnamed4035(); } buildCounterSearchDeveloperMetadataRequest--; return o; @@ -4052,19 +4216,19 @@ checkSearchDeveloperMetadataRequest(api.SearchDeveloperMetadataRequest o) { buildCounterSearchDeveloperMetadataRequest++; if (buildCounterSearchDeveloperMetadataRequest < 3) { - checkUnnamed3068(o.dataFilters); + checkUnnamed4035(o.dataFilters); } buildCounterSearchDeveloperMetadataRequest--; } -buildUnnamed3069() { +buildUnnamed4036() { var o = new core.List<api.MatchedDeveloperMetadata>(); o.add(buildMatchedDeveloperMetadata()); o.add(buildMatchedDeveloperMetadata()); return o; } -checkUnnamed3069(core.List<api.MatchedDeveloperMetadata> o) { +checkUnnamed4036(core.List<api.MatchedDeveloperMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkMatchedDeveloperMetadata(o[0]); checkMatchedDeveloperMetadata(o[1]); @@ -4075,7 +4239,7 @@ var o = new api.SearchDeveloperMetadataResponse(); buildCounterSearchDeveloperMetadataResponse++; if (buildCounterSearchDeveloperMetadataResponse < 3) { - o.matchedDeveloperMetadata = buildUnnamed3069(); + o.matchedDeveloperMetadata = buildUnnamed4036(); } buildCounterSearchDeveloperMetadataResponse--; return o; @@ -4084,7 +4248,7 @@ checkSearchDeveloperMetadataResponse(api.SearchDeveloperMetadataResponse o) { buildCounterSearchDeveloperMetadataResponse++; if (buildCounterSearchDeveloperMetadataResponse < 3) { - checkUnnamed3069(o.matchedDeveloperMetadata); + checkUnnamed4036(o.matchedDeveloperMetadata); } buildCounterSearchDeveloperMetadataResponse--; } @@ -4129,125 +4293,153 @@ buildCounterSetDataValidationRequest--; } -buildUnnamed3070() { +buildUnnamed4037() { var o = new core.List<api.BandedRange>(); o.add(buildBandedRange()); o.add(buildBandedRange()); return o; } -checkUnnamed3070(core.List<api.BandedRange> o) { +checkUnnamed4037(core.List<api.BandedRange> o) { unittest.expect(o, unittest.hasLength(2)); checkBandedRange(o[0]); checkBandedRange(o[1]); } -buildUnnamed3071() { +buildUnnamed4038() { var o = new core.List<api.EmbeddedChart>(); o.add(buildEmbeddedChart()); o.add(buildEmbeddedChart()); return o; } -checkUnnamed3071(core.List<api.EmbeddedChart> o) { +checkUnnamed4038(core.List<api.EmbeddedChart> o) { unittest.expect(o, unittest.hasLength(2)); checkEmbeddedChart(o[0]); checkEmbeddedChart(o[1]); } -buildUnnamed3072() { +buildUnnamed4039() { + var o = new core.List<api.DimensionGroup>(); + o.add(buildDimensionGroup()); + o.add(buildDimensionGroup()); + return o; +} + +checkUnnamed4039(core.List<api.DimensionGroup> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDimensionGroup(o[0]); + checkDimensionGroup(o[1]); +} + +buildUnnamed4040() { var o = new core.List<api.ConditionalFormatRule>(); o.add(buildConditionalFormatRule()); o.add(buildConditionalFormatRule()); return o; } -checkUnnamed3072(core.List<api.ConditionalFormatRule> o) { +checkUnnamed4040(core.List<api.ConditionalFormatRule> o) { unittest.expect(o, unittest.hasLength(2)); checkConditionalFormatRule(o[0]); checkConditionalFormatRule(o[1]); } -buildUnnamed3073() { +buildUnnamed4041() { var o = new core.List<api.GridData>(); o.add(buildGridData()); o.add(buildGridData()); return o; } -checkUnnamed3073(core.List<api.GridData> o) { +checkUnnamed4041(core.List<api.GridData> o) { unittest.expect(o, unittest.hasLength(2)); checkGridData(o[0]); checkGridData(o[1]); } -buildUnnamed3074() { +buildUnnamed4042() { var o = new core.List<api.DeveloperMetadata>(); o.add(buildDeveloperMetadata()); o.add(buildDeveloperMetadata()); return o; } -checkUnnamed3074(core.List<api.DeveloperMetadata> o) { +checkUnnamed4042(core.List<api.DeveloperMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkDeveloperMetadata(o[0]); checkDeveloperMetadata(o[1]); } -buildUnnamed3075() { +buildUnnamed4043() { var o = new core.List<api.FilterView>(); o.add(buildFilterView()); o.add(buildFilterView()); return o; } -checkUnnamed3075(core.List<api.FilterView> o) { +checkUnnamed4043(core.List<api.FilterView> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterView(o[0]); checkFilterView(o[1]); } -buildUnnamed3076() { +buildUnnamed4044() { var o = new core.List<api.GridRange>(); o.add(buildGridRange()); o.add(buildGridRange()); return o; } -checkUnnamed3076(core.List<api.GridRange> o) { +checkUnnamed4044(core.List<api.GridRange> o) { unittest.expect(o, unittest.hasLength(2)); checkGridRange(o[0]); checkGridRange(o[1]); } -buildUnnamed3077() { +buildUnnamed4045() { var o = new core.List<api.ProtectedRange>(); o.add(buildProtectedRange()); o.add(buildProtectedRange()); return o; } -checkUnnamed3077(core.List<api.ProtectedRange> o) { +checkUnnamed4045(core.List<api.ProtectedRange> o) { unittest.expect(o, unittest.hasLength(2)); checkProtectedRange(o[0]); checkProtectedRange(o[1]); } +buildUnnamed4046() { + var o = new core.List<api.DimensionGroup>(); + o.add(buildDimensionGroup()); + o.add(buildDimensionGroup()); + return o; +} + +checkUnnamed4046(core.List<api.DimensionGroup> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDimensionGroup(o[0]); + checkDimensionGroup(o[1]); +} + core.int buildCounterSheet = 0; buildSheet() { var o = new api.Sheet(); buildCounterSheet++; if (buildCounterSheet < 3) { - o.bandedRanges = buildUnnamed3070(); + o.bandedRanges = buildUnnamed4037(); o.basicFilter = buildBasicFilter(); - o.charts = buildUnnamed3071(); - o.conditionalFormats = buildUnnamed3072(); - o.data = buildUnnamed3073(); - o.developerMetadata = buildUnnamed3074(); - o.filterViews = buildUnnamed3075(); - o.merges = buildUnnamed3076(); + o.charts = buildUnnamed4038(); + o.columnGroups = buildUnnamed4039(); + o.conditionalFormats = buildUnnamed4040(); + o.data = buildUnnamed4041(); + o.developerMetadata = buildUnnamed4042(); + o.filterViews = buildUnnamed4043(); + o.merges = buildUnnamed4044(); o.properties = buildSheetProperties(); - o.protectedRanges = buildUnnamed3077(); + o.protectedRanges = buildUnnamed4045(); + o.rowGroups = buildUnnamed4046(); } buildCounterSheet--; return o; @@ -4256,16 +4448,18 @@ checkSheet(api.Sheet o) { buildCounterSheet++; if (buildCounterSheet < 3) { - checkUnnamed3070(o.bandedRanges); + checkUnnamed4037(o.bandedRanges); checkBasicFilter(o.basicFilter); - checkUnnamed3071(o.charts); - checkUnnamed3072(o.conditionalFormats); - checkUnnamed3073(o.data); - checkUnnamed3074(o.developerMetadata); - checkUnnamed3075(o.filterViews); - checkUnnamed3076(o.merges); + checkUnnamed4038(o.charts); + checkUnnamed4039(o.columnGroups); + checkUnnamed4040(o.conditionalFormats); + checkUnnamed4041(o.data); + checkUnnamed4042(o.developerMetadata); + checkUnnamed4043(o.filterViews); + checkUnnamed4044(o.merges); checkSheetProperties(o.properties); - checkUnnamed3077(o.protectedRanges); + checkUnnamed4045(o.protectedRanges); + checkUnnamed4046(o.rowGroups); } buildCounterSheet--; } @@ -4303,14 +4497,14 @@ buildCounterSheetProperties--; } -buildUnnamed3078() { +buildUnnamed4047() { var o = new core.List<api.SortSpec>(); o.add(buildSortSpec()); o.add(buildSortSpec()); return o; } -checkUnnamed3078(core.List<api.SortSpec> o) { +checkUnnamed4047(core.List<api.SortSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSortSpec(o[0]); checkSortSpec(o[1]); @@ -4322,7 +4516,7 @@ buildCounterSortRangeRequest++; if (buildCounterSortRangeRequest < 3) { o.range = buildGridRange(); - o.sortSpecs = buildUnnamed3078(); + o.sortSpecs = buildUnnamed4047(); } buildCounterSortRangeRequest--; return o; @@ -4332,7 +4526,7 @@ buildCounterSortRangeRequest++; if (buildCounterSortRangeRequest < 3) { checkGridRange(o.range); - checkUnnamed3078(o.sortSpecs); + checkUnnamed4047(o.sortSpecs); } buildCounterSortRangeRequest--; } @@ -4381,40 +4575,40 @@ buildCounterSourceAndDestination--; } -buildUnnamed3079() { +buildUnnamed4048() { var o = new core.List<api.DeveloperMetadata>(); o.add(buildDeveloperMetadata()); o.add(buildDeveloperMetadata()); return o; } -checkUnnamed3079(core.List<api.DeveloperMetadata> o) { +checkUnnamed4048(core.List<api.DeveloperMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkDeveloperMetadata(o[0]); checkDeveloperMetadata(o[1]); } -buildUnnamed3080() { +buildUnnamed4049() { var o = new core.List<api.NamedRange>(); o.add(buildNamedRange()); o.add(buildNamedRange()); return o; } -checkUnnamed3080(core.List<api.NamedRange> o) { +checkUnnamed4049(core.List<api.NamedRange> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedRange(o[0]); checkNamedRange(o[1]); } -buildUnnamed3081() { +buildUnnamed4050() { var o = new core.List<api.Sheet>(); o.add(buildSheet()); o.add(buildSheet()); return o; } -checkUnnamed3081(core.List<api.Sheet> o) { +checkUnnamed4050(core.List<api.Sheet> o) { unittest.expect(o, unittest.hasLength(2)); checkSheet(o[0]); checkSheet(o[1]); @@ -4425,10 +4619,10 @@ var o = new api.Spreadsheet(); buildCounterSpreadsheet++; if (buildCounterSpreadsheet < 3) { - o.developerMetadata = buildUnnamed3079(); - o.namedRanges = buildUnnamed3080(); + o.developerMetadata = buildUnnamed4048(); + o.namedRanges = buildUnnamed4049(); o.properties = buildSpreadsheetProperties(); - o.sheets = buildUnnamed3081(); + o.sheets = buildUnnamed4050(); o.spreadsheetId = "foo"; o.spreadsheetUrl = "foo"; } @@ -4439,10 +4633,10 @@ checkSpreadsheet(api.Spreadsheet o) { buildCounterSpreadsheet++; if (buildCounterSpreadsheet < 3) { - checkUnnamed3079(o.developerMetadata); - checkUnnamed3080(o.namedRanges); + checkUnnamed4048(o.developerMetadata); + checkUnnamed4049(o.namedRanges); checkSpreadsheetProperties(o.properties); - checkUnnamed3081(o.sheets); + checkUnnamed4050(o.sheets); unittest.expect(o.spreadsheetId, unittest.equals('foo')); unittest.expect(o.spreadsheetUrl, unittest.equals('foo')); } @@ -4593,6 +4787,72 @@ buildCounterTextToColumnsRequest--; } +core.int buildCounterTreemapChartColorScale = 0; +buildTreemapChartColorScale() { + var o = new api.TreemapChartColorScale(); + buildCounterTreemapChartColorScale++; + if (buildCounterTreemapChartColorScale < 3) { + o.maxValueColor = buildColor(); + o.midValueColor = buildColor(); + o.minValueColor = buildColor(); + o.noDataColor = buildColor(); + } + buildCounterTreemapChartColorScale--; + return o; +} + +checkTreemapChartColorScale(api.TreemapChartColorScale o) { + buildCounterTreemapChartColorScale++; + if (buildCounterTreemapChartColorScale < 3) { + checkColor(o.maxValueColor); + checkColor(o.midValueColor); + checkColor(o.minValueColor); + checkColor(o.noDataColor); + } + buildCounterTreemapChartColorScale--; +} + +core.int buildCounterTreemapChartSpec = 0; +buildTreemapChartSpec() { + var o = new api.TreemapChartSpec(); + buildCounterTreemapChartSpec++; + if (buildCounterTreemapChartSpec < 3) { + o.colorData = buildChartData(); + o.colorScale = buildTreemapChartColorScale(); + o.headerColor = buildColor(); + o.hideTooltips = true; + o.hintedLevels = 42; + o.labels = buildChartData(); + o.levels = 42; + o.maxValue = 42.0; + o.minValue = 42.0; + o.parentLabels = buildChartData(); + o.sizeData = buildChartData(); + o.textFormat = buildTextFormat(); + } + buildCounterTreemapChartSpec--; + return o; +} + +checkTreemapChartSpec(api.TreemapChartSpec o) { + buildCounterTreemapChartSpec++; + if (buildCounterTreemapChartSpec < 3) { + checkChartData(o.colorData); + checkTreemapChartColorScale(o.colorScale); + checkColor(o.headerColor); + unittest.expect(o.hideTooltips, unittest.isTrue); + unittest.expect(o.hintedLevels, unittest.equals(42)); + checkChartData(o.labels); + unittest.expect(o.levels, unittest.equals(42)); + unittest.expect(o.maxValue, unittest.equals(42.0)); + unittest.expect(o.minValue, unittest.equals(42.0)); + checkChartData(o.parentLabels); + checkChartData(o.sizeData); + checkTextFormat(o.textFormat); + } + buildCounterTreemapChartSpec--; +} + core.int buildCounterUnmergeCellsRequest = 0; buildUnmergeCellsRequest() { var o = new api.UnmergeCellsRequest(); @@ -4664,14 +4924,14 @@ buildCounterUpdateBordersRequest--; } -buildUnnamed3082() { +buildUnnamed4051() { var o = new core.List<api.RowData>(); o.add(buildRowData()); o.add(buildRowData()); return o; } -checkUnnamed3082(core.List<api.RowData> o) { +checkUnnamed4051(core.List<api.RowData> o) { unittest.expect(o, unittest.hasLength(2)); checkRowData(o[0]); checkRowData(o[1]); @@ -4684,7 +4944,7 @@ if (buildCounterUpdateCellsRequest < 3) { o.fields = "foo"; o.range = buildGridRange(); - o.rows = buildUnnamed3082(); + o.rows = buildUnnamed4051(); o.start = buildGridCoordinate(); } buildCounterUpdateCellsRequest--; @@ -4696,7 +4956,7 @@ if (buildCounterUpdateCellsRequest < 3) { unittest.expect(o.fields, unittest.equals('foo')); checkGridRange(o.range); - checkUnnamed3082(o.rows); + checkUnnamed4051(o.rows); checkGridCoordinate(o.start); } buildCounterUpdateCellsRequest--; @@ -4775,14 +5035,14 @@ buildCounterUpdateConditionalFormatRuleResponse--; } -buildUnnamed3083() { +buildUnnamed4052() { var o = new core.List<api.DataFilter>(); o.add(buildDataFilter()); o.add(buildDataFilter()); return o; } -checkUnnamed3083(core.List<api.DataFilter> o) { +checkUnnamed4052(core.List<api.DataFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDataFilter(o[0]); checkDataFilter(o[1]); @@ -4793,7 +5053,7 @@ var o = new api.UpdateDeveloperMetadataRequest(); buildCounterUpdateDeveloperMetadataRequest++; if (buildCounterUpdateDeveloperMetadataRequest < 3) { - o.dataFilters = buildUnnamed3083(); + o.dataFilters = buildUnnamed4052(); o.developerMetadata = buildDeveloperMetadata(); o.fields = "foo"; } @@ -4804,21 +5064,21 @@ checkUpdateDeveloperMetadataRequest(api.UpdateDeveloperMetadataRequest o) { buildCounterUpdateDeveloperMetadataRequest++; if (buildCounterUpdateDeveloperMetadataRequest < 3) { - checkUnnamed3083(o.dataFilters); + checkUnnamed4052(o.dataFilters); checkDeveloperMetadata(o.developerMetadata); unittest.expect(o.fields, unittest.equals('foo')); } buildCounterUpdateDeveloperMetadataRequest--; } -buildUnnamed3084() { +buildUnnamed4053() { var o = new core.List<api.DeveloperMetadata>(); o.add(buildDeveloperMetadata()); o.add(buildDeveloperMetadata()); return o; } -checkUnnamed3084(core.List<api.DeveloperMetadata> o) { +checkUnnamed4053(core.List<api.DeveloperMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkDeveloperMetadata(o[0]); checkDeveloperMetadata(o[1]); @@ -4829,7 +5089,7 @@ var o = new api.UpdateDeveloperMetadataResponse(); buildCounterUpdateDeveloperMetadataResponse++; if (buildCounterUpdateDeveloperMetadataResponse < 3) { - o.developerMetadata = buildUnnamed3084(); + o.developerMetadata = buildUnnamed4053(); } buildCounterUpdateDeveloperMetadataResponse--; return o; @@ -4838,11 +5098,32 @@ checkUpdateDeveloperMetadataResponse(api.UpdateDeveloperMetadataResponse o) { buildCounterUpdateDeveloperMetadataResponse++; if (buildCounterUpdateDeveloperMetadataResponse < 3) { - checkUnnamed3084(o.developerMetadata); + checkUnnamed4053(o.developerMetadata); } buildCounterUpdateDeveloperMetadataResponse--; } +core.int buildCounterUpdateDimensionGroupRequest = 0; +buildUpdateDimensionGroupRequest() { + var o = new api.UpdateDimensionGroupRequest(); + buildCounterUpdateDimensionGroupRequest++; + if (buildCounterUpdateDimensionGroupRequest < 3) { + o.dimensionGroup = buildDimensionGroup(); + o.fields = "foo"; + } + buildCounterUpdateDimensionGroupRequest--; + return o; +} + +checkUpdateDimensionGroupRequest(api.UpdateDimensionGroupRequest o) { + buildCounterUpdateDimensionGroupRequest++; + if (buildCounterUpdateDimensionGroupRequest < 3) { + checkDimensionGroup(o.dimensionGroup); + unittest.expect(o.fields, unittest.equals('foo')); + } + buildCounterUpdateDimensionGroupRequest--; +} + core.int buildCounterUpdateDimensionPropertiesRequest = 0; buildUpdateDimensionPropertiesRequest() { var o = new api.UpdateDimensionPropertiesRequest(); @@ -5074,7 +5355,7 @@ buildCounterUpdateValuesResponse--; } -buildUnnamed3085() { +buildUnnamed4054() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -5089,7 +5370,7 @@ return o; } -checkUnnamed3085(core.List<core.Object> o) { +checkUnnamed4054(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -5103,17 +5384,17 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed3086() { +buildUnnamed4055() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed3085()); - o.add(buildUnnamed3085()); + o.add(buildUnnamed4054()); + o.add(buildUnnamed4054()); return o; } -checkUnnamed3086(core.List<core.List<core.Object>> o) { +checkUnnamed4055(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3085(o[0]); - checkUnnamed3085(o[1]); + checkUnnamed4054(o[0]); + checkUnnamed4054(o[1]); } core.int buildCounterValueRange = 0; @@ -5123,7 +5404,7 @@ if (buildCounterValueRange < 3) { o.majorDimension = "foo"; o.range = "foo"; - o.values = buildUnnamed3086(); + o.values = buildUnnamed4055(); } buildCounterValueRange--; return o; @@ -5134,7 +5415,7 @@ if (buildCounterValueRange < 3) { unittest.expect(o.majorDimension, unittest.equals('foo')); unittest.expect(o.range, unittest.equals('foo')); - checkUnnamed3086(o.values); + checkUnnamed4055(o.values); } buildCounterValueRange--; } @@ -5204,14 +5485,14 @@ buildCounterWaterfallChartDomain--; } -buildUnnamed3087() { +buildUnnamed4056() { var o = new core.List<api.WaterfallChartCustomSubtotal>(); o.add(buildWaterfallChartCustomSubtotal()); o.add(buildWaterfallChartCustomSubtotal()); return o; } -checkUnnamed3087(core.List<api.WaterfallChartCustomSubtotal> o) { +checkUnnamed4056(core.List<api.WaterfallChartCustomSubtotal> o) { unittest.expect(o, unittest.hasLength(2)); checkWaterfallChartCustomSubtotal(o[0]); checkWaterfallChartCustomSubtotal(o[1]); @@ -5222,7 +5503,7 @@ var o = new api.WaterfallChartSeries(); buildCounterWaterfallChartSeries++; if (buildCounterWaterfallChartSeries < 3) { - o.customSubtotals = buildUnnamed3087(); + o.customSubtotals = buildUnnamed4056(); o.data = buildChartData(); o.hideTrailingSubtotal = true; o.negativeColumnsStyle = buildWaterfallChartColumnStyle(); @@ -5236,7 +5517,7 @@ checkWaterfallChartSeries(api.WaterfallChartSeries o) { buildCounterWaterfallChartSeries++; if (buildCounterWaterfallChartSeries < 3) { - checkUnnamed3087(o.customSubtotals); + checkUnnamed4056(o.customSubtotals); checkChartData(o.data); unittest.expect(o.hideTrailingSubtotal, unittest.isTrue); checkWaterfallChartColumnStyle(o.negativeColumnsStyle); @@ -5246,14 +5527,14 @@ buildCounterWaterfallChartSeries--; } -buildUnnamed3088() { +buildUnnamed4057() { var o = new core.List<api.WaterfallChartSeries>(); o.add(buildWaterfallChartSeries()); o.add(buildWaterfallChartSeries()); return o; } -checkUnnamed3088(core.List<api.WaterfallChartSeries> o) { +checkUnnamed4057(core.List<api.WaterfallChartSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkWaterfallChartSeries(o[0]); checkWaterfallChartSeries(o[1]); @@ -5268,7 +5549,7 @@ o.domain = buildWaterfallChartDomain(); o.firstValueIsTotal = true; o.hideConnectorLines = true; - o.series = buildUnnamed3088(); + o.series = buildUnnamed4057(); o.stackedType = "foo"; } buildCounterWaterfallChartSpec--; @@ -5282,33 +5563,33 @@ checkWaterfallChartDomain(o.domain); unittest.expect(o.firstValueIsTotal, unittest.isTrue); unittest.expect(o.hideConnectorLines, unittest.isTrue); - checkUnnamed3088(o.series); + checkUnnamed4057(o.series); unittest.expect(o.stackedType, unittest.equals('foo')); } buildCounterWaterfallChartSpec--; } -buildUnnamed3089() { +buildUnnamed4058() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3089(core.List<core.String> o) { +checkUnnamed4058(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3090() { +buildUnnamed4059() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3090(core.List<core.String> o) { +checkUnnamed4059(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5355,6 +5636,22 @@ }); }); + unittest.group("obj-schema-AddDimensionGroupRequest", () { + unittest.test("to-json--from-json", () { + var o = buildAddDimensionGroupRequest(); + var od = new api.AddDimensionGroupRequest.fromJson(o.toJson()); + checkAddDimensionGroupRequest(od); + }); + }); + + unittest.group("obj-schema-AddDimensionGroupResponse", () { + unittest.test("to-json--from-json", () { + var o = buildAddDimensionGroupResponse(); + var od = new api.AddDimensionGroupResponse.fromJson(o.toJson()); + checkAddDimensionGroupResponse(od); + }); + }); + unittest.group("obj-schema-AddFilterViewRequest", () { unittest.test("to-json--from-json", () { var o = buildAddFilterViewRequest(); @@ -5847,6 +6144,14 @@ }); }); + unittest.group("obj-schema-DateTimeRule", () { + unittest.test("to-json--from-json", () { + var o = buildDateTimeRule(); + var od = new api.DateTimeRule.fromJson(o.toJson()); + checkDateTimeRule(od); + }); + }); + unittest.group("obj-schema-DeleteBandingRequest", () { unittest.test("to-json--from-json", () { var o = buildDeleteBandingRequest(); @@ -5887,6 +6192,22 @@ }); }); + unittest.group("obj-schema-DeleteDimensionGroupRequest", () { + unittest.test("to-json--from-json", () { + var o = buildDeleteDimensionGroupRequest(); + var od = new api.DeleteDimensionGroupRequest.fromJson(o.toJson()); + checkDeleteDimensionGroupRequest(od); + }); + }); + + unittest.group("obj-schema-DeleteDimensionGroupResponse", () { + unittest.test("to-json--from-json", () { + var o = buildDeleteDimensionGroupResponse(); + var od = new api.DeleteDimensionGroupResponse.fromJson(o.toJson()); + checkDeleteDimensionGroupResponse(od); + }); + }); + unittest.group("obj-schema-DeleteDimensionRequest", () { unittest.test("to-json--from-json", () { var o = buildDeleteDimensionRequest(); @@ -5967,6 +6288,14 @@ }); }); + unittest.group("obj-schema-DimensionGroup", () { + unittest.test("to-json--from-json", () { + var o = buildDimensionGroup(); + var od = new api.DimensionGroup.fromJson(o.toJson()); + checkDimensionGroup(od); + }); + }); + unittest.group("obj-schema-DimensionProperties", () { unittest.test("to-json--from-json", () { var o = buildDimensionProperties(); @@ -6535,6 +6864,22 @@ }); }); + unittest.group("obj-schema-TreemapChartColorScale", () { + unittest.test("to-json--from-json", () { + var o = buildTreemapChartColorScale(); + var od = new api.TreemapChartColorScale.fromJson(o.toJson()); + checkTreemapChartColorScale(od); + }); + }); + + unittest.group("obj-schema-TreemapChartSpec", () { + unittest.test("to-json--from-json", () { + var o = buildTreemapChartSpec(); + var od = new api.TreemapChartSpec.fromJson(o.toJson()); + checkTreemapChartSpec(od); + }); + }); + unittest.group("obj-schema-UnmergeCellsRequest", () { unittest.test("to-json--from-json", () { var o = buildUnmergeCellsRequest(); @@ -6607,6 +6952,14 @@ }); }); + unittest.group("obj-schema-UpdateDimensionGroupRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUpdateDimensionGroupRequest(); + var od = new api.UpdateDimensionGroupRequest.fromJson(o.toJson()); + checkUpdateDimensionGroupRequest(od); + }); + }); + unittest.group("obj-schema-UpdateDimensionPropertiesRequest", () { unittest.test("to-json--from-json", () { var o = buildUpdateDimensionPropertiesRequest(); @@ -6857,7 +7210,7 @@ var mock = new HttpServerMock(); api.SpreadsheetsResourceApi res = new api.SheetsApi(mock).spreadsheets; var arg_spreadsheetId = "foo"; - var arg_ranges = buildUnnamed3089(); + var arg_ranges = buildUnnamed4058(); var arg_includeGridData = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -7416,10 +7769,10 @@ api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadsheets.values; var arg_spreadsheetId = "foo"; + var arg_ranges = buildUnnamed4059(); + var arg_majorDimension = "foo"; var arg_valueRenderOption = "foo"; var arg_dateTimeRenderOption = "foo"; - var arg_ranges = buildUnnamed3090(); - var arg_majorDimension = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7460,13 +7813,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["ranges"], unittest.equals(arg_ranges)); + unittest.expect(queryMap["majorDimension"].first, + unittest.equals(arg_majorDimension)); unittest.expect(queryMap["valueRenderOption"].first, unittest.equals(arg_valueRenderOption)); unittest.expect(queryMap["dateTimeRenderOption"].first, unittest.equals(arg_dateTimeRenderOption)); - unittest.expect(queryMap["ranges"], unittest.equals(arg_ranges)); - unittest.expect(queryMap["majorDimension"].first, - unittest.equals(arg_majorDimension)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7477,10 +7830,10 @@ }), true); res .batchGet(arg_spreadsheetId, - valueRenderOption: arg_valueRenderOption, - dateTimeRenderOption: arg_dateTimeRenderOption, ranges: arg_ranges, majorDimension: arg_majorDimension, + valueRenderOption: arg_valueRenderOption, + dateTimeRenderOption: arg_dateTimeRenderOption, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkBatchGetValuesResponse(response); @@ -7842,10 +8195,10 @@ var arg_request = buildValueRange(); var arg_spreadsheetId = "foo"; var arg_range = "foo"; - var arg_includeValuesInResponse = true; - var arg_responseValueRenderOption = "foo"; var arg_valueInputOption = "foo"; var arg_responseDateTimeRenderOption = "foo"; + var arg_includeValuesInResponse = true; + var arg_responseValueRenderOption = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ValueRange.fromJson(json); @@ -7892,14 +8245,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["includeValuesInResponse"].first, - unittest.equals("$arg_includeValuesInResponse")); - unittest.expect(queryMap["responseValueRenderOption"].first, - unittest.equals(arg_responseValueRenderOption)); unittest.expect(queryMap["valueInputOption"].first, unittest.equals(arg_valueInputOption)); unittest.expect(queryMap["responseDateTimeRenderOption"].first, unittest.equals(arg_responseDateTimeRenderOption)); + unittest.expect(queryMap["includeValuesInResponse"].first, + unittest.equals("$arg_includeValuesInResponse")); + unittest.expect(queryMap["responseValueRenderOption"].first, + unittest.equals(arg_responseValueRenderOption)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7910,10 +8263,10 @@ }), true); res .update(arg_request, arg_spreadsheetId, arg_range, - includeValuesInResponse: arg_includeValuesInResponse, - responseValueRenderOption: arg_responseValueRenderOption, valueInputOption: arg_valueInputOption, responseDateTimeRenderOption: arg_responseDateTimeRenderOption, + includeValuesInResponse: arg_includeValuesInResponse, + responseValueRenderOption: arg_responseValueRenderOption, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkUpdateValuesResponse(response);
diff --git a/generated/googleapis/test/siteverification/v1_test.dart b/generated/googleapis/test/siteverification/v1_test.dart index 16a1fe7..f82e8cf 100644 --- a/generated/googleapis/test/siteverification/v1_test.dart +++ b/generated/googleapis/test/siteverification/v1_test.dart
@@ -116,14 +116,14 @@ buildCounterSiteVerificationWebResourceGettokenResponse--; } -buildUnnamed952() { +buildUnnamed0() { var o = new core.List<api.SiteVerificationWebResourceResource>(); o.add(buildSiteVerificationWebResourceResource()); o.add(buildSiteVerificationWebResourceResource()); return o; } -checkUnnamed952(core.List<api.SiteVerificationWebResourceResource> o) { +checkUnnamed0(core.List<api.SiteVerificationWebResourceResource> o) { unittest.expect(o, unittest.hasLength(2)); checkSiteVerificationWebResourceResource(o[0]); checkSiteVerificationWebResourceResource(o[1]); @@ -134,7 +134,7 @@ var o = new api.SiteVerificationWebResourceListResponse(); buildCounterSiteVerificationWebResourceListResponse++; if (buildCounterSiteVerificationWebResourceListResponse < 3) { - o.items = buildUnnamed952(); + o.items = buildUnnamed0(); } buildCounterSiteVerificationWebResourceListResponse--; return o; @@ -144,19 +144,19 @@ api.SiteVerificationWebResourceListResponse o) { buildCounterSiteVerificationWebResourceListResponse++; if (buildCounterSiteVerificationWebResourceListResponse < 3) { - checkUnnamed952(o.items); + checkUnnamed0(o.items); } buildCounterSiteVerificationWebResourceListResponse--; } -buildUnnamed953() { +buildUnnamed1() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed953(core.List<core.String> o) { +checkUnnamed1(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -190,7 +190,7 @@ buildCounterSiteVerificationWebResourceResource++; if (buildCounterSiteVerificationWebResourceResource < 3) { o.id = "foo"; - o.owners = buildUnnamed953(); + o.owners = buildUnnamed1(); o.site = buildSiteVerificationWebResourceResourceSite(); } buildCounterSiteVerificationWebResourceResource--; @@ -202,7 +202,7 @@ buildCounterSiteVerificationWebResourceResource++; if (buildCounterSiteVerificationWebResourceResource < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed953(o.owners); + checkUnnamed1(o.owners); checkSiteVerificationWebResourceResourceSite(o.site); } buildCounterSiteVerificationWebResourceResource--;
diff --git a/generated/googleapis/test/slides/v1_test.dart b/generated/googleapis/test/slides/v1_test.dart index f5b12ab..8203ae6 100644 --- a/generated/googleapis/test/slides/v1_test.dart +++ b/generated/googleapis/test/slides/v1_test.dart
@@ -104,14 +104,14 @@ buildCounterAutoText--; } -buildUnnamed3500() { +buildUnnamed1676() { var o = new core.List<api.Request>(); o.add(buildRequest()); o.add(buildRequest()); return o; } -checkUnnamed3500(core.List<api.Request> o) { +checkUnnamed1676(core.List<api.Request> o) { unittest.expect(o, unittest.hasLength(2)); checkRequest(o[0]); checkRequest(o[1]); @@ -122,7 +122,7 @@ var o = new api.BatchUpdatePresentationRequest(); buildCounterBatchUpdatePresentationRequest++; if (buildCounterBatchUpdatePresentationRequest < 3) { - o.requests = buildUnnamed3500(); + o.requests = buildUnnamed1676(); o.writeControl = buildWriteControl(); } buildCounterBatchUpdatePresentationRequest--; @@ -132,20 +132,20 @@ checkBatchUpdatePresentationRequest(api.BatchUpdatePresentationRequest o) { buildCounterBatchUpdatePresentationRequest++; if (buildCounterBatchUpdatePresentationRequest < 3) { - checkUnnamed3500(o.requests); + checkUnnamed1676(o.requests); checkWriteControl(o.writeControl); } buildCounterBatchUpdatePresentationRequest--; } -buildUnnamed3501() { +buildUnnamed1677() { var o = new core.List<api.Response>(); o.add(buildResponse()); o.add(buildResponse()); return o; } -checkUnnamed3501(core.List<api.Response> o) { +checkUnnamed1677(core.List<api.Response> o) { unittest.expect(o, unittest.hasLength(2)); checkResponse(o[0]); checkResponse(o[1]); @@ -157,7 +157,7 @@ buildCounterBatchUpdatePresentationResponse++; if (buildCounterBatchUpdatePresentationResponse < 3) { o.presentationId = "foo"; - o.replies = buildUnnamed3501(); + o.replies = buildUnnamed1677(); o.writeControl = buildWriteControl(); } buildCounterBatchUpdatePresentationResponse--; @@ -168,7 +168,7 @@ buildCounterBatchUpdatePresentationResponse++; if (buildCounterBatchUpdatePresentationResponse < 3) { unittest.expect(o.presentationId, unittest.equals('foo')); - checkUnnamed3501(o.replies); + checkUnnamed1677(o.replies); checkWriteControl(o.writeControl); } buildCounterBatchUpdatePresentationResponse--; @@ -199,14 +199,14 @@ buildCounterBullet--; } -buildUnnamed3502() { +buildUnnamed1678() { var o = new core.List<api.ThemeColorPair>(); o.add(buildThemeColorPair()); o.add(buildThemeColorPair()); return o; } -checkUnnamed3502(core.List<api.ThemeColorPair> o) { +checkUnnamed1678(core.List<api.ThemeColorPair> o) { unittest.expect(o, unittest.hasLength(2)); checkThemeColorPair(o[0]); checkThemeColorPair(o[1]); @@ -217,7 +217,7 @@ var o = new api.ColorScheme(); buildCounterColorScheme++; if (buildCounterColorScheme < 3) { - o.colors = buildUnnamed3502(); + o.colors = buildUnnamed1678(); } buildCounterColorScheme--; return o; @@ -226,7 +226,7 @@ checkColorScheme(api.ColorScheme o) { buildCounterColorScheme++; if (buildCounterColorScheme < 3) { - checkUnnamed3502(o.colors); + checkUnnamed1678(o.colors); } buildCounterColorScheme--; } @@ -451,14 +451,14 @@ buildCounterCreateSheetsChartResponse--; } -buildUnnamed3503() { +buildUnnamed1679() { var o = new core.List<api.LayoutPlaceholderIdMapping>(); o.add(buildLayoutPlaceholderIdMapping()); o.add(buildLayoutPlaceholderIdMapping()); return o; } -checkUnnamed3503(core.List<api.LayoutPlaceholderIdMapping> o) { +checkUnnamed1679(core.List<api.LayoutPlaceholderIdMapping> o) { unittest.expect(o, unittest.hasLength(2)); checkLayoutPlaceholderIdMapping(o[0]); checkLayoutPlaceholderIdMapping(o[1]); @@ -471,7 +471,7 @@ if (buildCounterCreateSlideRequest < 3) { o.insertionIndex = 42; o.objectId = "foo"; - o.placeholderIdMappings = buildUnnamed3503(); + o.placeholderIdMappings = buildUnnamed1679(); o.slideLayoutReference = buildLayoutReference(); } buildCounterCreateSlideRequest--; @@ -483,7 +483,7 @@ if (buildCounterCreateSlideRequest < 3) { unittest.expect(o.insertionIndex, unittest.equals(42)); unittest.expect(o.objectId, unittest.equals('foo')); - checkUnnamed3503(o.placeholderIdMappings); + checkUnnamed1679(o.placeholderIdMappings); checkLayoutReference(o.slideLayoutReference); } buildCounterCreateSlideRequest--; @@ -751,14 +751,14 @@ buildCounterDimension--; } -buildUnnamed3504() { +buildUnnamed1680() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3504(core.Map<core.String, core.String> o) { +checkUnnamed1680(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')); @@ -770,7 +770,7 @@ buildCounterDuplicateObjectRequest++; if (buildCounterDuplicateObjectRequest < 3) { o.objectId = "foo"; - o.objectIds = buildUnnamed3504(); + o.objectIds = buildUnnamed1680(); } buildCounterDuplicateObjectRequest--; return o; @@ -780,7 +780,7 @@ buildCounterDuplicateObjectRequest++; if (buildCounterDuplicateObjectRequest < 3) { unittest.expect(o.objectId, unittest.equals('foo')); - checkUnnamed3504(o.objectIds); + checkUnnamed1680(o.objectIds); } buildCounterDuplicateObjectRequest--; } @@ -804,14 +804,14 @@ buildCounterDuplicateObjectResponse--; } -buildUnnamed3505() { +buildUnnamed1681() { var o = new core.List<api.PageElement>(); o.add(buildPageElement()); o.add(buildPageElement()); return o; } -checkUnnamed3505(core.List<api.PageElement> o) { +checkUnnamed1681(core.List<api.PageElement> o) { unittest.expect(o, unittest.hasLength(2)); checkPageElement(o[0]); checkPageElement(o[1]); @@ -822,7 +822,7 @@ var o = new api.Group(); buildCounterGroup++; if (buildCounterGroup < 3) { - o.children = buildUnnamed3505(); + o.children = buildUnnamed1681(); } buildCounterGroup--; return o; @@ -831,19 +831,19 @@ checkGroup(api.Group o) { buildCounterGroup++; if (buildCounterGroup < 3) { - checkUnnamed3505(o.children); + checkUnnamed1681(o.children); } buildCounterGroup--; } -buildUnnamed3506() { +buildUnnamed1682() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3506(core.List<core.String> o) { +checkUnnamed1682(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -854,7 +854,7 @@ var o = new api.GroupObjectsRequest(); buildCounterGroupObjectsRequest++; if (buildCounterGroupObjectsRequest < 3) { - o.childrenObjectIds = buildUnnamed3506(); + o.childrenObjectIds = buildUnnamed1682(); o.groupObjectId = "foo"; } buildCounterGroupObjectsRequest--; @@ -864,7 +864,7 @@ checkGroupObjectsRequest(api.GroupObjectsRequest o) { buildCounterGroupObjectsRequest++; if (buildCounterGroupObjectsRequest < 3) { - checkUnnamed3506(o.childrenObjectIds); + checkUnnamed1682(o.childrenObjectIds); unittest.expect(o.groupObjectId, unittest.equals('foo')); } buildCounterGroupObjectsRequest--; @@ -1181,14 +1181,14 @@ buildCounterLink--; } -buildUnnamed3507() { +buildUnnamed1683() { var o = new core.Map<core.String, api.NestingLevel>(); o["x"] = buildNestingLevel(); o["y"] = buildNestingLevel(); return o; } -checkUnnamed3507(core.Map<core.String, api.NestingLevel> o) { +checkUnnamed1683(core.Map<core.String, api.NestingLevel> o) { unittest.expect(o, unittest.hasLength(2)); checkNestingLevel(o["x"]); checkNestingLevel(o["y"]); @@ -1200,7 +1200,7 @@ buildCounterList++; if (buildCounterList < 3) { o.listId = "foo"; - o.nestingLevel = buildUnnamed3507(); + o.nestingLevel = buildUnnamed1683(); } buildCounterList--; return o; @@ -1210,7 +1210,7 @@ buildCounterList++; if (buildCounterList < 3) { unittest.expect(o.listId, unittest.equals('foo')); - checkUnnamed3507(o.nestingLevel); + checkUnnamed1683(o.nestingLevel); } buildCounterList--; } @@ -1377,14 +1377,14 @@ buildCounterOutlineFill--; } -buildUnnamed3508() { +buildUnnamed1684() { var o = new core.List<api.PageElement>(); o.add(buildPageElement()); o.add(buildPageElement()); return o; } -checkUnnamed3508(core.List<api.PageElement> o) { +checkUnnamed1684(core.List<api.PageElement> o) { unittest.expect(o, unittest.hasLength(2)); checkPageElement(o[0]); checkPageElement(o[1]); @@ -1399,7 +1399,7 @@ o.masterProperties = buildMasterProperties(); o.notesProperties = buildNotesProperties(); o.objectId = "foo"; - o.pageElements = buildUnnamed3508(); + o.pageElements = buildUnnamed1684(); o.pageProperties = buildPageProperties(); o.pageType = "foo"; o.revisionId = "foo"; @@ -1416,7 +1416,7 @@ checkMasterProperties(o.masterProperties); checkNotesProperties(o.notesProperties); unittest.expect(o.objectId, unittest.equals('foo')); - checkUnnamed3508(o.pageElements); + checkUnnamed1684(o.pageElements); checkPageProperties(o.pageProperties); unittest.expect(o.pageType, unittest.equals('foo')); unittest.expect(o.revisionId, unittest.equals('foo')); @@ -1614,40 +1614,40 @@ buildCounterPlaceholder--; } -buildUnnamed3509() { +buildUnnamed1685() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed3509(core.List<api.Page> o) { +checkUnnamed1685(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed3510() { +buildUnnamed1686() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed3510(core.List<api.Page> o) { +checkUnnamed1686(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed3511() { +buildUnnamed1687() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed3511(core.List<api.Page> o) { +checkUnnamed1687(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -1658,14 +1658,14 @@ var o = new api.Presentation(); buildCounterPresentation++; if (buildCounterPresentation < 3) { - o.layouts = buildUnnamed3509(); + o.layouts = buildUnnamed1685(); o.locale = "foo"; - o.masters = buildUnnamed3510(); + o.masters = buildUnnamed1686(); o.notesMaster = buildPage(); o.pageSize = buildSize(); o.presentationId = "foo"; o.revisionId = "foo"; - o.slides = buildUnnamed3511(); + o.slides = buildUnnamed1687(); o.title = "foo"; } buildCounterPresentation--; @@ -1675,14 +1675,14 @@ checkPresentation(api.Presentation o) { buildCounterPresentation++; if (buildCounterPresentation < 3) { - checkUnnamed3509(o.layouts); + checkUnnamed1685(o.layouts); unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed3510(o.masters); + checkUnnamed1686(o.masters); checkPage(o.notesMaster); checkSize(o.pageSize); unittest.expect(o.presentationId, unittest.equals('foo')); unittest.expect(o.revisionId, unittest.equals('foo')); - checkUnnamed3511(o.slides); + checkUnnamed1687(o.slides); unittest.expect(o.title, unittest.equals('foo')); } buildCounterPresentation--; @@ -1711,14 +1711,14 @@ buildCounterRange--; } -buildUnnamed3512() { +buildUnnamed1688() { var o = new core.List<api.ColorStop>(); o.add(buildColorStop()); o.add(buildColorStop()); return o; } -checkUnnamed3512(core.List<api.ColorStop> o) { +checkUnnamed1688(core.List<api.ColorStop> o) { unittest.expect(o, unittest.hasLength(2)); checkColorStop(o[0]); checkColorStop(o[1]); @@ -1730,7 +1730,7 @@ buildCounterRecolor++; if (buildCounterRecolor < 3) { o.name = "foo"; - o.recolorStops = buildUnnamed3512(); + o.recolorStops = buildUnnamed1688(); } buildCounterRecolor--; return o; @@ -1740,7 +1740,7 @@ buildCounterRecolor++; if (buildCounterRecolor < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3512(o.recolorStops); + checkUnnamed1688(o.recolorStops); } buildCounterRecolor--; } @@ -1764,14 +1764,14 @@ buildCounterRefreshSheetsChartRequest--; } -buildUnnamed3513() { +buildUnnamed1689() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3513(core.List<core.String> o) { +checkUnnamed1689(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1785,7 +1785,7 @@ o.containsText = buildSubstringMatchCriteria(); o.imageReplaceMethod = "foo"; o.imageUrl = "foo"; - o.pageObjectIds = buildUnnamed3513(); + o.pageObjectIds = buildUnnamed1689(); o.replaceMethod = "foo"; } buildCounterReplaceAllShapesWithImageRequest--; @@ -1798,7 +1798,7 @@ checkSubstringMatchCriteria(o.containsText); unittest.expect(o.imageReplaceMethod, unittest.equals('foo')); unittest.expect(o.imageUrl, unittest.equals('foo')); - checkUnnamed3513(o.pageObjectIds); + checkUnnamed1689(o.pageObjectIds); unittest.expect(o.replaceMethod, unittest.equals('foo')); } buildCounterReplaceAllShapesWithImageRequest--; @@ -1824,14 +1824,14 @@ buildCounterReplaceAllShapesWithImageResponse--; } -buildUnnamed3514() { +buildUnnamed1690() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3514(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')); @@ -1845,7 +1845,7 @@ o.chartId = 42; o.containsText = buildSubstringMatchCriteria(); o.linkingMode = "foo"; - o.pageObjectIds = buildUnnamed3514(); + o.pageObjectIds = buildUnnamed1690(); o.spreadsheetId = "foo"; } buildCounterReplaceAllShapesWithSheetsChartRequest--; @@ -1859,7 +1859,7 @@ unittest.expect(o.chartId, unittest.equals(42)); checkSubstringMatchCriteria(o.containsText); unittest.expect(o.linkingMode, unittest.equals('foo')); - checkUnnamed3514(o.pageObjectIds); + checkUnnamed1690(o.pageObjectIds); unittest.expect(o.spreadsheetId, unittest.equals('foo')); } buildCounterReplaceAllShapesWithSheetsChartRequest--; @@ -1885,14 +1885,14 @@ buildCounterReplaceAllShapesWithSheetsChartResponse--; } -buildUnnamed3515() { +buildUnnamed1691() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3515(core.List<core.String> o) { +checkUnnamed1691(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1904,7 +1904,7 @@ buildCounterReplaceAllTextRequest++; if (buildCounterReplaceAllTextRequest < 3) { o.containsText = buildSubstringMatchCriteria(); - o.pageObjectIds = buildUnnamed3515(); + o.pageObjectIds = buildUnnamed1691(); o.replaceText = "foo"; } buildCounterReplaceAllTextRequest--; @@ -1915,7 +1915,7 @@ buildCounterReplaceAllTextRequest++; if (buildCounterReplaceAllTextRequest < 3) { checkSubstringMatchCriteria(o.containsText); - checkUnnamed3515(o.pageObjectIds); + checkUnnamed1691(o.pageObjectIds); unittest.expect(o.replaceText, unittest.equals('foo')); } buildCounterReplaceAllTextRequest--; @@ -1940,6 +1940,29 @@ buildCounterReplaceAllTextResponse--; } +core.int buildCounterReplaceImageRequest = 0; +buildReplaceImageRequest() { + var o = new api.ReplaceImageRequest(); + buildCounterReplaceImageRequest++; + if (buildCounterReplaceImageRequest < 3) { + o.imageObjectId = "foo"; + o.imageReplaceMethod = "foo"; + o.url = "foo"; + } + buildCounterReplaceImageRequest--; + return o; +} + +checkReplaceImageRequest(api.ReplaceImageRequest o) { + buildCounterReplaceImageRequest++; + if (buildCounterReplaceImageRequest < 3) { + unittest.expect(o.imageObjectId, unittest.equals('foo')); + unittest.expect(o.imageReplaceMethod, unittest.equals('foo')); + unittest.expect(o.url, unittest.equals('foo')); + } + buildCounterReplaceImageRequest--; +} + core.int buildCounterRequest = 0; buildRequest() { var o = new api.Request(); @@ -1969,6 +1992,7 @@ o.replaceAllShapesWithSheetsChart = buildReplaceAllShapesWithSheetsChartRequest(); o.replaceAllText = buildReplaceAllTextRequest(); + o.replaceImage = buildReplaceImageRequest(); o.ungroupObjects = buildUngroupObjectsRequest(); o.unmergeTableCells = buildUnmergeTableCellsRequest(); o.updateImageProperties = buildUpdateImagePropertiesRequest(); @@ -2017,6 +2041,7 @@ checkReplaceAllShapesWithSheetsChartRequest( o.replaceAllShapesWithSheetsChart); checkReplaceAllTextRequest(o.replaceAllText); + checkReplaceImageRequest(o.replaceImage); checkUngroupObjectsRequest(o.ungroupObjects); checkUnmergeTableCellsRequest(o.unmergeTableCells); checkUpdateImagePropertiesRequest(o.updateImageProperties); @@ -2360,53 +2385,53 @@ buildCounterSubstringMatchCriteria--; } -buildUnnamed3516() { +buildUnnamed1692() { var o = new core.List<api.TableBorderRow>(); o.add(buildTableBorderRow()); o.add(buildTableBorderRow()); return o; } -checkUnnamed3516(core.List<api.TableBorderRow> o) { +checkUnnamed1692(core.List<api.TableBorderRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableBorderRow(o[0]); checkTableBorderRow(o[1]); } -buildUnnamed3517() { +buildUnnamed1693() { var o = new core.List<api.TableColumnProperties>(); o.add(buildTableColumnProperties()); o.add(buildTableColumnProperties()); return o; } -checkUnnamed3517(core.List<api.TableColumnProperties> o) { +checkUnnamed1693(core.List<api.TableColumnProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkTableColumnProperties(o[0]); checkTableColumnProperties(o[1]); } -buildUnnamed3518() { +buildUnnamed1694() { var o = new core.List<api.TableRow>(); o.add(buildTableRow()); o.add(buildTableRow()); return o; } -checkUnnamed3518(core.List<api.TableRow> o) { +checkUnnamed1694(core.List<api.TableRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableRow(o[0]); checkTableRow(o[1]); } -buildUnnamed3519() { +buildUnnamed1695() { var o = new core.List<api.TableBorderRow>(); o.add(buildTableBorderRow()); o.add(buildTableBorderRow()); return o; } -checkUnnamed3519(core.List<api.TableBorderRow> o) { +checkUnnamed1695(core.List<api.TableBorderRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableBorderRow(o[0]); checkTableBorderRow(o[1]); @@ -2418,11 +2443,11 @@ buildCounterTable++; if (buildCounterTable < 3) { o.columns = 42; - o.horizontalBorderRows = buildUnnamed3516(); + o.horizontalBorderRows = buildUnnamed1692(); o.rows = 42; - o.tableColumns = buildUnnamed3517(); - o.tableRows = buildUnnamed3518(); - o.verticalBorderRows = buildUnnamed3519(); + o.tableColumns = buildUnnamed1693(); + o.tableRows = buildUnnamed1694(); + o.verticalBorderRows = buildUnnamed1695(); } buildCounterTable--; return o; @@ -2432,11 +2457,11 @@ buildCounterTable++; if (buildCounterTable < 3) { unittest.expect(o.columns, unittest.equals(42)); - checkUnnamed3516(o.horizontalBorderRows); + checkUnnamed1692(o.horizontalBorderRows); unittest.expect(o.rows, unittest.equals(42)); - checkUnnamed3517(o.tableColumns); - checkUnnamed3518(o.tableRows); - checkUnnamed3519(o.verticalBorderRows); + checkUnnamed1693(o.tableColumns); + checkUnnamed1694(o.tableRows); + checkUnnamed1695(o.verticalBorderRows); } buildCounterTable--; } @@ -2504,14 +2529,14 @@ buildCounterTableBorderProperties--; } -buildUnnamed3520() { +buildUnnamed1696() { var o = new core.List<api.TableBorderCell>(); o.add(buildTableBorderCell()); o.add(buildTableBorderCell()); return o; } -checkUnnamed3520(core.List<api.TableBorderCell> o) { +checkUnnamed1696(core.List<api.TableBorderCell> o) { unittest.expect(o, unittest.hasLength(2)); checkTableBorderCell(o[0]); checkTableBorderCell(o[1]); @@ -2522,7 +2547,7 @@ var o = new api.TableBorderRow(); buildCounterTableBorderRow++; if (buildCounterTableBorderRow < 3) { - o.tableBorderCells = buildUnnamed3520(); + o.tableBorderCells = buildUnnamed1696(); } buildCounterTableBorderRow--; return o; @@ -2531,7 +2556,7 @@ checkTableBorderRow(api.TableBorderRow o) { buildCounterTableBorderRow++; if (buildCounterTableBorderRow < 3) { - checkUnnamed3520(o.tableBorderCells); + checkUnnamed1696(o.tableBorderCells); } buildCounterTableBorderRow--; } @@ -2668,14 +2693,14 @@ buildCounterTableRange--; } -buildUnnamed3521() { +buildUnnamed1697() { var o = new core.List<api.TableCell>(); o.add(buildTableCell()); o.add(buildTableCell()); return o; } -checkUnnamed3521(core.List<api.TableCell> o) { +checkUnnamed1697(core.List<api.TableCell> o) { unittest.expect(o, unittest.hasLength(2)); checkTableCell(o[0]); checkTableCell(o[1]); @@ -2687,7 +2712,7 @@ buildCounterTableRow++; if (buildCounterTableRow < 3) { o.rowHeight = buildDimension(); - o.tableCells = buildUnnamed3521(); + o.tableCells = buildUnnamed1697(); o.tableRowProperties = buildTableRowProperties(); } buildCounterTableRow--; @@ -2698,7 +2723,7 @@ buildCounterTableRow++; if (buildCounterTableRow < 3) { checkDimension(o.rowHeight); - checkUnnamed3521(o.tableCells); + checkUnnamed1697(o.tableCells); checkTableRowProperties(o.tableRowProperties); } buildCounterTableRow--; @@ -2723,27 +2748,27 @@ buildCounterTableRowProperties--; } -buildUnnamed3522() { +buildUnnamed1698() { var o = new core.Map<core.String, api.List>(); o["x"] = buildList(); o["y"] = buildList(); return o; } -checkUnnamed3522(core.Map<core.String, api.List> o) { +checkUnnamed1698(core.Map<core.String, api.List> o) { unittest.expect(o, unittest.hasLength(2)); checkList(o["x"]); checkList(o["y"]); } -buildUnnamed3523() { +buildUnnamed1699() { var o = new core.List<api.TextElement>(); o.add(buildTextElement()); o.add(buildTextElement()); return o; } -checkUnnamed3523(core.List<api.TextElement> o) { +checkUnnamed1699(core.List<api.TextElement> o) { unittest.expect(o, unittest.hasLength(2)); checkTextElement(o[0]); checkTextElement(o[1]); @@ -2754,8 +2779,8 @@ var o = new api.TextContent(); buildCounterTextContent++; if (buildCounterTextContent < 3) { - o.lists = buildUnnamed3522(); - o.textElements = buildUnnamed3523(); + o.lists = buildUnnamed1698(); + o.textElements = buildUnnamed1699(); } buildCounterTextContent--; return o; @@ -2764,8 +2789,8 @@ checkTextContent(api.TextContent o) { buildCounterTextContent++; if (buildCounterTextContent < 3) { - checkUnnamed3522(o.lists); - checkUnnamed3523(o.textElements); + checkUnnamed1698(o.lists); + checkUnnamed1699(o.textElements); } buildCounterTextContent--; } @@ -2903,14 +2928,14 @@ buildCounterThumbnail--; } -buildUnnamed3524() { +buildUnnamed1700() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3524(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')); @@ -2921,7 +2946,7 @@ var o = new api.UngroupObjectsRequest(); buildCounterUngroupObjectsRequest++; if (buildCounterUngroupObjectsRequest < 3) { - o.objectIds = buildUnnamed3524(); + o.objectIds = buildUnnamed1700(); } buildCounterUngroupObjectsRequest--; return o; @@ -2930,7 +2955,7 @@ checkUngroupObjectsRequest(api.UngroupObjectsRequest o) { buildCounterUngroupObjectsRequest++; if (buildCounterUngroupObjectsRequest < 3) { - checkUnnamed3524(o.objectIds); + checkUnnamed1700(o.objectIds); } buildCounterUngroupObjectsRequest--; } @@ -3122,14 +3147,14 @@ buildCounterUpdateShapePropertiesRequest--; } -buildUnnamed3525() { +buildUnnamed1701() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3525(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')); @@ -3141,7 +3166,7 @@ buildCounterUpdateSlidesPositionRequest++; if (buildCounterUpdateSlidesPositionRequest < 3) { o.insertionIndex = 42; - o.slideObjectIds = buildUnnamed3525(); + o.slideObjectIds = buildUnnamed1701(); } buildCounterUpdateSlidesPositionRequest--; return o; @@ -3151,7 +3176,7 @@ buildCounterUpdateSlidesPositionRequest++; if (buildCounterUpdateSlidesPositionRequest < 3) { unittest.expect(o.insertionIndex, unittest.equals(42)); - checkUnnamed3525(o.slideObjectIds); + checkUnnamed1701(o.slideObjectIds); } buildCounterUpdateSlidesPositionRequest--; } @@ -3209,14 +3234,14 @@ buildCounterUpdateTableCellPropertiesRequest--; } -buildUnnamed3526() { +buildUnnamed1702() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3526(core.List<core.int> o) { +checkUnnamed1702(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)); @@ -3227,7 +3252,7 @@ var o = new api.UpdateTableColumnPropertiesRequest(); buildCounterUpdateTableColumnPropertiesRequest++; if (buildCounterUpdateTableColumnPropertiesRequest < 3) { - o.columnIndices = buildUnnamed3526(); + o.columnIndices = buildUnnamed1702(); o.fields = "foo"; o.objectId = "foo"; o.tableColumnProperties = buildTableColumnProperties(); @@ -3240,7 +3265,7 @@ api.UpdateTableColumnPropertiesRequest o) { buildCounterUpdateTableColumnPropertiesRequest++; if (buildCounterUpdateTableColumnPropertiesRequest < 3) { - checkUnnamed3526(o.columnIndices); + checkUnnamed1702(o.columnIndices); unittest.expect(o.fields, unittest.equals('foo')); unittest.expect(o.objectId, unittest.equals('foo')); checkTableColumnProperties(o.tableColumnProperties); @@ -3248,14 +3273,14 @@ buildCounterUpdateTableColumnPropertiesRequest--; } -buildUnnamed3527() { +buildUnnamed1703() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3527(core.List<core.int> o) { +checkUnnamed1703(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)); @@ -3268,7 +3293,7 @@ if (buildCounterUpdateTableRowPropertiesRequest < 3) { o.fields = "foo"; o.objectId = "foo"; - o.rowIndices = buildUnnamed3527(); + o.rowIndices = buildUnnamed1703(); o.tableRowProperties = buildTableRowProperties(); } buildCounterUpdateTableRowPropertiesRequest--; @@ -3280,7 +3305,7 @@ if (buildCounterUpdateTableRowPropertiesRequest < 3) { unittest.expect(o.fields, unittest.equals('foo')); unittest.expect(o.objectId, unittest.equals('foo')); - checkUnnamed3527(o.rowIndices); + checkUnnamed1703(o.rowIndices); checkTableRowProperties(o.tableRowProperties); } buildCounterUpdateTableRowPropertiesRequest--; @@ -3366,7 +3391,11 @@ var o = new api.VideoProperties(); buildCounterVideoProperties++; if (buildCounterVideoProperties < 3) { + o.autoPlay = true; + o.end = 42; + o.mute = true; o.outline = buildOutline(); + o.start = 42; } buildCounterVideoProperties--; return o; @@ -3375,7 +3404,11 @@ checkVideoProperties(api.VideoProperties o) { buildCounterVideoProperties++; if (buildCounterVideoProperties < 3) { + unittest.expect(o.autoPlay, unittest.isTrue); + unittest.expect(o.end, unittest.equals(42)); + unittest.expect(o.mute, unittest.isTrue); checkOutline(o.outline); + unittest.expect(o.start, unittest.equals(42)); } buildCounterVideoProperties--; } @@ -4026,6 +4059,14 @@ }); }); + unittest.group("obj-schema-ReplaceImageRequest", () { + unittest.test("to-json--from-json", () { + var o = buildReplaceImageRequest(); + var od = new api.ReplaceImageRequest.fromJson(o.toJson()); + checkReplaceImageRequest(od); + }); + }); + unittest.group("obj-schema-Request", () { unittest.test("to-json--from-json", () { var o = buildRequest();
diff --git a/generated/googleapis/test/sourcerepo/v1_test.dart b/generated/googleapis/test/sourcerepo/v1_test.dart index 158bce2..b95ce37 100644 --- a/generated/googleapis/test/sourcerepo/v1_test.dart +++ b/generated/googleapis/test/sourcerepo/v1_test.dart
@@ -50,39 +50,25 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1575() { +buildUnnamed227() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed1575(core.List<api.AuditLogConfig> o) { +checkUnnamed227(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); } -buildUnnamed1576() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - core.int buildCounterAuditConfig = 0; buildAuditConfig() { var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed1575(); - o.exemptedMembers = buildUnnamed1576(); + o.auditLogConfigs = buildUnnamed227(); o.service = "foo"; } buildCounterAuditConfig--; @@ -92,21 +78,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed1575(o.auditLogConfigs); - checkUnnamed1576(o.exemptedMembers); + checkUnnamed227(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed1577() { +buildUnnamed228() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1577(core.List<core.String> o) { +checkUnnamed228(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -117,7 +102,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed1577(); + o.exemptedMembers = buildUnnamed228(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -127,20 +112,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed1577(o.exemptedMembers); + checkUnnamed228(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed1578() { +buildUnnamed229() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1578(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')); @@ -151,8 +136,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.condition = buildExpr(); - o.members = buildUnnamed1578(); + o.members = buildUnnamed229(); o.role = "foo"; } buildCounterBinding--; @@ -162,8 +146,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkExpr(o.condition); - checkUnnamed1578(o.members); + checkUnnamed229(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -184,39 +167,14 @@ buildCounterEmpty--; } -core.int buildCounterExpr = 0; -buildExpr() { - var o = new api.Expr(); - buildCounterExpr++; - if (buildCounterExpr < 3) { - o.description = "foo"; - o.expression = "foo"; - o.location = "foo"; - o.title = "foo"; - } - buildCounterExpr--; - return o; -} - -checkExpr(api.Expr o) { - buildCounterExpr++; - if (buildCounterExpr < 3) { - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.expression, unittest.equals('foo')); - unittest.expect(o.location, unittest.equals('foo')); - unittest.expect(o.title, unittest.equals('foo')); - } - buildCounterExpr--; -} - -buildUnnamed1579() { +buildUnnamed230() { var o = new core.List<api.Repo>(); o.add(buildRepo()); o.add(buildRepo()); return o; } -checkUnnamed1579(core.List<api.Repo> o) { +checkUnnamed230(core.List<api.Repo> o) { unittest.expect(o, unittest.hasLength(2)); checkRepo(o[0]); checkRepo(o[1]); @@ -228,7 +186,7 @@ buildCounterListReposResponse++; if (buildCounterListReposResponse < 3) { o.nextPageToken = "foo"; - o.repos = buildUnnamed1579(); + o.repos = buildUnnamed230(); } buildCounterListReposResponse--; return o; @@ -238,7 +196,7 @@ buildCounterListReposResponse++; if (buildCounterListReposResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1579(o.repos); + checkUnnamed230(o.repos); } buildCounterListReposResponse--; } @@ -266,27 +224,27 @@ buildCounterMirrorConfig--; } -buildUnnamed1580() { +buildUnnamed231() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed1580(core.List<api.AuditConfig> o) { +checkUnnamed231(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed1581() { +buildUnnamed232() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1581(core.List<api.Binding> o) { +checkUnnamed232(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -297,10 +255,9 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed1580(); - o.bindings = buildUnnamed1581(); + o.auditConfigs = buildUnnamed231(); + o.bindings = buildUnnamed232(); o.etag = "foo"; - o.iamOwned = true; o.version = 42; } buildCounterPolicy--; @@ -310,15 +267,86 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1580(o.auditConfigs); - checkUnnamed1581(o.bindings); + checkUnnamed231(o.auditConfigs); + checkUnnamed232(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.iamOwned, unittest.isTrue); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } +buildUnnamed233() { + var o = new core.Map<core.String, api.PubsubConfig>(); + o["x"] = buildPubsubConfig(); + o["y"] = buildPubsubConfig(); + return o; +} + +checkUnnamed233(core.Map<core.String, api.PubsubConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPubsubConfig(o["x"]); + checkPubsubConfig(o["y"]); +} + +core.int buildCounterProjectConfig = 0; +buildProjectConfig() { + var o = new api.ProjectConfig(); + buildCounterProjectConfig++; + if (buildCounterProjectConfig < 3) { + o.enablePrivateKeyCheck = true; + o.name = "foo"; + o.pubsubConfigs = buildUnnamed233(); + } + buildCounterProjectConfig--; + return o; +} + +checkProjectConfig(api.ProjectConfig o) { + buildCounterProjectConfig++; + if (buildCounterProjectConfig < 3) { + unittest.expect(o.enablePrivateKeyCheck, unittest.isTrue); + unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed233(o.pubsubConfigs); + } + buildCounterProjectConfig--; +} + +core.int buildCounterPubsubConfig = 0; +buildPubsubConfig() { + var o = new api.PubsubConfig(); + buildCounterPubsubConfig++; + if (buildCounterPubsubConfig < 3) { + o.messageFormat = "foo"; + o.serviceAccountEmail = "foo"; + o.topic = "foo"; + } + buildCounterPubsubConfig--; + return o; +} + +checkPubsubConfig(api.PubsubConfig o) { + buildCounterPubsubConfig++; + if (buildCounterPubsubConfig < 3) { + unittest.expect(o.messageFormat, unittest.equals('foo')); + unittest.expect(o.serviceAccountEmail, unittest.equals('foo')); + unittest.expect(o.topic, unittest.equals('foo')); + } + buildCounterPubsubConfig--; +} + +buildUnnamed234() { + var o = new core.Map<core.String, api.PubsubConfig>(); + o["x"] = buildPubsubConfig(); + o["y"] = buildPubsubConfig(); + return o; +} + +checkUnnamed234(core.Map<core.String, api.PubsubConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPubsubConfig(o["x"]); + checkPubsubConfig(o["y"]); +} + core.int buildCounterRepo = 0; buildRepo() { var o = new api.Repo(); @@ -326,6 +354,7 @@ if (buildCounterRepo < 3) { o.mirrorConfig = buildMirrorConfig(); o.name = "foo"; + o.pubsubConfigs = buildUnnamed234(); o.size = "foo"; o.url = "foo"; } @@ -338,6 +367,7 @@ if (buildCounterRepo < 3) { checkMirrorConfig(o.mirrorConfig); unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed234(o.pubsubConfigs); unittest.expect(o.size, unittest.equals('foo')); unittest.expect(o.url, unittest.equals('foo')); } @@ -365,14 +395,14 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed1582() { +buildUnnamed235() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1582(core.List<core.String> o) { +checkUnnamed235(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -383,7 +413,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1582(); + o.permissions = buildUnnamed235(); } buildCounterTestIamPermissionsRequest--; return o; @@ -392,19 +422,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1582(o.permissions); + checkUnnamed235(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1583() { +buildUnnamed236() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1583(core.List<core.String> o) { +checkUnnamed236(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -415,7 +445,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1583(); + o.permissions = buildUnnamed236(); } buildCounterTestIamPermissionsResponse--; return o; @@ -424,11 +454,53 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1583(o.permissions); + checkUnnamed236(o.permissions); } buildCounterTestIamPermissionsResponse--; } +core.int buildCounterUpdateProjectConfigRequest = 0; +buildUpdateProjectConfigRequest() { + var o = new api.UpdateProjectConfigRequest(); + buildCounterUpdateProjectConfigRequest++; + if (buildCounterUpdateProjectConfigRequest < 3) { + o.projectConfig = buildProjectConfig(); + o.updateMask = "foo"; + } + buildCounterUpdateProjectConfigRequest--; + return o; +} + +checkUpdateProjectConfigRequest(api.UpdateProjectConfigRequest o) { + buildCounterUpdateProjectConfigRequest++; + if (buildCounterUpdateProjectConfigRequest < 3) { + checkProjectConfig(o.projectConfig); + unittest.expect(o.updateMask, unittest.equals('foo')); + } + buildCounterUpdateProjectConfigRequest--; +} + +core.int buildCounterUpdateRepoRequest = 0; +buildUpdateRepoRequest() { + var o = new api.UpdateRepoRequest(); + buildCounterUpdateRepoRequest++; + if (buildCounterUpdateRepoRequest < 3) { + o.repo = buildRepo(); + o.updateMask = "foo"; + } + buildCounterUpdateRepoRequest--; + return o; +} + +checkUpdateRepoRequest(api.UpdateRepoRequest o) { + buildCounterUpdateRepoRequest++; + if (buildCounterUpdateRepoRequest < 3) { + checkRepo(o.repo); + unittest.expect(o.updateMask, unittest.equals('foo')); + } + buildCounterUpdateRepoRequest--; +} + main() { unittest.group("obj-schema-AuditConfig", () { unittest.test("to-json--from-json", () { @@ -462,14 +534,6 @@ }); }); - unittest.group("obj-schema-Expr", () { - unittest.test("to-json--from-json", () { - var o = buildExpr(); - var od = new api.Expr.fromJson(o.toJson()); - checkExpr(od); - }); - }); - unittest.group("obj-schema-ListReposResponse", () { unittest.test("to-json--from-json", () { var o = buildListReposResponse(); @@ -494,6 +558,22 @@ }); }); + unittest.group("obj-schema-ProjectConfig", () { + unittest.test("to-json--from-json", () { + var o = buildProjectConfig(); + var od = new api.ProjectConfig.fromJson(o.toJson()); + checkProjectConfig(od); + }); + }); + + unittest.group("obj-schema-PubsubConfig", () { + unittest.test("to-json--from-json", () { + var o = buildPubsubConfig(); + var od = new api.PubsubConfig.fromJson(o.toJson()); + checkPubsubConfig(od); + }); + }); + unittest.group("obj-schema-Repo", () { unittest.test("to-json--from-json", () { var o = buildRepo(); @@ -526,6 +606,130 @@ }); }); + unittest.group("obj-schema-UpdateProjectConfigRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUpdateProjectConfigRequest(); + var od = new api.UpdateProjectConfigRequest.fromJson(o.toJson()); + checkUpdateProjectConfigRequest(od); + }); + }); + + unittest.group("obj-schema-UpdateRepoRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUpdateRepoRequest(); + var od = new api.UpdateRepoRequest.fromJson(o.toJson()); + checkUpdateRepoRequest(od); + }); + }); + + unittest.group("resource-ProjectsResourceApi", () { + unittest.test("method--getConfig", () { + var mock = new HttpServerMock(); + api.ProjectsResourceApi res = new api.SourcerepoApi(mock).projects; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildProjectConfig()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .getConfig(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkProjectConfig(response); + }))); + }); + + unittest.test("method--updateConfig", () { + var mock = new HttpServerMock(); + api.ProjectsResourceApi res = new api.SourcerepoApi(mock).projects; + var arg_request = buildUpdateProjectConfigRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.UpdateProjectConfigRequest.fromJson(json); + checkUpdateProjectConfigRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildProjectConfig()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .updateConfig(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkProjectConfig(response); + }))); + }); + }); + unittest.group("resource-ProjectsReposResourceApi", () { unittest.test("method--create", () { var mock = new HttpServerMock(); @@ -744,8 +948,8 @@ api.ProjectsReposResourceApi res = new api.SourcerepoApi(mock).projects.repos; var arg_name = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -778,10 +982,10 @@ 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -792,14 +996,70 @@ }), true); res .list(arg_name, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListReposResponse(response); }))); }); + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.ProjectsReposResourceApi res = + new api.SourcerepoApi(mock).projects.repos; + var arg_request = buildUpdateRepoRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.UpdateRepoRequest.fromJson(json); + checkUpdateRepoRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildRepo()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .patch(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkRepo(response); + }))); + }); + unittest.test("method--setIamPolicy", () { var mock = new HttpServerMock(); api.ProjectsReposResourceApi res =
diff --git a/generated/googleapis/test/spanner/v1_test.dart b/generated/googleapis/test/spanner/v1_test.dart index 2052ca8..4b8137b 100644 --- a/generated/googleapis/test/spanner/v1_test.dart +++ b/generated/googleapis/test/spanner/v1_test.dart
@@ -69,14 +69,14 @@ buildCounterBeginTransactionRequest--; } -buildUnnamed954() { +buildUnnamed1364() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed954(core.List<core.String> o) { +checkUnnamed1364(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -87,7 +87,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed954(); + o.members = buildUnnamed1364(); o.role = "foo"; } buildCounterBinding--; @@ -97,7 +97,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed954(o.members); + checkUnnamed1364(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -126,14 +126,14 @@ buildCounterChildLink--; } -buildUnnamed955() { +buildUnnamed1365() { var o = new core.List<api.Mutation>(); o.add(buildMutation()); o.add(buildMutation()); return o; } -checkUnnamed955(core.List<api.Mutation> o) { +checkUnnamed1365(core.List<api.Mutation> o) { unittest.expect(o, unittest.hasLength(2)); checkMutation(o[0]); checkMutation(o[1]); @@ -144,7 +144,7 @@ var o = new api.CommitRequest(); buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { - o.mutations = buildUnnamed955(); + o.mutations = buildUnnamed1365(); o.singleUseTransaction = buildTransactionOptions(); o.transactionId = "foo"; } @@ -155,7 +155,7 @@ checkCommitRequest(api.CommitRequest o) { buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { - checkUnnamed955(o.mutations); + checkUnnamed1365(o.mutations); checkTransactionOptions(o.singleUseTransaction); unittest.expect(o.transactionId, unittest.equals('foo')); } @@ -200,14 +200,14 @@ buildCounterCreateDatabaseMetadata--; } -buildUnnamed956() { +buildUnnamed1366() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed956(core.List<core.String> o) { +checkUnnamed1366(core.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 @@ buildCounterCreateDatabaseRequest++; if (buildCounterCreateDatabaseRequest < 3) { o.createStatement = "foo"; - o.extraStatements = buildUnnamed956(); + o.extraStatements = buildUnnamed1366(); } buildCounterCreateDatabaseRequest--; return o; @@ -229,7 +229,7 @@ buildCounterCreateDatabaseRequest++; if (buildCounterCreateDatabaseRequest < 3) { unittest.expect(o.createStatement, unittest.equals('foo')); - checkUnnamed956(o.extraStatements); + checkUnnamed1366(o.extraStatements); } buildCounterCreateDatabaseRequest--; } @@ -356,20 +356,20 @@ buildCounterEmpty--; } -buildUnnamed957() { +buildUnnamed1367() { var o = new core.Map<core.String, api.Type>(); o["x"] = buildType(); o["y"] = buildType(); return o; } -checkUnnamed957(core.Map<core.String, api.Type> o) { +checkUnnamed1367(core.Map<core.String, api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o["x"]); checkType(o["y"]); } -buildUnnamed958() { +buildUnnamed1368() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -384,7 +384,7 @@ return o; } -checkUnnamed958(core.Map<core.String, core.Object> o) { +checkUnnamed1368(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)); @@ -403,8 +403,8 @@ var o = new api.ExecuteSqlRequest(); buildCounterExecuteSqlRequest++; if (buildCounterExecuteSqlRequest < 3) { - o.paramTypes = buildUnnamed957(); - o.params = buildUnnamed958(); + o.paramTypes = buildUnnamed1367(); + o.params = buildUnnamed1368(); o.partitionToken = "foo"; o.queryMode = "foo"; o.resumeToken = "foo"; @@ -418,8 +418,8 @@ checkExecuteSqlRequest(api.ExecuteSqlRequest o) { buildCounterExecuteSqlRequest++; if (buildCounterExecuteSqlRequest < 3) { - checkUnnamed957(o.paramTypes); - checkUnnamed958(o.params); + checkUnnamed1367(o.paramTypes); + checkUnnamed1368(o.params); unittest.expect(o.partitionToken, unittest.equals('foo')); unittest.expect(o.queryMode, unittest.equals('foo')); unittest.expect(o.resumeToken, unittest.equals('foo')); @@ -450,14 +450,14 @@ buildCounterField--; } -buildUnnamed959() { +buildUnnamed1369() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed959(core.List<core.String> o) { +checkUnnamed1369(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -468,7 +468,7 @@ var o = new api.GetDatabaseDdlResponse(); buildCounterGetDatabaseDdlResponse++; if (buildCounterGetDatabaseDdlResponse < 3) { - o.statements = buildUnnamed959(); + o.statements = buildUnnamed1369(); } buildCounterGetDatabaseDdlResponse--; return o; @@ -477,7 +477,7 @@ checkGetDatabaseDdlResponse(api.GetDatabaseDdlResponse o) { buildCounterGetDatabaseDdlResponse++; if (buildCounterGetDatabaseDdlResponse < 3) { - checkUnnamed959(o.statements); + checkUnnamed1369(o.statements); } buildCounterGetDatabaseDdlResponse--; } @@ -497,14 +497,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed960() { +buildUnnamed1370() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed960(core.Map<core.String, core.String> o) { +checkUnnamed1370(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')); @@ -517,7 +517,7 @@ if (buildCounterInstance < 3) { o.config = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed960(); + o.labels = buildUnnamed1370(); o.name = "foo"; o.nodeCount = 42; o.state = "foo"; @@ -531,7 +531,7 @@ if (buildCounterInstance < 3) { unittest.expect(o.config, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed960(o.labels); + checkUnnamed1370(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nodeCount, unittest.equals(42)); unittest.expect(o.state, unittest.equals('foo')); @@ -560,7 +560,7 @@ buildCounterInstanceConfig--; } -buildUnnamed961() { +buildUnnamed1371() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -575,7 +575,7 @@ return o; } -checkUnnamed961(core.List<core.Object> o) { +checkUnnamed1371(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -589,7 +589,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed962() { +buildUnnamed1372() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -604,7 +604,7 @@ return o; } -checkUnnamed962(core.List<core.Object> o) { +checkUnnamed1372(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -618,7 +618,7 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed963() { +buildUnnamed1373() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -633,7 +633,7 @@ return o; } -checkUnnamed963(core.List<core.Object> o) { +checkUnnamed1373(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); @@ -647,7 +647,7 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed964() { +buildUnnamed1374() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -662,7 +662,7 @@ return o; } -checkUnnamed964(core.List<core.Object> o) { +checkUnnamed1374(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted9 = (o[0]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); @@ -681,10 +681,10 @@ var o = new api.KeyRange(); buildCounterKeyRange++; if (buildCounterKeyRange < 3) { - o.endClosed = buildUnnamed961(); - o.endOpen = buildUnnamed962(); - o.startClosed = buildUnnamed963(); - o.startOpen = buildUnnamed964(); + o.endClosed = buildUnnamed1371(); + o.endOpen = buildUnnamed1372(); + o.startClosed = buildUnnamed1373(); + o.startOpen = buildUnnamed1374(); } buildCounterKeyRange--; return o; @@ -693,15 +693,15 @@ checkKeyRange(api.KeyRange o) { buildCounterKeyRange++; if (buildCounterKeyRange < 3) { - checkUnnamed961(o.endClosed); - checkUnnamed962(o.endOpen); - checkUnnamed963(o.startClosed); - checkUnnamed964(o.startOpen); + checkUnnamed1371(o.endClosed); + checkUnnamed1372(o.endOpen); + checkUnnamed1373(o.startClosed); + checkUnnamed1374(o.startOpen); } buildCounterKeyRange--; } -buildUnnamed965() { +buildUnnamed1375() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -716,7 +716,7 @@ return o; } -checkUnnamed965(core.List<core.Object> o) { +checkUnnamed1375(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted11 = (o[0]) as core.Map; unittest.expect(casted11, unittest.hasLength(3)); @@ -730,27 +730,27 @@ unittest.expect(casted12["string"], unittest.equals('foo')); } -buildUnnamed966() { +buildUnnamed1376() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed965()); - o.add(buildUnnamed965()); + o.add(buildUnnamed1375()); + o.add(buildUnnamed1375()); return o; } -checkUnnamed966(core.List<core.List<core.Object>> o) { +checkUnnamed1376(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed965(o[0]); - checkUnnamed965(o[1]); + checkUnnamed1375(o[0]); + checkUnnamed1375(o[1]); } -buildUnnamed967() { +buildUnnamed1377() { var o = new core.List<api.KeyRange>(); o.add(buildKeyRange()); o.add(buildKeyRange()); return o; } -checkUnnamed967(core.List<api.KeyRange> o) { +checkUnnamed1377(core.List<api.KeyRange> o) { unittest.expect(o, unittest.hasLength(2)); checkKeyRange(o[0]); checkKeyRange(o[1]); @@ -762,8 +762,8 @@ buildCounterKeySet++; if (buildCounterKeySet < 3) { o.all = true; - o.keys = buildUnnamed966(); - o.ranges = buildUnnamed967(); + o.keys = buildUnnamed1376(); + o.ranges = buildUnnamed1377(); } buildCounterKeySet--; return o; @@ -773,20 +773,20 @@ buildCounterKeySet++; if (buildCounterKeySet < 3) { unittest.expect(o.all, unittest.isTrue); - checkUnnamed966(o.keys); - checkUnnamed967(o.ranges); + checkUnnamed1376(o.keys); + checkUnnamed1377(o.ranges); } buildCounterKeySet--; } -buildUnnamed968() { +buildUnnamed1378() { var o = new core.List<api.Database>(); o.add(buildDatabase()); o.add(buildDatabase()); return o; } -checkUnnamed968(core.List<api.Database> o) { +checkUnnamed1378(core.List<api.Database> o) { unittest.expect(o, unittest.hasLength(2)); checkDatabase(o[0]); checkDatabase(o[1]); @@ -797,7 +797,7 @@ var o = new api.ListDatabasesResponse(); buildCounterListDatabasesResponse++; if (buildCounterListDatabasesResponse < 3) { - o.databases = buildUnnamed968(); + o.databases = buildUnnamed1378(); o.nextPageToken = "foo"; } buildCounterListDatabasesResponse--; @@ -807,20 +807,20 @@ checkListDatabasesResponse(api.ListDatabasesResponse o) { buildCounterListDatabasesResponse++; if (buildCounterListDatabasesResponse < 3) { - checkUnnamed968(o.databases); + checkUnnamed1378(o.databases); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDatabasesResponse--; } -buildUnnamed969() { +buildUnnamed1379() { var o = new core.List<api.InstanceConfig>(); o.add(buildInstanceConfig()); o.add(buildInstanceConfig()); return o; } -checkUnnamed969(core.List<api.InstanceConfig> o) { +checkUnnamed1379(core.List<api.InstanceConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceConfig(o[0]); checkInstanceConfig(o[1]); @@ -831,7 +831,7 @@ var o = new api.ListInstanceConfigsResponse(); buildCounterListInstanceConfigsResponse++; if (buildCounterListInstanceConfigsResponse < 3) { - o.instanceConfigs = buildUnnamed969(); + o.instanceConfigs = buildUnnamed1379(); o.nextPageToken = "foo"; } buildCounterListInstanceConfigsResponse--; @@ -841,20 +841,20 @@ checkListInstanceConfigsResponse(api.ListInstanceConfigsResponse o) { buildCounterListInstanceConfigsResponse++; if (buildCounterListInstanceConfigsResponse < 3) { - checkUnnamed969(o.instanceConfigs); + checkUnnamed1379(o.instanceConfigs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstanceConfigsResponse--; } -buildUnnamed970() { +buildUnnamed1380() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed970(core.List<api.Instance> o) { +checkUnnamed1380(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -865,7 +865,7 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed970(); + o.instances = buildUnnamed1380(); o.nextPageToken = "foo"; } buildCounterListInstancesResponse--; @@ -875,20 +875,20 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed970(o.instances); + checkUnnamed1380(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstancesResponse--; } -buildUnnamed971() { +buildUnnamed1381() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed971(core.List<api.Operation> o) { +checkUnnamed1381(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -900,7 +900,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed971(); + o.operations = buildUnnamed1381(); } buildCounterListOperationsResponse--; return o; @@ -910,19 +910,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed971(o.operations); + checkUnnamed1381(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed972() { +buildUnnamed1382() { var o = new core.List<api.Session>(); o.add(buildSession()); o.add(buildSession()); return o; } -checkUnnamed972(core.List<api.Session> o) { +checkUnnamed1382(core.List<api.Session> o) { unittest.expect(o, unittest.hasLength(2)); checkSession(o[0]); checkSession(o[1]); @@ -934,7 +934,7 @@ buildCounterListSessionsResponse++; if (buildCounterListSessionsResponse < 3) { o.nextPageToken = "foo"; - o.sessions = buildUnnamed972(); + o.sessions = buildUnnamed1382(); } buildCounterListSessionsResponse--; return o; @@ -944,7 +944,7 @@ buildCounterListSessionsResponse++; if (buildCounterListSessionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed972(o.sessions); + checkUnnamed1382(o.sessions); } buildCounterListSessionsResponse--; } @@ -976,7 +976,7 @@ buildCounterMutation--; } -buildUnnamed973() { +buildUnnamed1383() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -991,7 +991,7 @@ return o; } -checkUnnamed973(core.Map<core.String, core.Object> o) { +checkUnnamed1383(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)); @@ -1005,7 +1005,7 @@ unittest.expect(casted14["string"], unittest.equals('foo')); } -buildUnnamed974() { +buildUnnamed1384() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1020,7 +1020,7 @@ return o; } -checkUnnamed974(core.Map<core.String, core.Object> o) { +checkUnnamed1384(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted15 = (o["x"]) as core.Map; unittest.expect(casted15, unittest.hasLength(3)); @@ -1041,9 +1041,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed973(); + o.metadata = buildUnnamed1383(); o.name = "foo"; - o.response = buildUnnamed974(); + o.response = buildUnnamed1384(); } buildCounterOperation--; return o; @@ -1054,14 +1054,14 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed973(o.metadata); + checkUnnamed1383(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed974(o.response); + checkUnnamed1384(o.response); } buildCounterOperation--; } -buildUnnamed975() { +buildUnnamed1385() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -1076,7 +1076,7 @@ return o; } -checkUnnamed975(core.List<core.Object> o) { +checkUnnamed1385(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted17 = (o[0]) as core.Map; unittest.expect(casted17, unittest.hasLength(3)); @@ -1099,7 +1099,7 @@ o.metadata = buildResultSetMetadata(); o.resumeToken = "foo"; o.stats = buildResultSetStats(); - o.values = buildUnnamed975(); + o.values = buildUnnamed1385(); } buildCounterPartialResultSet--; return o; @@ -1112,7 +1112,7 @@ checkResultSetMetadata(o.metadata); unittest.expect(o.resumeToken, unittest.equals('foo')); checkResultSetStats(o.stats); - checkUnnamed975(o.values); + checkUnnamed1385(o.values); } buildCounterPartialResultSet--; } @@ -1157,20 +1157,20 @@ buildCounterPartitionOptions--; } -buildUnnamed976() { +buildUnnamed1386() { var o = new core.Map<core.String, api.Type>(); o["x"] = buildType(); o["y"] = buildType(); return o; } -checkUnnamed976(core.Map<core.String, api.Type> o) { +checkUnnamed1386(core.Map<core.String, api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o["x"]); checkType(o["y"]); } -buildUnnamed977() { +buildUnnamed1387() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1185,7 +1185,7 @@ return o; } -checkUnnamed977(core.Map<core.String, core.Object> o) { +checkUnnamed1387(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)); @@ -1204,8 +1204,8 @@ var o = new api.PartitionQueryRequest(); buildCounterPartitionQueryRequest++; if (buildCounterPartitionQueryRequest < 3) { - o.paramTypes = buildUnnamed976(); - o.params = buildUnnamed977(); + o.paramTypes = buildUnnamed1386(); + o.params = buildUnnamed1387(); o.partitionOptions = buildPartitionOptions(); o.sql = "foo"; o.transaction = buildTransactionSelector(); @@ -1217,8 +1217,8 @@ checkPartitionQueryRequest(api.PartitionQueryRequest o) { buildCounterPartitionQueryRequest++; if (buildCounterPartitionQueryRequest < 3) { - checkUnnamed976(o.paramTypes); - checkUnnamed977(o.params); + checkUnnamed1386(o.paramTypes); + checkUnnamed1387(o.params); checkPartitionOptions(o.partitionOptions); unittest.expect(o.sql, unittest.equals('foo')); checkTransactionSelector(o.transaction); @@ -1226,14 +1226,14 @@ buildCounterPartitionQueryRequest--; } -buildUnnamed978() { +buildUnnamed1388() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed978(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')); @@ -1244,7 +1244,7 @@ var o = new api.PartitionReadRequest(); buildCounterPartitionReadRequest++; if (buildCounterPartitionReadRequest < 3) { - o.columns = buildUnnamed978(); + o.columns = buildUnnamed1388(); o.index = "foo"; o.keySet = buildKeySet(); o.partitionOptions = buildPartitionOptions(); @@ -1258,7 +1258,7 @@ checkPartitionReadRequest(api.PartitionReadRequest o) { buildCounterPartitionReadRequest++; if (buildCounterPartitionReadRequest < 3) { - checkUnnamed978(o.columns); + checkUnnamed1388(o.columns); unittest.expect(o.index, unittest.equals('foo')); checkKeySet(o.keySet); checkPartitionOptions(o.partitionOptions); @@ -1268,14 +1268,14 @@ buildCounterPartitionReadRequest--; } -buildUnnamed979() { +buildUnnamed1389() { var o = new core.List<api.Partition>(); o.add(buildPartition()); o.add(buildPartition()); return o; } -checkUnnamed979(core.List<api.Partition> o) { +checkUnnamed1389(core.List<api.Partition> o) { unittest.expect(o, unittest.hasLength(2)); checkPartition(o[0]); checkPartition(o[1]); @@ -1286,7 +1286,7 @@ var o = new api.PartitionResponse(); buildCounterPartitionResponse++; if (buildCounterPartitionResponse < 3) { - o.partitions = buildUnnamed979(); + o.partitions = buildUnnamed1389(); o.transaction = buildTransaction(); } buildCounterPartitionResponse--; @@ -1296,26 +1296,26 @@ checkPartitionResponse(api.PartitionResponse o) { buildCounterPartitionResponse++; if (buildCounterPartitionResponse < 3) { - checkUnnamed979(o.partitions); + checkUnnamed1389(o.partitions); checkTransaction(o.transaction); } buildCounterPartitionResponse--; } -buildUnnamed980() { +buildUnnamed1390() { var o = new core.List<api.ChildLink>(); o.add(buildChildLink()); o.add(buildChildLink()); return o; } -checkUnnamed980(core.List<api.ChildLink> o) { +checkUnnamed1390(core.List<api.ChildLink> o) { unittest.expect(o, unittest.hasLength(2)); checkChildLink(o[0]); checkChildLink(o[1]); } -buildUnnamed981() { +buildUnnamed1391() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1330,7 +1330,7 @@ return o; } -checkUnnamed981(core.Map<core.String, core.Object> o) { +checkUnnamed1391(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)); @@ -1344,7 +1344,7 @@ unittest.expect(casted22["string"], unittest.equals('foo')); } -buildUnnamed982() { +buildUnnamed1392() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1359,7 +1359,7 @@ return o; } -checkUnnamed982(core.Map<core.String, core.Object> o) { +checkUnnamed1392(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)); @@ -1378,12 +1378,12 @@ var o = new api.PlanNode(); buildCounterPlanNode++; if (buildCounterPlanNode < 3) { - o.childLinks = buildUnnamed980(); + o.childLinks = buildUnnamed1390(); o.displayName = "foo"; - o.executionStats = buildUnnamed981(); + o.executionStats = buildUnnamed1391(); o.index = 42; o.kind = "foo"; - o.metadata = buildUnnamed982(); + o.metadata = buildUnnamed1392(); o.shortRepresentation = buildShortRepresentation(); } buildCounterPlanNode--; @@ -1393,25 +1393,25 @@ checkPlanNode(api.PlanNode o) { buildCounterPlanNode++; if (buildCounterPlanNode < 3) { - checkUnnamed980(o.childLinks); + checkUnnamed1390(o.childLinks); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed981(o.executionStats); + checkUnnamed1391(o.executionStats); unittest.expect(o.index, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed982(o.metadata); + checkUnnamed1392(o.metadata); checkShortRepresentation(o.shortRepresentation); } buildCounterPlanNode--; } -buildUnnamed983() { +buildUnnamed1393() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed983(core.List<api.Binding> o) { +checkUnnamed1393(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -1422,7 +1422,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed983(); + o.bindings = buildUnnamed1393(); o.etag = "foo"; o.version = 42; } @@ -1433,21 +1433,21 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed983(o.bindings); + checkUnnamed1393(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed984() { +buildUnnamed1394() { var o = new core.List<api.PlanNode>(); o.add(buildPlanNode()); o.add(buildPlanNode()); return o; } -checkUnnamed984(core.List<api.PlanNode> o) { +checkUnnamed1394(core.List<api.PlanNode> o) { unittest.expect(o, unittest.hasLength(2)); checkPlanNode(o[0]); checkPlanNode(o[1]); @@ -1458,7 +1458,7 @@ var o = new api.QueryPlan(); buildCounterQueryPlan++; if (buildCounterQueryPlan < 3) { - o.planNodes = buildUnnamed984(); + o.planNodes = buildUnnamed1394(); } buildCounterQueryPlan--; return o; @@ -1467,7 +1467,7 @@ checkQueryPlan(api.QueryPlan o) { buildCounterQueryPlan++; if (buildCounterQueryPlan < 3) { - checkUnnamed984(o.planNodes); + checkUnnamed1394(o.planNodes); } buildCounterQueryPlan--; } @@ -1501,14 +1501,14 @@ buildCounterReadOnly--; } -buildUnnamed985() { +buildUnnamed1395() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed985(core.List<core.String> 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')); @@ -1519,7 +1519,7 @@ var o = new api.ReadRequest(); buildCounterReadRequest++; if (buildCounterReadRequest < 3) { - o.columns = buildUnnamed985(); + o.columns = buildUnnamed1395(); o.index = "foo"; o.keySet = buildKeySet(); o.limit = "foo"; @@ -1535,7 +1535,7 @@ checkReadRequest(api.ReadRequest o) { buildCounterReadRequest++; if (buildCounterReadRequest < 3) { - checkUnnamed985(o.columns); + checkUnnamed1395(o.columns); unittest.expect(o.index, unittest.equals('foo')); checkKeySet(o.keySet); unittest.expect(o.limit, unittest.equals('foo')); @@ -1562,7 +1562,7 @@ buildCounterReadWrite--; } -buildUnnamed986() { +buildUnnamed1396() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -1577,7 +1577,7 @@ return o; } -checkUnnamed986(core.List<core.Object> o) { +checkUnnamed1396(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted25 = (o[0]) as core.Map; unittest.expect(casted25, unittest.hasLength(3)); @@ -1591,17 +1591,17 @@ unittest.expect(casted26["string"], unittest.equals('foo')); } -buildUnnamed987() { +buildUnnamed1397() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed986()); - o.add(buildUnnamed986()); + o.add(buildUnnamed1396()); + o.add(buildUnnamed1396()); return o; } -checkUnnamed987(core.List<core.List<core.Object>> o) { +checkUnnamed1397(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed986(o[0]); - checkUnnamed986(o[1]); + checkUnnamed1396(o[0]); + checkUnnamed1396(o[1]); } core.int buildCounterResultSet = 0; @@ -1610,7 +1610,7 @@ buildCounterResultSet++; if (buildCounterResultSet < 3) { o.metadata = buildResultSetMetadata(); - o.rows = buildUnnamed987(); + o.rows = buildUnnamed1397(); o.stats = buildResultSetStats(); } buildCounterResultSet--; @@ -1621,7 +1621,7 @@ buildCounterResultSet++; if (buildCounterResultSet < 3) { checkResultSetMetadata(o.metadata); - checkUnnamed987(o.rows); + checkUnnamed1397(o.rows); checkResultSetStats(o.stats); } buildCounterResultSet--; @@ -1648,7 +1648,7 @@ buildCounterResultSetMetadata--; } -buildUnnamed988() { +buildUnnamed1398() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1663,7 +1663,7 @@ return o; } -checkUnnamed988(core.Map<core.String, core.Object> o) { +checkUnnamed1398(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)); @@ -1683,7 +1683,7 @@ buildCounterResultSetStats++; if (buildCounterResultSetStats < 3) { o.queryPlan = buildQueryPlan(); - o.queryStats = buildUnnamed988(); + o.queryStats = buildUnnamed1398(); } buildCounterResultSetStats--; return o; @@ -1693,7 +1693,7 @@ buildCounterResultSetStats++; if (buildCounterResultSetStats < 3) { checkQueryPlan(o.queryPlan); - checkUnnamed988(o.queryStats); + checkUnnamed1398(o.queryStats); } buildCounterResultSetStats--; } @@ -1717,14 +1717,14 @@ buildCounterRollbackRequest--; } -buildUnnamed989() { +buildUnnamed1399() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed989(core.Map<core.String, core.String> o) { +checkUnnamed1399(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')); @@ -1737,7 +1737,7 @@ if (buildCounterSession < 3) { o.approximateLastUseTime = "foo"; o.createTime = "foo"; - o.labels = buildUnnamed989(); + o.labels = buildUnnamed1399(); o.name = "foo"; } buildCounterSession--; @@ -1749,7 +1749,7 @@ if (buildCounterSession < 3) { unittest.expect(o.approximateLastUseTime, unittest.equals('foo')); unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed989(o.labels); + checkUnnamed1399(o.labels); unittest.expect(o.name, unittest.equals('foo')); } buildCounterSession--; @@ -1774,14 +1774,14 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed990() { +buildUnnamed1400() { var o = new core.Map<core.String, core.int>(); o["x"] = 42; o["y"] = 42; return o; } -checkUnnamed990(core.Map<core.String, core.int> o) { +checkUnnamed1400(core.Map<core.String, core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42)); unittest.expect(o["y"], unittest.equals(42)); @@ -1793,7 +1793,7 @@ buildCounterShortRepresentation++; if (buildCounterShortRepresentation < 3) { o.description = "foo"; - o.subqueries = buildUnnamed990(); + o.subqueries = buildUnnamed1400(); } buildCounterShortRepresentation--; return o; @@ -1803,12 +1803,12 @@ buildCounterShortRepresentation++; if (buildCounterShortRepresentation < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed990(o.subqueries); + checkUnnamed1400(o.subqueries); } buildCounterShortRepresentation--; } -buildUnnamed991() { +buildUnnamed1401() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1823,7 +1823,7 @@ return o; } -checkUnnamed991(core.Map<core.String, core.Object> o) { +checkUnnamed1401(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)); @@ -1837,17 +1837,17 @@ unittest.expect(casted30["string"], unittest.equals('foo')); } -buildUnnamed992() { +buildUnnamed1402() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed991()); - o.add(buildUnnamed991()); + o.add(buildUnnamed1401()); + o.add(buildUnnamed1401()); return o; } -checkUnnamed992(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1402(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed991(o[0]); - checkUnnamed991(o[1]); + checkUnnamed1401(o[0]); + checkUnnamed1401(o[1]); } core.int buildCounterStatus = 0; @@ -1856,7 +1856,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed992(); + o.details = buildUnnamed1402(); o.message = "foo"; } buildCounterStatus--; @@ -1867,20 +1867,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed992(o.details); + checkUnnamed1402(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed993() { +buildUnnamed1403() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed993(core.List<api.Field> o) { +checkUnnamed1403(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); @@ -1891,7 +1891,7 @@ var o = new api.StructType(); buildCounterStructType++; if (buildCounterStructType < 3) { - o.fields = buildUnnamed993(); + o.fields = buildUnnamed1403(); } buildCounterStructType--; return o; @@ -1900,19 +1900,19 @@ checkStructType(api.StructType o) { buildCounterStructType++; if (buildCounterStructType < 3) { - checkUnnamed993(o.fields); + checkUnnamed1403(o.fields); } buildCounterStructType--; } -buildUnnamed994() { +buildUnnamed1404() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed994(core.List<core.String> o) { +checkUnnamed1404(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1923,7 +1923,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed994(); + o.permissions = buildUnnamed1404(); } buildCounterTestIamPermissionsRequest--; return o; @@ -1932,19 +1932,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed994(o.permissions); + checkUnnamed1404(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed995() { +buildUnnamed1405() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed995(core.List<core.String> o) { +checkUnnamed1405(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1955,7 +1955,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed995(); + o.permissions = buildUnnamed1405(); } buildCounterTestIamPermissionsResponse--; return o; @@ -1964,7 +1964,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed995(o.permissions); + checkUnnamed1405(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -2057,27 +2057,27 @@ buildCounterType--; } -buildUnnamed996() { +buildUnnamed1406() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed996(core.List<core.String> o) { +checkUnnamed1406(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed997() { +buildUnnamed1407() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed997(core.List<core.String> o) { +checkUnnamed1407(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2088,9 +2088,9 @@ var o = new api.UpdateDatabaseDdlMetadata(); buildCounterUpdateDatabaseDdlMetadata++; if (buildCounterUpdateDatabaseDdlMetadata < 3) { - o.commitTimestamps = buildUnnamed996(); + o.commitTimestamps = buildUnnamed1406(); o.database = "foo"; - o.statements = buildUnnamed997(); + o.statements = buildUnnamed1407(); } buildCounterUpdateDatabaseDdlMetadata--; return o; @@ -2099,21 +2099,21 @@ checkUpdateDatabaseDdlMetadata(api.UpdateDatabaseDdlMetadata o) { buildCounterUpdateDatabaseDdlMetadata++; if (buildCounterUpdateDatabaseDdlMetadata < 3) { - checkUnnamed996(o.commitTimestamps); + checkUnnamed1406(o.commitTimestamps); unittest.expect(o.database, unittest.equals('foo')); - checkUnnamed997(o.statements); + checkUnnamed1407(o.statements); } buildCounterUpdateDatabaseDdlMetadata--; } -buildUnnamed998() { +buildUnnamed1408() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed998(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')); @@ -2125,7 +2125,7 @@ buildCounterUpdateDatabaseDdlRequest++; if (buildCounterUpdateDatabaseDdlRequest < 3) { o.operationId = "foo"; - o.statements = buildUnnamed998(); + o.statements = buildUnnamed1408(); } buildCounterUpdateDatabaseDdlRequest--; return o; @@ -2135,7 +2135,7 @@ buildCounterUpdateDatabaseDdlRequest++; if (buildCounterUpdateDatabaseDdlRequest < 3) { unittest.expect(o.operationId, unittest.equals('foo')); - checkUnnamed998(o.statements); + checkUnnamed1408(o.statements); } buildCounterUpdateDatabaseDdlRequest--; } @@ -2186,20 +2186,20 @@ buildCounterUpdateInstanceRequest--; } -buildUnnamed999() { +buildUnnamed1409() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed999(core.List<core.String> o) { +checkUnnamed1409(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1000() { +buildUnnamed1410() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -2214,7 +2214,7 @@ return o; } -checkUnnamed1000(core.List<core.Object> o) { +checkUnnamed1410(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted31 = (o[0]) as core.Map; unittest.expect(casted31, unittest.hasLength(3)); @@ -2228,17 +2228,17 @@ unittest.expect(casted32["string"], unittest.equals('foo')); } -buildUnnamed1001() { +buildUnnamed1411() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed1000()); - o.add(buildUnnamed1000()); + o.add(buildUnnamed1410()); + o.add(buildUnnamed1410()); return o; } -checkUnnamed1001(core.List<core.List<core.Object>> o) { +checkUnnamed1411(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1000(o[0]); - checkUnnamed1000(o[1]); + checkUnnamed1410(o[0]); + checkUnnamed1410(o[1]); } core.int buildCounterWrite = 0; @@ -2246,9 +2246,9 @@ var o = new api.Write(); buildCounterWrite++; if (buildCounterWrite < 3) { - o.columns = buildUnnamed999(); + o.columns = buildUnnamed1409(); o.table = "foo"; - o.values = buildUnnamed1001(); + o.values = buildUnnamed1411(); } buildCounterWrite--; return o; @@ -2257,9 +2257,9 @@ checkWrite(api.Write o) { buildCounterWrite++; if (buildCounterWrite < 3) { - checkUnnamed999(o.columns); + checkUnnamed1409(o.columns); unittest.expect(o.table, unittest.equals('foo')); - checkUnnamed1001(o.values); + checkUnnamed1411(o.values); } buildCounterWrite--; } @@ -3082,9 +3082,9 @@ api.ProjectsInstancesResourceApi res = new api.SpannerApi(mock).projects.instances; var arg_parent = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3117,11 +3117,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3132,9 +3132,9 @@ }), true); res .list(arg_parent, - filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListInstancesResponse(response); @@ -3584,8 +3584,8 @@ api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).projects.instances.databases; var arg_parent = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3618,10 +3618,10 @@ 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(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3632,8 +3632,8 @@ }), true); res .list(arg_parent, - pageSize: arg_pageSize, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDatabasesResponse(response); @@ -4422,9 +4422,9 @@ api.ProjectsInstancesDatabasesSessionsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.sessions; var arg_database = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4457,11 +4457,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4472,9 +4472,9 @@ }), true); res .list(arg_database, + filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, - filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListSessionsResponse(response); @@ -4924,9 +4924,9 @@ api.ProjectsInstancesOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.operations; var arg_name = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4959,11 +4959,11 @@ 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)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4974,9 +4974,9 @@ }), true); res .list(arg_name, - pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response);
diff --git a/generated/googleapis/test/speech/v1_test.dart b/generated/googleapis/test/speech/v1_test.dart index fa89870..45f86b3 100644 --- a/generated/googleapis/test/speech/v1_test.dart +++ b/generated/googleapis/test/speech/v1_test.dart
@@ -71,7 +71,7 @@ buildCounterLongRunningRecognizeRequest--; } -buildUnnamed2580() { +buildUnnamed2231() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -86,7 +86,7 @@ return o; } -checkUnnamed2580(core.Map<core.String, core.Object> o) { +checkUnnamed2231(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)); @@ -100,7 +100,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2581() { +buildUnnamed2232() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -115,7 +115,7 @@ return o; } -checkUnnamed2581(core.Map<core.String, core.Object> o) { +checkUnnamed2232(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)); @@ -136,9 +136,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2580(); + o.metadata = buildUnnamed2231(); o.name = "foo"; - o.response = buildUnnamed2581(); + o.response = buildUnnamed2232(); } buildCounterOperation--; return o; @@ -149,9 +149,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2580(o.metadata); + checkUnnamed2231(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2581(o.response); + checkUnnamed2232(o.response); } buildCounterOperation--; } @@ -177,14 +177,14 @@ buildCounterRecognitionAudio--; } -buildUnnamed2582() { +buildUnnamed2233() { var o = new core.List<api.SpeechContext>(); o.add(buildSpeechContext()); o.add(buildSpeechContext()); return o; } -checkUnnamed2582(core.List<api.SpeechContext> o) { +checkUnnamed2233(core.List<api.SpeechContext> o) { unittest.expect(o, unittest.hasLength(2)); checkSpeechContext(o[0]); checkSpeechContext(o[1]); @@ -195,14 +195,13 @@ var o = new api.RecognitionConfig(); buildCounterRecognitionConfig++; if (buildCounterRecognitionConfig < 3) { - o.enableWordConfidence = true; o.enableWordTimeOffsets = true; o.encoding = "foo"; o.languageCode = "foo"; o.maxAlternatives = 42; o.profanityFilter = true; o.sampleRateHertz = 42; - o.speechContexts = buildUnnamed2582(); + o.speechContexts = buildUnnamed2233(); } buildCounterRecognitionConfig--; return o; @@ -211,14 +210,13 @@ checkRecognitionConfig(api.RecognitionConfig o) { buildCounterRecognitionConfig++; if (buildCounterRecognitionConfig < 3) { - unittest.expect(o.enableWordConfidence, unittest.isTrue); unittest.expect(o.enableWordTimeOffsets, unittest.isTrue); unittest.expect(o.encoding, unittest.equals('foo')); unittest.expect(o.languageCode, unittest.equals('foo')); unittest.expect(o.maxAlternatives, unittest.equals(42)); unittest.expect(o.profanityFilter, unittest.isTrue); unittest.expect(o.sampleRateHertz, unittest.equals(42)); - checkUnnamed2582(o.speechContexts); + checkUnnamed2233(o.speechContexts); } buildCounterRecognitionConfig--; } @@ -244,14 +242,14 @@ buildCounterRecognizeRequest--; } -buildUnnamed2583() { +buildUnnamed2234() { var o = new core.List<api.SpeechRecognitionResult>(); o.add(buildSpeechRecognitionResult()); o.add(buildSpeechRecognitionResult()); return o; } -checkUnnamed2583(core.List<api.SpeechRecognitionResult> o) { +checkUnnamed2234(core.List<api.SpeechRecognitionResult> o) { unittest.expect(o, unittest.hasLength(2)); checkSpeechRecognitionResult(o[0]); checkSpeechRecognitionResult(o[1]); @@ -262,7 +260,7 @@ var o = new api.RecognizeResponse(); buildCounterRecognizeResponse++; if (buildCounterRecognizeResponse < 3) { - o.results = buildUnnamed2583(); + o.results = buildUnnamed2234(); } buildCounterRecognizeResponse--; return o; @@ -271,19 +269,19 @@ checkRecognizeResponse(api.RecognizeResponse o) { buildCounterRecognizeResponse++; if (buildCounterRecognizeResponse < 3) { - checkUnnamed2583(o.results); + checkUnnamed2234(o.results); } buildCounterRecognizeResponse--; } -buildUnnamed2584() { +buildUnnamed2235() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2584(core.List<core.String> o) { +checkUnnamed2235(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -294,7 +292,7 @@ var o = new api.SpeechContext(); buildCounterSpeechContext++; if (buildCounterSpeechContext < 3) { - o.phrases = buildUnnamed2584(); + o.phrases = buildUnnamed2235(); } buildCounterSpeechContext--; return o; @@ -303,19 +301,19 @@ checkSpeechContext(api.SpeechContext o) { buildCounterSpeechContext++; if (buildCounterSpeechContext < 3) { - checkUnnamed2584(o.phrases); + checkUnnamed2235(o.phrases); } buildCounterSpeechContext--; } -buildUnnamed2585() { +buildUnnamed2236() { var o = new core.List<api.WordInfo>(); o.add(buildWordInfo()); o.add(buildWordInfo()); return o; } -checkUnnamed2585(core.List<api.WordInfo> o) { +checkUnnamed2236(core.List<api.WordInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkWordInfo(o[0]); checkWordInfo(o[1]); @@ -328,7 +326,7 @@ if (buildCounterSpeechRecognitionAlternative < 3) { o.confidence = 42.0; o.transcript = "foo"; - o.words = buildUnnamed2585(); + o.words = buildUnnamed2236(); } buildCounterSpeechRecognitionAlternative--; return o; @@ -339,19 +337,19 @@ if (buildCounterSpeechRecognitionAlternative < 3) { unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.transcript, unittest.equals('foo')); - checkUnnamed2585(o.words); + checkUnnamed2236(o.words); } buildCounterSpeechRecognitionAlternative--; } -buildUnnamed2586() { +buildUnnamed2237() { var o = new core.List<api.SpeechRecognitionAlternative>(); o.add(buildSpeechRecognitionAlternative()); o.add(buildSpeechRecognitionAlternative()); return o; } -checkUnnamed2586(core.List<api.SpeechRecognitionAlternative> o) { +checkUnnamed2237(core.List<api.SpeechRecognitionAlternative> o) { unittest.expect(o, unittest.hasLength(2)); checkSpeechRecognitionAlternative(o[0]); checkSpeechRecognitionAlternative(o[1]); @@ -362,7 +360,7 @@ var o = new api.SpeechRecognitionResult(); buildCounterSpeechRecognitionResult++; if (buildCounterSpeechRecognitionResult < 3) { - o.alternatives = buildUnnamed2586(); + o.alternatives = buildUnnamed2237(); } buildCounterSpeechRecognitionResult--; return o; @@ -371,12 +369,12 @@ checkSpeechRecognitionResult(api.SpeechRecognitionResult o) { buildCounterSpeechRecognitionResult++; if (buildCounterSpeechRecognitionResult < 3) { - checkUnnamed2586(o.alternatives); + checkUnnamed2237(o.alternatives); } buildCounterSpeechRecognitionResult--; } -buildUnnamed2587() { +buildUnnamed2238() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -391,7 +389,7 @@ return o; } -checkUnnamed2587(core.Map<core.String, core.Object> o) { +checkUnnamed2238(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)); @@ -405,17 +403,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed2588() { +buildUnnamed2239() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2587()); - o.add(buildUnnamed2587()); + o.add(buildUnnamed2238()); + o.add(buildUnnamed2238()); return o; } -checkUnnamed2588(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2239(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2587(o[0]); - checkUnnamed2587(o[1]); + checkUnnamed2238(o[0]); + checkUnnamed2238(o[1]); } core.int buildCounterStatus = 0; @@ -424,7 +422,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2588(); + o.details = buildUnnamed2239(); o.message = "foo"; } buildCounterStatus--; @@ -435,7 +433,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2588(o.details); + checkUnnamed2239(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -447,6 +445,7 @@ buildCounterWordInfo++; if (buildCounterWordInfo < 3) { o.endTime = "foo"; + o.speakerTag = 42; o.startTime = "foo"; o.word = "foo"; } @@ -458,6 +457,7 @@ buildCounterWordInfo++; if (buildCounterWordInfo < 3) { unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.speakerTag, unittest.equals(42)); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.word, unittest.equals('foo')); }
diff --git a/generated/googleapis/test/storage/v1_test.dart b/generated/googleapis/test/storage/v1_test.dart index 26bfe90..43c7109 100644 --- a/generated/googleapis/test/storage/v1_test.dart +++ b/generated/googleapis/test/storage/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2740() { +buildUnnamed3694() { var o = new core.List<api.BucketAccessControl>(); o.add(buildBucketAccessControl()); o.add(buildBucketAccessControl()); return o; } -checkUnnamed2740(core.List<api.BucketAccessControl> o) { +checkUnnamed3694(core.List<api.BucketAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketAccessControl(o[0]); checkBucketAccessControl(o[1]); @@ -82,40 +82,40 @@ buildCounterBucketBilling--; } -buildUnnamed2741() { +buildUnnamed3695() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2741(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')); } -buildUnnamed2742() { +buildUnnamed3696() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2742(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')); } -buildUnnamed2743() { +buildUnnamed3697() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2743(core.List<core.String> o) { +checkUnnamed3697(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -127,9 +127,9 @@ buildCounterBucketCors++; if (buildCounterBucketCors < 3) { o.maxAgeSeconds = 42; - o.method = buildUnnamed2741(); - o.origin = buildUnnamed2742(); - o.responseHeader = buildUnnamed2743(); + o.method = buildUnnamed3695(); + o.origin = buildUnnamed3696(); + o.responseHeader = buildUnnamed3697(); } buildCounterBucketCors--; return o; @@ -139,34 +139,34 @@ buildCounterBucketCors++; if (buildCounterBucketCors < 3) { unittest.expect(o.maxAgeSeconds, unittest.equals(42)); - checkUnnamed2741(o.method); - checkUnnamed2742(o.origin); - checkUnnamed2743(o.responseHeader); + checkUnnamed3695(o.method); + checkUnnamed3696(o.origin); + checkUnnamed3697(o.responseHeader); } buildCounterBucketCors--; } -buildUnnamed2744() { +buildUnnamed3698() { var o = new core.List<api.BucketCors>(); o.add(buildBucketCors()); o.add(buildBucketCors()); return o; } -checkUnnamed2744(core.List<api.BucketCors> o) { +checkUnnamed3698(core.List<api.BucketCors> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketCors(o[0]); checkBucketCors(o[1]); } -buildUnnamed2745() { +buildUnnamed3699() { var o = new core.List<api.ObjectAccessControl>(); o.add(buildObjectAccessControl()); o.add(buildObjectAccessControl()); return o; } -checkUnnamed2745(core.List<api.ObjectAccessControl> o) { +checkUnnamed3699(core.List<api.ObjectAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkObjectAccessControl(o[0]); checkObjectAccessControl(o[1]); @@ -191,14 +191,14 @@ buildCounterBucketEncryption--; } -buildUnnamed2746() { +buildUnnamed3700() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2746(core.Map<core.String, core.String> o) { +checkUnnamed3700(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')); @@ -225,14 +225,14 @@ buildCounterBucketLifecycleRuleAction--; } -buildUnnamed2747() { +buildUnnamed3701() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2747(core.List<core.String> o) { +checkUnnamed3701(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -246,7 +246,7 @@ o.age = 42; o.createdBefore = core.DateTime.parse("2002-02-27T14:01:02Z"); o.isLive = true; - o.matchesStorageClass = buildUnnamed2747(); + o.matchesStorageClass = buildUnnamed3701(); o.numNewerVersions = 42; } buildCounterBucketLifecycleRuleCondition--; @@ -260,7 +260,7 @@ unittest.expect(o.createdBefore, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.isLive, unittest.isTrue); - checkUnnamed2747(o.matchesStorageClass); + checkUnnamed3701(o.matchesStorageClass); unittest.expect(o.numNewerVersions, unittest.equals(42)); } buildCounterBucketLifecycleRuleCondition--; @@ -287,14 +287,14 @@ buildCounterBucketLifecycleRule--; } -buildUnnamed2748() { +buildUnnamed3702() { var o = new core.List<api.BucketLifecycleRule>(); o.add(buildBucketLifecycleRule()); o.add(buildBucketLifecycleRule()); return o; } -checkUnnamed2748(core.List<api.BucketLifecycleRule> o) { +checkUnnamed3702(core.List<api.BucketLifecycleRule> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketLifecycleRule(o[0]); checkBucketLifecycleRule(o[1]); @@ -305,7 +305,7 @@ var o = new api.BucketLifecycle(); buildCounterBucketLifecycle++; if (buildCounterBucketLifecycle < 3) { - o.rule = buildUnnamed2748(); + o.rule = buildUnnamed3702(); } buildCounterBucketLifecycle--; return o; @@ -314,7 +314,7 @@ checkBucketLifecycle(api.BucketLifecycle o) { buildCounterBucketLifecycle++; if (buildCounterBucketLifecycle < 3) { - checkUnnamed2748(o.rule); + checkUnnamed3702(o.rule); } buildCounterBucketLifecycle--; } @@ -430,16 +430,16 @@ var o = new api.Bucket(); buildCounterBucket++; if (buildCounterBucket < 3) { - o.acl = buildUnnamed2740(); + o.acl = buildUnnamed3694(); o.billing = buildBucketBilling(); - o.cors = buildUnnamed2744(); + o.cors = buildUnnamed3698(); o.defaultEventBasedHold = true; - o.defaultObjectAcl = buildUnnamed2745(); + o.defaultObjectAcl = buildUnnamed3699(); o.encryption = buildBucketEncryption(); o.etag = "foo"; o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed2746(); + o.labels = buildUnnamed3700(); o.lifecycle = buildBucketLifecycle(); o.location = "foo"; o.logging = buildBucketLogging(); @@ -462,16 +462,16 @@ checkBucket(api.Bucket o) { buildCounterBucket++; if (buildCounterBucket < 3) { - checkUnnamed2740(o.acl); + checkUnnamed3694(o.acl); checkBucketBilling(o.billing); - checkUnnamed2744(o.cors); + checkUnnamed3698(o.cors); unittest.expect(o.defaultEventBasedHold, unittest.isTrue); - checkUnnamed2745(o.defaultObjectAcl); + checkUnnamed3699(o.defaultObjectAcl); checkBucketEncryption(o.encryption); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2746(o.labels); + checkUnnamed3700(o.labels); checkBucketLifecycle(o.lifecycle); unittest.expect(o.location, unittest.equals('foo')); checkBucketLogging(o.logging); @@ -552,14 +552,14 @@ buildCounterBucketAccessControl--; } -buildUnnamed2749() { +buildUnnamed3703() { var o = new core.List<api.BucketAccessControl>(); o.add(buildBucketAccessControl()); o.add(buildBucketAccessControl()); return o; } -checkUnnamed2749(core.List<api.BucketAccessControl> o) { +checkUnnamed3703(core.List<api.BucketAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketAccessControl(o[0]); checkBucketAccessControl(o[1]); @@ -570,7 +570,7 @@ var o = new api.BucketAccessControls(); buildCounterBucketAccessControls++; if (buildCounterBucketAccessControls < 3) { - o.items = buildUnnamed2749(); + o.items = buildUnnamed3703(); o.kind = "foo"; } buildCounterBucketAccessControls--; @@ -580,20 +580,20 @@ checkBucketAccessControls(api.BucketAccessControls o) { buildCounterBucketAccessControls++; if (buildCounterBucketAccessControls < 3) { - checkUnnamed2749(o.items); + checkUnnamed3703(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBucketAccessControls--; } -buildUnnamed2750() { +buildUnnamed3704() { var o = new core.List<api.Bucket>(); o.add(buildBucket()); o.add(buildBucket()); return o; } -checkUnnamed2750(core.List<api.Bucket> o) { +checkUnnamed3704(core.List<api.Bucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBucket(o[0]); checkBucket(o[1]); @@ -604,7 +604,7 @@ var o = new api.Buckets(); buildCounterBuckets++; if (buildCounterBuckets < 3) { - o.items = buildUnnamed2750(); + o.items = buildUnnamed3704(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -615,21 +615,21 @@ checkBuckets(api.Buckets o) { buildCounterBuckets++; if (buildCounterBuckets < 3) { - checkUnnamed2750(o.items); + checkUnnamed3704(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterBuckets--; } -buildUnnamed2751() { +buildUnnamed3705() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2751(core.Map<core.String, core.String> o) { +checkUnnamed3705(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')); @@ -644,7 +644,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed2751(); + o.params = buildUnnamed3705(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -662,7 +662,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2751(o.params); + checkUnnamed3705(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -716,14 +716,14 @@ buildCounterComposeRequestSourceObjects--; } -buildUnnamed2752() { +buildUnnamed3706() { var o = new core.List<api.ComposeRequestSourceObjects>(); o.add(buildComposeRequestSourceObjects()); o.add(buildComposeRequestSourceObjects()); return o; } -checkUnnamed2752(core.List<api.ComposeRequestSourceObjects> o) { +checkUnnamed3706(core.List<api.ComposeRequestSourceObjects> o) { unittest.expect(o, unittest.hasLength(2)); checkComposeRequestSourceObjects(o[0]); checkComposeRequestSourceObjects(o[1]); @@ -736,7 +736,7 @@ if (buildCounterComposeRequest < 3) { o.destination = buildObject(); o.kind = "foo"; - o.sourceObjects = buildUnnamed2752(); + o.sourceObjects = buildUnnamed3706(); } buildCounterComposeRequest--; return o; @@ -747,32 +747,32 @@ if (buildCounterComposeRequest < 3) { checkObject(o.destination); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2752(o.sourceObjects); + checkUnnamed3706(o.sourceObjects); } buildCounterComposeRequest--; } -buildUnnamed2753() { +buildUnnamed3707() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2753(core.Map<core.String, core.String> o) { +checkUnnamed3707(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')); } -buildUnnamed2754() { +buildUnnamed3708() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2754(core.List<core.String> o) { +checkUnnamed3708(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -783,9 +783,9 @@ var o = new api.Notification(); buildCounterNotification++; if (buildCounterNotification < 3) { - o.customAttributes = buildUnnamed2753(); + o.customAttributes = buildUnnamed3707(); o.etag = "foo"; - o.eventTypes = buildUnnamed2754(); + o.eventTypes = buildUnnamed3708(); o.id = "foo"; o.kind = "foo"; o.objectNamePrefix = "foo"; @@ -800,9 +800,9 @@ checkNotification(api.Notification o) { buildCounterNotification++; if (buildCounterNotification < 3) { - checkUnnamed2753(o.customAttributes); + checkUnnamed3707(o.customAttributes); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2754(o.eventTypes); + checkUnnamed3708(o.eventTypes); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.objectNamePrefix, unittest.equals('foo')); @@ -813,14 +813,14 @@ buildCounterNotification--; } -buildUnnamed2755() { +buildUnnamed3709() { var o = new core.List<api.Notification>(); o.add(buildNotification()); o.add(buildNotification()); return o; } -checkUnnamed2755(core.List<api.Notification> o) { +checkUnnamed3709(core.List<api.Notification> o) { unittest.expect(o, unittest.hasLength(2)); checkNotification(o[0]); checkNotification(o[1]); @@ -831,7 +831,7 @@ var o = new api.Notifications(); buildCounterNotifications++; if (buildCounterNotifications < 3) { - o.items = buildUnnamed2755(); + o.items = buildUnnamed3709(); o.kind = "foo"; } buildCounterNotifications--; @@ -841,20 +841,20 @@ checkNotifications(api.Notifications o) { buildCounterNotifications++; if (buildCounterNotifications < 3) { - checkUnnamed2755(o.items); + checkUnnamed3709(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterNotifications--; } -buildUnnamed2756() { +buildUnnamed3710() { var o = new core.List<api.ObjectAccessControl>(); o.add(buildObjectAccessControl()); o.add(buildObjectAccessControl()); return o; } -checkUnnamed2756(core.List<api.ObjectAccessControl> o) { +checkUnnamed3710(core.List<api.ObjectAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkObjectAccessControl(o[0]); checkObjectAccessControl(o[1]); @@ -881,14 +881,14 @@ buildCounterObjectCustomerEncryption--; } -buildUnnamed2757() { +buildUnnamed3711() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2757(core.Map<core.String, core.String> o) { +checkUnnamed3711(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')); @@ -920,7 +920,7 @@ var o = new api.Object(); buildCounterObject++; if (buildCounterObject < 3) { - o.acl = buildUnnamed2756(); + o.acl = buildUnnamed3710(); o.bucket = "foo"; o.cacheControl = "foo"; o.componentCount = 42; @@ -938,7 +938,7 @@ o.kmsKeyName = "foo"; o.md5Hash = "foo"; o.mediaLink = "foo"; - o.metadata = buildUnnamed2757(); + o.metadata = buildUnnamed3711(); o.metageneration = "foo"; o.name = "foo"; o.owner = buildObjectOwner(); @@ -959,7 +959,7 @@ checkObject(api.Object o) { buildCounterObject++; if (buildCounterObject < 3) { - checkUnnamed2756(o.acl); + checkUnnamed3710(o.acl); unittest.expect(o.bucket, unittest.equals('foo')); unittest.expect(o.cacheControl, unittest.equals('foo')); unittest.expect(o.componentCount, unittest.equals(42)); @@ -977,7 +977,7 @@ unittest.expect(o.kmsKeyName, unittest.equals('foo')); unittest.expect(o.md5Hash, unittest.equals('foo')); unittest.expect(o.mediaLink, unittest.equals('foo')); - checkUnnamed2757(o.metadata); + checkUnnamed3711(o.metadata); unittest.expect(o.metageneration, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkObjectOwner(o.owner); @@ -1063,14 +1063,14 @@ buildCounterObjectAccessControl--; } -buildUnnamed2758() { +buildUnnamed3712() { var o = new core.List<api.ObjectAccessControl>(); o.add(buildObjectAccessControl()); o.add(buildObjectAccessControl()); return o; } -checkUnnamed2758(core.List<api.ObjectAccessControl> o) { +checkUnnamed3712(core.List<api.ObjectAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkObjectAccessControl(o[0]); checkObjectAccessControl(o[1]); @@ -1081,7 +1081,7 @@ var o = new api.ObjectAccessControls(); buildCounterObjectAccessControls++; if (buildCounterObjectAccessControls < 3) { - o.items = buildUnnamed2758(); + o.items = buildUnnamed3712(); o.kind = "foo"; } buildCounterObjectAccessControls--; @@ -1091,33 +1091,33 @@ checkObjectAccessControls(api.ObjectAccessControls o) { buildCounterObjectAccessControls++; if (buildCounterObjectAccessControls < 3) { - checkUnnamed2758(o.items); + checkUnnamed3712(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterObjectAccessControls--; } -buildUnnamed2759() { +buildUnnamed3713() { var o = new core.List<api.Object>(); o.add(buildObject()); o.add(buildObject()); return o; } -checkUnnamed2759(core.List<api.Object> o) { +checkUnnamed3713(core.List<api.Object> o) { unittest.expect(o, unittest.hasLength(2)); checkObject(o[0]); checkObject(o[1]); } -buildUnnamed2760() { +buildUnnamed3714() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2760(core.List<core.String> o) { +checkUnnamed3714(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1128,10 +1128,10 @@ var o = new api.Objects(); buildCounterObjects++; if (buildCounterObjects < 3) { - o.items = buildUnnamed2759(); + o.items = buildUnnamed3713(); o.kind = "foo"; o.nextPageToken = "foo"; - o.prefixes = buildUnnamed2760(); + o.prefixes = buildUnnamed3714(); } buildCounterObjects--; return o; @@ -1140,22 +1140,22 @@ checkObjects(api.Objects o) { buildCounterObjects++; if (buildCounterObjects < 3) { - checkUnnamed2759(o.items); + checkUnnamed3713(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2760(o.prefixes); + checkUnnamed3714(o.prefixes); } buildCounterObjects--; } -buildUnnamed2761() { +buildUnnamed3715() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2761(core.List<core.String> o) { +checkUnnamed3715(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1171,7 +1171,7 @@ 'bool': true, 'string': 'foo' }; - o.members = buildUnnamed2761(); + o.members = buildUnnamed3715(); o.role = "foo"; } buildCounterPolicyBindings--; @@ -1186,20 +1186,20 @@ unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); - checkUnnamed2761(o.members); + checkUnnamed3715(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterPolicyBindings--; } -buildUnnamed2762() { +buildUnnamed3716() { var o = new core.List<api.PolicyBindings>(); o.add(buildPolicyBindings()); o.add(buildPolicyBindings()); return o; } -checkUnnamed2762(core.List<api.PolicyBindings> o) { +checkUnnamed3716(core.List<api.PolicyBindings> o) { unittest.expect(o, unittest.hasLength(2)); checkPolicyBindings(o[0]); checkPolicyBindings(o[1]); @@ -1210,7 +1210,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed2762(); + o.bindings = buildUnnamed3716(); o.etag = "foo"; o.kind = "foo"; o.resourceId = "foo"; @@ -1222,7 +1222,7 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed2762(o.bindings); + checkUnnamed3716(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.resourceId, unittest.equals('foo')); @@ -1280,14 +1280,14 @@ buildCounterServiceAccount--; } -buildUnnamed2763() { +buildUnnamed3717() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2763(core.List<core.String> o) { +checkUnnamed3717(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1299,7 +1299,7 @@ buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { o.kind = "foo"; - o.permissions = buildUnnamed2763(); + o.permissions = buildUnnamed3717(); } buildCounterTestIamPermissionsResponse--; return o; @@ -1309,32 +1309,32 @@ buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2763(o.permissions); + checkUnnamed3717(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed2764() { +buildUnnamed3718() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2764(core.List<core.String> o) { +checkUnnamed3718(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2765() { +buildUnnamed3719() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2765(core.List<core.String> o) { +checkUnnamed3719(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2638,7 +2638,7 @@ var mock = new HttpServerMock(); api.BucketsResourceApi res = new api.StorageApi(mock).buckets; var arg_bucket = "foo"; - var arg_permissions = buildUnnamed2764(); + var arg_permissions = buildUnnamed3718(); var arg_userProject = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -4700,6 +4700,7 @@ api.ObjectsResourceApi res = new api.StorageApi(mock).objects; var arg_bucket = "foo"; var arg_delimiter = "foo"; + var arg_includeTrailingDelimiter = true; var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_prefix = "foo"; @@ -4751,6 +4752,8 @@ } unittest.expect( queryMap["delimiter"].first, unittest.equals(arg_delimiter)); + unittest.expect(queryMap["includeTrailingDelimiter"].first, + unittest.equals("$arg_includeTrailingDelimiter")); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( @@ -4773,6 +4776,7 @@ res .list(arg_bucket, delimiter: arg_delimiter, + includeTrailingDelimiter: arg_includeTrailingDelimiter, maxResults: arg_maxResults, pageToken: arg_pageToken, prefix: arg_prefix, @@ -5131,7 +5135,7 @@ api.ObjectsResourceApi res = new api.StorageApi(mock).objects; var arg_bucket = "foo"; var arg_object = "foo"; - var arg_permissions = buildUnnamed2765(); + var arg_permissions = buildUnnamed3719(); var arg_generation = "foo"; var arg_userProject = "foo"; var arg_$fields = "foo"; @@ -5319,6 +5323,7 @@ var arg_request = buildChannel(); var arg_bucket = "foo"; var arg_delimiter = "foo"; + var arg_includeTrailingDelimiter = true; var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_prefix = "foo"; @@ -5373,6 +5378,8 @@ } unittest.expect( queryMap["delimiter"].first, unittest.equals(arg_delimiter)); + unittest.expect(queryMap["includeTrailingDelimiter"].first, + unittest.equals("$arg_includeTrailingDelimiter")); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( @@ -5395,6 +5402,7 @@ res .watchAll(arg_request, arg_bucket, delimiter: arg_delimiter, + includeTrailingDelimiter: arg_includeTrailingDelimiter, maxResults: arg_maxResults, pageToken: arg_pageToken, prefix: arg_prefix,
diff --git a/generated/googleapis/test/storagetransfer/v1_test.dart b/generated/googleapis/test/storagetransfer/v1_test.dart index 980c2ee..1c46aef 100644 --- a/generated/googleapis/test/storagetransfer/v1_test.dart +++ b/generated/googleapis/test/storagetransfer/v1_test.dart
@@ -130,14 +130,14 @@ buildCounterEmpty--; } -buildUnnamed1119() { +buildUnnamed3265() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1119(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')); @@ -148,7 +148,7 @@ var o = new api.ErrorLogEntry(); buildCounterErrorLogEntry++; if (buildCounterErrorLogEntry < 3) { - o.errorDetails = buildUnnamed1119(); + o.errorDetails = buildUnnamed3265(); o.url = "foo"; } buildCounterErrorLogEntry--; @@ -158,20 +158,20 @@ checkErrorLogEntry(api.ErrorLogEntry o) { buildCounterErrorLogEntry++; if (buildCounterErrorLogEntry < 3) { - checkUnnamed1119(o.errorDetails); + checkUnnamed3265(o.errorDetails); unittest.expect(o.url, unittest.equals('foo')); } buildCounterErrorLogEntry--; } -buildUnnamed1120() { +buildUnnamed3266() { var o = new core.List<api.ErrorLogEntry>(); o.add(buildErrorLogEntry()); o.add(buildErrorLogEntry()); return o; } -checkUnnamed1120(core.List<api.ErrorLogEntry> o) { +checkUnnamed3266(core.List<api.ErrorLogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorLogEntry(o[0]); checkErrorLogEntry(o[1]); @@ -184,7 +184,7 @@ if (buildCounterErrorSummary < 3) { o.errorCode = "foo"; o.errorCount = "foo"; - o.errorLogEntries = buildUnnamed1120(); + o.errorLogEntries = buildUnnamed3266(); } buildCounterErrorSummary--; return o; @@ -195,7 +195,7 @@ if (buildCounterErrorSummary < 3) { unittest.expect(o.errorCode, unittest.equals('foo')); unittest.expect(o.errorCount, unittest.equals('foo')); - checkUnnamed1120(o.errorLogEntries); + checkUnnamed3266(o.errorLogEntries); } buildCounterErrorSummary--; } @@ -257,14 +257,14 @@ buildCounterHttpData--; } -buildUnnamed1121() { +buildUnnamed3267() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1121(core.List<api.Operation> o) { +checkUnnamed3267(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -276,7 +276,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1121(); + o.operations = buildUnnamed3267(); } buildCounterListOperationsResponse--; return o; @@ -286,19 +286,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1121(o.operations); + checkUnnamed3267(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1122() { +buildUnnamed3268() { var o = new core.List<api.TransferJob>(); o.add(buildTransferJob()); o.add(buildTransferJob()); return o; } -checkUnnamed1122(core.List<api.TransferJob> o) { +checkUnnamed3268(core.List<api.TransferJob> o) { unittest.expect(o, unittest.hasLength(2)); checkTransferJob(o[0]); checkTransferJob(o[1]); @@ -310,7 +310,7 @@ buildCounterListTransferJobsResponse++; if (buildCounterListTransferJobsResponse < 3) { o.nextPageToken = "foo"; - o.transferJobs = buildUnnamed1122(); + o.transferJobs = buildUnnamed3268(); } buildCounterListTransferJobsResponse--; return o; @@ -320,32 +320,32 @@ buildCounterListTransferJobsResponse++; if (buildCounterListTransferJobsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1122(o.transferJobs); + checkUnnamed3268(o.transferJobs); } buildCounterListTransferJobsResponse--; } -buildUnnamed1123() { +buildUnnamed3269() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1123(core.List<core.String> 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')); } -buildUnnamed1124() { +buildUnnamed3270() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1124(core.List<core.String> 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')); @@ -356,8 +356,8 @@ var o = new api.ObjectConditions(); buildCounterObjectConditions++; if (buildCounterObjectConditions < 3) { - o.excludePrefixes = buildUnnamed1123(); - o.includePrefixes = buildUnnamed1124(); + o.excludePrefixes = buildUnnamed3269(); + o.includePrefixes = buildUnnamed3270(); o.maxTimeElapsedSinceLastModification = "foo"; o.minTimeElapsedSinceLastModification = "foo"; } @@ -368,8 +368,8 @@ checkObjectConditions(api.ObjectConditions o) { buildCounterObjectConditions++; if (buildCounterObjectConditions < 3) { - checkUnnamed1123(o.excludePrefixes); - checkUnnamed1124(o.includePrefixes); + checkUnnamed3269(o.excludePrefixes); + checkUnnamed3270(o.includePrefixes); unittest.expect( o.maxTimeElapsedSinceLastModification, unittest.equals('foo')); unittest.expect( @@ -378,7 +378,7 @@ buildCounterObjectConditions--; } -buildUnnamed1125() { +buildUnnamed3271() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -393,7 +393,7 @@ return o; } -checkUnnamed1125(core.Map<core.String, core.Object> o) { +checkUnnamed3271(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)); @@ -407,7 +407,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1126() { +buildUnnamed3272() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -422,7 +422,7 @@ return o; } -checkUnnamed1126(core.Map<core.String, core.Object> o) { +checkUnnamed3272(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)); @@ -443,9 +443,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1125(); + o.metadata = buildUnnamed3271(); o.name = "foo"; - o.response = buildUnnamed1126(); + o.response = buildUnnamed3272(); } buildCounterOperation--; return o; @@ -456,9 +456,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1125(o.metadata); + checkUnnamed3271(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1126(o.response); + checkUnnamed3272(o.response); } buildCounterOperation--; } @@ -516,7 +516,7 @@ buildCounterSchedule--; } -buildUnnamed1127() { +buildUnnamed3273() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -531,7 +531,7 @@ return o; } -checkUnnamed1127(core.Map<core.String, core.Object> o) { +checkUnnamed3273(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)); @@ -545,17 +545,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1128() { +buildUnnamed3274() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1127()); - o.add(buildUnnamed1127()); + o.add(buildUnnamed3273()); + o.add(buildUnnamed3273()); return o; } -checkUnnamed1128(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3274(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1127(o[0]); - checkUnnamed1127(o[1]); + checkUnnamed3273(o[0]); + checkUnnamed3273(o[1]); } core.int buildCounterStatus = 0; @@ -564,7 +564,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1128(); + o.details = buildUnnamed3274(); o.message = "foo"; } buildCounterStatus--; @@ -575,7 +575,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1128(o.details); + checkUnnamed3274(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -690,14 +690,14 @@ buildCounterTransferJob--; } -buildUnnamed1129() { +buildUnnamed3275() { var o = new core.List<api.ErrorSummary>(); o.add(buildErrorSummary()); o.add(buildErrorSummary()); return o; } -checkUnnamed1129(core.List<api.ErrorSummary> o) { +checkUnnamed3275(core.List<api.ErrorSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorSummary(o[0]); checkErrorSummary(o[1]); @@ -710,7 +710,7 @@ if (buildCounterTransferOperation < 3) { o.counters = buildTransferCounters(); o.endTime = "foo"; - o.errorBreakdowns = buildUnnamed1129(); + o.errorBreakdowns = buildUnnamed3275(); o.name = "foo"; o.projectId = "foo"; o.startTime = "foo"; @@ -727,7 +727,7 @@ if (buildCounterTransferOperation < 3) { checkTransferCounters(o.counters); unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed1129(o.errorBreakdowns); + checkUnnamed3275(o.errorBreakdowns); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.startTime, unittest.equals('foo')); @@ -1176,9 +1176,9 @@ var mock = new HttpServerMock(); api.TransferJobsResourceApi res = new api.StoragetransferApi(mock).transferJobs; + var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_filter = "foo"; - var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1210,11 +1210,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1225,9 +1225,9 @@ }), true); res .list( + pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter, - pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListTransferJobsResponse(response); @@ -1453,9 +1453,9 @@ api.TransferOperationsResourceApi res = new api.StoragetransferApi(mock).transferOperations; var arg_name = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1488,11 +1488,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1503,9 +1503,9 @@ }), true); res .list(arg_name, - filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response);
diff --git a/generated/googleapis/test/streetviewpublish/v1_test.dart b/generated/googleapis/test/streetviewpublish/v1_test.dart index 589701c..a821d50 100644 --- a/generated/googleapis/test/streetviewpublish/v1_test.dart +++ b/generated/googleapis/test/streetviewpublish/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2008() { +buildUnnamed1328() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2008(core.List<core.String> o) { +checkUnnamed1328(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -68,7 +68,7 @@ var o = new api.BatchDeletePhotosRequest(); buildCounterBatchDeletePhotosRequest++; if (buildCounterBatchDeletePhotosRequest < 3) { - o.photoIds = buildUnnamed2008(); + o.photoIds = buildUnnamed1328(); } buildCounterBatchDeletePhotosRequest--; return o; @@ -77,19 +77,19 @@ checkBatchDeletePhotosRequest(api.BatchDeletePhotosRequest o) { buildCounterBatchDeletePhotosRequest++; if (buildCounterBatchDeletePhotosRequest < 3) { - checkUnnamed2008(o.photoIds); + checkUnnamed1328(o.photoIds); } buildCounterBatchDeletePhotosRequest--; } -buildUnnamed2009() { +buildUnnamed1329() { var o = new core.List<api.Status>(); o.add(buildStatus()); o.add(buildStatus()); return o; } -checkUnnamed2009(core.List<api.Status> o) { +checkUnnamed1329(core.List<api.Status> o) { unittest.expect(o, unittest.hasLength(2)); checkStatus(o[0]); checkStatus(o[1]); @@ -100,7 +100,7 @@ var o = new api.BatchDeletePhotosResponse(); buildCounterBatchDeletePhotosResponse++; if (buildCounterBatchDeletePhotosResponse < 3) { - o.status = buildUnnamed2009(); + o.status = buildUnnamed1329(); } buildCounterBatchDeletePhotosResponse--; return o; @@ -109,19 +109,19 @@ checkBatchDeletePhotosResponse(api.BatchDeletePhotosResponse o) { buildCounterBatchDeletePhotosResponse++; if (buildCounterBatchDeletePhotosResponse < 3) { - checkUnnamed2009(o.status); + checkUnnamed1329(o.status); } buildCounterBatchDeletePhotosResponse--; } -buildUnnamed2010() { +buildUnnamed1330() { var o = new core.List<api.PhotoResponse>(); o.add(buildPhotoResponse()); o.add(buildPhotoResponse()); return o; } -checkUnnamed2010(core.List<api.PhotoResponse> o) { +checkUnnamed1330(core.List<api.PhotoResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkPhotoResponse(o[0]); checkPhotoResponse(o[1]); @@ -132,7 +132,7 @@ var o = new api.BatchGetPhotosResponse(); buildCounterBatchGetPhotosResponse++; if (buildCounterBatchGetPhotosResponse < 3) { - o.results = buildUnnamed2010(); + o.results = buildUnnamed1330(); } buildCounterBatchGetPhotosResponse--; return o; @@ -141,19 +141,19 @@ checkBatchGetPhotosResponse(api.BatchGetPhotosResponse o) { buildCounterBatchGetPhotosResponse++; if (buildCounterBatchGetPhotosResponse < 3) { - checkUnnamed2010(o.results); + checkUnnamed1330(o.results); } buildCounterBatchGetPhotosResponse--; } -buildUnnamed2011() { +buildUnnamed1331() { var o = new core.List<api.UpdatePhotoRequest>(); o.add(buildUpdatePhotoRequest()); o.add(buildUpdatePhotoRequest()); return o; } -checkUnnamed2011(core.List<api.UpdatePhotoRequest> o) { +checkUnnamed1331(core.List<api.UpdatePhotoRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkUpdatePhotoRequest(o[0]); checkUpdatePhotoRequest(o[1]); @@ -164,7 +164,7 @@ var o = new api.BatchUpdatePhotosRequest(); buildCounterBatchUpdatePhotosRequest++; if (buildCounterBatchUpdatePhotosRequest < 3) { - o.updatePhotoRequests = buildUnnamed2011(); + o.updatePhotoRequests = buildUnnamed1331(); } buildCounterBatchUpdatePhotosRequest--; return o; @@ -173,19 +173,19 @@ checkBatchUpdatePhotosRequest(api.BatchUpdatePhotosRequest o) { buildCounterBatchUpdatePhotosRequest++; if (buildCounterBatchUpdatePhotosRequest < 3) { - checkUnnamed2011(o.updatePhotoRequests); + checkUnnamed1331(o.updatePhotoRequests); } buildCounterBatchUpdatePhotosRequest--; } -buildUnnamed2012() { +buildUnnamed1332() { var o = new core.List<api.PhotoResponse>(); o.add(buildPhotoResponse()); o.add(buildPhotoResponse()); return o; } -checkUnnamed2012(core.List<api.PhotoResponse> o) { +checkUnnamed1332(core.List<api.PhotoResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkPhotoResponse(o[0]); checkPhotoResponse(o[1]); @@ -196,7 +196,7 @@ var o = new api.BatchUpdatePhotosResponse(); buildCounterBatchUpdatePhotosResponse++; if (buildCounterBatchUpdatePhotosResponse < 3) { - o.results = buildUnnamed2012(); + o.results = buildUnnamed1332(); } buildCounterBatchUpdatePhotosResponse--; return o; @@ -205,7 +205,7 @@ checkBatchUpdatePhotosResponse(api.BatchUpdatePhotosResponse o) { buildCounterBatchUpdatePhotosResponse++; if (buildCounterBatchUpdatePhotosResponse < 3) { - checkUnnamed2012(o.results); + checkUnnamed1332(o.results); } buildCounterBatchUpdatePhotosResponse--; } @@ -286,14 +286,14 @@ buildCounterLevel--; } -buildUnnamed2013() { +buildUnnamed1333() { var o = new core.List<api.Photo>(); o.add(buildPhoto()); o.add(buildPhoto()); return o; } -checkUnnamed2013(core.List<api.Photo> o) { +checkUnnamed1333(core.List<api.Photo> o) { unittest.expect(o, unittest.hasLength(2)); checkPhoto(o[0]); checkPhoto(o[1]); @@ -305,7 +305,7 @@ buildCounterListPhotosResponse++; if (buildCounterListPhotosResponse < 3) { o.nextPageToken = "foo"; - o.photos = buildUnnamed2013(); + o.photos = buildUnnamed1333(); } buildCounterListPhotosResponse--; return o; @@ -315,12 +315,12 @@ buildCounterListPhotosResponse++; if (buildCounterListPhotosResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2013(o.photos); + checkUnnamed1333(o.photos); } buildCounterListPhotosResponse--; } -buildUnnamed2014() { +buildUnnamed1334() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -335,7 +335,7 @@ return o; } -checkUnnamed2014(core.Map<core.String, core.Object> o) { +checkUnnamed1334(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)); @@ -349,7 +349,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2015() { +buildUnnamed1335() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -364,7 +364,7 @@ return o; } -checkUnnamed2015(core.Map<core.String, core.Object> o) { +checkUnnamed1335(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)); @@ -385,9 +385,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2014(); + o.metadata = buildUnnamed1334(); o.name = "foo"; - o.response = buildUnnamed2015(); + o.response = buildUnnamed1335(); } buildCounterOperation--; return o; @@ -398,34 +398,34 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2014(o.metadata); + checkUnnamed1334(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2015(o.response); + checkUnnamed1335(o.response); } buildCounterOperation--; } -buildUnnamed2016() { +buildUnnamed1336() { var o = new core.List<api.Connection>(); o.add(buildConnection()); o.add(buildConnection()); return o; } -checkUnnamed2016(core.List<api.Connection> o) { +checkUnnamed1336(core.List<api.Connection> o) { unittest.expect(o, unittest.hasLength(2)); checkConnection(o[0]); checkConnection(o[1]); } -buildUnnamed2017() { +buildUnnamed1337() { var o = new core.List<api.Place>(); o.add(buildPlace()); o.add(buildPlace()); return o; } -checkUnnamed2017(core.List<api.Place> o) { +checkUnnamed1337(core.List<api.Place> o) { unittest.expect(o, unittest.hasLength(2)); checkPlace(o[0]); checkPlace(o[1]); @@ -437,10 +437,10 @@ buildCounterPhoto++; if (buildCounterPhoto < 3) { o.captureTime = "foo"; - o.connections = buildUnnamed2016(); + o.connections = buildUnnamed1336(); o.downloadUrl = "foo"; o.photoId = buildPhotoId(); - o.places = buildUnnamed2017(); + o.places = buildUnnamed1337(); o.pose = buildPose(); o.shareLink = "foo"; o.thumbnailUrl = "foo"; @@ -455,10 +455,10 @@ buildCounterPhoto++; if (buildCounterPhoto < 3) { unittest.expect(o.captureTime, unittest.equals('foo')); - checkUnnamed2016(o.connections); + checkUnnamed1336(o.connections); unittest.expect(o.downloadUrl, unittest.equals('foo')); checkPhotoId(o.photoId); - checkUnnamed2017(o.places); + checkUnnamed1337(o.places); checkPose(o.pose); unittest.expect(o.shareLink, unittest.equals('foo')); unittest.expect(o.thumbnailUrl, unittest.equals('foo')); @@ -556,7 +556,7 @@ buildCounterPose--; } -buildUnnamed2018() { +buildUnnamed1338() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -571,7 +571,7 @@ return o; } -checkUnnamed2018(core.Map<core.String, core.Object> o) { +checkUnnamed1338(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)); @@ -585,17 +585,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed2019() { +buildUnnamed1339() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2018()); - o.add(buildUnnamed2018()); + o.add(buildUnnamed1338()); + o.add(buildUnnamed1338()); return o; } -checkUnnamed2019(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1339(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2018(o[0]); - checkUnnamed2018(o[1]); + checkUnnamed1338(o[0]); + checkUnnamed1338(o[1]); } core.int buildCounterStatus = 0; @@ -604,7 +604,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2019(); + o.details = buildUnnamed1339(); o.message = "foo"; } buildCounterStatus--; @@ -615,7 +615,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2019(o.details); + checkUnnamed1339(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -661,14 +661,14 @@ buildCounterUploadRef--; } -buildUnnamed2020() { +buildUnnamed1340() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2020(core.List<core.String> o) { +checkUnnamed1340(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1161,8 +1161,8 @@ unittest.test("method--batchGet", () { var mock = new HttpServerMock(); api.PhotosResourceApi res = new api.StreetviewpublishApi(mock).photos; - var arg_photoIds = buildUnnamed2020(); var arg_view = "foo"; + var arg_photoIds = buildUnnamed1340(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1194,8 +1194,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["photoIds"], unittest.equals(arg_photoIds)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); + unittest.expect(queryMap["photoIds"], unittest.equals(arg_photoIds)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1206,7 +1206,7 @@ }), true); res .batchGet( - photoIds: arg_photoIds, view: arg_view, $fields: arg_$fields) + view: arg_view, photoIds: arg_photoIds, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkBatchGetPhotosResponse(response); }))); @@ -1268,10 +1268,10 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.PhotosResourceApi res = new api.StreetviewpublishApi(mock).photos; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_view = "foo"; - var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1303,12 +1303,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1319,10 +1319,10 @@ }), true); res .list( + filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view, - filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListPhotosResponse(response);
diff --git a/generated/googleapis/test/surveys/v2_test.dart b/generated/googleapis/test/surveys/v2_test.dart index c7ad7af..c0c0562 100644 --- a/generated/googleapis/test/surveys/v2_test.dart +++ b/generated/googleapis/test/surveys/v2_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1653() { +buildUnnamed4310() { var o = new core.List<api.FieldMask>(); o.add(buildFieldMask()); o.add(buildFieldMask()); return o; } -checkUnnamed1653(core.List<api.FieldMask> o) { +checkUnnamed4310(core.List<api.FieldMask> o) { unittest.expect(o, unittest.hasLength(2)); checkFieldMask(o[0]); checkFieldMask(o[1]); @@ -68,7 +68,7 @@ var o = new api.FieldMask(); buildCounterFieldMask++; if (buildCounterFieldMask < 3) { - o.fields = buildUnnamed1653(); + o.fields = buildUnnamed4310(); o.id = 42; } buildCounterFieldMask--; @@ -78,92 +78,12 @@ checkFieldMask(api.FieldMask o) { buildCounterFieldMask++; if (buildCounterFieldMask < 3) { - checkUnnamed1653(o.fields); + checkUnnamed4310(o.fields); unittest.expect(o.id, unittest.equals(42)); } buildCounterFieldMask--; } -buildUnnamed1654() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1654(core.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 = buildUnnamed1654(); - } - 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')); - checkUnnamed1654(o.owners); - } - buildCounterMobileAppPanel--; -} - -buildUnnamed1655() { - var o = new core.List<api.MobileAppPanel>(); - o.add(buildMobileAppPanel()); - o.add(buildMobileAppPanel()); - return o; -} - -checkUnnamed1655(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 = buildUnnamed1655(); - o.tokenPagination = buildTokenPagination(); - } - buildCounterMobileAppPanelsListResponse--; - return o; -} - -checkMobileAppPanelsListResponse(api.MobileAppPanelsListResponse o) { - buildCounterMobileAppPanelsListResponse++; - if (buildCounterMobileAppPanelsListResponse < 3) { - checkPageInfo(o.pageInfo); - unittest.expect(o.requestId, unittest.equals('foo')); - checkUnnamed1655(o.resources); - checkTokenPagination(o.tokenPagination); - } - buildCounterMobileAppPanelsListResponse--; -} - core.int buildCounterPageInfo = 0; buildPageInfo() { var o = new api.PageInfo(); @@ -206,14 +126,14 @@ buildCounterResultsGetRequest--; } -buildUnnamed1656() { +buildUnnamed4311() { var o = new core.List<api.FieldMask>(); o.add(buildFieldMask()); o.add(buildFieldMask()); return o; } -checkUnnamed1656(core.List<api.FieldMask> o) { +checkUnnamed4311(core.List<api.FieldMask> o) { unittest.expect(o, unittest.hasLength(2)); checkFieldMask(o[0]); checkFieldMask(o[1]); @@ -224,7 +144,7 @@ var o = new api.ResultsMask(); buildCounterResultsMask++; if (buildCounterResultsMask < 3) { - o.fields = buildUnnamed1656(); + o.fields = buildUnnamed4311(); o.projection = "foo"; } buildCounterResultsMask--; @@ -234,33 +154,33 @@ checkResultsMask(api.ResultsMask o) { buildCounterResultsMask++; if (buildCounterResultsMask < 3) { - checkUnnamed1656(o.fields); + checkUnnamed4311(o.fields); unittest.expect(o.projection, unittest.equals('foo')); } buildCounterResultsMask--; } -buildUnnamed1657() { +buildUnnamed4312() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1657(core.List<core.String> o) { +checkUnnamed4312(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1658() { +buildUnnamed4313() { var o = new core.List<api.SurveyQuestion>(); o.add(buildSurveyQuestion()); o.add(buildSurveyQuestion()); return o; } -checkUnnamed1658(core.List<api.SurveyQuestion> o) { +checkUnnamed4313(core.List<api.SurveyQuestion> o) { unittest.expect(o, unittest.hasLength(2)); checkSurveyQuestion(o[0]); checkSurveyQuestion(o[1]); @@ -275,8 +195,8 @@ o.cost = buildSurveyCost(); o.customerData = "foo"; o.description = "foo"; - o.owners = buildUnnamed1657(); - o.questions = buildUnnamed1658(); + o.owners = buildUnnamed4312(); + o.questions = buildUnnamed4313(); o.rejectionReason = buildSurveyRejection(); o.state = "foo"; o.surveyUrlId = "foo"; @@ -294,8 +214,8 @@ checkSurveyCost(o.cost); unittest.expect(o.customerData, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1657(o.owners); - checkUnnamed1658(o.questions); + checkUnnamed4312(o.owners); + checkUnnamed4313(o.questions); checkSurveyRejection(o.rejectionReason); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.surveyUrlId, unittest.equals('foo')); @@ -305,27 +225,27 @@ buildCounterSurvey--; } -buildUnnamed1659() { +buildUnnamed4314() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1659(core.List<core.String> o) { +checkUnnamed4314(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1660() { +buildUnnamed4315() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1660(core.List<core.String> o) { +checkUnnamed4315(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -336,12 +256,11 @@ var o = new api.SurveyAudience(); buildCounterSurveyAudience++; if (buildCounterSurveyAudience < 3) { - o.ages = buildUnnamed1659(); + o.ages = buildUnnamed4314(); o.country = "foo"; o.countrySubdivision = "foo"; o.gender = "foo"; - o.languages = buildUnnamed1660(); - o.mobileAppPanelId = "foo"; + o.languages = buildUnnamed4315(); o.populationSource = "foo"; } buildCounterSurveyAudience--; @@ -351,12 +270,11 @@ checkSurveyAudience(api.SurveyAudience o) { buildCounterSurveyAudience++; if (buildCounterSurveyAudience < 3) { - checkUnnamed1659(o.ages); + checkUnnamed4314(o.ages); unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.countrySubdivision, unittest.equals('foo')); unittest.expect(o.gender, unittest.equals('foo')); - checkUnnamed1660(o.languages); - unittest.expect(o.mobileAppPanelId, unittest.equals('foo')); + checkUnnamed4315(o.languages); unittest.expect(o.populationSource, unittest.equals('foo')); } buildCounterSurveyAudience--; @@ -387,53 +305,53 @@ buildCounterSurveyCost--; } -buildUnnamed1661() { +buildUnnamed4316() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1661(core.List<core.String> o) { +checkUnnamed4316(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1662() { +buildUnnamed4317() { var o = new core.List<api.SurveyQuestionImage>(); o.add(buildSurveyQuestionImage()); o.add(buildSurveyQuestionImage()); return o; } -checkUnnamed1662(core.List<api.SurveyQuestionImage> o) { +checkUnnamed4317(core.List<api.SurveyQuestionImage> o) { unittest.expect(o, unittest.hasLength(2)); checkSurveyQuestionImage(o[0]); checkSurveyQuestionImage(o[1]); } -buildUnnamed1663() { +buildUnnamed4318() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1663(core.List<core.String> o) { +checkUnnamed4318(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1664() { +buildUnnamed4319() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1664(core.List<core.String> o) { +checkUnnamed4319(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -445,20 +363,20 @@ buildCounterSurveyQuestion++; if (buildCounterSurveyQuestion < 3) { o.answerOrder = "foo"; - o.answers = buildUnnamed1661(); + o.answers = buildUnnamed4316(); o.hasOther = true; o.highValueLabel = "foo"; - o.images = buildUnnamed1662(); + o.images = buildUnnamed4317(); o.lastAnswerPositionPinned = true; o.lowValueLabel = "foo"; o.mustPickSuggestion = true; o.numStars = "foo"; o.openTextPlaceholder = "foo"; - o.openTextSuggestions = buildUnnamed1663(); + o.openTextSuggestions = buildUnnamed4318(); o.question = "foo"; o.sentimentText = "foo"; o.singleLineResponse = true; - o.thresholdAnswers = buildUnnamed1664(); + o.thresholdAnswers = buildUnnamed4319(); o.type = "foo"; o.unitOfMeasurementLabel = "foo"; o.videoId = "foo"; @@ -471,20 +389,20 @@ buildCounterSurveyQuestion++; if (buildCounterSurveyQuestion < 3) { unittest.expect(o.answerOrder, unittest.equals('foo')); - checkUnnamed1661(o.answers); + checkUnnamed4316(o.answers); unittest.expect(o.hasOther, unittest.isTrue); unittest.expect(o.highValueLabel, unittest.equals('foo')); - checkUnnamed1662(o.images); + checkUnnamed4317(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')); - checkUnnamed1663(o.openTextSuggestions); + checkUnnamed4318(o.openTextSuggestions); unittest.expect(o.question, unittest.equals('foo')); unittest.expect(o.sentimentText, unittest.equals('foo')); unittest.expect(o.singleLineResponse, unittest.isTrue); - checkUnnamed1664(o.thresholdAnswers); + checkUnnamed4319(o.thresholdAnswers); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.unitOfMeasurementLabel, unittest.equals('foo')); unittest.expect(o.videoId, unittest.equals('foo')); @@ -576,14 +494,14 @@ buildCounterSurveysDeleteResponse--; } -buildUnnamed1665() { +buildUnnamed4320() { var o = new core.List<api.Survey>(); o.add(buildSurvey()); o.add(buildSurvey()); return o; } -checkUnnamed1665(core.List<api.Survey> o) { +checkUnnamed4320(core.List<api.Survey> o) { unittest.expect(o, unittest.hasLength(2)); checkSurvey(o[0]); checkSurvey(o[1]); @@ -596,7 +514,7 @@ if (buildCounterSurveysListResponse < 3) { o.pageInfo = buildPageInfo(); o.requestId = "foo"; - o.resources = buildUnnamed1665(); + o.resources = buildUnnamed4320(); o.tokenPagination = buildTokenPagination(); } buildCounterSurveysListResponse--; @@ -608,7 +526,7 @@ if (buildCounterSurveysListResponse < 3) { checkPageInfo(o.pageInfo); unittest.expect(o.requestId, unittest.equals('foo')); - checkUnnamed1665(o.resources); + checkUnnamed4320(o.resources); checkTokenPagination(o.tokenPagination); } buildCounterSurveysListResponse--; @@ -701,22 +619,6 @@ }); }); - 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(); @@ -845,191 +747,6 @@ }); }); - unittest.group("resource-MobileapppanelsResourceApi", () { - unittest.test("method--get", () { - var mock = new HttpServerMock(); - api.MobileapppanelsResourceApi res = - new api.SurveysApi(mock).mobileapppanels; - var arg_panelId = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - 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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - 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, $fields: arg_$fields) - .then(unittest.expectAsync1(((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"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - 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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - 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, - $fields: arg_$fields) - .then(unittest.expectAsync1(((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"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - 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, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkMobileAppPanel(response); - }))); - }); - }); - unittest.group("resource-ResultsResourceApi", () { unittest.test("method--get", () { // TODO: Implement tests for media upload;
diff --git a/generated/googleapis/test/tagmanager/v1_test.dart b/generated/googleapis/test/tagmanager/v1_test.dart index 1a251ad..fcc4449 100644 --- a/generated/googleapis/test/tagmanager/v1_test.dart +++ b/generated/googleapis/test/tagmanager/v1_test.dart
@@ -75,14 +75,14 @@ buildCounterAccount--; } -buildUnnamed2766() { +buildUnnamed2592() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2766(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')); @@ -93,7 +93,7 @@ var o = new api.AccountAccess(); buildCounterAccountAccess++; if (buildCounterAccountAccess < 3) { - o.permission = buildUnnamed2766(); + o.permission = buildUnnamed2592(); } buildCounterAccountAccess--; return o; @@ -102,19 +102,19 @@ checkAccountAccess(api.AccountAccess o) { buildCounterAccountAccess++; if (buildCounterAccountAccess < 3) { - checkUnnamed2766(o.permission); + checkUnnamed2592(o.permission); } buildCounterAccountAccess--; } -buildUnnamed2767() { +buildUnnamed2593() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed2767(core.List<api.Parameter> o) { +checkUnnamed2593(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -125,7 +125,7 @@ var o = new api.Condition(); buildCounterCondition++; if (buildCounterCondition < 3) { - o.parameter = buildUnnamed2767(); + o.parameter = buildUnnamed2593(); o.type = "foo"; } buildCounterCondition--; @@ -135,46 +135,46 @@ checkCondition(api.Condition o) { buildCounterCondition++; if (buildCounterCondition < 3) { - checkUnnamed2767(o.parameter); + checkUnnamed2593(o.parameter); unittest.expect(o.type, unittest.equals('foo')); } buildCounterCondition--; } -buildUnnamed2768() { +buildUnnamed2594() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2768(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')); } -buildUnnamed2769() { +buildUnnamed2595() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2769(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')); } -buildUnnamed2770() { +buildUnnamed2596() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2770(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')); @@ -187,15 +187,15 @@ if (buildCounterContainer < 3) { o.accountId = "foo"; o.containerId = "foo"; - o.domainName = buildUnnamed2768(); - o.enabledBuiltInVariable = buildUnnamed2769(); + o.domainName = buildUnnamed2594(); + o.enabledBuiltInVariable = buildUnnamed2595(); o.fingerprint = "foo"; o.name = "foo"; o.notes = "foo"; o.publicId = "foo"; o.timeZoneCountryId = "foo"; o.timeZoneId = "foo"; - o.usageContext = buildUnnamed2770(); + o.usageContext = buildUnnamed2596(); } buildCounterContainer--; return o; @@ -206,27 +206,27 @@ if (buildCounterContainer < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed2768(o.domainName); - checkUnnamed2769(o.enabledBuiltInVariable); + checkUnnamed2594(o.domainName); + checkUnnamed2595(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')); - checkUnnamed2770(o.usageContext); + checkUnnamed2596(o.usageContext); } buildCounterContainer--; } -buildUnnamed2771() { +buildUnnamed2597() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2771(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')); @@ -238,7 +238,7 @@ buildCounterContainerAccess++; if (buildCounterContainerAccess < 3) { o.containerId = "foo"; - o.permission = buildUnnamed2771(); + o.permission = buildUnnamed2597(); } buildCounterContainerAccess--; return o; @@ -248,84 +248,84 @@ buildCounterContainerAccess++; if (buildCounterContainerAccess < 3) { unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed2771(o.permission); + checkUnnamed2597(o.permission); } buildCounterContainerAccess--; } -buildUnnamed2772() { +buildUnnamed2598() { var o = new core.List<api.Folder>(); o.add(buildFolder()); o.add(buildFolder()); return o; } -checkUnnamed2772(core.List<api.Folder> o) { +checkUnnamed2598(core.List<api.Folder> o) { unittest.expect(o, unittest.hasLength(2)); checkFolder(o[0]); checkFolder(o[1]); } -buildUnnamed2773() { +buildUnnamed2599() { var o = new core.List<api.Macro>(); o.add(buildMacro()); o.add(buildMacro()); return o; } -checkUnnamed2773(core.List<api.Macro> o) { +checkUnnamed2599(core.List<api.Macro> o) { unittest.expect(o, unittest.hasLength(2)); checkMacro(o[0]); checkMacro(o[1]); } -buildUnnamed2774() { +buildUnnamed2600() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed2774(core.List<api.Rule> o) { +checkUnnamed2600(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); } -buildUnnamed2775() { +buildUnnamed2601() { var o = new core.List<api.Tag>(); o.add(buildTag()); o.add(buildTag()); return o; } -checkUnnamed2775(core.List<api.Tag> o) { +checkUnnamed2601(core.List<api.Tag> o) { unittest.expect(o, unittest.hasLength(2)); checkTag(o[0]); checkTag(o[1]); } -buildUnnamed2776() { +buildUnnamed2602() { var o = new core.List<api.Trigger>(); o.add(buildTrigger()); o.add(buildTrigger()); return o; } -checkUnnamed2776(core.List<api.Trigger> o) { +checkUnnamed2602(core.List<api.Trigger> o) { unittest.expect(o, unittest.hasLength(2)); checkTrigger(o[0]); checkTrigger(o[1]); } -buildUnnamed2777() { +buildUnnamed2603() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed2777(core.List<api.Variable> o) { +checkUnnamed2603(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -342,14 +342,14 @@ o.containerVersionId = "foo"; o.deleted = true; o.fingerprint = "foo"; - o.folder = buildUnnamed2772(); - o.macro = buildUnnamed2773(); + o.folder = buildUnnamed2598(); + o.macro = buildUnnamed2599(); o.name = "foo"; o.notes = "foo"; - o.rule = buildUnnamed2774(); - o.tag = buildUnnamed2775(); - o.trigger = buildUnnamed2776(); - o.variable = buildUnnamed2777(); + o.rule = buildUnnamed2600(); + o.tag = buildUnnamed2601(); + o.trigger = buildUnnamed2602(); + o.variable = buildUnnamed2603(); } buildCounterContainerVersion--; return o; @@ -364,14 +364,14 @@ unittest.expect(o.containerVersionId, unittest.equals('foo')); unittest.expect(o.deleted, unittest.isTrue); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2772(o.folder); - checkUnnamed2773(o.macro); + checkUnnamed2598(o.folder); + checkUnnamed2599(o.macro); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed2774(o.rule); - checkUnnamed2775(o.tag); - checkUnnamed2776(o.trigger); - checkUnnamed2777(o.variable); + checkUnnamed2600(o.rule); + checkUnnamed2601(o.tag); + checkUnnamed2602(o.trigger); + checkUnnamed2603(o.variable); } buildCounterContainerVersion--; } @@ -526,40 +526,40 @@ buildCounterFolder--; } -buildUnnamed2778() { +buildUnnamed2604() { var o = new core.List<api.Tag>(); o.add(buildTag()); o.add(buildTag()); return o; } -checkUnnamed2778(core.List<api.Tag> o) { +checkUnnamed2604(core.List<api.Tag> o) { unittest.expect(o, unittest.hasLength(2)); checkTag(o[0]); checkTag(o[1]); } -buildUnnamed2779() { +buildUnnamed2605() { var o = new core.List<api.Trigger>(); o.add(buildTrigger()); o.add(buildTrigger()); return o; } -checkUnnamed2779(core.List<api.Trigger> o) { +checkUnnamed2605(core.List<api.Trigger> o) { unittest.expect(o, unittest.hasLength(2)); checkTrigger(o[0]); checkTrigger(o[1]); } -buildUnnamed2780() { +buildUnnamed2606() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed2780(core.List<api.Variable> o) { +checkUnnamed2606(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 = buildUnnamed2778(); - o.trigger = buildUnnamed2779(); - o.variable = buildUnnamed2780(); + o.tag = buildUnnamed2604(); + o.trigger = buildUnnamed2605(); + o.variable = buildUnnamed2606(); } buildCounterFolderEntities--; return o; @@ -581,21 +581,21 @@ checkFolderEntities(api.FolderEntities o) { buildCounterFolderEntities++; if (buildCounterFolderEntities < 3) { - checkUnnamed2778(o.tag); - checkUnnamed2779(o.trigger); - checkUnnamed2780(o.variable); + checkUnnamed2604(o.tag); + checkUnnamed2605(o.trigger); + checkUnnamed2606(o.variable); } buildCounterFolderEntities--; } -buildUnnamed2781() { +buildUnnamed2607() { var o = new core.List<api.UserAccess>(); o.add(buildUserAccess()); o.add(buildUserAccess()); return o; } -checkUnnamed2781(core.List<api.UserAccess> o) { +checkUnnamed2607(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 = buildUnnamed2781(); + o.userAccess = buildUnnamed2607(); } buildCounterListAccountUsersResponse--; return o; @@ -615,19 +615,19 @@ checkListAccountUsersResponse(api.ListAccountUsersResponse o) { buildCounterListAccountUsersResponse++; if (buildCounterListAccountUsersResponse < 3) { - checkUnnamed2781(o.userAccess); + checkUnnamed2607(o.userAccess); } buildCounterListAccountUsersResponse--; } -buildUnnamed2782() { +buildUnnamed2608() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed2782(core.List<api.Account> o) { +checkUnnamed2608(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 = buildUnnamed2782(); + o.accounts = buildUnnamed2608(); } buildCounterListAccountsResponse--; return o; @@ -647,32 +647,32 @@ checkListAccountsResponse(api.ListAccountsResponse o) { buildCounterListAccountsResponse++; if (buildCounterListAccountsResponse < 3) { - checkUnnamed2782(o.accounts); + checkUnnamed2608(o.accounts); } buildCounterListAccountsResponse--; } -buildUnnamed2783() { +buildUnnamed2609() { var o = new core.List<api.ContainerVersion>(); o.add(buildContainerVersion()); o.add(buildContainerVersion()); return o; } -checkUnnamed2783(core.List<api.ContainerVersion> o) { +checkUnnamed2609(core.List<api.ContainerVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkContainerVersion(o[0]); checkContainerVersion(o[1]); } -buildUnnamed2784() { +buildUnnamed2610() { var o = new core.List<api.ContainerVersionHeader>(); o.add(buildContainerVersionHeader()); o.add(buildContainerVersionHeader()); return o; } -checkUnnamed2784(core.List<api.ContainerVersionHeader> o) { +checkUnnamed2610(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 = buildUnnamed2783(); - o.containerVersionHeader = buildUnnamed2784(); + o.containerVersion = buildUnnamed2609(); + o.containerVersionHeader = buildUnnamed2610(); } buildCounterListContainerVersionsResponse--; return o; @@ -693,20 +693,20 @@ checkListContainerVersionsResponse(api.ListContainerVersionsResponse o) { buildCounterListContainerVersionsResponse++; if (buildCounterListContainerVersionsResponse < 3) { - checkUnnamed2783(o.containerVersion); - checkUnnamed2784(o.containerVersionHeader); + checkUnnamed2609(o.containerVersion); + checkUnnamed2610(o.containerVersionHeader); } buildCounterListContainerVersionsResponse--; } -buildUnnamed2785() { +buildUnnamed2611() { var o = new core.List<api.Container>(); o.add(buildContainer()); o.add(buildContainer()); return o; } -checkUnnamed2785(core.List<api.Container> o) { +checkUnnamed2611(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 = buildUnnamed2785(); + o.containers = buildUnnamed2611(); } buildCounterListContainersResponse--; return o; @@ -726,19 +726,19 @@ checkListContainersResponse(api.ListContainersResponse o) { buildCounterListContainersResponse++; if (buildCounterListContainersResponse < 3) { - checkUnnamed2785(o.containers); + checkUnnamed2611(o.containers); } buildCounterListContainersResponse--; } -buildUnnamed2786() { +buildUnnamed2612() { var o = new core.List<api.Environment>(); o.add(buildEnvironment()); o.add(buildEnvironment()); return o; } -checkUnnamed2786(core.List<api.Environment> o) { +checkUnnamed2612(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 = buildUnnamed2786(); + o.environments = buildUnnamed2612(); } buildCounterListEnvironmentsResponse--; return o; @@ -758,19 +758,19 @@ checkListEnvironmentsResponse(api.ListEnvironmentsResponse o) { buildCounterListEnvironmentsResponse++; if (buildCounterListEnvironmentsResponse < 3) { - checkUnnamed2786(o.environments); + checkUnnamed2612(o.environments); } buildCounterListEnvironmentsResponse--; } -buildUnnamed2787() { +buildUnnamed2613() { var o = new core.List<api.Folder>(); o.add(buildFolder()); o.add(buildFolder()); return o; } -checkUnnamed2787(core.List<api.Folder> o) { +checkUnnamed2613(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 = buildUnnamed2787(); + o.folders = buildUnnamed2613(); } buildCounterListFoldersResponse--; return o; @@ -790,19 +790,19 @@ checkListFoldersResponse(api.ListFoldersResponse o) { buildCounterListFoldersResponse++; if (buildCounterListFoldersResponse < 3) { - checkUnnamed2787(o.folders); + checkUnnamed2613(o.folders); } buildCounterListFoldersResponse--; } -buildUnnamed2788() { +buildUnnamed2614() { var o = new core.List<api.Tag>(); o.add(buildTag()); o.add(buildTag()); return o; } -checkUnnamed2788(core.List<api.Tag> o) { +checkUnnamed2614(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 = buildUnnamed2788(); + o.tags = buildUnnamed2614(); } buildCounterListTagsResponse--; return o; @@ -822,19 +822,19 @@ checkListTagsResponse(api.ListTagsResponse o) { buildCounterListTagsResponse++; if (buildCounterListTagsResponse < 3) { - checkUnnamed2788(o.tags); + checkUnnamed2614(o.tags); } buildCounterListTagsResponse--; } -buildUnnamed2789() { +buildUnnamed2615() { var o = new core.List<api.Trigger>(); o.add(buildTrigger()); o.add(buildTrigger()); return o; } -checkUnnamed2789(core.List<api.Trigger> o) { +checkUnnamed2615(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 = buildUnnamed2789(); + o.triggers = buildUnnamed2615(); } buildCounterListTriggersResponse--; return o; @@ -854,19 +854,19 @@ checkListTriggersResponse(api.ListTriggersResponse o) { buildCounterListTriggersResponse++; if (buildCounterListTriggersResponse < 3) { - checkUnnamed2789(o.triggers); + checkUnnamed2615(o.triggers); } buildCounterListTriggersResponse--; } -buildUnnamed2790() { +buildUnnamed2616() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed2790(core.List<api.Variable> o) { +checkUnnamed2616(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 = buildUnnamed2790(); + o.variables = buildUnnamed2616(); } buildCounterListVariablesResponse--; return o; @@ -886,45 +886,45 @@ checkListVariablesResponse(api.ListVariablesResponse o) { buildCounterListVariablesResponse++; if (buildCounterListVariablesResponse < 3) { - checkUnnamed2790(o.variables); + checkUnnamed2616(o.variables); } buildCounterListVariablesResponse--; } -buildUnnamed2791() { +buildUnnamed2617() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2791(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')); } -buildUnnamed2792() { +buildUnnamed2618() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2792(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')); } -buildUnnamed2793() { +buildUnnamed2619() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed2793(core.List<api.Parameter> o) { +checkUnnamed2619(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 = buildUnnamed2791(); - o.enablingRuleId = buildUnnamed2792(); + o.disablingRuleId = buildUnnamed2617(); + o.enablingRuleId = buildUnnamed2618(); o.fingerprint = "foo"; o.macroId = "foo"; o.name = "foo"; o.notes = "foo"; - o.parameter = buildUnnamed2793(); + o.parameter = buildUnnamed2619(); 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')); - checkUnnamed2791(o.disablingRuleId); - checkUnnamed2792(o.enablingRuleId); + checkUnnamed2617(o.disablingRuleId); + checkUnnamed2618(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')); - checkUnnamed2793(o.parameter); + checkUnnamed2619(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--; } -buildUnnamed2794() { +buildUnnamed2620() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed2794(core.List<api.Parameter> o) { +checkUnnamed2620(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); } -buildUnnamed2795() { +buildUnnamed2621() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed2795(core.List<api.Parameter> o) { +checkUnnamed2621(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 = buildUnnamed2794(); - o.map = buildUnnamed2795(); + o.list = buildUnnamed2620(); + o.map = buildUnnamed2621(); o.type = "foo"; o.value = "foo"; } @@ -1018,8 +1018,8 @@ buildCounterParameter++; if (buildCounterParameter < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed2794(o.list); - checkUnnamed2795(o.map); + checkUnnamed2620(o.list); + checkUnnamed2621(o.map); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); } @@ -1047,14 +1047,14 @@ buildCounterPublishContainerVersionResponse--; } -buildUnnamed2796() { +buildUnnamed2622() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed2796(core.List<api.Condition> o) { +checkUnnamed2622(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 = buildUnnamed2796(); + o.condition = buildUnnamed2622(); o.containerId = "foo"; o.fingerprint = "foo"; o.name = "foo"; @@ -1081,7 +1081,7 @@ buildCounterRule++; if (buildCounterRule < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2796(o.condition); + checkUnnamed2622(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--; } -buildUnnamed2797() { +buildUnnamed2623() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2797(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')); } -buildUnnamed2798() { +buildUnnamed2624() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2798(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')); } -buildUnnamed2799() { +buildUnnamed2625() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2799(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')); } -buildUnnamed2800() { +buildUnnamed2626() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2800(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')); } -buildUnnamed2801() { +buildUnnamed2627() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed2801(core.List<api.Parameter> o) { +checkUnnamed2627(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); } -buildUnnamed2802() { +buildUnnamed2628() { var o = new core.List<api.SetupTag>(); o.add(buildSetupTag()); o.add(buildSetupTag()); return o; } -checkUnnamed2802(core.List<api.SetupTag> o) { +checkUnnamed2628(core.List<api.SetupTag> o) { unittest.expect(o, unittest.hasLength(2)); checkSetupTag(o[0]); checkSetupTag(o[1]); } -buildUnnamed2803() { +buildUnnamed2629() { var o = new core.List<api.TeardownTag>(); o.add(buildTeardownTag()); o.add(buildTeardownTag()); return o; } -checkUnnamed2803(core.List<api.TeardownTag> o) { +checkUnnamed2629(core.List<api.TeardownTag> o) { unittest.expect(o, unittest.hasLength(2)); checkTeardownTag(o[0]); checkTeardownTag(o[1]); @@ -1209,25 +1209,25 @@ buildCounterTag++; if (buildCounterTag < 3) { o.accountId = "foo"; - o.blockingRuleId = buildUnnamed2797(); - o.blockingTriggerId = buildUnnamed2798(); + o.blockingRuleId = buildUnnamed2623(); + o.blockingTriggerId = buildUnnamed2624(); o.containerId = "foo"; o.fingerprint = "foo"; - o.firingRuleId = buildUnnamed2799(); - o.firingTriggerId = buildUnnamed2800(); + o.firingRuleId = buildUnnamed2625(); + o.firingTriggerId = buildUnnamed2626(); o.liveOnly = true; o.name = "foo"; o.notes = "foo"; - o.parameter = buildUnnamed2801(); + o.parameter = buildUnnamed2627(); o.parentFolderId = "foo"; o.paused = true; o.priority = buildParameter(); o.scheduleEndMs = "foo"; o.scheduleStartMs = "foo"; - o.setupTag = buildUnnamed2802(); + o.setupTag = buildUnnamed2628(); o.tagFiringOption = "foo"; o.tagId = "foo"; - o.teardownTag = buildUnnamed2803(); + o.teardownTag = buildUnnamed2629(); o.type = "foo"; } buildCounterTag--; @@ -1238,25 +1238,25 @@ buildCounterTag++; if (buildCounterTag < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2797(o.blockingRuleId); - checkUnnamed2798(o.blockingTriggerId); + checkUnnamed2623(o.blockingRuleId); + checkUnnamed2624(o.blockingTriggerId); unittest.expect(o.containerId, unittest.equals('foo')); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2799(o.firingRuleId); - checkUnnamed2800(o.firingTriggerId); + checkUnnamed2625(o.firingRuleId); + checkUnnamed2626(o.firingTriggerId); unittest.expect(o.liveOnly, unittest.isTrue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed2801(o.parameter); + checkUnnamed2627(o.parameter); unittest.expect(o.parentFolderId, unittest.equals('foo')); unittest.expect(o.paused, unittest.isTrue); checkParameter(o.priority); unittest.expect(o.scheduleEndMs, unittest.equals('foo')); unittest.expect(o.scheduleStartMs, unittest.equals('foo')); - checkUnnamed2802(o.setupTag); + checkUnnamed2628(o.setupTag); unittest.expect(o.tagFiringOption, unittest.equals('foo')); unittest.expect(o.tagId, unittest.equals('foo')); - checkUnnamed2803(o.teardownTag); + checkUnnamed2629(o.teardownTag); unittest.expect(o.type, unittest.equals('foo')); } buildCounterTag--; @@ -1283,53 +1283,53 @@ buildCounterTeardownTag--; } -buildUnnamed2804() { +buildUnnamed2630() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed2804(core.List<api.Condition> o) { +checkUnnamed2630(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed2805() { +buildUnnamed2631() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed2805(core.List<api.Condition> o) { +checkUnnamed2631(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed2806() { +buildUnnamed2632() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed2806(core.List<api.Condition> o) { +checkUnnamed2632(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed2807() { +buildUnnamed2633() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed2807(core.List<api.Parameter> o) { +checkUnnamed2633(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -1341,13 +1341,13 @@ buildCounterTrigger++; if (buildCounterTrigger < 3) { o.accountId = "foo"; - o.autoEventFilter = buildUnnamed2804(); + o.autoEventFilter = buildUnnamed2630(); o.checkValidation = buildParameter(); o.containerId = "foo"; o.continuousTimeMinMilliseconds = buildParameter(); - o.customEventFilter = buildUnnamed2805(); + o.customEventFilter = buildUnnamed2631(); o.eventName = buildParameter(); - o.filter = buildUnnamed2806(); + o.filter = buildUnnamed2632(); o.fingerprint = "foo"; o.horizontalScrollPercentageList = buildParameter(); o.interval = buildParameter(); @@ -1355,7 +1355,7 @@ o.limit = buildParameter(); o.maxTimerLengthSeconds = buildParameter(); o.name = "foo"; - o.parameter = buildUnnamed2807(); + o.parameter = buildUnnamed2633(); o.parentFolderId = "foo"; o.selector = buildParameter(); o.totalTimeMinMilliseconds = buildParameter(); @@ -1377,13 +1377,13 @@ buildCounterTrigger++; if (buildCounterTrigger < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2804(o.autoEventFilter); + checkUnnamed2630(o.autoEventFilter); checkParameter(o.checkValidation); unittest.expect(o.containerId, unittest.equals('foo')); checkParameter(o.continuousTimeMinMilliseconds); - checkUnnamed2805(o.customEventFilter); + checkUnnamed2631(o.customEventFilter); checkParameter(o.eventName); - checkUnnamed2806(o.filter); + checkUnnamed2632(o.filter); unittest.expect(o.fingerprint, unittest.equals('foo')); checkParameter(o.horizontalScrollPercentageList); checkParameter(o.interval); @@ -1391,7 +1391,7 @@ checkParameter(o.limit); checkParameter(o.maxTimerLengthSeconds); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2807(o.parameter); + checkUnnamed2633(o.parameter); unittest.expect(o.parentFolderId, unittest.equals('foo')); checkParameter(o.selector); checkParameter(o.totalTimeMinMilliseconds); @@ -1408,14 +1408,14 @@ buildCounterTrigger--; } -buildUnnamed2808() { +buildUnnamed2634() { var o = new core.List<api.ContainerAccess>(); o.add(buildContainerAccess()); o.add(buildContainerAccess()); return o; } -checkUnnamed2808(core.List<api.ContainerAccess> o) { +checkUnnamed2634(core.List<api.ContainerAccess> o) { unittest.expect(o, unittest.hasLength(2)); checkContainerAccess(o[0]); checkContainerAccess(o[1]); @@ -1428,7 +1428,7 @@ if (buildCounterUserAccess < 3) { o.accountAccess = buildAccountAccess(); o.accountId = "foo"; - o.containerAccess = buildUnnamed2808(); + o.containerAccess = buildUnnamed2634(); o.emailAddress = "foo"; o.permissionId = "foo"; } @@ -1441,47 +1441,47 @@ if (buildCounterUserAccess < 3) { checkAccountAccess(o.accountAccess); unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2808(o.containerAccess); + checkUnnamed2634(o.containerAccess); unittest.expect(o.emailAddress, unittest.equals('foo')); unittest.expect(o.permissionId, unittest.equals('foo')); } buildCounterUserAccess--; } -buildUnnamed2809() { +buildUnnamed2635() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2809(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')); } -buildUnnamed2810() { +buildUnnamed2636() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2810(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')); } -buildUnnamed2811() { +buildUnnamed2637() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed2811(core.List<api.Parameter> o) { +checkUnnamed2637(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -1494,12 +1494,12 @@ if (buildCounterVariable < 3) { o.accountId = "foo"; o.containerId = "foo"; - o.disablingTriggerId = buildUnnamed2809(); - o.enablingTriggerId = buildUnnamed2810(); + o.disablingTriggerId = buildUnnamed2635(); + o.enablingTriggerId = buildUnnamed2636(); o.fingerprint = "foo"; o.name = "foo"; o.notes = "foo"; - o.parameter = buildUnnamed2811(); + o.parameter = buildUnnamed2637(); o.parentFolderId = "foo"; o.scheduleEndMs = "foo"; o.scheduleStartMs = "foo"; @@ -1515,12 +1515,12 @@ if (buildCounterVariable < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed2809(o.disablingTriggerId); - checkUnnamed2810(o.enablingTriggerId); + checkUnnamed2635(o.disablingTriggerId); + checkUnnamed2636(o.enablingTriggerId); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed2811(o.parameter); + checkUnnamed2637(o.parameter); unittest.expect(o.parentFolderId, unittest.equals('foo')); unittest.expect(o.scheduleEndMs, unittest.equals('foo')); unittest.expect(o.scheduleStartMs, unittest.equals('foo')); @@ -1530,40 +1530,40 @@ buildCounterVariable--; } -buildUnnamed2812() { +buildUnnamed2638() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2812(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')); } -buildUnnamed2813() { +buildUnnamed2639() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2813(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')); } -buildUnnamed2814() { +buildUnnamed2640() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2814(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')); @@ -3295,9 +3295,9 @@ var arg_accountId = "foo"; var arg_containerId = "foo"; var arg_folderId = "foo"; - var arg_tagId = buildUnnamed2812(); - var arg_triggerId = buildUnnamed2813(); - var arg_variableId = buildUnnamed2814(); + var arg_tagId = buildUnnamed2638(); + var arg_triggerId = buildUnnamed2639(); + var arg_variableId = buildUnnamed2640(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Folder.fromJson(json);
diff --git a/generated/googleapis/test/tagmanager/v2_test.dart b/generated/googleapis/test/tagmanager/v2_test.dart index 3811236..1eb934e 100644 --- a/generated/googleapis/test/tagmanager/v2_test.dart +++ b/generated/googleapis/test/tagmanager/v2_test.dart
@@ -127,14 +127,14 @@ buildCounterBuiltInVariable--; } -buildUnnamed2322() { +buildUnnamed1412() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed2322(core.List<api.Parameter> o) { +checkUnnamed1412(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -145,7 +145,7 @@ var o = new api.Condition(); buildCounterCondition++; if (buildCounterCondition < 3) { - o.parameter = buildUnnamed2322(); + o.parameter = buildUnnamed1412(); o.type = "foo"; } buildCounterCondition--; @@ -155,33 +155,33 @@ checkCondition(api.Condition o) { buildCounterCondition++; if (buildCounterCondition < 3) { - checkUnnamed2322(o.parameter); + checkUnnamed1412(o.parameter); unittest.expect(o.type, unittest.equals('foo')); } buildCounterCondition--; } -buildUnnamed2323() { +buildUnnamed1413() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2323(core.List<core.String> o) { +checkUnnamed1413(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2324() { +buildUnnamed1414() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2324(core.List<core.String> o) { +checkUnnamed1414(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -194,14 +194,14 @@ if (buildCounterContainer < 3) { o.accountId = "foo"; o.containerId = "foo"; - o.domainName = buildUnnamed2323(); + o.domainName = buildUnnamed1413(); o.fingerprint = "foo"; o.name = "foo"; o.notes = "foo"; o.path = "foo"; o.publicId = "foo"; o.tagManagerUrl = "foo"; - o.usageContext = buildUnnamed2324(); + o.usageContext = buildUnnamed1414(); } buildCounterContainer--; return o; @@ -212,14 +212,14 @@ if (buildCounterContainer < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed2323(o.domainName); + checkUnnamed1413(o.domainName); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.publicId, unittest.equals('foo')); unittest.expect(o.tagManagerUrl, unittest.equals('foo')); - checkUnnamed2324(o.usageContext); + checkUnnamed1414(o.usageContext); } buildCounterContainer--; } @@ -245,79 +245,79 @@ buildCounterContainerAccess--; } -buildUnnamed2325() { +buildUnnamed1415() { var o = new core.List<api.BuiltInVariable>(); o.add(buildBuiltInVariable()); o.add(buildBuiltInVariable()); return o; } -checkUnnamed2325(core.List<api.BuiltInVariable> o) { +checkUnnamed1415(core.List<api.BuiltInVariable> o) { unittest.expect(o, unittest.hasLength(2)); checkBuiltInVariable(o[0]); checkBuiltInVariable(o[1]); } -buildUnnamed2326() { +buildUnnamed1416() { var o = new core.List<api.Folder>(); o.add(buildFolder()); o.add(buildFolder()); return o; } -checkUnnamed2326(core.List<api.Folder> o) { +checkUnnamed1416(core.List<api.Folder> o) { unittest.expect(o, unittest.hasLength(2)); checkFolder(o[0]); checkFolder(o[1]); } -buildUnnamed2327() { +buildUnnamed1417() { var o = new core.List<api.Tag>(); o.add(buildTag()); o.add(buildTag()); return o; } -checkUnnamed2327(core.List<api.Tag> o) { +checkUnnamed1417(core.List<api.Tag> o) { unittest.expect(o, unittest.hasLength(2)); checkTag(o[0]); checkTag(o[1]); } -buildUnnamed2328() { +buildUnnamed1418() { var o = new core.List<api.Trigger>(); o.add(buildTrigger()); o.add(buildTrigger()); return o; } -checkUnnamed2328(core.List<api.Trigger> o) { +checkUnnamed1418(core.List<api.Trigger> o) { unittest.expect(o, unittest.hasLength(2)); checkTrigger(o[0]); checkTrigger(o[1]); } -buildUnnamed2329() { +buildUnnamed1419() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed2329(core.List<api.Variable> o) { +checkUnnamed1419(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); } -buildUnnamed2330() { +buildUnnamed1420() { var o = new core.List<api.Zone>(); o.add(buildZone()); o.add(buildZone()); return o; } -checkUnnamed2330(core.List<api.Zone> o) { +checkUnnamed1420(core.List<api.Zone> o) { unittest.expect(o, unittest.hasLength(2)); checkZone(o[0]); checkZone(o[1]); @@ -329,21 +329,21 @@ buildCounterContainerVersion++; if (buildCounterContainerVersion < 3) { o.accountId = "foo"; - o.builtInVariable = buildUnnamed2325(); + o.builtInVariable = buildUnnamed1415(); o.container = buildContainer(); o.containerId = "foo"; o.containerVersionId = "foo"; o.deleted = true; o.description = "foo"; o.fingerprint = "foo"; - o.folder = buildUnnamed2326(); + o.folder = buildUnnamed1416(); o.name = "foo"; o.path = "foo"; - o.tag = buildUnnamed2327(); + o.tag = buildUnnamed1417(); o.tagManagerUrl = "foo"; - o.trigger = buildUnnamed2328(); - o.variable = buildUnnamed2329(); - o.zone = buildUnnamed2330(); + o.trigger = buildUnnamed1418(); + o.variable = buildUnnamed1419(); + o.zone = buildUnnamed1420(); } buildCounterContainerVersion--; return o; @@ -353,21 +353,21 @@ buildCounterContainerVersion++; if (buildCounterContainerVersion < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2325(o.builtInVariable); + checkUnnamed1415(o.builtInVariable); checkContainer(o.container); unittest.expect(o.containerId, unittest.equals('foo')); unittest.expect(o.containerVersionId, unittest.equals('foo')); unittest.expect(o.deleted, unittest.isTrue); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2326(o.folder); + checkUnnamed1416(o.folder); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); - checkUnnamed2327(o.tag); + checkUnnamed1417(o.tag); unittest.expect(o.tagManagerUrl, unittest.equals('foo')); - checkUnnamed2328(o.trigger); - checkUnnamed2329(o.variable); - checkUnnamed2330(o.zone); + checkUnnamed1418(o.trigger); + checkUnnamed1419(o.variable); + checkUnnamed1420(o.zone); } buildCounterContainerVersion--; } @@ -413,14 +413,14 @@ buildCounterContainerVersionHeader--; } -buildUnnamed2331() { +buildUnnamed1421() { var o = new core.List<api.BuiltInVariable>(); o.add(buildBuiltInVariable()); o.add(buildBuiltInVariable()); return o; } -checkUnnamed2331(core.List<api.BuiltInVariable> o) { +checkUnnamed1421(core.List<api.BuiltInVariable> o) { unittest.expect(o, unittest.hasLength(2)); checkBuiltInVariable(o[0]); checkBuiltInVariable(o[1]); @@ -431,7 +431,7 @@ var o = new api.CreateBuiltInVariableResponse(); buildCounterCreateBuiltInVariableResponse++; if (buildCounterCreateBuiltInVariableResponse < 3) { - o.builtInVariable = buildUnnamed2331(); + o.builtInVariable = buildUnnamed1421(); } buildCounterCreateBuiltInVariableResponse--; return o; @@ -440,7 +440,7 @@ checkCreateBuiltInVariableResponse(api.CreateBuiltInVariableResponse o) { buildCounterCreateBuiltInVariableResponse++; if (buildCounterCreateBuiltInVariableResponse < 3) { - checkUnnamed2331(o.builtInVariable); + checkUnnamed1421(o.builtInVariable); } buildCounterCreateBuiltInVariableResponse--; } @@ -492,14 +492,14 @@ buildCounterCreateContainerVersionResponse--; } -buildUnnamed2332() { +buildUnnamed1422() { var o = new core.List<api.WorkspaceProposalUser>(); o.add(buildWorkspaceProposalUser()); o.add(buildWorkspaceProposalUser()); return o; } -checkUnnamed2332(core.List<api.WorkspaceProposalUser> o) { +checkUnnamed1422(core.List<api.WorkspaceProposalUser> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkspaceProposalUser(o[0]); checkWorkspaceProposalUser(o[1]); @@ -511,7 +511,7 @@ buildCounterCreateWorkspaceProposalRequest++; if (buildCounterCreateWorkspaceProposalRequest < 3) { o.initialComment = buildWorkspaceProposalHistoryComment(); - o.reviewers = buildUnnamed2332(); + o.reviewers = buildUnnamed1422(); } buildCounterCreateWorkspaceProposalRequest--; return o; @@ -521,7 +521,7 @@ buildCounterCreateWorkspaceProposalRequest++; if (buildCounterCreateWorkspaceProposalRequest < 3) { checkWorkspaceProposalHistoryComment(o.initialComment); - checkUnnamed2332(o.reviewers); + checkUnnamed1422(o.reviewers); } buildCounterCreateWorkspaceProposalRequest--; } @@ -635,40 +635,40 @@ buildCounterFolder--; } -buildUnnamed2333() { +buildUnnamed1423() { var o = new core.List<api.Tag>(); o.add(buildTag()); o.add(buildTag()); return o; } -checkUnnamed2333(core.List<api.Tag> o) { +checkUnnamed1423(core.List<api.Tag> o) { unittest.expect(o, unittest.hasLength(2)); checkTag(o[0]); checkTag(o[1]); } -buildUnnamed2334() { +buildUnnamed1424() { var o = new core.List<api.Trigger>(); o.add(buildTrigger()); o.add(buildTrigger()); return o; } -checkUnnamed2334(core.List<api.Trigger> o) { +checkUnnamed1424(core.List<api.Trigger> o) { unittest.expect(o, unittest.hasLength(2)); checkTrigger(o[0]); checkTrigger(o[1]); } -buildUnnamed2335() { +buildUnnamed1425() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed2335(core.List<api.Variable> o) { +checkUnnamed1425(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -680,9 +680,9 @@ buildCounterFolderEntities++; if (buildCounterFolderEntities < 3) { o.nextPageToken = "foo"; - o.tag = buildUnnamed2333(); - o.trigger = buildUnnamed2334(); - o.variable = buildUnnamed2335(); + o.tag = buildUnnamed1423(); + o.trigger = buildUnnamed1424(); + o.variable = buildUnnamed1425(); } buildCounterFolderEntities--; return o; @@ -692,34 +692,34 @@ buildCounterFolderEntities++; if (buildCounterFolderEntities < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2333(o.tag); - checkUnnamed2334(o.trigger); - checkUnnamed2335(o.variable); + checkUnnamed1423(o.tag); + checkUnnamed1424(o.trigger); + checkUnnamed1425(o.variable); } buildCounterFolderEntities--; } -buildUnnamed2336() { +buildUnnamed1426() { var o = new core.List<api.MergeConflict>(); o.add(buildMergeConflict()); o.add(buildMergeConflict()); return o; } -checkUnnamed2336(core.List<api.MergeConflict> o) { +checkUnnamed1426(core.List<api.MergeConflict> o) { unittest.expect(o, unittest.hasLength(2)); checkMergeConflict(o[0]); checkMergeConflict(o[1]); } -buildUnnamed2337() { +buildUnnamed1427() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed2337(core.List<api.Entity> o) { +checkUnnamed1427(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); @@ -730,8 +730,8 @@ var o = new api.GetWorkspaceStatusResponse(); buildCounterGetWorkspaceStatusResponse++; if (buildCounterGetWorkspaceStatusResponse < 3) { - o.mergeConflict = buildUnnamed2336(); - o.workspaceChange = buildUnnamed2337(); + o.mergeConflict = buildUnnamed1426(); + o.workspaceChange = buildUnnamed1427(); } buildCounterGetWorkspaceStatusResponse--; return o; @@ -740,20 +740,20 @@ checkGetWorkspaceStatusResponse(api.GetWorkspaceStatusResponse o) { buildCounterGetWorkspaceStatusResponse++; if (buildCounterGetWorkspaceStatusResponse < 3) { - checkUnnamed2336(o.mergeConflict); - checkUnnamed2337(o.workspaceChange); + checkUnnamed1426(o.mergeConflict); + checkUnnamed1427(o.workspaceChange); } buildCounterGetWorkspaceStatusResponse--; } -buildUnnamed2338() { +buildUnnamed1428() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed2338(core.List<api.Account> o) { +checkUnnamed1428(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -764,7 +764,7 @@ var o = new api.ListAccountsResponse(); buildCounterListAccountsResponse++; if (buildCounterListAccountsResponse < 3) { - o.account = buildUnnamed2338(); + o.account = buildUnnamed1428(); o.nextPageToken = "foo"; } buildCounterListAccountsResponse--; @@ -774,20 +774,20 @@ checkListAccountsResponse(api.ListAccountsResponse o) { buildCounterListAccountsResponse++; if (buildCounterListAccountsResponse < 3) { - checkUnnamed2338(o.account); + checkUnnamed1428(o.account); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAccountsResponse--; } -buildUnnamed2339() { +buildUnnamed1429() { var o = new core.List<api.ContainerVersionHeader>(); o.add(buildContainerVersionHeader()); o.add(buildContainerVersionHeader()); return o; } -checkUnnamed2339(core.List<api.ContainerVersionHeader> o) { +checkUnnamed1429(core.List<api.ContainerVersionHeader> o) { unittest.expect(o, unittest.hasLength(2)); checkContainerVersionHeader(o[0]); checkContainerVersionHeader(o[1]); @@ -798,7 +798,7 @@ var o = new api.ListContainerVersionsResponse(); buildCounterListContainerVersionsResponse++; if (buildCounterListContainerVersionsResponse < 3) { - o.containerVersionHeader = buildUnnamed2339(); + o.containerVersionHeader = buildUnnamed1429(); o.nextPageToken = "foo"; } buildCounterListContainerVersionsResponse--; @@ -808,20 +808,20 @@ checkListContainerVersionsResponse(api.ListContainerVersionsResponse o) { buildCounterListContainerVersionsResponse++; if (buildCounterListContainerVersionsResponse < 3) { - checkUnnamed2339(o.containerVersionHeader); + checkUnnamed1429(o.containerVersionHeader); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListContainerVersionsResponse--; } -buildUnnamed2340() { +buildUnnamed1430() { var o = new core.List<api.Container>(); o.add(buildContainer()); o.add(buildContainer()); return o; } -checkUnnamed2340(core.List<api.Container> o) { +checkUnnamed1430(core.List<api.Container> o) { unittest.expect(o, unittest.hasLength(2)); checkContainer(o[0]); checkContainer(o[1]); @@ -832,7 +832,7 @@ var o = new api.ListContainersResponse(); buildCounterListContainersResponse++; if (buildCounterListContainersResponse < 3) { - o.container = buildUnnamed2340(); + o.container = buildUnnamed1430(); o.nextPageToken = "foo"; } buildCounterListContainersResponse--; @@ -842,20 +842,20 @@ checkListContainersResponse(api.ListContainersResponse o) { buildCounterListContainersResponse++; if (buildCounterListContainersResponse < 3) { - checkUnnamed2340(o.container); + checkUnnamed1430(o.container); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListContainersResponse--; } -buildUnnamed2341() { +buildUnnamed1431() { var o = new core.List<api.BuiltInVariable>(); o.add(buildBuiltInVariable()); o.add(buildBuiltInVariable()); return o; } -checkUnnamed2341(core.List<api.BuiltInVariable> o) { +checkUnnamed1431(core.List<api.BuiltInVariable> o) { unittest.expect(o, unittest.hasLength(2)); checkBuiltInVariable(o[0]); checkBuiltInVariable(o[1]); @@ -866,7 +866,7 @@ var o = new api.ListEnabledBuiltInVariablesResponse(); buildCounterListEnabledBuiltInVariablesResponse++; if (buildCounterListEnabledBuiltInVariablesResponse < 3) { - o.builtInVariable = buildUnnamed2341(); + o.builtInVariable = buildUnnamed1431(); o.nextPageToken = "foo"; } buildCounterListEnabledBuiltInVariablesResponse--; @@ -877,20 +877,20 @@ api.ListEnabledBuiltInVariablesResponse o) { buildCounterListEnabledBuiltInVariablesResponse++; if (buildCounterListEnabledBuiltInVariablesResponse < 3) { - checkUnnamed2341(o.builtInVariable); + checkUnnamed1431(o.builtInVariable); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListEnabledBuiltInVariablesResponse--; } -buildUnnamed2342() { +buildUnnamed1432() { var o = new core.List<api.Environment>(); o.add(buildEnvironment()); o.add(buildEnvironment()); return o; } -checkUnnamed2342(core.List<api.Environment> o) { +checkUnnamed1432(core.List<api.Environment> o) { unittest.expect(o, unittest.hasLength(2)); checkEnvironment(o[0]); checkEnvironment(o[1]); @@ -901,7 +901,7 @@ var o = new api.ListEnvironmentsResponse(); buildCounterListEnvironmentsResponse++; if (buildCounterListEnvironmentsResponse < 3) { - o.environment = buildUnnamed2342(); + o.environment = buildUnnamed1432(); o.nextPageToken = "foo"; } buildCounterListEnvironmentsResponse--; @@ -911,20 +911,20 @@ checkListEnvironmentsResponse(api.ListEnvironmentsResponse o) { buildCounterListEnvironmentsResponse++; if (buildCounterListEnvironmentsResponse < 3) { - checkUnnamed2342(o.environment); + checkUnnamed1432(o.environment); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListEnvironmentsResponse--; } -buildUnnamed2343() { +buildUnnamed1433() { var o = new core.List<api.Folder>(); o.add(buildFolder()); o.add(buildFolder()); return o; } -checkUnnamed2343(core.List<api.Folder> o) { +checkUnnamed1433(core.List<api.Folder> o) { unittest.expect(o, unittest.hasLength(2)); checkFolder(o[0]); checkFolder(o[1]); @@ -935,7 +935,7 @@ var o = new api.ListFoldersResponse(); buildCounterListFoldersResponse++; if (buildCounterListFoldersResponse < 3) { - o.folder = buildUnnamed2343(); + o.folder = buildUnnamed1433(); o.nextPageToken = "foo"; } buildCounterListFoldersResponse--; @@ -945,20 +945,20 @@ checkListFoldersResponse(api.ListFoldersResponse o) { buildCounterListFoldersResponse++; if (buildCounterListFoldersResponse < 3) { - checkUnnamed2343(o.folder); + checkUnnamed1433(o.folder); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListFoldersResponse--; } -buildUnnamed2344() { +buildUnnamed1434() { var o = new core.List<api.Tag>(); o.add(buildTag()); o.add(buildTag()); return o; } -checkUnnamed2344(core.List<api.Tag> o) { +checkUnnamed1434(core.List<api.Tag> o) { unittest.expect(o, unittest.hasLength(2)); checkTag(o[0]); checkTag(o[1]); @@ -970,7 +970,7 @@ buildCounterListTagsResponse++; if (buildCounterListTagsResponse < 3) { o.nextPageToken = "foo"; - o.tag = buildUnnamed2344(); + o.tag = buildUnnamed1434(); } buildCounterListTagsResponse--; return o; @@ -980,19 +980,19 @@ buildCounterListTagsResponse++; if (buildCounterListTagsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2344(o.tag); + checkUnnamed1434(o.tag); } buildCounterListTagsResponse--; } -buildUnnamed2345() { +buildUnnamed1435() { var o = new core.List<api.Trigger>(); o.add(buildTrigger()); o.add(buildTrigger()); return o; } -checkUnnamed2345(core.List<api.Trigger> o) { +checkUnnamed1435(core.List<api.Trigger> o) { unittest.expect(o, unittest.hasLength(2)); checkTrigger(o[0]); checkTrigger(o[1]); @@ -1004,7 +1004,7 @@ buildCounterListTriggersResponse++; if (buildCounterListTriggersResponse < 3) { o.nextPageToken = "foo"; - o.trigger = buildUnnamed2345(); + o.trigger = buildUnnamed1435(); } buildCounterListTriggersResponse--; return o; @@ -1014,19 +1014,19 @@ buildCounterListTriggersResponse++; if (buildCounterListTriggersResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2345(o.trigger); + checkUnnamed1435(o.trigger); } buildCounterListTriggersResponse--; } -buildUnnamed2346() { +buildUnnamed1436() { var o = new core.List<api.UserPermission>(); o.add(buildUserPermission()); o.add(buildUserPermission()); return o; } -checkUnnamed2346(core.List<api.UserPermission> o) { +checkUnnamed1436(core.List<api.UserPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserPermission(o[0]); checkUserPermission(o[1]); @@ -1038,7 +1038,7 @@ buildCounterListUserPermissionsResponse++; if (buildCounterListUserPermissionsResponse < 3) { o.nextPageToken = "foo"; - o.userPermission = buildUnnamed2346(); + o.userPermission = buildUnnamed1436(); } buildCounterListUserPermissionsResponse--; return o; @@ -1048,19 +1048,19 @@ buildCounterListUserPermissionsResponse++; if (buildCounterListUserPermissionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2346(o.userPermission); + checkUnnamed1436(o.userPermission); } buildCounterListUserPermissionsResponse--; } -buildUnnamed2347() { +buildUnnamed1437() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed2347(core.List<api.Variable> o) { +checkUnnamed1437(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -1072,7 +1072,7 @@ buildCounterListVariablesResponse++; if (buildCounterListVariablesResponse < 3) { o.nextPageToken = "foo"; - o.variable = buildUnnamed2347(); + o.variable = buildUnnamed1437(); } buildCounterListVariablesResponse--; return o; @@ -1082,19 +1082,19 @@ buildCounterListVariablesResponse++; if (buildCounterListVariablesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2347(o.variable); + checkUnnamed1437(o.variable); } buildCounterListVariablesResponse--; } -buildUnnamed2348() { +buildUnnamed1438() { var o = new core.List<api.Workspace>(); o.add(buildWorkspace()); o.add(buildWorkspace()); return o; } -checkUnnamed2348(core.List<api.Workspace> o) { +checkUnnamed1438(core.List<api.Workspace> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkspace(o[0]); checkWorkspace(o[1]); @@ -1106,7 +1106,7 @@ buildCounterListWorkspacesResponse++; if (buildCounterListWorkspacesResponse < 3) { o.nextPageToken = "foo"; - o.workspace = buildUnnamed2348(); + o.workspace = buildUnnamed1438(); } buildCounterListWorkspacesResponse--; return o; @@ -1116,7 +1116,7 @@ buildCounterListWorkspacesResponse++; if (buildCounterListWorkspacesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2348(o.workspace); + checkUnnamed1438(o.workspace); } buildCounterListWorkspacesResponse--; } @@ -1142,27 +1142,27 @@ buildCounterMergeConflict--; } -buildUnnamed2349() { +buildUnnamed1439() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed2349(core.List<api.Parameter> o) { +checkUnnamed1439(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); } -buildUnnamed2350() { +buildUnnamed1440() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed2350(core.List<api.Parameter> o) { +checkUnnamed1440(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -1174,8 +1174,8 @@ buildCounterParameter++; if (buildCounterParameter < 3) { o.key = "foo"; - o.list = buildUnnamed2349(); - o.map = buildUnnamed2350(); + o.list = buildUnnamed1439(); + o.map = buildUnnamed1440(); o.type = "foo"; o.value = "foo"; } @@ -1187,8 +1187,8 @@ buildCounterParameter++; if (buildCounterParameter < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed2349(o.list); - checkUnnamed2350(o.map); + checkUnnamed1439(o.list); + checkUnnamed1440(o.map); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); } @@ -1376,14 +1376,14 @@ buildCounterSyncStatus--; } -buildUnnamed2351() { +buildUnnamed1441() { var o = new core.List<api.MergeConflict>(); o.add(buildMergeConflict()); o.add(buildMergeConflict()); return o; } -checkUnnamed2351(core.List<api.MergeConflict> o) { +checkUnnamed1441(core.List<api.MergeConflict> o) { unittest.expect(o, unittest.hasLength(2)); checkMergeConflict(o[0]); checkMergeConflict(o[1]); @@ -1394,7 +1394,7 @@ var o = new api.SyncWorkspaceResponse(); buildCounterSyncWorkspaceResponse++; if (buildCounterSyncWorkspaceResponse < 3) { - o.mergeConflict = buildUnnamed2351(); + o.mergeConflict = buildUnnamed1441(); o.syncStatus = buildSyncStatus(); } buildCounterSyncWorkspaceResponse--; @@ -1404,98 +1404,98 @@ checkSyncWorkspaceResponse(api.SyncWorkspaceResponse o) { buildCounterSyncWorkspaceResponse++; if (buildCounterSyncWorkspaceResponse < 3) { - checkUnnamed2351(o.mergeConflict); + checkUnnamed1441(o.mergeConflict); checkSyncStatus(o.syncStatus); } buildCounterSyncWorkspaceResponse--; } -buildUnnamed2352() { +buildUnnamed1442() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2352(core.List<core.String> o) { +checkUnnamed1442(core.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() { +buildUnnamed1443() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2353(core.List<core.String> o) { +checkUnnamed1443(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2354() { +buildUnnamed1444() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2354(core.List<core.String> o) { +checkUnnamed1444(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2355() { +buildUnnamed1445() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2355(core.List<core.String> o) { +checkUnnamed1445(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2356() { +buildUnnamed1446() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed2356(core.List<api.Parameter> o) { +checkUnnamed1446(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); } -buildUnnamed2357() { +buildUnnamed1447() { var o = new core.List<api.SetupTag>(); o.add(buildSetupTag()); o.add(buildSetupTag()); return o; } -checkUnnamed2357(core.List<api.SetupTag> o) { +checkUnnamed1447(core.List<api.SetupTag> o) { unittest.expect(o, unittest.hasLength(2)); checkSetupTag(o[0]); checkSetupTag(o[1]); } -buildUnnamed2358() { +buildUnnamed1448() { var o = new core.List<api.TeardownTag>(); o.add(buildTeardownTag()); o.add(buildTeardownTag()); return o; } -checkUnnamed2358(core.List<api.TeardownTag> o) { +checkUnnamed1448(core.List<api.TeardownTag> o) { unittest.expect(o, unittest.hasLength(2)); checkTeardownTag(o[0]); checkTeardownTag(o[1]); @@ -1507,27 +1507,27 @@ buildCounterTag++; if (buildCounterTag < 3) { o.accountId = "foo"; - o.blockingRuleId = buildUnnamed2352(); - o.blockingTriggerId = buildUnnamed2353(); + o.blockingRuleId = buildUnnamed1442(); + o.blockingTriggerId = buildUnnamed1443(); o.containerId = "foo"; o.fingerprint = "foo"; - o.firingRuleId = buildUnnamed2354(); - o.firingTriggerId = buildUnnamed2355(); + o.firingRuleId = buildUnnamed1444(); + o.firingTriggerId = buildUnnamed1445(); o.liveOnly = true; o.name = "foo"; o.notes = "foo"; - o.parameter = buildUnnamed2356(); + o.parameter = buildUnnamed1446(); o.parentFolderId = "foo"; o.path = "foo"; o.paused = true; o.priority = buildParameter(); o.scheduleEndMs = "foo"; o.scheduleStartMs = "foo"; - o.setupTag = buildUnnamed2357(); + o.setupTag = buildUnnamed1447(); o.tagFiringOption = "foo"; o.tagId = "foo"; o.tagManagerUrl = "foo"; - o.teardownTag = buildUnnamed2358(); + o.teardownTag = buildUnnamed1448(); o.type = "foo"; o.workspaceId = "foo"; } @@ -1539,27 +1539,27 @@ buildCounterTag++; if (buildCounterTag < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2352(o.blockingRuleId); - checkUnnamed2353(o.blockingTriggerId); + checkUnnamed1442(o.blockingRuleId); + checkUnnamed1443(o.blockingTriggerId); unittest.expect(o.containerId, unittest.equals('foo')); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2354(o.firingRuleId); - checkUnnamed2355(o.firingTriggerId); + checkUnnamed1444(o.firingRuleId); + checkUnnamed1445(o.firingTriggerId); unittest.expect(o.liveOnly, unittest.isTrue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed2356(o.parameter); + checkUnnamed1446(o.parameter); unittest.expect(o.parentFolderId, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.paused, unittest.isTrue); checkParameter(o.priority); unittest.expect(o.scheduleEndMs, unittest.equals('foo')); unittest.expect(o.scheduleStartMs, unittest.equals('foo')); - checkUnnamed2357(o.setupTag); + checkUnnamed1447(o.setupTag); unittest.expect(o.tagFiringOption, unittest.equals('foo')); unittest.expect(o.tagId, unittest.equals('foo')); unittest.expect(o.tagManagerUrl, unittest.equals('foo')); - checkUnnamed2358(o.teardownTag); + checkUnnamed1448(o.teardownTag); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.workspaceId, unittest.equals('foo')); } @@ -1608,53 +1608,53 @@ buildCounterTimestamp--; } -buildUnnamed2359() { +buildUnnamed1449() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed2359(core.List<api.Condition> o) { +checkUnnamed1449(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed2360() { +buildUnnamed1450() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed2360(core.List<api.Condition> o) { +checkUnnamed1450(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed2361() { +buildUnnamed1451() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed2361(core.List<api.Condition> o) { +checkUnnamed1451(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed2362() { +buildUnnamed1452() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed2362(core.List<api.Parameter> o) { +checkUnnamed1452(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -1666,13 +1666,13 @@ buildCounterTrigger++; if (buildCounterTrigger < 3) { o.accountId = "foo"; - o.autoEventFilter = buildUnnamed2359(); + o.autoEventFilter = buildUnnamed1449(); o.checkValidation = buildParameter(); o.containerId = "foo"; o.continuousTimeMinMilliseconds = buildParameter(); - o.customEventFilter = buildUnnamed2360(); + o.customEventFilter = buildUnnamed1450(); o.eventName = buildParameter(); - o.filter = buildUnnamed2361(); + o.filter = buildUnnamed1451(); o.fingerprint = "foo"; o.horizontalScrollPercentageList = buildParameter(); o.interval = buildParameter(); @@ -1681,7 +1681,7 @@ o.maxTimerLengthSeconds = buildParameter(); o.name = "foo"; o.notes = "foo"; - o.parameter = buildUnnamed2362(); + o.parameter = buildUnnamed1452(); o.parentFolderId = "foo"; o.path = "foo"; o.selector = buildParameter(); @@ -1706,13 +1706,13 @@ buildCounterTrigger++; if (buildCounterTrigger < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2359(o.autoEventFilter); + checkUnnamed1449(o.autoEventFilter); checkParameter(o.checkValidation); unittest.expect(o.containerId, unittest.equals('foo')); checkParameter(o.continuousTimeMinMilliseconds); - checkUnnamed2360(o.customEventFilter); + checkUnnamed1450(o.customEventFilter); checkParameter(o.eventName); - checkUnnamed2361(o.filter); + checkUnnamed1451(o.filter); unittest.expect(o.fingerprint, unittest.equals('foo')); checkParameter(o.horizontalScrollPercentageList); checkParameter(o.interval); @@ -1721,7 +1721,7 @@ checkParameter(o.maxTimerLengthSeconds); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed2362(o.parameter); + checkUnnamed1452(o.parameter); unittest.expect(o.parentFolderId, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); checkParameter(o.selector); @@ -1741,14 +1741,14 @@ buildCounterTrigger--; } -buildUnnamed2363() { +buildUnnamed1453() { var o = new core.List<api.WorkspaceProposalUser>(); o.add(buildWorkspaceProposalUser()); o.add(buildWorkspaceProposalUser()); return o; } -checkUnnamed2363(core.List<api.WorkspaceProposalUser> o) { +checkUnnamed1453(core.List<api.WorkspaceProposalUser> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkspaceProposalUser(o[0]); checkWorkspaceProposalUser(o[1]); @@ -1761,7 +1761,7 @@ if (buildCounterUpdateWorkspaceProposalRequest < 3) { o.fingerprint = "foo"; o.newComment = buildWorkspaceProposalHistoryComment(); - o.reviewers = buildUnnamed2363(); + o.reviewers = buildUnnamed1453(); o.status = "foo"; } buildCounterUpdateWorkspaceProposalRequest--; @@ -1773,20 +1773,20 @@ if (buildCounterUpdateWorkspaceProposalRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); checkWorkspaceProposalHistoryComment(o.newComment); - checkUnnamed2363(o.reviewers); + checkUnnamed1453(o.reviewers); unittest.expect(o.status, unittest.equals('foo')); } buildCounterUpdateWorkspaceProposalRequest--; } -buildUnnamed2364() { +buildUnnamed1454() { var o = new core.List<api.ContainerAccess>(); o.add(buildContainerAccess()); o.add(buildContainerAccess()); return o; } -checkUnnamed2364(core.List<api.ContainerAccess> o) { +checkUnnamed1454(core.List<api.ContainerAccess> o) { unittest.expect(o, unittest.hasLength(2)); checkContainerAccess(o[0]); checkContainerAccess(o[1]); @@ -1799,7 +1799,7 @@ if (buildCounterUserPermission < 3) { o.accountAccess = buildAccountAccess(); o.accountId = "foo"; - o.containerAccess = buildUnnamed2364(); + o.containerAccess = buildUnnamed1454(); o.emailAddress = "foo"; o.path = "foo"; } @@ -1812,47 +1812,47 @@ if (buildCounterUserPermission < 3) { checkAccountAccess(o.accountAccess); unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2364(o.containerAccess); + checkUnnamed1454(o.containerAccess); unittest.expect(o.emailAddress, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); } buildCounterUserPermission--; } -buildUnnamed2365() { +buildUnnamed1455() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2365(core.List<core.String> o) { +checkUnnamed1455(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2366() { +buildUnnamed1456() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2366(core.List<core.String> o) { +checkUnnamed1456(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2367() { +buildUnnamed1457() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed2367(core.List<api.Parameter> o) { +checkUnnamed1457(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -1865,12 +1865,12 @@ if (buildCounterVariable < 3) { o.accountId = "foo"; o.containerId = "foo"; - o.disablingTriggerId = buildUnnamed2365(); - o.enablingTriggerId = buildUnnamed2366(); + o.disablingTriggerId = buildUnnamed1455(); + o.enablingTriggerId = buildUnnamed1456(); o.fingerprint = "foo"; o.name = "foo"; o.notes = "foo"; - o.parameter = buildUnnamed2367(); + o.parameter = buildUnnamed1457(); o.parentFolderId = "foo"; o.path = "foo"; o.scheduleEndMs = "foo"; @@ -1889,12 +1889,12 @@ if (buildCounterVariable < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed2365(o.disablingTriggerId); - checkUnnamed2366(o.enablingTriggerId); + checkUnnamed1455(o.disablingTriggerId); + checkUnnamed1456(o.enablingTriggerId); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed2367(o.parameter); + checkUnnamed1457(o.parameter); unittest.expect(o.parentFolderId, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.scheduleEndMs, unittest.equals('foo')); @@ -1940,40 +1940,40 @@ buildCounterWorkspace--; } -buildUnnamed2368() { +buildUnnamed1458() { var o = new core.List<api.WorkspaceProposalUser>(); o.add(buildWorkspaceProposalUser()); o.add(buildWorkspaceProposalUser()); return o; } -checkUnnamed2368(core.List<api.WorkspaceProposalUser> o) { +checkUnnamed1458(core.List<api.WorkspaceProposalUser> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkspaceProposalUser(o[0]); checkWorkspaceProposalUser(o[1]); } -buildUnnamed2369() { +buildUnnamed1459() { var o = new core.List<api.WorkspaceProposalHistory>(); o.add(buildWorkspaceProposalHistory()); o.add(buildWorkspaceProposalHistory()); return o; } -checkUnnamed2369(core.List<api.WorkspaceProposalHistory> o) { +checkUnnamed1459(core.List<api.WorkspaceProposalHistory> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkspaceProposalHistory(o[0]); checkWorkspaceProposalHistory(o[1]); } -buildUnnamed2370() { +buildUnnamed1460() { var o = new core.List<api.WorkspaceProposalUser>(); o.add(buildWorkspaceProposalUser()); o.add(buildWorkspaceProposalUser()); return o; } -checkUnnamed2370(core.List<api.WorkspaceProposalUser> o) { +checkUnnamed1460(core.List<api.WorkspaceProposalUser> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkspaceProposalUser(o[0]); checkWorkspaceProposalUser(o[1]); @@ -1984,11 +1984,11 @@ var o = new api.WorkspaceProposal(); buildCounterWorkspaceProposal++; if (buildCounterWorkspaceProposal < 3) { - o.authors = buildUnnamed2368(); + o.authors = buildUnnamed1458(); o.fingerprint = "foo"; - o.history = buildUnnamed2369(); + o.history = buildUnnamed1459(); o.path = "foo"; - o.reviewers = buildUnnamed2370(); + o.reviewers = buildUnnamed1460(); o.status = "foo"; } buildCounterWorkspaceProposal--; @@ -1998,11 +1998,11 @@ checkWorkspaceProposal(api.WorkspaceProposal o) { buildCounterWorkspaceProposal++; if (buildCounterWorkspaceProposal < 3) { - checkUnnamed2368(o.authors); + checkUnnamed1458(o.authors); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2369(o.history); + checkUnnamed1459(o.history); unittest.expect(o.path, unittest.equals('foo')); - checkUnnamed2370(o.reviewers); + checkUnnamed1460(o.reviewers); unittest.expect(o.status, unittest.equals('foo')); } buildCounterWorkspaceProposal--; @@ -2097,14 +2097,14 @@ buildCounterWorkspaceProposalUser--; } -buildUnnamed2371() { +buildUnnamed1461() { var o = new core.List<api.ZoneChildContainer>(); o.add(buildZoneChildContainer()); o.add(buildZoneChildContainer()); return o; } -checkUnnamed2371(core.List<api.ZoneChildContainer> o) { +checkUnnamed1461(core.List<api.ZoneChildContainer> o) { unittest.expect(o, unittest.hasLength(2)); checkZoneChildContainer(o[0]); checkZoneChildContainer(o[1]); @@ -2117,7 +2117,7 @@ if (buildCounterZone < 3) { o.accountId = "foo"; o.boundary = buildZoneBoundary(); - o.childContainer = buildUnnamed2371(); + o.childContainer = buildUnnamed1461(); o.containerId = "foo"; o.fingerprint = "foo"; o.name = "foo"; @@ -2137,7 +2137,7 @@ if (buildCounterZone < 3) { unittest.expect(o.accountId, unittest.equals('foo')); checkZoneBoundary(o.boundary); - checkUnnamed2371(o.childContainer); + checkUnnamed1461(o.childContainer); unittest.expect(o.containerId, unittest.equals('foo')); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -2151,27 +2151,27 @@ buildCounterZone--; } -buildUnnamed2372() { +buildUnnamed1462() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed2372(core.List<api.Condition> o) { +checkUnnamed1462(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed2373() { +buildUnnamed1463() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2373(core.List<core.String> o) { +checkUnnamed1463(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2182,8 +2182,8 @@ var o = new api.ZoneBoundary(); buildCounterZoneBoundary++; if (buildCounterZoneBoundary < 3) { - o.condition = buildUnnamed2372(); - o.customEvaluationTriggerId = buildUnnamed2373(); + o.condition = buildUnnamed1462(); + o.customEvaluationTriggerId = buildUnnamed1463(); } buildCounterZoneBoundary--; return o; @@ -2192,8 +2192,8 @@ checkZoneBoundary(api.ZoneBoundary o) { buildCounterZoneBoundary++; if (buildCounterZoneBoundary < 3) { - checkUnnamed2372(o.condition); - checkUnnamed2373(o.customEvaluationTriggerId); + checkUnnamed1462(o.condition); + checkUnnamed1463(o.customEvaluationTriggerId); } buildCounterZoneBoundary--; } @@ -2219,14 +2219,14 @@ buildCounterZoneChildContainer--; } -buildUnnamed2374() { +buildUnnamed1464() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2374(core.List<core.String> o) { +checkUnnamed1464(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2238,7 +2238,7 @@ buildCounterZoneTypeRestriction++; if (buildCounterZoneTypeRestriction < 3) { o.enable = true; - o.whitelistedTypeId = buildUnnamed2374(); + o.whitelistedTypeId = buildUnnamed1464(); } buildCounterZoneTypeRestriction--; return o; @@ -2248,71 +2248,71 @@ buildCounterZoneTypeRestriction++; if (buildCounterZoneTypeRestriction < 3) { unittest.expect(o.enable, unittest.isTrue); - checkUnnamed2374(o.whitelistedTypeId); + checkUnnamed1464(o.whitelistedTypeId); } buildCounterZoneTypeRestriction--; } -buildUnnamed2375() { +buildUnnamed1465() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2375(core.List<core.String> o) { +checkUnnamed1465(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2376() { +buildUnnamed1466() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2376(core.List<core.String> o) { +checkUnnamed1466(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2377() { +buildUnnamed1467() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2377(core.List<core.String> o) { +checkUnnamed1467(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2378() { +buildUnnamed1468() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2378(core.List<core.String> o) { +checkUnnamed1468(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2379() { +buildUnnamed1469() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2379(core.List<core.String> o) { +checkUnnamed1469(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4629,7 +4629,7 @@ .workspaces .builtInVariables; var arg_parent = "foo"; - var arg_type = buildUnnamed2375(); + var arg_type = buildUnnamed1465(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4683,7 +4683,7 @@ .workspaces .builtInVariables; var arg_path = "foo"; - var arg_type = buildUnnamed2376(); + var arg_type = buildUnnamed1466(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5092,9 +5092,9 @@ new api.TagmanagerApi(mock).accounts.containers.workspaces.folders; var arg_request = buildFolder(); var arg_path = "foo"; - var arg_tagId = buildUnnamed2377(); - var arg_triggerId = buildUnnamed2378(); - var arg_variableId = buildUnnamed2379(); + var arg_tagId = buildUnnamed1467(); + var arg_triggerId = buildUnnamed1468(); + var arg_variableId = buildUnnamed1469(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Folder.fromJson(json);
diff --git a/generated/googleapis/test/tasks/v1_test.dart b/generated/googleapis/test/tasks/v1_test.dart index 81460c2..90ca970 100644 --- a/generated/googleapis/test/tasks/v1_test.dart +++ b/generated/googleapis/test/tasks/v1_test.dart
@@ -73,14 +73,14 @@ buildCounterTaskLinks--; } -buildUnnamed3739() { +buildUnnamed3537() { var o = new core.List<api.TaskLinks>(); o.add(buildTaskLinks()); o.add(buildTaskLinks()); return o; } -checkUnnamed3739(core.List<api.TaskLinks> o) { +checkUnnamed3537(core.List<api.TaskLinks> o) { unittest.expect(o, unittest.hasLength(2)); checkTaskLinks(o[0]); checkTaskLinks(o[1]); @@ -98,7 +98,7 @@ o.hidden = true; o.id = "foo"; o.kind = "foo"; - o.links = buildUnnamed3739(); + o.links = buildUnnamed3537(); o.notes = "foo"; o.parent = "foo"; o.position = "foo"; @@ -123,7 +123,7 @@ unittest.expect(o.hidden, unittest.isTrue); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3739(o.links); + checkUnnamed3537(o.links); unittest.expect(o.notes, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); unittest.expect(o.position, unittest.equals('foo')); @@ -166,14 +166,14 @@ buildCounterTaskList--; } -buildUnnamed3740() { +buildUnnamed3538() { var o = new core.List<api.TaskList>(); o.add(buildTaskList()); o.add(buildTaskList()); return o; } -checkUnnamed3740(core.List<api.TaskList> o) { +checkUnnamed3538(core.List<api.TaskList> o) { unittest.expect(o, unittest.hasLength(2)); checkTaskList(o[0]); checkTaskList(o[1]); @@ -185,7 +185,7 @@ buildCounterTaskLists++; if (buildCounterTaskLists < 3) { o.etag = "foo"; - o.items = buildUnnamed3740(); + o.items = buildUnnamed3538(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -197,21 +197,21 @@ buildCounterTaskLists++; if (buildCounterTaskLists < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3740(o.items); + checkUnnamed3538(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterTaskLists--; } -buildUnnamed3741() { +buildUnnamed3539() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed3741(core.List<api.Task> o) { +checkUnnamed3539(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -223,7 +223,7 @@ buildCounterTasks++; if (buildCounterTasks < 3) { o.etag = "foo"; - o.items = buildUnnamed3741(); + o.items = buildUnnamed3539(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -235,7 +235,7 @@ buildCounterTasks++; if (buildCounterTasks < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3741(o.items); + checkUnnamed3539(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); }
diff --git a/generated/googleapis/test/testing/v1_test.dart b/generated/googleapis/test/testing/v1_test.dart index 56a1b01..d7c93aa 100644 --- a/generated/googleapis/test/testing/v1_test.dart +++ b/generated/googleapis/test/testing/v1_test.dart
@@ -94,27 +94,27 @@ buildCounterAndroidDevice--; } -buildUnnamed1879() { +buildUnnamed2041() { var o = new core.List<api.AndroidModel>(); o.add(buildAndroidModel()); o.add(buildAndroidModel()); return o; } -checkUnnamed1879(core.List<api.AndroidModel> o) { +checkUnnamed2041(core.List<api.AndroidModel> o) { unittest.expect(o, unittest.hasLength(2)); checkAndroidModel(o[0]); checkAndroidModel(o[1]); } -buildUnnamed1880() { +buildUnnamed2042() { var o = new core.List<api.AndroidVersion>(); o.add(buildAndroidVersion()); o.add(buildAndroidVersion()); return o; } -checkUnnamed1880(core.List<api.AndroidVersion> o) { +checkUnnamed2042(core.List<api.AndroidVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkAndroidVersion(o[0]); checkAndroidVersion(o[1]); @@ -125,9 +125,9 @@ var o = new api.AndroidDeviceCatalog(); buildCounterAndroidDeviceCatalog++; if (buildCounterAndroidDeviceCatalog < 3) { - o.models = buildUnnamed1879(); + o.models = buildUnnamed2041(); o.runtimeConfiguration = buildAndroidRuntimeConfiguration(); - o.versions = buildUnnamed1880(); + o.versions = buildUnnamed2042(); } buildCounterAndroidDeviceCatalog--; return o; @@ -136,21 +136,21 @@ checkAndroidDeviceCatalog(api.AndroidDeviceCatalog o) { buildCounterAndroidDeviceCatalog++; if (buildCounterAndroidDeviceCatalog < 3) { - checkUnnamed1879(o.models); + checkUnnamed2041(o.models); checkAndroidRuntimeConfiguration(o.runtimeConfiguration); - checkUnnamed1880(o.versions); + checkUnnamed2042(o.versions); } buildCounterAndroidDeviceCatalog--; } -buildUnnamed1881() { +buildUnnamed2043() { var o = new core.List<api.AndroidDevice>(); o.add(buildAndroidDevice()); o.add(buildAndroidDevice()); return o; } -checkUnnamed1881(core.List<api.AndroidDevice> o) { +checkUnnamed2043(core.List<api.AndroidDevice> o) { unittest.expect(o, unittest.hasLength(2)); checkAndroidDevice(o[0]); checkAndroidDevice(o[1]); @@ -161,7 +161,7 @@ var o = new api.AndroidDeviceList(); buildCounterAndroidDeviceList++; if (buildCounterAndroidDeviceList < 3) { - o.androidDevices = buildUnnamed1881(); + o.androidDevices = buildUnnamed2043(); } buildCounterAndroidDeviceList--; return o; @@ -170,19 +170,19 @@ checkAndroidDeviceList(api.AndroidDeviceList o) { buildCounterAndroidDeviceList++; if (buildCounterAndroidDeviceList < 3) { - checkUnnamed1881(o.androidDevices); + checkUnnamed2043(o.androidDevices); } buildCounterAndroidDeviceList--; } -buildUnnamed1882() { +buildUnnamed2044() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1882(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')); @@ -199,7 +199,7 @@ o.testApk = buildFileReference(); o.testPackageId = "foo"; o.testRunnerClass = "foo"; - o.testTargets = buildUnnamed1882(); + o.testTargets = buildUnnamed2044(); } buildCounterAndroidInstrumentationTest--; return o; @@ -214,58 +214,58 @@ checkFileReference(o.testApk); unittest.expect(o.testPackageId, unittest.equals('foo')); unittest.expect(o.testRunnerClass, unittest.equals('foo')); - checkUnnamed1882(o.testTargets); + checkUnnamed2044(o.testTargets); } buildCounterAndroidInstrumentationTest--; } -buildUnnamed1883() { +buildUnnamed2045() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1883(core.List<core.String> o) { +checkUnnamed2045(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1884() { +buildUnnamed2046() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1884(core.List<core.String> o) { +checkUnnamed2046(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1885() { +buildUnnamed2047() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1885(core.List<core.String> o) { +checkUnnamed2047(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1886() { +buildUnnamed2048() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1886(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')); @@ -276,10 +276,10 @@ var o = new api.AndroidMatrix(); buildCounterAndroidMatrix++; if (buildCounterAndroidMatrix < 3) { - o.androidModelIds = buildUnnamed1883(); - o.androidVersionIds = buildUnnamed1884(); - o.locales = buildUnnamed1885(); - o.orientations = buildUnnamed1886(); + o.androidModelIds = buildUnnamed2045(); + o.androidVersionIds = buildUnnamed2046(); + o.locales = buildUnnamed2047(); + o.orientations = buildUnnamed2048(); } buildCounterAndroidMatrix--; return o; @@ -288,48 +288,48 @@ checkAndroidMatrix(api.AndroidMatrix o) { buildCounterAndroidMatrix++; if (buildCounterAndroidMatrix < 3) { - checkUnnamed1883(o.androidModelIds); - checkUnnamed1884(o.androidVersionIds); - checkUnnamed1885(o.locales); - checkUnnamed1886(o.orientations); + checkUnnamed2045(o.androidModelIds); + checkUnnamed2046(o.androidVersionIds); + checkUnnamed2047(o.locales); + checkUnnamed2048(o.orientations); } buildCounterAndroidMatrix--; } -buildUnnamed1887() { +buildUnnamed2049() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1887(core.List<core.String> o) { +checkUnnamed2049(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1888() { +buildUnnamed2050() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1888(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')); } -buildUnnamed1889() { +buildUnnamed2051() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1889(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')); @@ -349,9 +349,10 @@ o.screenDensity = 42; o.screenX = 42; o.screenY = 42; - o.supportedAbis = buildUnnamed1887(); - o.supportedVersionIds = buildUnnamed1888(); - o.tags = buildUnnamed1889(); + o.supportedAbis = buildUnnamed2049(); + o.supportedVersionIds = buildUnnamed2050(); + o.tags = buildUnnamed2051(); + o.videoRecordingNotSupported = true; } buildCounterAndroidModel--; return o; @@ -369,34 +370,35 @@ unittest.expect(o.screenDensity, unittest.equals(42)); unittest.expect(o.screenX, unittest.equals(42)); unittest.expect(o.screenY, unittest.equals(42)); - checkUnnamed1887(o.supportedAbis); - checkUnnamed1888(o.supportedVersionIds); - checkUnnamed1889(o.tags); + checkUnnamed2049(o.supportedAbis); + checkUnnamed2050(o.supportedVersionIds); + checkUnnamed2051(o.tags); + unittest.expect(o.videoRecordingNotSupported, unittest.isTrue); } buildCounterAndroidModel--; } -buildUnnamed1890() { +buildUnnamed2052() { var o = new core.List<api.RoboDirective>(); o.add(buildRoboDirective()); o.add(buildRoboDirective()); return o; } -checkUnnamed1890(core.List<api.RoboDirective> o) { +checkUnnamed2052(core.List<api.RoboDirective> o) { unittest.expect(o, unittest.hasLength(2)); checkRoboDirective(o[0]); checkRoboDirective(o[1]); } -buildUnnamed1891() { +buildUnnamed2053() { var o = new core.List<api.RoboStartingIntent>(); o.add(buildRoboStartingIntent()); o.add(buildRoboStartingIntent()); return o; } -checkUnnamed1891(core.List<api.RoboStartingIntent> o) { +checkUnnamed2053(core.List<api.RoboStartingIntent> o) { unittest.expect(o, unittest.hasLength(2)); checkRoboStartingIntent(o[0]); checkRoboStartingIntent(o[1]); @@ -412,8 +414,9 @@ o.appPackageId = "foo"; o.maxDepth = 42; o.maxSteps = 42; - o.roboDirectives = buildUnnamed1890(); - o.startingIntents = buildUnnamed1891(); + o.roboDirectives = buildUnnamed2052(); + o.roboScript = buildFileReference(); + o.startingIntents = buildUnnamed2053(); } buildCounterAndroidRoboTest--; return o; @@ -427,33 +430,34 @@ unittest.expect(o.appPackageId, unittest.equals('foo')); unittest.expect(o.maxDepth, unittest.equals(42)); unittest.expect(o.maxSteps, unittest.equals(42)); - checkUnnamed1890(o.roboDirectives); - checkUnnamed1891(o.startingIntents); + checkUnnamed2052(o.roboDirectives); + checkFileReference(o.roboScript); + checkUnnamed2053(o.startingIntents); } buildCounterAndroidRoboTest--; } -buildUnnamed1892() { +buildUnnamed2054() { var o = new core.List<api.Locale>(); o.add(buildLocale()); o.add(buildLocale()); return o; } -checkUnnamed1892(core.List<api.Locale> o) { +checkUnnamed2054(core.List<api.Locale> o) { unittest.expect(o, unittest.hasLength(2)); checkLocale(o[0]); checkLocale(o[1]); } -buildUnnamed1893() { +buildUnnamed2055() { var o = new core.List<api.Orientation>(); o.add(buildOrientation()); o.add(buildOrientation()); return o; } -checkUnnamed1893(core.List<api.Orientation> o) { +checkUnnamed2055(core.List<api.Orientation> o) { unittest.expect(o, unittest.hasLength(2)); checkOrientation(o[0]); checkOrientation(o[1]); @@ -464,8 +468,8 @@ var o = new api.AndroidRuntimeConfiguration(); buildCounterAndroidRuntimeConfiguration++; if (buildCounterAndroidRuntimeConfiguration < 3) { - o.locales = buildUnnamed1892(); - o.orientations = buildUnnamed1893(); + o.locales = buildUnnamed2054(); + o.orientations = buildUnnamed2055(); } buildCounterAndroidRuntimeConfiguration--; return o; @@ -474,33 +478,33 @@ checkAndroidRuntimeConfiguration(api.AndroidRuntimeConfiguration o) { buildCounterAndroidRuntimeConfiguration++; if (buildCounterAndroidRuntimeConfiguration < 3) { - checkUnnamed1892(o.locales); - checkUnnamed1893(o.orientations); + checkUnnamed2054(o.locales); + checkUnnamed2055(o.orientations); } buildCounterAndroidRuntimeConfiguration--; } -buildUnnamed1894() { +buildUnnamed2056() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1894(core.List<core.String> o) { +checkUnnamed2056(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1895() { +buildUnnamed2057() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1895(core.List<core.int> o) { +checkUnnamed2057(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)); @@ -513,8 +517,8 @@ if (buildCounterAndroidTestLoop < 3) { o.appApk = buildFileReference(); o.appPackageId = "foo"; - o.scenarioLabels = buildUnnamed1894(); - o.scenarios = buildUnnamed1895(); + o.scenarioLabels = buildUnnamed2056(); + o.scenarios = buildUnnamed2057(); } buildCounterAndroidTestLoop--; return o; @@ -525,20 +529,20 @@ if (buildCounterAndroidTestLoop < 3) { checkFileReference(o.appApk); unittest.expect(o.appPackageId, unittest.equals('foo')); - checkUnnamed1894(o.scenarioLabels); - checkUnnamed1895(o.scenarios); + checkUnnamed2056(o.scenarioLabels); + checkUnnamed2057(o.scenarios); } buildCounterAndroidTestLoop--; } -buildUnnamed1896() { +buildUnnamed2058() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1896(core.List<core.String> o) { +checkUnnamed2058(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -554,7 +558,7 @@ o.distribution = buildDistribution(); o.id = "foo"; o.releaseDate = buildDate(); - o.tags = buildUnnamed1896(); + o.tags = buildUnnamed2058(); o.versionString = "foo"; } buildCounterAndroidVersion--; @@ -569,12 +573,33 @@ checkDistribution(o.distribution); unittest.expect(o.id, unittest.equals('foo')); checkDate(o.releaseDate); - checkUnnamed1896(o.tags); + checkUnnamed2058(o.tags); unittest.expect(o.versionString, unittest.equals('foo')); } buildCounterAndroidVersion--; } +core.int buildCounterApk = 0; +buildApk() { + var o = new api.Apk(); + buildCounterApk++; + if (buildCounterApk < 3) { + o.location = buildFileReference(); + o.packageName = "foo"; + } + buildCounterApk--; + return o; +} + +checkApk(api.Apk o) { + buildCounterApk++; + if (buildCounterApk < 3) { + checkFileReference(o.location); + unittest.expect(o.packageName, unittest.equals('foo')); + } + buildCounterApk--; +} + core.int buildCounterApkDetail = 0; buildApkDetail() { var o = new api.ApkDetail(); @@ -594,14 +619,14 @@ buildCounterApkDetail--; } -buildUnnamed1897() { +buildUnnamed2059() { var o = new core.List<api.IntentFilter>(); o.add(buildIntentFilter()); o.add(buildIntentFilter()); return o; } -checkUnnamed1897(core.List<api.IntentFilter> o) { +checkUnnamed2059(core.List<api.IntentFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkIntentFilter(o[0]); checkIntentFilter(o[1]); @@ -613,7 +638,7 @@ buildCounterApkManifest++; if (buildCounterApkManifest < 3) { o.applicationLabel = "foo"; - o.intentFilters = buildUnnamed1897(); + o.intentFilters = buildUnnamed2059(); o.maxSdkVersion = 42; o.minSdkVersion = 42; o.packageName = "foo"; @@ -626,7 +651,7 @@ buildCounterApkManifest++; if (buildCounterApkManifest < 3) { unittest.expect(o.applicationLabel, unittest.equals('foo')); - checkUnnamed1897(o.intentFilters); + checkUnnamed2059(o.intentFilters); unittest.expect(o.maxSdkVersion, unittest.equals(42)); unittest.expect(o.minSdkVersion, unittest.equals(42)); unittest.expect(o.packageName, unittest.equals('foo')); @@ -653,14 +678,14 @@ buildCounterCancelTestMatrixResponse--; } -buildUnnamed1898() { +buildUnnamed2060() { var o = new core.List<api.ClientInfoDetail>(); o.add(buildClientInfoDetail()); o.add(buildClientInfoDetail()); return o; } -checkUnnamed1898(core.List<api.ClientInfoDetail> o) { +checkUnnamed2060(core.List<api.ClientInfoDetail> o) { unittest.expect(o, unittest.hasLength(2)); checkClientInfoDetail(o[0]); checkClientInfoDetail(o[1]); @@ -671,7 +696,7 @@ var o = new api.ClientInfo(); buildCounterClientInfo++; if (buildCounterClientInfo < 3) { - o.clientInfoDetails = buildUnnamed1898(); + o.clientInfoDetails = buildUnnamed2060(); o.name = "foo"; } buildCounterClientInfo--; @@ -681,7 +706,7 @@ checkClientInfo(api.ClientInfo o) { buildCounterClientInfo++; if (buildCounterClientInfo < 3) { - checkUnnamed1898(o.clientInfoDetails); + checkUnnamed2060(o.clientInfoDetails); unittest.expect(o.name, unittest.equals('foo')); } buildCounterClientInfo--; @@ -737,6 +762,7 @@ buildCounterDeviceFile++; if (buildCounterDeviceFile < 3) { o.obbFile = buildObbFile(); + o.regularFile = buildRegularFile(); } buildCounterDeviceFile--; return o; @@ -746,6 +772,7 @@ buildCounterDeviceFile++; if (buildCounterDeviceFile < 3) { checkObbFile(o.obbFile); + checkRegularFile(o.regularFile); } buildCounterDeviceFile--; } @@ -904,27 +931,27 @@ buildCounterGoogleCloudStorage--; } -buildUnnamed1899() { +buildUnnamed2061() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1899(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')); } -buildUnnamed1900() { +buildUnnamed2062() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1900(core.List<core.String> o) { +checkUnnamed2062(core.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,8 +962,8 @@ var o = new api.IntentFilter(); buildCounterIntentFilter++; if (buildCounterIntentFilter < 3) { - o.actionNames = buildUnnamed1899(); - o.categoryNames = buildUnnamed1900(); + o.actionNames = buildUnnamed2061(); + o.categoryNames = buildUnnamed2062(); o.mimeType = "foo"; } buildCounterIntentFilter--; @@ -946,8 +973,8 @@ checkIntentFilter(api.IntentFilter o) { buildCounterIntentFilter++; if (buildCounterIntentFilter < 3) { - checkUnnamed1899(o.actionNames); - checkUnnamed1900(o.categoryNames); + checkUnnamed2061(o.actionNames); + checkUnnamed2062(o.categoryNames); unittest.expect(o.mimeType, unittest.equals('foo')); } buildCounterIntentFilter--; @@ -968,14 +995,14 @@ buildCounterLauncherActivityIntent--; } -buildUnnamed1901() { +buildUnnamed2063() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1901(core.List<core.String> o) { +checkUnnamed2063(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -989,7 +1016,7 @@ o.id = "foo"; o.name = "foo"; o.region = "foo"; - o.tags = buildUnnamed1901(); + o.tags = buildUnnamed2063(); } buildCounterLocale--; return o; @@ -1001,7 +1028,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed1901(o.tags); + checkUnnamed2063(o.tags); } buildCounterLocale--; } @@ -1029,14 +1056,14 @@ buildCounterNetworkConfiguration--; } -buildUnnamed1902() { +buildUnnamed2064() { var o = new core.List<api.NetworkConfiguration>(); o.add(buildNetworkConfiguration()); o.add(buildNetworkConfiguration()); return o; } -checkUnnamed1902(core.List<api.NetworkConfiguration> o) { +checkUnnamed2064(core.List<api.NetworkConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkConfiguration(o[0]); checkNetworkConfiguration(o[1]); @@ -1047,7 +1074,7 @@ var o = new api.NetworkConfigurationCatalog(); buildCounterNetworkConfigurationCatalog++; if (buildCounterNetworkConfigurationCatalog < 3) { - o.configurations = buildUnnamed1902(); + o.configurations = buildUnnamed2064(); } buildCounterNetworkConfigurationCatalog--; return o; @@ -1056,7 +1083,7 @@ checkNetworkConfigurationCatalog(api.NetworkConfigurationCatalog o) { buildCounterNetworkConfigurationCatalog++; if (buildCounterNetworkConfigurationCatalog < 3) { - checkUnnamed1902(o.configurations); + checkUnnamed2064(o.configurations); } buildCounterNetworkConfigurationCatalog--; } @@ -1082,14 +1109,14 @@ buildCounterObbFile--; } -buildUnnamed1903() { +buildUnnamed2065() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1903(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')); @@ -1102,7 +1129,7 @@ if (buildCounterOrientation < 3) { o.id = "foo"; o.name = "foo"; - o.tags = buildUnnamed1903(); + o.tags = buildUnnamed2065(); } buildCounterOrientation--; return o; @@ -1113,11 +1140,51 @@ if (buildCounterOrientation < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1903(o.tags); + checkUnnamed2065(o.tags); } buildCounterOrientation--; } +core.int buildCounterProvidedSoftwareCatalog = 0; +buildProvidedSoftwareCatalog() { + var o = new api.ProvidedSoftwareCatalog(); + buildCounterProvidedSoftwareCatalog++; + if (buildCounterProvidedSoftwareCatalog < 3) { + o.orchestratorVersion = "foo"; + } + buildCounterProvidedSoftwareCatalog--; + return o; +} + +checkProvidedSoftwareCatalog(api.ProvidedSoftwareCatalog o) { + buildCounterProvidedSoftwareCatalog++; + if (buildCounterProvidedSoftwareCatalog < 3) { + unittest.expect(o.orchestratorVersion, unittest.equals('foo')); + } + buildCounterProvidedSoftwareCatalog--; +} + +core.int buildCounterRegularFile = 0; +buildRegularFile() { + var o = new api.RegularFile(); + buildCounterRegularFile++; + if (buildCounterRegularFile < 3) { + o.content = buildFileReference(); + o.devicePath = "foo"; + } + buildCounterRegularFile--; + return o; +} + +checkRegularFile(api.RegularFile o) { + buildCounterRegularFile++; + if (buildCounterRegularFile < 3) { + checkFileReference(o.content); + unittest.expect(o.devicePath, unittest.equals('foo')); + } + buildCounterRegularFile--; +} + core.int buildCounterResultStorage = 0; buildResultStorage() { var o = new api.ResultStorage(); @@ -1185,14 +1252,14 @@ buildCounterRoboStartingIntent--; } -buildUnnamed1904() { +buildUnnamed2066() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1904(core.List<core.String> o) { +checkUnnamed2066(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1204,7 +1271,7 @@ buildCounterStartActivityIntent++; if (buildCounterStartActivityIntent < 3) { o.action = "foo"; - o.categories = buildUnnamed1904(); + o.categories = buildUnnamed2066(); o.uri = "foo"; } buildCounterStartActivityIntent--; @@ -1215,20 +1282,20 @@ buildCounterStartActivityIntent++; if (buildCounterStartActivityIntent < 3) { unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed1904(o.categories); + checkUnnamed2066(o.categories); unittest.expect(o.uri, unittest.equals('foo')); } buildCounterStartActivityIntent--; } -buildUnnamed1905() { +buildUnnamed2067() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1905(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')); @@ -1240,7 +1307,8 @@ buildCounterTestDetails++; if (buildCounterTestDetails < 3) { o.errorMessage = "foo"; - o.progressMessages = buildUnnamed1905(); + o.progressMessages = buildUnnamed2067(); + o.videoRecordingDisabled = true; } buildCounterTestDetails--; return o; @@ -1250,7 +1318,8 @@ buildCounterTestDetails++; if (buildCounterTestDetails < 3) { unittest.expect(o.errorMessage, unittest.equals('foo')); - checkUnnamed1905(o.progressMessages); + checkUnnamed2067(o.progressMessages); + unittest.expect(o.videoRecordingDisabled, unittest.isTrue); } buildCounterTestDetails--; } @@ -1262,6 +1331,7 @@ if (buildCounterTestEnvironmentCatalog < 3) { o.androidDeviceCatalog = buildAndroidDeviceCatalog(); o.networkConfigurationCatalog = buildNetworkConfigurationCatalog(); + o.softwareCatalog = buildProvidedSoftwareCatalog(); } buildCounterTestEnvironmentCatalog--; return o; @@ -1272,6 +1342,7 @@ if (buildCounterTestEnvironmentCatalog < 3) { checkAndroidDeviceCatalog(o.androidDeviceCatalog); checkNetworkConfigurationCatalog(o.networkConfigurationCatalog); + checkProvidedSoftwareCatalog(o.softwareCatalog); } buildCounterTestEnvironmentCatalog--; } @@ -1311,14 +1382,14 @@ buildCounterTestExecution--; } -buildUnnamed1906() { +buildUnnamed2068() { var o = new core.List<api.TestExecution>(); o.add(buildTestExecution()); o.add(buildTestExecution()); return o; } -checkUnnamed1906(core.List<api.TestExecution> o) { +checkUnnamed2068(core.List<api.TestExecution> o) { unittest.expect(o, unittest.hasLength(2)); checkTestExecution(o[0]); checkTestExecution(o[1]); @@ -1335,7 +1406,7 @@ o.projectId = "foo"; o.resultStorage = buildResultStorage(); o.state = "foo"; - o.testExecutions = buildUnnamed1906(); + o.testExecutions = buildUnnamed2068(); o.testMatrixId = "foo"; o.testSpecification = buildTestSpecification(); o.timestamp = "foo"; @@ -1353,7 +1424,7 @@ unittest.expect(o.projectId, unittest.equals('foo')); checkResultStorage(o.resultStorage); unittest.expect(o.state, unittest.equals('foo')); - checkUnnamed1906(o.testExecutions); + checkUnnamed2068(o.testExecutions); unittest.expect(o.testMatrixId, unittest.equals('foo')); checkTestSpecification(o.testSpecification); unittest.expect(o.timestamp, unittest.equals('foo')); @@ -1361,40 +1432,53 @@ buildCounterTestMatrix--; } -buildUnnamed1907() { +buildUnnamed2069() { + var o = new core.List<api.Apk>(); + o.add(buildApk()); + o.add(buildApk()); + return o; +} + +checkUnnamed2069(core.List<api.Apk> o) { + unittest.expect(o, unittest.hasLength(2)); + checkApk(o[0]); + checkApk(o[1]); +} + +buildUnnamed2070() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1907(core.List<core.String> o) { +checkUnnamed2070(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1908() { +buildUnnamed2071() { var o = new core.List<api.EnvironmentVariable>(); o.add(buildEnvironmentVariable()); o.add(buildEnvironmentVariable()); return o; } -checkUnnamed1908(core.List<api.EnvironmentVariable> o) { +checkUnnamed2071(core.List<api.EnvironmentVariable> o) { unittest.expect(o, unittest.hasLength(2)); checkEnvironmentVariable(o[0]); checkEnvironmentVariable(o[1]); } -buildUnnamed1909() { +buildUnnamed2072() { var o = new core.List<api.DeviceFile>(); o.add(buildDeviceFile()); o.add(buildDeviceFile()); return o; } -checkUnnamed1909(core.List<api.DeviceFile> o) { +checkUnnamed2072(core.List<api.DeviceFile> o) { unittest.expect(o, unittest.hasLength(2)); checkDeviceFile(o[0]); checkDeviceFile(o[1]); @@ -1406,9 +1490,10 @@ buildCounterTestSetup++; if (buildCounterTestSetup < 3) { o.account = buildAccount(); - o.directoriesToPull = buildUnnamed1907(); - o.environmentVariables = buildUnnamed1908(); - o.filesToPush = buildUnnamed1909(); + o.additionalApks = buildUnnamed2069(); + o.directoriesToPull = buildUnnamed2070(); + o.environmentVariables = buildUnnamed2071(); + o.filesToPush = buildUnnamed2072(); o.networkProfile = "foo"; } buildCounterTestSetup--; @@ -1419,9 +1504,10 @@ buildCounterTestSetup++; if (buildCounterTestSetup < 3) { checkAccount(o.account); - checkUnnamed1907(o.directoriesToPull); - checkUnnamed1908(o.environmentVariables); - checkUnnamed1909(o.filesToPush); + checkUnnamed2069(o.additionalApks); + checkUnnamed2070(o.directoriesToPull); + checkUnnamed2071(o.environmentVariables); + checkUnnamed2072(o.filesToPush); unittest.expect(o.networkProfile, unittest.equals('foo')); } buildCounterTestSetup--; @@ -1645,6 +1731,14 @@ }); }); + unittest.group("obj-schema-Apk", () { + unittest.test("to-json--from-json", () { + var o = buildApk(); + var od = new api.Apk.fromJson(o.toJson()); + checkApk(od); + }); + }); + unittest.group("obj-schema-ApkDetail", () { unittest.test("to-json--from-json", () { var o = buildApkDetail(); @@ -1821,6 +1915,22 @@ }); }); + unittest.group("obj-schema-ProvidedSoftwareCatalog", () { + unittest.test("to-json--from-json", () { + var o = buildProvidedSoftwareCatalog(); + var od = new api.ProvidedSoftwareCatalog.fromJson(o.toJson()); + checkProvidedSoftwareCatalog(od); + }); + }); + + unittest.group("obj-schema-RegularFile", () { + unittest.test("to-json--from-json", () { + var o = buildRegularFile(); + var od = new api.RegularFile.fromJson(o.toJson()); + checkRegularFile(od); + }); + }); + unittest.group("obj-schema-ResultStorage", () { unittest.test("to-json--from-json", () { var o = buildResultStorage();
diff --git a/generated/googleapis/test/translate/v2_test.dart b/generated/googleapis/test/translate/v2_test.dart index 1a6d645..e9acabb 100644 --- a/generated/googleapis/test/translate/v2_test.dart +++ b/generated/googleapis/test/translate/v2_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed81() { +buildUnnamed4445() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed81(core.List<core.String> o) { +checkUnnamed4445(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -68,7 +68,7 @@ var o = new api.DetectLanguageRequest(); buildCounterDetectLanguageRequest++; if (buildCounterDetectLanguageRequest < 3) { - o.q = buildUnnamed81(); + o.q = buildUnnamed4445(); } buildCounterDetectLanguageRequest--; return o; @@ -77,19 +77,19 @@ checkDetectLanguageRequest(api.DetectLanguageRequest o) { buildCounterDetectLanguageRequest++; if (buildCounterDetectLanguageRequest < 3) { - checkUnnamed81(o.q); + checkUnnamed4445(o.q); } buildCounterDetectLanguageRequest--; } -buildUnnamed82() { +buildUnnamed4446() { var o = new core.List<api.DetectionsResource>(); o.add(buildDetectionsResource()); o.add(buildDetectionsResource()); return o; } -checkUnnamed82(core.List<api.DetectionsResource> o) { +checkUnnamed4446(core.List<api.DetectionsResource> o) { unittest.expect(o, unittest.hasLength(2)); checkDetectionsResource(o[0]); checkDetectionsResource(o[1]); @@ -100,7 +100,7 @@ var o = new api.DetectionsListResponse(); buildCounterDetectionsListResponse++; if (buildCounterDetectionsListResponse < 3) { - o.detections = buildUnnamed82(); + o.detections = buildUnnamed4446(); } buildCounterDetectionsListResponse--; return o; @@ -109,7 +109,7 @@ checkDetectionsListResponse(api.DetectionsListResponse o) { buildCounterDetectionsListResponse++; if (buildCounterDetectionsListResponse < 3) { - checkUnnamed82(o.detections); + checkUnnamed4446(o.detections); } buildCounterDetectionsListResponse--; } @@ -169,14 +169,14 @@ buildCounterGetSupportedLanguagesRequest--; } -buildUnnamed83() { +buildUnnamed4447() { var o = new core.List<api.LanguagesResource>(); o.add(buildLanguagesResource()); o.add(buildLanguagesResource()); return o; } -checkUnnamed83(core.List<api.LanguagesResource> o) { +checkUnnamed4447(core.List<api.LanguagesResource> o) { unittest.expect(o, unittest.hasLength(2)); checkLanguagesResource(o[0]); checkLanguagesResource(o[1]); @@ -187,7 +187,7 @@ var o = new api.LanguagesListResponse(); buildCounterLanguagesListResponse++; if (buildCounterLanguagesListResponse < 3) { - o.languages = buildUnnamed83(); + o.languages = buildUnnamed4447(); } buildCounterLanguagesListResponse--; return o; @@ -196,7 +196,7 @@ checkLanguagesListResponse(api.LanguagesListResponse o) { buildCounterLanguagesListResponse++; if (buildCounterLanguagesListResponse < 3) { - checkUnnamed83(o.languages); + checkUnnamed4447(o.languages); } buildCounterLanguagesListResponse--; } @@ -222,14 +222,14 @@ buildCounterLanguagesResource--; } -buildUnnamed84() { +buildUnnamed4448() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed84(core.List<core.String> o) { +checkUnnamed4448(core.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 @@ if (buildCounterTranslateTextRequest < 3) { o.format = "foo"; o.model = "foo"; - o.q = buildUnnamed84(); + o.q = buildUnnamed4448(); o.source = "foo"; o.target = "foo"; } @@ -255,21 +255,21 @@ if (buildCounterTranslateTextRequest < 3) { unittest.expect(o.format, unittest.equals('foo')); unittest.expect(o.model, unittest.equals('foo')); - checkUnnamed84(o.q); + checkUnnamed4448(o.q); unittest.expect(o.source, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); } buildCounterTranslateTextRequest--; } -buildUnnamed85() { +buildUnnamed4449() { var o = new core.List<api.TranslationsResource>(); o.add(buildTranslationsResource()); o.add(buildTranslationsResource()); return o; } -checkUnnamed85(core.List<api.TranslationsResource> o) { +checkUnnamed4449(core.List<api.TranslationsResource> o) { unittest.expect(o, unittest.hasLength(2)); checkTranslationsResource(o[0]); checkTranslationsResource(o[1]); @@ -280,7 +280,7 @@ var o = new api.TranslationsListResponse(); buildCounterTranslationsListResponse++; if (buildCounterTranslationsListResponse < 3) { - o.translations = buildUnnamed85(); + o.translations = buildUnnamed4449(); } buildCounterTranslationsListResponse--; return o; @@ -289,7 +289,7 @@ checkTranslationsListResponse(api.TranslationsListResponse o) { buildCounterTranslationsListResponse++; if (buildCounterTranslationsListResponse < 3) { - checkUnnamed85(o.translations); + checkUnnamed4449(o.translations); } buildCounterTranslationsListResponse--; } @@ -317,40 +317,40 @@ buildCounterTranslationsResource--; } -buildUnnamed86() { +buildUnnamed4450() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed86(core.List<core.String> o) { +checkUnnamed4450(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed87() { +buildUnnamed4451() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed87(core.List<core.String> o) { +checkUnnamed4451(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed88() { +buildUnnamed4452() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed88(core.List<core.String> o) { +checkUnnamed4452(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -497,7 +497,7 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.DetectionsResourceApi res = new api.TranslateApi(mock).detections; - var arg_q = buildUnnamed86(); + var arg_q = buildUnnamed4450(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -611,12 +611,12 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.TranslationsResourceApi res = new api.TranslateApi(mock).translations; - var arg_q = buildUnnamed87(); + var arg_q = buildUnnamed4451(); var arg_target = "foo"; - var arg_cid = buildUnnamed88(); + var arg_source = "foo"; + var arg_cid = buildUnnamed4452(); var arg_format = "foo"; var arg_model = "foo"; - var arg_source = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -653,10 +653,10 @@ } unittest.expect(queryMap["q"], unittest.equals(arg_q)); unittest.expect(queryMap["target"].first, unittest.equals(arg_target)); + unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); unittest.expect(queryMap["cid"], unittest.equals(arg_cid)); unittest.expect(queryMap["format"].first, unittest.equals(arg_format)); unittest.expect(queryMap["model"].first, unittest.equals(arg_model)); - unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -667,10 +667,10 @@ }), true); res .list(arg_q, arg_target, + source: arg_source, cid: arg_cid, format: arg_format, model: arg_model, - source: arg_source, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTranslationsListResponse(response);
diff --git a/generated/googleapis/test/urlshortener/v1_test.dart b/generated/googleapis/test/urlshortener/v1_test.dart index b7d4ec7..6a73dbd 100644 --- a/generated/googleapis/test/urlshortener/v1_test.dart +++ b/generated/googleapis/test/urlshortener/v1_test.dart
@@ -50,53 +50,53 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed199() { +buildUnnamed9() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed199(core.List<api.StringCount> o) { +checkUnnamed9(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); } -buildUnnamed200() { +buildUnnamed10() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed200(core.List<api.StringCount> o) { +checkUnnamed10(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); } -buildUnnamed201() { +buildUnnamed11() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed201(core.List<api.StringCount> o) { +checkUnnamed11(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); } -buildUnnamed202() { +buildUnnamed12() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed202(core.List<api.StringCount> o) { +checkUnnamed12(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); @@ -107,11 +107,11 @@ var o = new api.AnalyticsSnapshot(); buildCounterAnalyticsSnapshot++; if (buildCounterAnalyticsSnapshot < 3) { - o.browsers = buildUnnamed199(); - o.countries = buildUnnamed200(); + o.browsers = buildUnnamed9(); + o.countries = buildUnnamed10(); o.longUrlClicks = "foo"; - o.platforms = buildUnnamed201(); - o.referrers = buildUnnamed202(); + o.platforms = buildUnnamed11(); + o.referrers = buildUnnamed12(); o.shortUrlClicks = "foo"; } buildCounterAnalyticsSnapshot--; @@ -121,11 +121,11 @@ checkAnalyticsSnapshot(api.AnalyticsSnapshot o) { buildCounterAnalyticsSnapshot++; if (buildCounterAnalyticsSnapshot < 3) { - checkUnnamed199(o.browsers); - checkUnnamed200(o.countries); + checkUnnamed9(o.browsers); + checkUnnamed10(o.countries); unittest.expect(o.longUrlClicks, unittest.equals('foo')); - checkUnnamed201(o.platforms); - checkUnnamed202(o.referrers); + checkUnnamed11(o.platforms); + checkUnnamed12(o.referrers); unittest.expect(o.shortUrlClicks, unittest.equals('foo')); } buildCounterAnalyticsSnapshot--; @@ -208,14 +208,14 @@ buildCounterUrl--; } -buildUnnamed203() { +buildUnnamed13() { var o = new core.List<api.Url>(); o.add(buildUrl()); o.add(buildUrl()); return o; } -checkUnnamed203(core.List<api.Url> o) { +checkUnnamed13(core.List<api.Url> o) { unittest.expect(o, unittest.hasLength(2)); checkUrl(o[0]); checkUrl(o[1]); @@ -226,7 +226,7 @@ var o = new api.UrlHistory(); buildCounterUrlHistory++; if (buildCounterUrlHistory < 3) { - o.items = buildUnnamed203(); + o.items = buildUnnamed13(); o.itemsPerPage = 42; o.kind = "foo"; o.nextPageToken = "foo"; @@ -239,7 +239,7 @@ checkUrlHistory(api.UrlHistory o) { buildCounterUrlHistory++; if (buildCounterUrlHistory < 3) { - checkUnnamed203(o.items); + checkUnnamed13(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/vault/v1_test.dart b/generated/googleapis/test/vault/v1_test.dart index 519c616..d26cbb9 100644 --- a/generated/googleapis/test/vault/v1_test.dart +++ b/generated/googleapis/test/vault/v1_test.dart
@@ -114,6 +114,7 @@ if (buildCounterCorpusQuery < 3) { o.driveQuery = buildHeldDriveQuery(); o.groupsQuery = buildHeldGroupsQuery(); + o.hangoutsChatQuery = buildHeldHangoutsChatQuery(); o.mailQuery = buildHeldMailQuery(); } buildCounterCorpusQuery--; @@ -125,6 +126,7 @@ if (buildCounterCorpusQuery < 3) { checkHeldDriveQuery(o.driveQuery); checkHeldGroupsQuery(o.groupsQuery); + checkHeldHangoutsChatQuery(o.hangoutsChatQuery); checkHeldMailQuery(o.mailQuery); } buildCounterCorpusQuery--; @@ -208,6 +210,25 @@ buildCounterHeldGroupsQuery--; } +core.int buildCounterHeldHangoutsChatQuery = 0; +buildHeldHangoutsChatQuery() { + var o = new api.HeldHangoutsChatQuery(); + buildCounterHeldHangoutsChatQuery++; + if (buildCounterHeldHangoutsChatQuery < 3) { + o.includeRooms = true; + } + buildCounterHeldHangoutsChatQuery--; + return o; +} + +checkHeldHangoutsChatQuery(api.HeldHangoutsChatQuery o) { + buildCounterHeldHangoutsChatQuery++; + if (buildCounterHeldHangoutsChatQuery < 3) { + unittest.expect(o.includeRooms, unittest.isTrue); + } + buildCounterHeldHangoutsChatQuery--; +} + core.int buildCounterHeldMailQuery = 0; buildHeldMailQuery() { var o = new api.HeldMailQuery(); @@ -252,14 +273,14 @@ buildCounterHeldOrgUnit--; } -buildUnnamed2451() { +buildUnnamed222() { var o = new core.List<api.HeldAccount>(); o.add(buildHeldAccount()); o.add(buildHeldAccount()); return o; } -checkUnnamed2451(core.List<api.HeldAccount> o) { +checkUnnamed222(core.List<api.HeldAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkHeldAccount(o[0]); checkHeldAccount(o[1]); @@ -270,7 +291,7 @@ var o = new api.Hold(); buildCounterHold++; if (buildCounterHold < 3) { - o.accounts = buildUnnamed2451(); + o.accounts = buildUnnamed222(); o.corpus = "foo"; o.holdId = "foo"; o.name = "foo"; @@ -285,7 +306,7 @@ checkHold(api.Hold o) { buildCounterHold++; if (buildCounterHold < 3) { - checkUnnamed2451(o.accounts); + checkUnnamed222(o.accounts); unittest.expect(o.corpus, unittest.equals('foo')); unittest.expect(o.holdId, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -296,14 +317,14 @@ buildCounterHold--; } -buildUnnamed2452() { +buildUnnamed223() { var o = new core.List<api.HeldAccount>(); o.add(buildHeldAccount()); o.add(buildHeldAccount()); return o; } -checkUnnamed2452(core.List<api.HeldAccount> o) { +checkUnnamed223(core.List<api.HeldAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkHeldAccount(o[0]); checkHeldAccount(o[1]); @@ -314,7 +335,7 @@ var o = new api.ListHeldAccountsResponse(); buildCounterListHeldAccountsResponse++; if (buildCounterListHeldAccountsResponse < 3) { - o.accounts = buildUnnamed2452(); + o.accounts = buildUnnamed223(); } buildCounterListHeldAccountsResponse--; return o; @@ -323,19 +344,19 @@ checkListHeldAccountsResponse(api.ListHeldAccountsResponse o) { buildCounterListHeldAccountsResponse++; if (buildCounterListHeldAccountsResponse < 3) { - checkUnnamed2452(o.accounts); + checkUnnamed223(o.accounts); } buildCounterListHeldAccountsResponse--; } -buildUnnamed2453() { +buildUnnamed224() { var o = new core.List<api.Hold>(); o.add(buildHold()); o.add(buildHold()); return o; } -checkUnnamed2453(core.List<api.Hold> o) { +checkUnnamed224(core.List<api.Hold> o) { unittest.expect(o, unittest.hasLength(2)); checkHold(o[0]); checkHold(o[1]); @@ -346,7 +367,7 @@ var o = new api.ListHoldsResponse(); buildCounterListHoldsResponse++; if (buildCounterListHoldsResponse < 3) { - o.holds = buildUnnamed2453(); + o.holds = buildUnnamed224(); o.nextPageToken = "foo"; } buildCounterListHoldsResponse--; @@ -356,20 +377,20 @@ checkListHoldsResponse(api.ListHoldsResponse o) { buildCounterListHoldsResponse++; if (buildCounterListHoldsResponse < 3) { - checkUnnamed2453(o.holds); + checkUnnamed224(o.holds); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListHoldsResponse--; } -buildUnnamed2454() { +buildUnnamed225() { var o = new core.List<api.Matter>(); o.add(buildMatter()); o.add(buildMatter()); return o; } -checkUnnamed2454(core.List<api.Matter> o) { +checkUnnamed225(core.List<api.Matter> o) { unittest.expect(o, unittest.hasLength(2)); checkMatter(o[0]); checkMatter(o[1]); @@ -380,7 +401,7 @@ var o = new api.ListMattersResponse(); buildCounterListMattersResponse++; if (buildCounterListMattersResponse < 3) { - o.matters = buildUnnamed2454(); + o.matters = buildUnnamed225(); o.nextPageToken = "foo"; } buildCounterListMattersResponse--; @@ -390,20 +411,20 @@ checkListMattersResponse(api.ListMattersResponse o) { buildCounterListMattersResponse++; if (buildCounterListMattersResponse < 3) { - checkUnnamed2454(o.matters); + checkUnnamed225(o.matters); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListMattersResponse--; } -buildUnnamed2455() { +buildUnnamed226() { var o = new core.List<api.MatterPermission>(); o.add(buildMatterPermission()); o.add(buildMatterPermission()); return o; } -checkUnnamed2455(core.List<api.MatterPermission> o) { +checkUnnamed226(core.List<api.MatterPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkMatterPermission(o[0]); checkMatterPermission(o[1]); @@ -416,7 +437,7 @@ if (buildCounterMatter < 3) { o.description = "foo"; o.matterId = "foo"; - o.matterPermissions = buildUnnamed2455(); + o.matterPermissions = buildUnnamed226(); o.name = "foo"; o.state = "foo"; } @@ -429,7 +450,7 @@ if (buildCounterMatter < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.matterId, unittest.equals('foo')); - checkUnnamed2455(o.matterPermissions); + checkUnnamed226(o.matterPermissions); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); } @@ -590,6 +611,14 @@ }); }); + unittest.group("obj-schema-HeldHangoutsChatQuery", () { + unittest.test("to-json--from-json", () { + var o = buildHeldHangoutsChatQuery(); + var od = new api.HeldHangoutsChatQuery.fromJson(o.toJson()); + checkHeldHangoutsChatQuery(od); + }); + }); + unittest.group("obj-schema-HeldMailQuery", () { unittest.test("to-json--from-json", () { var o = buildHeldMailQuery(); @@ -977,10 +1006,10 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.MattersResourceApi res = new api.VaultApi(mock).matters; - var arg_state = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_view = "foo"; + var arg_state = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1012,12 +1041,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["state"].first, unittest.equals(arg_state)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); + unittest.expect(queryMap["state"].first, unittest.equals(arg_state)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1028,10 +1057,10 @@ }), true); res .list( - state: arg_state, pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view, + state: arg_state, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListMattersResponse(response); @@ -1417,6 +1446,7 @@ api.MattersHoldsResourceApi res = new api.VaultApi(mock).matters.holds; var arg_matterId = "foo"; var arg_holdId = "foo"; + var arg_view = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1460,6 +1490,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1469,7 +1500,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .get(arg_matterId, arg_holdId, $fields: arg_$fields) + .get(arg_matterId, arg_holdId, view: arg_view, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkHold(response); }))); @@ -1481,6 +1512,7 @@ var arg_matterId = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_view = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1525,6 +1557,7 @@ queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1537,6 +1570,7 @@ .list(arg_matterId, pageToken: arg_pageToken, pageSize: arg_pageSize, + view: arg_view, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListHoldsResponse(response);
diff --git a/generated/googleapis/test/vision/v1_test.dart b/generated/googleapis/test/vision/v1_test.dart index a27f862..6eec716 100644 --- a/generated/googleapis/test/vision/v1_test.dart +++ b/generated/googleapis/test/vision/v1_test.dart
@@ -50,14 +50,48 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1186() { +buildUnnamed4112() { + var o = new core.List<api.AnnotateImageResponse>(); + o.add(buildAnnotateImageResponse()); + o.add(buildAnnotateImageResponse()); + return o; +} + +checkUnnamed4112(core.List<api.AnnotateImageResponse> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAnnotateImageResponse(o[0]); + checkAnnotateImageResponse(o[1]); +} + +core.int buildCounterAnnotateFileResponse = 0; +buildAnnotateFileResponse() { + var o = new api.AnnotateFileResponse(); + buildCounterAnnotateFileResponse++; + if (buildCounterAnnotateFileResponse < 3) { + o.inputConfig = buildInputConfig(); + o.responses = buildUnnamed4112(); + } + buildCounterAnnotateFileResponse--; + return o; +} + +checkAnnotateFileResponse(api.AnnotateFileResponse o) { + buildCounterAnnotateFileResponse++; + if (buildCounterAnnotateFileResponse < 3) { + checkInputConfig(o.inputConfig); + checkUnnamed4112(o.responses); + } + buildCounterAnnotateFileResponse--; +} + +buildUnnamed4113() { var o = new core.List<api.Feature>(); o.add(buildFeature()); o.add(buildFeature()); return o; } -checkUnnamed1186(core.List<api.Feature> o) { +checkUnnamed4113(core.List<api.Feature> o) { unittest.expect(o, unittest.hasLength(2)); checkFeature(o[0]); checkFeature(o[1]); @@ -68,7 +102,7 @@ var o = new api.AnnotateImageRequest(); buildCounterAnnotateImageRequest++; if (buildCounterAnnotateImageRequest < 3) { - o.features = buildUnnamed1186(); + o.features = buildUnnamed4113(); o.image = buildImage(); o.imageContext = buildImageContext(); } @@ -79,73 +113,73 @@ checkAnnotateImageRequest(api.AnnotateImageRequest o) { buildCounterAnnotateImageRequest++; if (buildCounterAnnotateImageRequest < 3) { - checkUnnamed1186(o.features); + checkUnnamed4113(o.features); checkImage(o.image); checkImageContext(o.imageContext); } buildCounterAnnotateImageRequest--; } -buildUnnamed1187() { +buildUnnamed4114() { var o = new core.List<api.FaceAnnotation>(); o.add(buildFaceAnnotation()); o.add(buildFaceAnnotation()); return o; } -checkUnnamed1187(core.List<api.FaceAnnotation> o) { +checkUnnamed4114(core.List<api.FaceAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkFaceAnnotation(o[0]); checkFaceAnnotation(o[1]); } -buildUnnamed1188() { +buildUnnamed4115() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1188(core.List<api.EntityAnnotation> o) { +checkUnnamed4115(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); } -buildUnnamed1189() { +buildUnnamed4116() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1189(core.List<api.EntityAnnotation> o) { +checkUnnamed4116(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); } -buildUnnamed1190() { +buildUnnamed4117() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1190(core.List<api.EntityAnnotation> o) { +checkUnnamed4117(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); } -buildUnnamed1191() { +buildUnnamed4118() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1191(core.List<api.EntityAnnotation> o) { +checkUnnamed4118(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); @@ -156,16 +190,17 @@ var o = new api.AnnotateImageResponse(); buildCounterAnnotateImageResponse++; if (buildCounterAnnotateImageResponse < 3) { + o.context = buildImageAnnotationContext(); o.cropHintsAnnotation = buildCropHintsAnnotation(); o.error = buildStatus(); - o.faceAnnotations = buildUnnamed1187(); + o.faceAnnotations = buildUnnamed4114(); o.fullTextAnnotation = buildTextAnnotation(); o.imagePropertiesAnnotation = buildImageProperties(); - o.labelAnnotations = buildUnnamed1188(); - o.landmarkAnnotations = buildUnnamed1189(); - o.logoAnnotations = buildUnnamed1190(); + o.labelAnnotations = buildUnnamed4115(); + o.landmarkAnnotations = buildUnnamed4116(); + o.logoAnnotations = buildUnnamed4117(); o.safeSearchAnnotation = buildSafeSearchAnnotation(); - o.textAnnotations = buildUnnamed1191(); + o.textAnnotations = buildUnnamed4118(); o.webDetection = buildWebDetection(); } buildCounterAnnotateImageResponse--; @@ -175,29 +210,151 @@ checkAnnotateImageResponse(api.AnnotateImageResponse o) { buildCounterAnnotateImageResponse++; if (buildCounterAnnotateImageResponse < 3) { + checkImageAnnotationContext(o.context); checkCropHintsAnnotation(o.cropHintsAnnotation); checkStatus(o.error); - checkUnnamed1187(o.faceAnnotations); + checkUnnamed4114(o.faceAnnotations); checkTextAnnotation(o.fullTextAnnotation); checkImageProperties(o.imagePropertiesAnnotation); - checkUnnamed1188(o.labelAnnotations); - checkUnnamed1189(o.landmarkAnnotations); - checkUnnamed1190(o.logoAnnotations); + checkUnnamed4115(o.labelAnnotations); + checkUnnamed4116(o.landmarkAnnotations); + checkUnnamed4117(o.logoAnnotations); checkSafeSearchAnnotation(o.safeSearchAnnotation); - checkUnnamed1191(o.textAnnotations); + checkUnnamed4118(o.textAnnotations); checkWebDetection(o.webDetection); } buildCounterAnnotateImageResponse--; } -buildUnnamed1192() { +buildUnnamed4119() { + var o = new core.List<api.Feature>(); + o.add(buildFeature()); + o.add(buildFeature()); + return o; +} + +checkUnnamed4119(core.List<api.Feature> o) { + unittest.expect(o, unittest.hasLength(2)); + checkFeature(o[0]); + checkFeature(o[1]); +} + +core.int buildCounterAsyncAnnotateFileRequest = 0; +buildAsyncAnnotateFileRequest() { + var o = new api.AsyncAnnotateFileRequest(); + buildCounterAsyncAnnotateFileRequest++; + if (buildCounterAsyncAnnotateFileRequest < 3) { + o.features = buildUnnamed4119(); + o.imageContext = buildImageContext(); + o.inputConfig = buildInputConfig(); + o.outputConfig = buildOutputConfig(); + } + buildCounterAsyncAnnotateFileRequest--; + return o; +} + +checkAsyncAnnotateFileRequest(api.AsyncAnnotateFileRequest o) { + buildCounterAsyncAnnotateFileRequest++; + if (buildCounterAsyncAnnotateFileRequest < 3) { + checkUnnamed4119(o.features); + checkImageContext(o.imageContext); + checkInputConfig(o.inputConfig); + checkOutputConfig(o.outputConfig); + } + buildCounterAsyncAnnotateFileRequest--; +} + +core.int buildCounterAsyncAnnotateFileResponse = 0; +buildAsyncAnnotateFileResponse() { + var o = new api.AsyncAnnotateFileResponse(); + buildCounterAsyncAnnotateFileResponse++; + if (buildCounterAsyncAnnotateFileResponse < 3) { + o.outputConfig = buildOutputConfig(); + } + buildCounterAsyncAnnotateFileResponse--; + return o; +} + +checkAsyncAnnotateFileResponse(api.AsyncAnnotateFileResponse o) { + buildCounterAsyncAnnotateFileResponse++; + if (buildCounterAsyncAnnotateFileResponse < 3) { + checkOutputConfig(o.outputConfig); + } + buildCounterAsyncAnnotateFileResponse--; +} + +buildUnnamed4120() { + var o = new core.List<api.AsyncAnnotateFileRequest>(); + o.add(buildAsyncAnnotateFileRequest()); + o.add(buildAsyncAnnotateFileRequest()); + return o; +} + +checkUnnamed4120(core.List<api.AsyncAnnotateFileRequest> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAsyncAnnotateFileRequest(o[0]); + checkAsyncAnnotateFileRequest(o[1]); +} + +core.int buildCounterAsyncBatchAnnotateFilesRequest = 0; +buildAsyncBatchAnnotateFilesRequest() { + var o = new api.AsyncBatchAnnotateFilesRequest(); + buildCounterAsyncBatchAnnotateFilesRequest++; + if (buildCounterAsyncBatchAnnotateFilesRequest < 3) { + o.requests = buildUnnamed4120(); + } + buildCounterAsyncBatchAnnotateFilesRequest--; + return o; +} + +checkAsyncBatchAnnotateFilesRequest(api.AsyncBatchAnnotateFilesRequest o) { + buildCounterAsyncBatchAnnotateFilesRequest++; + if (buildCounterAsyncBatchAnnotateFilesRequest < 3) { + checkUnnamed4120(o.requests); + } + buildCounterAsyncBatchAnnotateFilesRequest--; +} + +buildUnnamed4121() { + var o = new core.List<api.AsyncAnnotateFileResponse>(); + o.add(buildAsyncAnnotateFileResponse()); + o.add(buildAsyncAnnotateFileResponse()); + return o; +} + +checkUnnamed4121(core.List<api.AsyncAnnotateFileResponse> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAsyncAnnotateFileResponse(o[0]); + checkAsyncAnnotateFileResponse(o[1]); +} + +core.int buildCounterAsyncBatchAnnotateFilesResponse = 0; +buildAsyncBatchAnnotateFilesResponse() { + var o = new api.AsyncBatchAnnotateFilesResponse(); + buildCounterAsyncBatchAnnotateFilesResponse++; + if (buildCounterAsyncBatchAnnotateFilesResponse < 3) { + o.responses = buildUnnamed4121(); + } + buildCounterAsyncBatchAnnotateFilesResponse--; + return o; +} + +checkAsyncBatchAnnotateFilesResponse(api.AsyncBatchAnnotateFilesResponse o) { + buildCounterAsyncBatchAnnotateFilesResponse++; + if (buildCounterAsyncBatchAnnotateFilesResponse < 3) { + checkUnnamed4121(o.responses); + } + buildCounterAsyncBatchAnnotateFilesResponse--; +} + +buildUnnamed4122() { var o = new core.List<api.AnnotateImageRequest>(); o.add(buildAnnotateImageRequest()); o.add(buildAnnotateImageRequest()); return o; } -checkUnnamed1192(core.List<api.AnnotateImageRequest> o) { +checkUnnamed4122(core.List<api.AnnotateImageRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotateImageRequest(o[0]); checkAnnotateImageRequest(o[1]); @@ -208,7 +365,7 @@ var o = new api.BatchAnnotateImagesRequest(); buildCounterBatchAnnotateImagesRequest++; if (buildCounterBatchAnnotateImagesRequest < 3) { - o.requests = buildUnnamed1192(); + o.requests = buildUnnamed4122(); } buildCounterBatchAnnotateImagesRequest--; return o; @@ -217,19 +374,19 @@ checkBatchAnnotateImagesRequest(api.BatchAnnotateImagesRequest o) { buildCounterBatchAnnotateImagesRequest++; if (buildCounterBatchAnnotateImagesRequest < 3) { - checkUnnamed1192(o.requests); + checkUnnamed4122(o.requests); } buildCounterBatchAnnotateImagesRequest--; } -buildUnnamed1193() { +buildUnnamed4123() { var o = new core.List<api.AnnotateImageResponse>(); o.add(buildAnnotateImageResponse()); o.add(buildAnnotateImageResponse()); return o; } -checkUnnamed1193(core.List<api.AnnotateImageResponse> o) { +checkUnnamed4123(core.List<api.AnnotateImageResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotateImageResponse(o[0]); checkAnnotateImageResponse(o[1]); @@ -240,7 +397,7 @@ var o = new api.BatchAnnotateImagesResponse(); buildCounterBatchAnnotateImagesResponse++; if (buildCounterBatchAnnotateImagesResponse < 3) { - o.responses = buildUnnamed1193(); + o.responses = buildUnnamed4123(); } buildCounterBatchAnnotateImagesResponse--; return o; @@ -249,19 +406,19 @@ checkBatchAnnotateImagesResponse(api.BatchAnnotateImagesResponse o) { buildCounterBatchAnnotateImagesResponse++; if (buildCounterBatchAnnotateImagesResponse < 3) { - checkUnnamed1193(o.responses); + checkUnnamed4123(o.responses); } buildCounterBatchAnnotateImagesResponse--; } -buildUnnamed1194() { +buildUnnamed4124() { var o = new core.List<api.Paragraph>(); o.add(buildParagraph()); o.add(buildParagraph()); return o; } -checkUnnamed1194(core.List<api.Paragraph> o) { +checkUnnamed4124(core.List<api.Paragraph> o) { unittest.expect(o, unittest.hasLength(2)); checkParagraph(o[0]); checkParagraph(o[1]); @@ -275,7 +432,7 @@ o.blockType = "foo"; o.boundingBox = buildBoundingPoly(); o.confidence = 42.0; - o.paragraphs = buildUnnamed1194(); + o.paragraphs = buildUnnamed4124(); o.property = buildTextProperty(); } buildCounterBlock--; @@ -288,20 +445,33 @@ unittest.expect(o.blockType, unittest.equals('foo')); checkBoundingPoly(o.boundingBox); unittest.expect(o.confidence, unittest.equals(42.0)); - checkUnnamed1194(o.paragraphs); + checkUnnamed4124(o.paragraphs); checkTextProperty(o.property); } buildCounterBlock--; } -buildUnnamed1195() { +buildUnnamed4125() { + var o = new core.List<api.NormalizedVertex>(); + o.add(buildNormalizedVertex()); + o.add(buildNormalizedVertex()); + return o; +} + +checkUnnamed4125(core.List<api.NormalizedVertex> o) { + unittest.expect(o, unittest.hasLength(2)); + checkNormalizedVertex(o[0]); + checkNormalizedVertex(o[1]); +} + +buildUnnamed4126() { var o = new core.List<api.Vertex>(); o.add(buildVertex()); o.add(buildVertex()); return o; } -checkUnnamed1195(core.List<api.Vertex> o) { +checkUnnamed4126(core.List<api.Vertex> o) { unittest.expect(o, unittest.hasLength(2)); checkVertex(o[0]); checkVertex(o[1]); @@ -312,7 +482,8 @@ var o = new api.BoundingPoly(); buildCounterBoundingPoly++; if (buildCounterBoundingPoly < 3) { - o.vertices = buildUnnamed1195(); + o.normalizedVertices = buildUnnamed4125(); + o.vertices = buildUnnamed4126(); } buildCounterBoundingPoly--; return o; @@ -321,11 +492,27 @@ checkBoundingPoly(api.BoundingPoly o) { buildCounterBoundingPoly++; if (buildCounterBoundingPoly < 3) { - checkUnnamed1195(o.vertices); + checkUnnamed4125(o.normalizedVertices); + checkUnnamed4126(o.vertices); } buildCounterBoundingPoly--; } +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 buildCounterColor = 0; buildColor() { var o = new api.Color(); @@ -397,14 +584,14 @@ buildCounterCropHint--; } -buildUnnamed1196() { +buildUnnamed4127() { var o = new core.List<api.CropHint>(); o.add(buildCropHint()); o.add(buildCropHint()); return o; } -checkUnnamed1196(core.List<api.CropHint> o) { +checkUnnamed4127(core.List<api.CropHint> o) { unittest.expect(o, unittest.hasLength(2)); checkCropHint(o[0]); checkCropHint(o[1]); @@ -415,7 +602,7 @@ var o = new api.CropHintsAnnotation(); buildCounterCropHintsAnnotation++; if (buildCounterCropHintsAnnotation < 3) { - o.cropHints = buildUnnamed1196(); + o.cropHints = buildUnnamed4127(); } buildCounterCropHintsAnnotation--; return o; @@ -424,19 +611,19 @@ checkCropHintsAnnotation(api.CropHintsAnnotation o) { buildCounterCropHintsAnnotation++; if (buildCounterCropHintsAnnotation < 3) { - checkUnnamed1196(o.cropHints); + checkUnnamed4127(o.cropHints); } buildCounterCropHintsAnnotation--; } -buildUnnamed1197() { +buildUnnamed4128() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed1197(core.List<core.double> o) { +checkUnnamed4128(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)); @@ -447,7 +634,7 @@ var o = new api.CropHintsParams(); buildCounterCropHintsParams++; if (buildCounterCropHintsParams < 3) { - o.aspectRatios = buildUnnamed1197(); + o.aspectRatios = buildUnnamed4128(); } buildCounterCropHintsParams--; return o; @@ -456,7 +643,7 @@ checkCropHintsParams(api.CropHintsParams o) { buildCounterCropHintsParams++; if (buildCounterCropHintsParams < 3) { - checkUnnamed1197(o.aspectRatios); + checkUnnamed4128(o.aspectRatios); } buildCounterCropHintsParams--; } @@ -503,14 +690,14 @@ buildCounterDetectedLanguage--; } -buildUnnamed1198() { +buildUnnamed4129() { var o = new core.List<api.ColorInfo>(); o.add(buildColorInfo()); o.add(buildColorInfo()); return o; } -checkUnnamed1198(core.List<api.ColorInfo> o) { +checkUnnamed4129(core.List<api.ColorInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkColorInfo(o[0]); checkColorInfo(o[1]); @@ -521,7 +708,7 @@ var o = new api.DominantColorsAnnotation(); buildCounterDominantColorsAnnotation++; if (buildCounterDominantColorsAnnotation < 3) { - o.colors = buildUnnamed1198(); + o.colors = buildUnnamed4129(); } buildCounterDominantColorsAnnotation--; return o; @@ -530,32 +717,47 @@ checkDominantColorsAnnotation(api.DominantColorsAnnotation o) { buildCounterDominantColorsAnnotation++; if (buildCounterDominantColorsAnnotation < 3) { - checkUnnamed1198(o.colors); + checkUnnamed4129(o.colors); } buildCounterDominantColorsAnnotation--; } -buildUnnamed1199() { +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--; +} + +buildUnnamed4130() { var o = new core.List<api.LocationInfo>(); o.add(buildLocationInfo()); o.add(buildLocationInfo()); return o; } -checkUnnamed1199(core.List<api.LocationInfo> o) { +checkUnnamed4130(core.List<api.LocationInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkLocationInfo(o[0]); checkLocationInfo(o[1]); } -buildUnnamed1200() { +buildUnnamed4131() { var o = new core.List<api.Property>(); o.add(buildProperty()); o.add(buildProperty()); return o; } -checkUnnamed1200(core.List<api.Property> o) { +checkUnnamed4131(core.List<api.Property> o) { unittest.expect(o, unittest.hasLength(2)); checkProperty(o[0]); checkProperty(o[1]); @@ -570,9 +772,9 @@ o.confidence = 42.0; o.description = "foo"; o.locale = "foo"; - o.locations = buildUnnamed1199(); + o.locations = buildUnnamed4130(); o.mid = "foo"; - o.properties = buildUnnamed1200(); + o.properties = buildUnnamed4131(); o.score = 42.0; o.topicality = 42.0; } @@ -587,23 +789,23 @@ unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed1199(o.locations); + checkUnnamed4130(o.locations); unittest.expect(o.mid, unittest.equals('foo')); - checkUnnamed1200(o.properties); + checkUnnamed4131(o.properties); unittest.expect(o.score, unittest.equals(42.0)); unittest.expect(o.topicality, unittest.equals(42.0)); } buildCounterEntityAnnotation--; } -buildUnnamed1201() { +buildUnnamed4132() { var o = new core.List<api.Landmark>(); o.add(buildLandmark()); o.add(buildLandmark()); return o; } -checkUnnamed1201(core.List<api.Landmark> o) { +checkUnnamed4132(core.List<api.Landmark> o) { unittest.expect(o, unittest.hasLength(2)); checkLandmark(o[0]); checkLandmark(o[1]); @@ -622,7 +824,7 @@ o.headwearLikelihood = "foo"; o.joyLikelihood = "foo"; o.landmarkingConfidence = 42.0; - o.landmarks = buildUnnamed1201(); + o.landmarks = buildUnnamed4132(); o.panAngle = 42.0; o.rollAngle = 42.0; o.sorrowLikelihood = "foo"; @@ -645,7 +847,7 @@ unittest.expect(o.headwearLikelihood, unittest.equals('foo')); unittest.expect(o.joyLikelihood, unittest.equals('foo')); unittest.expect(o.landmarkingConfidence, unittest.equals(42.0)); - checkUnnamed1201(o.landmarks); + checkUnnamed4132(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')); @@ -679,6 +881,1586 @@ buildCounterFeature--; } +core.int buildCounterGcsDestination = 0; +buildGcsDestination() { + var o = new api.GcsDestination(); + buildCounterGcsDestination++; + if (buildCounterGcsDestination < 3) { + o.uri = "foo"; + } + buildCounterGcsDestination--; + return o; +} + +checkGcsDestination(api.GcsDestination o) { + buildCounterGcsDestination++; + if (buildCounterGcsDestination < 3) { + unittest.expect(o.uri, unittest.equals('foo')); + } + buildCounterGcsDestination--; +} + +core.int buildCounterGcsSource = 0; +buildGcsSource() { + var o = new api.GcsSource(); + buildCounterGcsSource++; + if (buildCounterGcsSource < 3) { + o.uri = "foo"; + } + buildCounterGcsSource--; + return o; +} + +checkGcsSource(api.GcsSource o) { + buildCounterGcsSource++; + if (buildCounterGcsSource < 3) { + unittest.expect(o.uri, unittest.equals('foo')); + } + buildCounterGcsSource--; +} + +buildUnnamed4133() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1AnnotateImageResponse>(); + o.add(buildGoogleCloudVisionV1p2beta1AnnotateImageResponse()); + o.add(buildGoogleCloudVisionV1p2beta1AnnotateImageResponse()); + return o; +} + +checkUnnamed4133( + core.List<api.GoogleCloudVisionV1p2beta1AnnotateImageResponse> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1AnnotateImageResponse(o[0]); + checkGoogleCloudVisionV1p2beta1AnnotateImageResponse(o[1]); +} + +core.int buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse = 0; +buildGoogleCloudVisionV1p2beta1AnnotateFileResponse() { + var o = new api.GoogleCloudVisionV1p2beta1AnnotateFileResponse(); + buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse++; + if (buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse < 3) { + o.inputConfig = buildGoogleCloudVisionV1p2beta1InputConfig(); + o.responses = buildUnnamed4133(); + } + buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse--; + return o; +} + +checkGoogleCloudVisionV1p2beta1AnnotateFileResponse( + api.GoogleCloudVisionV1p2beta1AnnotateFileResponse o) { + buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse++; + if (buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse < 3) { + checkGoogleCloudVisionV1p2beta1InputConfig(o.inputConfig); + checkUnnamed4133(o.responses); + } + buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse--; +} + +buildUnnamed4134() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1FaceAnnotation>(); + o.add(buildGoogleCloudVisionV1p2beta1FaceAnnotation()); + o.add(buildGoogleCloudVisionV1p2beta1FaceAnnotation()); + return o; +} + +checkUnnamed4134(core.List<api.GoogleCloudVisionV1p2beta1FaceAnnotation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1FaceAnnotation(o[0]); + checkGoogleCloudVisionV1p2beta1FaceAnnotation(o[1]); +} + +buildUnnamed4135() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation>(); + o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); + o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); + return o; +} + +checkUnnamed4135(core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[0]); + checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[1]); +} + +buildUnnamed4136() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation>(); + o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); + o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); + return o; +} + +checkUnnamed4136(core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[0]); + checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[1]); +} + +buildUnnamed4137() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation>(); + o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); + o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); + return o; +} + +checkUnnamed4137(core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[0]); + checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[1]); +} + +buildUnnamed4138() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation>(); + o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); + o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); + return o; +} + +checkUnnamed4138(core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[0]); + checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[1]); +} + +core.int buildCounterGoogleCloudVisionV1p2beta1AnnotateImageResponse = 0; +buildGoogleCloudVisionV1p2beta1AnnotateImageResponse() { + var o = new api.GoogleCloudVisionV1p2beta1AnnotateImageResponse(); + buildCounterGoogleCloudVisionV1p2beta1AnnotateImageResponse++; + if (buildCounterGoogleCloudVisionV1p2beta1AnnotateImageResponse < 3) { + o.context = buildGoogleCloudVisionV1p2beta1ImageAnnotationContext(); + o.cropHintsAnnotation = + buildGoogleCloudVisionV1p2beta1CropHintsAnnotation(); + o.error = buildStatus(); + o.faceAnnotations = buildUnnamed4134(); + o.fullTextAnnotation = buildGoogleCloudVisionV1p2beta1TextAnnotation(); + o.imagePropertiesAnnotation = + buildGoogleCloudVisionV1p2beta1ImageProperties(); + o.labelAnnotations = buildUnnamed4135(); + o.landmarkAnnotations = buildUnnamed4136(); + o.logoAnnotations = buildUnnamed4137(); + o.safeSearchAnnotation = + buildGoogleCloudVisionV1p2beta1SafeSearchAnnotation(); + o.textAnnotations = buildUnnamed4138(); + o.webDetection = buildGoogleCloudVisionV1p2beta1WebDetection(); + } + buildCounterGoogleCloudVisionV1p2beta1AnnotateImageResponse--; + return o; +} + +checkGoogleCloudVisionV1p2beta1AnnotateImageResponse( + api.GoogleCloudVisionV1p2beta1AnnotateImageResponse o) { + buildCounterGoogleCloudVisionV1p2beta1AnnotateImageResponse++; + if (buildCounterGoogleCloudVisionV1p2beta1AnnotateImageResponse < 3) { + checkGoogleCloudVisionV1p2beta1ImageAnnotationContext(o.context); + checkGoogleCloudVisionV1p2beta1CropHintsAnnotation(o.cropHintsAnnotation); + checkStatus(o.error); + checkUnnamed4134(o.faceAnnotations); + checkGoogleCloudVisionV1p2beta1TextAnnotation(o.fullTextAnnotation); + checkGoogleCloudVisionV1p2beta1ImageProperties(o.imagePropertiesAnnotation); + checkUnnamed4135(o.labelAnnotations); + checkUnnamed4136(o.landmarkAnnotations); + checkUnnamed4137(o.logoAnnotations); + checkGoogleCloudVisionV1p2beta1SafeSearchAnnotation(o.safeSearchAnnotation); + checkUnnamed4138(o.textAnnotations); + checkGoogleCloudVisionV1p2beta1WebDetection(o.webDetection); + } + buildCounterGoogleCloudVisionV1p2beta1AnnotateImageResponse--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse = 0; +buildGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse() { + var o = new api.GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse(); + buildCounterGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse++; + if (buildCounterGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse < 3) { + o.outputConfig = buildGoogleCloudVisionV1p2beta1OutputConfig(); + } + buildCounterGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse--; + return o; +} + +checkGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse( + api.GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse o) { + buildCounterGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse++; + if (buildCounterGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse < 3) { + checkGoogleCloudVisionV1p2beta1OutputConfig(o.outputConfig); + } + buildCounterGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse--; +} + +buildUnnamed4139() { + var o = + new core.List<api.GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse>(); + o.add(buildGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse()); + o.add(buildGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse()); + return o; +} + +checkUnnamed4139( + core.List<api.GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse(o[0]); + checkGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse(o[1]); +} + +core.int buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse = + 0; +buildGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse() { + var o = new api.GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse(); + buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse++; + if (buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse < + 3) { + o.responses = buildUnnamed4139(); + } + buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse--; + return o; +} + +checkGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse( + api.GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse o) { + buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse++; + if (buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse < + 3) { + checkUnnamed4139(o.responses); + } + buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse--; +} + +buildUnnamed4140() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1Paragraph>(); + o.add(buildGoogleCloudVisionV1p2beta1Paragraph()); + o.add(buildGoogleCloudVisionV1p2beta1Paragraph()); + return o; +} + +checkUnnamed4140(core.List<api.GoogleCloudVisionV1p2beta1Paragraph> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1Paragraph(o[0]); + checkGoogleCloudVisionV1p2beta1Paragraph(o[1]); +} + +core.int buildCounterGoogleCloudVisionV1p2beta1Block = 0; +buildGoogleCloudVisionV1p2beta1Block() { + var o = new api.GoogleCloudVisionV1p2beta1Block(); + buildCounterGoogleCloudVisionV1p2beta1Block++; + if (buildCounterGoogleCloudVisionV1p2beta1Block < 3) { + o.blockType = "foo"; + o.boundingBox = buildGoogleCloudVisionV1p2beta1BoundingPoly(); + o.confidence = 42.0; + o.paragraphs = buildUnnamed4140(); + o.property = buildGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(); + } + buildCounterGoogleCloudVisionV1p2beta1Block--; + return o; +} + +checkGoogleCloudVisionV1p2beta1Block(api.GoogleCloudVisionV1p2beta1Block o) { + buildCounterGoogleCloudVisionV1p2beta1Block++; + if (buildCounterGoogleCloudVisionV1p2beta1Block < 3) { + unittest.expect(o.blockType, unittest.equals('foo')); + checkGoogleCloudVisionV1p2beta1BoundingPoly(o.boundingBox); + unittest.expect(o.confidence, unittest.equals(42.0)); + checkUnnamed4140(o.paragraphs); + checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(o.property); + } + buildCounterGoogleCloudVisionV1p2beta1Block--; +} + +buildUnnamed4141() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1NormalizedVertex>(); + o.add(buildGoogleCloudVisionV1p2beta1NormalizedVertex()); + o.add(buildGoogleCloudVisionV1p2beta1NormalizedVertex()); + return o; +} + +checkUnnamed4141(core.List<api.GoogleCloudVisionV1p2beta1NormalizedVertex> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1NormalizedVertex(o[0]); + checkGoogleCloudVisionV1p2beta1NormalizedVertex(o[1]); +} + +buildUnnamed4142() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1Vertex>(); + o.add(buildGoogleCloudVisionV1p2beta1Vertex()); + o.add(buildGoogleCloudVisionV1p2beta1Vertex()); + return o; +} + +checkUnnamed4142(core.List<api.GoogleCloudVisionV1p2beta1Vertex> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1Vertex(o[0]); + checkGoogleCloudVisionV1p2beta1Vertex(o[1]); +} + +core.int buildCounterGoogleCloudVisionV1p2beta1BoundingPoly = 0; +buildGoogleCloudVisionV1p2beta1BoundingPoly() { + var o = new api.GoogleCloudVisionV1p2beta1BoundingPoly(); + buildCounterGoogleCloudVisionV1p2beta1BoundingPoly++; + if (buildCounterGoogleCloudVisionV1p2beta1BoundingPoly < 3) { + o.normalizedVertices = buildUnnamed4141(); + o.vertices = buildUnnamed4142(); + } + buildCounterGoogleCloudVisionV1p2beta1BoundingPoly--; + return o; +} + +checkGoogleCloudVisionV1p2beta1BoundingPoly( + api.GoogleCloudVisionV1p2beta1BoundingPoly o) { + buildCounterGoogleCloudVisionV1p2beta1BoundingPoly++; + if (buildCounterGoogleCloudVisionV1p2beta1BoundingPoly < 3) { + checkUnnamed4141(o.normalizedVertices); + checkUnnamed4142(o.vertices); + } + buildCounterGoogleCloudVisionV1p2beta1BoundingPoly--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1ColorInfo = 0; +buildGoogleCloudVisionV1p2beta1ColorInfo() { + var o = new api.GoogleCloudVisionV1p2beta1ColorInfo(); + buildCounterGoogleCloudVisionV1p2beta1ColorInfo++; + if (buildCounterGoogleCloudVisionV1p2beta1ColorInfo < 3) { + o.color = buildColor(); + o.pixelFraction = 42.0; + o.score = 42.0; + } + buildCounterGoogleCloudVisionV1p2beta1ColorInfo--; + return o; +} + +checkGoogleCloudVisionV1p2beta1ColorInfo( + api.GoogleCloudVisionV1p2beta1ColorInfo o) { + buildCounterGoogleCloudVisionV1p2beta1ColorInfo++; + if (buildCounterGoogleCloudVisionV1p2beta1ColorInfo < 3) { + checkColor(o.color); + unittest.expect(o.pixelFraction, unittest.equals(42.0)); + unittest.expect(o.score, unittest.equals(42.0)); + } + buildCounterGoogleCloudVisionV1p2beta1ColorInfo--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1CropHint = 0; +buildGoogleCloudVisionV1p2beta1CropHint() { + var o = new api.GoogleCloudVisionV1p2beta1CropHint(); + buildCounterGoogleCloudVisionV1p2beta1CropHint++; + if (buildCounterGoogleCloudVisionV1p2beta1CropHint < 3) { + o.boundingPoly = buildGoogleCloudVisionV1p2beta1BoundingPoly(); + o.confidence = 42.0; + o.importanceFraction = 42.0; + } + buildCounterGoogleCloudVisionV1p2beta1CropHint--; + return o; +} + +checkGoogleCloudVisionV1p2beta1CropHint( + api.GoogleCloudVisionV1p2beta1CropHint o) { + buildCounterGoogleCloudVisionV1p2beta1CropHint++; + if (buildCounterGoogleCloudVisionV1p2beta1CropHint < 3) { + checkGoogleCloudVisionV1p2beta1BoundingPoly(o.boundingPoly); + unittest.expect(o.confidence, unittest.equals(42.0)); + unittest.expect(o.importanceFraction, unittest.equals(42.0)); + } + buildCounterGoogleCloudVisionV1p2beta1CropHint--; +} + +buildUnnamed4143() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1CropHint>(); + o.add(buildGoogleCloudVisionV1p2beta1CropHint()); + o.add(buildGoogleCloudVisionV1p2beta1CropHint()); + return o; +} + +checkUnnamed4143(core.List<api.GoogleCloudVisionV1p2beta1CropHint> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1CropHint(o[0]); + checkGoogleCloudVisionV1p2beta1CropHint(o[1]); +} + +core.int buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation = 0; +buildGoogleCloudVisionV1p2beta1CropHintsAnnotation() { + var o = new api.GoogleCloudVisionV1p2beta1CropHintsAnnotation(); + buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation++; + if (buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation < 3) { + o.cropHints = buildUnnamed4143(); + } + buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation--; + return o; +} + +checkGoogleCloudVisionV1p2beta1CropHintsAnnotation( + api.GoogleCloudVisionV1p2beta1CropHintsAnnotation o) { + buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation++; + if (buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation < 3) { + checkUnnamed4143(o.cropHints); + } + buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation--; +} + +buildUnnamed4144() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1ColorInfo>(); + o.add(buildGoogleCloudVisionV1p2beta1ColorInfo()); + o.add(buildGoogleCloudVisionV1p2beta1ColorInfo()); + return o; +} + +checkUnnamed4144(core.List<api.GoogleCloudVisionV1p2beta1ColorInfo> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1ColorInfo(o[0]); + checkGoogleCloudVisionV1p2beta1ColorInfo(o[1]); +} + +core.int buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation = 0; +buildGoogleCloudVisionV1p2beta1DominantColorsAnnotation() { + var o = new api.GoogleCloudVisionV1p2beta1DominantColorsAnnotation(); + buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation++; + if (buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation < 3) { + o.colors = buildUnnamed4144(); + } + buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation--; + return o; +} + +checkGoogleCloudVisionV1p2beta1DominantColorsAnnotation( + api.GoogleCloudVisionV1p2beta1DominantColorsAnnotation o) { + buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation++; + if (buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation < 3) { + checkUnnamed4144(o.colors); + } + buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation--; +} + +buildUnnamed4145() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1LocationInfo>(); + o.add(buildGoogleCloudVisionV1p2beta1LocationInfo()); + o.add(buildGoogleCloudVisionV1p2beta1LocationInfo()); + return o; +} + +checkUnnamed4145(core.List<api.GoogleCloudVisionV1p2beta1LocationInfo> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1LocationInfo(o[0]); + checkGoogleCloudVisionV1p2beta1LocationInfo(o[1]); +} + +buildUnnamed4146() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1Property>(); + o.add(buildGoogleCloudVisionV1p2beta1Property()); + o.add(buildGoogleCloudVisionV1p2beta1Property()); + return o; +} + +checkUnnamed4146(core.List<api.GoogleCloudVisionV1p2beta1Property> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1Property(o[0]); + checkGoogleCloudVisionV1p2beta1Property(o[1]); +} + +core.int buildCounterGoogleCloudVisionV1p2beta1EntityAnnotation = 0; +buildGoogleCloudVisionV1p2beta1EntityAnnotation() { + var o = new api.GoogleCloudVisionV1p2beta1EntityAnnotation(); + buildCounterGoogleCloudVisionV1p2beta1EntityAnnotation++; + if (buildCounterGoogleCloudVisionV1p2beta1EntityAnnotation < 3) { + o.boundingPoly = buildGoogleCloudVisionV1p2beta1BoundingPoly(); + o.confidence = 42.0; + o.description = "foo"; + o.locale = "foo"; + o.locations = buildUnnamed4145(); + o.mid = "foo"; + o.properties = buildUnnamed4146(); + o.score = 42.0; + o.topicality = 42.0; + } + buildCounterGoogleCloudVisionV1p2beta1EntityAnnotation--; + return o; +} + +checkGoogleCloudVisionV1p2beta1EntityAnnotation( + api.GoogleCloudVisionV1p2beta1EntityAnnotation o) { + buildCounterGoogleCloudVisionV1p2beta1EntityAnnotation++; + if (buildCounterGoogleCloudVisionV1p2beta1EntityAnnotation < 3) { + checkGoogleCloudVisionV1p2beta1BoundingPoly(o.boundingPoly); + unittest.expect(o.confidence, unittest.equals(42.0)); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.locale, unittest.equals('foo')); + checkUnnamed4145(o.locations); + unittest.expect(o.mid, unittest.equals('foo')); + checkUnnamed4146(o.properties); + unittest.expect(o.score, unittest.equals(42.0)); + unittest.expect(o.topicality, unittest.equals(42.0)); + } + buildCounterGoogleCloudVisionV1p2beta1EntityAnnotation--; +} + +buildUnnamed4147() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1FaceAnnotationLandmark>(); + o.add(buildGoogleCloudVisionV1p2beta1FaceAnnotationLandmark()); + o.add(buildGoogleCloudVisionV1p2beta1FaceAnnotationLandmark()); + return o; +} + +checkUnnamed4147( + core.List<api.GoogleCloudVisionV1p2beta1FaceAnnotationLandmark> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1FaceAnnotationLandmark(o[0]); + checkGoogleCloudVisionV1p2beta1FaceAnnotationLandmark(o[1]); +} + +core.int buildCounterGoogleCloudVisionV1p2beta1FaceAnnotation = 0; +buildGoogleCloudVisionV1p2beta1FaceAnnotation() { + var o = new api.GoogleCloudVisionV1p2beta1FaceAnnotation(); + buildCounterGoogleCloudVisionV1p2beta1FaceAnnotation++; + if (buildCounterGoogleCloudVisionV1p2beta1FaceAnnotation < 3) { + o.angerLikelihood = "foo"; + o.blurredLikelihood = "foo"; + o.boundingPoly = buildGoogleCloudVisionV1p2beta1BoundingPoly(); + o.detectionConfidence = 42.0; + o.fdBoundingPoly = buildGoogleCloudVisionV1p2beta1BoundingPoly(); + o.headwearLikelihood = "foo"; + o.joyLikelihood = "foo"; + o.landmarkingConfidence = 42.0; + o.landmarks = buildUnnamed4147(); + o.panAngle = 42.0; + o.rollAngle = 42.0; + o.sorrowLikelihood = "foo"; + o.surpriseLikelihood = "foo"; + o.tiltAngle = 42.0; + o.underExposedLikelihood = "foo"; + } + buildCounterGoogleCloudVisionV1p2beta1FaceAnnotation--; + return o; +} + +checkGoogleCloudVisionV1p2beta1FaceAnnotation( + api.GoogleCloudVisionV1p2beta1FaceAnnotation o) { + buildCounterGoogleCloudVisionV1p2beta1FaceAnnotation++; + if (buildCounterGoogleCloudVisionV1p2beta1FaceAnnotation < 3) { + unittest.expect(o.angerLikelihood, unittest.equals('foo')); + unittest.expect(o.blurredLikelihood, unittest.equals('foo')); + checkGoogleCloudVisionV1p2beta1BoundingPoly(o.boundingPoly); + unittest.expect(o.detectionConfidence, unittest.equals(42.0)); + checkGoogleCloudVisionV1p2beta1BoundingPoly(o.fdBoundingPoly); + unittest.expect(o.headwearLikelihood, unittest.equals('foo')); + unittest.expect(o.joyLikelihood, unittest.equals('foo')); + unittest.expect(o.landmarkingConfidence, unittest.equals(42.0)); + checkUnnamed4147(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')); + unittest.expect(o.surpriseLikelihood, unittest.equals('foo')); + unittest.expect(o.tiltAngle, unittest.equals(42.0)); + unittest.expect(o.underExposedLikelihood, unittest.equals('foo')); + } + buildCounterGoogleCloudVisionV1p2beta1FaceAnnotation--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1FaceAnnotationLandmark = 0; +buildGoogleCloudVisionV1p2beta1FaceAnnotationLandmark() { + var o = new api.GoogleCloudVisionV1p2beta1FaceAnnotationLandmark(); + buildCounterGoogleCloudVisionV1p2beta1FaceAnnotationLandmark++; + if (buildCounterGoogleCloudVisionV1p2beta1FaceAnnotationLandmark < 3) { + o.position = buildGoogleCloudVisionV1p2beta1Position(); + o.type = "foo"; + } + buildCounterGoogleCloudVisionV1p2beta1FaceAnnotationLandmark--; + return o; +} + +checkGoogleCloudVisionV1p2beta1FaceAnnotationLandmark( + api.GoogleCloudVisionV1p2beta1FaceAnnotationLandmark o) { + buildCounterGoogleCloudVisionV1p2beta1FaceAnnotationLandmark++; + if (buildCounterGoogleCloudVisionV1p2beta1FaceAnnotationLandmark < 3) { + checkGoogleCloudVisionV1p2beta1Position(o.position); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterGoogleCloudVisionV1p2beta1FaceAnnotationLandmark--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1GcsDestination = 0; +buildGoogleCloudVisionV1p2beta1GcsDestination() { + var o = new api.GoogleCloudVisionV1p2beta1GcsDestination(); + buildCounterGoogleCloudVisionV1p2beta1GcsDestination++; + if (buildCounterGoogleCloudVisionV1p2beta1GcsDestination < 3) { + o.uri = "foo"; + } + buildCounterGoogleCloudVisionV1p2beta1GcsDestination--; + return o; +} + +checkGoogleCloudVisionV1p2beta1GcsDestination( + api.GoogleCloudVisionV1p2beta1GcsDestination o) { + buildCounterGoogleCloudVisionV1p2beta1GcsDestination++; + if (buildCounterGoogleCloudVisionV1p2beta1GcsDestination < 3) { + unittest.expect(o.uri, unittest.equals('foo')); + } + buildCounterGoogleCloudVisionV1p2beta1GcsDestination--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1GcsSource = 0; +buildGoogleCloudVisionV1p2beta1GcsSource() { + var o = new api.GoogleCloudVisionV1p2beta1GcsSource(); + buildCounterGoogleCloudVisionV1p2beta1GcsSource++; + if (buildCounterGoogleCloudVisionV1p2beta1GcsSource < 3) { + o.uri = "foo"; + } + buildCounterGoogleCloudVisionV1p2beta1GcsSource--; + return o; +} + +checkGoogleCloudVisionV1p2beta1GcsSource( + api.GoogleCloudVisionV1p2beta1GcsSource o) { + buildCounterGoogleCloudVisionV1p2beta1GcsSource++; + if (buildCounterGoogleCloudVisionV1p2beta1GcsSource < 3) { + unittest.expect(o.uri, unittest.equals('foo')); + } + buildCounterGoogleCloudVisionV1p2beta1GcsSource--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1ImageAnnotationContext = 0; +buildGoogleCloudVisionV1p2beta1ImageAnnotationContext() { + var o = new api.GoogleCloudVisionV1p2beta1ImageAnnotationContext(); + buildCounterGoogleCloudVisionV1p2beta1ImageAnnotationContext++; + if (buildCounterGoogleCloudVisionV1p2beta1ImageAnnotationContext < 3) { + o.pageNumber = 42; + o.uri = "foo"; + } + buildCounterGoogleCloudVisionV1p2beta1ImageAnnotationContext--; + return o; +} + +checkGoogleCloudVisionV1p2beta1ImageAnnotationContext( + api.GoogleCloudVisionV1p2beta1ImageAnnotationContext o) { + buildCounterGoogleCloudVisionV1p2beta1ImageAnnotationContext++; + if (buildCounterGoogleCloudVisionV1p2beta1ImageAnnotationContext < 3) { + unittest.expect(o.pageNumber, unittest.equals(42)); + unittest.expect(o.uri, unittest.equals('foo')); + } + buildCounterGoogleCloudVisionV1p2beta1ImageAnnotationContext--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1ImageProperties = 0; +buildGoogleCloudVisionV1p2beta1ImageProperties() { + var o = new api.GoogleCloudVisionV1p2beta1ImageProperties(); + buildCounterGoogleCloudVisionV1p2beta1ImageProperties++; + if (buildCounterGoogleCloudVisionV1p2beta1ImageProperties < 3) { + o.dominantColors = + buildGoogleCloudVisionV1p2beta1DominantColorsAnnotation(); + } + buildCounterGoogleCloudVisionV1p2beta1ImageProperties--; + return o; +} + +checkGoogleCloudVisionV1p2beta1ImageProperties( + api.GoogleCloudVisionV1p2beta1ImageProperties o) { + buildCounterGoogleCloudVisionV1p2beta1ImageProperties++; + if (buildCounterGoogleCloudVisionV1p2beta1ImageProperties < 3) { + checkGoogleCloudVisionV1p2beta1DominantColorsAnnotation(o.dominantColors); + } + buildCounterGoogleCloudVisionV1p2beta1ImageProperties--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1InputConfig = 0; +buildGoogleCloudVisionV1p2beta1InputConfig() { + var o = new api.GoogleCloudVisionV1p2beta1InputConfig(); + buildCounterGoogleCloudVisionV1p2beta1InputConfig++; + if (buildCounterGoogleCloudVisionV1p2beta1InputConfig < 3) { + o.gcsSource = buildGoogleCloudVisionV1p2beta1GcsSource(); + o.mimeType = "foo"; + } + buildCounterGoogleCloudVisionV1p2beta1InputConfig--; + return o; +} + +checkGoogleCloudVisionV1p2beta1InputConfig( + api.GoogleCloudVisionV1p2beta1InputConfig o) { + buildCounterGoogleCloudVisionV1p2beta1InputConfig++; + if (buildCounterGoogleCloudVisionV1p2beta1InputConfig < 3) { + checkGoogleCloudVisionV1p2beta1GcsSource(o.gcsSource); + unittest.expect(o.mimeType, unittest.equals('foo')); + } + buildCounterGoogleCloudVisionV1p2beta1InputConfig--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1LocationInfo = 0; +buildGoogleCloudVisionV1p2beta1LocationInfo() { + var o = new api.GoogleCloudVisionV1p2beta1LocationInfo(); + buildCounterGoogleCloudVisionV1p2beta1LocationInfo++; + if (buildCounterGoogleCloudVisionV1p2beta1LocationInfo < 3) { + o.latLng = buildLatLng(); + } + buildCounterGoogleCloudVisionV1p2beta1LocationInfo--; + return o; +} + +checkGoogleCloudVisionV1p2beta1LocationInfo( + api.GoogleCloudVisionV1p2beta1LocationInfo o) { + buildCounterGoogleCloudVisionV1p2beta1LocationInfo++; + if (buildCounterGoogleCloudVisionV1p2beta1LocationInfo < 3) { + checkLatLng(o.latLng); + } + buildCounterGoogleCloudVisionV1p2beta1LocationInfo--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1NormalizedVertex = 0; +buildGoogleCloudVisionV1p2beta1NormalizedVertex() { + var o = new api.GoogleCloudVisionV1p2beta1NormalizedVertex(); + buildCounterGoogleCloudVisionV1p2beta1NormalizedVertex++; + if (buildCounterGoogleCloudVisionV1p2beta1NormalizedVertex < 3) { + o.x = 42.0; + o.y = 42.0; + } + buildCounterGoogleCloudVisionV1p2beta1NormalizedVertex--; + return o; +} + +checkGoogleCloudVisionV1p2beta1NormalizedVertex( + api.GoogleCloudVisionV1p2beta1NormalizedVertex o) { + buildCounterGoogleCloudVisionV1p2beta1NormalizedVertex++; + if (buildCounterGoogleCloudVisionV1p2beta1NormalizedVertex < 3) { + unittest.expect(o.x, unittest.equals(42.0)); + unittest.expect(o.y, unittest.equals(42.0)); + } + buildCounterGoogleCloudVisionV1p2beta1NormalizedVertex--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1OperationMetadata = 0; +buildGoogleCloudVisionV1p2beta1OperationMetadata() { + var o = new api.GoogleCloudVisionV1p2beta1OperationMetadata(); + buildCounterGoogleCloudVisionV1p2beta1OperationMetadata++; + if (buildCounterGoogleCloudVisionV1p2beta1OperationMetadata < 3) { + o.createTime = "foo"; + o.state = "foo"; + o.updateTime = "foo"; + } + buildCounterGoogleCloudVisionV1p2beta1OperationMetadata--; + return o; +} + +checkGoogleCloudVisionV1p2beta1OperationMetadata( + api.GoogleCloudVisionV1p2beta1OperationMetadata o) { + buildCounterGoogleCloudVisionV1p2beta1OperationMetadata++; + if (buildCounterGoogleCloudVisionV1p2beta1OperationMetadata < 3) { + unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.state, unittest.equals('foo')); + unittest.expect(o.updateTime, unittest.equals('foo')); + } + buildCounterGoogleCloudVisionV1p2beta1OperationMetadata--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1OutputConfig = 0; +buildGoogleCloudVisionV1p2beta1OutputConfig() { + var o = new api.GoogleCloudVisionV1p2beta1OutputConfig(); + buildCounterGoogleCloudVisionV1p2beta1OutputConfig++; + if (buildCounterGoogleCloudVisionV1p2beta1OutputConfig < 3) { + o.batchSize = 42; + o.gcsDestination = buildGoogleCloudVisionV1p2beta1GcsDestination(); + } + buildCounterGoogleCloudVisionV1p2beta1OutputConfig--; + return o; +} + +checkGoogleCloudVisionV1p2beta1OutputConfig( + api.GoogleCloudVisionV1p2beta1OutputConfig o) { + buildCounterGoogleCloudVisionV1p2beta1OutputConfig++; + if (buildCounterGoogleCloudVisionV1p2beta1OutputConfig < 3) { + unittest.expect(o.batchSize, unittest.equals(42)); + checkGoogleCloudVisionV1p2beta1GcsDestination(o.gcsDestination); + } + buildCounterGoogleCloudVisionV1p2beta1OutputConfig--; +} + +buildUnnamed4148() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1Block>(); + o.add(buildGoogleCloudVisionV1p2beta1Block()); + o.add(buildGoogleCloudVisionV1p2beta1Block()); + return o; +} + +checkUnnamed4148(core.List<api.GoogleCloudVisionV1p2beta1Block> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1Block(o[0]); + checkGoogleCloudVisionV1p2beta1Block(o[1]); +} + +core.int buildCounterGoogleCloudVisionV1p2beta1Page = 0; +buildGoogleCloudVisionV1p2beta1Page() { + var o = new api.GoogleCloudVisionV1p2beta1Page(); + buildCounterGoogleCloudVisionV1p2beta1Page++; + if (buildCounterGoogleCloudVisionV1p2beta1Page < 3) { + o.blocks = buildUnnamed4148(); + o.confidence = 42.0; + o.height = 42; + o.property = buildGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(); + o.width = 42; + } + buildCounterGoogleCloudVisionV1p2beta1Page--; + return o; +} + +checkGoogleCloudVisionV1p2beta1Page(api.GoogleCloudVisionV1p2beta1Page o) { + buildCounterGoogleCloudVisionV1p2beta1Page++; + if (buildCounterGoogleCloudVisionV1p2beta1Page < 3) { + checkUnnamed4148(o.blocks); + unittest.expect(o.confidence, unittest.equals(42.0)); + unittest.expect(o.height, unittest.equals(42)); + checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(o.property); + unittest.expect(o.width, unittest.equals(42)); + } + buildCounterGoogleCloudVisionV1p2beta1Page--; +} + +buildUnnamed4149() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1Word>(); + o.add(buildGoogleCloudVisionV1p2beta1Word()); + o.add(buildGoogleCloudVisionV1p2beta1Word()); + return o; +} + +checkUnnamed4149(core.List<api.GoogleCloudVisionV1p2beta1Word> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1Word(o[0]); + checkGoogleCloudVisionV1p2beta1Word(o[1]); +} + +core.int buildCounterGoogleCloudVisionV1p2beta1Paragraph = 0; +buildGoogleCloudVisionV1p2beta1Paragraph() { + var o = new api.GoogleCloudVisionV1p2beta1Paragraph(); + buildCounterGoogleCloudVisionV1p2beta1Paragraph++; + if (buildCounterGoogleCloudVisionV1p2beta1Paragraph < 3) { + o.boundingBox = buildGoogleCloudVisionV1p2beta1BoundingPoly(); + o.confidence = 42.0; + o.property = buildGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(); + o.words = buildUnnamed4149(); + } + buildCounterGoogleCloudVisionV1p2beta1Paragraph--; + return o; +} + +checkGoogleCloudVisionV1p2beta1Paragraph( + api.GoogleCloudVisionV1p2beta1Paragraph o) { + buildCounterGoogleCloudVisionV1p2beta1Paragraph++; + if (buildCounterGoogleCloudVisionV1p2beta1Paragraph < 3) { + checkGoogleCloudVisionV1p2beta1BoundingPoly(o.boundingBox); + unittest.expect(o.confidence, unittest.equals(42.0)); + checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(o.property); + checkUnnamed4149(o.words); + } + buildCounterGoogleCloudVisionV1p2beta1Paragraph--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1Position = 0; +buildGoogleCloudVisionV1p2beta1Position() { + var o = new api.GoogleCloudVisionV1p2beta1Position(); + buildCounterGoogleCloudVisionV1p2beta1Position++; + if (buildCounterGoogleCloudVisionV1p2beta1Position < 3) { + o.x = 42.0; + o.y = 42.0; + o.z = 42.0; + } + buildCounterGoogleCloudVisionV1p2beta1Position--; + return o; +} + +checkGoogleCloudVisionV1p2beta1Position( + api.GoogleCloudVisionV1p2beta1Position o) { + buildCounterGoogleCloudVisionV1p2beta1Position++; + if (buildCounterGoogleCloudVisionV1p2beta1Position < 3) { + unittest.expect(o.x, unittest.equals(42.0)); + unittest.expect(o.y, unittest.equals(42.0)); + unittest.expect(o.z, unittest.equals(42.0)); + } + buildCounterGoogleCloudVisionV1p2beta1Position--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1Property = 0; +buildGoogleCloudVisionV1p2beta1Property() { + var o = new api.GoogleCloudVisionV1p2beta1Property(); + buildCounterGoogleCloudVisionV1p2beta1Property++; + if (buildCounterGoogleCloudVisionV1p2beta1Property < 3) { + o.name = "foo"; + o.uint64Value = "foo"; + o.value = "foo"; + } + buildCounterGoogleCloudVisionV1p2beta1Property--; + return o; +} + +checkGoogleCloudVisionV1p2beta1Property( + api.GoogleCloudVisionV1p2beta1Property o) { + buildCounterGoogleCloudVisionV1p2beta1Property++; + if (buildCounterGoogleCloudVisionV1p2beta1Property < 3) { + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.uint64Value, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterGoogleCloudVisionV1p2beta1Property--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1SafeSearchAnnotation = 0; +buildGoogleCloudVisionV1p2beta1SafeSearchAnnotation() { + var o = new api.GoogleCloudVisionV1p2beta1SafeSearchAnnotation(); + buildCounterGoogleCloudVisionV1p2beta1SafeSearchAnnotation++; + if (buildCounterGoogleCloudVisionV1p2beta1SafeSearchAnnotation < 3) { + o.adult = "foo"; + o.medical = "foo"; + o.racy = "foo"; + o.spoof = "foo"; + o.violence = "foo"; + } + buildCounterGoogleCloudVisionV1p2beta1SafeSearchAnnotation--; + return o; +} + +checkGoogleCloudVisionV1p2beta1SafeSearchAnnotation( + api.GoogleCloudVisionV1p2beta1SafeSearchAnnotation o) { + buildCounterGoogleCloudVisionV1p2beta1SafeSearchAnnotation++; + if (buildCounterGoogleCloudVisionV1p2beta1SafeSearchAnnotation < 3) { + unittest.expect(o.adult, unittest.equals('foo')); + unittest.expect(o.medical, unittest.equals('foo')); + unittest.expect(o.racy, unittest.equals('foo')); + unittest.expect(o.spoof, unittest.equals('foo')); + unittest.expect(o.violence, unittest.equals('foo')); + } + buildCounterGoogleCloudVisionV1p2beta1SafeSearchAnnotation--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1Symbol = 0; +buildGoogleCloudVisionV1p2beta1Symbol() { + var o = new api.GoogleCloudVisionV1p2beta1Symbol(); + buildCounterGoogleCloudVisionV1p2beta1Symbol++; + if (buildCounterGoogleCloudVisionV1p2beta1Symbol < 3) { + o.boundingBox = buildGoogleCloudVisionV1p2beta1BoundingPoly(); + o.confidence = 42.0; + o.property = buildGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(); + o.text = "foo"; + } + buildCounterGoogleCloudVisionV1p2beta1Symbol--; + return o; +} + +checkGoogleCloudVisionV1p2beta1Symbol(api.GoogleCloudVisionV1p2beta1Symbol o) { + buildCounterGoogleCloudVisionV1p2beta1Symbol++; + if (buildCounterGoogleCloudVisionV1p2beta1Symbol < 3) { + checkGoogleCloudVisionV1p2beta1BoundingPoly(o.boundingBox); + unittest.expect(o.confidence, unittest.equals(42.0)); + checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(o.property); + unittest.expect(o.text, unittest.equals('foo')); + } + buildCounterGoogleCloudVisionV1p2beta1Symbol--; +} + +buildUnnamed4150() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1Page>(); + o.add(buildGoogleCloudVisionV1p2beta1Page()); + o.add(buildGoogleCloudVisionV1p2beta1Page()); + return o; +} + +checkUnnamed4150(core.List<api.GoogleCloudVisionV1p2beta1Page> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1Page(o[0]); + checkGoogleCloudVisionV1p2beta1Page(o[1]); +} + +core.int buildCounterGoogleCloudVisionV1p2beta1TextAnnotation = 0; +buildGoogleCloudVisionV1p2beta1TextAnnotation() { + var o = new api.GoogleCloudVisionV1p2beta1TextAnnotation(); + buildCounterGoogleCloudVisionV1p2beta1TextAnnotation++; + if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotation < 3) { + o.pages = buildUnnamed4150(); + o.text = "foo"; + } + buildCounterGoogleCloudVisionV1p2beta1TextAnnotation--; + return o; +} + +checkGoogleCloudVisionV1p2beta1TextAnnotation( + api.GoogleCloudVisionV1p2beta1TextAnnotation o) { + buildCounterGoogleCloudVisionV1p2beta1TextAnnotation++; + if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotation < 3) { + checkUnnamed4150(o.pages); + unittest.expect(o.text, unittest.equals('foo')); + } + buildCounterGoogleCloudVisionV1p2beta1TextAnnotation--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak = 0; +buildGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak() { + var o = new api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak(); + buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak++; + if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak < 3) { + o.isPrefix = true; + o.type = "foo"; + } + buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak--; + return o; +} + +checkGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak( + api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak o) { + buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak++; + if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak < 3) { + unittest.expect(o.isPrefix, unittest.isTrue); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage = + 0; +buildGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage() { + var o = new api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage(); + buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage++; + if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage < + 3) { + o.confidence = 42.0; + o.languageCode = "foo"; + } + buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage--; + return o; +} + +checkGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage( + api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage o) { + buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage++; + if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage < + 3) { + unittest.expect(o.confidence, unittest.equals(42.0)); + unittest.expect(o.languageCode, unittest.equals('foo')); + } + buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage--; +} + +buildUnnamed4151() { + var o = new core + .List<api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage>(); + o.add(buildGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage()); + o.add(buildGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage()); + return o; +} + +checkUnnamed4151( + core.List<api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage(o[0]); + checkGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage(o[1]); +} + +core.int buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty = 0; +buildGoogleCloudVisionV1p2beta1TextAnnotationTextProperty() { + var o = new api.GoogleCloudVisionV1p2beta1TextAnnotationTextProperty(); + buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty++; + if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty < 3) { + o.detectedBreak = + buildGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak(); + o.detectedLanguages = buildUnnamed4151(); + } + buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty--; + return o; +} + +checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty( + api.GoogleCloudVisionV1p2beta1TextAnnotationTextProperty o) { + buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty++; + if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty < 3) { + checkGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak(o.detectedBreak); + checkUnnamed4151(o.detectedLanguages); + } + buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1Vertex = 0; +buildGoogleCloudVisionV1p2beta1Vertex() { + var o = new api.GoogleCloudVisionV1p2beta1Vertex(); + buildCounterGoogleCloudVisionV1p2beta1Vertex++; + if (buildCounterGoogleCloudVisionV1p2beta1Vertex < 3) { + o.x = 42; + o.y = 42; + } + buildCounterGoogleCloudVisionV1p2beta1Vertex--; + return o; +} + +checkGoogleCloudVisionV1p2beta1Vertex(api.GoogleCloudVisionV1p2beta1Vertex o) { + buildCounterGoogleCloudVisionV1p2beta1Vertex++; + if (buildCounterGoogleCloudVisionV1p2beta1Vertex < 3) { + unittest.expect(o.x, unittest.equals(42)); + unittest.expect(o.y, unittest.equals(42)); + } + buildCounterGoogleCloudVisionV1p2beta1Vertex--; +} + +buildUnnamed4152() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebLabel>(); + o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebLabel()); + o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebLabel()); + return o; +} + +checkUnnamed4152( + core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebLabel> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1WebDetectionWebLabel(o[0]); + checkGoogleCloudVisionV1p2beta1WebDetectionWebLabel(o[1]); +} + +buildUnnamed4153() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage>(); + o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); + o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); + return o; +} + +checkUnnamed4153( + core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[0]); + checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[1]); +} + +buildUnnamed4154() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebPage>(); + o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebPage()); + o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebPage()); + return o; +} + +checkUnnamed4154( + core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebPage> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1WebDetectionWebPage(o[0]); + checkGoogleCloudVisionV1p2beta1WebDetectionWebPage(o[1]); +} + +buildUnnamed4155() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage>(); + o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); + o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); + return o; +} + +checkUnnamed4155( + core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[0]); + checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[1]); +} + +buildUnnamed4156() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage>(); + o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); + o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); + return o; +} + +checkUnnamed4156( + core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[0]); + checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[1]); +} + +buildUnnamed4157() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebEntity>(); + o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebEntity()); + o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebEntity()); + return o; +} + +checkUnnamed4157( + core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebEntity> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1WebDetectionWebEntity(o[0]); + checkGoogleCloudVisionV1p2beta1WebDetectionWebEntity(o[1]); +} + +core.int buildCounterGoogleCloudVisionV1p2beta1WebDetection = 0; +buildGoogleCloudVisionV1p2beta1WebDetection() { + var o = new api.GoogleCloudVisionV1p2beta1WebDetection(); + buildCounterGoogleCloudVisionV1p2beta1WebDetection++; + if (buildCounterGoogleCloudVisionV1p2beta1WebDetection < 3) { + o.bestGuessLabels = buildUnnamed4152(); + o.fullMatchingImages = buildUnnamed4153(); + o.pagesWithMatchingImages = buildUnnamed4154(); + o.partialMatchingImages = buildUnnamed4155(); + o.visuallySimilarImages = buildUnnamed4156(); + o.webEntities = buildUnnamed4157(); + } + buildCounterGoogleCloudVisionV1p2beta1WebDetection--; + return o; +} + +checkGoogleCloudVisionV1p2beta1WebDetection( + api.GoogleCloudVisionV1p2beta1WebDetection o) { + buildCounterGoogleCloudVisionV1p2beta1WebDetection++; + if (buildCounterGoogleCloudVisionV1p2beta1WebDetection < 3) { + checkUnnamed4152(o.bestGuessLabels); + checkUnnamed4153(o.fullMatchingImages); + checkUnnamed4154(o.pagesWithMatchingImages); + checkUnnamed4155(o.partialMatchingImages); + checkUnnamed4156(o.visuallySimilarImages); + checkUnnamed4157(o.webEntities); + } + buildCounterGoogleCloudVisionV1p2beta1WebDetection--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebEntity = 0; +buildGoogleCloudVisionV1p2beta1WebDetectionWebEntity() { + var o = new api.GoogleCloudVisionV1p2beta1WebDetectionWebEntity(); + buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebEntity++; + if (buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebEntity < 3) { + o.description = "foo"; + o.entityId = "foo"; + o.score = 42.0; + } + buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebEntity--; + return o; +} + +checkGoogleCloudVisionV1p2beta1WebDetectionWebEntity( + api.GoogleCloudVisionV1p2beta1WebDetectionWebEntity o) { + buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebEntity++; + if (buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebEntity < 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.entityId, unittest.equals('foo')); + unittest.expect(o.score, unittest.equals(42.0)); + } + buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebEntity--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebImage = 0; +buildGoogleCloudVisionV1p2beta1WebDetectionWebImage() { + var o = new api.GoogleCloudVisionV1p2beta1WebDetectionWebImage(); + buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebImage++; + if (buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebImage < 3) { + o.score = 42.0; + o.url = "foo"; + } + buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebImage--; + return o; +} + +checkGoogleCloudVisionV1p2beta1WebDetectionWebImage( + api.GoogleCloudVisionV1p2beta1WebDetectionWebImage o) { + buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebImage++; + if (buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebImage < 3) { + unittest.expect(o.score, unittest.equals(42.0)); + unittest.expect(o.url, unittest.equals('foo')); + } + buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebImage--; +} + +core.int buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebLabel = 0; +buildGoogleCloudVisionV1p2beta1WebDetectionWebLabel() { + var o = new api.GoogleCloudVisionV1p2beta1WebDetectionWebLabel(); + buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebLabel++; + if (buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebLabel < 3) { + o.label = "foo"; + o.languageCode = "foo"; + } + buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebLabel--; + return o; +} + +checkGoogleCloudVisionV1p2beta1WebDetectionWebLabel( + api.GoogleCloudVisionV1p2beta1WebDetectionWebLabel o) { + buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebLabel++; + if (buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebLabel < 3) { + unittest.expect(o.label, unittest.equals('foo')); + unittest.expect(o.languageCode, unittest.equals('foo')); + } + buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebLabel--; +} + +buildUnnamed4158() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage>(); + o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); + o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); + return o; +} + +checkUnnamed4158( + core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[0]); + checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[1]); +} + +buildUnnamed4159() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage>(); + o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); + o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); + return o; +} + +checkUnnamed4159( + core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[0]); + checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[1]); +} + +core.int buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage = 0; +buildGoogleCloudVisionV1p2beta1WebDetectionWebPage() { + var o = new api.GoogleCloudVisionV1p2beta1WebDetectionWebPage(); + buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage++; + if (buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage < 3) { + o.fullMatchingImages = buildUnnamed4158(); + o.pageTitle = "foo"; + o.partialMatchingImages = buildUnnamed4159(); + o.score = 42.0; + o.url = "foo"; + } + buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage--; + return o; +} + +checkGoogleCloudVisionV1p2beta1WebDetectionWebPage( + api.GoogleCloudVisionV1p2beta1WebDetectionWebPage o) { + buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage++; + if (buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage < 3) { + checkUnnamed4158(o.fullMatchingImages); + unittest.expect(o.pageTitle, unittest.equals('foo')); + checkUnnamed4159(o.partialMatchingImages); + unittest.expect(o.score, unittest.equals(42.0)); + unittest.expect(o.url, unittest.equals('foo')); + } + buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage--; +} + +buildUnnamed4160() { + var o = new core.List<api.GoogleCloudVisionV1p2beta1Symbol>(); + o.add(buildGoogleCloudVisionV1p2beta1Symbol()); + o.add(buildGoogleCloudVisionV1p2beta1Symbol()); + return o; +} + +checkUnnamed4160(core.List<api.GoogleCloudVisionV1p2beta1Symbol> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p2beta1Symbol(o[0]); + checkGoogleCloudVisionV1p2beta1Symbol(o[1]); +} + +core.int buildCounterGoogleCloudVisionV1p2beta1Word = 0; +buildGoogleCloudVisionV1p2beta1Word() { + var o = new api.GoogleCloudVisionV1p2beta1Word(); + buildCounterGoogleCloudVisionV1p2beta1Word++; + if (buildCounterGoogleCloudVisionV1p2beta1Word < 3) { + o.boundingBox = buildGoogleCloudVisionV1p2beta1BoundingPoly(); + o.confidence = 42.0; + o.property = buildGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(); + o.symbols = buildUnnamed4160(); + } + buildCounterGoogleCloudVisionV1p2beta1Word--; + return o; +} + +checkGoogleCloudVisionV1p2beta1Word(api.GoogleCloudVisionV1p2beta1Word o) { + buildCounterGoogleCloudVisionV1p2beta1Word++; + if (buildCounterGoogleCloudVisionV1p2beta1Word < 3) { + checkGoogleCloudVisionV1p2beta1BoundingPoly(o.boundingBox); + unittest.expect(o.confidence, unittest.equals(42.0)); + checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(o.property); + checkUnnamed4160(o.symbols); + } + buildCounterGoogleCloudVisionV1p2beta1Word--; +} + +core.int buildCounterGoogleCloudVisionV1p3beta1BatchOperationMetadata = 0; +buildGoogleCloudVisionV1p3beta1BatchOperationMetadata() { + var o = new api.GoogleCloudVisionV1p3beta1BatchOperationMetadata(); + buildCounterGoogleCloudVisionV1p3beta1BatchOperationMetadata++; + if (buildCounterGoogleCloudVisionV1p3beta1BatchOperationMetadata < 3) { + o.endTime = "foo"; + o.state = "foo"; + o.submitTime = "foo"; + } + buildCounterGoogleCloudVisionV1p3beta1BatchOperationMetadata--; + return o; +} + +checkGoogleCloudVisionV1p3beta1BatchOperationMetadata( + api.GoogleCloudVisionV1p3beta1BatchOperationMetadata o) { + buildCounterGoogleCloudVisionV1p3beta1BatchOperationMetadata++; + if (buildCounterGoogleCloudVisionV1p3beta1BatchOperationMetadata < 3) { + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.state, unittest.equals('foo')); + unittest.expect(o.submitTime, unittest.equals('foo')); + } + buildCounterGoogleCloudVisionV1p3beta1BatchOperationMetadata--; +} + +buildUnnamed4161() { + var o = new core.List<api.GoogleCloudVisionV1p3beta1NormalizedVertex>(); + o.add(buildGoogleCloudVisionV1p3beta1NormalizedVertex()); + o.add(buildGoogleCloudVisionV1p3beta1NormalizedVertex()); + return o; +} + +checkUnnamed4161(core.List<api.GoogleCloudVisionV1p3beta1NormalizedVertex> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p3beta1NormalizedVertex(o[0]); + checkGoogleCloudVisionV1p3beta1NormalizedVertex(o[1]); +} + +buildUnnamed4162() { + var o = new core.List<api.GoogleCloudVisionV1p3beta1Vertex>(); + o.add(buildGoogleCloudVisionV1p3beta1Vertex()); + o.add(buildGoogleCloudVisionV1p3beta1Vertex()); + return o; +} + +checkUnnamed4162(core.List<api.GoogleCloudVisionV1p3beta1Vertex> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p3beta1Vertex(o[0]); + checkGoogleCloudVisionV1p3beta1Vertex(o[1]); +} + +core.int buildCounterGoogleCloudVisionV1p3beta1BoundingPoly = 0; +buildGoogleCloudVisionV1p3beta1BoundingPoly() { + var o = new api.GoogleCloudVisionV1p3beta1BoundingPoly(); + buildCounterGoogleCloudVisionV1p3beta1BoundingPoly++; + if (buildCounterGoogleCloudVisionV1p3beta1BoundingPoly < 3) { + o.normalizedVertices = buildUnnamed4161(); + o.vertices = buildUnnamed4162(); + } + buildCounterGoogleCloudVisionV1p3beta1BoundingPoly--; + return o; +} + +checkGoogleCloudVisionV1p3beta1BoundingPoly( + api.GoogleCloudVisionV1p3beta1BoundingPoly o) { + buildCounterGoogleCloudVisionV1p3beta1BoundingPoly++; + if (buildCounterGoogleCloudVisionV1p3beta1BoundingPoly < 3) { + checkUnnamed4161(o.normalizedVertices); + checkUnnamed4162(o.vertices); + } + buildCounterGoogleCloudVisionV1p3beta1BoundingPoly--; +} + +buildUnnamed4163() { + var o = new core.List<api.GoogleCloudVisionV1p3beta1ReferenceImage>(); + o.add(buildGoogleCloudVisionV1p3beta1ReferenceImage()); + o.add(buildGoogleCloudVisionV1p3beta1ReferenceImage()); + return o; +} + +checkUnnamed4163(core.List<api.GoogleCloudVisionV1p3beta1ReferenceImage> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p3beta1ReferenceImage(o[0]); + checkGoogleCloudVisionV1p3beta1ReferenceImage(o[1]); +} + +buildUnnamed4164() { + var o = new core.List<api.Status>(); + o.add(buildStatus()); + o.add(buildStatus()); + return o; +} + +checkUnnamed4164(core.List<api.Status> o) { + unittest.expect(o, unittest.hasLength(2)); + checkStatus(o[0]); + checkStatus(o[1]); +} + +core.int buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse = 0; +buildGoogleCloudVisionV1p3beta1ImportProductSetsResponse() { + var o = new api.GoogleCloudVisionV1p3beta1ImportProductSetsResponse(); + buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse++; + if (buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse < 3) { + o.referenceImages = buildUnnamed4163(); + o.statuses = buildUnnamed4164(); + } + buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse--; + return o; +} + +checkGoogleCloudVisionV1p3beta1ImportProductSetsResponse( + api.GoogleCloudVisionV1p3beta1ImportProductSetsResponse o) { + buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse++; + if (buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse < 3) { + checkUnnamed4163(o.referenceImages); + checkUnnamed4164(o.statuses); + } + buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse--; +} + +core.int buildCounterGoogleCloudVisionV1p3beta1NormalizedVertex = 0; +buildGoogleCloudVisionV1p3beta1NormalizedVertex() { + var o = new api.GoogleCloudVisionV1p3beta1NormalizedVertex(); + buildCounterGoogleCloudVisionV1p3beta1NormalizedVertex++; + if (buildCounterGoogleCloudVisionV1p3beta1NormalizedVertex < 3) { + o.x = 42.0; + o.y = 42.0; + } + buildCounterGoogleCloudVisionV1p3beta1NormalizedVertex--; + return o; +} + +checkGoogleCloudVisionV1p3beta1NormalizedVertex( + api.GoogleCloudVisionV1p3beta1NormalizedVertex o) { + buildCounterGoogleCloudVisionV1p3beta1NormalizedVertex++; + if (buildCounterGoogleCloudVisionV1p3beta1NormalizedVertex < 3) { + unittest.expect(o.x, unittest.equals(42.0)); + unittest.expect(o.y, unittest.equals(42.0)); + } + buildCounterGoogleCloudVisionV1p3beta1NormalizedVertex--; +} + +buildUnnamed4165() { + var o = new core.List<api.GoogleCloudVisionV1p3beta1BoundingPoly>(); + o.add(buildGoogleCloudVisionV1p3beta1BoundingPoly()); + o.add(buildGoogleCloudVisionV1p3beta1BoundingPoly()); + return o; +} + +checkUnnamed4165(core.List<api.GoogleCloudVisionV1p3beta1BoundingPoly> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVisionV1p3beta1BoundingPoly(o[0]); + checkGoogleCloudVisionV1p3beta1BoundingPoly(o[1]); +} + +core.int buildCounterGoogleCloudVisionV1p3beta1ReferenceImage = 0; +buildGoogleCloudVisionV1p3beta1ReferenceImage() { + var o = new api.GoogleCloudVisionV1p3beta1ReferenceImage(); + buildCounterGoogleCloudVisionV1p3beta1ReferenceImage++; + if (buildCounterGoogleCloudVisionV1p3beta1ReferenceImage < 3) { + o.boundingPolys = buildUnnamed4165(); + o.name = "foo"; + o.uri = "foo"; + } + buildCounterGoogleCloudVisionV1p3beta1ReferenceImage--; + return o; +} + +checkGoogleCloudVisionV1p3beta1ReferenceImage( + api.GoogleCloudVisionV1p3beta1ReferenceImage o) { + buildCounterGoogleCloudVisionV1p3beta1ReferenceImage++; + if (buildCounterGoogleCloudVisionV1p3beta1ReferenceImage < 3) { + checkUnnamed4165(o.boundingPolys); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.uri, unittest.equals('foo')); + } + buildCounterGoogleCloudVisionV1p3beta1ReferenceImage--; +} + +core.int buildCounterGoogleCloudVisionV1p3beta1Vertex = 0; +buildGoogleCloudVisionV1p3beta1Vertex() { + var o = new api.GoogleCloudVisionV1p3beta1Vertex(); + buildCounterGoogleCloudVisionV1p3beta1Vertex++; + if (buildCounterGoogleCloudVisionV1p3beta1Vertex < 3) { + o.x = 42; + o.y = 42; + } + buildCounterGoogleCloudVisionV1p3beta1Vertex--; + return o; +} + +checkGoogleCloudVisionV1p3beta1Vertex(api.GoogleCloudVisionV1p3beta1Vertex o) { + buildCounterGoogleCloudVisionV1p3beta1Vertex++; + if (buildCounterGoogleCloudVisionV1p3beta1Vertex < 3) { + unittest.expect(o.x, unittest.equals(42)); + unittest.expect(o.y, unittest.equals(42)); + } + buildCounterGoogleCloudVisionV1p3beta1Vertex--; +} + core.int buildCounterImage = 0; buildImage() { var o = new api.Image(); @@ -700,14 +2482,35 @@ buildCounterImage--; } -buildUnnamed1202() { +core.int buildCounterImageAnnotationContext = 0; +buildImageAnnotationContext() { + var o = new api.ImageAnnotationContext(); + buildCounterImageAnnotationContext++; + if (buildCounterImageAnnotationContext < 3) { + o.pageNumber = 42; + o.uri = "foo"; + } + buildCounterImageAnnotationContext--; + return o; +} + +checkImageAnnotationContext(api.ImageAnnotationContext o) { + buildCounterImageAnnotationContext++; + if (buildCounterImageAnnotationContext < 3) { + unittest.expect(o.pageNumber, unittest.equals(42)); + unittest.expect(o.uri, unittest.equals('foo')); + } + buildCounterImageAnnotationContext--; +} + +buildUnnamed4166() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1202(core.List<core.String> o) { +checkUnnamed4166(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -719,7 +2522,7 @@ buildCounterImageContext++; if (buildCounterImageContext < 3) { o.cropHintsParams = buildCropHintsParams(); - o.languageHints = buildUnnamed1202(); + o.languageHints = buildUnnamed4166(); o.latLongRect = buildLatLongRect(); o.webDetectionParams = buildWebDetectionParams(); } @@ -731,7 +2534,7 @@ buildCounterImageContext++; if (buildCounterImageContext < 3) { checkCropHintsParams(o.cropHintsParams); - checkUnnamed1202(o.languageHints); + checkUnnamed4166(o.languageHints); checkLatLongRect(o.latLongRect); checkWebDetectionParams(o.webDetectionParams); } @@ -778,6 +2581,27 @@ buildCounterImageSource--; } +core.int buildCounterInputConfig = 0; +buildInputConfig() { + var o = new api.InputConfig(); + buildCounterInputConfig++; + if (buildCounterInputConfig < 3) { + o.gcsSource = buildGcsSource(); + o.mimeType = "foo"; + } + buildCounterInputConfig--; + return o; +} + +checkInputConfig(api.InputConfig o) { + buildCounterInputConfig++; + if (buildCounterInputConfig < 3) { + checkGcsSource(o.gcsSource); + unittest.expect(o.mimeType, unittest.equals('foo')); + } + buildCounterInputConfig--; +} + core.int buildCounterLandmark = 0; buildLandmark() { var o = new api.Landmark(); @@ -841,6 +2665,40 @@ buildCounterLatLongRect--; } +buildUnnamed4167() { + var o = new core.List<api.Operation>(); + o.add(buildOperation()); + o.add(buildOperation()); + return o; +} + +checkUnnamed4167(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 = buildUnnamed4167(); + } + buildCounterListOperationsResponse--; + return o; +} + +checkListOperationsResponse(api.ListOperationsResponse o) { + buildCounterListOperationsResponse++; + if (buildCounterListOperationsResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed4167(o.operations); + } + buildCounterListOperationsResponse--; +} + core.int buildCounterLocationInfo = 0; buildLocationInfo() { var o = new api.LocationInfo(); @@ -860,14 +2718,164 @@ buildCounterLocationInfo--; } -buildUnnamed1203() { +core.int buildCounterNormalizedVertex = 0; +buildNormalizedVertex() { + var o = new api.NormalizedVertex(); + buildCounterNormalizedVertex++; + if (buildCounterNormalizedVertex < 3) { + o.x = 42.0; + o.y = 42.0; + } + buildCounterNormalizedVertex--; + return o; +} + +checkNormalizedVertex(api.NormalizedVertex o) { + buildCounterNormalizedVertex++; + if (buildCounterNormalizedVertex < 3) { + unittest.expect(o.x, unittest.equals(42.0)); + unittest.expect(o.y, unittest.equals(42.0)); + } + buildCounterNormalizedVertex--; +} + +buildUnnamed4168() { + 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; +} + +checkUnnamed4168(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')); +} + +buildUnnamed4169() { + 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; +} + +checkUnnamed4169(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 = buildUnnamed4168(); + o.name = "foo"; + o.response = buildUnnamed4169(); + } + buildCounterOperation--; + return o; +} + +checkOperation(api.Operation o) { + buildCounterOperation++; + if (buildCounterOperation < 3) { + unittest.expect(o.done, unittest.isTrue); + checkStatus(o.error); + checkUnnamed4168(o.metadata); + unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed4169(o.response); + } + buildCounterOperation--; +} + +core.int buildCounterOperationMetadata = 0; +buildOperationMetadata() { + var o = new api.OperationMetadata(); + buildCounterOperationMetadata++; + if (buildCounterOperationMetadata < 3) { + o.createTime = "foo"; + o.state = "foo"; + o.updateTime = "foo"; + } + buildCounterOperationMetadata--; + return o; +} + +checkOperationMetadata(api.OperationMetadata o) { + buildCounterOperationMetadata++; + if (buildCounterOperationMetadata < 3) { + unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.state, unittest.equals('foo')); + unittest.expect(o.updateTime, unittest.equals('foo')); + } + buildCounterOperationMetadata--; +} + +core.int buildCounterOutputConfig = 0; +buildOutputConfig() { + var o = new api.OutputConfig(); + buildCounterOutputConfig++; + if (buildCounterOutputConfig < 3) { + o.batchSize = 42; + o.gcsDestination = buildGcsDestination(); + } + buildCounterOutputConfig--; + return o; +} + +checkOutputConfig(api.OutputConfig o) { + buildCounterOutputConfig++; + if (buildCounterOutputConfig < 3) { + unittest.expect(o.batchSize, unittest.equals(42)); + checkGcsDestination(o.gcsDestination); + } + buildCounterOutputConfig--; +} + +buildUnnamed4170() { var o = new core.List<api.Block>(); o.add(buildBlock()); o.add(buildBlock()); return o; } -checkUnnamed1203(core.List<api.Block> o) { +checkUnnamed4170(core.List<api.Block> o) { unittest.expect(o, unittest.hasLength(2)); checkBlock(o[0]); checkBlock(o[1]); @@ -878,7 +2886,7 @@ var o = new api.Page(); buildCounterPage++; if (buildCounterPage < 3) { - o.blocks = buildUnnamed1203(); + o.blocks = buildUnnamed4170(); o.confidence = 42.0; o.height = 42; o.property = buildTextProperty(); @@ -891,7 +2899,7 @@ checkPage(api.Page o) { buildCounterPage++; if (buildCounterPage < 3) { - checkUnnamed1203(o.blocks); + checkUnnamed4170(o.blocks); unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.height, unittest.equals(42)); checkTextProperty(o.property); @@ -900,14 +2908,14 @@ buildCounterPage--; } -buildUnnamed1204() { +buildUnnamed4171() { var o = new core.List<api.Word>(); o.add(buildWord()); o.add(buildWord()); return o; } -checkUnnamed1204(core.List<api.Word> o) { +checkUnnamed4171(core.List<api.Word> o) { unittest.expect(o, unittest.hasLength(2)); checkWord(o[0]); checkWord(o[1]); @@ -921,7 +2929,7 @@ o.boundingBox = buildBoundingPoly(); o.confidence = 42.0; o.property = buildTextProperty(); - o.words = buildUnnamed1204(); + o.words = buildUnnamed4171(); } buildCounterParagraph--; return o; @@ -933,7 +2941,7 @@ checkBoundingPoly(o.boundingBox); unittest.expect(o.confidence, unittest.equals(42.0)); checkTextProperty(o.property); - checkUnnamed1204(o.words); + checkUnnamed4171(o.words); } buildCounterParagraph--; } @@ -1011,7 +3019,7 @@ buildCounterSafeSearchAnnotation--; } -buildUnnamed1205() { +buildUnnamed4172() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1026,31 +3034,31 @@ return o; } -checkUnnamed1205(core.Map<core.String, core.Object> o) { +checkUnnamed4172(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')); + 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')); } -buildUnnamed1206() { +buildUnnamed4173() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1205()); - o.add(buildUnnamed1205()); + o.add(buildUnnamed4172()); + o.add(buildUnnamed4172()); return o; } -checkUnnamed1206(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed4173(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1205(o[0]); - checkUnnamed1205(o[1]); + checkUnnamed4172(o[0]); + checkUnnamed4172(o[1]); } core.int buildCounterStatus = 0; @@ -1059,7 +3067,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1206(); + o.details = buildUnnamed4173(); o.message = "foo"; } buildCounterStatus--; @@ -1070,7 +3078,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1206(o.details); + checkUnnamed4173(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1101,14 +3109,14 @@ buildCounterSymbol--; } -buildUnnamed1207() { +buildUnnamed4174() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1207(core.List<api.Page> o) { +checkUnnamed4174(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -1119,7 +3127,7 @@ var o = new api.TextAnnotation(); buildCounterTextAnnotation++; if (buildCounterTextAnnotation < 3) { - o.pages = buildUnnamed1207(); + o.pages = buildUnnamed4174(); o.text = "foo"; } buildCounterTextAnnotation--; @@ -1129,20 +3137,20 @@ checkTextAnnotation(api.TextAnnotation o) { buildCounterTextAnnotation++; if (buildCounterTextAnnotation < 3) { - checkUnnamed1207(o.pages); + checkUnnamed4174(o.pages); unittest.expect(o.text, unittest.equals('foo')); } buildCounterTextAnnotation--; } -buildUnnamed1208() { +buildUnnamed4175() { var o = new core.List<api.DetectedLanguage>(); o.add(buildDetectedLanguage()); o.add(buildDetectedLanguage()); return o; } -checkUnnamed1208(core.List<api.DetectedLanguage> o) { +checkUnnamed4175(core.List<api.DetectedLanguage> o) { unittest.expect(o, unittest.hasLength(2)); checkDetectedLanguage(o[0]); checkDetectedLanguage(o[1]); @@ -1154,7 +3162,7 @@ buildCounterTextProperty++; if (buildCounterTextProperty < 3) { o.detectedBreak = buildDetectedBreak(); - o.detectedLanguages = buildUnnamed1208(); + o.detectedLanguages = buildUnnamed4175(); } buildCounterTextProperty--; return o; @@ -1164,7 +3172,7 @@ buildCounterTextProperty++; if (buildCounterTextProperty < 3) { checkDetectedBreak(o.detectedBreak); - checkUnnamed1208(o.detectedLanguages); + checkUnnamed4175(o.detectedLanguages); } buildCounterTextProperty--; } @@ -1190,79 +3198,79 @@ buildCounterVertex--; } -buildUnnamed1209() { +buildUnnamed4176() { var o = new core.List<api.WebLabel>(); o.add(buildWebLabel()); o.add(buildWebLabel()); return o; } -checkUnnamed1209(core.List<api.WebLabel> o) { +checkUnnamed4176(core.List<api.WebLabel> o) { unittest.expect(o, unittest.hasLength(2)); checkWebLabel(o[0]); checkWebLabel(o[1]); } -buildUnnamed1210() { +buildUnnamed4177() { var o = new core.List<api.WebImage>(); o.add(buildWebImage()); o.add(buildWebImage()); return o; } -checkUnnamed1210(core.List<api.WebImage> o) { +checkUnnamed4177(core.List<api.WebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkWebImage(o[0]); checkWebImage(o[1]); } -buildUnnamed1211() { +buildUnnamed4178() { var o = new core.List<api.WebPage>(); o.add(buildWebPage()); o.add(buildWebPage()); return o; } -checkUnnamed1211(core.List<api.WebPage> o) { +checkUnnamed4178(core.List<api.WebPage> o) { unittest.expect(o, unittest.hasLength(2)); checkWebPage(o[0]); checkWebPage(o[1]); } -buildUnnamed1212() { +buildUnnamed4179() { var o = new core.List<api.WebImage>(); o.add(buildWebImage()); o.add(buildWebImage()); return o; } -checkUnnamed1212(core.List<api.WebImage> o) { +checkUnnamed4179(core.List<api.WebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkWebImage(o[0]); checkWebImage(o[1]); } -buildUnnamed1213() { +buildUnnamed4180() { var o = new core.List<api.WebImage>(); o.add(buildWebImage()); o.add(buildWebImage()); return o; } -checkUnnamed1213(core.List<api.WebImage> o) { +checkUnnamed4180(core.List<api.WebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkWebImage(o[0]); checkWebImage(o[1]); } -buildUnnamed1214() { +buildUnnamed4181() { var o = new core.List<api.WebEntity>(); o.add(buildWebEntity()); o.add(buildWebEntity()); return o; } -checkUnnamed1214(core.List<api.WebEntity> o) { +checkUnnamed4181(core.List<api.WebEntity> o) { unittest.expect(o, unittest.hasLength(2)); checkWebEntity(o[0]); checkWebEntity(o[1]); @@ -1273,12 +3281,12 @@ var o = new api.WebDetection(); buildCounterWebDetection++; if (buildCounterWebDetection < 3) { - o.bestGuessLabels = buildUnnamed1209(); - o.fullMatchingImages = buildUnnamed1210(); - o.pagesWithMatchingImages = buildUnnamed1211(); - o.partialMatchingImages = buildUnnamed1212(); - o.visuallySimilarImages = buildUnnamed1213(); - o.webEntities = buildUnnamed1214(); + o.bestGuessLabels = buildUnnamed4176(); + o.fullMatchingImages = buildUnnamed4177(); + o.pagesWithMatchingImages = buildUnnamed4178(); + o.partialMatchingImages = buildUnnamed4179(); + o.visuallySimilarImages = buildUnnamed4180(); + o.webEntities = buildUnnamed4181(); } buildCounterWebDetection--; return o; @@ -1287,12 +3295,12 @@ checkWebDetection(api.WebDetection o) { buildCounterWebDetection++; if (buildCounterWebDetection < 3) { - checkUnnamed1209(o.bestGuessLabels); - checkUnnamed1210(o.fullMatchingImages); - checkUnnamed1211(o.pagesWithMatchingImages); - checkUnnamed1212(o.partialMatchingImages); - checkUnnamed1213(o.visuallySimilarImages); - checkUnnamed1214(o.webEntities); + checkUnnamed4176(o.bestGuessLabels); + checkUnnamed4177(o.fullMatchingImages); + checkUnnamed4178(o.pagesWithMatchingImages); + checkUnnamed4179(o.partialMatchingImages); + checkUnnamed4180(o.visuallySimilarImages); + checkUnnamed4181(o.webEntities); } buildCounterWebDetection--; } @@ -1381,27 +3389,27 @@ buildCounterWebLabel--; } -buildUnnamed1215() { +buildUnnamed4182() { var o = new core.List<api.WebImage>(); o.add(buildWebImage()); o.add(buildWebImage()); return o; } -checkUnnamed1215(core.List<api.WebImage> o) { +checkUnnamed4182(core.List<api.WebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkWebImage(o[0]); checkWebImage(o[1]); } -buildUnnamed1216() { +buildUnnamed4183() { var o = new core.List<api.WebImage>(); o.add(buildWebImage()); o.add(buildWebImage()); return o; } -checkUnnamed1216(core.List<api.WebImage> o) { +checkUnnamed4183(core.List<api.WebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkWebImage(o[0]); checkWebImage(o[1]); @@ -1412,9 +3420,9 @@ var o = new api.WebPage(); buildCounterWebPage++; if (buildCounterWebPage < 3) { - o.fullMatchingImages = buildUnnamed1215(); + o.fullMatchingImages = buildUnnamed4182(); o.pageTitle = "foo"; - o.partialMatchingImages = buildUnnamed1216(); + o.partialMatchingImages = buildUnnamed4183(); o.score = 42.0; o.url = "foo"; } @@ -1425,23 +3433,23 @@ checkWebPage(api.WebPage o) { buildCounterWebPage++; if (buildCounterWebPage < 3) { - checkUnnamed1215(o.fullMatchingImages); + checkUnnamed4182(o.fullMatchingImages); unittest.expect(o.pageTitle, unittest.equals('foo')); - checkUnnamed1216(o.partialMatchingImages); + checkUnnamed4183(o.partialMatchingImages); unittest.expect(o.score, unittest.equals(42.0)); unittest.expect(o.url, unittest.equals('foo')); } buildCounterWebPage--; } -buildUnnamed1217() { +buildUnnamed4184() { var o = new core.List<api.Symbol>(); o.add(buildSymbol()); o.add(buildSymbol()); return o; } -checkUnnamed1217(core.List<api.Symbol> o) { +checkUnnamed4184(core.List<api.Symbol> o) { unittest.expect(o, unittest.hasLength(2)); checkSymbol(o[0]); checkSymbol(o[1]); @@ -1455,7 +3463,7 @@ o.boundingBox = buildBoundingPoly(); o.confidence = 42.0; o.property = buildTextProperty(); - o.symbols = buildUnnamed1217(); + o.symbols = buildUnnamed4184(); } buildCounterWord--; return o; @@ -1467,12 +3475,20 @@ checkBoundingPoly(o.boundingBox); unittest.expect(o.confidence, unittest.equals(42.0)); checkTextProperty(o.property); - checkUnnamed1217(o.symbols); + checkUnnamed4184(o.symbols); } buildCounterWord--; } main() { + unittest.group("obj-schema-AnnotateFileResponse", () { + unittest.test("to-json--from-json", () { + var o = buildAnnotateFileResponse(); + var od = new api.AnnotateFileResponse.fromJson(o.toJson()); + checkAnnotateFileResponse(od); + }); + }); + unittest.group("obj-schema-AnnotateImageRequest", () { unittest.test("to-json--from-json", () { var o = buildAnnotateImageRequest(); @@ -1489,6 +3505,38 @@ }); }); + unittest.group("obj-schema-AsyncAnnotateFileRequest", () { + unittest.test("to-json--from-json", () { + var o = buildAsyncAnnotateFileRequest(); + var od = new api.AsyncAnnotateFileRequest.fromJson(o.toJson()); + checkAsyncAnnotateFileRequest(od); + }); + }); + + unittest.group("obj-schema-AsyncAnnotateFileResponse", () { + unittest.test("to-json--from-json", () { + var o = buildAsyncAnnotateFileResponse(); + var od = new api.AsyncAnnotateFileResponse.fromJson(o.toJson()); + checkAsyncAnnotateFileResponse(od); + }); + }); + + unittest.group("obj-schema-AsyncBatchAnnotateFilesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildAsyncBatchAnnotateFilesRequest(); + var od = new api.AsyncBatchAnnotateFilesRequest.fromJson(o.toJson()); + checkAsyncBatchAnnotateFilesRequest(od); + }); + }); + + unittest.group("obj-schema-AsyncBatchAnnotateFilesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildAsyncBatchAnnotateFilesResponse(); + var od = new api.AsyncBatchAnnotateFilesResponse.fromJson(o.toJson()); + checkAsyncBatchAnnotateFilesResponse(od); + }); + }); + unittest.group("obj-schema-BatchAnnotateImagesRequest", () { unittest.test("to-json--from-json", () { var o = buildBatchAnnotateImagesRequest(); @@ -1521,6 +3569,14 @@ }); }); + 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-Color", () { unittest.test("to-json--from-json", () { var o = buildColor(); @@ -1585,6 +3641,14 @@ }); }); + 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-EntityAnnotation", () { unittest.test("to-json--from-json", () { var o = buildEntityAnnotation(); @@ -1609,6 +3673,445 @@ }); }); + unittest.group("obj-schema-GcsDestination", () { + unittest.test("to-json--from-json", () { + var o = buildGcsDestination(); + var od = new api.GcsDestination.fromJson(o.toJson()); + checkGcsDestination(od); + }); + }); + + unittest.group("obj-schema-GcsSource", () { + unittest.test("to-json--from-json", () { + var o = buildGcsSource(); + var od = new api.GcsSource.fromJson(o.toJson()); + checkGcsSource(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1AnnotateFileResponse", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1AnnotateFileResponse(); + var od = new api.GoogleCloudVisionV1p2beta1AnnotateFileResponse.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p2beta1AnnotateFileResponse(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1AnnotateImageResponse", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1AnnotateImageResponse(); + var od = new api.GoogleCloudVisionV1p2beta1AnnotateImageResponse.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p2beta1AnnotateImageResponse(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse(); + var od = + new api.GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse(); + var od = new api + .GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1Block", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1Block(); + var od = new api.GoogleCloudVisionV1p2beta1Block.fromJson(o.toJson()); + checkGoogleCloudVisionV1p2beta1Block(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1BoundingPoly", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1BoundingPoly(); + var od = + new api.GoogleCloudVisionV1p2beta1BoundingPoly.fromJson(o.toJson()); + checkGoogleCloudVisionV1p2beta1BoundingPoly(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1ColorInfo", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1ColorInfo(); + var od = new api.GoogleCloudVisionV1p2beta1ColorInfo.fromJson(o.toJson()); + checkGoogleCloudVisionV1p2beta1ColorInfo(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1CropHint", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1CropHint(); + var od = new api.GoogleCloudVisionV1p2beta1CropHint.fromJson(o.toJson()); + checkGoogleCloudVisionV1p2beta1CropHint(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1CropHintsAnnotation", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1CropHintsAnnotation(); + var od = new api.GoogleCloudVisionV1p2beta1CropHintsAnnotation.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p2beta1CropHintsAnnotation(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudVisionV1p2beta1DominantColorsAnnotation", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1DominantColorsAnnotation(); + var od = + new api.GoogleCloudVisionV1p2beta1DominantColorsAnnotation.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p2beta1DominantColorsAnnotation(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1EntityAnnotation", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1EntityAnnotation(); + var od = new api.GoogleCloudVisionV1p2beta1EntityAnnotation.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p2beta1EntityAnnotation(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1FaceAnnotation", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1FaceAnnotation(); + var od = + new api.GoogleCloudVisionV1p2beta1FaceAnnotation.fromJson(o.toJson()); + checkGoogleCloudVisionV1p2beta1FaceAnnotation(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1FaceAnnotationLandmark", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1FaceAnnotationLandmark(); + var od = + new api.GoogleCloudVisionV1p2beta1FaceAnnotationLandmark.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p2beta1FaceAnnotationLandmark(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1GcsDestination", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1GcsDestination(); + var od = + new api.GoogleCloudVisionV1p2beta1GcsDestination.fromJson(o.toJson()); + checkGoogleCloudVisionV1p2beta1GcsDestination(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1GcsSource", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1GcsSource(); + var od = new api.GoogleCloudVisionV1p2beta1GcsSource.fromJson(o.toJson()); + checkGoogleCloudVisionV1p2beta1GcsSource(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1ImageAnnotationContext", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1ImageAnnotationContext(); + var od = + new api.GoogleCloudVisionV1p2beta1ImageAnnotationContext.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p2beta1ImageAnnotationContext(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1ImageProperties", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1ImageProperties(); + var od = new api.GoogleCloudVisionV1p2beta1ImageProperties.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p2beta1ImageProperties(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1InputConfig", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1InputConfig(); + var od = + new api.GoogleCloudVisionV1p2beta1InputConfig.fromJson(o.toJson()); + checkGoogleCloudVisionV1p2beta1InputConfig(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1LocationInfo", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1LocationInfo(); + var od = + new api.GoogleCloudVisionV1p2beta1LocationInfo.fromJson(o.toJson()); + checkGoogleCloudVisionV1p2beta1LocationInfo(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1NormalizedVertex", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1NormalizedVertex(); + var od = new api.GoogleCloudVisionV1p2beta1NormalizedVertex.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p2beta1NormalizedVertex(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1OperationMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1OperationMetadata(); + var od = new api.GoogleCloudVisionV1p2beta1OperationMetadata.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p2beta1OperationMetadata(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1OutputConfig", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1OutputConfig(); + var od = + new api.GoogleCloudVisionV1p2beta1OutputConfig.fromJson(o.toJson()); + checkGoogleCloudVisionV1p2beta1OutputConfig(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1Page", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1Page(); + var od = new api.GoogleCloudVisionV1p2beta1Page.fromJson(o.toJson()); + checkGoogleCloudVisionV1p2beta1Page(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1Paragraph", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1Paragraph(); + var od = new api.GoogleCloudVisionV1p2beta1Paragraph.fromJson(o.toJson()); + checkGoogleCloudVisionV1p2beta1Paragraph(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1Position", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1Position(); + var od = new api.GoogleCloudVisionV1p2beta1Position.fromJson(o.toJson()); + checkGoogleCloudVisionV1p2beta1Position(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1Property", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1Property(); + var od = new api.GoogleCloudVisionV1p2beta1Property.fromJson(o.toJson()); + checkGoogleCloudVisionV1p2beta1Property(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1SafeSearchAnnotation", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1SafeSearchAnnotation(); + var od = new api.GoogleCloudVisionV1p2beta1SafeSearchAnnotation.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p2beta1SafeSearchAnnotation(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1Symbol", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1Symbol(); + var od = new api.GoogleCloudVisionV1p2beta1Symbol.fromJson(o.toJson()); + checkGoogleCloudVisionV1p2beta1Symbol(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1TextAnnotation", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1TextAnnotation(); + var od = + new api.GoogleCloudVisionV1p2beta1TextAnnotation.fromJson(o.toJson()); + checkGoogleCloudVisionV1p2beta1TextAnnotation(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak(); + var od = new api + .GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage(); + var od = new api + .GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudVisionV1p2beta1TextAnnotationTextProperty", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(); + var od = + new api.GoogleCloudVisionV1p2beta1TextAnnotationTextProperty.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1Vertex", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1Vertex(); + var od = new api.GoogleCloudVisionV1p2beta1Vertex.fromJson(o.toJson()); + checkGoogleCloudVisionV1p2beta1Vertex(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1WebDetection", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1WebDetection(); + var od = + new api.GoogleCloudVisionV1p2beta1WebDetection.fromJson(o.toJson()); + checkGoogleCloudVisionV1p2beta1WebDetection(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1WebDetectionWebEntity", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1WebDetectionWebEntity(); + var od = new api.GoogleCloudVisionV1p2beta1WebDetectionWebEntity.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p2beta1WebDetectionWebEntity(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1WebDetectionWebImage", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1WebDetectionWebImage(); + var od = new api.GoogleCloudVisionV1p2beta1WebDetectionWebImage.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1WebDetectionWebLabel", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1WebDetectionWebLabel(); + var od = new api.GoogleCloudVisionV1p2beta1WebDetectionWebLabel.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p2beta1WebDetectionWebLabel(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1WebDetectionWebPage", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1WebDetectionWebPage(); + var od = new api.GoogleCloudVisionV1p2beta1WebDetectionWebPage.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p2beta1WebDetectionWebPage(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p2beta1Word", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p2beta1Word(); + var od = new api.GoogleCloudVisionV1p2beta1Word.fromJson(o.toJson()); + checkGoogleCloudVisionV1p2beta1Word(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p3beta1BatchOperationMetadata", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p3beta1BatchOperationMetadata(); + var od = + new api.GoogleCloudVisionV1p3beta1BatchOperationMetadata.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p3beta1BatchOperationMetadata(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p3beta1BoundingPoly", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p3beta1BoundingPoly(); + var od = + new api.GoogleCloudVisionV1p3beta1BoundingPoly.fromJson(o.toJson()); + checkGoogleCloudVisionV1p3beta1BoundingPoly(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudVisionV1p3beta1ImportProductSetsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p3beta1ImportProductSetsResponse(); + var od = + new api.GoogleCloudVisionV1p3beta1ImportProductSetsResponse.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p3beta1ImportProductSetsResponse(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p3beta1NormalizedVertex", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p3beta1NormalizedVertex(); + var od = new api.GoogleCloudVisionV1p3beta1NormalizedVertex.fromJson( + o.toJson()); + checkGoogleCloudVisionV1p3beta1NormalizedVertex(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p3beta1ReferenceImage", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p3beta1ReferenceImage(); + var od = + new api.GoogleCloudVisionV1p3beta1ReferenceImage.fromJson(o.toJson()); + checkGoogleCloudVisionV1p3beta1ReferenceImage(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVisionV1p3beta1Vertex", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVisionV1p3beta1Vertex(); + var od = new api.GoogleCloudVisionV1p3beta1Vertex.fromJson(o.toJson()); + checkGoogleCloudVisionV1p3beta1Vertex(od); + }); + }); + unittest.group("obj-schema-Image", () { unittest.test("to-json--from-json", () { var o = buildImage(); @@ -1617,6 +4120,14 @@ }); }); + unittest.group("obj-schema-ImageAnnotationContext", () { + unittest.test("to-json--from-json", () { + var o = buildImageAnnotationContext(); + var od = new api.ImageAnnotationContext.fromJson(o.toJson()); + checkImageAnnotationContext(od); + }); + }); + unittest.group("obj-schema-ImageContext", () { unittest.test("to-json--from-json", () { var o = buildImageContext(); @@ -1641,6 +4152,14 @@ }); }); + unittest.group("obj-schema-InputConfig", () { + unittest.test("to-json--from-json", () { + var o = buildInputConfig(); + var od = new api.InputConfig.fromJson(o.toJson()); + checkInputConfig(od); + }); + }); + unittest.group("obj-schema-Landmark", () { unittest.test("to-json--from-json", () { var o = buildLandmark(); @@ -1665,6 +4184,14 @@ }); }); + 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-LocationInfo", () { unittest.test("to-json--from-json", () { var o = buildLocationInfo(); @@ -1673,6 +4200,38 @@ }); }); + unittest.group("obj-schema-NormalizedVertex", () { + unittest.test("to-json--from-json", () { + var o = buildNormalizedVertex(); + var od = new api.NormalizedVertex.fromJson(o.toJson()); + checkNormalizedVertex(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-OperationMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildOperationMetadata(); + var od = new api.OperationMetadata.fromJson(o.toJson()); + checkOperationMetadata(od); + }); + }); + + unittest.group("obj-schema-OutputConfig", () { + unittest.test("to-json--from-json", () { + var o = buildOutputConfig(); + var od = new api.OutputConfig.fromJson(o.toJson()); + checkOutputConfig(od); + }); + }); + unittest.group("obj-schema-Page", () { unittest.test("to-json--from-json", () { var o = buildPage(); @@ -1809,6 +4368,61 @@ }); }); + unittest.group("resource-FilesResourceApi", () { + unittest.test("method--asyncBatchAnnotate", () { + var mock = new HttpServerMock(); + api.FilesResourceApi res = new api.VisionApi(mock).files; + var arg_request = buildAsyncBatchAnnotateFilesRequest(); + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.AsyncBatchAnnotateFilesRequest.fromJson(json); + checkAsyncBatchAnnotateFilesRequest(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 + 27), + unittest.equals("v1/files:asyncBatchAnnotate")); + pathOffset += 27; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .asyncBatchAnnotate(arg_request, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + }); + unittest.group("resource-ImagesResourceApi", () { unittest.test("method--annotate", () { var mock = new HttpServerMock(); @@ -1863,4 +4477,280 @@ }))); }); }); + + unittest.group("resource-LocationsOperationsResourceApi", () { + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.LocationsOperationsResourceApi res = + new api.VisionApi(mock).locations.operations; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + }); + + unittest.group("resource-OperationsResourceApi", () { + unittest.test("method--cancel", () { + var mock = new HttpServerMock(); + api.OperationsResourceApi res = new api.VisionApi(mock).operations; + var arg_request = buildCancelOperationRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.OperationsResourceApi res = new api.VisionApi(mock).operations; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.OperationsResourceApi res = new api.VisionApi(mock).operations; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.OperationsResourceApi res = new api.VisionApi(mock).operations; + var arg_name = "foo"; + var arg_pageSize = 42; + var arg_filter = "foo"; + var arg_pageToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListOperationsResponse(response); + }))); + }); + }); }
diff --git a/generated/googleapis/test/webfonts/v1_test.dart b/generated/googleapis/test/webfonts/v1_test.dart index 3b1af0b..426ea44 100644 --- a/generated/googleapis/test/webfonts/v1_test.dart +++ b/generated/googleapis/test/webfonts/v1_test.dart
@@ -50,40 +50,40 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1647() { +buildUnnamed1135() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1647(core.Map<core.String, core.String> o) { +checkUnnamed1135(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')); } -buildUnnamed1648() { +buildUnnamed1136() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1648(core.List<core.String> o) { +checkUnnamed1136(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1649() { +buildUnnamed1137() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1649(core.List<core.String> o) { +checkUnnamed1137(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -96,11 +96,11 @@ if (buildCounterWebfont < 3) { o.category = "foo"; o.family = "foo"; - o.files = buildUnnamed1647(); + o.files = buildUnnamed1135(); o.kind = "foo"; o.lastModified = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.subsets = buildUnnamed1648(); - o.variants = buildUnnamed1649(); + o.subsets = buildUnnamed1136(); + o.variants = buildUnnamed1137(); o.version = "foo"; } buildCounterWebfont--; @@ -112,25 +112,25 @@ if (buildCounterWebfont < 3) { unittest.expect(o.category, unittest.equals('foo')); unittest.expect(o.family, unittest.equals('foo')); - checkUnnamed1647(o.files); + checkUnnamed1135(o.files); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastModified, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed1648(o.subsets); - checkUnnamed1649(o.variants); + checkUnnamed1136(o.subsets); + checkUnnamed1137(o.variants); unittest.expect(o.version, unittest.equals('foo')); } buildCounterWebfont--; } -buildUnnamed1650() { +buildUnnamed1138() { var o = new core.List<api.Webfont>(); o.add(buildWebfont()); o.add(buildWebfont()); return o; } -checkUnnamed1650(core.List<api.Webfont> o) { +checkUnnamed1138(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 = buildUnnamed1650(); + o.items = buildUnnamed1138(); o.kind = "foo"; } buildCounterWebfontList--; @@ -151,7 +151,7 @@ checkWebfontList(api.WebfontList o) { buildCounterWebfontList++; if (buildCounterWebfontList < 3) { - checkUnnamed1650(o.items); + checkUnnamed1138(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 398dd31..85058e8 100644 --- a/generated/googleapis/test/webmasters/v3_test.dart +++ b/generated/googleapis/test/webmasters/v3_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3413() { +buildUnnamed1306() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3413(core.List<core.String> o) { +checkUnnamed1306(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -71,7 +71,7 @@ o.clicks = 42.0; o.ctr = 42.0; o.impressions = 42.0; - o.keys = buildUnnamed3413(); + o.keys = buildUnnamed1306(); o.position = 42.0; } buildCounterApiDataRow--; @@ -84,7 +84,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)); - checkUnnamed3413(o.keys); + checkUnnamed1306(o.keys); unittest.expect(o.position, unittest.equals(42.0)); } buildCounterApiDataRow--; @@ -113,14 +113,14 @@ buildCounterApiDimensionFilter--; } -buildUnnamed3414() { +buildUnnamed1307() { var o = new core.List<api.ApiDimensionFilter>(); o.add(buildApiDimensionFilter()); o.add(buildApiDimensionFilter()); return o; } -checkUnnamed3414(core.List<api.ApiDimensionFilter> o) { +checkUnnamed1307(core.List<api.ApiDimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkApiDimensionFilter(o[0]); checkApiDimensionFilter(o[1]); @@ -131,7 +131,7 @@ var o = new api.ApiDimensionFilterGroup(); buildCounterApiDimensionFilterGroup++; if (buildCounterApiDimensionFilterGroup < 3) { - o.filters = buildUnnamed3414(); + o.filters = buildUnnamed1307(); o.groupType = "foo"; } buildCounterApiDimensionFilterGroup--; @@ -141,33 +141,33 @@ checkApiDimensionFilterGroup(api.ApiDimensionFilterGroup o) { buildCounterApiDimensionFilterGroup++; if (buildCounterApiDimensionFilterGroup < 3) { - checkUnnamed3414(o.filters); + checkUnnamed1307(o.filters); unittest.expect(o.groupType, unittest.equals('foo')); } buildCounterApiDimensionFilterGroup--; } -buildUnnamed3415() { +buildUnnamed1308() { var o = new core.List<api.ApiDimensionFilterGroup>(); o.add(buildApiDimensionFilterGroup()); o.add(buildApiDimensionFilterGroup()); return o; } -checkUnnamed3415(core.List<api.ApiDimensionFilterGroup> o) { +checkUnnamed1308(core.List<api.ApiDimensionFilterGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkApiDimensionFilterGroup(o[0]); checkApiDimensionFilterGroup(o[1]); } -buildUnnamed3416() { +buildUnnamed1309() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3416(core.List<core.String> o) { +checkUnnamed1309(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -179,8 +179,8 @@ buildCounterSearchAnalyticsQueryRequest++; if (buildCounterSearchAnalyticsQueryRequest < 3) { o.aggregationType = "foo"; - o.dimensionFilterGroups = buildUnnamed3415(); - o.dimensions = buildUnnamed3416(); + o.dimensionFilterGroups = buildUnnamed1308(); + o.dimensions = buildUnnamed1309(); o.endDate = "foo"; o.rowLimit = 42; o.searchType = "foo"; @@ -195,8 +195,8 @@ buildCounterSearchAnalyticsQueryRequest++; if (buildCounterSearchAnalyticsQueryRequest < 3) { unittest.expect(o.aggregationType, unittest.equals('foo')); - checkUnnamed3415(o.dimensionFilterGroups); - checkUnnamed3416(o.dimensions); + checkUnnamed1308(o.dimensionFilterGroups); + checkUnnamed1309(o.dimensions); unittest.expect(o.endDate, unittest.equals('foo')); unittest.expect(o.rowLimit, unittest.equals(42)); unittest.expect(o.searchType, unittest.equals('foo')); @@ -206,14 +206,14 @@ buildCounterSearchAnalyticsQueryRequest--; } -buildUnnamed3417() { +buildUnnamed1310() { var o = new core.List<api.ApiDataRow>(); o.add(buildApiDataRow()); o.add(buildApiDataRow()); return o; } -checkUnnamed3417(core.List<api.ApiDataRow> o) { +checkUnnamed1310(core.List<api.ApiDataRow> o) { unittest.expect(o, unittest.hasLength(2)); checkApiDataRow(o[0]); checkApiDataRow(o[1]); @@ -225,7 +225,7 @@ buildCounterSearchAnalyticsQueryResponse++; if (buildCounterSearchAnalyticsQueryResponse < 3) { o.responseAggregationType = "foo"; - o.rows = buildUnnamed3417(); + o.rows = buildUnnamed1310(); } buildCounterSearchAnalyticsQueryResponse--; return o; @@ -235,19 +235,19 @@ buildCounterSearchAnalyticsQueryResponse++; if (buildCounterSearchAnalyticsQueryResponse < 3) { unittest.expect(o.responseAggregationType, unittest.equals('foo')); - checkUnnamed3417(o.rows); + checkUnnamed1310(o.rows); } buildCounterSearchAnalyticsQueryResponse--; } -buildUnnamed3418() { +buildUnnamed1311() { var o = new core.List<api.WmxSitemap>(); o.add(buildWmxSitemap()); o.add(buildWmxSitemap()); return o; } -checkUnnamed3418(core.List<api.WmxSitemap> o) { +checkUnnamed1311(core.List<api.WmxSitemap> o) { unittest.expect(o, unittest.hasLength(2)); checkWmxSitemap(o[0]); checkWmxSitemap(o[1]); @@ -258,7 +258,7 @@ var o = new api.SitemapsListResponse(); buildCounterSitemapsListResponse++; if (buildCounterSitemapsListResponse < 3) { - o.sitemap = buildUnnamed3418(); + o.sitemap = buildUnnamed1311(); } buildCounterSitemapsListResponse--; return o; @@ -267,19 +267,19 @@ checkSitemapsListResponse(api.SitemapsListResponse o) { buildCounterSitemapsListResponse++; if (buildCounterSitemapsListResponse < 3) { - checkUnnamed3418(o.sitemap); + checkUnnamed1311(o.sitemap); } buildCounterSitemapsListResponse--; } -buildUnnamed3419() { +buildUnnamed1312() { var o = new core.List<api.WmxSite>(); o.add(buildWmxSite()); o.add(buildWmxSite()); return o; } -checkUnnamed3419(core.List<api.WmxSite> o) { +checkUnnamed1312(core.List<api.WmxSite> o) { unittest.expect(o, unittest.hasLength(2)); checkWmxSite(o[0]); checkWmxSite(o[1]); @@ -290,7 +290,7 @@ var o = new api.SitesListResponse(); buildCounterSitesListResponse++; if (buildCounterSitesListResponse < 3) { - o.siteEntry = buildUnnamed3419(); + o.siteEntry = buildUnnamed1312(); } buildCounterSitesListResponse--; return o; @@ -299,7 +299,7 @@ checkSitesListResponse(api.SitesListResponse o) { buildCounterSitesListResponse++; if (buildCounterSitesListResponse < 3) { - checkUnnamed3419(o.siteEntry); + checkUnnamed1312(o.siteEntry); } buildCounterSitesListResponse--; } @@ -326,14 +326,14 @@ buildCounterUrlCrawlErrorCount--; } -buildUnnamed3420() { +buildUnnamed1313() { var o = new core.List<api.UrlCrawlErrorCount>(); o.add(buildUrlCrawlErrorCount()); o.add(buildUrlCrawlErrorCount()); return o; } -checkUnnamed3420(core.List<api.UrlCrawlErrorCount> o) { +checkUnnamed1313(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 = buildUnnamed3420(); + o.entries = buildUnnamed1313(); o.platform = "foo"; } buildCounterUrlCrawlErrorCountsPerType--; @@ -356,20 +356,20 @@ buildCounterUrlCrawlErrorCountsPerType++; if (buildCounterUrlCrawlErrorCountsPerType < 3) { unittest.expect(o.category, unittest.equals('foo')); - checkUnnamed3420(o.entries); + checkUnnamed1313(o.entries); unittest.expect(o.platform, unittest.equals('foo')); } buildCounterUrlCrawlErrorCountsPerType--; } -buildUnnamed3421() { +buildUnnamed1314() { var o = new core.List<api.UrlCrawlErrorCountsPerType>(); o.add(buildUrlCrawlErrorCountsPerType()); o.add(buildUrlCrawlErrorCountsPerType()); return o; } -checkUnnamed3421(core.List<api.UrlCrawlErrorCountsPerType> o) { +checkUnnamed1314(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 = buildUnnamed3421(); + o.countPerTypes = buildUnnamed1314(); } buildCounterUrlCrawlErrorsCountsQueryResponse--; return o; @@ -390,7 +390,7 @@ api.UrlCrawlErrorsCountsQueryResponse o) { buildCounterUrlCrawlErrorsCountsQueryResponse++; if (buildCounterUrlCrawlErrorsCountsQueryResponse < 3) { - checkUnnamed3421(o.countPerTypes); + checkUnnamed1314(o.countPerTypes); } buildCounterUrlCrawlErrorsCountsQueryResponse--; } @@ -424,14 +424,14 @@ buildCounterUrlCrawlErrorsSample--; } -buildUnnamed3422() { +buildUnnamed1315() { var o = new core.List<api.UrlCrawlErrorsSample>(); o.add(buildUrlCrawlErrorsSample()); o.add(buildUrlCrawlErrorsSample()); return o; } -checkUnnamed3422(core.List<api.UrlCrawlErrorsSample> o) { +checkUnnamed1315(core.List<api.UrlCrawlErrorsSample> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlCrawlErrorsSample(o[0]); checkUrlCrawlErrorsSample(o[1]); @@ -442,7 +442,7 @@ var o = new api.UrlCrawlErrorsSamplesListResponse(); buildCounterUrlCrawlErrorsSamplesListResponse++; if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { - o.urlCrawlErrorSample = buildUnnamed3422(); + o.urlCrawlErrorSample = buildUnnamed1315(); } buildCounterUrlCrawlErrorsSamplesListResponse--; return o; @@ -452,32 +452,32 @@ api.UrlCrawlErrorsSamplesListResponse o) { buildCounterUrlCrawlErrorsSamplesListResponse++; if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { - checkUnnamed3422(o.urlCrawlErrorSample); + checkUnnamed1315(o.urlCrawlErrorSample); } buildCounterUrlCrawlErrorsSamplesListResponse--; } -buildUnnamed3423() { +buildUnnamed1316() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3423(core.List<core.String> o) { +checkUnnamed1316(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3424() { +buildUnnamed1317() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3424(core.List<core.String> o) { +checkUnnamed1317(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -488,8 +488,8 @@ var o = new api.UrlSampleDetails(); buildCounterUrlSampleDetails++; if (buildCounterUrlSampleDetails < 3) { - o.containingSitemaps = buildUnnamed3423(); - o.linkedFromUrls = buildUnnamed3424(); + o.containingSitemaps = buildUnnamed1316(); + o.linkedFromUrls = buildUnnamed1317(); } buildCounterUrlSampleDetails--; return o; @@ -498,8 +498,8 @@ checkUrlSampleDetails(api.UrlSampleDetails o) { buildCounterUrlSampleDetails++; if (buildCounterUrlSampleDetails < 3) { - checkUnnamed3423(o.containingSitemaps); - checkUnnamed3424(o.linkedFromUrls); + checkUnnamed1316(o.containingSitemaps); + checkUnnamed1317(o.linkedFromUrls); } buildCounterUrlSampleDetails--; } @@ -525,14 +525,14 @@ buildCounterWmxSite--; } -buildUnnamed3425() { +buildUnnamed1318() { var o = new core.List<api.WmxSitemapContent>(); o.add(buildWmxSitemapContent()); o.add(buildWmxSitemapContent()); return o; } -checkUnnamed3425(core.List<api.WmxSitemapContent> o) { +checkUnnamed1318(core.List<api.WmxSitemapContent> o) { unittest.expect(o, unittest.hasLength(2)); checkWmxSitemapContent(o[0]); checkWmxSitemapContent(o[1]); @@ -543,7 +543,7 @@ var o = new api.WmxSitemap(); buildCounterWmxSitemap++; if (buildCounterWmxSitemap < 3) { - o.contents = buildUnnamed3425(); + o.contents = buildUnnamed1318(); o.errors = "foo"; o.isPending = true; o.isSitemapsIndex = true; @@ -560,7 +560,7 @@ checkWmxSitemap(api.WmxSitemap o) { buildCounterWmxSitemap++; if (buildCounterWmxSitemap < 3) { - checkUnnamed3425(o.contents); + checkUnnamed1318(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 2707b91..3a1379a 100644 --- a/generated/googleapis/test/youtube/v3_test.dart +++ b/generated/googleapis/test/youtube/v3_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed437() { +buildUnnamed3156() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed437(core.List<core.String> o) { +checkUnnamed3156(core.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 @@ buildCounterAccessPolicy++; if (buildCounterAccessPolicy < 3) { o.allowed = true; - o.exception = buildUnnamed437(); + o.exception = buildUnnamed3156(); } buildCounterAccessPolicy--; return o; @@ -79,7 +79,7 @@ buildCounterAccessPolicy++; if (buildCounterAccessPolicy < 3) { unittest.expect(o.allowed, unittest.isTrue); - checkUnnamed437(o.exception); + checkUnnamed3156(o.exception); } buildCounterAccessPolicy--; } @@ -270,27 +270,27 @@ buildCounterActivityContentDetailsPlaylistItem--; } -buildUnnamed438() { +buildUnnamed3157() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed438(core.List<core.String> o) { +checkUnnamed3157(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed439() { +buildUnnamed3158() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed439(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')); @@ -308,8 +308,8 @@ o.customCtaButtonText = "foo"; o.descriptionText = "foo"; o.destinationUrl = "foo"; - o.forecastingUrl = buildUnnamed438(); - o.impressionUrl = buildUnnamed439(); + o.forecastingUrl = buildUnnamed3157(); + o.impressionUrl = buildUnnamed3158(); o.videoId = "foo"; } buildCounterActivityContentDetailsPromotedItem--; @@ -327,8 +327,8 @@ unittest.expect(o.customCtaButtonText, unittest.equals('foo')); unittest.expect(o.descriptionText, unittest.equals('foo')); unittest.expect(o.destinationUrl, unittest.equals('foo')); - checkUnnamed438(o.forecastingUrl); - checkUnnamed439(o.impressionUrl); + checkUnnamed3157(o.forecastingUrl); + checkUnnamed3158(o.impressionUrl); unittest.expect(o.videoId, unittest.equals('foo')); } buildCounterActivityContentDetailsPromotedItem--; @@ -424,14 +424,14 @@ buildCounterActivityContentDetailsUpload--; } -buildUnnamed440() { +buildUnnamed3159() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed440(core.List<api.Activity> o) { +checkUnnamed3159(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -444,7 +444,7 @@ if (buildCounterActivityListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed440(); + o.items = buildUnnamed3159(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -461,7 +461,7 @@ if (buildCounterActivityListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed440(o.items); + checkUnnamed3159(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -531,14 +531,14 @@ buildCounterCaption--; } -buildUnnamed441() { +buildUnnamed3160() { var o = new core.List<api.Caption>(); o.add(buildCaption()); o.add(buildCaption()); return o; } -checkUnnamed441(core.List<api.Caption> o) { +checkUnnamed3160(core.List<api.Caption> o) { unittest.expect(o, unittest.hasLength(2)); checkCaption(o[0]); checkCaption(o[1]); @@ -551,7 +551,7 @@ if (buildCounterCaptionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed441(); + o.items = buildUnnamed3160(); o.kind = "foo"; o.visitorId = "foo"; } @@ -564,7 +564,7 @@ if (buildCounterCaptionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed441(o.items); + checkUnnamed3160(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -642,14 +642,14 @@ buildCounterCdnSettings--; } -buildUnnamed442() { +buildUnnamed3161() { var o = new core.Map<core.String, api.ChannelLocalization>(); o["x"] = buildChannelLocalization(); o["y"] = buildChannelLocalization(); return o; } -checkUnnamed442(core.Map<core.String, api.ChannelLocalization> o) { +checkUnnamed3161(core.Map<core.String, api.ChannelLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelLocalization(o["x"]); checkChannelLocalization(o["y"]); @@ -669,7 +669,7 @@ o.id = "foo"; o.invideoPromotion = buildInvideoPromotion(); o.kind = "foo"; - o.localizations = buildUnnamed442(); + o.localizations = buildUnnamed3161(); o.snippet = buildChannelSnippet(); o.statistics = buildChannelStatistics(); o.status = buildChannelStatus(); @@ -691,7 +691,7 @@ unittest.expect(o.id, unittest.equals('foo')); checkInvideoPromotion(o.invideoPromotion); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed442(o.localizations); + checkUnnamed3161(o.localizations); checkChannelSnippet(o.snippet); checkChannelStatistics(o.statistics); checkChannelStatus(o.status); @@ -748,14 +748,14 @@ buildCounterChannelBannerResource--; } -buildUnnamed443() { +buildUnnamed3162() { var o = new core.List<api.PropertyValue>(); o.add(buildPropertyValue()); o.add(buildPropertyValue()); return o; } -checkUnnamed443(core.List<api.PropertyValue> o) { +checkUnnamed3162(core.List<api.PropertyValue> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyValue(o[0]); checkPropertyValue(o[1]); @@ -767,7 +767,7 @@ buildCounterChannelBrandingSettings++; if (buildCounterChannelBrandingSettings < 3) { o.channel = buildChannelSettings(); - o.hints = buildUnnamed443(); + o.hints = buildUnnamed3162(); o.image = buildImageSettings(); o.watch = buildWatchSettings(); } @@ -779,7 +779,7 @@ buildCounterChannelBrandingSettings++; if (buildCounterChannelBrandingSettings < 3) { checkChannelSettings(o.channel); - checkUnnamed443(o.hints); + checkUnnamed3162(o.hints); checkImageSettings(o.image); checkWatchSettings(o.watch); } @@ -876,14 +876,14 @@ buildCounterChannelConversionPing--; } -buildUnnamed444() { +buildUnnamed3163() { var o = new core.List<api.ChannelConversionPing>(); o.add(buildChannelConversionPing()); o.add(buildChannelConversionPing()); return o; } -checkUnnamed444(core.List<api.ChannelConversionPing> o) { +checkUnnamed3163(core.List<api.ChannelConversionPing> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelConversionPing(o[0]); checkChannelConversionPing(o[1]); @@ -894,7 +894,7 @@ var o = new api.ChannelConversionPings(); buildCounterChannelConversionPings++; if (buildCounterChannelConversionPings < 3) { - o.pings = buildUnnamed444(); + o.pings = buildUnnamed3163(); } buildCounterChannelConversionPings--; return o; @@ -903,19 +903,19 @@ checkChannelConversionPings(api.ChannelConversionPings o) { buildCounterChannelConversionPings++; if (buildCounterChannelConversionPings < 3) { - checkUnnamed444(o.pings); + checkUnnamed3163(o.pings); } buildCounterChannelConversionPings--; } -buildUnnamed445() { +buildUnnamed3164() { var o = new core.List<api.Channel>(); o.add(buildChannel()); o.add(buildChannel()); return o; } -checkUnnamed445(core.List<api.Channel> o) { +checkUnnamed3164(core.List<api.Channel> o) { unittest.expect(o, unittest.hasLength(2)); checkChannel(o[0]); checkChannel(o[1]); @@ -928,7 +928,7 @@ if (buildCounterChannelListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed445(); + o.items = buildUnnamed3164(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -945,7 +945,7 @@ if (buildCounterChannelListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed445(o.items); + checkUnnamed3164(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -1002,14 +1002,14 @@ buildCounterChannelProfileDetails--; } -buildUnnamed446() { +buildUnnamed3165() { var o = new core.Map<core.String, api.ChannelSectionLocalization>(); o["x"] = buildChannelSectionLocalization(); o["y"] = buildChannelSectionLocalization(); return o; } -checkUnnamed446(core.Map<core.String, api.ChannelSectionLocalization> o) { +checkUnnamed3165(core.Map<core.String, api.ChannelSectionLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelSectionLocalization(o["x"]); checkChannelSectionLocalization(o["y"]); @@ -1024,7 +1024,7 @@ o.etag = "foo"; o.id = "foo"; o.kind = "foo"; - o.localizations = buildUnnamed446(); + o.localizations = buildUnnamed3165(); o.snippet = buildChannelSectionSnippet(); o.targeting = buildChannelSectionTargeting(); } @@ -1039,34 +1039,34 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed446(o.localizations); + checkUnnamed3165(o.localizations); checkChannelSectionSnippet(o.snippet); checkChannelSectionTargeting(o.targeting); } buildCounterChannelSection--; } -buildUnnamed447() { +buildUnnamed3166() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed447(core.List<core.String> o) { +checkUnnamed3166(core.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() { +buildUnnamed3167() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed448(core.List<core.String> o) { +checkUnnamed3167(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1077,8 +1077,8 @@ var o = new api.ChannelSectionContentDetails(); buildCounterChannelSectionContentDetails++; if (buildCounterChannelSectionContentDetails < 3) { - o.channels = buildUnnamed447(); - o.playlists = buildUnnamed448(); + o.channels = buildUnnamed3166(); + o.playlists = buildUnnamed3167(); } buildCounterChannelSectionContentDetails--; return o; @@ -1087,20 +1087,20 @@ checkChannelSectionContentDetails(api.ChannelSectionContentDetails o) { buildCounterChannelSectionContentDetails++; if (buildCounterChannelSectionContentDetails < 3) { - checkUnnamed447(o.channels); - checkUnnamed448(o.playlists); + checkUnnamed3166(o.channels); + checkUnnamed3167(o.playlists); } buildCounterChannelSectionContentDetails--; } -buildUnnamed449() { +buildUnnamed3168() { var o = new core.List<api.ChannelSection>(); o.add(buildChannelSection()); o.add(buildChannelSection()); return o; } -checkUnnamed449(core.List<api.ChannelSection> o) { +checkUnnamed3168(core.List<api.ChannelSection> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelSection(o[0]); checkChannelSection(o[1]); @@ -1113,7 +1113,7 @@ if (buildCounterChannelSectionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed449(); + o.items = buildUnnamed3168(); o.kind = "foo"; o.visitorId = "foo"; } @@ -1126,7 +1126,7 @@ if (buildCounterChannelSectionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed449(o.items); + checkUnnamed3168(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -1183,40 +1183,40 @@ buildCounterChannelSectionSnippet--; } -buildUnnamed450() { +buildUnnamed3169() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed450(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')); } -buildUnnamed451() { +buildUnnamed3170() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed451(core.List<core.String> 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')); } -buildUnnamed452() { +buildUnnamed3171() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed452(core.List<core.String> 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')); @@ -1227,9 +1227,9 @@ var o = new api.ChannelSectionTargeting(); buildCounterChannelSectionTargeting++; if (buildCounterChannelSectionTargeting < 3) { - o.countries = buildUnnamed450(); - o.languages = buildUnnamed451(); - o.regions = buildUnnamed452(); + o.countries = buildUnnamed3169(); + o.languages = buildUnnamed3170(); + o.regions = buildUnnamed3171(); } buildCounterChannelSectionTargeting--; return o; @@ -1238,21 +1238,21 @@ checkChannelSectionTargeting(api.ChannelSectionTargeting o) { buildCounterChannelSectionTargeting++; if (buildCounterChannelSectionTargeting < 3) { - checkUnnamed450(o.countries); - checkUnnamed451(o.languages); - checkUnnamed452(o.regions); + checkUnnamed3169(o.countries); + checkUnnamed3170(o.languages); + checkUnnamed3171(o.regions); } buildCounterChannelSectionTargeting--; } -buildUnnamed453() { +buildUnnamed3172() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed453(core.List<core.String> o) { +checkUnnamed3172(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1268,7 +1268,7 @@ o.defaultTab = "foo"; o.description = "foo"; o.featuredChannelsTitle = "foo"; - o.featuredChannelsUrls = buildUnnamed453(); + o.featuredChannelsUrls = buildUnnamed3172(); o.keywords = "foo"; o.moderateComments = true; o.profileColor = "foo"; @@ -1290,7 +1290,7 @@ unittest.expect(o.defaultTab, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.featuredChannelsTitle, unittest.equals('foo')); - checkUnnamed453(o.featuredChannelsUrls); + checkUnnamed3172(o.featuredChannelsUrls); unittest.expect(o.keywords, unittest.equals('foo')); unittest.expect(o.moderateComments, unittest.isTrue); unittest.expect(o.profileColor, unittest.equals('foo')); @@ -1387,27 +1387,27 @@ buildCounterChannelStatus--; } -buildUnnamed454() { +buildUnnamed3173() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed454(core.List<core.String> o) { +checkUnnamed3173(core.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() { +buildUnnamed3174() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed455(core.List<core.String> o) { +checkUnnamed3174(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1418,8 +1418,8 @@ var o = new api.ChannelTopicDetails(); buildCounterChannelTopicDetails++; if (buildCounterChannelTopicDetails < 3) { - o.topicCategories = buildUnnamed454(); - o.topicIds = buildUnnamed455(); + o.topicCategories = buildUnnamed3173(); + o.topicIds = buildUnnamed3174(); } buildCounterChannelTopicDetails--; return o; @@ -1428,8 +1428,8 @@ checkChannelTopicDetails(api.ChannelTopicDetails o) { buildCounterChannelTopicDetails++; if (buildCounterChannelTopicDetails < 3) { - checkUnnamed454(o.topicCategories); - checkUnnamed455(o.topicIds); + checkUnnamed3173(o.topicCategories); + checkUnnamed3174(o.topicIds); } buildCounterChannelTopicDetails--; } @@ -1459,14 +1459,14 @@ buildCounterComment--; } -buildUnnamed456() { +buildUnnamed3175() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed456(core.List<api.Comment> o) { +checkUnnamed3175(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1479,7 +1479,7 @@ if (buildCounterCommentListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed456(); + o.items = buildUnnamed3175(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -1495,7 +1495,7 @@ if (buildCounterCommentListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed456(o.items); + checkUnnamed3175(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -1589,14 +1589,14 @@ buildCounterCommentThread--; } -buildUnnamed457() { +buildUnnamed3176() { var o = new core.List<api.CommentThread>(); o.add(buildCommentThread()); o.add(buildCommentThread()); return o; } -checkUnnamed457(core.List<api.CommentThread> o) { +checkUnnamed3176(core.List<api.CommentThread> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentThread(o[0]); checkCommentThread(o[1]); @@ -1609,7 +1609,7 @@ if (buildCounterCommentThreadListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed457(); + o.items = buildUnnamed3176(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -1625,7 +1625,7 @@ if (buildCounterCommentThreadListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed457(o.items); + checkUnnamed3176(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -1635,14 +1635,14 @@ buildCounterCommentThreadListResponse--; } -buildUnnamed458() { +buildUnnamed3177() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed458(core.List<api.Comment> o) { +checkUnnamed3177(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1653,7 +1653,7 @@ var o = new api.CommentThreadReplies(); buildCounterCommentThreadReplies++; if (buildCounterCommentThreadReplies < 3) { - o.comments = buildUnnamed458(); + o.comments = buildUnnamed3177(); } buildCounterCommentThreadReplies--; return o; @@ -1662,7 +1662,7 @@ checkCommentThreadReplies(api.CommentThreadReplies o) { buildCounterCommentThreadReplies++; if (buildCounterCommentThreadReplies < 3) { - checkUnnamed458(o.comments); + checkUnnamed3177(o.comments); } buildCounterCommentThreadReplies--; } @@ -1696,27 +1696,27 @@ buildCounterCommentThreadSnippet--; } -buildUnnamed459() { +buildUnnamed3178() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed459(core.List<core.String> 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')); } -buildUnnamed460() { +buildUnnamed3179() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed460(core.List<core.String> 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')); @@ -1747,7 +1747,7 @@ o.cscfRating = "foo"; o.czfilmRating = "foo"; o.djctqRating = "foo"; - o.djctqRatingReasons = buildUnnamed459(); + o.djctqRatingReasons = buildUnnamed3178(); o.ecbmctRating = "foo"; o.eefilmRating = "foo"; o.egfilmRating = "foo"; @@ -1756,7 +1756,7 @@ o.fcoRating = "foo"; o.fmocRating = "foo"; o.fpbRating = "foo"; - o.fpbRatingReasons = buildUnnamed460(); + o.fpbRatingReasons = buildUnnamed3179(); o.fskRating = "foo"; o.grfilmRating = "foo"; o.icaaRating = "foo"; @@ -1825,7 +1825,7 @@ unittest.expect(o.cscfRating, unittest.equals('foo')); unittest.expect(o.czfilmRating, unittest.equals('foo')); unittest.expect(o.djctqRating, unittest.equals('foo')); - checkUnnamed459(o.djctqRatingReasons); + checkUnnamed3178(o.djctqRatingReasons); unittest.expect(o.ecbmctRating, unittest.equals('foo')); unittest.expect(o.eefilmRating, unittest.equals('foo')); unittest.expect(o.egfilmRating, unittest.equals('foo')); @@ -1834,7 +1834,7 @@ unittest.expect(o.fcoRating, unittest.equals('foo')); unittest.expect(o.fmocRating, unittest.equals('foo')); unittest.expect(o.fpbRating, unittest.equals('foo')); - checkUnnamed460(o.fpbRatingReasons); + checkUnnamed3179(o.fpbRatingReasons); unittest.expect(o.fskRating, unittest.equals('foo')); unittest.expect(o.grfilmRating, unittest.equals('foo')); unittest.expect(o.icaaRating, unittest.equals('foo')); @@ -1879,109 +1879,6 @@ buildCounterContentRating--; } -core.int buildCounterFanFundingEvent = 0; -buildFanFundingEvent() { - var o = new api.FanFundingEvent(); - buildCounterFanFundingEvent++; - if (buildCounterFanFundingEvent < 3) { - o.etag = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.snippet = buildFanFundingEventSnippet(); - } - buildCounterFanFundingEvent--; - return o; -} - -checkFanFundingEvent(api.FanFundingEvent o) { - buildCounterFanFundingEvent++; - if (buildCounterFanFundingEvent < 3) { - unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - checkFanFundingEventSnippet(o.snippet); - } - buildCounterFanFundingEvent--; -} - -buildUnnamed461() { - var o = new core.List<api.FanFundingEvent>(); - o.add(buildFanFundingEvent()); - o.add(buildFanFundingEvent()); - return o; -} - -checkUnnamed461(core.List<api.FanFundingEvent> o) { - unittest.expect(o, unittest.hasLength(2)); - checkFanFundingEvent(o[0]); - checkFanFundingEvent(o[1]); -} - -core.int buildCounterFanFundingEventListResponse = 0; -buildFanFundingEventListResponse() { - var o = new api.FanFundingEventListResponse(); - buildCounterFanFundingEventListResponse++; - if (buildCounterFanFundingEventListResponse < 3) { - o.etag = "foo"; - o.eventId = "foo"; - o.items = buildUnnamed461(); - o.kind = "foo"; - o.nextPageToken = "foo"; - o.pageInfo = buildPageInfo(); - o.tokenPagination = buildTokenPagination(); - o.visitorId = "foo"; - } - buildCounterFanFundingEventListResponse--; - return o; -} - -checkFanFundingEventListResponse(api.FanFundingEventListResponse o) { - buildCounterFanFundingEventListResponse++; - if (buildCounterFanFundingEventListResponse < 3) { - unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed461(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkPageInfo(o.pageInfo); - checkTokenPagination(o.tokenPagination); - unittest.expect(o.visitorId, unittest.equals('foo')); - } - buildCounterFanFundingEventListResponse--; -} - -core.int buildCounterFanFundingEventSnippet = 0; -buildFanFundingEventSnippet() { - var o = new api.FanFundingEventSnippet(); - buildCounterFanFundingEventSnippet++; - if (buildCounterFanFundingEventSnippet < 3) { - o.amountMicros = "foo"; - o.channelId = "foo"; - o.commentText = "foo"; - o.createdAt = core.DateTime.parse("2002-02-27T14:01:02"); - o.currency = "foo"; - o.displayString = "foo"; - o.supporterDetails = buildChannelProfileDetails(); - } - buildCounterFanFundingEventSnippet--; - return o; -} - -checkFanFundingEventSnippet(api.FanFundingEventSnippet o) { - buildCounterFanFundingEventSnippet++; - if (buildCounterFanFundingEventSnippet < 3) { - unittest.expect(o.amountMicros, unittest.equals('foo')); - unittest.expect(o.channelId, unittest.equals('foo')); - unittest.expect(o.commentText, unittest.equals('foo')); - unittest.expect(o.createdAt, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.currency, unittest.equals('foo')); - unittest.expect(o.displayString, unittest.equals('foo')); - checkChannelProfileDetails(o.supporterDetails); - } - buildCounterFanFundingEventSnippet--; -} - core.int buildCounterGeoPoint = 0; buildGeoPoint() { var o = new api.GeoPoint(); @@ -2030,14 +1927,14 @@ buildCounterGuideCategory--; } -buildUnnamed462() { +buildUnnamed3180() { var o = new core.List<api.GuideCategory>(); o.add(buildGuideCategory()); o.add(buildGuideCategory()); return o; } -checkUnnamed462(core.List<api.GuideCategory> o) { +checkUnnamed3180(core.List<api.GuideCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkGuideCategory(o[0]); checkGuideCategory(o[1]); @@ -2050,7 +1947,7 @@ if (buildCounterGuideCategoryListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed462(); + o.items = buildUnnamed3180(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -2067,7 +1964,7 @@ if (buildCounterGuideCategoryListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed462(o.items); + checkUnnamed3180(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -2124,14 +2021,14 @@ buildCounterI18nLanguage--; } -buildUnnamed463() { +buildUnnamed3181() { var o = new core.List<api.I18nLanguage>(); o.add(buildI18nLanguage()); o.add(buildI18nLanguage()); return o; } -checkUnnamed463(core.List<api.I18nLanguage> o) { +checkUnnamed3181(core.List<api.I18nLanguage> o) { unittest.expect(o, unittest.hasLength(2)); checkI18nLanguage(o[0]); checkI18nLanguage(o[1]); @@ -2144,7 +2041,7 @@ if (buildCounterI18nLanguageListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed463(); + o.items = buildUnnamed3181(); o.kind = "foo"; o.visitorId = "foo"; } @@ -2157,7 +2054,7 @@ if (buildCounterI18nLanguageListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed463(o.items); + checkUnnamed3181(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -2210,14 +2107,14 @@ buildCounterI18nRegion--; } -buildUnnamed464() { +buildUnnamed3182() { var o = new core.List<api.I18nRegion>(); o.add(buildI18nRegion()); o.add(buildI18nRegion()); return o; } -checkUnnamed464(core.List<api.I18nRegion> o) { +checkUnnamed3182(core.List<api.I18nRegion> o) { unittest.expect(o, unittest.hasLength(2)); checkI18nRegion(o[0]); checkI18nRegion(o[1]); @@ -2230,7 +2127,7 @@ if (buildCounterI18nRegionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed464(); + o.items = buildUnnamed3182(); o.kind = "foo"; o.visitorId = "foo"; } @@ -2243,7 +2140,7 @@ if (buildCounterI18nRegionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed464(o.items); + checkUnnamed3182(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -2403,14 +2300,14 @@ buildCounterInvideoPosition--; } -buildUnnamed465() { +buildUnnamed3183() { var o = new core.List<api.PromotedItem>(); o.add(buildPromotedItem()); o.add(buildPromotedItem()); return o; } -checkUnnamed465(core.List<api.PromotedItem> o) { +checkUnnamed3183(core.List<api.PromotedItem> o) { unittest.expect(o, unittest.hasLength(2)); checkPromotedItem(o[0]); checkPromotedItem(o[1]); @@ -2422,7 +2319,7 @@ buildCounterInvideoPromotion++; if (buildCounterInvideoPromotion < 3) { o.defaultTiming = buildInvideoTiming(); - o.items = buildUnnamed465(); + o.items = buildUnnamed3183(); o.position = buildInvideoPosition(); o.useSmartTiming = true; } @@ -2434,7 +2331,7 @@ buildCounterInvideoPromotion++; if (buildCounterInvideoPromotion < 3) { checkInvideoTiming(o.defaultTiming); - checkUnnamed465(o.items); + checkUnnamed3183(o.items); checkInvideoPosition(o.position); unittest.expect(o.useSmartTiming, unittest.isTrue); } @@ -2534,6 +2431,7 @@ o.projection = "foo"; o.recordFromStart = true; o.startWithSlate = true; + o.stereoLayout = "foo"; } buildCounterLiveBroadcastContentDetails--; return o; @@ -2558,18 +2456,19 @@ unittest.expect(o.projection, unittest.equals('foo')); unittest.expect(o.recordFromStart, unittest.isTrue); unittest.expect(o.startWithSlate, unittest.isTrue); + unittest.expect(o.stereoLayout, unittest.equals('foo')); } buildCounterLiveBroadcastContentDetails--; } -buildUnnamed466() { +buildUnnamed3184() { var o = new core.List<api.LiveBroadcast>(); o.add(buildLiveBroadcast()); o.add(buildLiveBroadcast()); return o; } -checkUnnamed466(core.List<api.LiveBroadcast> o) { +checkUnnamed3184(core.List<api.LiveBroadcast> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveBroadcast(o[0]); checkLiveBroadcast(o[1]); @@ -2582,7 +2481,7 @@ if (buildCounterLiveBroadcastListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed466(); + o.items = buildUnnamed3184(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -2599,7 +2498,7 @@ if (buildCounterLiveBroadcastListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed466(o.items); + checkUnnamed3184(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -2854,14 +2753,14 @@ buildCounterLiveChatMessageDeletedDetails--; } -buildUnnamed467() { +buildUnnamed3185() { var o = new core.List<api.LiveChatMessage>(); o.add(buildLiveChatMessage()); o.add(buildLiveChatMessage()); return o; } -checkUnnamed467(core.List<api.LiveChatMessage> o) { +checkUnnamed3185(core.List<api.LiveChatMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatMessage(o[0]); checkLiveChatMessage(o[1]); @@ -2874,7 +2773,7 @@ if (buildCounterLiveChatMessageListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed467(); + o.items = buildUnnamed3185(); o.kind = "foo"; o.nextPageToken = "foo"; o.offlineAt = core.DateTime.parse("2002-02-27T14:01:02"); @@ -2892,7 +2791,7 @@ if (buildCounterLiveChatMessageListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed467(o.items); + checkUnnamed3185(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.offlineAt, @@ -2999,14 +2898,14 @@ buildCounterLiveChatModerator--; } -buildUnnamed468() { +buildUnnamed3186() { var o = new core.List<api.LiveChatModerator>(); o.add(buildLiveChatModerator()); o.add(buildLiveChatModerator()); return o; } -checkUnnamed468(core.List<api.LiveChatModerator> o) { +checkUnnamed3186(core.List<api.LiveChatModerator> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatModerator(o[0]); checkLiveChatModerator(o[1]); @@ -3019,7 +2918,7 @@ if (buildCounterLiveChatModeratorListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed468(); + o.items = buildUnnamed3186(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3036,7 +2935,7 @@ if (buildCounterLiveChatModeratorListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed468(o.items); + checkUnnamed3186(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3087,14 +2986,14 @@ buildCounterLiveChatPollClosedDetails--; } -buildUnnamed469() { +buildUnnamed3187() { var o = new core.List<api.LiveChatPollItem>(); o.add(buildLiveChatPollItem()); o.add(buildLiveChatPollItem()); return o; } -checkUnnamed469(core.List<api.LiveChatPollItem> o) { +checkUnnamed3187(core.List<api.LiveChatPollItem> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatPollItem(o[0]); checkLiveChatPollItem(o[1]); @@ -3106,7 +3005,7 @@ buildCounterLiveChatPollEditedDetails++; if (buildCounterLiveChatPollEditedDetails < 3) { o.id = "foo"; - o.items = buildUnnamed469(); + o.items = buildUnnamed3187(); o.prompt = "foo"; } buildCounterLiveChatPollEditedDetails--; @@ -3117,7 +3016,7 @@ buildCounterLiveChatPollEditedDetails++; if (buildCounterLiveChatPollEditedDetails < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed469(o.items); + checkUnnamed3187(o.items); unittest.expect(o.prompt, unittest.equals('foo')); } buildCounterLiveChatPollEditedDetails--; @@ -3144,14 +3043,14 @@ buildCounterLiveChatPollItem--; } -buildUnnamed470() { +buildUnnamed3188() { var o = new core.List<api.LiveChatPollItem>(); o.add(buildLiveChatPollItem()); o.add(buildLiveChatPollItem()); return o; } -checkUnnamed470(core.List<api.LiveChatPollItem> o) { +checkUnnamed3188(core.List<api.LiveChatPollItem> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatPollItem(o[0]); checkLiveChatPollItem(o[1]); @@ -3163,7 +3062,7 @@ buildCounterLiveChatPollOpenedDetails++; if (buildCounterLiveChatPollOpenedDetails < 3) { o.id = "foo"; - o.items = buildUnnamed470(); + o.items = buildUnnamed3188(); o.prompt = "foo"; } buildCounterLiveChatPollOpenedDetails--; @@ -3174,7 +3073,7 @@ buildCounterLiveChatPollOpenedDetails++; if (buildCounterLiveChatPollOpenedDetails < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed470(o.items); + checkUnnamed3188(o.items); unittest.expect(o.prompt, unittest.equals('foo')); } buildCounterLiveChatPollOpenedDetails--; @@ -3347,14 +3246,14 @@ buildCounterLiveStreamContentDetails--; } -buildUnnamed471() { +buildUnnamed3189() { var o = new core.List<api.LiveStreamConfigurationIssue>(); o.add(buildLiveStreamConfigurationIssue()); o.add(buildLiveStreamConfigurationIssue()); return o; } -checkUnnamed471(core.List<api.LiveStreamConfigurationIssue> o) { +checkUnnamed3189(core.List<api.LiveStreamConfigurationIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveStreamConfigurationIssue(o[0]); checkLiveStreamConfigurationIssue(o[1]); @@ -3365,7 +3264,7 @@ var o = new api.LiveStreamHealthStatus(); buildCounterLiveStreamHealthStatus++; if (buildCounterLiveStreamHealthStatus < 3) { - o.configurationIssues = buildUnnamed471(); + o.configurationIssues = buildUnnamed3189(); o.lastUpdateTimeSeconds = "foo"; o.status = "foo"; } @@ -3376,21 +3275,21 @@ checkLiveStreamHealthStatus(api.LiveStreamHealthStatus o) { buildCounterLiveStreamHealthStatus++; if (buildCounterLiveStreamHealthStatus < 3) { - checkUnnamed471(o.configurationIssues); + checkUnnamed3189(o.configurationIssues); unittest.expect(o.lastUpdateTimeSeconds, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); } buildCounterLiveStreamHealthStatus--; } -buildUnnamed472() { +buildUnnamed3190() { var o = new core.List<api.LiveStream>(); o.add(buildLiveStream()); o.add(buildLiveStream()); return o; } -checkUnnamed472(core.List<api.LiveStream> o) { +checkUnnamed3190(core.List<api.LiveStream> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveStream(o[0]); checkLiveStream(o[1]); @@ -3403,7 +3302,7 @@ if (buildCounterLiveStreamListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed472(); + o.items = buildUnnamed3190(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3420,7 +3319,7 @@ if (buildCounterLiveStreamListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed472(o.items); + checkUnnamed3190(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3480,14 +3379,14 @@ buildCounterLiveStreamStatus--; } -buildUnnamed473() { +buildUnnamed3191() { var o = new core.List<api.LocalizedString>(); o.add(buildLocalizedString()); o.add(buildLocalizedString()); return o; } -checkUnnamed473(core.List<api.LocalizedString> o) { +checkUnnamed3191(core.List<api.LocalizedString> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedString(o[0]); checkLocalizedString(o[1]); @@ -3500,7 +3399,7 @@ if (buildCounterLocalizedProperty < 3) { o.default_ = "foo"; o.defaultLanguage = buildLanguageTag(); - o.localized = buildUnnamed473(); + o.localized = buildUnnamed3191(); } buildCounterLocalizedProperty--; return o; @@ -3511,7 +3410,7 @@ if (buildCounterLocalizedProperty < 3) { unittest.expect(o.default_, unittest.equals('foo')); checkLanguageTag(o.defaultLanguage); - checkUnnamed473(o.localized); + checkUnnamed3191(o.localized); } buildCounterLocalizedProperty--; } @@ -3621,14 +3520,14 @@ buildCounterPageInfo--; } -buildUnnamed474() { +buildUnnamed3192() { var o = new core.Map<core.String, api.PlaylistLocalization>(); o["x"] = buildPlaylistLocalization(); o["y"] = buildPlaylistLocalization(); return o; } -checkUnnamed474(core.Map<core.String, api.PlaylistLocalization> o) { +checkUnnamed3192(core.Map<core.String, api.PlaylistLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkPlaylistLocalization(o["x"]); checkPlaylistLocalization(o["y"]); @@ -3643,7 +3542,7 @@ o.etag = "foo"; o.id = "foo"; o.kind = "foo"; - o.localizations = buildUnnamed474(); + o.localizations = buildUnnamed3192(); o.player = buildPlaylistPlayer(); o.snippet = buildPlaylistSnippet(); o.status = buildPlaylistStatus(); @@ -3659,7 +3558,7 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed474(o.localizations); + checkUnnamed3192(o.localizations); checkPlaylistPlayer(o.player); checkPlaylistSnippet(o.snippet); checkPlaylistStatus(o.status); @@ -3743,14 +3642,14 @@ buildCounterPlaylistItemContentDetails--; } -buildUnnamed475() { +buildUnnamed3193() { var o = new core.List<api.PlaylistItem>(); o.add(buildPlaylistItem()); o.add(buildPlaylistItem()); return o; } -checkUnnamed475(core.List<api.PlaylistItem> o) { +checkUnnamed3193(core.List<api.PlaylistItem> o) { unittest.expect(o, unittest.hasLength(2)); checkPlaylistItem(o[0]); checkPlaylistItem(o[1]); @@ -3763,7 +3662,7 @@ if (buildCounterPlaylistItemListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed475(); + o.items = buildUnnamed3193(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3780,7 +3679,7 @@ if (buildCounterPlaylistItemListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed475(o.items); + checkUnnamed3193(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3846,14 +3745,14 @@ buildCounterPlaylistItemStatus--; } -buildUnnamed476() { +buildUnnamed3194() { var o = new core.List<api.Playlist>(); o.add(buildPlaylist()); o.add(buildPlaylist()); return o; } -checkUnnamed476(core.List<api.Playlist> o) { +checkUnnamed3194(core.List<api.Playlist> o) { unittest.expect(o, unittest.hasLength(2)); checkPlaylist(o[0]); checkPlaylist(o[1]); @@ -3866,7 +3765,7 @@ if (buildCounterPlaylistListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed476(); + o.items = buildUnnamed3194(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3883,7 +3782,7 @@ if (buildCounterPlaylistListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed476(o.items); + checkUnnamed3194(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3934,14 +3833,14 @@ buildCounterPlaylistPlayer--; } -buildUnnamed477() { +buildUnnamed3195() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed477(core.List<core.String> 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')); @@ -3958,7 +3857,7 @@ o.description = "foo"; o.localized = buildPlaylistLocalization(); o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); - o.tags = buildUnnamed477(); + o.tags = buildUnnamed3195(); o.thumbnails = buildThumbnailDetails(); o.title = "foo"; } @@ -3976,7 +3875,7 @@ checkPlaylistLocalization(o.localized); unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed477(o.tags); + checkUnnamed3195(o.tags); checkThumbnailDetails(o.thumbnails); unittest.expect(o.title, unittest.equals('foo')); } @@ -4098,14 +3997,14 @@ buildCounterResourceId--; } -buildUnnamed478() { +buildUnnamed3196() { var o = new core.List<api.SearchResult>(); o.add(buildSearchResult()); o.add(buildSearchResult()); return o; } -checkUnnamed478(core.List<api.SearchResult> o) { +checkUnnamed3196(core.List<api.SearchResult> o) { unittest.expect(o, unittest.hasLength(2)); checkSearchResult(o[0]); checkSearchResult(o[1]); @@ -4118,7 +4017,7 @@ if (buildCounterSearchListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed478(); + o.items = buildUnnamed3196(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4136,7 +4035,7 @@ if (buildCounterSearchListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed478(o.items); + checkUnnamed3196(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4211,7 +4110,6 @@ buildCounterSponsor++; if (buildCounterSponsor < 3) { o.etag = "foo"; - o.id = "foo"; o.kind = "foo"; o.snippet = buildSponsorSnippet(); } @@ -4223,21 +4121,20 @@ buildCounterSponsor++; if (buildCounterSponsor < 3) { unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkSponsorSnippet(o.snippet); } buildCounterSponsor--; } -buildUnnamed479() { +buildUnnamed3197() { var o = new core.List<api.Sponsor>(); o.add(buildSponsor()); o.add(buildSponsor()); return o; } -checkUnnamed479(core.List<api.Sponsor> o) { +checkUnnamed3197(core.List<api.Sponsor> o) { unittest.expect(o, unittest.hasLength(2)); checkSponsor(o[0]); checkSponsor(o[1]); @@ -4250,7 +4147,7 @@ if (buildCounterSponsorListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed479(); + o.items = buildUnnamed3197(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4266,7 +4163,7 @@ if (buildCounterSponsorListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed479(o.items); + checkUnnamed3197(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4282,6 +4179,7 @@ buildCounterSponsorSnippet++; if (buildCounterSponsorSnippet < 3) { o.channelId = "foo"; + o.cumulativeDurationMonths = 42; o.sponsorDetails = buildChannelProfileDetails(); o.sponsorSince = core.DateTime.parse("2002-02-27T14:01:02"); } @@ -4293,6 +4191,7 @@ buildCounterSponsorSnippet++; if (buildCounterSponsorSnippet < 3) { unittest.expect(o.channelId, unittest.equals('foo')); + unittest.expect(o.cumulativeDurationMonths, unittest.equals(42)); checkChannelProfileDetails(o.sponsorDetails); unittest.expect(o.sponsorSince, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -4352,14 +4251,14 @@ buildCounterSubscriptionContentDetails--; } -buildUnnamed480() { +buildUnnamed3198() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed480(core.List<api.Subscription> o) { +checkUnnamed3198(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -4372,7 +4271,7 @@ if (buildCounterSubscriptionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed480(); + o.items = buildUnnamed3198(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4389,7 +4288,7 @@ if (buildCounterSubscriptionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed480(o.items); + checkUnnamed3198(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4482,14 +4381,14 @@ buildCounterSuperChatEvent--; } -buildUnnamed481() { +buildUnnamed3199() { var o = new core.List<api.SuperChatEvent>(); o.add(buildSuperChatEvent()); o.add(buildSuperChatEvent()); return o; } -checkUnnamed481(core.List<api.SuperChatEvent> o) { +checkUnnamed3199(core.List<api.SuperChatEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkSuperChatEvent(o[0]); checkSuperChatEvent(o[1]); @@ -4502,7 +4401,7 @@ if (buildCounterSuperChatEventListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed481(); + o.items = buildUnnamed3199(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4518,7 +4417,7 @@ if (buildCounterSuperChatEventListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed481(o.items); + checkUnnamed3199(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4616,14 +4515,14 @@ buildCounterThumbnailDetails--; } -buildUnnamed482() { +buildUnnamed3200() { var o = new core.List<api.ThumbnailDetails>(); o.add(buildThumbnailDetails()); o.add(buildThumbnailDetails()); return o; } -checkUnnamed482(core.List<api.ThumbnailDetails> o) { +checkUnnamed3200(core.List<api.ThumbnailDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkThumbnailDetails(o[0]); checkThumbnailDetails(o[1]); @@ -4636,7 +4535,7 @@ if (buildCounterThumbnailSetResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed482(); + o.items = buildUnnamed3200(); o.kind = "foo"; o.visitorId = "foo"; } @@ -4649,7 +4548,7 @@ if (buildCounterThumbnailSetResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed482(o.items); + checkUnnamed3200(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -4671,14 +4570,14 @@ buildCounterTokenPagination--; } -buildUnnamed483() { +buildUnnamed3201() { var o = new core.Map<core.String, api.VideoLocalization>(); o["x"] = buildVideoLocalization(); o["y"] = buildVideoLocalization(); return o; } -checkUnnamed483(core.Map<core.String, api.VideoLocalization> o) { +checkUnnamed3201(core.Map<core.String, api.VideoLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoLocalization(o["x"]); checkVideoLocalization(o["y"]); @@ -4696,7 +4595,7 @@ o.id = "foo"; o.kind = "foo"; o.liveStreamingDetails = buildVideoLiveStreamingDetails(); - o.localizations = buildUnnamed483(); + o.localizations = buildUnnamed3201(); o.monetizationDetails = buildVideoMonetizationDetails(); o.player = buildVideoPlayer(); o.processingDetails = buildVideoProcessingDetails(); @@ -4722,7 +4621,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkVideoLiveStreamingDetails(o.liveStreamingDetails); - checkUnnamed483(o.localizations); + checkUnnamed3201(o.localizations); checkVideoMonetizationDetails(o.monetizationDetails); checkVideoPlayer(o.player); checkVideoProcessingDetails(o.processingDetails); @@ -4789,14 +4688,14 @@ buildCounterVideoAbuseReportReason--; } -buildUnnamed484() { +buildUnnamed3202() { var o = new core.List<api.VideoAbuseReportReason>(); o.add(buildVideoAbuseReportReason()); o.add(buildVideoAbuseReportReason()); return o; } -checkUnnamed484(core.List<api.VideoAbuseReportReason> o) { +checkUnnamed3202(core.List<api.VideoAbuseReportReason> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoAbuseReportReason(o[0]); checkVideoAbuseReportReason(o[1]); @@ -4809,7 +4708,7 @@ if (buildCounterVideoAbuseReportReasonListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed484(); + o.items = buildUnnamed3202(); o.kind = "foo"; o.visitorId = "foo"; } @@ -4823,21 +4722,21 @@ if (buildCounterVideoAbuseReportReasonListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed484(o.items); + checkUnnamed3202(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } buildCounterVideoAbuseReportReasonListResponse--; } -buildUnnamed485() { +buildUnnamed3203() { var o = new core.List<api.VideoAbuseReportSecondaryReason>(); o.add(buildVideoAbuseReportSecondaryReason()); o.add(buildVideoAbuseReportSecondaryReason()); return o; } -checkUnnamed485(core.List<api.VideoAbuseReportSecondaryReason> o) { +checkUnnamed3203(core.List<api.VideoAbuseReportSecondaryReason> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoAbuseReportSecondaryReason(o[0]); checkVideoAbuseReportSecondaryReason(o[1]); @@ -4849,7 +4748,7 @@ buildCounterVideoAbuseReportReasonSnippet++; if (buildCounterVideoAbuseReportReasonSnippet < 3) { o.label = "foo"; - o.secondaryReasons = buildUnnamed485(); + o.secondaryReasons = buildUnnamed3203(); } buildCounterVideoAbuseReportReasonSnippet--; return o; @@ -4859,7 +4758,7 @@ buildCounterVideoAbuseReportReasonSnippet++; if (buildCounterVideoAbuseReportReasonSnippet < 3) { unittest.expect(o.label, unittest.equals('foo')); - checkUnnamed485(o.secondaryReasons); + checkUnnamed3203(o.secondaryReasons); } buildCounterVideoAbuseReportReasonSnippet--; } @@ -4933,14 +4832,14 @@ buildCounterVideoCategory--; } -buildUnnamed486() { +buildUnnamed3204() { var o = new core.List<api.VideoCategory>(); o.add(buildVideoCategory()); o.add(buildVideoCategory()); return o; } -checkUnnamed486(core.List<api.VideoCategory> o) { +checkUnnamed3204(core.List<api.VideoCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoCategory(o[0]); checkVideoCategory(o[1]); @@ -4953,7 +4852,7 @@ if (buildCounterVideoCategoryListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed486(); + o.items = buildUnnamed3204(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4970,7 +4869,7 @@ if (buildCounterVideoCategoryListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed486(o.items); + checkUnnamed3204(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -5041,27 +4940,27 @@ buildCounterVideoContentDetails--; } -buildUnnamed487() { +buildUnnamed3205() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed487(core.List<core.String> o) { +checkUnnamed3205(core.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() { +buildUnnamed3206() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed488(core.List<core.String> o) { +checkUnnamed3206(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5072,8 +4971,8 @@ var o = new api.VideoContentDetailsRegionRestriction(); buildCounterVideoContentDetailsRegionRestriction++; if (buildCounterVideoContentDetailsRegionRestriction < 3) { - o.allowed = buildUnnamed487(); - o.blocked = buildUnnamed488(); + o.allowed = buildUnnamed3205(); + o.blocked = buildUnnamed3206(); } buildCounterVideoContentDetailsRegionRestriction--; return o; @@ -5083,33 +4982,33 @@ api.VideoContentDetailsRegionRestriction o) { buildCounterVideoContentDetailsRegionRestriction++; if (buildCounterVideoContentDetailsRegionRestriction < 3) { - checkUnnamed487(o.allowed); - checkUnnamed488(o.blocked); + checkUnnamed3205(o.allowed); + checkUnnamed3206(o.blocked); } buildCounterVideoContentDetailsRegionRestriction--; } -buildUnnamed489() { +buildUnnamed3207() { var o = new core.List<api.VideoFileDetailsAudioStream>(); o.add(buildVideoFileDetailsAudioStream()); o.add(buildVideoFileDetailsAudioStream()); return o; } -checkUnnamed489(core.List<api.VideoFileDetailsAudioStream> o) { +checkUnnamed3207(core.List<api.VideoFileDetailsAudioStream> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoFileDetailsAudioStream(o[0]); checkVideoFileDetailsAudioStream(o[1]); } -buildUnnamed490() { +buildUnnamed3208() { var o = new core.List<api.VideoFileDetailsVideoStream>(); o.add(buildVideoFileDetailsVideoStream()); o.add(buildVideoFileDetailsVideoStream()); return o; } -checkUnnamed490(core.List<api.VideoFileDetailsVideoStream> o) { +checkUnnamed3208(core.List<api.VideoFileDetailsVideoStream> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoFileDetailsVideoStream(o[0]); checkVideoFileDetailsVideoStream(o[1]); @@ -5120,7 +5019,7 @@ var o = new api.VideoFileDetails(); buildCounterVideoFileDetails++; if (buildCounterVideoFileDetails < 3) { - o.audioStreams = buildUnnamed489(); + o.audioStreams = buildUnnamed3207(); o.bitrateBps = "foo"; o.container = "foo"; o.creationTime = "foo"; @@ -5128,7 +5027,7 @@ o.fileName = "foo"; o.fileSize = "foo"; o.fileType = "foo"; - o.videoStreams = buildUnnamed490(); + o.videoStreams = buildUnnamed3208(); } buildCounterVideoFileDetails--; return o; @@ -5137,7 +5036,7 @@ checkVideoFileDetails(api.VideoFileDetails o) { buildCounterVideoFileDetails++; if (buildCounterVideoFileDetails < 3) { - checkUnnamed489(o.audioStreams); + checkUnnamed3207(o.audioStreams); unittest.expect(o.bitrateBps, unittest.equals('foo')); unittest.expect(o.container, unittest.equals('foo')); unittest.expect(o.creationTime, unittest.equals('foo')); @@ -5145,7 +5044,7 @@ unittest.expect(o.fileName, unittest.equals('foo')); unittest.expect(o.fileSize, unittest.equals('foo')); unittest.expect(o.fileType, unittest.equals('foo')); - checkUnnamed490(o.videoStreams); + checkUnnamed3208(o.videoStreams); } buildCounterVideoFileDetails--; } @@ -5208,14 +5107,14 @@ buildCounterVideoFileDetailsVideoStream--; } -buildUnnamed491() { +buildUnnamed3209() { var o = new core.List<api.VideoRating>(); o.add(buildVideoRating()); o.add(buildVideoRating()); return o; } -checkUnnamed491(core.List<api.VideoRating> o) { +checkUnnamed3209(core.List<api.VideoRating> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoRating(o[0]); checkVideoRating(o[1]); @@ -5228,7 +5127,7 @@ if (buildCounterVideoGetRatingResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed491(); + o.items = buildUnnamed3209(); o.kind = "foo"; o.visitorId = "foo"; } @@ -5241,21 +5140,21 @@ if (buildCounterVideoGetRatingResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed491(o.items); + checkUnnamed3209(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } buildCounterVideoGetRatingResponse--; } -buildUnnamed492() { +buildUnnamed3210() { var o = new core.List<api.Video>(); o.add(buildVideo()); o.add(buildVideo()); return o; } -checkUnnamed492(core.List<api.Video> o) { +checkUnnamed3210(core.List<api.Video> o) { unittest.expect(o, unittest.hasLength(2)); checkVideo(o[0]); checkVideo(o[1]); @@ -5268,7 +5167,7 @@ if (buildCounterVideoListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed492(); + o.items = buildUnnamed3210(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -5285,7 +5184,7 @@ if (buildCounterVideoListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed492(o.items); + checkUnnamed3210(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -5449,14 +5348,14 @@ buildCounterVideoProcessingDetailsProcessingProgress--; } -buildUnnamed493() { +buildUnnamed3211() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed493(core.List<core.String> o) { +checkUnnamed3211(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5467,7 +5366,7 @@ var o = new api.VideoProjectDetails(); buildCounterVideoProjectDetails++; if (buildCounterVideoProjectDetails < 3) { - o.tags = buildUnnamed493(); + o.tags = buildUnnamed3211(); } buildCounterVideoProjectDetails--; return o; @@ -5476,7 +5375,7 @@ checkVideoProjectDetails(api.VideoProjectDetails o) { buildCounterVideoProjectDetails++; if (buildCounterVideoProjectDetails < 3) { - checkUnnamed493(o.tags); + checkUnnamed3211(o.tags); } buildCounterVideoProjectDetails--; } @@ -5526,14 +5425,14 @@ buildCounterVideoRecordingDetails--; } -buildUnnamed494() { +buildUnnamed3212() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed494(core.List<core.String> o) { +checkUnnamed3212(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5553,7 +5452,7 @@ o.liveBroadcastContent = "foo"; o.localized = buildVideoLocalization(); o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); - o.tags = buildUnnamed494(); + o.tags = buildUnnamed3212(); o.thumbnails = buildThumbnailDetails(); o.title = "foo"; } @@ -5574,7 +5473,7 @@ checkVideoLocalization(o.localized); unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed494(o.tags); + checkUnnamed3212(o.tags); checkThumbnailDetails(o.thumbnails); unittest.expect(o.title, unittest.equals('foo')); } @@ -5642,66 +5541,66 @@ buildCounterVideoStatus--; } -buildUnnamed495() { +buildUnnamed3213() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed495(core.List<core.String> o) { +checkUnnamed3213(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed496() { +buildUnnamed3214() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed496(core.List<core.String> o) { +checkUnnamed3214(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed497() { +buildUnnamed3215() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed497(core.List<core.String> o) { +checkUnnamed3215(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed498() { +buildUnnamed3216() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed498(core.List<core.String> o) { +checkUnnamed3216(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed499() { +buildUnnamed3217() { var o = new core.List<api.VideoSuggestionsTagSuggestion>(); o.add(buildVideoSuggestionsTagSuggestion()); o.add(buildVideoSuggestionsTagSuggestion()); return o; } -checkUnnamed499(core.List<api.VideoSuggestionsTagSuggestion> o) { +checkUnnamed3217(core.List<api.VideoSuggestionsTagSuggestion> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoSuggestionsTagSuggestion(o[0]); checkVideoSuggestionsTagSuggestion(o[1]); @@ -5712,11 +5611,11 @@ var o = new api.VideoSuggestions(); buildCounterVideoSuggestions++; if (buildCounterVideoSuggestions < 3) { - o.editorSuggestions = buildUnnamed495(); - o.processingErrors = buildUnnamed496(); - o.processingHints = buildUnnamed497(); - o.processingWarnings = buildUnnamed498(); - o.tagSuggestions = buildUnnamed499(); + o.editorSuggestions = buildUnnamed3213(); + o.processingErrors = buildUnnamed3214(); + o.processingHints = buildUnnamed3215(); + o.processingWarnings = buildUnnamed3216(); + o.tagSuggestions = buildUnnamed3217(); } buildCounterVideoSuggestions--; return o; @@ -5725,23 +5624,23 @@ checkVideoSuggestions(api.VideoSuggestions o) { buildCounterVideoSuggestions++; if (buildCounterVideoSuggestions < 3) { - checkUnnamed495(o.editorSuggestions); - checkUnnamed496(o.processingErrors); - checkUnnamed497(o.processingHints); - checkUnnamed498(o.processingWarnings); - checkUnnamed499(o.tagSuggestions); + checkUnnamed3213(o.editorSuggestions); + checkUnnamed3214(o.processingErrors); + checkUnnamed3215(o.processingHints); + checkUnnamed3216(o.processingWarnings); + checkUnnamed3217(o.tagSuggestions); } buildCounterVideoSuggestions--; } -buildUnnamed500() { +buildUnnamed3218() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed500(core.List<core.String> 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')); @@ -5752,7 +5651,7 @@ var o = new api.VideoSuggestionsTagSuggestion(); buildCounterVideoSuggestionsTagSuggestion++; if (buildCounterVideoSuggestionsTagSuggestion < 3) { - o.categoryRestricts = buildUnnamed500(); + o.categoryRestricts = buildUnnamed3218(); o.tag = "foo"; } buildCounterVideoSuggestionsTagSuggestion--; @@ -5762,46 +5661,46 @@ checkVideoSuggestionsTagSuggestion(api.VideoSuggestionsTagSuggestion o) { buildCounterVideoSuggestionsTagSuggestion++; if (buildCounterVideoSuggestionsTagSuggestion < 3) { - checkUnnamed500(o.categoryRestricts); + checkUnnamed3218(o.categoryRestricts); unittest.expect(o.tag, unittest.equals('foo')); } buildCounterVideoSuggestionsTagSuggestion--; } -buildUnnamed501() { +buildUnnamed3219() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed501(core.List<core.String> 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')); } -buildUnnamed502() { +buildUnnamed3220() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed502(core.List<core.String> 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')); } -buildUnnamed503() { +buildUnnamed3221() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed503(core.List<core.String> 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')); @@ -5812,9 +5711,9 @@ var o = new api.VideoTopicDetails(); buildCounterVideoTopicDetails++; if (buildCounterVideoTopicDetails < 3) { - o.relevantTopicIds = buildUnnamed501(); - o.topicCategories = buildUnnamed502(); - o.topicIds = buildUnnamed503(); + o.relevantTopicIds = buildUnnamed3219(); + o.topicCategories = buildUnnamed3220(); + o.topicIds = buildUnnamed3221(); } buildCounterVideoTopicDetails--; return o; @@ -5823,9 +5722,9 @@ checkVideoTopicDetails(api.VideoTopicDetails o) { buildCounterVideoTopicDetails++; if (buildCounterVideoTopicDetails < 3) { - checkUnnamed501(o.relevantTopicIds); - checkUnnamed502(o.topicCategories); - checkUnnamed503(o.topicIds); + checkUnnamed3219(o.relevantTopicIds); + checkUnnamed3220(o.topicCategories); + checkUnnamed3221(o.topicIds); } buildCounterVideoTopicDetails--; } @@ -6264,30 +6163,6 @@ }); }); - unittest.group("obj-schema-FanFundingEvent", () { - unittest.test("to-json--from-json", () { - var o = buildFanFundingEvent(); - var od = new api.FanFundingEvent.fromJson(o.toJson()); - checkFanFundingEvent(od); - }); - }); - - unittest.group("obj-schema-FanFundingEventListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildFanFundingEventListResponse(); - var od = new api.FanFundingEventListResponse.fromJson(o.toJson()); - checkFanFundingEventListResponse(od); - }); - }); - - unittest.group("obj-schema-FanFundingEventSnippet", () { - unittest.test("to-json--from-json", () { - var o = buildFanFundingEventSnippet(); - var od = new api.FanFundingEventSnippet.fromJson(o.toJson()); - checkFanFundingEventSnippet(od); - }); - }); - unittest.group("obj-schema-GeoPoint", () { unittest.test("to-json--from-json", () { var o = buildGeoPoint(); @@ -8831,75 +8706,6 @@ }); }); - unittest.group("resource-FanFundingEventsResourceApi", () { - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.FanFundingEventsResourceApi res = - new api.YoutubeApi(mock).fanFundingEvents; - var arg_part = "foo"; - var arg_hl = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - 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("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 16), - unittest.equals("fanFundingEvents")); - pathOffset += 16; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["part"].first, unittest.equals(arg_part)); - unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildFanFundingEventListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .list(arg_part, - hl: arg_hl, - maxResults: arg_maxResults, - pageToken: arg_pageToken, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkFanFundingEventListResponse(response); - }))); - }); - }); - unittest.group("resource-GuideCategoriesResourceApi", () { unittest.test("method--list", () { var mock = new HttpServerMock();
diff --git a/generated/googleapis/test/youtubeanalytics/v1_test.dart b/generated/googleapis/test/youtubeanalytics/v1_test.dart index 7c7afb3..5102b55 100644 --- a/generated/googleapis/test/youtubeanalytics/v1_test.dart +++ b/generated/googleapis/test/youtubeanalytics/v1_test.dart
@@ -168,14 +168,14 @@ buildCounterGroupItem--; } -buildUnnamed1914() { +buildUnnamed4060() { var o = new core.List<api.GroupItem>(); o.add(buildGroupItem()); o.add(buildGroupItem()); return o; } -checkUnnamed1914(core.List<api.GroupItem> o) { +checkUnnamed4060(core.List<api.GroupItem> o) { unittest.expect(o, unittest.hasLength(2)); checkGroupItem(o[0]); checkGroupItem(o[1]); @@ -187,7 +187,7 @@ buildCounterGroupItemListResponse++; if (buildCounterGroupItemListResponse < 3) { o.etag = "foo"; - o.items = buildUnnamed1914(); + o.items = buildUnnamed4060(); o.kind = "foo"; } buildCounterGroupItemListResponse--; @@ -198,20 +198,20 @@ buildCounterGroupItemListResponse++; if (buildCounterGroupItemListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1914(o.items); + checkUnnamed4060(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterGroupItemListResponse--; } -buildUnnamed1915() { +buildUnnamed4061() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed1915(core.List<api.Group> o) { +checkUnnamed4061(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -223,7 +223,7 @@ buildCounterGroupListResponse++; if (buildCounterGroupListResponse < 3) { o.etag = "foo"; - o.items = buildUnnamed1915(); + o.items = buildUnnamed4061(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -235,7 +235,7 @@ buildCounterGroupListResponse++; if (buildCounterGroupListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1915(o.items); + checkUnnamed4061(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -265,20 +265,20 @@ buildCounterResultTableColumnHeaders--; } -buildUnnamed1916() { +buildUnnamed4062() { var o = new core.List<api.ResultTableColumnHeaders>(); o.add(buildResultTableColumnHeaders()); o.add(buildResultTableColumnHeaders()); return o; } -checkUnnamed1916(core.List<api.ResultTableColumnHeaders> o) { +checkUnnamed4062(core.List<api.ResultTableColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkResultTableColumnHeaders(o[0]); checkResultTableColumnHeaders(o[1]); } -buildUnnamed1917() { +buildUnnamed4063() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -293,7 +293,7 @@ return o; } -checkUnnamed1917(core.List<core.Object> o) { +checkUnnamed4063(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -307,17 +307,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1918() { +buildUnnamed4064() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed1917()); - o.add(buildUnnamed1917()); + o.add(buildUnnamed4063()); + o.add(buildUnnamed4063()); return o; } -checkUnnamed1918(core.List<core.List<core.Object>> o) { +checkUnnamed4064(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1917(o[0]); - checkUnnamed1917(o[1]); + checkUnnamed4063(o[0]); + checkUnnamed4063(o[1]); } core.int buildCounterResultTable = 0; @@ -325,9 +325,9 @@ var o = new api.ResultTable(); buildCounterResultTable++; if (buildCounterResultTable < 3) { - o.columnHeaders = buildUnnamed1916(); + o.columnHeaders = buildUnnamed4062(); o.kind = "foo"; - o.rows = buildUnnamed1918(); + o.rows = buildUnnamed4064(); } buildCounterResultTable--; return o; @@ -336,9 +336,9 @@ checkResultTable(api.ResultTable o) { buildCounterResultTable++; if (buildCounterResultTable < 3) { - checkUnnamed1916(o.columnHeaders); + checkUnnamed4062(o.columnHeaders); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1918(o.rows); + checkUnnamed4064(o.rows); } buildCounterResultTable--; }
diff --git a/generated/googleapis/test/youtubereporting/v1_test.dart b/generated/googleapis/test/youtubereporting/v1_test.dart index 79be8a7..cb0b55c 100644 --- a/generated/googleapis/test/youtubereporting/v1_test.dart +++ b/generated/googleapis/test/youtubereporting/v1_test.dart
@@ -290,14 +290,14 @@ buildCounterGdataDownloadParameters--; } -buildUnnamed2318() { +buildUnnamed4306() { var o = new core.List<api.GdataCompositeMedia>(); o.add(buildGdataCompositeMedia()); o.add(buildGdataCompositeMedia()); return o; } -checkUnnamed2318(core.List<api.GdataCompositeMedia> o) { +checkUnnamed4306(core.List<api.GdataCompositeMedia> o) { unittest.expect(o, unittest.hasLength(2)); checkGdataCompositeMedia(o[0]); checkGdataCompositeMedia(o[1]); @@ -312,7 +312,7 @@ o.bigstoreObjectRef = "foo"; o.blobRef = "foo"; o.blobstore2Info = buildGdataBlobstore2Info(); - o.compositeMedia = buildUnnamed2318(); + o.compositeMedia = buildUnnamed4306(); o.contentType = "foo"; o.contentTypeInfo = buildGdataContentTypeInfo(); o.cosmoBinaryReference = "foo"; @@ -350,7 +350,7 @@ unittest.expect(o.bigstoreObjectRef, unittest.equals('foo')); unittest.expect(o.blobRef, unittest.equals('foo')); checkGdataBlobstore2Info(o.blobstore2Info); - checkUnnamed2318(o.compositeMedia); + checkUnnamed4306(o.compositeMedia); unittest.expect(o.contentType, unittest.equals('foo')); checkGdataContentTypeInfo(o.contentTypeInfo); unittest.expect(o.cosmoBinaryReference, unittest.equals('foo')); @@ -432,14 +432,14 @@ buildCounterJob--; } -buildUnnamed2319() { +buildUnnamed4307() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed2319(core.List<api.Job> o) { +checkUnnamed4307(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -450,7 +450,7 @@ var o = new api.ListJobsResponse(); buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - o.jobs = buildUnnamed2319(); + o.jobs = buildUnnamed4307(); o.nextPageToken = "foo"; } buildCounterListJobsResponse--; @@ -460,20 +460,20 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed2319(o.jobs); + checkUnnamed4307(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobsResponse--; } -buildUnnamed2320() { +buildUnnamed4308() { var o = new core.List<api.ReportType>(); o.add(buildReportType()); o.add(buildReportType()); return o; } -checkUnnamed2320(core.List<api.ReportType> o) { +checkUnnamed4308(core.List<api.ReportType> o) { unittest.expect(o, unittest.hasLength(2)); checkReportType(o[0]); checkReportType(o[1]); @@ -485,7 +485,7 @@ buildCounterListReportTypesResponse++; if (buildCounterListReportTypesResponse < 3) { o.nextPageToken = "foo"; - o.reportTypes = buildUnnamed2320(); + o.reportTypes = buildUnnamed4308(); } buildCounterListReportTypesResponse--; return o; @@ -495,19 +495,19 @@ buildCounterListReportTypesResponse++; if (buildCounterListReportTypesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2320(o.reportTypes); + checkUnnamed4308(o.reportTypes); } buildCounterListReportTypesResponse--; } -buildUnnamed2321() { +buildUnnamed4309() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed2321(core.List<api.Report> o) { +checkUnnamed4309(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -519,7 +519,7 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { o.nextPageToken = "foo"; - o.reports = buildUnnamed2321(); + o.reports = buildUnnamed4309(); } buildCounterListReportsResponse--; return o; @@ -529,7 +529,7 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2321(o.reports); + checkUnnamed4309(o.reports); } buildCounterListReportsResponse--; }