Api-Roll 52: 2017-07-31 R=vegorov@google.com Review-Url: https://codereview.chromium.org//2987103002 .
diff --git a/generated/googleapis/CHANGELOG.md b/generated/googleapis/CHANGELOG.md index 46e776a..fb75dbd 100644 --- a/generated/googleapis/CHANGELOG.md +++ b/generated/googleapis/CHANGELOG.md
@@ -1,3 +1,13 @@ +## 0.42.0 + +* [api-new] androiddeviceprovisioning:v1 +* [api-new] streetviewpublish:v1 +* [api-new] playcustomapp:v1 +* [api-new] vault:v1 +* [api-new] androidmanagement:v1 +* [api-removed] dataproc:v1beta2 +* [api-removed] tracing:v2 + ## 0.41.0 * [api-new] dataproc:v1beta2
diff --git a/generated/googleapis/README.md b/generated/googleapis/README.md index 140b7b4..8293d31 100644 --- a/generated/googleapis/README.md +++ b/generated/googleapis/README.md
@@ -70,7 +70,7 @@ ####  Accelerated Mobile Pages (AMP) URL API - acceleratedmobilepageurl v1 -Retrieves the list of AMP URL (and equivalent AMP Cache URL) for a given list of public URL(s). +Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s). Official API documentation: https://developers.google.com/amp/cache/ @@ -147,12 +147,24 @@ Official API documentation: https://developers.google.com/analytics/devguides/reporting/core/v4/ +####  Android Device Provisioning Partner API - androiddeviceprovisioning v1 + +Android Device Provisioning Partner API + +Official API documentation: https://developers.google.com/zero-touch/ + ####  Google Play EMM API - androidenterprise v1 Manages the deployment of apps to Android for Work users. Official API documentation: https://developers.google.com/android/work/play/emm-api +####  Android Management API - androidmanagement v1 + +The Android Management API provides remote enterprise management of Android devices and apps. + +Official API documentation: https://developers.google.com/android/management + ####  Google Play Developer API - androidpublisher v2 Lets Android application developers access their Google Play accounts. @@ -263,6 +275,13 @@ Official API documentation: https://cloud.google.com/resource-manager +####  Stackdriver Trace API - cloudtrace v1 + +Send and retrieve trace data from Stackdriver Trace. Data is generated and available by default for all App Engine applications. Data from other applications can be written to Stackdriver Trace for display, reporting, and analysis. + + +Official API documentation: https://cloud.google.com/trace + ####  Stackdriver Trace API - cloudtrace v2 Send and retrieve trace data from Stackdriver Trace. Data is generated and available by default for all App Engine applications. Data from other applications can be written to Stackdriver Trace for display, reporting, and analysis. @@ -310,12 +329,6 @@ Official API documentation: https://cloud.google.com/dataproc/ -####  Google Cloud Dataproc API - dataproc v1beta2 - -Manages Hadoop-based clusters and jobs on Google Cloud Platform. - -Official API documentation: https://cloud.google.com/dataproc/ - ####  Google Cloud Datastore API - datastore v1 Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application. @@ -534,6 +547,12 @@ Official API documentation: https://developers.google.com/people/ +####  Google Play Custom App Publishing API - playcustomapp v1 + +An API to publish custom Android apps. + +Official API documentation: https://developers.google.com/android/work/play/custom-app-api + ####  Google Play Movies Partner API - playmoviespartner v1 Gets the delivery status of titles for Google Play Movies Partners. @@ -669,7 +688,7 @@ ####  Street View Publish API - streetviewpublish v1 -The Street View Publish API allows your application to publish 360 photos to Google Maps, along with image metadata that specifies the position, orientation, and connectivity of each photo. With this API, any app can offer an interface for positioning, connecting, and uploading user-generated Street View images. +Publishes 360 photos to Google Maps, along with position, orientation, and connectivity metadata. Apps can offer an interface for positioning, connecting, and uploading user-generated Street View images. Official API documentation: https://developers.google.com/streetview/publish/ @@ -709,6 +728,12 @@ Official API documentation: https://developers.google.com/url-shortener/v1/getting_started +####  Google Vault API - vault v1 + + + +Official API documentation: https://apps.google.com/products/vault/ + ####  Google 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.
diff --git a/generated/googleapis/lib/acceleratedmobilepageurl/v1.dart b/generated/googleapis/lib/acceleratedmobilepageurl/v1.dart index 1d21d41..aaf60d6 100644 --- a/generated/googleapis/lib/acceleratedmobilepageurl/v1.dart +++ b/generated/googleapis/lib/acceleratedmobilepageurl/v1.dart
@@ -15,8 +15,8 @@ const core.String USER_AGENT = 'dart-api-client acceleratedmobilepageurl/v1'; /** - * Retrieves the list of AMP URL (and equivalent AMP Cache URL) for a given list - * of public URL(s). + * Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given + * list of public URL(s). */ class AcceleratedmobilepageurlApi {
diff --git a/generated/googleapis/lib/admin/directory_v1.dart b/generated/googleapis/lib/admin/directory_v1.dart index 8190043..deecd52 100644 --- a/generated/googleapis/lib/admin/directory_v1.dart +++ b/generated/googleapis/lib/admin/directory_v1.dart
@@ -518,6 +518,56 @@ } /** + * Move or insert multiple Chrome OS Devices to Organization Unit + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [customerId] - Immutable ID of the G Suite account + * + * [orgUnitPath] - Full path of the target organization unit or its Id + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future moveDevicesToOu(ChromeOsMoveDevicesToOu request, core.String customerId, core.String orgUnitPath) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (customerId == null) { + throw new core.ArgumentError("Parameter customerId is required."); + } + if (orgUnitPath == null) { + throw new core.ArgumentError("Parameter orgUnitPath is required."); + } + _queryParams["orgUnitPath"] = [orgUnitPath]; + + _downloadOptions = null; + + _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/devices/chromeos/moveDevicesToOu'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => null); + } + + /** * Update Chrome OS Device. This method supports patch semantics. * * [request] - The metadata request object. @@ -5801,6 +5851,31 @@ } } +/** + * JSON request template for moving ChromeOs Device to given OU in Directory + * Devices API. + */ +class ChromeOsMoveDevicesToOu { + /** ChromeOs Devices to be moved to OU */ + core.List<core.String> deviceIds; + + ChromeOsMoveDevicesToOu(); + + ChromeOsMoveDevicesToOu.fromJson(core.Map _json) { + if (_json.containsKey("deviceIds")) { + deviceIds = _json["deviceIds"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (deviceIds != null) { + _json["deviceIds"] = deviceIds; + } + return _json; + } +} + /** JSON template for Customer Resource object in Directory API. */ class Customer { /** @@ -8004,6 +8079,13 @@ core.bool isEnrolledIn2Sv; /** Is mailbox setup (Read-only) */ core.bool isMailboxSetup; + /** + * + * + * 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.Object keywords; /** Kind of resource this is. */ core.String kind; /** @@ -8156,6 +8238,9 @@ if (_json.containsKey("isMailboxSetup")) { isMailboxSetup = _json["isMailboxSetup"]; } + if (_json.containsKey("keywords")) { + keywords = _json["keywords"]; + } if (_json.containsKey("kind")) { kind = _json["kind"]; } @@ -8283,6 +8368,9 @@ if (isMailboxSetup != null) { _json["isMailboxSetup"] = isMailboxSetup; } + if (keywords != null) { + _json["keywords"] = keywords; + } if (kind != null) { _json["kind"] = kind; } @@ -8716,6 +8804,50 @@ } } +/** JSON template for a keyword entry. */ +class UserKeyword { + /** Custom Type. */ + core.String customType; + /** + * Each entry can have a type which indicates standard type of that entry. For + * example, keyword could be of type occupation or outlook. In addition to the + * standard type, an entry can have a custom type and can give it any name. + * Such types should have the CUSTOM value as type and also have a customType + * value. + */ + core.String type; + /** Keyword. */ + core.String value; + + UserKeyword(); + + UserKeyword.fromJson(core.Map _json) { + if (_json.containsKey("customType")) { + customType = _json["customType"]; + } + 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 (customType != null) { + _json["customType"] = customType; + } + if (type != null) { + _json["type"] = type; + } + if (value != null) { + _json["value"] = value; + } + return _json; + } +} + /** JSON template for a language entry. */ class UserLanguage { /**
diff --git a/generated/googleapis/lib/analytics/v3.dart b/generated/googleapis/lib/analytics/v3.dart index f4a24a3..2c644fb 100644 --- a/generated/googleapis/lib/analytics/v3.dart +++ b/generated/googleapis/lib/analytics/v3.dart
@@ -9306,7 +9306,10 @@ core.String remarketingAudienceId; /** The status of this foreign account link. */ core.String status; - /** The type of the foreign account. For example `ADWORDS_LINKS`. */ + /** + * The type of the foreign account. For example, `ADWORDS_LINKS`, `DBM_LINKS`, + * `MCC_LINKS` or `OPTIMIZE`. + */ core.String type; /** * Web property ID of the form UA-XXXXX-YY to which this linked foreign
diff --git a/generated/googleapis/lib/androiddeviceprovisioning/v1.dart b/generated/googleapis/lib/androiddeviceprovisioning/v1.dart new file mode 100644 index 0000000..6e9b977 --- /dev/null +++ b/generated/googleapis/lib/androiddeviceprovisioning/v1.dart
@@ -0,0 +1,1660 @@ +// This is a generated file (see the discoveryapis_generator project). + +library googleapis.androiddeviceprovisioning.v1; + +import 'dart:core' as core; +import 'dart:async' as async; +import 'dart:convert' as convert; + +import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; +import 'package:http/http.dart' as http; + +export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show + ApiRequestError, DetailedApiRequestError; + +const core.String USER_AGENT = 'dart-api-client androiddeviceprovisioning/v1'; + +/** Android Device Provisioning Partner API */ +class AndroiddeviceprovisioningApi { + + final commons.ApiRequester _requester; + + OperationsResourceApi get operations => new OperationsResourceApi(_requester); + PartnersResourceApi get partners => new PartnersResourceApi(_requester); + + AndroiddeviceprovisioningApi(http.Client client, {core.String rootUrl: "https://androiddeviceprovisioning.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; + + /** + * 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/.+$". + * + * 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) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + +} + + +class PartnersResourceApi { + final commons.ApiRequester _requester; + + PartnersCustomersResourceApi get customers => new PartnersCustomersResourceApi(_requester); + PartnersDevicesResourceApi get devices => new PartnersDevicesResourceApi(_requester); + + PartnersResourceApi(commons.ApiRequester client) : + _requester = client; +} + + +class PartnersCustomersResourceApi { + final commons.ApiRequester _requester; + + PartnersCustomersResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * List all the customers that has delegates some role to this customer. + * + * Request parameters: + * + * [partnerId] - the id of the partner. + * Value must have pattern "^[^/]+$". + * + * Completes with a [ListCustomersResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ListCustomersResponse> list(core.String partnerId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (partnerId == null) { + throw new core.ArgumentError("Parameter partnerId is required."); + } + + _url = 'v1/partners/' + commons.Escaper.ecapeVariableReserved('$partnerId') + '/customers'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListCustomersResponse.fromJson(data)); + } + +} + + +class PartnersDevicesResourceApi { + final commons.ApiRequester _requester; + + PartnersDevicesResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Claim the device identified by device identifier. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [partnerId] - Id of the partner. + * Value must have pattern "^[^/]+$". + * + * Completes with a [ClaimDeviceResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ClaimDeviceResponse> claim(ClaimDeviceRequest request, core.String partnerId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (partnerId == null) { + throw new core.ArgumentError("Parameter partnerId is required."); + } + + _url = 'v1/partners/' + commons.Escaper.ecapeVariableReserved('$partnerId') + '/devices:claim'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ClaimDeviceResponse.fromJson(data)); + } + + /** + * Claim devices asynchronously + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [partnerId] - partner id. + * Value must have pattern "^[^/]+$". + * + * 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> claimAsync(ClaimDevicesRequest request, core.String partnerId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (partnerId == null) { + throw new core.ArgumentError("Parameter partnerId is required."); + } + + _url = 'v1/partners/' + commons.Escaper.ecapeVariableReserved('$partnerId') + '/devices:claimAsync'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** + * Find devices by device identifier. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [partnerId] - id of the partner. + * Value must have pattern "^[^/]+$". + * + * Completes with a [FindDevicesByDeviceIdentifierResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<FindDevicesByDeviceIdentifierResponse> findByIdentifier(FindDevicesByDeviceIdentifierRequest request, core.String partnerId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (partnerId == null) { + throw new core.ArgumentError("Parameter partnerId is required."); + } + + _url = 'v1/partners/' + commons.Escaper.ecapeVariableReserved('$partnerId') + '/devices:findByIdentifier'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new FindDevicesByDeviceIdentifierResponse.fromJson(data)); + } + + /** + * Find devices by ownership. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [partnerId] - id of the partner. + * Value must have pattern "^[^/]+$". + * + * Completes with a [FindDevicesByOwnerResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<FindDevicesByOwnerResponse> findByOwner(FindDevicesByOwnerRequest request, core.String partnerId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (partnerId == null) { + throw new core.ArgumentError("Parameter partnerId is required."); + } + + _url = 'v1/partners/' + commons.Escaper.ecapeVariableReserved('$partnerId') + '/devices:findByOwner'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new FindDevicesByOwnerResponse.fromJson(data)); + } + + /** + * Get a device + * + * Request parameters: + * + * [name] - resource name in 'partners/[PARTNER_ID]/devices/[DEVICE_ID]'. + * Value must have pattern "^partners/[^/]+/devices/[^/]+$". + * + * 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) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Device.fromJson(data)); + } + + /** + * Update the metadata + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [metadataOwnerId] - The owner of the newly set metadata. Should be partner + * id itself. + * Value must have pattern "^[^/]+$". + * + * [deviceId] - id of the partner. + * Value must have pattern "^[^/]+$". + * + * Completes with a [DeviceMetadata]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<DeviceMetadata> metadata(UpdateDeviceMetadataRequest request, core.String metadataOwnerId, core.String deviceId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (metadataOwnerId == null) { + throw new core.ArgumentError("Parameter metadataOwnerId is required."); + } + if (deviceId == null) { + throw new core.ArgumentError("Parameter deviceId is required."); + } + + _url = 'v1/partners/' + commons.Escaper.ecapeVariableReserved('$metadataOwnerId') + '/devices/' + commons.Escaper.ecapeVariableReserved('$deviceId') + '/metadata'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new DeviceMetadata.fromJson(data)); + } + + /** + * Unclaim the device identified by device_id or identifier. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [partnerId] - Id of the partner. + * Value must have pattern "^[^/]+$". + * + * 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> unclaim(UnclaimDeviceRequest request, core.String partnerId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (partnerId == null) { + throw new core.ArgumentError("Parameter partnerId is required."); + } + + _url = 'v1/partners/' + commons.Escaper.ecapeVariableReserved('$partnerId') + '/devices:unclaim'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Empty.fromJson(data)); + } + + /** + * Unclaim devices asynchronously + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [partnerId] - partner id. + * Value must have pattern "^[^/]+$". + * + * 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> unclaimAsync(UnclaimDevicesRequest request, core.String partnerId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (partnerId == null) { + throw new core.ArgumentError("Parameter partnerId is required."); + } + + _url = 'v1/partners/' + commons.Escaper.ecapeVariableReserved('$partnerId') + '/devices:unclaimAsync'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** + * Set metadata in batch asynchronously. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [partnerId] - partner id. + * Value must have pattern "^[^/]+$". + * + * 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> updateMetadataAsync(UpdateDeviceMetadataInBatchRequest request, core.String partnerId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (partnerId == null) { + throw new core.ArgumentError("Parameter partnerId is required."); + } + + _url = 'v1/partners/' + commons.Escaper.ecapeVariableReserved('$partnerId') + '/devices:updateMetadataAsync'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + +} + + + +/** Request message to claim a device on behalf of a customer. */ +class ClaimDeviceRequest { + /** The customer to claim for. */ + core.String customerId; + /** The device identifier of the device to claim. */ + DeviceIdentifier deviceIdentifier; + /** + * Section to claim + * Possible string values are: + * - "SECTION_TYPE_UNSPECIFIED" : Unspecified + * - "SECTION_TYPE_ZERO_TOUCH" : Zero touch + */ + core.String sectionType; + + ClaimDeviceRequest(); + + ClaimDeviceRequest.fromJson(core.Map _json) { + if (_json.containsKey("customerId")) { + customerId = _json["customerId"]; + } + if (_json.containsKey("deviceIdentifier")) { + deviceIdentifier = new DeviceIdentifier.fromJson(_json["deviceIdentifier"]); + } + if (_json.containsKey("sectionType")) { + sectionType = _json["sectionType"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (customerId != null) { + _json["customerId"] = customerId; + } + if (deviceIdentifier != null) { + _json["deviceIdentifier"] = (deviceIdentifier).toJson(); + } + if (sectionType != null) { + _json["sectionType"] = sectionType; + } + return _json; + } +} + +/** Response message containing device id of the claim. */ +class ClaimDeviceResponse { + /** the device id of the claimed device. */ + core.String deviceId; + /** + * the resource name of the device in + * 'partners/[PARTNER_ID]/devices/[DEVICE_ID]'. + */ + core.String deviceName; + + ClaimDeviceResponse(); + + ClaimDeviceResponse.fromJson(core.Map _json) { + if (_json.containsKey("deviceId")) { + deviceId = _json["deviceId"]; + } + if (_json.containsKey("deviceName")) { + deviceName = _json["deviceName"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (deviceId != null) { + _json["deviceId"] = deviceId; + } + if (deviceName != null) { + _json["deviceName"] = deviceName; + } + return _json; + } +} + +/** Request to claim devices asynchronously in batch. */ +class ClaimDevicesRequest { + /** list of claims. */ + core.List<PartnerClaim> claims; + + ClaimDevicesRequest(); + + ClaimDevicesRequest.fromJson(core.Map _json) { + if (_json.containsKey("claims")) { + claims = _json["claims"].map((value) => new PartnerClaim.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 (claims != null) { + _json["claims"] = claims.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** Company */ +class Company { + /** company id */ + core.String companyId; + /** company name */ + core.String companyName; + + Company(); + + Company.fromJson(core.Map _json) { + if (_json.containsKey("companyId")) { + companyId = _json["companyId"]; + } + if (_json.containsKey("companyName")) { + companyName = _json["companyName"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (companyId != null) { + _json["companyId"] = companyId; + } + if (companyName != null) { + _json["companyName"] = companyName; + } + return _json; + } +} + +/** Device */ +class Device { + /** claims */ + core.List<DeviceClaim> claims; + /** Device id */ + core.String deviceId; + /** Device identifier */ + DeviceIdentifier deviceIdentifier; + /** Device metadata */ + DeviceMetadata deviceMetadata; + /** Resource name in 'partners/[PARTNER_ID]/devices/[DEVICE_ID]'. */ + core.String name; + + Device(); + + Device.fromJson(core.Map _json) { + if (_json.containsKey("claims")) { + claims = _json["claims"].map((value) => new DeviceClaim.fromJson(value)).toList(); + } + if (_json.containsKey("deviceId")) { + deviceId = _json["deviceId"]; + } + if (_json.containsKey("deviceIdentifier")) { + deviceIdentifier = new DeviceIdentifier.fromJson(_json["deviceIdentifier"]); + } + if (_json.containsKey("deviceMetadata")) { + deviceMetadata = new DeviceMetadata.fromJson(_json["deviceMetadata"]); + } + 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 (claims != null) { + _json["claims"] = claims.map((value) => (value).toJson()).toList(); + } + if (deviceId != null) { + _json["deviceId"] = deviceId; + } + if (deviceIdentifier != null) { + _json["deviceIdentifier"] = (deviceIdentifier).toJson(); + } + if (deviceMetadata != null) { + _json["deviceMetadata"] = (deviceMetadata).toJson(); + } + if (name != null) { + _json["name"] = name; + } + return _json; + } +} + +/** containing the necessary info about a claim for a partner. */ +class DeviceClaim { + /** owner id */ + core.String ownerCompanyId; + /** + * section type. + * Possible string values are: + * - "SECTION_TYPE_UNSPECIFIED" : Unspecified + * - "SECTION_TYPE_ZERO_TOUCH" : Zero touch + */ + core.String sectionType; + + DeviceClaim(); + + DeviceClaim.fromJson(core.Map _json) { + if (_json.containsKey("ownerCompanyId")) { + ownerCompanyId = _json["ownerCompanyId"]; + } + if (_json.containsKey("sectionType")) { + sectionType = _json["sectionType"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (ownerCompanyId != null) { + _json["ownerCompanyId"] = ownerCompanyId; + } + if (sectionType != null) { + _json["sectionType"] = sectionType; + } + return _json; + } +} + +/** DeviceIdentifiers identifies an unique device. */ +class DeviceIdentifier { + /** IMEI (either IMEI or MEID is required). */ + core.String imei; + /** Manufacturer to match android.os.Build.MANUFACTURER (required). */ + core.String manufacturer; + /** MEID */ + core.String meid; + /** Model to match android.os.Build.MODEL (required). */ + core.String model; + /** Serial number (optional) */ + core.String serialNumber; + + DeviceIdentifier(); + + DeviceIdentifier.fromJson(core.Map _json) { + if (_json.containsKey("imei")) { + imei = _json["imei"]; + } + if (_json.containsKey("manufacturer")) { + manufacturer = _json["manufacturer"]; + } + if (_json.containsKey("meid")) { + meid = _json["meid"]; + } + if (_json.containsKey("model")) { + model = _json["model"]; + } + if (_json.containsKey("serialNumber")) { + serialNumber = _json["serialNumber"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (imei != null) { + _json["imei"] = imei; + } + if (manufacturer != null) { + _json["manufacturer"] = manufacturer; + } + if (meid != null) { + _json["meid"] = meid; + } + if (model != null) { + _json["model"] = model; + } + if (serialNumber != null) { + _json["serialNumber"] = serialNumber; + } + return _json; + } +} + +/** metadata */ +class DeviceMetadata { + /** Metadata entries */ + core.Map<core.String, core.String> entries; + + DeviceMetadata(); + + DeviceMetadata.fromJson(core.Map _json) { + if (_json.containsKey("entries")) { + entries = _json["entries"]; + } + } + + 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; + } + return _json; + } +} + +/** Long running operation metadata. */ +class DevicesLongRunningOperationMetadata { + /** Number of devices parsed in your requests. */ + core.int devicesCount; + /** + * The overall processing status. + * Possible string values are: + * - "BATCH_PROCESS_STATUS_UNSPECIFIED" : Invalid code. Shouldn't be used. + * - "BATCH_PROCESS_PENDING" : Pending + * - "BATCH_PROCESS_IN_PROGRESS" : In progress + * - "BATCH_PROCESS_PROCESSED" : Processed. + * This doesn't mean all items were processed sucessfully, you should + * check the `response` field for the result of every item. + */ + core.String processingStatus; + /** Processing progress from 0 to 100. */ + core.int progress; + + DevicesLongRunningOperationMetadata(); + + DevicesLongRunningOperationMetadata.fromJson(core.Map _json) { + if (_json.containsKey("devicesCount")) { + devicesCount = _json["devicesCount"]; + } + if (_json.containsKey("processingStatus")) { + processingStatus = _json["processingStatus"]; + } + if (_json.containsKey("progress")) { + progress = _json["progress"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (devicesCount != null) { + _json["devicesCount"] = devicesCount; + } + if (processingStatus != null) { + _json["processingStatus"] = processingStatus; + } + if (progress != null) { + _json["progress"] = progress; + } + return _json; + } +} + +/** Long running operation response. */ +class DevicesLongRunningOperationResponse { + /** + * processing status for each device. + * One PerDeviceStatus per device. The order is the same as in your requests. + */ + core.List<OperationPerDevice> perDeviceStatus; + /** Number of succeesfully processed ones. */ + core.int successCount; + + DevicesLongRunningOperationResponse(); + + DevicesLongRunningOperationResponse.fromJson(core.Map _json) { + if (_json.containsKey("perDeviceStatus")) { + perDeviceStatus = _json["perDeviceStatus"].map((value) => new OperationPerDevice.fromJson(value)).toList(); + } + if (_json.containsKey("successCount")) { + successCount = _json["successCount"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (perDeviceStatus != null) { + _json["perDeviceStatus"] = perDeviceStatus.map((value) => (value).toJson()).toList(); + } + if (successCount != null) { + _json["successCount"] = successCount; + } + 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 to find devices. */ +class FindDevicesByDeviceIdentifierRequest { + /** The device identifier to search */ + DeviceIdentifier deviceIdentifier; + /** Number of devices to show. */ + core.String limit; + /** Page token */ + core.String pageToken; + + FindDevicesByDeviceIdentifierRequest(); + + FindDevicesByDeviceIdentifierRequest.fromJson(core.Map _json) { + if (_json.containsKey("deviceIdentifier")) { + deviceIdentifier = new DeviceIdentifier.fromJson(_json["deviceIdentifier"]); + } + if (_json.containsKey("limit")) { + limit = _json["limit"]; + } + if (_json.containsKey("pageToken")) { + pageToken = _json["pageToken"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (deviceIdentifier != null) { + _json["deviceIdentifier"] = (deviceIdentifier).toJson(); + } + if (limit != null) { + _json["limit"] = limit; + } + if (pageToken != null) { + _json["pageToken"] = pageToken; + } + return _json; + } +} + +/** Response containing found devices. */ +class FindDevicesByDeviceIdentifierResponse { + /** Found devices. */ + core.List<Device> devices; + /** Page token of next page */ + core.String nextPageToken; + + FindDevicesByDeviceIdentifierResponse(); + + FindDevicesByDeviceIdentifierResponse.fromJson(core.Map _json) { + if (_json.containsKey("devices")) { + devices = _json["devices"].map((value) => new Device.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 (devices != null) { + _json["devices"] = devices.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + +/** Request to find devices by customers. */ +class FindDevicesByOwnerRequest { + /** List of customer ids to search for. */ + core.List<core.String> customerId; + /** The number of devices to show in the result. */ + core.String limit; + /** Page token */ + core.String pageToken; + /** + * The section type. + * Possible string values are: + * - "SECTION_TYPE_UNSPECIFIED" : Unspecified + * - "SECTION_TYPE_ZERO_TOUCH" : Zero touch + */ + core.String sectionType; + + FindDevicesByOwnerRequest(); + + FindDevicesByOwnerRequest.fromJson(core.Map _json) { + if (_json.containsKey("customerId")) { + customerId = _json["customerId"]; + } + if (_json.containsKey("limit")) { + limit = _json["limit"]; + } + if (_json.containsKey("pageToken")) { + pageToken = _json["pageToken"]; + } + if (_json.containsKey("sectionType")) { + sectionType = _json["sectionType"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (customerId != null) { + _json["customerId"] = customerId; + } + if (limit != null) { + _json["limit"] = limit; + } + if (pageToken != null) { + _json["pageToken"] = pageToken; + } + if (sectionType != null) { + _json["sectionType"] = sectionType; + } + return _json; + } +} + +/** Response containing found devices. */ +class FindDevicesByOwnerResponse { + /** Devices found. */ + core.List<Device> devices; + /** Page token of next page */ + core.String nextPageToken; + + FindDevicesByOwnerResponse(); + + FindDevicesByOwnerResponse.fromJson(core.Map _json) { + if (_json.containsKey("devices")) { + devices = _json["devices"].map((value) => new Device.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 (devices != null) { + _json["devices"] = devices.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + +/** Response message of all customers related to this partner. */ +class ListCustomersResponse { + /** List of customers related to this partner. */ + core.List<Company> customers; + + ListCustomersResponse(); + + ListCustomersResponse.fromJson(core.Map _json) { + if (_json.containsKey("customers")) { + customers = _json["customers"].map((value) => new Company.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 (customers != null) { + _json["customers"] = customers.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** + * This resource represents a long-running operation that is the result of a + * network API call. + */ +class Operation { + /** + * If the value is `false`, it means the operation is still in progress. + * If true, the operation is completed, and either `error` or `response` is + * available. + */ + core.bool done; + /** + * This field will always be not set if the operation is created by + * `claimAsync`, `unclaimAsync`, or `updateMetadataAsync`. In this case, error + * information for each device is set in + * `response.perDeviceStatus.result.status`. + */ + Status error; + /** + * This field will contain a `DevicesLongRunningOperationMetadata` object if + * the operation is created by `claimAsync`, `unclaimAsync`, or + * `updateMetadataAsync`. + * + * 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; + /** + * This field will contain a `DevicesLongRunningOperationResponse` object if + * the operation is created by `claimAsync`, `unclaimAsync`, or + * `updateMetadataAsync`. + * + * The values for Object must be JSON objects. It can consist of `num`, + * `String`, `bool` and `null` as well as `Map` and `List` values. + */ + core.Map<core.String, core.Object> response; + + Operation(); + + Operation.fromJson(core.Map _json) { + if (_json.containsKey("done")) { + done = _json["done"]; + } + if (_json.containsKey("error")) { + error = new Status.fromJson(_json["error"]); + } + if (_json.containsKey("metadata")) { + metadata = _json["metadata"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("response")) { + response = _json["response"]; + } + } + + core.Map<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; + } +} + +/** Operation the server received for every device. */ +class OperationPerDevice { + /** Request to claim a device. */ + PartnerClaim claim; + /** Processing result for every device. */ + PerDeviceStatusInBatch result; + /** Request to unclaim a device. */ + PartnerUnclaim unclaim; + /** Request to set metadata for a device. */ + UpdateMetadataArguments updateMetadata; + + OperationPerDevice(); + + OperationPerDevice.fromJson(core.Map _json) { + if (_json.containsKey("claim")) { + claim = new PartnerClaim.fromJson(_json["claim"]); + } + if (_json.containsKey("result")) { + result = new PerDeviceStatusInBatch.fromJson(_json["result"]); + } + if (_json.containsKey("unclaim")) { + unclaim = new PartnerUnclaim.fromJson(_json["unclaim"]); + } + if (_json.containsKey("updateMetadata")) { + updateMetadata = new UpdateMetadataArguments.fromJson(_json["updateMetadata"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (claim != null) { + _json["claim"] = (claim).toJson(); + } + if (result != null) { + _json["result"] = (result).toJson(); + } + if (unclaim != null) { + _json["unclaim"] = (unclaim).toJson(); + } + if (updateMetadata != null) { + _json["updateMetadata"] = (updateMetadata).toJson(); + } + return _json; + } +} + +/** Identifies one claim request. */ +class PartnerClaim { + /** customer id to claim for. */ + core.String customerId; + /** Device identifier of the device. */ + DeviceIdentifier deviceIdentifier; + /** metadata to set at claim. */ + DeviceMetadata deviceMetadata; + /** + * section type to claim. + * Possible string values are: + * - "SECTION_TYPE_UNSPECIFIED" : Unspecified + * - "SECTION_TYPE_ZERO_TOUCH" : Zero touch + */ + core.String sectionType; + + PartnerClaim(); + + PartnerClaim.fromJson(core.Map _json) { + if (_json.containsKey("customerId")) { + customerId = _json["customerId"]; + } + if (_json.containsKey("deviceIdentifier")) { + deviceIdentifier = new DeviceIdentifier.fromJson(_json["deviceIdentifier"]); + } + if (_json.containsKey("deviceMetadata")) { + deviceMetadata = new DeviceMetadata.fromJson(_json["deviceMetadata"]); + } + if (_json.containsKey("sectionType")) { + sectionType = _json["sectionType"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (customerId != null) { + _json["customerId"] = customerId; + } + if (deviceIdentifier != null) { + _json["deviceIdentifier"] = (deviceIdentifier).toJson(); + } + if (deviceMetadata != null) { + _json["deviceMetadata"] = (deviceMetadata).toJson(); + } + if (sectionType != null) { + _json["sectionType"] = sectionType; + } + return _json; + } +} + +/** Identifies one unclaim request. */ +class PartnerUnclaim { + /** device id of the device. */ + core.String deviceId; + /** device identifier of the device. */ + DeviceIdentifier deviceIdentifier; + /** + * section type to unclaim. + * Possible string values are: + * - "SECTION_TYPE_UNSPECIFIED" : Unspecified + * - "SECTION_TYPE_ZERO_TOUCH" : Zero touch + */ + core.String sectionType; + + PartnerUnclaim(); + + PartnerUnclaim.fromJson(core.Map _json) { + if (_json.containsKey("deviceId")) { + deviceId = _json["deviceId"]; + } + if (_json.containsKey("deviceIdentifier")) { + deviceIdentifier = new DeviceIdentifier.fromJson(_json["deviceIdentifier"]); + } + if (_json.containsKey("sectionType")) { + sectionType = _json["sectionType"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (deviceId != null) { + _json["deviceId"] = deviceId; + } + if (deviceIdentifier != null) { + _json["deviceIdentifier"] = (deviceIdentifier).toJson(); + } + if (sectionType != null) { + _json["sectionType"] = sectionType; + } + return _json; + } +} + +/** Stores the processing result for each device. */ +class PerDeviceStatusInBatch { + /** device id of the device if process succeeds. */ + core.String deviceId; + /** Error identifier. */ + core.String errorIdentifier; + /** Error message */ + core.String errorMessage; + /** + * Process result. + * Possible string values are: + * - "SINGLE_DEVICE_STATUS_UNSPECIFIED" : Invalid code. Shouldn' be used. + * - "SINGLE_DEVICE_STATUS_UNKNOWN_ERROR" : Unknown error. + * Unknown error is we don't expect it here. + * - "SINGLE_DEVICE_STATUS_OTHER_ERROR" : Other error. + * Other error is we know/expect this error, but not having proper error + * code yet. + * - "SINGLE_DEVICE_STATUS_SUCCESS" : Success. + * - "SINGLE_DEVICE_STATUS_PERMISSION_DENIED" : Permission denied + * - "SINGLE_DEVICE_STATUS_INVALID_DEVICE_IDENTIFIER" : Invalid device + * identifier. + * - "SINGLE_DEVICE_STATUS_INVALID_SECTION_TYPE" : Invalid section type. + * - "SINGLE_DEVICE_STATUS_SECTION_NOT_YOURS" : This section is claimed by + * other company. + */ + core.String status; + + PerDeviceStatusInBatch(); + + PerDeviceStatusInBatch.fromJson(core.Map _json) { + if (_json.containsKey("deviceId")) { + deviceId = _json["deviceId"]; + } + if (_json.containsKey("errorIdentifier")) { + errorIdentifier = _json["errorIdentifier"]; + } + if (_json.containsKey("errorMessage")) { + errorMessage = _json["errorMessage"]; + } + 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 (deviceId != null) { + _json["deviceId"] = deviceId; + } + if (errorIdentifier != null) { + _json["errorIdentifier"] = errorIdentifier; + } + if (errorMessage != null) { + _json["errorMessage"] = errorMessage; + } + if (status != null) { + _json["status"] = status; + } + 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"]; + } + 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 to unclaim a device. */ +class UnclaimDeviceRequest { + /** The device id returned by ClaimDevice. */ + core.String deviceId; + /** The device identifier you use when you claimed this device. */ + DeviceIdentifier deviceIdentifier; + /** + * The section type to unclaim for. + * Possible string values are: + * - "SECTION_TYPE_UNSPECIFIED" : Unspecified + * - "SECTION_TYPE_ZERO_TOUCH" : Zero touch + */ + core.String sectionType; + + UnclaimDeviceRequest(); + + UnclaimDeviceRequest.fromJson(core.Map _json) { + if (_json.containsKey("deviceId")) { + deviceId = _json["deviceId"]; + } + if (_json.containsKey("deviceIdentifier")) { + deviceIdentifier = new DeviceIdentifier.fromJson(_json["deviceIdentifier"]); + } + if (_json.containsKey("sectionType")) { + sectionType = _json["sectionType"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (deviceId != null) { + _json["deviceId"] = deviceId; + } + if (deviceIdentifier != null) { + _json["deviceIdentifier"] = (deviceIdentifier).toJson(); + } + if (sectionType != null) { + _json["sectionType"] = sectionType; + } + return _json; + } +} + +/** Request to unclaim devices asynchronously in batch. */ +class UnclaimDevicesRequest { + /** list of unclaims. */ + core.List<PartnerUnclaim> unclaims; + + UnclaimDevicesRequest(); + + UnclaimDevicesRequest.fromJson(core.Map _json) { + if (_json.containsKey("unclaims")) { + unclaims = _json["unclaims"].map((value) => new PartnerUnclaim.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 (unclaims != null) { + _json["unclaims"] = unclaims.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** Request to update device metadata in batch. */ +class UpdateDeviceMetadataInBatchRequest { + /** list of metadata updates. */ + core.List<UpdateMetadataArguments> updates; + + UpdateDeviceMetadataInBatchRequest(); + + UpdateDeviceMetadataInBatchRequest.fromJson(core.Map _json) { + if (_json.containsKey("updates")) { + updates = _json["updates"].map((value) => new UpdateMetadataArguments.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 (updates != null) { + _json["updates"] = updates.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** Request to set metadata for a device. */ +class UpdateDeviceMetadataRequest { + /** The metdata to set. */ + DeviceMetadata deviceMetadata; + + UpdateDeviceMetadataRequest(); + + UpdateDeviceMetadataRequest.fromJson(core.Map _json) { + if (_json.containsKey("deviceMetadata")) { + deviceMetadata = new DeviceMetadata.fromJson(_json["deviceMetadata"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (deviceMetadata != null) { + _json["deviceMetadata"] = (deviceMetadata).toJson(); + } + return _json; + } +} + +/** Identifies metdata updates to one device. */ +class UpdateMetadataArguments { + /** device id of the device. */ + core.String deviceId; + /** device identifier. */ + DeviceIdentifier deviceIdentifier; + /** The metadata to update. */ + DeviceMetadata deviceMetadata; + + UpdateMetadataArguments(); + + UpdateMetadataArguments.fromJson(core.Map _json) { + if (_json.containsKey("deviceId")) { + deviceId = _json["deviceId"]; + } + if (_json.containsKey("deviceIdentifier")) { + deviceIdentifier = new DeviceIdentifier.fromJson(_json["deviceIdentifier"]); + } + if (_json.containsKey("deviceMetadata")) { + deviceMetadata = new DeviceMetadata.fromJson(_json["deviceMetadata"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (deviceId != null) { + _json["deviceId"] = deviceId; + } + if (deviceIdentifier != null) { + _json["deviceIdentifier"] = (deviceIdentifier).toJson(); + } + if (deviceMetadata != null) { + _json["deviceMetadata"] = (deviceMetadata).toJson(); + } + return _json; + } +}
diff --git a/generated/googleapis/lib/androidenterprise/v1.dart b/generated/googleapis/lib/androidenterprise/v1.dart index 9b265bb..7359d0e 100644 --- a/generated/googleapis/lib/androidenterprise/v1.dart +++ b/generated/googleapis/lib/androidenterprise/v1.dart
@@ -570,6 +570,45 @@ } /** + * Returns the Android Device Policy config resource. + * + * Request parameters: + * + * [enterpriseId] - The ID of the enterprise. + * + * Completes with a [AndroidDevicePolicyConfig]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<AndroidDevicePolicyConfig> getAndroidDevicePolicyConfig(core.String enterpriseId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (enterpriseId == null) { + throw new core.ArgumentError("Parameter enterpriseId is required."); + } + + _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/androidDevicePolicyConfig'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new AndroidDevicePolicyConfig.fromJson(data)); + } + + /** * Returns a service account and credentials. The service account can be bound * to the enterprise by calling setAccount. The service account is unique to * this enterprise and EMM, and will be deleted if the enterprise is unbound. @@ -910,6 +949,52 @@ } /** + * Sets the Android Device Policy config resource. EMM may use this API to + * enable or disable Android Device Policy support for the specified + * enterprise. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [enterpriseId] - The ID of the enterprise. + * + * Completes with a [AndroidDevicePolicyConfig]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<AndroidDevicePolicyConfig> setAndroidDevicePolicyConfig(AndroidDevicePolicyConfig request, core.String enterpriseId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (enterpriseId == null) { + throw new core.ArgumentError("Parameter enterpriseId is required."); + } + + _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/androidDevicePolicyConfig'; + + var _response = _requester.request(_url, + "PUT", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new AndroidDevicePolicyConfig.fromJson(data)); + } + + /** * Sets the store layout for the enterprise. By default, storeLayoutType is * set to "basic" and the basic store layout is enabled. The basic layout only * contains apps approved by the admin, and that have been added to the @@ -4114,6 +4199,43 @@ } } +/** The Android Device Policy configuration of an enterprise. */ +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. + */ + core.String state; + + AndroidDevicePolicyConfig(); + + AndroidDevicePolicyConfig.fromJson(core.Map _json) { + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + 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 (kind != null) { + _json["kind"] = kind; + } + if (state != null) { + _json["state"] = state; + } + return _json; + } +} + /** * Represents the list of app restrictions available to be pre-configured for * the product.
diff --git a/generated/googleapis/lib/androidmanagement/v1.dart b/generated/googleapis/lib/androidmanagement/v1.dart new file mode 100644 index 0000000..1d8eb8a --- /dev/null +++ b/generated/googleapis/lib/androidmanagement/v1.dart
@@ -0,0 +1,4065 @@ +// This is a generated file (see the discoveryapis_generator project). + +library googleapis.androidmanagement.v1; + +import 'dart:core' as core; +import 'dart:async' as async; +import 'dart:convert' as convert; + +import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; +import 'package:http/http.dart' as http; + +export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show + ApiRequestError, DetailedApiRequestError; + +const core.String USER_AGENT = 'dart-api-client androidmanagement/v1'; + +/** + * The Android Management API provides remote enterprise management of Android + * devices and apps. + */ +class AndroidmanagementApi { + + final commons.ApiRequester _requester; + + EnterprisesResourceApi get enterprises => new EnterprisesResourceApi(_requester); + SignupUrlsResourceApi get signupUrls => new SignupUrlsResourceApi(_requester); + + AndroidmanagementApi(http.Client client, {core.String rootUrl: "https://androidmanagement.googleapis.com/", core.String servicePath: ""}) : + _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); +} + + +class EnterprisesResourceApi { + final commons.ApiRequester _requester; + + EnterprisesApplicationsResourceApi get applications => new EnterprisesApplicationsResourceApi(_requester); + EnterprisesDevicesResourceApi get devices => new EnterprisesDevicesResourceApi(_requester); + EnterprisesEnrollmentTokensResourceApi get enrollmentTokens => new EnterprisesEnrollmentTokensResourceApi(_requester); + EnterprisesPoliciesResourceApi get policies => new EnterprisesPoliciesResourceApi(_requester); + EnterprisesWebTokensResourceApi get webTokens => new EnterprisesWebTokensResourceApi(_requester); + + EnterprisesResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Creates an enterprise by completing the enterprise signup flow. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [signupUrlName] - The name of the + * [`SignupUrl`](/android/management/reference/rest/v1/signupUrls#SignupUrl) + * used to sign up for 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. + * + * Completes with a [Enterprise]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * 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 enterpriseToken, core.String projectId}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (signupUrlName != null) { + _queryParams["signupUrlName"] = [signupUrlName]; + } + if (enterpriseToken != null) { + _queryParams["enterpriseToken"] = [enterpriseToken]; + } + if (projectId != null) { + _queryParams["projectId"] = [projectId]; + } + + _url = 'v1/enterprises'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Enterprise.fromJson(data)); + } + + /** + * Gets an enterprise. + * + * Request parameters: + * + * [name] - The name of the enterprise in the form + * `enterprises/{enterpriseId}` + * Value must have pattern "^enterprises/[^/]+$". + * + * Completes with a [Enterprise]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * 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> get(core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Enterprise.fromJson(data)); + } + + /** + * Updates an enterprise. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [name] - The name of the enterprise in the form + * `enterprises/{enterpriseId}` + * Value must have pattern "^enterprises/[^/]+$". + * + * [updateMask] - The field mask indicating the fields to update. + * If not set, all modifiable fields will be modified. + * + * Completes with a [Enterprise]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * 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> patch(Enterprise request, core.String name, {core.String updateMask}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + if (updateMask != null) { + _queryParams["updateMask"] = [updateMask]; + } + + _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 Enterprise.fromJson(data)); + } + +} + + +class EnterprisesApplicationsResourceApi { + final commons.ApiRequester _requester; + + EnterprisesApplicationsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Gets info about an application. + * + * Request parameters: + * + * [name] - The name of the application in the form + * `enterprises/{enterpriseId}/applications/{package_name}` + * Value must have pattern "^enterprises/[^/]+/applications/[^/]+$". + * + * [languageCode] - The preferred language for localized application info, as + * a BCP47 tag + * (e.g. "en-US", "de"). If not specified the default language of the + * application will be used. + * + * Completes with a [Application]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Application> get(core.String name, {core.String languageCode}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + if (languageCode != null) { + _queryParams["languageCode"] = [languageCode]; + } + + _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 Application.fromJson(data)); + } + +} + + +class EnterprisesDevicesResourceApi { + final commons.ApiRequester _requester; + + EnterprisesDevicesOperationsResourceApi get operations => new EnterprisesDevicesOperationsResourceApi(_requester); + + EnterprisesDevicesResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Deletes a device, which causes the device to be wiped. + * + * Request parameters: + * + * [name] - The name of the device in the form + * `enterprises/{enterpriseId}/devices/{deviceId}` + * Value must have pattern "^enterprises/[^/]+/devices/[^/]+$". + * + * Completes with a [Empty]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Empty> delete(core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Empty.fromJson(data)); + } + + /** + * Gets a device. + * + * Request parameters: + * + * [name] - The name of the device in the form + * `enterprises/{enterpriseId}/devices/{deviceId}` + * Value must have pattern "^enterprises/[^/]+/devices/[^/]+$". + * + * 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) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Device.fromJson(data)); + } + + /** + * Issues a command to a device. The + * [`Operation`](/android/management/reference/rest/v1/enterprises.devices.operations#Operation) + * resource returned contains a + * [`Command`](/android/management/reference/rest/v1/enterprises.devices/issueCommand#Command) + * in its `metadata` field. + * Use the + * [get operation + * method](/android/management/reference/rest/v1/enterprises.devices.operations/get) + * to get the status of the command. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [name] - The name of the device in the form + * `enterprises/{enterpriseId}/devices/{deviceId}` + * Value must have pattern "^enterprises/[^/]+/devices/[^/]+$". + * + * 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> issueCommand(Command request, core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':issueCommand'; + + 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 devices for a given enterprise. + * + * Request parameters: + * + * [parent] - The name of the enterprise in the form + * `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 the server should + * return. + * + * Completes with a [ListDevicesResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * 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}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/devices'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListDevicesResponse.fromJson(data)); + } + + /** + * Updates a device. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [name] - The name of the device in the form + * `enterprises/{enterpriseId}/devices/{deviceId}` + * Value must have pattern "^enterprises/[^/]+/devices/[^/]+$". + * + * [updateMask] - The field mask indicating the fields to update. + * If not set, all modifiable fields will be modified. + * + * 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}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + if (updateMask != null) { + _queryParams["updateMask"] = [updateMask]; + } + + _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 EnterprisesDevicesOperationsResourceApi { + final commons.ApiRequester _requester; + + EnterprisesDevicesOperationsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * Operations.GetOperation or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an Operation.error value with a google.rpc.Status.code of 1, + * corresponding to `Code.CANCELLED`. + * + * Request parameters: + * + * [name] - The name of the operation resource to be cancelled. + * Value must have pattern + * "^enterprises/[^/]+/devices/[^/]+/operations/[^/]+$". + * + * Completes with a [Empty]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Empty> cancel(core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':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 + * "^enterprises/[^/]+/devices/[^/]+/operations/[^/]+$". + * + * Completes with a [Empty]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Empty> delete(core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Empty.fromJson(data)); + } + + /** + * 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 + * "^enterprises/[^/]+/devices/[^/]+/operations/[^/]+$". + * + * 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) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new 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 "^enterprises/[^/]+/devices/[^/]+/operations$". + * + * [pageSize] - The standard list page size. + * + * [filter] - The standard list filter. + * + * [pageToken] - The standard list page token. + * + * Completes with a [ListOperationsResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ListOperationsResponse> list(core.String name, {core.int pageSize, core.String filter, core.String pageToken}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListOperationsResponse.fromJson(data)); + } + +} + + +class EnterprisesEnrollmentTokensResourceApi { + final commons.ApiRequester _requester; + + EnterprisesEnrollmentTokensResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Creates an enrollment token for a given enterprise. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [parent] - The name of the enterprise in the form + * `enterprises/{enterpriseId}` + * Value must have pattern "^enterprises/[^/]+$". + * + * Completes with a [EnrollmentToken]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<EnrollmentToken> create(EnrollmentToken request, core.String parent) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/enrollmentTokens'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new EnrollmentToken.fromJson(data)); + } + + /** + * Deletes an enrollment token, which prevents future use of the token. + * + * Request parameters: + * + * [name] - The name of the enrollment token in the form + * `enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}` + * Value must have pattern "^enterprises/[^/]+/enrollmentTokens/[^/]+$". + * + * Completes with a [Empty]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Empty> delete(core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Empty.fromJson(data)); + } + +} + + +class EnterprisesPoliciesResourceApi { + final commons.ApiRequester _requester; + + EnterprisesPoliciesResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Deletes a policy. This operation is only permitted if no devices are + * currently referencing the policy. + * + * Request parameters: + * + * [name] - The name of the policy in the form + * `enterprises/{enterpriseId}/policies/{policyId}` + * Value must have pattern "^enterprises/[^/]+/policies/[^/]+$". + * + * Completes with a [Empty]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Empty> delete(core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Empty.fromJson(data)); + } + + /** + * Gets a policy. + * + * Request parameters: + * + * [name] - The name of the policy in the form + * `enterprises/{enterpriseId}/policies/{policyId}` + * Value must have pattern "^enterprises/[^/]+/policies/[^/]+$". + * + * 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> get(core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Policy.fromJson(data)); + } + + /** + * Lists policies for a given enterprise. + * + * Request parameters: + * + * [parent] - The name of the enterprise in the form + * `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 the server should + * return. + * + * Completes with a [ListPoliciesResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * 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}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/policies'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListPoliciesResponse.fromJson(data)); + } + + /** + * Updates or creates a policy. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [name] - The name of the policy in the form + * `enterprises/{enterpriseId}/policies/{policyId}` + * Value must have pattern "^enterprises/[^/]+/policies/[^/]+$". + * + * [updateMask] - The field mask indicating the fields to update. + * If not set, all modifiable fields will be modified. + * + * 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> patch(Policy request, core.String name, {core.String updateMask}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + if (updateMask != null) { + _queryParams["updateMask"] = [updateMask]; + } + + _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 Policy.fromJson(data)); + } + +} + + +class EnterprisesWebTokensResourceApi { + final commons.ApiRequester _requester; + + EnterprisesWebTokensResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Creates a web token to access an embeddable managed Google Play web UI for + * a given enterprise. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [parent] - The name of the enterprise in the form + * `enterprises/{enterpriseId}` + * Value must have pattern "^enterprises/[^/]+$". + * + * Completes with a [WebToken]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<WebToken> create(WebToken request, core.String parent) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/webTokens'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new WebToken.fromJson(data)); + } + +} + + +class SignupUrlsResourceApi { + final commons.ApiRequester _requester; + + SignupUrlsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Creates an enterprise signup URL. + * + * Request parameters: + * + * [callbackUrl] - The callback URL to which the admin will be redirected + * after successfully + * creating an enterprise. Before redirecting there the system will add a + * query parameter to this URL named `enterpriseToken` which will + * contain an opaque token to be used for the + * [create + * enterprise](/android/management/reference/rest/v1/enterprises/create) + * request. The URL will be parsed then reformatted in order to add the + * `enterpriseToken` parameter, so there may be some minor formatting changes. + * + * [projectId] - The id of the Google Cloud Platform project which will own + * the enterprise. + * + * Completes with a [SignupUrl]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<SignupUrl> create({core.String callbackUrl, core.String projectId}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (callbackUrl != null) { + _queryParams["callbackUrl"] = [callbackUrl]; + } + if (projectId != null) { + _queryParams["projectId"] = [projectId]; + } + + _url = 'v1/signupUrls'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new SignupUrl.fromJson(data)); + } + +} + + + +/** + * A compliance rule condition which is satisfied if the Android Framework API + * level on the device does not meet a minimum requirement. There can only be + * one rule with this type of condition per policy. + */ +class ApiLevelCondition { + /** + * The minimum desired Android Framework API level. If the device does not + * meet the minimum requirement, this condition is satisfied. Must be greater + * than zero. + */ + core.int minApiLevel; + + ApiLevelCondition(); + + ApiLevelCondition.fromJson(core.Map _json) { + if (_json.containsKey("minApiLevel")) { + minApiLevel = _json["minApiLevel"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (minApiLevel != null) { + _json["minApiLevel"] = minApiLevel; + } + return _json; + } +} + +/** Application information. */ +class Application { + /** + * The set of managed properties available to be pre-configured for the + * application. + */ + core.List<ManagedProperty> managedProperties; + /** + * The name of the application in the form + * `enterprises/{enterpriseId}/applications/{package_name}` + */ + core.String name; + /** The permissions required by the app. */ + core.List<ApplicationPermission> permissions; + /** The title of the application. Localized. */ + core.String title; + + Application(); + + Application.fromJson(core.Map _json) { + if (_json.containsKey("managedProperties")) { + managedProperties = _json["managedProperties"].map((value) => new ManagedProperty.fromJson(value)).toList(); + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("permissions")) { + permissions = _json["permissions"].map((value) => new ApplicationPermission.fromJson(value)).toList(); + } + 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 (managedProperties != null) { + _json["managedProperties"] = managedProperties.map((value) => (value).toJson()).toList(); + } + if (name != null) { + _json["name"] = name; + } + if (permissions != null) { + _json["permissions"] = permissions.map((value) => (value).toJson()).toList(); + } + if (title != null) { + _json["title"] = title; + } + return _json; + } +} + +/** Application permission. */ +class ApplicationPermission { + /** + * A longer description of the permission, giving more details of + * what it affects. Localized. + */ + core.String description; + /** The name of the permission. Localized. */ + core.String name; + /** An opaque string uniquely identifying the permission. Not localized. */ + core.String permissionId; + + ApplicationPermission(); + + ApplicationPermission.fromJson(core.Map _json) { + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("permissionId")) { + permissionId = _json["permissionId"]; + } + } + + 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 (name != null) { + _json["name"] = name; + } + if (permissionId != null) { + _json["permissionId"] = permissionId; + } + return _json; + } +} + +/** Policy for an individual app. */ +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. + * 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 by default. + * - "PROMPT" : Prompt the user to grant a permission. + * - "GRANT" : Automatically grant a permission. + * - "DENY" : Automatically deny a permission. + */ + core.String defaultPermissionPolicy; + /** + * The type of installation to perform. + * Possible string values are: + * - "INSTALL_TYPE_UNSPECIFIED" : No automatic installation is performed. Any + * other app policies will be + * applied if the user installs the app. + * - "PREINSTALLED" : The application is automatically installed and can be + * removed by the + * user. + * - "FORCE_INSTALLED" : The application is automatically installed and cannot + * be removed by the + * user. + */ + core.String installType; + /** Whether the application is allowed to lock itself in full-screen mode. */ + core.bool lockTaskAllowed; + /** + * Managed configuration applied to the app. The format for the configuration + * is dictated by the + * [`ManagedProperty`](/android/management/reference/rest/v1/enterprises.applications#ManagedProperty) + * values supported by the app. Each field name in the managed configuration + * must match the `key` field of the `ManagedProperty`. The field value must + * be compatible with the `type` of the `ManagedProperty`: + * <table> + * <tr><td><i>type</i></td><td><i>JSON value</i></td></tr> + * <tr><td>`BOOL`</td><td>`true` or `false`</td></tr> + * <tr><td>`STRING`</td><td>string</td></tr> + * <tr><td>`INTEGER`</td><td>number</td></tr> + * <tr><td>`CHOICE`</td><td>string</td></tr> + * <tr><td>`MULTISELECT`</td><td>array of strings</td></tr> + * <tr><td>`HIDDEN`</td><td>string</td></tr> + * <tr><td>`BUNDLE_ARRAY`</td><td>array of objects</td></tr> + * </table> + * + * 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> managedConfiguration; + /** + * The package name of the app, e.g. `com.google.android.youtube` for the + * YouTube app. + */ + core.String packageName; + /** + * Explicit permission grants or denials for the app. These values override + * the `default_permission_policy`. + */ + core.List<PermissionGrant> permissionGrants; + + ApplicationPolicy(); + + ApplicationPolicy.fromJson(core.Map _json) { + if (_json.containsKey("defaultPermissionPolicy")) { + defaultPermissionPolicy = _json["defaultPermissionPolicy"]; + } + if (_json.containsKey("installType")) { + installType = _json["installType"]; + } + if (_json.containsKey("lockTaskAllowed")) { + lockTaskAllowed = _json["lockTaskAllowed"]; + } + if (_json.containsKey("managedConfiguration")) { + managedConfiguration = _json["managedConfiguration"]; + } + if (_json.containsKey("packageName")) { + packageName = _json["packageName"]; + } + if (_json.containsKey("permissionGrants")) { + permissionGrants = _json["permissionGrants"].map((value) => new PermissionGrant.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 (defaultPermissionPolicy != null) { + _json["defaultPermissionPolicy"] = defaultPermissionPolicy; + } + if (installType != null) { + _json["installType"] = installType; + } + if (lockTaskAllowed != null) { + _json["lockTaskAllowed"] = lockTaskAllowed; + } + if (managedConfiguration != null) { + _json["managedConfiguration"] = managedConfiguration; + } + if (packageName != null) { + _json["packageName"] = packageName; + } + if (permissionGrants != null) { + _json["permissionGrants"] = permissionGrants.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** A command. */ +class Command { + /** + * The timestamp at which the command was created. The timestamp is + * automatically generated by the server. + */ + core.String createTime; + /** + * The duration for which the command is valid. The command will expire if not + * executed by the device during this time. The default duration if + * unspecified is ten minutes. There is no maximum duration. + */ + core.String duration; + /** + * For commands of type `RESET_PASSWORD`, optionally specifies the new + * password. + */ + core.String newPassword; + /** For commands of type `RESET_PASSWORD`, optionally specifies flags. */ + core.List<core.String> resetPasswordFlags; + /** + * The type of the command. + * Possible string values are: + * - "COMMAND_TYPE_UNSPECIFIED" : This value is disallowed. + * - "LOCK" : Lock the device, as if the lock screen timeout had expired. + * - "RESET_PASSWORD" : Reset the user's password. + * - "REBOOT" : Reboot the device. Only supported on API level 24+. + */ + core.String type; + + Command(); + + Command.fromJson(core.Map _json) { + if (_json.containsKey("createTime")) { + createTime = _json["createTime"]; + } + if (_json.containsKey("duration")) { + duration = _json["duration"]; + } + if (_json.containsKey("newPassword")) { + newPassword = _json["newPassword"]; + } + if (_json.containsKey("resetPasswordFlags")) { + resetPasswordFlags = _json["resetPasswordFlags"]; + } + 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 (createTime != null) { + _json["createTime"] = createTime; + } + if (duration != null) { + _json["duration"] = duration; + } + if (newPassword != null) { + _json["newPassword"] = newPassword; + } + if (resetPasswordFlags != null) { + _json["resetPasswordFlags"] = resetPasswordFlags; + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +/** + * A rule declaring which mitigating actions to take when a device is not + * compliant with its policy. For every rule, there is always an implicit + * mitigating action to set `policy_compliant` to false for the + * [`Device`](/android/management/reference/rest/v1/enterprises.devices#Device) + * resource, and display a message on the device indicating that the device is + * not compliant with its policy. Other mitigating actions may optionally be + * taken as well, depending on the field values in the rule. + */ +class ComplianceRule { + /** + * A condition which is satisfied if the Android Framework API level on the + * device does not meet a minimum requirement. + */ + ApiLevelCondition apiLevelCondition; + /** + * If set to true, the rule includes a mitigating action to disable + * applications so that the device is effectively disabled, but application + * data is preserved. If the device is running an app in locked task mode, the + * app will be closed and a UI showing the reason for non-compliance will be + * displayed. + */ + core.bool disableApps; + /** + * A condition which is satisfied if there exists *any* matching + * [`NonComplianceDetail`](/android/management/reference/rest/v1/enterprises.devices#NonComplianceDetail) + * for the device. + */ + NonComplianceDetailCondition nonComplianceDetailCondition; + + ComplianceRule(); + + ComplianceRule.fromJson(core.Map _json) { + if (_json.containsKey("apiLevelCondition")) { + apiLevelCondition = new ApiLevelCondition.fromJson(_json["apiLevelCondition"]); + } + if (_json.containsKey("disableApps")) { + disableApps = _json["disableApps"]; + } + if (_json.containsKey("nonComplianceDetailCondition")) { + nonComplianceDetailCondition = new NonComplianceDetailCondition.fromJson(_json["nonComplianceDetailCondition"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (apiLevelCondition != null) { + _json["apiLevelCondition"] = (apiLevelCondition).toJson(); + } + if (disableApps != null) { + _json["disableApps"] = disableApps; + } + if (nonComplianceDetailCondition != null) { + _json["nonComplianceDetailCondition"] = (nonComplianceDetailCondition).toJson(); + } + return _json; + } +} + +/** + * A device owned by an enterprise. + * Unless otherwise noted, all fields are read-only and cannot be modified by + * an update device request. + */ +class Device { + /** The API level of the Android platform version running on the device. */ + core.int apiLevel; + /** The name of the policy that is currently applied by the device. */ + core.String appliedPolicyName; + /** The version of the policy that is currently applied by the device. */ + core.String appliedPolicyVersion; + /** + * The state that is currently applied by the device. + * Possible string values are: + * - "DEVICE_STATE_UNSPECIFIED" : This value is disallowed. + * - "ACTIVE" : The device is active. + * - "DISABLED" : The device is disabled. + * - "DELETED" : The device was deleted. This state will never be returned by + * an API call, + * but will be used in the final policy compliance report published to Cloud + * Pub/Sub when the device acknowledges the deletion. + * - "PROVISIONING" : The device is being provisioned. Newly enrolled devices + * will be in this + * state until they have applied policy. + */ + core.String appliedState; + /** + * If the device state is `DISABLED`, an optional message that is displayed on + * the device indicating the reason the device is disabled. This field may be + * modified by an update request. + */ + UserFacingMessage disabledReason; + /** + * Displays on the device. This information is only available when + * `displayInfoEnabled` is true in the device's policy. + */ + core.List<Display> displays; + /** The time of device enrollment. */ + core.String enrollmentTime; + /** + * If this device was enrolled with an enrollment token with additional data + * provided, this field contains that data. + */ + core.String enrollmentTokenData; + /** + * If this device was enrolled with an enrollment token, this field contains + * the name of the token. + */ + core.String enrollmentTokenName; + /** Detailed information about the device hardware. */ + HardwareInfo hardwareInfo; + /** + * Hardware status samples in chronological order. This information is only + * available when `hardwareStatusEnabled` is true in the device's policy. + */ + core.List<HardwareStatus> hardwareStatusSamples; + /** The last time the device sent a policy compliance report. */ + core.String lastPolicyComplianceReportTime; + /** The last time the device fetched its policy. */ + core.String lastPolicySyncTime; + /** The last time the device sent a status report. */ + core.String lastStatusReportTime; + /** + * Events related to memory and storage measurements in chronological order. + * This information is only available when `memoryInfoEnabled` is true in the + * device's policy. + */ + core.List<MemoryEvent> memoryEvents; + /** + * Memory information. This information is only available when + * `memoryInfoEnabled` is true in the device's policy. + */ + MemoryInfo memoryInfo; + /** + * The name of the device in the form + * `enterprises/{enterpriseId}/devices/{deviceId}` + */ + core.String name; + /** + * Device network information. This information is only available when + * `networkInfoEnabled` is true in the device's policy. + */ + NetworkInfo networkInfo; + /** + * Details about policy settings for which the device is not in compliance. + */ + core.List<NonComplianceDetail> nonComplianceDetails; + /** Whether the device is compliant with its policy. */ + core.bool policyCompliant; + /** + * The name of the policy that is intended to be applied to the device. If + * empty, the policy with id `default` is applied. + * This field may be modified by an update request. + * The name of the policy is in the form + * `enterprises/{enterpriseId}/policies/{policyId}`. + * It is also permissible to only specify the `policyId` when updating this + * field as long as the `policyId` contains no slashes since the rest of the + * policy name can be inferred from context. + */ + core.String policyName; + /** + * Power management events on the device in chronological order. This + * information is only available when `powerManagementEventsEnabled` is true + * in the device's policy. + */ + core.List<PowerManagementEvent> powerManagementEvents; + /** + * The previous device names used for the same physical device when it has + * been enrolled multiple times. The serial number is used as the unique + * identifier to determine if the same physical device has enrolled + * previously. The names are in chronological order. + */ + core.List<core.String> previousDeviceNames; + /** + * Detailed information about the device software. This information is only + * available when `softwareInfoEnabled` is true in the device's policy. + */ + SoftwareInfo softwareInfo; + /** + * The state that is intended to be applied to the device. This field may be + * modified by an update request. + * Note that UpdateDevice only handles toggling between `ACTIVE` and + * `DISABLED` states. Use the + * [delete device + * method](/android/management/reference/rest/v1/enterprises.devices/delete) + * to cause the device to enter the `DELETED` state. + * Possible string values are: + * - "DEVICE_STATE_UNSPECIFIED" : This value is disallowed. + * - "ACTIVE" : The device is active. + * - "DISABLED" : The device is disabled. + * - "DELETED" : The device was deleted. This state will never be returned by + * an API call, + * but will be used in the final policy compliance report published to Cloud + * Pub/Sub when the device acknowledges the deletion. + * - "PROVISIONING" : The device is being provisioned. Newly enrolled devices + * will be in this + * state until they have applied policy. + */ + core.String state; + /** + * The resource name of the user of the device in the form + * `enterprises/{enterpriseId}/users/{userId}`. This is the name of the + * device account automatically created for this device. + */ + core.String userName; + + Device(); + + Device.fromJson(core.Map _json) { + if (_json.containsKey("apiLevel")) { + apiLevel = _json["apiLevel"]; + } + if (_json.containsKey("appliedPolicyName")) { + appliedPolicyName = _json["appliedPolicyName"]; + } + if (_json.containsKey("appliedPolicyVersion")) { + appliedPolicyVersion = _json["appliedPolicyVersion"]; + } + if (_json.containsKey("appliedState")) { + appliedState = _json["appliedState"]; + } + if (_json.containsKey("disabledReason")) { + disabledReason = new UserFacingMessage.fromJson(_json["disabledReason"]); + } + if (_json.containsKey("displays")) { + displays = _json["displays"].map((value) => new Display.fromJson(value)).toList(); + } + if (_json.containsKey("enrollmentTime")) { + enrollmentTime = _json["enrollmentTime"]; + } + if (_json.containsKey("enrollmentTokenData")) { + enrollmentTokenData = _json["enrollmentTokenData"]; + } + if (_json.containsKey("enrollmentTokenName")) { + enrollmentTokenName = _json["enrollmentTokenName"]; + } + if (_json.containsKey("hardwareInfo")) { + hardwareInfo = new HardwareInfo.fromJson(_json["hardwareInfo"]); + } + if (_json.containsKey("hardwareStatusSamples")) { + hardwareStatusSamples = _json["hardwareStatusSamples"].map((value) => new HardwareStatus.fromJson(value)).toList(); + } + if (_json.containsKey("lastPolicyComplianceReportTime")) { + lastPolicyComplianceReportTime = _json["lastPolicyComplianceReportTime"]; + } + if (_json.containsKey("lastPolicySyncTime")) { + lastPolicySyncTime = _json["lastPolicySyncTime"]; + } + if (_json.containsKey("lastStatusReportTime")) { + lastStatusReportTime = _json["lastStatusReportTime"]; + } + if (_json.containsKey("memoryEvents")) { + memoryEvents = _json["memoryEvents"].map((value) => new MemoryEvent.fromJson(value)).toList(); + } + if (_json.containsKey("memoryInfo")) { + memoryInfo = new MemoryInfo.fromJson(_json["memoryInfo"]); + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("networkInfo")) { + networkInfo = new NetworkInfo.fromJson(_json["networkInfo"]); + } + if (_json.containsKey("nonComplianceDetails")) { + nonComplianceDetails = _json["nonComplianceDetails"].map((value) => new NonComplianceDetail.fromJson(value)).toList(); + } + if (_json.containsKey("policyCompliant")) { + policyCompliant = _json["policyCompliant"]; + } + if (_json.containsKey("policyName")) { + policyName = _json["policyName"]; + } + if (_json.containsKey("powerManagementEvents")) { + powerManagementEvents = _json["powerManagementEvents"].map((value) => new PowerManagementEvent.fromJson(value)).toList(); + } + if (_json.containsKey("previousDeviceNames")) { + previousDeviceNames = _json["previousDeviceNames"]; + } + if (_json.containsKey("softwareInfo")) { + softwareInfo = new SoftwareInfo.fromJson(_json["softwareInfo"]); + } + if (_json.containsKey("state")) { + state = _json["state"]; + } + if (_json.containsKey("userName")) { + userName = _json["userName"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (apiLevel != null) { + _json["apiLevel"] = apiLevel; + } + if (appliedPolicyName != null) { + _json["appliedPolicyName"] = appliedPolicyName; + } + if (appliedPolicyVersion != null) { + _json["appliedPolicyVersion"] = appliedPolicyVersion; + } + if (appliedState != null) { + _json["appliedState"] = appliedState; + } + if (disabledReason != null) { + _json["disabledReason"] = (disabledReason).toJson(); + } + if (displays != null) { + _json["displays"] = displays.map((value) => (value).toJson()).toList(); + } + if (enrollmentTime != null) { + _json["enrollmentTime"] = enrollmentTime; + } + if (enrollmentTokenData != null) { + _json["enrollmentTokenData"] = enrollmentTokenData; + } + if (enrollmentTokenName != null) { + _json["enrollmentTokenName"] = enrollmentTokenName; + } + if (hardwareInfo != null) { + _json["hardwareInfo"] = (hardwareInfo).toJson(); + } + if (hardwareStatusSamples != null) { + _json["hardwareStatusSamples"] = hardwareStatusSamples.map((value) => (value).toJson()).toList(); + } + if (lastPolicyComplianceReportTime != null) { + _json["lastPolicyComplianceReportTime"] = lastPolicyComplianceReportTime; + } + if (lastPolicySyncTime != null) { + _json["lastPolicySyncTime"] = lastPolicySyncTime; + } + if (lastStatusReportTime != null) { + _json["lastStatusReportTime"] = lastStatusReportTime; + } + if (memoryEvents != null) { + _json["memoryEvents"] = memoryEvents.map((value) => (value).toJson()).toList(); + } + if (memoryInfo != null) { + _json["memoryInfo"] = (memoryInfo).toJson(); + } + if (name != null) { + _json["name"] = name; + } + if (networkInfo != null) { + _json["networkInfo"] = (networkInfo).toJson(); + } + if (nonComplianceDetails != null) { + _json["nonComplianceDetails"] = nonComplianceDetails.map((value) => (value).toJson()).toList(); + } + if (policyCompliant != null) { + _json["policyCompliant"] = policyCompliant; + } + if (policyName != null) { + _json["policyName"] = policyName; + } + if (powerManagementEvents != null) { + _json["powerManagementEvents"] = powerManagementEvents.map((value) => (value).toJson()).toList(); + } + if (previousDeviceNames != null) { + _json["previousDeviceNames"] = previousDeviceNames; + } + if (softwareInfo != null) { + _json["softwareInfo"] = (softwareInfo).toJson(); + } + if (state != null) { + _json["state"] = state; + } + if (userName != null) { + _json["userName"] = userName; + } + return _json; + } +} + +/** Device display information. */ +class Display { + /** Display density expressed as dots-per-inch. */ + core.int density; + /** Unique display id. */ + core.int displayId; + /** Display height in pixels. */ + core.int height; + /** Name of the display. */ + core.String name; + /** Refresh rate of the display in frames per second. */ + core.int refreshRate; + /** + * State of the display. + * Possible string values are: + * - "DISPLAY_STATE_UNSPECIFIED" : This value is disallowed. + * - "OFF" : Display is off. + * - "ON" : Display is on. + * - "DOZE" : Display is dozing in a low power state + * - "SUSPENDED" : Display is dozing in a suspended low power state. + */ + core.String state; + /** Display width in pixels. */ + core.int width; + + Display(); + + Display.fromJson(core.Map _json) { + if (_json.containsKey("density")) { + density = _json["density"]; + } + if (_json.containsKey("displayId")) { + displayId = _json["displayId"]; + } + if (_json.containsKey("height")) { + height = _json["height"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("refreshRate")) { + refreshRate = _json["refreshRate"]; + } + if (_json.containsKey("state")) { + state = _json["state"]; + } + 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 (density != null) { + _json["density"] = density; + } + if (displayId != null) { + _json["displayId"] = displayId; + } + if (height != null) { + _json["height"] = height; + } + if (name != null) { + _json["name"] = name; + } + if (refreshRate != null) { + _json["refreshRate"] = refreshRate; + } + if (state != null) { + _json["state"] = state; + } + if (width != null) { + _json["width"] = width; + } + 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; + } +} + +/** An enrollment token. */ +class EnrollmentToken { + /** + * Optional, arbitrary data associated with the enrollment token. + * This could contain, for example, the id of an org unit to which the device + * is assigned after enrollment. + * After a device enrolls with the token, this data will be exposed in the + * `enrollment_token_data` field of the + * [`Device`](/android/management/reference/rest/v1/enterprises.devices#Device) + * resource. The data must be 1024 characters or less; otherwise, the creation + * request will fail. + */ + core.String additionalData; + /** + * The duration of the token. If not specified, the duration will be 1 hour. + * The allowed range is 1 minute to 30 days. + */ + core.String duration; + /** + * The expiration time of the token. This is a read-only field generated by + * the server. + */ + core.String expirationTimestamp; + /** + * The name of the enrollment token, which is generated by the server during + * creation, in the form + * `enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}` + */ + core.String name; + /** + * The name of the policy that will be initially applied to the enrolled + * device in the form `enterprises/{enterpriseId}/policies/{policyId}`. + * If not specified, the policy with id `default` is applied. + * It is permissible to only specify the `policyId` when updating this + * field as long as the `policyId` contains no slashes since the rest of the + * policy name can be inferred from context. + */ + core.String policyName; + /** + * A JSON string whose UTF-8 representation can be used to generate a QR code + * to enroll a device with this enrollment token. To enroll a device using + * NFC, the NFC record must contain a serialized `java.util.Properties` + * representation of the properties in the JSON. + */ + core.String qrCode; + /** + * The token value which is passed to the device and authorizes the device to + * enroll. This is a read-only field generated by the server. + */ + core.String value; + + EnrollmentToken(); + + EnrollmentToken.fromJson(core.Map _json) { + if (_json.containsKey("additionalData")) { + additionalData = _json["additionalData"]; + } + if (_json.containsKey("duration")) { + duration = _json["duration"]; + } + if (_json.containsKey("expirationTimestamp")) { + expirationTimestamp = _json["expirationTimestamp"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("policyName")) { + policyName = _json["policyName"]; + } + if (_json.containsKey("qrCode")) { + qrCode = _json["qrCode"]; + } + 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 (additionalData != null) { + _json["additionalData"] = additionalData; + } + if (duration != null) { + _json["duration"] = duration; + } + if (expirationTimestamp != null) { + _json["expirationTimestamp"] = expirationTimestamp; + } + if (name != null) { + _json["name"] = name; + } + if (policyName != null) { + _json["policyName"] = policyName; + } + if (qrCode != null) { + _json["qrCode"] = qrCode; + } + if (value != null) { + _json["value"] = value; + } + return _json; + } +} + +/** The configuration applied to an enterprise. */ +class Enterprise { + /** + * Whether app auto-approval is enabled. When enabled, apps installed via + * policy for this enterprise have all permissions automatically approved. + * When enabled, it is the caller's responsibility to display the permissions + * required by an app to the enterprise admin before setting the app to be + * installed in a policy. + */ + core.bool appAutoApprovalEnabled; + /** The notification types to enable via Google Cloud Pub/Sub. */ + core.List<core.String> enabledNotificationTypes; + /** The name of the enterprise as it will appear to users. */ + core.String enterpriseDisplayName; + /** + * An image displayed as a logo during device provisioning. Supported types + * are: image/bmp, image/gif, image/x-ico, image/jpeg, image/png, image/webp, + * image/vnd.wap.wbmp, image/x-adobe-dng. + */ + ExternalData logo; + /** + * The name of the enterprise which is generated by the server during + * creation, in the form + * `enterprises/{enterpriseId}` + */ + core.String name; + /** + * A color in RGB format indicating the predominant color to display in the + * device management app UI. The color components are stored as follows: + * `(red << 16) | (green << 8) | blue`, where each component may take a value + * between 0 and 255 inclusive. + */ + core.int primaryColor; + /** + * When Cloud Pub/Sub notifications are enabled, this field is required to + * indicate the topic to which the notifications will be published. The format + * of this field is `projects/{project}/topics/{topic}`. You must have granted + * the publish permission on this topic to + * android-cloud-policy@system.gserviceaccount.com + */ + core.String pubsubTopic; + + Enterprise(); + + Enterprise.fromJson(core.Map _json) { + if (_json.containsKey("appAutoApprovalEnabled")) { + appAutoApprovalEnabled = _json["appAutoApprovalEnabled"]; + } + if (_json.containsKey("enabledNotificationTypes")) { + enabledNotificationTypes = _json["enabledNotificationTypes"]; + } + if (_json.containsKey("enterpriseDisplayName")) { + enterpriseDisplayName = _json["enterpriseDisplayName"]; + } + if (_json.containsKey("logo")) { + logo = new ExternalData.fromJson(_json["logo"]); + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("primaryColor")) { + primaryColor = _json["primaryColor"]; + } + if (_json.containsKey("pubsubTopic")) { + pubsubTopic = _json["pubsubTopic"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (appAutoApprovalEnabled != null) { + _json["appAutoApprovalEnabled"] = appAutoApprovalEnabled; + } + if (enabledNotificationTypes != null) { + _json["enabledNotificationTypes"] = enabledNotificationTypes; + } + if (enterpriseDisplayName != null) { + _json["enterpriseDisplayName"] = enterpriseDisplayName; + } + if (logo != null) { + _json["logo"] = (logo).toJson(); + } + if (name != null) { + _json["name"] = name; + } + if (primaryColor != null) { + _json["primaryColor"] = primaryColor; + } + if (pubsubTopic != null) { + _json["pubsubTopic"] = pubsubTopic; + } + return _json; + } +} + +/** + * Data hosted at an external location. The data is to be downloaded by Android + * Device Policy and verified against the hash. + */ +class ExternalData { + /** + * The base-64 encoded SHA-256 hash of the content hosted at url. If the + * content does not match this hash, Android Device Policy will not use the + * data. + */ + core.String sha256Hash; + /** + * The absolute URL to the data, which must use either the http or https + * scheme. Android Device Policy does not provide any credentials in the GET + * request, so the URL must be publicly accessible. Including a long, random + * component in the URL may be used to prevent attackers from discovering the + * URL. + */ + core.String url; + + ExternalData(); + + ExternalData.fromJson(core.Map _json) { + if (_json.containsKey("sha256Hash")) { + sha256Hash = _json["sha256Hash"]; + } + 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 (sha256Hash != null) { + _json["sha256Hash"] = sha256Hash; + } + if (url != null) { + _json["url"] = url; + } + return _json; + } +} + +/** + * Information about device hardware. The fields related to temperature + * thresholds are only available when hardwareStatusEnabled is true in the + * device's policy. + */ +class HardwareInfo { + /** + * Battery shutdown temperature thresholds in Celsius for each battery on the + * device. + */ + core.List<core.double> batteryShutdownTemperatures; + /** + * Battery throttling temperature thresholds in Celsius for each battery on + * the device. + */ + core.List<core.double> batteryThrottlingTemperatures; + /** Brand of the device, e.g. `Google`. */ + core.String brand; + /** + * CPU shutdown temperature thresholds in Celsius for each CPU on the device. + */ + core.List<core.double> cpuShutdownTemperatures; + /** + * CPU throttling temperature thresholds in Celsius for each CPU on the + * device. + */ + core.List<core.double> cpuThrottlingTemperatures; + /** Baseband version, e.g. `MDM9625_104662.22.05.34p`. */ + core.String deviceBasebandVersion; + /** + * GPU shutdown temperature thresholds in Celsius for each GPU on the device. + */ + core.List<core.double> gpuShutdownTemperatures; + /** + * GPU throttling temperature thresholds in Celsius for each GPU on the + * device. + */ + core.List<core.double> gpuThrottlingTemperatures; + /** Name of the hardware, e.g. `Angler`. */ + core.String hardware; + /** Manufacturer, e.g. `Motorola`. */ + core.String manufacturer; + /** The model of the device, e.g. `Asus Nexus 7`. */ + core.String model; + /** The device serial number. */ + core.String serialNumber; + /** Device skin shutdown temperature thresholds in Celsius. */ + core.List<core.double> skinShutdownTemperatures; + /** Device skin throttling temperature thresholds in Celsius. */ + core.List<core.double> skinThrottlingTemperatures; + + HardwareInfo(); + + HardwareInfo.fromJson(core.Map _json) { + if (_json.containsKey("batteryShutdownTemperatures")) { + batteryShutdownTemperatures = _json["batteryShutdownTemperatures"]; + } + if (_json.containsKey("batteryThrottlingTemperatures")) { + batteryThrottlingTemperatures = _json["batteryThrottlingTemperatures"]; + } + if (_json.containsKey("brand")) { + brand = _json["brand"]; + } + if (_json.containsKey("cpuShutdownTemperatures")) { + cpuShutdownTemperatures = _json["cpuShutdownTemperatures"]; + } + if (_json.containsKey("cpuThrottlingTemperatures")) { + cpuThrottlingTemperatures = _json["cpuThrottlingTemperatures"]; + } + if (_json.containsKey("deviceBasebandVersion")) { + deviceBasebandVersion = _json["deviceBasebandVersion"]; + } + if (_json.containsKey("gpuShutdownTemperatures")) { + gpuShutdownTemperatures = _json["gpuShutdownTemperatures"]; + } + if (_json.containsKey("gpuThrottlingTemperatures")) { + gpuThrottlingTemperatures = _json["gpuThrottlingTemperatures"]; + } + if (_json.containsKey("hardware")) { + hardware = _json["hardware"]; + } + if (_json.containsKey("manufacturer")) { + manufacturer = _json["manufacturer"]; + } + if (_json.containsKey("model")) { + model = _json["model"]; + } + if (_json.containsKey("serialNumber")) { + serialNumber = _json["serialNumber"]; + } + if (_json.containsKey("skinShutdownTemperatures")) { + skinShutdownTemperatures = _json["skinShutdownTemperatures"]; + } + if (_json.containsKey("skinThrottlingTemperatures")) { + skinThrottlingTemperatures = _json["skinThrottlingTemperatures"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (batteryShutdownTemperatures != null) { + _json["batteryShutdownTemperatures"] = batteryShutdownTemperatures; + } + if (batteryThrottlingTemperatures != null) { + _json["batteryThrottlingTemperatures"] = batteryThrottlingTemperatures; + } + if (brand != null) { + _json["brand"] = brand; + } + if (cpuShutdownTemperatures != null) { + _json["cpuShutdownTemperatures"] = cpuShutdownTemperatures; + } + if (cpuThrottlingTemperatures != null) { + _json["cpuThrottlingTemperatures"] = cpuThrottlingTemperatures; + } + if (deviceBasebandVersion != null) { + _json["deviceBasebandVersion"] = deviceBasebandVersion; + } + if (gpuShutdownTemperatures != null) { + _json["gpuShutdownTemperatures"] = gpuShutdownTemperatures; + } + if (gpuThrottlingTemperatures != null) { + _json["gpuThrottlingTemperatures"] = gpuThrottlingTemperatures; + } + if (hardware != null) { + _json["hardware"] = hardware; + } + if (manufacturer != null) { + _json["manufacturer"] = manufacturer; + } + if (model != null) { + _json["model"] = model; + } + if (serialNumber != null) { + _json["serialNumber"] = serialNumber; + } + if (skinShutdownTemperatures != null) { + _json["skinShutdownTemperatures"] = skinShutdownTemperatures; + } + if (skinThrottlingTemperatures != null) { + _json["skinThrottlingTemperatures"] = skinThrottlingTemperatures; + } + return _json; + } +} + +/** + * Hardware status. Temperatures may be compared to the temperature thresholds + * available in `hardwareInfo` to determine hardware health. + */ +class HardwareStatus { + /** + * Current battery temperatures in Celsius for each battery on the device. + */ + core.List<core.double> batteryTemperatures; + /** Current CPU temperatures in Celsius for each CPU on the device. */ + core.List<core.double> cpuTemperatures; + /** + * CPU usages in percentage for each core available on the device. + * Usage is 0 for each unplugged core. Empty array implies that CPU usage + * is not supported in the system. + */ + core.List<core.double> cpuUsages; + /** The time the measurements were taken. */ + core.String createTime; + /** + * Fan speeds in RPM for each fan on the device. Empty array means that there + * are no fans or fan speed is not supported on the system. + */ + core.List<core.double> fanSpeeds; + /** Current GPU temperatures in Celsius for each GPU on the device. */ + core.List<core.double> gpuTemperatures; + /** Current device skin temperatures in Celsius. */ + core.List<core.double> skinTemperatures; + + HardwareStatus(); + + HardwareStatus.fromJson(core.Map _json) { + if (_json.containsKey("batteryTemperatures")) { + batteryTemperatures = _json["batteryTemperatures"]; + } + if (_json.containsKey("cpuTemperatures")) { + cpuTemperatures = _json["cpuTemperatures"]; + } + if (_json.containsKey("cpuUsages")) { + cpuUsages = _json["cpuUsages"]; + } + if (_json.containsKey("createTime")) { + createTime = _json["createTime"]; + } + if (_json.containsKey("fanSpeeds")) { + fanSpeeds = _json["fanSpeeds"]; + } + if (_json.containsKey("gpuTemperatures")) { + gpuTemperatures = _json["gpuTemperatures"]; + } + if (_json.containsKey("skinTemperatures")) { + skinTemperatures = _json["skinTemperatures"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (batteryTemperatures != null) { + _json["batteryTemperatures"] = batteryTemperatures; + } + if (cpuTemperatures != null) { + _json["cpuTemperatures"] = cpuTemperatures; + } + if (cpuUsages != null) { + _json["cpuUsages"] = cpuUsages; + } + if (createTime != null) { + _json["createTime"] = createTime; + } + if (fanSpeeds != null) { + _json["fanSpeeds"] = fanSpeeds; + } + if (gpuTemperatures != null) { + _json["gpuTemperatures"] = gpuTemperatures; + } + if (skinTemperatures != null) { + _json["skinTemperatures"] = skinTemperatures; + } + return _json; + } +} + +/** Response to a request to list devices for a given enterprise. */ +class ListDevicesResponse { + /** The list of devices. */ + core.List<Device> devices; + /** If there are more results, a token to retrieve next page of results. */ + core.String nextPageToken; + + ListDevicesResponse(); + + ListDevicesResponse.fromJson(core.Map _json) { + if (_json.containsKey("devices")) { + devices = _json["devices"].map((value) => new Device.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 (devices != null) { + _json["devices"] = devices.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + +/** The response message for Operations.ListOperations. */ +class ListOperationsResponse { + /** The standard List next-page token. */ + core.String nextPageToken; + /** A list of operations that matches the specified filter in the request. */ + core.List<Operation> operations; + + ListOperationsResponse(); + + ListOperationsResponse.fromJson(core.Map _json) { + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("operations")) { + operations = _json["operations"].map((value) => new Operation.fromJson(value)).toList(); + } + } + + core.Map<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; + } +} + +/** Response to a request to list policies for a given enterprise. */ +class ListPoliciesResponse { + /** If there are more results, a token to retrieve next page of results. */ + core.String nextPageToken; + /** The list of policies. */ + core.List<Policy> policies; + + ListPoliciesResponse(); + + ListPoliciesResponse.fromJson(core.Map _json) { + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("policies")) { + policies = _json["policies"].map((value) => new Policy.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 (policies != null) { + _json["policies"] = policies.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** Managed property. */ +class ManagedProperty { + /** + * The default value of the properties. `BUNDLE_ARRAY` properties + * never have a default value. + * + * 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.Object defaultValue; + /** + * A longer description of the property, giving more detail of what it + * affects. Localized. + */ + core.String description; + /** + * For `CHOICE` or `MULTISELECT` properties, the list + * of possible entries. + */ + core.List<ManagedPropertyEntry> entries; + /** + * The unique key that the application uses to identify the property, + * e.g. "com.google.android.gm.fieldname". + */ + core.String key; + /** + * For `BUNDLE_ARRAY` properties, the list of nested properties. A + * `BUNDLE_ARRAY` property is at most two levels deep. + */ + core.List<ManagedProperty> nestedProperties; + /** The name of the property. Localized. */ + core.String title; + /** + * The type of the property. + * Possible string values are: + * - "MANAGED_PROPERTY_TYPE_UNSPECIFIED" : Not used. + * - "BOOL" : A property of boolean type. + * - "STRING" : A property of string type. + * - "INTEGER" : A property of integer type. + * - "CHOICE" : A choice of one item from a set. + * - "MULTISELECT" : A choice of multiple items from a set. + * - "HIDDEN" : A hidden restriction of string type (the default value can be + * used + * to pass along information that cannot be modified, such as a version + * code). + * - "BUNDLE_ARRAY" : An array of property bundles. + */ + core.String type; + + ManagedProperty(); + + ManagedProperty.fromJson(core.Map _json) { + if (_json.containsKey("defaultValue")) { + defaultValue = _json["defaultValue"]; + } + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("entries")) { + entries = _json["entries"].map((value) => new ManagedPropertyEntry.fromJson(value)).toList(); + } + if (_json.containsKey("key")) { + key = _json["key"]; + } + if (_json.containsKey("nestedProperties")) { + nestedProperties = _json["nestedProperties"].map((value) => new ManagedProperty.fromJson(value)).toList(); + } + if (_json.containsKey("title")) { + title = _json["title"]; + } + 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 (defaultValue != null) { + _json["defaultValue"] = defaultValue; + } + if (description != null) { + _json["description"] = description; + } + if (entries != null) { + _json["entries"] = entries.map((value) => (value).toJson()).toList(); + } + if (key != null) { + _json["key"] = key; + } + if (nestedProperties != null) { + _json["nestedProperties"] = nestedProperties.map((value) => (value).toJson()).toList(); + } + if (title != null) { + _json["title"] = title; + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +/** An entry of a managed property. */ +class ManagedPropertyEntry { + /** The human-readable name of the value. Localized. */ + core.String name; + /** + * The machine-readable value of the entry, which should be used in the + * configuration. Not localized. + */ + core.String value; + + ManagedPropertyEntry(); + + ManagedPropertyEntry.fromJson(core.Map _json) { + if (_json.containsKey("name")) { + name = _json["name"]; + } + 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 (value != null) { + _json["value"] = value; + } + return _json; + } +} + +/** An event related to memory and storage measurements. */ +class MemoryEvent { + /** + * The number of free bytes in the medium, or for `EXTERNAL_STORAGE_DETECTED`, + * the total capacity in bytes of the storage medium. + */ + core.String byteCount; + /** The creation time of the event. */ + core.String createTime; + /** + * Event type. + * Possible string values are: + * - "MEMORY_EVENT_TYPE_UNSPECIFIED" : Unspecified. No events have this type. + * - "RAM_MEASURED" : Free space in RAM was measured. + * - "INTERNAL_STORAGE_MEASURED" : Free space in internal storage was + * measured. + * - "EXTERNAL_STORAGE_DETECTED" : A new external storage medium was detected. + * The reported byte count is + * the total capacity of the storage medium. + * - "EXTERNAL_STORAGE_REMOVED" : An external storage medium was removed. The + * reported byte count is zero. + * - "EXTERNAL_STORAGE_MEASURED" : Free space in an external storage medium + * was measured. + */ + core.String eventType; + + MemoryEvent(); + + MemoryEvent.fromJson(core.Map _json) { + if (_json.containsKey("byteCount")) { + byteCount = _json["byteCount"]; + } + 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 (byteCount != null) { + _json["byteCount"] = byteCount; + } + if (createTime != null) { + _json["createTime"] = createTime; + } + if (eventType != null) { + _json["eventType"] = eventType; + } + return _json; + } +} + +/** Information about device memory and storage. */ +class MemoryInfo { + /** Total internal storage on device in bytes. */ + core.String totalInternalStorage; + /** Total RAM on device in bytes. */ + core.String totalRam; + + MemoryInfo(); + + MemoryInfo.fromJson(core.Map _json) { + if (_json.containsKey("totalInternalStorage")) { + totalInternalStorage = _json["totalInternalStorage"]; + } + if (_json.containsKey("totalRam")) { + totalRam = _json["totalRam"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (totalInternalStorage != null) { + _json["totalInternalStorage"] = totalInternalStorage; + } + if (totalRam != null) { + _json["totalRam"] = totalRam; + } + return _json; + } +} + +/** Device network info. */ +class NetworkInfo { + /** IMEI number of the GSM device, e.g. `A1000031212`. */ + core.String imei; + /** MEID number of the CDMA device, e.g. `A00000292788E1`. */ + core.String meid; + /** WiFi MAC address of the device, e.g. `7c:11:11:11:11:11`. */ + core.String wifiMacAddress; + + NetworkInfo(); + + NetworkInfo.fromJson(core.Map _json) { + if (_json.containsKey("imei")) { + imei = _json["imei"]; + } + if (_json.containsKey("meid")) { + meid = _json["meid"]; + } + if (_json.containsKey("wifiMacAddress")) { + wifiMacAddress = _json["wifiMacAddress"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (imei != null) { + _json["imei"] = imei; + } + if (meid != null) { + _json["meid"] = meid; + } + if (wifiMacAddress != null) { + _json["wifiMacAddress"] = wifiMacAddress; + } + return _json; + } +} + +/** Provides detail about non-compliance with a policy setting. */ +class NonComplianceDetail { + /** + * If the policy setting could not be applied, the current value of the + * setting on the device. + * + * 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.Object currentValue; + /** + * For settings with nested fields, if a particular nested field is out of + * compliance, this specifies the full path to the offending field. The path + * is formatted in the same way the policy JSON field would be referenced in + * JavaScript, that is: + * 1) For object-typed fields, the field name is followed by a dot then by a + * subfield name. + * 2) For array-typed fields, the field name is followed by the array index + * enclosed in brackets. + * For example, to indicate a problem with the `url` field in the + * `externalData` field in the 3rd application, the path would be + * `applications[2].externalData.url` + */ + core.String fieldPath; + /** + * If `package_name` is set and the non-compliance reason is + * `APP_NOT_INSTALLED`, the detailed reason the app cannot be installed. + * Possible string values are: + * - "INSTALLATION_FAILURE_REASON_UNSPECIFIED" : This value is disallowed. + * - "INSTALLATION_FAILURE_REASON_UNKNOWN" : An unknown condition is + * preventing the app from being installed. Some + * potential reaons are that the device does not have enough storage, the + * device network connection is unreliable, or the installation is taking + * longer than expected. The installation will be retried automatically. + * - "IN_PROGRESS" : The installation is still in progress. + * - "NOT_FOUND" : The app was not found in Play. + * - "NOT_COMPATIBLE_WITH_DEVICE" : The app is incompatible with the device. + * - "NOT_APPROVED" : The app has not been approved by the admin. + * - "PERMISSIONS_NOT_ACCEPTED" : The app has new permissions that have not + * been accepted by the admin. + * - "NOT_AVAILABLE_IN_COUNTRY" : The app is not available in the user's + * country. + * - "NO_LICENSES_REMAINING" : There are no more licenses to assign to the + * user. + * - "NOT_ENROLLED" : The enterprise is no longer enrolled with Play for Work + * or Android Device + * Policy is not enabled for the enterprise. + */ + core.String installationFailureReason; + /** + * The reason the device is not in compliance with the setting. + * Possible string values are: + * - "NON_COMPLIANCE_REASON_UNSPECIFIED" : This value is disallowed. + * - "API_LEVEL" : The setting is not supported in the API level of Android OS + * version the + * device is running. + * - "ADMIN_TYPE" : The admin type (profile owner, device owner, etc.) does + * not 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. + * - "APP_NOT_INSTALLED" : The application required to implement the policy is + * not installed. + * - "UNSUPPORTED" : The policy is not supported by the version of Android + * Device Policy on + * the device. + * - "APP_INSTALLED" : A blocked application is installed. + * - "PENDING" : The setting was not applied yet at the time of the report, + * but is + * expected to be applied shortly. + * - "APP_INCOMPATIBLE" : The setting cannot be applied to the application + * because its target SDK + * version is not high enough. + */ + core.String nonComplianceReason; + /** + * The package name indicating which application is out of compliance, if + * applicable. + */ + core.String packageName; + /** + * The name of the policy setting. This is the JSON field name of a top-level + * [`Policy`](/android/management/reference/rest/v1/enterprises.policies#Policy) + * field. + */ + core.String settingName; + + NonComplianceDetail(); + + NonComplianceDetail.fromJson(core.Map _json) { + if (_json.containsKey("currentValue")) { + currentValue = _json["currentValue"]; + } + if (_json.containsKey("fieldPath")) { + fieldPath = _json["fieldPath"]; + } + if (_json.containsKey("installationFailureReason")) { + installationFailureReason = _json["installationFailureReason"]; + } + if (_json.containsKey("nonComplianceReason")) { + nonComplianceReason = _json["nonComplianceReason"]; + } + if (_json.containsKey("packageName")) { + packageName = _json["packageName"]; + } + if (_json.containsKey("settingName")) { + settingName = _json["settingName"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (currentValue != null) { + _json["currentValue"] = currentValue; + } + if (fieldPath != null) { + _json["fieldPath"] = fieldPath; + } + if (installationFailureReason != null) { + _json["installationFailureReason"] = installationFailureReason; + } + if (nonComplianceReason != null) { + _json["nonComplianceReason"] = nonComplianceReason; + } + if (packageName != null) { + _json["packageName"] = packageName; + } + if (settingName != null) { + _json["settingName"] = settingName; + } + return _json; + } +} + +/** + * A compliance rule condition which is satisfied if there exists *any* + * matching + * [`NonComplianceDetail`](/android/management/reference/rest/v1/enterprises.devices#NonComplianceDetail) + * for the device. A `NonComplianceDetail` matches a + * `NonComplianceDetailCondition` if *all* the fields which are set within the + * `NonComplianceDetailCondition` match the corresponding `NonComplianceDetail` + * fields. + */ +class NonComplianceDetailCondition { + /** + * The reason the device is not in compliance with the setting. If not set, + * then this condition matches any reason. + * Possible string values are: + * - "NON_COMPLIANCE_REASON_UNSPECIFIED" : This value is disallowed. + * - "API_LEVEL" : The setting is not supported in the API level of Android OS + * version the + * device is running. + * - "ADMIN_TYPE" : The admin type (profile owner, device owner, etc.) does + * not 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. + * - "APP_NOT_INSTALLED" : The application required to implement the policy is + * not installed. + * - "UNSUPPORTED" : The policy is not supported by the version of Android + * Device Policy on + * the device. + * - "APP_INSTALLED" : A blocked application is installed. + * - "PENDING" : The setting was not applied yet at the time of the report, + * but is + * expected to be applied shortly. + * - "APP_INCOMPATIBLE" : The setting cannot be applied to the application + * because its target SDK + * version is not high enough. + */ + core.String nonComplianceReason; + /** + * The package name indicating which application is out of compliance. If not + * set, then this condition matches any package name. If this field is set, + * then `setting_name` must be unset or set to `applications`; otherwise, the + * condition would never be satisfied. + */ + core.String packageName; + /** + * The name of the policy setting. This is the JSON field name of a top-level + * [`Policy`](/android/management/reference/rest/v1/enterprises.policies#Policy) + * field. If not set, then this condition matches any setting name. + */ + core.String settingName; + + NonComplianceDetailCondition(); + + NonComplianceDetailCondition.fromJson(core.Map _json) { + if (_json.containsKey("nonComplianceReason")) { + nonComplianceReason = _json["nonComplianceReason"]; + } + if (_json.containsKey("packageName")) { + packageName = _json["packageName"]; + } + if (_json.containsKey("settingName")) { + settingName = _json["settingName"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (nonComplianceReason != null) { + _json["nonComplianceReason"] = nonComplianceReason; + } + if (packageName != null) { + _json["packageName"] = packageName; + } + if (settingName != null) { + _json["settingName"] = settingName; + } + return _json; + } +} + +/** + * This resource represents a long-running operation that is the result of a + * network API call. + */ +class Operation { + /** + * If the value is `false`, it means the operation is still in progress. + * If true, the operation is completed, and either `error` or `response` is + * available. + */ + core.bool done; + /** The error result of the operation in case of failure or cancellation. */ + Status error; + /** + * Service-specific metadata associated with the operation. It typically + * contains progress information and common metadata such as create time. + * Some services might not provide such metadata. Any method that returns a + * long-running operation should document the metadata type, if any. + * + * The values for Object must be JSON objects. It can consist of `num`, + * `String`, `bool` and `null` as well as `Map` and `List` values. + */ + core.Map<core.String, core.Object> metadata; + /** + * The server-assigned name, which is only unique within the same service that + * originally returns it. If you use the default HTTP mapping, the + * `name` should have the format of `operations/some/unique/name`. + */ + core.String name; + /** + * The normal response of the operation in case of success. If the original + * method returns no data on success, such as `Delete`, the response is + * `google.protobuf.Empty`. If the original method is standard + * `Get`/`Create`/`Update`, the response should be the resource. For other + * methods, the response should have the type `XxxResponse`, where `Xxx` + * is the original method name. For example, if the original method name + * is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * + * The values for Object must be JSON objects. It can consist of `num`, + * `String`, `bool` and `null` as well as `Map` and `List` values. + */ + core.Map<core.String, core.Object> response; + + Operation(); + + Operation.fromJson(core.Map _json) { + if (_json.containsKey("done")) { + done = _json["done"]; + } + if (_json.containsKey("error")) { + error = new Status.fromJson(_json["error"]); + } + if (_json.containsKey("metadata")) { + metadata = _json["metadata"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("response")) { + response = _json["response"]; + } + } + + core.Map<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; + } +} + +/** Requirements for the password used to unlock a device. */ +class PasswordRequirements { + /** + * A device will be wiped after too many incorrect device-unlock passwords + * have been entered. A value of 0 means there is no restriction. + */ + core.int maximumFailedPasswordsForWipe; + /** Password expiration timeout. */ + core.String passwordExpirationTimeout; + /** + * The length of the password history. After setting this, the user will + * not be able to enter a new password that is the same as any password in + * the history. A value of 0 means there is no restriction. + */ + core.int passwordHistoryLength; + /** + * The minimum allowed password length. A value of 0 means there is no + * restriction. + * Only enforced when `password_quality` is `NUMERIC`, `NUMERIC_COMPLEX`, + * `ALPHABETIC`, `ALPHANUMERIC`, or `COMPLEX`. + */ + core.int passwordMinimumLength; + /** + * Minimum number of letters required in the password. + * Only enforced when `password_quality` is `COMPLEX`. + */ + core.int passwordMinimumLetters; + /** + * Minimum number of lower case letters required in the password. + * Only enforced when `password_quality` is `COMPLEX`. + */ + core.int passwordMinimumLowerCase; + /** + * Minimum number of non-letter characters (numerical digits or symbols) + * required in the password. + * Only enforced when `password_quality` is `COMPLEX`. + */ + core.int passwordMinimumNonLetter; + /** + * Minimum number of numerical digits required in the password. + * Only enforced when `password_quality` is `COMPLEX`. + */ + core.int passwordMinimumNumeric; + /** + * Minimum number of symbols required in the password. + * Only enforced when `password_quality` is `COMPLEX`. + */ + core.int passwordMinimumSymbols; + /** + * Minimum number of upper case letters required in the password. + * Only enforced when `password_quality` is `COMPLEX`. + */ + core.int passwordMinimumUpperCase; + /** + * The required password quality. + * Possible string values are: + * - "PASSWORD_QUALITY_UNSPECIFIED" : There are no requirements for the + * password. + * - "SOMETHING" : There must be a password, but there are no restrictions on + * its + * characters. + * - "NUMERIC" : The password must contain numeric characters. + * - "NUMERIC_COMPLEX" : The password must contain numeric characters with no + * repeating (4444) or + * ordered (1234, 4321, 2468) sequences. + * - "ALPHABETIC" : The password must contain alphabetic (or symbol) + * characters. + * - "ALPHANUMERIC" : The password must contain at both numeric and alphabetic + * (or symbol) + * characters. + * - "COMPLEX" : The password must contain at least a letter, a numerical + * digit and a + * special symbol. Other password constraints, for example, + * `password_minimum_letters` are enforced. + */ + core.String passwordQuality; + + PasswordRequirements(); + + PasswordRequirements.fromJson(core.Map _json) { + if (_json.containsKey("maximumFailedPasswordsForWipe")) { + maximumFailedPasswordsForWipe = _json["maximumFailedPasswordsForWipe"]; + } + if (_json.containsKey("passwordExpirationTimeout")) { + passwordExpirationTimeout = _json["passwordExpirationTimeout"]; + } + if (_json.containsKey("passwordHistoryLength")) { + passwordHistoryLength = _json["passwordHistoryLength"]; + } + if (_json.containsKey("passwordMinimumLength")) { + passwordMinimumLength = _json["passwordMinimumLength"]; + } + if (_json.containsKey("passwordMinimumLetters")) { + passwordMinimumLetters = _json["passwordMinimumLetters"]; + } + if (_json.containsKey("passwordMinimumLowerCase")) { + passwordMinimumLowerCase = _json["passwordMinimumLowerCase"]; + } + if (_json.containsKey("passwordMinimumNonLetter")) { + passwordMinimumNonLetter = _json["passwordMinimumNonLetter"]; + } + if (_json.containsKey("passwordMinimumNumeric")) { + passwordMinimumNumeric = _json["passwordMinimumNumeric"]; + } + if (_json.containsKey("passwordMinimumSymbols")) { + passwordMinimumSymbols = _json["passwordMinimumSymbols"]; + } + if (_json.containsKey("passwordMinimumUpperCase")) { + passwordMinimumUpperCase = _json["passwordMinimumUpperCase"]; + } + if (_json.containsKey("passwordQuality")) { + passwordQuality = _json["passwordQuality"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (maximumFailedPasswordsForWipe != null) { + _json["maximumFailedPasswordsForWipe"] = maximumFailedPasswordsForWipe; + } + if (passwordExpirationTimeout != null) { + _json["passwordExpirationTimeout"] = passwordExpirationTimeout; + } + if (passwordHistoryLength != null) { + _json["passwordHistoryLength"] = passwordHistoryLength; + } + if (passwordMinimumLength != null) { + _json["passwordMinimumLength"] = passwordMinimumLength; + } + if (passwordMinimumLetters != null) { + _json["passwordMinimumLetters"] = passwordMinimumLetters; + } + if (passwordMinimumLowerCase != null) { + _json["passwordMinimumLowerCase"] = passwordMinimumLowerCase; + } + if (passwordMinimumNonLetter != null) { + _json["passwordMinimumNonLetter"] = passwordMinimumNonLetter; + } + if (passwordMinimumNumeric != null) { + _json["passwordMinimumNumeric"] = passwordMinimumNumeric; + } + if (passwordMinimumSymbols != null) { + _json["passwordMinimumSymbols"] = passwordMinimumSymbols; + } + if (passwordMinimumUpperCase != null) { + _json["passwordMinimumUpperCase"] = passwordMinimumUpperCase; + } + if (passwordQuality != null) { + _json["passwordQuality"] = passwordQuality; + } + return _json; + } +} + +/** Configuration for an Android permission and its grant state. */ +class PermissionGrant { + /** The android permission, e.g. `android.permission.READ_CALENDAR`. */ + core.String permission; + /** + * The policy for granting the permission. + * 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 by default. + * - "PROMPT" : Prompt the user to grant a permission. + * - "GRANT" : Automatically grant a permission. + * - "DENY" : Automatically deny a permission. + */ + core.String policy; + + PermissionGrant(); + + PermissionGrant.fromJson(core.Map _json) { + if (_json.containsKey("permission")) { + permission = _json["permission"]; + } + if (_json.containsKey("policy")) { + policy = _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 (permission != null) { + _json["permission"] = permission; + } + if (policy != null) { + _json["policy"] = policy; + } + return _json; + } +} + +/** + * A default activity for handling intents that match a particular intent + * filter. + */ +class PersistentPreferredActivity { + /** + * The intent actions to match in the filter. If any actions are included in + * the filter, then an intent's action must be one of those values for it to + * match. If no actions are included, the intent action is ignored. + */ + core.List<core.String> actions; + /** + * The intent categories to match in the filter. An intent includes the + * categories that it requires, all of which must be included in the filter in + * order to match. In other words, adding a category to the filter has no + * impact on matching unless that category is specified in the intent. + */ + core.List<core.String> categories; + /** + * The activity that should be the default intent handler. This should be an + * Android component name, e.g. `com.android.enterprise.app/.MainActivity`. + * Alternatively, the value may be the package name of an app, which causes + * Android Device Policy to choose an appropriate activity from the app to + * handle the intent. + */ + core.String receiverActivity; + + PersistentPreferredActivity(); + + PersistentPreferredActivity.fromJson(core.Map _json) { + if (_json.containsKey("actions")) { + actions = _json["actions"]; + } + if (_json.containsKey("categories")) { + categories = _json["categories"]; + } + if (_json.containsKey("receiverActivity")) { + receiverActivity = _json["receiverActivity"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (actions != null) { + _json["actions"] = actions; + } + if (categories != null) { + _json["categories"] = categories; + } + if (receiverActivity != null) { + _json["receiverActivity"] = receiverActivity; + } + return _json; + } +} + +/** A policy, which governs behavior for a device. */ +class Policy { + /** Whether adding new users and profiles is disabled. */ + core.bool addUserDisabled; + /** Whether adjusting the master volume is disabled. */ + core.bool adjustVolumeDisabled; + /** Policy applied to apps. */ + core.List<ApplicationPolicy> applications; + /** + * Whether applications other than the ones configured in `applications` are + * blocked from being installed. When set, applications that were + * installed under a previous policy but no longer appear in the policy are + * automatically uninstalled. + */ + core.bool blockApplicationsEnabled; + /** Whether all cameras on the device are disabled. */ + core.bool cameraDisabled; + /** + * 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 + * a maximum limit of 100 rules. + */ + core.List<ComplianceRule> complianceRules; + /** Whether the user is allowed to enable debugging features. */ + core.bool debuggingFeaturesAllowed; + /** + * The default permission policy for requests for runtime permissions. + * 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 by default. + * - "PROMPT" : Prompt the user to grant a permission. + * - "GRANT" : Automatically grant a permission. + * - "DENY" : Automatically deny a permission. + */ + core.String defaultPermissionPolicy; + /** Whether factory resetting from settings is disabled. */ + core.bool factoryResetDisabled; + /** + * Email addresses of device administrators for factory reset protection. + * When the device is factory reset, it will require one of these admins to + * log in with the Google account email and password to unlock the device. + * If no admins are specified, the device will not provide factory reset + * protection. + */ + core.List<core.String> frpAdminEmails; + /** + * Whether the user is allowed to enable the "Unknown Sources" setting, + * which allows installation of apps from unknown sources. + */ + core.bool installUnknownSourcesAllowed; + /** Whether the keyguard is disabled. */ + core.bool keyguardDisabled; + /** + * Maximum time in milliseconds for user activity until the device will lock. + * A value of 0 means there is no restriction. + */ + core.String maximumTimeToLock; + /** Whether adding or removing accounts is disabled. */ + core.bool modifyAccountsDisabled; + /** + * The name of the policy in the form + * `enterprises/{enterpriseId}/policies/{policyId}` + */ + core.String name; + /** + * Flag to specify if network escape hatch is enabled. If this flag has been + * enabled then upon device boot if device has no network connection, then an + * activity will be shown that allows the user to temporarily connect to a + * network to fetch the latest policy. The launched activity will time out if + * no network has been connected for a given while and will return to the + * previous activity that was shown. + */ + core.bool networkEscapeHatchEnabled; + /** + * Network configuration for the device. See + * [configure networks](/android/management/configure-networks) + * for more information. + * + * 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> openNetworkConfiguration; + /** Password requirements. */ + PasswordRequirements passwordRequirements; + /** Default intent handler activities. */ + core.List<PersistentPreferredActivity> persistentPreferredActivities; + /** Whether removing other users is disabled. */ + core.bool removeUserDisabled; + /** Whether rebooting the device into safe boot is disabled. */ + core.bool safeBootDisabled; + /** Whether screen capture is disabled. */ + core.bool screenCaptureDisabled; + /** + * Whether the status bar is disabled. This disables notifications, quick + * settings and other screen overlays that allow escape from full-screen mode. + */ + core.bool statusBarDisabled; + /** Status reporting settings */ + StatusReportingSettings statusReportingSettings; + /** + * The battery plugged in modes for which the device stays on. When using this + * setting, it is recommended to clear `maximum_time_to_lock` so that the + * device doesn't lock itself while it stays on. + */ + core.List<core.String> stayOnPluggedModes; + /** + * The system update policy, which controls how OS updates are applied. If the + * update type is `WINDOWED` and the device has a device account, the update + * window will automatically apply to Play app updates as well. + */ + SystemUpdate systemUpdate; + /** + * Whether the microphone is muted and adjusting microphone volume is + * disabled. + */ + core.bool unmuteMicrophoneDisabled; + /** + * The version of the policy. This is a read-only field. The version is + * incremented each time the policy is updated. + */ + core.String version; + + Policy(); + + Policy.fromJson(core.Map _json) { + if (_json.containsKey("addUserDisabled")) { + addUserDisabled = _json["addUserDisabled"]; + } + if (_json.containsKey("adjustVolumeDisabled")) { + adjustVolumeDisabled = _json["adjustVolumeDisabled"]; + } + if (_json.containsKey("applications")) { + applications = _json["applications"].map((value) => new ApplicationPolicy.fromJson(value)).toList(); + } + if (_json.containsKey("blockApplicationsEnabled")) { + blockApplicationsEnabled = _json["blockApplicationsEnabled"]; + } + if (_json.containsKey("cameraDisabled")) { + cameraDisabled = _json["cameraDisabled"]; + } + if (_json.containsKey("complianceRules")) { + complianceRules = _json["complianceRules"].map((value) => new ComplianceRule.fromJson(value)).toList(); + } + if (_json.containsKey("debuggingFeaturesAllowed")) { + debuggingFeaturesAllowed = _json["debuggingFeaturesAllowed"]; + } + if (_json.containsKey("defaultPermissionPolicy")) { + defaultPermissionPolicy = _json["defaultPermissionPolicy"]; + } + if (_json.containsKey("factoryResetDisabled")) { + factoryResetDisabled = _json["factoryResetDisabled"]; + } + if (_json.containsKey("frpAdminEmails")) { + frpAdminEmails = _json["frpAdminEmails"]; + } + if (_json.containsKey("installUnknownSourcesAllowed")) { + installUnknownSourcesAllowed = _json["installUnknownSourcesAllowed"]; + } + if (_json.containsKey("keyguardDisabled")) { + keyguardDisabled = _json["keyguardDisabled"]; + } + if (_json.containsKey("maximumTimeToLock")) { + maximumTimeToLock = _json["maximumTimeToLock"]; + } + if (_json.containsKey("modifyAccountsDisabled")) { + modifyAccountsDisabled = _json["modifyAccountsDisabled"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("networkEscapeHatchEnabled")) { + networkEscapeHatchEnabled = _json["networkEscapeHatchEnabled"]; + } + if (_json.containsKey("openNetworkConfiguration")) { + openNetworkConfiguration = _json["openNetworkConfiguration"]; + } + if (_json.containsKey("passwordRequirements")) { + passwordRequirements = new PasswordRequirements.fromJson(_json["passwordRequirements"]); + } + if (_json.containsKey("persistentPreferredActivities")) { + persistentPreferredActivities = _json["persistentPreferredActivities"].map((value) => new PersistentPreferredActivity.fromJson(value)).toList(); + } + if (_json.containsKey("removeUserDisabled")) { + removeUserDisabled = _json["removeUserDisabled"]; + } + if (_json.containsKey("safeBootDisabled")) { + safeBootDisabled = _json["safeBootDisabled"]; + } + if (_json.containsKey("screenCaptureDisabled")) { + screenCaptureDisabled = _json["screenCaptureDisabled"]; + } + if (_json.containsKey("statusBarDisabled")) { + statusBarDisabled = _json["statusBarDisabled"]; + } + if (_json.containsKey("statusReportingSettings")) { + statusReportingSettings = new StatusReportingSettings.fromJson(_json["statusReportingSettings"]); + } + if (_json.containsKey("stayOnPluggedModes")) { + stayOnPluggedModes = _json["stayOnPluggedModes"]; + } + if (_json.containsKey("systemUpdate")) { + systemUpdate = new SystemUpdate.fromJson(_json["systemUpdate"]); + } + if (_json.containsKey("unmuteMicrophoneDisabled")) { + unmuteMicrophoneDisabled = _json["unmuteMicrophoneDisabled"]; + } + 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 (addUserDisabled != null) { + _json["addUserDisabled"] = addUserDisabled; + } + if (adjustVolumeDisabled != null) { + _json["adjustVolumeDisabled"] = adjustVolumeDisabled; + } + if (applications != null) { + _json["applications"] = applications.map((value) => (value).toJson()).toList(); + } + if (blockApplicationsEnabled != null) { + _json["blockApplicationsEnabled"] = blockApplicationsEnabled; + } + if (cameraDisabled != null) { + _json["cameraDisabled"] = cameraDisabled; + } + if (complianceRules != null) { + _json["complianceRules"] = complianceRules.map((value) => (value).toJson()).toList(); + } + if (debuggingFeaturesAllowed != null) { + _json["debuggingFeaturesAllowed"] = debuggingFeaturesAllowed; + } + if (defaultPermissionPolicy != null) { + _json["defaultPermissionPolicy"] = defaultPermissionPolicy; + } + if (factoryResetDisabled != null) { + _json["factoryResetDisabled"] = factoryResetDisabled; + } + if (frpAdminEmails != null) { + _json["frpAdminEmails"] = frpAdminEmails; + } + if (installUnknownSourcesAllowed != null) { + _json["installUnknownSourcesAllowed"] = installUnknownSourcesAllowed; + } + if (keyguardDisabled != null) { + _json["keyguardDisabled"] = keyguardDisabled; + } + if (maximumTimeToLock != null) { + _json["maximumTimeToLock"] = maximumTimeToLock; + } + if (modifyAccountsDisabled != null) { + _json["modifyAccountsDisabled"] = modifyAccountsDisabled; + } + if (name != null) { + _json["name"] = name; + } + if (networkEscapeHatchEnabled != null) { + _json["networkEscapeHatchEnabled"] = networkEscapeHatchEnabled; + } + if (openNetworkConfiguration != null) { + _json["openNetworkConfiguration"] = openNetworkConfiguration; + } + if (passwordRequirements != null) { + _json["passwordRequirements"] = (passwordRequirements).toJson(); + } + if (persistentPreferredActivities != null) { + _json["persistentPreferredActivities"] = persistentPreferredActivities.map((value) => (value).toJson()).toList(); + } + if (removeUserDisabled != null) { + _json["removeUserDisabled"] = removeUserDisabled; + } + if (safeBootDisabled != null) { + _json["safeBootDisabled"] = safeBootDisabled; + } + if (screenCaptureDisabled != null) { + _json["screenCaptureDisabled"] = screenCaptureDisabled; + } + if (statusBarDisabled != null) { + _json["statusBarDisabled"] = statusBarDisabled; + } + if (statusReportingSettings != null) { + _json["statusReportingSettings"] = (statusReportingSettings).toJson(); + } + if (stayOnPluggedModes != null) { + _json["stayOnPluggedModes"] = stayOnPluggedModes; + } + if (systemUpdate != null) { + _json["systemUpdate"] = (systemUpdate).toJson(); + } + if (unmuteMicrophoneDisabled != null) { + _json["unmuteMicrophoneDisabled"] = unmuteMicrophoneDisabled; + } + if (version != null) { + _json["version"] = version; + } + return _json; + } +} + +/** A power management event. */ +class PowerManagementEvent { + /** + * For `BATTERY_LEVEL_COLLECTED` events, the battery level as a percentage. + */ + core.double batteryLevel; + /** The creation time of the event. */ + core.String createTime; + /** + * Event type. + * Possible string values are: + * - "POWER_MANAGEMENT_EVENT_TYPE_UNSPECIFIED" : Unspecified. No events have + * this type. + * - "BATTERY_LEVEL_COLLECTED" : Battery level was measured. + * - "POWER_CONNECTED" : The device started charging. + * - "POWER_DISCONNECTED" : The device stopped charging. + * - "BATTERY_LOW" : The device entered low-power mode. + * - "BATTERY_OKAY" : The device exited low-power mode. + * - "BOOT_COMPLETED" : The device booted. + * - "SHUTDOWN" : The device shut down. + */ + core.String eventType; + + PowerManagementEvent(); + + PowerManagementEvent.fromJson(core.Map _json) { + if (_json.containsKey("batteryLevel")) { + batteryLevel = _json["batteryLevel"]; + } + 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 (batteryLevel != null) { + _json["batteryLevel"] = batteryLevel; + } + if (createTime != null) { + _json["createTime"] = createTime; + } + if (eventType != null) { + _json["eventType"] = eventType; + } + return _json; + } +} + +/** An enterprise signup URL. */ +class SignupUrl { + /** + * The name of the resource. This must be included in the + * [create + * enterprise](/android/management/reference/rest/v1/enterprises/create) + * request at the end of the signup flow. + */ + core.String name; + /** + * A URL under which the Admin can sign up for an enterprise. + * The page pointed to cannot be rendered in an iframe. + */ + core.String url; + + SignupUrl(); + + SignupUrl.fromJson(core.Map _json) { + if (_json.containsKey("name")) { + name = _json["name"]; + } + 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 (name != null) { + _json["name"] = name; + } + if (url != null) { + _json["url"] = url; + } + return _json; + } +} + +/** Information about device software. */ +class SoftwareInfo { + /** + * Android build Id string meant for displaying to the user, + * e.g. `shamu-userdebug 6.0.1 MOB30I 2756745 dev-keys`. + */ + core.String androidBuildNumber; + /** Build time. */ + core.String androidBuildTime; + /** The user visible Android version string, e.g. `6.0.1`. */ + core.String androidVersion; + /** The system bootloader version number, e.g. `0.6.7`. */ + core.String bootloaderVersion; + /** Kernel version, e.g. `2.6.32.9-g103d848`. */ + core.String deviceKernelVersion; + /** Security patch level, e.g. `2016-05-01`. */ + core.String securityPatchLevel; + + SoftwareInfo(); + + SoftwareInfo.fromJson(core.Map _json) { + if (_json.containsKey("androidBuildNumber")) { + androidBuildNumber = _json["androidBuildNumber"]; + } + if (_json.containsKey("androidBuildTime")) { + androidBuildTime = _json["androidBuildTime"]; + } + if (_json.containsKey("androidVersion")) { + androidVersion = _json["androidVersion"]; + } + if (_json.containsKey("bootloaderVersion")) { + bootloaderVersion = _json["bootloaderVersion"]; + } + if (_json.containsKey("deviceKernelVersion")) { + deviceKernelVersion = _json["deviceKernelVersion"]; + } + if (_json.containsKey("securityPatchLevel")) { + securityPatchLevel = _json["securityPatchLevel"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (androidBuildNumber != null) { + _json["androidBuildNumber"] = androidBuildNumber; + } + if (androidBuildTime != null) { + _json["androidBuildTime"] = androidBuildTime; + } + if (androidVersion != null) { + _json["androidVersion"] = androidVersion; + } + if (bootloaderVersion != null) { + _json["bootloaderVersion"] = bootloaderVersion; + } + if (deviceKernelVersion != null) { + _json["deviceKernelVersion"] = deviceKernelVersion; + } + if (securityPatchLevel != null) { + _json["securityPatchLevel"] = securityPatchLevel; + } + 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"]; + } + 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; + } +} + +/** Settings controlling the behavior of status reports. */ +class StatusReportingSettings { + /** Whether displays reporting is enabled. */ + core.bool displayInfoEnabled; + /** Whether hardware status reporting is enabled. */ + core.bool hardwareStatusEnabled; + /** Whether memory info reporting is enabled. */ + core.bool memoryInfoEnabled; + /** Whether network info reporting is enabled. */ + core.bool networkInfoEnabled; + /** Whether power management event reporting is enabled. */ + core.bool powerManagementEventsEnabled; + /** Whether software info reporting is enabled. */ + core.bool softwareInfoEnabled; + + StatusReportingSettings(); + + StatusReportingSettings.fromJson(core.Map _json) { + if (_json.containsKey("displayInfoEnabled")) { + displayInfoEnabled = _json["displayInfoEnabled"]; + } + if (_json.containsKey("hardwareStatusEnabled")) { + hardwareStatusEnabled = _json["hardwareStatusEnabled"]; + } + if (_json.containsKey("memoryInfoEnabled")) { + memoryInfoEnabled = _json["memoryInfoEnabled"]; + } + if (_json.containsKey("networkInfoEnabled")) { + networkInfoEnabled = _json["networkInfoEnabled"]; + } + if (_json.containsKey("powerManagementEventsEnabled")) { + powerManagementEventsEnabled = _json["powerManagementEventsEnabled"]; + } + if (_json.containsKey("softwareInfoEnabled")) { + softwareInfoEnabled = _json["softwareInfoEnabled"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (displayInfoEnabled != null) { + _json["displayInfoEnabled"] = displayInfoEnabled; + } + if (hardwareStatusEnabled != null) { + _json["hardwareStatusEnabled"] = hardwareStatusEnabled; + } + if (memoryInfoEnabled != null) { + _json["memoryInfoEnabled"] = memoryInfoEnabled; + } + if (networkInfoEnabled != null) { + _json["networkInfoEnabled"] = networkInfoEnabled; + } + if (powerManagementEventsEnabled != null) { + _json["powerManagementEventsEnabled"] = powerManagementEventsEnabled; + } + if (softwareInfoEnabled != null) { + _json["softwareInfoEnabled"] = softwareInfoEnabled; + } + return _json; + } +} + +/** Configuration for managing system updates */ +class SystemUpdate { + /** + * If the type is `WINDOWED`, the end of the maintenance window, measured as + * the number of minutes after midnight in device local time. This value must + * be between 0 and 1439, inclusive. If this value is less than + * `start_minutes`, then the maintenance window spans midnight. If the + * maintenance window specified is smaller than 30 minutes, the actual window + * is extended to 30 minutes beyond the start time. + */ + core.int endMinutes; + /** + * If the type is `WINDOWED`, the start of the maintenance window, measured as + * the number of minutes after midnight in device local time. This value must + * be between 0 and 1439, inclusive. + */ + core.int startMinutes; + /** + * The type of system update to configure. + * Possible string values are: + * - "SYSTEM_UPDATE_TYPE_UNSPECIFIED" : Follow the default update behavior for + * the device, which typically + * requires the user to accept system updates. + * - "AUTOMATIC" : Install automatically as soon as an update is available. + * - "WINDOWED" : Install automatically within a daily maintenance window. If + * the device + * has a device account, this also configures Play apps to be updated within + * the window. This is strongly recommended for kiosk devices because this + * is the only way apps persistently pinned to the foreground can be updated + * by Play. + * - "POSTPONE" : Postpone automatic install up to a maximum of 30 days. + */ + core.String type; + + SystemUpdate(); + + SystemUpdate.fromJson(core.Map _json) { + if (_json.containsKey("endMinutes")) { + endMinutes = _json["endMinutes"]; + } + if (_json.containsKey("startMinutes")) { + startMinutes = _json["startMinutes"]; + } + 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 (endMinutes != null) { + _json["endMinutes"] = endMinutes; + } + if (startMinutes != null) { + _json["startMinutes"] = startMinutes; + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +/** + * Provides user facing message with locale info. The maximum message length is + * 4096 characters. + */ +class UserFacingMessage { + /** + * The default message that gets displayed if no localized message is + * specified, or the user's locale does not match with any of the localized + * messages. A default message must be provided if any localized messages are + * provided. + */ + core.String defaultMessage; + /** + * A map which contains <locale, message> pairs. + * The locale is a BCP 47 language code, e.g. en-US, es-ES, fr. + */ + core.Map<core.String, core.String> localizedMessages; + + UserFacingMessage(); + + UserFacingMessage.fromJson(core.Map _json) { + if (_json.containsKey("defaultMessage")) { + defaultMessage = _json["defaultMessage"]; + } + if (_json.containsKey("localizedMessages")) { + localizedMessages = _json["localizedMessages"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (defaultMessage != null) { + _json["defaultMessage"] = defaultMessage; + } + if (localizedMessages != null) { + _json["localizedMessages"] = localizedMessages; + } + return _json; + } +} + +/** A web token used to access an embeddable managed Google Play web UI. */ +class WebToken { + /** + * The name of the web token, which is generated by the server during + * creation, in the form + * `enterprises/{enterpriseId}/webTokens/{webTokenId}`. + */ + core.String name; + /** + * The URL of the parent frame hosting the iframe with the embedded UI. To + * prevent XSS, the iframe may not be hosted at other URLs. The URL must use + * the https scheme. + */ + core.String parentFrameUrl; + /** + * Permissions the admin may exercise in the embedded UI. The admin must have + * all of these permissions in order to view the UI. + */ + core.List<core.String> permissions; + /** + * The token value which is used in the hosting page to generate the iframe + * with the embedded UI. This is a read-only field generated by the server. + */ + core.String value; + + WebToken(); + + WebToken.fromJson(core.Map _json) { + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("parentFrameUrl")) { + parentFrameUrl = _json["parentFrameUrl"]; + } + if (_json.containsKey("permissions")) { + permissions = _json["permissions"]; + } + 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 (parentFrameUrl != null) { + _json["parentFrameUrl"] = parentFrameUrl; + } + if (permissions != null) { + _json["permissions"] = permissions; + } + if (value != null) { + _json["value"] = value; + } + return _json; + } +}
diff --git a/generated/googleapis/lib/appengine/v1.dart b/generated/googleapis/lib/appengine/v1.dart index c987edb..a5fcc69 100644 --- a/generated/googleapis/lib/appengine/v1.dart +++ b/generated/googleapis/lib/appengine/v1.dart
@@ -413,12 +413,12 @@ * * [appsId] - Part of `name`. The name of the operation's parent resource. * + * [pageToken] - The standard list page token. + * * [pageSize] - The standard list page size. * * [filter] - The standard list filter. * - * [pageToken] - The standard list page token. - * * Completes with a [ListOperationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -427,7 +427,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<ListOperationsResponse> list(core.String appsId, {core.int pageSize, core.String filter, core.String pageToken}) { + async.Future<ListOperationsResponse> list(core.String appsId, {core.String pageToken, core.int pageSize, core.String filter}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -438,15 +438,15 @@ if (appsId == null) { throw new core.ArgumentError("Parameter appsId 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]; - } _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operations'; @@ -623,6 +623,8 @@ * * [servicesId] - Part of `name`. See documentation of `appsId`. * + * [updateMask] - Standard field mask for the set of fields to be updated. + * * [migrateTraffic] - Set to true to gradually shift traffic to one or more * versions that you specify. By default, traffic is shifted immediately. For * gradual traffic migration, the target versions must be located within @@ -637,8 +639,6 @@ * Splitting Traffic * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic). * - * [updateMask] - Standard field mask for the set of fields to be updated. - * * Completes with a [Operation]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -647,7 +647,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> patch(Service request, core.String appsId, core.String servicesId, {core.bool migrateTraffic, core.String updateMask}) { + async.Future<Operation> patch(Service request, core.String appsId, core.String servicesId, {core.String updateMask, core.bool migrateTraffic}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -664,12 +664,12 @@ if (servicesId == null) { throw new core.ArgumentError("Parameter servicesId is required."); } - if (migrateTraffic != null) { - _queryParams["migrateTraffic"] = ["${migrateTraffic}"]; - } if (updateMask != null) { _queryParams["updateMask"] = [updateMask]; } + if (migrateTraffic != null) { + _queryParams["migrateTraffic"] = ["${migrateTraffic}"]; + } _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/' + commons.Escaper.ecapeVariable('$servicesId'); @@ -863,6 +863,8 @@ * * [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. @@ -870,8 +872,6 @@ * - "BASIC" : A BASIC. * - "FULL" : A FULL. * - * [pageToken] - Continuation token for fetching the next page of results. - * * Completes with a [ListVersionsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -880,7 +880,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<ListVersionsResponse> list(core.String appsId, core.String servicesId, {core.int pageSize, core.String view, core.String pageToken}) { + async.Future<ListVersionsResponse> list(core.String appsId, core.String servicesId, {core.String pageToken, core.int pageSize, core.String view}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -894,15 +894,15 @@ if (servicesId == null) { throw new core.ArgumentError("Parameter servicesId is required."); } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } if (view != null) { _queryParams["view"] = [view]; } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions'; @@ -1362,7 +1362,7 @@ /** * An Application resource contains the top-level configuration of an App Engine - * application. Next tag: 19 + * application. Next tag: 20 */ class Application { /** @@ -3336,6 +3336,12 @@ * removed from traffic rotation. */ class ReadinessCheck { + /** + * A maximum time limit on application initialization, measured from moment + * the application successfully replies to a healthcheck until it is ready to + * serve traffic. + */ + core.String appStartTimeout; /** Interval between health checks. */ core.String checkInterval; /** Number of consecutive failed checks required before removing traffic. */ @@ -3357,6 +3363,9 @@ ReadinessCheck(); ReadinessCheck.fromJson(core.Map _json) { + if (_json.containsKey("appStartTimeout")) { + appStartTimeout = _json["appStartTimeout"]; + } if (_json.containsKey("checkInterval")) { checkInterval = _json["checkInterval"]; } @@ -3379,6 +3388,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (appStartTimeout != null) { + _json["appStartTimeout"] = appStartTimeout; + } if (checkInterval != null) { _json["checkInterval"] = checkInterval; } @@ -3705,8 +3717,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a common set - * of message types for APIs to use. + * A list of messages that carry the error details. There 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.
diff --git a/generated/googleapis/lib/bigquery/v2.dart b/generated/googleapis/lib/bigquery/v2.dart index f879413..332dcec 100644 --- a/generated/googleapis/lib/bigquery/v2.dart +++ b/generated/googleapis/lib/bigquery/v2.dart
@@ -2888,9 +2888,14 @@ */ core.String sourceFormat; /** - * [Required] The fully-qualified URIs that point to your data in Google Cloud - * Storage. Each URI can contain one '*' wildcard character and it must come - * after the 'bucket' name. + * [Required] The fully-qualified URIs that point to your data in Google + * Cloud. For Google Cloud Storage URIs: Each URI can contain one '*' wildcard + * character and it must come after the 'bucket' name. Size limits related to + * load jobs apply to external data sources. For Google Cloud Bigtable URIs: + * Exactly one URI can be specified and it has be a fully specified and valid + * HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore + * backups: Exactly one URI can be specified, and it must end with + * '.backup_info'. Also, the '*' wildcard character is not allowed. */ core.List<core.String> sourceUris; /** @@ -3129,9 +3134,8 @@ * Specifies whether to use BigQuery's legacy SQL dialect for this query. The * default value is true. If set to false, the query will use BigQuery's * standard SQL: https://cloud.google.com/bigquery/sql-reference/ When - * useLegacySql is set to false, the values of allowLargeResults and - * flattenResults are ignored; query will be run as if allowLargeResults is - * true and flattenResults is false. + * useLegacySql is set to false, the value of flattenResults is ignored; query + * will be run as if flattenResults is false. */ core.bool useLegacySql; /** @@ -3147,13 +3151,14 @@ /** * [Optional] Specifies the action that occurs if the destination table * already exists. The following values are supported: WRITE_TRUNCATE: If the - * table already exists, BigQuery overwrites the table data. WRITE_APPEND: If - * the table already exists, BigQuery appends the data to the table. - * WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' - * error is returned in the job result. The default value is WRITE_EMPTY. Each - * action is atomic and only occurs if BigQuery is able to complete the job - * successfully. Creation, truncation and append actions occur as one atomic - * update upon job completion. + * table already exists, BigQuery overwrites the table data and uses the + * schema from the query result. WRITE_APPEND: If the table already exists, + * BigQuery appends the data to the table. WRITE_EMPTY: If the table already + * exists and contains data, a 'duplicate' error is returned in the job + * result. The default value is WRITE_EMPTY. Each action is atomic and only + * occurs if BigQuery is able to complete the job successfully. Creation, + * truncation and append actions occur as one atomic update upon job + * completion. */ core.String writeDisposition; @@ -3705,6 +3710,13 @@ } class JobStatistics3 { + /** + * [Output-only] The number of bad records encountered. Note that if the job + * has failed because of more bad records encountered than the maximum allowed + * in the load job configuration, then this number can be less than the total + * number of bad records present in the input data. + */ + core.String badRecords; /** [Output-only] Number of bytes of source data in a load job. */ core.String inputFileBytes; /** [Output-only] Number of source files in a load job. */ @@ -3723,6 +3735,9 @@ JobStatistics3(); JobStatistics3.fromJson(core.Map _json) { + if (_json.containsKey("badRecords")) { + badRecords = _json["badRecords"]; + } if (_json.containsKey("inputFileBytes")) { inputFileBytes = _json["inputFileBytes"]; } @@ -3739,6 +3754,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (badRecords != null) { + _json["badRecords"] = badRecords; + } if (inputFileBytes != null) { _json["inputFileBytes"] = inputFileBytes; } @@ -4202,9 +4220,8 @@ * Specifies whether to use BigQuery's legacy SQL dialect for this query. The * default value is true. If set to false, the query will use BigQuery's * standard SQL: https://cloud.google.com/bigquery/sql-reference/ When - * useLegacySql is set to false, the values of allowLargeResults and - * flattenResults are ignored; query will be run as if allowLargeResults is - * true and flattenResults is false. + * useLegacySql is set to false, the value of flattenResults is ignored; query + * will be run as if flattenResults is false. */ core.bool useLegacySql; /**
diff --git a/generated/googleapis/lib/bigquerydatatransfer/v1.dart b/generated/googleapis/lib/bigquerydatatransfer/v1.dart index e53ddd6..e1d74f9 100644 --- a/generated/googleapis/lib/bigquerydatatransfer/v1.dart +++ b/generated/googleapis/lib/bigquerydatatransfer/v1.dart
@@ -747,9 +747,6 @@ * 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 @@ -760,6 +757,9 @@ * [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. + * * Completes with a [ListTransferConfigsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -768,7 +768,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<ListTransferConfigsResponse> list(core.String parent, {core.List<core.String> dataSourceIds, core.String pageToken, core.int pageSize}) { + async.Future<ListTransferConfigsResponse> list(core.String parent, {core.String pageToken, core.int pageSize, core.List<core.String> dataSourceIds}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -779,15 +779,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; + } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/transferConfigs'; @@ -817,6 +817,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 @@ -835,8 +837,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. - * * Completes with a [TransferConfig]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -845,7 +845,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<TransferConfig> patch(TransferConfig request, core.String name, {core.String authorizationCode, core.String updateMask}) { + async.Future<TransferConfig> patch(TransferConfig request, core.String name, {core.String updateMask, core.String authorizationCode}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -859,12 +859,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]; + } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); @@ -1118,6 +1118,9 @@ * Value must have pattern * "^projects/[^/]+/locations/[^/]+/transferConfigs/[^/]+/runs/[^/]+$". * + * [pageSize] - Page size. The default page size is the maximum value of 1000 + * results. + * * [messageTypes] - Message types to return. If not populated - INFO, WARNING * and ERROR * messages are returned. @@ -1129,9 +1132,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. - * * Completes with a [ListTransferLogsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1140,7 +1140,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<ListTransferLogsResponse> list(core.String parent, {core.List<core.String> messageTypes, core.String pageToken, core.int pageSize}) { + async.Future<ListTransferLogsResponse> list(core.String parent, {core.int pageSize, core.List<core.String> messageTypes, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1151,15 +1151,15 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if (messageTypes != null) { _queryParams["messageTypes"] = messageTypes; } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/transferLogs'; @@ -1350,6 +1350,9 @@ * 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. * @@ -1360,9 +1363,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. - * * Completes with a [ListTransferConfigsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1371,7 +1371,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<ListTransferConfigsResponse> list(core.String parent, {core.List<core.String> dataSourceIds, core.String pageToken, core.int pageSize}) { + async.Future<ListTransferConfigsResponse> list(core.String parent, {core.int pageSize, core.List<core.String> dataSourceIds, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1382,15 +1382,15 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if (dataSourceIds != null) { _queryParams["dataSourceIds"] = dataSourceIds; } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/transferConfigs'; @@ -1637,11 +1637,6 @@ * `projects/{project_id}/transferConfigs/{config_id}`. * Value must have pattern "^projects/[^/]+/transferConfigs/[^/]+$". * - * [runAttempt] - Indicates how run attempts are to be pulled. - * Possible string values are: - * - "RUN_ATTEMPT_UNSPECIFIED" : A RUN_ATTEMPT_UNSPECIFIED. - * - "LATEST" : A LATEST. - * * [pageToken] - Pagination token, which can be used to request a specific * page * of `ListTransferRunsRequest` list results. For multiple-page @@ -1655,6 +1650,11 @@ * [statuses] - When specified, only transfer runs with requested statuses are * returned. * + * [runAttempt] - Indicates how run attempts are to be pulled. + * Possible string values are: + * - "RUN_ATTEMPT_UNSPECIFIED" : A RUN_ATTEMPT_UNSPECIFIED. + * - "LATEST" : A LATEST. + * * Completes with a [ListTransferRunsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1663,7 +1663,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<ListTransferRunsResponse> list(core.String parent, {core.String runAttempt, core.String pageToken, core.int pageSize, core.List<core.String> statuses}) { + async.Future<ListTransferRunsResponse> list(core.String parent, {core.String pageToken, core.int pageSize, core.List<core.String> statuses, core.String runAttempt}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1674,9 +1674,6 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (runAttempt != null) { - _queryParams["runAttempt"] = [runAttempt]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -1686,6 +1683,9 @@ if (statuses != null) { _queryParams["statuses"] = statuses; } + if (runAttempt != null) { + _queryParams["runAttempt"] = [runAttempt]; + } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/runs';
diff --git a/generated/googleapis/lib/calendar/v3.dart b/generated/googleapis/lib/calendar/v3.dart index c8be0e7..fa8b566 100644 --- a/generated/googleapis/lib/calendar/v3.dart +++ b/generated/googleapis/lib/calendar/v3.dart
@@ -1667,12 +1667,14 @@ * [timeMax] - Upper bound (exclusive) for an event's start time to filter by. * Optional. The default is not to filter by start time. Must be an RFC3339 * timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, - * 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. + * 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. If + * timeMin is set, timeMax must be greater than timeMin. * * [timeMin] - Lower bound (inclusive) for an event's end time to filter by. * Optional. The default is not to filter by end time. Must be an RFC3339 * timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, - * 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. + * 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. If + * timeMax is set, timeMin must be smaller than timeMax. * * [timeZone] - Time zone used in the response. Optional. The default is the * time zone of the calendar. @@ -2131,12 +2133,14 @@ * [timeMax] - Upper bound (exclusive) for an event's start time to filter by. * Optional. The default is not to filter by start time. Must be an RFC3339 * timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, - * 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. + * 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. If + * timeMin is set, timeMax must be greater than timeMin. * * [timeMin] - Lower bound (inclusive) for an event's end time to filter by. * Optional. The default is not to filter by end time. Must be an RFC3339 * timestamp with mandatory time zone offset, e.g., 2011-06-03T10:00:00-07:00, - * 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. + * 2011-06-03T10:00:00Z. Milliseconds may be provided but will be ignored. If + * timeMax is set, timeMin must be smaller than timeMax. * * [timeZone] - Time zone used in the response. Optional. The default is the * time zone of the calendar. @@ -3218,81 +3222,6 @@ } } -class DeepLinkData { - core.List<Link> links; - core.String url; - - DeepLinkData(); - - DeepLinkData.fromJson(core.Map _json) { - if (_json.containsKey("links")) { - links = _json["links"].map((value) => new Link.fromJson(value)).toList(); - } - 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 (links != null) { - _json["links"] = links.map((value) => (value).toJson()).toList(); - } - if (url != null) { - _json["url"] = url; - } - return _json; - } -} - -class DisplayInfo { - core.String appIconUrl; - core.String appShortTitle; - core.String appTitle; - core.String linkShortTitle; - core.String linkTitle; - - DisplayInfo(); - - DisplayInfo.fromJson(core.Map _json) { - if (_json.containsKey("appIconUrl")) { - appIconUrl = _json["appIconUrl"]; - } - if (_json.containsKey("appShortTitle")) { - appShortTitle = _json["appShortTitle"]; - } - if (_json.containsKey("appTitle")) { - appTitle = _json["appTitle"]; - } - if (_json.containsKey("linkShortTitle")) { - linkShortTitle = _json["linkShortTitle"]; - } - if (_json.containsKey("linkTitle")) { - linkTitle = _json["linkTitle"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (appIconUrl != null) { - _json["appIconUrl"] = appIconUrl; - } - if (appShortTitle != null) { - _json["appShortTitle"] = appShortTitle; - } - if (appTitle != null) { - _json["appTitle"] = appTitle; - } - if (linkShortTitle != null) { - _json["linkShortTitle"] = linkShortTitle; - } - if (linkTitle != null) { - _json["linkTitle"] = linkTitle; - } - return _json; - } -} - class Error { /** Domain, or broad category, of the error. */ core.String domain; @@ -3817,9 +3746,10 @@ /** * Whether the event blocks time on the calendar. Optional. Possible values * are: - * - "opaque" - The event blocks time on the calendar. This is the default - * value. - * - "transparent" - The event does not block time on the calendar. + * - "opaque" - Default value. The event does block time on the calendar. This + * is equivalent to setting Show me as to Busy in the Calendar UI. + * - "transparent" - The event does not block time on the calendar. This is + * equivalent to setting Show me as to Available in the Calendar UI. */ core.String transparency; /** @@ -4291,35 +4221,6 @@ } } -class EventHabitInstance { - /** Metadata specific to this instance. */ - HabitInstanceData data; - /** Id of the habit this instance belongs to. */ - core.String parentId; - - EventHabitInstance(); - - EventHabitInstance.fromJson(core.Map _json) { - if (_json.containsKey("data")) { - data = new HabitInstanceData.fromJson(_json["data"]); - } - if (_json.containsKey("parentId")) { - parentId = _json["parentId"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (data != null) { - _json["data"] = (data).toJson(); - } - if (parentId != null) { - _json["parentId"] = parentId; - } - return _json; - } -} - class EventReminder { /** * The method used by this reminder. Possible values are: @@ -4687,129 +4588,6 @@ } } -class HabitInstanceData { - core.String status; - core.bool statusInferred; - core.String type; - - HabitInstanceData(); - - HabitInstanceData.fromJson(core.Map _json) { - if (_json.containsKey("status")) { - status = _json["status"]; - } - if (_json.containsKey("statusInferred")) { - statusInferred = _json["statusInferred"]; - } - 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 (status != null) { - _json["status"] = status; - } - if (statusInferred != null) { - _json["statusInferred"] = statusInferred; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -class LaunchInfo { - core.String appId; - core.String installUrl; - core.String intentAction; - core.String uri; - - LaunchInfo(); - - LaunchInfo.fromJson(core.Map _json) { - if (_json.containsKey("appId")) { - appId = _json["appId"]; - } - if (_json.containsKey("installUrl")) { - installUrl = _json["installUrl"]; - } - if (_json.containsKey("intentAction")) { - intentAction = _json["intentAction"]; - } - 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 (appId != null) { - _json["appId"] = appId; - } - if (installUrl != null) { - _json["installUrl"] = installUrl; - } - if (intentAction != null) { - _json["intentAction"] = intentAction; - } - if (uri != null) { - _json["uri"] = uri; - } - return _json; - } -} - -class Link { - core.String applinkingSource; - DisplayInfo displayInfo; - LaunchInfo launchInfo; - core.String platform; - core.String url; - - Link(); - - Link.fromJson(core.Map _json) { - if (_json.containsKey("applinkingSource")) { - applinkingSource = _json["applinkingSource"]; - } - if (_json.containsKey("displayInfo")) { - displayInfo = new DisplayInfo.fromJson(_json["displayInfo"]); - } - if (_json.containsKey("launchInfo")) { - launchInfo = new LaunchInfo.fromJson(_json["launchInfo"]); - } - if (_json.containsKey("platform")) { - platform = _json["platform"]; - } - 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 (applinkingSource != null) { - _json["applinkingSource"] = applinkingSource; - } - if (displayInfo != null) { - _json["displayInfo"] = (displayInfo).toJson(); - } - if (launchInfo != null) { - _json["launchInfo"] = (launchInfo).toJson(); - } - if (platform != null) { - _json["platform"] = platform; - } - if (url != null) { - _json["url"] = url; - } - return _json; - } -} - class Setting { /** ETag of the resource. */ core.String etag;
diff --git a/generated/googleapis/lib/classroom/v1.dart b/generated/googleapis/lib/classroom/v1.dart index 03c3eeb..49bbcea 100644 --- a/generated/googleapis/lib/classroom/v1.dart +++ b/generated/googleapis/lib/classroom/v1.dart
@@ -854,6 +854,17 @@ * This identifier can be either the Classroom-assigned identifier or an * alias. * + * [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. + * + * [courseWorkStates] - Restriction on the work status to return. Only + * courseWork that matches + * is returned. If unspecified, items with a work status of `PUBLISHED` + * is returned. + * * [pageToken] - nextPageToken * value returned from a previous * list call, @@ -869,17 +880,6 @@ * If not specified, `updateTime desc` is the default behavior. * Examples: `dueDate asc,updateTime desc`, `updateTime,dueDate desc` * - * [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. - * - * [courseWorkStates] - Restriction on the work status to return. Only - * courseWork that matches - * is returned. If unspecified, items with a work status of `PUBLISHED` - * is returned. - * * Completes with a [ListCourseWorkResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -888,7 +888,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<ListCourseWorkResponse> list(core.String courseId, {core.String pageToken, core.String orderBy, core.int pageSize, core.List<core.String> courseWorkStates}) { + async.Future<ListCourseWorkResponse> list(core.String courseId, {core.int pageSize, core.List<core.String> courseWorkStates, core.String pageToken, core.String orderBy}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -899,18 +899,18 @@ if (courseId == null) { throw new core.ArgumentError("Parameter courseId is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (orderBy != null) { - _queryParams["orderBy"] = [orderBy]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } if (courseWorkStates != null) { _queryParams["courseWorkStates"] = courseWorkStates; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } _url = 'v1/courses/' + commons.Escaper.ecapeVariable('$courseId') + '/courseWork'; @@ -1109,6 +1109,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, @@ -1117,16 +1126,16 @@ * The list request * must be otherwise identical to the one that resulted in this token. * + * [states] - Requested submission states. If specified, returned student + * submissions + * match one of the specified submission states. + * * [pageSize] - Maximum number of items to return. Zero or unspecified * indicates that the * server may assign a maximum. * * The server may return fewer than the specified number of results. * - * [states] - Requested submission states. If specified, returned student - * submissions - * match one of the specified submission states. - * * [userId] - Optional argument to restrict returned student work to those * owned by the * student with the specified identifier. The identifier can be one of the @@ -1136,15 +1145,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. - * * Completes with a [ListStudentSubmissionsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1153,7 +1153,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<ListStudentSubmissionsResponse> list(core.String courseId, core.String courseWorkId, {core.String pageToken, core.int pageSize, core.List<core.String> states, core.String userId, core.String late}) { + async.Future<ListStudentSubmissionsResponse> list(core.String courseId, core.String courseWorkId, {core.String late, core.String pageToken, core.List<core.String> states, core.int pageSize, core.String userId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1167,21 +1167,21 @@ if (courseWorkId == null) { throw new core.ArgumentError("Parameter courseWorkId is required."); } + if (late != null) { + _queryParams["late"] = [late]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (states != null) { _queryParams["states"] = states; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if (userId != null) { _queryParams["userId"] = [userId]; } - if (late != null) { - _queryParams["late"] = [late]; - } _url = 'v1/courses/' + commons.Escaper.ecapeVariable('$courseId') + '/courseWork/' + commons.Escaper.ecapeVariable('$courseWorkId') + '/studentSubmissions'; @@ -1790,6 +1790,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 @@ -1798,10 +1802,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. - * * Completes with a [ListStudentsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1810,7 +1810,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<ListStudentsResponse> list(core.String courseId, {core.String pageToken, core.int pageSize}) { + async.Future<ListStudentsResponse> list(core.String courseId, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1821,12 +1821,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]; + } _url = 'v1/courses/' + commons.Escaper.ecapeVariable('$courseId') + '/students'; @@ -2993,7 +2993,7 @@ class Assignment { /** * Drive folder where attachments from student submissions are placed. - * This is only populated for course teachers. + * This is only populated for course teachers and administrators. */ DriveFolder studentWorkFolder;
diff --git a/generated/googleapis/lib/cloudbuild/v1.dart b/generated/googleapis/lib/cloudbuild/v1.dart index 7a0d4ed..6573f32 100644 --- a/generated/googleapis/lib/cloudbuild/v1.dart +++ b/generated/googleapis/lib/cloudbuild/v1.dart
@@ -370,12 +370,12 @@ * * [projectId] - ID of the project. * - * [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. * + * [pageToken] - Token to provide to skip to a particular spot in the list. + * * Completes with a [ListBuildsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -384,7 +384,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListBuildsResponse> list(core.String projectId, {core.String pageToken, core.int pageSize, core.String filter}) { + async.Future<ListBuildsResponse> list(core.String projectId, {core.int pageSize, core.String filter, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -395,15 +395,15 @@ if (projectId == null) { throw new core.ArgumentError("Parameter projectId 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]; + } _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/builds'; @@ -739,6 +739,8 @@ * @OutputOnly */ Results results; + /** Secrets to decrypt using Cloud KMS. */ + core.List<Secret> secrets; /** Describes where to find the source files to build. */ Source source; /** @@ -818,6 +820,9 @@ if (_json.containsKey("results")) { results = new Results.fromJson(_json["results"]); } + if (_json.containsKey("secrets")) { + secrets = _json["secrets"].map((value) => new Secret.fromJson(value)).toList(); + } if (_json.containsKey("source")) { source = new Source.fromJson(_json["source"]); } @@ -879,6 +884,9 @@ if (results != null) { _json["results"] = (results).toJson(); } + if (secrets != null) { + _json["secrets"] = secrets.map((value) => (value).toJson()).toList(); + } if (source != null) { _json["source"] = (source).toJson(); } @@ -1035,6 +1043,22 @@ */ 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. + */ + core.List<core.String> secretEnv; + /** + * List of volumes to mount into the build step. + * + * Each volume will be created as an empty volume prior to execution of the + * build step. Upon completion of the build, volumes and their contents will + * be discarded. + * + * Using a named volume in only one step is not valid as it is indicative + * of a mis-configured build request. + */ + 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 @@ -1064,6 +1088,12 @@ if (_json.containsKey("name")) { name = _json["name"]; } + if (_json.containsKey("secretEnv")) { + secretEnv = _json["secretEnv"]; + } + if (_json.containsKey("volumes")) { + volumes = _json["volumes"].map((value) => new Volume.fromJson(value)).toList(); + } if (_json.containsKey("waitFor")) { waitFor = _json["waitFor"]; } @@ -1089,6 +1119,12 @@ if (name != null) { _json["name"] = name; } + if (secretEnv != null) { + _json["secretEnv"] = secretEnv; + } + if (volumes != null) { + _json["volumes"] = volumes.map((value) => (value).toJson()).toList(); + } if (waitFor != null) { _json["waitFor"] = waitFor; } @@ -1606,6 +1642,46 @@ } /** + * Secret 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. */ + core.String kmsKeyName; + /** + * Map of environment variable name to its encrypted value. + * + * Secret environment variables must be unique across all of a build's + * secrets, and must be used by at least one build step. Values can be at most + * 1 KB in size. There can be at most ten secret values across all of a + * build's secrets. + */ + core.Map<core.String, core.String> secretEnv; + + Secret(); + + Secret.fromJson(core.Map _json) { + if (_json.containsKey("kmsKeyName")) { + kmsKeyName = _json["kmsKeyName"]; + } + if (_json.containsKey("secretEnv")) { + secretEnv = _json["secretEnv"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (kmsKeyName != null) { + _json["kmsKeyName"] = kmsKeyName; + } + if (secretEnv != null) { + _json["secretEnv"] = secretEnv; + } + return _json; + } +} + +/** * Source describes the location of the source in a supported storage * service. */ @@ -1854,3 +1930,46 @@ return _json; } } + +/** + * Volume describes a Docker container volume which is mounted into build steps + * in order to persist files across build step execution. + */ +class Volume { + /** + * Name of the volume to mount. + * + * Volume names must be unique per build step and must be valid names for + * Docker volumes. Each named volume must be used by at least two build steps. + */ + core.String name; + /** + * Path at which to mount the volume. + * + * Paths must be absolute and cannot conflict with other volume paths on the + * same build step or with certain reserved volume paths. + */ + core.String path; + + Volume(); + + Volume.fromJson(core.Map _json) { + if (_json.containsKey("name")) { + name = _json["name"]; + } + 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 (name != null) { + _json["name"] = name; + } + if (path != null) { + _json["path"] = path; + } + return _json; + } +}
diff --git a/generated/googleapis/lib/clouddebugger/v2.dart b/generated/googleapis/lib/clouddebugger/v2.dart index 5d23d33..5d8912c 100644 --- a/generated/googleapis/lib/clouddebugger/v2.dart +++ b/generated/googleapis/lib/clouddebugger/v2.dart
@@ -114,7 +114,7 @@ /** * Returns the list of all active breakpoints for the debuggee. * - * The breakpoint specification (location, condition, and expression + * The breakpoint specification (`location`, `condition`, and `expressions` * fields) is semantically immutable, although the field values may * change. For example, an agent may update the location line number * to reflect the actual line where the breakpoint was set, but this @@ -188,7 +188,7 @@ * * Updates to active breakpoint fields are only allowed if the new value * does not change the breakpoint specification. Updates to the `location`, - * `condition` and `expression` fields should not alter the breakpoint + * `condition` and `expressions` fields should not alter the breakpoint * semantics. These may only make changes such as canonicalizing a value * or snapping the location to the correct line of code. * @@ -264,9 +264,6 @@ * * Request parameters: * - * [clientVersion] - The client version making the call. - * Following: `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. @@ -274,6 +271,9 @@ * [project] - Project number of a Google Cloud project whose debuggees to * list. * + * [clientVersion] - The client version making the call. + * Following: `domain/type/version` (e.g., `google.com/intellij/v1`). + * * Completes with a [ListDebuggeesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -282,7 +282,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<ListDebuggeesResponse> list({core.String clientVersion, core.bool includeInactive, core.String project}) { + async.Future<ListDebuggeesResponse> list({core.bool includeInactive, core.String project, core.String clientVersion}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -290,15 +290,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]; + } _url = 'v2/debugger/debuggees'; @@ -428,10 +428,6 @@ * * [debuggeeId] - ID of the debuggee whose breakpoints to list. * - * [stripResults] - This field is deprecated. The following fields are always - * stripped out of - * the result: `stack_frames`, `evaluated_expressions` and `variable_table`. - * * [waitToken] - A wait token that, if specified, blocks the call until the * breakpoints * list has changed, or a server selected timeout has expired. The value @@ -448,13 +444,17 @@ * - "CAPTURE" : A CAPTURE. * - "LOG" : A LOG. * + * [includeInactive] - When set to `true`, the response includes active and + * inactive + * breakpoints. Otherwise, it includes only active breakpoints. + * * [includeAllUsers] - When set to `true`, the response includes the list of * breakpoints set by * any user. Otherwise, it includes only breakpoints set by the caller. * - * [includeInactive] - When set to `true`, the response includes active and - * inactive - * breakpoints. Otherwise, it includes only active breakpoints. + * [stripResults] - This field is deprecated. The following fields are always + * stripped out of + * the result: `stack_frames`, `evaluated_expressions` and `variable_table`. * * Completes with a [ListBreakpointsResponse]. * @@ -464,7 +464,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<ListBreakpointsResponse> list(core.String debuggeeId, {core.bool stripResults, core.String waitToken, core.String clientVersion, core.String action_value, core.bool includeAllUsers, core.bool includeInactive}) { + async.Future<ListBreakpointsResponse> list(core.String debuggeeId, {core.String waitToken, core.String clientVersion, core.String action_value, core.bool includeInactive, core.bool includeAllUsers, core.bool stripResults}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -475,9 +475,6 @@ if (debuggeeId == null) { throw new core.ArgumentError("Parameter debuggeeId is required."); } - if (stripResults != null) { - _queryParams["stripResults"] = ["${stripResults}"]; - } if (waitToken != null) { _queryParams["waitToken"] = [waitToken]; } @@ -487,11 +484,14 @@ if (action_value != null) { _queryParams["action.value"] = [action_value]; } + if (includeInactive != null) { + _queryParams["includeInactive"] = ["${includeInactive}"]; + } if (includeAllUsers != null) { _queryParams["includeAllUsers"] = ["${includeAllUsers}"]; } - if (includeInactive != null) { - _queryParams["includeInactive"] = ["${includeInactive}"]; + if (stripResults != null) { + _queryParams["stripResults"] = ["${stripResults}"]; } _url = 'v2/debugger/debuggees/' + commons.Escaper.ecapeVariable('$debuggeeId') + '/breakpoints'; @@ -1363,7 +1363,7 @@ * List of breakpoints matching the request. * The fields `id` and `location` are guaranteed to be set on each breakpoint. * The fields: `stack_frames`, `evaluated_expressions` and `variable_table` - * are cleared on each breakpoint regardless of it's status. + * are cleared on each breakpoint regardless of its status. */ core.List<Breakpoint> breakpoints; /** @@ -1758,7 +1758,7 @@ class UpdateActiveBreakpointRequest { /** * Updated breakpoint information. - * The field 'id' must be set. + * The field `id` must be set. */ Breakpoint breakpoint;
diff --git a/generated/googleapis/lib/cloudfunctions/v1.dart b/generated/googleapis/lib/cloudfunctions/v1.dart index 467c190..a259bfb 100644 --- a/generated/googleapis/lib/cloudfunctions/v1.dart +++ b/generated/googleapis/lib/cloudfunctions/v1.dart
@@ -19,14 +19,412 @@ * events. */ class CloudfunctionsApi { + /** View and manage your data across Google Cloud Platform services */ + static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; + final commons.ApiRequester _requester; + OperationsResourceApi get operations => new OperationsResourceApi(_requester); + ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); + CloudfunctionsApi(http.Client client, {core.String rootUrl: "https://cloudfunctions.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; + + /** + * 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/[^/]+$". + * + * 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) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new 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: + * + * [pageToken] - The standard list page token. + * + * [name] - The name of the operation's parent resource. + * + * [pageSize] - The standard list page size. + * + * [filter] - The standard list filter. + * + * 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 pageToken, core.String name, core.int pageSize, core.String filter}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (name != null) { + _queryParams["name"] = [name]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } + + _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 ProjectsResourceApi { + final commons.ApiRequester _requester; + + ProjectsLocationsResourceApi get locations => new ProjectsLocationsResourceApi(_requester); + + ProjectsResourceApi(commons.ApiRequester client) : + _requester = client; +} + + +class ProjectsLocationsResourceApi { + final commons.ApiRequester _requester; + + ProjectsLocationsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Lists information about the supported locations for this service. + * + * Request parameters: + * + * [name] - The resource that owns the locations collection, if applicable. + * Value must have pattern "^projects/[^/]+$". + * + * [filter] - The standard list filter. + * + * [pageToken] - The standard list page token. + * + * [pageSize] - The standard list page size. + * + * Completes with a [ListLocationsResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ListLocationsResponse> list(core.String name, {core.String filter, core.String pageToken, core.int pageSize}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/locations'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListLocationsResponse.fromJson(data)); + } + +} + + + +/** The response message for Locations.ListLocations. */ +class ListLocationsResponse { + /** A list of locations that matches the specified filter in the request. */ + core.List<Location> locations; + /** The standard List next-page token. */ + core.String nextPageToken; + + ListLocationsResponse(); + + ListLocationsResponse.fromJson(core.Map _json) { + if (_json.containsKey("locations")) { + locations = _json["locations"].map((value) => new Location.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 (locations != null) { + _json["locations"] = locations.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + +/** The response message for Operations.ListOperations. */ +class ListOperationsResponse { + /** The standard List next-page token. */ + core.String nextPageToken; + /** A list of operations that matches the specified filter in the request. */ + core.List<Operation> operations; + + ListOperationsResponse(); + + ListOperationsResponse.fromJson(core.Map _json) { + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("operations")) { + operations = _json["operations"].map((value) => new Operation.fromJson(value)).toList(); + } + } + + core.Map<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 resource that represents Google Cloud Platform location. */ +class Location { + /** + * Cross-service attributes for the location. For example + * + * {"cloud.googleapis.com/region": "us-east1"} + */ + core.Map<core.String, core.String> labels; + /** The canonical id for this location. For example: `"us-east1"`. */ + core.String locationId; + /** + * Service-specific metadata. For example the available capacity at the given + * location. + * + * 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; + /** + * Resource name for the location, which may vary between implementations. + * For example: `"projects/example-project/locations/us-east1"` + */ + core.String name; + + Location(); + + Location.fromJson(core.Map _json) { + if (_json.containsKey("labels")) { + labels = _json["labels"]; + } + if (_json.containsKey("locationId")) { + locationId = _json["locationId"]; + } + if (_json.containsKey("metadata")) { + metadata = _json["metadata"]; + } + 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 (labels != null) { + _json["labels"] = labels; + } + if (locationId != null) { + _json["locationId"] = locationId; + } + if (metadata != null) { + _json["metadata"] = metadata; + } + if (name != null) { + _json["name"] = name; + } + return _json; + } +} + +/** + * This resource represents a long-running operation that is the result of a + * network API call. + */ +class Operation { + /** + * If the value is `false`, it means the operation is still in progress. + * If true, the operation is completed, and either `error` or `response` is + * available. + */ + core.bool done; + /** The error result of the operation in case of failure or cancellation. */ + Status error; + /** + * Service-specific metadata associated with the operation. It typically + * contains progress information and common metadata such as create time. + * Some services might not provide such metadata. Any method that returns a + * long-running operation should document the metadata type, if any. + * + * The values for Object must be JSON objects. It can consist of `num`, + * `String`, `bool` and `null` as well as `Map` and `List` values. + */ + core.Map<core.String, core.Object> metadata; + /** + * The server-assigned name, which is only unique within the same service that + * originally returns it. If you use the default HTTP mapping, the + * `name` should have the format of `operations/some/unique/name`. + */ + core.String name; + /** + * The normal response of the operation in case of success. If the original + * method returns no data on success, such as `Delete`, the response is + * `google.protobuf.Empty`. If the original method is standard + * `Get`/`Create`/`Update`, the response should be the resource. For other + * methods, the response should have the type `XxxResponse`, where `Xxx` + * is the original method name. For example, if the original method name + * is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * + * The values for Object must be JSON objects. It can consist of `num`, + * `String`, `bool` and `null` as well as `Map` and `List` values. + */ + core.Map<core.String, core.Object> response; + + Operation(); + + Operation.fromJson(core.Map _json) { + if (_json.containsKey("done")) { + done = _json["done"]; + } + if (_json.containsKey("error")) { + error = new Status.fromJson(_json["error"]); + } + if (_json.containsKey("metadata")) { + metadata = _json["metadata"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("response")) { + response = _json["response"]; + } + } + + core.Map<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; + } +} /** Metadata describing an Operation */ class OperationMetadataV1Beta2 { @@ -80,3 +478,106 @@ 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"]; + } + 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; + } +}
diff --git a/generated/googleapis/lib/cloudkms/v1.dart b/generated/googleapis/lib/cloudkms/v1.dart index 73be975..77aade2 100644 --- a/generated/googleapis/lib/cloudkms/v1.dart +++ b/generated/googleapis/lib/cloudkms/v1.dart
@@ -1126,15 +1126,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. + * * Completes with a [ListCryptoKeyVersionsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1143,7 +1143,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.String pageToken, core.int pageSize}) { + async.Future<ListCryptoKeyVersionsResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1154,12 +1154,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]; + } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/cryptoKeyVersions';
diff --git a/generated/googleapis/lib/cloudresourcemanager/v1.dart b/generated/googleapis/lib/cloudresourcemanager/v1.dart index 696a3b4..d15712b 100644 --- a/generated/googleapis/lib/cloudresourcemanager/v1.dart +++ b/generated/googleapis/lib/cloudresourcemanager/v1.dart
@@ -434,15 +434,15 @@ * * Request parameters: * + * [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. * * [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. - * * Completes with a [ListLiensResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -451,7 +451,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<ListLiensResponse> list({core.int pageSize, core.String parent, core.String pageToken}) { + async.Future<ListLiensResponse> list({core.String pageToken, core.int pageSize, core.String parent}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -459,15 +459,15 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } if (parent != null) { _queryParams["parent"] = [parent]; } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } _url = 'v1/liens'; @@ -1480,12 +1480,6 @@ * * Request parameters: * - * [pageSize] - The maximum number of Projects to return in the response. - * The server can return fewer Projects than requested. - * If unspecified, server picks an appropriate default. - * - * Optional. - * * [filter] - An expression for filtering the results of the request. Filter * rules are * case insensitive. The fields eligible for filtering are: @@ -1524,6 +1518,12 @@ * * Optional. * + * [pageSize] - The maximum number of Projects to return in the response. + * The server can return fewer Projects than requested. + * If unspecified, server picks an appropriate default. + * + * Optional. + * * Completes with a [ListProjectsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1532,7 +1532,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListProjectsResponse> list({core.int pageSize, core.String filter, core.String pageToken}) { + async.Future<ListProjectsResponse> list({core.String filter, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1540,15 +1540,15 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (filter != null) { _queryParams["filter"] = [filter]; } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } _url = 'v1/projects'; @@ -4043,8 +4043,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a - * common set of message types for APIs to use. + * A list of messages that carry the error details. There 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.
diff --git a/generated/googleapis/lib/cloudresourcemanager/v2beta1.dart b/generated/googleapis/lib/cloudresourcemanager/v2beta1.dart index bad4faf..2cf3cb9 100644 --- a/generated/googleapis/lib/cloudresourcemanager/v2beta1.dart +++ b/generated/googleapis/lib/cloudresourcemanager/v2beta1.dart
@@ -1553,8 +1553,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a - * common set of message types for APIs to use. + * A list of messages that carry the error details. There 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.
diff --git a/generated/googleapis/lib/cloudtrace/v1.dart b/generated/googleapis/lib/cloudtrace/v1.dart index 276fd4b..294ac2a 100644 --- a/generated/googleapis/lib/cloudtrace/v1.dart +++ b/generated/googleapis/lib/cloudtrace/v1.dart
@@ -156,6 +156,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 @@ -191,14 +205,14 @@ * data was * collected from the application. * - * [startTime] - Start of the time interval (inclusive) during which the trace - * data was - * collected from the application. - * * [pageToken] - Token identifying the page of results to return. If provided, * use the * value of the `next_page_token` field from a previous request. Optional. * + * [startTime] - Start of the time interval (inclusive) during which the trace + * data was + * collected from the application. + * * [pageSize] - Maximum number of traces to return. If not specified or <= 0, * the * implementation selects a reasonable value. The implementation may @@ -212,20 +226,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. - * * Completes with a [ListTracesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -234,7 +234,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<ListTracesResponse> list(core.String projectId, {core.String filter, core.String endTime, core.String startTime, core.String pageToken, core.int pageSize, core.String view, core.String orderBy}) { + async.Future<ListTracesResponse> list(core.String projectId, {core.String orderBy, core.String filter, core.String endTime, core.String pageToken, core.String startTime, core.int pageSize, core.String view}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -245,27 +245,27 @@ if (projectId == null) { throw new core.ArgumentError("Parameter projectId is required."); } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (filter != null) { _queryParams["filter"] = [filter]; } if (endTime != null) { _queryParams["endTime"] = [endTime]; } - if (startTime != null) { - _queryParams["startTime"] = [startTime]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (startTime != null) { + _queryParams["startTime"] = [startTime]; + } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } if (view != null) { _queryParams["view"] = [view]; } - if (orderBy != null) { - _queryParams["orderBy"] = [orderBy]; - } _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/traces';
diff --git a/generated/googleapis/lib/cloudtrace/v2.dart b/generated/googleapis/lib/cloudtrace/v2.dart index 901b4a0..4678aa8 100644 --- a/generated/googleapis/lib/cloudtrace/v2.dart +++ b/generated/googleapis/lib/cloudtrace/v2.dart
@@ -118,12 +118,6 @@ * is `projects/PROJECT_ID`. * Value must have pattern "^projects/[^/]+$". * - * [pageSize] - Optional. The maximum number of results to return from this - * request. - * Non-positive values are ignored. The presence of `next_page_token` in the - * response indicates that more results might be available, even if fewer than - * the maximum number of results is returned by this request. - * * [orderBy] - Optional. A single field used to sort the returned traces. * Only the following field names can be used: * @@ -145,14 +139,20 @@ * [endTime] - Optional. Do not return traces whose start time is later than * this time. * + * [startTime] - Optional. Do not return traces whose end time is earlier than + * this time. + * * [pageToken] - Optional. If present, then retrieve the next batch of results * from the * preceding call to this method. `page_token` must be the value of * `next_page_token` from the previous response. The values of other method * parameters should be identical to those in the previous call. * - * [startTime] - Optional. Do not return traces whose end time is earlier than - * this time. + * [pageSize] - Optional. The maximum number of results to return from this + * request. + * Non-positive values are ignored. The presence of `next_page_token` in the + * response indicates that more results might be available, even if fewer than + * the maximum number of results is returned by this request. * * Completes with a [ListTracesResponse]. * @@ -162,7 +162,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<ListTracesResponse> list(core.String parent, {core.int pageSize, core.String orderBy, core.String filter, core.String endTime, core.String pageToken, core.String startTime}) { + async.Future<ListTracesResponse> list(core.String parent, {core.String orderBy, core.String filter, core.String endTime, core.String startTime, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -173,9 +173,6 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (orderBy != null) { _queryParams["orderBy"] = [orderBy]; } @@ -185,11 +182,14 @@ if (endTime != null) { _queryParams["endTime"] = [endTime]; } + if (startTime != null) { + _queryParams["startTime"] = [startTime]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } - if (startTime != null) { - _queryParams["startTime"] = [startTime]; + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; } _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/traces'; @@ -1119,8 +1119,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a - * common set of message types for APIs to use. + * A list of messages that carry the error details. There 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.
diff --git a/generated/googleapis/lib/compute/v1.dart b/generated/googleapis/lib/compute/v1.dart index c748a61..d14d8fb 100644 --- a/generated/googleapis/lib/compute/v1.dart +++ b/generated/googleapis/lib/compute/v1.dart
@@ -9953,7 +9953,7 @@ _requester = client; /** - * Disable this project as an XPN host project. + * Disable this project as a shared VPC host project. * * Request parameters: * @@ -9994,7 +9994,8 @@ } /** - * Disable an XPN resource associated with this host project. + * Disable a serivce resource (a.k.a service project) associated with this + * host project. * * [request] - The metadata request object. * @@ -10040,7 +10041,7 @@ } /** - * Enable this project as an XPN host project. + * Enable this project as a shared VPC host project. * * Request parameters: * @@ -10081,9 +10082,9 @@ } /** - * Enable XPN resource (a.k.a service project or service folder in the future) - * for a host project, so that subnetworks in the host project can be used by - * instances in the service project or folder. + * Enable service resource (a.k.a service project) for a host project, so that + * subnets in the host project can be used by instances in the service + * project. * * [request] - The metadata request object. * @@ -10170,8 +10171,8 @@ } /** - * Get the XPN host project that this project links to. May be empty if no - * link exists. + * Get the shared VPC host project that this project links to. May be empty if + * no link exists. * * Request parameters: * @@ -10212,7 +10213,8 @@ } /** - * Get XPN resources associated with this host project. + * Get service resources (a.k.a service project) associated with this host + * project. * * Request parameters: * @@ -10273,7 +10275,7 @@ } /** - * List all XPN host projects visible to the user in an organization. + * List all shared VPC host projects visible to the user in an organization. * * [request] - The metadata request object. * @@ -13574,7 +13576,8 @@ /** * Patches the specified Router resource with the data included in the - * request. This method supports patch semantics. + * request. This method supports PATCH semantics and uses JSON merge patch + * format and processing rules. * * [request] - The metadata request object. * @@ -19261,11 +19264,10 @@ class AcceleratorTypeAggregatedList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A map of scoped accelerator type lists. */ + /** A list of AcceleratorTypesScopedList resources. */ core.Map<core.String, AcceleratorTypesScopedList> items; /** * [Output Only] Type of resource. Always @@ -19338,7 +19340,13 @@ * lists of accelerator types. */ core.String kind; - /** [Output Only] A token used to continue a truncated list request. */ + /** + * [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; @@ -19726,7 +19734,7 @@ * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A map of scoped address lists. */ + /** A list of AddressesScopedList resources. */ core.Map<core.String, AddressesScopedList> items; /** * [Output Only] Type of resource. Always compute#addressAggregatedList for @@ -19788,11 +19796,10 @@ /** Contains a list of addresses. */ class AddressList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A list of addresses. */ + /** A list of Address resources. */ core.List<Address> items; /** * [Output Only] Type of resource. Always compute#addressList for lists of @@ -19807,7 +19814,7 @@ * continue paging through the results. */ core.String nextPageToken; - /** [Output Only] Server-defined URL for the resource. */ + /** [Output Only] Server-defined URL for this resource. */ core.String selfLink; AddressList(); @@ -19986,6 +19993,46 @@ } } +/** An alias IP range attached to an instance's network interface. */ +class AliasIpRange { + /** + * The IP CIDR range represented by this alias IP range. This IP CIDR range + * must belong to the specified subnetwork and cannot contain IP addresses + * reserved by system or used by other network interfaces. This range may be a + * single IP address (e.g. 10.2.3.4), a netmask (e.g. /24) or a CIDR format + * string (e.g. 10.1.2.0/24). + */ + core.String ipCidrRange; + /** + * Optional subnetwork secondary range name specifying the secondary range + * from which to allocate the IP CIDR range for this alias IP range. If left + * unspecified, the primary range of the subnetwork will be used. + */ + core.String subnetworkRangeName; + + AliasIpRange(); + + AliasIpRange.fromJson(core.Map _json) { + if (_json.containsKey("ipCidrRange")) { + ipCidrRange = _json["ipCidrRange"]; + } + if (_json.containsKey("subnetworkRangeName")) { + subnetworkRangeName = _json["subnetworkRangeName"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (ipCidrRange != null) { + _json["ipCidrRange"] = ipCidrRange; + } + if (subnetworkRangeName != null) { + _json["subnetworkRangeName"] = subnetworkRangeName; + } + return _json; + } +} + /** An instance-attached disk resource. */ class AttachedDisk { /** @@ -20445,11 +20492,10 @@ class AutoscalerAggregatedList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** A map of scoped autoscaler lists. */ + /** A list of AutoscalersScopedList resources. */ core.Map<core.String, AutoscalersScopedList> items; /** * [Output Only] Type of resource. Always compute#autoscalerAggregatedList for @@ -20511,8 +20557,7 @@ /** Contains a list of Autoscaler resources. */ class AutoscalerList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; /** A list of Autoscaler resources. */ @@ -20989,17 +21034,17 @@ */ core.String description; /** - * The fully-qualified URL of a zonal Instance Group resource. This instance - * group defines the list of instances that serve traffic. Member virtual - * machine instances from each instance group must live in the same zone as - * the instance group itself. No two backends in a backend service are allowed - * to use same Instance Group resource. + * The fully-qualified URL of a Instance Group resource. This instance group + * defines the list of instances that serve traffic. Member virtual machine + * instances from each instance group must live in the same zone as the + * instance group itself. No two backends in a backend service are allowed to + * use same Instance Group resource. * * Note that you must specify an Instance Group resource using the * fully-qualified URL, rather than a partial URL. * * When the BackendService has load balancing scheme INTERNAL, the instance - * group must be in a zone within the same region as the BackendService. + * group must be within the same region as the BackendService. */ core.String group; /** @@ -21211,7 +21256,13 @@ core.List<BackendBucket> items; /** Type of resource. */ core.String kind; - /** [Output Only] A token used to continue a truncated list request. */ + /** + * [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; @@ -21547,11 +21598,17 @@ * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** A map of scoped BackendService lists. */ + /** A list of BackendServicesScopedList resources. */ core.Map<core.String, BackendServicesScopedList> items; /** Type of resource. */ core.String kind; - /** [Output Only] A token used to continue a truncated list request. */ + /** + * [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; @@ -22166,11 +22223,10 @@ class CommitmentAggregatedList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** Commitments by scope. */ + /** A list of CommitmentsScopedList resources. */ core.Map<core.String, CommitmentsScopedList> items; /** * [Output Only] Type of resource. Always compute#commitmentAggregatedList for @@ -22232,8 +22288,7 @@ /** Contains a list of Commitment resources. */ class CommitmentList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; /** A list of Commitment resources. */ @@ -22930,11 +22985,10 @@ class DiskAggregatedList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A map of scoped disk lists. */ + /** A list of DisksScopedList resources. */ core.Map<core.String, DisksScopedList> items; /** * [Output Only] Type of resource. Always compute#diskAggregatedList for @@ -22946,8 +23000,7 @@ * 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. Acceptable values are 0 to 500, - * inclusive. (Default: 500) + * continue paging through the results. */ core.String nextPageToken; /** [Output Only] Server-defined URL for this resource. */ @@ -23007,11 +23060,11 @@ */ core.String kind; /** - * 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. + * [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. */ @@ -23204,11 +23257,10 @@ class DiskTypeAggregatedList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A map of scoped disk type lists. */ + /** A list of DiskTypesScopedList resources. */ core.Map<core.String, DiskTypesScopedList> items; /** [Output Only] Type of resource. Always compute#diskTypeAggregatedList. */ core.String kind; @@ -23267,11 +23319,10 @@ /** Contains a list of disk types. */ class DiskTypeList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A list of Disk Type resources. */ + /** A list of DiskType resources. */ core.List<DiskType> items; /** * [Output Only] Type of resource. Always compute#diskTypeList for disk types. @@ -23720,15 +23771,16 @@ */ core.List<core.String> sourceRanges; /** - * If source tags are specified, the firewall will apply only to traffic with - * source IP that belongs to a tag listed in source tags. Source tags cannot - * be used to control traffic to an instance's external IP address. Because - * tags are associated with an instance, not an IP address. One or both of - * sourceRanges and sourceTags may be set. If both properties are set, the - * firewall will apply to traffic that has source IP address within - * sourceRanges OR the source IP that belongs to a tag listed in the - * sourceTags property. The connection does not need to match both properties - * for the firewall to apply. + * If source tags are specified, the firewall will apply only to traffic from + * VM instances in the same virtual network with a tag listed in the source + * tags. Source tags cannot be used to control traffic to an instance's + * external IP address, it only applies to traffic between instances in the + * same virtual network. Because tags are associated with instances, not IP + * addresses. One or both of sourceRanges and sourceTags may be set. If both + * properties are set, the firewall will apply to traffic that has source IP + * address within sourceRanges OR the source IP that belongs to a tag listed + * in the sourceTags property. The connection does not need to match both + * properties for the firewall to apply. */ core.List<core.String> sourceTags; /** @@ -23819,11 +23871,10 @@ /** Contains a list of firewalls. */ class FirewallList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A list of Firewall resources. */ + /** A list of Firewall resources. */ core.List<Firewall> items; /** * [Output Only] Type of resource. Always compute#firewallList for lists of @@ -23995,8 +24046,8 @@ * Some types of forwarding target have constraints on the acceptable ports: * - TargetHttpProxy: 80, 8080 * - TargetHttpsProxy: 443 - * - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995 - * - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995 + * - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 5222 + * - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 5222 * - TargetVpnGateway: 500, 4500 * - */ @@ -24157,11 +24208,10 @@ class ForwardingRuleAggregatedList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** A map of scoped forwarding rule lists. */ + /** A list of ForwardingRulesScopedList resources. */ core.Map<core.String, ForwardingRulesScopedList> items; /** * [Output Only] Type of resource. Always compute#forwardingRuleAggregatedList @@ -24222,7 +24272,9 @@ /** Contains a list of ForwardingRule resources. */ class ForwardingRuleList { - /** [Output Only] Unique identifier for the resource. Set by the server. */ + /** + * [Output Only] Unique identifier for the resource; defined by the server. + */ core.String id; /** A list of ForwardingRule resources. */ core.List<ForwardingRule> items; @@ -24813,8 +24865,7 @@ /** Contains a list of HealthCheck resources. */ class HealthCheckList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; /** A list of HealthCheck resources. */ @@ -25165,7 +25216,7 @@ /** Contains a list of HttpHealthCheck resources. */ class HttpHealthCheckList { /** - * [Output Only] Unique identifier for the resource. Defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; /** A list of HttpHealthCheck resources. */ @@ -25772,11 +25823,10 @@ /** Contains a list of images. */ class ImageList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A list of Image resources. */ + /** A list of Image resources. */ core.List<Image> items; /** Type of resource. */ core.String kind; @@ -26123,11 +26173,10 @@ class InstanceAggregatedList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A map of scoped instance lists. */ + /** A list of InstancesScopedList resources. */ core.Map<core.String, InstancesScopedList> items; /** * [Output Only] Type of resource. Always compute#instanceAggregatedList for @@ -26353,11 +26402,10 @@ class InstanceGroupAggregatedList { /** - * [Output Only] A unique identifier for this aggregated list of instance - * groups. The server generates this identifier. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** A map of scoped instance group lists. */ + /** A list of InstanceGroupsScopedList resources. */ core.Map<core.String, InstanceGroupsScopedList> items; /** * [Output Only] The resource type, which is always @@ -26373,10 +26421,7 @@ * continue paging through the results. */ core.String nextPageToken; - /** - * [Output Only] The URL for this resource type. The server generates this - * URL. - */ + /** [Output Only] Server-defined URL for this resource. */ core.String selfLink; InstanceGroupAggregatedList(); @@ -26423,11 +26468,10 @@ /** A list of InstanceGroup resources. */ class InstanceGroupList { /** - * [Output Only] A unique identifier for this list of instance groups. The - * server generates this identifier. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** A list of instance groups. */ + /** A list of InstanceGroup resources. */ core.List<InstanceGroup> items; /** * [Output Only] The resource type, which is always compute#instanceGroupList @@ -26442,10 +26486,7 @@ * continue paging through the results. */ core.String nextPageToken; - /** - * [Output Only] The URL for this resource type. The server generates this - * URL. - */ + /** [Output Only] Server-defined URL for this resource. */ core.String selfLink; InstanceGroupList(); @@ -26803,11 +26844,10 @@ class InstanceGroupManagerAggregatedList { /** - * [Output Only] A unique identifier for this aggregated list of managed - * instance groups. The server generates this identifier. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A map of filtered managed instance group lists. */ + /** A list of InstanceGroupManagersScopedList resources. */ core.Map<core.String, InstanceGroupManagersScopedList> items; /** * [Output Only] The resource type, which is always @@ -26823,10 +26863,7 @@ * continue paging through the results. */ core.String nextPageToken; - /** - * [Output Only] The URL for this resource type. The server generates this - * URL. - */ + /** [Output Only] Server-defined URL for this resource. */ core.String selfLink; InstanceGroupManagerAggregatedList(); @@ -26873,11 +26910,10 @@ /** [Output Only] A list of managed instance groups. */ class InstanceGroupManagerList { /** - * [Output Only] A unique identifier for this resource type. The server - * generates this identifier. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A list of managed instance groups. */ + /** A list of InstanceGroupManager resources. */ core.List<InstanceGroupManager> items; /** * [Output Only] The resource type, which is always @@ -27262,14 +27298,10 @@ class InstanceGroupsListInstances { /** - * [Output Only] A unique identifier for this list of instances in the - * specified instance group. The server generates this identifier. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** - * [Output Only] A list of instances and any named ports that are assigned to - * those instances. - */ + /** A list of InstanceWithNamedPorts resources. */ core.List<InstanceWithNamedPorts> items; /** * [Output Only] The resource type, which is always @@ -27285,10 +27317,7 @@ * continue paging through the results. */ core.String nextPageToken; - /** - * [Output Only] The URL for this list of instances in the specified instance - * groups. The server generates this URL. - */ + /** [Output Only] Server-defined URL for this resource. */ core.String selfLink; InstanceGroupsListInstances(); @@ -27564,11 +27593,10 @@ /** Contains a list of instances. */ class InstanceList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A list of instances. */ + /** A list of Instance resources. */ core.List<Instance> items; /** * [Output Only] Type of resource. Always compute#instanceList for lists of @@ -27922,11 +27950,10 @@ /** A list of instance templates. */ class InstanceTemplateList { /** - * [Output Only] A unique identifier for this instance template. The server - * defines this identifier. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] list of InstanceTemplate resources. */ + /** A list of InstanceTemplate resources. */ core.List<InstanceTemplate> items; /** * [Output Only] The resource type, which is always @@ -27941,10 +27968,7 @@ * continue paging through the results. */ core.String nextPageToken; - /** - * [Output Only] The URL for this instance template list. The server defines - * this URL. - */ + /** [Output Only] Server-defined URL for this resource. */ core.String selfLink; InstanceTemplateList(); @@ -28549,11 +28573,10 @@ class MachineTypeAggregatedList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A map of scoped machine type lists. */ + /** A list of MachineTypesScopedList resources. */ core.Map<core.String, MachineTypesScopedList> items; /** * [Output Only] Type of resource. Always compute#machineTypeAggregatedList @@ -28615,11 +28638,10 @@ /** Contains a list of machine types. */ class MachineTypeList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A list of Machine Type resources. */ + /** A list of MachineType resources. */ core.List<MachineType> items; /** * [Output Only] Type of resource. Always compute#machineTypeList for lists of @@ -29022,7 +29044,7 @@ * Value for the metadata entry. These are free-form strings, and only have * meaning as interpreted by the image running in the instance. The only * restriction placed on values is that their size must be less than or equal - * to 32768 bytes. + * to 262144 bytes (256 KiB). */ core.String value; @@ -29285,6 +29307,11 @@ */ core.List<AccessConfig> accessConfigs; /** + * An array of alias IP ranges for this network interface. Can only be + * specified for network interfaces on subnet-mode networks. + */ + core.List<AliasIpRange> aliasIpRanges; + /** * [Output Only] Type of the resource. Always compute#networkInterface for * network interfaces. */ @@ -29337,6 +29364,9 @@ if (_json.containsKey("accessConfigs")) { accessConfigs = _json["accessConfigs"].map((value) => new AccessConfig.fromJson(value)).toList(); } + if (_json.containsKey("aliasIpRanges")) { + aliasIpRanges = _json["aliasIpRanges"].map((value) => new AliasIpRange.fromJson(value)).toList(); + } if (_json.containsKey("kind")) { kind = _json["kind"]; } @@ -29359,6 +29389,9 @@ if (accessConfigs != null) { _json["accessConfigs"] = accessConfigs.map((value) => (value).toJson()).toList(); } + if (aliasIpRanges != null) { + _json["aliasIpRanges"] = aliasIpRanges.map((value) => (value).toJson()).toList(); + } if (kind != null) { _json["kind"] = kind; } @@ -29381,11 +29414,10 @@ /** Contains a list of networks. */ class NetworkList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A list of Network resources. */ + /** A list of Network resources. */ core.List<Network> items; /** * [Output Only] Type of resource. Always compute#networkList for lists of @@ -30429,8 +30461,8 @@ */ UsageExportLocation usageExportLocation; /** - * [Output Only] The role this project has in a Cross Project Network (XPN) - * configuration. Currently only HOST projects are differentiated. + * [Output Only] The role this project has in a shared VPC configuration. + * Currently only HOST projects are differentiated. * Possible string values are: * - "HOST" * - "UNSPECIFIED_XPN_PROJECT_STATUS" @@ -30521,7 +30553,7 @@ } class ProjectsDisableXpnResourceRequest { - /** XPN resource ID. */ + /** Service resource (a.k.a service project) ID. */ XpnResourceId xpnResource; ProjectsDisableXpnResourceRequest(); @@ -30542,7 +30574,7 @@ } class ProjectsEnableXpnResourceRequest { - /** XPN resource ID. */ + /** Service resource (a.k.a service project) ID. */ XpnResourceId xpnResource; ProjectsEnableXpnResourceRequest(); @@ -30565,7 +30597,7 @@ class ProjectsGetXpnResources { /** * [Output Only] Type of resource. Always compute#projectsGetXpnResources for - * lists of XPN resources. + * lists of service resources (a.k.a service projects) */ core.String kind; /** @@ -30576,7 +30608,10 @@ * continue paging through the results. */ core.String nextPageToken; - /** XPN resources attached to this project as their XPN host. */ + /** + * Serive resources (a.k.a service projects) attached to this project as their + * shared VPC host. + */ core.List<XpnResourceId> resources; ProjectsGetXpnResources(); @@ -30611,8 +30646,8 @@ class ProjectsListXpnHostsRequest { /** * Optional organization ID managed by Cloud Resource Manager, for which to - * list XPN host projects. If not specified, the organization will be inferred - * from the project. + * list shared VPC host projects. If not specified, the organization will be + * inferred from the project. */ core.String organization; @@ -30660,6 +30695,7 @@ * - "NETWORKS" * - "NVIDIA_K80_GPUS" * - "PREEMPTIBLE_CPUS" + * - "PREEMPTIBLE_LOCAL_SSD_GB" * - "REGIONAL_AUTOSCALERS" * - "REGIONAL_INSTANCE_GROUP_MANAGERS" * - "ROUTERS" @@ -30819,15 +30855,20 @@ /** Contains a list of autoscalers. */ class RegionAutoscalerList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** A list of autoscalers. */ + /** A list of Autoscaler resources. */ core.List<Autoscaler> items; /** Type of resource. */ core.String kind; - /** [Output Only] A token used to continue a truncated list request. */ + /** + * [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; @@ -30876,8 +30917,7 @@ /** Contains a list of InstanceGroup resources. */ class RegionInstanceGroupList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; /** A list of InstanceGroup resources. */ @@ -30892,10 +30932,7 @@ * continue paging through the results. */ core.String nextPageToken; - /** - * [Output Only] The URL for this resource type. The server generates this - * URL. - */ + /** [Output Only] Server-defined URL for this resource. */ core.String selfLink; RegionInstanceGroupList(); @@ -30942,11 +30979,10 @@ /** Contains a list of managed instance groups. */ class RegionInstanceGroupManagerList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** A list of managed instance groups. */ + /** A list of InstanceGroupManager resources. */ core.List<InstanceGroupManager> items; /** * [Output Only] The resource type, which is always @@ -30954,12 +30990,15 @@ * exist in th regional scope. */ core.String kind; - /** [Output only] A token used to continue a truncated list request. */ - core.String nextPageToken; /** - * [Output only] The URL for this resource type. The server generates this - * URL. + * [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; RegionInstanceGroupManagerList(); @@ -31166,13 +31205,10 @@ class RegionInstanceGroupsListInstances { /** - * [Output Only] Unique identifier for the resource. Defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** - * A list of instances and any named ports that are assigned to those - * instances. - */ + /** A list of InstanceWithNamedPorts resources. */ core.List<InstanceWithNamedPorts> items; /** The resource type. */ core.String kind; @@ -31184,7 +31220,7 @@ * continue paging through the results. */ core.String nextPageToken; - /** [Output Only] Server-defined URL for the resource. */ + /** [Output Only] Server-defined URL for this resource. */ core.String selfLink; RegionInstanceGroupsListInstances(); @@ -31313,11 +31349,10 @@ /** Contains a list of region resources. */ class RegionList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A list of Region resources. */ + /** A list of Region resources. */ core.List<Region> items; /** * [Output Only] Type of resource. Always compute#regionList for lists of @@ -31755,10 +31790,10 @@ /** Contains a list of Route resources. */ class RouteList { /** - * [Output Only] Unique identifier for the resource. Defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A list of Route resources. */ + /** A list of Route resources. */ core.List<Route> items; /** Type of resource. */ core.String kind; @@ -31941,11 +31976,10 @@ /** Contains a list of routers. */ class RouterAggregatedList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** A map of scoped router lists. */ + /** A list of Router resources. */ core.Map<core.String, RoutersScopedList> items; /** Type of resource. */ core.String kind; @@ -32155,8 +32189,7 @@ /** Contains a list of Router resources. */ class RouterList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; /** A list of Router resources. */ @@ -33006,11 +33039,10 @@ /** Contains a list of Snapshot resources. */ class SnapshotList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A list of Snapshot resources. */ + /** A list of Snapshot resources. */ core.List<Snapshot> items; /** Type of resource. */ core.String kind; @@ -33175,7 +33207,7 @@ /** Contains a list of SslCertificate resources. */ class SslCertificateList { /** - * [Output Only] Unique identifier for the resource. Defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; /** A list of SslCertificate resources. */ @@ -33295,6 +33327,13 @@ * at resource creation time. */ core.String region; + /** + * An array of configurations for secondary IP ranges for VM instances + * contained in this subnetwork. The primary IP of such VM must belong to the + * primary ipCidrRange of the subnetwork. The alias IPs may belong to either + * primary or secondary ranges. + */ + core.List<SubnetworkSecondaryRange> secondaryIpRanges; /** [Output Only] Server-defined URL for the resource. */ core.String selfLink; @@ -33331,6 +33370,9 @@ if (_json.containsKey("region")) { region = _json["region"]; } + if (_json.containsKey("secondaryIpRanges")) { + secondaryIpRanges = _json["secondaryIpRanges"].map((value) => new SubnetworkSecondaryRange.fromJson(value)).toList(); + } if (_json.containsKey("selfLink")) { selfLink = _json["selfLink"]; } @@ -33368,6 +33410,9 @@ if (region != null) { _json["region"] = region; } + if (secondaryIpRanges != null) { + _json["secondaryIpRanges"] = secondaryIpRanges.map((value) => (value).toJson()).toList(); + } if (selfLink != null) { _json["selfLink"] = selfLink; } @@ -33377,11 +33422,10 @@ class SubnetworkAggregatedList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output] A map of scoped Subnetwork lists. */ + /** A list of SubnetworksScopedList resources. */ core.Map<core.String, SubnetworksScopedList> items; /** * [Output Only] Type of resource. Always compute#subnetworkAggregatedList for @@ -33443,11 +33487,10 @@ /** Contains a list of Subnetwork resources. */ class SubnetworkList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** The Subnetwork resources. */ + /** A list of Subnetwork resources. */ core.List<Subnetwork> items; /** * [Output Only] Type of resource. Always compute#subnetworkList for lists of @@ -33506,6 +33549,45 @@ } } +/** Represents a secondary IP range of a subnetwork. */ +class SubnetworkSecondaryRange { + /** + * The range of IP addresses belonging to this subnetwork secondary range. + * Provide this property when you create the subnetwork. Ranges must be unique + * and non-overlapping with all primary and secondary IP ranges within a + * network. Only IPv4 is supported. + */ + core.String ipCidrRange; + /** + * The name associated with this subnetwork secondary range, used when adding + * an alias IP range to a VM instance. The name must be 1-63 characters long, + * and comply with RFC1035. The name must be unique within the subnetwork. + */ + core.String rangeName; + + SubnetworkSecondaryRange(); + + SubnetworkSecondaryRange.fromJson(core.Map _json) { + if (_json.containsKey("ipCidrRange")) { + ipCidrRange = _json["ipCidrRange"]; + } + if (_json.containsKey("rangeName")) { + rangeName = _json["rangeName"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (ipCidrRange != null) { + _json["ipCidrRange"] = ipCidrRange; + } + if (rangeName != null) { + _json["rangeName"] = rangeName; + } + return _json; + } +} + class SubnetworksExpandIpCidrRangeRequest { /** * The IP (in CIDR format or netmask) of internal addresses that are legal on @@ -33900,8 +33982,7 @@ /** A list of TargetHttpProxy resources. */ class TargetHttpProxyList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; /** A list of TargetHttpProxy resources. */ @@ -34096,8 +34177,7 @@ /** Contains a list of TargetHttpsProxy resources. */ class TargetHttpsProxyList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; /** A list of TargetHttpsProxy resources. */ @@ -34284,7 +34364,7 @@ * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** A map of scoped target instance lists. */ + /** A list of TargetInstance resources. */ core.Map<core.String, TargetInstancesScopedList> items; /** Type of resource. */ core.String kind; @@ -34343,8 +34423,7 @@ /** Contains a list of TargetInstance resources. */ class TargetInstanceList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; /** A list of TargetInstance resources. */ @@ -34722,10 +34801,10 @@ class TargetPoolAggregatedList { /** - * [Output Only] Unique identifier for the resource. Defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A map of scoped target pool lists. */ + /** A list of TargetPool resources. */ core.Map<core.String, TargetPoolsScopedList> items; /** * [Output Only] Type of resource. Always compute#targetPoolAggregatedList for @@ -34818,7 +34897,7 @@ /** Contains a list of TargetPool resources. */ class TargetPoolList { /** - * [Output Only] Unique identifier for the resource. Defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; /** A list of TargetPool resources. */ @@ -35320,8 +35399,7 @@ /** Contains a list of TargetSslProxy resources. */ class TargetSslProxyList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; /** A list of TargetSslProxy resources. */ @@ -35532,8 +35610,7 @@ /** Contains a list of TargetTcpProxy resources. */ class TargetTcpProxyList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; /** A list of TargetTcpProxy resources. */ @@ -35730,11 +35807,10 @@ class TargetVpnGatewayAggregatedList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** A map of scoped target vpn gateway lists. */ + /** A list of TargetVpnGateway resources. */ core.Map<core.String, TargetVpnGatewaysScopedList> items; /** * [Output Only] Type of resource. Always compute#targetVpnGateway for target @@ -35796,11 +35872,10 @@ /** Contains a list of TargetVpnGateway resources. */ class TargetVpnGatewayList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A list of TargetVpnGateway resources. */ + /** A list of TargetVpnGateway resources. */ core.List<TargetVpnGateway> items; /** * [Output Only] Type of resource. Always compute#targetVpnGateway for target @@ -36174,7 +36249,9 @@ /** Contains a list of UrlMap resources. */ class UrlMapList { - /** [Output Only] Unique identifier for the resource. Set by the server. */ + /** + * [Output Only] Unique identifier for the resource; defined by the server. + */ core.String id; /** A list of UrlMap resources. */ core.List<UrlMap> items; @@ -36634,11 +36711,10 @@ class VpnTunnelAggregatedList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A map of scoped vpn tunnel lists. */ + /** A list of VpnTunnelsScopedList resources. */ core.Map<core.String, VpnTunnelsScopedList> items; /** * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. @@ -36699,11 +36775,10 @@ /** Contains a list of VpnTunnel resources. */ class VpnTunnelList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A list of VpnTunnel resources. */ + /** A list of VpnTunnel resources. */ core.List<VpnTunnel> items; /** * [Output Only] Type of resource. Always compute#vpnTunnel for VPN tunnels. @@ -36898,15 +36973,14 @@ class XpnHostList { /** - * [Output Only] The unique identifier for the resource. This identifier is - * defined by the server. + * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A list of XPN host project URLs. */ + /** [Output Only] A list of shared VPC host project URLs. */ core.List<Project> items; /** - * [Output Only] Type of resource. Always compute#xpnHostList for lists of XPN - * hosts. + * [Output Only] Type of resource. Always compute#xpnHostList for lists of + * shared VPC hosts. */ core.String kind; /** @@ -36961,15 +37035,15 @@ } } -/** XpnResourceId */ +/** Service resource (a.k.a service project) ID. */ class XpnResourceId { /** - * The ID of the XPN resource. In the case of projects, this field matches the - * project's name, not the canonical ID. + * The ID of the service resource. In the case of projects, this field matches + * the project ID (e.g., my-project), not the project number (e.g., 12345678). */ core.String id; /** - * The type of the XPN resource. + * The type of the service resource. * Possible string values are: * - "PROJECT" * - "XPN_RESOURCE_TYPE_UNSPECIFIED" @@ -37099,7 +37173,7 @@ * [Output Only] Unique identifier for the resource; defined by the server. */ core.String id; - /** [Output Only] A list of Zone resources. */ + /** A list of Zone resources. */ core.List<Zone> items; /** Type of resource. */ core.String kind;
diff --git a/generated/googleapis/lib/container/v1.dart b/generated/googleapis/lib/container/v1.dart index 4271316..734d702 100644 --- a/generated/googleapis/lib/container/v1.dart +++ b/generated/googleapis/lib/container/v1.dart
@@ -1730,6 +1730,39 @@ +/** AcceleratorConfig represents a Hardware Accelerator request. */ +class AcceleratorConfig { + /** The number of the accelerator cards exposed to an instance. */ + core.String acceleratorCount; + /** + * The accelerator type resource name. List of supported accelerators + * [here](/compute/docs/gpus/#Introduction) + */ + core.String acceleratorType; + + AcceleratorConfig(); + + AcceleratorConfig.fromJson(core.Map _json) { + if (_json.containsKey("acceleratorCount")) { + acceleratorCount = _json["acceleratorCount"]; + } + if (_json.containsKey("acceleratorType")) { + acceleratorType = _json["acceleratorType"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (acceleratorCount != null) { + _json["acceleratorCount"] = acceleratorCount; + } + if (acceleratorType != null) { + _json["acceleratorType"] = acceleratorType; + } + return _json; + } +} + /** * Configuration for the addons that can be automatically spun up in the * cluster, enabling additional functionality. @@ -1746,6 +1779,8 @@ * makes it easy to set up HTTP load balancers for services in a cluster. */ HttpLoadBalancing httpLoadBalancing; + /** Configuration for the Kubernetes Dashboard. */ + KubernetesDashboard kubernetesDashboard; AddonsConfig(); @@ -1756,6 +1791,9 @@ if (_json.containsKey("httpLoadBalancing")) { httpLoadBalancing = new HttpLoadBalancing.fromJson(_json["httpLoadBalancing"]); } + if (_json.containsKey("kubernetesDashboard")) { + kubernetesDashboard = new KubernetesDashboard.fromJson(_json["kubernetesDashboard"]); + } } core.Map<core.String, core.Object> toJson() { @@ -1766,6 +1804,9 @@ if (httpLoadBalancing != null) { _json["httpLoadBalancing"] = (httpLoadBalancing).toJson(); } + if (kubernetesDashboard != null) { + _json["kubernetesDashboard"] = (kubernetesDashboard).toJson(); + } return _json; } } @@ -1824,6 +1865,36 @@ } } +/** CidrBlock contains an optional name and one CIDR block. */ +class CidrBlock { + /** cidr_block must be specified in CIDR notation. */ + core.String cidrBlock; + /** display_name is an optional field for users to identify CIDR blocks. */ + core.String displayName; + + CidrBlock(); + + CidrBlock.fromJson(core.Map _json) { + if (_json.containsKey("cidrBlock")) { + cidrBlock = _json["cidrBlock"]; + } + if (_json.containsKey("displayName")) { + displayName = _json["displayName"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (cidrBlock != null) { + _json["cidrBlock"] = cidrBlock; + } + if (displayName != null) { + _json["displayName"] = displayName; + } + return _json; + } +} + /** Configuration for client certificates on the cluster. */ class ClientCertificateConfig { /** Issue a client certificate. */ @@ -1945,6 +2016,11 @@ /** 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; + /** * The monitoring service the cluster should use to write metrics. * Currently available options: * @@ -2107,6 +2183,9 @@ if (_json.containsKey("masterAuth")) { masterAuth = new MasterAuth.fromJson(_json["masterAuth"]); } + if (_json.containsKey("masterAuthorizedNetworksConfig")) { + masterAuthorizedNetworksConfig = new MasterAuthorizedNetworksConfig.fromJson(_json["masterAuthorizedNetworksConfig"]); + } if (_json.containsKey("monitoringService")) { monitoringService = _json["monitoringService"]; } @@ -2210,6 +2289,9 @@ if (masterAuth != null) { _json["masterAuth"] = (masterAuth).toJson(); } + if (masterAuthorizedNetworksConfig != null) { + _json["masterAuthorizedNetworksConfig"] = (masterAuthorizedNetworksConfig).toJson(); + } if (monitoringService != null) { _json["monitoringService"] = monitoringService; } @@ -2280,6 +2362,11 @@ */ 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. @@ -2326,6 +2413,9 @@ if (_json.containsKey("desiredLocations")) { desiredLocations = _json["desiredLocations"]; } + if (_json.containsKey("desiredMasterAuthorizedNetworksConfig")) { + desiredMasterAuthorizedNetworksConfig = new MasterAuthorizedNetworksConfig.fromJson(_json["desiredMasterAuthorizedNetworksConfig"]); + } if (_json.containsKey("desiredMasterVersion")) { desiredMasterVersion = _json["desiredMasterVersion"]; } @@ -2354,6 +2444,9 @@ if (desiredLocations != null) { _json["desiredLocations"] = desiredLocations; } + if (desiredMasterAuthorizedNetworksConfig != null) { + _json["desiredMasterAuthorizedNetworksConfig"] = (desiredMasterAuthorizedNetworksConfig).toJson(); + } if (desiredMasterVersion != null) { _json["desiredMasterVersion"] = desiredMasterVersion; } @@ -2636,6 +2729,28 @@ } } +/** Configuration for the Kubernetes Dashboard. */ +class KubernetesDashboard { + /** Whether the Kubernetes Dashboard is enabled for this cluster. */ + core.bool disabled; + + KubernetesDashboard(); + + KubernetesDashboard.fromJson(core.Map _json) { + if (_json.containsKey("disabled")) { + disabled = _json["disabled"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (disabled != null) { + _json["disabled"] = disabled; + } + return _json; + } +} + /** * Configuration for the legacy Attribute Based Access Control authorization * mode. @@ -2845,6 +2960,45 @@ } /** + * 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, + * Google Compute Engine Public IPs and Google Prod IPs. + */ +class MasterAuthorizedNetworksConfig { + /** + * cidr_blocks define up to 10 external networks that could access + * Kubernetes master through HTTPS. + */ + core.List<CidrBlock> cidrBlocks; + /** Whether or not master authorized networks is enabled. */ + core.bool enabled; + + MasterAuthorizedNetworksConfig(); + + MasterAuthorizedNetworksConfig.fromJson(core.Map _json) { + if (_json.containsKey("cidrBlocks")) { + cidrBlocks = _json["cidrBlocks"].map((value) => new CidrBlock.fromJson(value)).toList(); + } + if (_json.containsKey("enabled")) { + enabled = _json["enabled"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (cidrBlocks != null) { + _json["cidrBlocks"] = cidrBlocks.map((value) => (value).toJson()).toList(); + } + if (enabled != null) { + _json["enabled"] = enabled; + } + return _json; + } +} + +/** * Configuration options for the NetworkPolicy feature. * https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ */ @@ -2854,7 +3008,7 @@ /** * The selected network policy provider. * Possible string values are: - * - "UNKNOWN" : Not set + * - "PROVIDER_UNSPECIFIED" : Not set * - "CALICO" : Tigera (Calico Felix). */ core.String provider; @@ -2885,6 +3039,12 @@ /** Parameters that describe the nodes in a cluster. */ class NodeConfig { /** + * A list of hardware accelerators to be attached to each node. + * See https://cloud.google.com/compute/docs/gpus for more information about + * support for GPUs. + */ + core.List<AcceleratorConfig> accelerators; + /** * Size of the disk attached to each node, specified in GB. * The smallest allowed disk size is 10GB. * @@ -2980,6 +3140,9 @@ NodeConfig(); NodeConfig.fromJson(core.Map _json) { + if (_json.containsKey("accelerators")) { + accelerators = _json["accelerators"].map((value) => new AcceleratorConfig.fromJson(value)).toList(); + } if (_json.containsKey("diskSizeGb")) { diskSizeGb = _json["diskSizeGb"]; } @@ -3014,6 +3177,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (accelerators != null) { + _json["accelerators"] = accelerators.map((value) => (value).toJson()).toList(); + } if (diskSizeGb != null) { _json["diskSizeGb"] = diskSizeGb; }
diff --git a/generated/googleapis/lib/content/v2.dart b/generated/googleapis/lib/content/v2.dart index 4149a9a..30f3ca1 100644 --- a/generated/googleapis/lib/content/v2.dart +++ b/generated/googleapis/lib/content/v2.dart
@@ -84,8 +84,8 @@ /** * Claims the website of a Merchant Center sub-account. This method can only * be called for accounts to which the managing account has access: either the - * managing account itself or sub-accounts if the managing account is a - * multi-client account. + * managing account itself for any Merchant Center account, or any sub-account + * when the managing account is a multi-client account. * * Request parameters: * @@ -232,8 +232,8 @@ /** * Retrieves a Merchant Center account. This method can only be called for * accounts to which the managing account has access: either the managing - * account itself or sub-accounts if the managing account is a multi-client - * account. + * account itself for any Merchant Center account, or any sub-account when the + * managing account is a multi-client account. * * Request parameters: * @@ -380,8 +380,9 @@ /** * Updates a Merchant Center account. This method can only be called for * accounts to which the managing account has access: either the managing - * account itself or sub-accounts if the managing account is a multi-client - * account. This method supports patch semantics. + * account itself for any Merchant Center account, or any sub-account when the + * managing account is a multi-client account. This method supports patch + * semantics. * * [request] - The metadata request object. * @@ -437,8 +438,8 @@ /** * Updates a Merchant Center account. This method can only be called for * accounts to which the managing account has access: either the managing - * account itself or sub-accounts if the managing account is a multi-client - * account. + * account itself for any Merchant Center account, or any sub-account when the + * managing account is a multi-client account. * * [request] - The metadata request object. * @@ -540,8 +541,8 @@ /** * Retrieves the status of a Merchant Center account. This method can only be * called for accounts to which the managing account has access: either the - * managing account itself or sub-accounts if the managing account is a - * multi-client account. + * managing account itself for any Merchant Center account, or any sub-account + * when the managing account is a multi-client account. * * Request parameters: * @@ -692,8 +693,8 @@ /** * Retrieves the tax settings of the account. This method can only be called * for accounts to which the managing account has access: either the managing - * account itself or sub-accounts if the managing account is a multi-client - * account. + * account itself for any Merchant Center account, or any sub-account when the + * managing account is a multi-client account. * * Request parameters: * @@ -791,8 +792,9 @@ /** * Updates the tax settings of the account. This method can only be called for * accounts to which the managing account has access: either the managing - * account itself or sub-accounts if the managing account is a multi-client - * account. This method supports patch semantics. + * account itself for any Merchant Center account, or any sub-account when the + * managing account is a multi-client account. This method supports patch + * semantics. * * [request] - The metadata request object. * @@ -849,8 +851,8 @@ /** * Updates the tax settings of the account. This method can only be called for * accounts to which the managing account has access: either the managing - * account itself or sub-accounts if the managing account is a multi-client - * account. + * account itself for any Merchant Center account, or any sub-account when the + * managing account is a multi-client account. * * [request] - The metadata request object. * @@ -2787,8 +2789,8 @@ /** * Retrieves the shipping settings of the account. This method can only be * called for accounts to which the managing account has access: either the - * managing account itself or sub-accounts if the managing account is a - * multi-client account. + * managing account itself for any Merchant Center account, or any sub-account + * when the managing account is a multi-client account. * * Request parameters: * @@ -2926,8 +2928,9 @@ /** * Updates the shipping settings of the account. This method can only be * called for accounts to which the managing account has access: either the - * managing account itself or sub-accounts if the managing account is a - * multi-client account. This method supports patch semantics. + * managing account itself for any Merchant Center account, or any sub-account + * when the managing account is a multi-client account. This method supports + * patch semantics. * * [request] - The metadata request object. * @@ -2984,8 +2987,8 @@ /** * Updates the shipping settings of the account. This method can only be * called for accounts to which the managing account has access: either the - * managing account itself or sub-accounts if the managing account is a - * multi-client account. + * managing account itself for any Merchant Center account, or any sub-account + * when the managing account is a multi-client account. * * [request] - The metadata request object. * @@ -4463,6 +4466,8 @@ core.int minuteOfHour; /** An optional password for fetch_url. */ core.String password; + /** Whether the scheduled fetch is paused or not. */ + core.bool paused; /** * Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles". */ @@ -4490,6 +4495,9 @@ if (_json.containsKey("password")) { password = _json["password"]; } + if (_json.containsKey("paused")) { + paused = _json["paused"]; + } if (_json.containsKey("timeZone")) { timeZone = _json["timeZone"]; } @@ -4518,6 +4526,9 @@ if (password != null) { _json["password"] = password; } + if (paused != null) { + _json["paused"] = paused; + } if (timeZone != null) { _json["timeZone"] = timeZone; } @@ -5866,7 +5877,7 @@ core.String placedDate; /** * The details of the merchant provided promotions applied to the order. More - * details about the program are here. + * details about the program are here. */ core.List<OrderPromotion> promotions; /** Refunds for the order. */ @@ -9305,9 +9316,7 @@ core.String postalCode; /** Fixed shipping price, represented as a number. */ Price price; - /** - * The geographic region to which a shipping rate applies (e.g. zip code). - */ + /** The geographic region to which a shipping rate applies. */ core.String region; /** A free-form description of the service class or delivery speed. */ core.String service; @@ -9456,6 +9465,8 @@ core.String lastUpdateDate; /** The link to the product. */ core.String link; + /** Product data after applying all the join inputs. */ + Product product; /** The id of the product for which status is reported. */ core.String productId; /** The title of the product. */ @@ -9485,6 +9496,9 @@ if (_json.containsKey("link")) { link = _json["link"]; } + if (_json.containsKey("product")) { + product = new Product.fromJson(_json["product"]); + } if (_json.containsKey("productId")) { productId = _json["productId"]; } @@ -9516,6 +9530,9 @@ if (link != null) { _json["link"] = link; } + if (product != null) { + _json["product"] = (product).toJson(); + } if (productId != null) { _json["productId"] = productId; } @@ -9998,6 +10015,7 @@ class ProductstatusesCustomBatchRequestEntry { /** An entry ID, unique within the batch request. */ core.int batchId; + core.bool includeAttributes; /** The ID of the managing account. */ core.String merchantId; core.String method; @@ -10010,6 +10028,9 @@ if (_json.containsKey("batchId")) { batchId = _json["batchId"]; } + if (_json.containsKey("includeAttributes")) { + includeAttributes = _json["includeAttributes"]; + } if (_json.containsKey("merchantId")) { merchantId = _json["merchantId"]; } @@ -10026,6 +10047,9 @@ if (batchId != null) { _json["batchId"] = batchId; } + if (includeAttributes != null) { + _json["includeAttributes"] = includeAttributes; + } if (merchantId != null) { _json["merchantId"] = merchantId; } @@ -10678,7 +10702,7 @@ core.String predefinedDeliveryAddress; /** * The details of the merchant provided promotions applied to the order. More - * details about the program are here. + * details about the program are here. */ core.List<OrderPromotion> promotions; /** The total cost of shipping for all items. */
diff --git a/generated/googleapis/lib/content/v2sandbox.dart b/generated/googleapis/lib/content/v2sandbox.dart index 1d66fa8..06fd742 100644 --- a/generated/googleapis/lib/content/v2sandbox.dart +++ b/generated/googleapis/lib/content/v2sandbox.dart
@@ -922,7 +922,7 @@ core.String placedDate; /** * The details of the merchant provided promotions applied to the order. More - * details about the program are here. + * details about the program are here. */ core.List<OrderPromotion> promotions; /** Refunds for the order. */ @@ -3473,7 +3473,7 @@ core.String predefinedDeliveryAddress; /** * The details of the merchant provided promotions applied to the order. More - * details about the program are here. + * details about the program are here. */ core.List<OrderPromotion> promotions; /** The total cost of shipping for all items. */
diff --git a/generated/googleapis/lib/dataproc/v1.dart b/generated/googleapis/lib/dataproc/v1.dart index d376dc8..2ee5301 100644 --- a/generated/googleapis/lib/dataproc/v1.dart +++ b/generated/googleapis/lib/dataproc/v1.dart
@@ -1674,8 +1674,8 @@ * 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 GCE region. On a get request, zone will always be present.A - * full URL, partial URI, or short name are valid. Examples: + * 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 @@ -3154,8 +3154,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a common set - * of message types for APIs to use. + * A list of messages that carry the error details. There 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.
diff --git a/generated/googleapis/lib/dataproc/v1beta2.dart b/generated/googleapis/lib/dataproc/v1beta2.dart deleted file mode 100644 index b5d6dfe..0000000 --- a/generated/googleapis/lib/dataproc/v1beta2.dart +++ /dev/null
@@ -1,3260 +0,0 @@ -// This is a generated file (see the discoveryapis_generator project). - -library googleapis.dataproc.v1beta2; - -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 dataproc/v1beta2'; - -/** Manages Hadoop-based clusters and jobs on Google Cloud Platform. */ -class DataprocApi { - /** View and manage your data across Google Cloud Platform services */ - static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; - - - final commons.ApiRequester _requester; - - ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); - - DataprocApi(http.Client client, {core.String rootUrl: "https://dataproc.googleapis.com/", core.String servicePath: ""}) : - _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); -} - - -class ProjectsResourceApi { - final commons.ApiRequester _requester; - - ProjectsRegionsResourceApi get regions => new ProjectsRegionsResourceApi(_requester); - - ProjectsResourceApi(commons.ApiRequester client) : - _requester = client; -} - - -class ProjectsRegionsResourceApi { - final commons.ApiRequester _requester; - - ProjectsRegionsClustersResourceApi get clusters => new ProjectsRegionsClustersResourceApi(_requester); - ProjectsRegionsJobsResourceApi get jobs => new ProjectsRegionsJobsResourceApi(_requester); - ProjectsRegionsOperationsResourceApi get operations => new ProjectsRegionsOperationsResourceApi(_requester); - - ProjectsRegionsResourceApi(commons.ApiRequester client) : - _requester = client; -} - - -class ProjectsRegionsClustersResourceApi { - final commons.ApiRequester _requester; - - ProjectsRegionsClustersResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Creates a cluster in a project. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [projectId] - Required. The ID of the Google Cloud Platform project that - * the cluster belongs to. - * - * [region] - Required. The Cloud Dataproc region in which to handle the - * request. - * - * Completes with a [Operation]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Operation> create(Cluster request, core.String projectId, core.String region) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (region == null) { - throw new core.ArgumentError("Parameter region is required."); - } - - _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/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 a cluster in a project. - * - * Request parameters: - * - * [projectId] - Required. The ID of the Google Cloud Platform project that - * the cluster belongs to. - * - * [region] - Required. The Cloud Dataproc region in which to handle the - * request. - * - * [clusterName] - Required. The cluster name. - * - * 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 projectId, core.String region, core.String clusterName) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (region == null) { - throw new core.ArgumentError("Parameter region is required."); - } - if (clusterName == null) { - throw new core.ArgumentError("Parameter clusterName is required."); - } - - _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterName'); - - 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 cluster diagnostic information. After the operation completes, the - * Operation.response field contains DiagnoseClusterOutputLocation. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [projectId] - Required. The ID of the Google Cloud Platform project that - * the cluster belongs to. - * - * [region] - Required. The Cloud Dataproc region in which to handle the - * request. - * - * [clusterName] - Required. The cluster name. - * - * 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> diagnose(DiagnoseClusterRequest request, core.String projectId, core.String region, core.String clusterName) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (region == null) { - throw new core.ArgumentError("Parameter region is required."); - } - if (clusterName == null) { - throw new core.ArgumentError("Parameter clusterName is required."); - } - - _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterName') + ':diagnose'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Operation.fromJson(data)); - } - - /** - * Gets the resource representation for a cluster in a project. - * - * Request parameters: - * - * [projectId] - Required. The ID of the Google Cloud Platform project that - * the cluster belongs to. - * - * [region] - Required. The Cloud Dataproc region in which to handle the - * request. - * - * [clusterName] - Required. The cluster name. - * - * 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 projectId, core.String region, core.String clusterName) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (region == null) { - throw new core.ArgumentError("Parameter region is required."); - } - if (clusterName == null) { - throw new core.ArgumentError("Parameter clusterName is required."); - } - - _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterName'); - - 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 regions/{region}/clusters in a project. - * - * Request parameters: - * - * [projectId] - Required. The ID of the Google Cloud Platform project that - * the cluster belongs to. - * - * [region] - Required. The Cloud Dataproc region in which to handle the - * request. - * - * [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], - * and [KEY] is a label key. value can be * to match all values. status.state - * can be one of the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, - * DELETING, or UPDATING. ACTIVE contains the CREATING, UPDATING, and RUNNING - * states. INACTIVE contains the DELETING and ERROR states. clusterName is the - * name of the cluster provided at creation time. Only the logical AND - * operator is supported; space-separated items are treated as having an - * implicit AND operator.Example 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. - * - * 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 projectId, core.String region, {core.String filter, core.String pageToken, core.int pageSize}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (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}"]; - } - - _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/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)); - } - - /** - * Updates a cluster in a project. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [projectId] - Required. The ID of the Google Cloud Platform project the - * cluster belongs to. - * - * [region] - Required. The Cloud Dataproc region in which to handle the - * request. - * - * [clusterName] - Required. The cluster name. - * - * [updateMask] - Required. Specifies the path, relative to - * <code>Cluster</code>, of the field to update. For example, to change the - * number of workers in a cluster to 5, the <code>update_mask</code> parameter - * would be specified as <code>config.worker_config.num_instances</code>, and - * the PATCH request body would specify the new value, as follows: - * { - * "config":{ - * "workerConfig":{ - * "numInstances":"5" - * } - * } - * } - * Similarly, to change the number of preemptible workers in a cluster to 5, - * the <code>update_mask</code> parameter would be - * <code>config.secondary_worker_config.num_instances</code>, and the PATCH - * request body would be set as follows: - * { - * "config":{ - * "secondaryWorkerConfig":{ - * "numInstances":"5" - * } - * } - * } - * <strong>Note:</strong> currently only some fields can be updated: - * |Mask|Purpose| |labels|Updates labels| - * |config.worker_config.num_instances|Resize primary worker group| - * |config.secondary_worker_config.num_instances|Resize secondary worker - * group| - * - * Completes with a [Operation]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Operation> patch(Cluster request, core.String projectId, core.String region, core.String clusterName, {core.String updateMask}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (region == null) { - throw new core.ArgumentError("Parameter region is required."); - } - if (clusterName == null) { - throw new core.ArgumentError("Parameter clusterName is required."); - } - if (updateMask != null) { - _queryParams["updateMask"] = [updateMask]; - } - - _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterName'); - - 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 ProjectsRegionsJobsResourceApi { - final commons.ApiRequester _requester; - - ProjectsRegionsJobsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Starts a job cancellation request. To access the job resource after - * cancellation, call regions/{region}/jobs.list or regions/{region}/jobs.get. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [projectId] - Required. The ID of the Google Cloud Platform project that - * the job belongs to. - * - * [region] - Required. The Cloud Dataproc region in which to handle the - * request. - * - * [jobId] - Required. The job ID. - * - * Completes with a [Job]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Job> cancel(CancelJobRequest request, core.String projectId, core.String region, core.String jobId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (region == null) { - throw new core.ArgumentError("Parameter region is required."); - } - if (jobId == null) { - throw new core.ArgumentError("Parameter jobId is required."); - } - - _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId') + ':cancel'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Job.fromJson(data)); - } - - /** - * Deletes the job from the project. If the job is active, the delete fails, - * and the response returns FAILED_PRECONDITION. - * - * Request parameters: - * - * [projectId] - Required. The ID of the Google Cloud Platform project that - * the job belongs to. - * - * [region] - Required. The Cloud Dataproc region in which to handle the - * request. - * - * [jobId] - Required. The job ID. - * - * 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 projectId, core.String region, core.String jobId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (region == null) { - throw new core.ArgumentError("Parameter region is required."); - } - if (jobId == null) { - throw new core.ArgumentError("Parameter jobId is required."); - } - - _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId'); - - 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 resource representation for a job in a project. - * - * Request parameters: - * - * [projectId] - Required. The ID of the Google Cloud Platform project that - * the job belongs to. - * - * [region] - Required. The Cloud Dataproc region in which to handle the - * request. - * - * [jobId] - Required. The job ID. - * - * Completes with a [Job]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Job> get(core.String projectId, core.String region, core.String jobId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (region == null) { - throw new core.ArgumentError("Parameter region is required."); - } - if (jobId == null) { - throw new core.ArgumentError("Parameter jobId is required."); - } - - _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Job.fromJson(data)); - } - - /** - * Lists regions/{region}/jobs in a project. - * - * Request parameters: - * - * [projectId] - Required. The ID of the Google Cloud Platform project that - * the job belongs to. - * - * [region] - Required. The Cloud Dataproc region in which to handle the - * request. - * - * [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 - * key. value can be * to match all values. status.state can be either ACTIVE - * or INACTIVE. Only the logical AND operator is supported; space-separated - * items are treated as having an implicit AND operator.Example - * filter:status.state = ACTIVE AND labels.env = staging AND labels.starred = - * * - * - * [jobStateMatcher] - Optional. Specifies enumerated categories of jobs to - * list (default = match ALL jobs). - * Possible string values are: - * - "ALL" : A ALL. - * - "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. - * - * Completes with a [ListJobsResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ListJobsResponse> list(core.String projectId, core.String region, {core.String filter, core.String jobStateMatcher, core.String pageToken, core.int pageSize, core.String clusterName}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (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]; - } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - if (clusterName != null) { - _queryParams["clusterName"] = [clusterName]; - } - - _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/jobs'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ListJobsResponse.fromJson(data)); - } - - /** - * Updates a job in a project. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [projectId] - Required. The ID of the Google Cloud Platform project that - * the job belongs to. - * - * [region] - Required. The Cloud Dataproc region in which to handle the - * request. - * - * [jobId] - Required. The job ID. - * - * [updateMask] - Required. Specifies the path, relative to <code>Job</code>, - * of the field to update. For example, to update the labels of a Job the - * <code>update_mask</code> parameter would be specified as - * <code>labels</code>, and the PATCH request body would specify the new - * value. <strong>Note:</strong> Currently, <code>labels</code> is the only - * field that can be updated. - * - * Completes with a [Job]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Job> patch(Job request, core.String projectId, core.String region, core.String jobId, {core.String updateMask}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (region == null) { - throw new core.ArgumentError("Parameter region is required."); - } - if (jobId == null) { - throw new core.ArgumentError("Parameter jobId is required."); - } - if (updateMask != null) { - _queryParams["updateMask"] = [updateMask]; - } - - _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId'); - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Job.fromJson(data)); - } - - /** - * Submits a job to a cluster. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [projectId] - Required. The ID of the Google Cloud Platform project that - * the job belongs to. - * - * [region] - Required. The Cloud Dataproc region in which to handle the - * request. - * - * Completes with a [Job]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Job> submit(SubmitJobRequest request, core.String projectId, core.String region) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (region == null) { - throw new core.ArgumentError("Parameter region is required."); - } - - _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/jobs:submit'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Job.fromJson(data)); - } - -} - - -class ProjectsRegionsOperationsResourceApi { - final commons.ApiRequester _requester; - - ProjectsRegionsOperationsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Starts asynchronous cancellation on a long-running operation. The server - * makes a best effort to cancel the operation, but success is not guaranteed. - * If the server doesn't support this method, it returns - * google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or - * other methods to check whether the cancellation succeeded or whether the - * operation completed despite cancellation. On successful cancellation, the - * operation is not deleted; instead, it becomes an operation with an - * Operation.error value with a google.rpc.Status.code of 1, corresponding to - * Code.CANCELLED. - * - * Request parameters: - * - * [name] - The name of the operation resource to be cancelled. - * Value must have pattern "^projects/[^/]+/regions/[^/]+/operations/[^/]+$". - * - * Completes with a [Empty]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Empty> cancel(core.String name) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (name == null) { - throw new core.ArgumentError("Parameter name is required."); - } - - _url = 'v1beta2/' + 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 "^projects/[^/]+/regions/[^/]+/operations/[^/]+$". - * - * Completes with a [Empty]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Empty> delete(core.String name) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (name == null) { - throw new core.ArgumentError("Parameter name is required."); - } - - _url = 'v1beta2/' + 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 "^projects/[^/]+/regions/[^/]+/operations/[^/]+$". - * - * 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) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (name == null) { - throw new core.ArgumentError("Parameter name is required."); - } - - _url = 'v1beta2/' + 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 "^projects/[^/]+/regions/[^/]+/operations$". - * - * [pageSize] - The standard list page size. - * - * [filter] - The standard list filter. - * - * [pageToken] - The standard list page token. - * - * Completes with a [ListOperationsResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ListOperationsResponse> list(core.String name, {core.int pageSize, core.String filter, core.String pageToken}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (name == null) { - throw new core.ArgumentError("Parameter name is required."); - } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - if (filter != null) { - _queryParams["filter"] = [filter]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - - _url = 'v1beta2/' + 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)); - } - -} - - - -/** - * Specifies the type and number of accelerator cards attached to the instances - * of an instance group (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 * - * 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 - */ - core.String acceleratorTypeUri; - - AcceleratorConfig(); - - AcceleratorConfig.fromJson(core.Map _json) { - if (_json.containsKey("acceleratorCount")) { - acceleratorCount = _json["acceleratorCount"]; - } - if (_json.containsKey("acceleratorTypeUri")) { - acceleratorTypeUri = _json["acceleratorTypeUri"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (acceleratorCount != null) { - _json["acceleratorCount"] = acceleratorCount; - } - if (acceleratorTypeUri != null) { - _json["acceleratorTypeUri"] = acceleratorTypeUri; - } - return _json; - } -} - -/** A request to cancel a job. */ -class CancelJobRequest { - - CancelJobRequest(); - - CancelJobRequest.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; - } -} - -/** - * Describes the identifying information, config, and status of a cluster of - * Google Compute Engine instances. - */ -class Cluster { - /** - * Required. The cluster name. Cluster names within a project must be unique. - * Names of deleted clusters can be reused. - */ - core.String clusterName; - /** - * Output-only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc - * generates this value when it creates the cluster. - */ - core.String clusterUuid; - /** - * Required. The cluster config. Note that Cloud Dataproc may set default - * values, and values may change when clusters are updated. - */ - ClusterConfig config; - /** - * Optional. The labels to associate with this cluster. Label keys must - * contain 1 to 63 characters, and must conform to RFC 1035 - * (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if - * present, must contain 1 to 63 characters, and must conform to RFC 1035 - * (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be - * associated with a cluster. - */ - core.Map<core.String, core.String> labels; - /** - * Contains cluster daemon metrics such as HDFS and YARN stats.Beta Feature: - * This report is available for testing purposes only. It may be changed - * before final release. - */ - ClusterMetrics metrics; - /** - * Required. The Google Cloud Platform project ID that the cluster belongs to. - */ - core.String projectId; - /** Output-only. Cluster status. */ - ClusterStatus status; - /** Output-only. The previous cluster status. */ - core.List<ClusterStatus> statusHistory; - - Cluster(); - - Cluster.fromJson(core.Map _json) { - if (_json.containsKey("clusterName")) { - clusterName = _json["clusterName"]; - } - if (_json.containsKey("clusterUuid")) { - clusterUuid = _json["clusterUuid"]; - } - if (_json.containsKey("config")) { - config = new ClusterConfig.fromJson(_json["config"]); - } - if (_json.containsKey("labels")) { - labels = _json["labels"]; - } - if (_json.containsKey("metrics")) { - metrics = new ClusterMetrics.fromJson(_json["metrics"]); - } - if (_json.containsKey("projectId")) { - projectId = _json["projectId"]; - } - if (_json.containsKey("status")) { - status = new ClusterStatus.fromJson(_json["status"]); - } - if (_json.containsKey("statusHistory")) { - statusHistory = _json["statusHistory"].map((value) => new ClusterStatus.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 (clusterName != null) { - _json["clusterName"] = clusterName; - } - if (clusterUuid != null) { - _json["clusterUuid"] = clusterUuid; - } - if (config != null) { - _json["config"] = (config).toJson(); - } - if (labels != null) { - _json["labels"] = labels; - } - if (metrics != null) { - _json["metrics"] = (metrics).toJson(); - } - if (projectId != null) { - _json["projectId"] = projectId; - } - if (status != null) { - _json["status"] = (status).toJson(); - } - if (statusHistory != null) { - _json["statusHistory"] = statusHistory.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** 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. - */ - core.String configBucket; - /** - * Required. The shared Google Compute Engine config settings for all - * instances in a cluster. - */ - GceClusterConfig gceClusterConfig; - /** - * Optional. Commands to execute on each node after config is completed. By - * default, executables are run on master and all worker nodes. You can test a - * node's <code>role</code> metadata to run an executable on a master or - * worker node, as shown below using curl (you can also use wget): - * ROLE=$(curl -H Metadata-Flavor:Google - * http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role) - * if [[ "${ROLE}" == 'Master' ]]; then - * ... master specific actions ... - * else - * ... worker specific actions ... - * fi - */ - core.List<NodeInitializationAction> initializationActions; - /** - * Optional. The Google Compute Engine config settings for the master instance - * in a cluster. - */ - InstanceGroupConfig masterConfig; - /** - * Optional. The Google 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. - */ - InstanceGroupConfig workerConfig; - - ClusterConfig(); - - ClusterConfig.fromJson(core.Map _json) { - if (_json.containsKey("configBucket")) { - configBucket = _json["configBucket"]; - } - if (_json.containsKey("gceClusterConfig")) { - gceClusterConfig = new GceClusterConfig.fromJson(_json["gceClusterConfig"]); - } - if (_json.containsKey("initializationActions")) { - initializationActions = _json["initializationActions"].map((value) => new NodeInitializationAction.fromJson(value)).toList(); - } - if (_json.containsKey("masterConfig")) { - masterConfig = new InstanceGroupConfig.fromJson(_json["masterConfig"]); - } - if (_json.containsKey("secondaryWorkerConfig")) { - secondaryWorkerConfig = new InstanceGroupConfig.fromJson(_json["secondaryWorkerConfig"]); - } - if (_json.containsKey("softwareConfig")) { - softwareConfig = new SoftwareConfig.fromJson(_json["softwareConfig"]); - } - if (_json.containsKey("workerConfig")) { - workerConfig = new InstanceGroupConfig.fromJson(_json["workerConfig"]); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (configBucket != null) { - _json["configBucket"] = configBucket; - } - if (gceClusterConfig != null) { - _json["gceClusterConfig"] = (gceClusterConfig).toJson(); - } - if (initializationActions != null) { - _json["initializationActions"] = initializationActions.map((value) => (value).toJson()).toList(); - } - if (masterConfig != null) { - _json["masterConfig"] = (masterConfig).toJson(); - } - if (secondaryWorkerConfig != null) { - _json["secondaryWorkerConfig"] = (secondaryWorkerConfig).toJson(); - } - if (softwareConfig != null) { - _json["softwareConfig"] = (softwareConfig).toJson(); - } - if (workerConfig != null) { - _json["workerConfig"] = (workerConfig).toJson(); - } - return _json; - } -} - -/** - * Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature: - * This report is available for testing purposes only. It may be changed before - * final release. - */ -class ClusterMetrics { - /** The HDFS metrics. */ - core.Map<core.String, core.String> hdfsMetrics; - /** The YARN metrics. */ - core.Map<core.String, core.String> yarnMetrics; - - ClusterMetrics(); - - ClusterMetrics.fromJson(core.Map _json) { - if (_json.containsKey("hdfsMetrics")) { - hdfsMetrics = _json["hdfsMetrics"]; - } - if (_json.containsKey("yarnMetrics")) { - yarnMetrics = _json["yarnMetrics"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (hdfsMetrics != null) { - _json["hdfsMetrics"] = hdfsMetrics; - } - if (yarnMetrics != null) { - _json["yarnMetrics"] = yarnMetrics; - } - return _json; - } -} - -/** Metadata describing the operation. */ -class ClusterOperationMetadata { - /** Output-only. Name of the cluster for the operation. */ - core.String clusterName; - /** Output-only. Cluster UUID for the operation. */ - core.String clusterUuid; - /** Output-only. Short description of operation. */ - core.String description; - /** Output-only. Labels associated with the operation */ - core.Map<core.String, core.String> labels; - /** Output-only. The operation type. */ - core.String operationType; - /** Output-only. Current operation status. */ - ClusterOperationStatus status; - /** Output-only. The previous operation status. */ - core.List<ClusterOperationStatus> statusHistory; - /** Output-only. Errors encountered during operation execution. */ - core.List<core.String> warnings; - - ClusterOperationMetadata(); - - ClusterOperationMetadata.fromJson(core.Map _json) { - if (_json.containsKey("clusterName")) { - clusterName = _json["clusterName"]; - } - if (_json.containsKey("clusterUuid")) { - clusterUuid = _json["clusterUuid"]; - } - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("labels")) { - labels = _json["labels"]; - } - if (_json.containsKey("operationType")) { - operationType = _json["operationType"]; - } - if (_json.containsKey("status")) { - status = new ClusterOperationStatus.fromJson(_json["status"]); - } - if (_json.containsKey("statusHistory")) { - statusHistory = _json["statusHistory"].map((value) => new ClusterOperationStatus.fromJson(value)).toList(); - } - if (_json.containsKey("warnings")) { - warnings = _json["warnings"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (clusterName != null) { - _json["clusterName"] = clusterName; - } - if (clusterUuid != null) { - _json["clusterUuid"] = clusterUuid; - } - if (description != null) { - _json["description"] = description; - } - if (labels != null) { - _json["labels"] = labels; - } - if (operationType != null) { - _json["operationType"] = operationType; - } - if (status != null) { - _json["status"] = (status).toJson(); - } - if (statusHistory != null) { - _json["statusHistory"] = statusHistory.map((value) => (value).toJson()).toList(); - } - if (warnings != null) { - _json["warnings"] = warnings; - } - return _json; - } -} - -/** The status of the operation. */ -class ClusterOperationStatus { - /** Output-only.A message containing any operation metadata details. */ - core.String details; - /** Output-only. A message containing the detailed operation state. */ - core.String innerState; - /** - * Output-only. A message containing the operation state. - * Possible string values are: - * - "UNKNOWN" : Unused. - * - "PENDING" : The operation has been created. - * - "RUNNING" : The operation is running. - * - "DONE" : The operation is done; either cancelled or completed. - */ - core.String state; - /** Output-only. The time this state was entered. */ - core.String stateStartTime; - - ClusterOperationStatus(); - - ClusterOperationStatus.fromJson(core.Map _json) { - if (_json.containsKey("details")) { - details = _json["details"]; - } - if (_json.containsKey("innerState")) { - innerState = _json["innerState"]; - } - if (_json.containsKey("state")) { - state = _json["state"]; - } - if (_json.containsKey("stateStartTime")) { - stateStartTime = _json["stateStartTime"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (details != null) { - _json["details"] = details; - } - if (innerState != null) { - _json["innerState"] = innerState; - } - if (state != null) { - _json["state"] = state; - } - if (stateStartTime != null) { - _json["stateStartTime"] = stateStartTime; - } - return _json; - } -} - -/** The status of a cluster and its instances. */ -class ClusterStatus { - /** Output-only. Optional details of cluster's state. */ - core.String detail; - /** - * Output-only. The cluster's state. - * Possible string values are: - * - "UNKNOWN" : The cluster state is unknown. - * - "CREATING" : The cluster is being created and set up. It is not ready for - * use. - * - "RUNNING" : The cluster is currently running and healthy. It is ready for - * use. - * - "ERROR" : The cluster encountered an error. It is not ready for use. - * - "DELETING" : The cluster is being deleted. It cannot be used. - * - "UPDATING" : The cluster is being updated. It continues to accept and - * process jobs. - */ - core.String state; - /** Output-only. Time when this state was entered. */ - core.String stateStartTime; - /** - * Output-only. Additional state information that includes status reported by - * the agent. - * Possible string values are: - * - "UNSPECIFIED" - * - "UNHEALTHY" : The cluster is known to be in an unhealthy state (for - * example, critical daemons are not running or HDFS capacity is - * exhausted).Applies to RUNNING state. - * - "STALE_STATUS" : The agent-reported status is out of date (may occur if - * Cloud Dataproc loses communication with Agent).Applies to RUNNING state. - */ - core.String substate; - - ClusterStatus(); - - ClusterStatus.fromJson(core.Map _json) { - if (_json.containsKey("detail")) { - detail = _json["detail"]; - } - if (_json.containsKey("state")) { - state = _json["state"]; - } - if (_json.containsKey("stateStartTime")) { - stateStartTime = _json["stateStartTime"]; - } - if (_json.containsKey("substate")) { - substate = _json["substate"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (detail != null) { - _json["detail"] = detail; - } - if (state != null) { - _json["state"] = state; - } - if (stateStartTime != null) { - _json["stateStartTime"] = stateStartTime; - } - if (substate != null) { - _json["substate"] = substate; - } - return _json; - } -} - -/** A request to collect cluster diagnostic information. */ -class DiagnoseClusterRequest { - - DiagnoseClusterRequest(); - - DiagnoseClusterRequest.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; - } -} - -/** Specifies the config of disk options for a group of VM instances. */ -class DiskConfig { - /** Optional. Size in GB of the boot disk (default is 500GB). */ - core.int bootDiskSizeGb; - /** - * Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are - * not attached, the boot disk is used to store runtime logs and HDFS - * (https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one - * or more SSDs are attached, this runtime bulk data is spread across them, - * and the boot disk contains only basic config and installed binaries. - */ - core.int numLocalSsds; - - DiskConfig(); - - DiskConfig.fromJson(core.Map _json) { - if (_json.containsKey("bootDiskSizeGb")) { - bootDiskSizeGb = _json["bootDiskSizeGb"]; - } - if (_json.containsKey("numLocalSsds")) { - numLocalSsds = _json["numLocalSsds"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (bootDiskSizeGb != null) { - _json["bootDiskSizeGb"] = bootDiskSizeGb; - } - if (numLocalSsds != null) { - _json["numLocalSsds"] = numLocalSsds; - } - 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; - } -} - -/** - * Common config settings for resources of Google 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 - * addresses, and will have ephemeral external IP addresses assigned to each - * instance. This internal_ip_only restriction can only be enabled for - * subnetwork enabled networks, and all off-cluster dependencies must be - * configured to be accessible without external IP addresses. - */ - core.bool internalIpOnly; - /** - * The Google Compute Engine metadata entries to add to all instances (see - * Project and instance metadata - * (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)). - */ - core.Map<core.String, core.String> metadata; - /** - * Optional. The Google Compute Engine network to be used for machine - * communications. Cannot be specified with subnetwork_uri. If neither - * network_uri nor subnetwork_uri is specified, the "default" network of the - * project is used, if it exists. Cannot be a "Custom Subnet Network" (see - * Using Subnetworks for more information).A full URL, partial URI, or short - * name are valid. Examples: - * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default - * projects/[project_id]/regions/global/default - * default - */ - 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: - * roles/logging.logWriter - * roles/storage.objectAdmin(see - * https://cloud.google.com/compute/docs/access/service-accounts#custom_service_accounts - * for more information). Example: - * [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: - * 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, - * the following defaults are also provided: - * https://www.googleapis.com/auth/bigquery - * https://www.googleapis.com/auth/bigtable.admin.table - * https://www.googleapis.com/auth/bigtable.data - * https://www.googleapis.com/auth/devstorage.full_control - */ - core.List<core.String> serviceAccountScopes; - /** - * Optional. The Google 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 - * projects/[project_id]/regions/us-east1/sub0 - * sub0 - */ - core.String subnetworkUri; - /** - * The Google 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 GCE 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 - */ - core.String zoneUri; - - GceClusterConfig(); - - GceClusterConfig.fromJson(core.Map _json) { - if (_json.containsKey("internalIpOnly")) { - internalIpOnly = _json["internalIpOnly"]; - } - if (_json.containsKey("metadata")) { - metadata = _json["metadata"]; - } - if (_json.containsKey("networkUri")) { - networkUri = _json["networkUri"]; - } - if (_json.containsKey("serviceAccount")) { - serviceAccount = _json["serviceAccount"]; - } - if (_json.containsKey("serviceAccountScopes")) { - serviceAccountScopes = _json["serviceAccountScopes"]; - } - if (_json.containsKey("subnetworkUri")) { - subnetworkUri = _json["subnetworkUri"]; - } - if (_json.containsKey("tags")) { - tags = _json["tags"]; - } - if (_json.containsKey("zoneUri")) { - zoneUri = _json["zoneUri"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (internalIpOnly != null) { - _json["internalIpOnly"] = internalIpOnly; - } - if (metadata != null) { - _json["metadata"] = metadata; - } - if (networkUri != null) { - _json["networkUri"] = networkUri; - } - if (serviceAccount != null) { - _json["serviceAccount"] = serviceAccount; - } - if (serviceAccountScopes != null) { - _json["serviceAccountScopes"] = serviceAccountScopes; - } - if (subnetworkUri != null) { - _json["subnetworkUri"] = subnetworkUri; - } - if (tags != null) { - _json["tags"] = tags; - } - if (zoneUri != null) { - _json["zoneUri"] = zoneUri; - } - return _json; - } -} - -/** - * A Cloud Dataproc job for running Apache Hadoop MapReduce - * (https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) - * jobs on Apache Hadoop YARN - * (https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). - */ -class HadoopJob { - /** - * Optional. HCFS URIs of archives to be extracted in the working directory of - * Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, - * or .zip. - */ - core.List<core.String> archiveUris; - /** - * Optional. The arguments to pass to the driver. Do not include arguments, - * such as -libjars or -Dfoo=bar, that can be set as job properties, since a - * collision may occur that causes an incorrect job submission. - */ - core.List<core.String> args; - /** - * Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to - * the working directory of Hadoop drivers and distributed tasks. Useful for - * naively parallel tasks. - */ - core.List<core.String> fileUris; - /** - * Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and - * tasks. - */ - core.List<core.String> jarFileUris; - /** Optional. The runtime log config for job execution. */ - LoggingConfig loggingConfig; - /** - * The name of the driver's main class. The jar file containing the class must - * be in the default CLASSPATH or specified in jar_file_uris. - */ - core.String mainClass; - /** - * The HCFS URI of the jar file containing the main class. Examples: - * 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' - * 'hdfs:/tmp/test-samples/custom-wordcount.jar' - * 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar' - */ - core.String mainJarFileUri; - /** - * Optional. A mapping of property names to values, used to configure Hadoop. - * Properties that conflict with values set by the Cloud Dataproc API may be - * overwritten. Can include properties set in /etc/hadoop/conf / * -site and - * classes in user code. - */ - core.Map<core.String, core.String> properties; - - HadoopJob(); - - HadoopJob.fromJson(core.Map _json) { - if (_json.containsKey("archiveUris")) { - archiveUris = _json["archiveUris"]; - } - if (_json.containsKey("args")) { - args = _json["args"]; - } - if (_json.containsKey("fileUris")) { - fileUris = _json["fileUris"]; - } - if (_json.containsKey("jarFileUris")) { - jarFileUris = _json["jarFileUris"]; - } - if (_json.containsKey("loggingConfig")) { - loggingConfig = new LoggingConfig.fromJson(_json["loggingConfig"]); - } - if (_json.containsKey("mainClass")) { - mainClass = _json["mainClass"]; - } - if (_json.containsKey("mainJarFileUri")) { - mainJarFileUri = _json["mainJarFileUri"]; - } - if (_json.containsKey("properties")) { - properties = _json["properties"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (archiveUris != null) { - _json["archiveUris"] = archiveUris; - } - if (args != null) { - _json["args"] = args; - } - if (fileUris != null) { - _json["fileUris"] = fileUris; - } - if (jarFileUris != null) { - _json["jarFileUris"] = jarFileUris; - } - if (loggingConfig != null) { - _json["loggingConfig"] = (loggingConfig).toJson(); - } - if (mainClass != null) { - _json["mainClass"] = mainClass; - } - if (mainJarFileUri != null) { - _json["mainJarFileUri"] = mainJarFileUri; - } - if (properties != null) { - _json["properties"] = properties; - } - return _json; - } -} - -/** - * A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/) - * queries on YARN. - */ -class HiveJob { - /** - * Optional. Whether to continue executing queries if a query fails. The - * default value is false. Setting to true can be useful when executing - * independent parallel queries. - */ - core.bool continueOnFailure; - /** - * Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server - * and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. - */ - core.List<core.String> jarFileUris; - /** - * Optional. A mapping of property names and values, used to configure Hive. - * Properties that conflict with values set by the Cloud Dataproc API may be - * overwritten. Can include properties set in /etc/hadoop/conf / * -site.xml, - * /etc/hive/conf/hive-site.xml, and classes in user code. - */ - core.Map<core.String, core.String> properties; - /** The HCFS URI of the script that contains Hive queries. */ - core.String queryFileUri; - /** A list of queries. */ - QueryList queryList; - /** - * Optional. Mapping of query variable names to values (equivalent to the Hive - * command: SET name="value";). - */ - core.Map<core.String, core.String> scriptVariables; - - HiveJob(); - - HiveJob.fromJson(core.Map _json) { - if (_json.containsKey("continueOnFailure")) { - continueOnFailure = _json["continueOnFailure"]; - } - if (_json.containsKey("jarFileUris")) { - jarFileUris = _json["jarFileUris"]; - } - if (_json.containsKey("properties")) { - properties = _json["properties"]; - } - if (_json.containsKey("queryFileUri")) { - queryFileUri = _json["queryFileUri"]; - } - if (_json.containsKey("queryList")) { - queryList = new QueryList.fromJson(_json["queryList"]); - } - if (_json.containsKey("scriptVariables")) { - scriptVariables = _json["scriptVariables"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (continueOnFailure != null) { - _json["continueOnFailure"] = continueOnFailure; - } - if (jarFileUris != null) { - _json["jarFileUris"] = jarFileUris; - } - if (properties != null) { - _json["properties"] = properties; - } - if (queryFileUri != null) { - _json["queryFileUri"] = queryFileUri; - } - if (queryList != null) { - _json["queryList"] = (queryList).toJson(); - } - if (scriptVariables != null) { - _json["scriptVariables"] = scriptVariables; - } - return _json; - } -} - -/** - * Optional. The config settings for Google 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 - * instances.Beta Feature: This feature is still under development. It may be - * changed before final release. - */ - core.List<AcceleratorConfig> accelerators; - /** Optional. Disk option config settings. */ - DiskConfig diskConfig; - /** - * Output-only. The Google 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). - */ - 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: - * 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 - */ - 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. - */ - ManagedGroupConfig managedGroupConfig; - /** - * Optional. The number of VM instances in the instance group. For master - * instance groups, must be set to 1. - */ - core.int numInstances; - - InstanceGroupConfig(); - - InstanceGroupConfig.fromJson(core.Map _json) { - if (_json.containsKey("accelerators")) { - accelerators = _json["accelerators"].map((value) => new AcceleratorConfig.fromJson(value)).toList(); - } - if (_json.containsKey("diskConfig")) { - diskConfig = new DiskConfig.fromJson(_json["diskConfig"]); - } - if (_json.containsKey("imageUri")) { - imageUri = _json["imageUri"]; - } - if (_json.containsKey("instanceNames")) { - instanceNames = _json["instanceNames"]; - } - if (_json.containsKey("isPreemptible")) { - isPreemptible = _json["isPreemptible"]; - } - if (_json.containsKey("machineTypeUri")) { - machineTypeUri = _json["machineTypeUri"]; - } - if (_json.containsKey("managedGroupConfig")) { - managedGroupConfig = new ManagedGroupConfig.fromJson(_json["managedGroupConfig"]); - } - if (_json.containsKey("numInstances")) { - numInstances = _json["numInstances"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (accelerators != null) { - _json["accelerators"] = accelerators.map((value) => (value).toJson()).toList(); - } - if (diskConfig != null) { - _json["diskConfig"] = (diskConfig).toJson(); - } - if (imageUri != null) { - _json["imageUri"] = imageUri; - } - if (instanceNames != null) { - _json["instanceNames"] = instanceNames; - } - if (isPreemptible != null) { - _json["isPreemptible"] = isPreemptible; - } - if (machineTypeUri != null) { - _json["machineTypeUri"] = machineTypeUri; - } - if (managedGroupConfig != null) { - _json["managedGroupConfig"] = (managedGroupConfig).toJson(); - } - if (numInstances != null) { - _json["numInstances"] = numInstances; - } - return _json; - } -} - -/** A Cloud Dataproc job resource. */ -class Job { - /** - * Output-only. If present, the location of miscellaneous control files which - * may be used as part of job setup and handling. If not present, control - * files may be placed in the same location as driver_output_uri. - */ - core.String driverControlFilesUri; - /** - * Output-only. A URI pointing to the location of the stdout of the job's - * driver program. - */ - core.String driverOutputResourceUri; - /** Job is a Hadoop job. */ - HadoopJob hadoopJob; - /** Job is a Hive job. */ - HiveJob hiveJob; - /** - * Optional. The labels to associate with this job. Label keys must contain 1 - * to 63 characters, and must conform to RFC 1035 - * (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if - * present, must contain 1 to 63 characters, and must conform to RFC 1035 - * (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be - * associated with a job. - */ - core.Map<core.String, core.String> labels; - /** Job is a Pig job. */ - PigJob pigJob; - /** - * Required. Job information, including how, when, and where to run the job. - */ - JobPlacement placement; - /** Job is a Pyspark job. */ - PySparkJob pysparkJob; - /** - * Optional. The fully qualified reference to the job, which can be used to - * obtain the equivalent REST path of the job resource. If this property is - * not specified when a job is created, the server generates a - * <code>job_id</code>. - */ - JobReference reference; - /** Optional. Job scheduling configuration. */ - JobScheduling scheduling; - /** Job is a Spark job. */ - SparkJob sparkJob; - /** Job is a SparkSql job. */ - SparkSqlJob sparkSqlJob; - /** - * Output-only. The job status. Additional application-specific status - * information may be contained in the <code>type_job</code> and - * <code>yarn_applications</code> fields. - */ - JobStatus status; - /** Output-only. The previous job status. */ - core.List<JobStatus> statusHistory; - /** - * Output-only. The collection of YARN applications spun up by this job.Beta - * Feature: This report is available for testing purposes only. It may be - * changed before final release. - */ - core.List<YarnApplication> yarnApplications; - - Job(); - - Job.fromJson(core.Map _json) { - if (_json.containsKey("driverControlFilesUri")) { - driverControlFilesUri = _json["driverControlFilesUri"]; - } - if (_json.containsKey("driverOutputResourceUri")) { - driverOutputResourceUri = _json["driverOutputResourceUri"]; - } - if (_json.containsKey("hadoopJob")) { - hadoopJob = new HadoopJob.fromJson(_json["hadoopJob"]); - } - if (_json.containsKey("hiveJob")) { - hiveJob = new HiveJob.fromJson(_json["hiveJob"]); - } - if (_json.containsKey("labels")) { - labels = _json["labels"]; - } - if (_json.containsKey("pigJob")) { - pigJob = new PigJob.fromJson(_json["pigJob"]); - } - if (_json.containsKey("placement")) { - placement = new JobPlacement.fromJson(_json["placement"]); - } - if (_json.containsKey("pysparkJob")) { - pysparkJob = new PySparkJob.fromJson(_json["pysparkJob"]); - } - if (_json.containsKey("reference")) { - reference = new JobReference.fromJson(_json["reference"]); - } - if (_json.containsKey("scheduling")) { - scheduling = new JobScheduling.fromJson(_json["scheduling"]); - } - if (_json.containsKey("sparkJob")) { - sparkJob = new SparkJob.fromJson(_json["sparkJob"]); - } - if (_json.containsKey("sparkSqlJob")) { - sparkSqlJob = new SparkSqlJob.fromJson(_json["sparkSqlJob"]); - } - if (_json.containsKey("status")) { - status = new JobStatus.fromJson(_json["status"]); - } - if (_json.containsKey("statusHistory")) { - statusHistory = _json["statusHistory"].map((value) => new JobStatus.fromJson(value)).toList(); - } - if (_json.containsKey("yarnApplications")) { - yarnApplications = _json["yarnApplications"].map((value) => new YarnApplication.fromJson(value)).toList(); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (driverControlFilesUri != null) { - _json["driverControlFilesUri"] = driverControlFilesUri; - } - if (driverOutputResourceUri != null) { - _json["driverOutputResourceUri"] = driverOutputResourceUri; - } - if (hadoopJob != null) { - _json["hadoopJob"] = (hadoopJob).toJson(); - } - if (hiveJob != null) { - _json["hiveJob"] = (hiveJob).toJson(); - } - if (labels != null) { - _json["labels"] = labels; - } - if (pigJob != null) { - _json["pigJob"] = (pigJob).toJson(); - } - if (placement != null) { - _json["placement"] = (placement).toJson(); - } - if (pysparkJob != null) { - _json["pysparkJob"] = (pysparkJob).toJson(); - } - if (reference != null) { - _json["reference"] = (reference).toJson(); - } - if (scheduling != null) { - _json["scheduling"] = (scheduling).toJson(); - } - if (sparkJob != null) { - _json["sparkJob"] = (sparkJob).toJson(); - } - if (sparkSqlJob != null) { - _json["sparkSqlJob"] = (sparkSqlJob).toJson(); - } - if (status != null) { - _json["status"] = (status).toJson(); - } - if (statusHistory != null) { - _json["statusHistory"] = statusHistory.map((value) => (value).toJson()).toList(); - } - if (yarnApplications != null) { - _json["yarnApplications"] = yarnApplications.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Cloud Dataproc job config. */ -class JobPlacement { - /** Required. The name of the cluster where the job will be submitted. */ - core.String clusterName; - /** - * Output-only. A cluster UUID generated by the Cloud Dataproc service when - * the job is submitted. - */ - core.String clusterUuid; - - JobPlacement(); - - JobPlacement.fromJson(core.Map _json) { - if (_json.containsKey("clusterName")) { - clusterName = _json["clusterName"]; - } - if (_json.containsKey("clusterUuid")) { - clusterUuid = _json["clusterUuid"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (clusterName != null) { - _json["clusterName"] = clusterName; - } - if (clusterUuid != null) { - _json["clusterUuid"] = clusterUuid; - } - return _json; - } -} - -/** Encapsulates the full scoping used to reference a job. */ -class JobReference { - /** - * Optional. The job ID, which must be unique within the project. The job ID - * is generated by the server upon job submission or provided by the user as a - * means to perform retries without creating duplicate jobs. The ID must - * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens - * (-). The maximum length is 100 characters. - */ - core.String jobId; - /** - * Required. The ID of the Google Cloud Platform project that the job belongs - * to. - */ - core.String projectId; - - JobReference(); - - JobReference.fromJson(core.Map _json) { - if (_json.containsKey("jobId")) { - jobId = _json["jobId"]; - } - if (_json.containsKey("projectId")) { - projectId = _json["projectId"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (jobId != null) { - _json["jobId"] = jobId; - } - if (projectId != null) { - _json["projectId"] = projectId; - } - return _json; - } -} - -/** - * Job scheduling options.Beta Feature: These options are available for testing - * purposes only. They may be changed before final release. - */ -class JobScheduling { - /** - * Optional. Maximum number of times per hour a driver may be restarted as a - * result of driver terminating with non-zero code before job is reported - * failed.A job may be reported as thrashing if driver exits with non-zero - * code 4 times within 10 minute window.Maximum value is 10. - */ - core.int maxFailuresPerHour; - - JobScheduling(); - - JobScheduling.fromJson(core.Map _json) { - if (_json.containsKey("maxFailuresPerHour")) { - maxFailuresPerHour = _json["maxFailuresPerHour"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (maxFailuresPerHour != null) { - _json["maxFailuresPerHour"] = maxFailuresPerHour; - } - return _json; - } -} - -/** Cloud Dataproc job status. */ -class JobStatus { - /** - * Output-only. Optional job state details, such as an error description if - * the state is <code>ERROR</code>. - */ - core.String details; - /** - * Output-only. A state message specifying the overall job state. - * Possible string values are: - * - "STATE_UNSPECIFIED" : The job state is unknown. - * - "PENDING" : The job is pending; it has been submitted, but is not yet - * running. - * - "SETUP_DONE" : Job has been received by the service and completed initial - * setup; it will soon be submitted to the cluster. - * - "RUNNING" : The job is running on the cluster. - * - "CANCEL_PENDING" : A CancelJob request has been received, but is pending. - * - "CANCEL_STARTED" : Transient in-flight resources have been canceled, and - * the request to cancel the running job has been issued to the cluster. - * - "CANCELLED" : The job cancellation was successful. - * - "DONE" : The job has completed successfully. - * - "ERROR" : The job has completed, but encountered an error. - * - "ATTEMPT_FAILURE" : Job attempt has failed. The detail field contains - * failure details for this attempt.Applies to restartable jobs only. - */ - core.String state; - /** Output-only. The time when this state was entered. */ - core.String stateStartTime; - /** - * Output-only. Additional state information, which includes status reported - * by the agent. - * Possible string values are: - * - "UNSPECIFIED" - * - "SUBMITTED" : The Job is submitted to the agent.Applies to RUNNING state. - * - "QUEUED" : The Job has been received and is awaiting execution (it may be - * waiting for a condition to be met). See the "details" field for the reason - * for the delay.Applies to RUNNING state. - * - "STALE_STATUS" : The agent-reported status is out of date, which may be - * caused by a loss of communication between the agent and Cloud Dataproc. If - * the agent does not send a timely update, the job will fail.Applies to - * RUNNING state. - */ - core.String substate; - - JobStatus(); - - JobStatus.fromJson(core.Map _json) { - if (_json.containsKey("details")) { - details = _json["details"]; - } - if (_json.containsKey("state")) { - state = _json["state"]; - } - if (_json.containsKey("stateStartTime")) { - stateStartTime = _json["stateStartTime"]; - } - if (_json.containsKey("substate")) { - substate = _json["substate"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (details != null) { - _json["details"] = details; - } - if (state != null) { - _json["state"] = state; - } - if (stateStartTime != null) { - _json["stateStartTime"] = stateStartTime; - } - if (substate != null) { - _json["substate"] = substate; - } - return _json; - } -} - -/** The list of all clusters in a project. */ -class ListClustersResponse { - /** Output-only. The clusters in the project. */ - core.List<Cluster> clusters; - /** - * Output-only. This token is included in the response if there are more - * results to fetch. To fetch additional results, provide this value as the - * page_token in a subsequent <code>ListClustersRequest</code>. - */ - core.String nextPageToken; - - ListClustersResponse(); - - ListClustersResponse.fromJson(core.Map _json) { - if (_json.containsKey("clusters")) { - clusters = _json["clusters"].map((value) => new Cluster.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 (clusters != null) { - _json["clusters"] = clusters.map((value) => (value).toJson()).toList(); - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** A list of jobs in a project. */ -class ListJobsResponse { - /** Output-only. Jobs list. */ - core.List<Job> jobs; - /** - * Optional. This token is included in the response if there are more results - * to fetch. To fetch additional results, provide this value as the page_token - * in a subsequent <code>ListJobsRequest</code>. - */ - core.String nextPageToken; - - ListJobsResponse(); - - ListJobsResponse.fromJson(core.Map _json) { - if (_json.containsKey("jobs")) { - jobs = _json["jobs"].map((value) => new Job.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 (jobs != null) { - _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** The response message for Operations.ListOperations. */ -class ListOperationsResponse { - /** The standard List next-page token. */ - core.String nextPageToken; - /** A list of operations that matches the specified filter in the request. */ - core.List<Operation> operations; - - ListOperationsResponse(); - - ListOperationsResponse.fromJson(core.Map _json) { - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("operations")) { - operations = _json["operations"].map((value) => new Operation.fromJson(value)).toList(); - } - } - - core.Map<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; - } -} - -/** The runtime logging config of the job. */ -class LoggingConfig { - /** - * The per-package log levels for the driver. This may include "root" package - * name to configure rootLogger. Examples: 'com.google = FATAL', 'root = - * INFO', 'org.apache = DEBUG' - */ - core.Map<core.String, core.String> driverLogLevels; - - LoggingConfig(); - - LoggingConfig.fromJson(core.Map _json) { - if (_json.containsKey("driverLogLevels")) { - driverLogLevels = _json["driverLogLevels"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (driverLogLevels != null) { - _json["driverLogLevels"] = driverLogLevels; - } - return _json; - } -} - -/** Specifies the resources used to actively manage an instance group. */ -class ManagedGroupConfig { - /** Output-only. The name of the Instance Group Manager for this group. */ - core.String instanceGroupManagerName; - /** - * Output-only. The name of the Instance Template used for the Managed - * Instance Group. - */ - core.String instanceTemplateName; - - ManagedGroupConfig(); - - ManagedGroupConfig.fromJson(core.Map _json) { - if (_json.containsKey("instanceGroupManagerName")) { - instanceGroupManagerName = _json["instanceGroupManagerName"]; - } - if (_json.containsKey("instanceTemplateName")) { - instanceTemplateName = _json["instanceTemplateName"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (instanceGroupManagerName != null) { - _json["instanceGroupManagerName"] = instanceGroupManagerName; - } - if (instanceTemplateName != null) { - _json["instanceTemplateName"] = instanceTemplateName; - } - return _json; - } -} - -/** - * 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. */ - core.String executableFile; - /** - * Optional. Amount of time executable has to complete. Default is 10 minutes. - * Cluster creation fails with an explanatory error message (the name of the - * executable that caused the error and the exceeded timeout period) if the - * executable is not completed at end of the timeout period. - */ - core.String executionTimeout; - - NodeInitializationAction(); - - NodeInitializationAction.fromJson(core.Map _json) { - if (_json.containsKey("executableFile")) { - executableFile = _json["executableFile"]; - } - if (_json.containsKey("executionTimeout")) { - executionTimeout = _json["executionTimeout"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (executableFile != null) { - _json["executableFile"] = executableFile; - } - if (executionTimeout != null) { - _json["executionTimeout"] = executionTimeout; - } - return _json; - } -} - -/** - * This resource represents a long-running operation that is the result of a - * network API call. - */ -class Operation { - /** - * If the value is false, it means the operation is still in progress. If - * true, the operation is completed, and either error or response is - * available. - */ - core.bool done; - /** The error result of the operation in case of failure or cancellation. */ - Status error; - /** - * Service-specific metadata associated with the operation. It typically - * contains progress information and common metadata such as create time. Some - * services might not provide such metadata. Any method that returns a - * long-running operation should document the metadata type, if any. - * - * The values for Object must be JSON objects. It can consist of `num`, - * `String`, `bool` and `null` as well as `Map` and `List` values. - */ - core.Map<core.String, core.Object> metadata; - /** - * The server-assigned name, which is only unique within the same service that - * originally returns it. If you use the default HTTP mapping, the name should - * have the format of operations/some/unique/name. - */ - core.String name; - /** - * The normal response of the operation in case of success. If the original - * method returns no data on success, such as Delete, the response is - * google.protobuf.Empty. If the original method is standard - * Get/Create/Update, the response should be the resource. For other methods, - * the response should have the type XxxResponse, where Xxx is the original - * method name. For example, if the original method name is TakeSnapshot(), - * the inferred response type is TakeSnapshotResponse. - * - * The values for Object must be JSON objects. It can consist of `num`, - * `String`, `bool` and `null` as well as `Map` and `List` values. - */ - core.Map<core.String, core.Object> response; - - Operation(); - - Operation.fromJson(core.Map _json) { - if (_json.containsKey("done")) { - done = _json["done"]; - } - if (_json.containsKey("error")) { - error = new Status.fromJson(_json["error"]); - } - if (_json.containsKey("metadata")) { - metadata = _json["metadata"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("response")) { - response = _json["response"]; - } - } - - core.Map<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; - } -} - -/** - * A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries - * on YARN. - */ -class PigJob { - /** - * Optional. Whether to continue executing queries if a query fails. The - * default value is false. Setting to true can be useful when executing - * independent parallel queries. - */ - core.bool continueOnFailure; - /** - * Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client - * and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. - */ - core.List<core.String> jarFileUris; - /** Optional. The runtime log config for job execution. */ - LoggingConfig loggingConfig; - /** - * Optional. A mapping of property names to values, used to configure Pig. - * Properties that conflict with values set by the Cloud Dataproc API may be - * overwritten. Can include properties set in /etc/hadoop/conf / * -site.xml, - * /etc/pig/conf/pig.properties, and classes in user code. - */ - core.Map<core.String, core.String> properties; - /** The HCFS URI of the script that contains the Pig queries. */ - core.String queryFileUri; - /** A list of queries. */ - QueryList queryList; - /** - * Optional. Mapping of query variable names to values (equivalent to the Pig - * command: name=[value]). - */ - core.Map<core.String, core.String> scriptVariables; - - PigJob(); - - PigJob.fromJson(core.Map _json) { - if (_json.containsKey("continueOnFailure")) { - continueOnFailure = _json["continueOnFailure"]; - } - if (_json.containsKey("jarFileUris")) { - jarFileUris = _json["jarFileUris"]; - } - if (_json.containsKey("loggingConfig")) { - loggingConfig = new LoggingConfig.fromJson(_json["loggingConfig"]); - } - if (_json.containsKey("properties")) { - properties = _json["properties"]; - } - if (_json.containsKey("queryFileUri")) { - queryFileUri = _json["queryFileUri"]; - } - if (_json.containsKey("queryList")) { - queryList = new QueryList.fromJson(_json["queryList"]); - } - if (_json.containsKey("scriptVariables")) { - scriptVariables = _json["scriptVariables"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (continueOnFailure != null) { - _json["continueOnFailure"] = continueOnFailure; - } - if (jarFileUris != null) { - _json["jarFileUris"] = jarFileUris; - } - if (loggingConfig != null) { - _json["loggingConfig"] = (loggingConfig).toJson(); - } - if (properties != null) { - _json["properties"] = properties; - } - if (queryFileUri != null) { - _json["queryFileUri"] = queryFileUri; - } - if (queryList != null) { - _json["queryList"] = (queryList).toJson(); - } - if (scriptVariables != null) { - _json["scriptVariables"] = scriptVariables; - } - return _json; - } -} - -/** - * A Cloud Dataproc job for running Apache PySpark - * (https://spark.apache.org/docs/0.9.0/python-programming-guide.html) - * applications on YARN. - */ -class PySparkJob { - /** - * Optional. HCFS URIs of archives to be extracted in the working directory of - * .jar, .tar, .tar.gz, .tgz, and .zip. - */ - core.List<core.String> archiveUris; - /** - * Optional. The arguments to pass to the driver. Do not include arguments, - * such as --conf, that can be set as job properties, since a collision may - * occur that causes an incorrect job submission. - */ - core.List<core.String> args; - /** - * Optional. HCFS URIs of files to be copied to the working directory of - * Python drivers and distributed tasks. Useful for naively parallel tasks. - */ - core.List<core.String> fileUris; - /** - * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python - * driver and tasks. - */ - core.List<core.String> jarFileUris; - /** Optional. The runtime log config for job execution. */ - LoggingConfig loggingConfig; - /** - * Required. The HCFS URI of the main Python file to use as the driver. Must - * be a .py file. - */ - core.String mainPythonFileUri; - /** - * Optional. A mapping of property names to values, used to configure PySpark. - * Properties that conflict with values set by the Cloud Dataproc API may be - * overwritten. Can include properties set in - * /etc/spark/conf/spark-defaults.conf and classes in user code. - */ - core.Map<core.String, core.String> properties; - /** - * Optional. HCFS file URIs of Python files to pass to the PySpark framework. - * Supported file types: .py, .egg, and .zip. - */ - core.List<core.String> pythonFileUris; - - PySparkJob(); - - PySparkJob.fromJson(core.Map _json) { - if (_json.containsKey("archiveUris")) { - archiveUris = _json["archiveUris"]; - } - if (_json.containsKey("args")) { - args = _json["args"]; - } - if (_json.containsKey("fileUris")) { - fileUris = _json["fileUris"]; - } - if (_json.containsKey("jarFileUris")) { - jarFileUris = _json["jarFileUris"]; - } - if (_json.containsKey("loggingConfig")) { - loggingConfig = new LoggingConfig.fromJson(_json["loggingConfig"]); - } - if (_json.containsKey("mainPythonFileUri")) { - mainPythonFileUri = _json["mainPythonFileUri"]; - } - if (_json.containsKey("properties")) { - properties = _json["properties"]; - } - if (_json.containsKey("pythonFileUris")) { - pythonFileUris = _json["pythonFileUris"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (archiveUris != null) { - _json["archiveUris"] = archiveUris; - } - if (args != null) { - _json["args"] = args; - } - if (fileUris != null) { - _json["fileUris"] = fileUris; - } - if (jarFileUris != null) { - _json["jarFileUris"] = jarFileUris; - } - if (loggingConfig != null) { - _json["loggingConfig"] = (loggingConfig).toJson(); - } - if (mainPythonFileUri != null) { - _json["mainPythonFileUri"] = mainPythonFileUri; - } - if (properties != null) { - _json["properties"] = properties; - } - if (pythonFileUris != null) { - _json["pythonFileUris"] = pythonFileUris; - } - return _json; - } -} - -/** A list of queries to run on a cluster. */ -class QueryList { - /** - * Required. The queries to execute. You do not need to terminate a query with - * a semicolon. Multiple queries can be specified in one string by separating - * each with a semicolon. Here is an example of an Cloud Dataproc API snippet - * that uses a QueryList to specify a HiveJob: - * "hiveJob": { - * "queryList": { - * "queries": [ - * "query1", - * "query2", - * "query3;query4", - * ] - * } - * } - */ - core.List<core.String> queries; - - QueryList(); - - QueryList.fromJson(core.Map _json) { - if (_json.containsKey("queries")) { - queries = _json["queries"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (queries != null) { - _json["queries"] = queries; - } - return _json; - } -} - -/** 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). - */ - core.String imageVersion; - /** - * Optional. The properties to set on daemon config files.Property keys are - * specified in prefix:property format, such as core:fs.defaultFS. The - * following are supported prefixes and their mappings: - * capacity-scheduler: capacity-scheduler.xml - * core: core-site.xml - * distcp: distcp-default.xml - * hdfs: hdfs-site.xml - * hive: hive-site.xml - * mapred: mapred-site.xml - * pig: pig.properties - * spark: spark-defaults.conf - * yarn: yarn-site.xml - */ - core.Map<core.String, core.String> properties; - - SoftwareConfig(); - - SoftwareConfig.fromJson(core.Map _json) { - if (_json.containsKey("imageVersion")) { - imageVersion = _json["imageVersion"]; - } - if (_json.containsKey("properties")) { - properties = _json["properties"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (imageVersion != null) { - _json["imageVersion"] = imageVersion; - } - if (properties != null) { - _json["properties"] = properties; - } - return _json; - } -} - -/** - * A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) - * applications on YARN. - */ -class SparkJob { - /** - * Optional. HCFS URIs of archives to be extracted in the working directory of - * Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, - * and .zip. - */ - core.List<core.String> archiveUris; - /** - * Optional. The arguments to pass to the driver. Do not include arguments, - * such as --conf, that can be set as job properties, since a collision may - * occur that causes an incorrect job submission. - */ - core.List<core.String> args; - /** - * Optional. HCFS URIs of files to be copied to the working directory of Spark - * drivers and distributed tasks. Useful for naively parallel tasks. - */ - core.List<core.String> fileUris; - /** - * Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark - * driver and tasks. - */ - core.List<core.String> jarFileUris; - /** Optional. The runtime log config for job execution. */ - LoggingConfig loggingConfig; - /** - * The name of the driver's main class. The jar file that contains the class - * must be in the default CLASSPATH or specified in jar_file_uris. - */ - core.String mainClass; - /** The HCFS URI of the jar file that contains the main class. */ - core.String mainJarFileUri; - /** - * Optional. A mapping of property names to values, used to configure Spark. - * Properties that conflict with values set by the Cloud Dataproc API may be - * overwritten. Can include properties set in - * /etc/spark/conf/spark-defaults.conf and classes in user code. - */ - core.Map<core.String, core.String> properties; - - SparkJob(); - - SparkJob.fromJson(core.Map _json) { - if (_json.containsKey("archiveUris")) { - archiveUris = _json["archiveUris"]; - } - if (_json.containsKey("args")) { - args = _json["args"]; - } - if (_json.containsKey("fileUris")) { - fileUris = _json["fileUris"]; - } - if (_json.containsKey("jarFileUris")) { - jarFileUris = _json["jarFileUris"]; - } - if (_json.containsKey("loggingConfig")) { - loggingConfig = new LoggingConfig.fromJson(_json["loggingConfig"]); - } - if (_json.containsKey("mainClass")) { - mainClass = _json["mainClass"]; - } - if (_json.containsKey("mainJarFileUri")) { - mainJarFileUri = _json["mainJarFileUri"]; - } - if (_json.containsKey("properties")) { - properties = _json["properties"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (archiveUris != null) { - _json["archiveUris"] = archiveUris; - } - if (args != null) { - _json["args"] = args; - } - if (fileUris != null) { - _json["fileUris"] = fileUris; - } - if (jarFileUris != null) { - _json["jarFileUris"] = jarFileUris; - } - if (loggingConfig != null) { - _json["loggingConfig"] = (loggingConfig).toJson(); - } - if (mainClass != null) { - _json["mainClass"] = mainClass; - } - if (mainJarFileUri != null) { - _json["mainJarFileUri"] = mainJarFileUri; - } - if (properties != null) { - _json["properties"] = properties; - } - return _json; - } -} - -/** - * A Cloud Dataproc job for running Apache Spark SQL - * (http://spark.apache.org/sql/) queries. - */ -class SparkSqlJob { - /** Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. */ - core.List<core.String> jarFileUris; - /** Optional. The runtime log config for job execution. */ - LoggingConfig loggingConfig; - /** - * Optional. A mapping of property names to values, used to configure Spark - * SQL's SparkConf. Properties that conflict with values set by the Cloud - * Dataproc API may be overwritten. - */ - core.Map<core.String, core.String> properties; - /** The HCFS URI of the script that contains SQL queries. */ - core.String queryFileUri; - /** A list of queries. */ - QueryList queryList; - /** - * Optional. Mapping of query variable names to values (equivalent to the - * Spark SQL command: SET name="value";). - */ - core.Map<core.String, core.String> scriptVariables; - - SparkSqlJob(); - - SparkSqlJob.fromJson(core.Map _json) { - if (_json.containsKey("jarFileUris")) { - jarFileUris = _json["jarFileUris"]; - } - if (_json.containsKey("loggingConfig")) { - loggingConfig = new LoggingConfig.fromJson(_json["loggingConfig"]); - } - if (_json.containsKey("properties")) { - properties = _json["properties"]; - } - if (_json.containsKey("queryFileUri")) { - queryFileUri = _json["queryFileUri"]; - } - if (_json.containsKey("queryList")) { - queryList = new QueryList.fromJson(_json["queryList"]); - } - if (_json.containsKey("scriptVariables")) { - scriptVariables = _json["scriptVariables"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (jarFileUris != null) { - _json["jarFileUris"] = jarFileUris; - } - if (loggingConfig != null) { - _json["loggingConfig"] = (loggingConfig).toJson(); - } - if (properties != null) { - _json["properties"] = properties; - } - if (queryFileUri != null) { - _json["queryFileUri"] = queryFileUri; - } - if (queryList != null) { - _json["queryList"] = (queryList).toJson(); - } - if (scriptVariables != null) { - _json["scriptVariables"] = scriptVariables; - } - 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 needsOverviewThe Status message contains - * three pieces of data: error code, error message, and error details. The error - * code should be an enum value of google.rpc.Code, but it may accept additional - * error codes if needed. The error message should be a developer-facing English - * message that helps developers understand and resolve the error. If a - * localized user-facing error message is needed, put the localized message in - * the error details or localize it in the client. The optional error details - * may contain arbitrary information about the error. There is a predefined set - * of error detail types in the package google.rpc that can be used for common - * error conditions.Language mappingThe Status message is the logical - * representation of the error model, but it is not necessarily the actual wire - * format. When the Status message is exposed in different client libraries and - * different wire protocols, it can be mapped differently. For example, it will - * likely be mapped to some exceptions in Java, but more likely mapped to some - * error codes in C.Other usesThe error model and the Status message can be used - * in a variety of environments, either with or without APIs, to provide a - * consistent developer experience across different environments.Example uses of - * this error model include: - * Partial errors. If a service needs to return partial errors to the client, it - * may embed the Status in the normal response to indicate the partial errors. - * Workflow errors. A typical workflow has multiple steps. Each step may have a - * Status message for error reporting. - * Batch operations. If a client uses batch request and batch response, the - * Status message should be used directly inside batch response, one for each - * error sub-response. - * Asynchronous operations. If an API call embeds asynchronous operation results - * in its response, the status of those operations should be represented - * directly using the Status message. - * Logging. If some API errors are stored in logs, the message Status could be - * used directly after any stripping needed for security/privacy reasons. - */ -class Status { - /** The status code, which should be an enum value of google.rpc.Code. */ - core.int code; - /** - * A list of messages that carry the error details. There will be a common set - * of message types for APIs to use. - * - * The values for Object must be JSON objects. It can consist of `num`, - * `String`, `bool` and `null` as well as `Map` and `List` values. - */ - core.List<core.Map<core.String, core.Object>> details; - /** - * A developer-facing error message, which should be in English. Any - * user-facing error message should be localized and sent in the - * google.rpc.Status.details field, or localized by the client. - */ - core.String message; - - Status(); - - Status.fromJson(core.Map _json) { - if (_json.containsKey("code")) { - code = _json["code"]; - } - if (_json.containsKey("details")) { - details = _json["details"]; - } - if (_json.containsKey("message")) { - message = _json["message"]; - } - } - - core.Map<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; - } -} - -/** A request to submit a job. */ -class SubmitJobRequest { - /** Required. The job resource. */ - Job job; - - SubmitJobRequest(); - - SubmitJobRequest.fromJson(core.Map _json) { - if (_json.containsKey("job")) { - job = new Job.fromJson(_json["job"]); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (job != null) { - _json["job"] = (job).toJson(); - } - return _json; - } -} - -/** - * A YARN application created by a job. Application information is a subset of - * <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.Beta - * Feature: This report is available for testing purposes only. It may be - * changed before final release. - */ -class YarnApplication { - /** Required. The application name. */ - core.String name; - /** Required. The numerical progress of the application, from 1 to 100. */ - core.double progress; - /** - * Required. The application state. - * Possible string values are: - * - "STATE_UNSPECIFIED" : Status is unspecified. - * - "NEW" : Status is NEW. - * - "NEW_SAVING" : Status is NEW_SAVING. - * - "SUBMITTED" : Status is SUBMITTED. - * - "ACCEPTED" : Status is ACCEPTED. - * - "RUNNING" : Status is RUNNING. - * - "FINISHED" : Status is FINISHED. - * - "FAILED" : Status is FAILED. - * - "KILLED" : Status is KILLED. - */ - core.String state; - /** - * Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or - * TimelineServer that provides application-specific information. The URL uses - * the internal hostname, and requires a proxy server for resolution and, - * possibly, access. - */ - core.String trackingUrl; - - YarnApplication(); - - YarnApplication.fromJson(core.Map _json) { - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("progress")) { - progress = _json["progress"]; - } - if (_json.containsKey("state")) { - state = _json["state"]; - } - if (_json.containsKey("trackingUrl")) { - trackingUrl = _json["trackingUrl"]; - } - } - - core.Map<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 (progress != null) { - _json["progress"] = progress; - } - if (state != null) { - _json["state"] = state; - } - if (trackingUrl != null) { - _json["trackingUrl"] = trackingUrl; - } - return _json; - } -}
diff --git a/generated/googleapis/lib/datastore/v1.dart b/generated/googleapis/lib/datastore/v1.dart index 6dfc2dd..49f6ce6 100644 --- a/generated/googleapis/lib/datastore/v1.dart +++ b/generated/googleapis/lib/datastore/v1.dart
@@ -1573,7 +1573,7 @@ * - "MORE_RESULTS_AFTER_CURSOR" : The query is finished, but there may be * more results after the end * cursor. - * - "NO_MORE_RESULTS" : The query has been exhausted. + * - "NO_MORE_RESULTS" : The query is finished, and there are no more results. */ core.String moreResults; /**
diff --git a/generated/googleapis/lib/firebaserules/v1.dart b/generated/googleapis/lib/firebaserules/v1.dart index 2201def..ab32331 100644 --- a/generated/googleapis/lib/firebaserules/v1.dart +++ b/generated/googleapis/lib/firebaserules/v1.dart
@@ -292,6 +292,14 @@ * Format: `projects/{project_id}` * Value must have pattern "^projects/[^/]+$". * + * [pageToken] - Next page token for the next batch of `Release` 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 fewer + * than `page_size` results due to the size of the output. To traverse all of + * the releases, the caller should iterate until the `page_token` on the + * response is empty. + * * [filter] - `Release` filter. The list method supports filters with * restrictions on the * `Release.name`, `Release.ruleset_name`, and `Release.test_suite_name`. @@ -318,14 +326,6 @@ * relative to the project. Fully qualified prefixed may also be used. e.g. * `test_suite_name=projects/foo/testsuites/uuid1` * - * [pageToken] - Next page token for the next batch of `Release` 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 fewer - * than `page_size` results due to the size of the output. To traverse all of - * the releases, the caller should iterate until the `page_token` on the - * response is empty. - * * Completes with a [ListReleasesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -334,7 +334,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<ListReleasesResponse> list(core.String name, {core.String filter, core.String pageToken, core.int pageSize}) { + async.Future<ListReleasesResponse> list(core.String name, {core.String pageToken, core.int pageSize, core.String filter}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -345,15 +345,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]; + } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + '/releases';
diff --git a/generated/googleapis/lib/genomics/v1.dart b/generated/googleapis/lib/genomics/v1.dart index 886cefa..93cea1e 100644 --- a/generated/googleapis/lib/genomics/v1.dart +++ b/generated/googleapis/lib/genomics/v1.dart
@@ -1410,12 +1410,6 @@ * [name] - The name of the operation's parent resource. * Value must have pattern "^operations$". * - * [pageToken] - The standard list page token. - * - * [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: * @@ -1436,6 +1430,12 @@ * * `projectId = my-project AND labels.color = *` * * `projectId = my-project AND labels.color = red` * + * [pageToken] - The standard list page token. + * + * [pageSize] - The maximum number of results to return. If unspecified, + * defaults to + * 256. The maximum value is 2048. + * * Completes with a [ListOperationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1444,7 +1444,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<ListOperationsResponse> list(core.String name, {core.String pageToken, core.int pageSize, core.String filter}) { + async.Future<ListOperationsResponse> list(core.String name, {core.String filter, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1455,15 +1455,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]; - } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); @@ -1826,6 +1826,15 @@ * [readGroupSetId] - Required. The ID of the read group set over which * coverage is requested. * + * [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. @@ -1848,15 +1857,6 @@ * 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. - * * Completes with a [ListCoverageBucketsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1865,7 +1865,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<ListCoverageBucketsResponse> list(core.String readGroupSetId, {core.String referenceName, core.String end, core.String pageToken, core.int pageSize, core.String start, core.String targetBucketWidth}) { + async.Future<ListCoverageBucketsResponse> list(core.String readGroupSetId, {core.String targetBucketWidth, core.String referenceName, core.String end, core.String pageToken, core.int pageSize, core.String start}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1876,6 +1876,9 @@ if (readGroupSetId == null) { throw new core.ArgumentError("Parameter readGroupSetId is required."); } + if (targetBucketWidth != null) { + _queryParams["targetBucketWidth"] = [targetBucketWidth]; + } if (referenceName != null) { _queryParams["referenceName"] = [referenceName]; } @@ -1891,9 +1894,6 @@ if (start != null) { _queryParams["start"] = [start]; } - if (targetBucketWidth != null) { - _queryParams["targetBucketWidth"] = [targetBucketWidth]; - } _url = 'v1/readgroupsets/' + commons.Escaper.ecapeVariable('$readGroupSetId') + '/coveragebuckets'; @@ -2104,6 +2104,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 @@ -2116,10 +2120,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. - * * Completes with a [ListBasesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -2128,7 +2128,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<ListBasesResponse> list(core.String referenceId, {core.String pageToken, core.int pageSize, core.String start, core.String end}) { + async.Future<ListBasesResponse> list(core.String referenceId, {core.String end, core.String pageToken, core.int pageSize, core.String start}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -2139,6 +2139,9 @@ if (referenceId == null) { throw new core.ArgumentError("Parameter referenceId is required."); } + if (end != null) { + _queryParams["end"] = [end]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -2148,9 +2151,6 @@ if (start != null) { _queryParams["start"] = [start]; } - if (end != null) { - _queryParams["end"] = [end]; - } _url = 'v1/references/' + commons.Escaper.ecapeVariable('$referenceId') + '/bases';
diff --git a/generated/googleapis/lib/iam/v1.dart b/generated/googleapis/lib/iam/v1.dart index e923a7b..eb0a529 100644 --- a/generated/googleapis/lib/iam/v1.dart +++ b/generated/googleapis/lib/iam/v1.dart
@@ -26,6 +26,8 @@ final commons.ApiRequester _requester; + OrganizationsResourceApi get organizations => new OrganizationsResourceApi(_requester); + PermissionsResourceApi get permissions => new PermissionsResourceApi(_requester); ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); RolesResourceApi get roles => new RolesResourceApi(_requester); @@ -34,9 +36,391 @@ } +class OrganizationsResourceApi { + final commons.ApiRequester _requester; + + OrganizationsRolesResourceApi get roles => new OrganizationsRolesResourceApi(_requester); + + OrganizationsResourceApi(commons.ApiRequester client) : + _requester = client; +} + + +class OrganizationsRolesResourceApi { + final commons.ApiRequester _requester; + + OrganizationsRolesResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Creates a new Role. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [parent] - The resource name of the parent resource in one of the following + * formats: + * `organizations/{ORGANIZATION_ID}` + * `projects/{PROJECT_ID}` + * Value must have pattern "^organizations/[^/]+$". + * + * Completes with a [Role]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Role> create(CreateRoleRequest request, core.String parent) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/roles'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Role.fromJson(data)); + } + + /** + * Soft deletes a role. The role is suspended and cannot be used to create new + * IAM Policy Bindings. + * The Role will not be included in `ListRoles()` unless `show_deleted` is set + * in the `ListRolesRequest`. The Role contains the deleted boolean set. + * Existing Bindings remains, but are inactive. The Role can be undeleted + * within 7 days. After 7 days the Role is deleted and all Bindings associated + * with the role are removed. + * + * Request parameters: + * + * [name] - The resource name of the role in one of the following formats: + * `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` + * `projects/{PROJECT_ID}/roles/{ROLE_NAME}` + * Value must have pattern "^organizations/[^/]+/roles/[^/]+$". + * + * [etag] - Used to perform a consistent read-modify-write. + * + * Completes with a [Role]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Role> delete(core.String name, {core.String etag}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + if (etag != null) { + _queryParams["etag"] = [etag]; + } + + _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 Role.fromJson(data)); + } + + /** + * Gets a Role definition. + * + * Request parameters: + * + * [name] - The resource name of the role in one of the following formats: + * `roles/{ROLE_NAME}` + * `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` + * `projects/{PROJECT_ID}/roles/{ROLE_NAME}` + * Value must have pattern "^organizations/[^/]+/roles/[^/]+$". + * + * Completes with a [Role]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Role> get(core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Role.fromJson(data)); + } + + /** + * Lists the Roles defined on a resource. + * + * Request parameters: + * + * [parent] - The resource name of the parent resource in one of the following + * formats: + * `` (empty string) -- this refers to curated roles. + * `organizations/{ORGANIZATION_ID}` + * `projects/{PROJECT_ID}` + * Value must have pattern "^organizations/[^/]+$". + * + * [pageToken] - Optional pagination token returned in an earlier + * ListRolesResponse. + * + * [pageSize] - Optional limit on the number of roles to include in the + * response. + * + * [view] - Optional view for the returned Role objects. + * Possible string values are: + * - "BASIC" : A BASIC. + * - "FULL" : A FULL. + * + * [showDeleted] - Include Roles that have been deleted. + * + * Completes with a [ListRolesResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * 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.String pageToken, core.int pageSize, core.String view, core.bool showDeleted}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (view != null) { + _queryParams["view"] = [view]; + } + if (showDeleted != null) { + _queryParams["showDeleted"] = ["${showDeleted}"]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/roles'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListRolesResponse.fromJson(data)); + } + + /** + * Updates a Role definition. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [name] - The resource name of the role in one of the following formats: + * `roles/{ROLE_NAME}` + * `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` + * `projects/{PROJECT_ID}/roles/{ROLE_NAME}` + * Value must have pattern "^organizations/[^/]+/roles/[^/]+$". + * + * [updateMask] - A mask describing which fields in the Role have changed. + * + * Completes with a [Role]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Role> patch(Role request, core.String name, {core.String updateMask}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + if (updateMask != null) { + _queryParams["updateMask"] = [updateMask]; + } + + _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 Role.fromJson(data)); + } + + /** + * Undelete a Role, bringing it back in its previous state. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [name] - The resource name of the role in one of the following formats: + * `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` + * `projects/{PROJECT_ID}/roles/{ROLE_NAME}` + * Value must have pattern "^organizations/[^/]+/roles/[^/]+$". + * + * Completes with a [Role]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Role> undelete(UndeleteRoleRequest request, core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':undelete'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Role.fromJson(data)); + } + +} + + +class PermissionsResourceApi { + final commons.ApiRequester _requester; + + PermissionsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Lists the permissions testable on a resource. + * A permission is testable if it can be tested for an identity on a resource. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * Completes with a [QueryTestablePermissionsResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<QueryTestablePermissionsResponse> queryTestablePermissions(QueryTestablePermissionsRequest request) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + + _url = 'v1/permissions:queryTestablePermissions'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new QueryTestablePermissionsResponse.fromJson(data)); + } + +} + + class ProjectsResourceApi { final commons.ApiRequester _requester; + ProjectsRolesResourceApi get roles => new ProjectsRolesResourceApi(_requester); ProjectsServiceAccountsResourceApi get serviceAccounts => new ProjectsServiceAccountsResourceApi(_requester); ProjectsResourceApi(commons.ApiRequester client) : @@ -44,6 +428,328 @@ } +class ProjectsRolesResourceApi { + final commons.ApiRequester _requester; + + ProjectsRolesResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Creates a new Role. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [parent] - The resource name of the parent resource in one of the following + * formats: + * `organizations/{ORGANIZATION_ID}` + * `projects/{PROJECT_ID}` + * Value must have pattern "^projects/[^/]+$". + * + * Completes with a [Role]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Role> create(CreateRoleRequest request, core.String parent) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/roles'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Role.fromJson(data)); + } + + /** + * Soft deletes a role. The role is suspended and cannot be used to create new + * IAM Policy Bindings. + * The Role will not be included in `ListRoles()` unless `show_deleted` is set + * in the `ListRolesRequest`. The Role contains the deleted boolean set. + * Existing Bindings remains, but are inactive. The Role can be undeleted + * within 7 days. After 7 days the Role is deleted and all Bindings associated + * with the role are removed. + * + * Request parameters: + * + * [name] - The resource name of the role in one of the following formats: + * `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` + * `projects/{PROJECT_ID}/roles/{ROLE_NAME}` + * Value must have pattern "^projects/[^/]+/roles/[^/]+$". + * + * [etag] - Used to perform a consistent read-modify-write. + * + * Completes with a [Role]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Role> delete(core.String name, {core.String etag}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + if (etag != null) { + _queryParams["etag"] = [etag]; + } + + _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 Role.fromJson(data)); + } + + /** + * Gets a Role definition. + * + * Request parameters: + * + * [name] - The resource name of the role in one of the following formats: + * `roles/{ROLE_NAME}` + * `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` + * `projects/{PROJECT_ID}/roles/{ROLE_NAME}` + * Value must have pattern "^projects/[^/]+/roles/[^/]+$". + * + * Completes with a [Role]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Role> get(core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Role.fromJson(data)); + } + + /** + * Lists the Roles defined on a resource. + * + * Request parameters: + * + * [parent] - The resource name of the parent resource in one of the following + * formats: + * `` (empty string) -- this refers to curated roles. + * `organizations/{ORGANIZATION_ID}` + * `projects/{PROJECT_ID}` + * Value must have pattern "^projects/[^/]+$". + * + * [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. + * + * [view] - Optional view for the returned Role objects. + * Possible string values are: + * - "BASIC" : A BASIC. + * - "FULL" : A FULL. + * + * Completes with a [ListRolesResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * 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.String view}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (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]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/roles'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListRolesResponse.fromJson(data)); + } + + /** + * Updates a Role definition. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [name] - The resource name of the role in one of the following formats: + * `roles/{ROLE_NAME}` + * `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` + * `projects/{PROJECT_ID}/roles/{ROLE_NAME}` + * Value must have pattern "^projects/[^/]+/roles/[^/]+$". + * + * [updateMask] - A mask describing which fields in the Role have changed. + * + * Completes with a [Role]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Role> patch(Role request, core.String name, {core.String updateMask}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + if (updateMask != null) { + _queryParams["updateMask"] = [updateMask]; + } + + _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 Role.fromJson(data)); + } + + /** + * Undelete a Role, bringing it back in its previous state. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [name] - The resource name of the role in one of the following formats: + * `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` + * `projects/{PROJECT_ID}/roles/{ROLE_NAME}` + * Value must have pattern "^projects/[^/]+/roles/[^/]+$". + * + * Completes with a [Role]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Role> undelete(UndeleteRoleRequest request, core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':undelete'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Role.fromJson(data)); + } + +} + + class ProjectsServiceAccountsResourceApi { final commons.ApiRequester _requester; @@ -769,6 +1475,117 @@ _requester = client; /** + * Gets a Role definition. + * + * Request parameters: + * + * [name] - The resource name of the role in one of the following formats: + * `roles/{ROLE_NAME}` + * `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` + * `projects/{PROJECT_ID}/roles/{ROLE_NAME}` + * Value must have pattern "^roles/[^/]+$". + * + * Completes with a [Role]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Role> get(core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Role.fromJson(data)); + } + + /** + * Lists the Roles defined on a resource. + * + * Request parameters: + * + * [pageToken] - Optional pagination token returned in an earlier + * ListRolesResponse. + * + * [pageSize] - Optional limit on the number of roles to include in the + * response. + * + * [view] - Optional view for the returned Role objects. + * Possible string values are: + * - "BASIC" : A BASIC. + * - "FULL" : A FULL. + * + * [parent] - The resource name of the parent resource in one of the following + * formats: + * `` (empty string) -- this refers to curated roles. + * `organizations/{ORGANIZATION_ID}` + * `projects/{PROJECT_ID}` + * + * [showDeleted] - Include Roles that have been deleted. + * + * Completes with a [ListRolesResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * 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 pageToken, core.int pageSize, core.String view, core.String parent, core.bool showDeleted}) { + var _url = null; + var _queryParams = new core.Map(); + 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 (view != null) { + _queryParams["view"] = [view]; + } + if (parent != null) { + _queryParams["parent"] = [parent]; + } + if (showDeleted != null) { + _queryParams["showDeleted"] = ["${showDeleted}"]; + } + + _url = 'v1/roles'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListRolesResponse.fromJson(data)); + } + + /** * Queries roles that can be granted on a particular resource. * A role is grantable if it can be used as the role in a binding for a policy * for that resource. @@ -911,6 +1728,13 @@ */ core.String action; /** + * The condition that is associated with this binding. + * This field is GOOGLE_INTERNAL. + * This field is not logged in IAM side because it's only for audit logging. + * Optional + */ + Expr condition; + /** * A single identity requesting access for a Cloud Platform resource. * Follows the same format of Binding.members. * Required @@ -929,6 +1753,9 @@ if (_json.containsKey("action")) { action = _json["action"]; } + if (_json.containsKey("condition")) { + condition = new Expr.fromJson(_json["condition"]); + } if (_json.containsKey("member")) { member = _json["member"]; } @@ -942,6 +1769,9 @@ if (action != null) { _json["action"] = action; } + if (condition != null) { + _json["condition"] = (condition).toJson(); + } if (member != null) { _json["member"] = member; } @@ -952,6 +1782,36 @@ } } +/** The request to create a new role. */ +class CreateRoleRequest { + /** The Role resource to create. */ + Role role; + /** The role id to use for this role. */ + core.String roleId; + + CreateRoleRequest(); + + CreateRoleRequest.fromJson(core.Map _json) { + if (_json.containsKey("role")) { + role = new Role.fromJson(_json["role"]); + } + if (_json.containsKey("roleId")) { + roleId = _json["roleId"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (role != null) { + _json["role"] = (role).toJson(); + } + if (roleId != null) { + _json["roleId"] = roleId; + } + return _json; + } +} + /** The service account key create request. */ class CreateServiceAccountKeyRequest { core.bool includePublicKeyData; @@ -1070,6 +1930,107 @@ } } +/** + * 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; + } +} + +/** The response containing the roles defined under a resource. */ +class ListRolesResponse { + /** + * To retrieve the next page of results, set + * `ListRolesRequest.page_token` to this value. + */ + core.String nextPageToken; + /** The Roles defined on this resource. */ + core.List<Role> roles; + + ListRolesResponse(); + + ListRolesResponse.fromJson(core.Map _json) { + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("roles")) { + roles = _json["roles"].map((value) => new Role.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 (roles != null) { + _json["roles"] = roles.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + /** The service account keys list response. */ class ListServiceAccountKeysResponse { /** The public keys for the service account. */ @@ -1126,6 +2087,82 @@ } } +/** A permission which can be included by a role. */ +class Permission { + /** + * The current custom role support level. + * Possible string values are: + * - "SUPPORTED" : Permission is fully supported for custom role use. + * - "TESTING" : Permission is being tested to check custom role + * compatibility. + * - "NOT_SUPPORTED" : Permission is not supported for custom role use. + */ + core.String customRolesSupportLevel; + /** A brief description of what this Permission is used for. */ + core.String description; + /** The name of this Permission. */ + core.String name; + /** This permission can ONLY be used in predefined roles. */ + core.bool onlyInPredefinedRoles; + /** + * The current launch stage of the permission. + * Possible string values are: + * - "ALPHA" : The permission is currently in an alpha phase. + * - "BETA" : The permission is currently in a beta phase. + * - "GA" : The permission is generally available. + * - "DEPRECATED" : The permission is being deprecated. + */ + core.String stage; + /** The title of this Permission. */ + core.String title; + + Permission(); + + Permission.fromJson(core.Map _json) { + if (_json.containsKey("customRolesSupportLevel")) { + customRolesSupportLevel = _json["customRolesSupportLevel"]; + } + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("onlyInPredefinedRoles")) { + onlyInPredefinedRoles = _json["onlyInPredefinedRoles"]; + } + if (_json.containsKey("stage")) { + stage = _json["stage"]; + } + 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 (customRolesSupportLevel != null) { + _json["customRolesSupportLevel"] = customRolesSupportLevel; + } + if (description != null) { + _json["description"] = description; + } + if (name != null) { + _json["name"] = name; + } + if (onlyInPredefinedRoles != null) { + _json["onlyInPredefinedRoles"] = onlyInPredefinedRoles; + } + if (stage != null) { + _json["stage"] = stage; + } + if (title != null) { + _json["title"] = title; + } + return _json; + } +} + /** * Defines an Identity and Access Management (IAM) policy. It is used to * specify access control policies for Cloud Platform resources. @@ -1256,6 +2293,14 @@ * QueryGrantableRolesResponse. */ core.String pageToken; + /** + * + * Possible string values are: + * - "BASIC" : Omits the `included_permissions` field. + * This is the default value. + * - "FULL" : Returns all fields. + */ + core.String view; QueryGrantableRolesRequest(); @@ -1269,6 +2314,9 @@ if (_json.containsKey("pageToken")) { pageToken = _json["pageToken"]; } + if (_json.containsKey("view")) { + view = _json["view"]; + } } core.Map<core.String, core.Object> toJson() { @@ -1282,6 +2330,9 @@ if (pageToken != null) { _json["pageToken"] = pageToken; } + if (view != null) { + _json["view"] = view; + } return _json; } } @@ -1319,10 +2370,111 @@ } } +/** A request to get permissions which can be tested on a resource. */ +class QueryTestablePermissionsRequest { + /** + * Required. The full resource name to query from the list of testable + * permissions. + * + * The name follows the Google Cloud Platform resource format. + * For example, a Cloud Platform project with id `my-project` will be named + * `//cloudresourcemanager.googleapis.com/projects/my-project`. + */ + core.String fullResourceName; + /** + * Optional limit on the number of permissions to include in the response. + */ + core.int pageSize; + /** + * Optional pagination token returned in an earlier + * QueryTestablePermissionsRequest. + */ + core.String pageToken; + + QueryTestablePermissionsRequest(); + + QueryTestablePermissionsRequest.fromJson(core.Map _json) { + if (_json.containsKey("fullResourceName")) { + fullResourceName = _json["fullResourceName"]; + } + if (_json.containsKey("pageSize")) { + pageSize = _json["pageSize"]; + } + if (_json.containsKey("pageToken")) { + pageToken = _json["pageToken"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (fullResourceName != null) { + _json["fullResourceName"] = fullResourceName; + } + if (pageSize != null) { + _json["pageSize"] = pageSize; + } + if (pageToken != null) { + _json["pageToken"] = pageToken; + } + return _json; + } +} + +/** The response containing permissions which can be tested on a resource. */ +class QueryTestablePermissionsResponse { + /** + * To retrieve the next page of results, set + * `QueryTestableRolesRequest.page_token` to this value. + */ + core.String nextPageToken; + /** The Permissions testable on the requested resource. */ + core.List<Permission> permissions; + + QueryTestablePermissionsResponse(); + + QueryTestablePermissionsResponse.fromJson(core.Map _json) { + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("permissions")) { + permissions = _json["permissions"].map((value) => new Permission.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 (permissions != null) { + _json["permissions"] = permissions.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + /** A role in the Identity and Access Management API. */ class Role { + /** + * The current deleted state of the role. This field is read only. + * It will be ignored in calls to CreateRole and UpdateRole. + */ + core.bool deleted; /** Optional. A human-readable description for the role. */ core.String description; + /** Used to perform a consistent read-modify-write. */ + 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("+", "-"); + } + /** + * The names of the permissions this role grants when bound in an IAM policy. + */ + core.List<core.String> includedPermissions; /** * The name of the role. * @@ -1334,6 +2486,20 @@ */ core.String name; /** + * The current launch stage of the role. + * Possible string values are: + * - "ALPHA" : The user has indicated this role is currently in an alpha + * phase. + * - "BETA" : The user has indicated this role is currently in a beta phase. + * - "GA" : The user has indicated this role is generally available. + * - "DEPRECATED" : The user has indicated this role is being deprecated. + * - "DISABLED" : This role is disabled and will not contribute permissions to + * any members + * it is granted to in policies. + * - "EAP" : The user has indicated this role is currently in an eap phase. + */ + core.String stage; + /** * Optional. A human-readable title for the role. Typically this * is limited to 100 UTF-8 bytes. */ @@ -1342,12 +2508,24 @@ Role(); Role.fromJson(core.Map _json) { + if (_json.containsKey("deleted")) { + deleted = _json["deleted"]; + } if (_json.containsKey("description")) { description = _json["description"]; } + if (_json.containsKey("etag")) { + etag = _json["etag"]; + } + if (_json.containsKey("includedPermissions")) { + includedPermissions = _json["includedPermissions"]; + } if (_json.containsKey("name")) { name = _json["name"]; } + if (_json.containsKey("stage")) { + stage = _json["stage"]; + } if (_json.containsKey("title")) { title = _json["title"]; } @@ -1355,12 +2533,24 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (deleted != null) { + _json["deleted"] = deleted; + } if (description != null) { _json["description"] = description; } + if (etag != null) { + _json["etag"] = etag; + } + if (includedPermissions != null) { + _json["includedPermissions"] = includedPermissions; + } if (name != null) { _json["name"] = name; } + if (stage != null) { + _json["stage"] = stage; + } if (title != null) { _json["title"] = title; } @@ -1516,6 +2706,10 @@ * 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 + * Google API client libraries and with + * <a href="/sdk/gcloud/reference/auth/activate-service-account">gcloud + * auth activate-service-account</a>. */ core.String privateKeyData; core.List<core.int> get privateKeyDataAsBytes { @@ -1806,3 +3000,32 @@ return _json; } } + +/** The request to undelete an existing role. */ +class UndeleteRoleRequest { + /** Used to perform a consistent read-modify-write. */ + 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("+", "-"); + } + + UndeleteRoleRequest(); + + UndeleteRoleRequest.fromJson(core.Map _json) { + if (_json.containsKey("etag")) { + etag = _json["etag"]; + } + } + + 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; + } + return _json; + } +}
diff --git a/generated/googleapis/lib/identitytoolkit/v3.dart b/generated/googleapis/lib/identitytoolkit/v3.dart index a46d54d..69644ca 100644 --- a/generated/googleapis/lib/identitytoolkit/v3.dart +++ b/generated/googleapis/lib/identitytoolkit/v3.dart
@@ -1282,6 +1282,8 @@ core.String idToken; /** The list of local ID's of the users to inquiry. */ core.List<core.String> localId; + /** Privileged caller can query users by specified phone number. */ + core.List<core.String> phoneNumber; IdentitytoolkitRelyingpartyGetAccountInfoRequest(); @@ -1298,6 +1300,9 @@ if (_json.containsKey("localId")) { localId = _json["localId"]; } + if (_json.containsKey("phoneNumber")) { + phoneNumber = _json["phoneNumber"]; + } } core.Map<core.String, core.Object> toJson() { @@ -1314,6 +1319,9 @@ if (localId != null) { _json["localId"] = localId; } + if (phoneNumber != null) { + _json["phoneNumber"] = phoneNumber; + } return _json; } } @@ -1547,6 +1555,8 @@ core.String oobCode; /** The new password of the user. */ core.String password; + /** Privileged caller can update user with specified phone number. */ + core.String phoneNumber; /** The photo url of the user. */ core.String photoUrl; /** The associated IDPs of the user. */ @@ -1609,6 +1619,9 @@ if (_json.containsKey("password")) { password = _json["password"]; } + if (_json.containsKey("phoneNumber")) { + phoneNumber = _json["phoneNumber"]; + } if (_json.containsKey("photoUrl")) { photoUrl = _json["photoUrl"]; } @@ -1676,6 +1689,9 @@ if (password != null) { _json["password"] = password; } + if (phoneNumber != null) { + _json["phoneNumber"] = phoneNumber; + } if (photoUrl != null) { _json["photoUrl"] = photoUrl; } @@ -1900,6 +1916,8 @@ core.String localId; /** The new password of the user. */ core.String password; + /** Privileged caller can create user with specified phone number. */ + core.String phoneNumber; /** The photo url of the user. */ core.String photoUrl; @@ -1936,6 +1954,9 @@ if (_json.containsKey("password")) { password = _json["password"]; } + if (_json.containsKey("phoneNumber")) { + phoneNumber = _json["phoneNumber"]; + } if (_json.containsKey("photoUrl")) { photoUrl = _json["photoUrl"]; } @@ -1973,6 +1994,9 @@ if (password != null) { _json["password"] = password; } + if (phoneNumber != null) { + _json["phoneNumber"] = phoneNumber; + } if (photoUrl != null) { _json["photoUrl"] = photoUrl; }
diff --git a/generated/googleapis/lib/kgsearch/v1.dart b/generated/googleapis/lib/kgsearch/v1.dart index 5ba8ef2..80ae2c2 100644 --- a/generated/googleapis/lib/kgsearch/v1.dart +++ b/generated/googleapis/lib/kgsearch/v1.dart
@@ -39,13 +39,6 @@ * * Request parameters: * - * [ids] - The list of entity id to be used for search instead of query - * string. - * To specify multiple ids in the HTTP request, repeat the parameter in the - * URL as in ...?ids=A&ids=B - * - * [limit] - Limits the number of entities to be returned. - * * [prefix] - Enables prefix match against names and aliases of entities * * [query] - The literal query string for search. @@ -60,6 +53,13 @@ * query with, * e.g. 'en'. * + * [ids] - The list of entity id to be used for search instead of query + * string. + * To specify multiple ids in the HTTP request, repeat the parameter in the + * URL as in ...?ids=A&ids=B + * + * [limit] - Limits the number of entities to be returned. + * * Completes with a [SearchResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -68,7 +68,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<SearchResponse> search({core.List<core.String> ids, core.int limit, core.bool prefix, core.String query, core.List<core.String> types, core.bool indent, core.List<core.String> languages}) { + async.Future<SearchResponse> search({core.bool prefix, core.String query, core.List<core.String> types, core.bool indent, core.List<core.String> languages, core.List<core.String> ids, core.int limit}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -76,12 +76,6 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (ids != null) { - _queryParams["ids"] = ids; - } - if (limit != null) { - _queryParams["limit"] = ["${limit}"]; - } if (prefix != null) { _queryParams["prefix"] = ["${prefix}"]; } @@ -97,6 +91,12 @@ if (languages != null) { _queryParams["languages"] = languages; } + if (ids != null) { + _queryParams["ids"] = ids; + } + if (limit != null) { + _queryParams["limit"] = ["${limit}"]; + } _url = 'v1/entities:search';
diff --git a/generated/googleapis/lib/language/v1.dart b/generated/googleapis/lib/language/v1.dart index eacff7d..6491348 100644 --- a/generated/googleapis/lib/language/v1.dart +++ b/generated/googleapis/lib/language/v1.dart
@@ -20,6 +20,11 @@ * and text annotations. */ class LanguageApi { + /** + * Apply machine learning models to reveal the structure and meaning of text + */ + static const CloudLanguageScope = "https://www.googleapis.com/auth/cloud-language"; + /** View and manage your data across Google Cloud Platform services */ static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; @@ -1331,8 +1336,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a - * common set of message types for APIs to use. + * A list of messages that carry the error details. There 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.
diff --git a/generated/googleapis/lib/logging/v2.dart b/generated/googleapis/lib/logging/v2.dart index 3ae50ea..3b8992c 100644 --- a/generated/googleapis/lib/logging/v2.dart +++ b/generated/googleapis/lib/logging/v2.dart
@@ -127,15 +127,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. - * * Completes with a [ListLogsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -144,7 +144,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}) { + async.Future<ListLogsResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -155,12 +155,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]; + } _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; @@ -356,15 +356,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. - * * Completes with a [ListSinksResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -373,7 +373,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.String pageToken, core.int pageSize}) { + async.Future<ListSinksResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -384,12 +384,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]; + } _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; @@ -874,15 +874,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. - * * Completes with a [ListSinksResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -891,7 +891,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.String pageToken, core.int pageSize}) { + async.Future<ListSinksResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -902,12 +902,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]; + } _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; @@ -1006,15 +1006,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. - * * Completes with a [ListMonitoredResourceDescriptorsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1023,7 +1023,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListMonitoredResourceDescriptorsResponse> list({core.String pageToken, core.int pageSize}) { + async.Future<ListMonitoredResourceDescriptorsResponse> list({core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1031,12 +1031,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]; + } _url = 'v2/monitoredResourceDescriptors'; @@ -1134,15 +1134,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. + * * Completes with a [ListLogsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1151,7 +1151,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}) { + async.Future<ListLogsResponse> list(core.String parent, {core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1162,12 +1162,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}"]; + } _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; @@ -3180,9 +3180,8 @@ */ core.String name; /** - * Optional. The log entry format to use for this sink's exported log entries. - * The v2 format is used by default. The v1 format is deprecated and should be - * used only as part of a migration effort to v2. See Migration to the v2 API. + * Deprecated. The log entry format to use for this sink's exported log + * entries. The v2 format is used by default and cannot be changed. * Possible string values are: * - "VERSION_FORMAT_UNSPECIFIED" : An unspecified format version that will * default to V2.
diff --git a/generated/googleapis/lib/manufacturers/v1.dart b/generated/googleapis/lib/manufacturers/v1.dart index 98dc14f..9affd68 100644 --- a/generated/googleapis/lib/manufacturers/v1.dart +++ b/generated/googleapis/lib/manufacturers/v1.dart
@@ -176,12 +176,12 @@ * `account_id` - The ID of the Manufacturer Center account. * Value must have pattern "^accounts/[^/]+$". * - * [pageToken] - The token returned by the previous request. - * * [pageSize] - Maximum number of product statuses to return in the response, * used for * paging. * + * [pageToken] - The token returned by the previous request. + * * Completes with a [ListProductsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -190,7 +190,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListProductsResponse> list(core.String parent, {core.String pageToken, core.int pageSize}) { + async.Future<ListProductsResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -201,12 +201,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]; + } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/products';
diff --git a/generated/googleapis/lib/ml/v1.dart b/generated/googleapis/lib/ml/v1.dart index 2cabb42..f899547 100644 --- a/generated/googleapis/lib/ml/v1.dart +++ b/generated/googleapis/lib/ml/v1.dart
@@ -1294,7 +1294,7 @@ } /** Options for automatically scaling a model. */ -class GoogleCloudMlV1AutomaticScaling { +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 @@ -1317,9 +1317,9 @@ */ core.int minNodes; - GoogleCloudMlV1AutomaticScaling(); + GoogleCloudMlV1AutoScaling(); - GoogleCloudMlV1AutomaticScaling.fromJson(core.Map _json) { + GoogleCloudMlV1AutoScaling.fromJson(core.Map _json) { if (_json.containsKey("minNodes")) { minNodes = _json["minNodes"]; } @@ -2736,7 +2736,7 @@ * taken to ramp up traffic according to the model's ability to scale * or you will start seeing increases in latency and 429 response codes. */ - GoogleCloudMlV1AutomaticScaling automaticScaling; + GoogleCloudMlV1AutoScaling autoScaling; /** Output only. The time the version was created. */ core.String createTime; /** @@ -2744,7 +2744,7 @@ * create the version. See the * [overview of model * deployment](/ml-engine/docs/concepts/deployment-overview) for more - * informaiton. + * information. * * When passing Version to * [projects.models.versions.create](/ml-engine/reference/rest/v1/projects.models.versions/create) @@ -2772,7 +2772,7 @@ core.String lastUseTime; /** * Manually select the number of nodes to use for serving the - * model. You should generally use `automatic_scaling` with an appropriate + * model. You should generally use `auto_scaling` with an appropriate * `min_nodes` instead, but this option is available if you want more * predictable billing. Beware that latency and error rates will increase * if the traffic exceeds that capability of the system to serve it based @@ -2804,8 +2804,8 @@ GoogleCloudMlV1Version(); GoogleCloudMlV1Version.fromJson(core.Map _json) { - if (_json.containsKey("automaticScaling")) { - automaticScaling = new GoogleCloudMlV1AutomaticScaling.fromJson(_json["automaticScaling"]); + if (_json.containsKey("autoScaling")) { + autoScaling = new GoogleCloudMlV1AutoScaling.fromJson(_json["autoScaling"]); } if (_json.containsKey("createTime")) { createTime = _json["createTime"]; @@ -2841,8 +2841,8 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (automaticScaling != null) { - _json["automaticScaling"] = (automaticScaling).toJson(); + if (autoScaling != null) { + _json["autoScaling"] = (autoScaling).toJson(); } if (createTime != null) { _json["createTime"] = createTime; @@ -2879,7 +2879,7 @@ } /** Options for automatically scaling a model. */ -class GoogleCloudMlV1beta1AutomaticScaling { +class GoogleCloudMlV1beta1AutoScaling { /** * 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 @@ -2902,9 +2902,9 @@ */ core.int minNodes; - GoogleCloudMlV1beta1AutomaticScaling(); + GoogleCloudMlV1beta1AutoScaling(); - GoogleCloudMlV1beta1AutomaticScaling.fromJson(core.Map _json) { + GoogleCloudMlV1beta1AutoScaling.fromJson(core.Map _json) { if (_json.containsKey("minNodes")) { minNodes = _json["minNodes"]; } @@ -2925,7 +2925,7 @@ * The 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 proportional to `nodes` * number of hours since - * last billing cycle. + * last billing cycle plus the cost for each prediction performed. */ core.int nodes; @@ -3038,7 +3038,7 @@ * taken to ramp up traffic according to the model's ability to scale * or you will start seeing increases in latency and 429 response codes. */ - GoogleCloudMlV1beta1AutomaticScaling automaticScaling; + GoogleCloudMlV1beta1AutoScaling autoScaling; /** Output only. The time the version was created. */ core.String createTime; /** @@ -3046,7 +3046,7 @@ * create the version. See the * [overview of model * deployment](/ml-engine/docs/concepts/deployment-overview) for more - * informaiton. + * information. * * When passing Version to * [projects.models.versions.create](/ml-engine/reference/rest/v1beta1/projects.models.versions/create) @@ -3074,11 +3074,11 @@ core.String lastUseTime; /** * Manually select the number of nodes to use for serving the - * model. You should generally use `automatic_scaling` with an appropriate - * `min_nodes` instead, but this option is available if you want predictable - * billing. Beware that latency and error rates will increase if the - * traffic exceeds that capability of the system to serve it based on - * the selected number of nodes. + * model. You should generally use `auto_scaling` with an appropriate + * `min_nodes` instead, but this option is available if you want more + * predictable billing. Beware that latency and error rates will increase + * if the traffic exceeds that capability of the system to serve it based + * on the selected number of nodes. */ GoogleCloudMlV1beta1ManualScaling manualScaling; /** @@ -3095,7 +3095,7 @@ /** * Output only. The state of a version. * Possible string values are: - * - "UNKNOWN" : / The version state is unspecified. + * - "UNKNOWN" : The version state is unspecified. * - "READY" : The version is ready for prediction. * - "CREATING" : The version is still in the process of creation. * - "FAILED" : The version failed to be created, possibly cancelled. @@ -3106,8 +3106,8 @@ GoogleCloudMlV1beta1Version(); GoogleCloudMlV1beta1Version.fromJson(core.Map _json) { - if (_json.containsKey("automaticScaling")) { - automaticScaling = new GoogleCloudMlV1beta1AutomaticScaling.fromJson(_json["automaticScaling"]); + if (_json.containsKey("autoScaling")) { + autoScaling = new GoogleCloudMlV1beta1AutoScaling.fromJson(_json["autoScaling"]); } if (_json.containsKey("createTime")) { createTime = _json["createTime"]; @@ -3143,8 +3143,8 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (automaticScaling != null) { - _json["automaticScaling"] = (automaticScaling).toJson(); + if (autoScaling != null) { + _json["autoScaling"] = (autoScaling).toJson(); } if (createTime != null) { _json["createTime"] = createTime; @@ -4165,8 +4165,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a - * common set of message types for APIs to use. + * A list of messages that carry the error details. There 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.
diff --git a/generated/googleapis/lib/monitoring/v3.dart b/generated/googleapis/lib/monitoring/v3.dart index 62c146e..3a09d37 100644 --- a/generated/googleapis/lib/monitoring/v3.dart +++ b/generated/googleapis/lib/monitoring/v3.dart
@@ -269,11 +269,6 @@ * "projects/{project_id_or_number}". * Value must have pattern "^projects/[^/]+$". * - * [childrenOfGroup] - A group name: - * "projects/{project_id_or_number}/groups/{group_id}". Returns groups whose - * parentName field contains the group name. If no groups have this parent, - * the results are empty. - * * [descendantsOfGroup] - A group name: * "projects/{project_id_or_number}/groups/{group_id}". Returns the * descendants of the specified group. This is a superset of the results @@ -295,6 +290,11 @@ * ancestor. If the specified group has no immediate parent, the results are * empty. * + * [childrenOfGroup] - A group name: + * "projects/{project_id_or_number}/groups/{group_id}". Returns groups whose + * parentName field contains the group name. If no groups have this parent, + * the results are empty. + * * Completes with a [ListGroupsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -303,7 +303,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListGroupsResponse> list(core.String name, {core.String childrenOfGroup, core.String descendantsOfGroup, core.String pageToken, core.int pageSize, core.String ancestorsOfGroup}) { + async.Future<ListGroupsResponse> list(core.String name, {core.String descendantsOfGroup, core.String pageToken, core.int pageSize, core.String ancestorsOfGroup, core.String childrenOfGroup}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -314,9 +314,6 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } - if (childrenOfGroup != null) { - _queryParams["childrenOfGroup"] = [childrenOfGroup]; - } if (descendantsOfGroup != null) { _queryParams["descendantsOfGroup"] = [descendantsOfGroup]; } @@ -329,6 +326,9 @@ if (ancestorsOfGroup != null) { _queryParams["ancestorsOfGroup"] = [ancestorsOfGroup]; } + if (childrenOfGroup != null) { + _queryParams["childrenOfGroup"] = [childrenOfGroup]; + } _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/groups'; @@ -428,13 +428,13 @@ * 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. - * * [interval_startTime] - Optional. The beginning of the time interval. The * default value for the start time is the end time. The start time must not * be later than the end time. * + * [pageSize] - A positive number that is the maximum number of results to + * return. + * * Completes with a [ListGroupMembersResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -443,7 +443,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListGroupMembersResponse> list(core.String name, {core.String interval_endTime, core.String filter, core.String pageToken, core.int pageSize, core.String interval_startTime}) { + async.Future<ListGroupMembersResponse> list(core.String name, {core.String interval_endTime, core.String filter, core.String pageToken, core.String interval_startTime, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -463,12 +463,12 @@ if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (interval_startTime != null) { _queryParams["interval.startTime"] = [interval_startTime]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/members'; @@ -635,6 +635,12 @@ * "projects/{project_id_or_number}". * Value must have pattern "^projects/[^/]+$". * + * [filter] - If this field is empty, all custom and system-defined metric + * descriptors are returned. Otherwise, the filter specifies which metric + * descriptors are to be returned. For example, the following filter matches + * all custom metrics: + * metric.type = starts_with("custom.googleapis.com/") + * * [pageToken] - If this field is not empty then it must contain the * nextPageToken value returned by a previous call to this method. Using this * field causes the method to return additional results from the previous @@ -643,12 +649,6 @@ * [pageSize] - A positive number that is the maximum number of results to * return. * - * [filter] - If this field is empty, all custom and system-defined metric - * descriptors are returned. Otherwise, the filter specifies which metric - * descriptors are to be returned. For example, the following filter matches - * all custom metrics: - * metric.type = starts_with("custom.googleapis.com/") - * * Completes with a [ListMetricDescriptorsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -657,7 +657,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListMetricDescriptorsResponse> list(core.String name, {core.String pageToken, core.int pageSize, core.String filter}) { + async.Future<ListMetricDescriptorsResponse> list(core.String name, {core.String filter, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -668,15 +668,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]; - } _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/metricDescriptors'; @@ -753,12 +753,6 @@ * "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 @@ -767,6 +761,12 @@ * [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 + * * Completes with a [ListMonitoredResourceDescriptorsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -775,7 +775,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListMonitoredResourceDescriptorsResponse> list(core.String name, {core.String filter, core.String pageToken, core.int pageSize}) { + async.Future<ListMonitoredResourceDescriptorsResponse> list(core.String name, {core.String pageToken, core.int pageSize, core.String filter}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -786,15 +786,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]; + } _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/monitoredResourceDescriptors'; @@ -876,34 +876,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 - * 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. - * - * [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. - * * [orderBy] - Specifies the order in which the points of the time series * should be returned. By default, results are not ordered. Currently, this * field must be left blank. @@ -930,6 +902,7 @@ * - "REDUCE_PERCENTILE_95" : A REDUCE_PERCENTILE_95. * - "REDUCE_PERCENTILE_50" : A REDUCE_PERCENTILE_50. * - "REDUCE_PERCENTILE_05" : A REDUCE_PERCENTILE_05. + * - "REDUCE_FRACTION_LESS_THAN" : A REDUCE_FRACTION_LESS_THAN. * * [filter] - A monitoring filter that specifies which time series should be * returned. The filter must specify a single metric type, and can @@ -968,6 +941,7 @@ * - "ALIGN_PERCENTILE_95" : A ALIGN_PERCENTILE_95. * - "ALIGN_PERCENTILE_50" : A ALIGN_PERCENTILE_50. * - "ALIGN_PERCENTILE_05" : A ALIGN_PERCENTILE_05. + * - "ALIGN_MAKE_DISTRIBUTION" : A ALIGN_MAKE_DISTRIBUTION. * * [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 @@ -978,6 +952,42 @@ * - "FULL" : A FULL. * - "HEADERS" : A HEADERS. * + * [aggregation_reduceFractionLessThanParams_threshold] - The threshold used + * by the REDUCE_FRACTION_LESS_THAN cross-series reducer. + * + * [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 + * 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. + * + * [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. + * + * [outputPeriod] - If outputPeriod is specified, the data in the response + * will have the given period. Must be equal to or longer than + * alignmentPeriod. Must not be used when view is HEADERS. Only used when + * interval describes an interval longer than a single point. + * * Completes with a [ListTimeSeriesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -986,7 +996,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListTimeSeriesResponse> list(core.String name, {core.List<core.String> aggregation_groupByFields, 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 interval_startTime, core.String view}) { + async.Future<ListTimeSeriesResponse> list(core.String name, {core.String orderBy, core.String aggregation_crossSeriesReducer, core.String filter, core.String pageToken, core.String aggregation_perSeriesAligner, core.String interval_startTime, core.String view, core.double aggregation_reduceFractionLessThanParams_threshold, core.List<core.String> aggregation_groupByFields, core.String interval_endTime, core.String aggregation_alignmentPeriod, core.int pageSize, core.String outputPeriod}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -997,18 +1007,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]; - } - if (aggregation_alignmentPeriod != null) { - _queryParams["aggregation.alignmentPeriod"] = [aggregation_alignmentPeriod]; - } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (orderBy != null) { _queryParams["orderBy"] = [orderBy]; } @@ -1030,6 +1028,24 @@ if (view != null) { _queryParams["view"] = [view]; } + if (aggregation_reduceFractionLessThanParams_threshold != null) { + _queryParams["aggregation.reduceFractionLessThanParams.threshold"] = ["${aggregation_reduceFractionLessThanParams_threshold}"]; + } + if (aggregation_groupByFields != null) { + _queryParams["aggregation.groupByFields"] = aggregation_groupByFields; + } + if (interval_endTime != null) { + _queryParams["interval.endTime"] = [interval_endTime]; + } + if (aggregation_alignmentPeriod != null) { + _queryParams["aggregation.alignmentPeriod"] = [aggregation_alignmentPeriod]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (outputPeriod != null) { + _queryParams["outputPeriod"] = [outputPeriod]; + } _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/timeSeries';
diff --git a/generated/googleapis/lib/partners/v2.dart b/generated/googleapis/lib/partners/v2.dart index df3855e..9db967f 100644 --- a/generated/googleapis/lib/partners/v2.dart +++ b/generated/googleapis/lib/partners/v2.dart
@@ -50,11 +50,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 `ListAnalyticsResponse.next_page_token` @@ -99,7 +99,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<ListAnalyticsResponse> list({core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, 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}) { + async.Future<ListAnalyticsResponse> list({core.String requestMetadata_partnersSessionId, core.String requestMetadata_userOverrides_userId, 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}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -107,12 +107,12 @@ 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 (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -215,6 +215,13 @@ * * [companyId] - The ID of the company to retrieve. * + * [address] - The address to use for sorting the company's addresses by + * proximity. + * If not given, the geo-located address of the request is used. + * Used when order_by is set. + * + * [requestMetadata_locale] - Locale to use for the current request. + * * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate * where the traffic comes from. * An identifier has multiple letters created by a team which redirected the @@ -223,42 +230,35 @@ * [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. - * * [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. + * * [orderBy] - How to order addresses within the returned company. Currently, * only * `address` and `address desc` is supported which will sorted by closest to * farthest in distance from given address and farthest to closest distance * from given address respectively. * - * [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. + * * [view] - The view of `Company` resource to be returned. This must not be * `COMPANY_VIEW_UNSPECIFIED`. * Possible string values are: * - "COMPANY_VIEW_UNSPECIFIED" : A COMPANY_VIEW_UNSPECIFIED. * - "CV_GOOGLE_PARTNER_SEARCH" : A CV_GOOGLE_PARTNER_SEARCH. * - * [address] - The address to use for sorting the company's addresses by - * proximity. - * If not given, the geo-located address of the request is used. - * Used when order_by is set. - * - * [requestMetadata_locale] - Locale to use for the current request. - * * Completes with a [GetCompanyResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -267,7 +267,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<GetCompanyResponse> get(core.String companyId, {core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String currencyCode, core.String orderBy, core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_partnersSessionId, core.String requestMetadata_userOverrides_userId, core.String view, core.String address, core.String requestMetadata_locale}) { + async.Future<GetCompanyResponse> get(core.String companyId, {core.String address, core.String requestMetadata_locale, 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 orderBy, core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, core.String view}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -278,39 +278,39 @@ if (companyId == null) { throw new core.ArgumentError("Parameter companyId is required."); } + if (address != null) { + _queryParams["address"] = [address]; + } + if (requestMetadata_locale != null) { + _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; + } if (requestMetadata_trafficSource_trafficSourceId != null) { _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMetadata_trafficSource_trafficSourceId]; } if (requestMetadata_userOverrides_ipAddress != null) { _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata_userOverrides_ipAddress]; } - if (requestMetadata_experimentIds != null) { - _queryParams["requestMetadata.experimentIds"] = requestMetadata_experimentIds; - } if (currencyCode != null) { _queryParams["currencyCode"] = [currencyCode]; } - if (orderBy != null) { - _queryParams["orderBy"] = [orderBy]; + 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 (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 (view != null) { _queryParams["view"] = [view]; } - if (address != null) { - _queryParams["address"] = [address]; - } - if (requestMetadata_locale != null) { - _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; - } _url = 'v2/companies/' + commons.Escaper.ecapeVariable('$companyId'); @@ -329,61 +329,6 @@ * * Request parameters: * - * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate - * instead of the user's ID. - * - * [minMonthlyBudget_currencyCode] - The 3-letter currency code defined in ISO - * 4217. - * - * [view] - The view of the `Company` resource to be returned. This must not - * be - * `COMPANY_VIEW_UNSPECIFIED`. - * Possible string values are: - * - "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. - * - * [minMonthlyBudget_units] - The whole units of the amount. - * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. - * - * [maxMonthlyBudget_nanos] - Number of nano (10^-9) units of the amount. - * The value must be between -999,999,999 and +999,999,999 inclusive. - * If `units` is positive, `nanos` must be positive or zero. - * If `units` is zero, `nanos` can be positive, zero, or negative. - * If `units` is negative, `nanos` must be negative or zero. - * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. - * - * [services] - List of services that the returned agencies should provide. If - * this is - * not empty, any returned agency must have at least one of these services, - * or one of the specializations in the "specializations" field. - * - * [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. - * - * [maxMonthlyBudget_units] - The whole units of the amount. - * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. - * - * [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. - * - * [minMonthlyBudget_nanos] - Number of nano (10^-9) units of the amount. - * The value must be between -999,999,999 and +999,999,999 inclusive. - * If `units` is positive, `nanos` must be positive or zero. - * If `units` is zero, `nanos` can be positive, zero, or negative. - * If `units` is negative, `nanos` must be negative or zero. - * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. - * - * [requestMetadata_partnersSessionId] - Google Partners session ID. - * * [companyName] - Company name to search for. * * [pageToken] - A token identifying a page of results that the server @@ -430,6 +375,61 @@ * [maxMonthlyBudget_currencyCode] - The 3-letter currency code defined in ISO * 4217. * + * [minMonthlyBudget_currencyCode] - The 3-letter currency code defined in ISO + * 4217. + * + * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate + * instead of the user's ID. + * + * [view] - The view of the `Company` resource to be returned. This must not + * be + * `COMPANY_VIEW_UNSPECIFIED`. + * Possible string values are: + * - "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. + * + * [minMonthlyBudget_units] - The whole units of the amount. + * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + * + * [maxMonthlyBudget_nanos] - Number of nano (10^-9) units of the amount. + * The value must be between -999,999,999 and +999,999,999 inclusive. + * If `units` is positive, `nanos` must be positive or zero. + * If `units` is zero, `nanos` can be positive, zero, or negative. + * If `units` is negative, `nanos` must be negative or zero. + * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * + * [services] - List of services that the returned agencies should provide. If + * this is + * not empty, any returned agency must have at least one of these services, + * or one of the specializations in the "specializations" field. + * + * [maxMonthlyBudget_units] - The whole units of the amount. + * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + * + * [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_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. + * + * [minMonthlyBudget_nanos] - Number of nano (10^-9) units of the amount. + * The value must be between -999,999,999 and +999,999,999 inclusive. + * If `units` is positive, `nanos` must be positive or zero. + * If `units` is zero, `nanos` can be positive, zero, or negative. + * If `units` is negative, `nanos` must be negative or zero. + * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + * + * [requestMetadata_partnersSessionId] - Google Partners session ID. + * * Completes with a [ListCompaniesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -438,7 +438,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<ListCompaniesResponse> list({core.String requestMetadata_userOverrides_userId, core.String minMonthlyBudget_currencyCode, core.String view, core.String requestMetadata_locale, core.String address, core.String minMonthlyBudget_units, core.int maxMonthlyBudget_nanos, core.List<core.String> services, core.String requestMetadata_trafficSource_trafficSourceId, core.String maxMonthlyBudget_units, core.String requestMetadata_trafficSource_trafficSubId, core.int minMonthlyBudget_nanos, core.String requestMetadata_partnersSessionId, core.String companyName, core.String pageToken, core.List<core.String> industries, core.String websiteUrl, core.List<core.String> gpsMotivations, core.List<core.String> languageCodes, core.int pageSize, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String orderBy, core.List<core.String> specializations, core.String maxMonthlyBudget_currencyCode}) { + async.Future<ListCompaniesResponse> list({core.String companyName, core.String pageToken, core.List<core.String> industries, core.String websiteUrl, core.List<core.String> gpsMotivations, core.List<core.String> languageCodes, core.int pageSize, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String orderBy, core.List<core.String> specializations, core.String maxMonthlyBudget_currencyCode, core.String minMonthlyBudget_currencyCode, core.String requestMetadata_userOverrides_userId, core.String view, core.String requestMetadata_locale, core.String address, core.String minMonthlyBudget_units, core.int maxMonthlyBudget_nanos, core.List<core.String> services, core.String maxMonthlyBudget_units, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_trafficSource_trafficSubId, core.int minMonthlyBudget_nanos, core.String requestMetadata_partnersSessionId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -446,45 +446,6 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (requestMetadata_userOverrides_userId != null) { - _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; - } - if (minMonthlyBudget_currencyCode != null) { - _queryParams["minMonthlyBudget.currencyCode"] = [minMonthlyBudget_currencyCode]; - } - if (view != null) { - _queryParams["view"] = [view]; - } - if (requestMetadata_locale != null) { - _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; - } - if (address != null) { - _queryParams["address"] = [address]; - } - if (minMonthlyBudget_units != null) { - _queryParams["minMonthlyBudget.units"] = [minMonthlyBudget_units]; - } - if (maxMonthlyBudget_nanos != null) { - _queryParams["maxMonthlyBudget.nanos"] = ["${maxMonthlyBudget_nanos}"]; - } - if (services != null) { - _queryParams["services"] = services; - } - if (requestMetadata_trafficSource_trafficSourceId != null) { - _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMetadata_trafficSource_trafficSourceId]; - } - if (maxMonthlyBudget_units != null) { - _queryParams["maxMonthlyBudget.units"] = [maxMonthlyBudget_units]; - } - if (requestMetadata_trafficSource_trafficSubId != null) { - _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; - } - if (minMonthlyBudget_nanos != null) { - _queryParams["minMonthlyBudget.nanos"] = ["${minMonthlyBudget_nanos}"]; - } - if (requestMetadata_partnersSessionId != null) { - _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; - } if (companyName != null) { _queryParams["companyName"] = [companyName]; } @@ -521,6 +482,45 @@ if (maxMonthlyBudget_currencyCode != null) { _queryParams["maxMonthlyBudget.currencyCode"] = [maxMonthlyBudget_currencyCode]; } + if (minMonthlyBudget_currencyCode != null) { + _queryParams["minMonthlyBudget.currencyCode"] = [minMonthlyBudget_currencyCode]; + } + if (requestMetadata_userOverrides_userId != null) { + _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; + } + if (view != null) { + _queryParams["view"] = [view]; + } + if (requestMetadata_locale != null) { + _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; + } + if (address != null) { + _queryParams["address"] = [address]; + } + if (minMonthlyBudget_units != null) { + _queryParams["minMonthlyBudget.units"] = [minMonthlyBudget_units]; + } + if (maxMonthlyBudget_nanos != null) { + _queryParams["maxMonthlyBudget.nanos"] = ["${maxMonthlyBudget_nanos}"]; + } + if (services != null) { + _queryParams["services"] = services; + } + if (maxMonthlyBudget_units != null) { + _queryParams["maxMonthlyBudget.units"] = [maxMonthlyBudget_units]; + } + if (requestMetadata_trafficSource_trafficSourceId != null) { + _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMetadata_trafficSource_trafficSourceId]; + } + if (requestMetadata_trafficSource_trafficSubId != null) { + _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; + } + if (minMonthlyBudget_nanos != null) { + _queryParams["minMonthlyBudget.nanos"] = ["${minMonthlyBudget_nanos}"]; + } + if (requestMetadata_partnersSessionId != null) { + _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; + } _url = 'v2/companies'; @@ -707,11 +707,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` @@ -751,7 +751,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<ListLeadsResponse> list({core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, 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 orderBy, core.String requestMetadata_trafficSource_trafficSubId}) { + async.Future<ListLeadsResponse> list({core.String requestMetadata_partnersSessionId, core.String requestMetadata_userOverrides_userId, 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 orderBy, core.String requestMetadata_trafficSource_trafficSubId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -759,12 +759,12 @@ 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 (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -836,11 +836,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. + * * Completes with a [ListOffersResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -849,7 +849,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<ListOffersResponse> list({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_partnersSessionId, core.String requestMetadata_userOverrides_userId}) { + async.Future<ListOffersResponse> list({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}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -872,12 +872,12 @@ 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) { _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; } + if (requestMetadata_partnersSessionId != null) { + _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partnersSessionId]; + } _url = 'v2/offers'; @@ -905,11 +905,23 @@ * * Request parameters: * - * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate - * instead of the user's 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. + * + * [orderBy] - Comma-separated list of fields to order by, e.g.: + * "foo,bar,baz". + * Use "foo desc" to sort descending. + * List of valid field names is: name, offer_code, expiration_time, status, + * last_modified_time, sender_name, creation_time, country_code, + * offer_type. * * [requestMetadata_partnersSessionId] - Google Partners session ID. * + * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate + * instead of the user's ID. + * * [pageToken] - Token to retrieve a specific page. * * [pageSize] - Maximum number of rows to return per page. @@ -924,23 +936,11 @@ * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of * the user's geo-located IP address. * - * [entireCompany] - if true, show history for the entire company. Requires - * user to be admin. - * * [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. - * - * [orderBy] - Comma-separated list of fields to order by, e.g.: - * "foo,bar,baz". - * Use "foo desc" to sort descending. - * List of valid field names is: name, offer_code, expiration_time, status, - * last_modified_time, sender_name, creation_time, country_code, - * offer_type. + * [entireCompany] - if true, show history for the entire company. Requires + * user to be admin. * * Completes with a [ListOffersHistoryResponse]. * @@ -950,7 +950,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<ListOffersHistoryResponse> list({core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, core.String pageToken, core.int pageSize, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.bool entireCompany, core.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, core.String orderBy}) { + async.Future<ListOffersHistoryResponse> list({core.String requestMetadata_trafficSource_trafficSubId, core.String orderBy, core.String requestMetadata_partnersSessionId, core.String requestMetadata_userOverrides_userId, 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.bool entireCompany}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -958,12 +958,18 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (requestMetadata_userOverrides_userId != null) { - _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; + if (requestMetadata_trafficSource_trafficSubId != null) { + _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; + } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; } 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]; } @@ -979,17 +985,11 @@ if (requestMetadata_userOverrides_ipAddress != null) { _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata_userOverrides_ipAddress]; } - if (entireCompany != null) { - _queryParams["entireCompany"] = ["${entireCompany}"]; - } if (requestMetadata_experimentIds != null) { _queryParams["requestMetadata.experimentIds"] = requestMetadata_experimentIds; } - if (requestMetadata_trafficSource_trafficSubId != null) { - _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; - } - if (orderBy != null) { - _queryParams["orderBy"] = [orderBy]; + if (entireCompany != null) { + _queryParams["entireCompany"] = ["${entireCompany}"]; } _url = 'v2/offers/history'; @@ -1066,17 +1066,6 @@ * * Request parameters: * - * [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. - * * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate * instead of the user's ID. * @@ -1089,6 +1078,17 @@ * * [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 + * traffic to us. + * * Completes with a [ListUserStatesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1097,7 +1097,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<ListUserStatesResponse> list({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 requestMetadata_locale}) { + async.Future<ListUserStatesResponse> list({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}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1105,15 +1105,6 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - 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]; - } if (requestMetadata_userOverrides_userId != null) { _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; } @@ -1126,6 +1117,15 @@ 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]; + } _url = 'v2/userStates'; @@ -1158,19 +1158,11 @@ * [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_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 @@ -1181,6 +1173,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. + * * Completes with a [CompanyRelation]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1189,7 +1189,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<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_partnersSessionId, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress}) { + async.Future<CompanyRelation> createCompanyRelation(CompanyRelation request, core.String userId, {core.String requestMetadata_partnersSessionId, core.String requestMetadata_userOverrides_userId, 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}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1203,18 +1203,12 @@ 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_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 (requestMetadata_trafficSource_trafficSourceId != null) { _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMetadata_trafficSource_trafficSourceId]; } @@ -1224,6 +1218,12 @@ 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]; + } _url = 'v2/users/' + commons.Escaper.ecapeVariable('$userId') + '/companyRelation'; @@ -1330,11 +1330,11 @@ * the currently * authenticated user. * + * [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. - * * [userView] - Specifies what parts of the user information to return. * Possible string values are: * - "BASIC" : A BASIC. @@ -1367,7 +1367,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<User> get(core.String userId, {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 requestMetadata_trafficSource_trafficSubId}) { + async.Future<User> get(core.String userId, {core.String requestMetadata_partnersSessionId, core.String requestMetadata_userOverrides_userId, 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 requestMetadata_trafficSource_trafficSubId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1378,12 +1378,12 @@ if (userId == null) { throw new core.ArgumentError("Parameter userId is required."); } - 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 (userView != null) { _queryParams["userView"] = [userView]; } @@ -1514,11 +1514,19 @@ * * Request parameters: * - * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate - * instead of the user's ID. + * [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_trafficSource_trafficSourceId] - Identifier to indicate * where the traffic comes from. * An identifier has multiple letters created by a team which redirected the @@ -1529,14 +1537,6 @@ * [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. - * * Completes with a [GetPartnersStatusResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1545,7 +1545,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<GetPartnersStatusResponse> getPartnersstatus({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}) { + 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_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1553,12 +1553,18 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (requestMetadata_userOverrides_userId != null) { - _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; + 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) { + _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; + } if (requestMetadata_trafficSource_trafficSourceId != null) { _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMetadata_trafficSource_trafficSourceId]; } @@ -1568,12 +1574,6 @@ 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]; - } _url = 'v2/partnersstatus'; @@ -1595,6 +1595,11 @@ * * Request parameters: * + * [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. * @@ -1616,11 +1621,6 @@ * [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. - * * Completes with a [Company]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1629,7 +1629,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<Company> updateCompanies(Company request, {core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, 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}) { + async.Future<Company> updateCompanies(Company request, {core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.String updateMask, core.List<core.String> requestMetadata_experimentIds}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1640,6 +1640,9 @@ if (request != null) { _body = convert.JSON.encode((request).toJson()); } + if (requestMetadata_trafficSource_trafficSubId != null) { + _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; + } if (requestMetadata_userOverrides_userId != null) { _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_userOverrides_userId]; } @@ -1661,9 +1664,6 @@ if (requestMetadata_experimentIds != null) { _queryParams["requestMetadata.experimentIds"] = requestMetadata_experimentIds; } - if (requestMetadata_trafficSource_trafficSubId != null) { - _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetadata_trafficSource_trafficSubId]; - } _url = 'v2/companies'; @@ -1684,6 +1684,8 @@ * * Request parameters: * + * [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. * @@ -1709,8 +1711,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. - * * Completes with a [Lead]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1719,7 +1719,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<Lead> updateLeads(Lead request, {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 requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale}) { + async.Future<Lead> updateLeads(Lead request, {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 requestMetadata_trafficSource_trafficSourceId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1730,6 +1730,9 @@ if (request != null) { _body = convert.JSON.encode((request).toJson()); } + if (requestMetadata_locale != null) { + _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; + } if (requestMetadata_userOverrides_ipAddress != null) { _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata_userOverrides_ipAddress]; } @@ -1751,9 +1754,6 @@ if (requestMetadata_trafficSource_trafficSourceId != null) { _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMetadata_trafficSource_trafficSourceId]; } - if (requestMetadata_locale != null) { - _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; - } _url = 'v2/leads'; @@ -4332,6 +4332,8 @@ * certificate help icon. * - "SMB_CLICKED_VIDEO_ADS_CERTIFICATE_HELP_ICON" : Advertiser clicked * VideoAds certificate help icon. + * - "SMB_VIEWED_DIGITAL_SALES_CERTIFICATE" : Advertiser viewed Digital Sales + * certificate. * - "CLICKED_HELP_AT_BOTTOM" : Clicked `help` at bottom. * - "CLICKED_HELP_AT_TOP" : Clicked `help` at top. * - "CLIENT_ERROR" : Client error occurred.
diff --git a/generated/googleapis/lib/people/v1.dart b/generated/googleapis/lib/people/v1.dart index 08d4d40..246dc84 100644 --- a/generated/googleapis/lib/people/v1.dart +++ b/generated/googleapis/lib/people/v1.dart
@@ -68,11 +68,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. - * * Completes with a [BatchGetContactGroupsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -81,7 +81,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<BatchGetContactGroupsResponse> batchGet({core.int maxMembers, core.List<core.String> resourceNames}) { + async.Future<BatchGetContactGroupsResponse> batchGet({core.List<core.String> resourceNames, core.int maxMembers}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -89,12 +89,12 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (maxMembers != null) { - _queryParams["maxMembers"] = ["${maxMembers}"]; - } if (resourceNames != null) { _queryParams["resourceNames"] = resourceNames; } + if (maxMembers != null) { + _queryParams["maxMembers"] = ["${maxMembers}"]; + } _url = 'v1/contactGroups:batchGet'; @@ -246,6 +246,8 @@ * * Request parameters: * + * [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. @@ -254,8 +256,6 @@ * [ListContactGroups](/people/api/rest/v1/contactgroups/list). * Requests the next page of resources. * - * [pageSize] - The maximum number of resources to return. - * * Completes with a [ListContactGroupsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -264,7 +264,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<ListContactGroupsResponse> list({core.String syncToken, core.String pageToken, core.int pageSize}) { + async.Future<ListContactGroupsResponse> list({core.int pageSize, core.String syncToken, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -272,15 +272,15 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if (syncToken != null) { _queryParams["syncToken"] = [syncToken]; } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } _url = 'v1/contactGroups'; @@ -304,7 +304,7 @@ * * [resourceName] - The resource name for the contact group, assigned by the * server. An ASCII - * string, in the form of `contactGroups/<contact_group_id>`. + * string, in the form of `contactGroups/`<var>contact_group_id</var>. * Value must have pattern "^contactGroups/[^/]+$". * * Completes with a [ContactGroup]. @@ -503,7 +503,8 @@ * about. * * - To get information about the authenticated user, specify `people/me`. - * - To get information about a google account, specify `people/<account_id>`. + * - To get information about a google account, specify + * `people/`<var>account_id</var>. * - To get information about a contact, specify the resource name that * identifies the contact as returned by * [`people.connections.list`](/people/api/rest/v1/people.connections/list). @@ -593,16 +594,6 @@ * * Request parameters: * - * [requestMask_includeField] - **Required.** Comma-separated list of person - * fields to be included in the - * response. Each path should start with `person.`: for example, - * `person.names` or `person.photos`. - * - * [resourceNames] - The resource name, such as one returned by - * [`people.connections.list`](/people/api/rest/v1/people.connections/list), - * of one of the people to provide information about. You can include this - * parameter up to 50 times in one request. - * * [personFields] - **Required.** A field mask to restrict which fields on * each person are * returned. Valid values are: @@ -635,6 +626,23 @@ * * taglines * * urls * + * [requestMask_includeField] - **Required.** Comma-separated list of person + * fields to be included in the + * response. Each path should start with `person.`: for example, + * `person.names` or `person.photos`. + * + * [resourceNames] - The resource names of the people to provide information + * about. + * + * - To get information about the authenticated user, specify `people/me`. + * - To get information about a google account, specify + * `people/`<var>account_id</var>. + * - To get information about a contact, specify the resource name that + * identifies the contact as returned by + * [`people.connections.list`](/people/api/rest/v1/people.connections/list). + * + * You can include up to 50 resource names in one request. + * * Completes with a [GetPeopleResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -643,7 +651,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<GetPeopleResponse> getBatchGet({core.String requestMask_includeField, core.List<core.String> resourceNames, core.String personFields}) { + async.Future<GetPeopleResponse> getBatchGet({core.String personFields, core.String requestMask_includeField, core.List<core.String> resourceNames}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -651,15 +659,15 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (personFields != null) { + _queryParams["personFields"] = [personFields]; + } if (requestMask_includeField != null) { _queryParams["requestMask.includeField"] = [requestMask_includeField]; } if (resourceNames != null) { _queryParams["resourceNames"] = resourceNames; } - if (personFields != null) { - _queryParams["personFields"] = [personFields]; - } _url = 'v1/people:batchGet'; @@ -693,7 +701,8 @@ * * [resourceName] - The resource name for the person, assigned by the server. * An ASCII string - * with a max length of 27 characters, in the form of `people/<person_id>`. + * with a max length of 27 characters, in the form of + * `people/`<var>person_id</var>. * Value must have pattern "^people/[^/]+$". * * [updatePersonFields] - **Required.** A field mask to restrict which fields @@ -779,10 +788,6 @@ * `people/me` is valid. * Value must have pattern "^people/[^/]+$". * - * [syncToken] - A sync token, returned by a previous call to - * `people.connections.list`. - * Only resources changed since the sync token was created will be returned. - * * [personFields] - **Required.** A field mask to restrict which fields on * each person are * returned. Valid values are: @@ -838,6 +843,10 @@ * response. Each path should start with `person.`: for example, * `person.names` or `person.photos`. * + * [syncToken] - A sync token, returned by a previous call to + * `people.connections.list`. + * Only resources changed since the sync token was created will be returned. + * * Completes with a [ListConnectionsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -846,7 +855,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<ListConnectionsResponse> list(core.String resourceName, {core.String syncToken, core.String personFields, core.String sortOrder, core.bool requestSyncToken, core.String pageToken, core.int pageSize, core.String requestMask_includeField}) { + async.Future<ListConnectionsResponse> list(core.String resourceName, {core.String personFields, core.String sortOrder, core.bool requestSyncToken, core.String pageToken, core.int pageSize, core.String requestMask_includeField, core.String syncToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -857,9 +866,6 @@ if (resourceName == null) { throw new core.ArgumentError("Parameter resourceName is required."); } - if (syncToken != null) { - _queryParams["syncToken"] = [syncToken]; - } if (personFields != null) { _queryParams["personFields"] = [personFields]; } @@ -878,6 +884,9 @@ if (requestMask_includeField != null) { _queryParams["requestMask.includeField"] = [requestMask_includeField]; } + if (syncToken != null) { + _queryParams["syncToken"] = [syncToken]; + } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resourceName') + '/connections'; @@ -1243,7 +1252,7 @@ core.String name; /** * The resource name for the contact group, assigned by the server. An ASCII - * string, in the form of `contactGroups/<contact_group_id>`. + * string, in the form of `contactGroups/`<var>contact_group_id</var>. */ core.String resourceName; @@ -2106,12 +2115,12 @@ class ModifyContactGroupMembersRequest { /** * The resource names of the contact people to add in the form of in the form - * `people/<person_id>`. + * `people/`<var>person_id</var>. */ core.List<core.String> resourceNamesToAdd; /** * The resource names of the contact people to remove in the form of in the - * form of `people/<person_id>`. + * form of `people/`<var>person_id</var>. */ core.List<core.String> resourceNamesToRemove; @@ -2164,13 +2173,13 @@ class Name { /** * The read-only display name formatted according to the locale specified by - * the viewer's account or the <code>Accept-Language</code> HTTP header. + * the viewer's account or the `Accept-Language` HTTP header. */ core.String displayName; /** * The read-only display name with the last name first formatted according to * the locale specified by the viewer's account or the - * <code>Accept-Language</code> HTTP header. + * `Accept-Language` HTTP header. */ core.String displayNameLastFirst; /** The family name. */ @@ -2594,7 +2603,8 @@ core.List<Residence> residences; /** * The resource name for the person, assigned by the server. An ASCII string - * with a max length of 27 characters, in the form of `people/<person_id>`. + * with a max length of 27 characters, in the form of + * `people/`<var>person_id</var>. */ core.String resourceName; /** The person's skills. */ @@ -3014,7 +3024,7 @@ FieldMetadata metadata; /** * The URL of the photo. You can change the desired size by appending a query - * parameter `sz=<size>` at the end of the url. Example: + * parameter `sz=`<var>size</var> at the end of the url. Example: * `https://lh3.googleusercontent.com/-T_wVWLlmg7w/AAAAAAAAAAI/AAAAAAAABa8/00gzXvDBYqw/s100/photo.jpg?sz=50` */ core.String url; @@ -3325,14 +3335,19 @@ /** The source of a field. */ class Source { /** + * **Only populated in `person.metadata.sources`.** + * * The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the - * source. Used for web cache validation. Only populated in - * person.metadata.sources. + * source. Used for web cache validation. */ core.String etag; /** The unique identifier within the source type generated by the server. */ core.String id; - /** Metadata about a source of type PROFILE. */ + /** + * **Only populated in `person.metadata.sources`.** + * + * Metadata about a source of type PROFILE. + */ ProfileMetadata profileMetadata; /** * The source type. @@ -3351,7 +3366,11 @@ * is the source id. */ core.String type; - /** Last update timestamp of this source. */ + /** + * **Only populated in `person.metadata.sources`.** + * + * Last update timestamp of this source. + */ core.String updateTime; Source();
diff --git a/generated/googleapis/lib/playcustomapp/v1.dart b/generated/googleapis/lib/playcustomapp/v1.dart new file mode 100644 index 0000000..eba9798 --- /dev/null +++ b/generated/googleapis/lib/playcustomapp/v1.dart
@@ -0,0 +1,141 @@ +// This is a generated file (see the discoveryapis_generator project). + +library googleapis.playcustomapp.v1; + +import 'dart:core' as core; +import 'dart:async' as async; +import 'dart:convert' as convert; + +import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; +import 'package:http/http.dart' as http; + +export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show + ApiRequestError, DetailedApiRequestError, Media, UploadOptions, + ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, + ByteRange; + +const core.String USER_AGENT = 'dart-api-client playcustomapp/v1'; + +/** An API to publish custom Android apps. */ +class PlaycustomappApi { + /** View and manage your Google Play Developer account */ + static const AndroidpublisherScope = "https://www.googleapis.com/auth/androidpublisher"; + + + final commons.ApiRequester _requester; + + AccountsResourceApi get accounts => new AccountsResourceApi(_requester); + + PlaycustomappApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "playcustomapp/v1/accounts/"}) : + _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); +} + + +class AccountsResourceApi { + final commons.ApiRequester _requester; + + AccountsCustomAppsResourceApi get customApps => new AccountsCustomAppsResourceApi(_requester); + + AccountsResourceApi(commons.ApiRequester client) : + _requester = client; +} + + +class AccountsCustomAppsResourceApi { + final commons.ApiRequester _requester; + + AccountsCustomAppsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Create and publish a new custom app. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [account] - Developer account ID. + * + * [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 [CustomApp]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<CustomApp> create(CustomApp request, core.String account, {commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (account == null) { + throw new core.ArgumentError("Parameter account is required."); + } + + _uploadMedia = uploadMedia; + _uploadOptions = uploadOptions; + + if (_uploadMedia == null) { + _url = commons.Escaper.ecapeVariable('$account') + '/customApps'; + } else if (_uploadOptions is commons.ResumableUploadOptions) { + _url = '/resumable/upload/playcustomapp/v1/accounts/' + commons.Escaper.ecapeVariable('$account') + '/customApps'; + } else { + _url = '/upload/playcustomapp/v1/accounts/' + commons.Escaper.ecapeVariable('$account') + '/customApps'; + } + + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new CustomApp.fromJson(data)); + } + +} + + + +/** This resource represents a custom app. */ +class CustomApp { + /** Default listing language in BCP 47 format. */ + core.String languageCode; + /** Title for the Android app. */ + core.String title; + + CustomApp(); + + CustomApp.fromJson(core.Map _json) { + if (_json.containsKey("languageCode")) { + languageCode = _json["languageCode"]; + } + 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 (languageCode != null) { + _json["languageCode"] = languageCode; + } + if (title != null) { + _json["title"] = title; + } + return _json; + } +}
diff --git a/generated/googleapis/lib/playmoviespartner/v1.dart b/generated/googleapis/lib/playmoviespartner/v1.dart index f24bf7c..17d310c 100644 --- a/generated/googleapis/lib/playmoviespartner/v1.dart +++ b/generated/googleapis/lib/playmoviespartner/v1.dart
@@ -103,13 +103,6 @@ * [accountId] - REQUIRED. See _General rules_ for more information about this * field. * - * [altId] - Filter Avails that match a case-insensitive, partner-specific - * custom id. - * NOTE: this field is deprecated and will be removed on V2; `alt_ids` - * should be used instead. - * - * [studioNames] - See _List methods rules_ for info about this field. - * * [territories] - Filter Avails that match (case-insensitive) any of the * given country codes, * using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us"). @@ -119,10 +112,10 @@ * or `episode_title_internal_alias` that contains the given * case-insensitive title. * - * [pageToken] - See _List methods rules_ for info about this field. - * * [videoIds] - Filter Avails that match any of the given `video_id`s. * + * [pageToken] - See _List methods rules_ for info about this field. + * * [pageSize] - See _List methods rules_ for info about this field. * * [altIds] - Filter Avails that match (case-insensitive) any of the given @@ -130,6 +123,13 @@ * * [pphNames] - See _List methods rules_ for info about this field. * + * [altId] - Filter Avails that match a case-insensitive, partner-specific + * custom id. + * NOTE: this field is deprecated and will be removed on V2; `alt_ids` + * should be used instead. + * + * [studioNames] - See _List methods rules_ for info about this field. + * * Completes with a [ListAvailsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -138,7 +138,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<ListAvailsResponse> list(core.String accountId, {core.String altId, core.List<core.String> studioNames, core.List<core.String> territories, core.String title, core.String pageToken, core.List<core.String> videoIds, core.int pageSize, core.List<core.String> altIds, core.List<core.String> pphNames}) { + async.Future<ListAvailsResponse> list(core.String accountId, {core.List<core.String> territories, core.String title, core.List<core.String> videoIds, core.String pageToken, core.int pageSize, core.List<core.String> altIds, core.List<core.String> pphNames, core.String altId, core.List<core.String> studioNames}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -149,24 +149,18 @@ if (accountId == null) { throw new core.ArgumentError("Parameter accountId is required."); } - if (altId != null) { - _queryParams["altId"] = [altId]; - } - if (studioNames != null) { - _queryParams["studioNames"] = studioNames; - } if (territories != null) { _queryParams["territories"] = territories; } if (title != null) { _queryParams["title"] = [title]; } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (videoIds != null) { _queryParams["videoIds"] = videoIds; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } @@ -176,6 +170,12 @@ if (pphNames != null) { _queryParams["pphNames"] = pphNames; } + if (altId != null) { + _queryParams["altId"] = [altId]; + } + if (studioNames != null) { + _queryParams["studioNames"] = studioNames; + } _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/avails'; @@ -257,6 +257,8 @@ * [accountId] - REQUIRED. See _General rules_ for more information about this * field. * + * [pageSize] - See _List methods rules_ for info about this field. + * * [pphNames] - See _List methods rules_ for info about this field. * * [status] - Filter Orders that match one of the given status. @@ -274,8 +276,6 @@ * * [pageToken] - See _List methods rules_ for info about this field. * - * [pageSize] - See _List methods rules_ for info about this field. - * * Completes with a [ListOrdersResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -284,7 +284,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<ListOrdersResponse> list(core.String accountId, {core.List<core.String> pphNames, core.List<core.String> status, core.String name, core.List<core.String> studioNames, core.List<core.String> videoIds, core.String customId, core.String pageToken, core.int pageSize}) { + async.Future<ListOrdersResponse> list(core.String accountId, {core.int pageSize, core.List<core.String> pphNames, core.List<core.String> status, core.String name, core.List<core.String> studioNames, core.List<core.String> videoIds, core.String customId, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -295,6 +295,9 @@ if (accountId == null) { throw new core.ArgumentError("Parameter accountId is required."); } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } if (pphNames != null) { _queryParams["pphNames"] = pphNames; } @@ -316,9 +319,6 @@ if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/orders'; @@ -354,11 +354,6 @@ * [accountId] - REQUIRED. See _General rules_ for more information about this * field. * - * [studioNames] - See _List methods rules_ for info about this field. - * - * [name] - Filter that matches StoreInfos with a `name` or `show_name` - * that contains the given case-insensitive name. - * * [seasonIds] - Filter StoreInfos that match any of the given `season_id`s. * * [pageToken] - See _List methods rules_ for info about this field. @@ -379,6 +374,11 @@ * given country * codes, using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us"). * + * [studioNames] - See _List methods rules_ for info about this field. + * + * [name] - Filter that matches StoreInfos with a `name` or `show_name` + * that contains the given case-insensitive name. + * * Completes with a [ListStoreInfosResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -387,7 +387,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<ListStoreInfosResponse> list(core.String accountId, {core.List<core.String> studioNames, core.String name, core.List<core.String> seasonIds, core.String pageToken, core.String videoId, core.List<core.String> videoIds, core.int pageSize, core.List<core.String> mids, core.List<core.String> pphNames, core.List<core.String> countries}) { + async.Future<ListStoreInfosResponse> list(core.String accountId, {core.List<core.String> seasonIds, core.String pageToken, core.String videoId, core.List<core.String> videoIds, core.int pageSize, core.List<core.String> mids, core.List<core.String> pphNames, core.List<core.String> countries, core.List<core.String> studioNames, core.String name}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -398,12 +398,6 @@ if (accountId == null) { throw new core.ArgumentError("Parameter accountId is required."); } - if (studioNames != null) { - _queryParams["studioNames"] = studioNames; - } - if (name != null) { - _queryParams["name"] = [name]; - } if (seasonIds != null) { _queryParams["seasonIds"] = seasonIds; } @@ -428,6 +422,12 @@ if (countries != null) { _queryParams["countries"] = countries; } + if (studioNames != null) { + _queryParams["studioNames"] = studioNames; + } + if (name != null) { + _queryParams["name"] = [name]; + } _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/storeInfos';
diff --git a/generated/googleapis/lib/pubsub/v1.dart b/generated/googleapis/lib/pubsub/v1.dart index 4447763..6e38f9e 100644 --- a/generated/googleapis/lib/pubsub/v1.dart +++ b/generated/googleapis/lib/pubsub/v1.dart
@@ -457,13 +457,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. - * * Completes with a [ListSubscriptionsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -472,7 +472,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.String pageToken, core.int pageSize}) { + async.Future<ListSubscriptionsResponse> list(core.String project, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -483,12 +483,12 @@ if (project == null) { throw new core.ArgumentError("Parameter project is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$project') + '/subscriptions'; @@ -953,13 +953,13 @@ * Format is `projects/{project}`. * Value must have pattern "^projects/[^/]+$". * + * [pageSize] - Maximum number of topics to return. + * * [pageToken] - The value returned by the last `ListTopicsResponse`; * indicates that this is * a continuation of a prior `ListTopics` call, and that the system should * return the next page of data. * - * [pageSize] - Maximum number of topics to return. - * * Completes with a [ListTopicsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -968,7 +968,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<ListTopicsResponse> list(core.String project, {core.String pageToken, core.int pageSize}) { + async.Future<ListTopicsResponse> list(core.String project, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -979,12 +979,12 @@ if (project == null) { throw new core.ArgumentError("Parameter project is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$project') + '/topics';
diff --git a/generated/googleapis/lib/safebrowsing/v4.dart b/generated/googleapis/lib/safebrowsing/v4.dart index 0f635f0..300226c 100644 --- a/generated/googleapis/lib/safebrowsing/v4.dart +++ b/generated/googleapis/lib/safebrowsing/v4.dart
@@ -47,12 +47,12 @@ * * [encodedRequest] - A serialized FindFullHashesRequest proto. * + * [clientVersion] - The version of the client implementation. + * * [clientId] - A client ID that (hopefully) uniquely identifies the client * implementation * of the Safe Browsing API. * - * [clientVersion] - The version of the client implementation. - * * Completes with a [FindFullHashesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -61,7 +61,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<FindFullHashesResponse> get(core.String encodedRequest, {core.String clientId, core.String clientVersion}) { + async.Future<FindFullHashesResponse> get(core.String encodedRequest, {core.String clientVersion, core.String clientId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -72,12 +72,12 @@ if (encodedRequest == null) { throw new core.ArgumentError("Parameter encodedRequest is required."); } - if (clientId != null) { - _queryParams["clientId"] = [clientId]; - } if (clientVersion != null) { _queryParams["clientVersion"] = [clientVersion]; } + if (clientId != null) { + _queryParams["clientId"] = [clientId]; + } _url = 'v4/encodedFullHashes/' + commons.Escaper.ecapeVariable('$encodedRequest'); @@ -105,12 +105,12 @@ * * [encodedRequest] - A serialized FetchThreatListUpdatesRequest proto. * + * [clientVersion] - The version of the client implementation. + * * [clientId] - A client ID that uniquely identifies the client implementation * of the Safe * Browsing API. * - * [clientVersion] - The version of the client implementation. - * * Completes with a [FetchThreatListUpdatesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -119,7 +119,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<FetchThreatListUpdatesResponse> get(core.String encodedRequest, {core.String clientId, core.String clientVersion}) { + async.Future<FetchThreatListUpdatesResponse> get(core.String encodedRequest, {core.String clientVersion, core.String clientId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -130,12 +130,12 @@ if (encodedRequest == null) { throw new core.ArgumentError("Parameter encodedRequest is required."); } - if (clientId != null) { - _queryParams["clientId"] = [clientId]; - } if (clientVersion != null) { _queryParams["clientVersion"] = [clientVersion]; } + if (clientId != null) { + _queryParams["clientId"] = [clientId]; + } _url = 'v4/encodedUpdates/' + commons.Escaper.ecapeVariable('$encodedRequest');
diff --git a/generated/googleapis/lib/servicecontrol/v1.dart b/generated/googleapis/lib/servicecontrol/v1.dart index 709d46b..15fb800 100644 --- a/generated/googleapis/lib/servicecontrol/v1.dart +++ b/generated/googleapis/lib/servicecontrol/v1.dart
@@ -741,7 +741,7 @@ /** * The resource being accessed, as a REST-style string. For example: * - * bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID + * bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID */ core.String resource; @@ -872,6 +872,8 @@ } class CheckInfo { + /** Consumer info of this check. */ + ConsumerInfo consumerInfo; /** * A list of fields and label keys that are ignored by the server. * The client doesn't need to send them for following requests to improve @@ -882,6 +884,9 @@ CheckInfo(); CheckInfo.fromJson(core.Map _json) { + if (_json.containsKey("consumerInfo")) { + consumerInfo = new ConsumerInfo.fromJson(_json["consumerInfo"]); + } if (_json.containsKey("unusedArguments")) { unusedArguments = _json["unusedArguments"]; } @@ -889,6 +894,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (consumerInfo != null) { + _json["consumerInfo"] = (consumerInfo).toJson(); + } if (unusedArguments != null) { _json["unusedArguments"] = unusedArguments; } @@ -1018,6 +1026,31 @@ } } +/** `ConsumerInfo` provides information about the consumer project. */ +class ConsumerInfo { + /** + * The Google cloud project number, e.g. 1234567890. A value of 0 indicates + * no project number is found. + */ + core.String projectNumber; + + ConsumerInfo(); + + ConsumerInfo.fromJson(core.Map _json) { + if (_json.containsKey("projectNumber")) { + projectNumber = _json["projectNumber"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (projectNumber != null) { + _json["projectNumber"] = projectNumber; + } + return _json; + } +} + /** * Distribution represents a frequency distribution of double-valued sample * points. It contains the size of the population of sample points plus @@ -1869,6 +1902,14 @@ * - "UNSPECIFIED" : This is never used. * - "RESOURCE_EXHAUSTED" : Quota allocation failed. * Same as google.rpc.Code.RESOURCE_EXHAUSTED. + * - "OUT_OF_RANGE" : Quota release failed. This error is ONLY returned on a + * NORMAL release. + * More formally: if a user requests a release of 10 tokens, but only + * 5 tokens were previously allocated, in a BEST_EFFORT release, this will + * be considered a success, 5 tokens will be released, and the result will + * be "Ok". If this is done in NORMAL mode, no tokens will be released, + * and an OUT_OF_RANGE error will be returned. + * Same as google.rpc.Code.OUT_OF_RANGE. * - "BILLING_NOT_ACTIVE" : Consumer cannot access the service because the * service requires active * billing. @@ -2448,7 +2489,16 @@ /** Metadata about the request. */ class RequestMetadata { - /** The IP address of the caller. */ + /** + * The IP address of the caller. + * For caller from internet, this will be public IPv4 or IPv6 address. + * For caller from GCE VM with external IP address, this will be the VM's + * external IP address. For caller from GCE VM without external IP address, if + * the VM is in the same GCP organization (or project) as the accessed + * resource, `caller_ip` will be the GCE VM's internal IPv4 address, otherwise + * it will be redacted to "gce-internal-ip". + * See https://cloud.google.com/compute/docs/vpc/ for more information. + */ core.String callerIp; /** * The user agent of the caller. @@ -2462,7 +2512,6 @@ * + `AppEngine-Google; (+http://code.google.com/appengine; appid: * s~my-project`: * The request was made from the `my-project` App Engine app. - * * NOLINT */ core.String callerSuppliedUserAgent; @@ -2642,8 +2691,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a - * common set of message types for APIs to use. + * A list of messages that carry the error details. There 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.
diff --git a/generated/googleapis/lib/servicemanagement/v1.dart b/generated/googleapis/lib/servicemanagement/v1.dart index db2603c..d5ac500 100644 --- a/generated/googleapis/lib/servicemanagement/v1.dart +++ b/generated/googleapis/lib/servicemanagement/v1.dart
@@ -96,14 +96,6 @@ * * Request parameters: * - * [pageToken] - The standard list page token. - * - * [name] - Not used. - * - * [pageSize] - The maximum number of operations to return. If unspecified, - * defaults to - * 50. The maximum value is 100. - * * [filter] - A string for filtering Operations. * The following filter fields are supported: * @@ -126,6 +118,14 @@ * * `serviceName={some-service}.googleapis.com AND (status=done OR * startTime>="2017-02-01")` * + * [pageToken] - The standard list page token. + * + * [name] - Not used. + * + * [pageSize] - The maximum number of operations to return. If unspecified, + * defaults to + * 50. The maximum value is 100. + * * Completes with a [ListOperationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -134,7 +134,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<ListOperationsResponse> list({core.String pageToken, core.String name, core.int pageSize, core.String filter}) { + async.Future<ListOperationsResponse> list({core.String filter, core.String pageToken, core.String name, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -142,6 +142,9 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -151,9 +154,6 @@ if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (filter != null) { - _queryParams["filter"] = [filter]; - } _url = 'v1/operations'; @@ -469,6 +469,8 @@ * [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. @@ -476,8 +478,6 @@ * - "BASIC" : A BASIC. * - "FULL" : A FULL. * - * [configId] - The id of the service configuration resource. - * * Completes with a [Service]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -486,7 +486,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 view, core.String configId}) { + async.Future<Service> getConfig(core.String serviceName, {core.String configId, core.String view}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -497,12 +497,12 @@ if (serviceName == null) { throw new core.ArgumentError("Parameter serviceName is required."); } - if (view != null) { - _queryParams["view"] = [view]; - } if (configId != null) { _queryParams["configId"] = [configId]; } + if (view != null) { + _queryParams["view"] = [view]; + } _url = 'v1/services/' + commons.Escaper.ecapeVariable('$serviceName') + '/config'; @@ -1279,10 +1279,6 @@ * [overview](/service-management/overview) * for naming requirements. For example: `example.googleapis.com`. * - * [pageToken] - The token of the page to retrieve. - * - * [pageSize] - The max number of items to include in the response list. - * * [filter] - Use `filter` to return subset of rollouts. * The following filters are supported: * -- To limit the results to only those in @@ -1292,6 +1288,10 @@ * [status](google.api.servicemanagement.v1.RolloutStatus) 'CANCELLED' * or 'FAILED', use filter='status=CANCELLED OR status=FAILED' * + * [pageToken] - The token of the page to retrieve. + * + * [pageSize] - The max number of items to include in the response list. + * * Completes with a [ListServiceRolloutsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1300,7 +1300,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<ListServiceRolloutsResponse> list(core.String serviceName, {core.String pageToken, core.int pageSize, core.String filter}) { + async.Future<ListServiceRolloutsResponse> list(core.String serviceName, {core.String filter, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1311,15 +1311,15 @@ if (serviceName == null) { throw new core.ArgumentError("Parameter serviceName 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]; - } _url = 'v1/services/' + commons.Escaper.ecapeVariable('$serviceName') + '/rollouts'; @@ -2119,6 +2119,8 @@ /** Write a Cloud Audit log */ class CloudAuditOptions { + /** True if the log is for a permission of type DATA_READ or ADMIN_READ. */ + core.bool isReadPermissionType; /** * The log_name to populate in the Cloud Audit Record. * Possible string values are: @@ -2131,6 +2133,9 @@ CloudAuditOptions(); CloudAuditOptions.fromJson(core.Map _json) { + if (_json.containsKey("isReadPermissionType")) { + isReadPermissionType = _json["isReadPermissionType"]; + } if (_json.containsKey("logName")) { logName = _json["logName"]; } @@ -2138,6 +2143,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (isReadPermissionType != null) { + _json["isReadPermissionType"] = isReadPermissionType; + } if (logName != null) { _json["logName"] = logName; } @@ -6774,8 +6782,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a - * common set of message types for APIs to use. + * A list of messages that carry the error details. There 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.
diff --git a/generated/googleapis/lib/serviceuser/v1.dart b/generated/googleapis/lib/serviceuser/v1.dart index b5d00dc..24a1071 100644 --- a/generated/googleapis/lib/serviceuser/v1.dart +++ b/generated/googleapis/lib/serviceuser/v1.dart
@@ -4187,8 +4187,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a - * common set of message types for APIs to use. + * A list of messages that carry the error details. There 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.
diff --git a/generated/googleapis/lib/sheets/v4.dart b/generated/googleapis/lib/sheets/v4.dart index 01acbb6..aba9b49 100644 --- a/generated/googleapis/lib/sheets/v4.dart +++ b/generated/googleapis/lib/sheets/v4.dart
@@ -317,20 +317,6 @@ * [range] - The A1 notation of a range to search for a logical table of data. * Values will be appended after the last row of the table. * - * [responseDateTimeRenderOption] - Determines how dates, times, and durations - * in the response should be - * rendered. This is ignored if response_value_render_option is - * FORMATTED_VALUE. - * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. - * Possible string values are: - * - "SERIAL_NUMBER" : A SERIAL_NUMBER. - * - "FORMATTED_STRING" : A FORMATTED_STRING. - * - * [includeValuesInResponse] - Determines if the update response should - * include the values - * of the cells that were appended. By default, responses - * do not include the updated values. - * * [responseValueRenderOption] - Determines how values in the response should * be rendered. * The default render option is ValueRenderOption.FORMATTED_VALUE. @@ -350,6 +336,20 @@ * - "RAW" : A RAW. * - "USER_ENTERED" : A USER_ENTERED. * + * [responseDateTimeRenderOption] - Determines how dates, times, and durations + * in the response should be + * rendered. This is ignored if response_value_render_option is + * FORMATTED_VALUE. + * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. + * Possible string values are: + * - "SERIAL_NUMBER" : A SERIAL_NUMBER. + * - "FORMATTED_STRING" : A FORMATTED_STRING. + * + * [includeValuesInResponse] - Determines if the update response should + * include the values + * of the cells that were appended. By default, responses + * do not include the updated values. + * * Completes with a [AppendValuesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -358,7 +358,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<AppendValuesResponse> append(ValueRange request, core.String spreadsheetId, core.String range, {core.String responseDateTimeRenderOption, core.bool includeValuesInResponse, core.String responseValueRenderOption, core.String insertDataOption, core.String valueInputOption}) { + async.Future<AppendValuesResponse> append(ValueRange request, core.String spreadsheetId, core.String range, {core.String responseValueRenderOption, core.String insertDataOption, core.String valueInputOption, core.String responseDateTimeRenderOption, core.bool includeValuesInResponse}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -375,12 +375,6 @@ if (range == null) { throw new core.ArgumentError("Parameter range is required."); } - if (responseDateTimeRenderOption != null) { - _queryParams["responseDateTimeRenderOption"] = [responseDateTimeRenderOption]; - } - if (includeValuesInResponse != null) { - _queryParams["includeValuesInResponse"] = ["${includeValuesInResponse}"]; - } if (responseValueRenderOption != null) { _queryParams["responseValueRenderOption"] = [responseValueRenderOption]; } @@ -390,6 +384,12 @@ if (valueInputOption != null) { _queryParams["valueInputOption"] = [valueInputOption]; } + if (responseDateTimeRenderOption != null) { + _queryParams["responseDateTimeRenderOption"] = [responseDateTimeRenderOption]; + } + if (includeValuesInResponse != null) { + _queryParams["includeValuesInResponse"] = ["${includeValuesInResponse}"]; + } _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId') + '/values/' + commons.Escaper.ecapeVariable('$range') + ':append'; @@ -641,18 +641,6 @@ * * [range] - 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. - * * [dateTimeRenderOption] - How dates, times, and durations should be * represented in the output. * This is ignored if value_render_option is @@ -669,6 +657,18 @@ * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. * - "FORMULA" : A FORMULA. * + * [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. + * * Completes with a [ValueRange]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -677,7 +677,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<ValueRange> get(core.String spreadsheetId, core.String range, {core.String majorDimension, core.String dateTimeRenderOption, core.String valueRenderOption}) { + async.Future<ValueRange> get(core.String spreadsheetId, core.String range, {core.String dateTimeRenderOption, core.String valueRenderOption, core.String majorDimension}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -691,15 +691,15 @@ if (range == null) { throw new core.ArgumentError("Parameter range is required."); } - if (majorDimension != null) { - _queryParams["majorDimension"] = [majorDimension]; - } if (dateTimeRenderOption != null) { _queryParams["dateTimeRenderOption"] = [dateTimeRenderOption]; } if (valueRenderOption != null) { _queryParams["valueRenderOption"] = [valueRenderOption]; } + if (majorDimension != null) { + _queryParams["majorDimension"] = [majorDimension]; + } _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId') + '/values/' + commons.Escaper.ecapeVariable('$range'); @@ -726,14 +726,6 @@ * * [range] - The A1 notation of the values to update. * - * [includeValuesInResponse] - Determines if the update response should - * include the values - * of the cells that were updated. By default, responses - * do not include the updated values. - * If the range to write was larger than than the range actually written, - * the response will include all values in the requested range (excluding - * trailing empty rows and columns). - * * [responseValueRenderOption] - Determines how values in the response should * be rendered. * The default render option is ValueRenderOption.FORMATTED_VALUE. @@ -757,6 +749,14 @@ * - "SERIAL_NUMBER" : A SERIAL_NUMBER. * - "FORMATTED_STRING" : A FORMATTED_STRING. * + * [includeValuesInResponse] - Determines if the update response should + * include the values + * of the cells that were updated. By default, responses + * do not include the updated values. + * If the range to write was larger than than the range actually written, + * the response will include all values in the requested range (excluding + * trailing empty rows and columns). + * * Completes with a [UpdateValuesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -765,7 +765,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<UpdateValuesResponse> update(ValueRange request, core.String spreadsheetId, core.String range, {core.bool includeValuesInResponse, core.String responseValueRenderOption, core.String valueInputOption, core.String responseDateTimeRenderOption}) { + async.Future<UpdateValuesResponse> update(ValueRange request, core.String spreadsheetId, core.String range, {core.String responseValueRenderOption, core.String valueInputOption, core.String responseDateTimeRenderOption, core.bool includeValuesInResponse}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -782,9 +782,6 @@ if (range == null) { throw new core.ArgumentError("Parameter range is required."); } - if (includeValuesInResponse != null) { - _queryParams["includeValuesInResponse"] = ["${includeValuesInResponse}"]; - } if (responseValueRenderOption != null) { _queryParams["responseValueRenderOption"] = [responseValueRenderOption]; } @@ -794,6 +791,9 @@ if (responseDateTimeRenderOption != null) { _queryParams["responseDateTimeRenderOption"] = [responseDateTimeRenderOption]; } + if (includeValuesInResponse != null) { + _queryParams["includeValuesInResponse"] = ["${includeValuesInResponse}"]; + } _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId') + '/values/' + commons.Escaper.ecapeVariable('$range'); @@ -1549,11 +1549,7 @@ * this is the data representing the dates. */ ChartData domain; - /** - * True to reverse the order of the domain values (horizontal axis). - * Not applicable to Gauge, Geo, Histogram, Org, Pie, Radar, and Treemap - * charts. - */ + /** True to reverse the order of the domain values (horizontal axis). */ core.bool reversed; BasicChartDomain(); @@ -2790,6 +2786,8 @@ class CandlestickDomain { /** The data of the CandlestickDomain. */ ChartData data; + /** True to reverse the order of the domain values (horizontal axis). */ + core.bool reversed; CandlestickDomain(); @@ -2797,6 +2795,9 @@ if (_json.containsKey("data")) { data = new ChartData.fromJson(_json["data"]); } + if (_json.containsKey("reversed")) { + reversed = _json["reversed"]; + } } core.Map<core.String, core.Object> toJson() { @@ -2804,6 +2805,9 @@ if (data != null) { _json["data"] = (data).toJson(); } + if (reversed != null) { + _json["reversed"] = reversed; + } return _json; } } @@ -3215,6 +3219,11 @@ /** The specifications of a chart. */ class ChartSpec { /** + * The alternative text that describes the chart. This is often used + * for accessibility. + */ + core.String altText; + /** * The background color of the entire chart. * Not applicable to Org charts. */ @@ -3270,6 +3279,9 @@ ChartSpec(); ChartSpec.fromJson(core.Map _json) { + if (_json.containsKey("altText")) { + altText = _json["altText"]; + } if (_json.containsKey("backgroundColor")) { backgroundColor = new Color.fromJson(_json["backgroundColor"]); } @@ -3310,6 +3322,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (altText != null) { + _json["altText"] = altText; + } if (backgroundColor != null) { _json["backgroundColor"] = (backgroundColor).toJson(); }
diff --git a/generated/googleapis/lib/slides/v1.dart b/generated/googleapis/lib/slides/v1.dart index e8238a9..e4bd9e3 100644 --- a/generated/googleapis/lib/slides/v1.dart +++ b/generated/googleapis/lib/slides/v1.dart
@@ -2926,6 +2926,31 @@ } /** + * The properties of Page that are only + * relevant for pages with page_type MASTER. + */ +class MasterProperties { + /** The human-readable name of the master. */ + core.String displayName; + + MasterProperties(); + + MasterProperties.fromJson(core.Map _json) { + if (_json.containsKey("displayName")) { + displayName = _json["displayName"]; + } + } + + 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; + } + return _json; + } +} + +/** * Contains properties describing the look and feel of a list bullet at a given * level of nesting. */ @@ -3184,6 +3209,8 @@ class Page { /** Layout specific properties. Only set if page_type = LAYOUT. */ LayoutProperties layoutProperties; + /** Master specific properties. Only set if page_type = MASTER. */ + MasterProperties masterProperties; /** Notes specific properties. Only set if page_type = NOTES. */ NotesProperties notesProperties; /** @@ -3230,6 +3257,9 @@ if (_json.containsKey("layoutProperties")) { layoutProperties = new LayoutProperties.fromJson(_json["layoutProperties"]); } + if (_json.containsKey("masterProperties")) { + masterProperties = new MasterProperties.fromJson(_json["masterProperties"]); + } if (_json.containsKey("notesProperties")) { notesProperties = new NotesProperties.fromJson(_json["notesProperties"]); } @@ -3258,6 +3288,9 @@ if (layoutProperties != null) { _json["layoutProperties"] = (layoutProperties).toJson(); } + if (masterProperties != null) { + _json["masterProperties"] = (masterProperties).toJson(); + } if (notesProperties != null) { _json["notesProperties"] = (notesProperties).toJson(); }
diff --git a/generated/googleapis/lib/speech/v1.dart b/generated/googleapis/lib/speech/v1.dart index e99fcf4..11ecaac 100644 --- a/generated/googleapis/lib/speech/v1.dart +++ b/generated/googleapis/lib/speech/v1.dart
@@ -581,6 +581,12 @@ */ class RecognitionConfig { /** + * *Optional* If `true`, a list of `words` are returned in the top result, + * containing the start and end timestamps for those words. The default value, + * 'false' does not return any word-level timing information. + */ + core.bool enableWordTimeOffsets; + /** * *Required* Encoding of audio data sent in all `RecognitionAudio` messages. * Possible string values are: * - "ENCODING_UNSPECIFIED" : Not specified. Will return result @@ -659,6 +665,9 @@ RecognitionConfig(); RecognitionConfig.fromJson(core.Map _json) { + if (_json.containsKey("enableWordTimeOffsets")) { + enableWordTimeOffsets = _json["enableWordTimeOffsets"]; + } if (_json.containsKey("encoding")) { encoding = _json["encoding"]; } @@ -681,6 +690,9 @@ core.Map<core.String, core.Object> toJson() { final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (enableWordTimeOffsets != null) { + _json["enableWordTimeOffsets"] = enableWordTimeOffsets; + } if (encoding != null) { _json["encoding"] = encoding; } @@ -812,6 +824,10 @@ * *Output-only* Transcript text representing the words that the user spoke. */ core.String transcript; + /** + * *Output-only* List of word-specific information for each recognized word. + */ + core.List<WordInfo> words; SpeechRecognitionAlternative(); @@ -822,6 +838,9 @@ if (_json.containsKey("transcript")) { transcript = _json["transcript"]; } + if (_json.containsKey("words")) { + words = _json["words"].map((value) => new WordInfo.fromJson(value)).toList(); + } } core.Map<core.String, core.Object> toJson() { @@ -832,6 +851,9 @@ if (transcript != null) { _json["transcript"] = transcript; } + if (words != null) { + _json["words"] = words.map((value) => (value).toJson()).toList(); + } return _json; } } @@ -923,8 +945,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a - * common set of message types for APIs to use. + * A list of messages that carry the error details. There 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. @@ -965,3 +987,58 @@ return _json; } } + +/** + * Word-specific information detected along with speech recognition when certain + * request parameters are set. + */ +class WordInfo { + /** + * *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. + * This is an experimental feature and the accuracy of the time offset can + * vary. + */ + core.String endTime; + /** + * *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. + * This is an experimental feature and the accuracy of the time offset can + * vary. + */ + core.String startTime; + /** *Output-only* The word corresponding to this set of information. */ + core.String word; + + WordInfo(); + + WordInfo.fromJson(core.Map _json) { + if (_json.containsKey("endTime")) { + endTime = _json["endTime"]; + } + if (_json.containsKey("startTime")) { + startTime = _json["startTime"]; + } + if (_json.containsKey("word")) { + word = _json["word"]; + } + } + + 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 (startTime != null) { + _json["startTime"] = startTime; + } + if (word != null) { + _json["word"] = word; + } + return _json; + } +}
diff --git a/generated/googleapis/lib/storagetransfer/v1.dart b/generated/googleapis/lib/storagetransfer/v1.dart index 722f6dd..82e3151 100644 --- a/generated/googleapis/lib/storagetransfer/v1.dart +++ b/generated/googleapis/lib/storagetransfer/v1.dart
@@ -190,6 +190,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 of @@ -202,8 +204,6 @@ * and `job_statuses` are optional. The valid values for `job_statuses` are * case-insensitive: `ENABLED`, `DISABLED`, and `DELETED`. * - * [pageToken] - The list page token. - * * Completes with a [ListTransferJobsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -212,7 +212,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<ListTransferJobsResponse> list({core.int pageSize, core.String filter, core.String pageToken}) { + async.Future<ListTransferJobsResponse> list({core.String pageToken, core.int pageSize, core.String filter}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -220,15 +220,15 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } if (filter != null) { _queryParams["filter"] = [filter]; } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } _url = 'v1/transferJobs'; @@ -1466,8 +1466,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a - * common set of message types for APIs to use. + * A list of messages that carry the error details. There 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.
diff --git a/generated/googleapis/lib/streetviewpublish/v1.dart b/generated/googleapis/lib/streetviewpublish/v1.dart new file mode 100644 index 0000000..ea6b58e --- /dev/null +++ b/generated/googleapis/lib/streetviewpublish/v1.dart
@@ -0,0 +1,1409 @@ +// This is a generated file (see the discoveryapis_generator project). + +library googleapis.streetviewpublish.v1; + +import 'dart:core' as core; +import 'dart:async' as async; +import 'dart:convert' as convert; + +import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; +import 'package:http/http.dart' as http; + +export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show + ApiRequestError, DetailedApiRequestError; + +const core.String USER_AGENT = 'dart-api-client streetviewpublish/v1'; + +/** + * Publishes 360 photos to Google Maps, along with position, orientation, and + * connectivity metadata. Apps can offer an interface for positioning, + * connecting, and uploading user-generated Street View images. + */ +class StreetviewpublishApi { + /** Publish and manage your 360 photos on Google Street View */ + static const StreetviewpublishScope = "https://www.googleapis.com/auth/streetviewpublish"; + + + final commons.ApiRequester _requester; + + PhotoResourceApi get photo => new PhotoResourceApi(_requester); + PhotosResourceApi get photos => new PhotosResourceApi(_requester); + + StreetviewpublishApi(http.Client client, {core.String rootUrl: "https://streetviewpublish.googleapis.com/", core.String servicePath: ""}) : + _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); +} + + +class PhotoResourceApi { + final commons.ApiRequester _requester; + + PhotoResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * After the client finishes uploading the photo with the returned + * UploadRef, + * CreatePhoto + * publishes the uploaded Photo to + * Street View on Google Maps. + * + * This method returns the following error codes: + * + * * google.rpc.Code.INVALID_ARGUMENT if the request is malformed. + * * google.rpc.Code.NOT_FOUND if the upload reference does not exist. + * * google.rpc.Code.RESOURCE_EXHAUSTED if the account has reached the + * storage limit. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * Completes with a [Photo]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Photo> create(Photo request) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + + _url = 'v1/photo'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Photo.fromJson(data)); + } + + /** + * Deletes a Photo and its metadata. + * + * This method returns the following error codes: + * + * * google.rpc.Code.PERMISSION_DENIED if the requesting user did not + * create the requested photo. + * * google.rpc.Code.NOT_FOUND if the photo ID does not exist. + * + * Request parameters: + * + * [photoId] - Required. ID of the Photo. + * + * 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 photoId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (photoId == null) { + throw new core.ArgumentError("Parameter photoId is required."); + } + + _url = 'v1/photo/' + commons.Escaper.ecapeVariable('$photoId'); + + 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 metadata of the specified + * Photo. + * + * This method returns the following error codes: + * + * * google.rpc.Code.PERMISSION_DENIED if the requesting user did not + * create the requested Photo. + * * google.rpc.Code.NOT_FOUND if the requested + * Photo does not exist. + * + * Request parameters: + * + * [photoId] - Required. ID of the Photo. + * + * [view] - Specifies if a download URL for the photo bytes should be returned + * in the + * Photo response. + * Possible string values are: + * - "BASIC" : A BASIC. + * - "INCLUDE_DOWNLOAD_URL" : A INCLUDE_DOWNLOAD_URL. + * + * Completes with a [Photo]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Photo> get(core.String photoId, {core.String view}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (photoId == null) { + throw new core.ArgumentError("Parameter photoId is required."); + } + if (view != null) { + _queryParams["view"] = [view]; + } + + _url = 'v1/photo/' + commons.Escaper.ecapeVariable('$photoId'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Photo.fromJson(data)); + } + + /** + * Creates an upload session to start uploading photo bytes. The upload URL of + * the returned UploadRef is used to + * upload the bytes for the Photo. + * + * In addition to the photo requirements shown in + * https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604, + * the photo must also meet the following requirements: + * + * * Photo Sphere XMP metadata must be included in the photo medadata. See + * https://developers.google.com/streetview/spherical-metadata for the + * required fields. + * * The pixel size of the photo must meet the size requirements listed in + * https://support.google.com/maps/answer/7012050?hl=en&ref_topic=6275604, and + * the photo must be a full 360 horizontally. + * + * After the upload is complete, the + * UploadRef is used with + * CreatePhoto + * to create the Photo object entry. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * Completes with a [UploadRef]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<UploadRef> startUpload(Empty request) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + + _url = 'v1/photo:startUpload'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new UploadRef.fromJson(data)); + } + + /** + * Updates the metadata of a Photo, such + * as pose, place association, connections, etc. Changing the pixels of a + * photo is not supported. + * + * This method returns the following error codes: + * + * * google.rpc.Code.PERMISSION_DENIED if the requesting user did not + * create the requested photo. + * * google.rpc.Code.INVALID_ARGUMENT if the request is malformed. + * * google.rpc.Code.NOT_FOUND if the requested photo does not exist. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [id] - Required. A base64 encoded identifier. + * + * [updateMask] - Mask that identifies fields on the photo metadata to update. + * If not present, the old Photo metadata will be entirely replaced with the + * new Photo metadata in this request. The update fails if invalid fields are + * specified. Multiple fields can be specified in a comma-delimited list. + * + * The following fields are valid: + * + * * `pose.heading` + * * `pose.latlngpair` + * * `pose.pitch` + * * `pose.roll` + * * `pose.level` + * * `pose.altitude` + * * `connections` + * * `places` + * + * + * <aside class="note"><b>Note:</b> Repeated fields in + * updateMask + * mean the entire set of repeated values will be replaced with the new + * contents. For example, if + * updateMask + * contains `connections` and + * google.streetview.publish.v1.UpdatePhotoRequest.photo.connections is + * empty, all connections will be removed.</aside> + * + * Completes with a [Photo]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Photo> update(Photo request, core.String id, {core.String updateMask}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (id == null) { + throw new core.ArgumentError("Parameter id is required."); + } + if (updateMask != null) { + _queryParams["updateMask"] = [updateMask]; + } + + _url = 'v1/photo/' + commons.Escaper.ecapeVariable('$id'); + + var _response = _requester.request(_url, + "PUT", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Photo.fromJson(data)); + } + +} + + +class PhotosResourceApi { + final commons.ApiRequester _requester; + + PhotosResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Deletes a list of Photos and their metadata. + * + * Note that if + * BatchDeletePhotos + * fails, either critical fields are missing or there was an authentication + * error. Even if + * BatchDeletePhotos + * succeeds, there may have been failures for single photos in the batch. + * These failures will be specified in each + * PhotoResponse.status + * in + * BatchDeletePhotosResponse.results. + * See + * DeletePhoto + * for specific failures that can occur per photo. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * Completes with a [BatchDeletePhotosResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<BatchDeletePhotosResponse> batchDelete(BatchDeletePhotosRequest request) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + + _url = 'v1/photos:batchDelete'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new BatchDeletePhotosResponse.fromJson(data)); + } + + /** + * Gets the metadata of the specified + * Photo batch. + * + * Note that if + * BatchGetPhotos + * fails, either critical fields are missing or there was an authentication + * error. Even if + * BatchGetPhotos + * succeeds, there may have been failures for single photos in the batch. + * These failures will be specified in each + * PhotoResponse.status + * in + * BatchGetPhotosResponse.results. + * See + * GetPhoto + * for specific failures that can occur per photo. + * + * Request parameters: + * + * [view] - Specifies if a download URL for the photo bytes should be returned + * in the + * Photo response. + * Possible string values are: + * - "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>&...`. + * + * Completes with a [BatchGetPhotosResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * 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.String view, core.List<core.String> photoIds}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (view != null) { + _queryParams["view"] = [view]; + } + if (photoIds != null) { + _queryParams["photoIds"] = photoIds; + } + + _url = 'v1/photos:batchGet'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new BatchGetPhotosResponse.fromJson(data)); + } + + /** + * Updates the metadata of Photos, such + * as pose, place association, connections, etc. Changing the pixels of photos + * is not supported. + * + * Note that if + * BatchUpdatePhotos + * fails, either critical fields are missing or there was an authentication + * error. Even if + * BatchUpdatePhotos + * succeeds, there may have been failures for single photos in the batch. + * These failures will be specified in each + * PhotoResponse.status + * in + * BatchUpdatePhotosResponse.results. + * See + * UpdatePhoto + * for specific failures that can occur per photo. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * Completes with a [BatchUpdatePhotosResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<BatchUpdatePhotosResponse> batchUpdate(BatchUpdatePhotosRequest request) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + + _url = 'v1/photos:batchUpdate'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new BatchUpdatePhotosResponse.fromJson(data)); + } + + /** + * Lists all the Photos that belong to the user. + * + * Request parameters: + * + * [pageToken] - The + * nextPageToken + * value returned from a previous + * ListPhotos + * request, if any. + * + * [pageSize] - The maximum number of photos to return. + * `pageSize` must be non-negative. If `pageSize` is zero or is not provided, + * the default page size of 100 will be used. + * The number of photos returned in the response may be less than `pageSize` + * if the number of photos that belong to the user is less than `pageSize`. + * + * [view] - Specifies if a download URL for the photos bytes should be + * returned in the + * Photos response. + * Possible string values are: + * - "BASIC" : A BASIC. + * - "INCLUDE_DOWNLOAD_URL" : A INCLUDE_DOWNLOAD_URL. + * + * [filter] - The filter expression. For example: + * `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`. + * + * Completes with a [ListPhotosResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * 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.int pageSize, core.String view, core.String filter}) { + var _url = null; + var _queryParams = new core.Map(); + 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 (view != null) { + _queryParams["view"] = [view]; + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } + + _url = 'v1/photos'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListPhotosResponse.fromJson(data)); + } + +} + + + +/** Request to delete multiple Photos. */ +class BatchDeletePhotosRequest { + /** + * Required. IDs of the Photos. For HTTP + * GET requests, the URL query parameter should be + * `photoIds=<id1>&photoIds=<id2>&...`. + */ + core.List<core.String> photoIds; + + BatchDeletePhotosRequest(); + + BatchDeletePhotosRequest.fromJson(core.Map _json) { + if (_json.containsKey("photoIds")) { + photoIds = _json["photoIds"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (photoIds != null) { + _json["photoIds"] = photoIds; + } + return _json; + } +} + +/** + * Response to batch delete of one or more + * Photos. + */ +class BatchDeletePhotosResponse { + /** + * The status for the operation to delete a single + * Photo in the batch request. + */ + core.List<Status> status; + + BatchDeletePhotosResponse(); + + BatchDeletePhotosResponse.fromJson(core.Map _json) { + if (_json.containsKey("status")) { + status = _json["status"].map((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 (status != null) { + _json["status"] = status.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** Response to batch get of Photos. */ +class BatchGetPhotosResponse { + /** + * List of results for each individual + * Photo requested, in the same order as + * the requests in + * BatchGetPhotos. + */ + core.List<PhotoResponse> results; + + BatchGetPhotosResponse(); + + BatchGetPhotosResponse.fromJson(core.Map _json) { + if (_json.containsKey("results")) { + results = _json["results"].map((value) => new PhotoResponse.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 (results != null) { + _json["results"] = results.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** + * Request to update the metadata of photos. + * Updating the pixels of photos is not supported. + */ +class BatchUpdatePhotosRequest { + /** + * Required. List of + * UpdatePhotoRequests. + */ + core.List<UpdatePhotoRequest> updatePhotoRequests; + + BatchUpdatePhotosRequest(); + + BatchUpdatePhotosRequest.fromJson(core.Map _json) { + if (_json.containsKey("updatePhotoRequests")) { + updatePhotoRequests = _json["updatePhotoRequests"].map((value) => new UpdatePhotoRequest.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 (updatePhotoRequests != null) { + _json["updatePhotoRequests"] = updatePhotoRequests.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** + * Response to batch update of metadata of one or more + * Photos. + */ +class BatchUpdatePhotosResponse { + /** + * List of results for each individual + * Photo updated, in the same order as + * the request. + */ + core.List<PhotoResponse> results; + + BatchUpdatePhotosResponse(); + + BatchUpdatePhotosResponse.fromJson(core.Map _json) { + if (_json.containsKey("results")) { + results = _json["results"].map((value) => new PhotoResponse.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 (results != null) { + _json["results"] = results.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** A connection is the link from a source photo to a destination photo. */ +class Connection { + /** + * Required. The destination of the connection from the containing photo to + * another photo. + */ + PhotoId target; + + Connection(); + + Connection.fromJson(core.Map _json) { + if (_json.containsKey("target")) { + target = new PhotoId.fromJson(_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 (target != null) { + _json["target"] = (target).toJson(); + } + 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; + } +} + +/** + * An object representing a latitude/longitude pair. This is expressed as a pair + * of doubles representing degrees latitude and degrees longitude. Unless + * specified otherwise, this must conform to the + * <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84 + * standard</a>. Values must be within normalized ranges. + * + * Example of normalization code in Python: + * + * def NormalizeLongitude(longitude): + * """Wraps decimal degrees longitude to [-180.0, 180.0].""" + * q, r = divmod(longitude, 360.0) + * if r > 180.0 or (r == 180.0 and q <= -1.0): + * return r - 360.0 + * return r + * + * def NormalizeLatLng(latitude, longitude): + * """Wraps decimal degrees latitude and longitude to + * [-90.0, 90.0] and [-180.0, 180.0], respectively.""" + * r = latitude % 360.0 + * if r <= 90.0: + * return r, NormalizeLongitude(longitude) + * elif r >= 270.0: + * return r - 360, NormalizeLongitude(longitude) + * else: + * return 180 - r, NormalizeLongitude(longitude + 180.0) + * + * assert 180.0 == NormalizeLongitude(180.0) + * assert -180.0 == NormalizeLongitude(-180.0) + * assert -179.0 == NormalizeLongitude(181.0) + * assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) + * assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) + * assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) + * assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) + * assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) + * assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) + * assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) + * assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) + * assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) + * assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) + */ +class LatLng { + /** The latitude in degrees. It must be in the range [-90.0, +90.0]. */ + core.double latitude; + /** The longitude in degrees. It must be in the range [-180.0, +180.0]. */ + core.double longitude; + + LatLng(); + + LatLng.fromJson(core.Map _json) { + if (_json.containsKey("latitude")) { + latitude = _json["latitude"]; + } + if (_json.containsKey("longitude")) { + longitude = _json["longitude"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (latitude != null) { + _json["latitude"] = latitude; + } + if (longitude != null) { + _json["longitude"] = longitude; + } + return _json; + } +} + +/** Level information containing level number and its corresponding name. */ +class Level { + /** + * Required. A name assigned to this Level, restricted to 3 characters. + * Consider how the elevator buttons would be labeled for this level if there + * was an elevator. + */ + core.String name; + /** + * Floor number, used for ordering. 0 indicates the ground level, 1 indicates + * the first level above ground level, -1 indicates the first level under + * ground level. Non-integer values are OK. + */ + core.double number; + + Level(); + + Level.fromJson(core.Map _json) { + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("number")) { + number = _json["number"]; + } + } + + 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; + } + return _json; + } +} + +/** Response to list all photos that belong to a user. */ +class ListPhotosResponse { + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + */ + core.String nextPageToken; + /** + * List of photos. The maximum number of items returned is based on the + * pageSize field + * in the request. + */ + core.List<Photo> photos; + + ListPhotosResponse(); + + ListPhotosResponse.fromJson(core.Map _json) { + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("photos")) { + photos = _json["photos"].map((value) => new Photo.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 (photos != null) { + _json["photos"] = photos.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** Photo is used to store 360 photos along with photo metadata. */ +class Photo { + /** + * Absolute time when the photo was captured. + * When the photo has no exif timestamp, this is used to set a timestamp in + * the photo metadata. + */ + core.String captureTime; + /** + * Connections to other photos. A connection represents the link from this + * photo to another photo. + */ + core.List<Connection> connections; + /** + * Output only. The download URL for the photo bytes. This field is set only + * when + * GetPhotoRequest.view + * is set to + * PhotoView.INCLUDE_DOWNLOAD_URL. + */ + core.String downloadUrl; + /** + * Required when updating photo. Output only when creating photo. + * Identifier for the photo, which is unique among all photos in + * Google. + */ + PhotoId photoId; + /** Places where this photo belongs. */ + core.List<Place> places; + /** Pose of the photo. */ + Pose pose; + /** Output only. The share link for the photo. */ + core.String shareLink; + /** + * Output only. The thumbnail URL for showing a preview of the given photo. + */ + core.String thumbnailUrl; + /** + * Required when creating photo. Input only. The resource URL where the photo + * bytes are uploaded to. + */ + UploadRef uploadReference; + /** Output only. View count of the photo. */ + core.String viewCount; + + Photo(); + + Photo.fromJson(core.Map _json) { + if (_json.containsKey("captureTime")) { + captureTime = _json["captureTime"]; + } + if (_json.containsKey("connections")) { + connections = _json["connections"].map((value) => new Connection.fromJson(value)).toList(); + } + if (_json.containsKey("downloadUrl")) { + downloadUrl = _json["downloadUrl"]; + } + if (_json.containsKey("photoId")) { + photoId = new PhotoId.fromJson(_json["photoId"]); + } + if (_json.containsKey("places")) { + places = _json["places"].map((value) => new Place.fromJson(value)).toList(); + } + if (_json.containsKey("pose")) { + pose = new Pose.fromJson(_json["pose"]); + } + if (_json.containsKey("shareLink")) { + shareLink = _json["shareLink"]; + } + if (_json.containsKey("thumbnailUrl")) { + thumbnailUrl = _json["thumbnailUrl"]; + } + if (_json.containsKey("uploadReference")) { + uploadReference = new UploadRef.fromJson(_json["uploadReference"]); + } + if (_json.containsKey("viewCount")) { + viewCount = _json["viewCount"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (captureTime != null) { + _json["captureTime"] = captureTime; + } + if (connections != null) { + _json["connections"] = connections.map((value) => (value).toJson()).toList(); + } + if (downloadUrl != null) { + _json["downloadUrl"] = downloadUrl; + } + if (photoId != null) { + _json["photoId"] = (photoId).toJson(); + } + if (places != null) { + _json["places"] = places.map((value) => (value).toJson()).toList(); + } + if (pose != null) { + _json["pose"] = (pose).toJson(); + } + if (shareLink != null) { + _json["shareLink"] = shareLink; + } + if (thumbnailUrl != null) { + _json["thumbnailUrl"] = thumbnailUrl; + } + if (uploadReference != null) { + _json["uploadReference"] = (uploadReference).toJson(); + } + if (viewCount != null) { + _json["viewCount"] = viewCount; + } + return _json; + } +} + +/** Identifier for a Photo. */ +class PhotoId { + /** Required. A base64 encoded identifier. */ + core.String id; + + PhotoId(); + + PhotoId.fromJson(core.Map _json) { + if (_json.containsKey("id")) { + id = _json["id"]; + } + } + + 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; + } + return _json; + } +} + +/** + * Response payload for a single + * Photo + * in batch operations including + * BatchGetPhotos + * and + * BatchUpdatePhotos. + */ +class PhotoResponse { + /** + * The Photo resource, if the request + * was successful. + */ + Photo photo; + /** + * The status for the operation to get or update a single photo in the batch + * request. + */ + Status status; + + PhotoResponse(); + + PhotoResponse.fromJson(core.Map _json) { + if (_json.containsKey("photo")) { + photo = new Photo.fromJson(_json["photo"]); + } + if (_json.containsKey("status")) { + status = new Status.fromJson(_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 (photo != null) { + _json["photo"] = (photo).toJson(); + } + if (status != null) { + _json["status"] = (status).toJson(); + } + return _json; + } +} + +/** Place metadata for an entity. */ +class Place { + /** + * Required. Place identifier, as described in + * https://developers.google.com/places/place-id. + */ + core.String placeId; + + Place(); + + Place.fromJson(core.Map _json) { + if (_json.containsKey("placeId")) { + placeId = _json["placeId"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (placeId != null) { + _json["placeId"] = placeId; + } + return _json; + } +} + +/** Raw pose measurement for an entity. */ +class Pose { + /** + * Altitude of the pose in meters above ground level (as defined by WGS84). + * NaN indicates an unmeasured quantity. + */ + core.double altitude; + /** + * Compass heading, measured at the center of the photo in degrees clockwise + * from North. Value must be >=0 and <360. + * NaN indicates an unmeasured quantity. + */ + core.double heading; + /** + * Latitude and longitude pair of the pose, as explained here: + * https://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng + * When creating a Photo, if the + * latitude and longitude pair are not provided here, the geolocation from the + * exif header will be used. If the latitude and longitude pair is not + * provided and cannot be found in the exif header, the create photo process + * will fail. + */ + LatLng latLngPair; + /** Level (the floor in a building) used to configure vertical navigation. */ + Level level; + /** + * Pitch, measured at the center of the photo in degrees. Value must be >=-90 + * and <= 90. A value of -90 means looking directly down, and a value of 90 + * means looking directly up. + * NaN indicates an unmeasured quantity. + */ + core.double pitch; + /** + * Roll, measured in degrees. Value must be >= 0 and <360. A value of 0 + * means level with the horizon. + * NaN indicates an unmeasured quantity. + */ + core.double roll; + + Pose(); + + Pose.fromJson(core.Map _json) { + if (_json.containsKey("altitude")) { + altitude = _json["altitude"]; + } + if (_json.containsKey("heading")) { + heading = _json["heading"]; + } + if (_json.containsKey("latLngPair")) { + latLngPair = new LatLng.fromJson(_json["latLngPair"]); + } + if (_json.containsKey("level")) { + level = new Level.fromJson(_json["level"]); + } + if (_json.containsKey("pitch")) { + pitch = _json["pitch"]; + } + if (_json.containsKey("roll")) { + roll = _json["roll"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (altitude != null) { + _json["altitude"] = altitude; + } + if (heading != null) { + _json["heading"] = heading; + } + if (latLngPair != null) { + _json["latLngPair"] = (latLngPair).toJson(); + } + if (level != null) { + _json["level"] = (level).toJson(); + } + if (pitch != null) { + _json["pitch"] = pitch; + } + if (roll != null) { + _json["roll"] = roll; + } + 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"]; + } + 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 to update the metadata of a + * Photo. Updating the pixels of a photo + * is not supported. + */ +class UpdatePhotoRequest { + /** + * Required. Photo object containing the + * new metadata. Only the fields specified in + * updateMask + * field are used. If `updateMask` is not present, the update applies to all + * fields. <aside class="note"><b>Note:</b> To update + * Pose.altitude, + * Pose.latLngPair has to be + * filled as well. Otherwise, the request will fail. + */ + Photo photo; + /** + * Mask that identifies fields on the photo metadata to update. + * If not present, the old Photo metadata will be entirely replaced with the + * new Photo metadata in this request. The update fails if invalid fields are + * specified. Multiple fields can be specified in a comma-delimited list. + * + * The following fields are valid: + * + * * `pose.heading` + * * `pose.latlngpair` + * * `pose.pitch` + * * `pose.roll` + * * `pose.level` + * * `pose.altitude` + * * `connections` + * * `places` + * + * + * <aside class="note"><b>Note:</b> Repeated fields in + * updateMask + * mean the entire set of repeated values will be replaced with the new + * contents. For example, if + * updateMask + * contains `connections` and + * google.streetview.publish.v1.UpdatePhotoRequest.photo.connections is + * empty, all connections will be removed.</aside> + */ + core.String updateMask; + + UpdatePhotoRequest(); + + UpdatePhotoRequest.fromJson(core.Map _json) { + if (_json.containsKey("photo")) { + photo = new Photo.fromJson(_json["photo"]); + } + 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 (photo != null) { + _json["photo"] = (photo).toJson(); + } + if (updateMask != null) { + _json["updateMask"] = updateMask; + } + return _json; + } +} + +/** Upload reference for media files. */ +class UploadRef { + /** + * Required. An upload reference should be unique for each user. It follows + * the form: + * "https://streetviewpublish.googleapis.com/media/user/{account_id}/photo/{upload_reference}" + */ + core.String uploadUrl; + + UploadRef(); + + UploadRef.fromJson(core.Map _json) { + if (_json.containsKey("uploadUrl")) { + uploadUrl = _json["uploadUrl"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (uploadUrl != null) { + _json["uploadUrl"] = uploadUrl; + } + return _json; + } +}
diff --git a/generated/googleapis/lib/tracing/v2.dart b/generated/googleapis/lib/tracing/v2.dart deleted file mode 100644 index 2639486..0000000 --- a/generated/googleapis/lib/tracing/v2.dart +++ /dev/null
@@ -1,1301 +0,0 @@ -// This is a generated file (see the discoveryapis_generator project). - -library googleapis.tracing.v2; - -import 'dart:core' as core; -import 'dart:async' as async; -import 'dart:convert' as convert; - -import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; -import 'package:http/http.dart' as http; - -export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show - ApiRequestError, DetailedApiRequestError; - -const core.String USER_AGENT = 'dart-api-client tracing/v2'; - -/** Send and retrieve trace data from Google Stackdriver Trace. */ -class TracingApi { - /** View and manage your data across Google Cloud Platform services */ - static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; - - /** Write Trace data for a project or application */ - static const TraceAppendScope = "https://www.googleapis.com/auth/trace.append"; - - /** Read Trace data for a project or application */ - static const TraceReadonlyScope = "https://www.googleapis.com/auth/trace.readonly"; - - - final commons.ApiRequester _requester; - - ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); - - TracingApi(http.Client client, {core.String rootUrl: "https://tracing.googleapis.com/", core.String servicePath: ""}) : - _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); -} - - -class ProjectsResourceApi { - final commons.ApiRequester _requester; - - ProjectsTracesResourceApi get traces => new ProjectsTracesResourceApi(_requester); - - ProjectsResourceApi(commons.ApiRequester client) : - _requester = client; -} - - -class ProjectsTracesResourceApi { - final commons.ApiRequester _requester; - - ProjectsTracesSpansResourceApi get spans => new ProjectsTracesSpansResourceApi(_requester); - - ProjectsTracesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Sends new spans to Stackdriver Trace or updates existing traces. If the - * name of a trace that you send matches that of an existing trace, new spans - * are added to the existing trace. Attempt to update existing spans results - * undefined behavior. If the name does not match, a new trace is created - * with given set of spans. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [name] - Name of the project where the spans belong to. Format is - * `projects/PROJECT_ID`. - * Value must have pattern "^projects/[^/]+$". - * - * 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> batchWrite(BatchWriteSpansRequest request, core.String name) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (name == null) { - throw new core.ArgumentError("Parameter name is required."); - } - - _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$name') + '/traces:batchWrite'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Empty.fromJson(data)); - } - - /** - * Returns of a list of traces that match the specified filter conditions. - * - * Request parameters: - * - * [parent] - ID of the Cloud project where the trace data is stored which is - * `projects/PROJECT_ID`. - * Value must have pattern "^projects/[^/]+$". - * - * [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 for the request. - * Example: - * `version_label_key:a some_label:some_label_key` - * returns traces from version `a` and has `some_label` with `some_label_key`. - * - * [endTime] - End of the time interval (inclusive) during which the trace - * data was - * collected from the application. - * - * [pageToken] - Token identifying the page of results to return. If provided, - * use the - * value of the `next_page_token` field from a previous request. Optional. - * - * [startTime] - Start of the time interval (inclusive) during which the trace - * data was - * collected from the application. - * - * [pageSize] - Maximum number of traces to return. If not specified or <= 0, - * the - * implementation selects a reasonable value. The implementation may - * return fewer traces than the requested page size. Optional. - * - * Completes with a [ListTracesResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * 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 parent, {core.String orderBy, core.String filter, core.String endTime, core.String pageToken, core.String startTime, core.int pageSize}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (parent == null) { - throw new core.ArgumentError("Parameter parent is required."); - } - if (orderBy != null) { - _queryParams["orderBy"] = [orderBy]; - } - if (filter != null) { - _queryParams["filter"] = [filter]; - } - if (endTime != null) { - _queryParams["endTime"] = [endTime]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (startTime != null) { - _queryParams["startTime"] = [startTime]; - } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - - _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/traces'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ListTracesResponse.fromJson(data)); - } - - /** - * Returns a list of spans within a trace. - * - * Request parameters: - * - * [parent] - ID of the trace for which to list child spans. Format is - * `projects/PROJECT_ID/traces/TRACE_ID`. - * Value must have pattern "^projects/[^/]+/traces/[^/]+$". - * - * [pageToken] - Token identifying the page of results to return. If provided, - * use the - * value of the `nextPageToken` field from a previous request. Optional. - * - * Completes with a [ListSpansResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ListSpansResponse> listSpans(core.String parent, {core.String pageToken}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (parent == null) { - throw new core.ArgumentError("Parameter parent is required."); - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - - _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + ':listSpans'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ListSpansResponse.fromJson(data)); - } - -} - - -class ProjectsTracesSpansResourceApi { - final commons.ApiRequester _requester; - - ProjectsTracesSpansResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Creates a new Span. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [name] - The resource name of Span in the format - * `projects/PROJECT_ID/traces/TRACE_ID/spans/SPAN_ID`. - * `TRACE_ID` is a unique identifier for a trace within a project and is a - * base16-encoded, case-insensitive string and is required to be 32 char long. - * `SPAN_ID` is a unique identifier for a span within a trace. It is a - * base 16-encoded, case-insensitive string of a 8-bytes array and is required - * to be 16 char long. - * Value must have pattern "^projects/[^/]+/traces/[^/]+/spans/[^/]+$". - * - * Completes with a [Span]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Span> create(Span request, core.String name) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (name == null) { - throw new core.ArgumentError("Parameter name is required."); - } - - _url = 'v2/' + 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 Span.fromJson(data)); - } - -} - - - -/** - * Text annotation with a set of attributes. A maximum of 32 annotations are - * allowed per Span. - */ -class Annotation { - /** - * A set of attributes on the annotation. A maximum of 4 attributes are - * allowed per Annotation. - */ - Attributes attributes; - /** - * A user-supplied message describing the event. The maximum length for - * the description is 256 bytes. - */ - TruncatableString description; - - Annotation(); - - Annotation.fromJson(core.Map _json) { - if (_json.containsKey("attributes")) { - attributes = new Attributes.fromJson(_json["attributes"]); - } - if (_json.containsKey("description")) { - description = new TruncatableString.fromJson(_json["description"]); - } - } - - 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 (description != null) { - _json["description"] = (description).toJson(); - } - return _json; - } -} - -/** The allowed types for the value side of an attribute key:value pair. */ -class AttributeValue { - /** A boolean value. */ - core.bool boolValue; - /** An integer value. */ - core.String intValue; - /** A string value (up to 256 bytes). */ - TruncatableString stringValue; - - AttributeValue(); - - AttributeValue.fromJson(core.Map _json) { - if (_json.containsKey("boolValue")) { - boolValue = _json["boolValue"]; - } - if (_json.containsKey("intValue")) { - intValue = _json["intValue"]; - } - if (_json.containsKey("stringValue")) { - stringValue = new TruncatableString.fromJson(_json["stringValue"]); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (boolValue != null) { - _json["boolValue"] = boolValue; - } - if (intValue != null) { - _json["intValue"] = intValue; - } - if (stringValue != null) { - _json["stringValue"] = (stringValue).toJson(); - } - return _json; - } -} - -/** Attributes of a span with a key:value format. */ -class Attributes { - /** - * The maximum key length is 128 bytes (attributes are dropped if the - * key size is larger than the maximum allowed). The value can be a string - * (up to 256 bytes), integer, or boolean (true/false). Some common pair - * examples: - * - * "/instance_id": "my-instance" - * "/zone": "us-central1-a" - * "/grpc/peer_address": "ip:port" (dns, etc.) - * "/grpc/deadline": "Duration" - * "/http/user_agent" - * "/http/request_bytes": 300 - * "/http/response_bytes": 1200 - * "/http/url": google.com/apis - * "abc.com/myattribute": true - */ - core.Map<core.String, AttributeValue> attributeMap; - /** - * The number of dropped attributes after the maximum size was enforced. If - * 0 then no attributes were dropped. - */ - core.int droppedAttributesCount; - - Attributes(); - - Attributes.fromJson(core.Map _json) { - if (_json.containsKey("attributeMap")) { - attributeMap = commons.mapMap<core.Map<core.String, core.Object>, AttributeValue>(_json["attributeMap"], (core.Map<core.String, core.Object> item) => new AttributeValue.fromJson(item)); - } - if (_json.containsKey("droppedAttributesCount")) { - droppedAttributesCount = _json["droppedAttributesCount"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (attributeMap != null) { - _json["attributeMap"] = commons.mapMap<AttributeValue, core.Map<core.String, core.Object>>(attributeMap, (AttributeValue item) => (item).toJson()); - } - if (droppedAttributesCount != null) { - _json["droppedAttributesCount"] = droppedAttributesCount; - } - return _json; - } -} - -/** The request message for the `BatchWriteSpans` method. */ -class BatchWriteSpansRequest { - /** A collection of spans. */ - core.List<Span> spans; - - BatchWriteSpansRequest(); - - BatchWriteSpansRequest.fromJson(core.Map _json) { - if (_json.containsKey("spans")) { - spans = _json["spans"].map((value) => new Span.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 (spans != null) { - _json["spans"] = spans.map((value) => (value).toJson()).toList(); - } - 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; - } -} - -/** - * A pointer from this span to another span in a different `Trace` within - * the same service project or within a different service project. Used - * (for example) in batching operations, where a single batch handler - * processes multiple requests from different traces or when receives a - * request from a different service project. - */ -class Link { - /** - * `SPAN_ID` is a unique identifier for a span within a trace. It is a - * base16-encoded, case-insensitive string of a 8-bytes array and is - * required to be 16 char long. - */ - core.String spanId; - /** - * `TRACE_ID` is a unique identifier for a trace within a project. It is - * a base16-encoded, case-insensitive string of a 16-bytes array and is - * required to be 32 char long. - */ - core.String traceId; - /** - * The relationship of the current span relative to the linked span. - * Possible string values are: - * - "TYPE_UNSPECIFIED" : The relationship of the two spans is unknown. - * - "CHILD" : The current span is a child of the linked span. - * - "PARENT" : The current span is the parent of the linked span. - */ - core.String type; - - Link(); - - Link.fromJson(core.Map _json) { - if (_json.containsKey("spanId")) { - spanId = _json["spanId"]; - } - if (_json.containsKey("traceId")) { - traceId = _json["traceId"]; - } - 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 (spanId != null) { - _json["spanId"] = spanId; - } - if (traceId != null) { - _json["traceId"] = traceId; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** - * A collection of links, which are references from this span to a span - * in the same or different trace. - */ -class Links { - /** - * The number of dropped links after the maximum size was enforced. If - * 0 then no links were dropped. - */ - core.int droppedLinksCount; - /** A collection of links. */ - core.List<Link> link; - - Links(); - - Links.fromJson(core.Map _json) { - if (_json.containsKey("droppedLinksCount")) { - droppedLinksCount = _json["droppedLinksCount"]; - } - if (_json.containsKey("link")) { - link = _json["link"].map((value) => new Link.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 (droppedLinksCount != null) { - _json["droppedLinksCount"] = droppedLinksCount; - } - if (link != null) { - _json["link"] = link.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** The response message for the `ListSpans` method. */ -class ListSpansResponse { - /** - * If defined, indicates that there are more spans that match the request. - * Pass this as the value of `pageToken` in a subsequent request to retrieve - * additional spans. - */ - core.String nextPageToken; - /** The requested spans if there are any in the specified trace. */ - core.List<Span> spans; - - ListSpansResponse(); - - ListSpansResponse.fromJson(core.Map _json) { - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("spans")) { - spans = _json["spans"].map((value) => new Span.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 (spans != null) { - _json["spans"] = spans.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** The response message for the `ListTraces` method. */ -class ListTracesResponse { - /** - * If defined, indicates that there are more traces that match the request - * and that this value should be passed to the next request to continue - * retrieving additional traces. - */ - core.String nextPageToken; - /** List of trace records returned. */ - core.List<Trace> traces; - - ListTracesResponse(); - - ListTracesResponse.fromJson(core.Map _json) { - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("traces")) { - traces = _json["traces"].map((value) => new Trace.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 (traces != null) { - _json["traces"] = traces.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Binary module. */ -class Module { - /** - * Build_id is a unique identifier for the module, usually a hash of its - * contents (up to 128 characters). - */ - TruncatableString buildId; - /** - * E.g. main binary, kernel modules, and dynamic libraries - * such as libc.so, sharedlib.so (up to 256 characters). - */ - TruncatableString module; - - Module(); - - Module.fromJson(core.Map _json) { - if (_json.containsKey("buildId")) { - buildId = new TruncatableString.fromJson(_json["buildId"]); - } - if (_json.containsKey("module")) { - module = new TruncatableString.fromJson(_json["module"]); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (buildId != null) { - _json["buildId"] = (buildId).toJson(); - } - if (module != null) { - _json["module"] = (module).toJson(); - } - return _json; - } -} - -/** - * An event describing an RPC message sent/received on the network. A - * maximum of 128 network events are allowed per Span. - */ -class NetworkEvent { - /** An identifier for the message, which must be unique in this span. */ - core.String messageId; - /** The number of bytes sent or received. */ - core.String messageSize; - /** - * If available, this is the kernel time: - * - * * For sent messages, this is the time at which the first bit was sent. - * * For received messages, this is the time at which the last bit was - * received. - */ - core.String time; - /** - * Type of NetworkEvent. Indicates whether the RPC message was sent or - * received. - * Possible string values are: - * - "TYPE_UNSPECIFIED" : Unknown event type. - * - "SENT" : Indicates a sent RPC message. - * - "RECV" : Indicates a received RPC message. - */ - core.String type; - - NetworkEvent(); - - NetworkEvent.fromJson(core.Map _json) { - if (_json.containsKey("messageId")) { - messageId = _json["messageId"]; - } - if (_json.containsKey("messageSize")) { - messageSize = _json["messageSize"]; - } - if (_json.containsKey("time")) { - time = _json["time"]; - } - 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 (messageId != null) { - _json["messageId"] = messageId; - } - if (messageSize != null) { - _json["messageSize"] = messageSize; - } - if (time != null) { - _json["time"] = time; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** - * A span represents a single operation within a trace. Spans can be nested - * to form a trace tree. Often, a trace contains a root span that - * describes the end-to-end latency and, optionally, one or more subspans for - * its sub-operations. (A trace could alternatively contain multiple root spans, - * or none at all.) Spans do not need to be contiguous. There may be gaps - * and/or overlaps between spans in a trace. - */ -class Span { - /** - * A set of attributes on the span. A maximum of 32 attributes are allowed per - * Span. - */ - Attributes attributes; - /** - * Description of the operation in the span. It is sanitized and displayed in - * the Stackdriver Trace tool in the - * {% dynamic print site_values.console_name %}. - * The display_name may be a method name or some other per-call site - * name. For the same executable and the same call point, a best practice is - * to use a consistent operation name, which makes it easier to correlate - * cross-trace spans. - * The maximum length for the display_name is 128 bytes. - */ - TruncatableString displayName; - /** - * End time of the span. - * On the client side, this is the local machine clock time at which the span - * execution was ended; on the server - * side, this is the time at which the server application handler stopped - * running. - */ - core.String endTime; - /** A maximum of 128 links are allowed per Span. */ - Links links; - /** - * The resource name of Span in the format - * `projects/PROJECT_ID/traces/TRACE_ID/spans/SPAN_ID`. - * `TRACE_ID` is a unique identifier for a trace within a project and is a - * base16-encoded, case-insensitive string and is required to be 32 char long. - * `SPAN_ID` is a unique identifier for a span within a trace. It is a - * base 16-encoded, case-insensitive string of a 8-bytes array and is required - * to be 16 char long. - */ - core.String name; - /** - * ID of parent span which is a base 16-encoded, case-insensitive string of - * a 8-bytes array and is required to be 16 char long. If this is a root span, - * the value must be empty. - */ - core.String parentSpanId; - /** - * Unique identifier for a span within a trace. It is a base 16-encoded, - * case-insensitive string of a 8-bytes array and is required. - */ - core.String spanId; - /** Stack trace captured at the start of the span. */ - StackTrace stackTrace; - /** - * Start time of the span. - * On the client side, this is the local machine clock time at which the span - * execution was started; on the server - * side, this is the time at which the server application handler started - * running. - */ - core.String startTime; - /** An optional final status for this span. */ - Status status; - /** - * A maximum of 32 annotations and 128 network events are allowed per Span. - */ - TimeEvents timeEvents; - - Span(); - - Span.fromJson(core.Map _json) { - if (_json.containsKey("attributes")) { - attributes = new Attributes.fromJson(_json["attributes"]); - } - if (_json.containsKey("displayName")) { - displayName = new TruncatableString.fromJson(_json["displayName"]); - } - if (_json.containsKey("endTime")) { - endTime = _json["endTime"]; - } - if (_json.containsKey("links")) { - links = new Links.fromJson(_json["links"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("parentSpanId")) { - parentSpanId = _json["parentSpanId"]; - } - if (_json.containsKey("spanId")) { - spanId = _json["spanId"]; - } - if (_json.containsKey("stackTrace")) { - stackTrace = new StackTrace.fromJson(_json["stackTrace"]); - } - if (_json.containsKey("startTime")) { - startTime = _json["startTime"]; - } - if (_json.containsKey("status")) { - status = new Status.fromJson(_json["status"]); - } - if (_json.containsKey("timeEvents")) { - timeEvents = new TimeEvents.fromJson(_json["timeEvents"]); - } - } - - 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 (displayName != null) { - _json["displayName"] = (displayName).toJson(); - } - if (endTime != null) { - _json["endTime"] = endTime; - } - if (links != null) { - _json["links"] = (links).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (parentSpanId != null) { - _json["parentSpanId"] = parentSpanId; - } - if (spanId != null) { - _json["spanId"] = spanId; - } - if (stackTrace != null) { - _json["stackTrace"] = (stackTrace).toJson(); - } - if (startTime != null) { - _json["startTime"] = startTime; - } - if (status != null) { - _json["status"] = (status).toJson(); - } - if (timeEvents != null) { - _json["timeEvents"] = (timeEvents).toJson(); - } - return _json; - } -} - -/** Represents a single stack frame in a stack trace. */ -class StackFrame { - /** - * Column number is important in JavaScript (anonymous functions). - * May not be available in some languages. - */ - core.String columnNumber; - /** The filename of the file containing this frame (up to 256 characters). */ - TruncatableString fileName; - /** - * The fully-qualified name that uniquely identifies this function or - * method (up to 1024 characters). - */ - TruncatableString functionName; - /** Line number of the frame. */ - core.String lineNumber; - /** Binary module the code is loaded from. */ - Module loadModule; - /** - * Used when the function name is - * [mangled](http://www.avabodh.com/cxxin/namemangling.html). May be - * fully-qualified (up to 1024 characters). - */ - TruncatableString originalFunctionName; - /** The version of the deployed source code (up to 128 characters). */ - TruncatableString sourceVersion; - - StackFrame(); - - StackFrame.fromJson(core.Map _json) { - if (_json.containsKey("columnNumber")) { - columnNumber = _json["columnNumber"]; - } - if (_json.containsKey("fileName")) { - fileName = new TruncatableString.fromJson(_json["fileName"]); - } - if (_json.containsKey("functionName")) { - functionName = new TruncatableString.fromJson(_json["functionName"]); - } - if (_json.containsKey("lineNumber")) { - lineNumber = _json["lineNumber"]; - } - if (_json.containsKey("loadModule")) { - loadModule = new Module.fromJson(_json["loadModule"]); - } - if (_json.containsKey("originalFunctionName")) { - originalFunctionName = new TruncatableString.fromJson(_json["originalFunctionName"]); - } - if (_json.containsKey("sourceVersion")) { - sourceVersion = new TruncatableString.fromJson(_json["sourceVersion"]); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (columnNumber != null) { - _json["columnNumber"] = columnNumber; - } - if (fileName != null) { - _json["fileName"] = (fileName).toJson(); - } - if (functionName != null) { - _json["functionName"] = (functionName).toJson(); - } - if (lineNumber != null) { - _json["lineNumber"] = lineNumber; - } - if (loadModule != null) { - _json["loadModule"] = (loadModule).toJson(); - } - if (originalFunctionName != null) { - _json["originalFunctionName"] = (originalFunctionName).toJson(); - } - if (sourceVersion != null) { - _json["sourceVersion"] = (sourceVersion).toJson(); - } - return _json; - } -} - -/** Represents collection of StackFrames that can be truncated. */ -class StackFrames { - /** - * The number of dropped stack frames after the maximum size was enforced. - * If 0 then no frames were dropped. - */ - core.int droppedFramesCount; - /** Stack frames in this stack trace. */ - core.List<StackFrame> frame; - - StackFrames(); - - StackFrames.fromJson(core.Map _json) { - if (_json.containsKey("droppedFramesCount")) { - droppedFramesCount = _json["droppedFramesCount"]; - } - if (_json.containsKey("frame")) { - frame = _json["frame"].map((value) => new StackFrame.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 (droppedFramesCount != null) { - _json["droppedFramesCount"] = droppedFramesCount; - } - if (frame != null) { - _json["frame"] = frame.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** StackTrace collected in a trace. */ -class StackTrace { - /** Stack frames in this stack trace. A maximum of 128 frames are allowed. */ - StackFrames stackFrames; - /** - * The hash ID is used to conserve network bandwidth for duplicate - * stack traces within a single trace. - * - * Often multiple spans will have identical stack traces. - * The first occurrence of a stack trace should contain both the - * `stackFrame` content and a value in `stackTraceHashId`. - * - * Subsequent spans within the same request can refer - * to that stack trace by only setting `stackTraceHashId`. - */ - core.String stackTraceHashId; - - StackTrace(); - - StackTrace.fromJson(core.Map _json) { - if (_json.containsKey("stackFrames")) { - stackFrames = new StackFrames.fromJson(_json["stackFrames"]); - } - if (_json.containsKey("stackTraceHashId")) { - stackTraceHashId = _json["stackTraceHashId"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (stackFrames != null) { - _json["stackFrames"] = (stackFrames).toJson(); - } - if (stackTraceHashId != null) { - _json["stackTraceHashId"] = stackTraceHashId; - } - 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 will be a - * common set of message types for APIs to use. - * - * The values for Object must be JSON objects. It can consist of `num`, - * `String`, `bool` and `null` as well as `Map` and `List` values. - */ - core.List<core.Map<core.String, core.Object>> details; - /** - * A developer-facing error message, which should be in English. Any - * user-facing error message should be localized and sent in the - * google.rpc.Status.details field, or localized by the client. - */ - core.String message; - - Status(); - - Status.fromJson(core.Map _json) { - if (_json.containsKey("code")) { - code = _json["code"]; - } - if (_json.containsKey("details")) { - details = _json["details"]; - } - if (_json.containsKey("message")) { - message = _json["message"]; - } - } - - core.Map<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; - } -} - -/** A time-stamped annotation in the Span. */ -class TimeEvent { - /** One or more key:value pairs. */ - Annotation annotation; - /** An event describing an RPC message sent/received on the network. */ - NetworkEvent networkEvent; - /** The timestamp indicating the time the event occurred. */ - core.String time; - - TimeEvent(); - - TimeEvent.fromJson(core.Map _json) { - if (_json.containsKey("annotation")) { - annotation = new Annotation.fromJson(_json["annotation"]); - } - if (_json.containsKey("networkEvent")) { - networkEvent = new NetworkEvent.fromJson(_json["networkEvent"]); - } - if (_json.containsKey("time")) { - time = _json["time"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (annotation != null) { - _json["annotation"] = (annotation).toJson(); - } - if (networkEvent != null) { - _json["networkEvent"] = (networkEvent).toJson(); - } - if (time != null) { - _json["time"] = time; - } - return _json; - } -} - -/** - * A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation - * on the span, consisting of either user-supplied key:value pairs, or - * details of an RPC message sent/received on the network. - */ -class TimeEvents { - /** - * The number of dropped annotations after the maximum size was enforced. If - * 0 then no annotations were dropped. - */ - core.int droppedAnnotationsCount; - /** - * The number of dropped network events after the maximum size was enforced. - * If 0 then no annotations were dropped. - */ - core.int droppedNetworkEventsCount; - /** A collection of `TimeEvent`s. */ - core.List<TimeEvent> timeEvent; - - TimeEvents(); - - TimeEvents.fromJson(core.Map _json) { - if (_json.containsKey("droppedAnnotationsCount")) { - droppedAnnotationsCount = _json["droppedAnnotationsCount"]; - } - if (_json.containsKey("droppedNetworkEventsCount")) { - droppedNetworkEventsCount = _json["droppedNetworkEventsCount"]; - } - if (_json.containsKey("timeEvent")) { - timeEvent = _json["timeEvent"].map((value) => new TimeEvent.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 (droppedAnnotationsCount != null) { - _json["droppedAnnotationsCount"] = droppedAnnotationsCount; - } - if (droppedNetworkEventsCount != null) { - _json["droppedNetworkEventsCount"] = droppedNetworkEventsCount; - } - if (timeEvent != null) { - _json["timeEvent"] = timeEvent.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** - * A trace describes how long it takes for an application to perform some - * operations. It consists of a set of spans, each representing - * an operation and including time information and operation details. - */ -class Trace { - /** - * The resource name of Trace in the format - * `projects/PROJECT_ID/traces/TRACE_ID`. `TRACE_ID` is a unique identifier - * for a trace within a project and is a base16-encoded, case-insensitive - * string and is required to be 32 char long. - */ - core.String name; - - Trace(); - - Trace.fromJson(core.Map _json) { - 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 (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Represents a string value that might be truncated. */ -class TruncatableString { - /** - * The number of characters truncated from the original string value. If 0 it - * means that the string value was not truncated. - */ - core.int truncatedCharacterCount; - /** - * The truncated string value. E.g. for a string attribute this may have up to - * 256 bytes. - */ - core.String value; - - TruncatableString(); - - TruncatableString.fromJson(core.Map _json) { - if (_json.containsKey("truncatedCharacterCount")) { - truncatedCharacterCount = _json["truncatedCharacterCount"]; - } - 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 (truncatedCharacterCount != null) { - _json["truncatedCharacterCount"] = truncatedCharacterCount; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -}
diff --git a/generated/googleapis/lib/translate/v2.dart b/generated/googleapis/lib/translate/v2.dart index e5cd8a5..35663b5 100644 --- a/generated/googleapis/lib/translate/v2.dart +++ b/generated/googleapis/lib/translate/v2.dart
@@ -138,12 +138,12 @@ * * Request parameters: * - * [model] - The model type for which supported languages should be returned. - * * [target] - The language to use to return localized, human readable names of * supported * languages. * + * [model] - The model type for which supported languages should be returned. + * * Completes with a [LanguagesListResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -152,7 +152,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<LanguagesListResponse> list({core.String model, core.String target}) { + async.Future<LanguagesListResponse> list({core.String target, core.String model}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -160,12 +160,12 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (model != null) { - _queryParams["model"] = [model]; - } if (target != null) { _queryParams["target"] = [target]; } + if (model != null) { + _queryParams["model"] = [model]; + } _url = 'v2/languages'; @@ -201,9 +201,6 @@ * one of the * language codes listed in Language Support. * - * [model] - The `model` type requested for this translation. Valid values 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 @@ -219,6 +216,9 @@ * - "html" : Specifies the input is in HTML * - "text" : Specifies the input is in plain textual format * + * [model] - The `model` type requested for this translation. Valid values are + * listed in public documentation. + * * Completes with a [TranslationsListResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -227,7 +227,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<TranslationsListResponse> list(core.List<core.String> q, core.String target, {core.String model, core.String source, core.List<core.String> cid, core.String format}) { + async.Future<TranslationsListResponse> list(core.List<core.String> q, core.String target, {core.String source, core.List<core.String> cid, core.String format, core.String model}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -243,9 +243,6 @@ throw new core.ArgumentError("Parameter target is required."); } _queryParams["target"] = [target]; - if (model != null) { - _queryParams["model"] = [model]; - } if (source != null) { _queryParams["source"] = [source]; } @@ -255,6 +252,9 @@ if (format != null) { _queryParams["format"] = [format]; } + if (model != null) { + _queryParams["model"] = [model]; + } _url = 'v2';
diff --git a/generated/googleapis/lib/vault/v1.dart b/generated/googleapis/lib/vault/v1.dart new file mode 100644 index 0000000..c3afa4d --- /dev/null +++ b/generated/googleapis/lib/vault/v1.dart
@@ -0,0 +1,1574 @@ +// This is a generated file (see the discoveryapis_generator project). + +library googleapis.vault.v1; + +import 'dart:core' as core; +import 'dart:async' as async; +import 'dart:convert' as convert; + +import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; +import 'package:http/http.dart' as http; + +export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show + ApiRequestError, DetailedApiRequestError; + +const core.String USER_AGENT = 'dart-api-client vault/v1'; + +class VaultApi { + + final commons.ApiRequester _requester; + + MattersResourceApi get matters => new MattersResourceApi(_requester); + + VaultApi(http.Client client, {core.String rootUrl: "https://vault.googleapis.com/", core.String servicePath: ""}) : + _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); +} + + +class MattersResourceApi { + final commons.ApiRequester _requester; + + MattersHoldsResourceApi get holds => new MattersHoldsResourceApi(_requester); + + MattersResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Adds an account as a matter collaborator. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [matterId] - The matter ID. + * + * Completes with a [MatterPermission]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<MatterPermission> addPermissions(AddMatterPermissionsRequest request, core.String matterId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (matterId == null) { + throw new core.ArgumentError("Parameter matterId is required."); + } + + _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + ':addPermissions'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new MatterPermission.fromJson(data)); + } + + /** + * Closes the specified matter. Returns matter with updated state. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [matterId] - The matter ID. + * + * Completes with a [CloseMatterResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<CloseMatterResponse> close(CloseMatterRequest request, core.String matterId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (matterId == null) { + throw new core.ArgumentError("Parameter matterId is required."); + } + + _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + ':close'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new CloseMatterResponse.fromJson(data)); + } + + /** + * Creates a new matter. Returns created matter with default view. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * Completes with a [Matter]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Matter> create(Matter request) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + + _url = 'v1/matters'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Matter.fromJson(data)); + } + + /** + * Deletes the specified matter. Returns matter with updated state. + * + * Request parameters: + * + * [matterId] - The matter ID + * + * Completes with a [Matter]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Matter> delete(core.String matterId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (matterId == null) { + throw new core.ArgumentError("Parameter matterId is required."); + } + + _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId'); + + var _response = _requester.request(_url, + "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Matter.fromJson(data)); + } + + /** + * Gets the specified matter. + * + * Request parameters: + * + * [matterId] - The matter ID. + * + * [view] - Specifies which parts of the Matter to return in the response. + * Possible string values are: + * - "VIEW_UNSPECIFIED" : A VIEW_UNSPECIFIED. + * - "BASIC" : A BASIC. + * - "FULL" : A FULL. + * + * Completes with a [Matter]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Matter> get(core.String matterId, {core.String view}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (matterId == null) { + throw new core.ArgumentError("Parameter matterId is required."); + } + if (view != null) { + _queryParams["view"] = [view]; + } + + _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Matter.fromJson(data)); + } + + /** + * Lists matters the user has access to. + * + * Request parameters: + * + * [pageToken] - The pagination token as returned in the response. + * + * [pageSize] - The number of matters to return in the response. + * Default and maximum are 100. + * + * [view] - Specifies which parts of the matter to return in response. + * Possible string values are: + * - "VIEW_UNSPECIFIED" : A VIEW_UNSPECIFIED. + * - "BASIC" : A BASIC. + * - "FULL" : A FULL. + * + * Completes with a [ListMattersResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * 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 pageToken, core.int pageSize, core.String view}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (view != null) { + _queryParams["view"] = [view]; + } + + _url = 'v1/matters'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListMattersResponse.fromJson(data)); + } + + /** + * Removes an account as a matter collaborator. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [matterId] - The matter ID. + * + * 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> removePermissions(RemoveMatterPermissionsRequest request, core.String matterId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (matterId == null) { + throw new core.ArgumentError("Parameter matterId is required."); + } + + _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + ':removePermissions'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Empty.fromJson(data)); + } + + /** + * Reopens the specified matter. Returns matter with updated state. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [matterId] - The matter ID. + * + * Completes with a [ReopenMatterResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ReopenMatterResponse> reopen(ReopenMatterRequest request, core.String matterId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (matterId == null) { + throw new core.ArgumentError("Parameter matterId is required."); + } + + _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + ':reopen'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ReopenMatterResponse.fromJson(data)); + } + + /** + * Undeletes the specified matter. Returns matter with updated state. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [matterId] - The matter ID. + * + * Completes with a [Matter]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Matter> undelete(UndeleteMatterRequest request, core.String matterId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (matterId == null) { + throw new core.ArgumentError("Parameter matterId is required."); + } + + _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + ':undelete'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Matter.fromJson(data)); + } + + /** + * Updates the specified matter. + * This updates only the name and description of the matter, identified by + * matter id. Changes to any other fields are ignored. + * Returns the default view of the matter. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [matterId] - The matter ID. + * + * Completes with a [Matter]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<Matter> update(Matter request, core.String matterId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (matterId == null) { + throw new core.ArgumentError("Parameter matterId is required."); + } + + _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId'); + + var _response = _requester.request(_url, + "PUT", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Matter.fromJson(data)); + } + +} + + +class MattersHoldsResourceApi { + final commons.ApiRequester _requester; + + MattersHoldsAccountsResourceApi get accounts => new MattersHoldsAccountsResourceApi(_requester); + + MattersHoldsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Creates a hold in the given matter. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [matterId] - The matter ID. + * + * Completes with a [Hold]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * 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> create(Hold request, core.String matterId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (matterId == null) { + throw new core.ArgumentError("Parameter matterId is required."); + } + + _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + '/holds'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Hold.fromJson(data)); + } + + /** + * Removes a hold by ID. This will release any HeldAccounts on this Hold. + * + * Request parameters: + * + * [matterId] - The matter ID. + * + * [holdId] - The hold ID. + * + * 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 matterId, core.String holdId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (matterId == null) { + throw new core.ArgumentError("Parameter matterId is required."); + } + if (holdId == null) { + throw new core.ArgumentError("Parameter holdId is required."); + } + + _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + '/holds/' + commons.Escaper.ecapeVariable('$holdId'); + + 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 hold by ID. + * + * Request parameters: + * + * [matterId] - The matter ID. + * + * [holdId] - The hold ID. + * + * Completes with a [Hold]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * 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) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (matterId == null) { + throw new core.ArgumentError("Parameter matterId is required."); + } + if (holdId == null) { + throw new core.ArgumentError("Parameter holdId is required."); + } + + _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + '/holds/' + commons.Escaper.ecapeVariable('$holdId'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Hold.fromJson(data)); + } + + /** + * Lists holds within a matter. An empty page token in ListHoldsResponse + * denotes no more holds to list. + * + * Request parameters: + * + * [matterId] - The matter ID. + * + * [pageToken] - The pagination token as returned in the response. + * An empty token means start from the beginning. + * + * [pageSize] - The number of holds to return in the response, between 0 and + * 100 inclusive. + * Leaving this empty, or as 0, is the same as page_size = 100. + * + * Completes with a [ListHoldsResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * 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}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (matterId == null) { + throw new core.ArgumentError("Parameter matterId is required."); + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + + _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + '/holds'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListHoldsResponse.fromJson(data)); + } + + /** + * Updates the OU and/or query parameters of a hold. You cannot add accounts + * to a hold that covers an OU, nor can you add OUs to a hold that covers + * individual accounts. Accounts listed in the hold will be ignored. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [matterId] - The matter ID. + * + * [holdId] - The ID of the hold. + * + * Completes with a [Hold]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * 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> update(Hold request, core.String matterId, core.String holdId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (matterId == null) { + throw new core.ArgumentError("Parameter matterId is required."); + } + if (holdId == null) { + throw new core.ArgumentError("Parameter holdId is required."); + } + + _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + '/holds/' + commons.Escaper.ecapeVariable('$holdId'); + + var _response = _requester.request(_url, + "PUT", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Hold.fromJson(data)); + } + +} + + +class MattersHoldsAccountsResourceApi { + final commons.ApiRequester _requester; + + MattersHoldsAccountsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Adds a HeldAccount to a hold. Accounts can only be added to a hold that + * has no held_org_unit set. Attempting to add an account to an OU-based + * hold will result in an error. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [matterId] - The matter ID. + * + * [holdId] - The hold ID. + * + * Completes with a [HeldAccount]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<HeldAccount> create(HeldAccount request, core.String matterId, core.String holdId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (matterId == null) { + throw new core.ArgumentError("Parameter matterId is required."); + } + if (holdId == null) { + throw new core.ArgumentError("Parameter holdId is required."); + } + + _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + '/holds/' + commons.Escaper.ecapeVariable('$holdId') + '/accounts'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new HeldAccount.fromJson(data)); + } + + /** + * Removes a HeldAccount from a hold. If this request leaves the hold with + * no held accounts, the hold will not apply to any accounts. + * + * Request parameters: + * + * [matterId] - The matter ID. + * + * [holdId] - The hold ID. + * + * [accountId] - The ID of the account to remove from the hold. + * + * 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 matterId, core.String holdId, core.String accountId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (matterId == null) { + throw new core.ArgumentError("Parameter matterId is required."); + } + if (holdId == null) { + throw new core.ArgumentError("Parameter holdId is required."); + } + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + + _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + '/holds/' + commons.Escaper.ecapeVariable('$holdId') + '/accounts/' + commons.Escaper.ecapeVariable('$accountId'); + + var _response = _requester.request(_url, + "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Empty.fromJson(data)); + } + + /** + * Lists HeldAccounts for a hold. This will only list individually specified + * held accounts. If the hold is on an OU, then use the + * <ahref="https://developers.google.com/admin-sdk/">Admin SDK</a> + * to enumerate its members. + * + * Request parameters: + * + * [matterId] - The matter ID. + * + * [holdId] - The hold ID. + * + * Completes with a [ListHeldAccountsResponse]. + * + * Completes with a [commons.ApiRequestError] if the API endpoint returned an + * error. + * + * If the used [http.Client] completes with an error when making a REST call, + * this method will complete with the same error. + */ + async.Future<ListHeldAccountsResponse> list(core.String matterId, core.String holdId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (matterId == null) { + throw new core.ArgumentError("Parameter matterId is required."); + } + if (holdId == null) { + throw new core.ArgumentError("Parameter holdId is required."); + } + + _url = 'v1/matters/' + commons.Escaper.ecapeVariable('$matterId') + '/holds/' + commons.Escaper.ecapeVariable('$holdId') + '/accounts'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListHeldAccountsResponse.fromJson(data)); + } + +} + + + +/** + * Add an account with the permission specified. The role cannot be owner. + * If an account already has a role in the matter, it will be + * overwritten. + */ +class AddMatterPermissionsRequest { + /** + * Only relevant if send_emails is true. + * True to CC requestor in the email message. + * False to not CC requestor. + */ + core.bool ccMe; + /** The MatterPermission to add. */ + MatterPermission matterPermission; + /** + * True to send notification email to the added account. + * False to not send notification email. + */ + core.bool sendEmails; + + AddMatterPermissionsRequest(); + + AddMatterPermissionsRequest.fromJson(core.Map _json) { + if (_json.containsKey("ccMe")) { + ccMe = _json["ccMe"]; + } + if (_json.containsKey("matterPermission")) { + matterPermission = new MatterPermission.fromJson(_json["matterPermission"]); + } + if (_json.containsKey("sendEmails")) { + sendEmails = _json["sendEmails"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (ccMe != null) { + _json["ccMe"] = ccMe; + } + if (matterPermission != null) { + _json["matterPermission"] = (matterPermission).toJson(); + } + if (sendEmails != null) { + _json["sendEmails"] = sendEmails; + } + return _json; + } +} + +/** Close a matter by ID. */ +class CloseMatterRequest { + + CloseMatterRequest(); + + CloseMatterRequest.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; + } +} + +/** Response to a CloseMatterRequest. */ +class CloseMatterResponse { + /** The updated matter, with state CLOSED. */ + Matter matter; + + CloseMatterResponse(); + + CloseMatterResponse.fromJson(core.Map _json) { + if (_json.containsKey("matter")) { + matter = new Matter.fromJson(_json["matter"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (matter != null) { + _json["matter"] = (matter).toJson(); + } + return _json; + } +} + +/** Corpus specific queries. */ +class CorpusQuery { + /** Details pertaining to Drive holds. If set, corpus must be Drive. */ + HeldDriveQuery driveQuery; + /** Details pertaining to Groups holds. If set, corpus must be Groups. */ + HeldGroupsQuery groupsQuery; + /** Details pertaining to mail holds. If set, corpus must be mail. */ + HeldMailQuery mailQuery; + + CorpusQuery(); + + CorpusQuery.fromJson(core.Map _json) { + if (_json.containsKey("driveQuery")) { + driveQuery = new HeldDriveQuery.fromJson(_json["driveQuery"]); + } + if (_json.containsKey("groupsQuery")) { + groupsQuery = new HeldGroupsQuery.fromJson(_json["groupsQuery"]); + } + if (_json.containsKey("mailQuery")) { + mailQuery = new HeldMailQuery.fromJson(_json["mailQuery"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (driveQuery != null) { + _json["driveQuery"] = (driveQuery).toJson(); + } + if (groupsQuery != null) { + _json["groupsQuery"] = (groupsQuery).toJson(); + } + if (mailQuery != null) { + _json["mailQuery"] = (mailQuery).toJson(); + } + 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; + } +} + +/** + * An account being held in a particular hold. This structure is immutable. + * This can be either a single user or a google group, depending on the corpus. + */ +class HeldAccount { + /** + * The account's ID as provided by the <a + * href="https://developers.google.com/admin-sdk/">Admin SDK</a>. + */ + core.String accountId; + /** When the account was put on hold. */ + core.String holdTime; + + HeldAccount(); + + HeldAccount.fromJson(core.Map _json) { + if (_json.containsKey("accountId")) { + accountId = _json["accountId"]; + } + if (_json.containsKey("holdTime")) { + holdTime = _json["holdTime"]; + } + } + + 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 (holdTime != null) { + _json["holdTime"] = holdTime; + } + return _json; + } +} + +/** Query options for drive holds. */ +class HeldDriveQuery { + /** If true, include files in Team Drives in the hold. */ + core.bool includeTeamDriveFiles; + + HeldDriveQuery(); + + HeldDriveQuery.fromJson(core.Map _json) { + if (_json.containsKey("includeTeamDriveFiles")) { + includeTeamDriveFiles = _json["includeTeamDriveFiles"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (includeTeamDriveFiles != null) { + _json["includeTeamDriveFiles"] = includeTeamDriveFiles; + } + return _json; + } +} + +/** Query options for group holds. */ +class HeldGroupsQuery { + /** + * The end date range for the search query. These timestamps are in GMT and + * rounded down to the start of the given date. + */ + core.String endTime; + /** + * The start date range for the search query. These timestamps are in GMT and + * rounded down to the start of the given date. + */ + core.String startTime; + /** The search terms for the hold. */ + core.String terms; + + HeldGroupsQuery(); + + HeldGroupsQuery.fromJson(core.Map _json) { + if (_json.containsKey("endTime")) { + endTime = _json["endTime"]; + } + if (_json.containsKey("startTime")) { + startTime = _json["startTime"]; + } + if (_json.containsKey("terms")) { + terms = _json["terms"]; + } + } + + 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 (startTime != null) { + _json["startTime"] = startTime; + } + if (terms != null) { + _json["terms"] = terms; + } + return _json; + } +} + +/** Query options for mail holds. */ +class HeldMailQuery { + /** + * The end date range for the search query. These timestamps are in GMT and + * rounded down to the start of the given date. + */ + core.String endTime; + /** + * The start date range for the search query. These timestamps are in GMT and + * rounded down to the start of the given date. + */ + core.String startTime; + /** The search terms for the hold. */ + core.String terms; + + HeldMailQuery(); + + HeldMailQuery.fromJson(core.Map _json) { + if (_json.containsKey("endTime")) { + endTime = _json["endTime"]; + } + if (_json.containsKey("startTime")) { + startTime = _json["startTime"]; + } + if (_json.containsKey("terms")) { + terms = _json["terms"]; + } + } + + 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 (startTime != null) { + _json["startTime"] = startTime; + } + if (terms != null) { + _json["terms"] = terms; + } + return _json; + } +} + +/** + * A organizational unit being held in a particular hold. + * This structure is immutable. + */ +class HeldOrgUnit { + /** 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. */ + core.String orgUnitId; + + HeldOrgUnit(); + + HeldOrgUnit.fromJson(core.Map _json) { + if (_json.containsKey("holdTime")) { + holdTime = _json["holdTime"]; + } + if (_json.containsKey("orgUnitId")) { + orgUnitId = _json["orgUnitId"]; + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (holdTime != null) { + _json["holdTime"] = holdTime; + } + if (orgUnitId != null) { + _json["orgUnitId"] = orgUnitId; + } + return _json; + } +} + +/** + * Represents a hold within Vault. A hold restricts purging of + * artifacts based on the combination of the query and accounts restrictions. + * A hold can be configured to either apply to an explicitly configured set + * of accounts, or can be applied to all members of an organizational unit. + */ +class Hold { + /** + * If set, the hold applies to the enumerated accounts and org_unit must be + * empty. + */ + core.List<HeldAccount> accounts; + /** + * The corpus to be searched. + * Possible string values are: + * - "CORPUS_TYPE_UNSPECIFIED" : No corpus specified. + * - "DRIVE" : Drive. + * - "MAIL" : Mail. + * - "GROUPS" : Groups. + */ + core.String corpus; + /** The unique immutable ID of the hold. Assigned during creation. */ + core.String holdId; + /** The name of the hold. */ + core.String name; + /** + * If set, the hold applies to all members of the organizational unit and + * accounts must be empty. This property is mutable. For groups holds, + * set the accounts field. + */ + HeldOrgUnit orgUnit; + /** + * The corpus-specific query. If set, the corpusQuery must match corpus + * type. + */ + CorpusQuery query; + /** The last time this hold was modified. */ + core.String updateTime; + + Hold(); + + Hold.fromJson(core.Map _json) { + if (_json.containsKey("accounts")) { + accounts = _json["accounts"].map((value) => new HeldAccount.fromJson(value)).toList(); + } + if (_json.containsKey("corpus")) { + corpus = _json["corpus"]; + } + if (_json.containsKey("holdId")) { + holdId = _json["holdId"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("orgUnit")) { + orgUnit = new HeldOrgUnit.fromJson(_json["orgUnit"]); + } + if (_json.containsKey("query")) { + query = new CorpusQuery.fromJson(_json["query"]); + } + 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 (accounts != null) { + _json["accounts"] = accounts.map((value) => (value).toJson()).toList(); + } + if (corpus != null) { + _json["corpus"] = corpus; + } + if (holdId != null) { + _json["holdId"] = holdId; + } + if (name != null) { + _json["name"] = name; + } + if (orgUnit != null) { + _json["orgUnit"] = (orgUnit).toJson(); + } + if (query != null) { + _json["query"] = (query).toJson(); + } + if (updateTime != null) { + _json["updateTime"] = updateTime; + } + return _json; + } +} + +/** Returns a list of held accounts for a hold. */ +class ListHeldAccountsResponse { + /** The held accounts on a hold. */ + core.List<HeldAccount> accounts; + + ListHeldAccountsResponse(); + + ListHeldAccountsResponse.fromJson(core.Map _json) { + if (_json.containsKey("accounts")) { + accounts = _json["accounts"].map((value) => new HeldAccount.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 (accounts != null) { + _json["accounts"] = accounts.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** The holds for a matter. */ +class ListHoldsResponse { + /** The list of holds. */ + core.List<Hold> holds; + /** + * Page token to retrieve the next page of results in the list. + * If this is empty, then there are no more holds to list. + */ + core.String nextPageToken; + + ListHoldsResponse(); + + ListHoldsResponse.fromJson(core.Map _json) { + if (_json.containsKey("holds")) { + holds = _json["holds"].map((value) => new Hold.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 (holds != null) { + _json["holds"] = holds.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + +/** Provides the list of matters. */ +class ListMattersResponse { + /** List of matters. */ + core.List<Matter> matters; + /** Page token to retrieve the next page of results in the list. */ + core.String nextPageToken; + + ListMattersResponse(); + + ListMattersResponse.fromJson(core.Map _json) { + if (_json.containsKey("matters")) { + matters = _json["matters"].map((value) => new Matter.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 (matters != null) { + _json["matters"] = matters.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + +/** Represents a matter. */ +class Matter { + /** The description of the matter. */ + core.String description; + /** + * The matter ID which is generated by the server. + * Should be blank when creating a new matter. + */ + core.String matterId; + /** + * List of users and access to the matter. Currently there is no programmer + * defined limit on the number of permissions a matter can have. + */ + core.List<MatterPermission> matterPermissions; + /** The name of the matter. */ + core.String name; + /** + * The state of the matter. + * Possible string values are: + * - "STATE_UNSPECIFIED" : The matter has no specified state. + * - "OPEN" : This matter is open. + * - "CLOSED" : This matter is closed. + * - "DELETED" : This matter is deleted. + */ + core.String state; + + Matter(); + + Matter.fromJson(core.Map _json) { + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("matterId")) { + matterId = _json["matterId"]; + } + if (_json.containsKey("matterPermissions")) { + matterPermissions = _json["matterPermissions"].map((value) => new MatterPermission.fromJson(value)).toList(); + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + 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 (description != null) { + _json["description"] = description; + } + if (matterId != null) { + _json["matterId"] = matterId; + } + if (matterPermissions != null) { + _json["matterPermissions"] = matterPermissions.map((value) => (value).toJson()).toList(); + } + if (name != null) { + _json["name"] = name; + } + if (state != null) { + _json["state"] = state; + } + return _json; + } +} + +/** + * Currently each matter only has one owner, and all others are collaborators. + * When an account is purged, its corresponding MatterPermission resources + * cease to exist. + */ +class MatterPermission { + /** + * The account id, as provided by <a + * href="https://developers.google.com/admin-sdk/">Admin SDK</a>. + */ + core.String accountId; + /** + * The user's role in this matter. + * Possible string values are: + * - "ROLE_UNSPECIFIED" : No role assigned. + * - "COLLABORATOR" : A collaborator to the matter. + * - "OWNER" : The owner of the matter. + */ + core.String role; + + MatterPermission(); + + MatterPermission.fromJson(core.Map _json) { + if (_json.containsKey("accountId")) { + accountId = _json["accountId"]; + } + 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 (accountId != null) { + _json["accountId"] = accountId; + } + if (role != null) { + _json["role"] = role; + } + return _json; + } +} + +/** Remove an account as a matter collaborator. */ +class RemoveMatterPermissionsRequest { + /** The account ID. */ + core.String accountId; + + RemoveMatterPermissionsRequest(); + + RemoveMatterPermissionsRequest.fromJson(core.Map _json) { + if (_json.containsKey("accountId")) { + accountId = _json["accountId"]; + } + } + + 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; + } + return _json; + } +} + +/** Reopen a matter by ID. */ +class ReopenMatterRequest { + + ReopenMatterRequest(); + + ReopenMatterRequest.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; + } +} + +/** Response to a ReopenMatterRequest. */ +class ReopenMatterResponse { + /** The updated matter, with state OPEN. */ + Matter matter; + + ReopenMatterResponse(); + + ReopenMatterResponse.fromJson(core.Map _json) { + if (_json.containsKey("matter")) { + matter = new Matter.fromJson(_json["matter"]); + } + } + + core.Map<core.String, core.Object> toJson() { + final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); + if (matter != null) { + _json["matter"] = (matter).toJson(); + } + return _json; + } +} + +/** Undelete a matter by ID. */ +class UndeleteMatterRequest { + + UndeleteMatterRequest(); + + UndeleteMatterRequest.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/vision/v1.dart b/generated/googleapis/lib/vision/v1.dart index 5c5df61..5dc5b0e 100644 --- a/generated/googleapis/lib/vision/v1.dart +++ b/generated/googleapis/lib/vision/v1.dart
@@ -1912,8 +1912,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a - * common set of message types for APIs to use. + * A list of messages that carry the error details. There 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.
diff --git a/generated/googleapis/lib/youtubereporting/v1.dart b/generated/googleapis/lib/youtubereporting/v1.dart index 0cf211e..4b73fa2 100644 --- a/generated/googleapis/lib/youtubereporting/v1.dart +++ b/generated/googleapis/lib/youtubereporting/v1.dart
@@ -324,16 +324,16 @@ * [createdAfter] - If set, only reports created after the specified date/time * are returned. * - * [startTimeAtOrAfter] - If set, only reports whose start time is greater - * than or equal the - * specified date/time are returned. - * * [pageToken] - A token identifying a page of results the server should * return. Typically, * this is the value of * ListReportsResponse.next_page_token * returned in response to the previous call to the `ListReports` method. * + * [startTimeAtOrAfter] - If set, only reports whose start time is greater + * than or equal the + * specified date/time are returned. + * * [pageSize] - Requested page size. Server may return fewer report types than * requested. * If unspecified, server will pick an appropriate default. @@ -354,7 +354,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<ListReportsResponse> list(core.String jobId, {core.String createdAfter, core.String startTimeAtOrAfter, core.String pageToken, core.int pageSize, core.String onBehalfOfContentOwner, core.String startTimeBefore}) { + async.Future<ListReportsResponse> list(core.String jobId, {core.String createdAfter, core.String pageToken, core.String startTimeAtOrAfter, core.int pageSize, core.String onBehalfOfContentOwner, core.String startTimeBefore}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -368,12 +368,12 @@ if (createdAfter != null) { _queryParams["createdAfter"] = [createdAfter]; } - if (startTimeAtOrAfter != null) { - _queryParams["startTimeAtOrAfter"] = [startTimeAtOrAfter]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (startTimeAtOrAfter != null) { + _queryParams["startTimeAtOrAfter"] = [startTimeAtOrAfter]; + } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } @@ -476,6 +476,10 @@ * * Request parameters: * + * [onBehalfOfContentOwner] - The content owner's external ID on which behalf + * the user is acting on. If + * not set, the user is acting for himself (his own channel). + * * [includeSystemManaged] - If set to true, also system-managed report types * will be returned; * otherwise only the report types that can be used to create new reporting @@ -491,10 +495,6 @@ * requested. * If unspecified, server will pick an appropriate default. * - * [onBehalfOfContentOwner] - The content owner's external ID on which behalf - * the user is acting on. If - * not set, the user is acting for himself (his own channel). - * * Completes with a [ListReportTypesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -503,7 +503,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<ListReportTypesResponse> list({core.bool includeSystemManaged, core.String pageToken, core.int pageSize, core.String onBehalfOfContentOwner}) { + async.Future<ListReportTypesResponse> list({core.String onBehalfOfContentOwner, core.bool includeSystemManaged, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -511,6 +511,9 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (onBehalfOfContentOwner != null) { + _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; + } if (includeSystemManaged != null) { _queryParams["includeSystemManaged"] = ["${includeSystemManaged}"]; } @@ -520,9 +523,6 @@ if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (onBehalfOfContentOwner != null) { - _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; - } _url = 'v1/reportTypes';
diff --git a/generated/googleapis/pubspec.yaml b/generated/googleapis/pubspec.yaml index 577a36f..fc6f748 100644 --- a/generated/googleapis/pubspec.yaml +++ b/generated/googleapis/pubspec.yaml
@@ -1,7 +1,7 @@ name: googleapis -version: 0.41.0 +version: 0.42.0 author: Dart Team <misc@dartlang.org> -description: "Auto-generated client libraries for accessing the following APIs:acceleratedmobilepageurl:v1, adexchangebuyer:v1.3, adexchangebuyer:v1.4, adexchangeseller:v1.1, adexchangeseller:v2.0, adexperiencereport:v1, admin:datatransfer_v1, admin:directory_v1, admin:reports_v1, adsense:v1.4, adsensehost:v4.1, analytics:v3, analyticsreporting:v4, androidenterprise:v1, androidpublisher:v2, appengine:v1, appsactivity:v1, appstate:v1, bigquery:v2, bigquerydatatransfer:v1, blogger:v3, books:v1, calendar:v3, civicinfo:v2, classroom:v1, cloudbilling:v1, cloudbuild:v1, clouddebugger:v2, cloudfunctions:v1, cloudkms:v1, cloudresourcemanager:v1, cloudresourcemanager:v2beta1, cloudtrace:v2, compute:v1, consumersurveys:v2, container:v1, content:v2, content:v2sandbox, customsearch:v1, dataproc:v1, dataproc:v1beta2, datastore:v1, deploymentmanager:v2, dfareporting:v2.8, discovery:v1, dns:v1, doubleclickbidmanager:v1, doubleclicksearch:v2, drive:v2, drive:v3, firebasedynamiclinks:v1, firebaserules:v1, fitness:v1, fusiontables:v1, fusiontables:v2, games:v1, gamesConfiguration:v1configuration, gamesManagement:v1management, genomics:v1, gmail:v1, groupsmigration:v1, groupssettings:v1, iam:v1, identitytoolkit:v3, kgsearch:v1, language:v1, licensing:v1, logging:v2, manufacturers:v1, mirror:v1, ml:v1, monitoring:v3, oauth2:v2, pagespeedonline:v1, pagespeedonline:v2, partners:v2, people:v1, playmoviespartner:v1, plus:v1, plusDomains:v1, prediction:v1.6, pubsub:v1, qpxExpress:v1, reseller:v1, runtimeconfig:v1, safebrowsing:v4, script:v1, searchconsole: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, translate:v2, urlshortener:v1, vision:v1, webfonts:v1, webmasters:v3, youtube:v3, youtubeAnalytics:v1, youtubereporting:v1" +description: "Auto-generated client libraries for accessing the following APIs:acceleratedmobilepageurl:v1, adexchangebuyer:v1.3, adexchangebuyer:v1.4, adexchangeseller:v1.1, adexchangeseller:v2.0, 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, cloudkms:v1, cloudresourcemanager:v1, cloudresourcemanager:v2beta1, cloudtrace:v1, cloudtrace:v2, compute:v1, consumersurveys:v2, container:v1, content:v2, content:v2sandbox, customsearch:v1, dataproc:v1, datastore:v1, deploymentmanager:v2, dfareporting:v2.8, discovery:v1, dns:v1, doubleclickbidmanager:v1, doubleclicksearch:v2, drive:v2, drive:v3, firebasedynamiclinks:v1, firebaserules:v1, fitness:v1, fusiontables:v1, fusiontables:v2, games:v1, gamesConfiguration:v1configuration, gamesManagement:v1management, genomics:v1, gmail:v1, groupsmigration:v1, groupssettings:v1, iam:v1, identitytoolkit:v3, kgsearch:v1, language:v1, licensing:v1, logging:v2, manufacturers:v1, mirror:v1, ml:v1, monitoring:v3, oauth2:v2, pagespeedonline:v1, pagespeedonline:v2, partners:v2, people:v1, playcustomapp:v1, playmoviespartner:v1, plus:v1, plusDomains:v1, prediction:v1.6, pubsub:v1, qpxExpress:v1, reseller:v1, runtimeconfig:v1, safebrowsing:v4, script:v1, searchconsole: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, translate:v2, urlshortener:v1, vault:v1, vision:v1, webfonts:v1, webmasters:v3, youtube:v3, youtubeAnalytics:v1, youtubereporting:v1" homepage: http://www.dartlang.org/googleapis/ environment: sdk: '>=1.22.0 <2.0.0'
diff --git a/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart b/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart index 737bef0..0c0d7a1 100644 --- a/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart +++ b/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart
@@ -97,14 +97,14 @@ buildCounterAmpUrlError--; } -buildUnnamed1263() { +buildUnnamed1241() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1263(core.List<core.String> o) { +checkUnnamed1241(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -116,7 +116,7 @@ buildCounterBatchGetAmpUrlsRequest++; if (buildCounterBatchGetAmpUrlsRequest < 3) { o.lookupStrategy = "foo"; - o.urls = buildUnnamed1263(); + o.urls = buildUnnamed1241(); } buildCounterBatchGetAmpUrlsRequest--; return o; @@ -126,32 +126,32 @@ buildCounterBatchGetAmpUrlsRequest++; if (buildCounterBatchGetAmpUrlsRequest < 3) { unittest.expect(o.lookupStrategy, unittest.equals('foo')); - checkUnnamed1263(o.urls); + checkUnnamed1241(o.urls); } buildCounterBatchGetAmpUrlsRequest--; } -buildUnnamed1264() { +buildUnnamed1242() { var o = new core.List<api.AmpUrl>(); o.add(buildAmpUrl()); o.add(buildAmpUrl()); return o; } -checkUnnamed1264(core.List<api.AmpUrl> o) { +checkUnnamed1242(core.List<api.AmpUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkAmpUrl(o[0]); checkAmpUrl(o[1]); } -buildUnnamed1265() { +buildUnnamed1243() { var o = new core.List<api.AmpUrlError>(); o.add(buildAmpUrlError()); o.add(buildAmpUrlError()); return o; } -checkUnnamed1265(core.List<api.AmpUrlError> o) { +checkUnnamed1243(core.List<api.AmpUrlError> o) { unittest.expect(o, unittest.hasLength(2)); checkAmpUrlError(o[0]); checkAmpUrlError(o[1]); @@ -162,8 +162,8 @@ var o = new api.BatchGetAmpUrlsResponse(); buildCounterBatchGetAmpUrlsResponse++; if (buildCounterBatchGetAmpUrlsResponse < 3) { - o.ampUrls = buildUnnamed1264(); - o.urlErrors = buildUnnamed1265(); + o.ampUrls = buildUnnamed1242(); + o.urlErrors = buildUnnamed1243(); } buildCounterBatchGetAmpUrlsResponse--; return o; @@ -172,8 +172,8 @@ checkBatchGetAmpUrlsResponse(api.BatchGetAmpUrlsResponse o) { buildCounterBatchGetAmpUrlsResponse++; if (buildCounterBatchGetAmpUrlsResponse < 3) { - checkUnnamed1264(o.ampUrls); - checkUnnamed1265(o.urlErrors); + checkUnnamed1242(o.ampUrls); + checkUnnamed1243(o.urlErrors); } buildCounterBatchGetAmpUrlsResponse--; }
diff --git a/generated/googleapis/test/adexperiencereport/v1_test.dart b/generated/googleapis/test/adexperiencereport/v1_test.dart index a92f1a7..e37e454 100644 --- a/generated/googleapis/test/adexperiencereport/v1_test.dart +++ b/generated/googleapis/test/adexperiencereport/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1725() { +buildUnnamed1757() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1725(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')); @@ -74,7 +74,7 @@ o.enforcementTime = "foo"; o.filterStatus = "foo"; o.lastChangeTime = "foo"; - o.region = buildUnnamed1725(); + o.region = buildUnnamed1757(); o.reportUrl = "foo"; o.underReview = true; } @@ -90,7 +90,7 @@ unittest.expect(o.enforcementTime, unittest.equals('foo')); unittest.expect(o.filterStatus, unittest.equals('foo')); unittest.expect(o.lastChangeTime, unittest.equals('foo')); - checkUnnamed1725(o.region); + checkUnnamed1757(o.region); unittest.expect(o.reportUrl, unittest.equals('foo')); unittest.expect(o.underReview, unittest.isTrue); } @@ -120,14 +120,14 @@ buildCounterSiteSummaryResponse--; } -buildUnnamed1726() { +buildUnnamed1758() { var o = new core.List<api.SiteSummaryResponse>(); o.add(buildSiteSummaryResponse()); o.add(buildSiteSummaryResponse()); return o; } -checkUnnamed1726(core.List<api.SiteSummaryResponse> o) { +checkUnnamed1758(core.List<api.SiteSummaryResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkSiteSummaryResponse(o[0]); checkSiteSummaryResponse(o[1]); @@ -138,7 +138,7 @@ var o = new api.ViolatingSitesResponse(); buildCounterViolatingSitesResponse++; if (buildCounterViolatingSitesResponse < 3) { - o.violatingSites = buildUnnamed1726(); + o.violatingSites = buildUnnamed1758(); } buildCounterViolatingSitesResponse--; return o; @@ -147,7 +147,7 @@ checkViolatingSitesResponse(api.ViolatingSitesResponse o) { buildCounterViolatingSitesResponse++; if (buildCounterViolatingSitesResponse < 3) { - checkUnnamed1726(o.violatingSites); + checkUnnamed1758(o.violatingSites); } buildCounterViolatingSitesResponse--; }
diff --git a/generated/googleapis/test/admin/datatransfer_v1_test.dart b/generated/googleapis/test/admin/datatransfer_v1_test.dart index 5afc11c..b19c2d5 100644 --- a/generated/googleapis/test/admin/datatransfer_v1_test.dart +++ b/generated/googleapis/test/admin/datatransfer_v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed192() { +buildUnnamed163() { var o = new core.List<api.ApplicationTransferParam>(); o.add(buildApplicationTransferParam()); o.add(buildApplicationTransferParam()); return o; } -checkUnnamed192(core.List<api.ApplicationTransferParam> o) { +checkUnnamed163(core.List<api.ApplicationTransferParam> o) { unittest.expect(o, unittest.hasLength(2)); checkApplicationTransferParam(o[0]); checkApplicationTransferParam(o[1]); @@ -73,7 +73,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.transferParams = buildUnnamed192(); + o.transferParams = buildUnnamed163(); } buildCounterApplication--; return o; @@ -86,19 +86,19 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed192(o.transferParams); + checkUnnamed163(o.transferParams); } buildCounterApplication--; } -buildUnnamed193() { +buildUnnamed164() { var o = new core.List<api.ApplicationTransferParam>(); o.add(buildApplicationTransferParam()); o.add(buildApplicationTransferParam()); return o; } -checkUnnamed193(core.List<api.ApplicationTransferParam> o) { +checkUnnamed164(core.List<api.ApplicationTransferParam> o) { unittest.expect(o, unittest.hasLength(2)); checkApplicationTransferParam(o[0]); checkApplicationTransferParam(o[1]); @@ -110,7 +110,7 @@ buildCounterApplicationDataTransfer++; if (buildCounterApplicationDataTransfer < 3) { o.applicationId = "foo"; - o.applicationTransferParams = buildUnnamed193(); + o.applicationTransferParams = buildUnnamed164(); o.applicationTransferStatus = "foo"; } buildCounterApplicationDataTransfer--; @@ -121,20 +121,20 @@ buildCounterApplicationDataTransfer++; if (buildCounterApplicationDataTransfer < 3) { unittest.expect(o.applicationId, unittest.equals('foo')); - checkUnnamed193(o.applicationTransferParams); + checkUnnamed164(o.applicationTransferParams); unittest.expect(o.applicationTransferStatus, unittest.equals('foo')); } buildCounterApplicationDataTransfer--; } -buildUnnamed194() { +buildUnnamed165() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed194(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')); @@ -146,7 +146,7 @@ buildCounterApplicationTransferParam++; if (buildCounterApplicationTransferParam < 3) { o.key = "foo"; - o.value = buildUnnamed194(); + o.value = buildUnnamed165(); } buildCounterApplicationTransferParam--; return o; @@ -156,19 +156,19 @@ buildCounterApplicationTransferParam++; if (buildCounterApplicationTransferParam < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed194(o.value); + checkUnnamed165(o.value); } buildCounterApplicationTransferParam--; } -buildUnnamed195() { +buildUnnamed166() { var o = new core.List<api.Application>(); o.add(buildApplication()); o.add(buildApplication()); return o; } -checkUnnamed195(core.List<api.Application> o) { +checkUnnamed166(core.List<api.Application> o) { unittest.expect(o, unittest.hasLength(2)); checkApplication(o[0]); checkApplication(o[1]); @@ -179,7 +179,7 @@ var o = new api.ApplicationsListResponse(); buildCounterApplicationsListResponse++; if (buildCounterApplicationsListResponse < 3) { - o.applications = buildUnnamed195(); + o.applications = buildUnnamed166(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -191,7 +191,7 @@ checkApplicationsListResponse(api.ApplicationsListResponse o) { buildCounterApplicationsListResponse++; if (buildCounterApplicationsListResponse < 3) { - checkUnnamed195(o.applications); + checkUnnamed166(o.applications); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -199,14 +199,14 @@ buildCounterApplicationsListResponse--; } -buildUnnamed196() { +buildUnnamed167() { var o = new core.List<api.ApplicationDataTransfer>(); o.add(buildApplicationDataTransfer()); o.add(buildApplicationDataTransfer()); return o; } -checkUnnamed196(core.List<api.ApplicationDataTransfer> o) { +checkUnnamed167(core.List<api.ApplicationDataTransfer> o) { unittest.expect(o, unittest.hasLength(2)); checkApplicationDataTransfer(o[0]); checkApplicationDataTransfer(o[1]); @@ -217,7 +217,7 @@ var o = new api.DataTransfer(); buildCounterDataTransfer++; if (buildCounterDataTransfer < 3) { - o.applicationDataTransfers = buildUnnamed196(); + o.applicationDataTransfers = buildUnnamed167(); o.etag = "foo"; o.id = "foo"; o.kind = "foo"; @@ -233,7 +233,7 @@ checkDataTransfer(api.DataTransfer o) { buildCounterDataTransfer++; if (buildCounterDataTransfer < 3) { - checkUnnamed196(o.applicationDataTransfers); + checkUnnamed167(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--; } -buildUnnamed197() { +buildUnnamed168() { var o = new core.List<api.DataTransfer>(); o.add(buildDataTransfer()); o.add(buildDataTransfer()); return o; } -checkUnnamed197(core.List<api.DataTransfer> o) { +checkUnnamed168(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 = buildUnnamed197(); + o.dataTransfers = buildUnnamed168(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -275,7 +275,7 @@ checkDataTransfersListResponse(api.DataTransfersListResponse o) { buildCounterDataTransfersListResponse++; if (buildCounterDataTransfersListResponse < 3) { - checkUnnamed197(o.dataTransfers); + checkUnnamed168(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 95c2533..9abeb9b 100644 --- a/generated/googleapis/test/admin/directory_v1_test.dart +++ b/generated/googleapis/test/admin/directory_v1_test.dart
@@ -78,14 +78,14 @@ buildCounterAlias--; } -buildUnnamed814() { +buildUnnamed789() { 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; } -checkUnnamed814(core.List<core.Object> o) { +checkUnnamed789(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -96,7 +96,7 @@ var o = new api.Aliases(); buildCounterAliases++; if (buildCounterAliases < 3) { - o.aliases = buildUnnamed814(); + o.aliases = buildUnnamed789(); o.etag = "foo"; o.kind = "foo"; } @@ -107,7 +107,7 @@ checkAliases(api.Aliases o) { buildCounterAliases++; if (buildCounterAliases < 3) { - checkUnnamed814(o.aliases); + checkUnnamed789(o.aliases); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } @@ -145,14 +145,14 @@ buildCounterAsp--; } -buildUnnamed815() { +buildUnnamed790() { var o = new core.List<api.Asp>(); o.add(buildAsp()); o.add(buildAsp()); return o; } -checkUnnamed815(core.List<api.Asp> o) { +checkUnnamed790(core.List<api.Asp> o) { unittest.expect(o, unittest.hasLength(2)); checkAsp(o[0]); checkAsp(o[1]); @@ -164,7 +164,7 @@ buildCounterAsps++; if (buildCounterAsps < 3) { o.etag = "foo"; - o.items = buildUnnamed815(); + o.items = buildUnnamed790(); o.kind = "foo"; } buildCounterAsps--; @@ -175,7 +175,7 @@ buildCounterAsps++; if (buildCounterAsps < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed815(o.items); + checkUnnamed790(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAsps--; @@ -212,14 +212,14 @@ buildCounterCalendarResource--; } -buildUnnamed816() { +buildUnnamed791() { var o = new core.List<api.CalendarResource>(); o.add(buildCalendarResource()); o.add(buildCalendarResource()); return o; } -checkUnnamed816(core.List<api.CalendarResource> o) { +checkUnnamed791(core.List<api.CalendarResource> o) { unittest.expect(o, unittest.hasLength(2)); checkCalendarResource(o[0]); checkCalendarResource(o[1]); @@ -231,7 +231,7 @@ buildCounterCalendarResources++; if (buildCounterCalendarResources < 3) { o.etag = "foo"; - o.items = buildUnnamed816(); + o.items = buildUnnamed791(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -243,21 +243,21 @@ buildCounterCalendarResources++; if (buildCounterCalendarResources < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed816(o.items); + checkUnnamed791(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCalendarResources--; } -buildUnnamed817() { +buildUnnamed792() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed817(core.Map<core.String, core.String> o) { +checkUnnamed792(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -272,7 +272,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed817(); + o.params = buildUnnamed792(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -290,7 +290,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed817(o.params); + checkUnnamed792(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -321,14 +321,14 @@ buildCounterChromeOsDeviceActiveTimeRanges--; } -buildUnnamed818() { +buildUnnamed793() { var o = new core.List<api.ChromeOsDeviceActiveTimeRanges>(); o.add(buildChromeOsDeviceActiveTimeRanges()); o.add(buildChromeOsDeviceActiveTimeRanges()); return o; } -checkUnnamed818(core.List<api.ChromeOsDeviceActiveTimeRanges> o) { +checkUnnamed793(core.List<api.ChromeOsDeviceActiveTimeRanges> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDeviceActiveTimeRanges(o[0]); checkChromeOsDeviceActiveTimeRanges(o[1]); @@ -355,14 +355,14 @@ buildCounterChromeOsDeviceRecentUsers--; } -buildUnnamed819() { +buildUnnamed794() { var o = new core.List<api.ChromeOsDeviceRecentUsers>(); o.add(buildChromeOsDeviceRecentUsers()); o.add(buildChromeOsDeviceRecentUsers()); return o; } -checkUnnamed819(core.List<api.ChromeOsDeviceRecentUsers> o) { +checkUnnamed794(core.List<api.ChromeOsDeviceRecentUsers> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDeviceRecentUsers(o[0]); checkChromeOsDeviceRecentUsers(o[1]); @@ -373,7 +373,7 @@ var o = new api.ChromeOsDevice(); buildCounterChromeOsDevice++; if (buildCounterChromeOsDevice < 3) { - o.activeTimeRanges = buildUnnamed818(); + o.activeTimeRanges = buildUnnamed793(); o.annotatedAssetId = "foo"; o.annotatedLocation = "foo"; o.annotatedUser = "foo"; @@ -393,7 +393,7 @@ o.orgUnitPath = "foo"; o.osVersion = "foo"; o.platformVersion = "foo"; - o.recentUsers = buildUnnamed819(); + o.recentUsers = buildUnnamed794(); o.serialNumber = "foo"; o.status = "foo"; o.supportEndDate = core.DateTime.parse("2002-02-27T14:01:02"); @@ -406,7 +406,7 @@ checkChromeOsDevice(api.ChromeOsDevice o) { buildCounterChromeOsDevice++; if (buildCounterChromeOsDevice < 3) { - checkUnnamed818(o.activeTimeRanges); + checkUnnamed793(o.activeTimeRanges); unittest.expect(o.annotatedAssetId, unittest.equals('foo')); unittest.expect(o.annotatedLocation, unittest.equals('foo')); unittest.expect(o.annotatedUser, unittest.equals('foo')); @@ -426,7 +426,7 @@ unittest.expect(o.orgUnitPath, unittest.equals('foo')); unittest.expect(o.osVersion, unittest.equals('foo')); unittest.expect(o.platformVersion, unittest.equals('foo')); - checkUnnamed819(o.recentUsers); + checkUnnamed794(o.recentUsers); unittest.expect(o.serialNumber, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.supportEndDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -456,14 +456,14 @@ buildCounterChromeOsDeviceAction--; } -buildUnnamed820() { +buildUnnamed795() { var o = new core.List<api.ChromeOsDevice>(); o.add(buildChromeOsDevice()); o.add(buildChromeOsDevice()); return o; } -checkUnnamed820(core.List<api.ChromeOsDevice> o) { +checkUnnamed795(core.List<api.ChromeOsDevice> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDevice(o[0]); checkChromeOsDevice(o[1]); @@ -474,7 +474,7 @@ var o = new api.ChromeOsDevices(); buildCounterChromeOsDevices++; if (buildCounterChromeOsDevices < 3) { - o.chromeosdevices = buildUnnamed820(); + o.chromeosdevices = buildUnnamed795(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -486,7 +486,7 @@ checkChromeOsDevices(api.ChromeOsDevices o) { buildCounterChromeOsDevices++; if (buildCounterChromeOsDevices < 3) { - checkUnnamed820(o.chromeosdevices); + checkUnnamed795(o.chromeosdevices); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -494,6 +494,38 @@ buildCounterChromeOsDevices--; } +buildUnnamed796() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed796(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterChromeOsMoveDevicesToOu = 0; +buildChromeOsMoveDevicesToOu() { + var o = new api.ChromeOsMoveDevicesToOu(); + buildCounterChromeOsMoveDevicesToOu++; + if (buildCounterChromeOsMoveDevicesToOu < 3) { + o.deviceIds = buildUnnamed796(); + } + buildCounterChromeOsMoveDevicesToOu--; + return o; +} + +checkChromeOsMoveDevicesToOu(api.ChromeOsMoveDevicesToOu o) { + buildCounterChromeOsMoveDevicesToOu++; + if (buildCounterChromeOsMoveDevicesToOu < 3) { + checkUnnamed796(o.deviceIds); + } + buildCounterChromeOsMoveDevicesToOu--; +} + core.int buildCounterCustomer = 0; buildCustomer() { var o = new api.Customer(); @@ -593,14 +625,14 @@ buildCounterDomainAlias--; } -buildUnnamed821() { +buildUnnamed797() { var o = new core.List<api.DomainAlias>(); o.add(buildDomainAlias()); o.add(buildDomainAlias()); return o; } -checkUnnamed821(core.List<api.DomainAlias> o) { +checkUnnamed797(core.List<api.DomainAlias> o) { unittest.expect(o, unittest.hasLength(2)); checkDomainAlias(o[0]); checkDomainAlias(o[1]); @@ -611,7 +643,7 @@ var o = new api.DomainAliases(); buildCounterDomainAliases++; if (buildCounterDomainAliases < 3) { - o.domainAliases = buildUnnamed821(); + o.domainAliases = buildUnnamed797(); o.etag = "foo"; o.kind = "foo"; } @@ -622,21 +654,21 @@ checkDomainAliases(api.DomainAliases o) { buildCounterDomainAliases++; if (buildCounterDomainAliases < 3) { - checkUnnamed821(o.domainAliases); + checkUnnamed797(o.domainAliases); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDomainAliases--; } -buildUnnamed822() { +buildUnnamed798() { var o = new core.List<api.DomainAlias>(); o.add(buildDomainAlias()); o.add(buildDomainAlias()); return o; } -checkUnnamed822(core.List<api.DomainAlias> o) { +checkUnnamed798(core.List<api.DomainAlias> o) { unittest.expect(o, unittest.hasLength(2)); checkDomainAlias(o[0]); checkDomainAlias(o[1]); @@ -648,7 +680,7 @@ buildCounterDomains++; if (buildCounterDomains < 3) { o.creationTime = "foo"; - o.domainAliases = buildUnnamed822(); + o.domainAliases = buildUnnamed798(); o.domainName = "foo"; o.etag = "foo"; o.isPrimary = true; @@ -663,7 +695,7 @@ buildCounterDomains++; if (buildCounterDomains < 3) { unittest.expect(o.creationTime, unittest.equals('foo')); - checkUnnamed822(o.domainAliases); + checkUnnamed798(o.domainAliases); unittest.expect(o.domainName, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.isPrimary, unittest.isTrue); @@ -673,14 +705,14 @@ buildCounterDomains--; } -buildUnnamed823() { +buildUnnamed799() { var o = new core.List<api.Domains>(); o.add(buildDomains()); o.add(buildDomains()); return o; } -checkUnnamed823(core.List<api.Domains> o) { +checkUnnamed799(core.List<api.Domains> o) { unittest.expect(o, unittest.hasLength(2)); checkDomains(o[0]); checkDomains(o[1]); @@ -691,7 +723,7 @@ var o = new api.Domains2(); buildCounterDomains2++; if (buildCounterDomains2 < 3) { - o.domains = buildUnnamed823(); + o.domains = buildUnnamed799(); o.etag = "foo"; o.kind = "foo"; } @@ -702,34 +734,34 @@ checkDomains2(api.Domains2 o) { buildCounterDomains2++; if (buildCounterDomains2 < 3) { - checkUnnamed823(o.domains); + checkUnnamed799(o.domains); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDomains2--; } -buildUnnamed824() { +buildUnnamed800() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed824(core.List<core.String> o) { +checkUnnamed800(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed825() { +buildUnnamed801() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed825(core.List<core.String> o) { +checkUnnamed801(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -741,7 +773,7 @@ buildCounterGroup++; if (buildCounterGroup < 3) { o.adminCreated = true; - o.aliases = buildUnnamed824(); + o.aliases = buildUnnamed800(); o.description = "foo"; o.directMembersCount = "foo"; o.email = "foo"; @@ -749,7 +781,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.nonEditableAliases = buildUnnamed825(); + o.nonEditableAliases = buildUnnamed801(); } buildCounterGroup--; return o; @@ -759,7 +791,7 @@ buildCounterGroup++; if (buildCounterGroup < 3) { unittest.expect(o.adminCreated, unittest.isTrue); - checkUnnamed824(o.aliases); + checkUnnamed800(o.aliases); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.directMembersCount, unittest.equals('foo')); unittest.expect(o.email, unittest.equals('foo')); @@ -767,19 +799,19 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed825(o.nonEditableAliases); + checkUnnamed801(o.nonEditableAliases); } buildCounterGroup--; } -buildUnnamed826() { +buildUnnamed802() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed826(core.List<api.Group> o) { +checkUnnamed802(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -791,7 +823,7 @@ buildCounterGroups++; if (buildCounterGroups < 3) { o.etag = "foo"; - o.groups = buildUnnamed826(); + o.groups = buildUnnamed802(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -803,7 +835,7 @@ buildCounterGroups++; if (buildCounterGroups < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed826(o.groups); + checkUnnamed802(o.groups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -841,14 +873,14 @@ buildCounterMember--; } -buildUnnamed827() { +buildUnnamed803() { var o = new core.List<api.Member>(); o.add(buildMember()); o.add(buildMember()); return o; } -checkUnnamed827(core.List<api.Member> o) { +checkUnnamed803(core.List<api.Member> o) { unittest.expect(o, unittest.hasLength(2)); checkMember(o[0]); checkMember(o[1]); @@ -861,7 +893,7 @@ if (buildCounterMembers < 3) { o.etag = "foo"; o.kind = "foo"; - o.members = buildUnnamed827(); + o.members = buildUnnamed803(); o.nextPageToken = "foo"; } buildCounterMembers--; @@ -873,20 +905,20 @@ if (buildCounterMembers < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed827(o.members); + checkUnnamed803(o.members); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterMembers--; } -buildUnnamed828() { +buildUnnamed804() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed828(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')); @@ -899,7 +931,7 @@ if (buildCounterMobileDeviceApplications < 3) { o.displayName = "foo"; o.packageName = "foo"; - o.permission = buildUnnamed828(); + o.permission = buildUnnamed804(); o.versionCode = 42; o.versionName = "foo"; } @@ -912,60 +944,60 @@ if (buildCounterMobileDeviceApplications < 3) { unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed828(o.permission); + checkUnnamed804(o.permission); unittest.expect(o.versionCode, unittest.equals(42)); unittest.expect(o.versionName, unittest.equals('foo')); } buildCounterMobileDeviceApplications--; } -buildUnnamed829() { +buildUnnamed805() { var o = new core.List<api.MobileDeviceApplications>(); o.add(buildMobileDeviceApplications()); o.add(buildMobileDeviceApplications()); return o; } -checkUnnamed829(core.List<api.MobileDeviceApplications> o) { +checkUnnamed805(core.List<api.MobileDeviceApplications> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileDeviceApplications(o[0]); checkMobileDeviceApplications(o[1]); } -buildUnnamed830() { +buildUnnamed806() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed830(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')); } -buildUnnamed831() { +buildUnnamed807() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed831(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')); } -buildUnnamed832() { +buildUnnamed808() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed832(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')); @@ -977,7 +1009,7 @@ buildCounterMobileDevice++; if (buildCounterMobileDevice < 3) { o.adbStatus = true; - o.applications = buildUnnamed829(); + o.applications = buildUnnamed805(); o.basebandVersion = "foo"; o.bootloaderVersion = "foo"; o.brand = "foo"; @@ -987,7 +1019,7 @@ o.deviceCompromisedStatus = "foo"; o.deviceId = "foo"; o.devicePasswordStatus = "foo"; - o.email = buildUnnamed830(); + o.email = buildUnnamed806(); o.encryptionStatus = "foo"; o.etag = "foo"; o.firstSync = core.DateTime.parse("2002-02-27T14:01:02"); @@ -1001,10 +1033,10 @@ o.manufacturer = "foo"; o.meid = "foo"; o.model = "foo"; - o.name = buildUnnamed831(); + o.name = buildUnnamed807(); o.networkOperator = "foo"; o.os = "foo"; - o.otherAccountsInfo = buildUnnamed832(); + o.otherAccountsInfo = buildUnnamed808(); o.privilege = "foo"; o.releaseVersion = "foo"; o.resourceId = "foo"; @@ -1025,7 +1057,7 @@ buildCounterMobileDevice++; if (buildCounterMobileDevice < 3) { unittest.expect(o.adbStatus, unittest.isTrue); - checkUnnamed829(o.applications); + checkUnnamed805(o.applications); unittest.expect(o.basebandVersion, unittest.equals('foo')); unittest.expect(o.bootloaderVersion, unittest.equals('foo')); unittest.expect(o.brand, unittest.equals('foo')); @@ -1035,7 +1067,7 @@ unittest.expect(o.deviceCompromisedStatus, unittest.equals('foo')); unittest.expect(o.deviceId, unittest.equals('foo')); unittest.expect(o.devicePasswordStatus, unittest.equals('foo')); - checkUnnamed830(o.email); + checkUnnamed806(o.email); unittest.expect(o.encryptionStatus, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.firstSync, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -1049,10 +1081,10 @@ unittest.expect(o.manufacturer, unittest.equals('foo')); unittest.expect(o.meid, unittest.equals('foo')); unittest.expect(o.model, unittest.equals('foo')); - checkUnnamed831(o.name); + checkUnnamed807(o.name); unittest.expect(o.networkOperator, unittest.equals('foo')); unittest.expect(o.os, unittest.equals('foo')); - checkUnnamed832(o.otherAccountsInfo); + checkUnnamed808(o.otherAccountsInfo); unittest.expect(o.privilege, unittest.equals('foo')); unittest.expect(o.releaseVersion, unittest.equals('foo')); unittest.expect(o.resourceId, unittest.equals('foo')); @@ -1087,14 +1119,14 @@ buildCounterMobileDeviceAction--; } -buildUnnamed833() { +buildUnnamed809() { var o = new core.List<api.MobileDevice>(); o.add(buildMobileDevice()); o.add(buildMobileDevice()); return o; } -checkUnnamed833(core.List<api.MobileDevice> o) { +checkUnnamed809(core.List<api.MobileDevice> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileDevice(o[0]); checkMobileDevice(o[1]); @@ -1107,7 +1139,7 @@ if (buildCounterMobileDevices < 3) { o.etag = "foo"; o.kind = "foo"; - o.mobiledevices = buildUnnamed833(); + o.mobiledevices = buildUnnamed809(); o.nextPageToken = "foo"; } buildCounterMobileDevices--; @@ -1119,7 +1151,7 @@ if (buildCounterMobileDevices < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed833(o.mobiledevices); + checkUnnamed809(o.mobiledevices); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterMobileDevices--; @@ -1158,14 +1190,14 @@ buildCounterNotification--; } -buildUnnamed834() { +buildUnnamed810() { var o = new core.List<api.Notification>(); o.add(buildNotification()); o.add(buildNotification()); return o; } -checkUnnamed834(core.List<api.Notification> o) { +checkUnnamed810(core.List<api.Notification> o) { unittest.expect(o, unittest.hasLength(2)); checkNotification(o[0]); checkNotification(o[1]); @@ -1177,7 +1209,7 @@ buildCounterNotifications++; if (buildCounterNotifications < 3) { o.etag = "foo"; - o.items = buildUnnamed834(); + o.items = buildUnnamed810(); o.kind = "foo"; o.nextPageToken = "foo"; o.unreadNotificationsCount = 42; @@ -1190,7 +1222,7 @@ buildCounterNotifications++; if (buildCounterNotifications < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed834(o.items); + checkUnnamed810(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.unreadNotificationsCount, unittest.equals(42)); @@ -1233,14 +1265,14 @@ buildCounterOrgUnit--; } -buildUnnamed835() { +buildUnnamed811() { var o = new core.List<api.OrgUnit>(); o.add(buildOrgUnit()); o.add(buildOrgUnit()); return o; } -checkUnnamed835(core.List<api.OrgUnit> o) { +checkUnnamed811(core.List<api.OrgUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkOrgUnit(o[0]); checkOrgUnit(o[1]); @@ -1253,7 +1285,7 @@ if (buildCounterOrgUnits < 3) { o.etag = "foo"; o.kind = "foo"; - o.organizationUnits = buildUnnamed835(); + o.organizationUnits = buildUnnamed811(); } buildCounterOrgUnits--; return o; @@ -1264,19 +1296,19 @@ if (buildCounterOrgUnits < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed835(o.organizationUnits); + checkUnnamed811(o.organizationUnits); } buildCounterOrgUnits--; } -buildUnnamed836() { +buildUnnamed812() { var o = new core.List<api.Privilege>(); o.add(buildPrivilege()); o.add(buildPrivilege()); return o; } -checkUnnamed836(core.List<api.Privilege> o) { +checkUnnamed812(core.List<api.Privilege> o) { unittest.expect(o, unittest.hasLength(2)); checkPrivilege(o[0]); checkPrivilege(o[1]); @@ -1287,7 +1319,7 @@ var o = new api.Privilege(); buildCounterPrivilege++; if (buildCounterPrivilege < 3) { - o.childPrivileges = buildUnnamed836(); + o.childPrivileges = buildUnnamed812(); o.etag = "foo"; o.isOuScopable = true; o.kind = "foo"; @@ -1302,7 +1334,7 @@ checkPrivilege(api.Privilege o) { buildCounterPrivilege++; if (buildCounterPrivilege < 3) { - checkUnnamed836(o.childPrivileges); + checkUnnamed812(o.childPrivileges); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.isOuScopable, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -1313,14 +1345,14 @@ buildCounterPrivilege--; } -buildUnnamed837() { +buildUnnamed813() { var o = new core.List<api.Privilege>(); o.add(buildPrivilege()); o.add(buildPrivilege()); return o; } -checkUnnamed837(core.List<api.Privilege> o) { +checkUnnamed813(core.List<api.Privilege> o) { unittest.expect(o, unittest.hasLength(2)); checkPrivilege(o[0]); checkPrivilege(o[1]); @@ -1332,7 +1364,7 @@ buildCounterPrivileges++; if (buildCounterPrivileges < 3) { o.etag = "foo"; - o.items = buildUnnamed837(); + o.items = buildUnnamed813(); o.kind = "foo"; } buildCounterPrivileges--; @@ -1343,7 +1375,7 @@ buildCounterPrivileges++; if (buildCounterPrivileges < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed837(o.items); + checkUnnamed813(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPrivileges--; @@ -1370,14 +1402,14 @@ buildCounterRoleRolePrivileges--; } -buildUnnamed838() { +buildUnnamed814() { var o = new core.List<api.RoleRolePrivileges>(); o.add(buildRoleRolePrivileges()); o.add(buildRoleRolePrivileges()); return o; } -checkUnnamed838(core.List<api.RoleRolePrivileges> o) { +checkUnnamed814(core.List<api.RoleRolePrivileges> o) { unittest.expect(o, unittest.hasLength(2)); checkRoleRolePrivileges(o[0]); checkRoleRolePrivileges(o[1]); @@ -1395,7 +1427,7 @@ o.roleDescription = "foo"; o.roleId = "foo"; o.roleName = "foo"; - o.rolePrivileges = buildUnnamed838(); + o.rolePrivileges = buildUnnamed814(); } buildCounterRole--; return o; @@ -1411,7 +1443,7 @@ unittest.expect(o.roleDescription, unittest.equals('foo')); unittest.expect(o.roleId, unittest.equals('foo')); unittest.expect(o.roleName, unittest.equals('foo')); - checkUnnamed838(o.rolePrivileges); + checkUnnamed814(o.rolePrivileges); } buildCounterRole--; } @@ -1447,14 +1479,14 @@ buildCounterRoleAssignment--; } -buildUnnamed839() { +buildUnnamed815() { var o = new core.List<api.RoleAssignment>(); o.add(buildRoleAssignment()); o.add(buildRoleAssignment()); return o; } -checkUnnamed839(core.List<api.RoleAssignment> o) { +checkUnnamed815(core.List<api.RoleAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkRoleAssignment(o[0]); checkRoleAssignment(o[1]); @@ -1466,7 +1498,7 @@ buildCounterRoleAssignments++; if (buildCounterRoleAssignments < 3) { o.etag = "foo"; - o.items = buildUnnamed839(); + o.items = buildUnnamed815(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1478,21 +1510,21 @@ buildCounterRoleAssignments++; if (buildCounterRoleAssignments < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed839(o.items); + checkUnnamed815(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterRoleAssignments--; } -buildUnnamed840() { +buildUnnamed816() { var o = new core.List<api.Role>(); o.add(buildRole()); o.add(buildRole()); return o; } -checkUnnamed840(core.List<api.Role> o) { +checkUnnamed816(core.List<api.Role> o) { unittest.expect(o, unittest.hasLength(2)); checkRole(o[0]); checkRole(o[1]); @@ -1504,7 +1536,7 @@ buildCounterRoles++; if (buildCounterRoles < 3) { o.etag = "foo"; - o.items = buildUnnamed840(); + o.items = buildUnnamed816(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1516,21 +1548,21 @@ buildCounterRoles++; if (buildCounterRoles < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed840(o.items); + checkUnnamed816(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterRoles--; } -buildUnnamed841() { +buildUnnamed817() { var o = new core.List<api.SchemaFieldSpec>(); o.add(buildSchemaFieldSpec()); o.add(buildSchemaFieldSpec()); return o; } -checkUnnamed841(core.List<api.SchemaFieldSpec> o) { +checkUnnamed817(core.List<api.SchemaFieldSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSchemaFieldSpec(o[0]); checkSchemaFieldSpec(o[1]); @@ -1542,7 +1574,7 @@ buildCounterSchema++; if (buildCounterSchema < 3) { o.etag = "foo"; - o.fields = buildUnnamed841(); + o.fields = buildUnnamed817(); o.kind = "foo"; o.schemaId = "foo"; o.schemaName = "foo"; @@ -1555,7 +1587,7 @@ buildCounterSchema++; if (buildCounterSchema < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed841(o.fields); + checkUnnamed817(o.fields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.schemaId, unittest.equals('foo')); unittest.expect(o.schemaName, unittest.equals('foo')); @@ -1619,14 +1651,14 @@ buildCounterSchemaFieldSpec--; } -buildUnnamed842() { +buildUnnamed818() { var o = new core.List<api.Schema>(); o.add(buildSchema()); o.add(buildSchema()); return o; } -checkUnnamed842(core.List<api.Schema> o) { +checkUnnamed818(core.List<api.Schema> o) { unittest.expect(o, unittest.hasLength(2)); checkSchema(o[0]); checkSchema(o[1]); @@ -1639,7 +1671,7 @@ if (buildCounterSchemas < 3) { o.etag = "foo"; o.kind = "foo"; - o.schemas = buildUnnamed842(); + o.schemas = buildUnnamed818(); } buildCounterSchemas--; return o; @@ -1650,19 +1682,19 @@ if (buildCounterSchemas < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed842(o.schemas); + checkUnnamed818(o.schemas); } buildCounterSchemas--; } -buildUnnamed843() { +buildUnnamed819() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed843(core.List<core.String> o) { +checkUnnamed819(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1679,7 +1711,7 @@ o.etag = "foo"; o.kind = "foo"; o.nativeApp = true; - o.scopes = buildUnnamed843(); + o.scopes = buildUnnamed819(); o.userKey = "foo"; } buildCounterToken--; @@ -1695,20 +1727,20 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nativeApp, unittest.isTrue); - checkUnnamed843(o.scopes); + checkUnnamed819(o.scopes); unittest.expect(o.userKey, unittest.equals('foo')); } buildCounterToken--; } -buildUnnamed844() { +buildUnnamed820() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed844(core.List<api.Token> o) { +checkUnnamed820(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -1720,7 +1752,7 @@ buildCounterTokens++; if (buildCounterTokens < 3) { o.etag = "foo"; - o.items = buildUnnamed844(); + o.items = buildUnnamed820(); o.kind = "foo"; } buildCounterTokens--; @@ -1731,46 +1763,46 @@ buildCounterTokens++; if (buildCounterTokens < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed844(o.items); + checkUnnamed820(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTokens--; } -buildUnnamed845() { +buildUnnamed821() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed845(core.List<core.String> o) { +checkUnnamed821(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed846() { +buildUnnamed822() { var o = new core.Map<core.String, api.UserCustomProperties>(); o["x"] = buildUserCustomProperties(); o["y"] = buildUserCustomProperties(); return o; } -checkUnnamed846(core.Map<core.String, api.UserCustomProperties> o) { +checkUnnamed822(core.Map<core.String, api.UserCustomProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkUserCustomProperties(o["x"]); checkUserCustomProperties(o["y"]); } -buildUnnamed847() { +buildUnnamed823() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed847(core.List<core.String> o) { +checkUnnamed823(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1783,10 +1815,10 @@ if (buildCounterUser < 3) { o.addresses = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.agreedToTerms = true; - o.aliases = buildUnnamed845(); + o.aliases = buildUnnamed821(); o.changePasswordAtNextLogin = true; o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.customSchemas = buildUnnamed846(); + o.customSchemas = buildUnnamed822(); o.customerId = "foo"; o.deletionTime = core.DateTime.parse("2002-02-27T14:01:02"); o.emails = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; @@ -1802,12 +1834,13 @@ o.isEnforcedIn2Sv = true; o.isEnrolledIn2Sv = true; o.isMailboxSetup = true; + o.keywords = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.kind = "foo"; o.languages = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.lastLoginTime = core.DateTime.parse("2002-02-27T14:01:02"); o.locations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.name = buildUserName(); - o.nonEditableAliases = buildUnnamed847(); + o.nonEditableAliases = buildUnnamed823(); o.notes = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.orgUnitPath = "foo"; o.organizations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; @@ -1832,10 +1865,10 @@ if (buildCounterUser < 3) { var casted3 = (o.addresses) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); unittest.expect(o.agreedToTerms, unittest.isTrue); - checkUnnamed845(o.aliases); + checkUnnamed821(o.aliases); unittest.expect(o.changePasswordAtNextLogin, unittest.isTrue); unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed846(o.customSchemas); + checkUnnamed822(o.customSchemas); unittest.expect(o.customerId, unittest.equals('foo')); unittest.expect(o.deletionTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); var casted4 = (o.emails) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -1851,26 +1884,27 @@ unittest.expect(o.isEnforcedIn2Sv, unittest.isTrue); unittest.expect(o.isEnrolledIn2Sv, unittest.isTrue); unittest.expect(o.isMailboxSetup, unittest.isTrue); + var casted7 = (o.keywords) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - var casted7 = (o.languages) 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.languages) 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')); unittest.expect(o.lastLoginTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - var casted8 = (o.locations) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); + var casted9 = (o.locations) 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')); checkUserName(o.name); - checkUnnamed847(o.nonEditableAliases); - var casted9 = (o.notes) 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')); + checkUnnamed823(o.nonEditableAliases); + var casted10 = (o.notes) 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')); unittest.expect(o.orgUnitPath, unittest.equals('foo')); - var casted10 = (o.organizations) as core.Map; unittest.expect(casted10, unittest.hasLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["string"], unittest.equals('foo')); + var casted11 = (o.organizations) 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')); unittest.expect(o.password, unittest.equals('foo')); - var casted11 = (o.phones) 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.posixAccounts) 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')); + var casted12 = (o.phones) 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')); + var casted13 = (o.posixAccounts) as core.Map; unittest.expect(casted13, unittest.hasLength(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest.expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["string"], unittest.equals('foo')); unittest.expect(o.primaryEmail, unittest.equals('foo')); - var casted13 = (o.relations) as core.Map; unittest.expect(casted13, unittest.hasLength(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest.expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["string"], unittest.equals('foo')); - var casted14 = (o.sshPublicKeys) as core.Map; unittest.expect(casted14, unittest.hasLength(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest.expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["string"], unittest.equals('foo')); + var casted14 = (o.relations) as core.Map; unittest.expect(casted14, unittest.hasLength(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest.expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["string"], unittest.equals('foo')); + var casted15 = (o.sshPublicKeys) 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')); unittest.expect(o.suspended, unittest.isTrue); unittest.expect(o.suspensionReason, unittest.equals('foo')); unittest.expect(o.thumbnailPhotoEtag, unittest.equals('foo')); unittest.expect(o.thumbnailPhotoUrl, unittest.equals('foo')); - var casted15 = (o.websites) 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.websites) 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')); } buildCounterUser--; } @@ -1948,8 +1982,8 @@ checkUserCustomProperties(api.UserCustomProperties o) { unittest.expect(o, unittest.hasLength(2)); - var casted16 = (o["a"]) 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["b"]) 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 casted17 = (o["a"]) 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["b"]) 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')); } core.int buildCounterUserEmail = 0; @@ -2029,6 +2063,29 @@ buildCounterUserIm--; } +core.int buildCounterUserKeyword = 0; +buildUserKeyword() { + var o = new api.UserKeyword(); + buildCounterUserKeyword++; + if (buildCounterUserKeyword < 3) { + o.customType = "foo"; + o.type = "foo"; + o.value = "foo"; + } + buildCounterUserKeyword--; + return o; +} + +checkUserKeyword(api.UserKeyword o) { + buildCounterUserKeyword++; + if (buildCounterUserKeyword < 3) { + unittest.expect(o.customType, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterUserKeyword--; +} + core.int buildCounterUserLanguage = 0; buildUserLanguage() { var o = new api.UserLanguage(); @@ -2345,14 +2402,14 @@ buildCounterUserWebsite--; } -buildUnnamed848() { +buildUnnamed824() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed848(core.List<api.User> o) { +checkUnnamed824(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -2367,7 +2424,7 @@ o.kind = "foo"; o.nextPageToken = "foo"; o.triggerEvent = "foo"; - o.users = buildUnnamed848(); + o.users = buildUnnamed824(); } buildCounterUsers--; return o; @@ -2380,7 +2437,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.triggerEvent, unittest.equals('foo')); - checkUnnamed848(o.users); + checkUnnamed824(o.users); } buildCounterUsers--; } @@ -2410,14 +2467,14 @@ buildCounterVerificationCode--; } -buildUnnamed849() { +buildUnnamed825() { var o = new core.List<api.VerificationCode>(); o.add(buildVerificationCode()); o.add(buildVerificationCode()); return o; } -checkUnnamed849(core.List<api.VerificationCode> o) { +checkUnnamed825(core.List<api.VerificationCode> o) { unittest.expect(o, unittest.hasLength(2)); checkVerificationCode(o[0]); checkVerificationCode(o[1]); @@ -2429,7 +2486,7 @@ buildCounterVerificationCodes++; if (buildCounterVerificationCodes < 3) { o.etag = "foo"; - o.items = buildUnnamed849(); + o.items = buildUnnamed825(); o.kind = "foo"; } buildCounterVerificationCodes--; @@ -2440,59 +2497,59 @@ buildCounterVerificationCodes++; if (buildCounterVerificationCodes < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed849(o.items); + checkUnnamed825(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterVerificationCodes--; } -buildUnnamed850() { +buildUnnamed826() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed850(core.List<core.String> o) { +checkUnnamed826(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed851() { +buildUnnamed827() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed851(core.List<core.String> o) { +checkUnnamed827(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed852() { +buildUnnamed828() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed852(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')); } -buildUnnamed853() { +buildUnnamed829() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed853(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')); @@ -2608,6 +2665,15 @@ }); + unittest.group("obj-schema-ChromeOsMoveDevicesToOu", () { + unittest.test("to-json--from-json", () { + var o = buildChromeOsMoveDevicesToOu(); + var od = new api.ChromeOsMoveDevicesToOu.fromJson(o.toJson()); + checkChromeOsMoveDevicesToOu(od); + }); + }); + + unittest.group("obj-schema-Customer", () { unittest.test("to-json--from-json", () { var o = buildCustomer(); @@ -2950,6 +3016,15 @@ }); + unittest.group("obj-schema-UserKeyword", () { + unittest.test("to-json--from-json", () { + var o = buildUserKeyword(); + var od = new api.UserKeyword.fromJson(o.toJson()); + checkUserKeyword(od); + }); + }); + + unittest.group("obj-schema-UserLanguage", () { unittest.test("to-json--from-json", () { var o = buildUserLanguage(); @@ -3493,6 +3568,63 @@ }))); }); + unittest.test("method--moveDevicesToOu", () { + + var mock = new HttpServerMock(); + api.ChromeosdevicesResourceApi res = new api.AdminApi(mock).chromeosdevices; + var arg_request = buildChromeOsMoveDevicesToOu(); + var arg_customerId = "foo"; + var arg_orgUnitPath = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.ChromeOsMoveDevicesToOu.fromJson(json); + checkChromeOsMoveDevicesToOu(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("admin/directory/v1/")); + pathOffset += 19; + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("customer/")); + pathOffset += 9; + index = path.indexOf("/devices/chromeos/moveDevicesToOu", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_customerId")); + unittest.expect(path.substring(pathOffset, pathOffset + 33), unittest.equals("/devices/chromeos/moveDevicesToOu")); + pathOffset += 33; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["orgUnitPath"].first, unittest.equals(arg_orgUnitPath)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = ""; + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.moveDevicesToOu(arg_request, arg_customerId, arg_orgUnitPath).then(unittest.expectAsync1((_) {})); + }); + unittest.test("method--patch", () { var mock = new HttpServerMock(); @@ -5617,7 +5749,7 @@ var mock = new HttpServerMock(); api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed850(); + var arg_orgUnitPath = buildUnnamed826(); mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -5671,7 +5803,7 @@ var mock = new HttpServerMock(); api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed851(); + var arg_orgUnitPath = buildUnnamed827(); mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -5842,7 +5974,7 @@ api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_request = buildOrgUnit(); var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed852(); + var arg_orgUnitPath = buildUnnamed828(); mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.OrgUnit.fromJson(json); checkOrgUnit(obj); @@ -5902,7 +6034,7 @@ api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_request = buildOrgUnit(); var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed853(); + var arg_orgUnitPath = buildUnnamed829(); mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.OrgUnit.fromJson(json); checkOrgUnit(obj);
diff --git a/generated/googleapis/test/admin/reports_v1_test.dart b/generated/googleapis/test/admin/reports_v1_test.dart index b184458..22a3e8e 100644 --- a/generated/googleapis/test/admin/reports_v1_test.dart +++ b/generated/googleapis/test/admin/reports_v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed699() { +buildUnnamed674() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed699(core.List<api.Activity> o) { +checkUnnamed674(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -70,7 +70,7 @@ buildCounterActivities++; if (buildCounterActivities < 3) { o.etag = "foo"; - o.items = buildUnnamed699(); + o.items = buildUnnamed674(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -82,7 +82,7 @@ buildCounterActivities++; if (buildCounterActivities < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed699(o.items); + checkUnnamed674(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -114,27 +114,27 @@ buildCounterActivityActor--; } -buildUnnamed700() { +buildUnnamed675() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed700(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')); } -buildUnnamed701() { +buildUnnamed676() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed701(core.List<core.String> o) { +checkUnnamed676(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -147,8 +147,8 @@ if (buildCounterActivityEventsParameters < 3) { o.boolValue = true; o.intValue = "foo"; - o.multiIntValue = buildUnnamed700(); - o.multiValue = buildUnnamed701(); + o.multiIntValue = buildUnnamed675(); + o.multiValue = buildUnnamed676(); o.name = "foo"; o.value = "foo"; } @@ -161,22 +161,22 @@ if (buildCounterActivityEventsParameters < 3) { unittest.expect(o.boolValue, unittest.isTrue); unittest.expect(o.intValue, unittest.equals('foo')); - checkUnnamed700(o.multiIntValue); - checkUnnamed701(o.multiValue); + checkUnnamed675(o.multiIntValue); + checkUnnamed676(o.multiValue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); } buildCounterActivityEventsParameters--; } -buildUnnamed702() { +buildUnnamed677() { var o = new core.List<api.ActivityEventsParameters>(); o.add(buildActivityEventsParameters()); o.add(buildActivityEventsParameters()); return o; } -checkUnnamed702(core.List<api.ActivityEventsParameters> o) { +checkUnnamed677(core.List<api.ActivityEventsParameters> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityEventsParameters(o[0]); checkActivityEventsParameters(o[1]); @@ -188,7 +188,7 @@ buildCounterActivityEvents++; if (buildCounterActivityEvents < 3) { o.name = "foo"; - o.parameters = buildUnnamed702(); + o.parameters = buildUnnamed677(); o.type = "foo"; } buildCounterActivityEvents--; @@ -199,20 +199,20 @@ buildCounterActivityEvents++; if (buildCounterActivityEvents < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed702(o.parameters); + checkUnnamed677(o.parameters); unittest.expect(o.type, unittest.equals('foo')); } buildCounterActivityEvents--; } -buildUnnamed703() { +buildUnnamed678() { var o = new core.List<api.ActivityEvents>(); o.add(buildActivityEvents()); o.add(buildActivityEvents()); return o; } -checkUnnamed703(core.List<api.ActivityEvents> o) { +checkUnnamed678(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 = buildUnnamed703(); + o.events = buildUnnamed678(); 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')); - checkUnnamed703(o.events); + checkUnnamed678(o.events); checkActivityId(o.id); unittest.expect(o.ipAddress, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -274,14 +274,14 @@ buildCounterActivity--; } -buildUnnamed704() { +buildUnnamed679() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed704(core.Map<core.String, core.String> o) { +checkUnnamed679(core.Map<core.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 = buildUnnamed704(); + o.params = buildUnnamed679(); 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')); - checkUnnamed704(o.params); + checkUnnamed679(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -349,30 +349,30 @@ buildCounterUsageReportEntity--; } -buildUnnamed705() { +buildUnnamed680() { 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; } -checkUnnamed705(core.Map<core.String, core.Object> o) { +checkUnnamed680(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')); } -buildUnnamed706() { +buildUnnamed681() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed705()); - o.add(buildUnnamed705()); + o.add(buildUnnamed680()); + o.add(buildUnnamed680()); return o; } -checkUnnamed706(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed681(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed705(o[0]); - checkUnnamed705(o[1]); + checkUnnamed680(o[0]); + checkUnnamed680(o[1]); } core.int buildCounterUsageReportParameters = 0; @@ -383,7 +383,7 @@ o.boolValue = true; o.datetimeValue = core.DateTime.parse("2002-02-27T14:01:02"); o.intValue = "foo"; - o.msgValue = buildUnnamed706(); + o.msgValue = buildUnnamed681(); o.name = "foo"; o.stringValue = "foo"; } @@ -397,21 +397,21 @@ unittest.expect(o.boolValue, unittest.isTrue); unittest.expect(o.datetimeValue, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.intValue, unittest.equals('foo')); - checkUnnamed706(o.msgValue); + checkUnnamed681(o.msgValue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.stringValue, unittest.equals('foo')); } buildCounterUsageReportParameters--; } -buildUnnamed707() { +buildUnnamed682() { var o = new core.List<api.UsageReportParameters>(); o.add(buildUsageReportParameters()); o.add(buildUsageReportParameters()); return o; } -checkUnnamed707(core.List<api.UsageReportParameters> o) { +checkUnnamed682(core.List<api.UsageReportParameters> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReportParameters(o[0]); checkUsageReportParameters(o[1]); @@ -426,7 +426,7 @@ o.entity = buildUsageReportEntity(); o.etag = "foo"; o.kind = "foo"; - o.parameters = buildUnnamed707(); + o.parameters = buildUnnamed682(); } buildCounterUsageReport--; return o; @@ -439,19 +439,19 @@ checkUsageReportEntity(o.entity); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed707(o.parameters); + checkUnnamed682(o.parameters); } buildCounterUsageReport--; } -buildUnnamed708() { +buildUnnamed683() { var o = new core.List<api.UsageReport>(); o.add(buildUsageReport()); o.add(buildUsageReport()); return o; } -checkUnnamed708(core.List<api.UsageReport> o) { +checkUnnamed683(core.List<api.UsageReport> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReport(o[0]); checkUsageReport(o[1]); @@ -478,14 +478,14 @@ buildCounterUsageReportsWarningsData--; } -buildUnnamed709() { +buildUnnamed684() { var o = new core.List<api.UsageReportsWarningsData>(); o.add(buildUsageReportsWarningsData()); o.add(buildUsageReportsWarningsData()); return o; } -checkUnnamed709(core.List<api.UsageReportsWarningsData> o) { +checkUnnamed684(core.List<api.UsageReportsWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReportsWarningsData(o[0]); checkUsageReportsWarningsData(o[1]); @@ -497,7 +497,7 @@ buildCounterUsageReportsWarnings++; if (buildCounterUsageReportsWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed709(); + o.data = buildUnnamed684(); o.message = "foo"; } buildCounterUsageReportsWarnings--; @@ -508,20 +508,20 @@ buildCounterUsageReportsWarnings++; if (buildCounterUsageReportsWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed709(o.data); + checkUnnamed684(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterUsageReportsWarnings--; } -buildUnnamed710() { +buildUnnamed685() { var o = new core.List<api.UsageReportsWarnings>(); o.add(buildUsageReportsWarnings()); o.add(buildUsageReportsWarnings()); return o; } -checkUnnamed710(core.List<api.UsageReportsWarnings> o) { +checkUnnamed685(core.List<api.UsageReportsWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReportsWarnings(o[0]); checkUsageReportsWarnings(o[1]); @@ -535,8 +535,8 @@ o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; - o.usageReports = buildUnnamed708(); - o.warnings = buildUnnamed710(); + o.usageReports = buildUnnamed683(); + o.warnings = buildUnnamed685(); } buildCounterUsageReports--; return o; @@ -548,8 +548,8 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed708(o.usageReports); - checkUnnamed710(o.warnings); + checkUnnamed683(o.usageReports); + checkUnnamed685(o.warnings); } buildCounterUsageReports--; }
diff --git a/generated/googleapis/test/analytics/v3_test.dart b/generated/googleapis/test/analytics/v3_test.dart index fd0b865..f690927 100644 --- a/generated/googleapis/test/analytics/v3_test.dart +++ b/generated/googleapis/test/analytics/v3_test.dart
@@ -72,14 +72,14 @@ buildCounterAccountChildLink--; } -buildUnnamed1007() { +buildUnnamed983() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1007(core.List<core.String> o) { +checkUnnamed983(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -90,7 +90,7 @@ var o = new api.AccountPermissions(); buildCounterAccountPermissions++; if (buildCounterAccountPermissions < 3) { - o.effective = buildUnnamed1007(); + o.effective = buildUnnamed983(); } buildCounterAccountPermissions--; return o; @@ -99,7 +99,7 @@ checkAccountPermissions(api.AccountPermissions o) { buildCounterAccountPermissions++; if (buildCounterAccountPermissions < 3) { - checkUnnamed1007(o.effective); + checkUnnamed983(o.effective); } buildCounterAccountPermissions--; } @@ -164,14 +164,14 @@ buildCounterAccountRef--; } -buildUnnamed1008() { +buildUnnamed984() { var o = new core.List<api.AccountSummary>(); o.add(buildAccountSummary()); o.add(buildAccountSummary()); return o; } -checkUnnamed1008(core.List<api.AccountSummary> o) { +checkUnnamed984(core.List<api.AccountSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountSummary(o[0]); checkAccountSummary(o[1]); @@ -182,7 +182,7 @@ var o = new api.AccountSummaries(); buildCounterAccountSummaries++; if (buildCounterAccountSummaries < 3) { - o.items = buildUnnamed1008(); + o.items = buildUnnamed984(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -198,7 +198,7 @@ checkAccountSummaries(api.AccountSummaries o) { buildCounterAccountSummaries++; if (buildCounterAccountSummaries < 3) { - checkUnnamed1008(o.items); + checkUnnamed984(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -210,14 +210,14 @@ buildCounterAccountSummaries--; } -buildUnnamed1009() { +buildUnnamed985() { var o = new core.List<api.WebPropertySummary>(); o.add(buildWebPropertySummary()); o.add(buildWebPropertySummary()); return o; } -checkUnnamed1009(core.List<api.WebPropertySummary> o) { +checkUnnamed985(core.List<api.WebPropertySummary> o) { unittest.expect(o, unittest.hasLength(2)); checkWebPropertySummary(o[0]); checkWebPropertySummary(o[1]); @@ -232,7 +232,7 @@ o.kind = "foo"; o.name = "foo"; o.starred = true; - o.webProperties = buildUnnamed1009(); + o.webProperties = buildUnnamed985(); } buildCounterAccountSummary--; return o; @@ -245,7 +245,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.starred, unittest.isTrue); - checkUnnamed1009(o.webProperties); + checkUnnamed985(o.webProperties); } buildCounterAccountSummary--; } @@ -279,14 +279,14 @@ buildCounterAccountTicket--; } -buildUnnamed1010() { +buildUnnamed986() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed1010(core.List<api.Account> o) { +checkUnnamed986(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -297,7 +297,7 @@ var o = new api.Accounts(); buildCounterAccounts++; if (buildCounterAccounts < 3) { - o.items = buildUnnamed1010(); + o.items = buildUnnamed986(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -313,7 +313,7 @@ checkAccounts(api.Accounts o) { buildCounterAccounts++; if (buildCounterAccounts < 3) { - checkUnnamed1010(o.items); + checkUnnamed986(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -348,14 +348,14 @@ buildCounterAdWordsAccount--; } -buildUnnamed1011() { +buildUnnamed987() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1011(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')); @@ -366,7 +366,7 @@ var o = new api.AnalyticsDataimportDeleteUploadDataRequest(); buildCounterAnalyticsDataimportDeleteUploadDataRequest++; if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) { - o.customDataImportUids = buildUnnamed1011(); + o.customDataImportUids = buildUnnamed987(); } buildCounterAnalyticsDataimportDeleteUploadDataRequest--; return o; @@ -375,19 +375,19 @@ checkAnalyticsDataimportDeleteUploadDataRequest(api.AnalyticsDataimportDeleteUploadDataRequest o) { buildCounterAnalyticsDataimportDeleteUploadDataRequest++; if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) { - checkUnnamed1011(o.customDataImportUids); + checkUnnamed987(o.customDataImportUids); } buildCounterAnalyticsDataimportDeleteUploadDataRequest--; } -buildUnnamed1012() { +buildUnnamed988() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1012(core.Map<core.String, core.String> o) { +checkUnnamed988(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -398,7 +398,7 @@ var o = new api.Column(); buildCounterColumn++; if (buildCounterColumn < 3) { - o.attributes = buildUnnamed1012(); + o.attributes = buildUnnamed988(); o.id = "foo"; o.kind = "foo"; } @@ -409,34 +409,34 @@ checkColumn(api.Column o) { buildCounterColumn++; if (buildCounterColumn < 3) { - checkUnnamed1012(o.attributes); + checkUnnamed988(o.attributes); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterColumn--; } -buildUnnamed1013() { +buildUnnamed989() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1013(core.List<core.String> o) { +checkUnnamed989(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1014() { +buildUnnamed990() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed1014(core.List<api.Column> o) { +checkUnnamed990(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -447,9 +447,9 @@ var o = new api.Columns(); buildCounterColumns++; if (buildCounterColumns < 3) { - o.attributeNames = buildUnnamed1013(); + o.attributeNames = buildUnnamed989(); o.etag = "foo"; - o.items = buildUnnamed1014(); + o.items = buildUnnamed990(); o.kind = "foo"; o.totalResults = 42; } @@ -460,9 +460,9 @@ checkColumns(api.Columns o) { buildCounterColumns++; if (buildCounterColumns < 3) { - checkUnnamed1013(o.attributeNames); + checkUnnamed989(o.attributeNames); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1014(o.items); + checkUnnamed990(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalResults, unittest.equals(42)); } @@ -511,14 +511,14 @@ buildCounterCustomDataSourceParentLink--; } -buildUnnamed1015() { +buildUnnamed991() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1015(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')); @@ -538,7 +538,7 @@ o.kind = "foo"; o.name = "foo"; o.parentLink = buildCustomDataSourceParentLink(); - o.profilesLinked = buildUnnamed1015(); + o.profilesLinked = buildUnnamed991(); o.selfLink = "foo"; o.type = "foo"; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); @@ -561,7 +561,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkCustomDataSourceParentLink(o.parentLink); - checkUnnamed1015(o.profilesLinked); + checkUnnamed991(o.profilesLinked); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -571,14 +571,14 @@ buildCounterCustomDataSource--; } -buildUnnamed1016() { +buildUnnamed992() { var o = new core.List<api.CustomDataSource>(); o.add(buildCustomDataSource()); o.add(buildCustomDataSource()); return o; } -checkUnnamed1016(core.List<api.CustomDataSource> o) { +checkUnnamed992(core.List<api.CustomDataSource> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomDataSource(o[0]); checkCustomDataSource(o[1]); @@ -589,7 +589,7 @@ var o = new api.CustomDataSources(); buildCounterCustomDataSources++; if (buildCounterCustomDataSources < 3) { - o.items = buildUnnamed1016(); + o.items = buildUnnamed992(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -605,7 +605,7 @@ checkCustomDataSources(api.CustomDataSources o) { buildCounterCustomDataSources++; if (buildCounterCustomDataSources < 3) { - checkUnnamed1016(o.items); + checkUnnamed992(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -679,14 +679,14 @@ buildCounterCustomDimension--; } -buildUnnamed1017() { +buildUnnamed993() { var o = new core.List<api.CustomDimension>(); o.add(buildCustomDimension()); o.add(buildCustomDimension()); return o; } -checkUnnamed1017(core.List<api.CustomDimension> o) { +checkUnnamed993(core.List<api.CustomDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomDimension(o[0]); checkCustomDimension(o[1]); @@ -697,7 +697,7 @@ var o = new api.CustomDimensions(); buildCounterCustomDimensions++; if (buildCounterCustomDimensions < 3) { - o.items = buildUnnamed1017(); + o.items = buildUnnamed993(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -713,7 +713,7 @@ checkCustomDimensions(api.CustomDimensions o) { buildCounterCustomDimensions++; if (buildCounterCustomDimensions < 3) { - checkUnnamed1017(o.items); + checkUnnamed993(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -793,14 +793,14 @@ buildCounterCustomMetric--; } -buildUnnamed1018() { +buildUnnamed994() { var o = new core.List<api.CustomMetric>(); o.add(buildCustomMetric()); o.add(buildCustomMetric()); return o; } -checkUnnamed1018(core.List<api.CustomMetric> o) { +checkUnnamed994(core.List<api.CustomMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomMetric(o[0]); checkCustomMetric(o[1]); @@ -811,7 +811,7 @@ var o = new api.CustomMetrics(); buildCounterCustomMetrics++; if (buildCounterCustomMetrics < 3) { - o.items = buildUnnamed1018(); + o.items = buildUnnamed994(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -827,7 +827,7 @@ checkCustomMetrics(api.CustomMetrics o) { buildCounterCustomMetrics++; if (buildCounterCustomMetrics < 3) { - checkUnnamed1018(o.items); + checkUnnamed994(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -839,14 +839,14 @@ buildCounterCustomMetrics--; } -buildUnnamed1019() { +buildUnnamed995() { var o = new core.List<api.AdWordsAccount>(); o.add(buildAdWordsAccount()); o.add(buildAdWordsAccount()); return o; } -checkUnnamed1019(core.List<api.AdWordsAccount> o) { +checkUnnamed995(core.List<api.AdWordsAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkAdWordsAccount(o[0]); checkAdWordsAccount(o[1]); @@ -871,14 +871,14 @@ buildCounterEntityAdWordsLinkEntity--; } -buildUnnamed1020() { +buildUnnamed996() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1020(core.List<core.String> o) { +checkUnnamed996(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -889,12 +889,12 @@ var o = new api.EntityAdWordsLink(); buildCounterEntityAdWordsLink++; if (buildCounterEntityAdWordsLink < 3) { - o.adWordsAccounts = buildUnnamed1019(); + o.adWordsAccounts = buildUnnamed995(); o.entity = buildEntityAdWordsLinkEntity(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.profileIds = buildUnnamed1020(); + o.profileIds = buildUnnamed996(); o.selfLink = "foo"; } buildCounterEntityAdWordsLink--; @@ -904,25 +904,25 @@ checkEntityAdWordsLink(api.EntityAdWordsLink o) { buildCounterEntityAdWordsLink++; if (buildCounterEntityAdWordsLink < 3) { - checkUnnamed1019(o.adWordsAccounts); + checkUnnamed995(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')); - checkUnnamed1020(o.profileIds); + checkUnnamed996(o.profileIds); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterEntityAdWordsLink--; } -buildUnnamed1021() { +buildUnnamed997() { var o = new core.List<api.EntityAdWordsLink>(); o.add(buildEntityAdWordsLink()); o.add(buildEntityAdWordsLink()); return o; } -checkUnnamed1021(core.List<api.EntityAdWordsLink> o) { +checkUnnamed997(core.List<api.EntityAdWordsLink> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAdWordsLink(o[0]); checkEntityAdWordsLink(o[1]); @@ -933,7 +933,7 @@ var o = new api.EntityAdWordsLinks(); buildCounterEntityAdWordsLinks++; if (buildCounterEntityAdWordsLinks < 3) { - o.items = buildUnnamed1021(); + o.items = buildUnnamed997(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -948,7 +948,7 @@ checkEntityAdWordsLinks(api.EntityAdWordsLinks o) { buildCounterEntityAdWordsLinks++; if (buildCounterEntityAdWordsLinks < 3) { - checkUnnamed1021(o.items); + checkUnnamed997(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -982,27 +982,27 @@ buildCounterEntityUserLinkEntity--; } -buildUnnamed1022() { +buildUnnamed998() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1022(core.List<core.String> o) { +checkUnnamed998(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1023() { +buildUnnamed999() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1023(core.List<core.String> o) { +checkUnnamed999(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1013,8 +1013,8 @@ var o = new api.EntityUserLinkPermissions(); buildCounterEntityUserLinkPermissions++; if (buildCounterEntityUserLinkPermissions < 3) { - o.effective = buildUnnamed1022(); - o.local = buildUnnamed1023(); + o.effective = buildUnnamed998(); + o.local = buildUnnamed999(); } buildCounterEntityUserLinkPermissions--; return o; @@ -1023,8 +1023,8 @@ checkEntityUserLinkPermissions(api.EntityUserLinkPermissions o) { buildCounterEntityUserLinkPermissions++; if (buildCounterEntityUserLinkPermissions < 3) { - checkUnnamed1022(o.effective); - checkUnnamed1023(o.local); + checkUnnamed998(o.effective); + checkUnnamed999(o.local); } buildCounterEntityUserLinkPermissions--; } @@ -1058,14 +1058,14 @@ buildCounterEntityUserLink--; } -buildUnnamed1024() { +buildUnnamed1000() { var o = new core.List<api.EntityUserLink>(); o.add(buildEntityUserLink()); o.add(buildEntityUserLink()); return o; } -checkUnnamed1024(core.List<api.EntityUserLink> o) { +checkUnnamed1000(core.List<api.EntityUserLink> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityUserLink(o[0]); checkEntityUserLink(o[1]); @@ -1076,7 +1076,7 @@ var o = new api.EntityUserLinks(); buildCounterEntityUserLinks++; if (buildCounterEntityUserLinks < 3) { - o.items = buildUnnamed1024(); + o.items = buildUnnamed1000(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1091,7 +1091,7 @@ checkEntityUserLinks(api.EntityUserLinks o) { buildCounterEntityUserLinks++; if (buildCounterEntityUserLinks < 3) { - checkUnnamed1024(o.items); + checkUnnamed1000(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -1150,14 +1150,14 @@ buildCounterExperimentVariations--; } -buildUnnamed1025() { +buildUnnamed1001() { var o = new core.List<api.ExperimentVariations>(); o.add(buildExperimentVariations()); o.add(buildExperimentVariations()); return o; } -checkUnnamed1025(core.List<api.ExperimentVariations> o) { +checkUnnamed1001(core.List<api.ExperimentVariations> o) { unittest.expect(o, unittest.hasLength(2)); checkExperimentVariations(o[0]); checkExperimentVariations(o[1]); @@ -1192,7 +1192,7 @@ o.status = "foo"; o.trafficCoverage = 42.0; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); - o.variations = buildUnnamed1025(); + o.variations = buildUnnamed1001(); o.webPropertyId = "foo"; o.winnerConfidenceLevel = 42.0; o.winnerFound = true; @@ -1228,7 +1228,7 @@ unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.trafficCoverage, unittest.equals(42.0)); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed1025(o.variations); + checkUnnamed1001(o.variations); unittest.expect(o.webPropertyId, unittest.equals('foo')); unittest.expect(o.winnerConfidenceLevel, unittest.equals(42.0)); unittest.expect(o.winnerFound, unittest.isTrue); @@ -1236,14 +1236,14 @@ buildCounterExperiment--; } -buildUnnamed1026() { +buildUnnamed1002() { var o = new core.List<api.Experiment>(); o.add(buildExperiment()); o.add(buildExperiment()); return o; } -checkUnnamed1026(core.List<api.Experiment> o) { +checkUnnamed1002(core.List<api.Experiment> o) { unittest.expect(o, unittest.hasLength(2)); checkExperiment(o[0]); checkExperiment(o[1]); @@ -1254,7 +1254,7 @@ var o = new api.Experiments(); buildCounterExperiments++; if (buildCounterExperiments < 3) { - o.items = buildUnnamed1026(); + o.items = buildUnnamed1002(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1270,7 +1270,7 @@ checkExperiments(api.Experiments o) { buildCounterExperiments++; if (buildCounterExperiments < 3) { - checkUnnamed1026(o.items); + checkUnnamed1002(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -1518,14 +1518,14 @@ buildCounterFilterRef--; } -buildUnnamed1027() { +buildUnnamed1003() { var o = new core.List<api.Filter>(); o.add(buildFilter()); o.add(buildFilter()); return o; } -checkUnnamed1027(core.List<api.Filter> o) { +checkUnnamed1003(core.List<api.Filter> o) { unittest.expect(o, unittest.hasLength(2)); checkFilter(o[0]); checkFilter(o[1]); @@ -1536,7 +1536,7 @@ var o = new api.Filters(); buildCounterFilters++; if (buildCounterFilters < 3) { - o.items = buildUnnamed1027(); + o.items = buildUnnamed1003(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1552,7 +1552,7 @@ checkFilters(api.Filters o) { buildCounterFilters++; if (buildCounterFilters < 3) { - checkUnnamed1027(o.items); + checkUnnamed1003(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -1587,14 +1587,14 @@ buildCounterGaDataColumnHeaders--; } -buildUnnamed1028() { +buildUnnamed1004() { var o = new core.List<api.GaDataColumnHeaders>(); o.add(buildGaDataColumnHeaders()); o.add(buildGaDataColumnHeaders()); return o; } -checkUnnamed1028(core.List<api.GaDataColumnHeaders> o) { +checkUnnamed1004(core.List<api.GaDataColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataColumnHeaders(o[0]); checkGaDataColumnHeaders(o[1]); @@ -1623,14 +1623,14 @@ buildCounterGaDataDataTableCols--; } -buildUnnamed1029() { +buildUnnamed1005() { var o = new core.List<api.GaDataDataTableCols>(); o.add(buildGaDataDataTableCols()); o.add(buildGaDataDataTableCols()); return o; } -checkUnnamed1029(core.List<api.GaDataDataTableCols> o) { +checkUnnamed1005(core.List<api.GaDataDataTableCols> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataDataTableCols(o[0]); checkGaDataDataTableCols(o[1]); @@ -1655,14 +1655,14 @@ buildCounterGaDataDataTableRowsC--; } -buildUnnamed1030() { +buildUnnamed1006() { var o = new core.List<api.GaDataDataTableRowsC>(); o.add(buildGaDataDataTableRowsC()); o.add(buildGaDataDataTableRowsC()); return o; } -checkUnnamed1030(core.List<api.GaDataDataTableRowsC> o) { +checkUnnamed1006(core.List<api.GaDataDataTableRowsC> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataDataTableRowsC(o[0]); checkGaDataDataTableRowsC(o[1]); @@ -1673,7 +1673,7 @@ var o = new api.GaDataDataTableRows(); buildCounterGaDataDataTableRows++; if (buildCounterGaDataDataTableRows < 3) { - o.c = buildUnnamed1030(); + o.c = buildUnnamed1006(); } buildCounterGaDataDataTableRows--; return o; @@ -1682,19 +1682,19 @@ checkGaDataDataTableRows(api.GaDataDataTableRows o) { buildCounterGaDataDataTableRows++; if (buildCounterGaDataDataTableRows < 3) { - checkUnnamed1030(o.c); + checkUnnamed1006(o.c); } buildCounterGaDataDataTableRows--; } -buildUnnamed1031() { +buildUnnamed1007() { var o = new core.List<api.GaDataDataTableRows>(); o.add(buildGaDataDataTableRows()); o.add(buildGaDataDataTableRows()); return o; } -checkUnnamed1031(core.List<api.GaDataDataTableRows> o) { +checkUnnamed1007(core.List<api.GaDataDataTableRows> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataDataTableRows(o[0]); checkGaDataDataTableRows(o[1]); @@ -1705,8 +1705,8 @@ var o = new api.GaDataDataTable(); buildCounterGaDataDataTable++; if (buildCounterGaDataDataTable < 3) { - o.cols = buildUnnamed1029(); - o.rows = buildUnnamed1031(); + o.cols = buildUnnamed1005(); + o.rows = buildUnnamed1007(); } buildCounterGaDataDataTable--; return o; @@ -1715,8 +1715,8 @@ checkGaDataDataTable(api.GaDataDataTable o) { buildCounterGaDataDataTable++; if (buildCounterGaDataDataTable < 3) { - checkUnnamed1029(o.cols); - checkUnnamed1031(o.rows); + checkUnnamed1005(o.cols); + checkUnnamed1007(o.rows); } buildCounterGaDataDataTable--; } @@ -1750,27 +1750,27 @@ buildCounterGaDataProfileInfo--; } -buildUnnamed1032() { +buildUnnamed1008() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1032(core.List<core.String> o) { +checkUnnamed1008(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1033() { +buildUnnamed1009() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1033(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')); @@ -1786,10 +1786,10 @@ o.filters = "foo"; o.ids = "foo"; o.max_results = 42; - o.metrics = buildUnnamed1032(); + o.metrics = buildUnnamed1008(); o.samplingLevel = "foo"; o.segment = "foo"; - o.sort = buildUnnamed1033(); + o.sort = buildUnnamed1009(); o.start_date = "foo"; o.start_index = 42; } @@ -1805,50 +1805,50 @@ unittest.expect(o.filters, unittest.equals('foo')); unittest.expect(o.ids, unittest.equals('foo')); unittest.expect(o.max_results, unittest.equals(42)); - checkUnnamed1032(o.metrics); + checkUnnamed1008(o.metrics); unittest.expect(o.samplingLevel, unittest.equals('foo')); unittest.expect(o.segment, unittest.equals('foo')); - checkUnnamed1033(o.sort); + checkUnnamed1009(o.sort); unittest.expect(o.start_date, unittest.equals('foo')); unittest.expect(o.start_index, unittest.equals(42)); } buildCounterGaDataQuery--; } -buildUnnamed1034() { +buildUnnamed1010() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1034(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')); } -buildUnnamed1035() { +buildUnnamed1011() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed1034()); - o.add(buildUnnamed1034()); + o.add(buildUnnamed1010()); + o.add(buildUnnamed1010()); return o; } -checkUnnamed1035(core.List<core.List<core.String>> o) { +checkUnnamed1011(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1034(o[0]); - checkUnnamed1034(o[1]); + checkUnnamed1010(o[0]); + checkUnnamed1010(o[1]); } -buildUnnamed1036() { +buildUnnamed1012() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1036(core.Map<core.String, core.String> o) { +checkUnnamed1012(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1859,7 +1859,7 @@ var o = new api.GaData(); buildCounterGaData++; if (buildCounterGaData < 3) { - o.columnHeaders = buildUnnamed1028(); + o.columnHeaders = buildUnnamed1004(); o.containsSampledData = true; o.dataLastRefreshed = "foo"; o.dataTable = buildGaDataDataTable(); @@ -1870,12 +1870,12 @@ o.previousLink = "foo"; o.profileInfo = buildGaDataProfileInfo(); o.query = buildGaDataQuery(); - o.rows = buildUnnamed1035(); + o.rows = buildUnnamed1011(); o.sampleSize = "foo"; o.sampleSpace = "foo"; o.selfLink = "foo"; o.totalResults = 42; - o.totalsForAllResults = buildUnnamed1036(); + o.totalsForAllResults = buildUnnamed1012(); } buildCounterGaData--; return o; @@ -1884,7 +1884,7 @@ checkGaData(api.GaData o) { buildCounterGaData++; if (buildCounterGaData < 3) { - checkUnnamed1028(o.columnHeaders); + checkUnnamed1004(o.columnHeaders); unittest.expect(o.containsSampledData, unittest.isTrue); unittest.expect(o.dataLastRefreshed, unittest.equals('foo')); checkGaDataDataTable(o.dataTable); @@ -1895,12 +1895,12 @@ unittest.expect(o.previousLink, unittest.equals('foo')); checkGaDataProfileInfo(o.profileInfo); checkGaDataQuery(o.query); - checkUnnamed1035(o.rows); + checkUnnamed1011(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)); - checkUnnamed1036(o.totalsForAllResults); + checkUnnamed1012(o.totalsForAllResults); } buildCounterGaData--; } @@ -1932,14 +1932,14 @@ buildCounterGoalEventDetailsEventConditions--; } -buildUnnamed1037() { +buildUnnamed1013() { var o = new core.List<api.GoalEventDetailsEventConditions>(); o.add(buildGoalEventDetailsEventConditions()); o.add(buildGoalEventDetailsEventConditions()); return o; } -checkUnnamed1037(core.List<api.GoalEventDetailsEventConditions> o) { +checkUnnamed1013(core.List<api.GoalEventDetailsEventConditions> o) { unittest.expect(o, unittest.hasLength(2)); checkGoalEventDetailsEventConditions(o[0]); checkGoalEventDetailsEventConditions(o[1]); @@ -1950,7 +1950,7 @@ var o = new api.GoalEventDetails(); buildCounterGoalEventDetails++; if (buildCounterGoalEventDetails < 3) { - o.eventConditions = buildUnnamed1037(); + o.eventConditions = buildUnnamed1013(); o.useEventValue = true; } buildCounterGoalEventDetails--; @@ -1960,7 +1960,7 @@ checkGoalEventDetails(api.GoalEventDetails o) { buildCounterGoalEventDetails++; if (buildCounterGoalEventDetails < 3) { - checkUnnamed1037(o.eventConditions); + checkUnnamed1013(o.eventConditions); unittest.expect(o.useEventValue, unittest.isTrue); } buildCounterGoalEventDetails--; @@ -2010,14 +2010,14 @@ buildCounterGoalUrlDestinationDetailsSteps--; } -buildUnnamed1038() { +buildUnnamed1014() { var o = new core.List<api.GoalUrlDestinationDetailsSteps>(); o.add(buildGoalUrlDestinationDetailsSteps()); o.add(buildGoalUrlDestinationDetailsSteps()); return o; } -checkUnnamed1038(core.List<api.GoalUrlDestinationDetailsSteps> o) { +checkUnnamed1014(core.List<api.GoalUrlDestinationDetailsSteps> o) { unittest.expect(o, unittest.hasLength(2)); checkGoalUrlDestinationDetailsSteps(o[0]); checkGoalUrlDestinationDetailsSteps(o[1]); @@ -2031,7 +2031,7 @@ o.caseSensitive = true; o.firstStepRequired = true; o.matchType = "foo"; - o.steps = buildUnnamed1038(); + o.steps = buildUnnamed1014(); o.url = "foo"; } buildCounterGoalUrlDestinationDetails--; @@ -2044,7 +2044,7 @@ unittest.expect(o.caseSensitive, unittest.isTrue); unittest.expect(o.firstStepRequired, unittest.isTrue); unittest.expect(o.matchType, unittest.equals('foo')); - checkUnnamed1038(o.steps); + checkUnnamed1014(o.steps); unittest.expect(o.url, unittest.equals('foo')); } buildCounterGoalUrlDestinationDetails--; @@ -2145,14 +2145,14 @@ buildCounterGoal--; } -buildUnnamed1039() { +buildUnnamed1015() { var o = new core.List<api.Goal>(); o.add(buildGoal()); o.add(buildGoal()); return o; } -checkUnnamed1039(core.List<api.Goal> o) { +checkUnnamed1015(core.List<api.Goal> o) { unittest.expect(o, unittest.hasLength(2)); checkGoal(o[0]); checkGoal(o[1]); @@ -2163,7 +2163,7 @@ var o = new api.Goals(); buildCounterGoals++; if (buildCounterGoals < 3) { - o.items = buildUnnamed1039(); + o.items = buildUnnamed1015(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -2179,7 +2179,7 @@ checkGoals(api.Goals o) { buildCounterGoals++; if (buildCounterGoals < 3) { - checkUnnamed1039(o.items); + checkUnnamed1015(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -2278,14 +2278,14 @@ buildCounterMcfDataColumnHeaders--; } -buildUnnamed1040() { +buildUnnamed1016() { var o = new core.List<api.McfDataColumnHeaders>(); o.add(buildMcfDataColumnHeaders()); o.add(buildMcfDataColumnHeaders()); return o; } -checkUnnamed1040(core.List<api.McfDataColumnHeaders> o) { +checkUnnamed1016(core.List<api.McfDataColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkMcfDataColumnHeaders(o[0]); checkMcfDataColumnHeaders(o[1]); @@ -2320,27 +2320,27 @@ buildCounterMcfDataProfileInfo--; } -buildUnnamed1041() { +buildUnnamed1017() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1041(core.List<core.String> o) { +checkUnnamed1017(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1042() { +buildUnnamed1018() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1042(core.List<core.String> o) { +checkUnnamed1018(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2356,10 +2356,10 @@ o.filters = "foo"; o.ids = "foo"; o.max_results = 42; - o.metrics = buildUnnamed1041(); + o.metrics = buildUnnamed1017(); o.samplingLevel = "foo"; o.segment = "foo"; - o.sort = buildUnnamed1042(); + o.sort = buildUnnamed1018(); o.start_date = "foo"; o.start_index = 42; } @@ -2375,10 +2375,10 @@ unittest.expect(o.filters, unittest.equals('foo')); unittest.expect(o.ids, unittest.equals('foo')); unittest.expect(o.max_results, unittest.equals(42)); - checkUnnamed1041(o.metrics); + checkUnnamed1017(o.metrics); unittest.expect(o.samplingLevel, unittest.equals('foo')); unittest.expect(o.segment, unittest.equals('foo')); - checkUnnamed1042(o.sort); + checkUnnamed1018(o.sort); unittest.expect(o.start_date, unittest.equals('foo')); unittest.expect(o.start_index, unittest.equals(42)); } @@ -2406,14 +2406,14 @@ buildCounterMcfDataRowsConversionPathValue--; } -buildUnnamed1043() { +buildUnnamed1019() { var o = new core.List<api.McfDataRowsConversionPathValue>(); o.add(buildMcfDataRowsConversionPathValue()); o.add(buildMcfDataRowsConversionPathValue()); return o; } -checkUnnamed1043(core.List<api.McfDataRowsConversionPathValue> o) { +checkUnnamed1019(core.List<api.McfDataRowsConversionPathValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMcfDataRowsConversionPathValue(o[0]); checkMcfDataRowsConversionPathValue(o[1]); @@ -2424,7 +2424,7 @@ var o = new api.McfDataRows(); buildCounterMcfDataRows++; if (buildCounterMcfDataRows < 3) { - o.conversionPathValue = buildUnnamed1043(); + o.conversionPathValue = buildUnnamed1019(); o.primitiveValue = "foo"; } buildCounterMcfDataRows--; @@ -2434,46 +2434,46 @@ checkMcfDataRows(api.McfDataRows o) { buildCounterMcfDataRows++; if (buildCounterMcfDataRows < 3) { - checkUnnamed1043(o.conversionPathValue); + checkUnnamed1019(o.conversionPathValue); unittest.expect(o.primitiveValue, unittest.equals('foo')); } buildCounterMcfDataRows--; } -buildUnnamed1044() { +buildUnnamed1020() { var o = new core.List<api.McfDataRows>(); o.add(buildMcfDataRows()); o.add(buildMcfDataRows()); return o; } -checkUnnamed1044(core.List<api.McfDataRows> o) { +checkUnnamed1020(core.List<api.McfDataRows> o) { unittest.expect(o, unittest.hasLength(2)); checkMcfDataRows(o[0]); checkMcfDataRows(o[1]); } -buildUnnamed1045() { +buildUnnamed1021() { var o = new core.List<core.List<api.McfDataRows>>(); - o.add(buildUnnamed1044()); - o.add(buildUnnamed1044()); + o.add(buildUnnamed1020()); + o.add(buildUnnamed1020()); return o; } -checkUnnamed1045(core.List<core.List<api.McfDataRows>> o) { +checkUnnamed1021(core.List<core.List<api.McfDataRows>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1044(o[0]); - checkUnnamed1044(o[1]); + checkUnnamed1020(o[0]); + checkUnnamed1020(o[1]); } -buildUnnamed1046() { +buildUnnamed1022() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1046(core.Map<core.String, core.String> o) { +checkUnnamed1022(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -2484,7 +2484,7 @@ var o = new api.McfData(); buildCounterMcfData++; if (buildCounterMcfData < 3) { - o.columnHeaders = buildUnnamed1040(); + o.columnHeaders = buildUnnamed1016(); o.containsSampledData = true; o.id = "foo"; o.itemsPerPage = 42; @@ -2493,12 +2493,12 @@ o.previousLink = "foo"; o.profileInfo = buildMcfDataProfileInfo(); o.query = buildMcfDataQuery(); - o.rows = buildUnnamed1045(); + o.rows = buildUnnamed1021(); o.sampleSize = "foo"; o.sampleSpace = "foo"; o.selfLink = "foo"; o.totalResults = 42; - o.totalsForAllResults = buildUnnamed1046(); + o.totalsForAllResults = buildUnnamed1022(); } buildCounterMcfData--; return o; @@ -2507,7 +2507,7 @@ checkMcfData(api.McfData o) { buildCounterMcfData++; if (buildCounterMcfData < 3) { - checkUnnamed1040(o.columnHeaders); + checkUnnamed1016(o.columnHeaders); unittest.expect(o.containsSampledData, unittest.isTrue); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.itemsPerPage, unittest.equals(42)); @@ -2516,12 +2516,12 @@ unittest.expect(o.previousLink, unittest.equals('foo')); checkMcfDataProfileInfo(o.profileInfo); checkMcfDataQuery(o.query); - checkUnnamed1045(o.rows); + checkUnnamed1021(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)); - checkUnnamed1046(o.totalsForAllResults); + checkUnnamed1022(o.totalsForAllResults); } buildCounterMcfData--; } @@ -2568,14 +2568,14 @@ buildCounterProfileParentLink--; } -buildUnnamed1047() { +buildUnnamed1023() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1047(core.List<core.String> o) { +checkUnnamed1023(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2586,7 +2586,7 @@ var o = new api.ProfilePermissions(); buildCounterProfilePermissions++; if (buildCounterProfilePermissions < 3) { - o.effective = buildUnnamed1047(); + o.effective = buildUnnamed1023(); } buildCounterProfilePermissions--; return o; @@ -2595,7 +2595,7 @@ checkProfilePermissions(api.ProfilePermissions o) { buildCounterProfilePermissions++; if (buildCounterProfilePermissions < 3) { - checkUnnamed1047(o.effective); + checkUnnamed1023(o.effective); } buildCounterProfilePermissions--; } @@ -2698,14 +2698,14 @@ buildCounterProfileFilterLink--; } -buildUnnamed1048() { +buildUnnamed1024() { var o = new core.List<api.ProfileFilterLink>(); o.add(buildProfileFilterLink()); o.add(buildProfileFilterLink()); return o; } -checkUnnamed1048(core.List<api.ProfileFilterLink> o) { +checkUnnamed1024(core.List<api.ProfileFilterLink> o) { unittest.expect(o, unittest.hasLength(2)); checkProfileFilterLink(o[0]); checkProfileFilterLink(o[1]); @@ -2716,7 +2716,7 @@ var o = new api.ProfileFilterLinks(); buildCounterProfileFilterLinks++; if (buildCounterProfileFilterLinks < 3) { - o.items = buildUnnamed1048(); + o.items = buildUnnamed1024(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -2732,7 +2732,7 @@ checkProfileFilterLinks(api.ProfileFilterLinks o) { buildCounterProfileFilterLinks++; if (buildCounterProfileFilterLinks < 3) { - checkUnnamed1048(o.items); + checkUnnamed1024(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -2802,14 +2802,14 @@ buildCounterProfileSummary--; } -buildUnnamed1049() { +buildUnnamed1025() { var o = new core.List<api.Profile>(); o.add(buildProfile()); o.add(buildProfile()); return o; } -checkUnnamed1049(core.List<api.Profile> o) { +checkUnnamed1025(core.List<api.Profile> o) { unittest.expect(o, unittest.hasLength(2)); checkProfile(o[0]); checkProfile(o[1]); @@ -2820,7 +2820,7 @@ var o = new api.Profiles(); buildCounterProfiles++; if (buildCounterProfiles < 3) { - o.items = buildUnnamed1049(); + o.items = buildUnnamed1025(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -2836,7 +2836,7 @@ checkProfiles(api.Profiles o) { buildCounterProfiles++; if (buildCounterProfiles < 3) { - checkUnnamed1049(o.items); + checkUnnamed1025(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -2871,14 +2871,14 @@ buildCounterRealtimeDataColumnHeaders--; } -buildUnnamed1050() { +buildUnnamed1026() { var o = new core.List<api.RealtimeDataColumnHeaders>(); o.add(buildRealtimeDataColumnHeaders()); o.add(buildRealtimeDataColumnHeaders()); return o; } -checkUnnamed1050(core.List<api.RealtimeDataColumnHeaders> o) { +checkUnnamed1026(core.List<api.RealtimeDataColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkRealtimeDataColumnHeaders(o[0]); checkRealtimeDataColumnHeaders(o[1]); @@ -2913,27 +2913,27 @@ buildCounterRealtimeDataProfileInfo--; } -buildUnnamed1051() { +buildUnnamed1027() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1051(core.List<core.String> o) { +checkUnnamed1027(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1052() { +buildUnnamed1028() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1052(core.List<core.String> o) { +checkUnnamed1028(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2948,8 +2948,8 @@ o.filters = "foo"; o.ids = "foo"; o.max_results = 42; - o.metrics = buildUnnamed1051(); - o.sort = buildUnnamed1052(); + o.metrics = buildUnnamed1027(); + o.sort = buildUnnamed1028(); } buildCounterRealtimeDataQuery--; return o; @@ -2962,46 +2962,46 @@ unittest.expect(o.filters, unittest.equals('foo')); unittest.expect(o.ids, unittest.equals('foo')); unittest.expect(o.max_results, unittest.equals(42)); - checkUnnamed1051(o.metrics); - checkUnnamed1052(o.sort); + checkUnnamed1027(o.metrics); + checkUnnamed1028(o.sort); } buildCounterRealtimeDataQuery--; } -buildUnnamed1053() { +buildUnnamed1029() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1053(core.List<core.String> o) { +checkUnnamed1029(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1054() { +buildUnnamed1030() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed1053()); - o.add(buildUnnamed1053()); + o.add(buildUnnamed1029()); + o.add(buildUnnamed1029()); return o; } -checkUnnamed1054(core.List<core.List<core.String>> o) { +checkUnnamed1030(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1053(o[0]); - checkUnnamed1053(o[1]); + checkUnnamed1029(o[0]); + checkUnnamed1029(o[1]); } -buildUnnamed1055() { +buildUnnamed1031() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1055(core.Map<core.String, core.String> o) { +checkUnnamed1031(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -3012,15 +3012,15 @@ var o = new api.RealtimeData(); buildCounterRealtimeData++; if (buildCounterRealtimeData < 3) { - o.columnHeaders = buildUnnamed1050(); + o.columnHeaders = buildUnnamed1026(); o.id = "foo"; o.kind = "foo"; o.profileInfo = buildRealtimeDataProfileInfo(); o.query = buildRealtimeDataQuery(); - o.rows = buildUnnamed1054(); + o.rows = buildUnnamed1030(); o.selfLink = "foo"; o.totalResults = 42; - o.totalsForAllResults = buildUnnamed1055(); + o.totalsForAllResults = buildUnnamed1031(); } buildCounterRealtimeData--; return o; @@ -3029,15 +3029,15 @@ checkRealtimeData(api.RealtimeData o) { buildCounterRealtimeData++; if (buildCounterRealtimeData < 3) { - checkUnnamed1050(o.columnHeaders); + checkUnnamed1026(o.columnHeaders); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkRealtimeDataProfileInfo(o.profileInfo); checkRealtimeDataQuery(o.query); - checkUnnamed1054(o.rows); + checkUnnamed1030(o.rows); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalResults, unittest.equals(42)); - checkUnnamed1055(o.totalsForAllResults); + checkUnnamed1031(o.totalsForAllResults); } buildCounterRealtimeData--; } @@ -3061,27 +3061,27 @@ buildCounterRemarketingAudienceAudienceDefinition--; } -buildUnnamed1056() { +buildUnnamed1032() { var o = new core.List<api.LinkedForeignAccount>(); o.add(buildLinkedForeignAccount()); o.add(buildLinkedForeignAccount()); return o; } -checkUnnamed1056(core.List<api.LinkedForeignAccount> o) { +checkUnnamed1032(core.List<api.LinkedForeignAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkLinkedForeignAccount(o[0]); checkLinkedForeignAccount(o[1]); } -buildUnnamed1057() { +buildUnnamed1033() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1057(core.List<core.String> o) { +checkUnnamed1033(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3142,8 +3142,8 @@ o.id = "foo"; o.internalWebPropertyId = "foo"; o.kind = "foo"; - o.linkedAdAccounts = buildUnnamed1056(); - o.linkedViews = buildUnnamed1057(); + o.linkedAdAccounts = buildUnnamed1032(); + o.linkedViews = buildUnnamed1033(); o.name = "foo"; o.stateBasedAudienceDefinition = buildRemarketingAudienceStateBasedAudienceDefinition(); o.updated = core.DateTime.parse("2002-02-27T14:01:02"); @@ -3164,8 +3164,8 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1056(o.linkedAdAccounts); - checkUnnamed1057(o.linkedViews); + checkUnnamed1032(o.linkedAdAccounts); + checkUnnamed1033(o.linkedViews); unittest.expect(o.name, unittest.equals('foo')); checkRemarketingAudienceStateBasedAudienceDefinition(o.stateBasedAudienceDefinition); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -3174,14 +3174,14 @@ buildCounterRemarketingAudience--; } -buildUnnamed1058() { +buildUnnamed1034() { var o = new core.List<api.RemarketingAudience>(); o.add(buildRemarketingAudience()); o.add(buildRemarketingAudience()); return o; } -checkUnnamed1058(core.List<api.RemarketingAudience> o) { +checkUnnamed1034(core.List<api.RemarketingAudience> o) { unittest.expect(o, unittest.hasLength(2)); checkRemarketingAudience(o[0]); checkRemarketingAudience(o[1]); @@ -3192,7 +3192,7 @@ var o = new api.RemarketingAudiences(); buildCounterRemarketingAudiences++; if (buildCounterRemarketingAudiences < 3) { - o.items = buildUnnamed1058(); + o.items = buildUnnamed1034(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3208,7 +3208,7 @@ checkRemarketingAudiences(api.RemarketingAudiences o) { buildCounterRemarketingAudiences++; if (buildCounterRemarketingAudiences < 3) { - checkUnnamed1058(o.items); + checkUnnamed1034(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3255,14 +3255,14 @@ buildCounterSegment--; } -buildUnnamed1059() { +buildUnnamed1035() { var o = new core.List<api.Segment>(); o.add(buildSegment()); o.add(buildSegment()); return o; } -checkUnnamed1059(core.List<api.Segment> o) { +checkUnnamed1035(core.List<api.Segment> o) { unittest.expect(o, unittest.hasLength(2)); checkSegment(o[0]); checkSegment(o[1]); @@ -3273,7 +3273,7 @@ var o = new api.Segments(); buildCounterSegments++; if (buildCounterSegments < 3) { - o.items = buildUnnamed1059(); + o.items = buildUnnamed1035(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3289,7 +3289,7 @@ checkSegments(api.Segments o) { buildCounterSegments++; if (buildCounterSegments < 3) { - checkUnnamed1059(o.items); + checkUnnamed1035(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3396,14 +3396,14 @@ buildCounterUnsampledReport--; } -buildUnnamed1060() { +buildUnnamed1036() { var o = new core.List<api.UnsampledReport>(); o.add(buildUnsampledReport()); o.add(buildUnsampledReport()); return o; } -checkUnnamed1060(core.List<api.UnsampledReport> o) { +checkUnnamed1036(core.List<api.UnsampledReport> o) { unittest.expect(o, unittest.hasLength(2)); checkUnsampledReport(o[0]); checkUnsampledReport(o[1]); @@ -3414,7 +3414,7 @@ var o = new api.UnsampledReports(); buildCounterUnsampledReports++; if (buildCounterUnsampledReports < 3) { - o.items = buildUnnamed1060(); + o.items = buildUnnamed1036(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3430,7 +3430,7 @@ checkUnsampledReports(api.UnsampledReports o) { buildCounterUnsampledReports++; if (buildCounterUnsampledReports < 3) { - checkUnnamed1060(o.items); + checkUnnamed1036(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3442,14 +3442,14 @@ buildCounterUnsampledReports--; } -buildUnnamed1061() { +buildUnnamed1037() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1061(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')); @@ -3462,7 +3462,7 @@ if (buildCounterUpload < 3) { o.accountId = "foo"; o.customDataSourceId = "foo"; - o.errors = buildUnnamed1061(); + o.errors = buildUnnamed1037(); o.id = "foo"; o.kind = "foo"; o.status = "foo"; @@ -3476,7 +3476,7 @@ if (buildCounterUpload < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.customDataSourceId, unittest.equals('foo')); - checkUnnamed1061(o.errors); + checkUnnamed1037(o.errors); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); @@ -3484,14 +3484,14 @@ buildCounterUpload--; } -buildUnnamed1062() { +buildUnnamed1038() { var o = new core.List<api.Upload>(); o.add(buildUpload()); o.add(buildUpload()); return o; } -checkUnnamed1062(core.List<api.Upload> o) { +checkUnnamed1038(core.List<api.Upload> o) { unittest.expect(o, unittest.hasLength(2)); checkUpload(o[0]); checkUpload(o[1]); @@ -3502,7 +3502,7 @@ var o = new api.Uploads(); buildCounterUploads++; if (buildCounterUploads < 3) { - o.items = buildUnnamed1062(); + o.items = buildUnnamed1038(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3517,7 +3517,7 @@ checkUploads(api.Uploads o) { buildCounterUploads++; if (buildCounterUploads < 3) { - checkUnnamed1062(o.items); + checkUnnamed1038(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3580,14 +3580,14 @@ buildCounterWebPropertyRef--; } -buildUnnamed1063() { +buildUnnamed1039() { var o = new core.List<api.ProfileSummary>(); o.add(buildProfileSummary()); o.add(buildProfileSummary()); return o; } -checkUnnamed1063(core.List<api.ProfileSummary> o) { +checkUnnamed1039(core.List<api.ProfileSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkProfileSummary(o[0]); checkProfileSummary(o[1]); @@ -3603,7 +3603,7 @@ o.kind = "foo"; o.level = "foo"; o.name = "foo"; - o.profiles = buildUnnamed1063(); + o.profiles = buildUnnamed1039(); o.starred = true; o.websiteUrl = "foo"; } @@ -3619,21 +3619,21 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.level, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1063(o.profiles); + checkUnnamed1039(o.profiles); unittest.expect(o.starred, unittest.isTrue); unittest.expect(o.websiteUrl, unittest.equals('foo')); } buildCounterWebPropertySummary--; } -buildUnnamed1064() { +buildUnnamed1040() { var o = new core.List<api.Webproperty>(); o.add(buildWebproperty()); o.add(buildWebproperty()); return o; } -checkUnnamed1064(core.List<api.Webproperty> o) { +checkUnnamed1040(core.List<api.Webproperty> o) { unittest.expect(o, unittest.hasLength(2)); checkWebproperty(o[0]); checkWebproperty(o[1]); @@ -3644,7 +3644,7 @@ var o = new api.Webproperties(); buildCounterWebproperties++; if (buildCounterWebproperties < 3) { - o.items = buildUnnamed1064(); + o.items = buildUnnamed1040(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3660,7 +3660,7 @@ checkWebproperties(api.Webproperties o) { buildCounterWebproperties++; if (buildCounterWebproperties < 3) { - checkUnnamed1064(o.items); + checkUnnamed1040(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3714,14 +3714,14 @@ buildCounterWebpropertyParentLink--; } -buildUnnamed1065() { +buildUnnamed1041() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1065(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')); @@ -3732,7 +3732,7 @@ var o = new api.WebpropertyPermissions(); buildCounterWebpropertyPermissions++; if (buildCounterWebpropertyPermissions < 3) { - o.effective = buildUnnamed1065(); + o.effective = buildUnnamed1041(); } buildCounterWebpropertyPermissions--; return o; @@ -3741,7 +3741,7 @@ checkWebpropertyPermissions(api.WebpropertyPermissions o) { buildCounterWebpropertyPermissions++; if (buildCounterWebpropertyPermissions < 3) { - checkUnnamed1065(o.effective); + checkUnnamed1041(o.effective); } buildCounterWebpropertyPermissions--; }
diff --git a/generated/googleapis/test/analyticsreporting/v4_test.dart b/generated/googleapis/test/analyticsreporting/v4_test.dart index d3a4977..6fd91fa 100644 --- a/generated/googleapis/test/analyticsreporting/v4_test.dart +++ b/generated/googleapis/test/analyticsreporting/v4_test.dart
@@ -74,14 +74,14 @@ buildCounterCohort--; } -buildUnnamed234() { +buildUnnamed209() { var o = new core.List<api.Cohort>(); o.add(buildCohort()); o.add(buildCohort()); return o; } -checkUnnamed234(core.List<api.Cohort> o) { +checkUnnamed209(core.List<api.Cohort> o) { unittest.expect(o, unittest.hasLength(2)); checkCohort(o[0]); checkCohort(o[1]); @@ -92,7 +92,7 @@ var o = new api.CohortGroup(); buildCounterCohortGroup++; if (buildCounterCohortGroup < 3) { - o.cohorts = buildUnnamed234(); + o.cohorts = buildUnnamed209(); o.lifetimeValue = true; } buildCounterCohortGroup--; @@ -102,20 +102,20 @@ checkCohortGroup(api.CohortGroup o) { buildCounterCohortGroup++; if (buildCounterCohortGroup < 3) { - checkUnnamed234(o.cohorts); + checkUnnamed209(o.cohorts); unittest.expect(o.lifetimeValue, unittest.isTrue); } buildCounterCohortGroup--; } -buildUnnamed235() { +buildUnnamed210() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed235(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')); @@ -126,7 +126,7 @@ var o = new api.ColumnHeader(); buildCounterColumnHeader++; if (buildCounterColumnHeader < 3) { - o.dimensions = buildUnnamed235(); + o.dimensions = buildUnnamed210(); o.metricHeader = buildMetricHeader(); } buildCounterColumnHeader--; @@ -136,7 +136,7 @@ checkColumnHeader(api.ColumnHeader o) { buildCounterColumnHeader++; if (buildCounterColumnHeader < 3) { - checkUnnamed235(o.dimensions); + checkUnnamed210(o.dimensions); checkMetricHeader(o.metricHeader); } buildCounterColumnHeader--; @@ -163,27 +163,27 @@ buildCounterDateRange--; } -buildUnnamed236() { +buildUnnamed211() { var o = new core.List<api.PivotValueRegion>(); o.add(buildPivotValueRegion()); o.add(buildPivotValueRegion()); return o; } -checkUnnamed236(core.List<api.PivotValueRegion> o) { +checkUnnamed211(core.List<api.PivotValueRegion> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotValueRegion(o[0]); checkPivotValueRegion(o[1]); } -buildUnnamed237() { +buildUnnamed212() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed237(core.List<core.String> o) { +checkUnnamed212(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -194,8 +194,8 @@ var o = new api.DateRangeValues(); buildCounterDateRangeValues++; if (buildCounterDateRangeValues < 3) { - o.pivotValueRegions = buildUnnamed236(); - o.values = buildUnnamed237(); + o.pivotValueRegions = buildUnnamed211(); + o.values = buildUnnamed212(); } buildCounterDateRangeValues--; return o; @@ -204,20 +204,20 @@ checkDateRangeValues(api.DateRangeValues o) { buildCounterDateRangeValues++; if (buildCounterDateRangeValues < 3) { - checkUnnamed236(o.pivotValueRegions); - checkUnnamed237(o.values); + checkUnnamed211(o.pivotValueRegions); + checkUnnamed212(o.values); } buildCounterDateRangeValues--; } -buildUnnamed238() { +buildUnnamed213() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed238(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')); @@ -228,7 +228,7 @@ var o = new api.Dimension(); buildCounterDimension++; if (buildCounterDimension < 3) { - o.histogramBuckets = buildUnnamed238(); + o.histogramBuckets = buildUnnamed213(); o.name = "foo"; } buildCounterDimension--; @@ -238,20 +238,20 @@ checkDimension(api.Dimension o) { buildCounterDimension++; if (buildCounterDimension < 3) { - checkUnnamed238(o.histogramBuckets); + checkUnnamed213(o.histogramBuckets); unittest.expect(o.name, unittest.equals('foo')); } buildCounterDimension--; } -buildUnnamed239() { +buildUnnamed214() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed239(core.List<core.String> o) { +checkUnnamed214(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -264,7 +264,7 @@ if (buildCounterDimensionFilter < 3) { o.caseSensitive = true; o.dimensionName = "foo"; - o.expressions = buildUnnamed239(); + o.expressions = buildUnnamed214(); o.not = true; o.operator = "foo"; } @@ -277,21 +277,21 @@ if (buildCounterDimensionFilter < 3) { unittest.expect(o.caseSensitive, unittest.isTrue); unittest.expect(o.dimensionName, unittest.equals('foo')); - checkUnnamed239(o.expressions); + checkUnnamed214(o.expressions); unittest.expect(o.not, unittest.isTrue); unittest.expect(o.operator, unittest.equals('foo')); } buildCounterDimensionFilter--; } -buildUnnamed240() { +buildUnnamed215() { var o = new core.List<api.DimensionFilter>(); o.add(buildDimensionFilter()); o.add(buildDimensionFilter()); return o; } -checkUnnamed240(core.List<api.DimensionFilter> o) { +checkUnnamed215(core.List<api.DimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilter(o[0]); checkDimensionFilter(o[1]); @@ -302,7 +302,7 @@ var o = new api.DimensionFilterClause(); buildCounterDimensionFilterClause++; if (buildCounterDimensionFilterClause < 3) { - o.filters = buildUnnamed240(); + o.filters = buildUnnamed215(); o.operator = "foo"; } buildCounterDimensionFilterClause--; @@ -312,7 +312,7 @@ checkDimensionFilterClause(api.DimensionFilterClause o) { buildCounterDimensionFilterClause++; if (buildCounterDimensionFilterClause < 3) { - checkUnnamed240(o.filters); + checkUnnamed215(o.filters); unittest.expect(o.operator, unittest.equals('foo')); } buildCounterDimensionFilterClause--; @@ -341,14 +341,14 @@ buildCounterDynamicSegment--; } -buildUnnamed241() { +buildUnnamed216() { var o = new core.List<api.ReportRequest>(); o.add(buildReportRequest()); o.add(buildReportRequest()); return o; } -checkUnnamed241(core.List<api.ReportRequest> o) { +checkUnnamed216(core.List<api.ReportRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRequest(o[0]); checkReportRequest(o[1]); @@ -359,7 +359,7 @@ var o = new api.GetReportsRequest(); buildCounterGetReportsRequest++; if (buildCounterGetReportsRequest < 3) { - o.reportRequests = buildUnnamed241(); + o.reportRequests = buildUnnamed216(); } buildCounterGetReportsRequest--; return o; @@ -368,19 +368,19 @@ checkGetReportsRequest(api.GetReportsRequest o) { buildCounterGetReportsRequest++; if (buildCounterGetReportsRequest < 3) { - checkUnnamed241(o.reportRequests); + checkUnnamed216(o.reportRequests); } buildCounterGetReportsRequest--; } -buildUnnamed242() { +buildUnnamed217() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed242(core.List<api.Report> o) { +checkUnnamed217(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -391,7 +391,7 @@ var o = new api.GetReportsResponse(); buildCounterGetReportsResponse++; if (buildCounterGetReportsResponse < 3) { - o.reports = buildUnnamed242(); + o.reports = buildUnnamed217(); } buildCounterGetReportsResponse--; return o; @@ -400,7 +400,7 @@ checkGetReportsResponse(api.GetReportsResponse o) { buildCounterGetReportsResponse++; if (buildCounterGetReportsResponse < 3) { - checkUnnamed242(o.reports); + checkUnnamed217(o.reports); } buildCounterGetReportsResponse--; } @@ -453,14 +453,14 @@ buildCounterMetricFilter--; } -buildUnnamed243() { +buildUnnamed218() { var o = new core.List<api.MetricFilter>(); o.add(buildMetricFilter()); o.add(buildMetricFilter()); return o; } -checkUnnamed243(core.List<api.MetricFilter> o) { +checkUnnamed218(core.List<api.MetricFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricFilter(o[0]); checkMetricFilter(o[1]); @@ -471,7 +471,7 @@ var o = new api.MetricFilterClause(); buildCounterMetricFilterClause++; if (buildCounterMetricFilterClause < 3) { - o.filters = buildUnnamed243(); + o.filters = buildUnnamed218(); o.operator = "foo"; } buildCounterMetricFilterClause--; @@ -481,33 +481,33 @@ checkMetricFilterClause(api.MetricFilterClause o) { buildCounterMetricFilterClause++; if (buildCounterMetricFilterClause < 3) { - checkUnnamed243(o.filters); + checkUnnamed218(o.filters); unittest.expect(o.operator, unittest.equals('foo')); } buildCounterMetricFilterClause--; } -buildUnnamed244() { +buildUnnamed219() { var o = new core.List<api.MetricHeaderEntry>(); o.add(buildMetricHeaderEntry()); o.add(buildMetricHeaderEntry()); return o; } -checkUnnamed244(core.List<api.MetricHeaderEntry> o) { +checkUnnamed219(core.List<api.MetricHeaderEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricHeaderEntry(o[0]); checkMetricHeaderEntry(o[1]); } -buildUnnamed245() { +buildUnnamed220() { var o = new core.List<api.PivotHeader>(); o.add(buildPivotHeader()); o.add(buildPivotHeader()); return o; } -checkUnnamed245(core.List<api.PivotHeader> o) { +checkUnnamed220(core.List<api.PivotHeader> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotHeader(o[0]); checkPivotHeader(o[1]); @@ -518,8 +518,8 @@ var o = new api.MetricHeader(); buildCounterMetricHeader++; if (buildCounterMetricHeader < 3) { - o.metricHeaderEntries = buildUnnamed244(); - o.pivotHeaders = buildUnnamed245(); + o.metricHeaderEntries = buildUnnamed219(); + o.pivotHeaders = buildUnnamed220(); } buildCounterMetricHeader--; return o; @@ -528,8 +528,8 @@ checkMetricHeader(api.MetricHeader o) { buildCounterMetricHeader++; if (buildCounterMetricHeader < 3) { - checkUnnamed244(o.metricHeaderEntries); - checkUnnamed245(o.pivotHeaders); + checkUnnamed219(o.metricHeaderEntries); + checkUnnamed220(o.pivotHeaders); } buildCounterMetricHeader--; } @@ -555,14 +555,14 @@ buildCounterMetricHeaderEntry--; } -buildUnnamed246() { +buildUnnamed221() { var o = new core.List<api.SegmentFilterClause>(); o.add(buildSegmentFilterClause()); o.add(buildSegmentFilterClause()); return o; } -checkUnnamed246(core.List<api.SegmentFilterClause> o) { +checkUnnamed221(core.List<api.SegmentFilterClause> o) { unittest.expect(o, unittest.hasLength(2)); checkSegmentFilterClause(o[0]); checkSegmentFilterClause(o[1]); @@ -573,7 +573,7 @@ var o = new api.OrFiltersForSegment(); buildCounterOrFiltersForSegment++; if (buildCounterOrFiltersForSegment < 3) { - o.segmentFilterClauses = buildUnnamed246(); + o.segmentFilterClauses = buildUnnamed221(); } buildCounterOrFiltersForSegment--; return o; @@ -582,7 +582,7 @@ checkOrFiltersForSegment(api.OrFiltersForSegment o) { buildCounterOrFiltersForSegment++; if (buildCounterOrFiltersForSegment < 3) { - checkUnnamed246(o.segmentFilterClauses); + checkUnnamed221(o.segmentFilterClauses); } buildCounterOrFiltersForSegment--; } @@ -610,40 +610,40 @@ buildCounterOrderBy--; } -buildUnnamed247() { +buildUnnamed222() { var o = new core.List<api.DimensionFilterClause>(); o.add(buildDimensionFilterClause()); o.add(buildDimensionFilterClause()); return o; } -checkUnnamed247(core.List<api.DimensionFilterClause> o) { +checkUnnamed222(core.List<api.DimensionFilterClause> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilterClause(o[0]); checkDimensionFilterClause(o[1]); } -buildUnnamed248() { +buildUnnamed223() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed248(core.List<api.Dimension> o) { +checkUnnamed223(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed249() { +buildUnnamed224() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed249(core.List<api.Metric> o) { +checkUnnamed224(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -654,10 +654,10 @@ var o = new api.Pivot(); buildCounterPivot++; if (buildCounterPivot < 3) { - o.dimensionFilterClauses = buildUnnamed247(); - o.dimensions = buildUnnamed248(); + o.dimensionFilterClauses = buildUnnamed222(); + o.dimensions = buildUnnamed223(); o.maxGroupCount = 42; - o.metrics = buildUnnamed249(); + o.metrics = buildUnnamed224(); o.startGroup = 42; } buildCounterPivot--; @@ -667,23 +667,23 @@ checkPivot(api.Pivot o) { buildCounterPivot++; if (buildCounterPivot < 3) { - checkUnnamed247(o.dimensionFilterClauses); - checkUnnamed248(o.dimensions); + checkUnnamed222(o.dimensionFilterClauses); + checkUnnamed223(o.dimensions); unittest.expect(o.maxGroupCount, unittest.equals(42)); - checkUnnamed249(o.metrics); + checkUnnamed224(o.metrics); unittest.expect(o.startGroup, unittest.equals(42)); } buildCounterPivot--; } -buildUnnamed250() { +buildUnnamed225() { var o = new core.List<api.PivotHeaderEntry>(); o.add(buildPivotHeaderEntry()); o.add(buildPivotHeaderEntry()); return o; } -checkUnnamed250(core.List<api.PivotHeaderEntry> o) { +checkUnnamed225(core.List<api.PivotHeaderEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotHeaderEntry(o[0]); checkPivotHeaderEntry(o[1]); @@ -694,7 +694,7 @@ var o = new api.PivotHeader(); buildCounterPivotHeader++; if (buildCounterPivotHeader < 3) { - o.pivotHeaderEntries = buildUnnamed250(); + o.pivotHeaderEntries = buildUnnamed225(); o.totalPivotGroupsCount = 42; } buildCounterPivotHeader--; @@ -704,33 +704,33 @@ checkPivotHeader(api.PivotHeader o) { buildCounterPivotHeader++; if (buildCounterPivotHeader < 3) { - checkUnnamed250(o.pivotHeaderEntries); + checkUnnamed225(o.pivotHeaderEntries); unittest.expect(o.totalPivotGroupsCount, unittest.equals(42)); } buildCounterPivotHeader--; } -buildUnnamed251() { +buildUnnamed226() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed251(core.List<core.String> o) { +checkUnnamed226(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed252() { +buildUnnamed227() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed252(core.List<core.String> o) { +checkUnnamed227(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -741,8 +741,8 @@ var o = new api.PivotHeaderEntry(); buildCounterPivotHeaderEntry++; if (buildCounterPivotHeaderEntry < 3) { - o.dimensionNames = buildUnnamed251(); - o.dimensionValues = buildUnnamed252(); + o.dimensionNames = buildUnnamed226(); + o.dimensionValues = buildUnnamed227(); o.metric = buildMetricHeaderEntry(); } buildCounterPivotHeaderEntry--; @@ -752,21 +752,21 @@ checkPivotHeaderEntry(api.PivotHeaderEntry o) { buildCounterPivotHeaderEntry++; if (buildCounterPivotHeaderEntry < 3) { - checkUnnamed251(o.dimensionNames); - checkUnnamed252(o.dimensionValues); + checkUnnamed226(o.dimensionNames); + checkUnnamed227(o.dimensionValues); checkMetricHeaderEntry(o.metric); } buildCounterPivotHeaderEntry--; } -buildUnnamed253() { +buildUnnamed228() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed253(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')); @@ -777,7 +777,7 @@ var o = new api.PivotValueRegion(); buildCounterPivotValueRegion++; if (buildCounterPivotValueRegion < 3) { - o.values = buildUnnamed253(); + o.values = buildUnnamed228(); } buildCounterPivotValueRegion--; return o; @@ -786,7 +786,7 @@ checkPivotValueRegion(api.PivotValueRegion o) { buildCounterPivotValueRegion++; if (buildCounterPivotValueRegion < 3) { - checkUnnamed253(o.values); + checkUnnamed228(o.values); } buildCounterPivotValueRegion--; } @@ -814,79 +814,79 @@ buildCounterReport--; } -buildUnnamed254() { +buildUnnamed229() { var o = new core.List<api.DateRangeValues>(); o.add(buildDateRangeValues()); o.add(buildDateRangeValues()); return o; } -checkUnnamed254(core.List<api.DateRangeValues> o) { +checkUnnamed229(core.List<api.DateRangeValues> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRangeValues(o[0]); checkDateRangeValues(o[1]); } -buildUnnamed255() { +buildUnnamed230() { var o = new core.List<api.DateRangeValues>(); o.add(buildDateRangeValues()); o.add(buildDateRangeValues()); return o; } -checkUnnamed255(core.List<api.DateRangeValues> o) { +checkUnnamed230(core.List<api.DateRangeValues> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRangeValues(o[0]); checkDateRangeValues(o[1]); } -buildUnnamed256() { +buildUnnamed231() { var o = new core.List<api.ReportRow>(); o.add(buildReportRow()); o.add(buildReportRow()); return o; } -checkUnnamed256(core.List<api.ReportRow> o) { +checkUnnamed231(core.List<api.ReportRow> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRow(o[0]); checkReportRow(o[1]); } -buildUnnamed257() { +buildUnnamed232() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed257(core.List<core.String> o) { +checkUnnamed232(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed258() { +buildUnnamed233() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed258(core.List<core.String> o) { +checkUnnamed233(core.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() { +buildUnnamed234() { var o = new core.List<api.DateRangeValues>(); o.add(buildDateRangeValues()); o.add(buildDateRangeValues()); return o; } -checkUnnamed259(core.List<api.DateRangeValues> o) { +checkUnnamed234(core.List<api.DateRangeValues> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRangeValues(o[0]); checkDateRangeValues(o[1]); @@ -899,13 +899,13 @@ if (buildCounterReportData < 3) { o.dataLastRefreshed = "foo"; o.isDataGolden = true; - o.maximums = buildUnnamed254(); - o.minimums = buildUnnamed255(); + o.maximums = buildUnnamed229(); + o.minimums = buildUnnamed230(); o.rowCount = 42; - o.rows = buildUnnamed256(); - o.samplesReadCounts = buildUnnamed257(); - o.samplingSpaceSizes = buildUnnamed258(); - o.totals = buildUnnamed259(); + o.rows = buildUnnamed231(); + o.samplesReadCounts = buildUnnamed232(); + o.samplingSpaceSizes = buildUnnamed233(); + o.totals = buildUnnamed234(); } buildCounterReportData--; return o; @@ -916,116 +916,116 @@ if (buildCounterReportData < 3) { unittest.expect(o.dataLastRefreshed, unittest.equals('foo')); unittest.expect(o.isDataGolden, unittest.isTrue); - checkUnnamed254(o.maximums); - checkUnnamed255(o.minimums); + checkUnnamed229(o.maximums); + checkUnnamed230(o.minimums); unittest.expect(o.rowCount, unittest.equals(42)); - checkUnnamed256(o.rows); - checkUnnamed257(o.samplesReadCounts); - checkUnnamed258(o.samplingSpaceSizes); - checkUnnamed259(o.totals); + checkUnnamed231(o.rows); + checkUnnamed232(o.samplesReadCounts); + checkUnnamed233(o.samplingSpaceSizes); + checkUnnamed234(o.totals); } buildCounterReportData--; } -buildUnnamed260() { +buildUnnamed235() { var o = new core.List<api.DateRange>(); o.add(buildDateRange()); o.add(buildDateRange()); return o; } -checkUnnamed260(core.List<api.DateRange> o) { +checkUnnamed235(core.List<api.DateRange> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRange(o[0]); checkDateRange(o[1]); } -buildUnnamed261() { +buildUnnamed236() { var o = new core.List<api.DimensionFilterClause>(); o.add(buildDimensionFilterClause()); o.add(buildDimensionFilterClause()); return o; } -checkUnnamed261(core.List<api.DimensionFilterClause> o) { +checkUnnamed236(core.List<api.DimensionFilterClause> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilterClause(o[0]); checkDimensionFilterClause(o[1]); } -buildUnnamed262() { +buildUnnamed237() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed262(core.List<api.Dimension> o) { +checkUnnamed237(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed263() { +buildUnnamed238() { var o = new core.List<api.MetricFilterClause>(); o.add(buildMetricFilterClause()); o.add(buildMetricFilterClause()); return o; } -checkUnnamed263(core.List<api.MetricFilterClause> o) { +checkUnnamed238(core.List<api.MetricFilterClause> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricFilterClause(o[0]); checkMetricFilterClause(o[1]); } -buildUnnamed264() { +buildUnnamed239() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed264(core.List<api.Metric> o) { +checkUnnamed239(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed265() { +buildUnnamed240() { var o = new core.List<api.OrderBy>(); o.add(buildOrderBy()); o.add(buildOrderBy()); return o; } -checkUnnamed265(core.List<api.OrderBy> o) { +checkUnnamed240(core.List<api.OrderBy> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderBy(o[0]); checkOrderBy(o[1]); } -buildUnnamed266() { +buildUnnamed241() { var o = new core.List<api.Pivot>(); o.add(buildPivot()); o.add(buildPivot()); return o; } -checkUnnamed266(core.List<api.Pivot> o) { +checkUnnamed241(core.List<api.Pivot> o) { unittest.expect(o, unittest.hasLength(2)); checkPivot(o[0]); checkPivot(o[1]); } -buildUnnamed267() { +buildUnnamed242() { var o = new core.List<api.Segment>(); o.add(buildSegment()); o.add(buildSegment()); return o; } -checkUnnamed267(core.List<api.Segment> o) { +checkUnnamed242(core.List<api.Segment> o) { unittest.expect(o, unittest.hasLength(2)); checkSegment(o[0]); checkSegment(o[1]); @@ -1037,21 +1037,21 @@ buildCounterReportRequest++; if (buildCounterReportRequest < 3) { o.cohortGroup = buildCohortGroup(); - o.dateRanges = buildUnnamed260(); - o.dimensionFilterClauses = buildUnnamed261(); - o.dimensions = buildUnnamed262(); + o.dateRanges = buildUnnamed235(); + o.dimensionFilterClauses = buildUnnamed236(); + o.dimensions = buildUnnamed237(); o.filtersExpression = "foo"; o.hideTotals = true; o.hideValueRanges = true; o.includeEmptyRows = true; - o.metricFilterClauses = buildUnnamed263(); - o.metrics = buildUnnamed264(); - o.orderBys = buildUnnamed265(); + o.metricFilterClauses = buildUnnamed238(); + o.metrics = buildUnnamed239(); + o.orderBys = buildUnnamed240(); o.pageSize = 42; o.pageToken = "foo"; - o.pivots = buildUnnamed266(); + o.pivots = buildUnnamed241(); o.samplingLevel = "foo"; - o.segments = buildUnnamed267(); + o.segments = buildUnnamed242(); o.viewId = "foo"; } buildCounterReportRequest--; @@ -1062,47 +1062,47 @@ buildCounterReportRequest++; if (buildCounterReportRequest < 3) { checkCohortGroup(o.cohortGroup); - checkUnnamed260(o.dateRanges); - checkUnnamed261(o.dimensionFilterClauses); - checkUnnamed262(o.dimensions); + checkUnnamed235(o.dateRanges); + checkUnnamed236(o.dimensionFilterClauses); + checkUnnamed237(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); - checkUnnamed263(o.metricFilterClauses); - checkUnnamed264(o.metrics); - checkUnnamed265(o.orderBys); + checkUnnamed238(o.metricFilterClauses); + checkUnnamed239(o.metrics); + checkUnnamed240(o.orderBys); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed266(o.pivots); + checkUnnamed241(o.pivots); unittest.expect(o.samplingLevel, unittest.equals('foo')); - checkUnnamed267(o.segments); + checkUnnamed242(o.segments); unittest.expect(o.viewId, unittest.equals('foo')); } buildCounterReportRequest--; } -buildUnnamed268() { +buildUnnamed243() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed268(core.List<core.String> o) { +checkUnnamed243(core.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() { +buildUnnamed244() { var o = new core.List<api.DateRangeValues>(); o.add(buildDateRangeValues()); o.add(buildDateRangeValues()); return o; } -checkUnnamed269(core.List<api.DateRangeValues> o) { +checkUnnamed244(core.List<api.DateRangeValues> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRangeValues(o[0]); checkDateRangeValues(o[1]); @@ -1113,8 +1113,8 @@ var o = new api.ReportRow(); buildCounterReportRow++; if (buildCounterReportRow < 3) { - o.dimensions = buildUnnamed268(); - o.metrics = buildUnnamed269(); + o.dimensions = buildUnnamed243(); + o.metrics = buildUnnamed244(); } buildCounterReportRow--; return o; @@ -1123,8 +1123,8 @@ checkReportRow(api.ReportRow o) { buildCounterReportRow++; if (buildCounterReportRow < 3) { - checkUnnamed268(o.dimensions); - checkUnnamed269(o.metrics); + checkUnnamed243(o.dimensions); + checkUnnamed244(o.metrics); } buildCounterReportRow--; } @@ -1150,14 +1150,14 @@ buildCounterSegment--; } -buildUnnamed270() { +buildUnnamed245() { var o = new core.List<api.SegmentFilter>(); o.add(buildSegmentFilter()); o.add(buildSegmentFilter()); return o; } -checkUnnamed270(core.List<api.SegmentFilter> o) { +checkUnnamed245(core.List<api.SegmentFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkSegmentFilter(o[0]); checkSegmentFilter(o[1]); @@ -1168,7 +1168,7 @@ var o = new api.SegmentDefinition(); buildCounterSegmentDefinition++; if (buildCounterSegmentDefinition < 3) { - o.segmentFilters = buildUnnamed270(); + o.segmentFilters = buildUnnamed245(); } buildCounterSegmentDefinition--; return o; @@ -1177,19 +1177,19 @@ checkSegmentDefinition(api.SegmentDefinition o) { buildCounterSegmentDefinition++; if (buildCounterSegmentDefinition < 3) { - checkUnnamed270(o.segmentFilters); + checkUnnamed245(o.segmentFilters); } buildCounterSegmentDefinition--; } -buildUnnamed271() { +buildUnnamed246() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed271(core.List<core.String> o) { +checkUnnamed246(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1202,7 +1202,7 @@ if (buildCounterSegmentDimensionFilter < 3) { o.caseSensitive = true; o.dimensionName = "foo"; - o.expressions = buildUnnamed271(); + o.expressions = buildUnnamed246(); o.maxComparisonValue = "foo"; o.minComparisonValue = "foo"; o.operator = "foo"; @@ -1216,7 +1216,7 @@ if (buildCounterSegmentDimensionFilter < 3) { unittest.expect(o.caseSensitive, unittest.isTrue); unittest.expect(o.dimensionName, unittest.equals('foo')); - checkUnnamed271(o.expressions); + checkUnnamed246(o.expressions); unittest.expect(o.maxComparisonValue, unittest.equals('foo')); unittest.expect(o.minComparisonValue, unittest.equals('foo')); unittest.expect(o.operator, unittest.equals('foo')); @@ -1297,14 +1297,14 @@ buildCounterSegmentMetricFilter--; } -buildUnnamed272() { +buildUnnamed247() { var o = new core.List<api.OrFiltersForSegment>(); o.add(buildOrFiltersForSegment()); o.add(buildOrFiltersForSegment()); return o; } -checkUnnamed272(core.List<api.OrFiltersForSegment> o) { +checkUnnamed247(core.List<api.OrFiltersForSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrFiltersForSegment(o[0]); checkOrFiltersForSegment(o[1]); @@ -1316,7 +1316,7 @@ buildCounterSegmentSequenceStep++; if (buildCounterSegmentSequenceStep < 3) { o.matchType = "foo"; - o.orFiltersForSegment = buildUnnamed272(); + o.orFiltersForSegment = buildUnnamed247(); } buildCounterSegmentSequenceStep--; return o; @@ -1326,19 +1326,19 @@ buildCounterSegmentSequenceStep++; if (buildCounterSegmentSequenceStep < 3) { unittest.expect(o.matchType, unittest.equals('foo')); - checkUnnamed272(o.orFiltersForSegment); + checkUnnamed247(o.orFiltersForSegment); } buildCounterSegmentSequenceStep--; } -buildUnnamed273() { +buildUnnamed248() { var o = new core.List<api.SegmentSequenceStep>(); o.add(buildSegmentSequenceStep()); o.add(buildSegmentSequenceStep()); return o; } -checkUnnamed273(core.List<api.SegmentSequenceStep> o) { +checkUnnamed248(core.List<api.SegmentSequenceStep> o) { unittest.expect(o, unittest.hasLength(2)); checkSegmentSequenceStep(o[0]); checkSegmentSequenceStep(o[1]); @@ -1350,7 +1350,7 @@ buildCounterSequenceSegment++; if (buildCounterSequenceSegment < 3) { o.firstStepShouldMatchFirstHit = true; - o.segmentSequenceSteps = buildUnnamed273(); + o.segmentSequenceSteps = buildUnnamed248(); } buildCounterSequenceSegment--; return o; @@ -1360,19 +1360,19 @@ buildCounterSequenceSegment++; if (buildCounterSequenceSegment < 3) { unittest.expect(o.firstStepShouldMatchFirstHit, unittest.isTrue); - checkUnnamed273(o.segmentSequenceSteps); + checkUnnamed248(o.segmentSequenceSteps); } buildCounterSequenceSegment--; } -buildUnnamed274() { +buildUnnamed249() { var o = new core.List<api.OrFiltersForSegment>(); o.add(buildOrFiltersForSegment()); o.add(buildOrFiltersForSegment()); return o; } -checkUnnamed274(core.List<api.OrFiltersForSegment> o) { +checkUnnamed249(core.List<api.OrFiltersForSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrFiltersForSegment(o[0]); checkOrFiltersForSegment(o[1]); @@ -1383,7 +1383,7 @@ var o = new api.SimpleSegment(); buildCounterSimpleSegment++; if (buildCounterSimpleSegment < 3) { - o.orFiltersForSegment = buildUnnamed274(); + o.orFiltersForSegment = buildUnnamed249(); } buildCounterSimpleSegment--; return o; @@ -1392,7 +1392,7 @@ checkSimpleSegment(api.SimpleSegment o) { buildCounterSimpleSegment++; if (buildCounterSimpleSegment < 3) { - checkUnnamed274(o.orFiltersForSegment); + checkUnnamed249(o.orFiltersForSegment); } buildCounterSimpleSegment--; }
diff --git a/generated/googleapis/test/androiddeviceprovisioning/v1_test.dart b/generated/googleapis/test/androiddeviceprovisioning/v1_test.dart new file mode 100644 index 0000000..41e9255 --- /dev/null +++ b/generated/googleapis/test/androiddeviceprovisioning/v1_test.dart
@@ -0,0 +1,1621 @@ +library googleapis.androiddeviceprovisioning.v1.test; + +import "dart:core" as core; +import "dart:collection" as collection; +import "dart:async" as async; +import "dart:convert" as convert; + +import 'package:http/http.dart' as http; +import 'package:http/testing.dart' as http_testing; +import 'package:test/test.dart' as unittest; + +import 'package:googleapis/androiddeviceprovisioning/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); +} + +core.int buildCounterClaimDeviceRequest = 0; +buildClaimDeviceRequest() { + var o = new api.ClaimDeviceRequest(); + buildCounterClaimDeviceRequest++; + if (buildCounterClaimDeviceRequest < 3) { + o.customerId = "foo"; + o.deviceIdentifier = buildDeviceIdentifier(); + o.sectionType = "foo"; + } + buildCounterClaimDeviceRequest--; + return o; +} + +checkClaimDeviceRequest(api.ClaimDeviceRequest o) { + buildCounterClaimDeviceRequest++; + if (buildCounterClaimDeviceRequest < 3) { + unittest.expect(o.customerId, unittest.equals('foo')); + checkDeviceIdentifier(o.deviceIdentifier); + unittest.expect(o.sectionType, unittest.equals('foo')); + } + buildCounterClaimDeviceRequest--; +} + +core.int buildCounterClaimDeviceResponse = 0; +buildClaimDeviceResponse() { + var o = new api.ClaimDeviceResponse(); + buildCounterClaimDeviceResponse++; + if (buildCounterClaimDeviceResponse < 3) { + o.deviceId = "foo"; + o.deviceName = "foo"; + } + buildCounterClaimDeviceResponse--; + return o; +} + +checkClaimDeviceResponse(api.ClaimDeviceResponse o) { + buildCounterClaimDeviceResponse++; + if (buildCounterClaimDeviceResponse < 3) { + unittest.expect(o.deviceId, unittest.equals('foo')); + unittest.expect(o.deviceName, unittest.equals('foo')); + } + buildCounterClaimDeviceResponse--; +} + +buildUnnamed54() { + var o = new core.List<api.PartnerClaim>(); + o.add(buildPartnerClaim()); + o.add(buildPartnerClaim()); + return o; +} + +checkUnnamed54(core.List<api.PartnerClaim> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPartnerClaim(o[0]); + checkPartnerClaim(o[1]); +} + +core.int buildCounterClaimDevicesRequest = 0; +buildClaimDevicesRequest() { + var o = new api.ClaimDevicesRequest(); + buildCounterClaimDevicesRequest++; + if (buildCounterClaimDevicesRequest < 3) { + o.claims = buildUnnamed54(); + } + buildCounterClaimDevicesRequest--; + return o; +} + +checkClaimDevicesRequest(api.ClaimDevicesRequest o) { + buildCounterClaimDevicesRequest++; + if (buildCounterClaimDevicesRequest < 3) { + checkUnnamed54(o.claims); + } + buildCounterClaimDevicesRequest--; +} + +core.int buildCounterCompany = 0; +buildCompany() { + var o = new api.Company(); + buildCounterCompany++; + if (buildCounterCompany < 3) { + o.companyId = "foo"; + o.companyName = "foo"; + } + buildCounterCompany--; + return o; +} + +checkCompany(api.Company o) { + buildCounterCompany++; + if (buildCounterCompany < 3) { + unittest.expect(o.companyId, unittest.equals('foo')); + unittest.expect(o.companyName, unittest.equals('foo')); + } + buildCounterCompany--; +} + +buildUnnamed55() { + var o = new core.List<api.DeviceClaim>(); + o.add(buildDeviceClaim()); + o.add(buildDeviceClaim()); + return o; +} + +checkUnnamed55(core.List<api.DeviceClaim> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDeviceClaim(o[0]); + checkDeviceClaim(o[1]); +} + +core.int buildCounterDevice = 0; +buildDevice() { + var o = new api.Device(); + buildCounterDevice++; + if (buildCounterDevice < 3) { + o.claims = buildUnnamed55(); + o.deviceId = "foo"; + o.deviceIdentifier = buildDeviceIdentifier(); + o.deviceMetadata = buildDeviceMetadata(); + o.name = "foo"; + } + buildCounterDevice--; + return o; +} + +checkDevice(api.Device o) { + buildCounterDevice++; + if (buildCounterDevice < 3) { + checkUnnamed55(o.claims); + unittest.expect(o.deviceId, unittest.equals('foo')); + checkDeviceIdentifier(o.deviceIdentifier); + checkDeviceMetadata(o.deviceMetadata); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterDevice--; +} + +core.int buildCounterDeviceClaim = 0; +buildDeviceClaim() { + var o = new api.DeviceClaim(); + buildCounterDeviceClaim++; + if (buildCounterDeviceClaim < 3) { + o.ownerCompanyId = "foo"; + o.sectionType = "foo"; + } + buildCounterDeviceClaim--; + return o; +} + +checkDeviceClaim(api.DeviceClaim o) { + buildCounterDeviceClaim++; + if (buildCounterDeviceClaim < 3) { + unittest.expect(o.ownerCompanyId, unittest.equals('foo')); + unittest.expect(o.sectionType, unittest.equals('foo')); + } + buildCounterDeviceClaim--; +} + +core.int buildCounterDeviceIdentifier = 0; +buildDeviceIdentifier() { + var o = new api.DeviceIdentifier(); + buildCounterDeviceIdentifier++; + if (buildCounterDeviceIdentifier < 3) { + o.imei = "foo"; + o.manufacturer = "foo"; + o.meid = "foo"; + o.model = "foo"; + o.serialNumber = "foo"; + } + buildCounterDeviceIdentifier--; + return o; +} + +checkDeviceIdentifier(api.DeviceIdentifier o) { + buildCounterDeviceIdentifier++; + if (buildCounterDeviceIdentifier < 3) { + unittest.expect(o.imei, unittest.equals('foo')); + unittest.expect(o.manufacturer, unittest.equals('foo')); + unittest.expect(o.meid, unittest.equals('foo')); + unittest.expect(o.model, unittest.equals('foo')); + unittest.expect(o.serialNumber, unittest.equals('foo')); + } + buildCounterDeviceIdentifier--; +} + +buildUnnamed56() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed56(core.Map<core.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 buildCounterDeviceMetadata = 0; +buildDeviceMetadata() { + var o = new api.DeviceMetadata(); + buildCounterDeviceMetadata++; + if (buildCounterDeviceMetadata < 3) { + o.entries = buildUnnamed56(); + } + buildCounterDeviceMetadata--; + return o; +} + +checkDeviceMetadata(api.DeviceMetadata o) { + buildCounterDeviceMetadata++; + if (buildCounterDeviceMetadata < 3) { + checkUnnamed56(o.entries); + } + buildCounterDeviceMetadata--; +} + +core.int buildCounterDevicesLongRunningOperationMetadata = 0; +buildDevicesLongRunningOperationMetadata() { + var o = new api.DevicesLongRunningOperationMetadata(); + buildCounterDevicesLongRunningOperationMetadata++; + if (buildCounterDevicesLongRunningOperationMetadata < 3) { + o.devicesCount = 42; + o.processingStatus = "foo"; + o.progress = 42; + } + buildCounterDevicesLongRunningOperationMetadata--; + return o; +} + +checkDevicesLongRunningOperationMetadata(api.DevicesLongRunningOperationMetadata o) { + buildCounterDevicesLongRunningOperationMetadata++; + if (buildCounterDevicesLongRunningOperationMetadata < 3) { + unittest.expect(o.devicesCount, unittest.equals(42)); + unittest.expect(o.processingStatus, unittest.equals('foo')); + unittest.expect(o.progress, unittest.equals(42)); + } + buildCounterDevicesLongRunningOperationMetadata--; +} + +buildUnnamed57() { + var o = new core.List<api.OperationPerDevice>(); + o.add(buildOperationPerDevice()); + o.add(buildOperationPerDevice()); + return o; +} + +checkUnnamed57(core.List<api.OperationPerDevice> o) { + unittest.expect(o, unittest.hasLength(2)); + checkOperationPerDevice(o[0]); + checkOperationPerDevice(o[1]); +} + +core.int buildCounterDevicesLongRunningOperationResponse = 0; +buildDevicesLongRunningOperationResponse() { + var o = new api.DevicesLongRunningOperationResponse(); + buildCounterDevicesLongRunningOperationResponse++; + if (buildCounterDevicesLongRunningOperationResponse < 3) { + o.perDeviceStatus = buildUnnamed57(); + o.successCount = 42; + } + buildCounterDevicesLongRunningOperationResponse--; + return o; +} + +checkDevicesLongRunningOperationResponse(api.DevicesLongRunningOperationResponse o) { + buildCounterDevicesLongRunningOperationResponse++; + if (buildCounterDevicesLongRunningOperationResponse < 3) { + checkUnnamed57(o.perDeviceStatus); + unittest.expect(o.successCount, unittest.equals(42)); + } + buildCounterDevicesLongRunningOperationResponse--; +} + +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 buildCounterFindDevicesByDeviceIdentifierRequest = 0; +buildFindDevicesByDeviceIdentifierRequest() { + var o = new api.FindDevicesByDeviceIdentifierRequest(); + buildCounterFindDevicesByDeviceIdentifierRequest++; + if (buildCounterFindDevicesByDeviceIdentifierRequest < 3) { + o.deviceIdentifier = buildDeviceIdentifier(); + o.limit = "foo"; + o.pageToken = "foo"; + } + buildCounterFindDevicesByDeviceIdentifierRequest--; + return o; +} + +checkFindDevicesByDeviceIdentifierRequest(api.FindDevicesByDeviceIdentifierRequest o) { + buildCounterFindDevicesByDeviceIdentifierRequest++; + if (buildCounterFindDevicesByDeviceIdentifierRequest < 3) { + checkDeviceIdentifier(o.deviceIdentifier); + unittest.expect(o.limit, unittest.equals('foo')); + unittest.expect(o.pageToken, unittest.equals('foo')); + } + buildCounterFindDevicesByDeviceIdentifierRequest--; +} + +buildUnnamed58() { + var o = new core.List<api.Device>(); + o.add(buildDevice()); + o.add(buildDevice()); + return o; +} + +checkUnnamed58(core.List<api.Device> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDevice(o[0]); + checkDevice(o[1]); +} + +core.int buildCounterFindDevicesByDeviceIdentifierResponse = 0; +buildFindDevicesByDeviceIdentifierResponse() { + var o = new api.FindDevicesByDeviceIdentifierResponse(); + buildCounterFindDevicesByDeviceIdentifierResponse++; + if (buildCounterFindDevicesByDeviceIdentifierResponse < 3) { + o.devices = buildUnnamed58(); + o.nextPageToken = "foo"; + } + buildCounterFindDevicesByDeviceIdentifierResponse--; + return o; +} + +checkFindDevicesByDeviceIdentifierResponse(api.FindDevicesByDeviceIdentifierResponse o) { + buildCounterFindDevicesByDeviceIdentifierResponse++; + if (buildCounterFindDevicesByDeviceIdentifierResponse < 3) { + checkUnnamed58(o.devices); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterFindDevicesByDeviceIdentifierResponse--; +} + +buildUnnamed59() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +core.int buildCounterFindDevicesByOwnerRequest = 0; +buildFindDevicesByOwnerRequest() { + var o = new api.FindDevicesByOwnerRequest(); + buildCounterFindDevicesByOwnerRequest++; + if (buildCounterFindDevicesByOwnerRequest < 3) { + o.customerId = buildUnnamed59(); + o.limit = "foo"; + o.pageToken = "foo"; + o.sectionType = "foo"; + } + buildCounterFindDevicesByOwnerRequest--; + return o; +} + +checkFindDevicesByOwnerRequest(api.FindDevicesByOwnerRequest o) { + buildCounterFindDevicesByOwnerRequest++; + if (buildCounterFindDevicesByOwnerRequest < 3) { + checkUnnamed59(o.customerId); + unittest.expect(o.limit, unittest.equals('foo')); + unittest.expect(o.pageToken, unittest.equals('foo')); + unittest.expect(o.sectionType, unittest.equals('foo')); + } + buildCounterFindDevicesByOwnerRequest--; +} + +buildUnnamed60() { + var o = new core.List<api.Device>(); + o.add(buildDevice()); + o.add(buildDevice()); + return o; +} + +checkUnnamed60(core.List<api.Device> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDevice(o[0]); + checkDevice(o[1]); +} + +core.int buildCounterFindDevicesByOwnerResponse = 0; +buildFindDevicesByOwnerResponse() { + var o = new api.FindDevicesByOwnerResponse(); + buildCounterFindDevicesByOwnerResponse++; + if (buildCounterFindDevicesByOwnerResponse < 3) { + o.devices = buildUnnamed60(); + o.nextPageToken = "foo"; + } + buildCounterFindDevicesByOwnerResponse--; + return o; +} + +checkFindDevicesByOwnerResponse(api.FindDevicesByOwnerResponse o) { + buildCounterFindDevicesByOwnerResponse++; + if (buildCounterFindDevicesByOwnerResponse < 3) { + checkUnnamed60(o.devices); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterFindDevicesByOwnerResponse--; +} + +buildUnnamed61() { + var o = new core.List<api.Company>(); + o.add(buildCompany()); + o.add(buildCompany()); + return o; +} + +checkUnnamed61(core.List<api.Company> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCompany(o[0]); + checkCompany(o[1]); +} + +core.int buildCounterListCustomersResponse = 0; +buildListCustomersResponse() { + var o = new api.ListCustomersResponse(); + buildCounterListCustomersResponse++; + if (buildCounterListCustomersResponse < 3) { + o.customers = buildUnnamed61(); + } + buildCounterListCustomersResponse--; + return o; +} + +checkListCustomersResponse(api.ListCustomersResponse o) { + buildCounterListCustomersResponse++; + if (buildCounterListCustomersResponse < 3) { + checkUnnamed61(o.customers); + } + buildCounterListCustomersResponse--; +} + +buildUnnamed62() { + 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; +} + +checkUnnamed62(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')); +} + +buildUnnamed63() { + 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; +} + +checkUnnamed63(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 = buildUnnamed62(); + o.name = "foo"; + o.response = buildUnnamed63(); + } + buildCounterOperation--; + return o; +} + +checkOperation(api.Operation o) { + buildCounterOperation++; + if (buildCounterOperation < 3) { + unittest.expect(o.done, unittest.isTrue); + checkStatus(o.error); + checkUnnamed62(o.metadata); + unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed63(o.response); + } + buildCounterOperation--; +} + +core.int buildCounterOperationPerDevice = 0; +buildOperationPerDevice() { + var o = new api.OperationPerDevice(); + buildCounterOperationPerDevice++; + if (buildCounterOperationPerDevice < 3) { + o.claim = buildPartnerClaim(); + o.result = buildPerDeviceStatusInBatch(); + o.unclaim = buildPartnerUnclaim(); + o.updateMetadata = buildUpdateMetadataArguments(); + } + buildCounterOperationPerDevice--; + return o; +} + +checkOperationPerDevice(api.OperationPerDevice o) { + buildCounterOperationPerDevice++; + if (buildCounterOperationPerDevice < 3) { + checkPartnerClaim(o.claim); + checkPerDeviceStatusInBatch(o.result); + checkPartnerUnclaim(o.unclaim); + checkUpdateMetadataArguments(o.updateMetadata); + } + buildCounterOperationPerDevice--; +} + +core.int buildCounterPartnerClaim = 0; +buildPartnerClaim() { + var o = new api.PartnerClaim(); + buildCounterPartnerClaim++; + if (buildCounterPartnerClaim < 3) { + o.customerId = "foo"; + o.deviceIdentifier = buildDeviceIdentifier(); + o.deviceMetadata = buildDeviceMetadata(); + o.sectionType = "foo"; + } + buildCounterPartnerClaim--; + return o; +} + +checkPartnerClaim(api.PartnerClaim o) { + buildCounterPartnerClaim++; + if (buildCounterPartnerClaim < 3) { + unittest.expect(o.customerId, unittest.equals('foo')); + checkDeviceIdentifier(o.deviceIdentifier); + checkDeviceMetadata(o.deviceMetadata); + unittest.expect(o.sectionType, unittest.equals('foo')); + } + buildCounterPartnerClaim--; +} + +core.int buildCounterPartnerUnclaim = 0; +buildPartnerUnclaim() { + var o = new api.PartnerUnclaim(); + buildCounterPartnerUnclaim++; + if (buildCounterPartnerUnclaim < 3) { + o.deviceId = "foo"; + o.deviceIdentifier = buildDeviceIdentifier(); + o.sectionType = "foo"; + } + buildCounterPartnerUnclaim--; + return o; +} + +checkPartnerUnclaim(api.PartnerUnclaim o) { + buildCounterPartnerUnclaim++; + if (buildCounterPartnerUnclaim < 3) { + unittest.expect(o.deviceId, unittest.equals('foo')); + checkDeviceIdentifier(o.deviceIdentifier); + unittest.expect(o.sectionType, unittest.equals('foo')); + } + buildCounterPartnerUnclaim--; +} + +core.int buildCounterPerDeviceStatusInBatch = 0; +buildPerDeviceStatusInBatch() { + var o = new api.PerDeviceStatusInBatch(); + buildCounterPerDeviceStatusInBatch++; + if (buildCounterPerDeviceStatusInBatch < 3) { + o.deviceId = "foo"; + o.errorIdentifier = "foo"; + o.errorMessage = "foo"; + o.status = "foo"; + } + buildCounterPerDeviceStatusInBatch--; + return o; +} + +checkPerDeviceStatusInBatch(api.PerDeviceStatusInBatch o) { + buildCounterPerDeviceStatusInBatch++; + if (buildCounterPerDeviceStatusInBatch < 3) { + unittest.expect(o.deviceId, unittest.equals('foo')); + unittest.expect(o.errorIdentifier, unittest.equals('foo')); + unittest.expect(o.errorMessage, unittest.equals('foo')); + unittest.expect(o.status, unittest.equals('foo')); + } + buildCounterPerDeviceStatusInBatch--; +} + +buildUnnamed64() { + 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; +} + +checkUnnamed64(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')); +} + +buildUnnamed65() { + var o = new core.List<core.Map<core.String, core.Object>>(); + o.add(buildUnnamed64()); + o.add(buildUnnamed64()); + return o; +} + +checkUnnamed65(core.List<core.Map<core.String, core.Object>> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed64(o[0]); + checkUnnamed64(o[1]); +} + +core.int buildCounterStatus = 0; +buildStatus() { + var o = new api.Status(); + buildCounterStatus++; + if (buildCounterStatus < 3) { + o.code = 42; + o.details = buildUnnamed65(); + o.message = "foo"; + } + buildCounterStatus--; + return o; +} + +checkStatus(api.Status o) { + buildCounterStatus++; + if (buildCounterStatus < 3) { + unittest.expect(o.code, unittest.equals(42)); + checkUnnamed65(o.details); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterStatus--; +} + +core.int buildCounterUnclaimDeviceRequest = 0; +buildUnclaimDeviceRequest() { + var o = new api.UnclaimDeviceRequest(); + buildCounterUnclaimDeviceRequest++; + if (buildCounterUnclaimDeviceRequest < 3) { + o.deviceId = "foo"; + o.deviceIdentifier = buildDeviceIdentifier(); + o.sectionType = "foo"; + } + buildCounterUnclaimDeviceRequest--; + return o; +} + +checkUnclaimDeviceRequest(api.UnclaimDeviceRequest o) { + buildCounterUnclaimDeviceRequest++; + if (buildCounterUnclaimDeviceRequest < 3) { + unittest.expect(o.deviceId, unittest.equals('foo')); + checkDeviceIdentifier(o.deviceIdentifier); + unittest.expect(o.sectionType, unittest.equals('foo')); + } + buildCounterUnclaimDeviceRequest--; +} + +buildUnnamed66() { + var o = new core.List<api.PartnerUnclaim>(); + o.add(buildPartnerUnclaim()); + o.add(buildPartnerUnclaim()); + return o; +} + +checkUnnamed66(core.List<api.PartnerUnclaim> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPartnerUnclaim(o[0]); + checkPartnerUnclaim(o[1]); +} + +core.int buildCounterUnclaimDevicesRequest = 0; +buildUnclaimDevicesRequest() { + var o = new api.UnclaimDevicesRequest(); + buildCounterUnclaimDevicesRequest++; + if (buildCounterUnclaimDevicesRequest < 3) { + o.unclaims = buildUnnamed66(); + } + buildCounterUnclaimDevicesRequest--; + return o; +} + +checkUnclaimDevicesRequest(api.UnclaimDevicesRequest o) { + buildCounterUnclaimDevicesRequest++; + if (buildCounterUnclaimDevicesRequest < 3) { + checkUnnamed66(o.unclaims); + } + buildCounterUnclaimDevicesRequest--; +} + +buildUnnamed67() { + var o = new core.List<api.UpdateMetadataArguments>(); + o.add(buildUpdateMetadataArguments()); + o.add(buildUpdateMetadataArguments()); + return o; +} + +checkUnnamed67(core.List<api.UpdateMetadataArguments> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUpdateMetadataArguments(o[0]); + checkUpdateMetadataArguments(o[1]); +} + +core.int buildCounterUpdateDeviceMetadataInBatchRequest = 0; +buildUpdateDeviceMetadataInBatchRequest() { + var o = new api.UpdateDeviceMetadataInBatchRequest(); + buildCounterUpdateDeviceMetadataInBatchRequest++; + if (buildCounterUpdateDeviceMetadataInBatchRequest < 3) { + o.updates = buildUnnamed67(); + } + buildCounterUpdateDeviceMetadataInBatchRequest--; + return o; +} + +checkUpdateDeviceMetadataInBatchRequest(api.UpdateDeviceMetadataInBatchRequest o) { + buildCounterUpdateDeviceMetadataInBatchRequest++; + if (buildCounterUpdateDeviceMetadataInBatchRequest < 3) { + checkUnnamed67(o.updates); + } + buildCounterUpdateDeviceMetadataInBatchRequest--; +} + +core.int buildCounterUpdateDeviceMetadataRequest = 0; +buildUpdateDeviceMetadataRequest() { + var o = new api.UpdateDeviceMetadataRequest(); + buildCounterUpdateDeviceMetadataRequest++; + if (buildCounterUpdateDeviceMetadataRequest < 3) { + o.deviceMetadata = buildDeviceMetadata(); + } + buildCounterUpdateDeviceMetadataRequest--; + return o; +} + +checkUpdateDeviceMetadataRequest(api.UpdateDeviceMetadataRequest o) { + buildCounterUpdateDeviceMetadataRequest++; + if (buildCounterUpdateDeviceMetadataRequest < 3) { + checkDeviceMetadata(o.deviceMetadata); + } + buildCounterUpdateDeviceMetadataRequest--; +} + +core.int buildCounterUpdateMetadataArguments = 0; +buildUpdateMetadataArguments() { + var o = new api.UpdateMetadataArguments(); + buildCounterUpdateMetadataArguments++; + if (buildCounterUpdateMetadataArguments < 3) { + o.deviceId = "foo"; + o.deviceIdentifier = buildDeviceIdentifier(); + o.deviceMetadata = buildDeviceMetadata(); + } + buildCounterUpdateMetadataArguments--; + return o; +} + +checkUpdateMetadataArguments(api.UpdateMetadataArguments o) { + buildCounterUpdateMetadataArguments++; + if (buildCounterUpdateMetadataArguments < 3) { + unittest.expect(o.deviceId, unittest.equals('foo')); + checkDeviceIdentifier(o.deviceIdentifier); + checkDeviceMetadata(o.deviceMetadata); + } + buildCounterUpdateMetadataArguments--; +} + + +main() { + unittest.group("obj-schema-ClaimDeviceRequest", () { + unittest.test("to-json--from-json", () { + var o = buildClaimDeviceRequest(); + var od = new api.ClaimDeviceRequest.fromJson(o.toJson()); + checkClaimDeviceRequest(od); + }); + }); + + + unittest.group("obj-schema-ClaimDeviceResponse", () { + unittest.test("to-json--from-json", () { + var o = buildClaimDeviceResponse(); + var od = new api.ClaimDeviceResponse.fromJson(o.toJson()); + checkClaimDeviceResponse(od); + }); + }); + + + unittest.group("obj-schema-ClaimDevicesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildClaimDevicesRequest(); + var od = new api.ClaimDevicesRequest.fromJson(o.toJson()); + checkClaimDevicesRequest(od); + }); + }); + + + unittest.group("obj-schema-Company", () { + unittest.test("to-json--from-json", () { + var o = buildCompany(); + var od = new api.Company.fromJson(o.toJson()); + checkCompany(od); + }); + }); + + + unittest.group("obj-schema-Device", () { + unittest.test("to-json--from-json", () { + var o = buildDevice(); + var od = new api.Device.fromJson(o.toJson()); + checkDevice(od); + }); + }); + + + unittest.group("obj-schema-DeviceClaim", () { + unittest.test("to-json--from-json", () { + var o = buildDeviceClaim(); + var od = new api.DeviceClaim.fromJson(o.toJson()); + checkDeviceClaim(od); + }); + }); + + + unittest.group("obj-schema-DeviceIdentifier", () { + unittest.test("to-json--from-json", () { + var o = buildDeviceIdentifier(); + var od = new api.DeviceIdentifier.fromJson(o.toJson()); + checkDeviceIdentifier(od); + }); + }); + + + unittest.group("obj-schema-DeviceMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildDeviceMetadata(); + var od = new api.DeviceMetadata.fromJson(o.toJson()); + checkDeviceMetadata(od); + }); + }); + + + unittest.group("obj-schema-DevicesLongRunningOperationMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildDevicesLongRunningOperationMetadata(); + var od = new api.DevicesLongRunningOperationMetadata.fromJson(o.toJson()); + checkDevicesLongRunningOperationMetadata(od); + }); + }); + + + unittest.group("obj-schema-DevicesLongRunningOperationResponse", () { + unittest.test("to-json--from-json", () { + var o = buildDevicesLongRunningOperationResponse(); + var od = new api.DevicesLongRunningOperationResponse.fromJson(o.toJson()); + checkDevicesLongRunningOperationResponse(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-FindDevicesByDeviceIdentifierRequest", () { + unittest.test("to-json--from-json", () { + var o = buildFindDevicesByDeviceIdentifierRequest(); + var od = new api.FindDevicesByDeviceIdentifierRequest.fromJson(o.toJson()); + checkFindDevicesByDeviceIdentifierRequest(od); + }); + }); + + + unittest.group("obj-schema-FindDevicesByDeviceIdentifierResponse", () { + unittest.test("to-json--from-json", () { + var o = buildFindDevicesByDeviceIdentifierResponse(); + var od = new api.FindDevicesByDeviceIdentifierResponse.fromJson(o.toJson()); + checkFindDevicesByDeviceIdentifierResponse(od); + }); + }); + + + unittest.group("obj-schema-FindDevicesByOwnerRequest", () { + unittest.test("to-json--from-json", () { + var o = buildFindDevicesByOwnerRequest(); + var od = new api.FindDevicesByOwnerRequest.fromJson(o.toJson()); + checkFindDevicesByOwnerRequest(od); + }); + }); + + + unittest.group("obj-schema-FindDevicesByOwnerResponse", () { + unittest.test("to-json--from-json", () { + var o = buildFindDevicesByOwnerResponse(); + var od = new api.FindDevicesByOwnerResponse.fromJson(o.toJson()); + checkFindDevicesByOwnerResponse(od); + }); + }); + + + unittest.group("obj-schema-ListCustomersResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListCustomersResponse(); + var od = new api.ListCustomersResponse.fromJson(o.toJson()); + checkListCustomersResponse(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-OperationPerDevice", () { + unittest.test("to-json--from-json", () { + var o = buildOperationPerDevice(); + var od = new api.OperationPerDevice.fromJson(o.toJson()); + checkOperationPerDevice(od); + }); + }); + + + unittest.group("obj-schema-PartnerClaim", () { + unittest.test("to-json--from-json", () { + var o = buildPartnerClaim(); + var od = new api.PartnerClaim.fromJson(o.toJson()); + checkPartnerClaim(od); + }); + }); + + + unittest.group("obj-schema-PartnerUnclaim", () { + unittest.test("to-json--from-json", () { + var o = buildPartnerUnclaim(); + var od = new api.PartnerUnclaim.fromJson(o.toJson()); + checkPartnerUnclaim(od); + }); + }); + + + unittest.group("obj-schema-PerDeviceStatusInBatch", () { + unittest.test("to-json--from-json", () { + var o = buildPerDeviceStatusInBatch(); + var od = new api.PerDeviceStatusInBatch.fromJson(o.toJson()); + checkPerDeviceStatusInBatch(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-UnclaimDeviceRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUnclaimDeviceRequest(); + var od = new api.UnclaimDeviceRequest.fromJson(o.toJson()); + checkUnclaimDeviceRequest(od); + }); + }); + + + unittest.group("obj-schema-UnclaimDevicesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUnclaimDevicesRequest(); + var od = new api.UnclaimDevicesRequest.fromJson(o.toJson()); + checkUnclaimDevicesRequest(od); + }); + }); + + + unittest.group("obj-schema-UpdateDeviceMetadataInBatchRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUpdateDeviceMetadataInBatchRequest(); + var od = new api.UpdateDeviceMetadataInBatchRequest.fromJson(o.toJson()); + checkUpdateDeviceMetadataInBatchRequest(od); + }); + }); + + + unittest.group("obj-schema-UpdateDeviceMetadataRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUpdateDeviceMetadataRequest(); + var od = new api.UpdateDeviceMetadataRequest.fromJson(o.toJson()); + checkUpdateDeviceMetadataRequest(od); + }); + }); + + + unittest.group("obj-schema-UpdateMetadataArguments", () { + unittest.test("to-json--from-json", () { + var o = buildUpdateMetadataArguments(); + var od = new api.UpdateMetadataArguments.fromJson(o.toJson()); + checkUpdateMetadataArguments(od); + }); + }); + + + unittest.group("resource-OperationsResourceApi", () { + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.OperationsResourceApi res = new api.AndroiddeviceprovisioningApi(mock).operations; + var arg_name = "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 = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { + checkOperation(response); + }))); + }); + + }); + + + unittest.group("resource-PartnersCustomersResourceApi", () { + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.PartnersCustomersResourceApi res = new api.AndroiddeviceprovisioningApi(mock).partners.customers; + var arg_partnerId = "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 + 12), unittest.equals("v1/partners/")); + pathOffset += 12; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListCustomersResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_partnerId).then(unittest.expectAsync1(((api.ListCustomersResponse response) { + checkListCustomersResponse(response); + }))); + }); + + }); + + + unittest.group("resource-PartnersDevicesResourceApi", () { + unittest.test("method--claim", () { + + var mock = new HttpServerMock(); + api.PartnersDevicesResourceApi res = new api.AndroiddeviceprovisioningApi(mock).partners.devices; + var arg_request = buildClaimDeviceRequest(); + var arg_partnerId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.ClaimDeviceRequest.fromJson(json); + checkClaimDeviceRequest(obj); + + var path = (req.url).path; + 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/partners/")); + pathOffset += 12; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildClaimDeviceResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.claim(arg_request, arg_partnerId).then(unittest.expectAsync1(((api.ClaimDeviceResponse response) { + checkClaimDeviceResponse(response); + }))); + }); + + unittest.test("method--claimAsync", () { + + var mock = new HttpServerMock(); + api.PartnersDevicesResourceApi res = new api.AndroiddeviceprovisioningApi(mock).partners.devices; + var arg_request = buildClaimDevicesRequest(); + var arg_partnerId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.ClaimDevicesRequest.fromJson(json); + checkClaimDevicesRequest(obj); + + var path = (req.url).path; + 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/partners/")); + pathOffset += 12; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.claimAsync(arg_request, arg_partnerId).then(unittest.expectAsync1(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--findByIdentifier", () { + + var mock = new HttpServerMock(); + api.PartnersDevicesResourceApi res = new api.AndroiddeviceprovisioningApi(mock).partners.devices; + var arg_request = buildFindDevicesByDeviceIdentifierRequest(); + var arg_partnerId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.FindDevicesByDeviceIdentifierRequest.fromJson(json); + checkFindDevicesByDeviceIdentifierRequest(obj); + + var path = (req.url).path; + 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/partners/")); + pathOffset += 12; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildFindDevicesByDeviceIdentifierResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.findByIdentifier(arg_request, arg_partnerId).then(unittest.expectAsync1(((api.FindDevicesByDeviceIdentifierResponse response) { + checkFindDevicesByDeviceIdentifierResponse(response); + }))); + }); + + unittest.test("method--findByOwner", () { + + var mock = new HttpServerMock(); + api.PartnersDevicesResourceApi res = new api.AndroiddeviceprovisioningApi(mock).partners.devices; + var arg_request = buildFindDevicesByOwnerRequest(); + var arg_partnerId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.FindDevicesByOwnerRequest.fromJson(json); + checkFindDevicesByOwnerRequest(obj); + + var path = (req.url).path; + 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/partners/")); + pathOffset += 12; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildFindDevicesByOwnerResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.findByOwner(arg_request, arg_partnerId).then(unittest.expectAsync1(((api.FindDevicesByOwnerResponse response) { + checkFindDevicesByOwnerResponse(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.PartnersDevicesResourceApi res = new api.AndroiddeviceprovisioningApi(mock).partners.devices; + var arg_name = "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 = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + 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).then(unittest.expectAsync1(((api.Device response) { + checkDevice(response); + }))); + }); + + unittest.test("method--metadata", () { + + var mock = new HttpServerMock(); + api.PartnersDevicesResourceApi res = new api.AndroiddeviceprovisioningApi(mock).partners.devices; + var arg_request = buildUpdateDeviceMetadataRequest(); + var arg_metadataOwnerId = "foo"; + var arg_deviceId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.UpdateDeviceMetadataRequest.fromJson(json); + checkUpdateDeviceMetadataRequest(obj); + + var path = (req.url).path; + 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/partners/")); + pathOffset += 12; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildDeviceMetadata()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.metadata(arg_request, arg_metadataOwnerId, arg_deviceId).then(unittest.expectAsync1(((api.DeviceMetadata response) { + checkDeviceMetadata(response); + }))); + }); + + unittest.test("method--unclaim", () { + + var mock = new HttpServerMock(); + api.PartnersDevicesResourceApi res = new api.AndroiddeviceprovisioningApi(mock).partners.devices; + var arg_request = buildUnclaimDeviceRequest(); + var arg_partnerId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.UnclaimDeviceRequest.fromJson(json); + checkUnclaimDeviceRequest(obj); + + var path = (req.url).path; + 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/partners/")); + pathOffset += 12; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.unclaim(arg_request, arg_partnerId).then(unittest.expectAsync1(((api.Empty response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--unclaimAsync", () { + + var mock = new HttpServerMock(); + api.PartnersDevicesResourceApi res = new api.AndroiddeviceprovisioningApi(mock).partners.devices; + var arg_request = buildUnclaimDevicesRequest(); + var arg_partnerId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.UnclaimDevicesRequest.fromJson(json); + checkUnclaimDevicesRequest(obj); + + var path = (req.url).path; + 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/partners/")); + pathOffset += 12; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.unclaimAsync(arg_request, arg_partnerId).then(unittest.expectAsync1(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--updateMetadataAsync", () { + + var mock = new HttpServerMock(); + api.PartnersDevicesResourceApi res = new api.AndroiddeviceprovisioningApi(mock).partners.devices; + var arg_request = buildUpdateDeviceMetadataInBatchRequest(); + var arg_partnerId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.UpdateDeviceMetadataInBatchRequest.fromJson(json); + checkUpdateDeviceMetadataInBatchRequest(obj); + + var path = (req.url).path; + 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/partners/")); + pathOffset += 12; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.updateMetadataAsync(arg_request, arg_partnerId).then(unittest.expectAsync1(((api.Operation response) { + checkOperation(response); + }))); + }); + + }); + + +} +
diff --git a/generated/googleapis/test/androidenterprise/v1_test.dart b/generated/googleapis/test/androidenterprise/v1_test.dart index 7523f8c..5b0c9ad 100644 --- a/generated/googleapis/test/androidenterprise/v1_test.dart +++ b/generated/googleapis/test/androidenterprise/v1_test.dart
@@ -91,14 +91,14 @@ buildCounterAdministratorWebToken--; } -buildUnnamed2106() { +buildUnnamed2140() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2106(core.List<core.String> o) { +checkUnnamed2140(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -111,7 +111,7 @@ if (buildCounterAdministratorWebTokenSpec < 3) { o.kind = "foo"; o.parent = "foo"; - o.permission = buildUnnamed2106(); + o.permission = buildUnnamed2140(); } buildCounterAdministratorWebTokenSpec--; return o; @@ -122,19 +122,40 @@ if (buildCounterAdministratorWebTokenSpec < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); - checkUnnamed2106(o.permission); + checkUnnamed2140(o.permission); } buildCounterAdministratorWebTokenSpec--; } -buildUnnamed2107() { +core.int buildCounterAndroidDevicePolicyConfig = 0; +buildAndroidDevicePolicyConfig() { + var o = new api.AndroidDevicePolicyConfig(); + buildCounterAndroidDevicePolicyConfig++; + if (buildCounterAndroidDevicePolicyConfig < 3) { + o.kind = "foo"; + o.state = "foo"; + } + buildCounterAndroidDevicePolicyConfig--; + return o; +} + +checkAndroidDevicePolicyConfig(api.AndroidDevicePolicyConfig o) { + buildCounterAndroidDevicePolicyConfig++; + if (buildCounterAndroidDevicePolicyConfig < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.state, unittest.equals('foo')); + } + buildCounterAndroidDevicePolicyConfig--; +} + +buildUnnamed2141() { var o = new core.List<api.AppRestrictionsSchemaRestriction>(); o.add(buildAppRestrictionsSchemaRestriction()); o.add(buildAppRestrictionsSchemaRestriction()); return o; } -checkUnnamed2107(core.List<api.AppRestrictionsSchemaRestriction> o) { +checkUnnamed2141(core.List<api.AppRestrictionsSchemaRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkAppRestrictionsSchemaRestriction(o[0]); checkAppRestrictionsSchemaRestriction(o[1]); @@ -146,7 +167,7 @@ buildCounterAppRestrictionsSchema++; if (buildCounterAppRestrictionsSchema < 3) { o.kind = "foo"; - o.restrictions = buildUnnamed2107(); + o.restrictions = buildUnnamed2141(); } buildCounterAppRestrictionsSchema--; return o; @@ -156,7 +177,7 @@ buildCounterAppRestrictionsSchema++; if (buildCounterAppRestrictionsSchema < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2107(o.restrictions); + checkUnnamed2141(o.restrictions); } buildCounterAppRestrictionsSchema--; } @@ -180,40 +201,40 @@ buildCounterAppRestrictionsSchemaChangeEvent--; } -buildUnnamed2108() { +buildUnnamed2142() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2108(core.List<core.String> o) { +checkUnnamed2142(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2109() { +buildUnnamed2143() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2109(core.List<core.String> o) { +checkUnnamed2143(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2110() { +buildUnnamed2144() { var o = new core.List<api.AppRestrictionsSchemaRestriction>(); o.add(buildAppRestrictionsSchemaRestriction()); o.add(buildAppRestrictionsSchemaRestriction()); return o; } -checkUnnamed2110(core.List<api.AppRestrictionsSchemaRestriction> o) { +checkUnnamed2144(core.List<api.AppRestrictionsSchemaRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkAppRestrictionsSchemaRestriction(o[0]); checkAppRestrictionsSchemaRestriction(o[1]); @@ -226,10 +247,10 @@ if (buildCounterAppRestrictionsSchemaRestriction < 3) { o.defaultValue = buildAppRestrictionsSchemaRestrictionRestrictionValue(); o.description = "foo"; - o.entry = buildUnnamed2108(); - o.entryValue = buildUnnamed2109(); + o.entry = buildUnnamed2142(); + o.entryValue = buildUnnamed2143(); o.key = "foo"; - o.nestedRestriction = buildUnnamed2110(); + o.nestedRestriction = buildUnnamed2144(); o.restrictionType = "foo"; o.title = "foo"; } @@ -242,24 +263,24 @@ if (buildCounterAppRestrictionsSchemaRestriction < 3) { checkAppRestrictionsSchemaRestrictionRestrictionValue(o.defaultValue); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2108(o.entry); - checkUnnamed2109(o.entryValue); + checkUnnamed2142(o.entry); + checkUnnamed2143(o.entryValue); unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed2110(o.nestedRestriction); + checkUnnamed2144(o.nestedRestriction); unittest.expect(o.restrictionType, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } buildCounterAppRestrictionsSchemaRestriction--; } -buildUnnamed2111() { +buildUnnamed2145() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2111(core.List<core.String> o) { +checkUnnamed2145(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -273,7 +294,7 @@ o.type = "foo"; o.valueBool = true; o.valueInteger = 42; - o.valueMultiselect = buildUnnamed2111(); + o.valueMultiselect = buildUnnamed2145(); o.valueString = "foo"; } buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; @@ -286,7 +307,7 @@ unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.valueBool, unittest.isTrue); unittest.expect(o.valueInteger, unittest.equals(42)); - checkUnnamed2111(o.valueMultiselect); + checkUnnamed2145(o.valueMultiselect); unittest.expect(o.valueString, unittest.equals('foo')); } buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; @@ -418,14 +439,14 @@ buildCounterDeviceState--; } -buildUnnamed2112() { +buildUnnamed2146() { var o = new core.List<api.Device>(); o.add(buildDevice()); o.add(buildDevice()); return o; } -checkUnnamed2112(core.List<api.Device> o) { +checkUnnamed2146(core.List<api.Device> o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -436,7 +457,7 @@ var o = new api.DevicesListResponse(); buildCounterDevicesListResponse++; if (buildCounterDevicesListResponse < 3) { - o.device = buildUnnamed2112(); + o.device = buildUnnamed2146(); o.kind = "foo"; } buildCounterDevicesListResponse--; @@ -446,20 +467,20 @@ checkDevicesListResponse(api.DevicesListResponse o) { buildCounterDevicesListResponse++; if (buildCounterDevicesListResponse < 3) { - checkUnnamed2112(o.device); + checkUnnamed2146(o.device); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDevicesListResponse--; } -buildUnnamed2113() { +buildUnnamed2147() { var o = new core.List<api.Administrator>(); o.add(buildAdministrator()); o.add(buildAdministrator()); return o; } -checkUnnamed2113(core.List<api.Administrator> o) { +checkUnnamed2147(core.List<api.Administrator> o) { unittest.expect(o, unittest.hasLength(2)); checkAdministrator(o[0]); checkAdministrator(o[1]); @@ -470,7 +491,7 @@ var o = new api.Enterprise(); buildCounterEnterprise++; if (buildCounterEnterprise < 3) { - o.administrator = buildUnnamed2113(); + o.administrator = buildUnnamed2147(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -483,7 +504,7 @@ checkEnterprise(api.Enterprise o) { buildCounterEnterprise++; if (buildCounterEnterprise < 3) { - checkUnnamed2113(o.administrator); + checkUnnamed2147(o.administrator); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -513,14 +534,14 @@ buildCounterEnterpriseAccount--; } -buildUnnamed2114() { +buildUnnamed2148() { var o = new core.List<api.Enterprise>(); o.add(buildEnterprise()); o.add(buildEnterprise()); return o; } -checkUnnamed2114(core.List<api.Enterprise> o) { +checkUnnamed2148(core.List<api.Enterprise> o) { unittest.expect(o, unittest.hasLength(2)); checkEnterprise(o[0]); checkEnterprise(o[1]); @@ -531,7 +552,7 @@ var o = new api.EnterprisesListResponse(); buildCounterEnterprisesListResponse++; if (buildCounterEnterprisesListResponse < 3) { - o.enterprise = buildUnnamed2114(); + o.enterprise = buildUnnamed2148(); o.kind = "foo"; } buildCounterEnterprisesListResponse--; @@ -541,7 +562,7 @@ checkEnterprisesListResponse(api.EnterprisesListResponse o) { buildCounterEnterprisesListResponse++; if (buildCounterEnterprisesListResponse < 3) { - checkUnnamed2114(o.enterprise); + checkUnnamed2148(o.enterprise); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEnterprisesListResponse--; @@ -591,14 +612,14 @@ buildCounterEntitlement--; } -buildUnnamed2115() { +buildUnnamed2149() { var o = new core.List<api.Entitlement>(); o.add(buildEntitlement()); o.add(buildEntitlement()); return o; } -checkUnnamed2115(core.List<api.Entitlement> o) { +checkUnnamed2149(core.List<api.Entitlement> o) { unittest.expect(o, unittest.hasLength(2)); checkEntitlement(o[0]); checkEntitlement(o[1]); @@ -609,7 +630,7 @@ var o = new api.EntitlementsListResponse(); buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { - o.entitlement = buildUnnamed2115(); + o.entitlement = buildUnnamed2149(); o.kind = "foo"; } buildCounterEntitlementsListResponse--; @@ -619,7 +640,7 @@ checkEntitlementsListResponse(api.EntitlementsListResponse o) { buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { - checkUnnamed2115(o.entitlement); + checkUnnamed2149(o.entitlement); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEntitlementsListResponse--; @@ -656,14 +677,14 @@ buildCounterGroupLicense--; } -buildUnnamed2116() { +buildUnnamed2150() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed2116(core.List<api.User> o) { +checkUnnamed2150(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -675,7 +696,7 @@ buildCounterGroupLicenseUsersListResponse++; if (buildCounterGroupLicenseUsersListResponse < 3) { o.kind = "foo"; - o.user = buildUnnamed2116(); + o.user = buildUnnamed2150(); } buildCounterGroupLicenseUsersListResponse--; return o; @@ -685,19 +706,19 @@ buildCounterGroupLicenseUsersListResponse++; if (buildCounterGroupLicenseUsersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2116(o.user); + checkUnnamed2150(o.user); } buildCounterGroupLicenseUsersListResponse--; } -buildUnnamed2117() { +buildUnnamed2151() { var o = new core.List<api.GroupLicense>(); o.add(buildGroupLicense()); o.add(buildGroupLicense()); return o; } -checkUnnamed2117(core.List<api.GroupLicense> o) { +checkUnnamed2151(core.List<api.GroupLicense> o) { unittest.expect(o, unittest.hasLength(2)); checkGroupLicense(o[0]); checkGroupLicense(o[1]); @@ -708,7 +729,7 @@ var o = new api.GroupLicensesListResponse(); buildCounterGroupLicensesListResponse++; if (buildCounterGroupLicensesListResponse < 3) { - o.groupLicense = buildUnnamed2117(); + o.groupLicense = buildUnnamed2151(); o.kind = "foo"; } buildCounterGroupLicensesListResponse--; @@ -718,7 +739,7 @@ checkGroupLicensesListResponse(api.GroupLicensesListResponse o) { buildCounterGroupLicensesListResponse++; if (buildCounterGroupLicensesListResponse < 3) { - checkUnnamed2117(o.groupLicense); + checkUnnamed2151(o.groupLicense); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterGroupLicensesListResponse--; @@ -776,14 +797,14 @@ buildCounterInstallFailureEvent--; } -buildUnnamed2118() { +buildUnnamed2152() { var o = new core.List<api.Install>(); o.add(buildInstall()); o.add(buildInstall()); return o; } -checkUnnamed2118(core.List<api.Install> o) { +checkUnnamed2152(core.List<api.Install> o) { unittest.expect(o, unittest.hasLength(2)); checkInstall(o[0]); checkInstall(o[1]); @@ -794,7 +815,7 @@ var o = new api.InstallsListResponse(); buildCounterInstallsListResponse++; if (buildCounterInstallsListResponse < 3) { - o.install = buildUnnamed2118(); + o.install = buildUnnamed2152(); o.kind = "foo"; } buildCounterInstallsListResponse--; @@ -804,7 +825,7 @@ checkInstallsListResponse(api.InstallsListResponse o) { buildCounterInstallsListResponse++; if (buildCounterInstallsListResponse < 3) { - checkUnnamed2118(o.install); + checkUnnamed2152(o.install); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterInstallsListResponse--; @@ -831,14 +852,14 @@ buildCounterLocalizedText--; } -buildUnnamed2119() { +buildUnnamed2153() { var o = new core.List<api.ManagedProperty>(); o.add(buildManagedProperty()); o.add(buildManagedProperty()); return o; } -checkUnnamed2119(core.List<api.ManagedProperty> o) { +checkUnnamed2153(core.List<api.ManagedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedProperty(o[0]); checkManagedProperty(o[1]); @@ -850,7 +871,7 @@ buildCounterManagedConfiguration++; if (buildCounterManagedConfiguration < 3) { o.kind = "foo"; - o.managedProperty = buildUnnamed2119(); + o.managedProperty = buildUnnamed2153(); o.productId = "foo"; } buildCounterManagedConfiguration--; @@ -861,20 +882,20 @@ buildCounterManagedConfiguration++; if (buildCounterManagedConfiguration < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2119(o.managedProperty); + checkUnnamed2153(o.managedProperty); unittest.expect(o.productId, unittest.equals('foo')); } buildCounterManagedConfiguration--; } -buildUnnamed2120() { +buildUnnamed2154() { var o = new core.List<api.ManagedConfiguration>(); o.add(buildManagedConfiguration()); o.add(buildManagedConfiguration()); return o; } -checkUnnamed2120(core.List<api.ManagedConfiguration> o) { +checkUnnamed2154(core.List<api.ManagedConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedConfiguration(o[0]); checkManagedConfiguration(o[1]); @@ -886,7 +907,7 @@ buildCounterManagedConfigurationsForDeviceListResponse++; if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { o.kind = "foo"; - o.managedConfigurationForDevice = buildUnnamed2120(); + o.managedConfigurationForDevice = buildUnnamed2154(); } buildCounterManagedConfigurationsForDeviceListResponse--; return o; @@ -896,19 +917,19 @@ buildCounterManagedConfigurationsForDeviceListResponse++; if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2120(o.managedConfigurationForDevice); + checkUnnamed2154(o.managedConfigurationForDevice); } buildCounterManagedConfigurationsForDeviceListResponse--; } -buildUnnamed2121() { +buildUnnamed2155() { var o = new core.List<api.ManagedConfiguration>(); o.add(buildManagedConfiguration()); o.add(buildManagedConfiguration()); return o; } -checkUnnamed2121(core.List<api.ManagedConfiguration> o) { +checkUnnamed2155(core.List<api.ManagedConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedConfiguration(o[0]); checkManagedConfiguration(o[1]); @@ -920,7 +941,7 @@ buildCounterManagedConfigurationsForUserListResponse++; if (buildCounterManagedConfigurationsForUserListResponse < 3) { o.kind = "foo"; - o.managedConfigurationForUser = buildUnnamed2121(); + o.managedConfigurationForUser = buildUnnamed2155(); } buildCounterManagedConfigurationsForUserListResponse--; return o; @@ -930,32 +951,32 @@ buildCounterManagedConfigurationsForUserListResponse++; if (buildCounterManagedConfigurationsForUserListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2121(o.managedConfigurationForUser); + checkUnnamed2155(o.managedConfigurationForUser); } buildCounterManagedConfigurationsForUserListResponse--; } -buildUnnamed2122() { +buildUnnamed2156() { var o = new core.List<api.ManagedPropertyBundle>(); o.add(buildManagedPropertyBundle()); o.add(buildManagedPropertyBundle()); return o; } -checkUnnamed2122(core.List<api.ManagedPropertyBundle> o) { +checkUnnamed2156(core.List<api.ManagedPropertyBundle> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedPropertyBundle(o[0]); checkManagedPropertyBundle(o[1]); } -buildUnnamed2123() { +buildUnnamed2157() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2123(core.List<core.String> o) { +checkUnnamed2157(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -969,10 +990,10 @@ o.key = "foo"; o.valueBool = true; o.valueBundle = buildManagedPropertyBundle(); - o.valueBundleArray = buildUnnamed2122(); + o.valueBundleArray = buildUnnamed2156(); o.valueInteger = 42; o.valueString = "foo"; - o.valueStringArray = buildUnnamed2123(); + o.valueStringArray = buildUnnamed2157(); } buildCounterManagedProperty--; return o; @@ -984,22 +1005,22 @@ unittest.expect(o.key, unittest.equals('foo')); unittest.expect(o.valueBool, unittest.isTrue); checkManagedPropertyBundle(o.valueBundle); - checkUnnamed2122(o.valueBundleArray); + checkUnnamed2156(o.valueBundleArray); unittest.expect(o.valueInteger, unittest.equals(42)); unittest.expect(o.valueString, unittest.equals('foo')); - checkUnnamed2123(o.valueStringArray); + checkUnnamed2157(o.valueStringArray); } buildCounterManagedProperty--; } -buildUnnamed2124() { +buildUnnamed2158() { var o = new core.List<api.ManagedProperty>(); o.add(buildManagedProperty()); o.add(buildManagedProperty()); return o; } -checkUnnamed2124(core.List<api.ManagedProperty> o) { +checkUnnamed2158(core.List<api.ManagedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedProperty(o[0]); checkManagedProperty(o[1]); @@ -1010,7 +1031,7 @@ var o = new api.ManagedPropertyBundle(); buildCounterManagedPropertyBundle++; if (buildCounterManagedPropertyBundle < 3) { - o.managedProperty = buildUnnamed2124(); + o.managedProperty = buildUnnamed2158(); } buildCounterManagedPropertyBundle--; return o; @@ -1019,7 +1040,7 @@ checkManagedPropertyBundle(api.ManagedPropertyBundle o) { buildCounterManagedPropertyBundle++; if (buildCounterManagedPropertyBundle < 3) { - checkUnnamed2124(o.managedProperty); + checkUnnamed2158(o.managedProperty); } buildCounterManagedPropertyBundle--; } @@ -1047,27 +1068,27 @@ buildCounterNewDeviceEvent--; } -buildUnnamed2125() { +buildUnnamed2159() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2125(core.List<core.String> o) { +checkUnnamed2159(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2126() { +buildUnnamed2160() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2126(core.List<core.String> o) { +checkUnnamed2160(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1078,9 +1099,9 @@ var o = new api.NewPermissionsEvent(); buildCounterNewPermissionsEvent++; if (buildCounterNewPermissionsEvent < 3) { - o.approvedPermissions = buildUnnamed2125(); + o.approvedPermissions = buildUnnamed2159(); o.productId = "foo"; - o.requestedPermissions = buildUnnamed2126(); + o.requestedPermissions = buildUnnamed2160(); } buildCounterNewPermissionsEvent--; return o; @@ -1089,9 +1110,9 @@ checkNewPermissionsEvent(api.NewPermissionsEvent o) { buildCounterNewPermissionsEvent++; if (buildCounterNewPermissionsEvent < 3) { - checkUnnamed2125(o.approvedPermissions); + checkUnnamed2159(o.approvedPermissions); unittest.expect(o.productId, unittest.equals('foo')); - checkUnnamed2126(o.requestedPermissions); + checkUnnamed2160(o.requestedPermissions); } buildCounterNewPermissionsEvent--; } @@ -1133,14 +1154,14 @@ buildCounterNotification--; } -buildUnnamed2127() { +buildUnnamed2161() { var o = new core.List<api.Notification>(); o.add(buildNotification()); o.add(buildNotification()); return o; } -checkUnnamed2127(core.List<api.Notification> o) { +checkUnnamed2161(core.List<api.Notification> o) { unittest.expect(o, unittest.hasLength(2)); checkNotification(o[0]); checkNotification(o[1]); @@ -1152,7 +1173,7 @@ buildCounterNotificationSet++; if (buildCounterNotificationSet < 3) { o.kind = "foo"; - o.notification = buildUnnamed2127(); + o.notification = buildUnnamed2161(); o.notificationSetId = "foo"; } buildCounterNotificationSet--; @@ -1163,7 +1184,7 @@ buildCounterNotificationSet++; if (buildCounterNotificationSet < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2127(o.notification); + checkUnnamed2161(o.notification); unittest.expect(o.notificationSetId, unittest.equals('foo')); } buildCounterNotificationSet--; @@ -1217,14 +1238,14 @@ buildCounterPermission--; } -buildUnnamed2128() { +buildUnnamed2162() { var o = new core.List<api.AppVersion>(); o.add(buildAppVersion()); o.add(buildAppVersion()); return o; } -checkUnnamed2128(core.List<api.AppVersion> o) { +checkUnnamed2162(core.List<api.AppVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkAppVersion(o[0]); checkAppVersion(o[1]); @@ -1235,7 +1256,7 @@ var o = new api.Product(); buildCounterProduct++; if (buildCounterProduct < 3) { - o.appVersion = buildUnnamed2128(); + o.appVersion = buildUnnamed2162(); o.authorName = "foo"; o.detailsUrl = "foo"; o.distributionChannel = "foo"; @@ -1255,7 +1276,7 @@ checkProduct(api.Product o) { buildCounterProduct++; if (buildCounterProduct < 3) { - checkUnnamed2128(o.appVersion); + checkUnnamed2162(o.appVersion); unittest.expect(o.authorName, unittest.equals('foo')); unittest.expect(o.detailsUrl, unittest.equals('foo')); unittest.expect(o.distributionChannel, unittest.equals('foo')); @@ -1334,14 +1355,14 @@ buildCounterProductPermission--; } -buildUnnamed2129() { +buildUnnamed2163() { var o = new core.List<api.ProductPermission>(); o.add(buildProductPermission()); o.add(buildProductPermission()); return o; } -checkUnnamed2129(core.List<api.ProductPermission> o) { +checkUnnamed2163(core.List<api.ProductPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkProductPermission(o[0]); checkProductPermission(o[1]); @@ -1353,7 +1374,7 @@ buildCounterProductPermissions++; if (buildCounterProductPermissions < 3) { o.kind = "foo"; - o.permission = buildUnnamed2129(); + o.permission = buildUnnamed2163(); o.productId = "foo"; } buildCounterProductPermissions--; @@ -1364,20 +1385,20 @@ buildCounterProductPermissions++; if (buildCounterProductPermissions < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2129(o.permission); + checkUnnamed2163(o.permission); unittest.expect(o.productId, unittest.equals('foo')); } buildCounterProductPermissions--; } -buildUnnamed2130() { +buildUnnamed2164() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2130(core.List<core.String> o) { +checkUnnamed2164(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1389,7 +1410,7 @@ buildCounterProductSet++; if (buildCounterProductSet < 3) { o.kind = "foo"; - o.productId = buildUnnamed2130(); + o.productId = buildUnnamed2164(); o.productSetBehavior = "foo"; } buildCounterProductSet--; @@ -1400,7 +1421,7 @@ buildCounterProductSet++; if (buildCounterProductSet < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2130(o.productId); + checkUnnamed2164(o.productId); unittest.expect(o.productSetBehavior, unittest.equals('foo')); } buildCounterProductSet--; @@ -1446,14 +1467,14 @@ buildCounterProductsGenerateApprovalUrlResponse--; } -buildUnnamed2131() { +buildUnnamed2165() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed2131(core.List<api.Product> o) { +checkUnnamed2165(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -1466,7 +1487,7 @@ if (buildCounterProductsListResponse < 3) { o.kind = "foo"; o.pageInfo = buildPageInfo(); - o.product = buildUnnamed2131(); + o.product = buildUnnamed2165(); o.tokenPagination = buildTokenPagination(); } buildCounterProductsListResponse--; @@ -1478,7 +1499,7 @@ if (buildCounterProductsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); checkPageInfo(o.pageInfo); - checkUnnamed2131(o.product); + checkUnnamed2165(o.product); checkTokenPagination(o.tokenPagination); } buildCounterProductsListResponse--; @@ -1534,14 +1555,14 @@ buildCounterServiceAccountKey--; } -buildUnnamed2132() { +buildUnnamed2166() { var o = new core.List<api.ServiceAccountKey>(); o.add(buildServiceAccountKey()); o.add(buildServiceAccountKey()); return o; } -checkUnnamed2132(core.List<api.ServiceAccountKey> o) { +checkUnnamed2166(core.List<api.ServiceAccountKey> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccountKey(o[0]); checkServiceAccountKey(o[1]); @@ -1552,7 +1573,7 @@ var o = new api.ServiceAccountKeysListResponse(); buildCounterServiceAccountKeysListResponse++; if (buildCounterServiceAccountKeysListResponse < 3) { - o.serviceAccountKey = buildUnnamed2132(); + o.serviceAccountKey = buildUnnamed2166(); } buildCounterServiceAccountKeysListResponse--; return o; @@ -1561,7 +1582,7 @@ checkServiceAccountKeysListResponse(api.ServiceAccountKeysListResponse o) { buildCounterServiceAccountKeysListResponse++; if (buildCounterServiceAccountKeysListResponse < 3) { - checkUnnamed2132(o.serviceAccountKey); + checkUnnamed2166(o.serviceAccountKey); } buildCounterServiceAccountKeysListResponse--; } @@ -1589,27 +1610,27 @@ buildCounterSignupInfo--; } -buildUnnamed2133() { +buildUnnamed2167() { var o = new core.List<api.LocalizedText>(); o.add(buildLocalizedText()); o.add(buildLocalizedText()); return o; } -checkUnnamed2133(core.List<api.LocalizedText> o) { +checkUnnamed2167(core.List<api.LocalizedText> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedText(o[0]); checkLocalizedText(o[1]); } -buildUnnamed2134() { +buildUnnamed2168() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2134(core.List<core.String> o) { +checkUnnamed2168(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1622,9 +1643,9 @@ if (buildCounterStoreCluster < 3) { o.id = "foo"; o.kind = "foo"; - o.name = buildUnnamed2133(); + o.name = buildUnnamed2167(); o.orderInPage = "foo"; - o.productId = buildUnnamed2134(); + o.productId = buildUnnamed2168(); } buildCounterStoreCluster--; return o; @@ -1635,9 +1656,9 @@ if (buildCounterStoreCluster < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2133(o.name); + checkUnnamed2167(o.name); unittest.expect(o.orderInPage, unittest.equals('foo')); - checkUnnamed2134(o.productId); + checkUnnamed2168(o.productId); } buildCounterStoreCluster--; } @@ -1665,14 +1686,14 @@ buildCounterStoreLayout--; } -buildUnnamed2135() { +buildUnnamed2169() { var o = new core.List<api.StoreCluster>(); o.add(buildStoreCluster()); o.add(buildStoreCluster()); return o; } -checkUnnamed2135(core.List<api.StoreCluster> o) { +checkUnnamed2169(core.List<api.StoreCluster> o) { unittest.expect(o, unittest.hasLength(2)); checkStoreCluster(o[0]); checkStoreCluster(o[1]); @@ -1683,7 +1704,7 @@ var o = new api.StoreLayoutClustersListResponse(); buildCounterStoreLayoutClustersListResponse++; if (buildCounterStoreLayoutClustersListResponse < 3) { - o.cluster = buildUnnamed2135(); + o.cluster = buildUnnamed2169(); o.kind = "foo"; } buildCounterStoreLayoutClustersListResponse--; @@ -1693,20 +1714,20 @@ checkStoreLayoutClustersListResponse(api.StoreLayoutClustersListResponse o) { buildCounterStoreLayoutClustersListResponse++; if (buildCounterStoreLayoutClustersListResponse < 3) { - checkUnnamed2135(o.cluster); + checkUnnamed2169(o.cluster); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterStoreLayoutClustersListResponse--; } -buildUnnamed2136() { +buildUnnamed2170() { var o = new core.List<api.StorePage>(); o.add(buildStorePage()); o.add(buildStorePage()); return o; } -checkUnnamed2136(core.List<api.StorePage> o) { +checkUnnamed2170(core.List<api.StorePage> o) { unittest.expect(o, unittest.hasLength(2)); checkStorePage(o[0]); checkStorePage(o[1]); @@ -1718,7 +1739,7 @@ buildCounterStoreLayoutPagesListResponse++; if (buildCounterStoreLayoutPagesListResponse < 3) { o.kind = "foo"; - o.page = buildUnnamed2136(); + o.page = buildUnnamed2170(); } buildCounterStoreLayoutPagesListResponse--; return o; @@ -1728,32 +1749,32 @@ buildCounterStoreLayoutPagesListResponse++; if (buildCounterStoreLayoutPagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2136(o.page); + checkUnnamed2170(o.page); } buildCounterStoreLayoutPagesListResponse--; } -buildUnnamed2137() { +buildUnnamed2171() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2137(core.List<core.String> o) { +checkUnnamed2171(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2138() { +buildUnnamed2172() { var o = new core.List<api.LocalizedText>(); o.add(buildLocalizedText()); o.add(buildLocalizedText()); return o; } -checkUnnamed2138(core.List<api.LocalizedText> o) { +checkUnnamed2172(core.List<api.LocalizedText> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedText(o[0]); checkLocalizedText(o[1]); @@ -1766,8 +1787,8 @@ if (buildCounterStorePage < 3) { o.id = "foo"; o.kind = "foo"; - o.link = buildUnnamed2137(); - o.name = buildUnnamed2138(); + o.link = buildUnnamed2171(); + o.name = buildUnnamed2172(); } buildCounterStorePage--; return o; @@ -1778,8 +1799,8 @@ if (buildCounterStorePage < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2137(o.link); - checkUnnamed2138(o.name); + checkUnnamed2171(o.link); + checkUnnamed2172(o.name); } buildCounterStorePage--; } @@ -1859,14 +1880,14 @@ buildCounterUserToken--; } -buildUnnamed2139() { +buildUnnamed2173() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed2139(core.List<api.User> o) { +checkUnnamed2173(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -1878,7 +1899,7 @@ buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { o.kind = "foo"; - o.user = buildUnnamed2139(); + o.user = buildUnnamed2173(); } buildCounterUsersListResponse--; return o; @@ -1888,7 +1909,7 @@ buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2139(o.user); + checkUnnamed2173(o.user); } buildCounterUsersListResponse--; } @@ -1922,6 +1943,15 @@ }); + unittest.group("obj-schema-AndroidDevicePolicyConfig", () { + unittest.test("to-json--from-json", () { + var o = buildAndroidDevicePolicyConfig(); + var od = new api.AndroidDevicePolicyConfig.fromJson(o.toJson()); + checkAndroidDevicePolicyConfig(od); + }); + }); + + unittest.group("obj-schema-AppRestrictionsSchema", () { unittest.test("to-json--from-json", () { var o = buildAppRestrictionsSchema(); @@ -3053,6 +3083,59 @@ }))); }); + unittest.test("method--getAndroidDevicePolicyConfig", () { + + var mock = new HttpServerMock(); + api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterprises; + var arg_enterpriseId = "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 + 21), unittest.equals("androidenterprise/v1/")); + pathOffset += 21; + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("enterprises/")); + pathOffset += 12; + index = path.indexOf("/androidDevicePolicyConfig", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); + unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.equals("/androidDevicePolicyConfig")); + pathOffset += 26; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildAndroidDevicePolicyConfig()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.getAndroidDevicePolicyConfig(arg_enterpriseId).then(unittest.expectAsync1(((api.AndroidDevicePolicyConfig response) { + checkAndroidDevicePolicyConfig(response); + }))); + }); + unittest.test("method--getServiceAccount", () { var mock = new HttpServerMock(); @@ -3416,6 +3499,63 @@ }))); }); + unittest.test("method--setAndroidDevicePolicyConfig", () { + + var mock = new HttpServerMock(); + api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterprises; + var arg_request = buildAndroidDevicePolicyConfig(); + var arg_enterpriseId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.AndroidDevicePolicyConfig.fromJson(json); + checkAndroidDevicePolicyConfig(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("androidenterprise/v1/")); + pathOffset += 21; + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("enterprises/")); + pathOffset += 12; + index = path.indexOf("/androidDevicePolicyConfig", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); + unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.equals("/androidDevicePolicyConfig")); + pathOffset += 26; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildAndroidDevicePolicyConfig()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.setAndroidDevicePolicyConfig(arg_request, arg_enterpriseId).then(unittest.expectAsync1(((api.AndroidDevicePolicyConfig response) { + checkAndroidDevicePolicyConfig(response); + }))); + }); + unittest.test("method--setStoreLayout", () { var mock = new HttpServerMock();
diff --git a/generated/googleapis/test/androidmanagement/v1_test.dart b/generated/googleapis/test/androidmanagement/v1_test.dart new file mode 100644 index 0000000..3eeb448 --- /dev/null +++ b/generated/googleapis/test/androidmanagement/v1_test.dart
@@ -0,0 +1,3041 @@ +library googleapis.androidmanagement.v1.test; + +import "dart:core" as core; +import "dart:collection" as collection; +import "dart:async" as async; +import "dart:convert" as convert; + +import 'package:http/http.dart' as http; +import 'package:http/testing.dart' as http_testing; +import 'package:test/test.dart' as unittest; + +import 'package:googleapis/androidmanagement/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); +} + +core.int buildCounterApiLevelCondition = 0; +buildApiLevelCondition() { + var o = new api.ApiLevelCondition(); + buildCounterApiLevelCondition++; + if (buildCounterApiLevelCondition < 3) { + o.minApiLevel = 42; + } + buildCounterApiLevelCondition--; + return o; +} + +checkApiLevelCondition(api.ApiLevelCondition o) { + buildCounterApiLevelCondition++; + if (buildCounterApiLevelCondition < 3) { + unittest.expect(o.minApiLevel, unittest.equals(42)); + } + buildCounterApiLevelCondition--; +} + +buildUnnamed1542() { + var o = new core.List<api.ManagedProperty>(); + o.add(buildManagedProperty()); + o.add(buildManagedProperty()); + return o; +} + +checkUnnamed1542(core.List<api.ManagedProperty> o) { + unittest.expect(o, unittest.hasLength(2)); + checkManagedProperty(o[0]); + checkManagedProperty(o[1]); +} + +buildUnnamed1543() { + var o = new core.List<api.ApplicationPermission>(); + o.add(buildApplicationPermission()); + o.add(buildApplicationPermission()); + return o; +} + +checkUnnamed1543(core.List<api.ApplicationPermission> o) { + unittest.expect(o, unittest.hasLength(2)); + checkApplicationPermission(o[0]); + checkApplicationPermission(o[1]); +} + +core.int buildCounterApplication = 0; +buildApplication() { + var o = new api.Application(); + buildCounterApplication++; + if (buildCounterApplication < 3) { + o.managedProperties = buildUnnamed1542(); + o.name = "foo"; + o.permissions = buildUnnamed1543(); + o.title = "foo"; + } + buildCounterApplication--; + return o; +} + +checkApplication(api.Application o) { + buildCounterApplication++; + if (buildCounterApplication < 3) { + checkUnnamed1542(o.managedProperties); + unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed1543(o.permissions); + unittest.expect(o.title, unittest.equals('foo')); + } + buildCounterApplication--; +} + +core.int buildCounterApplicationPermission = 0; +buildApplicationPermission() { + var o = new api.ApplicationPermission(); + buildCounterApplicationPermission++; + if (buildCounterApplicationPermission < 3) { + o.description = "foo"; + o.name = "foo"; + o.permissionId = "foo"; + } + buildCounterApplicationPermission--; + return o; +} + +checkApplicationPermission(api.ApplicationPermission o) { + buildCounterApplicationPermission++; + if (buildCounterApplicationPermission < 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.permissionId, unittest.equals('foo')); + } + buildCounterApplicationPermission--; +} + +buildUnnamed1544() { + 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; +} + +checkUnnamed1544(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')); +} + +buildUnnamed1545() { + var o = new core.List<api.PermissionGrant>(); + o.add(buildPermissionGrant()); + o.add(buildPermissionGrant()); + return o; +} + +checkUnnamed1545(core.List<api.PermissionGrant> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPermissionGrant(o[0]); + checkPermissionGrant(o[1]); +} + +core.int buildCounterApplicationPolicy = 0; +buildApplicationPolicy() { + var o = new api.ApplicationPolicy(); + buildCounterApplicationPolicy++; + if (buildCounterApplicationPolicy < 3) { + o.defaultPermissionPolicy = "foo"; + o.installType = "foo"; + o.lockTaskAllowed = true; + o.managedConfiguration = buildUnnamed1544(); + o.packageName = "foo"; + o.permissionGrants = buildUnnamed1545(); + } + buildCounterApplicationPolicy--; + return o; +} + +checkApplicationPolicy(api.ApplicationPolicy o) { + buildCounterApplicationPolicy++; + if (buildCounterApplicationPolicy < 3) { + unittest.expect(o.defaultPermissionPolicy, unittest.equals('foo')); + unittest.expect(o.installType, unittest.equals('foo')); + unittest.expect(o.lockTaskAllowed, unittest.isTrue); + checkUnnamed1544(o.managedConfiguration); + unittest.expect(o.packageName, unittest.equals('foo')); + checkUnnamed1545(o.permissionGrants); + } + buildCounterApplicationPolicy--; +} + +buildUnnamed1546() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1546(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterCommand = 0; +buildCommand() { + var o = new api.Command(); + buildCounterCommand++; + if (buildCounterCommand < 3) { + o.createTime = "foo"; + o.duration = "foo"; + o.newPassword = "foo"; + o.resetPasswordFlags = buildUnnamed1546(); + o.type = "foo"; + } + buildCounterCommand--; + return o; +} + +checkCommand(api.Command o) { + buildCounterCommand++; + if (buildCounterCommand < 3) { + unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.duration, unittest.equals('foo')); + unittest.expect(o.newPassword, unittest.equals('foo')); + checkUnnamed1546(o.resetPasswordFlags); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterCommand--; +} + +core.int buildCounterComplianceRule = 0; +buildComplianceRule() { + var o = new api.ComplianceRule(); + buildCounterComplianceRule++; + if (buildCounterComplianceRule < 3) { + o.apiLevelCondition = buildApiLevelCondition(); + o.disableApps = true; + o.nonComplianceDetailCondition = buildNonComplianceDetailCondition(); + } + buildCounterComplianceRule--; + return o; +} + +checkComplianceRule(api.ComplianceRule o) { + buildCounterComplianceRule++; + if (buildCounterComplianceRule < 3) { + checkApiLevelCondition(o.apiLevelCondition); + unittest.expect(o.disableApps, unittest.isTrue); + checkNonComplianceDetailCondition(o.nonComplianceDetailCondition); + } + buildCounterComplianceRule--; +} + +buildUnnamed1547() { + var o = new core.List<api.Display>(); + o.add(buildDisplay()); + o.add(buildDisplay()); + return o; +} + +checkUnnamed1547(core.List<api.Display> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDisplay(o[0]); + checkDisplay(o[1]); +} + +buildUnnamed1548() { + var o = new core.List<api.HardwareStatus>(); + o.add(buildHardwareStatus()); + o.add(buildHardwareStatus()); + return o; +} + +checkUnnamed1548(core.List<api.HardwareStatus> o) { + unittest.expect(o, unittest.hasLength(2)); + checkHardwareStatus(o[0]); + checkHardwareStatus(o[1]); +} + +buildUnnamed1549() { + var o = new core.List<api.MemoryEvent>(); + o.add(buildMemoryEvent()); + o.add(buildMemoryEvent()); + return o; +} + +checkUnnamed1549(core.List<api.MemoryEvent> o) { + unittest.expect(o, unittest.hasLength(2)); + checkMemoryEvent(o[0]); + checkMemoryEvent(o[1]); +} + +buildUnnamed1550() { + var o = new core.List<api.NonComplianceDetail>(); + o.add(buildNonComplianceDetail()); + o.add(buildNonComplianceDetail()); + return o; +} + +checkUnnamed1550(core.List<api.NonComplianceDetail> o) { + unittest.expect(o, unittest.hasLength(2)); + checkNonComplianceDetail(o[0]); + checkNonComplianceDetail(o[1]); +} + +buildUnnamed1551() { + var o = new core.List<api.PowerManagementEvent>(); + o.add(buildPowerManagementEvent()); + o.add(buildPowerManagementEvent()); + return o; +} + +checkUnnamed1551(core.List<api.PowerManagementEvent> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPowerManagementEvent(o[0]); + checkPowerManagementEvent(o[1]); +} + +buildUnnamed1552() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1552(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterDevice = 0; +buildDevice() { + var o = new api.Device(); + buildCounterDevice++; + if (buildCounterDevice < 3) { + o.apiLevel = 42; + o.appliedPolicyName = "foo"; + o.appliedPolicyVersion = "foo"; + o.appliedState = "foo"; + o.disabledReason = buildUserFacingMessage(); + o.displays = buildUnnamed1547(); + o.enrollmentTime = "foo"; + o.enrollmentTokenData = "foo"; + o.enrollmentTokenName = "foo"; + o.hardwareInfo = buildHardwareInfo(); + o.hardwareStatusSamples = buildUnnamed1548(); + o.lastPolicyComplianceReportTime = "foo"; + o.lastPolicySyncTime = "foo"; + o.lastStatusReportTime = "foo"; + o.memoryEvents = buildUnnamed1549(); + o.memoryInfo = buildMemoryInfo(); + o.name = "foo"; + o.networkInfo = buildNetworkInfo(); + o.nonComplianceDetails = buildUnnamed1550(); + o.policyCompliant = true; + o.policyName = "foo"; + o.powerManagementEvents = buildUnnamed1551(); + o.previousDeviceNames = buildUnnamed1552(); + o.softwareInfo = buildSoftwareInfo(); + o.state = "foo"; + o.userName = "foo"; + } + buildCounterDevice--; + return o; +} + +checkDevice(api.Device o) { + buildCounterDevice++; + if (buildCounterDevice < 3) { + unittest.expect(o.apiLevel, unittest.equals(42)); + unittest.expect(o.appliedPolicyName, unittest.equals('foo')); + unittest.expect(o.appliedPolicyVersion, unittest.equals('foo')); + unittest.expect(o.appliedState, unittest.equals('foo')); + checkUserFacingMessage(o.disabledReason); + checkUnnamed1547(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); + checkUnnamed1548(o.hardwareStatusSamples); + unittest.expect(o.lastPolicyComplianceReportTime, unittest.equals('foo')); + unittest.expect(o.lastPolicySyncTime, unittest.equals('foo')); + unittest.expect(o.lastStatusReportTime, unittest.equals('foo')); + checkUnnamed1549(o.memoryEvents); + checkMemoryInfo(o.memoryInfo); + unittest.expect(o.name, unittest.equals('foo')); + checkNetworkInfo(o.networkInfo); + checkUnnamed1550(o.nonComplianceDetails); + unittest.expect(o.policyCompliant, unittest.isTrue); + unittest.expect(o.policyName, unittest.equals('foo')); + checkUnnamed1551(o.powerManagementEvents); + checkUnnamed1552(o.previousDeviceNames); + checkSoftwareInfo(o.softwareInfo); + unittest.expect(o.state, unittest.equals('foo')); + unittest.expect(o.userName, unittest.equals('foo')); + } + buildCounterDevice--; +} + +core.int buildCounterDisplay = 0; +buildDisplay() { + var o = new api.Display(); + buildCounterDisplay++; + if (buildCounterDisplay < 3) { + o.density = 42; + o.displayId = 42; + o.height = 42; + o.name = "foo"; + o.refreshRate = 42; + o.state = "foo"; + o.width = 42; + } + buildCounterDisplay--; + return o; +} + +checkDisplay(api.Display o) { + buildCounterDisplay++; + if (buildCounterDisplay < 3) { + unittest.expect(o.density, unittest.equals(42)); + unittest.expect(o.displayId, unittest.equals(42)); + unittest.expect(o.height, unittest.equals(42)); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.refreshRate, unittest.equals(42)); + unittest.expect(o.state, unittest.equals('foo')); + unittest.expect(o.width, unittest.equals(42)); + } + buildCounterDisplay--; +} + +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 buildCounterEnrollmentToken = 0; +buildEnrollmentToken() { + var o = new api.EnrollmentToken(); + buildCounterEnrollmentToken++; + if (buildCounterEnrollmentToken < 3) { + o.additionalData = "foo"; + o.duration = "foo"; + o.expirationTimestamp = "foo"; + o.name = "foo"; + o.policyName = "foo"; + o.qrCode = "foo"; + o.value = "foo"; + } + buildCounterEnrollmentToken--; + return o; +} + +checkEnrollmentToken(api.EnrollmentToken o) { + buildCounterEnrollmentToken++; + if (buildCounterEnrollmentToken < 3) { + unittest.expect(o.additionalData, unittest.equals('foo')); + unittest.expect(o.duration, unittest.equals('foo')); + unittest.expect(o.expirationTimestamp, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.policyName, unittest.equals('foo')); + unittest.expect(o.qrCode, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterEnrollmentToken--; +} + +buildUnnamed1553() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1553(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterEnterprise = 0; +buildEnterprise() { + var o = new api.Enterprise(); + buildCounterEnterprise++; + if (buildCounterEnterprise < 3) { + o.appAutoApprovalEnabled = true; + o.enabledNotificationTypes = buildUnnamed1553(); + o.enterpriseDisplayName = "foo"; + o.logo = buildExternalData(); + o.name = "foo"; + o.primaryColor = 42; + o.pubsubTopic = "foo"; + } + buildCounterEnterprise--; + return o; +} + +checkEnterprise(api.Enterprise o) { + buildCounterEnterprise++; + if (buildCounterEnterprise < 3) { + unittest.expect(o.appAutoApprovalEnabled, unittest.isTrue); + checkUnnamed1553(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')); + } + buildCounterEnterprise--; +} + +core.int buildCounterExternalData = 0; +buildExternalData() { + var o = new api.ExternalData(); + buildCounterExternalData++; + if (buildCounterExternalData < 3) { + o.sha256Hash = "foo"; + o.url = "foo"; + } + buildCounterExternalData--; + return o; +} + +checkExternalData(api.ExternalData o) { + buildCounterExternalData++; + if (buildCounterExternalData < 3) { + unittest.expect(o.sha256Hash, unittest.equals('foo')); + unittest.expect(o.url, unittest.equals('foo')); + } + buildCounterExternalData--; +} + +buildUnnamed1554() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1554(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)); +} + +buildUnnamed1555() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1555(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)); +} + +buildUnnamed1556() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1556(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)); +} + +buildUnnamed1557() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1557(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)); +} + +buildUnnamed1558() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1558(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)); +} + +buildUnnamed1559() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1559(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)); +} + +buildUnnamed1560() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1560(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)); +} + +buildUnnamed1561() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1561(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 = buildUnnamed1554(); + o.batteryThrottlingTemperatures = buildUnnamed1555(); + o.brand = "foo"; + o.cpuShutdownTemperatures = buildUnnamed1556(); + o.cpuThrottlingTemperatures = buildUnnamed1557(); + o.deviceBasebandVersion = "foo"; + o.gpuShutdownTemperatures = buildUnnamed1558(); + o.gpuThrottlingTemperatures = buildUnnamed1559(); + o.hardware = "foo"; + o.manufacturer = "foo"; + o.model = "foo"; + o.serialNumber = "foo"; + o.skinShutdownTemperatures = buildUnnamed1560(); + o.skinThrottlingTemperatures = buildUnnamed1561(); + } + buildCounterHardwareInfo--; + return o; +} + +checkHardwareInfo(api.HardwareInfo o) { + buildCounterHardwareInfo++; + if (buildCounterHardwareInfo < 3) { + checkUnnamed1554(o.batteryShutdownTemperatures); + checkUnnamed1555(o.batteryThrottlingTemperatures); + unittest.expect(o.brand, unittest.equals('foo')); + checkUnnamed1556(o.cpuShutdownTemperatures); + checkUnnamed1557(o.cpuThrottlingTemperatures); + unittest.expect(o.deviceBasebandVersion, unittest.equals('foo')); + checkUnnamed1558(o.gpuShutdownTemperatures); + checkUnnamed1559(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')); + checkUnnamed1560(o.skinShutdownTemperatures); + checkUnnamed1561(o.skinThrottlingTemperatures); + } + buildCounterHardwareInfo--; +} + +buildUnnamed1562() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1562(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)); +} + +buildUnnamed1563() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1563(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)); +} + +buildUnnamed1564() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1564(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)); +} + +buildUnnamed1565() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1565(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)); +} + +buildUnnamed1566() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1566(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)); +} + +buildUnnamed1567() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1567(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 = buildUnnamed1562(); + o.cpuTemperatures = buildUnnamed1563(); + o.cpuUsages = buildUnnamed1564(); + o.createTime = "foo"; + o.fanSpeeds = buildUnnamed1565(); + o.gpuTemperatures = buildUnnamed1566(); + o.skinTemperatures = buildUnnamed1567(); + } + buildCounterHardwareStatus--; + return o; +} + +checkHardwareStatus(api.HardwareStatus o) { + buildCounterHardwareStatus++; + if (buildCounterHardwareStatus < 3) { + checkUnnamed1562(o.batteryTemperatures); + checkUnnamed1563(o.cpuTemperatures); + checkUnnamed1564(o.cpuUsages); + unittest.expect(o.createTime, unittest.equals('foo')); + checkUnnamed1565(o.fanSpeeds); + checkUnnamed1566(o.gpuTemperatures); + checkUnnamed1567(o.skinTemperatures); + } + buildCounterHardwareStatus--; +} + +buildUnnamed1568() { + var o = new core.List<api.Device>(); + o.add(buildDevice()); + o.add(buildDevice()); + return o; +} + +checkUnnamed1568(core.List<api.Device> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDevice(o[0]); + checkDevice(o[1]); +} + +core.int buildCounterListDevicesResponse = 0; +buildListDevicesResponse() { + var o = new api.ListDevicesResponse(); + buildCounterListDevicesResponse++; + if (buildCounterListDevicesResponse < 3) { + o.devices = buildUnnamed1568(); + o.nextPageToken = "foo"; + } + buildCounterListDevicesResponse--; + return o; +} + +checkListDevicesResponse(api.ListDevicesResponse o) { + buildCounterListDevicesResponse++; + if (buildCounterListDevicesResponse < 3) { + checkUnnamed1568(o.devices); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListDevicesResponse--; +} + +buildUnnamed1569() { + var o = new core.List<api.Operation>(); + o.add(buildOperation()); + o.add(buildOperation()); + return o; +} + +checkUnnamed1569(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 = buildUnnamed1569(); + } + buildCounterListOperationsResponse--; + return o; +} + +checkListOperationsResponse(api.ListOperationsResponse o) { + buildCounterListOperationsResponse++; + if (buildCounterListOperationsResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed1569(o.operations); + } + buildCounterListOperationsResponse--; +} + +buildUnnamed1570() { + var o = new core.List<api.Policy>(); + o.add(buildPolicy()); + o.add(buildPolicy()); + return o; +} + +checkUnnamed1570(core.List<api.Policy> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPolicy(o[0]); + checkPolicy(o[1]); +} + +core.int buildCounterListPoliciesResponse = 0; +buildListPoliciesResponse() { + var o = new api.ListPoliciesResponse(); + buildCounterListPoliciesResponse++; + if (buildCounterListPoliciesResponse < 3) { + o.nextPageToken = "foo"; + o.policies = buildUnnamed1570(); + } + buildCounterListPoliciesResponse--; + return o; +} + +checkListPoliciesResponse(api.ListPoliciesResponse o) { + buildCounterListPoliciesResponse++; + if (buildCounterListPoliciesResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed1570(o.policies); + } + buildCounterListPoliciesResponse--; +} + +buildUnnamed1571() { + var o = new core.List<api.ManagedPropertyEntry>(); + o.add(buildManagedPropertyEntry()); + o.add(buildManagedPropertyEntry()); + return o; +} + +checkUnnamed1571(core.List<api.ManagedPropertyEntry> o) { + unittest.expect(o, unittest.hasLength(2)); + checkManagedPropertyEntry(o[0]); + checkManagedPropertyEntry(o[1]); +} + +buildUnnamed1572() { + var o = new core.List<api.ManagedProperty>(); + o.add(buildManagedProperty()); + o.add(buildManagedProperty()); + return o; +} + +checkUnnamed1572(core.List<api.ManagedProperty> o) { + unittest.expect(o, unittest.hasLength(2)); + checkManagedProperty(o[0]); + checkManagedProperty(o[1]); +} + +core.int buildCounterManagedProperty = 0; +buildManagedProperty() { + var o = new api.ManagedProperty(); + buildCounterManagedProperty++; + if (buildCounterManagedProperty < 3) { + o.defaultValue = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + o.description = "foo"; + o.entries = buildUnnamed1571(); + o.key = "foo"; + o.nestedProperties = buildUnnamed1572(); + o.title = "foo"; + o.type = "foo"; + } + buildCounterManagedProperty--; + return o; +} + +checkManagedProperty(api.ManagedProperty o) { + buildCounterManagedProperty++; + if (buildCounterManagedProperty < 3) { + var casted3 = (o.defaultValue) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + checkUnnamed1571(o.entries); + unittest.expect(o.key, unittest.equals('foo')); + checkUnnamed1572(o.nestedProperties); + unittest.expect(o.title, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterManagedProperty--; +} + +core.int buildCounterManagedPropertyEntry = 0; +buildManagedPropertyEntry() { + var o = new api.ManagedPropertyEntry(); + buildCounterManagedPropertyEntry++; + if (buildCounterManagedPropertyEntry < 3) { + o.name = "foo"; + o.value = "foo"; + } + buildCounterManagedPropertyEntry--; + return o; +} + +checkManagedPropertyEntry(api.ManagedPropertyEntry o) { + buildCounterManagedPropertyEntry++; + if (buildCounterManagedPropertyEntry < 3) { + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterManagedPropertyEntry--; +} + +core.int buildCounterMemoryEvent = 0; +buildMemoryEvent() { + var o = new api.MemoryEvent(); + buildCounterMemoryEvent++; + if (buildCounterMemoryEvent < 3) { + o.byteCount = "foo"; + o.createTime = "foo"; + o.eventType = "foo"; + } + buildCounterMemoryEvent--; + return o; +} + +checkMemoryEvent(api.MemoryEvent o) { + buildCounterMemoryEvent++; + if (buildCounterMemoryEvent < 3) { + unittest.expect(o.byteCount, unittest.equals('foo')); + unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.eventType, unittest.equals('foo')); + } + buildCounterMemoryEvent--; +} + +core.int buildCounterMemoryInfo = 0; +buildMemoryInfo() { + var o = new api.MemoryInfo(); + buildCounterMemoryInfo++; + if (buildCounterMemoryInfo < 3) { + o.totalInternalStorage = "foo"; + o.totalRam = "foo"; + } + buildCounterMemoryInfo--; + return o; +} + +checkMemoryInfo(api.MemoryInfo o) { + buildCounterMemoryInfo++; + if (buildCounterMemoryInfo < 3) { + unittest.expect(o.totalInternalStorage, unittest.equals('foo')); + unittest.expect(o.totalRam, unittest.equals('foo')); + } + buildCounterMemoryInfo--; +} + +core.int buildCounterNetworkInfo = 0; +buildNetworkInfo() { + var o = new api.NetworkInfo(); + buildCounterNetworkInfo++; + if (buildCounterNetworkInfo < 3) { + o.imei = "foo"; + o.meid = "foo"; + o.wifiMacAddress = "foo"; + } + buildCounterNetworkInfo--; + return o; +} + +checkNetworkInfo(api.NetworkInfo o) { + buildCounterNetworkInfo++; + if (buildCounterNetworkInfo < 3) { + unittest.expect(o.imei, unittest.equals('foo')); + unittest.expect(o.meid, unittest.equals('foo')); + unittest.expect(o.wifiMacAddress, unittest.equals('foo')); + } + buildCounterNetworkInfo--; +} + +core.int buildCounterNonComplianceDetail = 0; +buildNonComplianceDetail() { + var o = new api.NonComplianceDetail(); + buildCounterNonComplianceDetail++; + if (buildCounterNonComplianceDetail < 3) { + o.currentValue = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + o.fieldPath = "foo"; + o.installationFailureReason = "foo"; + o.nonComplianceReason = "foo"; + o.packageName = "foo"; + o.settingName = "foo"; + } + buildCounterNonComplianceDetail--; + return o; +} + +checkNonComplianceDetail(api.NonComplianceDetail o) { + buildCounterNonComplianceDetail++; + if (buildCounterNonComplianceDetail < 3) { + var casted4 = (o.currentValue) 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')); + unittest.expect(o.fieldPath, unittest.equals('foo')); + unittest.expect(o.installationFailureReason, unittest.equals('foo')); + unittest.expect(o.nonComplianceReason, unittest.equals('foo')); + unittest.expect(o.packageName, unittest.equals('foo')); + unittest.expect(o.settingName, unittest.equals('foo')); + } + buildCounterNonComplianceDetail--; +} + +core.int buildCounterNonComplianceDetailCondition = 0; +buildNonComplianceDetailCondition() { + var o = new api.NonComplianceDetailCondition(); + buildCounterNonComplianceDetailCondition++; + if (buildCounterNonComplianceDetailCondition < 3) { + o.nonComplianceReason = "foo"; + o.packageName = "foo"; + o.settingName = "foo"; + } + buildCounterNonComplianceDetailCondition--; + return o; +} + +checkNonComplianceDetailCondition(api.NonComplianceDetailCondition o) { + buildCounterNonComplianceDetailCondition++; + if (buildCounterNonComplianceDetailCondition < 3) { + unittest.expect(o.nonComplianceReason, unittest.equals('foo')); + unittest.expect(o.packageName, unittest.equals('foo')); + unittest.expect(o.settingName, unittest.equals('foo')); + } + buildCounterNonComplianceDetailCondition--; +} + +buildUnnamed1573() { + 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; +} + +checkUnnamed1573(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')); +} + +buildUnnamed1574() { + 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; +} + +checkUnnamed1574(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 buildCounterOperation = 0; +buildOperation() { + var o = new api.Operation(); + buildCounterOperation++; + if (buildCounterOperation < 3) { + o.done = true; + o.error = buildStatus(); + o.metadata = buildUnnamed1573(); + o.name = "foo"; + o.response = buildUnnamed1574(); + } + buildCounterOperation--; + return o; +} + +checkOperation(api.Operation o) { + buildCounterOperation++; + if (buildCounterOperation < 3) { + unittest.expect(o.done, unittest.isTrue); + checkStatus(o.error); + checkUnnamed1573(o.metadata); + unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed1574(o.response); + } + buildCounterOperation--; +} + +core.int buildCounterPasswordRequirements = 0; +buildPasswordRequirements() { + var o = new api.PasswordRequirements(); + buildCounterPasswordRequirements++; + if (buildCounterPasswordRequirements < 3) { + o.maximumFailedPasswordsForWipe = 42; + o.passwordExpirationTimeout = "foo"; + o.passwordHistoryLength = 42; + o.passwordMinimumLength = 42; + o.passwordMinimumLetters = 42; + o.passwordMinimumLowerCase = 42; + o.passwordMinimumNonLetter = 42; + o.passwordMinimumNumeric = 42; + o.passwordMinimumSymbols = 42; + o.passwordMinimumUpperCase = 42; + o.passwordQuality = "foo"; + } + buildCounterPasswordRequirements--; + return o; +} + +checkPasswordRequirements(api.PasswordRequirements o) { + buildCounterPasswordRequirements++; + if (buildCounterPasswordRequirements < 3) { + unittest.expect(o.maximumFailedPasswordsForWipe, unittest.equals(42)); + unittest.expect(o.passwordExpirationTimeout, unittest.equals('foo')); + unittest.expect(o.passwordHistoryLength, unittest.equals(42)); + unittest.expect(o.passwordMinimumLength, unittest.equals(42)); + unittest.expect(o.passwordMinimumLetters, unittest.equals(42)); + unittest.expect(o.passwordMinimumLowerCase, unittest.equals(42)); + unittest.expect(o.passwordMinimumNonLetter, unittest.equals(42)); + unittest.expect(o.passwordMinimumNumeric, unittest.equals(42)); + unittest.expect(o.passwordMinimumSymbols, unittest.equals(42)); + unittest.expect(o.passwordMinimumUpperCase, unittest.equals(42)); + unittest.expect(o.passwordQuality, unittest.equals('foo')); + } + buildCounterPasswordRequirements--; +} + +core.int buildCounterPermissionGrant = 0; +buildPermissionGrant() { + var o = new api.PermissionGrant(); + buildCounterPermissionGrant++; + if (buildCounterPermissionGrant < 3) { + o.permission = "foo"; + o.policy = "foo"; + } + buildCounterPermissionGrant--; + return o; +} + +checkPermissionGrant(api.PermissionGrant o) { + buildCounterPermissionGrant++; + if (buildCounterPermissionGrant < 3) { + unittest.expect(o.permission, unittest.equals('foo')); + unittest.expect(o.policy, unittest.equals('foo')); + } + buildCounterPermissionGrant--; +} + +buildUnnamed1575() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1575(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +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 buildCounterPersistentPreferredActivity = 0; +buildPersistentPreferredActivity() { + var o = new api.PersistentPreferredActivity(); + buildCounterPersistentPreferredActivity++; + if (buildCounterPersistentPreferredActivity < 3) { + o.actions = buildUnnamed1575(); + o.categories = buildUnnamed1576(); + o.receiverActivity = "foo"; + } + buildCounterPersistentPreferredActivity--; + return o; +} + +checkPersistentPreferredActivity(api.PersistentPreferredActivity o) { + buildCounterPersistentPreferredActivity++; + if (buildCounterPersistentPreferredActivity < 3) { + checkUnnamed1575(o.actions); + checkUnnamed1576(o.categories); + unittest.expect(o.receiverActivity, unittest.equals('foo')); + } + buildCounterPersistentPreferredActivity--; +} + +buildUnnamed1577() { + var o = new core.List<api.ApplicationPolicy>(); + o.add(buildApplicationPolicy()); + o.add(buildApplicationPolicy()); + return o; +} + +checkUnnamed1577(core.List<api.ApplicationPolicy> o) { + unittest.expect(o, unittest.hasLength(2)); + checkApplicationPolicy(o[0]); + checkApplicationPolicy(o[1]); +} + +buildUnnamed1578() { + var o = new core.List<api.ComplianceRule>(); + o.add(buildComplianceRule()); + o.add(buildComplianceRule()); + return o; +} + +checkUnnamed1578(core.List<api.ComplianceRule> o) { + unittest.expect(o, unittest.hasLength(2)); + checkComplianceRule(o[0]); + checkComplianceRule(o[1]); +} + +buildUnnamed1579() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1579(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1580() { + 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; +} + +checkUnnamed1580(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')); +} + +buildUnnamed1581() { + var o = new core.List<api.PersistentPreferredActivity>(); + o.add(buildPersistentPreferredActivity()); + o.add(buildPersistentPreferredActivity()); + return o; +} + +checkUnnamed1581(core.List<api.PersistentPreferredActivity> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPersistentPreferredActivity(o[0]); + checkPersistentPreferredActivity(o[1]); +} + +buildUnnamed1582() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1582(core.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.addUserDisabled = true; + o.adjustVolumeDisabled = true; + o.applications = buildUnnamed1577(); + o.blockApplicationsEnabled = true; + o.cameraDisabled = true; + o.complianceRules = buildUnnamed1578(); + o.debuggingFeaturesAllowed = true; + o.defaultPermissionPolicy = "foo"; + o.factoryResetDisabled = true; + o.frpAdminEmails = buildUnnamed1579(); + o.installUnknownSourcesAllowed = true; + o.keyguardDisabled = true; + o.maximumTimeToLock = "foo"; + o.modifyAccountsDisabled = true; + o.name = "foo"; + o.networkEscapeHatchEnabled = true; + o.openNetworkConfiguration = buildUnnamed1580(); + o.passwordRequirements = buildPasswordRequirements(); + o.persistentPreferredActivities = buildUnnamed1581(); + o.removeUserDisabled = true; + o.safeBootDisabled = true; + o.screenCaptureDisabled = true; + o.statusBarDisabled = true; + o.statusReportingSettings = buildStatusReportingSettings(); + o.stayOnPluggedModes = buildUnnamed1582(); + o.systemUpdate = buildSystemUpdate(); + o.unmuteMicrophoneDisabled = true; + o.version = "foo"; + } + buildCounterPolicy--; + return o; +} + +checkPolicy(api.Policy o) { + buildCounterPolicy++; + if (buildCounterPolicy < 3) { + unittest.expect(o.addUserDisabled, unittest.isTrue); + unittest.expect(o.adjustVolumeDisabled, unittest.isTrue); + checkUnnamed1577(o.applications); + unittest.expect(o.blockApplicationsEnabled, unittest.isTrue); + unittest.expect(o.cameraDisabled, unittest.isTrue); + checkUnnamed1578(o.complianceRules); + unittest.expect(o.debuggingFeaturesAllowed, unittest.isTrue); + unittest.expect(o.defaultPermissionPolicy, unittest.equals('foo')); + unittest.expect(o.factoryResetDisabled, unittest.isTrue); + checkUnnamed1579(o.frpAdminEmails); + unittest.expect(o.installUnknownSourcesAllowed, unittest.isTrue); + unittest.expect(o.keyguardDisabled, unittest.isTrue); + unittest.expect(o.maximumTimeToLock, unittest.equals('foo')); + unittest.expect(o.modifyAccountsDisabled, unittest.isTrue); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.networkEscapeHatchEnabled, unittest.isTrue); + checkUnnamed1580(o.openNetworkConfiguration); + checkPasswordRequirements(o.passwordRequirements); + checkUnnamed1581(o.persistentPreferredActivities); + unittest.expect(o.removeUserDisabled, unittest.isTrue); + unittest.expect(o.safeBootDisabled, unittest.isTrue); + unittest.expect(o.screenCaptureDisabled, unittest.isTrue); + unittest.expect(o.statusBarDisabled, unittest.isTrue); + checkStatusReportingSettings(o.statusReportingSettings); + checkUnnamed1582(o.stayOnPluggedModes); + checkSystemUpdate(o.systemUpdate); + unittest.expect(o.unmuteMicrophoneDisabled, unittest.isTrue); + unittest.expect(o.version, unittest.equals('foo')); + } + buildCounterPolicy--; +} + +core.int buildCounterPowerManagementEvent = 0; +buildPowerManagementEvent() { + var o = new api.PowerManagementEvent(); + buildCounterPowerManagementEvent++; + if (buildCounterPowerManagementEvent < 3) { + o.batteryLevel = 42.0; + o.createTime = "foo"; + o.eventType = "foo"; + } + buildCounterPowerManagementEvent--; + return o; +} + +checkPowerManagementEvent(api.PowerManagementEvent o) { + buildCounterPowerManagementEvent++; + if (buildCounterPowerManagementEvent < 3) { + unittest.expect(o.batteryLevel, unittest.equals(42.0)); + unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.eventType, unittest.equals('foo')); + } + buildCounterPowerManagementEvent--; +} + +core.int buildCounterSignupUrl = 0; +buildSignupUrl() { + var o = new api.SignupUrl(); + buildCounterSignupUrl++; + if (buildCounterSignupUrl < 3) { + o.name = "foo"; + o.url = "foo"; + } + buildCounterSignupUrl--; + return o; +} + +checkSignupUrl(api.SignupUrl o) { + buildCounterSignupUrl++; + if (buildCounterSignupUrl < 3) { + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.url, unittest.equals('foo')); + } + buildCounterSignupUrl--; +} + +core.int buildCounterSoftwareInfo = 0; +buildSoftwareInfo() { + var o = new api.SoftwareInfo(); + buildCounterSoftwareInfo++; + if (buildCounterSoftwareInfo < 3) { + o.androidBuildNumber = "foo"; + o.androidBuildTime = "foo"; + o.androidVersion = "foo"; + o.bootloaderVersion = "foo"; + o.deviceKernelVersion = "foo"; + o.securityPatchLevel = "foo"; + } + buildCounterSoftwareInfo--; + return o; +} + +checkSoftwareInfo(api.SoftwareInfo o) { + buildCounterSoftwareInfo++; + if (buildCounterSoftwareInfo < 3) { + unittest.expect(o.androidBuildNumber, unittest.equals('foo')); + unittest.expect(o.androidBuildTime, unittest.equals('foo')); + unittest.expect(o.androidVersion, unittest.equals('foo')); + unittest.expect(o.bootloaderVersion, unittest.equals('foo')); + unittest.expect(o.deviceKernelVersion, unittest.equals('foo')); + unittest.expect(o.securityPatchLevel, unittest.equals('foo')); + } + buildCounterSoftwareInfo--; +} + +buildUnnamed1583() { + 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; +} + +checkUnnamed1583(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')); +} + +buildUnnamed1584() { + var o = new core.List<core.Map<core.String, core.Object>>(); + o.add(buildUnnamed1583()); + o.add(buildUnnamed1583()); + return o; +} + +checkUnnamed1584(core.List<core.Map<core.String, core.Object>> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed1583(o[0]); + checkUnnamed1583(o[1]); +} + +core.int buildCounterStatus = 0; +buildStatus() { + var o = new api.Status(); + buildCounterStatus++; + if (buildCounterStatus < 3) { + o.code = 42; + o.details = buildUnnamed1584(); + o.message = "foo"; + } + buildCounterStatus--; + return o; +} + +checkStatus(api.Status o) { + buildCounterStatus++; + if (buildCounterStatus < 3) { + unittest.expect(o.code, unittest.equals(42)); + checkUnnamed1584(o.details); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterStatus--; +} + +core.int buildCounterStatusReportingSettings = 0; +buildStatusReportingSettings() { + var o = new api.StatusReportingSettings(); + buildCounterStatusReportingSettings++; + if (buildCounterStatusReportingSettings < 3) { + o.displayInfoEnabled = true; + o.hardwareStatusEnabled = true; + o.memoryInfoEnabled = true; + o.networkInfoEnabled = true; + o.powerManagementEventsEnabled = true; + o.softwareInfoEnabled = true; + } + buildCounterStatusReportingSettings--; + return o; +} + +checkStatusReportingSettings(api.StatusReportingSettings o) { + buildCounterStatusReportingSettings++; + if (buildCounterStatusReportingSettings < 3) { + unittest.expect(o.displayInfoEnabled, unittest.isTrue); + unittest.expect(o.hardwareStatusEnabled, unittest.isTrue); + unittest.expect(o.memoryInfoEnabled, unittest.isTrue); + unittest.expect(o.networkInfoEnabled, unittest.isTrue); + unittest.expect(o.powerManagementEventsEnabled, unittest.isTrue); + unittest.expect(o.softwareInfoEnabled, unittest.isTrue); + } + buildCounterStatusReportingSettings--; +} + +core.int buildCounterSystemUpdate = 0; +buildSystemUpdate() { + var o = new api.SystemUpdate(); + buildCounterSystemUpdate++; + if (buildCounterSystemUpdate < 3) { + o.endMinutes = 42; + o.startMinutes = 42; + o.type = "foo"; + } + buildCounterSystemUpdate--; + return o; +} + +checkSystemUpdate(api.SystemUpdate o) { + buildCounterSystemUpdate++; + if (buildCounterSystemUpdate < 3) { + unittest.expect(o.endMinutes, unittest.equals(42)); + unittest.expect(o.startMinutes, unittest.equals(42)); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterSystemUpdate--; +} + +buildUnnamed1585() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return 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')); +} + +core.int buildCounterUserFacingMessage = 0; +buildUserFacingMessage() { + var o = new api.UserFacingMessage(); + buildCounterUserFacingMessage++; + if (buildCounterUserFacingMessage < 3) { + o.defaultMessage = "foo"; + o.localizedMessages = buildUnnamed1585(); + } + buildCounterUserFacingMessage--; + return o; +} + +checkUserFacingMessage(api.UserFacingMessage o) { + buildCounterUserFacingMessage++; + if (buildCounterUserFacingMessage < 3) { + unittest.expect(o.defaultMessage, unittest.equals('foo')); + checkUnnamed1585(o.localizedMessages); + } + buildCounterUserFacingMessage--; +} + +buildUnnamed1586() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1586(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterWebToken = 0; +buildWebToken() { + var o = new api.WebToken(); + buildCounterWebToken++; + if (buildCounterWebToken < 3) { + o.name = "foo"; + o.parentFrameUrl = "foo"; + o.permissions = buildUnnamed1586(); + o.value = "foo"; + } + buildCounterWebToken--; + return o; +} + +checkWebToken(api.WebToken o) { + buildCounterWebToken++; + if (buildCounterWebToken < 3) { + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.parentFrameUrl, unittest.equals('foo')); + checkUnnamed1586(o.permissions); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterWebToken--; +} + + +main() { + unittest.group("obj-schema-ApiLevelCondition", () { + unittest.test("to-json--from-json", () { + var o = buildApiLevelCondition(); + var od = new api.ApiLevelCondition.fromJson(o.toJson()); + checkApiLevelCondition(od); + }); + }); + + + unittest.group("obj-schema-Application", () { + unittest.test("to-json--from-json", () { + var o = buildApplication(); + var od = new api.Application.fromJson(o.toJson()); + checkApplication(od); + }); + }); + + + unittest.group("obj-schema-ApplicationPermission", () { + unittest.test("to-json--from-json", () { + var o = buildApplicationPermission(); + var od = new api.ApplicationPermission.fromJson(o.toJson()); + checkApplicationPermission(od); + }); + }); + + + unittest.group("obj-schema-ApplicationPolicy", () { + unittest.test("to-json--from-json", () { + var o = buildApplicationPolicy(); + var od = new api.ApplicationPolicy.fromJson(o.toJson()); + checkApplicationPolicy(od); + }); + }); + + + unittest.group("obj-schema-Command", () { + unittest.test("to-json--from-json", () { + var o = buildCommand(); + var od = new api.Command.fromJson(o.toJson()); + checkCommand(od); + }); + }); + + + unittest.group("obj-schema-ComplianceRule", () { + unittest.test("to-json--from-json", () { + var o = buildComplianceRule(); + var od = new api.ComplianceRule.fromJson(o.toJson()); + checkComplianceRule(od); + }); + }); + + + unittest.group("obj-schema-Device", () { + unittest.test("to-json--from-json", () { + var o = buildDevice(); + var od = new api.Device.fromJson(o.toJson()); + checkDevice(od); + }); + }); + + + unittest.group("obj-schema-Display", () { + unittest.test("to-json--from-json", () { + var o = buildDisplay(); + var od = new api.Display.fromJson(o.toJson()); + checkDisplay(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-EnrollmentToken", () { + unittest.test("to-json--from-json", () { + var o = buildEnrollmentToken(); + var od = new api.EnrollmentToken.fromJson(o.toJson()); + checkEnrollmentToken(od); + }); + }); + + + unittest.group("obj-schema-Enterprise", () { + unittest.test("to-json--from-json", () { + var o = buildEnterprise(); + var od = new api.Enterprise.fromJson(o.toJson()); + checkEnterprise(od); + }); + }); + + + unittest.group("obj-schema-ExternalData", () { + unittest.test("to-json--from-json", () { + var o = buildExternalData(); + var od = new api.ExternalData.fromJson(o.toJson()); + checkExternalData(od); + }); + }); + + + unittest.group("obj-schema-HardwareInfo", () { + unittest.test("to-json--from-json", () { + var o = buildHardwareInfo(); + var od = new api.HardwareInfo.fromJson(o.toJson()); + checkHardwareInfo(od); + }); + }); + + + unittest.group("obj-schema-HardwareStatus", () { + unittest.test("to-json--from-json", () { + var o = buildHardwareStatus(); + var od = new api.HardwareStatus.fromJson(o.toJson()); + checkHardwareStatus(od); + }); + }); + + + unittest.group("obj-schema-ListDevicesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListDevicesResponse(); + var od = new api.ListDevicesResponse.fromJson(o.toJson()); + checkListDevicesResponse(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-ListPoliciesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListPoliciesResponse(); + var od = new api.ListPoliciesResponse.fromJson(o.toJson()); + checkListPoliciesResponse(od); + }); + }); + + + unittest.group("obj-schema-ManagedProperty", () { + unittest.test("to-json--from-json", () { + var o = buildManagedProperty(); + var od = new api.ManagedProperty.fromJson(o.toJson()); + checkManagedProperty(od); + }); + }); + + + unittest.group("obj-schema-ManagedPropertyEntry", () { + unittest.test("to-json--from-json", () { + var o = buildManagedPropertyEntry(); + var od = new api.ManagedPropertyEntry.fromJson(o.toJson()); + checkManagedPropertyEntry(od); + }); + }); + + + unittest.group("obj-schema-MemoryEvent", () { + unittest.test("to-json--from-json", () { + var o = buildMemoryEvent(); + var od = new api.MemoryEvent.fromJson(o.toJson()); + checkMemoryEvent(od); + }); + }); + + + unittest.group("obj-schema-MemoryInfo", () { + unittest.test("to-json--from-json", () { + var o = buildMemoryInfo(); + var od = new api.MemoryInfo.fromJson(o.toJson()); + checkMemoryInfo(od); + }); + }); + + + unittest.group("obj-schema-NetworkInfo", () { + unittest.test("to-json--from-json", () { + var o = buildNetworkInfo(); + var od = new api.NetworkInfo.fromJson(o.toJson()); + checkNetworkInfo(od); + }); + }); + + + unittest.group("obj-schema-NonComplianceDetail", () { + unittest.test("to-json--from-json", () { + var o = buildNonComplianceDetail(); + var od = new api.NonComplianceDetail.fromJson(o.toJson()); + checkNonComplianceDetail(od); + }); + }); + + + unittest.group("obj-schema-NonComplianceDetailCondition", () { + unittest.test("to-json--from-json", () { + var o = buildNonComplianceDetailCondition(); + var od = new api.NonComplianceDetailCondition.fromJson(o.toJson()); + checkNonComplianceDetailCondition(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-PasswordRequirements", () { + unittest.test("to-json--from-json", () { + var o = buildPasswordRequirements(); + var od = new api.PasswordRequirements.fromJson(o.toJson()); + checkPasswordRequirements(od); + }); + }); + + + unittest.group("obj-schema-PermissionGrant", () { + unittest.test("to-json--from-json", () { + var o = buildPermissionGrant(); + var od = new api.PermissionGrant.fromJson(o.toJson()); + checkPermissionGrant(od); + }); + }); + + + unittest.group("obj-schema-PersistentPreferredActivity", () { + unittest.test("to-json--from-json", () { + var o = buildPersistentPreferredActivity(); + var od = new api.PersistentPreferredActivity.fromJson(o.toJson()); + checkPersistentPreferredActivity(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-PowerManagementEvent", () { + unittest.test("to-json--from-json", () { + var o = buildPowerManagementEvent(); + var od = new api.PowerManagementEvent.fromJson(o.toJson()); + checkPowerManagementEvent(od); + }); + }); + + + unittest.group("obj-schema-SignupUrl", () { + unittest.test("to-json--from-json", () { + var o = buildSignupUrl(); + var od = new api.SignupUrl.fromJson(o.toJson()); + checkSignupUrl(od); + }); + }); + + + unittest.group("obj-schema-SoftwareInfo", () { + unittest.test("to-json--from-json", () { + var o = buildSoftwareInfo(); + var od = new api.SoftwareInfo.fromJson(o.toJson()); + checkSoftwareInfo(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-StatusReportingSettings", () { + unittest.test("to-json--from-json", () { + var o = buildStatusReportingSettings(); + var od = new api.StatusReportingSettings.fromJson(o.toJson()); + checkStatusReportingSettings(od); + }); + }); + + + unittest.group("obj-schema-SystemUpdate", () { + unittest.test("to-json--from-json", () { + var o = buildSystemUpdate(); + var od = new api.SystemUpdate.fromJson(o.toJson()); + checkSystemUpdate(od); + }); + }); + + + unittest.group("obj-schema-UserFacingMessage", () { + unittest.test("to-json--from-json", () { + var o = buildUserFacingMessage(); + var od = new api.UserFacingMessage.fromJson(o.toJson()); + checkUserFacingMessage(od); + }); + }); + + + unittest.group("obj-schema-WebToken", () { + unittest.test("to-json--from-json", () { + var o = buildWebToken(); + var od = new api.WebToken.fromJson(o.toJson()); + checkWebToken(od); + }); + }); + + + unittest.group("resource-EnterprisesResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.EnterprisesResourceApi res = new api.AndroidmanagementApi(mock).enterprises; + var arg_request = buildEnterprise(); + var arg_signupUrlName = "foo"; + var arg_enterpriseToken = "foo"; + var arg_projectId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.Enterprise.fromJson(json); + checkEnterprise(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("v1/enterprises")); + pathOffset += 14; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + 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)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEnterprise()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request, signupUrlName: arg_signupUrlName, enterpriseToken: arg_enterpriseToken, projectId: arg_projectId).then(unittest.expectAsync1(((api.Enterprise response) { + checkEnterprise(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.EnterprisesResourceApi res = new api.AndroidmanagementApi(mock).enterprises; + var arg_name = "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 = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEnterprise()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_name).then(unittest.expectAsync1(((api.Enterprise response) { + checkEnterprise(response); + }))); + }); + + unittest.test("method--patch", () { + + var mock = new HttpServerMock(); + api.EnterprisesResourceApi res = new api.AndroidmanagementApi(mock).enterprises; + var arg_request = buildEnterprise(); + var arg_name = "foo"; + var arg_updateMask = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.Enterprise.fromJson(json); + checkEnterprise(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEnterprise()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.patch(arg_request, arg_name, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Enterprise response) { + checkEnterprise(response); + }))); + }); + + }); + + + unittest.group("resource-EnterprisesApplicationsResourceApi", () { + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.EnterprisesApplicationsResourceApi res = new api.AndroidmanagementApi(mock).enterprises.applications; + var arg_name = "foo"; + var arg_languageCode = "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 = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["languageCode"].first, unittest.equals(arg_languageCode)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildApplication()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_name, languageCode: arg_languageCode).then(unittest.expectAsync1(((api.Application response) { + checkApplication(response); + }))); + }); + + }); + + + unittest.group("resource-EnterprisesDevicesResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.EnterprisesDevicesResourceApi res = new api.AndroidmanagementApi(mock).enterprises.devices; + var arg_name = "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 = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.EnterprisesDevicesResourceApi res = new api.AndroidmanagementApi(mock).enterprises.devices; + var arg_name = "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 = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + 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).then(unittest.expectAsync1(((api.Device response) { + checkDevice(response); + }))); + }); + + unittest.test("method--issueCommand", () { + + var mock = new HttpServerMock(); + api.EnterprisesDevicesResourceApi res = new api.AndroidmanagementApi(mock).enterprises.devices; + var arg_request = buildCommand(); + var arg_name = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.Command.fromJson(json); + checkCommand(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.issueCommand(arg_request, arg_name).then(unittest.expectAsync1(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.EnterprisesDevicesResourceApi res = new api.AndroidmanagementApi(mock).enterprises.devices; + var arg_parent = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "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 = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListDevicesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListDevicesResponse response) { + checkListDevicesResponse(response); + }))); + }); + + unittest.test("method--patch", () { + + var mock = new HttpServerMock(); + api.EnterprisesDevicesResourceApi res = new api.AndroidmanagementApi(mock).enterprises.devices; + var arg_request = buildDevice(); + var arg_name = "foo"; + var arg_updateMask = "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 = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildDevice()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.patch(arg_request, arg_name, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Device response) { + checkDevice(response); + }))); + }); + + }); + + + unittest.group("resource-EnterprisesDevicesOperationsResourceApi", () { + unittest.test("method--cancel", () { + + var mock = new HttpServerMock(); + api.EnterprisesDevicesOperationsResourceApi res = new api.AndroidmanagementApi(mock).enterprises.devices.operations; + var arg_name = "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 = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.cancel(arg_name).then(unittest.expectAsync1(((api.Empty response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.EnterprisesDevicesOperationsResourceApi res = new api.AndroidmanagementApi(mock).enterprises.devices.operations; + var arg_name = "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 = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.EnterprisesDevicesOperationsResourceApi res = new api.AndroidmanagementApi(mock).enterprises.devices.operations; + var arg_name = "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 = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.EnterprisesDevicesOperationsResourceApi res = new api.AndroidmanagementApi(mock).enterprises.devices.operations; + var arg_name = "foo"; + var arg_pageSize = 42; + var arg_filter = "foo"; + var arg_pageToken = "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 = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListOperationsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListOperationsResponse response) { + checkListOperationsResponse(response); + }))); + }); + + }); + + + unittest.group("resource-EnterprisesEnrollmentTokensResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.EnterprisesEnrollmentTokensResourceApi res = new api.AndroidmanagementApi(mock).enterprises.enrollmentTokens; + var arg_request = buildEnrollmentToken(); + var arg_parent = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.EnrollmentToken.fromJson(json); + checkEnrollmentToken(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEnrollmentToken()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request, arg_parent).then(unittest.expectAsync1(((api.EnrollmentToken response) { + checkEnrollmentToken(response); + }))); + }); + + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.EnterprisesEnrollmentTokensResourceApi res = new api.AndroidmanagementApi(mock).enterprises.enrollmentTokens; + var arg_name = "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 = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { + checkEmpty(response); + }))); + }); + + }); + + + unittest.group("resource-EnterprisesPoliciesResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.EnterprisesPoliciesResourceApi res = new api.AndroidmanagementApi(mock).enterprises.policies; + var arg_name = "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 = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.EnterprisesPoliciesResourceApi res = new api.AndroidmanagementApi(mock).enterprises.policies; + var arg_name = "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 = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildPolicy()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_name).then(unittest.expectAsync1(((api.Policy response) { + checkPolicy(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.EnterprisesPoliciesResourceApi res = new api.AndroidmanagementApi(mock).enterprises.policies; + var arg_parent = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "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 = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListPoliciesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListPoliciesResponse response) { + checkListPoliciesResponse(response); + }))); + }); + + unittest.test("method--patch", () { + + var mock = new HttpServerMock(); + api.EnterprisesPoliciesResourceApi res = new api.AndroidmanagementApi(mock).enterprises.policies; + var arg_request = buildPolicy(); + var arg_name = "foo"; + var arg_updateMask = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.Policy.fromJson(json); + checkPolicy(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask)); + + + 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.patch(arg_request, arg_name, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Policy response) { + checkPolicy(response); + }))); + }); + + }); + + + unittest.group("resource-EnterprisesWebTokensResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.EnterprisesWebTokensResourceApi res = new api.AndroidmanagementApi(mock).enterprises.webTokens; + var arg_request = buildWebToken(); + var arg_parent = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.WebToken.fromJson(json); + checkWebToken(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildWebToken()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request, arg_parent).then(unittest.expectAsync1(((api.WebToken response) { + checkWebToken(response); + }))); + }); + + }); + + + unittest.group("resource-SignupUrlsResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.SignupUrlsResourceApi res = new api.AndroidmanagementApi(mock).signupUrls; + var arg_callbackUrl = "foo"; + var arg_projectId = "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/signupUrls")); + pathOffset += 13; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["callbackUrl"].first, unittest.equals(arg_callbackUrl)); + unittest.expect(queryMap["projectId"].first, unittest.equals(arg_projectId)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildSignupUrl()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(callbackUrl: arg_callbackUrl, projectId: arg_projectId).then(unittest.expectAsync1(((api.SignupUrl response) { + checkSignupUrl(response); + }))); + }); + + }); + + +} +
diff --git a/generated/googleapis/test/androidpublisher/v2_test.dart b/generated/googleapis/test/androidpublisher/v2_test.dart index 5faf90e..7a3d86f 100644 --- a/generated/googleapis/test/androidpublisher/v2_test.dart +++ b/generated/googleapis/test/androidpublisher/v2_test.dart
@@ -112,14 +112,14 @@ buildCounterApkListing--; } -buildUnnamed2468() { +buildUnnamed2505() { var o = new core.List<api.ApkListing>(); o.add(buildApkListing()); o.add(buildApkListing()); return o; } -checkUnnamed2468(core.List<api.ApkListing> o) { +checkUnnamed2505(core.List<api.ApkListing> o) { unittest.expect(o, unittest.hasLength(2)); checkApkListing(o[0]); checkApkListing(o[1]); @@ -131,7 +131,7 @@ buildCounterApkListingsListResponse++; if (buildCounterApkListingsListResponse < 3) { o.kind = "foo"; - o.listings = buildUnnamed2468(); + o.listings = buildUnnamed2505(); } buildCounterApkListingsListResponse--; return o; @@ -141,7 +141,7 @@ buildCounterApkListingsListResponse++; if (buildCounterApkListingsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2468(o.listings); + checkUnnamed2505(o.listings); } buildCounterApkListingsListResponse--; } @@ -184,14 +184,14 @@ buildCounterApksAddExternallyHostedResponse--; } -buildUnnamed2469() { +buildUnnamed2506() { var o = new core.List<api.Apk>(); o.add(buildApk()); o.add(buildApk()); return o; } -checkUnnamed2469(core.List<api.Apk> o) { +checkUnnamed2506(core.List<api.Apk> o) { unittest.expect(o, unittest.hasLength(2)); checkApk(o[0]); checkApk(o[1]); @@ -202,7 +202,7 @@ var o = new api.ApksListResponse(); buildCounterApksListResponse++; if (buildCounterApksListResponse < 3) { - o.apks = buildUnnamed2469(); + o.apks = buildUnnamed2506(); o.kind = "foo"; } buildCounterApksListResponse--; @@ -212,7 +212,7 @@ checkApksListResponse(api.ApksListResponse o) { buildCounterApksListResponse++; if (buildCounterApksListResponse < 3) { - checkUnnamed2469(o.apks); + checkUnnamed2506(o.apks); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterApksListResponse--; @@ -408,14 +408,14 @@ buildCounterEntitlement--; } -buildUnnamed2470() { +buildUnnamed2507() { var o = new core.List<api.Entitlement>(); o.add(buildEntitlement()); o.add(buildEntitlement()); return o; } -checkUnnamed2470(core.List<api.Entitlement> o) { +checkUnnamed2507(core.List<api.Entitlement> o) { unittest.expect(o, unittest.hasLength(2)); checkEntitlement(o[0]); checkEntitlement(o[1]); @@ -427,7 +427,7 @@ buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { o.pageInfo = buildPageInfo(); - o.resources = buildUnnamed2470(); + o.resources = buildUnnamed2507(); o.tokenPagination = buildTokenPagination(); } buildCounterEntitlementsListResponse--; @@ -438,7 +438,7 @@ buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { checkPageInfo(o.pageInfo); - checkUnnamed2470(o.resources); + checkUnnamed2507(o.resources); checkTokenPagination(o.tokenPagination); } buildCounterEntitlementsListResponse--; @@ -484,53 +484,53 @@ buildCounterExpansionFilesUploadResponse--; } -buildUnnamed2471() { +buildUnnamed2508() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2471(core.List<core.String> o) { +checkUnnamed2508(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2472() { +buildUnnamed2509() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2472(core.List<core.String> o) { +checkUnnamed2509(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2473() { +buildUnnamed2510() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2473(core.List<core.String> o) { +checkUnnamed2510(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2474() { +buildUnnamed2511() { var o = new core.List<api.ExternallyHostedApkUsesPermission>(); o.add(buildExternallyHostedApkUsesPermission()); o.add(buildExternallyHostedApkUsesPermission()); return o; } -checkUnnamed2474(core.List<api.ExternallyHostedApkUsesPermission> o) { +checkUnnamed2511(core.List<api.ExternallyHostedApkUsesPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkExternallyHostedApkUsesPermission(o[0]); checkExternallyHostedApkUsesPermission(o[1]); @@ -542,7 +542,7 @@ buildCounterExternallyHostedApk++; if (buildCounterExternallyHostedApk < 3) { o.applicationLabel = "foo"; - o.certificateBase64s = buildUnnamed2471(); + o.certificateBase64s = buildUnnamed2508(); o.externallyHostedUrl = "foo"; o.fileSha1Base64 = "foo"; o.fileSha256Base64 = "foo"; @@ -550,10 +550,10 @@ o.iconBase64 = "foo"; o.maximumSdk = 42; o.minimumSdk = 42; - o.nativeCodes = buildUnnamed2472(); + o.nativeCodes = buildUnnamed2509(); o.packageName = "foo"; - o.usesFeatures = buildUnnamed2473(); - o.usesPermissions = buildUnnamed2474(); + o.usesFeatures = buildUnnamed2510(); + o.usesPermissions = buildUnnamed2511(); o.versionCode = 42; o.versionName = "foo"; } @@ -565,7 +565,7 @@ buildCounterExternallyHostedApk++; if (buildCounterExternallyHostedApk < 3) { unittest.expect(o.applicationLabel, unittest.equals('foo')); - checkUnnamed2471(o.certificateBase64s); + checkUnnamed2508(o.certificateBase64s); unittest.expect(o.externallyHostedUrl, unittest.equals('foo')); unittest.expect(o.fileSha1Base64, unittest.equals('foo')); unittest.expect(o.fileSha256Base64, unittest.equals('foo')); @@ -573,10 +573,10 @@ unittest.expect(o.iconBase64, unittest.equals('foo')); unittest.expect(o.maximumSdk, unittest.equals(42)); unittest.expect(o.minimumSdk, unittest.equals(42)); - checkUnnamed2472(o.nativeCodes); + checkUnnamed2509(o.nativeCodes); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed2473(o.usesFeatures); - checkUnnamed2474(o.usesPermissions); + checkUnnamed2510(o.usesFeatures); + checkUnnamed2511(o.usesPermissions); unittest.expect(o.versionCode, unittest.equals(42)); unittest.expect(o.versionName, unittest.equals('foo')); } @@ -627,14 +627,14 @@ buildCounterImage--; } -buildUnnamed2475() { +buildUnnamed2512() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed2475(core.List<api.Image> o) { +checkUnnamed2512(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -645,7 +645,7 @@ var o = new api.ImagesDeleteAllResponse(); buildCounterImagesDeleteAllResponse++; if (buildCounterImagesDeleteAllResponse < 3) { - o.deleted = buildUnnamed2475(); + o.deleted = buildUnnamed2512(); } buildCounterImagesDeleteAllResponse--; return o; @@ -654,19 +654,19 @@ checkImagesDeleteAllResponse(api.ImagesDeleteAllResponse o) { buildCounterImagesDeleteAllResponse++; if (buildCounterImagesDeleteAllResponse < 3) { - checkUnnamed2475(o.deleted); + checkUnnamed2512(o.deleted); } buildCounterImagesDeleteAllResponse--; } -buildUnnamed2476() { +buildUnnamed2513() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed2476(core.List<api.Image> o) { +checkUnnamed2513(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -677,7 +677,7 @@ var o = new api.ImagesListResponse(); buildCounterImagesListResponse++; if (buildCounterImagesListResponse < 3) { - o.images = buildUnnamed2476(); + o.images = buildUnnamed2513(); } buildCounterImagesListResponse--; return o; @@ -686,7 +686,7 @@ checkImagesListResponse(api.ImagesListResponse o) { buildCounterImagesListResponse++; if (buildCounterImagesListResponse < 3) { - checkUnnamed2476(o.images); + checkUnnamed2513(o.images); } buildCounterImagesListResponse--; } @@ -710,27 +710,27 @@ buildCounterImagesUploadResponse--; } -buildUnnamed2477() { +buildUnnamed2514() { var o = new core.Map<core.String, api.InAppProductListing>(); o["x"] = buildInAppProductListing(); o["y"] = buildInAppProductListing(); return o; } -checkUnnamed2477(core.Map<core.String, api.InAppProductListing> o) { +checkUnnamed2514(core.Map<core.String, api.InAppProductListing> o) { unittest.expect(o, unittest.hasLength(2)); checkInAppProductListing(o["x"]); checkInAppProductListing(o["y"]); } -buildUnnamed2478() { +buildUnnamed2515() { var o = new core.Map<core.String, api.Price>(); o["x"] = buildPrice(); o["y"] = buildPrice(); return o; } -checkUnnamed2478(core.Map<core.String, api.Price> o) { +checkUnnamed2515(core.Map<core.String, api.Price> o) { unittest.expect(o, unittest.hasLength(2)); checkPrice(o["x"]); checkPrice(o["y"]); @@ -743,9 +743,9 @@ if (buildCounterInAppProduct < 3) { o.defaultLanguage = "foo"; o.defaultPrice = buildPrice(); - o.listings = buildUnnamed2477(); + o.listings = buildUnnamed2514(); o.packageName = "foo"; - o.prices = buildUnnamed2478(); + o.prices = buildUnnamed2515(); o.purchaseType = "foo"; o.season = buildSeason(); o.sku = "foo"; @@ -762,9 +762,9 @@ if (buildCounterInAppProduct < 3) { unittest.expect(o.defaultLanguage, unittest.equals('foo')); checkPrice(o.defaultPrice); - checkUnnamed2477(o.listings); + checkUnnamed2514(o.listings); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed2478(o.prices); + checkUnnamed2515(o.prices); unittest.expect(o.purchaseType, unittest.equals('foo')); checkSeason(o.season); unittest.expect(o.sku, unittest.equals('foo')); @@ -796,14 +796,14 @@ buildCounterInAppProductListing--; } -buildUnnamed2479() { +buildUnnamed2516() { var o = new core.List<api.InappproductsBatchRequestEntry>(); o.add(buildInappproductsBatchRequestEntry()); o.add(buildInappproductsBatchRequestEntry()); return o; } -checkUnnamed2479(core.List<api.InappproductsBatchRequestEntry> o) { +checkUnnamed2516(core.List<api.InappproductsBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkInappproductsBatchRequestEntry(o[0]); checkInappproductsBatchRequestEntry(o[1]); @@ -814,7 +814,7 @@ var o = new api.InappproductsBatchRequest(); buildCounterInappproductsBatchRequest++; if (buildCounterInappproductsBatchRequest < 3) { - o.entrys = buildUnnamed2479(); + o.entrys = buildUnnamed2516(); } buildCounterInappproductsBatchRequest--; return o; @@ -823,7 +823,7 @@ checkInappproductsBatchRequest(api.InappproductsBatchRequest o) { buildCounterInappproductsBatchRequest++; if (buildCounterInappproductsBatchRequest < 3) { - checkUnnamed2479(o.entrys); + checkUnnamed2516(o.entrys); } buildCounterInappproductsBatchRequest--; } @@ -853,14 +853,14 @@ buildCounterInappproductsBatchRequestEntry--; } -buildUnnamed2480() { +buildUnnamed2517() { var o = new core.List<api.InappproductsBatchResponseEntry>(); o.add(buildInappproductsBatchResponseEntry()); o.add(buildInappproductsBatchResponseEntry()); return o; } -checkUnnamed2480(core.List<api.InappproductsBatchResponseEntry> o) { +checkUnnamed2517(core.List<api.InappproductsBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkInappproductsBatchResponseEntry(o[0]); checkInappproductsBatchResponseEntry(o[1]); @@ -871,7 +871,7 @@ var o = new api.InappproductsBatchResponse(); buildCounterInappproductsBatchResponse++; if (buildCounterInappproductsBatchResponse < 3) { - o.entrys = buildUnnamed2480(); + o.entrys = buildUnnamed2517(); o.kind = "foo"; } buildCounterInappproductsBatchResponse--; @@ -881,7 +881,7 @@ checkInappproductsBatchResponse(api.InappproductsBatchResponse o) { buildCounterInappproductsBatchResponse++; if (buildCounterInappproductsBatchResponse < 3) { - checkUnnamed2480(o.entrys); + checkUnnamed2517(o.entrys); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterInappproductsBatchResponse--; @@ -948,14 +948,14 @@ buildCounterInappproductsInsertResponse--; } -buildUnnamed2481() { +buildUnnamed2518() { var o = new core.List<api.InAppProduct>(); o.add(buildInAppProduct()); o.add(buildInAppProduct()); return o; } -checkUnnamed2481(core.List<api.InAppProduct> o) { +checkUnnamed2518(core.List<api.InAppProduct> o) { unittest.expect(o, unittest.hasLength(2)); checkInAppProduct(o[0]); checkInAppProduct(o[1]); @@ -966,7 +966,7 @@ var o = new api.InappproductsListResponse(); buildCounterInappproductsListResponse++; if (buildCounterInappproductsListResponse < 3) { - o.inappproduct = buildUnnamed2481(); + o.inappproduct = buildUnnamed2518(); o.kind = "foo"; o.pageInfo = buildPageInfo(); o.tokenPagination = buildTokenPagination(); @@ -978,7 +978,7 @@ checkInappproductsListResponse(api.InappproductsListResponse o) { buildCounterInappproductsListResponse++; if (buildCounterInappproductsListResponse < 3) { - checkUnnamed2481(o.inappproduct); + checkUnnamed2518(o.inappproduct); unittest.expect(o.kind, unittest.equals('foo')); checkPageInfo(o.pageInfo); checkTokenPagination(o.tokenPagination); @@ -1051,14 +1051,14 @@ buildCounterListing--; } -buildUnnamed2482() { +buildUnnamed2519() { var o = new core.List<api.Listing>(); o.add(buildListing()); o.add(buildListing()); return o; } -checkUnnamed2482(core.List<api.Listing> o) { +checkUnnamed2519(core.List<api.Listing> o) { unittest.expect(o, unittest.hasLength(2)); checkListing(o[0]); checkListing(o[1]); @@ -1070,7 +1070,7 @@ buildCounterListingsListResponse++; if (buildCounterListingsListResponse < 3) { o.kind = "foo"; - o.listings = buildUnnamed2482(); + o.listings = buildUnnamed2519(); } buildCounterListingsListResponse--; return o; @@ -1080,7 +1080,7 @@ buildCounterListingsListResponse++; if (buildCounterListingsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2482(o.listings); + checkUnnamed2519(o.listings); } buildCounterListingsListResponse--; } @@ -1198,14 +1198,14 @@ buildCounterProrate--; } -buildUnnamed2483() { +buildUnnamed2520() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed2483(core.List<api.Comment> o) { +checkUnnamed2520(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1217,7 +1217,7 @@ buildCounterReview++; if (buildCounterReview < 3) { o.authorName = "foo"; - o.comments = buildUnnamed2483(); + o.comments = buildUnnamed2520(); o.reviewId = "foo"; } buildCounterReview--; @@ -1228,7 +1228,7 @@ buildCounterReview++; if (buildCounterReview < 3) { unittest.expect(o.authorName, unittest.equals('foo')); - checkUnnamed2483(o.comments); + checkUnnamed2520(o.comments); unittest.expect(o.reviewId, unittest.equals('foo')); } buildCounterReview--; @@ -1255,14 +1255,14 @@ buildCounterReviewReplyResult--; } -buildUnnamed2484() { +buildUnnamed2521() { var o = new core.List<api.Review>(); o.add(buildReview()); o.add(buildReview()); return o; } -checkUnnamed2484(core.List<api.Review> o) { +checkUnnamed2521(core.List<api.Review> o) { unittest.expect(o, unittest.hasLength(2)); checkReview(o[0]); checkReview(o[1]); @@ -1274,7 +1274,7 @@ buildCounterReviewsListResponse++; if (buildCounterReviewsListResponse < 3) { o.pageInfo = buildPageInfo(); - o.reviews = buildUnnamed2484(); + o.reviews = buildUnnamed2521(); o.tokenPagination = buildTokenPagination(); } buildCounterReviewsListResponse--; @@ -1285,7 +1285,7 @@ buildCounterReviewsListResponse++; if (buildCounterReviewsListResponse < 3) { checkPageInfo(o.pageInfo); - checkUnnamed2484(o.reviews); + checkUnnamed2521(o.reviews); checkTokenPagination(o.tokenPagination); } buildCounterReviewsListResponse--; @@ -1329,14 +1329,14 @@ buildCounterReviewsReplyResponse--; } -buildUnnamed2485() { +buildUnnamed2522() { var o = new core.List<api.Prorate>(); o.add(buildProrate()); o.add(buildProrate()); return o; } -checkUnnamed2485(core.List<api.Prorate> o) { +checkUnnamed2522(core.List<api.Prorate> o) { unittest.expect(o, unittest.hasLength(2)); checkProrate(o[0]); checkProrate(o[1]); @@ -1348,7 +1348,7 @@ buildCounterSeason++; if (buildCounterSeason < 3) { o.end = buildMonthDay(); - o.prorations = buildUnnamed2485(); + o.prorations = buildUnnamed2522(); o.start = buildMonthDay(); } buildCounterSeason--; @@ -1359,7 +1359,7 @@ buildCounterSeason++; if (buildCounterSeason < 3) { checkMonthDay(o.end); - checkUnnamed2485(o.prorations); + checkUnnamed2522(o.prorations); checkMonthDay(o.start); } buildCounterSeason--; @@ -1463,27 +1463,27 @@ buildCounterSubscriptionPurchasesDeferResponse--; } -buildUnnamed2486() { +buildUnnamed2523() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2486(core.List<core.String> o) { +checkUnnamed2523(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2487() { +buildUnnamed2524() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2487(core.List<core.String> o) { +checkUnnamed2524(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1494,8 +1494,8 @@ var o = new api.Testers(); buildCounterTesters++; if (buildCounterTesters < 3) { - o.googleGroups = buildUnnamed2486(); - o.googlePlusCommunities = buildUnnamed2487(); + o.googleGroups = buildUnnamed2523(); + o.googlePlusCommunities = buildUnnamed2524(); } buildCounterTesters--; return o; @@ -1504,8 +1504,8 @@ checkTesters(api.Testers o) { buildCounterTesters++; if (buildCounterTesters < 3) { - checkUnnamed2486(o.googleGroups); - checkUnnamed2487(o.googlePlusCommunities); + checkUnnamed2523(o.googleGroups); + checkUnnamed2524(o.googlePlusCommunities); } buildCounterTesters--; } @@ -1552,14 +1552,14 @@ buildCounterTokenPagination--; } -buildUnnamed2488() { +buildUnnamed2525() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2488(core.List<core.int> o) { +checkUnnamed2525(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)); @@ -1572,7 +1572,7 @@ if (buildCounterTrack < 3) { o.track = "foo"; o.userFraction = 42.0; - o.versionCodes = buildUnnamed2488(); + o.versionCodes = buildUnnamed2525(); } buildCounterTrack--; return o; @@ -1583,19 +1583,19 @@ if (buildCounterTrack < 3) { unittest.expect(o.track, unittest.equals('foo')); unittest.expect(o.userFraction, unittest.equals(42.0)); - checkUnnamed2488(o.versionCodes); + checkUnnamed2525(o.versionCodes); } buildCounterTrack--; } -buildUnnamed2489() { +buildUnnamed2526() { var o = new core.List<api.Track>(); o.add(buildTrack()); o.add(buildTrack()); return o; } -checkUnnamed2489(core.List<api.Track> o) { +checkUnnamed2526(core.List<api.Track> o) { unittest.expect(o, unittest.hasLength(2)); checkTrack(o[0]); checkTrack(o[1]); @@ -1607,7 +1607,7 @@ buildCounterTracksListResponse++; if (buildCounterTracksListResponse < 3) { o.kind = "foo"; - o.tracks = buildUnnamed2489(); + o.tracks = buildUnnamed2526(); } buildCounterTracksListResponse--; return o; @@ -1617,7 +1617,7 @@ buildCounterTracksListResponse++; if (buildCounterTracksListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2489(o.tracks); + checkUnnamed2526(o.tracks); } buildCounterTracksListResponse--; } @@ -1688,14 +1688,14 @@ buildCounterVoidedPurchase--; } -buildUnnamed2490() { +buildUnnamed2527() { var o = new core.List<api.VoidedPurchase>(); o.add(buildVoidedPurchase()); o.add(buildVoidedPurchase()); return o; } -checkUnnamed2490(core.List<api.VoidedPurchase> o) { +checkUnnamed2527(core.List<api.VoidedPurchase> o) { unittest.expect(o, unittest.hasLength(2)); checkVoidedPurchase(o[0]); checkVoidedPurchase(o[1]); @@ -1708,7 +1708,7 @@ if (buildCounterVoidedPurchasesListResponse < 3) { o.pageInfo = buildPageInfo(); o.tokenPagination = buildTokenPagination(); - o.voidedPurchases = buildUnnamed2490(); + o.voidedPurchases = buildUnnamed2527(); } buildCounterVoidedPurchasesListResponse--; return o; @@ -1719,7 +1719,7 @@ if (buildCounterVoidedPurchasesListResponse < 3) { checkPageInfo(o.pageInfo); checkTokenPagination(o.tokenPagination); - checkUnnamed2490(o.voidedPurchases); + checkUnnamed2527(o.voidedPurchases); } buildCounterVoidedPurchasesListResponse--; }
diff --git a/generated/googleapis/test/appengine/v1_test.dart b/generated/googleapis/test/appengine/v1_test.dart index 038a8c8..a5b5fe5 100644 --- a/generated/googleapis/test/appengine/v1_test.dart +++ b/generated/googleapis/test/appengine/v1_test.dart
@@ -97,14 +97,14 @@ buildCounterApiEndpointHandler--; } -buildUnnamed2623() { +buildUnnamed2660() { var o = new core.List<api.UrlDispatchRule>(); o.add(buildUrlDispatchRule()); o.add(buildUrlDispatchRule()); return o; } -checkUnnamed2623(core.List<api.UrlDispatchRule> o) { +checkUnnamed2660(core.List<api.UrlDispatchRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlDispatchRule(o[0]); checkUrlDispatchRule(o[1]); @@ -120,7 +120,7 @@ o.defaultBucket = "foo"; o.defaultCookieExpiration = "foo"; o.defaultHostname = "foo"; - o.dispatchRules = buildUnnamed2623(); + o.dispatchRules = buildUnnamed2660(); o.gcrDomain = "foo"; o.iap = buildIdentityAwareProxy(); o.id = "foo"; @@ -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')); - checkUnnamed2623(o.dispatchRules); + checkUnnamed2660(o.dispatchRules); unittest.expect(o.gcrDomain, unittest.equals('foo')); checkIdentityAwareProxy(o.iap); unittest.expect(o.id, unittest.equals('foo')); @@ -272,14 +272,14 @@ buildCounterDebugInstanceRequest--; } -buildUnnamed2624() { +buildUnnamed2661() { var o = new core.Map<core.String, api.FileInfo>(); o["x"] = buildFileInfo(); o["y"] = buildFileInfo(); return o; } -checkUnnamed2624(core.Map<core.String, api.FileInfo> o) { +checkUnnamed2661(core.Map<core.String, api.FileInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkFileInfo(o["x"]); checkFileInfo(o["y"]); @@ -291,7 +291,7 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { o.container = buildContainerInfo(); - o.files = buildUnnamed2624(); + o.files = buildUnnamed2661(); o.zip = buildZipInfo(); } buildCounterDeployment--; @@ -302,7 +302,7 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { checkContainerInfo(o.container); - checkUnnamed2624(o.files); + checkUnnamed2661(o.files); checkZipInfo(o.zip); } buildCounterDeployment--; @@ -526,14 +526,14 @@ buildCounterLibrary--; } -buildUnnamed2625() { +buildUnnamed2662() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed2625(core.List<api.Instance> o) { +checkUnnamed2662(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -544,7 +544,7 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed2625(); + o.instances = buildUnnamed2662(); o.nextPageToken = "foo"; } buildCounterListInstancesResponse--; @@ -554,20 +554,20 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed2625(o.instances); + checkUnnamed2662(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstancesResponse--; } -buildUnnamed2626() { +buildUnnamed2663() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed2626(core.List<api.Location> o) { +checkUnnamed2663(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -578,7 +578,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed2626(); + o.locations = buildUnnamed2663(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -588,20 +588,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed2626(o.locations); + checkUnnamed2663(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed2627() { +buildUnnamed2664() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2627(core.List<api.Operation> o) { +checkUnnamed2664(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -613,7 +613,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed2627(); + o.operations = buildUnnamed2664(); } buildCounterListOperationsResponse--; return o; @@ -623,19 +623,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2627(o.operations); + checkUnnamed2664(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed2628() { +buildUnnamed2665() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed2628(core.List<api.Service> o) { +checkUnnamed2665(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -647,7 +647,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed2628(); + o.services = buildUnnamed2665(); } buildCounterListServicesResponse--; return o; @@ -657,19 +657,19 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2628(o.services); + checkUnnamed2665(o.services); } buildCounterListServicesResponse--; } -buildUnnamed2629() { +buildUnnamed2666() { var o = new core.List<api.Version>(); o.add(buildVersion()); o.add(buildVersion()); return o; } -checkUnnamed2629(core.List<api.Version> o) { +checkUnnamed2666(core.List<api.Version> o) { unittest.expect(o, unittest.hasLength(2)); checkVersion(o[0]); checkVersion(o[1]); @@ -681,7 +681,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { o.nextPageToken = "foo"; - o.versions = buildUnnamed2629(); + o.versions = buildUnnamed2666(); } buildCounterListVersionsResponse--; return o; @@ -691,7 +691,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2629(o.versions); + checkUnnamed2666(o.versions); } buildCounterListVersionsResponse--; } @@ -727,27 +727,27 @@ buildCounterLivenessCheck--; } -buildUnnamed2630() { +buildUnnamed2667() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2630(core.Map<core.String, core.String> o) { +checkUnnamed2667(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed2631() { +buildUnnamed2668() { 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; } -checkUnnamed2631(core.Map<core.String, core.Object> o) { +checkUnnamed2668(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')); @@ -758,9 +758,9 @@ var o = new api.Location(); buildCounterLocation++; if (buildCounterLocation < 3) { - o.labels = buildUnnamed2630(); + o.labels = buildUnnamed2667(); o.locationId = "foo"; - o.metadata = buildUnnamed2631(); + o.metadata = buildUnnamed2668(); o.name = "foo"; } buildCounterLocation--; @@ -770,9 +770,9 @@ checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { - checkUnnamed2630(o.labels); + checkUnnamed2667(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed2631(o.metadata); + checkUnnamed2668(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -818,14 +818,14 @@ buildCounterManualScaling--; } -buildUnnamed2632() { +buildUnnamed2669() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2632(core.List<core.String> o) { +checkUnnamed2669(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -836,7 +836,7 @@ var o = new api.Network(); buildCounterNetwork++; if (buildCounterNetwork < 3) { - o.forwardedPorts = buildUnnamed2632(); + o.forwardedPorts = buildUnnamed2669(); o.instanceTag = "foo"; o.name = "foo"; o.subnetworkName = "foo"; @@ -848,7 +848,7 @@ checkNetwork(api.Network o) { buildCounterNetwork++; if (buildCounterNetwork < 3) { - checkUnnamed2632(o.forwardedPorts); + checkUnnamed2669(o.forwardedPorts); unittest.expect(o.instanceTag, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.subnetworkName, unittest.equals('foo')); @@ -881,27 +881,27 @@ buildCounterNetworkUtilization--; } -buildUnnamed2633() { +buildUnnamed2670() { 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; } -checkUnnamed2633(core.Map<core.String, core.Object> o) { +checkUnnamed2670(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')); } -buildUnnamed2634() { +buildUnnamed2671() { 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; } -checkUnnamed2634(core.Map<core.String, core.Object> o) { +checkUnnamed2671(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')); @@ -914,9 +914,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2633(); + o.metadata = buildUnnamed2670(); o.name = "foo"; - o.response = buildUnnamed2634(); + o.response = buildUnnamed2671(); } buildCounterOperation--; return o; @@ -927,9 +927,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2633(o.metadata); + checkUnnamed2670(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2634(o.response); + checkUnnamed2671(o.response); } buildCounterOperation--; } @@ -990,14 +990,14 @@ buildCounterOperationMetadataExperimental--; } -buildUnnamed2635() { +buildUnnamed2672() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2635(core.List<core.String> o) { +checkUnnamed2672(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1014,7 +1014,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed2635(); + o.warning = buildUnnamed2672(); } buildCounterOperationMetadataV1--; return o; @@ -1029,19 +1029,19 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed2635(o.warning); + checkUnnamed2672(o.warning); } buildCounterOperationMetadataV1--; } -buildUnnamed2636() { +buildUnnamed2673() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2636(core.List<core.String> o) { +checkUnnamed2673(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1058,7 +1058,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed2636(); + o.warning = buildUnnamed2673(); } buildCounterOperationMetadataV1Alpha--; return o; @@ -1073,19 +1073,19 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed2636(o.warning); + checkUnnamed2673(o.warning); } buildCounterOperationMetadataV1Alpha--; } -buildUnnamed2637() { +buildUnnamed2674() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2637(core.List<core.String> o) { +checkUnnamed2674(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1102,7 +1102,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed2637(); + o.warning = buildUnnamed2674(); } buildCounterOperationMetadataV1Beta--; return o; @@ -1117,7 +1117,7 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed2637(o.warning); + checkUnnamed2674(o.warning); } buildCounterOperationMetadataV1Beta--; } @@ -1154,6 +1154,7 @@ var o = new api.ReadinessCheck(); buildCounterReadinessCheck++; if (buildCounterReadinessCheck < 3) { + o.appStartTimeout = "foo"; o.checkInterval = "foo"; o.failureThreshold = 42; o.host = "foo"; @@ -1168,6 +1169,7 @@ checkReadinessCheck(api.ReadinessCheck o) { buildCounterReadinessCheck++; if (buildCounterReadinessCheck < 3) { + unittest.expect(o.appStartTimeout, unittest.equals('foo')); unittest.expect(o.checkInterval, unittest.equals('foo')); unittest.expect(o.failureThreshold, unittest.equals(42)); unittest.expect(o.host, unittest.equals('foo')); @@ -1216,14 +1218,14 @@ buildCounterRequestUtilization--; } -buildUnnamed2638() { +buildUnnamed2675() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed2638(core.List<api.Volume> o) { +checkUnnamed2675(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -1237,7 +1239,7 @@ o.cpu = 42.0; o.diskGb = 42.0; o.memoryGb = 42.0; - o.volumes = buildUnnamed2638(); + o.volumes = buildUnnamed2675(); } buildCounterResources--; return o; @@ -1249,7 +1251,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)); - checkUnnamed2638(o.volumes); + checkUnnamed2675(o.volumes); } buildCounterResources--; } @@ -1296,14 +1298,14 @@ buildCounterService--; } -buildUnnamed2639() { +buildUnnamed2676() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2639(core.Map<core.String, core.String> o) { +checkUnnamed2676(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1316,7 +1318,7 @@ if (buildCounterStaticFilesHandler < 3) { o.applicationReadable = true; o.expiration = "foo"; - o.httpHeaders = buildUnnamed2639(); + o.httpHeaders = buildUnnamed2676(); o.mimeType = "foo"; o.path = "foo"; o.requireMatchingFile = true; @@ -1331,7 +1333,7 @@ if (buildCounterStaticFilesHandler < 3) { unittest.expect(o.applicationReadable, unittest.isTrue); unittest.expect(o.expiration, unittest.equals('foo')); - checkUnnamed2639(o.httpHeaders); + checkUnnamed2676(o.httpHeaders); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.requireMatchingFile, unittest.isTrue); @@ -1340,30 +1342,30 @@ buildCounterStaticFilesHandler--; } -buildUnnamed2640() { +buildUnnamed2677() { 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; } -checkUnnamed2640(core.Map<core.String, core.Object> o) { +checkUnnamed2677(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')); } -buildUnnamed2641() { +buildUnnamed2678() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2640()); - o.add(buildUnnamed2640()); + o.add(buildUnnamed2677()); + o.add(buildUnnamed2677()); return o; } -checkUnnamed2641(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2678(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2640(o[0]); - checkUnnamed2640(o[1]); + checkUnnamed2677(o[0]); + checkUnnamed2677(o[1]); } core.int buildCounterStatus = 0; @@ -1372,7 +1374,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2641(); + o.details = buildUnnamed2678(); o.message = "foo"; } buildCounterStatus--; @@ -1383,20 +1385,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2641(o.details); + checkUnnamed2678(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed2642() { +buildUnnamed2679() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed2642(core.Map<core.String, core.double> o) { +checkUnnamed2679(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)); @@ -1407,7 +1409,7 @@ var o = new api.TrafficSplit(); buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - o.allocations = buildUnnamed2642(); + o.allocations = buildUnnamed2679(); o.shardBy = "foo"; } buildCounterTrafficSplit--; @@ -1417,7 +1419,7 @@ checkTrafficSplit(api.TrafficSplit o) { buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - checkUnnamed2642(o.allocations); + checkUnnamed2679(o.allocations); unittest.expect(o.shardBy, unittest.equals('foo')); } buildCounterTrafficSplit--; @@ -1479,79 +1481,79 @@ buildCounterUrlMap--; } -buildUnnamed2643() { +buildUnnamed2680() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2643(core.Map<core.String, core.String> o) { +checkUnnamed2680(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed2644() { +buildUnnamed2681() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2644(core.Map<core.String, core.String> o) { +checkUnnamed2681(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed2645() { +buildUnnamed2682() { var o = new core.List<api.ErrorHandler>(); o.add(buildErrorHandler()); o.add(buildErrorHandler()); return o; } -checkUnnamed2645(core.List<api.ErrorHandler> o) { +checkUnnamed2682(core.List<api.ErrorHandler> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorHandler(o[0]); checkErrorHandler(o[1]); } -buildUnnamed2646() { +buildUnnamed2683() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed2646(core.List<api.UrlMap> o) { +checkUnnamed2683(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); } -buildUnnamed2647() { +buildUnnamed2684() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2647(core.List<core.String> o) { +checkUnnamed2684(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2648() { +buildUnnamed2685() { var o = new core.List<api.Library>(); o.add(buildLibrary()); o.add(buildLibrary()); return o; } -checkUnnamed2648(core.List<api.Library> o) { +checkUnnamed2685(core.List<api.Library> o) { unittest.expect(o, unittest.hasLength(2)); checkLibrary(o[0]); checkLibrary(o[1]); @@ -1565,7 +1567,7 @@ o.apiConfig = buildApiConfigHandler(); o.automaticScaling = buildAutomaticScaling(); o.basicScaling = buildBasicScaling(); - o.betaSettings = buildUnnamed2643(); + o.betaSettings = buildUnnamed2680(); o.createTime = "foo"; o.createdBy = "foo"; o.defaultExpiration = "foo"; @@ -1573,14 +1575,14 @@ o.diskUsageBytes = "foo"; o.endpointsApiService = buildEndpointsApiService(); o.env = "foo"; - o.envVariables = buildUnnamed2644(); - o.errorHandlers = buildUnnamed2645(); - o.handlers = buildUnnamed2646(); + o.envVariables = buildUnnamed2681(); + o.errorHandlers = buildUnnamed2682(); + o.handlers = buildUnnamed2683(); o.healthCheck = buildHealthCheck(); o.id = "foo"; - o.inboundServices = buildUnnamed2647(); + o.inboundServices = buildUnnamed2684(); o.instanceClass = "foo"; - o.libraries = buildUnnamed2648(); + o.libraries = buildUnnamed2685(); o.livenessCheck = buildLivenessCheck(); o.manualScaling = buildManualScaling(); o.name = "foo"; @@ -1605,7 +1607,7 @@ checkApiConfigHandler(o.apiConfig); checkAutomaticScaling(o.automaticScaling); checkBasicScaling(o.basicScaling); - checkUnnamed2643(o.betaSettings); + checkUnnamed2680(o.betaSettings); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.createdBy, unittest.equals('foo')); unittest.expect(o.defaultExpiration, unittest.equals('foo')); @@ -1613,14 +1615,14 @@ unittest.expect(o.diskUsageBytes, unittest.equals('foo')); checkEndpointsApiService(o.endpointsApiService); unittest.expect(o.env, unittest.equals('foo')); - checkUnnamed2644(o.envVariables); - checkUnnamed2645(o.errorHandlers); - checkUnnamed2646(o.handlers); + checkUnnamed2681(o.envVariables); + checkUnnamed2682(o.errorHandlers); + checkUnnamed2683(o.handlers); checkHealthCheck(o.healthCheck); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2647(o.inboundServices); + checkUnnamed2684(o.inboundServices); unittest.expect(o.instanceClass, unittest.equals('foo')); - checkUnnamed2648(o.libraries); + checkUnnamed2685(o.libraries); checkLivenessCheck(o.livenessCheck); checkManualScaling(o.manualScaling); unittest.expect(o.name, unittest.equals('foo')); @@ -2508,9 +2510,9 @@ var mock = new HttpServerMock(); api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operations; var arg_appsId = "foo"; + var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_filter = "foo"; - var arg_pageToken = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -2544,9 +2546,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -2555,7 +2557,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListOperationsResponse response) { + res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); }); @@ -2736,8 +2738,8 @@ var arg_request = buildService(); var arg_appsId = "foo"; var arg_servicesId = "foo"; - var arg_migrateTraffic = true; var arg_updateMask = "foo"; + var arg_migrateTraffic = true; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Service.fromJson(json); checkService(obj); @@ -2777,8 +2779,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_migrateTraffic")); unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask)); + unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_migrateTraffic")); var h = { @@ -2787,7 +2789,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_appsId, arg_servicesId, migrateTraffic: arg_migrateTraffic, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Operation response) { + res.patch(arg_request, arg_appsId, arg_servicesId, updateMask: arg_updateMask, migrateTraffic: arg_migrateTraffic).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -2993,9 +2995,9 @@ api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps.services.versions; var arg_appsId = "foo"; var arg_servicesId = "foo"; + var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_view = "foo"; - var arg_pageToken = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -3036,9 +3038,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -3047,7 +3049,7 @@ var resp = convert.JSON.encode(buildListVersionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, arg_servicesId, pageSize: arg_pageSize, view: arg_view, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListVersionsResponse response) { + res.list(arg_appsId, arg_servicesId, pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view).then(unittest.expectAsync1(((api.ListVersionsResponse response) { checkListVersionsResponse(response); }))); });
diff --git a/generated/googleapis/test/appsactivity/v1_test.dart b/generated/googleapis/test/appsactivity/v1_test.dart index 2f88a06..3cb6591 100644 --- a/generated/googleapis/test/appsactivity/v1_test.dart +++ b/generated/googleapis/test/appsactivity/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1103() { +buildUnnamed1079() { var o = new core.List<api.Event>(); o.add(buildEvent()); o.add(buildEvent()); return o; } -checkUnnamed1103(core.List<api.Event> o) { +checkUnnamed1079(core.List<api.Event> o) { unittest.expect(o, unittest.hasLength(2)); checkEvent(o[0]); checkEvent(o[1]); @@ -70,7 +70,7 @@ buildCounterActivity++; if (buildCounterActivity < 3) { o.combinedEvent = buildEvent(); - o.singleEvents = buildUnnamed1103(); + o.singleEvents = buildUnnamed1079(); } buildCounterActivity--; return o; @@ -80,32 +80,32 @@ buildCounterActivity++; if (buildCounterActivity < 3) { checkEvent(o.combinedEvent); - checkUnnamed1103(o.singleEvents); + checkUnnamed1079(o.singleEvents); } buildCounterActivity--; } -buildUnnamed1104() { +buildUnnamed1080() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1104(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')); } -buildUnnamed1105() { +buildUnnamed1081() { var o = new core.List<api.PermissionChange>(); o.add(buildPermissionChange()); o.add(buildPermissionChange()); return o; } -checkUnnamed1105(core.List<api.PermissionChange> o) { +checkUnnamed1081(core.List<api.PermissionChange> o) { unittest.expect(o, unittest.hasLength(2)); checkPermissionChange(o[0]); checkPermissionChange(o[1]); @@ -116,11 +116,11 @@ var o = new api.Event(); buildCounterEvent++; if (buildCounterEvent < 3) { - o.additionalEventTypes = buildUnnamed1104(); + o.additionalEventTypes = buildUnnamed1080(); o.eventTimeMillis = "foo"; o.fromUserDeletion = true; o.move = buildMove(); - o.permissionChanges = buildUnnamed1105(); + o.permissionChanges = buildUnnamed1081(); o.primaryEventType = "foo"; o.rename = buildRename(); o.target = buildTarget(); @@ -133,11 +133,11 @@ checkEvent(api.Event o) { buildCounterEvent++; if (buildCounterEvent < 3) { - checkUnnamed1104(o.additionalEventTypes); + checkUnnamed1080(o.additionalEventTypes); unittest.expect(o.eventTimeMillis, unittest.equals('foo')); unittest.expect(o.fromUserDeletion, unittest.isTrue); checkMove(o.move); - checkUnnamed1105(o.permissionChanges); + checkUnnamed1081(o.permissionChanges); unittest.expect(o.primaryEventType, unittest.equals('foo')); checkRename(o.rename); checkTarget(o.target); @@ -146,14 +146,14 @@ buildCounterEvent--; } -buildUnnamed1106() { +buildUnnamed1082() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed1106(core.List<api.Activity> o) { +checkUnnamed1082(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -164,7 +164,7 @@ var o = new api.ListActivitiesResponse(); buildCounterListActivitiesResponse++; if (buildCounterListActivitiesResponse < 3) { - o.activities = buildUnnamed1106(); + o.activities = buildUnnamed1082(); o.nextPageToken = "foo"; } buildCounterListActivitiesResponse--; @@ -174,33 +174,33 @@ checkListActivitiesResponse(api.ListActivitiesResponse o) { buildCounterListActivitiesResponse++; if (buildCounterListActivitiesResponse < 3) { - checkUnnamed1106(o.activities); + checkUnnamed1082(o.activities); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListActivitiesResponse--; } -buildUnnamed1107() { +buildUnnamed1083() { var o = new core.List<api.Parent>(); o.add(buildParent()); o.add(buildParent()); return o; } -checkUnnamed1107(core.List<api.Parent> o) { +checkUnnamed1083(core.List<api.Parent> o) { unittest.expect(o, unittest.hasLength(2)); checkParent(o[0]); checkParent(o[1]); } -buildUnnamed1108() { +buildUnnamed1084() { var o = new core.List<api.Parent>(); o.add(buildParent()); o.add(buildParent()); return o; } -checkUnnamed1108(core.List<api.Parent> o) { +checkUnnamed1084(core.List<api.Parent> o) { unittest.expect(o, unittest.hasLength(2)); checkParent(o[0]); checkParent(o[1]); @@ -211,8 +211,8 @@ var o = new api.Move(); buildCounterMove++; if (buildCounterMove < 3) { - o.addedParents = buildUnnamed1107(); - o.removedParents = buildUnnamed1108(); + o.addedParents = buildUnnamed1083(); + o.removedParents = buildUnnamed1084(); } buildCounterMove--; return o; @@ -221,8 +221,8 @@ checkMove(api.Move o) { buildCounterMove++; if (buildCounterMove < 3) { - checkUnnamed1107(o.addedParents); - checkUnnamed1108(o.removedParents); + checkUnnamed1083(o.addedParents); + checkUnnamed1084(o.removedParents); } buildCounterMove--; } @@ -279,27 +279,27 @@ buildCounterPermission--; } -buildUnnamed1109() { +buildUnnamed1085() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1109(core.List<api.Permission> o) { +checkUnnamed1085(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); } -buildUnnamed1110() { +buildUnnamed1086() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1110(core.List<api.Permission> o) { +checkUnnamed1086(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -310,8 +310,8 @@ var o = new api.PermissionChange(); buildCounterPermissionChange++; if (buildCounterPermissionChange < 3) { - o.addedPermissions = buildUnnamed1109(); - o.removedPermissions = buildUnnamed1110(); + o.addedPermissions = buildUnnamed1085(); + o.removedPermissions = buildUnnamed1086(); } buildCounterPermissionChange--; return o; @@ -320,8 +320,8 @@ checkPermissionChange(api.PermissionChange o) { buildCounterPermissionChange++; if (buildCounterPermissionChange < 3) { - checkUnnamed1109(o.addedPermissions); - checkUnnamed1110(o.removedPermissions); + checkUnnamed1085(o.addedPermissions); + checkUnnamed1086(o.removedPermissions); } buildCounterPermissionChange--; }
diff --git a/generated/googleapis/test/appstate/v1_test.dart b/generated/googleapis/test/appstate/v1_test.dart index 9935d8a..75ce478 100644 --- a/generated/googleapis/test/appstate/v1_test.dart +++ b/generated/googleapis/test/appstate/v1_test.dart
@@ -76,14 +76,14 @@ buildCounterGetResponse--; } -buildUnnamed2457() { +buildUnnamed2494() { var o = new core.List<api.GetResponse>(); o.add(buildGetResponse()); o.add(buildGetResponse()); return o; } -checkUnnamed2457(core.List<api.GetResponse> o) { +checkUnnamed2494(core.List<api.GetResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkGetResponse(o[0]); checkGetResponse(o[1]); @@ -94,7 +94,7 @@ var o = new api.ListResponse(); buildCounterListResponse++; if (buildCounterListResponse < 3) { - o.items = buildUnnamed2457(); + o.items = buildUnnamed2494(); o.kind = "foo"; o.maximumKeyCount = 42; } @@ -105,7 +105,7 @@ checkListResponse(api.ListResponse o) { buildCounterListResponse++; if (buildCounterListResponse < 3) { - checkUnnamed2457(o.items); + checkUnnamed2494(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.maximumKeyCount, unittest.equals(42)); }
diff --git a/generated/googleapis/test/cloudbilling/v1_test.dart b/generated/googleapis/test/cloudbilling/v1_test.dart index 36b53e5..25d6083 100644 --- a/generated/googleapis/test/cloudbilling/v1_test.dart +++ b/generated/googleapis/test/cloudbilling/v1_test.dart
@@ -74,14 +74,14 @@ buildCounterBillingAccount--; } -buildUnnamed105() { +buildUnnamed68() { var o = new core.List<api.BillingAccount>(); o.add(buildBillingAccount()); o.add(buildBillingAccount()); return o; } -checkUnnamed105(core.List<api.BillingAccount> o) { +checkUnnamed68(core.List<api.BillingAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkBillingAccount(o[0]); checkBillingAccount(o[1]); @@ -92,7 +92,7 @@ var o = new api.ListBillingAccountsResponse(); buildCounterListBillingAccountsResponse++; if (buildCounterListBillingAccountsResponse < 3) { - o.billingAccounts = buildUnnamed105(); + o.billingAccounts = buildUnnamed68(); o.nextPageToken = "foo"; } buildCounterListBillingAccountsResponse--; @@ -102,20 +102,20 @@ checkListBillingAccountsResponse(api.ListBillingAccountsResponse o) { buildCounterListBillingAccountsResponse++; if (buildCounterListBillingAccountsResponse < 3) { - checkUnnamed105(o.billingAccounts); + checkUnnamed68(o.billingAccounts); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListBillingAccountsResponse--; } -buildUnnamed106() { +buildUnnamed69() { var o = new core.List<api.ProjectBillingInfo>(); o.add(buildProjectBillingInfo()); o.add(buildProjectBillingInfo()); return o; } -checkUnnamed106(core.List<api.ProjectBillingInfo> o) { +checkUnnamed69(core.List<api.ProjectBillingInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkProjectBillingInfo(o[0]); checkProjectBillingInfo(o[1]); @@ -127,7 +127,7 @@ buildCounterListProjectBillingInfoResponse++; if (buildCounterListProjectBillingInfoResponse < 3) { o.nextPageToken = "foo"; - o.projectBillingInfo = buildUnnamed106(); + o.projectBillingInfo = buildUnnamed69(); } buildCounterListProjectBillingInfoResponse--; return o; @@ -137,7 +137,7 @@ buildCounterListProjectBillingInfoResponse++; if (buildCounterListProjectBillingInfoResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed106(o.projectBillingInfo); + checkUnnamed69(o.projectBillingInfo); } buildCounterListProjectBillingInfoResponse--; }
diff --git a/generated/googleapis/test/cloudbuild/v1_test.dart b/generated/googleapis/test/cloudbuild/v1_test.dart index 7b0afa5..5565f6b 100644 --- a/generated/googleapis/test/cloudbuild/v1_test.dart +++ b/generated/googleapis/test/cloudbuild/v1_test.dart
@@ -51,53 +51,66 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1424() { +buildUnnamed1402() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1424(core.List<core.String> o) { +checkUnnamed1402(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1425() { +buildUnnamed1403() { + var o = new core.List<api.Secret>(); + o.add(buildSecret()); + o.add(buildSecret()); + return o; +} + +checkUnnamed1403(core.List<api.Secret> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSecret(o[0]); + checkSecret(o[1]); +} + +buildUnnamed1404() { var o = new core.List<api.BuildStep>(); o.add(buildBuildStep()); o.add(buildBuildStep()); return o; } -checkUnnamed1425(core.List<api.BuildStep> o) { +checkUnnamed1404(core.List<api.BuildStep> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildStep(o[0]); checkBuildStep(o[1]); } -buildUnnamed1426() { +buildUnnamed1405() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1426(core.Map<core.String, core.String> o) { +checkUnnamed1405(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1427() { +buildUnnamed1406() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1427(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')); @@ -112,20 +125,21 @@ o.createTime = "foo"; o.finishTime = "foo"; o.id = "foo"; - o.images = buildUnnamed1424(); + o.images = buildUnnamed1402(); o.logUrl = "foo"; o.logsBucket = "foo"; o.options = buildBuildOptions(); o.projectId = "foo"; o.results = buildResults(); + o.secrets = buildUnnamed1403(); o.source = buildSource(); o.sourceProvenance = buildSourceProvenance(); o.startTime = "foo"; o.status = "foo"; o.statusDetail = "foo"; - o.steps = buildUnnamed1425(); - o.substitutions = buildUnnamed1426(); - o.tags = buildUnnamed1427(); + o.steps = buildUnnamed1404(); + o.substitutions = buildUnnamed1405(); + o.tags = buildUnnamed1406(); o.timeout = "foo"; } buildCounterBuild--; @@ -139,20 +153,21 @@ unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.finishTime, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1424(o.images); + checkUnnamed1402(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); + checkUnnamed1403(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')); - checkUnnamed1425(o.steps); - checkUnnamed1426(o.substitutions); - checkUnnamed1427(o.tags); + checkUnnamed1404(o.steps); + checkUnnamed1405(o.substitutions); + checkUnnamed1406(o.tags); unittest.expect(o.timeout, unittest.equals('foo')); } buildCounterBuild--; @@ -177,14 +192,14 @@ buildCounterBuildOperationMetadata--; } -buildUnnamed1428() { +buildUnnamed1407() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1428(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')); @@ -196,7 +211,7 @@ buildCounterBuildOptions++; if (buildCounterBuildOptions < 3) { o.requestedVerifyOption = "foo"; - o.sourceProvenanceHash = buildUnnamed1428(); + o.sourceProvenanceHash = buildUnnamed1407(); o.substitutionOption = "foo"; } buildCounterBuildOptions--; @@ -207,46 +222,72 @@ buildCounterBuildOptions++; if (buildCounterBuildOptions < 3) { unittest.expect(o.requestedVerifyOption, unittest.equals('foo')); - checkUnnamed1428(o.sourceProvenanceHash); + checkUnnamed1407(o.sourceProvenanceHash); unittest.expect(o.substitutionOption, unittest.equals('foo')); } buildCounterBuildOptions--; } -buildUnnamed1429() { +buildUnnamed1408() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1429(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')); } -buildUnnamed1430() { +buildUnnamed1409() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1430(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')); } -buildUnnamed1431() { +buildUnnamed1410() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1431(core.List<core.String> o) { +checkUnnamed1410(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1411() { + var o = new core.List<api.Volume>(); + o.add(buildVolume()); + o.add(buildVolume()); + return o; +} + +checkUnnamed1411(core.List<api.Volume> o) { + unittest.expect(o, unittest.hasLength(2)); + checkVolume(o[0]); + checkVolume(o[1]); +} + +buildUnnamed1412() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1412(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -257,13 +298,15 @@ var o = new api.BuildStep(); buildCounterBuildStep++; if (buildCounterBuildStep < 3) { - o.args = buildUnnamed1429(); + o.args = buildUnnamed1408(); o.dir = "foo"; o.entrypoint = "foo"; - o.env = buildUnnamed1430(); + o.env = buildUnnamed1409(); o.id = "foo"; o.name = "foo"; - o.waitFor = buildUnnamed1431(); + o.secretEnv = buildUnnamed1410(); + o.volumes = buildUnnamed1411(); + o.waitFor = buildUnnamed1412(); } buildCounterBuildStep--; return o; @@ -272,25 +315,27 @@ checkBuildStep(api.BuildStep o) { buildCounterBuildStep++; if (buildCounterBuildStep < 3) { - checkUnnamed1429(o.args); + checkUnnamed1408(o.args); unittest.expect(o.dir, unittest.equals('foo')); unittest.expect(o.entrypoint, unittest.equals('foo')); - checkUnnamed1430(o.env); + checkUnnamed1409(o.env); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1431(o.waitFor); + checkUnnamed1410(o.secretEnv); + checkUnnamed1411(o.volumes); + checkUnnamed1412(o.waitFor); } buildCounterBuildStep--; } -buildUnnamed1432() { +buildUnnamed1413() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1432(core.Map<core.String, core.String> o) { +checkUnnamed1413(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -307,7 +352,7 @@ o.disabled = true; o.filename = "foo"; o.id = "foo"; - o.substitutions = buildUnnamed1432(); + o.substitutions = buildUnnamed1413(); o.triggerTemplate = buildRepoSource(); } buildCounterBuildTrigger--; @@ -323,7 +368,7 @@ unittest.expect(o.disabled, unittest.isTrue); unittest.expect(o.filename, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1432(o.substitutions); + checkUnnamed1413(o.substitutions); checkRepoSource(o.triggerTemplate); } buildCounterBuildTrigger--; @@ -401,14 +446,14 @@ buildCounterEmpty--; } -buildUnnamed1433() { +buildUnnamed1414() { var o = new core.List<api.Hash>(); o.add(buildHash()); o.add(buildHash()); return o; } -checkUnnamed1433(core.List<api.Hash> o) { +checkUnnamed1414(core.List<api.Hash> o) { unittest.expect(o, unittest.hasLength(2)); checkHash(o[0]); checkHash(o[1]); @@ -419,7 +464,7 @@ var o = new api.FileHashes(); buildCounterFileHashes++; if (buildCounterFileHashes < 3) { - o.fileHash = buildUnnamed1433(); + o.fileHash = buildUnnamed1414(); } buildCounterFileHashes--; return o; @@ -428,7 +473,7 @@ checkFileHashes(api.FileHashes o) { buildCounterFileHashes++; if (buildCounterFileHashes < 3) { - checkUnnamed1433(o.fileHash); + checkUnnamed1414(o.fileHash); } buildCounterFileHashes--; } @@ -454,14 +499,14 @@ buildCounterHash--; } -buildUnnamed1434() { +buildUnnamed1415() { var o = new core.List<api.BuildTrigger>(); o.add(buildBuildTrigger()); o.add(buildBuildTrigger()); return o; } -checkUnnamed1434(core.List<api.BuildTrigger> o) { +checkUnnamed1415(core.List<api.BuildTrigger> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildTrigger(o[0]); checkBuildTrigger(o[1]); @@ -472,7 +517,7 @@ var o = new api.ListBuildTriggersResponse(); buildCounterListBuildTriggersResponse++; if (buildCounterListBuildTriggersResponse < 3) { - o.triggers = buildUnnamed1434(); + o.triggers = buildUnnamed1415(); } buildCounterListBuildTriggersResponse--; return o; @@ -481,19 +526,19 @@ checkListBuildTriggersResponse(api.ListBuildTriggersResponse o) { buildCounterListBuildTriggersResponse++; if (buildCounterListBuildTriggersResponse < 3) { - checkUnnamed1434(o.triggers); + checkUnnamed1415(o.triggers); } buildCounterListBuildTriggersResponse--; } -buildUnnamed1435() { +buildUnnamed1416() { var o = new core.List<api.Build>(); o.add(buildBuild()); o.add(buildBuild()); return o; } -checkUnnamed1435(core.List<api.Build> o) { +checkUnnamed1416(core.List<api.Build> o) { unittest.expect(o, unittest.hasLength(2)); checkBuild(o[0]); checkBuild(o[1]); @@ -504,7 +549,7 @@ var o = new api.ListBuildsResponse(); buildCounterListBuildsResponse++; if (buildCounterListBuildsResponse < 3) { - o.builds = buildUnnamed1435(); + o.builds = buildUnnamed1416(); o.nextPageToken = "foo"; } buildCounterListBuildsResponse--; @@ -514,20 +559,20 @@ checkListBuildsResponse(api.ListBuildsResponse o) { buildCounterListBuildsResponse++; if (buildCounterListBuildsResponse < 3) { - checkUnnamed1435(o.builds); + checkUnnamed1416(o.builds); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListBuildsResponse--; } -buildUnnamed1436() { +buildUnnamed1417() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1436(core.List<api.Operation> o) { +checkUnnamed1417(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -539,7 +584,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1436(); + o.operations = buildUnnamed1417(); } buildCounterListOperationsResponse--; return o; @@ -549,32 +594,32 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1436(o.operations); + checkUnnamed1417(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1437() { +buildUnnamed1418() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1437(core.Map<core.String, core.Object> o) { +checkUnnamed1418(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')); } -buildUnnamed1438() { +buildUnnamed1419() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1438(core.Map<core.String, core.Object> o) { +checkUnnamed1419(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')); @@ -587,9 +632,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1437(); + o.metadata = buildUnnamed1418(); o.name = "foo"; - o.response = buildUnnamed1438(); + o.response = buildUnnamed1419(); } buildCounterOperation--; return o; @@ -600,9 +645,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1437(o.metadata); + checkUnnamed1418(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1438(o.response); + checkUnnamed1419(o.response); } buildCounterOperation--; } @@ -634,27 +679,27 @@ buildCounterRepoSource--; } -buildUnnamed1439() { +buildUnnamed1420() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1439(core.List<core.String> o) { +checkUnnamed1420(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1440() { +buildUnnamed1421() { var o = new core.List<api.BuiltImage>(); o.add(buildBuiltImage()); o.add(buildBuiltImage()); return o; } -checkUnnamed1440(core.List<api.BuiltImage> o) { +checkUnnamed1421(core.List<api.BuiltImage> o) { unittest.expect(o, unittest.hasLength(2)); checkBuiltImage(o[0]); checkBuiltImage(o[1]); @@ -665,8 +710,8 @@ var o = new api.Results(); buildCounterResults++; if (buildCounterResults < 3) { - o.buildStepImages = buildUnnamed1439(); - o.images = buildUnnamed1440(); + o.buildStepImages = buildUnnamed1420(); + o.images = buildUnnamed1421(); } buildCounterResults--; return o; @@ -675,12 +720,46 @@ checkResults(api.Results o) { buildCounterResults++; if (buildCounterResults < 3) { - checkUnnamed1439(o.buildStepImages); - checkUnnamed1440(o.images); + checkUnnamed1420(o.buildStepImages); + checkUnnamed1421(o.images); } buildCounterResults--; } +buildUnnamed1422() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed1422(core.Map<core.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 buildCounterSecret = 0; +buildSecret() { + var o = new api.Secret(); + buildCounterSecret++; + if (buildCounterSecret < 3) { + o.kmsKeyName = "foo"; + o.secretEnv = buildUnnamed1422(); + } + buildCounterSecret--; + return o; +} + +checkSecret(api.Secret o) { + buildCounterSecret++; + if (buildCounterSecret < 3) { + unittest.expect(o.kmsKeyName, unittest.equals('foo')); + checkUnnamed1422(o.secretEnv); + } + buildCounterSecret--; +} + core.int buildCounterSource = 0; buildSource() { var o = new api.Source(); @@ -702,14 +781,14 @@ buildCounterSource--; } -buildUnnamed1441() { +buildUnnamed1423() { var o = new core.Map<core.String, api.FileHashes>(); o["x"] = buildFileHashes(); o["y"] = buildFileHashes(); return o; } -checkUnnamed1441(core.Map<core.String, api.FileHashes> o) { +checkUnnamed1423(core.Map<core.String, api.FileHashes> o) { unittest.expect(o, unittest.hasLength(2)); checkFileHashes(o["x"]); checkFileHashes(o["y"]); @@ -720,7 +799,7 @@ var o = new api.SourceProvenance(); buildCounterSourceProvenance++; if (buildCounterSourceProvenance < 3) { - o.fileHashes = buildUnnamed1441(); + o.fileHashes = buildUnnamed1423(); o.resolvedRepoSource = buildRepoSource(); o.resolvedStorageSource = buildStorageSource(); } @@ -731,37 +810,37 @@ checkSourceProvenance(api.SourceProvenance o) { buildCounterSourceProvenance++; if (buildCounterSourceProvenance < 3) { - checkUnnamed1441(o.fileHashes); + checkUnnamed1423(o.fileHashes); checkRepoSource(o.resolvedRepoSource); checkStorageSource(o.resolvedStorageSource); } buildCounterSourceProvenance--; } -buildUnnamed1442() { +buildUnnamed1424() { 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; } -checkUnnamed1442(core.Map<core.String, core.Object> o) { +checkUnnamed1424(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')); } -buildUnnamed1443() { +buildUnnamed1425() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1442()); - o.add(buildUnnamed1442()); + o.add(buildUnnamed1424()); + o.add(buildUnnamed1424()); return o; } -checkUnnamed1443(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1425(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1442(o[0]); - checkUnnamed1442(o[1]); + checkUnnamed1424(o[0]); + checkUnnamed1424(o[1]); } core.int buildCounterStatus = 0; @@ -770,7 +849,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1443(); + o.details = buildUnnamed1425(); o.message = "foo"; } buildCounterStatus--; @@ -781,7 +860,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1443(o.details); + checkUnnamed1425(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -810,6 +889,27 @@ buildCounterStorageSource--; } +core.int buildCounterVolume = 0; +buildVolume() { + var o = new api.Volume(); + buildCounterVolume++; + if (buildCounterVolume < 3) { + o.name = "foo"; + o.path = "foo"; + } + buildCounterVolume--; + return o; +} + +checkVolume(api.Volume o) { + buildCounterVolume++; + if (buildCounterVolume < 3) { + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.path, unittest.equals('foo')); + } + buildCounterVolume--; +} + main() { unittest.group("obj-schema-Build", () { @@ -965,6 +1065,15 @@ }); + unittest.group("obj-schema-Secret", () { + unittest.test("to-json--from-json", () { + var o = buildSecret(); + var od = new api.Secret.fromJson(o.toJson()); + checkSecret(od); + }); + }); + + unittest.group("obj-schema-Source", () { unittest.test("to-json--from-json", () { var o = buildSource(); @@ -1001,6 +1110,15 @@ }); + unittest.group("obj-schema-Volume", () { + unittest.test("to-json--from-json", () { + var o = buildVolume(); + var od = new api.Volume.fromJson(o.toJson()); + checkVolume(od); + }); + }); + + unittest.group("resource-OperationsResourceApi", () { unittest.test("method--cancel", () { @@ -1329,9 +1447,9 @@ var mock = new HttpServerMock(); api.ProjectsBuildsResourceApi res = new api.CloudbuildApi(mock).projects.builds; var arg_projectId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageToken = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1365,9 +1483,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -1376,7 +1494,7 @@ var resp = convert.JSON.encode(buildListBuildsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListBuildsResponse response) { + res.list(arg_projectId, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListBuildsResponse response) { checkListBuildsResponse(response); }))); });
diff --git a/generated/googleapis/test/clouddebugger/v2_test.dart b/generated/googleapis/test/clouddebugger/v2_test.dart index 8fe1d1c..ff6ef24 100644 --- a/generated/googleapis/test/clouddebugger/v2_test.dart +++ b/generated/googleapis/test/clouddebugger/v2_test.dart
@@ -72,66 +72,66 @@ buildCounterAliasContext--; } -buildUnnamed891() { +buildUnnamed867() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed891(core.List<api.Variable> o) { +checkUnnamed867(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); } -buildUnnamed892() { +buildUnnamed868() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed892(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')); } -buildUnnamed893() { +buildUnnamed869() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed893(core.Map<core.String, core.String> o) { +checkUnnamed869(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed894() { +buildUnnamed870() { var o = new core.List<api.StackFrame>(); o.add(buildStackFrame()); o.add(buildStackFrame()); return o; } -checkUnnamed894(core.List<api.StackFrame> o) { +checkUnnamed870(core.List<api.StackFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkStackFrame(o[0]); checkStackFrame(o[1]); } -buildUnnamed895() { +buildUnnamed871() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed895(core.List<api.Variable> o) { +checkUnnamed871(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -145,19 +145,19 @@ o.action = "foo"; o.condition = "foo"; o.createTime = "foo"; - o.evaluatedExpressions = buildUnnamed891(); - o.expressions = buildUnnamed892(); + o.evaluatedExpressions = buildUnnamed867(); + o.expressions = buildUnnamed868(); o.finalTime = "foo"; o.id = "foo"; o.isFinalState = true; - o.labels = buildUnnamed893(); + o.labels = buildUnnamed869(); o.location = buildSourceLocation(); o.logLevel = "foo"; o.logMessageFormat = "foo"; - o.stackFrames = buildUnnamed894(); + o.stackFrames = buildUnnamed870(); o.status = buildStatusMessage(); o.userEmail = "foo"; - o.variableTable = buildUnnamed895(); + o.variableTable = buildUnnamed871(); } buildCounterBreakpoint--; return o; @@ -169,19 +169,19 @@ unittest.expect(o.action, unittest.equals('foo')); unittest.expect(o.condition, unittest.equals('foo')); unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed891(o.evaluatedExpressions); - checkUnnamed892(o.expressions); + checkUnnamed867(o.evaluatedExpressions); + checkUnnamed868(o.expressions); unittest.expect(o.finalTime, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isFinalState, unittest.isTrue); - checkUnnamed893(o.labels); + checkUnnamed869(o.labels); checkSourceLocation(o.location); unittest.expect(o.logLevel, unittest.equals('foo')); unittest.expect(o.logMessageFormat, unittest.equals('foo')); - checkUnnamed894(o.stackFrames); + checkUnnamed870(o.stackFrames); checkStatusMessage(o.status); unittest.expect(o.userEmail, unittest.equals('foo')); - checkUnnamed895(o.variableTable); + checkUnnamed871(o.variableTable); } buildCounterBreakpoint--; } @@ -253,40 +253,40 @@ buildCounterCloudWorkspaceSourceContext--; } -buildUnnamed896() { +buildUnnamed872() { var o = new core.List<api.ExtendedSourceContext>(); o.add(buildExtendedSourceContext()); o.add(buildExtendedSourceContext()); return o; } -checkUnnamed896(core.List<api.ExtendedSourceContext> o) { +checkUnnamed872(core.List<api.ExtendedSourceContext> o) { unittest.expect(o, unittest.hasLength(2)); checkExtendedSourceContext(o[0]); checkExtendedSourceContext(o[1]); } -buildUnnamed897() { +buildUnnamed873() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed897(core.Map<core.String, core.String> o) { +checkUnnamed873(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed898() { +buildUnnamed874() { var o = new core.List<api.SourceContext>(); o.add(buildSourceContext()); o.add(buildSourceContext()); return o; } -checkUnnamed898(core.List<api.SourceContext> o) { +checkUnnamed874(core.List<api.SourceContext> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceContext(o[0]); checkSourceContext(o[1]); @@ -299,13 +299,13 @@ if (buildCounterDebuggee < 3) { o.agentVersion = "foo"; o.description = "foo"; - o.extSourceContexts = buildUnnamed896(); + o.extSourceContexts = buildUnnamed872(); o.id = "foo"; o.isDisabled = true; o.isInactive = true; - o.labels = buildUnnamed897(); + o.labels = buildUnnamed873(); o.project = "foo"; - o.sourceContexts = buildUnnamed898(); + o.sourceContexts = buildUnnamed874(); o.status = buildStatusMessage(); o.uniquifier = "foo"; } @@ -318,13 +318,13 @@ if (buildCounterDebuggee < 3) { unittest.expect(o.agentVersion, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed896(o.extSourceContexts); + checkUnnamed872(o.extSourceContexts); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isDisabled, unittest.isTrue); unittest.expect(o.isInactive, unittest.isTrue); - checkUnnamed897(o.labels); + checkUnnamed873(o.labels); unittest.expect(o.project, unittest.equals('foo')); - checkUnnamed898(o.sourceContexts); + checkUnnamed874(o.sourceContexts); checkStatusMessage(o.status); unittest.expect(o.uniquifier, unittest.equals('foo')); } @@ -348,14 +348,14 @@ buildCounterEmpty--; } -buildUnnamed899() { +buildUnnamed875() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed899(core.Map<core.String, core.String> o) { +checkUnnamed875(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -367,7 +367,7 @@ buildCounterExtendedSourceContext++; if (buildCounterExtendedSourceContext < 3) { o.context = buildSourceContext(); - o.labels = buildUnnamed899(); + o.labels = buildUnnamed875(); } buildCounterExtendedSourceContext--; return o; @@ -377,19 +377,19 @@ buildCounterExtendedSourceContext++; if (buildCounterExtendedSourceContext < 3) { checkSourceContext(o.context); - checkUnnamed899(o.labels); + checkUnnamed875(o.labels); } buildCounterExtendedSourceContext--; } -buildUnnamed900() { +buildUnnamed876() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed900(core.List<core.String> o) { +checkUnnamed876(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -401,7 +401,7 @@ buildCounterFormatMessage++; if (buildCounterFormatMessage < 3) { o.format = "foo"; - o.parameters = buildUnnamed900(); + o.parameters = buildUnnamed876(); } buildCounterFormatMessage--; return o; @@ -411,7 +411,7 @@ buildCounterFormatMessage++; if (buildCounterFormatMessage < 3) { unittest.expect(o.format, unittest.equals('foo')); - checkUnnamed900(o.parameters); + checkUnnamed876(o.parameters); } buildCounterFormatMessage--; } @@ -483,14 +483,14 @@ buildCounterGitSourceContext--; } -buildUnnamed901() { +buildUnnamed877() { var o = new core.List<api.Breakpoint>(); o.add(buildBreakpoint()); o.add(buildBreakpoint()); return o; } -checkUnnamed901(core.List<api.Breakpoint> o) { +checkUnnamed877(core.List<api.Breakpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkBreakpoint(o[0]); checkBreakpoint(o[1]); @@ -501,7 +501,7 @@ var o = new api.ListActiveBreakpointsResponse(); buildCounterListActiveBreakpointsResponse++; if (buildCounterListActiveBreakpointsResponse < 3) { - o.breakpoints = buildUnnamed901(); + o.breakpoints = buildUnnamed877(); o.nextWaitToken = "foo"; o.waitExpired = true; } @@ -512,21 +512,21 @@ checkListActiveBreakpointsResponse(api.ListActiveBreakpointsResponse o) { buildCounterListActiveBreakpointsResponse++; if (buildCounterListActiveBreakpointsResponse < 3) { - checkUnnamed901(o.breakpoints); + checkUnnamed877(o.breakpoints); unittest.expect(o.nextWaitToken, unittest.equals('foo')); unittest.expect(o.waitExpired, unittest.isTrue); } buildCounterListActiveBreakpointsResponse--; } -buildUnnamed902() { +buildUnnamed878() { var o = new core.List<api.Breakpoint>(); o.add(buildBreakpoint()); o.add(buildBreakpoint()); return o; } -checkUnnamed902(core.List<api.Breakpoint> o) { +checkUnnamed878(core.List<api.Breakpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkBreakpoint(o[0]); checkBreakpoint(o[1]); @@ -537,7 +537,7 @@ var o = new api.ListBreakpointsResponse(); buildCounterListBreakpointsResponse++; if (buildCounterListBreakpointsResponse < 3) { - o.breakpoints = buildUnnamed902(); + o.breakpoints = buildUnnamed878(); o.nextWaitToken = "foo"; } buildCounterListBreakpointsResponse--; @@ -547,20 +547,20 @@ checkListBreakpointsResponse(api.ListBreakpointsResponse o) { buildCounterListBreakpointsResponse++; if (buildCounterListBreakpointsResponse < 3) { - checkUnnamed902(o.breakpoints); + checkUnnamed878(o.breakpoints); unittest.expect(o.nextWaitToken, unittest.equals('foo')); } buildCounterListBreakpointsResponse--; } -buildUnnamed903() { +buildUnnamed879() { var o = new core.List<api.Debuggee>(); o.add(buildDebuggee()); o.add(buildDebuggee()); return o; } -checkUnnamed903(core.List<api.Debuggee> o) { +checkUnnamed879(core.List<api.Debuggee> o) { unittest.expect(o, unittest.hasLength(2)); checkDebuggee(o[0]); checkDebuggee(o[1]); @@ -571,7 +571,7 @@ var o = new api.ListDebuggeesResponse(); buildCounterListDebuggeesResponse++; if (buildCounterListDebuggeesResponse < 3) { - o.debuggees = buildUnnamed903(); + o.debuggees = buildUnnamed879(); } buildCounterListDebuggeesResponse--; return o; @@ -580,7 +580,7 @@ checkListDebuggeesResponse(api.ListDebuggeesResponse o) { buildCounterListDebuggeesResponse++; if (buildCounterListDebuggeesResponse < 3) { - checkUnnamed903(o.debuggees); + checkUnnamed879(o.debuggees); } buildCounterListDebuggeesResponse--; } @@ -730,27 +730,27 @@ buildCounterSourceLocation--; } -buildUnnamed904() { +buildUnnamed880() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed904(core.List<api.Variable> o) { +checkUnnamed880(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); } -buildUnnamed905() { +buildUnnamed881() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed905(core.List<api.Variable> o) { +checkUnnamed881(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -761,9 +761,9 @@ var o = new api.StackFrame(); buildCounterStackFrame++; if (buildCounterStackFrame < 3) { - o.arguments = buildUnnamed904(); + o.arguments = buildUnnamed880(); o.function = "foo"; - o.locals = buildUnnamed905(); + o.locals = buildUnnamed881(); o.location = buildSourceLocation(); } buildCounterStackFrame--; @@ -773,9 +773,9 @@ checkStackFrame(api.StackFrame o) { buildCounterStackFrame++; if (buildCounterStackFrame < 3) { - checkUnnamed904(o.arguments); + checkUnnamed880(o.arguments); unittest.expect(o.function, unittest.equals('foo')); - checkUnnamed905(o.locals); + checkUnnamed881(o.locals); checkSourceLocation(o.location); } buildCounterStackFrame--; @@ -840,14 +840,14 @@ buildCounterUpdateActiveBreakpointResponse--; } -buildUnnamed906() { +buildUnnamed882() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed906(core.List<api.Variable> o) { +checkUnnamed882(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -858,7 +858,7 @@ var o = new api.Variable(); buildCounterVariable++; if (buildCounterVariable < 3) { - o.members = buildUnnamed906(); + o.members = buildUnnamed882(); o.name = "foo"; o.status = buildStatusMessage(); o.type = "foo"; @@ -872,7 +872,7 @@ checkVariable(api.Variable o) { buildCounterVariable++; if (buildCounterVariable < 3) { - checkUnnamed906(o.members); + checkUnnamed882(o.members); unittest.expect(o.name, unittest.equals('foo')); checkStatusMessage(o.status); unittest.expect(o.type, unittest.equals('foo')); @@ -1301,9 +1301,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"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1330,9 +1330,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), 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)); var h = { @@ -1341,7 +1341,7 @@ var resp = convert.JSON.encode(buildListDebuggeesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(clientVersion: arg_clientVersion, includeInactive: arg_includeInactive, project: arg_project).then(unittest.expectAsync1(((api.ListDebuggeesResponse response) { + res.list(includeInactive: arg_includeInactive, project: arg_project, clientVersion: arg_clientVersion).then(unittest.expectAsync1(((api.ListDebuggeesResponse response) { checkListDebuggeesResponse(response); }))); }); @@ -1469,12 +1469,12 @@ var mock = new HttpServerMock(); api.DebuggerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerApi(mock).debugger.debuggees.breakpoints; var arg_debuggeeId = "foo"; - var arg_stripResults = true; var arg_waitToken = "foo"; var arg_clientVersion = "foo"; var arg_action_value = "foo"; - var arg_includeAllUsers = true; var arg_includeInactive = true; + var arg_includeAllUsers = true; + var arg_stripResults = true; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1508,12 +1508,12 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["stripResults"].first, unittest.equals("$arg_stripResults")); unittest.expect(queryMap["waitToken"].first, unittest.equals(arg_waitToken)); unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_clientVersion)); unittest.expect(queryMap["action.value"].first, unittest.equals(arg_action_value)); - unittest.expect(queryMap["includeAllUsers"].first, unittest.equals("$arg_includeAllUsers")); unittest.expect(queryMap["includeInactive"].first, unittest.equals("$arg_includeInactive")); + unittest.expect(queryMap["includeAllUsers"].first, unittest.equals("$arg_includeAllUsers")); + unittest.expect(queryMap["stripResults"].first, unittest.equals("$arg_stripResults")); var h = { @@ -1522,7 +1522,7 @@ var resp = convert.JSON.encode(buildListBreakpointsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_debuggeeId, stripResults: arg_stripResults, waitToken: arg_waitToken, clientVersion: arg_clientVersion, action_value: arg_action_value, includeAllUsers: arg_includeAllUsers, includeInactive: arg_includeInactive).then(unittest.expectAsync1(((api.ListBreakpointsResponse response) { + res.list(arg_debuggeeId, waitToken: arg_waitToken, clientVersion: arg_clientVersion, action_value: arg_action_value, includeInactive: arg_includeInactive, includeAllUsers: arg_includeAllUsers, stripResults: arg_stripResults).then(unittest.expectAsync1(((api.ListBreakpointsResponse response) { checkListBreakpointsResponse(response); }))); });
diff --git a/generated/googleapis/test/cloudfunctions/v1_test.dart b/generated/googleapis/test/cloudfunctions/v1_test.dart index 68a85f8..f17ed4f 100644 --- a/generated/googleapis/test/cloudfunctions/v1_test.dart +++ b/generated/googleapis/test/cloudfunctions/v1_test.dart
@@ -51,25 +51,197 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed178() { +buildUnnamed141() { + var o = new core.List<api.Location>(); + o.add(buildLocation()); + o.add(buildLocation()); + return o; +} + +checkUnnamed141(core.List<api.Location> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLocation(o[0]); + checkLocation(o[1]); +} + +core.int buildCounterListLocationsResponse = 0; +buildListLocationsResponse() { + var o = new api.ListLocationsResponse(); + buildCounterListLocationsResponse++; + if (buildCounterListLocationsResponse < 3) { + o.locations = buildUnnamed141(); + o.nextPageToken = "foo"; + } + buildCounterListLocationsResponse--; + return o; +} + +checkListLocationsResponse(api.ListLocationsResponse o) { + buildCounterListLocationsResponse++; + if (buildCounterListLocationsResponse < 3) { + checkUnnamed141(o.locations); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListLocationsResponse--; +} + +buildUnnamed142() { + var o = new core.List<api.Operation>(); + o.add(buildOperation()); + o.add(buildOperation()); + return o; +} + +checkUnnamed142(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 = buildUnnamed142(); + } + buildCounterListOperationsResponse--; + return o; +} + +checkListOperationsResponse(api.ListOperationsResponse o) { + buildCounterListOperationsResponse++; + if (buildCounterListOperationsResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed142(o.operations); + } + buildCounterListOperationsResponse--; +} + +buildUnnamed143() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed143(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed144() { 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; } -checkUnnamed178(core.Map<core.String, core.Object> o) { +checkUnnamed144(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')); } +core.int buildCounterLocation = 0; +buildLocation() { + var o = new api.Location(); + buildCounterLocation++; + if (buildCounterLocation < 3) { + o.labels = buildUnnamed143(); + o.locationId = "foo"; + o.metadata = buildUnnamed144(); + o.name = "foo"; + } + buildCounterLocation--; + return o; +} + +checkLocation(api.Location o) { + buildCounterLocation++; + if (buildCounterLocation < 3) { + checkUnnamed143(o.labels); + unittest.expect(o.locationId, unittest.equals('foo')); + checkUnnamed144(o.metadata); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterLocation--; +} + +buildUnnamed145() { + 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; +} + +checkUnnamed145(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')); +} + +buildUnnamed146() { + 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; +} + +checkUnnamed146(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 buildCounterOperation = 0; +buildOperation() { + var o = new api.Operation(); + buildCounterOperation++; + if (buildCounterOperation < 3) { + o.done = true; + o.error = buildStatus(); + o.metadata = buildUnnamed145(); + o.name = "foo"; + o.response = buildUnnamed146(); + } + buildCounterOperation--; + return o; +} + +checkOperation(api.Operation o) { + buildCounterOperation++; + if (buildCounterOperation < 3) { + unittest.expect(o.done, unittest.isTrue); + checkStatus(o.error); + checkUnnamed145(o.metadata); + unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed146(o.response); + } + buildCounterOperation--; +} + +buildUnnamed147() { + 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; +} + +checkUnnamed147(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 buildCounterOperationMetadataV1Beta2 = 0; buildOperationMetadataV1Beta2() { var o = new api.OperationMetadataV1Beta2(); buildCounterOperationMetadataV1Beta2++; if (buildCounterOperationMetadataV1Beta2 < 3) { - o.request = buildUnnamed178(); + o.request = buildUnnamed147(); o.target = "foo"; o.type = "foo"; } @@ -80,15 +252,100 @@ checkOperationMetadataV1Beta2(api.OperationMetadataV1Beta2 o) { buildCounterOperationMetadataV1Beta2++; if (buildCounterOperationMetadataV1Beta2 < 3) { - checkUnnamed178(o.request); + checkUnnamed147(o.request); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterOperationMetadataV1Beta2--; } +buildUnnamed148() { + 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; +} + +checkUnnamed148(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')); +} + +buildUnnamed149() { + var o = new core.List<core.Map<core.String, core.Object>>(); + o.add(buildUnnamed148()); + o.add(buildUnnamed148()); + return o; +} + +checkUnnamed149(core.List<core.Map<core.String, core.Object>> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed148(o[0]); + checkUnnamed148(o[1]); +} + +core.int buildCounterStatus = 0; +buildStatus() { + var o = new api.Status(); + buildCounterStatus++; + if (buildCounterStatus < 3) { + o.code = 42; + o.details = buildUnnamed149(); + o.message = "foo"; + } + buildCounterStatus--; + return o; +} + +checkStatus(api.Status o) { + buildCounterStatus++; + if (buildCounterStatus < 3) { + unittest.expect(o.code, unittest.equals(42)); + checkUnnamed149(o.details); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterStatus--; +} + main() { + unittest.group("obj-schema-ListLocationsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListLocationsResponse(); + var od = new api.ListLocationsResponse.fromJson(o.toJson()); + checkListLocationsResponse(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-Location", () { + unittest.test("to-json--from-json", () { + var o = buildLocation(); + var od = new api.Location.fromJson(o.toJson()); + checkLocation(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-OperationMetadataV1Beta2", () { unittest.test("to-json--from-json", () { var o = buildOperationMetadataV1Beta2(); @@ -98,5 +355,169 @@ }); + unittest.group("obj-schema-Status", () { + unittest.test("to-json--from-json", () { + var o = buildStatus(); + var od = new api.Status.fromJson(o.toJson()); + checkStatus(od); + }); + }); + + + unittest.group("resource-OperationsResourceApi", () { + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.OperationsResourceApi res = new api.CloudfunctionsApi(mock).operations; + var arg_name = "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 = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.OperationsResourceApi res = new api.CloudfunctionsApi(mock).operations; + var arg_pageToken = "foo"; + var arg_name = "foo"; + var arg_pageSize = 42; + var arg_filter = "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 = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + 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(queryMap["name"].first, unittest.equals(arg_name)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + + + 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(pageToken: arg_pageToken, name: arg_name, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListOperationsResponse response) { + checkListOperationsResponse(response); + }))); + }); + + }); + + + unittest.group("resource-ProjectsLocationsResourceApi", () { + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.ProjectsLocationsResourceApi res = new api.CloudfunctionsApi(mock).projects.locations; + var arg_name = "foo"; + var arg_filter = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + 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 = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + 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["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListLocationsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListLocationsResponse response) { + checkListLocationsResponse(response); + }))); + }); + + }); + + }
diff --git a/generated/googleapis/test/cloudkms/v1_test.dart b/generated/googleapis/test/cloudkms/v1_test.dart index f50b74b..26fbfc0 100644 --- a/generated/googleapis/test/cloudkms/v1_test.dart +++ b/generated/googleapis/test/cloudkms/v1_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1392() { +buildUnnamed1370() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed1392(core.List<api.AuditLogConfig> o) { +checkUnnamed1370(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); } -buildUnnamed1393() { +buildUnnamed1371() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1393(core.List<core.String> o) { +checkUnnamed1371(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -82,8 +82,8 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed1392(); - o.exemptedMembers = buildUnnamed1393(); + o.auditLogConfigs = buildUnnamed1370(); + o.exemptedMembers = buildUnnamed1371(); o.service = "foo"; } buildCounterAuditConfig--; @@ -93,21 +93,21 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed1392(o.auditLogConfigs); - checkUnnamed1393(o.exemptedMembers); + checkUnnamed1370(o.auditLogConfigs); + checkUnnamed1371(o.exemptedMembers); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed1394() { +buildUnnamed1372() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1394(core.List<core.String> o) { +checkUnnamed1372(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -118,7 +118,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed1394(); + o.exemptedMembers = buildUnnamed1372(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -128,20 +128,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed1394(o.exemptedMembers); + checkUnnamed1372(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed1395() { +buildUnnamed1373() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1395(core.List<core.String> o) { +checkUnnamed1373(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -153,7 +153,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { o.condition = buildExpr(); - o.members = buildUnnamed1395(); + o.members = buildUnnamed1373(); o.role = "foo"; } buildCounterBinding--; @@ -164,7 +164,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { checkExpr(o.condition); - checkUnnamed1395(o.members); + checkUnnamed1373(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -189,14 +189,14 @@ buildCounterCloudAuditOptions--; } -buildUnnamed1396() { +buildUnnamed1374() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1396(core.List<core.String> o) { +checkUnnamed1374(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -212,7 +212,7 @@ o.svc = "foo"; o.sys = "foo"; o.value = "foo"; - o.values = buildUnnamed1396(); + o.values = buildUnnamed1374(); } buildCounterCondition--; return o; @@ -226,7 +226,7 @@ unittest.expect(o.svc, unittest.equals('foo')); unittest.expect(o.sys, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); - checkUnnamed1396(o.values); + checkUnnamed1374(o.values); } buildCounterCondition--; } @@ -470,14 +470,14 @@ buildCounterKeyRing--; } -buildUnnamed1397() { +buildUnnamed1375() { var o = new core.List<api.CryptoKeyVersion>(); o.add(buildCryptoKeyVersion()); o.add(buildCryptoKeyVersion()); return o; } -checkUnnamed1397(core.List<api.CryptoKeyVersion> o) { +checkUnnamed1375(core.List<api.CryptoKeyVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkCryptoKeyVersion(o[0]); checkCryptoKeyVersion(o[1]); @@ -488,7 +488,7 @@ var o = new api.ListCryptoKeyVersionsResponse(); buildCounterListCryptoKeyVersionsResponse++; if (buildCounterListCryptoKeyVersionsResponse < 3) { - o.cryptoKeyVersions = buildUnnamed1397(); + o.cryptoKeyVersions = buildUnnamed1375(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -499,21 +499,21 @@ checkListCryptoKeyVersionsResponse(api.ListCryptoKeyVersionsResponse o) { buildCounterListCryptoKeyVersionsResponse++; if (buildCounterListCryptoKeyVersionsResponse < 3) { - checkUnnamed1397(o.cryptoKeyVersions); + checkUnnamed1375(o.cryptoKeyVersions); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListCryptoKeyVersionsResponse--; } -buildUnnamed1398() { +buildUnnamed1376() { var o = new core.List<api.CryptoKey>(); o.add(buildCryptoKey()); o.add(buildCryptoKey()); return o; } -checkUnnamed1398(core.List<api.CryptoKey> o) { +checkUnnamed1376(core.List<api.CryptoKey> o) { unittest.expect(o, unittest.hasLength(2)); checkCryptoKey(o[0]); checkCryptoKey(o[1]); @@ -524,7 +524,7 @@ var o = new api.ListCryptoKeysResponse(); buildCounterListCryptoKeysResponse++; if (buildCounterListCryptoKeysResponse < 3) { - o.cryptoKeys = buildUnnamed1398(); + o.cryptoKeys = buildUnnamed1376(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -535,21 +535,21 @@ checkListCryptoKeysResponse(api.ListCryptoKeysResponse o) { buildCounterListCryptoKeysResponse++; if (buildCounterListCryptoKeysResponse < 3) { - checkUnnamed1398(o.cryptoKeys); + checkUnnamed1376(o.cryptoKeys); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListCryptoKeysResponse--; } -buildUnnamed1399() { +buildUnnamed1377() { var o = new core.List<api.KeyRing>(); o.add(buildKeyRing()); o.add(buildKeyRing()); return o; } -checkUnnamed1399(core.List<api.KeyRing> o) { +checkUnnamed1377(core.List<api.KeyRing> o) { unittest.expect(o, unittest.hasLength(2)); checkKeyRing(o[0]); checkKeyRing(o[1]); @@ -560,7 +560,7 @@ var o = new api.ListKeyRingsResponse(); buildCounterListKeyRingsResponse++; if (buildCounterListKeyRingsResponse < 3) { - o.keyRings = buildUnnamed1399(); + o.keyRings = buildUnnamed1377(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -571,21 +571,21 @@ checkListKeyRingsResponse(api.ListKeyRingsResponse o) { buildCounterListKeyRingsResponse++; if (buildCounterListKeyRingsResponse < 3) { - checkUnnamed1399(o.keyRings); + checkUnnamed1377(o.keyRings); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListKeyRingsResponse--; } -buildUnnamed1400() { +buildUnnamed1378() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed1400(core.List<api.Location> o) { +checkUnnamed1378(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -596,7 +596,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed1400(); + o.locations = buildUnnamed1378(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -606,33 +606,33 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed1400(o.locations); + checkUnnamed1378(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed1401() { +buildUnnamed1379() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1401(core.Map<core.String, core.String> o) { +checkUnnamed1379(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1402() { +buildUnnamed1380() { 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; } -checkUnnamed1402(core.Map<core.String, core.Object> o) { +checkUnnamed1380(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')); @@ -643,9 +643,9 @@ var o = new api.Location(); buildCounterLocation++; if (buildCounterLocation < 3) { - o.labels = buildUnnamed1401(); + o.labels = buildUnnamed1379(); o.locationId = "foo"; - o.metadata = buildUnnamed1402(); + o.metadata = buildUnnamed1380(); o.name = "foo"; } buildCounterLocation--; @@ -655,9 +655,9 @@ checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { - checkUnnamed1401(o.labels); + checkUnnamed1379(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed1402(o.metadata); + checkUnnamed1380(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -686,40 +686,40 @@ buildCounterLogConfig--; } -buildUnnamed1403() { +buildUnnamed1381() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed1403(core.List<api.AuditConfig> o) { +checkUnnamed1381(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed1404() { +buildUnnamed1382() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1404(core.List<api.Binding> o) { +checkUnnamed1382(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); } -buildUnnamed1405() { +buildUnnamed1383() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed1405(core.List<api.Rule> o) { +checkUnnamed1383(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -730,11 +730,11 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed1403(); - o.bindings = buildUnnamed1404(); + o.auditConfigs = buildUnnamed1381(); + o.bindings = buildUnnamed1382(); o.etag = "foo"; o.iamOwned = true; - o.rules = buildUnnamed1405(); + o.rules = buildUnnamed1383(); o.version = 42; } buildCounterPolicy--; @@ -744,11 +744,11 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1403(o.auditConfigs); - checkUnnamed1404(o.bindings); + checkUnnamed1381(o.auditConfigs); + checkUnnamed1382(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.iamOwned, unittest.isTrue); - checkUnnamed1405(o.rules); + checkUnnamed1383(o.rules); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; @@ -771,66 +771,66 @@ buildCounterRestoreCryptoKeyVersionRequest--; } -buildUnnamed1406() { +buildUnnamed1384() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed1406(core.List<api.Condition> o) { +checkUnnamed1384(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed1407() { +buildUnnamed1385() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1407(core.List<core.String> o) { +checkUnnamed1385(core.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() { +buildUnnamed1386() { var o = new core.List<api.LogConfig>(); o.add(buildLogConfig()); o.add(buildLogConfig()); return o; } -checkUnnamed1408(core.List<api.LogConfig> o) { +checkUnnamed1386(core.List<api.LogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkLogConfig(o[0]); checkLogConfig(o[1]); } -buildUnnamed1409() { +buildUnnamed1387() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1409(core.List<core.String> o) { +checkUnnamed1387(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1410() { +buildUnnamed1388() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1410(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')); @@ -842,12 +842,12 @@ buildCounterRule++; if (buildCounterRule < 3) { o.action = "foo"; - o.conditions = buildUnnamed1406(); + o.conditions = buildUnnamed1384(); o.description = "foo"; - o.in_ = buildUnnamed1407(); - o.logConfig = buildUnnamed1408(); - o.notIn = buildUnnamed1409(); - o.permissions = buildUnnamed1410(); + o.in_ = buildUnnamed1385(); + o.logConfig = buildUnnamed1386(); + o.notIn = buildUnnamed1387(); + o.permissions = buildUnnamed1388(); } buildCounterRule--; return o; @@ -857,12 +857,12 @@ buildCounterRule++; if (buildCounterRule < 3) { unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed1406(o.conditions); + checkUnnamed1384(o.conditions); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1407(o.in_); - checkUnnamed1408(o.logConfig); - checkUnnamed1409(o.notIn); - checkUnnamed1410(o.permissions); + checkUnnamed1385(o.in_); + checkUnnamed1386(o.logConfig); + checkUnnamed1387(o.notIn); + checkUnnamed1388(o.permissions); } buildCounterRule--; } @@ -888,14 +888,14 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed1411() { +buildUnnamed1389() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1411(core.List<core.String> o) { +checkUnnamed1389(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -906,7 +906,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1411(); + o.permissions = buildUnnamed1389(); } buildCounterTestIamPermissionsRequest--; return o; @@ -915,19 +915,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1411(o.permissions); + checkUnnamed1389(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1412() { +buildUnnamed1390() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1412(core.List<core.String> o) { +checkUnnamed1390(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -938,7 +938,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1412(); + o.permissions = buildUnnamed1390(); } buildCounterTestIamPermissionsResponse--; return o; @@ -947,7 +947,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1412(o.permissions); + checkUnnamed1390(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -2265,8 +2265,8 @@ var mock = new HttpServerMock(); api.ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings.cryptoKeys.cryptoKeyVersions; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -2294,8 +2294,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -2304,7 +2304,7 @@ var resp = convert.JSON.encode(buildListCryptoKeyVersionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListCryptoKeyVersionsResponse response) { + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListCryptoKeyVersionsResponse response) { checkListCryptoKeyVersionsResponse(response); }))); });
diff --git a/generated/googleapis/test/cloudresourcemanager/v1_test.dart b/generated/googleapis/test/cloudresourcemanager/v1_test.dart index 6c2da20..e858665 100644 --- a/generated/googleapis/test/cloudresourcemanager/v1_test.dart +++ b/generated/googleapis/test/cloudresourcemanager/v1_test.dart
@@ -70,14 +70,14 @@ buildCounterAncestor--; } -buildUnnamed1793() { +buildUnnamed1825() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed1793(core.List<api.AuditLogConfig> o) { +checkUnnamed1825(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -88,7 +88,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed1793(); + o.auditLogConfigs = buildUnnamed1825(); o.service = "foo"; } buildCounterAuditConfig--; @@ -98,20 +98,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed1793(o.auditLogConfigs); + checkUnnamed1825(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed1794() { +buildUnnamed1826() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1794(core.List<core.String> o) { +checkUnnamed1826(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -122,7 +122,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed1794(); + o.exemptedMembers = buildUnnamed1826(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -132,20 +132,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed1794(o.exemptedMembers); + checkUnnamed1826(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed1795() { +buildUnnamed1827() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1795(core.List<core.String> o) { +checkUnnamed1827(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -156,7 +156,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed1795(); + o.members = buildUnnamed1827(); o.role = "foo"; } buildCounterBinding--; @@ -166,7 +166,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed1795(o.members); + checkUnnamed1827(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -338,14 +338,14 @@ buildCounterGetAncestryRequest--; } -buildUnnamed1796() { +buildUnnamed1828() { var o = new core.List<api.Ancestor>(); o.add(buildAncestor()); o.add(buildAncestor()); return o; } -checkUnnamed1796(core.List<api.Ancestor> o) { +checkUnnamed1828(core.List<api.Ancestor> o) { unittest.expect(o, unittest.hasLength(2)); checkAncestor(o[0]); checkAncestor(o[1]); @@ -356,7 +356,7 @@ var o = new api.GetAncestryResponse(); buildCounterGetAncestryResponse++; if (buildCounterGetAncestryResponse < 3) { - o.ancestor = buildUnnamed1796(); + o.ancestor = buildUnnamed1828(); } buildCounterGetAncestryResponse--; return o; @@ -365,7 +365,7 @@ checkGetAncestryResponse(api.GetAncestryResponse o) { buildCounterGetAncestryResponse++; if (buildCounterGetAncestryResponse < 3) { - checkUnnamed1796(o.ancestor); + checkUnnamed1828(o.ancestor); } buildCounterGetAncestryResponse--; } @@ -425,14 +425,14 @@ buildCounterGetOrgPolicyRequest--; } -buildUnnamed1797() { +buildUnnamed1829() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1797(core.List<core.String> o) { +checkUnnamed1829(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -448,7 +448,7 @@ o.origin = "foo"; o.parent = "foo"; o.reason = "foo"; - o.restrictions = buildUnnamed1797(); + o.restrictions = buildUnnamed1829(); } buildCounterLien--; return o; @@ -462,7 +462,7 @@ unittest.expect(o.origin, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); unittest.expect(o.reason, unittest.equals('foo')); - checkUnnamed1797(o.restrictions); + checkUnnamed1829(o.restrictions); } buildCounterLien--; } @@ -488,14 +488,14 @@ buildCounterListAvailableOrgPolicyConstraintsRequest--; } -buildUnnamed1798() { +buildUnnamed1830() { var o = new core.List<api.Constraint>(); o.add(buildConstraint()); o.add(buildConstraint()); return o; } -checkUnnamed1798(core.List<api.Constraint> o) { +checkUnnamed1830(core.List<api.Constraint> o) { unittest.expect(o, unittest.hasLength(2)); checkConstraint(o[0]); checkConstraint(o[1]); @@ -506,7 +506,7 @@ var o = new api.ListAvailableOrgPolicyConstraintsResponse(); buildCounterListAvailableOrgPolicyConstraintsResponse++; if (buildCounterListAvailableOrgPolicyConstraintsResponse < 3) { - o.constraints = buildUnnamed1798(); + o.constraints = buildUnnamed1830(); o.nextPageToken = "foo"; } buildCounterListAvailableOrgPolicyConstraintsResponse--; @@ -516,7 +516,7 @@ checkListAvailableOrgPolicyConstraintsResponse(api.ListAvailableOrgPolicyConstraintsResponse o) { buildCounterListAvailableOrgPolicyConstraintsResponse++; if (buildCounterListAvailableOrgPolicyConstraintsResponse < 3) { - checkUnnamed1798(o.constraints); + checkUnnamed1830(o.constraints); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAvailableOrgPolicyConstraintsResponse--; @@ -541,14 +541,14 @@ buildCounterListConstraint--; } -buildUnnamed1799() { +buildUnnamed1831() { var o = new core.List<api.Lien>(); o.add(buildLien()); o.add(buildLien()); return o; } -checkUnnamed1799(core.List<api.Lien> o) { +checkUnnamed1831(core.List<api.Lien> o) { unittest.expect(o, unittest.hasLength(2)); checkLien(o[0]); checkLien(o[1]); @@ -559,7 +559,7 @@ var o = new api.ListLiensResponse(); buildCounterListLiensResponse++; if (buildCounterListLiensResponse < 3) { - o.liens = buildUnnamed1799(); + o.liens = buildUnnamed1831(); o.nextPageToken = "foo"; } buildCounterListLiensResponse--; @@ -569,7 +569,7 @@ checkListLiensResponse(api.ListLiensResponse o) { buildCounterListLiensResponse++; if (buildCounterListLiensResponse < 3) { - checkUnnamed1799(o.liens); + checkUnnamed1831(o.liens); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLiensResponse--; @@ -596,14 +596,14 @@ buildCounterListOrgPoliciesRequest--; } -buildUnnamed1800() { +buildUnnamed1832() { var o = new core.List<api.OrgPolicy>(); o.add(buildOrgPolicy()); o.add(buildOrgPolicy()); return o; } -checkUnnamed1800(core.List<api.OrgPolicy> o) { +checkUnnamed1832(core.List<api.OrgPolicy> o) { unittest.expect(o, unittest.hasLength(2)); checkOrgPolicy(o[0]); checkOrgPolicy(o[1]); @@ -615,7 +615,7 @@ buildCounterListOrgPoliciesResponse++; if (buildCounterListOrgPoliciesResponse < 3) { o.nextPageToken = "foo"; - o.policies = buildUnnamed1800(); + o.policies = buildUnnamed1832(); } buildCounterListOrgPoliciesResponse--; return o; @@ -625,32 +625,32 @@ buildCounterListOrgPoliciesResponse++; if (buildCounterListOrgPoliciesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1800(o.policies); + checkUnnamed1832(o.policies); } buildCounterListOrgPoliciesResponse--; } -buildUnnamed1801() { +buildUnnamed1833() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1801(core.List<core.String> o) { +checkUnnamed1833(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1802() { +buildUnnamed1834() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1802(core.List<core.String> o) { +checkUnnamed1834(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -662,8 +662,8 @@ buildCounterListPolicy++; if (buildCounterListPolicy < 3) { o.allValues = "foo"; - o.allowedValues = buildUnnamed1801(); - o.deniedValues = buildUnnamed1802(); + o.allowedValues = buildUnnamed1833(); + o.deniedValues = buildUnnamed1834(); o.inheritFromParent = true; o.suggestedValue = "foo"; } @@ -675,22 +675,22 @@ buildCounterListPolicy++; if (buildCounterListPolicy < 3) { unittest.expect(o.allValues, unittest.equals('foo')); - checkUnnamed1801(o.allowedValues); - checkUnnamed1802(o.deniedValues); + checkUnnamed1833(o.allowedValues); + checkUnnamed1834(o.deniedValues); unittest.expect(o.inheritFromParent, unittest.isTrue); unittest.expect(o.suggestedValue, unittest.equals('foo')); } buildCounterListPolicy--; } -buildUnnamed1803() { +buildUnnamed1835() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed1803(core.List<api.Project> o) { +checkUnnamed1835(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -702,7 +702,7 @@ buildCounterListProjectsResponse++; if (buildCounterListProjectsResponse < 3) { o.nextPageToken = "foo"; - o.projects = buildUnnamed1803(); + o.projects = buildUnnamed1835(); } buildCounterListProjectsResponse--; return o; @@ -712,32 +712,32 @@ buildCounterListProjectsResponse++; if (buildCounterListProjectsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1803(o.projects); + checkUnnamed1835(o.projects); } buildCounterListProjectsResponse--; } -buildUnnamed1804() { +buildUnnamed1836() { 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; } -checkUnnamed1804(core.Map<core.String, core.Object> o) { +checkUnnamed1836(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')); } -buildUnnamed1805() { +buildUnnamed1837() { 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; } -checkUnnamed1805(core.Map<core.String, core.Object> o) { +checkUnnamed1837(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')); @@ -750,9 +750,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1804(); + o.metadata = buildUnnamed1836(); o.name = "foo"; - o.response = buildUnnamed1805(); + o.response = buildUnnamed1837(); } buildCounterOperation--; return o; @@ -763,9 +763,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1804(o.metadata); + checkUnnamed1836(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1805(o.response); + checkUnnamed1837(o.response); } buildCounterOperation--; } @@ -847,27 +847,27 @@ buildCounterOrganizationOwner--; } -buildUnnamed1806() { +buildUnnamed1838() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed1806(core.List<api.AuditConfig> o) { +checkUnnamed1838(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed1807() { +buildUnnamed1839() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1807(core.List<api.Binding> o) { +checkUnnamed1839(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -878,8 +878,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed1806(); - o.bindings = buildUnnamed1807(); + o.auditConfigs = buildUnnamed1838(); + o.bindings = buildUnnamed1839(); o.etag = "foo"; o.version = 42; } @@ -890,22 +890,22 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1806(o.auditConfigs); - checkUnnamed1807(o.bindings); + checkUnnamed1838(o.auditConfigs); + checkUnnamed1839(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed1808() { +buildUnnamed1840() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1808(core.Map<core.String, core.String> o) { +checkUnnamed1840(core.Map<core.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 +917,7 @@ buildCounterProject++; if (buildCounterProject < 3) { o.createTime = "foo"; - o.labels = buildUnnamed1808(); + o.labels = buildUnnamed1840(); o.lifecycleState = "foo"; o.name = "foo"; o.parent = buildResourceId(); @@ -932,7 +932,7 @@ buildCounterProject++; if (buildCounterProject < 3) { unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed1808(o.labels); + checkUnnamed1840(o.labels); unittest.expect(o.lifecycleState, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkResourceId(o.parent); @@ -1026,14 +1026,14 @@ buildCounterSearchOrganizationsRequest--; } -buildUnnamed1809() { +buildUnnamed1841() { var o = new core.List<api.Organization>(); o.add(buildOrganization()); o.add(buildOrganization()); return o; } -checkUnnamed1809(core.List<api.Organization> o) { +checkUnnamed1841(core.List<api.Organization> o) { unittest.expect(o, unittest.hasLength(2)); checkOrganization(o[0]); checkOrganization(o[1]); @@ -1045,7 +1045,7 @@ buildCounterSearchOrganizationsResponse++; if (buildCounterSearchOrganizationsResponse < 3) { o.nextPageToken = "foo"; - o.organizations = buildUnnamed1809(); + o.organizations = buildUnnamed1841(); } buildCounterSearchOrganizationsResponse--; return o; @@ -1055,7 +1055,7 @@ buildCounterSearchOrganizationsResponse++; if (buildCounterSearchOrganizationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1809(o.organizations); + checkUnnamed1841(o.organizations); } buildCounterSearchOrganizationsResponse--; } @@ -1100,30 +1100,30 @@ buildCounterSetOrgPolicyRequest--; } -buildUnnamed1810() { +buildUnnamed1842() { 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; } -checkUnnamed1810(core.Map<core.String, core.Object> o) { +checkUnnamed1842(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')); } -buildUnnamed1811() { +buildUnnamed1843() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1810()); - o.add(buildUnnamed1810()); + o.add(buildUnnamed1842()); + o.add(buildUnnamed1842()); return o; } -checkUnnamed1811(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1843(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1810(o[0]); - checkUnnamed1810(o[1]); + checkUnnamed1842(o[0]); + checkUnnamed1842(o[1]); } core.int buildCounterStatus = 0; @@ -1132,7 +1132,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1811(); + o.details = buildUnnamed1843(); o.message = "foo"; } buildCounterStatus--; @@ -1143,20 +1143,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1811(o.details); + checkUnnamed1843(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed1812() { +buildUnnamed1844() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1812(core.List<core.String> o) { +checkUnnamed1844(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1167,7 +1167,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1812(); + o.permissions = buildUnnamed1844(); } buildCounterTestIamPermissionsRequest--; return o; @@ -1176,19 +1176,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1812(o.permissions); + checkUnnamed1844(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1813() { +buildUnnamed1845() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1813(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')); @@ -1199,7 +1199,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1813(); + o.permissions = buildUnnamed1845(); } buildCounterTestIamPermissionsResponse--; return o; @@ -1208,7 +1208,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1813(o.permissions); + checkUnnamed1845(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -2005,9 +2005,9 @@ var mock = new HttpServerMock(); api.LiensResourceApi res = new api.CloudresourcemanagerApi(mock).liens; + var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_parent = "foo"; - var arg_pageToken = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -2034,9 +2034,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["parent"].first, unittest.equals(arg_parent)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -2045,7 +2045,7 @@ var resp = convert.JSON.encode(buildListLiensResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(pageSize: arg_pageSize, parent: arg_parent, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListLiensResponse response) { + res.list(pageToken: arg_pageToken, pageSize: arg_pageSize, parent: arg_parent).then(unittest.expectAsync1(((api.ListLiensResponse response) { checkListLiensResponse(response); }))); }); @@ -3042,9 +3042,9 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; - var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; + var arg_pageSize = 42; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -3071,9 +3071,9 @@ 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(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -3082,7 +3082,7 @@ var resp = convert.JSON.encode(buildListProjectsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListProjectsResponse response) { + res.list(filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListProjectsResponse response) { checkListProjectsResponse(response); }))); });
diff --git a/generated/googleapis/test/cloudresourcemanager/v2beta1_test.dart b/generated/googleapis/test/cloudresourcemanager/v2beta1_test.dart index 4cc0088..53303b0 100644 --- a/generated/googleapis/test/cloudresourcemanager/v2beta1_test.dart +++ b/generated/googleapis/test/cloudresourcemanager/v2beta1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed120() { +buildUnnamed83() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed120(core.List<api.AuditLogConfig> o) { +checkUnnamed83(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -69,7 +69,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed120(); + o.auditLogConfigs = buildUnnamed83(); o.service = "foo"; } buildCounterAuditConfig--; @@ -79,20 +79,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed120(o.auditLogConfigs); + checkUnnamed83(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed121() { +buildUnnamed84() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed121(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')); @@ -103,7 +103,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed121(); + o.exemptedMembers = buildUnnamed84(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -113,20 +113,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed121(o.exemptedMembers); + checkUnnamed84(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed122() { +buildUnnamed85() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed122(core.List<core.String> o) { +checkUnnamed85(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -137,7 +137,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed122(); + o.members = buildUnnamed85(); o.role = "foo"; } buildCounterBinding--; @@ -147,7 +147,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed122(o.members); + checkUnnamed85(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -241,14 +241,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed123() { +buildUnnamed86() { var o = new core.List<api.Folder>(); o.add(buildFolder()); o.add(buildFolder()); return o; } -checkUnnamed123(core.List<api.Folder> o) { +checkUnnamed86(core.List<api.Folder> o) { unittest.expect(o, unittest.hasLength(2)); checkFolder(o[0]); checkFolder(o[1]); @@ -259,7 +259,7 @@ var o = new api.ListFoldersResponse(); buildCounterListFoldersResponse++; if (buildCounterListFoldersResponse < 3) { - o.folders = buildUnnamed123(); + o.folders = buildUnnamed86(); o.nextPageToken = "foo"; } buildCounterListFoldersResponse--; @@ -269,7 +269,7 @@ checkListFoldersResponse(api.ListFoldersResponse o) { buildCounterListFoldersResponse++; if (buildCounterListFoldersResponse < 3) { - checkUnnamed123(o.folders); + checkUnnamed86(o.folders); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListFoldersResponse--; @@ -294,27 +294,27 @@ buildCounterMoveFolderRequest--; } -buildUnnamed124() { +buildUnnamed87() { 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; } -checkUnnamed124(core.Map<core.String, core.Object> o) { +checkUnnamed87(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')); } -buildUnnamed125() { +buildUnnamed88() { 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; } -checkUnnamed125(core.Map<core.String, core.Object> o) { +checkUnnamed88(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')); @@ -327,9 +327,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed124(); + o.metadata = buildUnnamed87(); o.name = "foo"; - o.response = buildUnnamed125(); + o.response = buildUnnamed88(); } buildCounterOperation--; return o; @@ -340,34 +340,34 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed124(o.metadata); + checkUnnamed87(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed125(o.response); + checkUnnamed88(o.response); } buildCounterOperation--; } -buildUnnamed126() { +buildUnnamed89() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed126(core.List<api.AuditConfig> o) { +checkUnnamed89(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed127() { +buildUnnamed90() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed127(core.List<api.Binding> o) { +checkUnnamed90(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -378,8 +378,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed126(); - o.bindings = buildUnnamed127(); + o.auditConfigs = buildUnnamed89(); + o.bindings = buildUnnamed90(); o.etag = "foo"; o.version = 42; } @@ -390,8 +390,8 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed126(o.auditConfigs); - checkUnnamed127(o.bindings); + checkUnnamed89(o.auditConfigs); + checkUnnamed90(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -444,14 +444,14 @@ buildCounterSearchFoldersRequest--; } -buildUnnamed128() { +buildUnnamed91() { var o = new core.List<api.Folder>(); o.add(buildFolder()); o.add(buildFolder()); return o; } -checkUnnamed128(core.List<api.Folder> o) { +checkUnnamed91(core.List<api.Folder> o) { unittest.expect(o, unittest.hasLength(2)); checkFolder(o[0]); checkFolder(o[1]); @@ -462,7 +462,7 @@ var o = new api.SearchFoldersResponse(); buildCounterSearchFoldersResponse++; if (buildCounterSearchFoldersResponse < 3) { - o.folders = buildUnnamed128(); + o.folders = buildUnnamed91(); o.nextPageToken = "foo"; } buildCounterSearchFoldersResponse--; @@ -472,7 +472,7 @@ checkSearchFoldersResponse(api.SearchFoldersResponse o) { buildCounterSearchFoldersResponse++; if (buildCounterSearchFoldersResponse < 3) { - checkUnnamed128(o.folders); + checkUnnamed91(o.folders); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchFoldersResponse--; @@ -499,30 +499,30 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed129() { +buildUnnamed92() { 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; } -checkUnnamed129(core.Map<core.String, core.Object> o) { +checkUnnamed92(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')); } -buildUnnamed130() { +buildUnnamed93() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed129()); - o.add(buildUnnamed129()); + o.add(buildUnnamed92()); + o.add(buildUnnamed92()); return o; } -checkUnnamed130(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed93(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed129(o[0]); - checkUnnamed129(o[1]); + checkUnnamed92(o[0]); + checkUnnamed92(o[1]); } core.int buildCounterStatus = 0; @@ -531,7 +531,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed130(); + o.details = buildUnnamed93(); o.message = "foo"; } buildCounterStatus--; @@ -542,20 +542,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed130(o.details); + checkUnnamed93(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed131() { +buildUnnamed94() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed131(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')); @@ -566,7 +566,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed131(); + o.permissions = buildUnnamed94(); } buildCounterTestIamPermissionsRequest--; return o; @@ -575,19 +575,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed131(o.permissions); + checkUnnamed94(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed132() { +buildUnnamed95() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed132(core.List<core.String> o) { +checkUnnamed95(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -598,7 +598,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed132(); + o.permissions = buildUnnamed95(); } buildCounterTestIamPermissionsResponse--; return o; @@ -607,7 +607,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed132(o.permissions); + checkUnnamed95(o.permissions); } buildCounterTestIamPermissionsResponse--; }
diff --git a/generated/googleapis/test/cloudtrace/v1_test.dart b/generated/googleapis/test/cloudtrace/v1_test.dart index 350bb40..2c44fae 100644 --- a/generated/googleapis/test/cloudtrace/v1_test.dart +++ b/generated/googleapis/test/cloudtrace/v1_test.dart
@@ -68,14 +68,14 @@ buildCounterEmpty--; } -buildUnnamed155() { +buildUnnamed205() { var o = new core.List<api.Trace>(); o.add(buildTrace()); o.add(buildTrace()); return o; } -checkUnnamed155(core.List<api.Trace> o) { +checkUnnamed205(core.List<api.Trace> o) { unittest.expect(o, unittest.hasLength(2)); checkTrace(o[0]); checkTrace(o[1]); @@ -87,7 +87,7 @@ buildCounterListTracesResponse++; if (buildCounterListTracesResponse < 3) { o.nextPageToken = "foo"; - o.traces = buildUnnamed155(); + o.traces = buildUnnamed205(); } buildCounterListTracesResponse--; return o; @@ -97,19 +97,19 @@ buildCounterListTracesResponse++; if (buildCounterListTracesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed155(o.traces); + checkUnnamed205(o.traces); } buildCounterListTracesResponse--; } -buildUnnamed156() { +buildUnnamed206() { var o = new core.List<api.TraceSpan>(); o.add(buildTraceSpan()); o.add(buildTraceSpan()); return o; } -checkUnnamed156(core.List<api.TraceSpan> o) { +checkUnnamed206(core.List<api.TraceSpan> o) { unittest.expect(o, unittest.hasLength(2)); checkTraceSpan(o[0]); checkTraceSpan(o[1]); @@ -121,7 +121,7 @@ buildCounterTrace++; if (buildCounterTrace < 3) { o.projectId = "foo"; - o.spans = buildUnnamed156(); + o.spans = buildUnnamed206(); o.traceId = "foo"; } buildCounterTrace--; @@ -132,20 +132,20 @@ buildCounterTrace++; if (buildCounterTrace < 3) { unittest.expect(o.projectId, unittest.equals('foo')); - checkUnnamed156(o.spans); + checkUnnamed206(o.spans); unittest.expect(o.traceId, unittest.equals('foo')); } buildCounterTrace--; } -buildUnnamed157() { +buildUnnamed207() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed157(core.Map<core.String, core.String> o) { +checkUnnamed207(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -158,7 +158,7 @@ if (buildCounterTraceSpan < 3) { o.endTime = "foo"; o.kind = "foo"; - o.labels = buildUnnamed157(); + o.labels = buildUnnamed207(); o.name = "foo"; o.parentSpanId = "foo"; o.spanId = "foo"; @@ -173,7 +173,7 @@ if (buildCounterTraceSpan < 3) { unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed157(o.labels); + checkUnnamed207(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentSpanId, unittest.equals('foo')); unittest.expect(o.spanId, unittest.equals('foo')); @@ -182,14 +182,14 @@ buildCounterTraceSpan--; } -buildUnnamed158() { +buildUnnamed208() { var o = new core.List<api.Trace>(); o.add(buildTrace()); o.add(buildTrace()); return o; } -checkUnnamed158(core.List<api.Trace> o) { +checkUnnamed208(core.List<api.Trace> o) { unittest.expect(o, unittest.hasLength(2)); checkTrace(o[0]); checkTrace(o[1]); @@ -200,7 +200,7 @@ var o = new api.Traces(); buildCounterTraces++; if (buildCounterTraces < 3) { - o.traces = buildUnnamed158(); + o.traces = buildUnnamed208(); } buildCounterTraces--; return o; @@ -209,7 +209,7 @@ checkTraces(api.Traces o) { buildCounterTraces++; if (buildCounterTraces < 3) { - checkUnnamed158(o.traces); + checkUnnamed208(o.traces); } buildCounterTraces--; } @@ -381,13 +381,13 @@ var mock = new HttpServerMock(); 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_startTime = "foo"; var arg_pageSize = 42; var arg_view = "foo"; - var arg_orderBy = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -421,13 +421,13 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), 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)); - unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTime)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTime)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); var h = { @@ -436,7 +436,7 @@ var resp = convert.JSON.encode(buildListTracesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, filter: arg_filter, endTime: arg_endTime, startTime: arg_startTime, pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view, orderBy: arg_orderBy).then(unittest.expectAsync1(((api.ListTracesResponse response) { + res.list(arg_projectId, orderBy: arg_orderBy, filter: arg_filter, endTime: arg_endTime, pageToken: arg_pageToken, startTime: arg_startTime, pageSize: arg_pageSize, view: arg_view).then(unittest.expectAsync1(((api.ListTracesResponse response) { checkListTracesResponse(response); }))); });
diff --git a/generated/googleapis/test/cloudtrace/v2_test.dart b/generated/googleapis/test/cloudtrace/v2_test.dart index 16d6d69..67d28e4 100644 --- a/generated/googleapis/test/cloudtrace/v2_test.dart +++ b/generated/googleapis/test/cloudtrace/v2_test.dart
@@ -95,14 +95,14 @@ buildCounterAttributeValue--; } -buildUnnamed1111() { +buildUnnamed1087() { var o = new core.Map<core.String, api.AttributeValue>(); o["x"] = buildAttributeValue(); o["y"] = buildAttributeValue(); return o; } -checkUnnamed1111(core.Map<core.String, api.AttributeValue> o) { +checkUnnamed1087(core.Map<core.String, api.AttributeValue> o) { unittest.expect(o, unittest.hasLength(2)); checkAttributeValue(o["x"]); checkAttributeValue(o["y"]); @@ -113,7 +113,7 @@ var o = new api.Attributes(); buildCounterAttributes++; if (buildCounterAttributes < 3) { - o.attributeMap = buildUnnamed1111(); + o.attributeMap = buildUnnamed1087(); o.droppedAttributesCount = 42; } buildCounterAttributes--; @@ -123,20 +123,20 @@ checkAttributes(api.Attributes o) { buildCounterAttributes++; if (buildCounterAttributes < 3) { - checkUnnamed1111(o.attributeMap); + checkUnnamed1087(o.attributeMap); unittest.expect(o.droppedAttributesCount, unittest.equals(42)); } buildCounterAttributes--; } -buildUnnamed1112() { +buildUnnamed1088() { var o = new core.List<api.Span>(); o.add(buildSpan()); o.add(buildSpan()); return o; } -checkUnnamed1112(core.List<api.Span> o) { +checkUnnamed1088(core.List<api.Span> o) { unittest.expect(o, unittest.hasLength(2)); checkSpan(o[0]); checkSpan(o[1]); @@ -147,7 +147,7 @@ var o = new api.BatchWriteSpansRequest(); buildCounterBatchWriteSpansRequest++; if (buildCounterBatchWriteSpansRequest < 3) { - o.spans = buildUnnamed1112(); + o.spans = buildUnnamed1088(); } buildCounterBatchWriteSpansRequest--; return o; @@ -156,7 +156,7 @@ checkBatchWriteSpansRequest(api.BatchWriteSpansRequest o) { buildCounterBatchWriteSpansRequest++; if (buildCounterBatchWriteSpansRequest < 3) { - checkUnnamed1112(o.spans); + checkUnnamed1088(o.spans); } buildCounterBatchWriteSpansRequest--; } @@ -203,14 +203,14 @@ buildCounterLink--; } -buildUnnamed1113() { +buildUnnamed1089() { var o = new core.List<api.Link>(); o.add(buildLink()); o.add(buildLink()); return o; } -checkUnnamed1113(core.List<api.Link> o) { +checkUnnamed1089(core.List<api.Link> o) { unittest.expect(o, unittest.hasLength(2)); checkLink(o[0]); checkLink(o[1]); @@ -222,7 +222,7 @@ buildCounterLinks++; if (buildCounterLinks < 3) { o.droppedLinksCount = 42; - o.link = buildUnnamed1113(); + o.link = buildUnnamed1089(); } buildCounterLinks--; return o; @@ -232,19 +232,19 @@ buildCounterLinks++; if (buildCounterLinks < 3) { unittest.expect(o.droppedLinksCount, unittest.equals(42)); - checkUnnamed1113(o.link); + checkUnnamed1089(o.link); } buildCounterLinks--; } -buildUnnamed1114() { +buildUnnamed1090() { var o = new core.List<api.Span>(); o.add(buildSpan()); o.add(buildSpan()); return o; } -checkUnnamed1114(core.List<api.Span> o) { +checkUnnamed1090(core.List<api.Span> o) { unittest.expect(o, unittest.hasLength(2)); checkSpan(o[0]); checkSpan(o[1]); @@ -256,7 +256,7 @@ buildCounterListSpansResponse++; if (buildCounterListSpansResponse < 3) { o.nextPageToken = "foo"; - o.spans = buildUnnamed1114(); + o.spans = buildUnnamed1090(); } buildCounterListSpansResponse--; return o; @@ -266,19 +266,19 @@ buildCounterListSpansResponse++; if (buildCounterListSpansResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1114(o.spans); + checkUnnamed1090(o.spans); } buildCounterListSpansResponse--; } -buildUnnamed1115() { +buildUnnamed1091() { var o = new core.List<api.Trace>(); o.add(buildTrace()); o.add(buildTrace()); return o; } -checkUnnamed1115(core.List<api.Trace> o) { +checkUnnamed1091(core.List<api.Trace> o) { unittest.expect(o, unittest.hasLength(2)); checkTrace(o[0]); checkTrace(o[1]); @@ -290,7 +290,7 @@ buildCounterListTracesResponse++; if (buildCounterListTracesResponse < 3) { o.nextPageToken = "foo"; - o.traces = buildUnnamed1115(); + o.traces = buildUnnamed1091(); } buildCounterListTracesResponse--; return o; @@ -300,7 +300,7 @@ buildCounterListTracesResponse++; if (buildCounterListTracesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1115(o.traces); + checkUnnamed1091(o.traces); } buildCounterListTracesResponse--; } @@ -425,14 +425,14 @@ buildCounterStackFrame--; } -buildUnnamed1116() { +buildUnnamed1092() { var o = new core.List<api.StackFrame>(); o.add(buildStackFrame()); o.add(buildStackFrame()); return o; } -checkUnnamed1116(core.List<api.StackFrame> o) { +checkUnnamed1092(core.List<api.StackFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkStackFrame(o[0]); checkStackFrame(o[1]); @@ -444,7 +444,7 @@ buildCounterStackFrames++; if (buildCounterStackFrames < 3) { o.droppedFramesCount = 42; - o.frame = buildUnnamed1116(); + o.frame = buildUnnamed1092(); } buildCounterStackFrames--; return o; @@ -454,7 +454,7 @@ buildCounterStackFrames++; if (buildCounterStackFrames < 3) { unittest.expect(o.droppedFramesCount, unittest.equals(42)); - checkUnnamed1116(o.frame); + checkUnnamed1092(o.frame); } buildCounterStackFrames--; } @@ -480,30 +480,30 @@ buildCounterStackTrace--; } -buildUnnamed1117() { +buildUnnamed1093() { 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; } -checkUnnamed1117(core.Map<core.String, core.Object> o) { +checkUnnamed1093(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')); } -buildUnnamed1118() { +buildUnnamed1094() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1117()); - o.add(buildUnnamed1117()); + o.add(buildUnnamed1093()); + o.add(buildUnnamed1093()); return o; } -checkUnnamed1118(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1094(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1117(o[0]); - checkUnnamed1117(o[1]); + checkUnnamed1093(o[0]); + checkUnnamed1093(o[1]); } core.int buildCounterStatus = 0; @@ -512,7 +512,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1118(); + o.details = buildUnnamed1094(); o.message = "foo"; } buildCounterStatus--; @@ -523,7 +523,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1118(o.details); + checkUnnamed1094(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -552,14 +552,14 @@ buildCounterTimeEvent--; } -buildUnnamed1119() { +buildUnnamed1095() { var o = new core.List<api.TimeEvent>(); o.add(buildTimeEvent()); o.add(buildTimeEvent()); return o; } -checkUnnamed1119(core.List<api.TimeEvent> o) { +checkUnnamed1095(core.List<api.TimeEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkTimeEvent(o[0]); checkTimeEvent(o[1]); @@ -572,7 +572,7 @@ if (buildCounterTimeEvents < 3) { o.droppedAnnotationsCount = 42; o.droppedNetworkEventsCount = 42; - o.timeEvent = buildUnnamed1119(); + o.timeEvent = buildUnnamed1095(); } buildCounterTimeEvents--; return o; @@ -583,7 +583,7 @@ if (buildCounterTimeEvents < 3) { unittest.expect(o.droppedAnnotationsCount, unittest.equals(42)); unittest.expect(o.droppedNetworkEventsCount, unittest.equals(42)); - checkUnnamed1119(o.timeEvent); + checkUnnamed1095(o.timeEvent); } buildCounterTimeEvents--; } @@ -865,12 +865,12 @@ var mock = new HttpServerMock(); api.ProjectsTracesResourceApi res = new api.CloudtraceApi(mock).projects.traces; var arg_parent = "foo"; - var arg_pageSize = 42; var arg_orderBy = "foo"; var arg_filter = "foo"; var arg_endTime = "foo"; - var arg_pageToken = "foo"; var arg_startTime = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -898,12 +898,12 @@ 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["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTime)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -912,7 +912,7 @@ var resp = convert.JSON.encode(buildListTracesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageSize: arg_pageSize, orderBy: arg_orderBy, filter: arg_filter, endTime: arg_endTime, pageToken: arg_pageToken, startTime: arg_startTime).then(unittest.expectAsync1(((api.ListTracesResponse response) { + res.list(arg_parent, orderBy: arg_orderBy, filter: arg_filter, endTime: arg_endTime, startTime: arg_startTime, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListTracesResponse response) { checkListTracesResponse(response); }))); });
diff --git a/generated/googleapis/test/compute/v1_test.dart b/generated/googleapis/test/compute/v1_test.dart index 445be2c..0178e83 100644 --- a/generated/googleapis/test/compute/v1_test.dart +++ b/generated/googleapis/test/compute/v1_test.dart
@@ -107,14 +107,14 @@ buildCounterAcceleratorType--; } -buildUnnamed2187() { +buildUnnamed2221() { var o = new core.Map<core.String, api.AcceleratorTypesScopedList>(); o["x"] = buildAcceleratorTypesScopedList(); o["y"] = buildAcceleratorTypesScopedList(); return o; } -checkUnnamed2187(core.Map<core.String, api.AcceleratorTypesScopedList> o) { +checkUnnamed2221(core.Map<core.String, api.AcceleratorTypesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorTypesScopedList(o["x"]); checkAcceleratorTypesScopedList(o["y"]); @@ -126,7 +126,7 @@ buildCounterAcceleratorTypeAggregatedList++; if (buildCounterAcceleratorTypeAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2187(); + o.items = buildUnnamed2221(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -139,7 +139,7 @@ buildCounterAcceleratorTypeAggregatedList++; if (buildCounterAcceleratorTypeAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2187(o.items); + checkUnnamed2221(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -147,14 +147,14 @@ buildCounterAcceleratorTypeAggregatedList--; } -buildUnnamed2188() { +buildUnnamed2222() { var o = new core.List<api.AcceleratorType>(); o.add(buildAcceleratorType()); o.add(buildAcceleratorType()); return o; } -checkUnnamed2188(core.List<api.AcceleratorType> o) { +checkUnnamed2222(core.List<api.AcceleratorType> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorType(o[0]); checkAcceleratorType(o[1]); @@ -166,7 +166,7 @@ buildCounterAcceleratorTypeList++; if (buildCounterAcceleratorTypeList < 3) { o.id = "foo"; - o.items = buildUnnamed2188(); + o.items = buildUnnamed2222(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -179,7 +179,7 @@ buildCounterAcceleratorTypeList++; if (buildCounterAcceleratorTypeList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2188(o.items); + checkUnnamed2222(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -187,14 +187,14 @@ buildCounterAcceleratorTypeList--; } -buildUnnamed2189() { +buildUnnamed2223() { var o = new core.List<api.AcceleratorType>(); o.add(buildAcceleratorType()); o.add(buildAcceleratorType()); return o; } -checkUnnamed2189(core.List<api.AcceleratorType> o) { +checkUnnamed2223(core.List<api.AcceleratorType> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorType(o[0]); checkAcceleratorType(o[1]); @@ -221,14 +221,14 @@ buildCounterAcceleratorTypesScopedListWarningData--; } -buildUnnamed2190() { +buildUnnamed2224() { var o = new core.List<api.AcceleratorTypesScopedListWarningData>(); o.add(buildAcceleratorTypesScopedListWarningData()); o.add(buildAcceleratorTypesScopedListWarningData()); return o; } -checkUnnamed2190(core.List<api.AcceleratorTypesScopedListWarningData> o) { +checkUnnamed2224(core.List<api.AcceleratorTypesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorTypesScopedListWarningData(o[0]); checkAcceleratorTypesScopedListWarningData(o[1]); @@ -240,7 +240,7 @@ buildCounterAcceleratorTypesScopedListWarning++; if (buildCounterAcceleratorTypesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2190(); + o.data = buildUnnamed2224(); o.message = "foo"; } buildCounterAcceleratorTypesScopedListWarning--; @@ -251,7 +251,7 @@ buildCounterAcceleratorTypesScopedListWarning++; if (buildCounterAcceleratorTypesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2190(o.data); + checkUnnamed2224(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAcceleratorTypesScopedListWarning--; @@ -262,7 +262,7 @@ var o = new api.AcceleratorTypesScopedList(); buildCounterAcceleratorTypesScopedList++; if (buildCounterAcceleratorTypesScopedList < 3) { - o.acceleratorTypes = buildUnnamed2189(); + o.acceleratorTypes = buildUnnamed2223(); o.warning = buildAcceleratorTypesScopedListWarning(); } buildCounterAcceleratorTypesScopedList--; @@ -272,7 +272,7 @@ checkAcceleratorTypesScopedList(api.AcceleratorTypesScopedList o) { buildCounterAcceleratorTypesScopedList++; if (buildCounterAcceleratorTypesScopedList < 3) { - checkUnnamed2189(o.acceleratorTypes); + checkUnnamed2223(o.acceleratorTypes); checkAcceleratorTypesScopedListWarning(o.warning); } buildCounterAcceleratorTypesScopedList--; @@ -303,14 +303,14 @@ buildCounterAccessConfig--; } -buildUnnamed2191() { +buildUnnamed2225() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2191(core.List<core.String> o) { +checkUnnamed2225(core.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 +331,7 @@ o.region = "foo"; o.selfLink = "foo"; o.status = "foo"; - o.users = buildUnnamed2191(); + o.users = buildUnnamed2225(); } buildCounterAddress--; return o; @@ -350,19 +350,19 @@ unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed2191(o.users); + checkUnnamed2225(o.users); } buildCounterAddress--; } -buildUnnamed2192() { +buildUnnamed2226() { var o = new core.Map<core.String, api.AddressesScopedList>(); o["x"] = buildAddressesScopedList(); o["y"] = buildAddressesScopedList(); return o; } -checkUnnamed2192(core.Map<core.String, api.AddressesScopedList> o) { +checkUnnamed2226(core.Map<core.String, api.AddressesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkAddressesScopedList(o["x"]); checkAddressesScopedList(o["y"]); @@ -374,7 +374,7 @@ buildCounterAddressAggregatedList++; if (buildCounterAddressAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2192(); + o.items = buildUnnamed2226(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -387,7 +387,7 @@ buildCounterAddressAggregatedList++; if (buildCounterAddressAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2192(o.items); + checkUnnamed2226(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -395,14 +395,14 @@ buildCounterAddressAggregatedList--; } -buildUnnamed2193() { +buildUnnamed2227() { var o = new core.List<api.Address>(); o.add(buildAddress()); o.add(buildAddress()); return o; } -checkUnnamed2193(core.List<api.Address> o) { +checkUnnamed2227(core.List<api.Address> o) { unittest.expect(o, unittest.hasLength(2)); checkAddress(o[0]); checkAddress(o[1]); @@ -414,7 +414,7 @@ buildCounterAddressList++; if (buildCounterAddressList < 3) { o.id = "foo"; - o.items = buildUnnamed2193(); + o.items = buildUnnamed2227(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -427,7 +427,7 @@ buildCounterAddressList++; if (buildCounterAddressList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2193(o.items); + checkUnnamed2227(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -435,14 +435,14 @@ buildCounterAddressList--; } -buildUnnamed2194() { +buildUnnamed2228() { var o = new core.List<api.Address>(); o.add(buildAddress()); o.add(buildAddress()); return o; } -checkUnnamed2194(core.List<api.Address> o) { +checkUnnamed2228(core.List<api.Address> o) { unittest.expect(o, unittest.hasLength(2)); checkAddress(o[0]); checkAddress(o[1]); @@ -469,14 +469,14 @@ buildCounterAddressesScopedListWarningData--; } -buildUnnamed2195() { +buildUnnamed2229() { var o = new core.List<api.AddressesScopedListWarningData>(); o.add(buildAddressesScopedListWarningData()); o.add(buildAddressesScopedListWarningData()); return o; } -checkUnnamed2195(core.List<api.AddressesScopedListWarningData> o) { +checkUnnamed2229(core.List<api.AddressesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAddressesScopedListWarningData(o[0]); checkAddressesScopedListWarningData(o[1]); @@ -488,7 +488,7 @@ buildCounterAddressesScopedListWarning++; if (buildCounterAddressesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2195(); + o.data = buildUnnamed2229(); o.message = "foo"; } buildCounterAddressesScopedListWarning--; @@ -499,7 +499,7 @@ buildCounterAddressesScopedListWarning++; if (buildCounterAddressesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2195(o.data); + checkUnnamed2229(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAddressesScopedListWarning--; @@ -510,7 +510,7 @@ var o = new api.AddressesScopedList(); buildCounterAddressesScopedList++; if (buildCounterAddressesScopedList < 3) { - o.addresses = buildUnnamed2194(); + o.addresses = buildUnnamed2228(); o.warning = buildAddressesScopedListWarning(); } buildCounterAddressesScopedList--; @@ -520,20 +520,41 @@ checkAddressesScopedList(api.AddressesScopedList o) { buildCounterAddressesScopedList++; if (buildCounterAddressesScopedList < 3) { - checkUnnamed2194(o.addresses); + checkUnnamed2228(o.addresses); checkAddressesScopedListWarning(o.warning); } buildCounterAddressesScopedList--; } -buildUnnamed2196() { +core.int buildCounterAliasIpRange = 0; +buildAliasIpRange() { + var o = new api.AliasIpRange(); + buildCounterAliasIpRange++; + if (buildCounterAliasIpRange < 3) { + o.ipCidrRange = "foo"; + o.subnetworkRangeName = "foo"; + } + buildCounterAliasIpRange--; + return o; +} + +checkAliasIpRange(api.AliasIpRange o) { + buildCounterAliasIpRange++; + if (buildCounterAliasIpRange < 3) { + unittest.expect(o.ipCidrRange, unittest.equals('foo')); + unittest.expect(o.subnetworkRangeName, unittest.equals('foo')); + } + buildCounterAliasIpRange--; +} + +buildUnnamed2230() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2196(core.List<core.String> o) { +checkUnnamed2230(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -552,7 +573,7 @@ o.initializeParams = buildAttachedDiskInitializeParams(); o.interface = "foo"; o.kind = "foo"; - o.licenses = buildUnnamed2196(); + o.licenses = buildUnnamed2230(); o.mode = "foo"; o.source = "foo"; o.type = "foo"; @@ -572,7 +593,7 @@ checkAttachedDiskInitializeParams(o.initializeParams); unittest.expect(o.interface, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2196(o.licenses); + checkUnnamed2230(o.licenses); unittest.expect(o.mode, unittest.equals('foo')); unittest.expect(o.source, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -607,14 +628,14 @@ buildCounterAttachedDiskInitializeParams--; } -buildUnnamed2197() { +buildUnnamed2231() { var o = new core.List<api.AutoscalerStatusDetails>(); o.add(buildAutoscalerStatusDetails()); o.add(buildAutoscalerStatusDetails()); return o; } -checkUnnamed2197(core.List<api.AutoscalerStatusDetails> o) { +checkUnnamed2231(core.List<api.AutoscalerStatusDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalerStatusDetails(o[0]); checkAutoscalerStatusDetails(o[1]); @@ -634,7 +655,7 @@ o.region = "foo"; o.selfLink = "foo"; o.status = "foo"; - o.statusDetails = buildUnnamed2197(); + o.statusDetails = buildUnnamed2231(); o.target = "foo"; o.zone = "foo"; } @@ -654,21 +675,21 @@ unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed2197(o.statusDetails); + checkUnnamed2231(o.statusDetails); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterAutoscaler--; } -buildUnnamed2198() { +buildUnnamed2232() { var o = new core.Map<core.String, api.AutoscalersScopedList>(); o["x"] = buildAutoscalersScopedList(); o["y"] = buildAutoscalersScopedList(); return o; } -checkUnnamed2198(core.Map<core.String, api.AutoscalersScopedList> o) { +checkUnnamed2232(core.Map<core.String, api.AutoscalersScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalersScopedList(o["x"]); checkAutoscalersScopedList(o["y"]); @@ -680,7 +701,7 @@ buildCounterAutoscalerAggregatedList++; if (buildCounterAutoscalerAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2198(); + o.items = buildUnnamed2232(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -693,7 +714,7 @@ buildCounterAutoscalerAggregatedList++; if (buildCounterAutoscalerAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2198(o.items); + checkUnnamed2232(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -701,14 +722,14 @@ buildCounterAutoscalerAggregatedList--; } -buildUnnamed2199() { +buildUnnamed2233() { var o = new core.List<api.Autoscaler>(); o.add(buildAutoscaler()); o.add(buildAutoscaler()); return o; } -checkUnnamed2199(core.List<api.Autoscaler> o) { +checkUnnamed2233(core.List<api.Autoscaler> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscaler(o[0]); checkAutoscaler(o[1]); @@ -720,7 +741,7 @@ buildCounterAutoscalerList++; if (buildCounterAutoscalerList < 3) { o.id = "foo"; - o.items = buildUnnamed2199(); + o.items = buildUnnamed2233(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -733,7 +754,7 @@ buildCounterAutoscalerList++; if (buildCounterAutoscalerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2199(o.items); + checkUnnamed2233(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -762,14 +783,14 @@ buildCounterAutoscalerStatusDetails--; } -buildUnnamed2200() { +buildUnnamed2234() { var o = new core.List<api.Autoscaler>(); o.add(buildAutoscaler()); o.add(buildAutoscaler()); return o; } -checkUnnamed2200(core.List<api.Autoscaler> o) { +checkUnnamed2234(core.List<api.Autoscaler> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscaler(o[0]); checkAutoscaler(o[1]); @@ -796,14 +817,14 @@ buildCounterAutoscalersScopedListWarningData--; } -buildUnnamed2201() { +buildUnnamed2235() { var o = new core.List<api.AutoscalersScopedListWarningData>(); o.add(buildAutoscalersScopedListWarningData()); o.add(buildAutoscalersScopedListWarningData()); return o; } -checkUnnamed2201(core.List<api.AutoscalersScopedListWarningData> o) { +checkUnnamed2235(core.List<api.AutoscalersScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalersScopedListWarningData(o[0]); checkAutoscalersScopedListWarningData(o[1]); @@ -815,7 +836,7 @@ buildCounterAutoscalersScopedListWarning++; if (buildCounterAutoscalersScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2201(); + o.data = buildUnnamed2235(); o.message = "foo"; } buildCounterAutoscalersScopedListWarning--; @@ -826,7 +847,7 @@ buildCounterAutoscalersScopedListWarning++; if (buildCounterAutoscalersScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2201(o.data); + checkUnnamed2235(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAutoscalersScopedListWarning--; @@ -837,7 +858,7 @@ var o = new api.AutoscalersScopedList(); buildCounterAutoscalersScopedList++; if (buildCounterAutoscalersScopedList < 3) { - o.autoscalers = buildUnnamed2200(); + o.autoscalers = buildUnnamed2234(); o.warning = buildAutoscalersScopedListWarning(); } buildCounterAutoscalersScopedList--; @@ -847,20 +868,20 @@ checkAutoscalersScopedList(api.AutoscalersScopedList o) { buildCounterAutoscalersScopedList++; if (buildCounterAutoscalersScopedList < 3) { - checkUnnamed2200(o.autoscalers); + checkUnnamed2234(o.autoscalers); checkAutoscalersScopedListWarning(o.warning); } buildCounterAutoscalersScopedList--; } -buildUnnamed2202() { +buildUnnamed2236() { var o = new core.List<api.AutoscalingPolicyCustomMetricUtilization>(); o.add(buildAutoscalingPolicyCustomMetricUtilization()); o.add(buildAutoscalingPolicyCustomMetricUtilization()); return o; } -checkUnnamed2202(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { +checkUnnamed2236(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalingPolicyCustomMetricUtilization(o[0]); checkAutoscalingPolicyCustomMetricUtilization(o[1]); @@ -873,7 +894,7 @@ if (buildCounterAutoscalingPolicy < 3) { o.coolDownPeriodSec = 42; o.cpuUtilization = buildAutoscalingPolicyCpuUtilization(); - o.customMetricUtilizations = buildUnnamed2202(); + o.customMetricUtilizations = buildUnnamed2236(); o.loadBalancingUtilization = buildAutoscalingPolicyLoadBalancingUtilization(); o.maxNumReplicas = 42; o.minNumReplicas = 42; @@ -887,7 +908,7 @@ if (buildCounterAutoscalingPolicy < 3) { unittest.expect(o.coolDownPeriodSec, unittest.equals(42)); checkAutoscalingPolicyCpuUtilization(o.cpuUtilization); - checkUnnamed2202(o.customMetricUtilizations); + checkUnnamed2236(o.customMetricUtilizations); checkAutoscalingPolicyLoadBalancingUtilization(o.loadBalancingUtilization); unittest.expect(o.maxNumReplicas, unittest.equals(42)); unittest.expect(o.minNumReplicas, unittest.equals(42)); @@ -1024,14 +1045,14 @@ buildCounterBackendBucket--; } -buildUnnamed2203() { +buildUnnamed2237() { var o = new core.List<api.BackendBucket>(); o.add(buildBackendBucket()); o.add(buildBackendBucket()); return o; } -checkUnnamed2203(core.List<api.BackendBucket> o) { +checkUnnamed2237(core.List<api.BackendBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendBucket(o[0]); checkBackendBucket(o[1]); @@ -1043,7 +1064,7 @@ buildCounterBackendBucketList++; if (buildCounterBackendBucketList < 3) { o.id = "foo"; - o.items = buildUnnamed2203(); + o.items = buildUnnamed2237(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1056,7 +1077,7 @@ buildCounterBackendBucketList++; if (buildCounterBackendBucketList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2203(o.items); + checkUnnamed2237(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1064,27 +1085,27 @@ buildCounterBackendBucketList--; } -buildUnnamed2204() { +buildUnnamed2238() { var o = new core.List<api.Backend>(); o.add(buildBackend()); o.add(buildBackend()); return o; } -checkUnnamed2204(core.List<api.Backend> o) { +checkUnnamed2238(core.List<api.Backend> o) { unittest.expect(o, unittest.hasLength(2)); checkBackend(o[0]); checkBackend(o[1]); } -buildUnnamed2205() { +buildUnnamed2239() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2205(core.List<core.String> o) { +checkUnnamed2239(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1096,14 +1117,14 @@ buildCounterBackendService++; if (buildCounterBackendService < 3) { o.affinityCookieTtlSec = 42; - o.backends = buildUnnamed2204(); + o.backends = buildUnnamed2238(); o.cdnPolicy = buildBackendServiceCdnPolicy(); o.connectionDraining = buildConnectionDraining(); o.creationTimestamp = "foo"; o.description = "foo"; o.enableCDN = true; o.fingerprint = "foo"; - o.healthChecks = buildUnnamed2205(); + o.healthChecks = buildUnnamed2239(); o.iap = buildBackendServiceIAP(); o.id = "foo"; o.kind = "foo"; @@ -1125,14 +1146,14 @@ buildCounterBackendService++; if (buildCounterBackendService < 3) { unittest.expect(o.affinityCookieTtlSec, unittest.equals(42)); - checkUnnamed2204(o.backends); + checkUnnamed2238(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')); - checkUnnamed2205(o.healthChecks); + checkUnnamed2239(o.healthChecks); checkBackendServiceIAP(o.iap); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -1149,14 +1170,14 @@ buildCounterBackendService--; } -buildUnnamed2206() { +buildUnnamed2240() { var o = new core.Map<core.String, api.BackendServicesScopedList>(); o["x"] = buildBackendServicesScopedList(); o["y"] = buildBackendServicesScopedList(); return o; } -checkUnnamed2206(core.Map<core.String, api.BackendServicesScopedList> o) { +checkUnnamed2240(core.Map<core.String, api.BackendServicesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendServicesScopedList(o["x"]); checkBackendServicesScopedList(o["y"]); @@ -1168,7 +1189,7 @@ buildCounterBackendServiceAggregatedList++; if (buildCounterBackendServiceAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2206(); + o.items = buildUnnamed2240(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1181,7 +1202,7 @@ buildCounterBackendServiceAggregatedList++; if (buildCounterBackendServiceAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2206(o.items); + checkUnnamed2240(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1208,14 +1229,14 @@ buildCounterBackendServiceCdnPolicy--; } -buildUnnamed2207() { +buildUnnamed2241() { var o = new core.List<api.HealthStatus>(); o.add(buildHealthStatus()); o.add(buildHealthStatus()); return o; } -checkUnnamed2207(core.List<api.HealthStatus> o) { +checkUnnamed2241(core.List<api.HealthStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthStatus(o[0]); checkHealthStatus(o[1]); @@ -1226,7 +1247,7 @@ var o = new api.BackendServiceGroupHealth(); buildCounterBackendServiceGroupHealth++; if (buildCounterBackendServiceGroupHealth < 3) { - o.healthStatus = buildUnnamed2207(); + o.healthStatus = buildUnnamed2241(); o.kind = "foo"; } buildCounterBackendServiceGroupHealth--; @@ -1236,7 +1257,7 @@ checkBackendServiceGroupHealth(api.BackendServiceGroupHealth o) { buildCounterBackendServiceGroupHealth++; if (buildCounterBackendServiceGroupHealth < 3) { - checkUnnamed2207(o.healthStatus); + checkUnnamed2241(o.healthStatus); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBackendServiceGroupHealth--; @@ -1267,14 +1288,14 @@ buildCounterBackendServiceIAP--; } -buildUnnamed2208() { +buildUnnamed2242() { var o = new core.List<api.BackendService>(); o.add(buildBackendService()); o.add(buildBackendService()); return o; } -checkUnnamed2208(core.List<api.BackendService> o) { +checkUnnamed2242(core.List<api.BackendService> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendService(o[0]); checkBackendService(o[1]); @@ -1286,7 +1307,7 @@ buildCounterBackendServiceList++; if (buildCounterBackendServiceList < 3) { o.id = "foo"; - o.items = buildUnnamed2208(); + o.items = buildUnnamed2242(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1299,7 +1320,7 @@ buildCounterBackendServiceList++; if (buildCounterBackendServiceList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2208(o.items); + checkUnnamed2242(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1307,14 +1328,14 @@ buildCounterBackendServiceList--; } -buildUnnamed2209() { +buildUnnamed2243() { var o = new core.List<api.BackendService>(); o.add(buildBackendService()); o.add(buildBackendService()); return o; } -checkUnnamed2209(core.List<api.BackendService> o) { +checkUnnamed2243(core.List<api.BackendService> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendService(o[0]); checkBackendService(o[1]); @@ -1341,14 +1362,14 @@ buildCounterBackendServicesScopedListWarningData--; } -buildUnnamed2210() { +buildUnnamed2244() { var o = new core.List<api.BackendServicesScopedListWarningData>(); o.add(buildBackendServicesScopedListWarningData()); o.add(buildBackendServicesScopedListWarningData()); return o; } -checkUnnamed2210(core.List<api.BackendServicesScopedListWarningData> o) { +checkUnnamed2244(core.List<api.BackendServicesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendServicesScopedListWarningData(o[0]); checkBackendServicesScopedListWarningData(o[1]); @@ -1360,7 +1381,7 @@ buildCounterBackendServicesScopedListWarning++; if (buildCounterBackendServicesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2210(); + o.data = buildUnnamed2244(); o.message = "foo"; } buildCounterBackendServicesScopedListWarning--; @@ -1371,7 +1392,7 @@ buildCounterBackendServicesScopedListWarning++; if (buildCounterBackendServicesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2210(o.data); + checkUnnamed2244(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterBackendServicesScopedListWarning--; @@ -1382,7 +1403,7 @@ var o = new api.BackendServicesScopedList(); buildCounterBackendServicesScopedList++; if (buildCounterBackendServicesScopedList < 3) { - o.backendServices = buildUnnamed2209(); + o.backendServices = buildUnnamed2243(); o.warning = buildBackendServicesScopedListWarning(); } buildCounterBackendServicesScopedList--; @@ -1392,7 +1413,7 @@ checkBackendServicesScopedList(api.BackendServicesScopedList o) { buildCounterBackendServicesScopedList++; if (buildCounterBackendServicesScopedList < 3) { - checkUnnamed2209(o.backendServices); + checkUnnamed2243(o.backendServices); checkBackendServicesScopedListWarning(o.warning); } buildCounterBackendServicesScopedList--; @@ -1419,27 +1440,27 @@ buildCounterCacheInvalidationRule--; } -buildUnnamed2211() { +buildUnnamed2245() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2211(core.List<core.String> o) { +checkUnnamed2245(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2212() { +buildUnnamed2246() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2212(core.List<core.String> o) { +checkUnnamed2246(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1453,8 +1474,8 @@ o.includeHost = true; o.includeProtocol = true; o.includeQueryString = true; - o.queryStringBlacklist = buildUnnamed2211(); - o.queryStringWhitelist = buildUnnamed2212(); + o.queryStringBlacklist = buildUnnamed2245(); + o.queryStringWhitelist = buildUnnamed2246(); } buildCounterCacheKeyPolicy--; return o; @@ -1466,20 +1487,20 @@ unittest.expect(o.includeHost, unittest.isTrue); unittest.expect(o.includeProtocol, unittest.isTrue); unittest.expect(o.includeQueryString, unittest.isTrue); - checkUnnamed2211(o.queryStringBlacklist); - checkUnnamed2212(o.queryStringWhitelist); + checkUnnamed2245(o.queryStringBlacklist); + checkUnnamed2246(o.queryStringWhitelist); } buildCounterCacheKeyPolicy--; } -buildUnnamed2213() { +buildUnnamed2247() { var o = new core.List<api.ResourceCommitment>(); o.add(buildResourceCommitment()); o.add(buildResourceCommitment()); return o; } -checkUnnamed2213(core.List<api.ResourceCommitment> o) { +checkUnnamed2247(core.List<api.ResourceCommitment> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceCommitment(o[0]); checkResourceCommitment(o[1]); @@ -1498,7 +1519,7 @@ o.name = "foo"; o.plan = "foo"; o.region = "foo"; - o.resources = buildUnnamed2213(); + o.resources = buildUnnamed2247(); o.selfLink = "foo"; o.startTimestamp = "foo"; o.status = "foo"; @@ -1519,7 +1540,7 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.plan, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed2213(o.resources); + checkUnnamed2247(o.resources); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.startTimestamp, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); @@ -1528,14 +1549,14 @@ buildCounterCommitment--; } -buildUnnamed2214() { +buildUnnamed2248() { var o = new core.Map<core.String, api.CommitmentsScopedList>(); o["x"] = buildCommitmentsScopedList(); o["y"] = buildCommitmentsScopedList(); return o; } -checkUnnamed2214(core.Map<core.String, api.CommitmentsScopedList> o) { +checkUnnamed2248(core.Map<core.String, api.CommitmentsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkCommitmentsScopedList(o["x"]); checkCommitmentsScopedList(o["y"]); @@ -1547,7 +1568,7 @@ buildCounterCommitmentAggregatedList++; if (buildCounterCommitmentAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2214(); + o.items = buildUnnamed2248(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1560,7 +1581,7 @@ buildCounterCommitmentAggregatedList++; if (buildCounterCommitmentAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2214(o.items); + checkUnnamed2248(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1568,14 +1589,14 @@ buildCounterCommitmentAggregatedList--; } -buildUnnamed2215() { +buildUnnamed2249() { var o = new core.List<api.Commitment>(); o.add(buildCommitment()); o.add(buildCommitment()); return o; } -checkUnnamed2215(core.List<api.Commitment> o) { +checkUnnamed2249(core.List<api.Commitment> o) { unittest.expect(o, unittest.hasLength(2)); checkCommitment(o[0]); checkCommitment(o[1]); @@ -1587,7 +1608,7 @@ buildCounterCommitmentList++; if (buildCounterCommitmentList < 3) { o.id = "foo"; - o.items = buildUnnamed2215(); + o.items = buildUnnamed2249(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1600,7 +1621,7 @@ buildCounterCommitmentList++; if (buildCounterCommitmentList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2215(o.items); + checkUnnamed2249(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1608,14 +1629,14 @@ buildCounterCommitmentList--; } -buildUnnamed2216() { +buildUnnamed2250() { var o = new core.List<api.Commitment>(); o.add(buildCommitment()); o.add(buildCommitment()); return o; } -checkUnnamed2216(core.List<api.Commitment> o) { +checkUnnamed2250(core.List<api.Commitment> o) { unittest.expect(o, unittest.hasLength(2)); checkCommitment(o[0]); checkCommitment(o[1]); @@ -1642,14 +1663,14 @@ buildCounterCommitmentsScopedListWarningData--; } -buildUnnamed2217() { +buildUnnamed2251() { var o = new core.List<api.CommitmentsScopedListWarningData>(); o.add(buildCommitmentsScopedListWarningData()); o.add(buildCommitmentsScopedListWarningData()); return o; } -checkUnnamed2217(core.List<api.CommitmentsScopedListWarningData> o) { +checkUnnamed2251(core.List<api.CommitmentsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkCommitmentsScopedListWarningData(o[0]); checkCommitmentsScopedListWarningData(o[1]); @@ -1661,7 +1682,7 @@ buildCounterCommitmentsScopedListWarning++; if (buildCounterCommitmentsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2217(); + o.data = buildUnnamed2251(); o.message = "foo"; } buildCounterCommitmentsScopedListWarning--; @@ -1672,7 +1693,7 @@ buildCounterCommitmentsScopedListWarning++; if (buildCounterCommitmentsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2217(o.data); + checkUnnamed2251(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterCommitmentsScopedListWarning--; @@ -1683,7 +1704,7 @@ var o = new api.CommitmentsScopedList(); buildCounterCommitmentsScopedList++; if (buildCounterCommitmentsScopedList < 3) { - o.commitments = buildUnnamed2216(); + o.commitments = buildUnnamed2250(); o.warning = buildCommitmentsScopedListWarning(); } buildCounterCommitmentsScopedList--; @@ -1693,7 +1714,7 @@ checkCommitmentsScopedList(api.CommitmentsScopedList o) { buildCounterCommitmentsScopedList++; if (buildCounterCommitmentsScopedList < 3) { - checkUnnamed2216(o.commitments); + checkUnnamed2250(o.commitments); checkCommitmentsScopedListWarning(o.warning); } buildCounterCommitmentsScopedList--; @@ -1787,40 +1808,40 @@ buildCounterDeprecationStatus--; } -buildUnnamed2218() { +buildUnnamed2252() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2218(core.Map<core.String, core.String> o) { +checkUnnamed2252(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed2219() { +buildUnnamed2253() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2219(core.List<core.String> o) { +checkUnnamed2253(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2220() { +buildUnnamed2254() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2220(core.List<core.String> o) { +checkUnnamed2254(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1837,10 +1858,10 @@ o.id = "foo"; o.kind = "foo"; o.labelFingerprint = "foo"; - o.labels = buildUnnamed2218(); + o.labels = buildUnnamed2252(); o.lastAttachTimestamp = "foo"; o.lastDetachTimestamp = "foo"; - o.licenses = buildUnnamed2219(); + o.licenses = buildUnnamed2253(); o.name = "foo"; o.options = "foo"; o.selfLink = "foo"; @@ -1853,7 +1874,7 @@ o.sourceSnapshotId = "foo"; o.status = "foo"; o.type = "foo"; - o.users = buildUnnamed2220(); + o.users = buildUnnamed2254(); o.zone = "foo"; } buildCounterDisk--; @@ -1869,10 +1890,10 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed2218(o.labels); + checkUnnamed2252(o.labels); unittest.expect(o.lastAttachTimestamp, unittest.equals('foo')); unittest.expect(o.lastDetachTimestamp, unittest.equals('foo')); - checkUnnamed2219(o.licenses); + checkUnnamed2253(o.licenses); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.options, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1885,20 +1906,20 @@ unittest.expect(o.sourceSnapshotId, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); - checkUnnamed2220(o.users); + checkUnnamed2254(o.users); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterDisk--; } -buildUnnamed2221() { +buildUnnamed2255() { var o = new core.Map<core.String, api.DisksScopedList>(); o["x"] = buildDisksScopedList(); o["y"] = buildDisksScopedList(); return o; } -checkUnnamed2221(core.Map<core.String, api.DisksScopedList> o) { +checkUnnamed2255(core.Map<core.String, api.DisksScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkDisksScopedList(o["x"]); checkDisksScopedList(o["y"]); @@ -1910,7 +1931,7 @@ buildCounterDiskAggregatedList++; if (buildCounterDiskAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2221(); + o.items = buildUnnamed2255(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1923,7 +1944,7 @@ buildCounterDiskAggregatedList++; if (buildCounterDiskAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2221(o.items); + checkUnnamed2255(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1931,14 +1952,14 @@ buildCounterDiskAggregatedList--; } -buildUnnamed2222() { +buildUnnamed2256() { var o = new core.List<api.Disk>(); o.add(buildDisk()); o.add(buildDisk()); return o; } -checkUnnamed2222(core.List<api.Disk> o) { +checkUnnamed2256(core.List<api.Disk> o) { unittest.expect(o, unittest.hasLength(2)); checkDisk(o[0]); checkDisk(o[1]); @@ -1950,7 +1971,7 @@ buildCounterDiskList++; if (buildCounterDiskList < 3) { o.id = "foo"; - o.items = buildUnnamed2222(); + o.items = buildUnnamed2256(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1963,7 +1984,7 @@ buildCounterDiskList++; if (buildCounterDiskList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2222(o.items); + checkUnnamed2256(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2029,14 +2050,14 @@ buildCounterDiskType--; } -buildUnnamed2223() { +buildUnnamed2257() { var o = new core.Map<core.String, api.DiskTypesScopedList>(); o["x"] = buildDiskTypesScopedList(); o["y"] = buildDiskTypesScopedList(); return o; } -checkUnnamed2223(core.Map<core.String, api.DiskTypesScopedList> o) { +checkUnnamed2257(core.Map<core.String, api.DiskTypesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypesScopedList(o["x"]); checkDiskTypesScopedList(o["y"]); @@ -2048,7 +2069,7 @@ buildCounterDiskTypeAggregatedList++; if (buildCounterDiskTypeAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2223(); + o.items = buildUnnamed2257(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2061,7 +2082,7 @@ buildCounterDiskTypeAggregatedList++; if (buildCounterDiskTypeAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2223(o.items); + checkUnnamed2257(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2069,14 +2090,14 @@ buildCounterDiskTypeAggregatedList--; } -buildUnnamed2224() { +buildUnnamed2258() { var o = new core.List<api.DiskType>(); o.add(buildDiskType()); o.add(buildDiskType()); return o; } -checkUnnamed2224(core.List<api.DiskType> o) { +checkUnnamed2258(core.List<api.DiskType> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskType(o[0]); checkDiskType(o[1]); @@ -2088,7 +2109,7 @@ buildCounterDiskTypeList++; if (buildCounterDiskTypeList < 3) { o.id = "foo"; - o.items = buildUnnamed2224(); + o.items = buildUnnamed2258(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2101,7 +2122,7 @@ buildCounterDiskTypeList++; if (buildCounterDiskTypeList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2224(o.items); + checkUnnamed2258(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2109,14 +2130,14 @@ buildCounterDiskTypeList--; } -buildUnnamed2225() { +buildUnnamed2259() { var o = new core.List<api.DiskType>(); o.add(buildDiskType()); o.add(buildDiskType()); return o; } -checkUnnamed2225(core.List<api.DiskType> o) { +checkUnnamed2259(core.List<api.DiskType> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskType(o[0]); checkDiskType(o[1]); @@ -2143,14 +2164,14 @@ buildCounterDiskTypesScopedListWarningData--; } -buildUnnamed2226() { +buildUnnamed2260() { var o = new core.List<api.DiskTypesScopedListWarningData>(); o.add(buildDiskTypesScopedListWarningData()); o.add(buildDiskTypesScopedListWarningData()); return o; } -checkUnnamed2226(core.List<api.DiskTypesScopedListWarningData> o) { +checkUnnamed2260(core.List<api.DiskTypesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypesScopedListWarningData(o[0]); checkDiskTypesScopedListWarningData(o[1]); @@ -2162,7 +2183,7 @@ buildCounterDiskTypesScopedListWarning++; if (buildCounterDiskTypesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2226(); + o.data = buildUnnamed2260(); o.message = "foo"; } buildCounterDiskTypesScopedListWarning--; @@ -2173,7 +2194,7 @@ buildCounterDiskTypesScopedListWarning++; if (buildCounterDiskTypesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2226(o.data); + checkUnnamed2260(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDiskTypesScopedListWarning--; @@ -2184,7 +2205,7 @@ var o = new api.DiskTypesScopedList(); buildCounterDiskTypesScopedList++; if (buildCounterDiskTypesScopedList < 3) { - o.diskTypes = buildUnnamed2225(); + o.diskTypes = buildUnnamed2259(); o.warning = buildDiskTypesScopedListWarning(); } buildCounterDiskTypesScopedList--; @@ -2194,7 +2215,7 @@ checkDiskTypesScopedList(api.DiskTypesScopedList o) { buildCounterDiskTypesScopedList++; if (buildCounterDiskTypesScopedList < 3) { - checkUnnamed2225(o.diskTypes); + checkUnnamed2259(o.diskTypes); checkDiskTypesScopedListWarning(o.warning); } buildCounterDiskTypesScopedList--; @@ -2219,14 +2240,14 @@ buildCounterDisksResizeRequest--; } -buildUnnamed2227() { +buildUnnamed2261() { var o = new core.List<api.Disk>(); o.add(buildDisk()); o.add(buildDisk()); return o; } -checkUnnamed2227(core.List<api.Disk> o) { +checkUnnamed2261(core.List<api.Disk> o) { unittest.expect(o, unittest.hasLength(2)); checkDisk(o[0]); checkDisk(o[1]); @@ -2253,14 +2274,14 @@ buildCounterDisksScopedListWarningData--; } -buildUnnamed2228() { +buildUnnamed2262() { var o = new core.List<api.DisksScopedListWarningData>(); o.add(buildDisksScopedListWarningData()); o.add(buildDisksScopedListWarningData()); return o; } -checkUnnamed2228(core.List<api.DisksScopedListWarningData> o) { +checkUnnamed2262(core.List<api.DisksScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDisksScopedListWarningData(o[0]); checkDisksScopedListWarningData(o[1]); @@ -2272,7 +2293,7 @@ buildCounterDisksScopedListWarning++; if (buildCounterDisksScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2228(); + o.data = buildUnnamed2262(); o.message = "foo"; } buildCounterDisksScopedListWarning--; @@ -2283,7 +2304,7 @@ buildCounterDisksScopedListWarning++; if (buildCounterDisksScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2228(o.data); + checkUnnamed2262(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDisksScopedListWarning--; @@ -2294,7 +2315,7 @@ var o = new api.DisksScopedList(); buildCounterDisksScopedList++; if (buildCounterDisksScopedList < 3) { - o.disks = buildUnnamed2227(); + o.disks = buildUnnamed2261(); o.warning = buildDisksScopedListWarning(); } buildCounterDisksScopedList--; @@ -2304,20 +2325,20 @@ checkDisksScopedList(api.DisksScopedList o) { buildCounterDisksScopedList++; if (buildCounterDisksScopedList < 3) { - checkUnnamed2227(o.disks); + checkUnnamed2261(o.disks); checkDisksScopedListWarning(o.warning); } buildCounterDisksScopedList--; } -buildUnnamed2229() { +buildUnnamed2263() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2229(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')); @@ -2329,7 +2350,7 @@ buildCounterFirewallAllowed++; if (buildCounterFirewallAllowed < 3) { o.IPProtocol = "foo"; - o.ports = buildUnnamed2229(); + o.ports = buildUnnamed2263(); } buildCounterFirewallAllowed--; return o; @@ -2339,58 +2360,58 @@ buildCounterFirewallAllowed++; if (buildCounterFirewallAllowed < 3) { unittest.expect(o.IPProtocol, unittest.equals('foo')); - checkUnnamed2229(o.ports); + checkUnnamed2263(o.ports); } buildCounterFirewallAllowed--; } -buildUnnamed2230() { +buildUnnamed2264() { var o = new core.List<api.FirewallAllowed>(); o.add(buildFirewallAllowed()); o.add(buildFirewallAllowed()); return o; } -checkUnnamed2230(core.List<api.FirewallAllowed> o) { +checkUnnamed2264(core.List<api.FirewallAllowed> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallAllowed(o[0]); checkFirewallAllowed(o[1]); } -buildUnnamed2231() { +buildUnnamed2265() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2231(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')); } -buildUnnamed2232() { +buildUnnamed2266() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2232(core.List<core.String> o) { +checkUnnamed2266(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2233() { +buildUnnamed2267() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2233(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')); @@ -2401,7 +2422,7 @@ var o = new api.Firewall(); buildCounterFirewall++; if (buildCounterFirewall < 3) { - o.allowed = buildUnnamed2230(); + o.allowed = buildUnnamed2264(); o.creationTimestamp = "foo"; o.description = "foo"; o.id = "foo"; @@ -2409,9 +2430,9 @@ o.name = "foo"; o.network = "foo"; o.selfLink = "foo"; - o.sourceRanges = buildUnnamed2231(); - o.sourceTags = buildUnnamed2232(); - o.targetTags = buildUnnamed2233(); + o.sourceRanges = buildUnnamed2265(); + o.sourceTags = buildUnnamed2266(); + o.targetTags = buildUnnamed2267(); } buildCounterFirewall--; return o; @@ -2420,7 +2441,7 @@ checkFirewall(api.Firewall o) { buildCounterFirewall++; if (buildCounterFirewall < 3) { - checkUnnamed2230(o.allowed); + checkUnnamed2264(o.allowed); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -2428,21 +2449,21 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2231(o.sourceRanges); - checkUnnamed2232(o.sourceTags); - checkUnnamed2233(o.targetTags); + checkUnnamed2265(o.sourceRanges); + checkUnnamed2266(o.sourceTags); + checkUnnamed2267(o.targetTags); } buildCounterFirewall--; } -buildUnnamed2234() { +buildUnnamed2268() { var o = new core.List<api.Firewall>(); o.add(buildFirewall()); o.add(buildFirewall()); return o; } -checkUnnamed2234(core.List<api.Firewall> o) { +checkUnnamed2268(core.List<api.Firewall> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewall(o[0]); checkFirewall(o[1]); @@ -2454,7 +2475,7 @@ buildCounterFirewallList++; if (buildCounterFirewallList < 3) { o.id = "foo"; - o.items = buildUnnamed2234(); + o.items = buildUnnamed2268(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2467,7 +2488,7 @@ buildCounterFirewallList++; if (buildCounterFirewallList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2234(o.items); + checkUnnamed2268(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2475,14 +2496,14 @@ buildCounterFirewallList--; } -buildUnnamed2235() { +buildUnnamed2269() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2235(core.List<core.String> o) { +checkUnnamed2269(core.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,7 +2526,7 @@ o.name = "foo"; o.network = "foo"; o.portRange = "foo"; - o.ports = buildUnnamed2235(); + o.ports = buildUnnamed2269(); o.region = "foo"; o.selfLink = "foo"; o.subnetwork = "foo"; @@ -2530,7 +2551,7 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.portRange, unittest.equals('foo')); - checkUnnamed2235(o.ports); + checkUnnamed2269(o.ports); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.subnetwork, unittest.equals('foo')); @@ -2539,14 +2560,14 @@ buildCounterForwardingRule--; } -buildUnnamed2236() { +buildUnnamed2270() { var o = new core.Map<core.String, api.ForwardingRulesScopedList>(); o["x"] = buildForwardingRulesScopedList(); o["y"] = buildForwardingRulesScopedList(); return o; } -checkUnnamed2236(core.Map<core.String, api.ForwardingRulesScopedList> o) { +checkUnnamed2270(core.Map<core.String, api.ForwardingRulesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRulesScopedList(o["x"]); checkForwardingRulesScopedList(o["y"]); @@ -2558,7 +2579,7 @@ buildCounterForwardingRuleAggregatedList++; if (buildCounterForwardingRuleAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2236(); + o.items = buildUnnamed2270(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2571,7 +2592,7 @@ buildCounterForwardingRuleAggregatedList++; if (buildCounterForwardingRuleAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2236(o.items); + checkUnnamed2270(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2579,14 +2600,14 @@ buildCounterForwardingRuleAggregatedList--; } -buildUnnamed2237() { +buildUnnamed2271() { var o = new core.List<api.ForwardingRule>(); o.add(buildForwardingRule()); o.add(buildForwardingRule()); return o; } -checkUnnamed2237(core.List<api.ForwardingRule> o) { +checkUnnamed2271(core.List<api.ForwardingRule> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRule(o[0]); checkForwardingRule(o[1]); @@ -2598,7 +2619,7 @@ buildCounterForwardingRuleList++; if (buildCounterForwardingRuleList < 3) { o.id = "foo"; - o.items = buildUnnamed2237(); + o.items = buildUnnamed2271(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2611,7 +2632,7 @@ buildCounterForwardingRuleList++; if (buildCounterForwardingRuleList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2237(o.items); + checkUnnamed2271(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2619,14 +2640,14 @@ buildCounterForwardingRuleList--; } -buildUnnamed2238() { +buildUnnamed2272() { var o = new core.List<api.ForwardingRule>(); o.add(buildForwardingRule()); o.add(buildForwardingRule()); return o; } -checkUnnamed2238(core.List<api.ForwardingRule> o) { +checkUnnamed2272(core.List<api.ForwardingRule> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRule(o[0]); checkForwardingRule(o[1]); @@ -2653,14 +2674,14 @@ buildCounterForwardingRulesScopedListWarningData--; } -buildUnnamed2239() { +buildUnnamed2273() { var o = new core.List<api.ForwardingRulesScopedListWarningData>(); o.add(buildForwardingRulesScopedListWarningData()); o.add(buildForwardingRulesScopedListWarningData()); return o; } -checkUnnamed2239(core.List<api.ForwardingRulesScopedListWarningData> o) { +checkUnnamed2273(core.List<api.ForwardingRulesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRulesScopedListWarningData(o[0]); checkForwardingRulesScopedListWarningData(o[1]); @@ -2672,7 +2693,7 @@ buildCounterForwardingRulesScopedListWarning++; if (buildCounterForwardingRulesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2239(); + o.data = buildUnnamed2273(); o.message = "foo"; } buildCounterForwardingRulesScopedListWarning--; @@ -2683,7 +2704,7 @@ buildCounterForwardingRulesScopedListWarning++; if (buildCounterForwardingRulesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2239(o.data); + checkUnnamed2273(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterForwardingRulesScopedListWarning--; @@ -2694,7 +2715,7 @@ var o = new api.ForwardingRulesScopedList(); buildCounterForwardingRulesScopedList++; if (buildCounterForwardingRulesScopedList < 3) { - o.forwardingRules = buildUnnamed2238(); + o.forwardingRules = buildUnnamed2272(); o.warning = buildForwardingRulesScopedListWarning(); } buildCounterForwardingRulesScopedList--; @@ -2704,20 +2725,20 @@ checkForwardingRulesScopedList(api.ForwardingRulesScopedList o) { buildCounterForwardingRulesScopedList++; if (buildCounterForwardingRulesScopedList < 3) { - checkUnnamed2238(o.forwardingRules); + checkUnnamed2272(o.forwardingRules); checkForwardingRulesScopedListWarning(o.warning); } buildCounterForwardingRulesScopedList--; } -buildUnnamed2240() { +buildUnnamed2274() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2240(core.Map<core.String, core.String> o) { +checkUnnamed2274(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -2729,7 +2750,7 @@ buildCounterGlobalSetLabelsRequest++; if (buildCounterGlobalSetLabelsRequest < 3) { o.labelFingerprint = "foo"; - o.labels = buildUnnamed2240(); + o.labels = buildUnnamed2274(); } buildCounterGlobalSetLabelsRequest--; return o; @@ -2739,7 +2760,7 @@ buildCounterGlobalSetLabelsRequest++; if (buildCounterGlobalSetLabelsRequest < 3) { unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed2240(o.labels); + checkUnnamed2274(o.labels); } buildCounterGlobalSetLabelsRequest--; } @@ -2864,14 +2885,14 @@ buildCounterHealthCheck--; } -buildUnnamed2241() { +buildUnnamed2275() { var o = new core.List<api.HealthCheck>(); o.add(buildHealthCheck()); o.add(buildHealthCheck()); return o; } -checkUnnamed2241(core.List<api.HealthCheck> o) { +checkUnnamed2275(core.List<api.HealthCheck> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheck(o[0]); checkHealthCheck(o[1]); @@ -2883,7 +2904,7 @@ buildCounterHealthCheckList++; if (buildCounterHealthCheckList < 3) { o.id = "foo"; - o.items = buildUnnamed2241(); + o.items = buildUnnamed2275(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2896,7 +2917,7 @@ buildCounterHealthCheckList++; if (buildCounterHealthCheckList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2241(o.items); + checkUnnamed2275(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2948,14 +2969,14 @@ buildCounterHealthStatus--; } -buildUnnamed2242() { +buildUnnamed2276() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2242(core.List<core.String> o) { +checkUnnamed2276(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2967,7 +2988,7 @@ buildCounterHostRule++; if (buildCounterHostRule < 3) { o.description = "foo"; - o.hosts = buildUnnamed2242(); + o.hosts = buildUnnamed2276(); o.pathMatcher = "foo"; } buildCounterHostRule--; @@ -2978,7 +2999,7 @@ buildCounterHostRule++; if (buildCounterHostRule < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2242(o.hosts); + checkUnnamed2276(o.hosts); unittest.expect(o.pathMatcher, unittest.equals('foo')); } buildCounterHostRule--; @@ -3027,14 +3048,14 @@ buildCounterHttpHealthCheck--; } -buildUnnamed2243() { +buildUnnamed2277() { var o = new core.List<api.HttpHealthCheck>(); o.add(buildHttpHealthCheck()); o.add(buildHttpHealthCheck()); return o; } -checkUnnamed2243(core.List<api.HttpHealthCheck> o) { +checkUnnamed2277(core.List<api.HttpHealthCheck> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpHealthCheck(o[0]); checkHttpHealthCheck(o[1]); @@ -3046,7 +3067,7 @@ buildCounterHttpHealthCheckList++; if (buildCounterHttpHealthCheckList < 3) { o.id = "foo"; - o.items = buildUnnamed2243(); + o.items = buildUnnamed2277(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3059,7 +3080,7 @@ buildCounterHttpHealthCheckList++; if (buildCounterHttpHealthCheckList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2243(o.items); + checkUnnamed2277(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3110,14 +3131,14 @@ buildCounterHttpsHealthCheck--; } -buildUnnamed2244() { +buildUnnamed2278() { var o = new core.List<api.HttpsHealthCheck>(); o.add(buildHttpsHealthCheck()); o.add(buildHttpsHealthCheck()); return o; } -checkUnnamed2244(core.List<api.HttpsHealthCheck> o) { +checkUnnamed2278(core.List<api.HttpsHealthCheck> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpsHealthCheck(o[0]); checkHttpsHealthCheck(o[1]); @@ -3129,7 +3150,7 @@ buildCounterHttpsHealthCheckList++; if (buildCounterHttpsHealthCheckList < 3) { o.id = "foo"; - o.items = buildUnnamed2244(); + o.items = buildUnnamed2278(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3142,7 +3163,7 @@ buildCounterHttpsHealthCheckList++; if (buildCounterHttpsHealthCheckList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2244(o.items); + checkUnnamed2278(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3150,40 +3171,40 @@ buildCounterHttpsHealthCheckList--; } -buildUnnamed2245() { +buildUnnamed2279() { var o = new core.List<api.GuestOsFeature>(); o.add(buildGuestOsFeature()); o.add(buildGuestOsFeature()); return o; } -checkUnnamed2245(core.List<api.GuestOsFeature> o) { +checkUnnamed2279(core.List<api.GuestOsFeature> o) { unittest.expect(o, unittest.hasLength(2)); checkGuestOsFeature(o[0]); checkGuestOsFeature(o[1]); } -buildUnnamed2246() { +buildUnnamed2280() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2246(core.Map<core.String, core.String> o) { +checkUnnamed2280(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed2247() { +buildUnnamed2281() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2247(core.List<core.String> o) { +checkUnnamed2281(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3223,13 +3244,13 @@ o.description = "foo"; o.diskSizeGb = "foo"; o.family = "foo"; - o.guestOsFeatures = buildUnnamed2245(); + o.guestOsFeatures = buildUnnamed2279(); o.id = "foo"; o.imageEncryptionKey = buildCustomerEncryptionKey(); o.kind = "foo"; o.labelFingerprint = "foo"; - o.labels = buildUnnamed2246(); - o.licenses = buildUnnamed2247(); + o.labels = buildUnnamed2280(); + o.licenses = buildUnnamed2281(); o.name = "foo"; o.rawDisk = buildImageRawDisk(); o.selfLink = "foo"; @@ -3252,13 +3273,13 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.diskSizeGb, unittest.equals('foo')); unittest.expect(o.family, unittest.equals('foo')); - checkUnnamed2245(o.guestOsFeatures); + checkUnnamed2279(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')); - checkUnnamed2246(o.labels); - checkUnnamed2247(o.licenses); + checkUnnamed2280(o.labels); + checkUnnamed2281(o.licenses); unittest.expect(o.name, unittest.equals('foo')); checkImageRawDisk(o.rawDisk); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3271,14 +3292,14 @@ buildCounterImage--; } -buildUnnamed2248() { +buildUnnamed2282() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed2248(core.List<api.Image> o) { +checkUnnamed2282(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -3290,7 +3311,7 @@ buildCounterImageList++; if (buildCounterImageList < 3) { o.id = "foo"; - o.items = buildUnnamed2248(); + o.items = buildUnnamed2282(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3303,7 +3324,7 @@ buildCounterImageList++; if (buildCounterImageList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2248(o.items); + checkUnnamed2282(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3311,66 +3332,66 @@ buildCounterImageList--; } -buildUnnamed2249() { +buildUnnamed2283() { var o = new core.List<api.AttachedDisk>(); o.add(buildAttachedDisk()); o.add(buildAttachedDisk()); return o; } -checkUnnamed2249(core.List<api.AttachedDisk> o) { +checkUnnamed2283(core.List<api.AttachedDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachedDisk(o[0]); checkAttachedDisk(o[1]); } -buildUnnamed2250() { +buildUnnamed2284() { var o = new core.List<api.AcceleratorConfig>(); o.add(buildAcceleratorConfig()); o.add(buildAcceleratorConfig()); return o; } -checkUnnamed2250(core.List<api.AcceleratorConfig> o) { +checkUnnamed2284(core.List<api.AcceleratorConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfig(o[0]); checkAcceleratorConfig(o[1]); } -buildUnnamed2251() { +buildUnnamed2285() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2251(core.Map<core.String, core.String> o) { +checkUnnamed2285(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed2252() { +buildUnnamed2286() { var o = new core.List<api.NetworkInterface>(); o.add(buildNetworkInterface()); o.add(buildNetworkInterface()); return o; } -checkUnnamed2252(core.List<api.NetworkInterface> o) { +checkUnnamed2286(core.List<api.NetworkInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -buildUnnamed2253() { +buildUnnamed2287() { var o = new core.List<api.ServiceAccount>(); o.add(buildServiceAccount()); o.add(buildServiceAccount()); return o; } -checkUnnamed2253(core.List<api.ServiceAccount> o) { +checkUnnamed2287(core.List<api.ServiceAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -3385,19 +3406,19 @@ o.cpuPlatform = "foo"; o.creationTimestamp = "foo"; o.description = "foo"; - o.disks = buildUnnamed2249(); - o.guestAccelerators = buildUnnamed2250(); + o.disks = buildUnnamed2283(); + o.guestAccelerators = buildUnnamed2284(); o.id = "foo"; o.kind = "foo"; o.labelFingerprint = "foo"; - o.labels = buildUnnamed2251(); + o.labels = buildUnnamed2285(); o.machineType = "foo"; o.metadata = buildMetadata(); o.name = "foo"; - o.networkInterfaces = buildUnnamed2252(); + o.networkInterfaces = buildUnnamed2286(); o.scheduling = buildScheduling(); o.selfLink = "foo"; - o.serviceAccounts = buildUnnamed2253(); + o.serviceAccounts = buildUnnamed2287(); o.startRestricted = true; o.status = "foo"; o.statusMessage = "foo"; @@ -3415,19 +3436,19 @@ unittest.expect(o.cpuPlatform, unittest.equals('foo')); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2249(o.disks); - checkUnnamed2250(o.guestAccelerators); + checkUnnamed2283(o.disks); + checkUnnamed2284(o.guestAccelerators); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed2251(o.labels); + checkUnnamed2285(o.labels); unittest.expect(o.machineType, unittest.equals('foo')); checkMetadata(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2252(o.networkInterfaces); + checkUnnamed2286(o.networkInterfaces); checkScheduling(o.scheduling); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2253(o.serviceAccounts); + checkUnnamed2287(o.serviceAccounts); unittest.expect(o.startRestricted, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.statusMessage, unittest.equals('foo')); @@ -3437,14 +3458,14 @@ buildCounterInstance--; } -buildUnnamed2254() { +buildUnnamed2288() { var o = new core.Map<core.String, api.InstancesScopedList>(); o["x"] = buildInstancesScopedList(); o["y"] = buildInstancesScopedList(); return o; } -checkUnnamed2254(core.Map<core.String, api.InstancesScopedList> o) { +checkUnnamed2288(core.Map<core.String, api.InstancesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInstancesScopedList(o["x"]); checkInstancesScopedList(o["y"]); @@ -3456,7 +3477,7 @@ buildCounterInstanceAggregatedList++; if (buildCounterInstanceAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2254(); + o.items = buildUnnamed2288(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3469,7 +3490,7 @@ buildCounterInstanceAggregatedList++; if (buildCounterInstanceAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2254(o.items); + checkUnnamed2288(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3477,14 +3498,14 @@ buildCounterInstanceAggregatedList--; } -buildUnnamed2255() { +buildUnnamed2289() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2255(core.List<api.NamedPort> o) { +checkUnnamed2289(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -3501,7 +3522,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.namedPorts = buildUnnamed2255(); + o.namedPorts = buildUnnamed2289(); o.network = "foo"; o.region = "foo"; o.selfLink = "foo"; @@ -3522,7 +3543,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2255(o.namedPorts); + checkUnnamed2289(o.namedPorts); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3533,14 +3554,14 @@ buildCounterInstanceGroup--; } -buildUnnamed2256() { +buildUnnamed2290() { var o = new core.Map<core.String, api.InstanceGroupsScopedList>(); o["x"] = buildInstanceGroupsScopedList(); o["y"] = buildInstanceGroupsScopedList(); return o; } -checkUnnamed2256(core.Map<core.String, api.InstanceGroupsScopedList> o) { +checkUnnamed2290(core.Map<core.String, api.InstanceGroupsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupsScopedList(o["x"]); checkInstanceGroupsScopedList(o["y"]); @@ -3552,7 +3573,7 @@ buildCounterInstanceGroupAggregatedList++; if (buildCounterInstanceGroupAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2256(); + o.items = buildUnnamed2290(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3565,7 +3586,7 @@ buildCounterInstanceGroupAggregatedList++; if (buildCounterInstanceGroupAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2256(o.items); + checkUnnamed2290(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3573,14 +3594,14 @@ buildCounterInstanceGroupAggregatedList--; } -buildUnnamed2257() { +buildUnnamed2291() { var o = new core.List<api.InstanceGroup>(); o.add(buildInstanceGroup()); o.add(buildInstanceGroup()); return o; } -checkUnnamed2257(core.List<api.InstanceGroup> o) { +checkUnnamed2291(core.List<api.InstanceGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroup(o[0]); checkInstanceGroup(o[1]); @@ -3592,7 +3613,7 @@ buildCounterInstanceGroupList++; if (buildCounterInstanceGroupList < 3) { o.id = "foo"; - o.items = buildUnnamed2257(); + o.items = buildUnnamed2291(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3605,7 +3626,7 @@ buildCounterInstanceGroupList++; if (buildCounterInstanceGroupList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2257(o.items); + checkUnnamed2291(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3613,27 +3634,27 @@ buildCounterInstanceGroupList--; } -buildUnnamed2258() { +buildUnnamed2292() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2258(core.List<api.NamedPort> o) { +checkUnnamed2292(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); } -buildUnnamed2259() { +buildUnnamed2293() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2259(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')); @@ -3654,10 +3675,10 @@ o.instanceTemplate = "foo"; o.kind = "foo"; o.name = "foo"; - o.namedPorts = buildUnnamed2258(); + o.namedPorts = buildUnnamed2292(); o.region = "foo"; o.selfLink = "foo"; - o.targetPools = buildUnnamed2259(); + o.targetPools = buildUnnamed2293(); o.targetSize = 42; o.zone = "foo"; } @@ -3678,10 +3699,10 @@ unittest.expect(o.instanceTemplate, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2258(o.namedPorts); + checkUnnamed2292(o.namedPorts); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2259(o.targetPools); + checkUnnamed2293(o.targetPools); unittest.expect(o.targetSize, unittest.equals(42)); unittest.expect(o.zone, unittest.equals('foo')); } @@ -3721,14 +3742,14 @@ buildCounterInstanceGroupManagerActionsSummary--; } -buildUnnamed2260() { +buildUnnamed2294() { var o = new core.Map<core.String, api.InstanceGroupManagersScopedList>(); o["x"] = buildInstanceGroupManagersScopedList(); o["y"] = buildInstanceGroupManagersScopedList(); return o; } -checkUnnamed2260(core.Map<core.String, api.InstanceGroupManagersScopedList> o) { +checkUnnamed2294(core.Map<core.String, api.InstanceGroupManagersScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagersScopedList(o["x"]); checkInstanceGroupManagersScopedList(o["y"]); @@ -3740,7 +3761,7 @@ buildCounterInstanceGroupManagerAggregatedList++; if (buildCounterInstanceGroupManagerAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2260(); + o.items = buildUnnamed2294(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3753,7 +3774,7 @@ buildCounterInstanceGroupManagerAggregatedList++; if (buildCounterInstanceGroupManagerAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2260(o.items); + checkUnnamed2294(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3761,14 +3782,14 @@ buildCounterInstanceGroupManagerAggregatedList--; } -buildUnnamed2261() { +buildUnnamed2295() { var o = new core.List<api.InstanceGroupManager>(); o.add(buildInstanceGroupManager()); o.add(buildInstanceGroupManager()); return o; } -checkUnnamed2261(core.List<api.InstanceGroupManager> o) { +checkUnnamed2295(core.List<api.InstanceGroupManager> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -3780,7 +3801,7 @@ buildCounterInstanceGroupManagerList++; if (buildCounterInstanceGroupManagerList < 3) { o.id = "foo"; - o.items = buildUnnamed2261(); + o.items = buildUnnamed2295(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3793,7 +3814,7 @@ buildCounterInstanceGroupManagerList++; if (buildCounterInstanceGroupManagerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2261(o.items); + checkUnnamed2295(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3801,14 +3822,14 @@ buildCounterInstanceGroupManagerList--; } -buildUnnamed2262() { +buildUnnamed2296() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2262(core.List<core.String> o) { +checkUnnamed2296(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3819,7 +3840,7 @@ var o = new api.InstanceGroupManagersAbandonInstancesRequest(); buildCounterInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - o.instances = buildUnnamed2262(); + o.instances = buildUnnamed2296(); } buildCounterInstanceGroupManagersAbandonInstancesRequest--; return o; @@ -3828,19 +3849,19 @@ checkInstanceGroupManagersAbandonInstancesRequest(api.InstanceGroupManagersAbandonInstancesRequest o) { buildCounterInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - checkUnnamed2262(o.instances); + checkUnnamed2296(o.instances); } buildCounterInstanceGroupManagersAbandonInstancesRequest--; } -buildUnnamed2263() { +buildUnnamed2297() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2263(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')); @@ -3851,7 +3872,7 @@ var o = new api.InstanceGroupManagersDeleteInstancesRequest(); buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - o.instances = buildUnnamed2263(); + o.instances = buildUnnamed2297(); } buildCounterInstanceGroupManagersDeleteInstancesRequest--; return o; @@ -3860,19 +3881,19 @@ checkInstanceGroupManagersDeleteInstancesRequest(api.InstanceGroupManagersDeleteInstancesRequest o) { buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - checkUnnamed2263(o.instances); + checkUnnamed2297(o.instances); } buildCounterInstanceGroupManagersDeleteInstancesRequest--; } -buildUnnamed2264() { +buildUnnamed2298() { var o = new core.List<api.ManagedInstance>(); o.add(buildManagedInstance()); o.add(buildManagedInstance()); return o; } -checkUnnamed2264(core.List<api.ManagedInstance> o) { +checkUnnamed2298(core.List<api.ManagedInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstance(o[0]); checkManagedInstance(o[1]); @@ -3883,7 +3904,7 @@ var o = new api.InstanceGroupManagersListManagedInstancesResponse(); buildCounterInstanceGroupManagersListManagedInstancesResponse++; if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { - o.managedInstances = buildUnnamed2264(); + o.managedInstances = buildUnnamed2298(); } buildCounterInstanceGroupManagersListManagedInstancesResponse--; return o; @@ -3892,19 +3913,19 @@ checkInstanceGroupManagersListManagedInstancesResponse(api.InstanceGroupManagersListManagedInstancesResponse o) { buildCounterInstanceGroupManagersListManagedInstancesResponse++; if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { - checkUnnamed2264(o.managedInstances); + checkUnnamed2298(o.managedInstances); } buildCounterInstanceGroupManagersListManagedInstancesResponse--; } -buildUnnamed2265() { +buildUnnamed2299() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2265(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')); @@ -3915,7 +3936,7 @@ var o = new api.InstanceGroupManagersRecreateInstancesRequest(); buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - o.instances = buildUnnamed2265(); + o.instances = buildUnnamed2299(); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; return o; @@ -3924,19 +3945,19 @@ checkInstanceGroupManagersRecreateInstancesRequest(api.InstanceGroupManagersRecreateInstancesRequest o) { buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - checkUnnamed2265(o.instances); + checkUnnamed2299(o.instances); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; } -buildUnnamed2266() { +buildUnnamed2300() { var o = new core.List<api.InstanceGroupManager>(); o.add(buildInstanceGroupManager()); o.add(buildInstanceGroupManager()); return o; } -checkUnnamed2266(core.List<api.InstanceGroupManager> o) { +checkUnnamed2300(core.List<api.InstanceGroupManager> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -3963,14 +3984,14 @@ buildCounterInstanceGroupManagersScopedListWarningData--; } -buildUnnamed2267() { +buildUnnamed2301() { var o = new core.List<api.InstanceGroupManagersScopedListWarningData>(); o.add(buildInstanceGroupManagersScopedListWarningData()); o.add(buildInstanceGroupManagersScopedListWarningData()); return o; } -checkUnnamed2267(core.List<api.InstanceGroupManagersScopedListWarningData> o) { +checkUnnamed2301(core.List<api.InstanceGroupManagersScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagersScopedListWarningData(o[0]); checkInstanceGroupManagersScopedListWarningData(o[1]); @@ -3982,7 +4003,7 @@ buildCounterInstanceGroupManagersScopedListWarning++; if (buildCounterInstanceGroupManagersScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2267(); + o.data = buildUnnamed2301(); o.message = "foo"; } buildCounterInstanceGroupManagersScopedListWarning--; @@ -3993,7 +4014,7 @@ buildCounterInstanceGroupManagersScopedListWarning++; if (buildCounterInstanceGroupManagersScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2267(o.data); + checkUnnamed2301(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupManagersScopedListWarning--; @@ -4004,7 +4025,7 @@ var o = new api.InstanceGroupManagersScopedList(); buildCounterInstanceGroupManagersScopedList++; if (buildCounterInstanceGroupManagersScopedList < 3) { - o.instanceGroupManagers = buildUnnamed2266(); + o.instanceGroupManagers = buildUnnamed2300(); o.warning = buildInstanceGroupManagersScopedListWarning(); } buildCounterInstanceGroupManagersScopedList--; @@ -4014,7 +4035,7 @@ checkInstanceGroupManagersScopedList(api.InstanceGroupManagersScopedList o) { buildCounterInstanceGroupManagersScopedList++; if (buildCounterInstanceGroupManagersScopedList < 3) { - checkUnnamed2266(o.instanceGroupManagers); + checkUnnamed2300(o.instanceGroupManagers); checkInstanceGroupManagersScopedListWarning(o.warning); } buildCounterInstanceGroupManagersScopedList--; @@ -4039,14 +4060,14 @@ buildCounterInstanceGroupManagersSetInstanceTemplateRequest--; } -buildUnnamed2268() { +buildUnnamed2302() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2268(core.List<core.String> o) { +checkUnnamed2302(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4058,7 +4079,7 @@ buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { o.fingerprint = "foo"; - o.targetPools = buildUnnamed2268(); + o.targetPools = buildUnnamed2302(); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; return o; @@ -4068,19 +4089,19 @@ buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2268(o.targetPools); + checkUnnamed2302(o.targetPools); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; } -buildUnnamed2269() { +buildUnnamed2303() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2269(core.List<api.InstanceReference> o) { +checkUnnamed2303(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -4091,7 +4112,7 @@ var o = new api.InstanceGroupsAddInstancesRequest(); buildCounterInstanceGroupsAddInstancesRequest++; if (buildCounterInstanceGroupsAddInstancesRequest < 3) { - o.instances = buildUnnamed2269(); + o.instances = buildUnnamed2303(); } buildCounterInstanceGroupsAddInstancesRequest--; return o; @@ -4100,19 +4121,19 @@ checkInstanceGroupsAddInstancesRequest(api.InstanceGroupsAddInstancesRequest o) { buildCounterInstanceGroupsAddInstancesRequest++; if (buildCounterInstanceGroupsAddInstancesRequest < 3) { - checkUnnamed2269(o.instances); + checkUnnamed2303(o.instances); } buildCounterInstanceGroupsAddInstancesRequest--; } -buildUnnamed2270() { +buildUnnamed2304() { var o = new core.List<api.InstanceWithNamedPorts>(); o.add(buildInstanceWithNamedPorts()); o.add(buildInstanceWithNamedPorts()); return o; } -checkUnnamed2270(core.List<api.InstanceWithNamedPorts> o) { +checkUnnamed2304(core.List<api.InstanceWithNamedPorts> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceWithNamedPorts(o[0]); checkInstanceWithNamedPorts(o[1]); @@ -4124,7 +4145,7 @@ buildCounterInstanceGroupsListInstances++; if (buildCounterInstanceGroupsListInstances < 3) { o.id = "foo"; - o.items = buildUnnamed2270(); + o.items = buildUnnamed2304(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4137,7 +4158,7 @@ buildCounterInstanceGroupsListInstances++; if (buildCounterInstanceGroupsListInstances < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2270(o.items); + checkUnnamed2304(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4164,14 +4185,14 @@ buildCounterInstanceGroupsListInstancesRequest--; } -buildUnnamed2271() { +buildUnnamed2305() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2271(core.List<api.InstanceReference> o) { +checkUnnamed2305(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -4182,7 +4203,7 @@ var o = new api.InstanceGroupsRemoveInstancesRequest(); buildCounterInstanceGroupsRemoveInstancesRequest++; if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { - o.instances = buildUnnamed2271(); + o.instances = buildUnnamed2305(); } buildCounterInstanceGroupsRemoveInstancesRequest--; return o; @@ -4191,19 +4212,19 @@ checkInstanceGroupsRemoveInstancesRequest(api.InstanceGroupsRemoveInstancesRequest o) { buildCounterInstanceGroupsRemoveInstancesRequest++; if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { - checkUnnamed2271(o.instances); + checkUnnamed2305(o.instances); } buildCounterInstanceGroupsRemoveInstancesRequest--; } -buildUnnamed2272() { +buildUnnamed2306() { var o = new core.List<api.InstanceGroup>(); o.add(buildInstanceGroup()); o.add(buildInstanceGroup()); return o; } -checkUnnamed2272(core.List<api.InstanceGroup> o) { +checkUnnamed2306(core.List<api.InstanceGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroup(o[0]); checkInstanceGroup(o[1]); @@ -4230,14 +4251,14 @@ buildCounterInstanceGroupsScopedListWarningData--; } -buildUnnamed2273() { +buildUnnamed2307() { var o = new core.List<api.InstanceGroupsScopedListWarningData>(); o.add(buildInstanceGroupsScopedListWarningData()); o.add(buildInstanceGroupsScopedListWarningData()); return o; } -checkUnnamed2273(core.List<api.InstanceGroupsScopedListWarningData> o) { +checkUnnamed2307(core.List<api.InstanceGroupsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupsScopedListWarningData(o[0]); checkInstanceGroupsScopedListWarningData(o[1]); @@ -4249,7 +4270,7 @@ buildCounterInstanceGroupsScopedListWarning++; if (buildCounterInstanceGroupsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2273(); + o.data = buildUnnamed2307(); o.message = "foo"; } buildCounterInstanceGroupsScopedListWarning--; @@ -4260,7 +4281,7 @@ buildCounterInstanceGroupsScopedListWarning++; if (buildCounterInstanceGroupsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2273(o.data); + checkUnnamed2307(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupsScopedListWarning--; @@ -4271,7 +4292,7 @@ var o = new api.InstanceGroupsScopedList(); buildCounterInstanceGroupsScopedList++; if (buildCounterInstanceGroupsScopedList < 3) { - o.instanceGroups = buildUnnamed2272(); + o.instanceGroups = buildUnnamed2306(); o.warning = buildInstanceGroupsScopedListWarning(); } buildCounterInstanceGroupsScopedList--; @@ -4281,20 +4302,20 @@ checkInstanceGroupsScopedList(api.InstanceGroupsScopedList o) { buildCounterInstanceGroupsScopedList++; if (buildCounterInstanceGroupsScopedList < 3) { - checkUnnamed2272(o.instanceGroups); + checkUnnamed2306(o.instanceGroups); checkInstanceGroupsScopedListWarning(o.warning); } buildCounterInstanceGroupsScopedList--; } -buildUnnamed2274() { +buildUnnamed2308() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2274(core.List<api.NamedPort> o) { +checkUnnamed2308(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -4306,7 +4327,7 @@ buildCounterInstanceGroupsSetNamedPortsRequest++; if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { o.fingerprint = "foo"; - o.namedPorts = buildUnnamed2274(); + o.namedPorts = buildUnnamed2308(); } buildCounterInstanceGroupsSetNamedPortsRequest--; return o; @@ -4316,19 +4337,19 @@ buildCounterInstanceGroupsSetNamedPortsRequest++; if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2274(o.namedPorts); + checkUnnamed2308(o.namedPorts); } buildCounterInstanceGroupsSetNamedPortsRequest--; } -buildUnnamed2275() { +buildUnnamed2309() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed2275(core.List<api.Instance> o) { +checkUnnamed2309(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -4340,7 +4361,7 @@ buildCounterInstanceList++; if (buildCounterInstanceList < 3) { o.id = "foo"; - o.items = buildUnnamed2275(); + o.items = buildUnnamed2309(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4353,7 +4374,7 @@ buildCounterInstanceList++; if (buildCounterInstanceList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2275(o.items); + checkUnnamed2309(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4382,66 +4403,66 @@ buildCounterInstanceMoveRequest--; } -buildUnnamed2276() { +buildUnnamed2310() { var o = new core.List<api.AttachedDisk>(); o.add(buildAttachedDisk()); o.add(buildAttachedDisk()); return o; } -checkUnnamed2276(core.List<api.AttachedDisk> o) { +checkUnnamed2310(core.List<api.AttachedDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachedDisk(o[0]); checkAttachedDisk(o[1]); } -buildUnnamed2277() { +buildUnnamed2311() { var o = new core.List<api.AcceleratorConfig>(); o.add(buildAcceleratorConfig()); o.add(buildAcceleratorConfig()); return o; } -checkUnnamed2277(core.List<api.AcceleratorConfig> o) { +checkUnnamed2311(core.List<api.AcceleratorConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfig(o[0]); checkAcceleratorConfig(o[1]); } -buildUnnamed2278() { +buildUnnamed2312() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2278(core.Map<core.String, core.String> o) { +checkUnnamed2312(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed2279() { +buildUnnamed2313() { var o = new core.List<api.NetworkInterface>(); o.add(buildNetworkInterface()); o.add(buildNetworkInterface()); return o; } -checkUnnamed2279(core.List<api.NetworkInterface> o) { +checkUnnamed2313(core.List<api.NetworkInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -buildUnnamed2280() { +buildUnnamed2314() { var o = new core.List<api.ServiceAccount>(); o.add(buildServiceAccount()); o.add(buildServiceAccount()); return o; } -checkUnnamed2280(core.List<api.ServiceAccount> o) { +checkUnnamed2314(core.List<api.ServiceAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -4454,14 +4475,14 @@ if (buildCounterInstanceProperties < 3) { o.canIpForward = true; o.description = "foo"; - o.disks = buildUnnamed2276(); - o.guestAccelerators = buildUnnamed2277(); - o.labels = buildUnnamed2278(); + o.disks = buildUnnamed2310(); + o.guestAccelerators = buildUnnamed2311(); + o.labels = buildUnnamed2312(); o.machineType = "foo"; o.metadata = buildMetadata(); - o.networkInterfaces = buildUnnamed2279(); + o.networkInterfaces = buildUnnamed2313(); o.scheduling = buildScheduling(); - o.serviceAccounts = buildUnnamed2280(); + o.serviceAccounts = buildUnnamed2314(); o.tags = buildTags(); } buildCounterInstanceProperties--; @@ -4473,14 +4494,14 @@ if (buildCounterInstanceProperties < 3) { unittest.expect(o.canIpForward, unittest.isTrue); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2276(o.disks); - checkUnnamed2277(o.guestAccelerators); - checkUnnamed2278(o.labels); + checkUnnamed2310(o.disks); + checkUnnamed2311(o.guestAccelerators); + checkUnnamed2312(o.labels); unittest.expect(o.machineType, unittest.equals('foo')); checkMetadata(o.metadata); - checkUnnamed2279(o.networkInterfaces); + checkUnnamed2313(o.networkInterfaces); checkScheduling(o.scheduling); - checkUnnamed2280(o.serviceAccounts); + checkUnnamed2314(o.serviceAccounts); checkTags(o.tags); } buildCounterInstanceProperties--; @@ -4536,14 +4557,14 @@ buildCounterInstanceTemplate--; } -buildUnnamed2281() { +buildUnnamed2315() { var o = new core.List<api.InstanceTemplate>(); o.add(buildInstanceTemplate()); o.add(buildInstanceTemplate()); return o; } -checkUnnamed2281(core.List<api.InstanceTemplate> o) { +checkUnnamed2315(core.List<api.InstanceTemplate> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceTemplate(o[0]); checkInstanceTemplate(o[1]); @@ -4555,7 +4576,7 @@ buildCounterInstanceTemplateList++; if (buildCounterInstanceTemplateList < 3) { o.id = "foo"; - o.items = buildUnnamed2281(); + o.items = buildUnnamed2315(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4568,7 +4589,7 @@ buildCounterInstanceTemplateList++; if (buildCounterInstanceTemplateList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2281(o.items); + checkUnnamed2315(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4576,14 +4597,14 @@ buildCounterInstanceTemplateList--; } -buildUnnamed2282() { +buildUnnamed2316() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2282(core.List<api.NamedPort> o) { +checkUnnamed2316(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -4595,7 +4616,7 @@ buildCounterInstanceWithNamedPorts++; if (buildCounterInstanceWithNamedPorts < 3) { o.instance = "foo"; - o.namedPorts = buildUnnamed2282(); + o.namedPorts = buildUnnamed2316(); o.status = "foo"; } buildCounterInstanceWithNamedPorts--; @@ -4606,20 +4627,20 @@ buildCounterInstanceWithNamedPorts++; if (buildCounterInstanceWithNamedPorts < 3) { unittest.expect(o.instance, unittest.equals('foo')); - checkUnnamed2282(o.namedPorts); + checkUnnamed2316(o.namedPorts); unittest.expect(o.status, unittest.equals('foo')); } buildCounterInstanceWithNamedPorts--; } -buildUnnamed2283() { +buildUnnamed2317() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed2283(core.List<api.Instance> o) { +checkUnnamed2317(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -4646,14 +4667,14 @@ buildCounterInstancesScopedListWarningData--; } -buildUnnamed2284() { +buildUnnamed2318() { var o = new core.List<api.InstancesScopedListWarningData>(); o.add(buildInstancesScopedListWarningData()); o.add(buildInstancesScopedListWarningData()); return o; } -checkUnnamed2284(core.List<api.InstancesScopedListWarningData> o) { +checkUnnamed2318(core.List<api.InstancesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstancesScopedListWarningData(o[0]); checkInstancesScopedListWarningData(o[1]); @@ -4665,7 +4686,7 @@ buildCounterInstancesScopedListWarning++; if (buildCounterInstancesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2284(); + o.data = buildUnnamed2318(); o.message = "foo"; } buildCounterInstancesScopedListWarning--; @@ -4676,7 +4697,7 @@ buildCounterInstancesScopedListWarning++; if (buildCounterInstancesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2284(o.data); + checkUnnamed2318(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstancesScopedListWarning--; @@ -4687,7 +4708,7 @@ var o = new api.InstancesScopedList(); buildCounterInstancesScopedList++; if (buildCounterInstancesScopedList < 3) { - o.instances = buildUnnamed2283(); + o.instances = buildUnnamed2317(); o.warning = buildInstancesScopedListWarning(); } buildCounterInstancesScopedList--; @@ -4697,20 +4718,20 @@ checkInstancesScopedList(api.InstancesScopedList o) { buildCounterInstancesScopedList++; if (buildCounterInstancesScopedList < 3) { - checkUnnamed2283(o.instances); + checkUnnamed2317(o.instances); checkInstancesScopedListWarning(o.warning); } buildCounterInstancesScopedList--; } -buildUnnamed2285() { +buildUnnamed2319() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2285(core.Map<core.String, core.String> o) { +checkUnnamed2319(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -4722,7 +4743,7 @@ buildCounterInstancesSetLabelsRequest++; if (buildCounterInstancesSetLabelsRequest < 3) { o.labelFingerprint = "foo"; - o.labels = buildUnnamed2285(); + o.labels = buildUnnamed2319(); } buildCounterInstancesSetLabelsRequest--; return o; @@ -4732,19 +4753,19 @@ buildCounterInstancesSetLabelsRequest++; if (buildCounterInstancesSetLabelsRequest < 3) { unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed2285(o.labels); + checkUnnamed2319(o.labels); } buildCounterInstancesSetLabelsRequest--; } -buildUnnamed2286() { +buildUnnamed2320() { var o = new core.List<api.AcceleratorConfig>(); o.add(buildAcceleratorConfig()); o.add(buildAcceleratorConfig()); return o; } -checkUnnamed2286(core.List<api.AcceleratorConfig> o) { +checkUnnamed2320(core.List<api.AcceleratorConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfig(o[0]); checkAcceleratorConfig(o[1]); @@ -4755,7 +4776,7 @@ var o = new api.InstancesSetMachineResourcesRequest(); buildCounterInstancesSetMachineResourcesRequest++; if (buildCounterInstancesSetMachineResourcesRequest < 3) { - o.guestAccelerators = buildUnnamed2286(); + o.guestAccelerators = buildUnnamed2320(); } buildCounterInstancesSetMachineResourcesRequest--; return o; @@ -4764,7 +4785,7 @@ checkInstancesSetMachineResourcesRequest(api.InstancesSetMachineResourcesRequest o) { buildCounterInstancesSetMachineResourcesRequest++; if (buildCounterInstancesSetMachineResourcesRequest < 3) { - checkUnnamed2286(o.guestAccelerators); + checkUnnamed2320(o.guestAccelerators); } buildCounterInstancesSetMachineResourcesRequest--; } @@ -4788,14 +4809,14 @@ buildCounterInstancesSetMachineTypeRequest--; } -buildUnnamed2287() { +buildUnnamed2321() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2287(core.List<core.String> o) { +checkUnnamed2321(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4807,7 +4828,7 @@ buildCounterInstancesSetServiceAccountRequest++; if (buildCounterInstancesSetServiceAccountRequest < 3) { o.email = "foo"; - o.scopes = buildUnnamed2287(); + o.scopes = buildUnnamed2321(); } buildCounterInstancesSetServiceAccountRequest--; return o; @@ -4817,19 +4838,19 @@ buildCounterInstancesSetServiceAccountRequest++; if (buildCounterInstancesSetServiceAccountRequest < 3) { unittest.expect(o.email, unittest.equals('foo')); - checkUnnamed2287(o.scopes); + checkUnnamed2321(o.scopes); } buildCounterInstancesSetServiceAccountRequest--; } -buildUnnamed2288() { +buildUnnamed2322() { var o = new core.List<api.CustomerEncryptionKeyProtectedDisk>(); o.add(buildCustomerEncryptionKeyProtectedDisk()); o.add(buildCustomerEncryptionKeyProtectedDisk()); return o; } -checkUnnamed2288(core.List<api.CustomerEncryptionKeyProtectedDisk> o) { +checkUnnamed2322(core.List<api.CustomerEncryptionKeyProtectedDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomerEncryptionKeyProtectedDisk(o[0]); checkCustomerEncryptionKeyProtectedDisk(o[1]); @@ -4840,7 +4861,7 @@ var o = new api.InstancesStartWithEncryptionKeyRequest(); buildCounterInstancesStartWithEncryptionKeyRequest++; if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { - o.disks = buildUnnamed2288(); + o.disks = buildUnnamed2322(); } buildCounterInstancesStartWithEncryptionKeyRequest--; return o; @@ -4849,7 +4870,7 @@ checkInstancesStartWithEncryptionKeyRequest(api.InstancesStartWithEncryptionKeyRequest o) { buildCounterInstancesStartWithEncryptionKeyRequest++; if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { - checkUnnamed2288(o.disks); + checkUnnamed2322(o.disks); } buildCounterInstancesStartWithEncryptionKeyRequest--; } @@ -4898,14 +4919,14 @@ buildCounterMachineTypeScratchDisks--; } -buildUnnamed2289() { +buildUnnamed2323() { var o = new core.List<api.MachineTypeScratchDisks>(); o.add(buildMachineTypeScratchDisks()); o.add(buildMachineTypeScratchDisks()); return o; } -checkUnnamed2289(core.List<api.MachineTypeScratchDisks> o) { +checkUnnamed2323(core.List<api.MachineTypeScratchDisks> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypeScratchDisks(o[0]); checkMachineTypeScratchDisks(o[1]); @@ -4928,7 +4949,7 @@ o.maximumPersistentDisksSizeGb = "foo"; o.memoryMb = 42; o.name = "foo"; - o.scratchDisks = buildUnnamed2289(); + o.scratchDisks = buildUnnamed2323(); o.selfLink = "foo"; o.zone = "foo"; } @@ -4951,21 +4972,21 @@ unittest.expect(o.maximumPersistentDisksSizeGb, unittest.equals('foo')); unittest.expect(o.memoryMb, unittest.equals(42)); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2289(o.scratchDisks); + checkUnnamed2323(o.scratchDisks); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterMachineType--; } -buildUnnamed2290() { +buildUnnamed2324() { var o = new core.Map<core.String, api.MachineTypesScopedList>(); o["x"] = buildMachineTypesScopedList(); o["y"] = buildMachineTypesScopedList(); return o; } -checkUnnamed2290(core.Map<core.String, api.MachineTypesScopedList> o) { +checkUnnamed2324(core.Map<core.String, api.MachineTypesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypesScopedList(o["x"]); checkMachineTypesScopedList(o["y"]); @@ -4977,7 +4998,7 @@ buildCounterMachineTypeAggregatedList++; if (buildCounterMachineTypeAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2290(); + o.items = buildUnnamed2324(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4990,7 +5011,7 @@ buildCounterMachineTypeAggregatedList++; if (buildCounterMachineTypeAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2290(o.items); + checkUnnamed2324(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4998,14 +5019,14 @@ buildCounterMachineTypeAggregatedList--; } -buildUnnamed2291() { +buildUnnamed2325() { var o = new core.List<api.MachineType>(); o.add(buildMachineType()); o.add(buildMachineType()); return o; } -checkUnnamed2291(core.List<api.MachineType> o) { +checkUnnamed2325(core.List<api.MachineType> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineType(o[0]); checkMachineType(o[1]); @@ -5017,7 +5038,7 @@ buildCounterMachineTypeList++; if (buildCounterMachineTypeList < 3) { o.id = "foo"; - o.items = buildUnnamed2291(); + o.items = buildUnnamed2325(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5030,7 +5051,7 @@ buildCounterMachineTypeList++; if (buildCounterMachineTypeList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2291(o.items); + checkUnnamed2325(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5038,14 +5059,14 @@ buildCounterMachineTypeList--; } -buildUnnamed2292() { +buildUnnamed2326() { var o = new core.List<api.MachineType>(); o.add(buildMachineType()); o.add(buildMachineType()); return o; } -checkUnnamed2292(core.List<api.MachineType> o) { +checkUnnamed2326(core.List<api.MachineType> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineType(o[0]); checkMachineType(o[1]); @@ -5072,14 +5093,14 @@ buildCounterMachineTypesScopedListWarningData--; } -buildUnnamed2293() { +buildUnnamed2327() { var o = new core.List<api.MachineTypesScopedListWarningData>(); o.add(buildMachineTypesScopedListWarningData()); o.add(buildMachineTypesScopedListWarningData()); return o; } -checkUnnamed2293(core.List<api.MachineTypesScopedListWarningData> o) { +checkUnnamed2327(core.List<api.MachineTypesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypesScopedListWarningData(o[0]); checkMachineTypesScopedListWarningData(o[1]); @@ -5091,7 +5112,7 @@ buildCounterMachineTypesScopedListWarning++; if (buildCounterMachineTypesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2293(); + o.data = buildUnnamed2327(); o.message = "foo"; } buildCounterMachineTypesScopedListWarning--; @@ -5102,7 +5123,7 @@ buildCounterMachineTypesScopedListWarning++; if (buildCounterMachineTypesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2293(o.data); + checkUnnamed2327(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterMachineTypesScopedListWarning--; @@ -5113,7 +5134,7 @@ var o = new api.MachineTypesScopedList(); buildCounterMachineTypesScopedList++; if (buildCounterMachineTypesScopedList < 3) { - o.machineTypes = buildUnnamed2292(); + o.machineTypes = buildUnnamed2326(); o.warning = buildMachineTypesScopedListWarning(); } buildCounterMachineTypesScopedList--; @@ -5123,7 +5144,7 @@ checkMachineTypesScopedList(api.MachineTypesScopedList o) { buildCounterMachineTypesScopedList++; if (buildCounterMachineTypesScopedList < 3) { - checkUnnamed2292(o.machineTypes); + checkUnnamed2326(o.machineTypes); checkMachineTypesScopedListWarning(o.warning); } buildCounterMachineTypesScopedList--; @@ -5179,14 +5200,14 @@ buildCounterManagedInstanceLastAttemptErrorsErrors--; } -buildUnnamed2294() { +buildUnnamed2328() { var o = new core.List<api.ManagedInstanceLastAttemptErrorsErrors>(); o.add(buildManagedInstanceLastAttemptErrorsErrors()); o.add(buildManagedInstanceLastAttemptErrorsErrors()); return o; } -checkUnnamed2294(core.List<api.ManagedInstanceLastAttemptErrorsErrors> o) { +checkUnnamed2328(core.List<api.ManagedInstanceLastAttemptErrorsErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstanceLastAttemptErrorsErrors(o[0]); checkManagedInstanceLastAttemptErrorsErrors(o[1]); @@ -5197,7 +5218,7 @@ var o = new api.ManagedInstanceLastAttemptErrors(); buildCounterManagedInstanceLastAttemptErrors++; if (buildCounterManagedInstanceLastAttemptErrors < 3) { - o.errors = buildUnnamed2294(); + o.errors = buildUnnamed2328(); } buildCounterManagedInstanceLastAttemptErrors--; return o; @@ -5206,7 +5227,7 @@ checkManagedInstanceLastAttemptErrors(api.ManagedInstanceLastAttemptErrors o) { buildCounterManagedInstanceLastAttemptErrors++; if (buildCounterManagedInstanceLastAttemptErrors < 3) { - checkUnnamed2294(o.errors); + checkUnnamed2328(o.errors); } buildCounterManagedInstanceLastAttemptErrors--; } @@ -5251,14 +5272,14 @@ buildCounterMetadataItems--; } -buildUnnamed2295() { +buildUnnamed2329() { var o = new core.List<api.MetadataItems>(); o.add(buildMetadataItems()); o.add(buildMetadataItems()); return o; } -checkUnnamed2295(core.List<api.MetadataItems> o) { +checkUnnamed2329(core.List<api.MetadataItems> o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataItems(o[0]); checkMetadataItems(o[1]); @@ -5270,7 +5291,7 @@ buildCounterMetadata++; if (buildCounterMetadata < 3) { o.fingerprint = "foo"; - o.items = buildUnnamed2295(); + o.items = buildUnnamed2329(); o.kind = "foo"; } buildCounterMetadata--; @@ -5281,7 +5302,7 @@ buildCounterMetadata++; if (buildCounterMetadata < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2295(o.items); + checkUnnamed2329(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; @@ -5308,27 +5329,27 @@ buildCounterNamedPort--; } -buildUnnamed2296() { +buildUnnamed2330() { var o = new core.List<api.NetworkPeering>(); o.add(buildNetworkPeering()); o.add(buildNetworkPeering()); return o; } -checkUnnamed2296(core.List<api.NetworkPeering> o) { +checkUnnamed2330(core.List<api.NetworkPeering> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkPeering(o[0]); checkNetworkPeering(o[1]); } -buildUnnamed2297() { +buildUnnamed2331() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2297(core.List<core.String> o) { +checkUnnamed2331(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5347,9 +5368,9 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.peerings = buildUnnamed2296(); + o.peerings = buildUnnamed2330(); o.selfLink = "foo"; - o.subnetworks = buildUnnamed2297(); + o.subnetworks = buildUnnamed2331(); } buildCounterNetwork--; return o; @@ -5366,32 +5387,46 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2296(o.peerings); + checkUnnamed2330(o.peerings); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2297(o.subnetworks); + checkUnnamed2331(o.subnetworks); } buildCounterNetwork--; } -buildUnnamed2298() { +buildUnnamed2332() { var o = new core.List<api.AccessConfig>(); o.add(buildAccessConfig()); o.add(buildAccessConfig()); return o; } -checkUnnamed2298(core.List<api.AccessConfig> o) { +checkUnnamed2332(core.List<api.AccessConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAccessConfig(o[0]); checkAccessConfig(o[1]); } +buildUnnamed2333() { + var o = new core.List<api.AliasIpRange>(); + o.add(buildAliasIpRange()); + o.add(buildAliasIpRange()); + return o; +} + +checkUnnamed2333(core.List<api.AliasIpRange> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAliasIpRange(o[0]); + checkAliasIpRange(o[1]); +} + core.int buildCounterNetworkInterface = 0; buildNetworkInterface() { var o = new api.NetworkInterface(); buildCounterNetworkInterface++; if (buildCounterNetworkInterface < 3) { - o.accessConfigs = buildUnnamed2298(); + o.accessConfigs = buildUnnamed2332(); + o.aliasIpRanges = buildUnnamed2333(); o.kind = "foo"; o.name = "foo"; o.network = "foo"; @@ -5405,7 +5440,8 @@ checkNetworkInterface(api.NetworkInterface o) { buildCounterNetworkInterface++; if (buildCounterNetworkInterface < 3) { - checkUnnamed2298(o.accessConfigs); + checkUnnamed2332(o.accessConfigs); + checkUnnamed2333(o.aliasIpRanges); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); @@ -5415,14 +5451,14 @@ buildCounterNetworkInterface--; } -buildUnnamed2299() { +buildUnnamed2334() { var o = new core.List<api.Network>(); o.add(buildNetwork()); o.add(buildNetwork()); return o; } -checkUnnamed2299(core.List<api.Network> o) { +checkUnnamed2334(core.List<api.Network> o) { unittest.expect(o, unittest.hasLength(2)); checkNetwork(o[0]); checkNetwork(o[1]); @@ -5434,7 +5470,7 @@ buildCounterNetworkList++; if (buildCounterNetworkList < 3) { o.id = "foo"; - o.items = buildUnnamed2299(); + o.items = buildUnnamed2334(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5447,7 +5483,7 @@ buildCounterNetworkList++; if (buildCounterNetworkList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2299(o.items); + checkUnnamed2334(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5547,14 +5583,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed2300() { +buildUnnamed2335() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed2300(core.List<api.OperationErrorErrors> o) { +checkUnnamed2335(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -5565,7 +5601,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed2300(); + o.errors = buildUnnamed2335(); } buildCounterOperationError--; return o; @@ -5574,7 +5610,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed2300(o.errors); + checkUnnamed2335(o.errors); } buildCounterOperationError--; } @@ -5600,14 +5636,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed2301() { +buildUnnamed2336() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed2301(core.List<api.OperationWarningsData> o) { +checkUnnamed2336(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -5619,7 +5655,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2301(); + o.data = buildUnnamed2336(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -5630,20 +5666,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2301(o.data); + checkUnnamed2336(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed2302() { +buildUnnamed2337() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed2302(core.List<api.OperationWarnings> o) { +checkUnnamed2337(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -5675,7 +5711,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed2302(); + o.warnings = buildUnnamed2337(); o.zone = "foo"; } buildCounterOperation--; @@ -5706,20 +5742,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed2302(o.warnings); + checkUnnamed2337(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed2303() { +buildUnnamed2338() { var o = new core.Map<core.String, api.OperationsScopedList>(); o["x"] = buildOperationsScopedList(); o["y"] = buildOperationsScopedList(); return o; } -checkUnnamed2303(core.Map<core.String, api.OperationsScopedList> o) { +checkUnnamed2338(core.Map<core.String, api.OperationsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationsScopedList(o["x"]); checkOperationsScopedList(o["y"]); @@ -5731,7 +5767,7 @@ buildCounterOperationAggregatedList++; if (buildCounterOperationAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2303(); + o.items = buildUnnamed2338(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5744,7 +5780,7 @@ buildCounterOperationAggregatedList++; if (buildCounterOperationAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2303(o.items); + checkUnnamed2338(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5752,14 +5788,14 @@ buildCounterOperationAggregatedList--; } -buildUnnamed2304() { +buildUnnamed2339() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2304(core.List<api.Operation> o) { +checkUnnamed2339(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -5771,7 +5807,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { o.id = "foo"; - o.items = buildUnnamed2304(); + o.items = buildUnnamed2339(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5784,7 +5820,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2304(o.items); + checkUnnamed2339(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5792,14 +5828,14 @@ buildCounterOperationList--; } -buildUnnamed2305() { +buildUnnamed2340() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2305(core.List<api.Operation> o) { +checkUnnamed2340(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -5826,14 +5862,14 @@ buildCounterOperationsScopedListWarningData--; } -buildUnnamed2306() { +buildUnnamed2341() { var o = new core.List<api.OperationsScopedListWarningData>(); o.add(buildOperationsScopedListWarningData()); o.add(buildOperationsScopedListWarningData()); return o; } -checkUnnamed2306(core.List<api.OperationsScopedListWarningData> o) { +checkUnnamed2341(core.List<api.OperationsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationsScopedListWarningData(o[0]); checkOperationsScopedListWarningData(o[1]); @@ -5845,7 +5881,7 @@ buildCounterOperationsScopedListWarning++; if (buildCounterOperationsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2306(); + o.data = buildUnnamed2341(); o.message = "foo"; } buildCounterOperationsScopedListWarning--; @@ -5856,7 +5892,7 @@ buildCounterOperationsScopedListWarning++; if (buildCounterOperationsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2306(o.data); + checkUnnamed2341(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationsScopedListWarning--; @@ -5867,7 +5903,7 @@ var o = new api.OperationsScopedList(); buildCounterOperationsScopedList++; if (buildCounterOperationsScopedList < 3) { - o.operations = buildUnnamed2305(); + o.operations = buildUnnamed2340(); o.warning = buildOperationsScopedListWarning(); } buildCounterOperationsScopedList--; @@ -5877,20 +5913,20 @@ checkOperationsScopedList(api.OperationsScopedList o) { buildCounterOperationsScopedList++; if (buildCounterOperationsScopedList < 3) { - checkUnnamed2305(o.operations); + checkUnnamed2340(o.operations); checkOperationsScopedListWarning(o.warning); } buildCounterOperationsScopedList--; } -buildUnnamed2307() { +buildUnnamed2342() { var o = new core.List<api.PathRule>(); o.add(buildPathRule()); o.add(buildPathRule()); return o; } -checkUnnamed2307(core.List<api.PathRule> o) { +checkUnnamed2342(core.List<api.PathRule> o) { unittest.expect(o, unittest.hasLength(2)); checkPathRule(o[0]); checkPathRule(o[1]); @@ -5904,7 +5940,7 @@ o.defaultService = "foo"; o.description = "foo"; o.name = "foo"; - o.pathRules = buildUnnamed2307(); + o.pathRules = buildUnnamed2342(); } buildCounterPathMatcher--; return o; @@ -5916,19 +5952,19 @@ unittest.expect(o.defaultService, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2307(o.pathRules); + checkUnnamed2342(o.pathRules); } buildCounterPathMatcher--; } -buildUnnamed2308() { +buildUnnamed2343() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2308(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')); @@ -5939,7 +5975,7 @@ var o = new api.PathRule(); buildCounterPathRule++; if (buildCounterPathRule < 3) { - o.paths = buildUnnamed2308(); + o.paths = buildUnnamed2343(); o.service = "foo"; } buildCounterPathRule--; @@ -5949,33 +5985,33 @@ checkPathRule(api.PathRule o) { buildCounterPathRule++; if (buildCounterPathRule < 3) { - checkUnnamed2308(o.paths); + checkUnnamed2343(o.paths); unittest.expect(o.service, unittest.equals('foo')); } buildCounterPathRule--; } -buildUnnamed2309() { +buildUnnamed2344() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2309(core.List<core.String> o) { +checkUnnamed2344(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2310() { +buildUnnamed2345() { var o = new core.List<api.Quota>(); o.add(buildQuota()); o.add(buildQuota()); return o; } -checkUnnamed2310(core.List<api.Quota> o) { +checkUnnamed2345(core.List<api.Quota> o) { unittest.expect(o, unittest.hasLength(2)); checkQuota(o[0]); checkQuota(o[1]); @@ -5990,11 +6026,11 @@ o.creationTimestamp = "foo"; o.defaultServiceAccount = "foo"; o.description = "foo"; - o.enabledFeatures = buildUnnamed2309(); + o.enabledFeatures = buildUnnamed2344(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.quotas = buildUnnamed2310(); + o.quotas = buildUnnamed2345(); o.selfLink = "foo"; o.usageExportLocation = buildUsageExportLocation(); o.xpnProjectStatus = "foo"; @@ -6010,11 +6046,11 @@ unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.defaultServiceAccount, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2309(o.enabledFeatures); + checkUnnamed2344(o.enabledFeatures); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2310(o.quotas); + checkUnnamed2345(o.quotas); unittest.expect(o.selfLink, unittest.equals('foo')); checkUsageExportLocation(o.usageExportLocation); unittest.expect(o.xpnProjectStatus, unittest.equals('foo')); @@ -6060,14 +6096,14 @@ buildCounterProjectsEnableXpnResourceRequest--; } -buildUnnamed2311() { +buildUnnamed2346() { var o = new core.List<api.XpnResourceId>(); o.add(buildXpnResourceId()); o.add(buildXpnResourceId()); return o; } -checkUnnamed2311(core.List<api.XpnResourceId> o) { +checkUnnamed2346(core.List<api.XpnResourceId> o) { unittest.expect(o, unittest.hasLength(2)); checkXpnResourceId(o[0]); checkXpnResourceId(o[1]); @@ -6080,7 +6116,7 @@ if (buildCounterProjectsGetXpnResources < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed2311(); + o.resources = buildUnnamed2346(); } buildCounterProjectsGetXpnResources--; return o; @@ -6091,7 +6127,7 @@ if (buildCounterProjectsGetXpnResources < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2311(o.resources); + checkUnnamed2346(o.resources); } buildCounterProjectsGetXpnResources--; } @@ -6138,27 +6174,27 @@ buildCounterQuota--; } -buildUnnamed2312() { +buildUnnamed2347() { var o = new core.List<api.Quota>(); o.add(buildQuota()); o.add(buildQuota()); return o; } -checkUnnamed2312(core.List<api.Quota> o) { +checkUnnamed2347(core.List<api.Quota> o) { unittest.expect(o, unittest.hasLength(2)); checkQuota(o[0]); checkQuota(o[1]); } -buildUnnamed2313() { +buildUnnamed2348() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2313(core.List<core.String> o) { +checkUnnamed2348(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6175,10 +6211,10 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.quotas = buildUnnamed2312(); + o.quotas = buildUnnamed2347(); o.selfLink = "foo"; o.status = "foo"; - o.zones = buildUnnamed2313(); + o.zones = buildUnnamed2348(); } buildCounterRegion--; return o; @@ -6193,22 +6229,22 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2312(o.quotas); + checkUnnamed2347(o.quotas); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed2313(o.zones); + checkUnnamed2348(o.zones); } buildCounterRegion--; } -buildUnnamed2314() { +buildUnnamed2349() { var o = new core.List<api.Autoscaler>(); o.add(buildAutoscaler()); o.add(buildAutoscaler()); return o; } -checkUnnamed2314(core.List<api.Autoscaler> o) { +checkUnnamed2349(core.List<api.Autoscaler> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscaler(o[0]); checkAutoscaler(o[1]); @@ -6220,7 +6256,7 @@ buildCounterRegionAutoscalerList++; if (buildCounterRegionAutoscalerList < 3) { o.id = "foo"; - o.items = buildUnnamed2314(); + o.items = buildUnnamed2349(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6233,7 +6269,7 @@ buildCounterRegionAutoscalerList++; if (buildCounterRegionAutoscalerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2314(o.items); + checkUnnamed2349(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6241,14 +6277,14 @@ buildCounterRegionAutoscalerList--; } -buildUnnamed2315() { +buildUnnamed2350() { var o = new core.List<api.InstanceGroup>(); o.add(buildInstanceGroup()); o.add(buildInstanceGroup()); return o; } -checkUnnamed2315(core.List<api.InstanceGroup> o) { +checkUnnamed2350(core.List<api.InstanceGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroup(o[0]); checkInstanceGroup(o[1]); @@ -6260,7 +6296,7 @@ buildCounterRegionInstanceGroupList++; if (buildCounterRegionInstanceGroupList < 3) { o.id = "foo"; - o.items = buildUnnamed2315(); + o.items = buildUnnamed2350(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6273,7 +6309,7 @@ buildCounterRegionInstanceGroupList++; if (buildCounterRegionInstanceGroupList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2315(o.items); + checkUnnamed2350(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6281,14 +6317,14 @@ buildCounterRegionInstanceGroupList--; } -buildUnnamed2316() { +buildUnnamed2351() { var o = new core.List<api.InstanceGroupManager>(); o.add(buildInstanceGroupManager()); o.add(buildInstanceGroupManager()); return o; } -checkUnnamed2316(core.List<api.InstanceGroupManager> o) { +checkUnnamed2351(core.List<api.InstanceGroupManager> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -6300,7 +6336,7 @@ buildCounterRegionInstanceGroupManagerList++; if (buildCounterRegionInstanceGroupManagerList < 3) { o.id = "foo"; - o.items = buildUnnamed2316(); + o.items = buildUnnamed2351(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6313,7 +6349,7 @@ buildCounterRegionInstanceGroupManagerList++; if (buildCounterRegionInstanceGroupManagerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2316(o.items); + checkUnnamed2351(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6321,14 +6357,14 @@ buildCounterRegionInstanceGroupManagerList--; } -buildUnnamed2317() { +buildUnnamed2352() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2317(core.List<core.String> o) { +checkUnnamed2352(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6339,7 +6375,7 @@ var o = new api.RegionInstanceGroupManagersAbandonInstancesRequest(); buildCounterRegionInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterRegionInstanceGroupManagersAbandonInstancesRequest < 3) { - o.instances = buildUnnamed2317(); + o.instances = buildUnnamed2352(); } buildCounterRegionInstanceGroupManagersAbandonInstancesRequest--; return o; @@ -6348,19 +6384,19 @@ checkRegionInstanceGroupManagersAbandonInstancesRequest(api.RegionInstanceGroupManagersAbandonInstancesRequest o) { buildCounterRegionInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterRegionInstanceGroupManagersAbandonInstancesRequest < 3) { - checkUnnamed2317(o.instances); + checkUnnamed2352(o.instances); } buildCounterRegionInstanceGroupManagersAbandonInstancesRequest--; } -buildUnnamed2318() { +buildUnnamed2353() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2318(core.List<core.String> o) { +checkUnnamed2353(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6371,7 +6407,7 @@ var o = new api.RegionInstanceGroupManagersDeleteInstancesRequest(); buildCounterRegionInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterRegionInstanceGroupManagersDeleteInstancesRequest < 3) { - o.instances = buildUnnamed2318(); + o.instances = buildUnnamed2353(); } buildCounterRegionInstanceGroupManagersDeleteInstancesRequest--; return o; @@ -6380,19 +6416,19 @@ checkRegionInstanceGroupManagersDeleteInstancesRequest(api.RegionInstanceGroupManagersDeleteInstancesRequest o) { buildCounterRegionInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterRegionInstanceGroupManagersDeleteInstancesRequest < 3) { - checkUnnamed2318(o.instances); + checkUnnamed2353(o.instances); } buildCounterRegionInstanceGroupManagersDeleteInstancesRequest--; } -buildUnnamed2319() { +buildUnnamed2354() { var o = new core.List<api.ManagedInstance>(); o.add(buildManagedInstance()); o.add(buildManagedInstance()); return o; } -checkUnnamed2319(core.List<api.ManagedInstance> o) { +checkUnnamed2354(core.List<api.ManagedInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstance(o[0]); checkManagedInstance(o[1]); @@ -6403,7 +6439,7 @@ var o = new api.RegionInstanceGroupManagersListInstancesResponse(); buildCounterRegionInstanceGroupManagersListInstancesResponse++; if (buildCounterRegionInstanceGroupManagersListInstancesResponse < 3) { - o.managedInstances = buildUnnamed2319(); + o.managedInstances = buildUnnamed2354(); } buildCounterRegionInstanceGroupManagersListInstancesResponse--; return o; @@ -6412,19 +6448,19 @@ checkRegionInstanceGroupManagersListInstancesResponse(api.RegionInstanceGroupManagersListInstancesResponse o) { buildCounterRegionInstanceGroupManagersListInstancesResponse++; if (buildCounterRegionInstanceGroupManagersListInstancesResponse < 3) { - checkUnnamed2319(o.managedInstances); + checkUnnamed2354(o.managedInstances); } buildCounterRegionInstanceGroupManagersListInstancesResponse--; } -buildUnnamed2320() { +buildUnnamed2355() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2320(core.List<core.String> o) { +checkUnnamed2355(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6435,7 +6471,7 @@ var o = new api.RegionInstanceGroupManagersRecreateRequest(); buildCounterRegionInstanceGroupManagersRecreateRequest++; if (buildCounterRegionInstanceGroupManagersRecreateRequest < 3) { - o.instances = buildUnnamed2320(); + o.instances = buildUnnamed2355(); } buildCounterRegionInstanceGroupManagersRecreateRequest--; return o; @@ -6444,19 +6480,19 @@ checkRegionInstanceGroupManagersRecreateRequest(api.RegionInstanceGroupManagersRecreateRequest o) { buildCounterRegionInstanceGroupManagersRecreateRequest++; if (buildCounterRegionInstanceGroupManagersRecreateRequest < 3) { - checkUnnamed2320(o.instances); + checkUnnamed2355(o.instances); } buildCounterRegionInstanceGroupManagersRecreateRequest--; } -buildUnnamed2321() { +buildUnnamed2356() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2321(core.List<core.String> o) { +checkUnnamed2356(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6468,7 +6504,7 @@ buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest < 3) { o.fingerprint = "foo"; - o.targetPools = buildUnnamed2321(); + o.targetPools = buildUnnamed2356(); } buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest--; return o; @@ -6478,7 +6514,7 @@ buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2321(o.targetPools); + checkUnnamed2356(o.targetPools); } buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest--; } @@ -6502,14 +6538,14 @@ buildCounterRegionInstanceGroupManagersSetTemplateRequest--; } -buildUnnamed2322() { +buildUnnamed2357() { var o = new core.List<api.InstanceWithNamedPorts>(); o.add(buildInstanceWithNamedPorts()); o.add(buildInstanceWithNamedPorts()); return o; } -checkUnnamed2322(core.List<api.InstanceWithNamedPorts> o) { +checkUnnamed2357(core.List<api.InstanceWithNamedPorts> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceWithNamedPorts(o[0]); checkInstanceWithNamedPorts(o[1]); @@ -6521,7 +6557,7 @@ buildCounterRegionInstanceGroupsListInstances++; if (buildCounterRegionInstanceGroupsListInstances < 3) { o.id = "foo"; - o.items = buildUnnamed2322(); + o.items = buildUnnamed2357(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6534,7 +6570,7 @@ buildCounterRegionInstanceGroupsListInstances++; if (buildCounterRegionInstanceGroupsListInstances < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2322(o.items); + checkUnnamed2357(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6563,14 +6599,14 @@ buildCounterRegionInstanceGroupsListInstancesRequest--; } -buildUnnamed2323() { +buildUnnamed2358() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2323(core.List<api.NamedPort> o) { +checkUnnamed2358(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -6582,7 +6618,7 @@ buildCounterRegionInstanceGroupsSetNamedPortsRequest++; if (buildCounterRegionInstanceGroupsSetNamedPortsRequest < 3) { o.fingerprint = "foo"; - o.namedPorts = buildUnnamed2323(); + o.namedPorts = buildUnnamed2358(); } buildCounterRegionInstanceGroupsSetNamedPortsRequest--; return o; @@ -6592,19 +6628,19 @@ buildCounterRegionInstanceGroupsSetNamedPortsRequest++; if (buildCounterRegionInstanceGroupsSetNamedPortsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2323(o.namedPorts); + checkUnnamed2358(o.namedPorts); } buildCounterRegionInstanceGroupsSetNamedPortsRequest--; } -buildUnnamed2324() { +buildUnnamed2359() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed2324(core.List<api.Region> o) { +checkUnnamed2359(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -6616,7 +6652,7 @@ buildCounterRegionList++; if (buildCounterRegionList < 3) { o.id = "foo"; - o.items = buildUnnamed2324(); + o.items = buildUnnamed2359(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6629,7 +6665,7 @@ buildCounterRegionList++; if (buildCounterRegionList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2324(o.items); + checkUnnamed2359(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6677,14 +6713,14 @@ buildCounterResourceGroupReference--; } -buildUnnamed2325() { +buildUnnamed2360() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2325(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')); @@ -6711,14 +6747,14 @@ buildCounterRouteWarningsData--; } -buildUnnamed2326() { +buildUnnamed2361() { var o = new core.List<api.RouteWarningsData>(); o.add(buildRouteWarningsData()); o.add(buildRouteWarningsData()); return o; } -checkUnnamed2326(core.List<api.RouteWarningsData> o) { +checkUnnamed2361(core.List<api.RouteWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkRouteWarningsData(o[0]); checkRouteWarningsData(o[1]); @@ -6730,7 +6766,7 @@ buildCounterRouteWarnings++; if (buildCounterRouteWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2326(); + o.data = buildUnnamed2361(); o.message = "foo"; } buildCounterRouteWarnings--; @@ -6741,20 +6777,20 @@ buildCounterRouteWarnings++; if (buildCounterRouteWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2326(o.data); + checkUnnamed2361(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRouteWarnings--; } -buildUnnamed2327() { +buildUnnamed2362() { var o = new core.List<api.RouteWarnings>(); o.add(buildRouteWarnings()); o.add(buildRouteWarnings()); return o; } -checkUnnamed2327(core.List<api.RouteWarnings> o) { +checkUnnamed2362(core.List<api.RouteWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkRouteWarnings(o[0]); checkRouteWarnings(o[1]); @@ -6780,8 +6816,8 @@ o.nextHopVpnTunnel = "foo"; o.priority = 42; o.selfLink = "foo"; - o.tags = buildUnnamed2325(); - o.warnings = buildUnnamed2327(); + o.tags = buildUnnamed2360(); + o.warnings = buildUnnamed2362(); } buildCounterRoute--; return o; @@ -6805,20 +6841,20 @@ unittest.expect(o.nextHopVpnTunnel, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42)); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2325(o.tags); - checkUnnamed2327(o.warnings); + checkUnnamed2360(o.tags); + checkUnnamed2362(o.warnings); } buildCounterRoute--; } -buildUnnamed2328() { +buildUnnamed2363() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2328(core.List<api.Route> o) { +checkUnnamed2363(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); @@ -6830,7 +6866,7 @@ buildCounterRouteList++; if (buildCounterRouteList < 3) { o.id = "foo"; - o.items = buildUnnamed2328(); + o.items = buildUnnamed2363(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6843,7 +6879,7 @@ buildCounterRouteList++; if (buildCounterRouteList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2328(o.items); + checkUnnamed2363(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6851,27 +6887,27 @@ buildCounterRouteList--; } -buildUnnamed2329() { +buildUnnamed2364() { var o = new core.List<api.RouterBgpPeer>(); o.add(buildRouterBgpPeer()); o.add(buildRouterBgpPeer()); return o; } -checkUnnamed2329(core.List<api.RouterBgpPeer> o) { +checkUnnamed2364(core.List<api.RouterBgpPeer> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterBgpPeer(o[0]); checkRouterBgpPeer(o[1]); } -buildUnnamed2330() { +buildUnnamed2365() { var o = new core.List<api.RouterInterface>(); o.add(buildRouterInterface()); o.add(buildRouterInterface()); return o; } -checkUnnamed2330(core.List<api.RouterInterface> o) { +checkUnnamed2365(core.List<api.RouterInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterInterface(o[0]); checkRouterInterface(o[1]); @@ -6883,11 +6919,11 @@ buildCounterRouter++; if (buildCounterRouter < 3) { o.bgp = buildRouterBgp(); - o.bgpPeers = buildUnnamed2329(); + o.bgpPeers = buildUnnamed2364(); o.creationTimestamp = "foo"; o.description = "foo"; o.id = "foo"; - o.interfaces = buildUnnamed2330(); + o.interfaces = buildUnnamed2365(); o.kind = "foo"; o.name = "foo"; o.network = "foo"; @@ -6902,11 +6938,11 @@ buildCounterRouter++; if (buildCounterRouter < 3) { checkRouterBgp(o.bgp); - checkUnnamed2329(o.bgpPeers); + checkUnnamed2364(o.bgpPeers); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2330(o.interfaces); + checkUnnamed2365(o.interfaces); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); @@ -6916,14 +6952,14 @@ buildCounterRouter--; } -buildUnnamed2331() { +buildUnnamed2366() { var o = new core.Map<core.String, api.RoutersScopedList>(); o["x"] = buildRoutersScopedList(); o["y"] = buildRoutersScopedList(); return o; } -checkUnnamed2331(core.Map<core.String, api.RoutersScopedList> o) { +checkUnnamed2366(core.Map<core.String, api.RoutersScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkRoutersScopedList(o["x"]); checkRoutersScopedList(o["y"]); @@ -6935,7 +6971,7 @@ buildCounterRouterAggregatedList++; if (buildCounterRouterAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2331(); + o.items = buildUnnamed2366(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6948,7 +6984,7 @@ buildCounterRouterAggregatedList++; if (buildCounterRouterAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2331(o.items); + checkUnnamed2366(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7027,14 +7063,14 @@ buildCounterRouterInterface--; } -buildUnnamed2332() { +buildUnnamed2367() { var o = new core.List<api.Router>(); o.add(buildRouter()); o.add(buildRouter()); return o; } -checkUnnamed2332(core.List<api.Router> o) { +checkUnnamed2367(core.List<api.Router> o) { unittest.expect(o, unittest.hasLength(2)); checkRouter(o[0]); checkRouter(o[1]); @@ -7046,7 +7082,7 @@ buildCounterRouterList++; if (buildCounterRouterList < 3) { o.id = "foo"; - o.items = buildUnnamed2332(); + o.items = buildUnnamed2367(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7059,7 +7095,7 @@ buildCounterRouterList++; if (buildCounterRouterList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2332(o.items); + checkUnnamed2367(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7067,40 +7103,40 @@ buildCounterRouterList--; } -buildUnnamed2333() { +buildUnnamed2368() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2333(core.List<api.Route> o) { +checkUnnamed2368(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); } -buildUnnamed2334() { +buildUnnamed2369() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2334(core.List<api.Route> o) { +checkUnnamed2369(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); } -buildUnnamed2335() { +buildUnnamed2370() { var o = new core.List<api.RouterStatusBgpPeerStatus>(); o.add(buildRouterStatusBgpPeerStatus()); o.add(buildRouterStatusBgpPeerStatus()); return o; } -checkUnnamed2335(core.List<api.RouterStatusBgpPeerStatus> o) { +checkUnnamed2370(core.List<api.RouterStatusBgpPeerStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterStatusBgpPeerStatus(o[0]); checkRouterStatusBgpPeerStatus(o[1]); @@ -7111,9 +7147,9 @@ var o = new api.RouterStatus(); buildCounterRouterStatus++; if (buildCounterRouterStatus < 3) { - o.bestRoutes = buildUnnamed2333(); - o.bestRoutesForRouter = buildUnnamed2334(); - o.bgpPeerStatus = buildUnnamed2335(); + o.bestRoutes = buildUnnamed2368(); + o.bestRoutesForRouter = buildUnnamed2369(); + o.bgpPeerStatus = buildUnnamed2370(); o.network = "foo"; } buildCounterRouterStatus--; @@ -7123,22 +7159,22 @@ checkRouterStatus(api.RouterStatus o) { buildCounterRouterStatus++; if (buildCounterRouterStatus < 3) { - checkUnnamed2333(o.bestRoutes); - checkUnnamed2334(o.bestRoutesForRouter); - checkUnnamed2335(o.bgpPeerStatus); + checkUnnamed2368(o.bestRoutes); + checkUnnamed2369(o.bestRoutesForRouter); + checkUnnamed2370(o.bgpPeerStatus); unittest.expect(o.network, unittest.equals('foo')); } buildCounterRouterStatus--; } -buildUnnamed2336() { +buildUnnamed2371() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2336(core.List<api.Route> o) { +checkUnnamed2371(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); @@ -7149,7 +7185,7 @@ var o = new api.RouterStatusBgpPeerStatus(); buildCounterRouterStatusBgpPeerStatus++; if (buildCounterRouterStatusBgpPeerStatus < 3) { - o.advertisedRoutes = buildUnnamed2336(); + o.advertisedRoutes = buildUnnamed2371(); o.ipAddress = "foo"; o.linkedVpnTunnel = "foo"; o.name = "foo"; @@ -7167,7 +7203,7 @@ checkRouterStatusBgpPeerStatus(api.RouterStatusBgpPeerStatus o) { buildCounterRouterStatusBgpPeerStatus++; if (buildCounterRouterStatusBgpPeerStatus < 3) { - checkUnnamed2336(o.advertisedRoutes); + checkUnnamed2371(o.advertisedRoutes); unittest.expect(o.ipAddress, unittest.equals('foo')); unittest.expect(o.linkedVpnTunnel, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -7221,14 +7257,14 @@ buildCounterRoutersPreviewResponse--; } -buildUnnamed2337() { +buildUnnamed2372() { var o = new core.List<api.Router>(); o.add(buildRouter()); o.add(buildRouter()); return o; } -checkUnnamed2337(core.List<api.Router> o) { +checkUnnamed2372(core.List<api.Router> o) { unittest.expect(o, unittest.hasLength(2)); checkRouter(o[0]); checkRouter(o[1]); @@ -7255,14 +7291,14 @@ buildCounterRoutersScopedListWarningData--; } -buildUnnamed2338() { +buildUnnamed2373() { var o = new core.List<api.RoutersScopedListWarningData>(); o.add(buildRoutersScopedListWarningData()); o.add(buildRoutersScopedListWarningData()); return o; } -checkUnnamed2338(core.List<api.RoutersScopedListWarningData> o) { +checkUnnamed2373(core.List<api.RoutersScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRoutersScopedListWarningData(o[0]); checkRoutersScopedListWarningData(o[1]); @@ -7274,7 +7310,7 @@ buildCounterRoutersScopedListWarning++; if (buildCounterRoutersScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2338(); + o.data = buildUnnamed2373(); o.message = "foo"; } buildCounterRoutersScopedListWarning--; @@ -7285,7 +7321,7 @@ buildCounterRoutersScopedListWarning++; if (buildCounterRoutersScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2338(o.data); + checkUnnamed2373(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRoutersScopedListWarning--; @@ -7296,7 +7332,7 @@ var o = new api.RoutersScopedList(); buildCounterRoutersScopedList++; if (buildCounterRoutersScopedList < 3) { - o.routers = buildUnnamed2337(); + o.routers = buildUnnamed2372(); o.warning = buildRoutersScopedListWarning(); } buildCounterRoutersScopedList--; @@ -7306,7 +7342,7 @@ checkRoutersScopedList(api.RoutersScopedList o) { buildCounterRoutersScopedList++; if (buildCounterRoutersScopedList < 3) { - checkUnnamed2337(o.routers); + checkUnnamed2372(o.routers); checkRoutersScopedListWarning(o.warning); } buildCounterRoutersScopedList--; @@ -7389,14 +7425,14 @@ buildCounterSerialPortOutput--; } -buildUnnamed2339() { +buildUnnamed2374() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2339(core.List<core.String> o) { +checkUnnamed2374(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7408,7 +7444,7 @@ buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { o.email = "foo"; - o.scopes = buildUnnamed2339(); + o.scopes = buildUnnamed2374(); } buildCounterServiceAccount--; return o; @@ -7418,32 +7454,32 @@ buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { unittest.expect(o.email, unittest.equals('foo')); - checkUnnamed2339(o.scopes); + checkUnnamed2374(o.scopes); } buildCounterServiceAccount--; } -buildUnnamed2340() { +buildUnnamed2375() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2340(core.Map<core.String, core.String> o) { +checkUnnamed2375(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed2341() { +buildUnnamed2376() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2341(core.List<core.String> o) { +checkUnnamed2376(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7460,8 +7496,8 @@ o.id = "foo"; o.kind = "foo"; o.labelFingerprint = "foo"; - o.labels = buildUnnamed2340(); - o.licenses = buildUnnamed2341(); + o.labels = buildUnnamed2375(); + o.licenses = buildUnnamed2376(); o.name = "foo"; o.selfLink = "foo"; o.snapshotEncryptionKey = buildCustomerEncryptionKey(); @@ -7485,8 +7521,8 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed2340(o.labels); - checkUnnamed2341(o.licenses); + checkUnnamed2375(o.labels); + checkUnnamed2376(o.licenses); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); checkCustomerEncryptionKey(o.snapshotEncryptionKey); @@ -7500,14 +7536,14 @@ buildCounterSnapshot--; } -buildUnnamed2342() { +buildUnnamed2377() { var o = new core.List<api.Snapshot>(); o.add(buildSnapshot()); o.add(buildSnapshot()); return o; } -checkUnnamed2342(core.List<api.Snapshot> o) { +checkUnnamed2377(core.List<api.Snapshot> o) { unittest.expect(o, unittest.hasLength(2)); checkSnapshot(o[0]); checkSnapshot(o[1]); @@ -7519,7 +7555,7 @@ buildCounterSnapshotList++; if (buildCounterSnapshotList < 3) { o.id = "foo"; - o.items = buildUnnamed2342(); + o.items = buildUnnamed2377(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7532,7 +7568,7 @@ buildCounterSnapshotList++; if (buildCounterSnapshotList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2342(o.items); + checkUnnamed2377(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7573,14 +7609,14 @@ buildCounterSslCertificate--; } -buildUnnamed2343() { +buildUnnamed2378() { var o = new core.List<api.SslCertificate>(); o.add(buildSslCertificate()); o.add(buildSslCertificate()); return o; } -checkUnnamed2343(core.List<api.SslCertificate> o) { +checkUnnamed2378(core.List<api.SslCertificate> o) { unittest.expect(o, unittest.hasLength(2)); checkSslCertificate(o[0]); checkSslCertificate(o[1]); @@ -7592,7 +7628,7 @@ buildCounterSslCertificateList++; if (buildCounterSslCertificateList < 3) { o.id = "foo"; - o.items = buildUnnamed2343(); + o.items = buildUnnamed2378(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7605,7 +7641,7 @@ buildCounterSslCertificateList++; if (buildCounterSslCertificateList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2343(o.items); + checkUnnamed2378(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7613,6 +7649,19 @@ buildCounterSslCertificateList--; } +buildUnnamed2379() { + var o = new core.List<api.SubnetworkSecondaryRange>(); + o.add(buildSubnetworkSecondaryRange()); + o.add(buildSubnetworkSecondaryRange()); + return o; +} + +checkUnnamed2379(core.List<api.SubnetworkSecondaryRange> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSubnetworkSecondaryRange(o[0]); + checkSubnetworkSecondaryRange(o[1]); +} + core.int buildCounterSubnetwork = 0; buildSubnetwork() { var o = new api.Subnetwork(); @@ -7628,6 +7677,7 @@ o.network = "foo"; o.privateIpGoogleAccess = true; o.region = "foo"; + o.secondaryIpRanges = buildUnnamed2379(); o.selfLink = "foo"; } buildCounterSubnetwork--; @@ -7647,19 +7697,20 @@ unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.privateIpGoogleAccess, unittest.isTrue); unittest.expect(o.region, unittest.equals('foo')); + checkUnnamed2379(o.secondaryIpRanges); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterSubnetwork--; } -buildUnnamed2344() { +buildUnnamed2380() { var o = new core.Map<core.String, api.SubnetworksScopedList>(); o["x"] = buildSubnetworksScopedList(); o["y"] = buildSubnetworksScopedList(); return o; } -checkUnnamed2344(core.Map<core.String, api.SubnetworksScopedList> o) { +checkUnnamed2380(core.Map<core.String, api.SubnetworksScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworksScopedList(o["x"]); checkSubnetworksScopedList(o["y"]); @@ -7671,7 +7722,7 @@ buildCounterSubnetworkAggregatedList++; if (buildCounterSubnetworkAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2344(); + o.items = buildUnnamed2380(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7684,7 +7735,7 @@ buildCounterSubnetworkAggregatedList++; if (buildCounterSubnetworkAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2344(o.items); + checkUnnamed2380(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7692,14 +7743,14 @@ buildCounterSubnetworkAggregatedList--; } -buildUnnamed2345() { +buildUnnamed2381() { var o = new core.List<api.Subnetwork>(); o.add(buildSubnetwork()); o.add(buildSubnetwork()); return o; } -checkUnnamed2345(core.List<api.Subnetwork> o) { +checkUnnamed2381(core.List<api.Subnetwork> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetwork(o[0]); checkSubnetwork(o[1]); @@ -7711,7 +7762,7 @@ buildCounterSubnetworkList++; if (buildCounterSubnetworkList < 3) { o.id = "foo"; - o.items = buildUnnamed2345(); + o.items = buildUnnamed2381(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7724,7 +7775,7 @@ buildCounterSubnetworkList++; if (buildCounterSubnetworkList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2345(o.items); + checkUnnamed2381(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7732,6 +7783,27 @@ buildCounterSubnetworkList--; } +core.int buildCounterSubnetworkSecondaryRange = 0; +buildSubnetworkSecondaryRange() { + var o = new api.SubnetworkSecondaryRange(); + buildCounterSubnetworkSecondaryRange++; + if (buildCounterSubnetworkSecondaryRange < 3) { + o.ipCidrRange = "foo"; + o.rangeName = "foo"; + } + buildCounterSubnetworkSecondaryRange--; + return o; +} + +checkSubnetworkSecondaryRange(api.SubnetworkSecondaryRange o) { + buildCounterSubnetworkSecondaryRange++; + if (buildCounterSubnetworkSecondaryRange < 3) { + unittest.expect(o.ipCidrRange, unittest.equals('foo')); + unittest.expect(o.rangeName, unittest.equals('foo')); + } + buildCounterSubnetworkSecondaryRange--; +} + core.int buildCounterSubnetworksExpandIpCidrRangeRequest = 0; buildSubnetworksExpandIpCidrRangeRequest() { var o = new api.SubnetworksExpandIpCidrRangeRequest(); @@ -7751,14 +7823,14 @@ buildCounterSubnetworksExpandIpCidrRangeRequest--; } -buildUnnamed2346() { +buildUnnamed2382() { var o = new core.List<api.Subnetwork>(); o.add(buildSubnetwork()); o.add(buildSubnetwork()); return o; } -checkUnnamed2346(core.List<api.Subnetwork> o) { +checkUnnamed2382(core.List<api.Subnetwork> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetwork(o[0]); checkSubnetwork(o[1]); @@ -7785,14 +7857,14 @@ buildCounterSubnetworksScopedListWarningData--; } -buildUnnamed2347() { +buildUnnamed2383() { var o = new core.List<api.SubnetworksScopedListWarningData>(); o.add(buildSubnetworksScopedListWarningData()); o.add(buildSubnetworksScopedListWarningData()); return o; } -checkUnnamed2347(core.List<api.SubnetworksScopedListWarningData> o) { +checkUnnamed2383(core.List<api.SubnetworksScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworksScopedListWarningData(o[0]); checkSubnetworksScopedListWarningData(o[1]); @@ -7804,7 +7876,7 @@ buildCounterSubnetworksScopedListWarning++; if (buildCounterSubnetworksScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2347(); + o.data = buildUnnamed2383(); o.message = "foo"; } buildCounterSubnetworksScopedListWarning--; @@ -7815,7 +7887,7 @@ buildCounterSubnetworksScopedListWarning++; if (buildCounterSubnetworksScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2347(o.data); + checkUnnamed2383(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterSubnetworksScopedListWarning--; @@ -7826,7 +7898,7 @@ var o = new api.SubnetworksScopedList(); buildCounterSubnetworksScopedList++; if (buildCounterSubnetworksScopedList < 3) { - o.subnetworks = buildUnnamed2346(); + o.subnetworks = buildUnnamed2382(); o.warning = buildSubnetworksScopedListWarning(); } buildCounterSubnetworksScopedList--; @@ -7836,7 +7908,7 @@ checkSubnetworksScopedList(api.SubnetworksScopedList o) { buildCounterSubnetworksScopedList++; if (buildCounterSubnetworksScopedList < 3) { - checkUnnamed2346(o.subnetworks); + checkUnnamed2382(o.subnetworks); checkSubnetworksScopedListWarning(o.warning); } buildCounterSubnetworksScopedList--; @@ -7888,14 +7960,14 @@ buildCounterTCPHealthCheck--; } -buildUnnamed2348() { +buildUnnamed2384() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2348(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')); @@ -7907,7 +7979,7 @@ buildCounterTags++; if (buildCounterTags < 3) { o.fingerprint = "foo"; - o.items = buildUnnamed2348(); + o.items = buildUnnamed2384(); } buildCounterTags--; return o; @@ -7917,7 +7989,7 @@ buildCounterTags++; if (buildCounterTags < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2348(o.items); + checkUnnamed2384(o.items); } buildCounterTags--; } @@ -7953,14 +8025,14 @@ buildCounterTargetHttpProxy--; } -buildUnnamed2349() { +buildUnnamed2385() { var o = new core.List<api.TargetHttpProxy>(); o.add(buildTargetHttpProxy()); o.add(buildTargetHttpProxy()); return o; } -checkUnnamed2349(core.List<api.TargetHttpProxy> o) { +checkUnnamed2385(core.List<api.TargetHttpProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpProxy(o[0]); checkTargetHttpProxy(o[1]); @@ -7972,7 +8044,7 @@ buildCounterTargetHttpProxyList++; if (buildCounterTargetHttpProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2349(); + o.items = buildUnnamed2385(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7985,7 +8057,7 @@ buildCounterTargetHttpProxyList++; if (buildCounterTargetHttpProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2349(o.items); + checkUnnamed2385(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7993,14 +8065,14 @@ buildCounterTargetHttpProxyList--; } -buildUnnamed2350() { +buildUnnamed2386() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2350(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')); @@ -8011,7 +8083,7 @@ var o = new api.TargetHttpsProxiesSetSslCertificatesRequest(); buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { - o.sslCertificates = buildUnnamed2350(); + o.sslCertificates = buildUnnamed2386(); } buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; return o; @@ -8020,19 +8092,19 @@ checkTargetHttpsProxiesSetSslCertificatesRequest(api.TargetHttpsProxiesSetSslCertificatesRequest o) { buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { - checkUnnamed2350(o.sslCertificates); + checkUnnamed2386(o.sslCertificates); } buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; } -buildUnnamed2351() { +buildUnnamed2387() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2351(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')); @@ -8049,7 +8121,7 @@ o.kind = "foo"; o.name = "foo"; o.selfLink = "foo"; - o.sslCertificates = buildUnnamed2351(); + o.sslCertificates = buildUnnamed2387(); o.urlMap = "foo"; } buildCounterTargetHttpsProxy--; @@ -8065,20 +8137,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2351(o.sslCertificates); + checkUnnamed2387(o.sslCertificates); unittest.expect(o.urlMap, unittest.equals('foo')); } buildCounterTargetHttpsProxy--; } -buildUnnamed2352() { +buildUnnamed2388() { var o = new core.List<api.TargetHttpsProxy>(); o.add(buildTargetHttpsProxy()); o.add(buildTargetHttpsProxy()); return o; } -checkUnnamed2352(core.List<api.TargetHttpsProxy> o) { +checkUnnamed2388(core.List<api.TargetHttpsProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpsProxy(o[0]); checkTargetHttpsProxy(o[1]); @@ -8090,7 +8162,7 @@ buildCounterTargetHttpsProxyList++; if (buildCounterTargetHttpsProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2352(); + o.items = buildUnnamed2388(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -8103,7 +8175,7 @@ buildCounterTargetHttpsProxyList++; if (buildCounterTargetHttpsProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2352(o.items); + checkUnnamed2388(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -8146,14 +8218,14 @@ buildCounterTargetInstance--; } -buildUnnamed2353() { +buildUnnamed2389() { var o = new core.Map<core.String, api.TargetInstancesScopedList>(); o["x"] = buildTargetInstancesScopedList(); o["y"] = buildTargetInstancesScopedList(); return o; } -checkUnnamed2353(core.Map<core.String, api.TargetInstancesScopedList> o) { +checkUnnamed2389(core.Map<core.String, api.TargetInstancesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstancesScopedList(o["x"]); checkTargetInstancesScopedList(o["y"]); @@ -8165,7 +8237,7 @@ buildCounterTargetInstanceAggregatedList++; if (buildCounterTargetInstanceAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2353(); + o.items = buildUnnamed2389(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -8178,7 +8250,7 @@ buildCounterTargetInstanceAggregatedList++; if (buildCounterTargetInstanceAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2353(o.items); + checkUnnamed2389(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -8186,14 +8258,14 @@ buildCounterTargetInstanceAggregatedList--; } -buildUnnamed2354() { +buildUnnamed2390() { var o = new core.List<api.TargetInstance>(); o.add(buildTargetInstance()); o.add(buildTargetInstance()); return o; } -checkUnnamed2354(core.List<api.TargetInstance> o) { +checkUnnamed2390(core.List<api.TargetInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstance(o[0]); checkTargetInstance(o[1]); @@ -8205,7 +8277,7 @@ buildCounterTargetInstanceList++; if (buildCounterTargetInstanceList < 3) { o.id = "foo"; - o.items = buildUnnamed2354(); + o.items = buildUnnamed2390(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -8218,7 +8290,7 @@ buildCounterTargetInstanceList++; if (buildCounterTargetInstanceList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2354(o.items); + checkUnnamed2390(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -8226,14 +8298,14 @@ buildCounterTargetInstanceList--; } -buildUnnamed2355() { +buildUnnamed2391() { var o = new core.List<api.TargetInstance>(); o.add(buildTargetInstance()); o.add(buildTargetInstance()); return o; } -checkUnnamed2355(core.List<api.TargetInstance> o) { +checkUnnamed2391(core.List<api.TargetInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstance(o[0]); checkTargetInstance(o[1]); @@ -8260,14 +8332,14 @@ buildCounterTargetInstancesScopedListWarningData--; } -buildUnnamed2356() { +buildUnnamed2392() { var o = new core.List<api.TargetInstancesScopedListWarningData>(); o.add(buildTargetInstancesScopedListWarningData()); o.add(buildTargetInstancesScopedListWarningData()); return o; } -checkUnnamed2356(core.List<api.TargetInstancesScopedListWarningData> o) { +checkUnnamed2392(core.List<api.TargetInstancesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstancesScopedListWarningData(o[0]); checkTargetInstancesScopedListWarningData(o[1]); @@ -8279,7 +8351,7 @@ buildCounterTargetInstancesScopedListWarning++; if (buildCounterTargetInstancesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2356(); + o.data = buildUnnamed2392(); o.message = "foo"; } buildCounterTargetInstancesScopedListWarning--; @@ -8290,7 +8362,7 @@ buildCounterTargetInstancesScopedListWarning++; if (buildCounterTargetInstancesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2356(o.data); + checkUnnamed2392(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetInstancesScopedListWarning--; @@ -8301,7 +8373,7 @@ var o = new api.TargetInstancesScopedList(); buildCounterTargetInstancesScopedList++; if (buildCounterTargetInstancesScopedList < 3) { - o.targetInstances = buildUnnamed2355(); + o.targetInstances = buildUnnamed2391(); o.warning = buildTargetInstancesScopedListWarning(); } buildCounterTargetInstancesScopedList--; @@ -8311,33 +8383,33 @@ checkTargetInstancesScopedList(api.TargetInstancesScopedList o) { buildCounterTargetInstancesScopedList++; if (buildCounterTargetInstancesScopedList < 3) { - checkUnnamed2355(o.targetInstances); + checkUnnamed2391(o.targetInstances); checkTargetInstancesScopedListWarning(o.warning); } buildCounterTargetInstancesScopedList--; } -buildUnnamed2357() { +buildUnnamed2393() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2357(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')); } -buildUnnamed2358() { +buildUnnamed2394() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2358(core.List<core.String> o) { +checkUnnamed2394(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8352,9 +8424,9 @@ o.creationTimestamp = "foo"; o.description = "foo"; o.failoverRatio = 42.0; - o.healthChecks = buildUnnamed2357(); + o.healthChecks = buildUnnamed2393(); o.id = "foo"; - o.instances = buildUnnamed2358(); + o.instances = buildUnnamed2394(); o.kind = "foo"; o.name = "foo"; o.region = "foo"; @@ -8372,9 +8444,9 @@ unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.failoverRatio, unittest.equals(42.0)); - checkUnnamed2357(o.healthChecks); + checkUnnamed2393(o.healthChecks); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2358(o.instances); + checkUnnamed2394(o.instances); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); @@ -8384,14 +8456,14 @@ buildCounterTargetPool--; } -buildUnnamed2359() { +buildUnnamed2395() { var o = new core.Map<core.String, api.TargetPoolsScopedList>(); o["x"] = buildTargetPoolsScopedList(); o["y"] = buildTargetPoolsScopedList(); return o; } -checkUnnamed2359(core.Map<core.String, api.TargetPoolsScopedList> o) { +checkUnnamed2395(core.Map<core.String, api.TargetPoolsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolsScopedList(o["x"]); checkTargetPoolsScopedList(o["y"]); @@ -8403,7 +8475,7 @@ buildCounterTargetPoolAggregatedList++; if (buildCounterTargetPoolAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2359(); + o.items = buildUnnamed2395(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -8416,7 +8488,7 @@ buildCounterTargetPoolAggregatedList++; if (buildCounterTargetPoolAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2359(o.items); + checkUnnamed2395(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -8424,14 +8496,14 @@ buildCounterTargetPoolAggregatedList--; } -buildUnnamed2360() { +buildUnnamed2396() { var o = new core.List<api.HealthStatus>(); o.add(buildHealthStatus()); o.add(buildHealthStatus()); return o; } -checkUnnamed2360(core.List<api.HealthStatus> o) { +checkUnnamed2396(core.List<api.HealthStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthStatus(o[0]); checkHealthStatus(o[1]); @@ -8442,7 +8514,7 @@ var o = new api.TargetPoolInstanceHealth(); buildCounterTargetPoolInstanceHealth++; if (buildCounterTargetPoolInstanceHealth < 3) { - o.healthStatus = buildUnnamed2360(); + o.healthStatus = buildUnnamed2396(); o.kind = "foo"; } buildCounterTargetPoolInstanceHealth--; @@ -8452,20 +8524,20 @@ checkTargetPoolInstanceHealth(api.TargetPoolInstanceHealth o) { buildCounterTargetPoolInstanceHealth++; if (buildCounterTargetPoolInstanceHealth < 3) { - checkUnnamed2360(o.healthStatus); + checkUnnamed2396(o.healthStatus); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTargetPoolInstanceHealth--; } -buildUnnamed2361() { +buildUnnamed2397() { var o = new core.List<api.TargetPool>(); o.add(buildTargetPool()); o.add(buildTargetPool()); return o; } -checkUnnamed2361(core.List<api.TargetPool> o) { +checkUnnamed2397(core.List<api.TargetPool> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPool(o[0]); checkTargetPool(o[1]); @@ -8477,7 +8549,7 @@ buildCounterTargetPoolList++; if (buildCounterTargetPoolList < 3) { o.id = "foo"; - o.items = buildUnnamed2361(); + o.items = buildUnnamed2397(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -8490,7 +8562,7 @@ buildCounterTargetPoolList++; if (buildCounterTargetPoolList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2361(o.items); + checkUnnamed2397(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -8498,14 +8570,14 @@ buildCounterTargetPoolList--; } -buildUnnamed2362() { +buildUnnamed2398() { var o = new core.List<api.HealthCheckReference>(); o.add(buildHealthCheckReference()); o.add(buildHealthCheckReference()); return o; } -checkUnnamed2362(core.List<api.HealthCheckReference> o) { +checkUnnamed2398(core.List<api.HealthCheckReference> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheckReference(o[0]); checkHealthCheckReference(o[1]); @@ -8516,7 +8588,7 @@ var o = new api.TargetPoolsAddHealthCheckRequest(); buildCounterTargetPoolsAddHealthCheckRequest++; if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { - o.healthChecks = buildUnnamed2362(); + o.healthChecks = buildUnnamed2398(); } buildCounterTargetPoolsAddHealthCheckRequest--; return o; @@ -8525,19 +8597,19 @@ checkTargetPoolsAddHealthCheckRequest(api.TargetPoolsAddHealthCheckRequest o) { buildCounterTargetPoolsAddHealthCheckRequest++; if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { - checkUnnamed2362(o.healthChecks); + checkUnnamed2398(o.healthChecks); } buildCounterTargetPoolsAddHealthCheckRequest--; } -buildUnnamed2363() { +buildUnnamed2399() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2363(core.List<api.InstanceReference> o) { +checkUnnamed2399(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -8548,7 +8620,7 @@ var o = new api.TargetPoolsAddInstanceRequest(); buildCounterTargetPoolsAddInstanceRequest++; if (buildCounterTargetPoolsAddInstanceRequest < 3) { - o.instances = buildUnnamed2363(); + o.instances = buildUnnamed2399(); } buildCounterTargetPoolsAddInstanceRequest--; return o; @@ -8557,19 +8629,19 @@ checkTargetPoolsAddInstanceRequest(api.TargetPoolsAddInstanceRequest o) { buildCounterTargetPoolsAddInstanceRequest++; if (buildCounterTargetPoolsAddInstanceRequest < 3) { - checkUnnamed2363(o.instances); + checkUnnamed2399(o.instances); } buildCounterTargetPoolsAddInstanceRequest--; } -buildUnnamed2364() { +buildUnnamed2400() { var o = new core.List<api.HealthCheckReference>(); o.add(buildHealthCheckReference()); o.add(buildHealthCheckReference()); return o; } -checkUnnamed2364(core.List<api.HealthCheckReference> o) { +checkUnnamed2400(core.List<api.HealthCheckReference> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheckReference(o[0]); checkHealthCheckReference(o[1]); @@ -8580,7 +8652,7 @@ var o = new api.TargetPoolsRemoveHealthCheckRequest(); buildCounterTargetPoolsRemoveHealthCheckRequest++; if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { - o.healthChecks = buildUnnamed2364(); + o.healthChecks = buildUnnamed2400(); } buildCounterTargetPoolsRemoveHealthCheckRequest--; return o; @@ -8589,19 +8661,19 @@ checkTargetPoolsRemoveHealthCheckRequest(api.TargetPoolsRemoveHealthCheckRequest o) { buildCounterTargetPoolsRemoveHealthCheckRequest++; if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { - checkUnnamed2364(o.healthChecks); + checkUnnamed2400(o.healthChecks); } buildCounterTargetPoolsRemoveHealthCheckRequest--; } -buildUnnamed2365() { +buildUnnamed2401() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2365(core.List<api.InstanceReference> o) { +checkUnnamed2401(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -8612,7 +8684,7 @@ var o = new api.TargetPoolsRemoveInstanceRequest(); buildCounterTargetPoolsRemoveInstanceRequest++; if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { - o.instances = buildUnnamed2365(); + o.instances = buildUnnamed2401(); } buildCounterTargetPoolsRemoveInstanceRequest--; return o; @@ -8621,19 +8693,19 @@ checkTargetPoolsRemoveInstanceRequest(api.TargetPoolsRemoveInstanceRequest o) { buildCounterTargetPoolsRemoveInstanceRequest++; if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { - checkUnnamed2365(o.instances); + checkUnnamed2401(o.instances); } buildCounterTargetPoolsRemoveInstanceRequest--; } -buildUnnamed2366() { +buildUnnamed2402() { var o = new core.List<api.TargetPool>(); o.add(buildTargetPool()); o.add(buildTargetPool()); return o; } -checkUnnamed2366(core.List<api.TargetPool> o) { +checkUnnamed2402(core.List<api.TargetPool> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPool(o[0]); checkTargetPool(o[1]); @@ -8660,14 +8732,14 @@ buildCounterTargetPoolsScopedListWarningData--; } -buildUnnamed2367() { +buildUnnamed2403() { var o = new core.List<api.TargetPoolsScopedListWarningData>(); o.add(buildTargetPoolsScopedListWarningData()); o.add(buildTargetPoolsScopedListWarningData()); return o; } -checkUnnamed2367(core.List<api.TargetPoolsScopedListWarningData> o) { +checkUnnamed2403(core.List<api.TargetPoolsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolsScopedListWarningData(o[0]); checkTargetPoolsScopedListWarningData(o[1]); @@ -8679,7 +8751,7 @@ buildCounterTargetPoolsScopedListWarning++; if (buildCounterTargetPoolsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2367(); + o.data = buildUnnamed2403(); o.message = "foo"; } buildCounterTargetPoolsScopedListWarning--; @@ -8690,7 +8762,7 @@ buildCounterTargetPoolsScopedListWarning++; if (buildCounterTargetPoolsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2367(o.data); + checkUnnamed2403(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetPoolsScopedListWarning--; @@ -8701,7 +8773,7 @@ var o = new api.TargetPoolsScopedList(); buildCounterTargetPoolsScopedList++; if (buildCounterTargetPoolsScopedList < 3) { - o.targetPools = buildUnnamed2366(); + o.targetPools = buildUnnamed2402(); o.warning = buildTargetPoolsScopedListWarning(); } buildCounterTargetPoolsScopedList--; @@ -8711,7 +8783,7 @@ checkTargetPoolsScopedList(api.TargetPoolsScopedList o) { buildCounterTargetPoolsScopedList++; if (buildCounterTargetPoolsScopedList < 3) { - checkUnnamed2366(o.targetPools); + checkUnnamed2402(o.targetPools); checkTargetPoolsScopedListWarning(o.warning); } buildCounterTargetPoolsScopedList--; @@ -8774,14 +8846,14 @@ buildCounterTargetSslProxiesSetProxyHeaderRequest--; } -buildUnnamed2368() { +buildUnnamed2404() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2368(core.List<core.String> o) { +checkUnnamed2404(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8792,7 +8864,7 @@ var o = new api.TargetSslProxiesSetSslCertificatesRequest(); buildCounterTargetSslProxiesSetSslCertificatesRequest++; if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { - o.sslCertificates = buildUnnamed2368(); + o.sslCertificates = buildUnnamed2404(); } buildCounterTargetSslProxiesSetSslCertificatesRequest--; return o; @@ -8801,19 +8873,19 @@ checkTargetSslProxiesSetSslCertificatesRequest(api.TargetSslProxiesSetSslCertificatesRequest o) { buildCounterTargetSslProxiesSetSslCertificatesRequest++; if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { - checkUnnamed2368(o.sslCertificates); + checkUnnamed2404(o.sslCertificates); } buildCounterTargetSslProxiesSetSslCertificatesRequest--; } -buildUnnamed2369() { +buildUnnamed2405() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2369(core.List<core.String> o) { +checkUnnamed2405(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8832,7 +8904,7 @@ o.proxyHeader = "foo"; o.selfLink = "foo"; o.service = "foo"; - o.sslCertificates = buildUnnamed2369(); + o.sslCertificates = buildUnnamed2405(); } buildCounterTargetSslProxy--; return o; @@ -8849,19 +8921,19 @@ unittest.expect(o.proxyHeader, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.service, unittest.equals('foo')); - checkUnnamed2369(o.sslCertificates); + checkUnnamed2405(o.sslCertificates); } buildCounterTargetSslProxy--; } -buildUnnamed2370() { +buildUnnamed2406() { var o = new core.List<api.TargetSslProxy>(); o.add(buildTargetSslProxy()); o.add(buildTargetSslProxy()); return o; } -checkUnnamed2370(core.List<api.TargetSslProxy> o) { +checkUnnamed2406(core.List<api.TargetSslProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetSslProxy(o[0]); checkTargetSslProxy(o[1]); @@ -8873,7 +8945,7 @@ buildCounterTargetSslProxyList++; if (buildCounterTargetSslProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2370(); + o.items = buildUnnamed2406(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -8886,7 +8958,7 @@ buildCounterTargetSslProxyList++; if (buildCounterTargetSslProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2370(o.items); + checkUnnamed2406(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -8965,14 +9037,14 @@ buildCounterTargetTcpProxy--; } -buildUnnamed2371() { +buildUnnamed2407() { var o = new core.List<api.TargetTcpProxy>(); o.add(buildTargetTcpProxy()); o.add(buildTargetTcpProxy()); return o; } -checkUnnamed2371(core.List<api.TargetTcpProxy> o) { +checkUnnamed2407(core.List<api.TargetTcpProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetTcpProxy(o[0]); checkTargetTcpProxy(o[1]); @@ -8984,7 +9056,7 @@ buildCounterTargetTcpProxyList++; if (buildCounterTargetTcpProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2371(); + o.items = buildUnnamed2407(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -8997,7 +9069,7 @@ buildCounterTargetTcpProxyList++; if (buildCounterTargetTcpProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2371(o.items); + checkUnnamed2407(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -9005,27 +9077,27 @@ buildCounterTargetTcpProxyList--; } -buildUnnamed2372() { +buildUnnamed2408() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2372(core.List<core.String> o) { +checkUnnamed2408(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2373() { +buildUnnamed2409() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2373(core.List<core.String> o) { +checkUnnamed2409(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9038,7 +9110,7 @@ if (buildCounterTargetVpnGateway < 3) { o.creationTimestamp = "foo"; o.description = "foo"; - o.forwardingRules = buildUnnamed2372(); + o.forwardingRules = buildUnnamed2408(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -9046,7 +9118,7 @@ o.region = "foo"; o.selfLink = "foo"; o.status = "foo"; - o.tunnels = buildUnnamed2373(); + o.tunnels = buildUnnamed2409(); } buildCounterTargetVpnGateway--; return o; @@ -9057,7 +9129,7 @@ if (buildCounterTargetVpnGateway < 3) { unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2372(o.forwardingRules); + checkUnnamed2408(o.forwardingRules); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -9065,19 +9137,19 @@ unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed2373(o.tunnels); + checkUnnamed2409(o.tunnels); } buildCounterTargetVpnGateway--; } -buildUnnamed2374() { +buildUnnamed2410() { var o = new core.Map<core.String, api.TargetVpnGatewaysScopedList>(); o["x"] = buildTargetVpnGatewaysScopedList(); o["y"] = buildTargetVpnGatewaysScopedList(); return o; } -checkUnnamed2374(core.Map<core.String, api.TargetVpnGatewaysScopedList> o) { +checkUnnamed2410(core.Map<core.String, api.TargetVpnGatewaysScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGatewaysScopedList(o["x"]); checkTargetVpnGatewaysScopedList(o["y"]); @@ -9089,7 +9161,7 @@ buildCounterTargetVpnGatewayAggregatedList++; if (buildCounterTargetVpnGatewayAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2374(); + o.items = buildUnnamed2410(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -9102,7 +9174,7 @@ buildCounterTargetVpnGatewayAggregatedList++; if (buildCounterTargetVpnGatewayAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2374(o.items); + checkUnnamed2410(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -9110,14 +9182,14 @@ buildCounterTargetVpnGatewayAggregatedList--; } -buildUnnamed2375() { +buildUnnamed2411() { var o = new core.List<api.TargetVpnGateway>(); o.add(buildTargetVpnGateway()); o.add(buildTargetVpnGateway()); return o; } -checkUnnamed2375(core.List<api.TargetVpnGateway> o) { +checkUnnamed2411(core.List<api.TargetVpnGateway> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGateway(o[0]); checkTargetVpnGateway(o[1]); @@ -9129,7 +9201,7 @@ buildCounterTargetVpnGatewayList++; if (buildCounterTargetVpnGatewayList < 3) { o.id = "foo"; - o.items = buildUnnamed2375(); + o.items = buildUnnamed2411(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -9142,7 +9214,7 @@ buildCounterTargetVpnGatewayList++; if (buildCounterTargetVpnGatewayList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2375(o.items); + checkUnnamed2411(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -9150,14 +9222,14 @@ buildCounterTargetVpnGatewayList--; } -buildUnnamed2376() { +buildUnnamed2412() { var o = new core.List<api.TargetVpnGateway>(); o.add(buildTargetVpnGateway()); o.add(buildTargetVpnGateway()); return o; } -checkUnnamed2376(core.List<api.TargetVpnGateway> o) { +checkUnnamed2412(core.List<api.TargetVpnGateway> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGateway(o[0]); checkTargetVpnGateway(o[1]); @@ -9184,14 +9256,14 @@ buildCounterTargetVpnGatewaysScopedListWarningData--; } -buildUnnamed2377() { +buildUnnamed2413() { var o = new core.List<api.TargetVpnGatewaysScopedListWarningData>(); o.add(buildTargetVpnGatewaysScopedListWarningData()); o.add(buildTargetVpnGatewaysScopedListWarningData()); return o; } -checkUnnamed2377(core.List<api.TargetVpnGatewaysScopedListWarningData> o) { +checkUnnamed2413(core.List<api.TargetVpnGatewaysScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGatewaysScopedListWarningData(o[0]); checkTargetVpnGatewaysScopedListWarningData(o[1]); @@ -9203,7 +9275,7 @@ buildCounterTargetVpnGatewaysScopedListWarning++; if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2377(); + o.data = buildUnnamed2413(); o.message = "foo"; } buildCounterTargetVpnGatewaysScopedListWarning--; @@ -9214,7 +9286,7 @@ buildCounterTargetVpnGatewaysScopedListWarning++; if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2377(o.data); + checkUnnamed2413(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetVpnGatewaysScopedListWarning--; @@ -9225,7 +9297,7 @@ var o = new api.TargetVpnGatewaysScopedList(); buildCounterTargetVpnGatewaysScopedList++; if (buildCounterTargetVpnGatewaysScopedList < 3) { - o.targetVpnGateways = buildUnnamed2376(); + o.targetVpnGateways = buildUnnamed2412(); o.warning = buildTargetVpnGatewaysScopedListWarning(); } buildCounterTargetVpnGatewaysScopedList--; @@ -9235,7 +9307,7 @@ checkTargetVpnGatewaysScopedList(api.TargetVpnGatewaysScopedList o) { buildCounterTargetVpnGatewaysScopedList++; if (buildCounterTargetVpnGatewaysScopedList < 3) { - checkUnnamed2376(o.targetVpnGateways); + checkUnnamed2412(o.targetVpnGateways); checkTargetVpnGatewaysScopedListWarning(o.warning); } buildCounterTargetVpnGatewaysScopedList--; @@ -9266,40 +9338,40 @@ buildCounterTestFailure--; } -buildUnnamed2378() { +buildUnnamed2414() { var o = new core.List<api.HostRule>(); o.add(buildHostRule()); o.add(buildHostRule()); return o; } -checkUnnamed2378(core.List<api.HostRule> o) { +checkUnnamed2414(core.List<api.HostRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHostRule(o[0]); checkHostRule(o[1]); } -buildUnnamed2379() { +buildUnnamed2415() { var o = new core.List<api.PathMatcher>(); o.add(buildPathMatcher()); o.add(buildPathMatcher()); return o; } -checkUnnamed2379(core.List<api.PathMatcher> o) { +checkUnnamed2415(core.List<api.PathMatcher> o) { unittest.expect(o, unittest.hasLength(2)); checkPathMatcher(o[0]); checkPathMatcher(o[1]); } -buildUnnamed2380() { +buildUnnamed2416() { var o = new core.List<api.UrlMapTest>(); o.add(buildUrlMapTest()); o.add(buildUrlMapTest()); return o; } -checkUnnamed2380(core.List<api.UrlMapTest> o) { +checkUnnamed2416(core.List<api.UrlMapTest> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMapTest(o[0]); checkUrlMapTest(o[1]); @@ -9314,13 +9386,13 @@ o.defaultService = "foo"; o.description = "foo"; o.fingerprint = "foo"; - o.hostRules = buildUnnamed2378(); + o.hostRules = buildUnnamed2414(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.pathMatchers = buildUnnamed2379(); + o.pathMatchers = buildUnnamed2415(); o.selfLink = "foo"; - o.tests = buildUnnamed2380(); + o.tests = buildUnnamed2416(); } buildCounterUrlMap--; return o; @@ -9333,25 +9405,25 @@ unittest.expect(o.defaultService, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2378(o.hostRules); + checkUnnamed2414(o.hostRules); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2379(o.pathMatchers); + checkUnnamed2415(o.pathMatchers); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2380(o.tests); + checkUnnamed2416(o.tests); } buildCounterUrlMap--; } -buildUnnamed2381() { +buildUnnamed2417() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed2381(core.List<api.UrlMap> o) { +checkUnnamed2417(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); @@ -9363,7 +9435,7 @@ buildCounterUrlMapList++; if (buildCounterUrlMapList < 3) { o.id = "foo"; - o.items = buildUnnamed2381(); + o.items = buildUnnamed2417(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -9376,7 +9448,7 @@ buildCounterUrlMapList++; if (buildCounterUrlMapList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2381(o.items); + checkUnnamed2417(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -9428,27 +9500,27 @@ buildCounterUrlMapTest--; } -buildUnnamed2382() { +buildUnnamed2418() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2382(core.List<core.String> o) { +checkUnnamed2418(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2383() { +buildUnnamed2419() { var o = new core.List<api.TestFailure>(); o.add(buildTestFailure()); o.add(buildTestFailure()); return o; } -checkUnnamed2383(core.List<api.TestFailure> o) { +checkUnnamed2419(core.List<api.TestFailure> o) { unittest.expect(o, unittest.hasLength(2)); checkTestFailure(o[0]); checkTestFailure(o[1]); @@ -9459,9 +9531,9 @@ var o = new api.UrlMapValidationResult(); buildCounterUrlMapValidationResult++; if (buildCounterUrlMapValidationResult < 3) { - o.loadErrors = buildUnnamed2382(); + o.loadErrors = buildUnnamed2418(); o.loadSucceeded = true; - o.testFailures = buildUnnamed2383(); + o.testFailures = buildUnnamed2419(); o.testPassed = true; } buildCounterUrlMapValidationResult--; @@ -9471,9 +9543,9 @@ checkUrlMapValidationResult(api.UrlMapValidationResult o) { buildCounterUrlMapValidationResult++; if (buildCounterUrlMapValidationResult < 3) { - checkUnnamed2382(o.loadErrors); + checkUnnamed2418(o.loadErrors); unittest.expect(o.loadSucceeded, unittest.isTrue); - checkUnnamed2383(o.testFailures); + checkUnnamed2419(o.testFailures); unittest.expect(o.testPassed, unittest.isTrue); } buildCounterUrlMapValidationResult--; @@ -9538,27 +9610,27 @@ buildCounterUsageExportLocation--; } -buildUnnamed2384() { +buildUnnamed2420() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2384(core.List<core.String> o) { +checkUnnamed2420(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2385() { +buildUnnamed2421() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2385(core.List<core.String> o) { +checkUnnamed2421(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9575,11 +9647,11 @@ o.id = "foo"; o.ikeVersion = 42; o.kind = "foo"; - o.localTrafficSelector = buildUnnamed2384(); + o.localTrafficSelector = buildUnnamed2420(); o.name = "foo"; o.peerIp = "foo"; o.region = "foo"; - o.remoteTrafficSelector = buildUnnamed2385(); + o.remoteTrafficSelector = buildUnnamed2421(); o.router = "foo"; o.selfLink = "foo"; o.sharedSecret = "foo"; @@ -9600,11 +9672,11 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.ikeVersion, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2384(o.localTrafficSelector); + checkUnnamed2420(o.localTrafficSelector); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.peerIp, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed2385(o.remoteTrafficSelector); + checkUnnamed2421(o.remoteTrafficSelector); unittest.expect(o.router, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.sharedSecret, unittest.equals('foo')); @@ -9615,14 +9687,14 @@ buildCounterVpnTunnel--; } -buildUnnamed2386() { +buildUnnamed2422() { var o = new core.Map<core.String, api.VpnTunnelsScopedList>(); o["x"] = buildVpnTunnelsScopedList(); o["y"] = buildVpnTunnelsScopedList(); return o; } -checkUnnamed2386(core.Map<core.String, api.VpnTunnelsScopedList> o) { +checkUnnamed2422(core.Map<core.String, api.VpnTunnelsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelsScopedList(o["x"]); checkVpnTunnelsScopedList(o["y"]); @@ -9634,7 +9706,7 @@ buildCounterVpnTunnelAggregatedList++; if (buildCounterVpnTunnelAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2386(); + o.items = buildUnnamed2422(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -9647,7 +9719,7 @@ buildCounterVpnTunnelAggregatedList++; if (buildCounterVpnTunnelAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2386(o.items); + checkUnnamed2422(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -9655,14 +9727,14 @@ buildCounterVpnTunnelAggregatedList--; } -buildUnnamed2387() { +buildUnnamed2423() { var o = new core.List<api.VpnTunnel>(); o.add(buildVpnTunnel()); o.add(buildVpnTunnel()); return o; } -checkUnnamed2387(core.List<api.VpnTunnel> o) { +checkUnnamed2423(core.List<api.VpnTunnel> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnel(o[0]); checkVpnTunnel(o[1]); @@ -9674,7 +9746,7 @@ buildCounterVpnTunnelList++; if (buildCounterVpnTunnelList < 3) { o.id = "foo"; - o.items = buildUnnamed2387(); + o.items = buildUnnamed2423(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -9687,7 +9759,7 @@ buildCounterVpnTunnelList++; if (buildCounterVpnTunnelList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2387(o.items); + checkUnnamed2423(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -9695,14 +9767,14 @@ buildCounterVpnTunnelList--; } -buildUnnamed2388() { +buildUnnamed2424() { var o = new core.List<api.VpnTunnel>(); o.add(buildVpnTunnel()); o.add(buildVpnTunnel()); return o; } -checkUnnamed2388(core.List<api.VpnTunnel> o) { +checkUnnamed2424(core.List<api.VpnTunnel> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnel(o[0]); checkVpnTunnel(o[1]); @@ -9729,14 +9801,14 @@ buildCounterVpnTunnelsScopedListWarningData--; } -buildUnnamed2389() { +buildUnnamed2425() { var o = new core.List<api.VpnTunnelsScopedListWarningData>(); o.add(buildVpnTunnelsScopedListWarningData()); o.add(buildVpnTunnelsScopedListWarningData()); return o; } -checkUnnamed2389(core.List<api.VpnTunnelsScopedListWarningData> o) { +checkUnnamed2425(core.List<api.VpnTunnelsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelsScopedListWarningData(o[0]); checkVpnTunnelsScopedListWarningData(o[1]); @@ -9748,7 +9820,7 @@ buildCounterVpnTunnelsScopedListWarning++; if (buildCounterVpnTunnelsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2389(); + o.data = buildUnnamed2425(); o.message = "foo"; } buildCounterVpnTunnelsScopedListWarning--; @@ -9759,7 +9831,7 @@ buildCounterVpnTunnelsScopedListWarning++; if (buildCounterVpnTunnelsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2389(o.data); + checkUnnamed2425(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterVpnTunnelsScopedListWarning--; @@ -9770,7 +9842,7 @@ var o = new api.VpnTunnelsScopedList(); buildCounterVpnTunnelsScopedList++; if (buildCounterVpnTunnelsScopedList < 3) { - o.vpnTunnels = buildUnnamed2388(); + o.vpnTunnels = buildUnnamed2424(); o.warning = buildVpnTunnelsScopedListWarning(); } buildCounterVpnTunnelsScopedList--; @@ -9780,20 +9852,20 @@ checkVpnTunnelsScopedList(api.VpnTunnelsScopedList o) { buildCounterVpnTunnelsScopedList++; if (buildCounterVpnTunnelsScopedList < 3) { - checkUnnamed2388(o.vpnTunnels); + checkUnnamed2424(o.vpnTunnels); checkVpnTunnelsScopedListWarning(o.warning); } buildCounterVpnTunnelsScopedList--; } -buildUnnamed2390() { +buildUnnamed2426() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed2390(core.List<api.Project> o) { +checkUnnamed2426(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -9805,7 +9877,7 @@ buildCounterXpnHostList++; if (buildCounterXpnHostList < 3) { o.id = "foo"; - o.items = buildUnnamed2390(); + o.items = buildUnnamed2426(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -9818,7 +9890,7 @@ buildCounterXpnHostList++; if (buildCounterXpnHostList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2390(o.items); + checkUnnamed2426(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -9882,14 +9954,14 @@ buildCounterZone--; } -buildUnnamed2391() { +buildUnnamed2427() { var o = new core.List<api.Zone>(); o.add(buildZone()); o.add(buildZone()); return o; } -checkUnnamed2391(core.List<api.Zone> o) { +checkUnnamed2427(core.List<api.Zone> o) { unittest.expect(o, unittest.hasLength(2)); checkZone(o[0]); checkZone(o[1]); @@ -9901,7 +9973,7 @@ buildCounterZoneList++; if (buildCounterZoneList < 3) { o.id = "foo"; - o.items = buildUnnamed2391(); + o.items = buildUnnamed2427(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -9914,7 +9986,7 @@ buildCounterZoneList++; if (buildCounterZoneList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2391(o.items); + checkUnnamed2427(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -9922,14 +9994,14 @@ buildCounterZoneList--; } -buildUnnamed2392() { +buildUnnamed2428() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2392(core.Map<core.String, core.String> o) { +checkUnnamed2428(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -9941,7 +10013,7 @@ buildCounterZoneSetLabelsRequest++; if (buildCounterZoneSetLabelsRequest < 3) { o.labelFingerprint = "foo"; - o.labels = buildUnnamed2392(); + o.labels = buildUnnamed2428(); } buildCounterZoneSetLabelsRequest--; return o; @@ -9951,7 +10023,7 @@ buildCounterZoneSetLabelsRequest++; if (buildCounterZoneSetLabelsRequest < 3) { unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed2392(o.labels); + checkUnnamed2428(o.labels); } buildCounterZoneSetLabelsRequest--; } @@ -10084,6 +10156,15 @@ }); + unittest.group("obj-schema-AliasIpRange", () { + unittest.test("to-json--from-json", () { + var o = buildAliasIpRange(); + var od = new api.AliasIpRange.fromJson(o.toJson()); + checkAliasIpRange(od); + }); + }); + + unittest.group("obj-schema-AttachedDisk", () { unittest.test("to-json--from-json", () { var o = buildAttachedDisk(); @@ -11884,6 +11965,15 @@ }); + unittest.group("obj-schema-SubnetworkSecondaryRange", () { + unittest.test("to-json--from-json", () { + var o = buildSubnetworkSecondaryRange(); + var od = new api.SubnetworkSecondaryRange.fromJson(o.toJson()); + checkSubnetworkSecondaryRange(od); + }); + }); + + unittest.group("obj-schema-SubnetworksExpandIpCidrRangeRequest", () { unittest.test("to-json--from-json", () { var o = buildSubnetworksExpandIpCidrRangeRequest();
diff --git a/generated/googleapis/test/consumersurveys/v2_test.dart b/generated/googleapis/test/consumersurveys/v2_test.dart index 4f48913..69034bc 100644 --- a/generated/googleapis/test/consumersurveys/v2_test.dart +++ b/generated/googleapis/test/consumersurveys/v2_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed107() { +buildUnnamed70() { var o = new core.List<api.FieldMask>(); o.add(buildFieldMask()); o.add(buildFieldMask()); return o; } -checkUnnamed107(core.List<api.FieldMask> o) { +checkUnnamed70(core.List<api.FieldMask> o) { unittest.expect(o, unittest.hasLength(2)); checkFieldMask(o[0]); checkFieldMask(o[1]); @@ -69,7 +69,7 @@ var o = new api.FieldMask(); buildCounterFieldMask++; if (buildCounterFieldMask < 3) { - o.fields = buildUnnamed107(); + o.fields = buildUnnamed70(); o.id = 42; } buildCounterFieldMask--; @@ -79,20 +79,20 @@ checkFieldMask(api.FieldMask o) { buildCounterFieldMask++; if (buildCounterFieldMask < 3) { - checkUnnamed107(o.fields); + checkUnnamed70(o.fields); unittest.expect(o.id, unittest.equals(42)); } buildCounterFieldMask--; } -buildUnnamed108() { +buildUnnamed71() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed108(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')); @@ -108,7 +108,7 @@ o.language = "foo"; o.mobileAppPanelId = "foo"; o.name = "foo"; - o.owners = buildUnnamed108(); + o.owners = buildUnnamed71(); } buildCounterMobileAppPanel--; return o; @@ -122,19 +122,19 @@ unittest.expect(o.language, unittest.equals('foo')); unittest.expect(o.mobileAppPanelId, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed108(o.owners); + checkUnnamed71(o.owners); } buildCounterMobileAppPanel--; } -buildUnnamed109() { +buildUnnamed72() { var o = new core.List<api.MobileAppPanel>(); o.add(buildMobileAppPanel()); o.add(buildMobileAppPanel()); return o; } -checkUnnamed109(core.List<api.MobileAppPanel> o) { +checkUnnamed72(core.List<api.MobileAppPanel> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileAppPanel(o[0]); checkMobileAppPanel(o[1]); @@ -147,7 +147,7 @@ if (buildCounterMobileAppPanelsListResponse < 3) { o.pageInfo = buildPageInfo(); o.requestId = "foo"; - o.resources = buildUnnamed109(); + o.resources = buildUnnamed72(); o.tokenPagination = buildTokenPagination(); } buildCounterMobileAppPanelsListResponse--; @@ -159,7 +159,7 @@ if (buildCounterMobileAppPanelsListResponse < 3) { checkPageInfo(o.pageInfo); unittest.expect(o.requestId, unittest.equals('foo')); - checkUnnamed109(o.resources); + checkUnnamed72(o.resources); checkTokenPagination(o.tokenPagination); } buildCounterMobileAppPanelsListResponse--; @@ -207,14 +207,14 @@ buildCounterResultsGetRequest--; } -buildUnnamed110() { +buildUnnamed73() { var o = new core.List<api.FieldMask>(); o.add(buildFieldMask()); o.add(buildFieldMask()); return o; } -checkUnnamed110(core.List<api.FieldMask> o) { +checkUnnamed73(core.List<api.FieldMask> o) { unittest.expect(o, unittest.hasLength(2)); checkFieldMask(o[0]); checkFieldMask(o[1]); @@ -225,7 +225,7 @@ var o = new api.ResultsMask(); buildCounterResultsMask++; if (buildCounterResultsMask < 3) { - o.fields = buildUnnamed110(); + o.fields = buildUnnamed73(); o.projection = "foo"; } buildCounterResultsMask--; @@ -235,33 +235,33 @@ checkResultsMask(api.ResultsMask o) { buildCounterResultsMask++; if (buildCounterResultsMask < 3) { - checkUnnamed110(o.fields); + checkUnnamed73(o.fields); unittest.expect(o.projection, unittest.equals('foo')); } buildCounterResultsMask--; } -buildUnnamed111() { +buildUnnamed74() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed111(core.List<core.String> o) { +checkUnnamed74(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed112() { +buildUnnamed75() { var o = new core.List<api.SurveyQuestion>(); o.add(buildSurveyQuestion()); o.add(buildSurveyQuestion()); return o; } -checkUnnamed112(core.List<api.SurveyQuestion> o) { +checkUnnamed75(core.List<api.SurveyQuestion> o) { unittest.expect(o, unittest.hasLength(2)); checkSurveyQuestion(o[0]); checkSurveyQuestion(o[1]); @@ -276,8 +276,8 @@ o.cost = buildSurveyCost(); o.customerData = "foo"; o.description = "foo"; - o.owners = buildUnnamed111(); - o.questions = buildUnnamed112(); + o.owners = buildUnnamed74(); + o.questions = buildUnnamed75(); o.rejectionReason = buildSurveyRejection(); o.state = "foo"; o.surveyUrlId = "foo"; @@ -295,8 +295,8 @@ checkSurveyCost(o.cost); unittest.expect(o.customerData, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed111(o.owners); - checkUnnamed112(o.questions); + checkUnnamed74(o.owners); + checkUnnamed75(o.questions); checkSurveyRejection(o.rejectionReason); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.surveyUrlId, unittest.equals('foo')); @@ -306,27 +306,27 @@ buildCounterSurvey--; } -buildUnnamed113() { +buildUnnamed76() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed113(core.List<core.String> o) { +checkUnnamed76(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed114() { +buildUnnamed77() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed114(core.List<core.String> o) { +checkUnnamed77(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -337,11 +337,11 @@ var o = new api.SurveyAudience(); buildCounterSurveyAudience++; if (buildCounterSurveyAudience < 3) { - o.ages = buildUnnamed113(); + o.ages = buildUnnamed76(); o.country = "foo"; o.countrySubdivision = "foo"; o.gender = "foo"; - o.languages = buildUnnamed114(); + o.languages = buildUnnamed77(); o.mobileAppPanelId = "foo"; o.populationSource = "foo"; } @@ -352,11 +352,11 @@ checkSurveyAudience(api.SurveyAudience o) { buildCounterSurveyAudience++; if (buildCounterSurveyAudience < 3) { - checkUnnamed113(o.ages); + checkUnnamed76(o.ages); unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.countrySubdivision, unittest.equals('foo')); unittest.expect(o.gender, unittest.equals('foo')); - checkUnnamed114(o.languages); + checkUnnamed77(o.languages); unittest.expect(o.mobileAppPanelId, unittest.equals('foo')); unittest.expect(o.populationSource, unittest.equals('foo')); } @@ -388,53 +388,53 @@ buildCounterSurveyCost--; } -buildUnnamed115() { +buildUnnamed78() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed115(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')); } -buildUnnamed116() { +buildUnnamed79() { var o = new core.List<api.SurveyQuestionImage>(); o.add(buildSurveyQuestionImage()); o.add(buildSurveyQuestionImage()); return o; } -checkUnnamed116(core.List<api.SurveyQuestionImage> o) { +checkUnnamed79(core.List<api.SurveyQuestionImage> o) { unittest.expect(o, unittest.hasLength(2)); checkSurveyQuestionImage(o[0]); checkSurveyQuestionImage(o[1]); } -buildUnnamed117() { +buildUnnamed80() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed117(core.List<core.String> o) { +checkUnnamed80(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed118() { +buildUnnamed81() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed118(core.List<core.String> o) { +checkUnnamed81(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -446,20 +446,20 @@ buildCounterSurveyQuestion++; if (buildCounterSurveyQuestion < 3) { o.answerOrder = "foo"; - o.answers = buildUnnamed115(); + o.answers = buildUnnamed78(); o.hasOther = true; o.highValueLabel = "foo"; - o.images = buildUnnamed116(); + o.images = buildUnnamed79(); o.lastAnswerPositionPinned = true; o.lowValueLabel = "foo"; o.mustPickSuggestion = true; o.numStars = "foo"; o.openTextPlaceholder = "foo"; - o.openTextSuggestions = buildUnnamed117(); + o.openTextSuggestions = buildUnnamed80(); o.question = "foo"; o.sentimentText = "foo"; o.singleLineResponse = true; - o.thresholdAnswers = buildUnnamed118(); + o.thresholdAnswers = buildUnnamed81(); o.type = "foo"; o.unitOfMeasurementLabel = "foo"; o.videoId = "foo"; @@ -472,20 +472,20 @@ buildCounterSurveyQuestion++; if (buildCounterSurveyQuestion < 3) { unittest.expect(o.answerOrder, unittest.equals('foo')); - checkUnnamed115(o.answers); + checkUnnamed78(o.answers); unittest.expect(o.hasOther, unittest.isTrue); unittest.expect(o.highValueLabel, unittest.equals('foo')); - checkUnnamed116(o.images); + checkUnnamed79(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')); - checkUnnamed117(o.openTextSuggestions); + checkUnnamed80(o.openTextSuggestions); unittest.expect(o.question, unittest.equals('foo')); unittest.expect(o.sentimentText, unittest.equals('foo')); unittest.expect(o.singleLineResponse, unittest.isTrue); - checkUnnamed118(o.thresholdAnswers); + checkUnnamed81(o.thresholdAnswers); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.unitOfMeasurementLabel, unittest.equals('foo')); unittest.expect(o.videoId, unittest.equals('foo')); @@ -577,14 +577,14 @@ buildCounterSurveysDeleteResponse--; } -buildUnnamed119() { +buildUnnamed82() { var o = new core.List<api.Survey>(); o.add(buildSurvey()); o.add(buildSurvey()); return o; } -checkUnnamed119(core.List<api.Survey> o) { +checkUnnamed82(core.List<api.Survey> o) { unittest.expect(o, unittest.hasLength(2)); checkSurvey(o[0]); checkSurvey(o[1]); @@ -597,7 +597,7 @@ if (buildCounterSurveysListResponse < 3) { o.pageInfo = buildPageInfo(); o.requestId = "foo"; - o.resources = buildUnnamed119(); + o.resources = buildUnnamed82(); o.tokenPagination = buildTokenPagination(); } buildCounterSurveysListResponse--; @@ -609,7 +609,7 @@ if (buildCounterSurveysListResponse < 3) { checkPageInfo(o.pageInfo); unittest.expect(o.requestId, unittest.equals('foo')); - checkUnnamed119(o.resources); + checkUnnamed82(o.resources); checkTokenPagination(o.tokenPagination); } buildCounterSurveysListResponse--;
diff --git a/generated/googleapis/test/container/v1_test.dart b/generated/googleapis/test/container/v1_test.dart index 95e3429..61d645d 100644 --- a/generated/googleapis/test/container/v1_test.dart +++ b/generated/googleapis/test/container/v1_test.dart
@@ -51,6 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } +core.int buildCounterAcceleratorConfig = 0; +buildAcceleratorConfig() { + var o = new api.AcceleratorConfig(); + buildCounterAcceleratorConfig++; + if (buildCounterAcceleratorConfig < 3) { + o.acceleratorCount = "foo"; + o.acceleratorType = "foo"; + } + buildCounterAcceleratorConfig--; + return o; +} + +checkAcceleratorConfig(api.AcceleratorConfig o) { + buildCounterAcceleratorConfig++; + if (buildCounterAcceleratorConfig < 3) { + unittest.expect(o.acceleratorCount, unittest.equals('foo')); + unittest.expect(o.acceleratorType, unittest.equals('foo')); + } + buildCounterAcceleratorConfig--; +} + core.int buildCounterAddonsConfig = 0; buildAddonsConfig() { var o = new api.AddonsConfig(); @@ -58,6 +79,7 @@ if (buildCounterAddonsConfig < 3) { o.horizontalPodAutoscaling = buildHorizontalPodAutoscaling(); o.httpLoadBalancing = buildHttpLoadBalancing(); + o.kubernetesDashboard = buildKubernetesDashboard(); } buildCounterAddonsConfig--; return o; @@ -68,6 +90,7 @@ if (buildCounterAddonsConfig < 3) { checkHorizontalPodAutoscaling(o.horizontalPodAutoscaling); checkHttpLoadBalancing(o.httpLoadBalancing); + checkKubernetesDashboard(o.kubernetesDashboard); } buildCounterAddonsConfig--; } @@ -110,6 +133,27 @@ buildCounterCancelOperationRequest--; } +core.int buildCounterCidrBlock = 0; +buildCidrBlock() { + var o = new api.CidrBlock(); + buildCounterCidrBlock++; + if (buildCounterCidrBlock < 3) { + o.cidrBlock = "foo"; + o.displayName = "foo"; + } + buildCounterCidrBlock--; + return o; +} + +checkCidrBlock(api.CidrBlock o) { + buildCounterCidrBlock++; + if (buildCounterCidrBlock < 3) { + unittest.expect(o.cidrBlock, unittest.equals('foo')); + unittest.expect(o.displayName, unittest.equals('foo')); + } + buildCounterCidrBlock--; +} + core.int buildCounterClientCertificateConfig = 0; buildClientCertificateConfig() { var o = new api.ClientCertificateConfig(); @@ -129,53 +173,53 @@ buildCounterClientCertificateConfig--; } -buildUnnamed1814() { +buildUnnamed1846() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1814(core.List<core.String> o) { +checkUnnamed1846(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1815() { +buildUnnamed1847() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1815(core.List<core.String> o) { +checkUnnamed1847(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1816() { +buildUnnamed1848() { var o = new core.List<api.NodePool>(); o.add(buildNodePool()); o.add(buildNodePool()); return o; } -checkUnnamed1816(core.List<api.NodePool> o) { +checkUnnamed1848(core.List<api.NodePool> o) { unittest.expect(o, unittest.hasLength(2)); checkNodePool(o[0]); checkNodePool(o[1]); } -buildUnnamed1817() { +buildUnnamed1849() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1817(core.Map<core.String, core.String> o) { +checkUnnamed1849(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -198,21 +242,22 @@ o.expireTime = "foo"; o.initialClusterVersion = "foo"; o.initialNodeCount = 42; - o.instanceGroupUrls = buildUnnamed1814(); + o.instanceGroupUrls = buildUnnamed1846(); o.ipAllocationPolicy = buildIPAllocationPolicy(); o.labelFingerprint = "foo"; o.legacyAbac = buildLegacyAbac(); - o.locations = buildUnnamed1815(); + o.locations = buildUnnamed1847(); o.loggingService = "foo"; o.masterAuth = buildMasterAuth(); + o.masterAuthorizedNetworksConfig = buildMasterAuthorizedNetworksConfig(); o.monitoringService = "foo"; o.name = "foo"; o.network = "foo"; o.networkPolicy = buildNetworkPolicy(); o.nodeConfig = buildNodeConfig(); o.nodeIpv4CidrSize = 42; - o.nodePools = buildUnnamed1816(); - o.resourceLabels = buildUnnamed1817(); + o.nodePools = buildUnnamed1848(); + o.resourceLabels = buildUnnamed1849(); o.selfLink = "foo"; o.servicesIpv4Cidr = "foo"; o.status = "foo"; @@ -239,21 +284,22 @@ unittest.expect(o.expireTime, unittest.equals('foo')); unittest.expect(o.initialClusterVersion, unittest.equals('foo')); unittest.expect(o.initialNodeCount, unittest.equals(42)); - checkUnnamed1814(o.instanceGroupUrls); + checkUnnamed1846(o.instanceGroupUrls); checkIPAllocationPolicy(o.ipAllocationPolicy); unittest.expect(o.labelFingerprint, unittest.equals('foo')); checkLegacyAbac(o.legacyAbac); - checkUnnamed1815(o.locations); + checkUnnamed1847(o.locations); unittest.expect(o.loggingService, unittest.equals('foo')); checkMasterAuth(o.masterAuth); + checkMasterAuthorizedNetworksConfig(o.masterAuthorizedNetworksConfig); unittest.expect(o.monitoringService, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); checkNetworkPolicy(o.networkPolicy); checkNodeConfig(o.nodeConfig); unittest.expect(o.nodeIpv4CidrSize, unittest.equals(42)); - checkUnnamed1816(o.nodePools); - checkUnnamed1817(o.resourceLabels); + checkUnnamed1848(o.nodePools); + checkUnnamed1849(o.resourceLabels); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); @@ -264,14 +310,14 @@ buildCounterCluster--; } -buildUnnamed1818() { +buildUnnamed1850() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1818(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')); @@ -284,7 +330,8 @@ if (buildCounterClusterUpdate < 3) { o.desiredAddonsConfig = buildAddonsConfig(); o.desiredImageType = "foo"; - o.desiredLocations = buildUnnamed1818(); + o.desiredLocations = buildUnnamed1850(); + o.desiredMasterAuthorizedNetworksConfig = buildMasterAuthorizedNetworksConfig(); o.desiredMasterVersion = "foo"; o.desiredMonitoringService = "foo"; o.desiredNodePoolAutoscaling = buildNodePoolAutoscaling(); @@ -300,7 +347,8 @@ if (buildCounterClusterUpdate < 3) { checkAddonsConfig(o.desiredAddonsConfig); unittest.expect(o.desiredImageType, unittest.equals('foo')); - checkUnnamed1818(o.desiredLocations); + checkUnnamed1850(o.desiredLocations); + checkMasterAuthorizedNetworksConfig(o.desiredMasterAuthorizedNetworksConfig); unittest.expect(o.desiredMasterVersion, unittest.equals('foo')); unittest.expect(o.desiredMonitoringService, unittest.equals('foo')); checkNodePoolAutoscaling(o.desiredNodePoolAutoscaling); @@ -449,6 +497,25 @@ buildCounterIPAllocationPolicy--; } +core.int buildCounterKubernetesDashboard = 0; +buildKubernetesDashboard() { + var o = new api.KubernetesDashboard(); + buildCounterKubernetesDashboard++; + if (buildCounterKubernetesDashboard < 3) { + o.disabled = true; + } + buildCounterKubernetesDashboard--; + return o; +} + +checkKubernetesDashboard(api.KubernetesDashboard o) { + buildCounterKubernetesDashboard++; + if (buildCounterKubernetesDashboard < 3) { + unittest.expect(o.disabled, unittest.isTrue); + } + buildCounterKubernetesDashboard--; +} + core.int buildCounterLegacyAbac = 0; buildLegacyAbac() { var o = new api.LegacyAbac(); @@ -468,27 +535,27 @@ buildCounterLegacyAbac--; } -buildUnnamed1819() { +buildUnnamed1851() { var o = new core.List<api.Cluster>(); o.add(buildCluster()); o.add(buildCluster()); return o; } -checkUnnamed1819(core.List<api.Cluster> o) { +checkUnnamed1851(core.List<api.Cluster> o) { unittest.expect(o, unittest.hasLength(2)); checkCluster(o[0]); checkCluster(o[1]); } -buildUnnamed1820() { +buildUnnamed1852() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1820(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')); @@ -499,8 +566,8 @@ var o = new api.ListClustersResponse(); buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - o.clusters = buildUnnamed1819(); - o.missingZones = buildUnnamed1820(); + o.clusters = buildUnnamed1851(); + o.missingZones = buildUnnamed1852(); } buildCounterListClustersResponse--; return o; @@ -509,20 +576,20 @@ checkListClustersResponse(api.ListClustersResponse o) { buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - checkUnnamed1819(o.clusters); - checkUnnamed1820(o.missingZones); + checkUnnamed1851(o.clusters); + checkUnnamed1852(o.missingZones); } buildCounterListClustersResponse--; } -buildUnnamed1821() { +buildUnnamed1853() { var o = new core.List<api.NodePool>(); o.add(buildNodePool()); o.add(buildNodePool()); return o; } -checkUnnamed1821(core.List<api.NodePool> o) { +checkUnnamed1853(core.List<api.NodePool> o) { unittest.expect(o, unittest.hasLength(2)); checkNodePool(o[0]); checkNodePool(o[1]); @@ -533,7 +600,7 @@ var o = new api.ListNodePoolsResponse(); buildCounterListNodePoolsResponse++; if (buildCounterListNodePoolsResponse < 3) { - o.nodePools = buildUnnamed1821(); + o.nodePools = buildUnnamed1853(); } buildCounterListNodePoolsResponse--; return o; @@ -542,32 +609,32 @@ checkListNodePoolsResponse(api.ListNodePoolsResponse o) { buildCounterListNodePoolsResponse++; if (buildCounterListNodePoolsResponse < 3) { - checkUnnamed1821(o.nodePools); + checkUnnamed1853(o.nodePools); } buildCounterListNodePoolsResponse--; } -buildUnnamed1822() { +buildUnnamed1854() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1822(core.List<core.String> o) { +checkUnnamed1854(core.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() { +buildUnnamed1855() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1823(core.List<api.Operation> o) { +checkUnnamed1855(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -578,8 +645,8 @@ var o = new api.ListOperationsResponse(); buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { - o.missingZones = buildUnnamed1822(); - o.operations = buildUnnamed1823(); + o.missingZones = buildUnnamed1854(); + o.operations = buildUnnamed1855(); } buildCounterListOperationsResponse--; return o; @@ -588,8 +655,8 @@ checkListOperationsResponse(api.ListOperationsResponse o) { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { - checkUnnamed1822(o.missingZones); - checkUnnamed1823(o.operations); + checkUnnamed1854(o.missingZones); + checkUnnamed1855(o.operations); } buildCounterListOperationsResponse--; } @@ -623,6 +690,40 @@ buildCounterMasterAuth--; } +buildUnnamed1856() { + var o = new core.List<api.CidrBlock>(); + o.add(buildCidrBlock()); + o.add(buildCidrBlock()); + return o; +} + +checkUnnamed1856(core.List<api.CidrBlock> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCidrBlock(o[0]); + checkCidrBlock(o[1]); +} + +core.int buildCounterMasterAuthorizedNetworksConfig = 0; +buildMasterAuthorizedNetworksConfig() { + var o = new api.MasterAuthorizedNetworksConfig(); + buildCounterMasterAuthorizedNetworksConfig++; + if (buildCounterMasterAuthorizedNetworksConfig < 3) { + o.cidrBlocks = buildUnnamed1856(); + o.enabled = true; + } + buildCounterMasterAuthorizedNetworksConfig--; + return o; +} + +checkMasterAuthorizedNetworksConfig(api.MasterAuthorizedNetworksConfig o) { + buildCounterMasterAuthorizedNetworksConfig++; + if (buildCounterMasterAuthorizedNetworksConfig < 3) { + checkUnnamed1856(o.cidrBlocks); + unittest.expect(o.enabled, unittest.isTrue); + } + buildCounterMasterAuthorizedNetworksConfig--; +} + core.int buildCounterNetworkPolicy = 0; buildNetworkPolicy() { var o = new api.NetworkPolicy(); @@ -644,53 +745,66 @@ buildCounterNetworkPolicy--; } -buildUnnamed1824() { +buildUnnamed1857() { + var o = new core.List<api.AcceleratorConfig>(); + o.add(buildAcceleratorConfig()); + o.add(buildAcceleratorConfig()); + return o; +} + +checkUnnamed1857(core.List<api.AcceleratorConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAcceleratorConfig(o[0]); + checkAcceleratorConfig(o[1]); +} + +buildUnnamed1858() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1824(core.Map<core.String, core.String> o) { +checkUnnamed1858(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1825() { +buildUnnamed1859() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1825(core.Map<core.String, core.String> o) { +checkUnnamed1859(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1826() { +buildUnnamed1860() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1826(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')); } -buildUnnamed1827() { +buildUnnamed1861() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1827(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')); @@ -701,16 +815,17 @@ var o = new api.NodeConfig(); buildCounterNodeConfig++; if (buildCounterNodeConfig < 3) { + o.accelerators = buildUnnamed1857(); o.diskSizeGb = 42; o.imageType = "foo"; - o.labels = buildUnnamed1824(); + o.labels = buildUnnamed1858(); o.localSsdCount = 42; o.machineType = "foo"; - o.metadata = buildUnnamed1825(); - o.oauthScopes = buildUnnamed1826(); + o.metadata = buildUnnamed1859(); + o.oauthScopes = buildUnnamed1860(); o.preemptible = true; o.serviceAccount = "foo"; - o.tags = buildUnnamed1827(); + o.tags = buildUnnamed1861(); } buildCounterNodeConfig--; return o; @@ -719,16 +834,17 @@ checkNodeConfig(api.NodeConfig o) { buildCounterNodeConfig++; if (buildCounterNodeConfig < 3) { + checkUnnamed1857(o.accelerators); unittest.expect(o.diskSizeGb, unittest.equals(42)); unittest.expect(o.imageType, unittest.equals('foo')); - checkUnnamed1824(o.labels); + checkUnnamed1858(o.labels); unittest.expect(o.localSsdCount, unittest.equals(42)); unittest.expect(o.machineType, unittest.equals('foo')); - checkUnnamed1825(o.metadata); - checkUnnamed1826(o.oauthScopes); + checkUnnamed1859(o.metadata); + checkUnnamed1860(o.oauthScopes); unittest.expect(o.preemptible, unittest.isTrue); unittest.expect(o.serviceAccount, unittest.equals('foo')); - checkUnnamed1827(o.tags); + checkUnnamed1861(o.tags); } buildCounterNodeConfig--; } @@ -756,14 +872,14 @@ buildCounterNodeManagement--; } -buildUnnamed1828() { +buildUnnamed1862() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1828(core.List<core.String> o) { +checkUnnamed1862(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -777,7 +893,7 @@ o.autoscaling = buildNodePoolAutoscaling(); o.config = buildNodeConfig(); o.initialNodeCount = 42; - o.instanceGroupUrls = buildUnnamed1828(); + o.instanceGroupUrls = buildUnnamed1862(); o.management = buildNodeManagement(); o.name = "foo"; o.selfLink = "foo"; @@ -795,7 +911,7 @@ checkNodePoolAutoscaling(o.autoscaling); checkNodeConfig(o.config); unittest.expect(o.initialNodeCount, unittest.equals(42)); - checkUnnamed1828(o.instanceGroupUrls); + checkUnnamed1862(o.instanceGroupUrls); checkNodeManagement(o.management); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -879,40 +995,40 @@ buildCounterRollbackNodePoolUpgradeRequest--; } -buildUnnamed1829() { +buildUnnamed1863() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1829(core.List<core.String> o) { +checkUnnamed1863(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1830() { +buildUnnamed1864() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1830(core.List<core.String> o) { +checkUnnamed1864(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1831() { +buildUnnamed1865() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1831(core.List<core.String> o) { +checkUnnamed1865(core.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,9 +1041,9 @@ if (buildCounterServerConfig < 3) { o.defaultClusterVersion = "foo"; o.defaultImageType = "foo"; - o.validImageTypes = buildUnnamed1829(); - o.validMasterVersions = buildUnnamed1830(); - o.validNodeVersions = buildUnnamed1831(); + o.validImageTypes = buildUnnamed1863(); + o.validMasterVersions = buildUnnamed1864(); + o.validNodeVersions = buildUnnamed1865(); } buildCounterServerConfig--; return o; @@ -938,9 +1054,9 @@ if (buildCounterServerConfig < 3) { unittest.expect(o.defaultClusterVersion, unittest.equals('foo')); unittest.expect(o.defaultImageType, unittest.equals('foo')); - checkUnnamed1829(o.validImageTypes); - checkUnnamed1830(o.validMasterVersions); - checkUnnamed1831(o.validNodeVersions); + checkUnnamed1863(o.validImageTypes); + checkUnnamed1864(o.validMasterVersions); + checkUnnamed1865(o.validNodeVersions); } buildCounterServerConfig--; } @@ -964,14 +1080,14 @@ buildCounterSetAddonsConfigRequest--; } -buildUnnamed1832() { +buildUnnamed1866() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1832(core.Map<core.String, core.String> o) { +checkUnnamed1866(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -983,7 +1099,7 @@ buildCounterSetLabelsRequest++; if (buildCounterSetLabelsRequest < 3) { o.labelFingerprint = "foo"; - o.resourceLabels = buildUnnamed1832(); + o.resourceLabels = buildUnnamed1866(); } buildCounterSetLabelsRequest--; return o; @@ -993,7 +1109,7 @@ buildCounterSetLabelsRequest++; if (buildCounterSetLabelsRequest < 3) { unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed1832(o.resourceLabels); + checkUnnamed1866(o.resourceLabels); } buildCounterSetLabelsRequest--; } @@ -1017,14 +1133,14 @@ buildCounterSetLegacyAbacRequest--; } -buildUnnamed1833() { +buildUnnamed1867() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1833(core.List<core.String> o) { +checkUnnamed1867(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1035,7 +1151,7 @@ var o = new api.SetLocationsRequest(); buildCounterSetLocationsRequest++; if (buildCounterSetLocationsRequest < 3) { - o.locations = buildUnnamed1833(); + o.locations = buildUnnamed1867(); } buildCounterSetLocationsRequest--; return o; @@ -1044,7 +1160,7 @@ checkSetLocationsRequest(api.SetLocationsRequest o) { buildCounterSetLocationsRequest++; if (buildCounterSetLocationsRequest < 3) { - checkUnnamed1833(o.locations); + checkUnnamed1867(o.locations); } buildCounterSetLocationsRequest--; } @@ -1262,6 +1378,15 @@ main() { + unittest.group("obj-schema-AcceleratorConfig", () { + unittest.test("to-json--from-json", () { + var o = buildAcceleratorConfig(); + var od = new api.AcceleratorConfig.fromJson(o.toJson()); + checkAcceleratorConfig(od); + }); + }); + + unittest.group("obj-schema-AddonsConfig", () { unittest.test("to-json--from-json", () { var o = buildAddonsConfig(); @@ -1289,6 +1414,15 @@ }); + unittest.group("obj-schema-CidrBlock", () { + unittest.test("to-json--from-json", () { + var o = buildCidrBlock(); + var od = new api.CidrBlock.fromJson(o.toJson()); + checkCidrBlock(od); + }); + }); + + unittest.group("obj-schema-ClientCertificateConfig", () { unittest.test("to-json--from-json", () { var o = buildClientCertificateConfig(); @@ -1379,6 +1513,15 @@ }); + unittest.group("obj-schema-KubernetesDashboard", () { + unittest.test("to-json--from-json", () { + var o = buildKubernetesDashboard(); + var od = new api.KubernetesDashboard.fromJson(o.toJson()); + checkKubernetesDashboard(od); + }); + }); + + unittest.group("obj-schema-LegacyAbac", () { unittest.test("to-json--from-json", () { var o = buildLegacyAbac(); @@ -1424,6 +1567,15 @@ }); + unittest.group("obj-schema-MasterAuthorizedNetworksConfig", () { + unittest.test("to-json--from-json", () { + var o = buildMasterAuthorizedNetworksConfig(); + var od = new api.MasterAuthorizedNetworksConfig.fromJson(o.toJson()); + checkMasterAuthorizedNetworksConfig(od); + }); + }); + + unittest.group("obj-schema-NetworkPolicy", () { unittest.test("to-json--from-json", () { var o = buildNetworkPolicy();
diff --git a/generated/googleapis/test/customsearch/v1_test.dart b/generated/googleapis/test/customsearch/v1_test.dart index 7568310..403d769 100644 --- a/generated/googleapis/test/customsearch/v1_test.dart +++ b/generated/googleapis/test/customsearch/v1_test.dart
@@ -74,30 +74,30 @@ buildCounterContextFacets--; } -buildUnnamed319() { +buildUnnamed294() { var o = new core.List<api.ContextFacets>(); o.add(buildContextFacets()); o.add(buildContextFacets()); return o; } -checkUnnamed319(core.List<api.ContextFacets> o) { +checkUnnamed294(core.List<api.ContextFacets> o) { unittest.expect(o, unittest.hasLength(2)); checkContextFacets(o[0]); checkContextFacets(o[1]); } -buildUnnamed320() { +buildUnnamed295() { var o = new core.List<core.List<api.ContextFacets>>(); - o.add(buildUnnamed319()); - o.add(buildUnnamed319()); + o.add(buildUnnamed294()); + o.add(buildUnnamed294()); return o; } -checkUnnamed320(core.List<core.List<api.ContextFacets>> o) { +checkUnnamed295(core.List<core.List<api.ContextFacets>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed319(o[0]); - checkUnnamed319(o[1]); + checkUnnamed294(o[0]); + checkUnnamed294(o[1]); } core.int buildCounterContext = 0; @@ -105,7 +105,7 @@ var o = new api.Context(); buildCounterContext++; if (buildCounterContext < 3) { - o.facets = buildUnnamed320(); + o.facets = buildUnnamed295(); o.title = "foo"; } buildCounterContext--; @@ -115,7 +115,7 @@ checkContext(api.Context o) { buildCounterContext++; if (buildCounterContext < 3) { - checkUnnamed320(o.facets); + checkUnnamed295(o.facets); unittest.expect(o.title, unittest.equals('foo')); } buildCounterContext--; @@ -146,14 +146,14 @@ buildCounterPromotionBodyLines--; } -buildUnnamed321() { +buildUnnamed296() { var o = new core.List<api.PromotionBodyLines>(); o.add(buildPromotionBodyLines()); o.add(buildPromotionBodyLines()); return o; } -checkUnnamed321(core.List<api.PromotionBodyLines> o) { +checkUnnamed296(core.List<api.PromotionBodyLines> o) { unittest.expect(o, unittest.hasLength(2)); checkPromotionBodyLines(o[0]); checkPromotionBodyLines(o[1]); @@ -187,7 +187,7 @@ var o = new api.Promotion(); buildCounterPromotion++; if (buildCounterPromotion < 3) { - o.bodyLines = buildUnnamed321(); + o.bodyLines = buildUnnamed296(); o.displayLink = "foo"; o.htmlTitle = "foo"; o.image = buildPromotionImage(); @@ -201,7 +201,7 @@ checkPromotion(api.Promotion o) { buildCounterPromotion++; if (buildCounterPromotion < 3) { - checkUnnamed321(o.bodyLines); + checkUnnamed296(o.bodyLines); unittest.expect(o.displayLink, unittest.equals('foo')); unittest.expect(o.htmlTitle, unittest.equals('foo')); checkPromotionImage(o.image); @@ -354,56 +354,56 @@ buildCounterResultLabels--; } -buildUnnamed322() { +buildUnnamed297() { var o = new core.List<api.ResultLabels>(); o.add(buildResultLabels()); o.add(buildResultLabels()); return o; } -checkUnnamed322(core.List<api.ResultLabels> o) { +checkUnnamed297(core.List<api.ResultLabels> o) { unittest.expect(o, unittest.hasLength(2)); checkResultLabels(o[0]); checkResultLabels(o[1]); } -buildUnnamed323() { +buildUnnamed298() { 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; } -checkUnnamed323(core.Map<core.String, core.Object> o) { +checkUnnamed298(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')); } -buildUnnamed324() { +buildUnnamed299() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed323()); - o.add(buildUnnamed323()); + o.add(buildUnnamed298()); + o.add(buildUnnamed298()); return o; } -checkUnnamed324(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed299(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed323(o[0]); - checkUnnamed323(o[1]); + checkUnnamed298(o[0]); + checkUnnamed298(o[1]); } -buildUnnamed325() { +buildUnnamed300() { var o = new core.Map<core.String, core.List<core.Map<core.String, core.Object>>>(); - o["x"] = buildUnnamed324(); - o["y"] = buildUnnamed324(); + o["x"] = buildUnnamed299(); + o["y"] = buildUnnamed299(); return o; } -checkUnnamed325(core.Map<core.String, core.List<core.Map<core.String, core.Object>>> o) { +checkUnnamed300(core.Map<core.String, core.List<core.Map<core.String, core.Object>>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed324(o["x"]); - checkUnnamed324(o["y"]); + checkUnnamed299(o["x"]); + checkUnnamed299(o["y"]); } core.int buildCounterResult = 0; @@ -420,10 +420,10 @@ o.htmlTitle = "foo"; o.image = buildResultImage(); o.kind = "foo"; - o.labels = buildUnnamed322(); + o.labels = buildUnnamed297(); o.link = "foo"; o.mime = "foo"; - o.pagemap = buildUnnamed325(); + o.pagemap = buildUnnamed300(); o.snippet = "foo"; o.title = "foo"; } @@ -443,66 +443,66 @@ unittest.expect(o.htmlTitle, unittest.equals('foo')); checkResultImage(o.image); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed322(o.labels); + checkUnnamed297(o.labels); unittest.expect(o.link, unittest.equals('foo')); unittest.expect(o.mime, unittest.equals('foo')); - checkUnnamed325(o.pagemap); + checkUnnamed300(o.pagemap); unittest.expect(o.snippet, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } buildCounterResult--; } -buildUnnamed326() { +buildUnnamed301() { var o = new core.List<api.Result>(); o.add(buildResult()); o.add(buildResult()); return o; } -checkUnnamed326(core.List<api.Result> o) { +checkUnnamed301(core.List<api.Result> o) { unittest.expect(o, unittest.hasLength(2)); checkResult(o[0]); checkResult(o[1]); } -buildUnnamed327() { +buildUnnamed302() { var o = new core.List<api.Promotion>(); o.add(buildPromotion()); o.add(buildPromotion()); return o; } -checkUnnamed327(core.List<api.Promotion> o) { +checkUnnamed302(core.List<api.Promotion> o) { unittest.expect(o, unittest.hasLength(2)); checkPromotion(o[0]); checkPromotion(o[1]); } -buildUnnamed328() { +buildUnnamed303() { var o = new core.List<api.Query>(); o.add(buildQuery()); o.add(buildQuery()); return o; } -checkUnnamed328(core.List<api.Query> o) { +checkUnnamed303(core.List<api.Query> o) { unittest.expect(o, unittest.hasLength(2)); checkQuery(o[0]); checkQuery(o[1]); } -buildUnnamed329() { +buildUnnamed304() { var o = new core.Map<core.String, core.List<api.Query>>(); - o["x"] = buildUnnamed328(); - o["y"] = buildUnnamed328(); + o["x"] = buildUnnamed303(); + o["y"] = buildUnnamed303(); return o; } -checkUnnamed329(core.Map<core.String, core.List<api.Query>> o) { +checkUnnamed304(core.Map<core.String, core.List<api.Query>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed328(o["x"]); - checkUnnamed328(o["y"]); + checkUnnamed303(o["x"]); + checkUnnamed303(o["y"]); } core.int buildCounterSearchSearchInformation = 0; @@ -578,10 +578,10 @@ buildCounterSearch++; if (buildCounterSearch < 3) { o.context = buildContext(); - o.items = buildUnnamed326(); + o.items = buildUnnamed301(); o.kind = "foo"; - o.promotions = buildUnnamed327(); - o.queries = buildUnnamed329(); + o.promotions = buildUnnamed302(); + o.queries = buildUnnamed304(); o.searchInformation = buildSearchSearchInformation(); o.spelling = buildSearchSpelling(); o.url = buildSearchUrl(); @@ -594,10 +594,10 @@ buildCounterSearch++; if (buildCounterSearch < 3) { checkContext(o.context); - checkUnnamed326(o.items); + checkUnnamed301(o.items); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed327(o.promotions); - checkUnnamed329(o.queries); + checkUnnamed302(o.promotions); + checkUnnamed304(o.queries); checkSearchSearchInformation(o.searchInformation); checkSearchSpelling(o.spelling); checkSearchUrl(o.url);
diff --git a/generated/googleapis/test/dataproc/v1_test.dart b/generated/googleapis/test/dataproc/v1_test.dart index dd7150e..4afa318 100644 --- a/generated/googleapis/test/dataproc/v1_test.dart +++ b/generated/googleapis/test/dataproc/v1_test.dart
@@ -89,27 +89,27 @@ buildCounterCancelJobRequest--; } -buildUnnamed531() { +buildUnnamed506() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed531(core.Map<core.String, core.String> o) { +checkUnnamed506(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed532() { +buildUnnamed507() { var o = new core.List<api.ClusterStatus>(); o.add(buildClusterStatus()); o.add(buildClusterStatus()); return o; } -checkUnnamed532(core.List<api.ClusterStatus> o) { +checkUnnamed507(core.List<api.ClusterStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkClusterStatus(o[0]); checkClusterStatus(o[1]); @@ -123,11 +123,11 @@ o.clusterName = "foo"; o.clusterUuid = "foo"; o.config = buildClusterConfig(); - o.labels = buildUnnamed531(); + o.labels = buildUnnamed506(); o.metrics = buildClusterMetrics(); o.projectId = "foo"; o.status = buildClusterStatus(); - o.statusHistory = buildUnnamed532(); + o.statusHistory = buildUnnamed507(); } buildCounterCluster--; return o; @@ -139,23 +139,23 @@ unittest.expect(o.clusterName, unittest.equals('foo')); unittest.expect(o.clusterUuid, unittest.equals('foo')); checkClusterConfig(o.config); - checkUnnamed531(o.labels); + checkUnnamed506(o.labels); checkClusterMetrics(o.metrics); unittest.expect(o.projectId, unittest.equals('foo')); checkClusterStatus(o.status); - checkUnnamed532(o.statusHistory); + checkUnnamed507(o.statusHistory); } buildCounterCluster--; } -buildUnnamed533() { +buildUnnamed508() { var o = new core.List<api.NodeInitializationAction>(); o.add(buildNodeInitializationAction()); o.add(buildNodeInitializationAction()); return o; } -checkUnnamed533(core.List<api.NodeInitializationAction> o) { +checkUnnamed508(core.List<api.NodeInitializationAction> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeInitializationAction(o[0]); checkNodeInitializationAction(o[1]); @@ -168,7 +168,7 @@ if (buildCounterClusterConfig < 3) { o.configBucket = "foo"; o.gceClusterConfig = buildGceClusterConfig(); - o.initializationActions = buildUnnamed533(); + o.initializationActions = buildUnnamed508(); o.masterConfig = buildInstanceGroupConfig(); o.secondaryWorkerConfig = buildInstanceGroupConfig(); o.softwareConfig = buildSoftwareConfig(); @@ -183,7 +183,7 @@ if (buildCounterClusterConfig < 3) { unittest.expect(o.configBucket, unittest.equals('foo')); checkGceClusterConfig(o.gceClusterConfig); - checkUnnamed533(o.initializationActions); + checkUnnamed508(o.initializationActions); checkInstanceGroupConfig(o.masterConfig); checkInstanceGroupConfig(o.secondaryWorkerConfig); checkSoftwareConfig(o.softwareConfig); @@ -192,27 +192,27 @@ buildCounterClusterConfig--; } -buildUnnamed534() { +buildUnnamed509() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed534(core.Map<core.String, core.String> o) { +checkUnnamed509(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed535() { +buildUnnamed510() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed535(core.Map<core.String, core.String> o) { +checkUnnamed510(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -223,8 +223,8 @@ var o = new api.ClusterMetrics(); buildCounterClusterMetrics++; if (buildCounterClusterMetrics < 3) { - o.hdfsMetrics = buildUnnamed534(); - o.yarnMetrics = buildUnnamed535(); + o.hdfsMetrics = buildUnnamed509(); + o.yarnMetrics = buildUnnamed510(); } buildCounterClusterMetrics--; return o; @@ -233,46 +233,46 @@ checkClusterMetrics(api.ClusterMetrics o) { buildCounterClusterMetrics++; if (buildCounterClusterMetrics < 3) { - checkUnnamed534(o.hdfsMetrics); - checkUnnamed535(o.yarnMetrics); + checkUnnamed509(o.hdfsMetrics); + checkUnnamed510(o.yarnMetrics); } buildCounterClusterMetrics--; } -buildUnnamed536() { +buildUnnamed511() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed536(core.Map<core.String, core.String> o) { +checkUnnamed511(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed537() { +buildUnnamed512() { var o = new core.List<api.ClusterOperationStatus>(); o.add(buildClusterOperationStatus()); o.add(buildClusterOperationStatus()); return o; } -checkUnnamed537(core.List<api.ClusterOperationStatus> o) { +checkUnnamed512(core.List<api.ClusterOperationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkClusterOperationStatus(o[0]); checkClusterOperationStatus(o[1]); } -buildUnnamed538() { +buildUnnamed513() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed538(core.List<core.String> o) { +checkUnnamed513(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -286,11 +286,11 @@ o.clusterName = "foo"; o.clusterUuid = "foo"; o.description = "foo"; - o.labels = buildUnnamed536(); + o.labels = buildUnnamed511(); o.operationType = "foo"; o.status = buildClusterOperationStatus(); - o.statusHistory = buildUnnamed537(); - o.warnings = buildUnnamed538(); + o.statusHistory = buildUnnamed512(); + o.warnings = buildUnnamed513(); } buildCounterClusterOperationMetadata--; return o; @@ -302,11 +302,11 @@ unittest.expect(o.clusterName, unittest.equals('foo')); unittest.expect(o.clusterUuid, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed536(o.labels); + checkUnnamed511(o.labels); unittest.expect(o.operationType, unittest.equals('foo')); checkClusterOperationStatus(o.status); - checkUnnamed537(o.statusHistory); - checkUnnamed538(o.warnings); + checkUnnamed512(o.statusHistory); + checkUnnamed513(o.warnings); } buildCounterClusterOperationMetadata--; } @@ -435,40 +435,40 @@ buildCounterEmpty--; } -buildUnnamed539() { +buildUnnamed514() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed539(core.Map<core.String, core.String> o) { +checkUnnamed514(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed540() { +buildUnnamed515() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed540(core.List<core.String> o) { +checkUnnamed515(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed541() { +buildUnnamed516() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed541(core.List<core.String> o) { +checkUnnamed516(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -480,12 +480,12 @@ buildCounterGceClusterConfig++; if (buildCounterGceClusterConfig < 3) { o.internalIpOnly = true; - o.metadata = buildUnnamed539(); + o.metadata = buildUnnamed514(); o.networkUri = "foo"; o.serviceAccount = "foo"; - o.serviceAccountScopes = buildUnnamed540(); + o.serviceAccountScopes = buildUnnamed515(); o.subnetworkUri = "foo"; - o.tags = buildUnnamed541(); + o.tags = buildUnnamed516(); o.zoneUri = "foo"; } buildCounterGceClusterConfig--; @@ -496,77 +496,77 @@ buildCounterGceClusterConfig++; if (buildCounterGceClusterConfig < 3) { unittest.expect(o.internalIpOnly, unittest.isTrue); - checkUnnamed539(o.metadata); + checkUnnamed514(o.metadata); unittest.expect(o.networkUri, unittest.equals('foo')); unittest.expect(o.serviceAccount, unittest.equals('foo')); - checkUnnamed540(o.serviceAccountScopes); + checkUnnamed515(o.serviceAccountScopes); unittest.expect(o.subnetworkUri, unittest.equals('foo')); - checkUnnamed541(o.tags); + checkUnnamed516(o.tags); unittest.expect(o.zoneUri, unittest.equals('foo')); } buildCounterGceClusterConfig--; } -buildUnnamed542() { +buildUnnamed517() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed542(core.List<core.String> o) { +checkUnnamed517(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed543() { +buildUnnamed518() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed543(core.List<core.String> o) { +checkUnnamed518(core.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() { +buildUnnamed519() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed544(core.List<core.String> o) { +checkUnnamed519(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed545() { +buildUnnamed520() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed545(core.List<core.String> o) { +checkUnnamed520(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed546() { +buildUnnamed521() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed546(core.Map<core.String, core.String> o) { +checkUnnamed521(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -577,14 +577,14 @@ var o = new api.HadoopJob(); buildCounterHadoopJob++; if (buildCounterHadoopJob < 3) { - o.archiveUris = buildUnnamed542(); - o.args = buildUnnamed543(); - o.fileUris = buildUnnamed544(); - o.jarFileUris = buildUnnamed545(); + o.archiveUris = buildUnnamed517(); + o.args = buildUnnamed518(); + o.fileUris = buildUnnamed519(); + o.jarFileUris = buildUnnamed520(); o.loggingConfig = buildLoggingConfig(); o.mainClass = "foo"; o.mainJarFileUri = "foo"; - o.properties = buildUnnamed546(); + o.properties = buildUnnamed521(); } buildCounterHadoopJob--; return o; @@ -593,52 +593,52 @@ checkHadoopJob(api.HadoopJob o) { buildCounterHadoopJob++; if (buildCounterHadoopJob < 3) { - checkUnnamed542(o.archiveUris); - checkUnnamed543(o.args); - checkUnnamed544(o.fileUris); - checkUnnamed545(o.jarFileUris); + checkUnnamed517(o.archiveUris); + checkUnnamed518(o.args); + checkUnnamed519(o.fileUris); + checkUnnamed520(o.jarFileUris); checkLoggingConfig(o.loggingConfig); unittest.expect(o.mainClass, unittest.equals('foo')); unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed546(o.properties); + checkUnnamed521(o.properties); } buildCounterHadoopJob--; } -buildUnnamed547() { +buildUnnamed522() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed547(core.List<core.String> o) { +checkUnnamed522(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed548() { +buildUnnamed523() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed548(core.Map<core.String, core.String> o) { +checkUnnamed523(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed549() { +buildUnnamed524() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed549(core.Map<core.String, core.String> o) { +checkUnnamed524(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -650,11 +650,11 @@ buildCounterHiveJob++; if (buildCounterHiveJob < 3) { o.continueOnFailure = true; - o.jarFileUris = buildUnnamed547(); - o.properties = buildUnnamed548(); + o.jarFileUris = buildUnnamed522(); + o.properties = buildUnnamed523(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed549(); + o.scriptVariables = buildUnnamed524(); } buildCounterHiveJob--; return o; @@ -664,36 +664,36 @@ buildCounterHiveJob++; if (buildCounterHiveJob < 3) { unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed547(o.jarFileUris); - checkUnnamed548(o.properties); + checkUnnamed522(o.jarFileUris); + checkUnnamed523(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed549(o.scriptVariables); + checkUnnamed524(o.scriptVariables); } buildCounterHiveJob--; } -buildUnnamed550() { +buildUnnamed525() { var o = new core.List<api.AcceleratorConfig>(); o.add(buildAcceleratorConfig()); o.add(buildAcceleratorConfig()); return o; } -checkUnnamed550(core.List<api.AcceleratorConfig> o) { +checkUnnamed525(core.List<api.AcceleratorConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfig(o[0]); checkAcceleratorConfig(o[1]); } -buildUnnamed551() { +buildUnnamed526() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed551(core.List<core.String> o) { +checkUnnamed526(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -704,10 +704,10 @@ var o = new api.InstanceGroupConfig(); buildCounterInstanceGroupConfig++; if (buildCounterInstanceGroupConfig < 3) { - o.accelerators = buildUnnamed550(); + o.accelerators = buildUnnamed525(); o.diskConfig = buildDiskConfig(); o.imageUri = "foo"; - o.instanceNames = buildUnnamed551(); + o.instanceNames = buildUnnamed526(); o.isPreemptible = true; o.machineTypeUri = "foo"; o.managedGroupConfig = buildManagedGroupConfig(); @@ -720,10 +720,10 @@ checkInstanceGroupConfig(api.InstanceGroupConfig o) { buildCounterInstanceGroupConfig++; if (buildCounterInstanceGroupConfig < 3) { - checkUnnamed550(o.accelerators); + checkUnnamed525(o.accelerators); checkDiskConfig(o.diskConfig); unittest.expect(o.imageUri, unittest.equals('foo')); - checkUnnamed551(o.instanceNames); + checkUnnamed526(o.instanceNames); unittest.expect(o.isPreemptible, unittest.isTrue); unittest.expect(o.machineTypeUri, unittest.equals('foo')); checkManagedGroupConfig(o.managedGroupConfig); @@ -732,40 +732,40 @@ buildCounterInstanceGroupConfig--; } -buildUnnamed552() { +buildUnnamed527() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed552(core.Map<core.String, core.String> o) { +checkUnnamed527(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed553() { +buildUnnamed528() { var o = new core.List<api.JobStatus>(); o.add(buildJobStatus()); o.add(buildJobStatus()); return o; } -checkUnnamed553(core.List<api.JobStatus> o) { +checkUnnamed528(core.List<api.JobStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkJobStatus(o[0]); checkJobStatus(o[1]); } -buildUnnamed554() { +buildUnnamed529() { var o = new core.List<api.YarnApplication>(); o.add(buildYarnApplication()); o.add(buildYarnApplication()); return o; } -checkUnnamed554(core.List<api.YarnApplication> o) { +checkUnnamed529(core.List<api.YarnApplication> o) { unittest.expect(o, unittest.hasLength(2)); checkYarnApplication(o[0]); checkYarnApplication(o[1]); @@ -780,7 +780,7 @@ o.driverOutputResourceUri = "foo"; o.hadoopJob = buildHadoopJob(); o.hiveJob = buildHiveJob(); - o.labels = buildUnnamed552(); + o.labels = buildUnnamed527(); o.pigJob = buildPigJob(); o.placement = buildJobPlacement(); o.pysparkJob = buildPySparkJob(); @@ -789,8 +789,8 @@ o.sparkJob = buildSparkJob(); o.sparkSqlJob = buildSparkSqlJob(); o.status = buildJobStatus(); - o.statusHistory = buildUnnamed553(); - o.yarnApplications = buildUnnamed554(); + o.statusHistory = buildUnnamed528(); + o.yarnApplications = buildUnnamed529(); } buildCounterJob--; return o; @@ -803,7 +803,7 @@ unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); checkHadoopJob(o.hadoopJob); checkHiveJob(o.hiveJob); - checkUnnamed552(o.labels); + checkUnnamed527(o.labels); checkPigJob(o.pigJob); checkJobPlacement(o.placement); checkPySparkJob(o.pysparkJob); @@ -812,8 +812,8 @@ checkSparkJob(o.sparkJob); checkSparkSqlJob(o.sparkSqlJob); checkJobStatus(o.status); - checkUnnamed553(o.statusHistory); - checkUnnamed554(o.yarnApplications); + checkUnnamed528(o.statusHistory); + checkUnnamed529(o.yarnApplications); } buildCounterJob--; } @@ -904,14 +904,14 @@ buildCounterJobStatus--; } -buildUnnamed555() { +buildUnnamed530() { var o = new core.List<api.Cluster>(); o.add(buildCluster()); o.add(buildCluster()); return o; } -checkUnnamed555(core.List<api.Cluster> o) { +checkUnnamed530(core.List<api.Cluster> o) { unittest.expect(o, unittest.hasLength(2)); checkCluster(o[0]); checkCluster(o[1]); @@ -922,7 +922,7 @@ var o = new api.ListClustersResponse(); buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - o.clusters = buildUnnamed555(); + o.clusters = buildUnnamed530(); o.nextPageToken = "foo"; } buildCounterListClustersResponse--; @@ -932,20 +932,20 @@ checkListClustersResponse(api.ListClustersResponse o) { buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - checkUnnamed555(o.clusters); + checkUnnamed530(o.clusters); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListClustersResponse--; } -buildUnnamed556() { +buildUnnamed531() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed556(core.List<api.Job> o) { +checkUnnamed531(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -956,7 +956,7 @@ var o = new api.ListJobsResponse(); buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - o.jobs = buildUnnamed556(); + o.jobs = buildUnnamed531(); o.nextPageToken = "foo"; } buildCounterListJobsResponse--; @@ -966,20 +966,20 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed556(o.jobs); + checkUnnamed531(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobsResponse--; } -buildUnnamed557() { +buildUnnamed532() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed557(core.List<api.Operation> o) { +checkUnnamed532(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -991,7 +991,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed557(); + o.operations = buildUnnamed532(); } buildCounterListOperationsResponse--; return o; @@ -1001,19 +1001,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed557(o.operations); + checkUnnamed532(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed558() { +buildUnnamed533() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed558(core.Map<core.String, core.String> o) { +checkUnnamed533(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1024,7 +1024,7 @@ var o = new api.LoggingConfig(); buildCounterLoggingConfig++; if (buildCounterLoggingConfig < 3) { - o.driverLogLevels = buildUnnamed558(); + o.driverLogLevels = buildUnnamed533(); } buildCounterLoggingConfig--; return o; @@ -1033,7 +1033,7 @@ checkLoggingConfig(api.LoggingConfig o) { buildCounterLoggingConfig++; if (buildCounterLoggingConfig < 3) { - checkUnnamed558(o.driverLogLevels); + checkUnnamed533(o.driverLogLevels); } buildCounterLoggingConfig--; } @@ -1080,27 +1080,27 @@ buildCounterNodeInitializationAction--; } -buildUnnamed559() { +buildUnnamed534() { 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; } -checkUnnamed559(core.Map<core.String, core.Object> o) { +checkUnnamed534(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')); } -buildUnnamed560() { +buildUnnamed535() { 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; } -checkUnnamed560(core.Map<core.String, core.Object> o) { +checkUnnamed535(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')); @@ -1113,9 +1113,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed559(); + o.metadata = buildUnnamed534(); o.name = "foo"; - o.response = buildUnnamed560(); + o.response = buildUnnamed535(); } buildCounterOperation--; return o; @@ -1126,47 +1126,47 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed559(o.metadata); + checkUnnamed534(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed560(o.response); + checkUnnamed535(o.response); } buildCounterOperation--; } -buildUnnamed561() { +buildUnnamed536() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed561(core.List<core.String> o) { +checkUnnamed536(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed562() { +buildUnnamed537() { 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) { +checkUnnamed537(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed563() { +buildUnnamed538() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed563(core.Map<core.String, core.String> o) { +checkUnnamed538(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1178,12 +1178,12 @@ buildCounterPigJob++; if (buildCounterPigJob < 3) { o.continueOnFailure = true; - o.jarFileUris = buildUnnamed561(); + o.jarFileUris = buildUnnamed536(); o.loggingConfig = buildLoggingConfig(); - o.properties = buildUnnamed562(); + o.properties = buildUnnamed537(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed563(); + o.scriptVariables = buildUnnamed538(); } buildCounterPigJob--; return o; @@ -1193,89 +1193,89 @@ buildCounterPigJob++; if (buildCounterPigJob < 3) { unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed561(o.jarFileUris); + checkUnnamed536(o.jarFileUris); checkLoggingConfig(o.loggingConfig); - checkUnnamed562(o.properties); + checkUnnamed537(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed563(o.scriptVariables); + checkUnnamed538(o.scriptVariables); } buildCounterPigJob--; } -buildUnnamed564() { +buildUnnamed539() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed564(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')); } -buildUnnamed565() { +buildUnnamed540() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed565(core.List<core.String> o) { +checkUnnamed540(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed566() { +buildUnnamed541() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed566(core.List<core.String> o) { +checkUnnamed541(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed567() { +buildUnnamed542() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed567(core.List<core.String> o) { +checkUnnamed542(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed568() { +buildUnnamed543() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed568(core.Map<core.String, core.String> o) { +checkUnnamed543(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed569() { +buildUnnamed544() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed569(core.List<core.String> o) { +checkUnnamed544(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1286,14 +1286,14 @@ var o = new api.PySparkJob(); buildCounterPySparkJob++; if (buildCounterPySparkJob < 3) { - o.archiveUris = buildUnnamed564(); - o.args = buildUnnamed565(); - o.fileUris = buildUnnamed566(); - o.jarFileUris = buildUnnamed567(); + o.archiveUris = buildUnnamed539(); + o.args = buildUnnamed540(); + o.fileUris = buildUnnamed541(); + o.jarFileUris = buildUnnamed542(); o.loggingConfig = buildLoggingConfig(); o.mainPythonFileUri = "foo"; - o.properties = buildUnnamed568(); - o.pythonFileUris = buildUnnamed569(); + o.properties = buildUnnamed543(); + o.pythonFileUris = buildUnnamed544(); } buildCounterPySparkJob--; return o; @@ -1302,26 +1302,26 @@ checkPySparkJob(api.PySparkJob o) { buildCounterPySparkJob++; if (buildCounterPySparkJob < 3) { - checkUnnamed564(o.archiveUris); - checkUnnamed565(o.args); - checkUnnamed566(o.fileUris); - checkUnnamed567(o.jarFileUris); + checkUnnamed539(o.archiveUris); + checkUnnamed540(o.args); + checkUnnamed541(o.fileUris); + checkUnnamed542(o.jarFileUris); checkLoggingConfig(o.loggingConfig); unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); - checkUnnamed568(o.properties); - checkUnnamed569(o.pythonFileUris); + checkUnnamed543(o.properties); + checkUnnamed544(o.pythonFileUris); } buildCounterPySparkJob--; } -buildUnnamed570() { +buildUnnamed545() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed570(core.List<core.String> o) { +checkUnnamed545(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1332,7 +1332,7 @@ var o = new api.QueryList(); buildCounterQueryList++; if (buildCounterQueryList < 3) { - o.queries = buildUnnamed570(); + o.queries = buildUnnamed545(); } buildCounterQueryList--; return o; @@ -1341,19 +1341,19 @@ checkQueryList(api.QueryList o) { buildCounterQueryList++; if (buildCounterQueryList < 3) { - checkUnnamed570(o.queries); + checkUnnamed545(o.queries); } buildCounterQueryList--; } -buildUnnamed571() { +buildUnnamed546() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed571(core.Map<core.String, core.String> o) { +checkUnnamed546(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1365,7 +1365,7 @@ buildCounterSoftwareConfig++; if (buildCounterSoftwareConfig < 3) { o.imageVersion = "foo"; - o.properties = buildUnnamed571(); + o.properties = buildUnnamed546(); } buildCounterSoftwareConfig--; return o; @@ -1375,71 +1375,71 @@ buildCounterSoftwareConfig++; if (buildCounterSoftwareConfig < 3) { unittest.expect(o.imageVersion, unittest.equals('foo')); - checkUnnamed571(o.properties); + checkUnnamed546(o.properties); } buildCounterSoftwareConfig--; } -buildUnnamed572() { +buildUnnamed547() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed572(core.List<core.String> o) { +checkUnnamed547(core.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() { +buildUnnamed548() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed573(core.List<core.String> o) { +checkUnnamed548(core.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() { +buildUnnamed549() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed574(core.List<core.String> o) { +checkUnnamed549(core.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() { +buildUnnamed550() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed575(core.List<core.String> o) { +checkUnnamed550(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed576() { +buildUnnamed551() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed576(core.Map<core.String, core.String> o) { +checkUnnamed551(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1450,14 +1450,14 @@ var o = new api.SparkJob(); buildCounterSparkJob++; if (buildCounterSparkJob < 3) { - o.archiveUris = buildUnnamed572(); - o.args = buildUnnamed573(); - o.fileUris = buildUnnamed574(); - o.jarFileUris = buildUnnamed575(); + o.archiveUris = buildUnnamed547(); + o.args = buildUnnamed548(); + o.fileUris = buildUnnamed549(); + o.jarFileUris = buildUnnamed550(); o.loggingConfig = buildLoggingConfig(); o.mainClass = "foo"; o.mainJarFileUri = "foo"; - o.properties = buildUnnamed576(); + o.properties = buildUnnamed551(); } buildCounterSparkJob--; return o; @@ -1466,52 +1466,52 @@ checkSparkJob(api.SparkJob o) { buildCounterSparkJob++; if (buildCounterSparkJob < 3) { - checkUnnamed572(o.archiveUris); - checkUnnamed573(o.args); - checkUnnamed574(o.fileUris); - checkUnnamed575(o.jarFileUris); + checkUnnamed547(o.archiveUris); + checkUnnamed548(o.args); + checkUnnamed549(o.fileUris); + checkUnnamed550(o.jarFileUris); checkLoggingConfig(o.loggingConfig); unittest.expect(o.mainClass, unittest.equals('foo')); unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed576(o.properties); + checkUnnamed551(o.properties); } buildCounterSparkJob--; } -buildUnnamed577() { +buildUnnamed552() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed577(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')); } -buildUnnamed578() { +buildUnnamed553() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed578(core.Map<core.String, core.String> o) { +checkUnnamed553(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed579() { +buildUnnamed554() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed579(core.Map<core.String, core.String> o) { +checkUnnamed554(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1522,12 +1522,12 @@ var o = new api.SparkSqlJob(); buildCounterSparkSqlJob++; if (buildCounterSparkSqlJob < 3) { - o.jarFileUris = buildUnnamed577(); + o.jarFileUris = buildUnnamed552(); o.loggingConfig = buildLoggingConfig(); - o.properties = buildUnnamed578(); + o.properties = buildUnnamed553(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed579(); + o.scriptVariables = buildUnnamed554(); } buildCounterSparkSqlJob--; return o; @@ -1536,40 +1536,40 @@ checkSparkSqlJob(api.SparkSqlJob o) { buildCounterSparkSqlJob++; if (buildCounterSparkSqlJob < 3) { - checkUnnamed577(o.jarFileUris); + checkUnnamed552(o.jarFileUris); checkLoggingConfig(o.loggingConfig); - checkUnnamed578(o.properties); + checkUnnamed553(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed579(o.scriptVariables); + checkUnnamed554(o.scriptVariables); } buildCounterSparkSqlJob--; } -buildUnnamed580() { +buildUnnamed555() { 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; } -checkUnnamed580(core.Map<core.String, core.Object> o) { +checkUnnamed555(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')); } -buildUnnamed581() { +buildUnnamed556() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed580()); - o.add(buildUnnamed580()); + o.add(buildUnnamed555()); + o.add(buildUnnamed555()); return o; } -checkUnnamed581(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed556(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed580(o[0]); - checkUnnamed580(o[1]); + checkUnnamed555(o[0]); + checkUnnamed555(o[1]); } core.int buildCounterStatus = 0; @@ -1578,7 +1578,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed581(); + o.details = buildUnnamed556(); o.message = "foo"; } buildCounterStatus--; @@ -1589,7 +1589,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed581(o.details); + checkUnnamed556(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--;
diff --git a/generated/googleapis/test/dataproc/v1beta2_test.dart b/generated/googleapis/test/dataproc/v1beta2_test.dart deleted file mode 100644 index 4be09ee..0000000 --- a/generated/googleapis/test/dataproc/v1beta2_test.dart +++ /dev/null
@@ -1,2940 +0,0 @@ -library googleapis.dataproc.v1beta2.test; - -import "dart:core" as core; -import "dart:collection" as collection; -import "dart:async" as async; -import "dart:convert" as convert; - -import 'package:http/http.dart' as http; -import 'package:http/testing.dart' as http_testing; -import 'package:test/test.dart' as unittest; - -import 'package:googleapis/dataproc/v1beta2.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); -} - -core.int buildCounterAcceleratorConfig = 0; -buildAcceleratorConfig() { - var o = new api.AcceleratorConfig(); - buildCounterAcceleratorConfig++; - if (buildCounterAcceleratorConfig < 3) { - o.acceleratorCount = 42; - o.acceleratorTypeUri = "foo"; - } - buildCounterAcceleratorConfig--; - return o; -} - -checkAcceleratorConfig(api.AcceleratorConfig o) { - buildCounterAcceleratorConfig++; - if (buildCounterAcceleratorConfig < 3) { - unittest.expect(o.acceleratorCount, unittest.equals(42)); - unittest.expect(o.acceleratorTypeUri, unittest.equals('foo')); - } - buildCounterAcceleratorConfig--; -} - -core.int buildCounterCancelJobRequest = 0; -buildCancelJobRequest() { - var o = new api.CancelJobRequest(); - buildCounterCancelJobRequest++; - if (buildCounterCancelJobRequest < 3) { - } - buildCounterCancelJobRequest--; - return o; -} - -checkCancelJobRequest(api.CancelJobRequest o) { - buildCounterCancelJobRequest++; - if (buildCounterCancelJobRequest < 3) { - } - buildCounterCancelJobRequest--; -} - -buildUnnamed54() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed54(core.Map<core.String, core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -buildUnnamed55() { - var o = new core.List<api.ClusterStatus>(); - o.add(buildClusterStatus()); - o.add(buildClusterStatus()); - return o; -} - -checkUnnamed55(core.List<api.ClusterStatus> o) { - unittest.expect(o, unittest.hasLength(2)); - checkClusterStatus(o[0]); - checkClusterStatus(o[1]); -} - -core.int buildCounterCluster = 0; -buildCluster() { - var o = new api.Cluster(); - buildCounterCluster++; - if (buildCounterCluster < 3) { - o.clusterName = "foo"; - o.clusterUuid = "foo"; - o.config = buildClusterConfig(); - o.labels = buildUnnamed54(); - o.metrics = buildClusterMetrics(); - o.projectId = "foo"; - o.status = buildClusterStatus(); - o.statusHistory = buildUnnamed55(); - } - buildCounterCluster--; - return o; -} - -checkCluster(api.Cluster o) { - buildCounterCluster++; - if (buildCounterCluster < 3) { - unittest.expect(o.clusterName, unittest.equals('foo')); - unittest.expect(o.clusterUuid, unittest.equals('foo')); - checkClusterConfig(o.config); - checkUnnamed54(o.labels); - checkClusterMetrics(o.metrics); - unittest.expect(o.projectId, unittest.equals('foo')); - checkClusterStatus(o.status); - checkUnnamed55(o.statusHistory); - } - buildCounterCluster--; -} - -buildUnnamed56() { - var o = new core.List<api.NodeInitializationAction>(); - o.add(buildNodeInitializationAction()); - o.add(buildNodeInitializationAction()); - return o; -} - -checkUnnamed56(core.List<api.NodeInitializationAction> o) { - unittest.expect(o, unittest.hasLength(2)); - checkNodeInitializationAction(o[0]); - checkNodeInitializationAction(o[1]); -} - -core.int buildCounterClusterConfig = 0; -buildClusterConfig() { - var o = new api.ClusterConfig(); - buildCounterClusterConfig++; - if (buildCounterClusterConfig < 3) { - o.configBucket = "foo"; - o.gceClusterConfig = buildGceClusterConfig(); - o.initializationActions = buildUnnamed56(); - o.masterConfig = buildInstanceGroupConfig(); - o.secondaryWorkerConfig = buildInstanceGroupConfig(); - o.softwareConfig = buildSoftwareConfig(); - o.workerConfig = buildInstanceGroupConfig(); - } - buildCounterClusterConfig--; - return o; -} - -checkClusterConfig(api.ClusterConfig o) { - buildCounterClusterConfig++; - if (buildCounterClusterConfig < 3) { - unittest.expect(o.configBucket, unittest.equals('foo')); - checkGceClusterConfig(o.gceClusterConfig); - checkUnnamed56(o.initializationActions); - checkInstanceGroupConfig(o.masterConfig); - checkInstanceGroupConfig(o.secondaryWorkerConfig); - checkSoftwareConfig(o.softwareConfig); - checkInstanceGroupConfig(o.workerConfig); - } - buildCounterClusterConfig--; -} - -buildUnnamed57() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed57(core.Map<core.String, core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -buildUnnamed58() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed58(core.Map<core.String, core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -core.int buildCounterClusterMetrics = 0; -buildClusterMetrics() { - var o = new api.ClusterMetrics(); - buildCounterClusterMetrics++; - if (buildCounterClusterMetrics < 3) { - o.hdfsMetrics = buildUnnamed57(); - o.yarnMetrics = buildUnnamed58(); - } - buildCounterClusterMetrics--; - return o; -} - -checkClusterMetrics(api.ClusterMetrics o) { - buildCounterClusterMetrics++; - if (buildCounterClusterMetrics < 3) { - checkUnnamed57(o.hdfsMetrics); - checkUnnamed58(o.yarnMetrics); - } - buildCounterClusterMetrics--; -} - -buildUnnamed59() { - 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) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -buildUnnamed60() { - var o = new core.List<api.ClusterOperationStatus>(); - o.add(buildClusterOperationStatus()); - o.add(buildClusterOperationStatus()); - return o; -} - -checkUnnamed60(core.List<api.ClusterOperationStatus> o) { - unittest.expect(o, unittest.hasLength(2)); - checkClusterOperationStatus(o[0]); - checkClusterOperationStatus(o[1]); -} - -buildUnnamed61() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed61(core.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 buildCounterClusterOperationMetadata = 0; -buildClusterOperationMetadata() { - var o = new api.ClusterOperationMetadata(); - buildCounterClusterOperationMetadata++; - if (buildCounterClusterOperationMetadata < 3) { - o.clusterName = "foo"; - o.clusterUuid = "foo"; - o.description = "foo"; - o.labels = buildUnnamed59(); - o.operationType = "foo"; - o.status = buildClusterOperationStatus(); - o.statusHistory = buildUnnamed60(); - o.warnings = buildUnnamed61(); - } - buildCounterClusterOperationMetadata--; - return o; -} - -checkClusterOperationMetadata(api.ClusterOperationMetadata o) { - buildCounterClusterOperationMetadata++; - if (buildCounterClusterOperationMetadata < 3) { - unittest.expect(o.clusterName, unittest.equals('foo')); - unittest.expect(o.clusterUuid, unittest.equals('foo')); - unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed59(o.labels); - unittest.expect(o.operationType, unittest.equals('foo')); - checkClusterOperationStatus(o.status); - checkUnnamed60(o.statusHistory); - checkUnnamed61(o.warnings); - } - buildCounterClusterOperationMetadata--; -} - -core.int buildCounterClusterOperationStatus = 0; -buildClusterOperationStatus() { - var o = new api.ClusterOperationStatus(); - buildCounterClusterOperationStatus++; - if (buildCounterClusterOperationStatus < 3) { - o.details = "foo"; - o.innerState = "foo"; - o.state = "foo"; - o.stateStartTime = "foo"; - } - buildCounterClusterOperationStatus--; - return o; -} - -checkClusterOperationStatus(api.ClusterOperationStatus o) { - buildCounterClusterOperationStatus++; - if (buildCounterClusterOperationStatus < 3) { - unittest.expect(o.details, unittest.equals('foo')); - unittest.expect(o.innerState, unittest.equals('foo')); - unittest.expect(o.state, unittest.equals('foo')); - unittest.expect(o.stateStartTime, unittest.equals('foo')); - } - buildCounterClusterOperationStatus--; -} - -core.int buildCounterClusterStatus = 0; -buildClusterStatus() { - var o = new api.ClusterStatus(); - buildCounterClusterStatus++; - if (buildCounterClusterStatus < 3) { - o.detail = "foo"; - o.state = "foo"; - o.stateStartTime = "foo"; - o.substate = "foo"; - } - buildCounterClusterStatus--; - return o; -} - -checkClusterStatus(api.ClusterStatus o) { - buildCounterClusterStatus++; - if (buildCounterClusterStatus < 3) { - unittest.expect(o.detail, unittest.equals('foo')); - unittest.expect(o.state, unittest.equals('foo')); - unittest.expect(o.stateStartTime, unittest.equals('foo')); - unittest.expect(o.substate, unittest.equals('foo')); - } - buildCounterClusterStatus--; -} - -core.int buildCounterDiagnoseClusterRequest = 0; -buildDiagnoseClusterRequest() { - var o = new api.DiagnoseClusterRequest(); - buildCounterDiagnoseClusterRequest++; - if (buildCounterDiagnoseClusterRequest < 3) { - } - buildCounterDiagnoseClusterRequest--; - return o; -} - -checkDiagnoseClusterRequest(api.DiagnoseClusterRequest o) { - buildCounterDiagnoseClusterRequest++; - if (buildCounterDiagnoseClusterRequest < 3) { - } - buildCounterDiagnoseClusterRequest--; -} - -core.int buildCounterDiskConfig = 0; -buildDiskConfig() { - var o = new api.DiskConfig(); - buildCounterDiskConfig++; - if (buildCounterDiskConfig < 3) { - o.bootDiskSizeGb = 42; - o.numLocalSsds = 42; - } - buildCounterDiskConfig--; - return o; -} - -checkDiskConfig(api.DiskConfig o) { - buildCounterDiskConfig++; - if (buildCounterDiskConfig < 3) { - unittest.expect(o.bootDiskSizeGb, unittest.equals(42)); - unittest.expect(o.numLocalSsds, unittest.equals(42)); - } - buildCounterDiskConfig--; -} - -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--; -} - -buildUnnamed62() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed62(core.Map<core.String, core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -buildUnnamed63() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed63(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed64() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed64(core.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 buildCounterGceClusterConfig = 0; -buildGceClusterConfig() { - var o = new api.GceClusterConfig(); - buildCounterGceClusterConfig++; - if (buildCounterGceClusterConfig < 3) { - o.internalIpOnly = true; - o.metadata = buildUnnamed62(); - o.networkUri = "foo"; - o.serviceAccount = "foo"; - o.serviceAccountScopes = buildUnnamed63(); - o.subnetworkUri = "foo"; - o.tags = buildUnnamed64(); - o.zoneUri = "foo"; - } - buildCounterGceClusterConfig--; - return o; -} - -checkGceClusterConfig(api.GceClusterConfig o) { - buildCounterGceClusterConfig++; - if (buildCounterGceClusterConfig < 3) { - unittest.expect(o.internalIpOnly, unittest.isTrue); - checkUnnamed62(o.metadata); - unittest.expect(o.networkUri, unittest.equals('foo')); - unittest.expect(o.serviceAccount, unittest.equals('foo')); - checkUnnamed63(o.serviceAccountScopes); - unittest.expect(o.subnetworkUri, unittest.equals('foo')); - checkUnnamed64(o.tags); - unittest.expect(o.zoneUri, unittest.equals('foo')); - } - buildCounterGceClusterConfig--; -} - -buildUnnamed65() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed65(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed66() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed66(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed67() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed67(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed68() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed68(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed69() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed69(core.Map<core.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 buildCounterHadoopJob = 0; -buildHadoopJob() { - var o = new api.HadoopJob(); - buildCounterHadoopJob++; - if (buildCounterHadoopJob < 3) { - o.archiveUris = buildUnnamed65(); - o.args = buildUnnamed66(); - o.fileUris = buildUnnamed67(); - o.jarFileUris = buildUnnamed68(); - o.loggingConfig = buildLoggingConfig(); - o.mainClass = "foo"; - o.mainJarFileUri = "foo"; - o.properties = buildUnnamed69(); - } - buildCounterHadoopJob--; - return o; -} - -checkHadoopJob(api.HadoopJob o) { - buildCounterHadoopJob++; - if (buildCounterHadoopJob < 3) { - checkUnnamed65(o.archiveUris); - checkUnnamed66(o.args); - checkUnnamed67(o.fileUris); - checkUnnamed68(o.jarFileUris); - checkLoggingConfig(o.loggingConfig); - unittest.expect(o.mainClass, unittest.equals('foo')); - unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed69(o.properties); - } - buildCounterHadoopJob--; -} - -buildUnnamed70() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed71() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed71(core.Map<core.String, core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -buildUnnamed72() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed72(core.Map<core.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 buildCounterHiveJob = 0; -buildHiveJob() { - var o = new api.HiveJob(); - buildCounterHiveJob++; - if (buildCounterHiveJob < 3) { - o.continueOnFailure = true; - o.jarFileUris = buildUnnamed70(); - o.properties = buildUnnamed71(); - o.queryFileUri = "foo"; - o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed72(); - } - buildCounterHiveJob--; - return o; -} - -checkHiveJob(api.HiveJob o) { - buildCounterHiveJob++; - if (buildCounterHiveJob < 3) { - unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed70(o.jarFileUris); - checkUnnamed71(o.properties); - unittest.expect(o.queryFileUri, unittest.equals('foo')); - checkQueryList(o.queryList); - checkUnnamed72(o.scriptVariables); - } - buildCounterHiveJob--; -} - -buildUnnamed73() { - var o = new core.List<api.AcceleratorConfig>(); - o.add(buildAcceleratorConfig()); - o.add(buildAcceleratorConfig()); - return o; -} - -checkUnnamed73(core.List<api.AcceleratorConfig> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAcceleratorConfig(o[0]); - checkAcceleratorConfig(o[1]); -} - -buildUnnamed74() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed74(core.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 buildCounterInstanceGroupConfig = 0; -buildInstanceGroupConfig() { - var o = new api.InstanceGroupConfig(); - buildCounterInstanceGroupConfig++; - if (buildCounterInstanceGroupConfig < 3) { - o.accelerators = buildUnnamed73(); - o.diskConfig = buildDiskConfig(); - o.imageUri = "foo"; - o.instanceNames = buildUnnamed74(); - o.isPreemptible = true; - o.machineTypeUri = "foo"; - o.managedGroupConfig = buildManagedGroupConfig(); - o.numInstances = 42; - } - buildCounterInstanceGroupConfig--; - return o; -} - -checkInstanceGroupConfig(api.InstanceGroupConfig o) { - buildCounterInstanceGroupConfig++; - if (buildCounterInstanceGroupConfig < 3) { - checkUnnamed73(o.accelerators); - checkDiskConfig(o.diskConfig); - unittest.expect(o.imageUri, unittest.equals('foo')); - checkUnnamed74(o.instanceNames); - unittest.expect(o.isPreemptible, unittest.isTrue); - unittest.expect(o.machineTypeUri, unittest.equals('foo')); - checkManagedGroupConfig(o.managedGroupConfig); - unittest.expect(o.numInstances, unittest.equals(42)); - } - buildCounterInstanceGroupConfig--; -} - -buildUnnamed75() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed75(core.Map<core.String, core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -buildUnnamed76() { - var o = new core.List<api.JobStatus>(); - o.add(buildJobStatus()); - o.add(buildJobStatus()); - return o; -} - -checkUnnamed76(core.List<api.JobStatus> o) { - unittest.expect(o, unittest.hasLength(2)); - checkJobStatus(o[0]); - checkJobStatus(o[1]); -} - -buildUnnamed77() { - var o = new core.List<api.YarnApplication>(); - o.add(buildYarnApplication()); - o.add(buildYarnApplication()); - return o; -} - -checkUnnamed77(core.List<api.YarnApplication> o) { - unittest.expect(o, unittest.hasLength(2)); - checkYarnApplication(o[0]); - checkYarnApplication(o[1]); -} - -core.int buildCounterJob = 0; -buildJob() { - var o = new api.Job(); - buildCounterJob++; - if (buildCounterJob < 3) { - o.driverControlFilesUri = "foo"; - o.driverOutputResourceUri = "foo"; - o.hadoopJob = buildHadoopJob(); - o.hiveJob = buildHiveJob(); - o.labels = buildUnnamed75(); - o.pigJob = buildPigJob(); - o.placement = buildJobPlacement(); - o.pysparkJob = buildPySparkJob(); - o.reference = buildJobReference(); - o.scheduling = buildJobScheduling(); - o.sparkJob = buildSparkJob(); - o.sparkSqlJob = buildSparkSqlJob(); - o.status = buildJobStatus(); - o.statusHistory = buildUnnamed76(); - o.yarnApplications = buildUnnamed77(); - } - buildCounterJob--; - return o; -} - -checkJob(api.Job o) { - buildCounterJob++; - if (buildCounterJob < 3) { - unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); - unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); - checkHadoopJob(o.hadoopJob); - checkHiveJob(o.hiveJob); - checkUnnamed75(o.labels); - checkPigJob(o.pigJob); - checkJobPlacement(o.placement); - checkPySparkJob(o.pysparkJob); - checkJobReference(o.reference); - checkJobScheduling(o.scheduling); - checkSparkJob(o.sparkJob); - checkSparkSqlJob(o.sparkSqlJob); - checkJobStatus(o.status); - checkUnnamed76(o.statusHistory); - checkUnnamed77(o.yarnApplications); - } - buildCounterJob--; -} - -core.int buildCounterJobPlacement = 0; -buildJobPlacement() { - var o = new api.JobPlacement(); - buildCounterJobPlacement++; - if (buildCounterJobPlacement < 3) { - o.clusterName = "foo"; - o.clusterUuid = "foo"; - } - buildCounterJobPlacement--; - return o; -} - -checkJobPlacement(api.JobPlacement o) { - buildCounterJobPlacement++; - if (buildCounterJobPlacement < 3) { - unittest.expect(o.clusterName, unittest.equals('foo')); - unittest.expect(o.clusterUuid, unittest.equals('foo')); - } - buildCounterJobPlacement--; -} - -core.int buildCounterJobReference = 0; -buildJobReference() { - var o = new api.JobReference(); - buildCounterJobReference++; - if (buildCounterJobReference < 3) { - o.jobId = "foo"; - o.projectId = "foo"; - } - buildCounterJobReference--; - return o; -} - -checkJobReference(api.JobReference o) { - buildCounterJobReference++; - if (buildCounterJobReference < 3) { - unittest.expect(o.jobId, unittest.equals('foo')); - unittest.expect(o.projectId, unittest.equals('foo')); - } - buildCounterJobReference--; -} - -core.int buildCounterJobScheduling = 0; -buildJobScheduling() { - var o = new api.JobScheduling(); - buildCounterJobScheduling++; - if (buildCounterJobScheduling < 3) { - o.maxFailuresPerHour = 42; - } - buildCounterJobScheduling--; - return o; -} - -checkJobScheduling(api.JobScheduling o) { - buildCounterJobScheduling++; - if (buildCounterJobScheduling < 3) { - unittest.expect(o.maxFailuresPerHour, unittest.equals(42)); - } - buildCounterJobScheduling--; -} - -core.int buildCounterJobStatus = 0; -buildJobStatus() { - var o = new api.JobStatus(); - buildCounterJobStatus++; - if (buildCounterJobStatus < 3) { - o.details = "foo"; - o.state = "foo"; - o.stateStartTime = "foo"; - o.substate = "foo"; - } - buildCounterJobStatus--; - return o; -} - -checkJobStatus(api.JobStatus o) { - buildCounterJobStatus++; - if (buildCounterJobStatus < 3) { - unittest.expect(o.details, unittest.equals('foo')); - unittest.expect(o.state, unittest.equals('foo')); - unittest.expect(o.stateStartTime, unittest.equals('foo')); - unittest.expect(o.substate, unittest.equals('foo')); - } - buildCounterJobStatus--; -} - -buildUnnamed78() { - var o = new core.List<api.Cluster>(); - o.add(buildCluster()); - o.add(buildCluster()); - return o; -} - -checkUnnamed78(core.List<api.Cluster> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCluster(o[0]); - checkCluster(o[1]); -} - -core.int buildCounterListClustersResponse = 0; -buildListClustersResponse() { - var o = new api.ListClustersResponse(); - buildCounterListClustersResponse++; - if (buildCounterListClustersResponse < 3) { - o.clusters = buildUnnamed78(); - o.nextPageToken = "foo"; - } - buildCounterListClustersResponse--; - return o; -} - -checkListClustersResponse(api.ListClustersResponse o) { - buildCounterListClustersResponse++; - if (buildCounterListClustersResponse < 3) { - checkUnnamed78(o.clusters); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterListClustersResponse--; -} - -buildUnnamed79() { - var o = new core.List<api.Job>(); - o.add(buildJob()); - o.add(buildJob()); - return o; -} - -checkUnnamed79(core.List<api.Job> o) { - unittest.expect(o, unittest.hasLength(2)); - checkJob(o[0]); - checkJob(o[1]); -} - -core.int buildCounterListJobsResponse = 0; -buildListJobsResponse() { - var o = new api.ListJobsResponse(); - buildCounterListJobsResponse++; - if (buildCounterListJobsResponse < 3) { - o.jobs = buildUnnamed79(); - o.nextPageToken = "foo"; - } - buildCounterListJobsResponse--; - return o; -} - -checkListJobsResponse(api.ListJobsResponse o) { - buildCounterListJobsResponse++; - if (buildCounterListJobsResponse < 3) { - checkUnnamed79(o.jobs); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterListJobsResponse--; -} - -buildUnnamed80() { - var o = new core.List<api.Operation>(); - o.add(buildOperation()); - o.add(buildOperation()); - return o; -} - -checkUnnamed80(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 = buildUnnamed80(); - } - buildCounterListOperationsResponse--; - return o; -} - -checkListOperationsResponse(api.ListOperationsResponse o) { - buildCounterListOperationsResponse++; - if (buildCounterListOperationsResponse < 3) { - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed80(o.operations); - } - buildCounterListOperationsResponse--; -} - -buildUnnamed81() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed81(core.Map<core.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 buildCounterLoggingConfig = 0; -buildLoggingConfig() { - var o = new api.LoggingConfig(); - buildCounterLoggingConfig++; - if (buildCounterLoggingConfig < 3) { - o.driverLogLevels = buildUnnamed81(); - } - buildCounterLoggingConfig--; - return o; -} - -checkLoggingConfig(api.LoggingConfig o) { - buildCounterLoggingConfig++; - if (buildCounterLoggingConfig < 3) { - checkUnnamed81(o.driverLogLevels); - } - buildCounterLoggingConfig--; -} - -core.int buildCounterManagedGroupConfig = 0; -buildManagedGroupConfig() { - var o = new api.ManagedGroupConfig(); - buildCounterManagedGroupConfig++; - if (buildCounterManagedGroupConfig < 3) { - o.instanceGroupManagerName = "foo"; - o.instanceTemplateName = "foo"; - } - buildCounterManagedGroupConfig--; - return o; -} - -checkManagedGroupConfig(api.ManagedGroupConfig o) { - buildCounterManagedGroupConfig++; - if (buildCounterManagedGroupConfig < 3) { - unittest.expect(o.instanceGroupManagerName, unittest.equals('foo')); - unittest.expect(o.instanceTemplateName, unittest.equals('foo')); - } - buildCounterManagedGroupConfig--; -} - -core.int buildCounterNodeInitializationAction = 0; -buildNodeInitializationAction() { - var o = new api.NodeInitializationAction(); - buildCounterNodeInitializationAction++; - if (buildCounterNodeInitializationAction < 3) { - o.executableFile = "foo"; - o.executionTimeout = "foo"; - } - buildCounterNodeInitializationAction--; - return o; -} - -checkNodeInitializationAction(api.NodeInitializationAction o) { - buildCounterNodeInitializationAction++; - if (buildCounterNodeInitializationAction < 3) { - unittest.expect(o.executableFile, unittest.equals('foo')); - unittest.expect(o.executionTimeout, unittest.equals('foo')); - } - buildCounterNodeInitializationAction--; -} - -buildUnnamed82() { - 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; -} - -checkUnnamed82(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')); -} - -buildUnnamed83() { - 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; -} - -checkUnnamed83(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 = buildUnnamed82(); - o.name = "foo"; - o.response = buildUnnamed83(); - } - buildCounterOperation--; - return o; -} - -checkOperation(api.Operation o) { - buildCounterOperation++; - if (buildCounterOperation < 3) { - unittest.expect(o.done, unittest.isTrue); - checkStatus(o.error); - checkUnnamed82(o.metadata); - unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed83(o.response); - } - buildCounterOperation--; -} - -buildUnnamed84() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed85() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed85(core.Map<core.String, core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -buildUnnamed86() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed86(core.Map<core.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 buildCounterPigJob = 0; -buildPigJob() { - var o = new api.PigJob(); - buildCounterPigJob++; - if (buildCounterPigJob < 3) { - o.continueOnFailure = true; - o.jarFileUris = buildUnnamed84(); - o.loggingConfig = buildLoggingConfig(); - o.properties = buildUnnamed85(); - o.queryFileUri = "foo"; - o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed86(); - } - buildCounterPigJob--; - return o; -} - -checkPigJob(api.PigJob o) { - buildCounterPigJob++; - if (buildCounterPigJob < 3) { - unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed84(o.jarFileUris); - checkLoggingConfig(o.loggingConfig); - checkUnnamed85(o.properties); - unittest.expect(o.queryFileUri, unittest.equals('foo')); - checkQueryList(o.queryList); - checkUnnamed86(o.scriptVariables); - } - buildCounterPigJob--; -} - -buildUnnamed87() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed87(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed89() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed90() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed91() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed91(core.Map<core.String, core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -buildUnnamed92() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed92(core.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 buildCounterPySparkJob = 0; -buildPySparkJob() { - var o = new api.PySparkJob(); - buildCounterPySparkJob++; - if (buildCounterPySparkJob < 3) { - o.archiveUris = buildUnnamed87(); - o.args = buildUnnamed88(); - o.fileUris = buildUnnamed89(); - o.jarFileUris = buildUnnamed90(); - o.loggingConfig = buildLoggingConfig(); - o.mainPythonFileUri = "foo"; - o.properties = buildUnnamed91(); - o.pythonFileUris = buildUnnamed92(); - } - buildCounterPySparkJob--; - return o; -} - -checkPySparkJob(api.PySparkJob o) { - buildCounterPySparkJob++; - if (buildCounterPySparkJob < 3) { - checkUnnamed87(o.archiveUris); - checkUnnamed88(o.args); - checkUnnamed89(o.fileUris); - checkUnnamed90(o.jarFileUris); - checkLoggingConfig(o.loggingConfig); - unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); - checkUnnamed91(o.properties); - checkUnnamed92(o.pythonFileUris); - } - buildCounterPySparkJob--; -} - -buildUnnamed93() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed93(core.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 buildCounterQueryList = 0; -buildQueryList() { - var o = new api.QueryList(); - buildCounterQueryList++; - if (buildCounterQueryList < 3) { - o.queries = buildUnnamed93(); - } - buildCounterQueryList--; - return o; -} - -checkQueryList(api.QueryList o) { - buildCounterQueryList++; - if (buildCounterQueryList < 3) { - checkUnnamed93(o.queries); - } - buildCounterQueryList--; -} - -buildUnnamed94() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed94(core.Map<core.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 buildCounterSoftwareConfig = 0; -buildSoftwareConfig() { - var o = new api.SoftwareConfig(); - buildCounterSoftwareConfig++; - if (buildCounterSoftwareConfig < 3) { - o.imageVersion = "foo"; - o.properties = buildUnnamed94(); - } - buildCounterSoftwareConfig--; - return o; -} - -checkSoftwareConfig(api.SoftwareConfig o) { - buildCounterSoftwareConfig++; - if (buildCounterSoftwareConfig < 3) { - unittest.expect(o.imageVersion, unittest.equals('foo')); - checkUnnamed94(o.properties); - } - buildCounterSoftwareConfig--; -} - -buildUnnamed95() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed95(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed96(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed97() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed97(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed99() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed99(core.Map<core.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 buildCounterSparkJob = 0; -buildSparkJob() { - var o = new api.SparkJob(); - buildCounterSparkJob++; - if (buildCounterSparkJob < 3) { - o.archiveUris = buildUnnamed95(); - o.args = buildUnnamed96(); - o.fileUris = buildUnnamed97(); - o.jarFileUris = buildUnnamed98(); - o.loggingConfig = buildLoggingConfig(); - o.mainClass = "foo"; - o.mainJarFileUri = "foo"; - o.properties = buildUnnamed99(); - } - buildCounterSparkJob--; - return o; -} - -checkSparkJob(api.SparkJob o) { - buildCounterSparkJob++; - if (buildCounterSparkJob < 3) { - checkUnnamed95(o.archiveUris); - checkUnnamed96(o.args); - checkUnnamed97(o.fileUris); - checkUnnamed98(o.jarFileUris); - checkLoggingConfig(o.loggingConfig); - unittest.expect(o.mainClass, unittest.equals('foo')); - unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed99(o.properties); - } - buildCounterSparkJob--; -} - -buildUnnamed100() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed100(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed101() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed101(core.Map<core.String, core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -buildUnnamed102() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed102(core.Map<core.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 buildCounterSparkSqlJob = 0; -buildSparkSqlJob() { - var o = new api.SparkSqlJob(); - buildCounterSparkSqlJob++; - if (buildCounterSparkSqlJob < 3) { - o.jarFileUris = buildUnnamed100(); - o.loggingConfig = buildLoggingConfig(); - o.properties = buildUnnamed101(); - o.queryFileUri = "foo"; - o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed102(); - } - buildCounterSparkSqlJob--; - return o; -} - -checkSparkSqlJob(api.SparkSqlJob o) { - buildCounterSparkSqlJob++; - if (buildCounterSparkSqlJob < 3) { - checkUnnamed100(o.jarFileUris); - checkLoggingConfig(o.loggingConfig); - checkUnnamed101(o.properties); - unittest.expect(o.queryFileUri, unittest.equals('foo')); - checkQueryList(o.queryList); - checkUnnamed102(o.scriptVariables); - } - buildCounterSparkSqlJob--; -} - -buildUnnamed103() { - 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; -} - -checkUnnamed103(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')); -} - -buildUnnamed104() { - var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed103()); - o.add(buildUnnamed103()); - return o; -} - -checkUnnamed104(core.List<core.Map<core.String, core.Object>> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUnnamed103(o[0]); - checkUnnamed103(o[1]); -} - -core.int buildCounterStatus = 0; -buildStatus() { - var o = new api.Status(); - buildCounterStatus++; - if (buildCounterStatus < 3) { - o.code = 42; - o.details = buildUnnamed104(); - o.message = "foo"; - } - buildCounterStatus--; - return o; -} - -checkStatus(api.Status o) { - buildCounterStatus++; - if (buildCounterStatus < 3) { - unittest.expect(o.code, unittest.equals(42)); - checkUnnamed104(o.details); - unittest.expect(o.message, unittest.equals('foo')); - } - buildCounterStatus--; -} - -core.int buildCounterSubmitJobRequest = 0; -buildSubmitJobRequest() { - var o = new api.SubmitJobRequest(); - buildCounterSubmitJobRequest++; - if (buildCounterSubmitJobRequest < 3) { - o.job = buildJob(); - } - buildCounterSubmitJobRequest--; - return o; -} - -checkSubmitJobRequest(api.SubmitJobRequest o) { - buildCounterSubmitJobRequest++; - if (buildCounterSubmitJobRequest < 3) { - checkJob(o.job); - } - buildCounterSubmitJobRequest--; -} - -core.int buildCounterYarnApplication = 0; -buildYarnApplication() { - var o = new api.YarnApplication(); - buildCounterYarnApplication++; - if (buildCounterYarnApplication < 3) { - o.name = "foo"; - o.progress = 42.0; - o.state = "foo"; - o.trackingUrl = "foo"; - } - buildCounterYarnApplication--; - return o; -} - -checkYarnApplication(api.YarnApplication o) { - buildCounterYarnApplication++; - if (buildCounterYarnApplication < 3) { - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.progress, unittest.equals(42.0)); - unittest.expect(o.state, unittest.equals('foo')); - unittest.expect(o.trackingUrl, unittest.equals('foo')); - } - buildCounterYarnApplication--; -} - - -main() { - unittest.group("obj-schema-AcceleratorConfig", () { - unittest.test("to-json--from-json", () { - var o = buildAcceleratorConfig(); - var od = new api.AcceleratorConfig.fromJson(o.toJson()); - checkAcceleratorConfig(od); - }); - }); - - - unittest.group("obj-schema-CancelJobRequest", () { - unittest.test("to-json--from-json", () { - var o = buildCancelJobRequest(); - var od = new api.CancelJobRequest.fromJson(o.toJson()); - checkCancelJobRequest(od); - }); - }); - - - unittest.group("obj-schema-Cluster", () { - unittest.test("to-json--from-json", () { - var o = buildCluster(); - var od = new api.Cluster.fromJson(o.toJson()); - checkCluster(od); - }); - }); - - - unittest.group("obj-schema-ClusterConfig", () { - unittest.test("to-json--from-json", () { - var o = buildClusterConfig(); - var od = new api.ClusterConfig.fromJson(o.toJson()); - checkClusterConfig(od); - }); - }); - - - unittest.group("obj-schema-ClusterMetrics", () { - unittest.test("to-json--from-json", () { - var o = buildClusterMetrics(); - var od = new api.ClusterMetrics.fromJson(o.toJson()); - checkClusterMetrics(od); - }); - }); - - - unittest.group("obj-schema-ClusterOperationMetadata", () { - unittest.test("to-json--from-json", () { - var o = buildClusterOperationMetadata(); - var od = new api.ClusterOperationMetadata.fromJson(o.toJson()); - checkClusterOperationMetadata(od); - }); - }); - - - unittest.group("obj-schema-ClusterOperationStatus", () { - unittest.test("to-json--from-json", () { - var o = buildClusterOperationStatus(); - var od = new api.ClusterOperationStatus.fromJson(o.toJson()); - checkClusterOperationStatus(od); - }); - }); - - - unittest.group("obj-schema-ClusterStatus", () { - unittest.test("to-json--from-json", () { - var o = buildClusterStatus(); - var od = new api.ClusterStatus.fromJson(o.toJson()); - checkClusterStatus(od); - }); - }); - - - unittest.group("obj-schema-DiagnoseClusterRequest", () { - unittest.test("to-json--from-json", () { - var o = buildDiagnoseClusterRequest(); - var od = new api.DiagnoseClusterRequest.fromJson(o.toJson()); - checkDiagnoseClusterRequest(od); - }); - }); - - - unittest.group("obj-schema-DiskConfig", () { - unittest.test("to-json--from-json", () { - var o = buildDiskConfig(); - var od = new api.DiskConfig.fromJson(o.toJson()); - checkDiskConfig(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-GceClusterConfig", () { - unittest.test("to-json--from-json", () { - var o = buildGceClusterConfig(); - var od = new api.GceClusterConfig.fromJson(o.toJson()); - checkGceClusterConfig(od); - }); - }); - - - unittest.group("obj-schema-HadoopJob", () { - unittest.test("to-json--from-json", () { - var o = buildHadoopJob(); - var od = new api.HadoopJob.fromJson(o.toJson()); - checkHadoopJob(od); - }); - }); - - - unittest.group("obj-schema-HiveJob", () { - unittest.test("to-json--from-json", () { - var o = buildHiveJob(); - var od = new api.HiveJob.fromJson(o.toJson()); - checkHiveJob(od); - }); - }); - - - unittest.group("obj-schema-InstanceGroupConfig", () { - unittest.test("to-json--from-json", () { - var o = buildInstanceGroupConfig(); - var od = new api.InstanceGroupConfig.fromJson(o.toJson()); - checkInstanceGroupConfig(od); - }); - }); - - - unittest.group("obj-schema-Job", () { - unittest.test("to-json--from-json", () { - var o = buildJob(); - var od = new api.Job.fromJson(o.toJson()); - checkJob(od); - }); - }); - - - unittest.group("obj-schema-JobPlacement", () { - unittest.test("to-json--from-json", () { - var o = buildJobPlacement(); - var od = new api.JobPlacement.fromJson(o.toJson()); - checkJobPlacement(od); - }); - }); - - - unittest.group("obj-schema-JobReference", () { - unittest.test("to-json--from-json", () { - var o = buildJobReference(); - var od = new api.JobReference.fromJson(o.toJson()); - checkJobReference(od); - }); - }); - - - unittest.group("obj-schema-JobScheduling", () { - unittest.test("to-json--from-json", () { - var o = buildJobScheduling(); - var od = new api.JobScheduling.fromJson(o.toJson()); - checkJobScheduling(od); - }); - }); - - - unittest.group("obj-schema-JobStatus", () { - unittest.test("to-json--from-json", () { - var o = buildJobStatus(); - var od = new api.JobStatus.fromJson(o.toJson()); - checkJobStatus(od); - }); - }); - - - unittest.group("obj-schema-ListClustersResponse", () { - unittest.test("to-json--from-json", () { - var o = buildListClustersResponse(); - var od = new api.ListClustersResponse.fromJson(o.toJson()); - checkListClustersResponse(od); - }); - }); - - - unittest.group("obj-schema-ListJobsResponse", () { - unittest.test("to-json--from-json", () { - var o = buildListJobsResponse(); - var od = new api.ListJobsResponse.fromJson(o.toJson()); - checkListJobsResponse(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-LoggingConfig", () { - unittest.test("to-json--from-json", () { - var o = buildLoggingConfig(); - var od = new api.LoggingConfig.fromJson(o.toJson()); - checkLoggingConfig(od); - }); - }); - - - unittest.group("obj-schema-ManagedGroupConfig", () { - unittest.test("to-json--from-json", () { - var o = buildManagedGroupConfig(); - var od = new api.ManagedGroupConfig.fromJson(o.toJson()); - checkManagedGroupConfig(od); - }); - }); - - - unittest.group("obj-schema-NodeInitializationAction", () { - unittest.test("to-json--from-json", () { - var o = buildNodeInitializationAction(); - var od = new api.NodeInitializationAction.fromJson(o.toJson()); - checkNodeInitializationAction(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-PigJob", () { - unittest.test("to-json--from-json", () { - var o = buildPigJob(); - var od = new api.PigJob.fromJson(o.toJson()); - checkPigJob(od); - }); - }); - - - unittest.group("obj-schema-PySparkJob", () { - unittest.test("to-json--from-json", () { - var o = buildPySparkJob(); - var od = new api.PySparkJob.fromJson(o.toJson()); - checkPySparkJob(od); - }); - }); - - - unittest.group("obj-schema-QueryList", () { - unittest.test("to-json--from-json", () { - var o = buildQueryList(); - var od = new api.QueryList.fromJson(o.toJson()); - checkQueryList(od); - }); - }); - - - unittest.group("obj-schema-SoftwareConfig", () { - unittest.test("to-json--from-json", () { - var o = buildSoftwareConfig(); - var od = new api.SoftwareConfig.fromJson(o.toJson()); - checkSoftwareConfig(od); - }); - }); - - - unittest.group("obj-schema-SparkJob", () { - unittest.test("to-json--from-json", () { - var o = buildSparkJob(); - var od = new api.SparkJob.fromJson(o.toJson()); - checkSparkJob(od); - }); - }); - - - unittest.group("obj-schema-SparkSqlJob", () { - unittest.test("to-json--from-json", () { - var o = buildSparkSqlJob(); - var od = new api.SparkSqlJob.fromJson(o.toJson()); - checkSparkSqlJob(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-SubmitJobRequest", () { - unittest.test("to-json--from-json", () { - var o = buildSubmitJobRequest(); - var od = new api.SubmitJobRequest.fromJson(o.toJson()); - checkSubmitJobRequest(od); - }); - }); - - - unittest.group("obj-schema-YarnApplication", () { - unittest.test("to-json--from-json", () { - var o = buildYarnApplication(); - var od = new api.YarnApplication.fromJson(o.toJson()); - checkYarnApplication(od); - }); - }); - - - unittest.group("resource-ProjectsRegionsClustersResourceApi", () { - unittest.test("method--create", () { - - var mock = new HttpServerMock(); - api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).projects.regions.clusters; - var arg_request = buildCluster(); - var arg_projectId = "foo"; - var arg_region = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.Cluster.fromJson(json); - checkCluster(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1beta2/projects/")); - pathOffset += 17; - index = path.indexOf("/regions/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/regions/")); - pathOffset += 9; - index = path.indexOf("/clusters", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_region")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/clusters")); - pathOffset += 9; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOperation()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.create(arg_request, arg_projectId, arg_region).then(unittest.expectAsync1(((api.Operation response) { - checkOperation(response); - }))); - }); - - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).projects.regions.clusters; - var arg_projectId = "foo"; - var arg_region = "foo"; - var arg_clusterName = "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 + 17), unittest.equals("v1beta2/projects/")); - pathOffset += 17; - index = path.indexOf("/regions/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/regions/")); - pathOffset += 9; - index = path.indexOf("/clusters/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_region")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/clusters/")); - pathOffset += 10; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_clusterName")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOperation()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_projectId, arg_region, arg_clusterName).then(unittest.expectAsync1(((api.Operation response) { - checkOperation(response); - }))); - }); - - unittest.test("method--diagnose", () { - - var mock = new HttpServerMock(); - api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).projects.regions.clusters; - var arg_request = buildDiagnoseClusterRequest(); - var arg_projectId = "foo"; - var arg_region = "foo"; - var arg_clusterName = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.DiagnoseClusterRequest.fromJson(json); - checkDiagnoseClusterRequest(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1beta2/projects/")); - pathOffset += 17; - index = path.indexOf("/regions/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/regions/")); - pathOffset += 9; - index = path.indexOf("/clusters/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_region")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/clusters/")); - pathOffset += 10; - index = path.indexOf(":diagnose", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_clusterName")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals(":diagnose")); - pathOffset += 9; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOperation()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.diagnose(arg_request, arg_projectId, arg_region, arg_clusterName).then(unittest.expectAsync1(((api.Operation response) { - checkOperation(response); - }))); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).projects.regions.clusters; - var arg_projectId = "foo"; - var arg_region = "foo"; - var arg_clusterName = "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 + 17), unittest.equals("v1beta2/projects/")); - pathOffset += 17; - index = path.indexOf("/regions/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/regions/")); - pathOffset += 9; - index = path.indexOf("/clusters/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_region")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/clusters/")); - pathOffset += 10; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_clusterName")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - 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_projectId, arg_region, arg_clusterName).then(unittest.expectAsync1(((api.Cluster response) { - checkCluster(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.ProjectsRegionsClustersResourceApi res = 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; - 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 + 17), unittest.equals("v1beta2/projects/")); - pathOffset += 17; - index = path.indexOf("/regions/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/regions/")); - pathOffset += 9; - index = path.indexOf("/clusters", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_region")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/clusters")); - pathOffset += 9; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["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)); - - - 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_projectId, arg_region, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListClustersResponse response) { - checkListClustersResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).projects.regions.clusters; - var arg_request = buildCluster(); - var arg_projectId = "foo"; - var arg_region = "foo"; - var arg_clusterName = "foo"; - var arg_updateMask = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.Cluster.fromJson(json); - checkCluster(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1beta2/projects/")); - pathOffset += 17; - index = path.indexOf("/regions/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/regions/")); - pathOffset += 9; - index = path.indexOf("/clusters/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_region")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/clusters/")); - pathOffset += 10; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_clusterName")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOperation()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_projectId, arg_region, arg_clusterName, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Operation response) { - checkOperation(response); - }))); - }); - - }); - - - unittest.group("resource-ProjectsRegionsJobsResourceApi", () { - unittest.test("method--cancel", () { - - var mock = new HttpServerMock(); - api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).projects.regions.jobs; - var arg_request = buildCancelJobRequest(); - var arg_projectId = "foo"; - var arg_region = "foo"; - var arg_jobId = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.CancelJobRequest.fromJson(json); - checkCancelJobRequest(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1beta2/projects/")); - pathOffset += 17; - index = path.indexOf("/regions/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/regions/")); - pathOffset += 9; - index = path.indexOf("/jobs/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_region")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/jobs/")); - pathOffset += 6; - index = path.indexOf(":cancel", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_jobId")); - unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals(":cancel")); - pathOffset += 7; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildJob()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.cancel(arg_request, arg_projectId, arg_region, arg_jobId).then(unittest.expectAsync1(((api.Job response) { - checkJob(response); - }))); - }); - - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).projects.regions.jobs; - var arg_projectId = "foo"; - var arg_region = "foo"; - var arg_jobId = "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 + 17), unittest.equals("v1beta2/projects/")); - pathOffset += 17; - index = path.indexOf("/regions/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/regions/")); - pathOffset += 9; - index = path.indexOf("/jobs/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_region")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/jobs/")); - pathOffset += 6; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_jobId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildEmpty()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_projectId, arg_region, arg_jobId).then(unittest.expectAsync1(((api.Empty response) { - checkEmpty(response); - }))); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).projects.regions.jobs; - var arg_projectId = "foo"; - var arg_region = "foo"; - var arg_jobId = "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 + 17), unittest.equals("v1beta2/projects/")); - pathOffset += 17; - index = path.indexOf("/regions/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/regions/")); - pathOffset += 9; - index = path.indexOf("/jobs/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_region")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/jobs/")); - pathOffset += 6; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_jobId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildJob()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_projectId, arg_region, arg_jobId).then(unittest.expectAsync1(((api.Job response) { - checkJob(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.ProjectsRegionsJobsResourceApi res = 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"; - 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 + 17), unittest.equals("v1beta2/projects/")); - pathOffset += 17; - index = path.indexOf("/regions/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/regions/")); - pathOffset += 9; - index = path.indexOf("/jobs", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_region")); - unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equals("/jobs")); - pathOffset += 5; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect(queryMap["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)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildListJobsResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_projectId, arg_region, filter: arg_filter, jobStateMatcher: arg_jobStateMatcher, pageToken: arg_pageToken, pageSize: arg_pageSize, clusterName: arg_clusterName).then(unittest.expectAsync1(((api.ListJobsResponse response) { - checkListJobsResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).projects.regions.jobs; - var arg_request = buildJob(); - var arg_projectId = "foo"; - var arg_region = "foo"; - var arg_jobId = "foo"; - var arg_updateMask = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.Job.fromJson(json); - checkJob(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1beta2/projects/")); - pathOffset += 17; - index = path.indexOf("/regions/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/regions/")); - pathOffset += 9; - index = path.indexOf("/jobs/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_region")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/jobs/")); - pathOffset += 6; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_jobId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildJob()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_projectId, arg_region, arg_jobId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Job response) { - checkJob(response); - }))); - }); - - unittest.test("method--submit", () { - - var mock = new HttpServerMock(); - api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).projects.regions.jobs; - var arg_request = buildSubmitJobRequest(); - var arg_projectId = "foo"; - var arg_region = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.SubmitJobRequest.fromJson(json); - checkSubmitJobRequest(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1beta2/projects/")); - pathOffset += 17; - index = path.indexOf("/regions/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/regions/")); - pathOffset += 9; - index = path.indexOf("/jobs:submit", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_region")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/jobs:submit")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildJob()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.submit(arg_request, arg_projectId, arg_region).then(unittest.expectAsync1(((api.Job response) { - checkJob(response); - }))); - }); - - }); - - - unittest.group("resource-ProjectsRegionsOperationsResourceApi", () { - unittest.test("method--cancel", () { - - var mock = new HttpServerMock(); - api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).projects.regions.operations; - var arg_name = "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("v1beta2/")); - pathOffset += 8; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildEmpty()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.cancel(arg_name).then(unittest.expectAsync1(((api.Empty response) { - checkEmpty(response); - }))); - }); - - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).projects.regions.operations; - var arg_name = "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("v1beta2/")); - pathOffset += 8; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildEmpty()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { - checkEmpty(response); - }))); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).projects.regions.operations; - var arg_name = "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("v1beta2/")); - pathOffset += 8; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOperation()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { - checkOperation(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).projects.regions.operations; - var arg_name = "foo"; - var arg_pageSize = 42; - var arg_filter = "foo"; - var arg_pageToken = "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("v1beta2/")); - pathOffset += 8; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildListOperationsResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListOperationsResponse response) { - checkListOperationsResponse(response); - }))); - }); - - }); - - -} -
diff --git a/generated/googleapis/test/datastore/v1_test.dart b/generated/googleapis/test/datastore/v1_test.dart index f54fd15..2f50ec5 100644 --- a/generated/googleapis/test/datastore/v1_test.dart +++ b/generated/googleapis/test/datastore/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed650() { +buildUnnamed625() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed650(core.List<api.Key> o) { +checkUnnamed625(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -69,7 +69,7 @@ var o = new api.AllocateIdsRequest(); buildCounterAllocateIdsRequest++; if (buildCounterAllocateIdsRequest < 3) { - o.keys = buildUnnamed650(); + o.keys = buildUnnamed625(); } buildCounterAllocateIdsRequest--; return o; @@ -78,19 +78,19 @@ checkAllocateIdsRequest(api.AllocateIdsRequest o) { buildCounterAllocateIdsRequest++; if (buildCounterAllocateIdsRequest < 3) { - checkUnnamed650(o.keys); + checkUnnamed625(o.keys); } buildCounterAllocateIdsRequest--; } -buildUnnamed651() { +buildUnnamed626() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed651(core.List<api.Key> o) { +checkUnnamed626(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -101,7 +101,7 @@ var o = new api.AllocateIdsResponse(); buildCounterAllocateIdsResponse++; if (buildCounterAllocateIdsResponse < 3) { - o.keys = buildUnnamed651(); + o.keys = buildUnnamed626(); } buildCounterAllocateIdsResponse--; return o; @@ -110,19 +110,19 @@ checkAllocateIdsResponse(api.AllocateIdsResponse o) { buildCounterAllocateIdsResponse++; if (buildCounterAllocateIdsResponse < 3) { - checkUnnamed651(o.keys); + checkUnnamed626(o.keys); } buildCounterAllocateIdsResponse--; } -buildUnnamed652() { +buildUnnamed627() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed652(core.List<api.Value> o) { +checkUnnamed627(core.List<api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o[0]); checkValue(o[1]); @@ -133,7 +133,7 @@ var o = new api.ArrayValue(); buildCounterArrayValue++; if (buildCounterArrayValue < 3) { - o.values = buildUnnamed652(); + o.values = buildUnnamed627(); } buildCounterArrayValue--; return o; @@ -142,7 +142,7 @@ checkArrayValue(api.ArrayValue o) { buildCounterArrayValue++; if (buildCounterArrayValue < 3) { - checkUnnamed652(o.values); + checkUnnamed627(o.values); } buildCounterArrayValue--; } @@ -183,14 +183,14 @@ buildCounterBeginTransactionResponse--; } -buildUnnamed653() { +buildUnnamed628() { var o = new core.List<api.Mutation>(); o.add(buildMutation()); o.add(buildMutation()); return o; } -checkUnnamed653(core.List<api.Mutation> o) { +checkUnnamed628(core.List<api.Mutation> o) { unittest.expect(o, unittest.hasLength(2)); checkMutation(o[0]); checkMutation(o[1]); @@ -202,7 +202,7 @@ buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { o.mode = "foo"; - o.mutations = buildUnnamed653(); + o.mutations = buildUnnamed628(); o.transaction = "foo"; } buildCounterCommitRequest--; @@ -213,20 +213,20 @@ buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { unittest.expect(o.mode, unittest.equals('foo')); - checkUnnamed653(o.mutations); + checkUnnamed628(o.mutations); unittest.expect(o.transaction, unittest.equals('foo')); } buildCounterCommitRequest--; } -buildUnnamed654() { +buildUnnamed629() { var o = new core.List<api.MutationResult>(); o.add(buildMutationResult()); o.add(buildMutationResult()); return o; } -checkUnnamed654(core.List<api.MutationResult> o) { +checkUnnamed629(core.List<api.MutationResult> o) { unittest.expect(o, unittest.hasLength(2)); checkMutationResult(o[0]); checkMutationResult(o[1]); @@ -238,7 +238,7 @@ buildCounterCommitResponse++; if (buildCounterCommitResponse < 3) { o.indexUpdates = 42; - o.mutationResults = buildUnnamed654(); + o.mutationResults = buildUnnamed629(); } buildCounterCommitResponse--; return o; @@ -248,19 +248,19 @@ buildCounterCommitResponse++; if (buildCounterCommitResponse < 3) { unittest.expect(o.indexUpdates, unittest.equals(42)); - checkUnnamed654(o.mutationResults); + checkUnnamed629(o.mutationResults); } buildCounterCommitResponse--; } -buildUnnamed655() { +buildUnnamed630() { var o = new core.List<api.Filter>(); o.add(buildFilter()); o.add(buildFilter()); return o; } -checkUnnamed655(core.List<api.Filter> o) { +checkUnnamed630(core.List<api.Filter> o) { unittest.expect(o, unittest.hasLength(2)); checkFilter(o[0]); checkFilter(o[1]); @@ -271,7 +271,7 @@ var o = new api.CompositeFilter(); buildCounterCompositeFilter++; if (buildCounterCompositeFilter < 3) { - o.filters = buildUnnamed655(); + o.filters = buildUnnamed630(); o.op = "foo"; } buildCounterCompositeFilter--; @@ -281,20 +281,20 @@ checkCompositeFilter(api.CompositeFilter o) { buildCounterCompositeFilter++; if (buildCounterCompositeFilter < 3) { - checkUnnamed655(o.filters); + checkUnnamed630(o.filters); unittest.expect(o.op, unittest.equals('foo')); } buildCounterCompositeFilter--; } -buildUnnamed656() { +buildUnnamed631() { var o = new core.Map<core.String, api.Value>(); o["x"] = buildValue(); o["y"] = buildValue(); return o; } -checkUnnamed656(core.Map<core.String, api.Value> o) { +checkUnnamed631(core.Map<core.String, api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o["x"]); checkValue(o["y"]); @@ -306,7 +306,7 @@ buildCounterEntity++; if (buildCounterEntity < 3) { o.key = buildKey(); - o.properties = buildUnnamed656(); + o.properties = buildUnnamed631(); } buildCounterEntity--; return o; @@ -316,7 +316,7 @@ buildCounterEntity++; if (buildCounterEntity < 3) { checkKey(o.key); - checkUnnamed656(o.properties); + checkUnnamed631(o.properties); } buildCounterEntity--; } @@ -365,27 +365,27 @@ buildCounterFilter--; } -buildUnnamed657() { +buildUnnamed632() { var o = new core.Map<core.String, api.GqlQueryParameter>(); o["x"] = buildGqlQueryParameter(); o["y"] = buildGqlQueryParameter(); return o; } -checkUnnamed657(core.Map<core.String, api.GqlQueryParameter> o) { +checkUnnamed632(core.Map<core.String, api.GqlQueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGqlQueryParameter(o["x"]); checkGqlQueryParameter(o["y"]); } -buildUnnamed658() { +buildUnnamed633() { var o = new core.List<api.GqlQueryParameter>(); o.add(buildGqlQueryParameter()); o.add(buildGqlQueryParameter()); return o; } -checkUnnamed658(core.List<api.GqlQueryParameter> o) { +checkUnnamed633(core.List<api.GqlQueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGqlQueryParameter(o[0]); checkGqlQueryParameter(o[1]); @@ -397,8 +397,8 @@ buildCounterGqlQuery++; if (buildCounterGqlQuery < 3) { o.allowLiterals = true; - o.namedBindings = buildUnnamed657(); - o.positionalBindings = buildUnnamed658(); + o.namedBindings = buildUnnamed632(); + o.positionalBindings = buildUnnamed633(); o.queryString = "foo"; } buildCounterGqlQuery--; @@ -409,8 +409,8 @@ buildCounterGqlQuery++; if (buildCounterGqlQuery < 3) { unittest.expect(o.allowLiterals, unittest.isTrue); - checkUnnamed657(o.namedBindings); - checkUnnamed658(o.positionalBindings); + checkUnnamed632(o.namedBindings); + checkUnnamed633(o.positionalBindings); unittest.expect(o.queryString, unittest.equals('foo')); } buildCounterGqlQuery--; @@ -437,14 +437,14 @@ buildCounterGqlQueryParameter--; } -buildUnnamed659() { +buildUnnamed634() { var o = new core.List<api.PathElement>(); o.add(buildPathElement()); o.add(buildPathElement()); return o; } -checkUnnamed659(core.List<api.PathElement> o) { +checkUnnamed634(core.List<api.PathElement> o) { unittest.expect(o, unittest.hasLength(2)); checkPathElement(o[0]); checkPathElement(o[1]); @@ -456,7 +456,7 @@ buildCounterKey++; if (buildCounterKey < 3) { o.partitionId = buildPartitionId(); - o.path = buildUnnamed659(); + o.path = buildUnnamed634(); } buildCounterKey--; return o; @@ -466,7 +466,7 @@ buildCounterKey++; if (buildCounterKey < 3) { checkPartitionId(o.partitionId); - checkUnnamed659(o.path); + checkUnnamed634(o.path); } buildCounterKey--; } @@ -511,14 +511,14 @@ buildCounterLatLng--; } -buildUnnamed660() { +buildUnnamed635() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed660(core.List<api.Key> o) { +checkUnnamed635(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -529,7 +529,7 @@ var o = new api.LookupRequest(); buildCounterLookupRequest++; if (buildCounterLookupRequest < 3) { - o.keys = buildUnnamed660(); + o.keys = buildUnnamed635(); o.readOptions = buildReadOptions(); } buildCounterLookupRequest--; @@ -539,46 +539,46 @@ checkLookupRequest(api.LookupRequest o) { buildCounterLookupRequest++; if (buildCounterLookupRequest < 3) { - checkUnnamed660(o.keys); + checkUnnamed635(o.keys); checkReadOptions(o.readOptions); } buildCounterLookupRequest--; } -buildUnnamed661() { +buildUnnamed636() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed661(core.List<api.Key> o) { +checkUnnamed636(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); } -buildUnnamed662() { +buildUnnamed637() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed662(core.List<api.EntityResult> o) { +checkUnnamed637(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); } -buildUnnamed663() { +buildUnnamed638() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed663(core.List<api.EntityResult> o) { +checkUnnamed638(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); @@ -589,9 +589,9 @@ var o = new api.LookupResponse(); buildCounterLookupResponse++; if (buildCounterLookupResponse < 3) { - o.deferred = buildUnnamed661(); - o.found = buildUnnamed662(); - o.missing = buildUnnamed663(); + o.deferred = buildUnnamed636(); + o.found = buildUnnamed637(); + o.missing = buildUnnamed638(); } buildCounterLookupResponse--; return o; @@ -600,9 +600,9 @@ checkLookupResponse(api.LookupResponse o) { buildCounterLookupResponse++; if (buildCounterLookupResponse < 3) { - checkUnnamed661(o.deferred); - checkUnnamed662(o.found); - checkUnnamed663(o.missing); + checkUnnamed636(o.deferred); + checkUnnamed637(o.found); + checkUnnamed638(o.missing); } buildCounterLookupResponse--; } @@ -783,53 +783,53 @@ buildCounterPropertyReference--; } -buildUnnamed664() { +buildUnnamed639() { var o = new core.List<api.PropertyReference>(); o.add(buildPropertyReference()); o.add(buildPropertyReference()); return o; } -checkUnnamed664(core.List<api.PropertyReference> o) { +checkUnnamed639(core.List<api.PropertyReference> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyReference(o[0]); checkPropertyReference(o[1]); } -buildUnnamed665() { +buildUnnamed640() { var o = new core.List<api.KindExpression>(); o.add(buildKindExpression()); o.add(buildKindExpression()); return o; } -checkUnnamed665(core.List<api.KindExpression> o) { +checkUnnamed640(core.List<api.KindExpression> o) { unittest.expect(o, unittest.hasLength(2)); checkKindExpression(o[0]); checkKindExpression(o[1]); } -buildUnnamed666() { +buildUnnamed641() { var o = new core.List<api.PropertyOrder>(); o.add(buildPropertyOrder()); o.add(buildPropertyOrder()); return o; } -checkUnnamed666(core.List<api.PropertyOrder> o) { +checkUnnamed641(core.List<api.PropertyOrder> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyOrder(o[0]); checkPropertyOrder(o[1]); } -buildUnnamed667() { +buildUnnamed642() { var o = new core.List<api.Projection>(); o.add(buildProjection()); o.add(buildProjection()); return o; } -checkUnnamed667(core.List<api.Projection> o) { +checkUnnamed642(core.List<api.Projection> o) { unittest.expect(o, unittest.hasLength(2)); checkProjection(o[0]); checkProjection(o[1]); @@ -840,14 +840,14 @@ var o = new api.Query(); buildCounterQuery++; if (buildCounterQuery < 3) { - o.distinctOn = buildUnnamed664(); + o.distinctOn = buildUnnamed639(); o.endCursor = "foo"; o.filter = buildFilter(); - o.kind = buildUnnamed665(); + o.kind = buildUnnamed640(); o.limit = 42; o.offset = 42; - o.order = buildUnnamed666(); - o.projection = buildUnnamed667(); + o.order = buildUnnamed641(); + o.projection = buildUnnamed642(); o.startCursor = "foo"; } buildCounterQuery--; @@ -857,27 +857,27 @@ checkQuery(api.Query o) { buildCounterQuery++; if (buildCounterQuery < 3) { - checkUnnamed664(o.distinctOn); + checkUnnamed639(o.distinctOn); unittest.expect(o.endCursor, unittest.equals('foo')); checkFilter(o.filter); - checkUnnamed665(o.kind); + checkUnnamed640(o.kind); unittest.expect(o.limit, unittest.equals(42)); unittest.expect(o.offset, unittest.equals(42)); - checkUnnamed666(o.order); - checkUnnamed667(o.projection); + checkUnnamed641(o.order); + checkUnnamed642(o.projection); unittest.expect(o.startCursor, unittest.equals('foo')); } buildCounterQuery--; } -buildUnnamed668() { +buildUnnamed643() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed668(core.List<api.EntityResult> o) { +checkUnnamed643(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); @@ -890,7 +890,7 @@ if (buildCounterQueryResultBatch < 3) { o.endCursor = "foo"; o.entityResultType = "foo"; - o.entityResults = buildUnnamed668(); + o.entityResults = buildUnnamed643(); o.moreResults = "foo"; o.skippedCursor = "foo"; o.skippedResults = 42; @@ -905,7 +905,7 @@ if (buildCounterQueryResultBatch < 3) { unittest.expect(o.endCursor, unittest.equals('foo')); unittest.expect(o.entityResultType, unittest.equals('foo')); - checkUnnamed668(o.entityResults); + checkUnnamed643(o.entityResults); unittest.expect(o.moreResults, unittest.equals('foo')); unittest.expect(o.skippedCursor, unittest.equals('foo')); unittest.expect(o.skippedResults, unittest.equals(42));
diff --git a/generated/googleapis/test/deploymentmanager/v2_test.dart b/generated/googleapis/test/deploymentmanager/v2_test.dart index 1db9012..e4f1b34 100644 --- a/generated/googleapis/test/deploymentmanager/v2_test.dart +++ b/generated/googleapis/test/deploymentmanager/v2_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2142() { +buildUnnamed2176() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed2142(core.List<api.AuditLogConfig> o) { +checkUnnamed2176(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); } -buildUnnamed2143() { +buildUnnamed2177() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2143(core.List<core.String> o) { +checkUnnamed2177(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -82,8 +82,8 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed2142(); - o.exemptedMembers = buildUnnamed2143(); + o.auditLogConfigs = buildUnnamed2176(); + o.exemptedMembers = buildUnnamed2177(); o.service = "foo"; } buildCounterAuditConfig--; @@ -93,21 +93,21 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed2142(o.auditLogConfigs); - checkUnnamed2143(o.exemptedMembers); + checkUnnamed2176(o.auditLogConfigs); + checkUnnamed2177(o.exemptedMembers); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed2144() { +buildUnnamed2178() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2144(core.List<core.String> o) { +checkUnnamed2178(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -118,7 +118,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed2144(); + o.exemptedMembers = buildUnnamed2178(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -128,20 +128,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed2144(o.exemptedMembers); + checkUnnamed2178(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed2145() { +buildUnnamed2179() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2145(core.List<core.String> o) { +checkUnnamed2179(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -153,7 +153,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { o.condition = buildExpr(); - o.members = buildUnnamed2145(); + o.members = buildUnnamed2179(); o.role = "foo"; } buildCounterBinding--; @@ -164,20 +164,20 @@ buildCounterBinding++; if (buildCounterBinding < 3) { checkExpr(o.condition); - checkUnnamed2145(o.members); + checkUnnamed2179(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed2146() { +buildUnnamed2180() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2146(core.List<core.String> o) { +checkUnnamed2180(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -193,7 +193,7 @@ o.svc = "foo"; o.sys = "foo"; o.value = "foo"; - o.values = buildUnnamed2146(); + o.values = buildUnnamed2180(); } buildCounterCondition--; return o; @@ -207,7 +207,7 @@ unittest.expect(o.svc, unittest.equals('foo')); unittest.expect(o.sys, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); - checkUnnamed2146(o.values); + checkUnnamed2180(o.values); } buildCounterCondition--; } @@ -231,14 +231,14 @@ buildCounterConfigFile--; } -buildUnnamed2147() { +buildUnnamed2181() { var o = new core.List<api.DeploymentLabelEntry>(); o.add(buildDeploymentLabelEntry()); o.add(buildDeploymentLabelEntry()); return o; } -checkUnnamed2147(core.List<api.DeploymentLabelEntry> o) { +checkUnnamed2181(core.List<api.DeploymentLabelEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDeploymentLabelEntry(o[0]); checkDeploymentLabelEntry(o[1]); @@ -253,7 +253,7 @@ o.fingerprint = "foo"; o.id = "foo"; o.insertTime = "foo"; - o.labels = buildUnnamed2147(); + o.labels = buildUnnamed2181(); o.manifest = "foo"; o.name = "foo"; o.operation = buildOperation(); @@ -272,7 +272,7 @@ unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.insertTime, unittest.equals('foo')); - checkUnnamed2147(o.labels); + checkUnnamed2181(o.labels); unittest.expect(o.manifest, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkOperation(o.operation); @@ -304,14 +304,14 @@ buildCounterDeploymentLabelEntry--; } -buildUnnamed2148() { +buildUnnamed2182() { var o = new core.List<api.DeploymentUpdateLabelEntry>(); o.add(buildDeploymentUpdateLabelEntry()); o.add(buildDeploymentUpdateLabelEntry()); return o; } -checkUnnamed2148(core.List<api.DeploymentUpdateLabelEntry> o) { +checkUnnamed2182(core.List<api.DeploymentUpdateLabelEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDeploymentUpdateLabelEntry(o[0]); checkDeploymentUpdateLabelEntry(o[1]); @@ -323,7 +323,7 @@ buildCounterDeploymentUpdate++; if (buildCounterDeploymentUpdate < 3) { o.description = "foo"; - o.labels = buildUnnamed2148(); + o.labels = buildUnnamed2182(); o.manifest = "foo"; } buildCounterDeploymentUpdate--; @@ -334,7 +334,7 @@ buildCounterDeploymentUpdate++; if (buildCounterDeploymentUpdate < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2148(o.labels); + checkUnnamed2182(o.labels); unittest.expect(o.manifest, unittest.equals('foo')); } buildCounterDeploymentUpdate--; @@ -380,14 +380,14 @@ buildCounterDeploymentsCancelPreviewRequest--; } -buildUnnamed2149() { +buildUnnamed2183() { var o = new core.List<api.Deployment>(); o.add(buildDeployment()); o.add(buildDeployment()); return o; } -checkUnnamed2149(core.List<api.Deployment> o) { +checkUnnamed2183(core.List<api.Deployment> o) { unittest.expect(o, unittest.hasLength(2)); checkDeployment(o[0]); checkDeployment(o[1]); @@ -398,7 +398,7 @@ var o = new api.DeploymentsListResponse(); buildCounterDeploymentsListResponse++; if (buildCounterDeploymentsListResponse < 3) { - o.deployments = buildUnnamed2149(); + o.deployments = buildUnnamed2183(); o.nextPageToken = "foo"; } buildCounterDeploymentsListResponse--; @@ -408,7 +408,7 @@ checkDeploymentsListResponse(api.DeploymentsListResponse o) { buildCounterDeploymentsListResponse++; if (buildCounterDeploymentsListResponse < 3) { - checkUnnamed2149(o.deployments); + checkUnnamed2183(o.deployments); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDeploymentsListResponse--; @@ -540,14 +540,14 @@ buildCounterLogConfigCounterOptions--; } -buildUnnamed2150() { +buildUnnamed2184() { var o = new core.List<api.ImportFile>(); o.add(buildImportFile()); o.add(buildImportFile()); return o; } -checkUnnamed2150(core.List<api.ImportFile> o) { +checkUnnamed2184(core.List<api.ImportFile> o) { unittest.expect(o, unittest.hasLength(2)); checkImportFile(o[0]); checkImportFile(o[1]); @@ -561,7 +561,7 @@ o.config = buildConfigFile(); o.expandedConfig = "foo"; o.id = "foo"; - o.imports = buildUnnamed2150(); + o.imports = buildUnnamed2184(); o.insertTime = "foo"; o.layout = "foo"; o.name = "foo"; @@ -577,7 +577,7 @@ checkConfigFile(o.config); unittest.expect(o.expandedConfig, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2150(o.imports); + checkUnnamed2184(o.imports); unittest.expect(o.insertTime, unittest.equals('foo')); unittest.expect(o.layout, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -586,14 +586,14 @@ buildCounterManifest--; } -buildUnnamed2151() { +buildUnnamed2185() { var o = new core.List<api.Manifest>(); o.add(buildManifest()); o.add(buildManifest()); return o; } -checkUnnamed2151(core.List<api.Manifest> o) { +checkUnnamed2185(core.List<api.Manifest> o) { unittest.expect(o, unittest.hasLength(2)); checkManifest(o[0]); checkManifest(o[1]); @@ -604,7 +604,7 @@ var o = new api.ManifestsListResponse(); buildCounterManifestsListResponse++; if (buildCounterManifestsListResponse < 3) { - o.manifests = buildUnnamed2151(); + o.manifests = buildUnnamed2185(); o.nextPageToken = "foo"; } buildCounterManifestsListResponse--; @@ -614,7 +614,7 @@ checkManifestsListResponse(api.ManifestsListResponse o) { buildCounterManifestsListResponse++; if (buildCounterManifestsListResponse < 3) { - checkUnnamed2151(o.manifests); + checkUnnamed2185(o.manifests); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterManifestsListResponse--; @@ -643,14 +643,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed2152() { +buildUnnamed2186() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed2152(core.List<api.OperationErrorErrors> o) { +checkUnnamed2186(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -661,7 +661,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed2152(); + o.errors = buildUnnamed2186(); } buildCounterOperationError--; return o; @@ -670,7 +670,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed2152(o.errors); + checkUnnamed2186(o.errors); } buildCounterOperationError--; } @@ -696,14 +696,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed2153() { +buildUnnamed2187() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed2153(core.List<api.OperationWarningsData> o) { +checkUnnamed2187(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -715,7 +715,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2153(); + o.data = buildUnnamed2187(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -726,20 +726,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2153(o.data); + checkUnnamed2187(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed2154() { +buildUnnamed2188() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed2154(core.List<api.OperationWarnings> o) { +checkUnnamed2188(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -771,7 +771,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed2154(); + o.warnings = buildUnnamed2188(); o.zone = "foo"; } buildCounterOperation--; @@ -802,20 +802,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed2154(o.warnings); + checkUnnamed2188(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed2155() { +buildUnnamed2189() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2155(core.List<api.Operation> o) { +checkUnnamed2189(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -827,7 +827,7 @@ buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed2155(); + o.operations = buildUnnamed2189(); } buildCounterOperationsListResponse--; return o; @@ -837,45 +837,45 @@ buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2155(o.operations); + checkUnnamed2189(o.operations); } buildCounterOperationsListResponse--; } -buildUnnamed2156() { +buildUnnamed2190() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed2156(core.List<api.AuditConfig> o) { +checkUnnamed2190(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed2157() { +buildUnnamed2191() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed2157(core.List<api.Binding> o) { +checkUnnamed2191(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); } -buildUnnamed2158() { +buildUnnamed2192() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed2158(core.List<api.Rule> o) { +checkUnnamed2192(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -886,11 +886,11 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed2156(); - o.bindings = buildUnnamed2157(); + o.auditConfigs = buildUnnamed2190(); + o.bindings = buildUnnamed2191(); o.etag = "foo"; o.iamOwned = true; - o.rules = buildUnnamed2158(); + o.rules = buildUnnamed2192(); o.version = 42; } buildCounterPolicy--; @@ -900,11 +900,11 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed2156(o.auditConfigs); - checkUnnamed2157(o.bindings); + checkUnnamed2190(o.auditConfigs); + checkUnnamed2191(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.iamOwned, unittest.isTrue); - checkUnnamed2158(o.rules); + checkUnnamed2192(o.rules); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; @@ -931,14 +931,14 @@ buildCounterResourceWarningsData--; } -buildUnnamed2159() { +buildUnnamed2193() { var o = new core.List<api.ResourceWarningsData>(); o.add(buildResourceWarningsData()); o.add(buildResourceWarningsData()); return o; } -checkUnnamed2159(core.List<api.ResourceWarningsData> o) { +checkUnnamed2193(core.List<api.ResourceWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceWarningsData(o[0]); checkResourceWarningsData(o[1]); @@ -950,7 +950,7 @@ buildCounterResourceWarnings++; if (buildCounterResourceWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2159(); + o.data = buildUnnamed2193(); o.message = "foo"; } buildCounterResourceWarnings--; @@ -961,20 +961,20 @@ buildCounterResourceWarnings++; if (buildCounterResourceWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2159(o.data); + checkUnnamed2193(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterResourceWarnings--; } -buildUnnamed2160() { +buildUnnamed2194() { var o = new core.List<api.ResourceWarnings>(); o.add(buildResourceWarnings()); o.add(buildResourceWarnings()); return o; } -checkUnnamed2160(core.List<api.ResourceWarnings> o) { +checkUnnamed2194(core.List<api.ResourceWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceWarnings(o[0]); checkResourceWarnings(o[1]); @@ -996,7 +996,7 @@ o.update = buildResourceUpdate(); o.updateTime = "foo"; o.url = "foo"; - o.warnings = buildUnnamed2160(); + o.warnings = buildUnnamed2194(); } buildCounterResource--; return o; @@ -1016,7 +1016,7 @@ checkResourceUpdate(o.update); unittest.expect(o.updateTime, unittest.equals('foo')); unittest.expect(o.url, unittest.equals('foo')); - checkUnnamed2160(o.warnings); + checkUnnamed2194(o.warnings); } buildCounterResource--; } @@ -1063,14 +1063,14 @@ buildCounterResourceUpdateErrorErrors--; } -buildUnnamed2161() { +buildUnnamed2195() { var o = new core.List<api.ResourceUpdateErrorErrors>(); o.add(buildResourceUpdateErrorErrors()); o.add(buildResourceUpdateErrorErrors()); return o; } -checkUnnamed2161(core.List<api.ResourceUpdateErrorErrors> o) { +checkUnnamed2195(core.List<api.ResourceUpdateErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceUpdateErrorErrors(o[0]); checkResourceUpdateErrorErrors(o[1]); @@ -1081,7 +1081,7 @@ var o = new api.ResourceUpdateError(); buildCounterResourceUpdateError++; if (buildCounterResourceUpdateError < 3) { - o.errors = buildUnnamed2161(); + o.errors = buildUnnamed2195(); } buildCounterResourceUpdateError--; return o; @@ -1090,7 +1090,7 @@ checkResourceUpdateError(api.ResourceUpdateError o) { buildCounterResourceUpdateError++; if (buildCounterResourceUpdateError < 3) { - checkUnnamed2161(o.errors); + checkUnnamed2195(o.errors); } buildCounterResourceUpdateError--; } @@ -1116,14 +1116,14 @@ buildCounterResourceUpdateWarningsData--; } -buildUnnamed2162() { +buildUnnamed2196() { var o = new core.List<api.ResourceUpdateWarningsData>(); o.add(buildResourceUpdateWarningsData()); o.add(buildResourceUpdateWarningsData()); return o; } -checkUnnamed2162(core.List<api.ResourceUpdateWarningsData> o) { +checkUnnamed2196(core.List<api.ResourceUpdateWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceUpdateWarningsData(o[0]); checkResourceUpdateWarningsData(o[1]); @@ -1135,7 +1135,7 @@ buildCounterResourceUpdateWarnings++; if (buildCounterResourceUpdateWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2162(); + o.data = buildUnnamed2196(); o.message = "foo"; } buildCounterResourceUpdateWarnings--; @@ -1146,20 +1146,20 @@ buildCounterResourceUpdateWarnings++; if (buildCounterResourceUpdateWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2162(o.data); + checkUnnamed2196(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterResourceUpdateWarnings--; } -buildUnnamed2163() { +buildUnnamed2197() { var o = new core.List<api.ResourceUpdateWarnings>(); o.add(buildResourceUpdateWarnings()); o.add(buildResourceUpdateWarnings()); return o; } -checkUnnamed2163(core.List<api.ResourceUpdateWarnings> o) { +checkUnnamed2197(core.List<api.ResourceUpdateWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceUpdateWarnings(o[0]); checkResourceUpdateWarnings(o[1]); @@ -1177,7 +1177,7 @@ o.manifest = "foo"; o.properties = "foo"; o.state = "foo"; - o.warnings = buildUnnamed2163(); + o.warnings = buildUnnamed2197(); } buildCounterResourceUpdate--; return o; @@ -1193,19 +1193,19 @@ unittest.expect(o.manifest, unittest.equals('foo')); unittest.expect(o.properties, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); - checkUnnamed2163(o.warnings); + checkUnnamed2197(o.warnings); } buildCounterResourceUpdate--; } -buildUnnamed2164() { +buildUnnamed2198() { var o = new core.List<api.Resource>(); o.add(buildResource()); o.add(buildResource()); return o; } -checkUnnamed2164(core.List<api.Resource> o) { +checkUnnamed2198(core.List<api.Resource> o) { unittest.expect(o, unittest.hasLength(2)); checkResource(o[0]); checkResource(o[1]); @@ -1217,7 +1217,7 @@ buildCounterResourcesListResponse++; if (buildCounterResourcesListResponse < 3) { o.nextPageToken = "foo"; - o.resources = buildUnnamed2164(); + o.resources = buildUnnamed2198(); } buildCounterResourcesListResponse--; return o; @@ -1227,71 +1227,71 @@ buildCounterResourcesListResponse++; if (buildCounterResourcesListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2164(o.resources); + checkUnnamed2198(o.resources); } buildCounterResourcesListResponse--; } -buildUnnamed2165() { +buildUnnamed2199() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed2165(core.List<api.Condition> o) { +checkUnnamed2199(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed2166() { +buildUnnamed2200() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2166(core.List<core.String> o) { +checkUnnamed2200(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2167() { +buildUnnamed2201() { var o = new core.List<api.LogConfig>(); o.add(buildLogConfig()); o.add(buildLogConfig()); return o; } -checkUnnamed2167(core.List<api.LogConfig> o) { +checkUnnamed2201(core.List<api.LogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkLogConfig(o[0]); checkLogConfig(o[1]); } -buildUnnamed2168() { +buildUnnamed2202() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2168(core.List<core.String> o) { +checkUnnamed2202(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2169() { +buildUnnamed2203() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2169(core.List<core.String> o) { +checkUnnamed2203(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1303,12 +1303,12 @@ buildCounterRule++; if (buildCounterRule < 3) { o.action = "foo"; - o.conditions = buildUnnamed2165(); + o.conditions = buildUnnamed2199(); o.description = "foo"; - o.ins = buildUnnamed2166(); - o.logConfigs = buildUnnamed2167(); - o.notIns = buildUnnamed2168(); - o.permissions = buildUnnamed2169(); + o.ins = buildUnnamed2200(); + o.logConfigs = buildUnnamed2201(); + o.notIns = buildUnnamed2202(); + o.permissions = buildUnnamed2203(); } buildCounterRule--; return o; @@ -1318,24 +1318,24 @@ buildCounterRule++; if (buildCounterRule < 3) { unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed2165(o.conditions); + checkUnnamed2199(o.conditions); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2166(o.ins); - checkUnnamed2167(o.logConfigs); - checkUnnamed2168(o.notIns); - checkUnnamed2169(o.permissions); + checkUnnamed2200(o.ins); + checkUnnamed2201(o.logConfigs); + checkUnnamed2202(o.notIns); + checkUnnamed2203(o.permissions); } buildCounterRule--; } -buildUnnamed2170() { +buildUnnamed2204() { var o = new core.List<api.ImportFile>(); o.add(buildImportFile()); o.add(buildImportFile()); return o; } -checkUnnamed2170(core.List<api.ImportFile> o) { +checkUnnamed2204(core.List<api.ImportFile> o) { unittest.expect(o, unittest.hasLength(2)); checkImportFile(o[0]); checkImportFile(o[1]); @@ -1347,7 +1347,7 @@ buildCounterTargetConfiguration++; if (buildCounterTargetConfiguration < 3) { o.config = buildConfigFile(); - o.imports = buildUnnamed2170(); + o.imports = buildUnnamed2204(); } buildCounterTargetConfiguration--; return o; @@ -1357,19 +1357,19 @@ buildCounterTargetConfiguration++; if (buildCounterTargetConfiguration < 3) { checkConfigFile(o.config); - checkUnnamed2170(o.imports); + checkUnnamed2204(o.imports); } buildCounterTargetConfiguration--; } -buildUnnamed2171() { +buildUnnamed2205() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2171(core.List<core.String> o) { +checkUnnamed2205(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1380,7 +1380,7 @@ var o = new api.TestPermissionsRequest(); buildCounterTestPermissionsRequest++; if (buildCounterTestPermissionsRequest < 3) { - o.permissions = buildUnnamed2171(); + o.permissions = buildUnnamed2205(); } buildCounterTestPermissionsRequest--; return o; @@ -1389,19 +1389,19 @@ checkTestPermissionsRequest(api.TestPermissionsRequest o) { buildCounterTestPermissionsRequest++; if (buildCounterTestPermissionsRequest < 3) { - checkUnnamed2171(o.permissions); + checkUnnamed2205(o.permissions); } buildCounterTestPermissionsRequest--; } -buildUnnamed2172() { +buildUnnamed2206() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2172(core.List<core.String> o) { +checkUnnamed2206(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1412,7 +1412,7 @@ var o = new api.TestPermissionsResponse(); buildCounterTestPermissionsResponse++; if (buildCounterTestPermissionsResponse < 3) { - o.permissions = buildUnnamed2172(); + o.permissions = buildUnnamed2206(); } buildCounterTestPermissionsResponse--; return o; @@ -1421,7 +1421,7 @@ checkTestPermissionsResponse(api.TestPermissionsResponse o) { buildCounterTestPermissionsResponse++; if (buildCounterTestPermissionsResponse < 3) { - checkUnnamed2172(o.permissions); + checkUnnamed2206(o.permissions); } buildCounterTestPermissionsResponse--; } @@ -1453,14 +1453,14 @@ buildCounterType--; } -buildUnnamed2173() { +buildUnnamed2207() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed2173(core.List<api.Type> o) { +checkUnnamed2207(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); @@ -1472,7 +1472,7 @@ buildCounterTypesListResponse++; if (buildCounterTypesListResponse < 3) { o.nextPageToken = "foo"; - o.types = buildUnnamed2173(); + o.types = buildUnnamed2207(); } buildCounterTypesListResponse--; return o; @@ -1482,7 +1482,7 @@ buildCounterTypesListResponse++; if (buildCounterTypesListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2173(o.types); + checkUnnamed2207(o.types); } buildCounterTypesListResponse--; }
diff --git a/generated/googleapis/test/discovery/v1_test.dart b/generated/googleapis/test/discovery/v1_test.dart index e97f3d6..9740114 100644 --- a/generated/googleapis/test/discovery/v1_test.dart +++ b/generated/googleapis/test/discovery/v1_test.dart
@@ -72,14 +72,14 @@ buildCounterDirectoryListItemsIcons--; } -buildUnnamed330() { +buildUnnamed305() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed330(core.List<core.String> o) { +checkUnnamed305(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -97,7 +97,7 @@ o.icons = buildDirectoryListItemsIcons(); o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed330(); + o.labels = buildUnnamed305(); o.name = "foo"; o.preferred = true; o.title = "foo"; @@ -117,7 +117,7 @@ checkDirectoryListItemsIcons(o.icons); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed330(o.labels); + checkUnnamed305(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.preferred, unittest.isTrue); unittest.expect(o.title, unittest.equals('foo')); @@ -126,14 +126,14 @@ buildCounterDirectoryListItems--; } -buildUnnamed331() { +buildUnnamed306() { var o = new core.List<api.DirectoryListItems>(); o.add(buildDirectoryListItems()); o.add(buildDirectoryListItems()); return o; } -checkUnnamed331(core.List<api.DirectoryListItems> o) { +checkUnnamed306(core.List<api.DirectoryListItems> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectoryListItems(o[0]); checkDirectoryListItems(o[1]); @@ -145,7 +145,7 @@ buildCounterDirectoryList++; if (buildCounterDirectoryList < 3) { o.discoveryVersion = "foo"; - o.items = buildUnnamed331(); + o.items = buildUnnamed306(); o.kind = "foo"; } buildCounterDirectoryList--; @@ -156,20 +156,20 @@ buildCounterDirectoryList++; if (buildCounterDirectoryList < 3) { unittest.expect(o.discoveryVersion, unittest.equals('foo')); - checkUnnamed331(o.items); + checkUnnamed306(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDirectoryList--; } -buildUnnamed332() { +buildUnnamed307() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed332(core.List<core.String> o) { +checkUnnamed307(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -180,7 +180,7 @@ var o = new api.JsonSchemaAnnotations(); buildCounterJsonSchemaAnnotations++; if (buildCounterJsonSchemaAnnotations < 3) { - o.required = buildUnnamed332(); + o.required = buildUnnamed307(); } buildCounterJsonSchemaAnnotations--; return o; @@ -189,45 +189,45 @@ checkJsonSchemaAnnotations(api.JsonSchemaAnnotations o) { buildCounterJsonSchemaAnnotations++; if (buildCounterJsonSchemaAnnotations < 3) { - checkUnnamed332(o.required); + checkUnnamed307(o.required); } buildCounterJsonSchemaAnnotations--; } -buildUnnamed333() { +buildUnnamed308() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed333(core.List<core.String> o) { +checkUnnamed308(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed334() { +buildUnnamed309() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed334(core.List<core.String> o) { +checkUnnamed309(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed335() { +buildUnnamed310() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed335(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed310(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); @@ -254,14 +254,14 @@ buildCounterJsonSchemaVariantMap--; } -buildUnnamed336() { +buildUnnamed311() { var o = new core.List<api.JsonSchemaVariantMap>(); o.add(buildJsonSchemaVariantMap()); o.add(buildJsonSchemaVariantMap()); return o; } -checkUnnamed336(core.List<api.JsonSchemaVariantMap> o) { +checkUnnamed311(core.List<api.JsonSchemaVariantMap> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchemaVariantMap(o[0]); checkJsonSchemaVariantMap(o[1]); @@ -273,7 +273,7 @@ buildCounterJsonSchemaVariant++; if (buildCounterJsonSchemaVariant < 3) { o.discriminant = "foo"; - o.map = buildUnnamed336(); + o.map = buildUnnamed311(); } buildCounterJsonSchemaVariant--; return o; @@ -283,7 +283,7 @@ buildCounterJsonSchemaVariant++; if (buildCounterJsonSchemaVariant < 3) { unittest.expect(o.discriminant, unittest.equals('foo')); - checkUnnamed336(o.map); + checkUnnamed311(o.map); } buildCounterJsonSchemaVariant--; } @@ -298,8 +298,8 @@ o.annotations = buildJsonSchemaAnnotations(); o.default_ = "foo"; o.description = "foo"; - o.enum_ = buildUnnamed333(); - o.enumDescriptions = buildUnnamed334(); + o.enum_ = buildUnnamed308(); + o.enumDescriptions = buildUnnamed309(); o.format = "foo"; o.id = "foo"; o.items = buildJsonSchema(); @@ -307,7 +307,7 @@ o.maximum = "foo"; o.minimum = "foo"; o.pattern = "foo"; - o.properties = buildUnnamed335(); + o.properties = buildUnnamed310(); o.readOnly = true; o.repeated = true; o.required = true; @@ -326,8 +326,8 @@ checkJsonSchemaAnnotations(o.annotations); unittest.expect(o.default_, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed333(o.enum_); - checkUnnamed334(o.enumDescriptions); + checkUnnamed308(o.enum_); + checkUnnamed309(o.enumDescriptions); unittest.expect(o.format, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkJsonSchema(o.items); @@ -335,7 +335,7 @@ unittest.expect(o.maximum, unittest.equals('foo')); unittest.expect(o.minimum, unittest.equals('foo')); unittest.expect(o.pattern, unittest.equals('foo')); - checkUnnamed335(o.properties); + checkUnnamed310(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--; } -buildUnnamed337() { +buildUnnamed312() { var o = new core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue>(); o["x"] = buildRestDescriptionAuthOauth2ScopesValue(); o["y"] = buildRestDescriptionAuthOauth2ScopesValue(); return o; } -checkUnnamed337(core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue> o) { +checkUnnamed312(core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue> o) { unittest.expect(o, unittest.hasLength(2)); checkRestDescriptionAuthOauth2ScopesValue(o["x"]); checkRestDescriptionAuthOauth2ScopesValue(o["y"]); @@ -382,7 +382,7 @@ var o = new api.RestDescriptionAuthOauth2(); buildCounterRestDescriptionAuthOauth2++; if (buildCounterRestDescriptionAuthOauth2 < 3) { - o.scopes = buildUnnamed337(); + o.scopes = buildUnnamed312(); } buildCounterRestDescriptionAuthOauth2--; return o; @@ -391,7 +391,7 @@ checkRestDescriptionAuthOauth2(api.RestDescriptionAuthOauth2 o) { buildCounterRestDescriptionAuthOauth2++; if (buildCounterRestDescriptionAuthOauth2 < 3) { - checkUnnamed337(o.scopes); + checkUnnamed312(o.scopes); } buildCounterRestDescriptionAuthOauth2--; } @@ -415,14 +415,14 @@ buildCounterRestDescriptionAuth--; } -buildUnnamed338() { +buildUnnamed313() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed338(core.List<core.String> o) { +checkUnnamed313(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -449,66 +449,66 @@ buildCounterRestDescriptionIcons--; } -buildUnnamed339() { +buildUnnamed314() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed339(core.List<core.String> o) { +checkUnnamed314(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed340() { +buildUnnamed315() { var o = new core.Map<core.String, api.RestMethod>(); o["x"] = buildRestMethod(); o["y"] = buildRestMethod(); return o; } -checkUnnamed340(core.Map<core.String, api.RestMethod> o) { +checkUnnamed315(core.Map<core.String, api.RestMethod> o) { unittest.expect(o, unittest.hasLength(2)); checkRestMethod(o["x"]); checkRestMethod(o["y"]); } -buildUnnamed341() { +buildUnnamed316() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed341(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed316(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); } -buildUnnamed342() { +buildUnnamed317() { var o = new core.Map<core.String, api.RestResource>(); o["x"] = buildRestResource(); o["y"] = buildRestResource(); return o; } -checkUnnamed342(core.Map<core.String, api.RestResource> o) { +checkUnnamed317(core.Map<core.String, api.RestResource> o) { unittest.expect(o, unittest.hasLength(2)); checkRestResource(o["x"]); checkRestResource(o["y"]); } -buildUnnamed343() { +buildUnnamed318() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed343(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed318(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); @@ -529,22 +529,22 @@ o.documentationLink = "foo"; o.etag = "foo"; o.exponentialBackoffDefault = true; - o.features = buildUnnamed338(); + o.features = buildUnnamed313(); o.icons = buildRestDescriptionIcons(); o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed339(); - o.methods = buildUnnamed340(); + o.labels = buildUnnamed314(); + o.methods = buildUnnamed315(); o.name = "foo"; o.ownerDomain = "foo"; o.ownerName = "foo"; o.packagePath = "foo"; - o.parameters = buildUnnamed341(); + o.parameters = buildUnnamed316(); o.protocol = "foo"; - o.resources = buildUnnamed342(); + o.resources = buildUnnamed317(); o.revision = "foo"; o.rootUrl = "foo"; - o.schemas = buildUnnamed343(); + o.schemas = buildUnnamed318(); o.servicePath = "foo"; o.title = "foo"; o.version = "foo"; @@ -567,22 +567,22 @@ unittest.expect(o.documentationLink, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.exponentialBackoffDefault, unittest.isTrue); - checkUnnamed338(o.features); + checkUnnamed313(o.features); checkRestDescriptionIcons(o.icons); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed339(o.labels); - checkUnnamed340(o.methods); + checkUnnamed314(o.labels); + checkUnnamed315(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')); - checkUnnamed341(o.parameters); + checkUnnamed316(o.parameters); unittest.expect(o.protocol, unittest.equals('foo')); - checkUnnamed342(o.resources); + checkUnnamed317(o.resources); unittest.expect(o.revision, unittest.equals('foo')); unittest.expect(o.rootUrl, unittest.equals('foo')); - checkUnnamed343(o.schemas); + checkUnnamed318(o.schemas); unittest.expect(o.servicePath, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -591,14 +591,14 @@ buildCounterRestDescription--; } -buildUnnamed344() { +buildUnnamed319() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed344(core.List<core.String> o) { +checkUnnamed319(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -672,7 +672,7 @@ var o = new api.RestMethodMediaUpload(); buildCounterRestMethodMediaUpload++; if (buildCounterRestMethodMediaUpload < 3) { - o.accept = buildUnnamed344(); + o.accept = buildUnnamed319(); o.maxSize = "foo"; o.protocols = buildRestMethodMediaUploadProtocols(); } @@ -683,34 +683,34 @@ checkRestMethodMediaUpload(api.RestMethodMediaUpload o) { buildCounterRestMethodMediaUpload++; if (buildCounterRestMethodMediaUpload < 3) { - checkUnnamed344(o.accept); + checkUnnamed319(o.accept); unittest.expect(o.maxSize, unittest.equals('foo')); checkRestMethodMediaUploadProtocols(o.protocols); } buildCounterRestMethodMediaUpload--; } -buildUnnamed345() { +buildUnnamed320() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed345(core.List<core.String> o) { +checkUnnamed320(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed346() { +buildUnnamed321() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed346(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed321(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); @@ -756,14 +756,14 @@ buildCounterRestMethodResponse--; } -buildUnnamed347() { +buildUnnamed322() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed347(core.List<core.String> o) { +checkUnnamed322(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -779,12 +779,12 @@ o.httpMethod = "foo"; o.id = "foo"; o.mediaUpload = buildRestMethodMediaUpload(); - o.parameterOrder = buildUnnamed345(); - o.parameters = buildUnnamed346(); + o.parameterOrder = buildUnnamed320(); + o.parameters = buildUnnamed321(); o.path = "foo"; o.request = buildRestMethodRequest(); o.response = buildRestMethodResponse(); - o.scopes = buildUnnamed347(); + o.scopes = buildUnnamed322(); o.supportsMediaDownload = true; o.supportsMediaUpload = true; o.supportsSubscription = true; @@ -802,12 +802,12 @@ unittest.expect(o.httpMethod, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkRestMethodMediaUpload(o.mediaUpload); - checkUnnamed345(o.parameterOrder); - checkUnnamed346(o.parameters); + checkUnnamed320(o.parameterOrder); + checkUnnamed321(o.parameters); unittest.expect(o.path, unittest.equals('foo')); checkRestMethodRequest(o.request); checkRestMethodResponse(o.response); - checkUnnamed347(o.scopes); + checkUnnamed322(o.scopes); unittest.expect(o.supportsMediaDownload, unittest.isTrue); unittest.expect(o.supportsMediaUpload, unittest.isTrue); unittest.expect(o.supportsSubscription, unittest.isTrue); @@ -816,27 +816,27 @@ buildCounterRestMethod--; } -buildUnnamed348() { +buildUnnamed323() { var o = new core.Map<core.String, api.RestMethod>(); o["x"] = buildRestMethod(); o["y"] = buildRestMethod(); return o; } -checkUnnamed348(core.Map<core.String, api.RestMethod> o) { +checkUnnamed323(core.Map<core.String, api.RestMethod> o) { unittest.expect(o, unittest.hasLength(2)); checkRestMethod(o["x"]); checkRestMethod(o["y"]); } -buildUnnamed349() { +buildUnnamed324() { var o = new core.Map<core.String, api.RestResource>(); o["x"] = buildRestResource(); o["y"] = buildRestResource(); return o; } -checkUnnamed349(core.Map<core.String, api.RestResource> o) { +checkUnnamed324(core.Map<core.String, api.RestResource> o) { unittest.expect(o, unittest.hasLength(2)); checkRestResource(o["x"]); checkRestResource(o["y"]); @@ -847,8 +847,8 @@ var o = new api.RestResource(); buildCounterRestResource++; if (buildCounterRestResource < 3) { - o.methods = buildUnnamed348(); - o.resources = buildUnnamed349(); + o.methods = buildUnnamed323(); + o.resources = buildUnnamed324(); } buildCounterRestResource--; return o; @@ -857,8 +857,8 @@ checkRestResource(api.RestResource o) { buildCounterRestResource++; if (buildCounterRestResource < 3) { - checkUnnamed348(o.methods); - checkUnnamed349(o.resources); + checkUnnamed323(o.methods); + checkUnnamed324(o.resources); } buildCounterRestResource--; }
diff --git a/generated/googleapis/test/dns/v1_test.dart b/generated/googleapis/test/dns/v1_test.dart index 8ab5d9b..c11c0f6 100644 --- a/generated/googleapis/test/dns/v1_test.dart +++ b/generated/googleapis/test/dns/v1_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed799() { +buildUnnamed774() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed799(core.List<api.ResourceRecordSet> o) { +checkUnnamed774(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); } -buildUnnamed800() { +buildUnnamed775() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed800(core.List<api.ResourceRecordSet> o) { +checkUnnamed775(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); @@ -82,8 +82,8 @@ var o = new api.Change(); buildCounterChange++; if (buildCounterChange < 3) { - o.additions = buildUnnamed799(); - o.deletions = buildUnnamed800(); + o.additions = buildUnnamed774(); + o.deletions = buildUnnamed775(); o.id = "foo"; o.kind = "foo"; o.startTime = "foo"; @@ -96,8 +96,8 @@ checkChange(api.Change o) { buildCounterChange++; if (buildCounterChange < 3) { - checkUnnamed799(o.additions); - checkUnnamed800(o.deletions); + checkUnnamed774(o.additions); + checkUnnamed775(o.deletions); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.startTime, unittest.equals('foo')); @@ -106,14 +106,14 @@ buildCounterChange--; } -buildUnnamed801() { +buildUnnamed776() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed801(core.List<api.Change> o) { +checkUnnamed776(core.List<api.Change> o) { unittest.expect(o, unittest.hasLength(2)); checkChange(o[0]); checkChange(o[1]); @@ -124,7 +124,7 @@ var o = new api.ChangesListResponse(); buildCounterChangesListResponse++; if (buildCounterChangesListResponse < 3) { - o.changes = buildUnnamed801(); + o.changes = buildUnnamed776(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -135,21 +135,21 @@ checkChangesListResponse(api.ChangesListResponse o) { buildCounterChangesListResponse++; if (buildCounterChangesListResponse < 3) { - checkUnnamed801(o.changes); + checkUnnamed776(o.changes); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterChangesListResponse--; } -buildUnnamed802() { +buildUnnamed777() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed802(core.List<core.String> o) { +checkUnnamed777(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -167,7 +167,7 @@ o.kind = "foo"; o.name = "foo"; o.nameServerSet = "foo"; - o.nameServers = buildUnnamed802(); + o.nameServers = buildUnnamed777(); } buildCounterManagedZone--; return o; @@ -183,19 +183,19 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nameServerSet, unittest.equals('foo')); - checkUnnamed802(o.nameServers); + checkUnnamed777(o.nameServers); } buildCounterManagedZone--; } -buildUnnamed803() { +buildUnnamed778() { var o = new core.List<api.ManagedZone>(); o.add(buildManagedZone()); o.add(buildManagedZone()); return o; } -checkUnnamed803(core.List<api.ManagedZone> o) { +checkUnnamed778(core.List<api.ManagedZone> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedZone(o[0]); checkManagedZone(o[1]); @@ -207,7 +207,7 @@ buildCounterManagedZonesListResponse++; if (buildCounterManagedZonesListResponse < 3) { o.kind = "foo"; - o.managedZones = buildUnnamed803(); + o.managedZones = buildUnnamed778(); o.nextPageToken = "foo"; } buildCounterManagedZonesListResponse--; @@ -218,7 +218,7 @@ buildCounterManagedZonesListResponse++; if (buildCounterManagedZonesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed803(o.managedZones); + checkUnnamed778(o.managedZones); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterManagedZonesListResponse--; @@ -280,14 +280,14 @@ buildCounterQuota--; } -buildUnnamed804() { +buildUnnamed779() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed804(core.List<core.String> o) { +checkUnnamed779(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -300,7 +300,7 @@ if (buildCounterResourceRecordSet < 3) { o.kind = "foo"; o.name = "foo"; - o.rrdatas = buildUnnamed804(); + o.rrdatas = buildUnnamed779(); o.ttl = 42; o.type = "foo"; } @@ -313,21 +313,21 @@ if (buildCounterResourceRecordSet < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed804(o.rrdatas); + checkUnnamed779(o.rrdatas); unittest.expect(o.ttl, unittest.equals(42)); unittest.expect(o.type, unittest.equals('foo')); } buildCounterResourceRecordSet--; } -buildUnnamed805() { +buildUnnamed780() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed805(core.List<api.ResourceRecordSet> o) { +checkUnnamed780(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); @@ -340,7 +340,7 @@ if (buildCounterResourceRecordSetsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.rrsets = buildUnnamed805(); + o.rrsets = buildUnnamed780(); } buildCounterResourceRecordSetsListResponse--; return o; @@ -351,7 +351,7 @@ if (buildCounterResourceRecordSetsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed805(o.rrsets); + checkUnnamed780(o.rrsets); } buildCounterResourceRecordSetsListResponse--; }
diff --git a/generated/googleapis/test/doubleclickbidmanager/v1_test.dart b/generated/googleapis/test/doubleclickbidmanager/v1_test.dart index 84fc998..e340bf2 100644 --- a/generated/googleapis/test/doubleclickbidmanager/v1_test.dart +++ b/generated/googleapis/test/doubleclickbidmanager/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1266() { +buildUnnamed1244() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1266(core.List<core.String> o) { +checkUnnamed1244(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -70,7 +70,7 @@ buildCounterDownloadLineItemsRequest++; if (buildCounterDownloadLineItemsRequest < 3) { o.fileSpec = "foo"; - o.filterIds = buildUnnamed1266(); + o.filterIds = buildUnnamed1244(); o.filterType = "foo"; o.format = "foo"; } @@ -82,7 +82,7 @@ buildCounterDownloadLineItemsRequest++; if (buildCounterDownloadLineItemsRequest < 3) { unittest.expect(o.fileSpec, unittest.equals('foo')); - checkUnnamed1266(o.filterIds); + checkUnnamed1244(o.filterIds); unittest.expect(o.filterType, unittest.equals('foo')); unittest.expect(o.format, unittest.equals('foo')); } @@ -108,27 +108,27 @@ buildCounterDownloadLineItemsResponse--; } -buildUnnamed1267() { +buildUnnamed1245() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1267(core.List<core.String> o) { +checkUnnamed1245(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1268() { +buildUnnamed1246() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1268(core.List<core.String> o) { +checkUnnamed1246(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -139,8 +139,8 @@ var o = new api.DownloadRequest(); buildCounterDownloadRequest++; if (buildCounterDownloadRequest < 3) { - o.fileTypes = buildUnnamed1267(); - o.filterIds = buildUnnamed1268(); + o.fileTypes = buildUnnamed1245(); + o.filterIds = buildUnnamed1246(); o.filterType = "foo"; o.version = "foo"; } @@ -151,8 +151,8 @@ checkDownloadRequest(api.DownloadRequest o) { buildCounterDownloadRequest++; if (buildCounterDownloadRequest < 3) { - checkUnnamed1267(o.fileTypes); - checkUnnamed1268(o.filterIds); + checkUnnamed1245(o.fileTypes); + checkUnnamed1246(o.filterIds); unittest.expect(o.filterType, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); } @@ -205,14 +205,14 @@ buildCounterFilterPair--; } -buildUnnamed1269() { +buildUnnamed1247() { var o = new core.List<api.Query>(); o.add(buildQuery()); o.add(buildQuery()); return o; } -checkUnnamed1269(core.List<api.Query> o) { +checkUnnamed1247(core.List<api.Query> o) { unittest.expect(o, unittest.hasLength(2)); checkQuery(o[0]); checkQuery(o[1]); @@ -224,7 +224,7 @@ buildCounterListQueriesResponse++; if (buildCounterListQueriesResponse < 3) { o.kind = "foo"; - o.queries = buildUnnamed1269(); + o.queries = buildUnnamed1247(); } buildCounterListQueriesResponse--; return o; @@ -234,19 +234,19 @@ buildCounterListQueriesResponse++; if (buildCounterListQueriesResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1269(o.queries); + checkUnnamed1247(o.queries); } buildCounterListQueriesResponse--; } -buildUnnamed1270() { +buildUnnamed1248() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed1270(core.List<api.Report> o) { +checkUnnamed1248(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -258,7 +258,7 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { o.kind = "foo"; - o.reports = buildUnnamed1270(); + o.reports = buildUnnamed1248(); } buildCounterListReportsResponse--; return o; @@ -268,45 +268,45 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1270(o.reports); + checkUnnamed1248(o.reports); } buildCounterListReportsResponse--; } -buildUnnamed1271() { +buildUnnamed1249() { var o = new core.List<api.FilterPair>(); o.add(buildFilterPair()); o.add(buildFilterPair()); return o; } -checkUnnamed1271(core.List<api.FilterPair> o) { +checkUnnamed1249(core.List<api.FilterPair> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterPair(o[0]); checkFilterPair(o[1]); } -buildUnnamed1272() { +buildUnnamed1250() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1272(core.List<core.String> o) { +checkUnnamed1250(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1273() { +buildUnnamed1251() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1273(core.List<core.String> o) { +checkUnnamed1251(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -317,10 +317,10 @@ var o = new api.Parameters(); buildCounterParameters++; if (buildCounterParameters < 3) { - o.filters = buildUnnamed1271(); - o.groupBys = buildUnnamed1272(); + o.filters = buildUnnamed1249(); + o.groupBys = buildUnnamed1250(); o.includeInviteData = true; - o.metrics = buildUnnamed1273(); + o.metrics = buildUnnamed1251(); o.type = "foo"; } buildCounterParameters--; @@ -330,10 +330,10 @@ checkParameters(api.Parameters o) { buildCounterParameters++; if (buildCounterParameters < 3) { - checkUnnamed1271(o.filters); - checkUnnamed1272(o.groupBys); + checkUnnamed1249(o.filters); + checkUnnamed1250(o.groupBys); unittest.expect(o.includeInviteData, unittest.isTrue); - checkUnnamed1273(o.metrics); + checkUnnamed1251(o.metrics); unittest.expect(o.type, unittest.equals('foo')); } buildCounterParameters--; @@ -372,14 +372,14 @@ buildCounterQuery--; } -buildUnnamed1274() { +buildUnnamed1252() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1274(core.List<core.String> o) { +checkUnnamed1252(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -399,7 +399,7 @@ o.reportCount = 42; o.running = true; o.sendNotification = true; - o.shareEmailAddress = buildUnnamed1274(); + o.shareEmailAddress = buildUnnamed1252(); o.title = "foo"; } buildCounterQueryMetadata--; @@ -418,7 +418,7 @@ unittest.expect(o.reportCount, unittest.equals(42)); unittest.expect(o.running, unittest.isTrue); unittest.expect(o.sendNotification, unittest.isTrue); - checkUnnamed1274(o.shareEmailAddress); + checkUnnamed1252(o.shareEmailAddress); unittest.expect(o.title, unittest.equals('foo')); } buildCounterQueryMetadata--; @@ -562,14 +562,14 @@ buildCounterReportStatus--; } -buildUnnamed1275() { +buildUnnamed1253() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1275(core.List<core.String> o) { +checkUnnamed1253(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -583,7 +583,7 @@ o.changed = true; o.entityId = "foo"; o.entityName = "foo"; - o.errors = buildUnnamed1275(); + o.errors = buildUnnamed1253(); o.persisted = true; o.rowNumber = 42; } @@ -597,7 +597,7 @@ unittest.expect(o.changed, unittest.isTrue); unittest.expect(o.entityId, unittest.equals('foo')); unittest.expect(o.entityName, unittest.equals('foo')); - checkUnnamed1275(o.errors); + checkUnnamed1253(o.errors); unittest.expect(o.persisted, unittest.isTrue); unittest.expect(o.rowNumber, unittest.equals(42)); } @@ -671,27 +671,27 @@ buildCounterUploadLineItemsResponse--; } -buildUnnamed1276() { +buildUnnamed1254() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1276(core.List<core.String> o) { +checkUnnamed1254(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1277() { +buildUnnamed1255() { var o = new core.List<api.RowStatus>(); o.add(buildRowStatus()); o.add(buildRowStatus()); return o; } -checkUnnamed1277(core.List<api.RowStatus> o) { +checkUnnamed1255(core.List<api.RowStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRowStatus(o[0]); checkRowStatus(o[1]); @@ -702,8 +702,8 @@ var o = new api.UploadStatus(); buildCounterUploadStatus++; if (buildCounterUploadStatus < 3) { - o.errors = buildUnnamed1276(); - o.rowStatus = buildUnnamed1277(); + o.errors = buildUnnamed1254(); + o.rowStatus = buildUnnamed1255(); } buildCounterUploadStatus--; return o; @@ -712,8 +712,8 @@ checkUploadStatus(api.UploadStatus o) { buildCounterUploadStatus++; if (buildCounterUploadStatus < 3) { - checkUnnamed1276(o.errors); - checkUnnamed1277(o.rowStatus); + checkUnnamed1254(o.errors); + checkUnnamed1255(o.rowStatus); } buildCounterUploadStatus--; }
diff --git a/generated/googleapis/test/doubleclicksearch/v2_test.dart b/generated/googleapis/test/doubleclicksearch/v2_test.dart index 61e9bd2..3d5ade4 100644 --- a/generated/googleapis/test/doubleclicksearch/v2_test.dart +++ b/generated/googleapis/test/doubleclicksearch/v2_test.dart
@@ -80,27 +80,27 @@ buildCounterAvailability--; } -buildUnnamed1444() { +buildUnnamed1426() { var o = new core.List<api.CustomDimension>(); o.add(buildCustomDimension()); o.add(buildCustomDimension()); return o; } -checkUnnamed1444(core.List<api.CustomDimension> o) { +checkUnnamed1426(core.List<api.CustomDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomDimension(o[0]); checkCustomDimension(o[1]); } -buildUnnamed1445() { +buildUnnamed1427() { var o = new core.List<api.CustomMetric>(); o.add(buildCustomMetric()); o.add(buildCustomMetric()); return o; } -checkUnnamed1445(core.List<api.CustomMetric> o) { +checkUnnamed1427(core.List<api.CustomMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomMetric(o[0]); checkCustomMetric(o[1]); @@ -125,8 +125,8 @@ o.countMillis = "foo"; o.criterionId = "foo"; o.currencyCode = "foo"; - o.customDimension = buildUnnamed1444(); - o.customMetric = buildUnnamed1445(); + o.customDimension = buildUnnamed1426(); + o.customMetric = buildUnnamed1427(); o.deviceType = "foo"; o.dsConversionId = "foo"; o.engineAccountId = "foo"; @@ -166,8 +166,8 @@ unittest.expect(o.countMillis, unittest.equals('foo')); unittest.expect(o.criterionId, unittest.equals('foo')); unittest.expect(o.currencyCode, unittest.equals('foo')); - checkUnnamed1444(o.customDimension); - checkUnnamed1445(o.customMetric); + checkUnnamed1426(o.customDimension); + checkUnnamed1427(o.customMetric); unittest.expect(o.deviceType, unittest.equals('foo')); unittest.expect(o.dsConversionId, unittest.equals('foo')); unittest.expect(o.engineAccountId, unittest.equals('foo')); @@ -189,14 +189,14 @@ buildCounterConversion--; } -buildUnnamed1446() { +buildUnnamed1428() { var o = new core.List<api.Conversion>(); o.add(buildConversion()); o.add(buildConversion()); return o; } -checkUnnamed1446(core.List<api.Conversion> o) { +checkUnnamed1428(core.List<api.Conversion> o) { unittest.expect(o, unittest.hasLength(2)); checkConversion(o[0]); checkConversion(o[1]); @@ -207,7 +207,7 @@ var o = new api.ConversionList(); buildCounterConversionList++; if (buildCounterConversionList < 3) { - o.conversion = buildUnnamed1446(); + o.conversion = buildUnnamed1428(); o.kind = "foo"; } buildCounterConversionList--; @@ -217,7 +217,7 @@ checkConversionList(api.ConversionList o) { buildCounterConversionList++; if (buildCounterConversionList < 3) { - checkUnnamed1446(o.conversion); + checkUnnamed1428(o.conversion); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionList--; @@ -286,27 +286,27 @@ buildCounterReportFiles--; } -buildUnnamed1447() { +buildUnnamed1429() { var o = new core.List<api.ReportFiles>(); o.add(buildReportFiles()); o.add(buildReportFiles()); return o; } -checkUnnamed1447(core.List<api.ReportFiles> o) { +checkUnnamed1429(core.List<api.ReportFiles> o) { unittest.expect(o, unittest.hasLength(2)); checkReportFiles(o[0]); checkReportFiles(o[1]); } -buildUnnamed1448() { +buildUnnamed1430() { var o = new core.List<api.ReportRow>(); o.add(buildReportRow()); o.add(buildReportRow()); return o; } -checkUnnamed1448(core.List<api.ReportRow> o) { +checkUnnamed1430(core.List<api.ReportRow> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRow(o[0]); checkReportRow(o[1]); @@ -317,13 +317,13 @@ var o = new api.Report(); buildCounterReport++; if (buildCounterReport < 3) { - o.files = buildUnnamed1447(); + o.files = buildUnnamed1429(); o.id = "foo"; o.isReportReady = true; o.kind = "foo"; o.request = buildReportRequest(); o.rowCount = 42; - o.rows = buildUnnamed1448(); + o.rows = buildUnnamed1430(); o.statisticsCurrencyCode = "foo"; o.statisticsTimeZone = "foo"; } @@ -334,13 +334,13 @@ checkReport(api.Report o) { buildCounterReport++; if (buildCounterReport < 3) { - checkUnnamed1447(o.files); + checkUnnamed1429(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)); - checkUnnamed1448(o.rows); + checkUnnamed1430(o.rows); unittest.expect(o.statisticsCurrencyCode, unittest.equals('foo')); unittest.expect(o.statisticsTimeZone, unittest.equals('foo')); } @@ -384,27 +384,27 @@ buildCounterReportApiColumnSpec--; } -buildUnnamed1449() { +buildUnnamed1431() { var o = new core.List<api.ReportApiColumnSpec>(); o.add(buildReportApiColumnSpec()); o.add(buildReportApiColumnSpec()); return o; } -checkUnnamed1449(core.List<api.ReportApiColumnSpec> o) { +checkUnnamed1431(core.List<api.ReportApiColumnSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkReportApiColumnSpec(o[0]); checkReportApiColumnSpec(o[1]); } -buildUnnamed1450() { +buildUnnamed1432() { 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; } -checkUnnamed1450(core.List<core.Object> o) { +checkUnnamed1432(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -417,7 +417,7 @@ if (buildCounterReportRequestFilters < 3) { o.column = buildReportApiColumnSpec(); o.operator = "foo"; - o.values = buildUnnamed1450(); + o.values = buildUnnamed1432(); } buildCounterReportRequestFilters--; return o; @@ -428,19 +428,19 @@ if (buildCounterReportRequestFilters < 3) { checkReportApiColumnSpec(o.column); unittest.expect(o.operator, unittest.equals('foo')); - checkUnnamed1450(o.values); + checkUnnamed1432(o.values); } buildCounterReportRequestFilters--; } -buildUnnamed1451() { +buildUnnamed1433() { var o = new core.List<api.ReportRequestFilters>(); o.add(buildReportRequestFilters()); o.add(buildReportRequestFilters()); return o; } -checkUnnamed1451(core.List<api.ReportRequestFilters> o) { +checkUnnamed1433(core.List<api.ReportRequestFilters> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRequestFilters(o[0]); checkReportRequestFilters(o[1]); @@ -467,14 +467,14 @@ buildCounterReportRequestOrderBy--; } -buildUnnamed1452() { +buildUnnamed1434() { var o = new core.List<api.ReportRequestOrderBy>(); o.add(buildReportRequestOrderBy()); o.add(buildReportRequestOrderBy()); return o; } -checkUnnamed1452(core.List<api.ReportRequestOrderBy> o) { +checkUnnamed1434(core.List<api.ReportRequestOrderBy> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRequestOrderBy(o[0]); checkReportRequestOrderBy(o[1]); @@ -541,13 +541,13 @@ var o = new api.ReportRequest(); buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - o.columns = buildUnnamed1449(); + o.columns = buildUnnamed1431(); o.downloadFormat = "foo"; - o.filters = buildUnnamed1451(); + o.filters = buildUnnamed1433(); o.includeDeletedEntities = true; o.includeRemovedEntities = true; o.maxRowsPerFile = 42; - o.orderBy = buildUnnamed1452(); + o.orderBy = buildUnnamed1434(); o.reportScope = buildReportRequestReportScope(); o.reportType = "foo"; o.rowCount = 42; @@ -563,13 +563,13 @@ checkReportRequest(api.ReportRequest o) { buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - checkUnnamed1449(o.columns); + checkUnnamed1431(o.columns); unittest.expect(o.downloadFormat, unittest.equals('foo')); - checkUnnamed1451(o.filters); + checkUnnamed1433(o.filters); unittest.expect(o.includeDeletedEntities, unittest.isTrue); unittest.expect(o.includeRemovedEntities, unittest.isTrue); unittest.expect(o.maxRowsPerFile, unittest.equals(42)); - checkUnnamed1452(o.orderBy); + checkUnnamed1434(o.orderBy); checkReportRequestReportScope(o.reportScope); unittest.expect(o.reportType, unittest.equals('foo')); unittest.expect(o.rowCount, unittest.equals(42)); @@ -617,14 +617,14 @@ buildCounterSavedColumn--; } -buildUnnamed1453() { +buildUnnamed1435() { var o = new core.List<api.SavedColumn>(); o.add(buildSavedColumn()); o.add(buildSavedColumn()); return o; } -checkUnnamed1453(core.List<api.SavedColumn> o) { +checkUnnamed1435(core.List<api.SavedColumn> o) { unittest.expect(o, unittest.hasLength(2)); checkSavedColumn(o[0]); checkSavedColumn(o[1]); @@ -635,7 +635,7 @@ var o = new api.SavedColumnList(); buildCounterSavedColumnList++; if (buildCounterSavedColumnList < 3) { - o.items = buildUnnamed1453(); + o.items = buildUnnamed1435(); o.kind = "foo"; } buildCounterSavedColumnList--; @@ -645,20 +645,20 @@ checkSavedColumnList(api.SavedColumnList o) { buildCounterSavedColumnList++; if (buildCounterSavedColumnList < 3) { - checkUnnamed1453(o.items); + checkUnnamed1435(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterSavedColumnList--; } -buildUnnamed1454() { +buildUnnamed1436() { var o = new core.List<api.Availability>(); o.add(buildAvailability()); o.add(buildAvailability()); return o; } -checkUnnamed1454(core.List<api.Availability> o) { +checkUnnamed1436(core.List<api.Availability> o) { unittest.expect(o, unittest.hasLength(2)); checkAvailability(o[0]); checkAvailability(o[1]); @@ -669,7 +669,7 @@ var o = new api.UpdateAvailabilityRequest(); buildCounterUpdateAvailabilityRequest++; if (buildCounterUpdateAvailabilityRequest < 3) { - o.availabilities = buildUnnamed1454(); + o.availabilities = buildUnnamed1436(); } buildCounterUpdateAvailabilityRequest--; return o; @@ -678,19 +678,19 @@ checkUpdateAvailabilityRequest(api.UpdateAvailabilityRequest o) { buildCounterUpdateAvailabilityRequest++; if (buildCounterUpdateAvailabilityRequest < 3) { - checkUnnamed1454(o.availabilities); + checkUnnamed1436(o.availabilities); } buildCounterUpdateAvailabilityRequest--; } -buildUnnamed1455() { +buildUnnamed1437() { var o = new core.List<api.Availability>(); o.add(buildAvailability()); o.add(buildAvailability()); return o; } -checkUnnamed1455(core.List<api.Availability> o) { +checkUnnamed1437(core.List<api.Availability> o) { unittest.expect(o, unittest.hasLength(2)); checkAvailability(o[0]); checkAvailability(o[1]); @@ -701,7 +701,7 @@ var o = new api.UpdateAvailabilityResponse(); buildCounterUpdateAvailabilityResponse++; if (buildCounterUpdateAvailabilityResponse < 3) { - o.availabilities = buildUnnamed1455(); + o.availabilities = buildUnnamed1437(); } buildCounterUpdateAvailabilityResponse--; return o; @@ -710,7 +710,7 @@ checkUpdateAvailabilityResponse(api.UpdateAvailabilityResponse o) { buildCounterUpdateAvailabilityResponse++; if (buildCounterUpdateAvailabilityResponse < 3) { - checkUnnamed1455(o.availabilities); + checkUnnamed1437(o.availabilities); } buildCounterUpdateAvailabilityResponse--; }
diff --git a/generated/googleapis/test/drive/v2_test.dart b/generated/googleapis/test/drive/v2_test.dart index 08ae314..1bf801e 100644 --- a/generated/googleapis/test/drive/v2_test.dart +++ b/generated/googleapis/test/drive/v2_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed711() { +buildUnnamed686() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed711(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')); @@ -69,7 +69,7 @@ var o = new api.AboutAdditionalRoleInfoRoleSets(); buildCounterAboutAdditionalRoleInfoRoleSets++; if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { - o.additionalRoles = buildUnnamed711(); + o.additionalRoles = buildUnnamed686(); o.primaryRole = "foo"; } buildCounterAboutAdditionalRoleInfoRoleSets--; @@ -79,20 +79,20 @@ checkAboutAdditionalRoleInfoRoleSets(api.AboutAdditionalRoleInfoRoleSets o) { buildCounterAboutAdditionalRoleInfoRoleSets++; if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { - checkUnnamed711(o.additionalRoles); + checkUnnamed686(o.additionalRoles); unittest.expect(o.primaryRole, unittest.equals('foo')); } buildCounterAboutAdditionalRoleInfoRoleSets--; } -buildUnnamed712() { +buildUnnamed687() { var o = new core.List<api.AboutAdditionalRoleInfoRoleSets>(); o.add(buildAboutAdditionalRoleInfoRoleSets()); o.add(buildAboutAdditionalRoleInfoRoleSets()); return o; } -checkUnnamed712(core.List<api.AboutAdditionalRoleInfoRoleSets> o) { +checkUnnamed687(core.List<api.AboutAdditionalRoleInfoRoleSets> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutAdditionalRoleInfoRoleSets(o[0]); checkAboutAdditionalRoleInfoRoleSets(o[1]); @@ -103,7 +103,7 @@ var o = new api.AboutAdditionalRoleInfo(); buildCounterAboutAdditionalRoleInfo++; if (buildCounterAboutAdditionalRoleInfo < 3) { - o.roleSets = buildUnnamed712(); + o.roleSets = buildUnnamed687(); o.type = "foo"; } buildCounterAboutAdditionalRoleInfo--; @@ -113,33 +113,33 @@ checkAboutAdditionalRoleInfo(api.AboutAdditionalRoleInfo o) { buildCounterAboutAdditionalRoleInfo++; if (buildCounterAboutAdditionalRoleInfo < 3) { - checkUnnamed712(o.roleSets); + checkUnnamed687(o.roleSets); unittest.expect(o.type, unittest.equals('foo')); } buildCounterAboutAdditionalRoleInfo--; } -buildUnnamed713() { +buildUnnamed688() { var o = new core.List<api.AboutAdditionalRoleInfo>(); o.add(buildAboutAdditionalRoleInfo()); o.add(buildAboutAdditionalRoleInfo()); return o; } -checkUnnamed713(core.List<api.AboutAdditionalRoleInfo> o) { +checkUnnamed688(core.List<api.AboutAdditionalRoleInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutAdditionalRoleInfo(o[0]); checkAboutAdditionalRoleInfo(o[1]); } -buildUnnamed714() { +buildUnnamed689() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed714(core.List<core.String> o) { +checkUnnamed689(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -151,7 +151,7 @@ buildCounterAboutExportFormats++; if (buildCounterAboutExportFormats < 3) { o.source = "foo"; - o.targets = buildUnnamed714(); + o.targets = buildUnnamed689(); } buildCounterAboutExportFormats--; return o; @@ -161,19 +161,19 @@ buildCounterAboutExportFormats++; if (buildCounterAboutExportFormats < 3) { unittest.expect(o.source, unittest.equals('foo')); - checkUnnamed714(o.targets); + checkUnnamed689(o.targets); } buildCounterAboutExportFormats--; } -buildUnnamed715() { +buildUnnamed690() { var o = new core.List<api.AboutExportFormats>(); o.add(buildAboutExportFormats()); o.add(buildAboutExportFormats()); return o; } -checkUnnamed715(core.List<api.AboutExportFormats> o) { +checkUnnamed690(core.List<api.AboutExportFormats> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutExportFormats(o[0]); checkAboutExportFormats(o[1]); @@ -200,40 +200,40 @@ buildCounterAboutFeatures--; } -buildUnnamed716() { +buildUnnamed691() { var o = new core.List<api.AboutFeatures>(); o.add(buildAboutFeatures()); o.add(buildAboutFeatures()); return o; } -checkUnnamed716(core.List<api.AboutFeatures> o) { +checkUnnamed691(core.List<api.AboutFeatures> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutFeatures(o[0]); checkAboutFeatures(o[1]); } -buildUnnamed717() { +buildUnnamed692() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed717(core.List<core.String> o) { +checkUnnamed692(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed718() { +buildUnnamed693() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed718(core.List<core.String> o) { +checkUnnamed693(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -245,7 +245,7 @@ buildCounterAboutImportFormats++; if (buildCounterAboutImportFormats < 3) { o.source = "foo"; - o.targets = buildUnnamed718(); + o.targets = buildUnnamed693(); } buildCounterAboutImportFormats--; return o; @@ -255,19 +255,19 @@ buildCounterAboutImportFormats++; if (buildCounterAboutImportFormats < 3) { unittest.expect(o.source, unittest.equals('foo')); - checkUnnamed718(o.targets); + checkUnnamed693(o.targets); } buildCounterAboutImportFormats--; } -buildUnnamed719() { +buildUnnamed694() { var o = new core.List<api.AboutImportFormats>(); o.add(buildAboutImportFormats()); o.add(buildAboutImportFormats()); return o; } -checkUnnamed719(core.List<api.AboutImportFormats> o) { +checkUnnamed694(core.List<api.AboutImportFormats> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutImportFormats(o[0]); checkAboutImportFormats(o[1]); @@ -294,14 +294,14 @@ buildCounterAboutMaxUploadSizes--; } -buildUnnamed720() { +buildUnnamed695() { var o = new core.List<api.AboutMaxUploadSizes>(); o.add(buildAboutMaxUploadSizes()); o.add(buildAboutMaxUploadSizes()); return o; } -checkUnnamed720(core.List<api.AboutMaxUploadSizes> o) { +checkUnnamed695(core.List<api.AboutMaxUploadSizes> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutMaxUploadSizes(o[0]); checkAboutMaxUploadSizes(o[1]); @@ -328,14 +328,14 @@ buildCounterAboutQuotaBytesByService--; } -buildUnnamed721() { +buildUnnamed696() { var o = new core.List<api.AboutQuotaBytesByService>(); o.add(buildAboutQuotaBytesByService()); o.add(buildAboutQuotaBytesByService()); return o; } -checkUnnamed721(core.List<api.AboutQuotaBytesByService> o) { +checkUnnamed696(core.List<api.AboutQuotaBytesByService> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutQuotaBytesByService(o[0]); checkAboutQuotaBytesByService(o[1]); @@ -364,14 +364,14 @@ buildCounterAboutTeamDriveThemes--; } -buildUnnamed722() { +buildUnnamed697() { var o = new core.List<api.AboutTeamDriveThemes>(); o.add(buildAboutTeamDriveThemes()); o.add(buildAboutTeamDriveThemes()); return o; } -checkUnnamed722(core.List<api.AboutTeamDriveThemes> o) { +checkUnnamed697(core.List<api.AboutTeamDriveThemes> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutTeamDriveThemes(o[0]); checkAboutTeamDriveThemes(o[1]); @@ -382,21 +382,21 @@ var o = new api.About(); buildCounterAbout++; if (buildCounterAbout < 3) { - o.additionalRoleInfo = buildUnnamed713(); + o.additionalRoleInfo = buildUnnamed688(); o.domainSharingPolicy = "foo"; o.etag = "foo"; - o.exportFormats = buildUnnamed715(); - o.features = buildUnnamed716(); - o.folderColorPalette = buildUnnamed717(); - o.importFormats = buildUnnamed719(); + o.exportFormats = buildUnnamed690(); + o.features = buildUnnamed691(); + o.folderColorPalette = buildUnnamed692(); + o.importFormats = buildUnnamed694(); o.isCurrentAppInstalled = true; o.kind = "foo"; o.languageCode = "foo"; o.largestChangeId = "foo"; - o.maxUploadSizes = buildUnnamed720(); + o.maxUploadSizes = buildUnnamed695(); o.name = "foo"; o.permissionId = "foo"; - o.quotaBytesByService = buildUnnamed721(); + o.quotaBytesByService = buildUnnamed696(); o.quotaBytesTotal = "foo"; o.quotaBytesUsed = "foo"; o.quotaBytesUsedAggregate = "foo"; @@ -405,7 +405,7 @@ o.remainingChangeIds = "foo"; o.rootFolderId = "foo"; o.selfLink = "foo"; - o.teamDriveThemes = buildUnnamed722(); + o.teamDriveThemes = buildUnnamed697(); o.user = buildUser(); } buildCounterAbout--; @@ -415,21 +415,21 @@ checkAbout(api.About o) { buildCounterAbout++; if (buildCounterAbout < 3) { - checkUnnamed713(o.additionalRoleInfo); + checkUnnamed688(o.additionalRoleInfo); unittest.expect(o.domainSharingPolicy, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed715(o.exportFormats); - checkUnnamed716(o.features); - checkUnnamed717(o.folderColorPalette); - checkUnnamed719(o.importFormats); + checkUnnamed690(o.exportFormats); + checkUnnamed691(o.features); + checkUnnamed692(o.folderColorPalette); + checkUnnamed694(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')); - checkUnnamed720(o.maxUploadSizes); + checkUnnamed695(o.maxUploadSizes); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.permissionId, unittest.equals('foo')); - checkUnnamed721(o.quotaBytesByService); + checkUnnamed696(o.quotaBytesByService); unittest.expect(o.quotaBytesTotal, unittest.equals('foo')); unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); unittest.expect(o.quotaBytesUsedAggregate, unittest.equals('foo')); @@ -438,7 +438,7 @@ unittest.expect(o.remainingChangeIds, unittest.equals('foo')); unittest.expect(o.rootFolderId, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed722(o.teamDriveThemes); + checkUnnamed697(o.teamDriveThemes); checkUser(o.user); } buildCounterAbout--; @@ -467,66 +467,66 @@ buildCounterAppIcons--; } -buildUnnamed723() { +buildUnnamed698() { var o = new core.List<api.AppIcons>(); o.add(buildAppIcons()); o.add(buildAppIcons()); return o; } -checkUnnamed723(core.List<api.AppIcons> o) { +checkUnnamed698(core.List<api.AppIcons> o) { unittest.expect(o, unittest.hasLength(2)); checkAppIcons(o[0]); checkAppIcons(o[1]); } -buildUnnamed724() { +buildUnnamed699() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed724(core.List<core.String> o) { +checkUnnamed699(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed725() { +buildUnnamed700() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed725(core.List<core.String> o) { +checkUnnamed700(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed726() { +buildUnnamed701() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed726(core.List<core.String> o) { +checkUnnamed701(core.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() { +buildUnnamed702() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed727(core.List<core.String> o) { +checkUnnamed702(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -541,7 +541,7 @@ o.createInFolderTemplate = "foo"; o.createUrl = "foo"; o.hasDriveWideScope = true; - o.icons = buildUnnamed723(); + o.icons = buildUnnamed698(); o.id = "foo"; o.installed = true; o.kind = "foo"; @@ -549,12 +549,12 @@ o.name = "foo"; o.objectType = "foo"; o.openUrlTemplate = "foo"; - o.primaryFileExtensions = buildUnnamed724(); - o.primaryMimeTypes = buildUnnamed725(); + o.primaryFileExtensions = buildUnnamed699(); + o.primaryMimeTypes = buildUnnamed700(); o.productId = "foo"; o.productUrl = "foo"; - o.secondaryFileExtensions = buildUnnamed726(); - o.secondaryMimeTypes = buildUnnamed727(); + o.secondaryFileExtensions = buildUnnamed701(); + o.secondaryMimeTypes = buildUnnamed702(); o.shortDescription = "foo"; o.supportsCreate = true; o.supportsImport = true; @@ -573,7 +573,7 @@ unittest.expect(o.createInFolderTemplate, unittest.equals('foo')); unittest.expect(o.createUrl, unittest.equals('foo')); unittest.expect(o.hasDriveWideScope, unittest.isTrue); - checkUnnamed723(o.icons); + checkUnnamed698(o.icons); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.installed, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -581,12 +581,12 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.objectType, unittest.equals('foo')); unittest.expect(o.openUrlTemplate, unittest.equals('foo')); - checkUnnamed724(o.primaryFileExtensions); - checkUnnamed725(o.primaryMimeTypes); + checkUnnamed699(o.primaryFileExtensions); + checkUnnamed700(o.primaryMimeTypes); unittest.expect(o.productId, unittest.equals('foo')); unittest.expect(o.productUrl, unittest.equals('foo')); - checkUnnamed726(o.secondaryFileExtensions); - checkUnnamed727(o.secondaryMimeTypes); + checkUnnamed701(o.secondaryFileExtensions); + checkUnnamed702(o.secondaryMimeTypes); unittest.expect(o.shortDescription, unittest.equals('foo')); unittest.expect(o.supportsCreate, unittest.isTrue); unittest.expect(o.supportsImport, unittest.isTrue); @@ -597,27 +597,27 @@ buildCounterApp--; } -buildUnnamed728() { +buildUnnamed703() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed728(core.List<core.String> o) { +checkUnnamed703(core.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() { +buildUnnamed704() { var o = new core.List<api.App>(); o.add(buildApp()); o.add(buildApp()); return o; } -checkUnnamed729(core.List<api.App> o) { +checkUnnamed704(core.List<api.App> o) { unittest.expect(o, unittest.hasLength(2)); checkApp(o[0]); checkApp(o[1]); @@ -628,9 +628,9 @@ var o = new api.AppList(); buildCounterAppList++; if (buildCounterAppList < 3) { - o.defaultAppIds = buildUnnamed728(); + o.defaultAppIds = buildUnnamed703(); o.etag = "foo"; - o.items = buildUnnamed729(); + o.items = buildUnnamed704(); o.kind = "foo"; o.selfLink = "foo"; } @@ -641,9 +641,9 @@ checkAppList(api.AppList o) { buildCounterAppList++; if (buildCounterAppList < 3) { - checkUnnamed728(o.defaultAppIds); + checkUnnamed703(o.defaultAppIds); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed729(o.items); + checkUnnamed704(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } @@ -687,14 +687,14 @@ buildCounterChange--; } -buildUnnamed730() { +buildUnnamed705() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed730(core.List<api.Change> o) { +checkUnnamed705(core.List<api.Change> o) { unittest.expect(o, unittest.hasLength(2)); checkChange(o[0]); checkChange(o[1]); @@ -706,7 +706,7 @@ buildCounterChangeList++; if (buildCounterChangeList < 3) { o.etag = "foo"; - o.items = buildUnnamed730(); + o.items = buildUnnamed705(); o.kind = "foo"; o.largestChangeId = "foo"; o.newStartPageToken = "foo"; @@ -722,7 +722,7 @@ buildCounterChangeList++; if (buildCounterChangeList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed730(o.items); + checkUnnamed705(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.largestChangeId, unittest.equals('foo')); unittest.expect(o.newStartPageToken, unittest.equals('foo')); @@ -733,14 +733,14 @@ buildCounterChangeList--; } -buildUnnamed731() { +buildUnnamed706() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed731(core.Map<core.String, core.String> o) { +checkUnnamed706(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -755,7 +755,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed731(); + o.params = buildUnnamed706(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -773,7 +773,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed731(o.params); + checkUnnamed706(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -783,14 +783,14 @@ buildCounterChannel--; } -buildUnnamed732() { +buildUnnamed707() { var o = new core.List<api.ChildReference>(); o.add(buildChildReference()); o.add(buildChildReference()); return o; } -checkUnnamed732(core.List<api.ChildReference> o) { +checkUnnamed707(core.List<api.ChildReference> o) { unittest.expect(o, unittest.hasLength(2)); checkChildReference(o[0]); checkChildReference(o[1]); @@ -802,7 +802,7 @@ buildCounterChildList++; if (buildCounterChildList < 3) { o.etag = "foo"; - o.items = buildUnnamed732(); + o.items = buildUnnamed707(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -816,7 +816,7 @@ buildCounterChildList++; if (buildCounterChildList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed732(o.items); + checkUnnamed707(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 @@ buildCounterCommentContext--; } -buildUnnamed733() { +buildUnnamed708() { var o = new core.List<api.CommentReply>(); o.add(buildCommentReply()); o.add(buildCommentReply()); return o; } -checkUnnamed733(core.List<api.CommentReply> o) { +checkUnnamed708(core.List<api.CommentReply> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentReply(o[0]); checkCommentReply(o[1]); @@ -901,7 +901,7 @@ o.htmlContent = "foo"; o.kind = "foo"; o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); - o.replies = buildUnnamed733(); + o.replies = buildUnnamed708(); o.selfLink = "foo"; o.status = "foo"; } @@ -924,21 +924,21 @@ unittest.expect(o.htmlContent, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed733(o.replies); + checkUnnamed708(o.replies); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); } buildCounterComment--; } -buildUnnamed734() { +buildUnnamed709() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed734(core.List<api.Comment> o) { +checkUnnamed709(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -949,7 +949,7 @@ var o = new api.CommentList(); buildCounterCommentList++; if (buildCounterCommentList < 3) { - o.items = buildUnnamed734(); + o.items = buildUnnamed709(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -962,7 +962,7 @@ checkCommentList(api.CommentList o) { buildCounterCommentList++; if (buildCounterCommentList < 3) { - checkUnnamed734(o.items); + checkUnnamed709(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1006,14 +1006,14 @@ buildCounterCommentReply--; } -buildUnnamed735() { +buildUnnamed710() { var o = new core.List<api.CommentReply>(); o.add(buildCommentReply()); o.add(buildCommentReply()); return o; } -checkUnnamed735(core.List<api.CommentReply> o) { +checkUnnamed710(core.List<api.CommentReply> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentReply(o[0]); checkCommentReply(o[1]); @@ -1024,7 +1024,7 @@ var o = new api.CommentReplyList(); buildCounterCommentReplyList++; if (buildCounterCommentReplyList < 3) { - o.items = buildUnnamed735(); + o.items = buildUnnamed710(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -1037,7 +1037,7 @@ checkCommentReplyList(api.CommentReplyList o) { buildCounterCommentReplyList++; if (buildCounterCommentReplyList < 3) { - checkUnnamed735(o.items); + checkUnnamed710(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1097,14 +1097,14 @@ buildCounterFileCapabilities--; } -buildUnnamed736() { +buildUnnamed711() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed736(core.Map<core.String, core.String> o) { +checkUnnamed711(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1240,92 +1240,92 @@ buildCounterFileLabels--; } -buildUnnamed737() { +buildUnnamed712() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed737(core.Map<core.String, core.String> o) { +checkUnnamed712(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed738() { +buildUnnamed713() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed738(core.List<core.String> o) { +checkUnnamed713(core.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() { +buildUnnamed714() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed739(core.List<api.User> o) { +checkUnnamed714(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); } -buildUnnamed740() { +buildUnnamed715() { var o = new core.List<api.ParentReference>(); o.add(buildParentReference()); o.add(buildParentReference()); return o; } -checkUnnamed740(core.List<api.ParentReference> o) { +checkUnnamed715(core.List<api.ParentReference> o) { unittest.expect(o, unittest.hasLength(2)); checkParentReference(o[0]); checkParentReference(o[1]); } -buildUnnamed741() { +buildUnnamed716() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed741(core.List<api.Permission> o) { +checkUnnamed716(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); } -buildUnnamed742() { +buildUnnamed717() { var o = new core.List<api.Property>(); o.add(buildProperty()); o.add(buildProperty()); return o; } -checkUnnamed742(core.List<api.Property> o) { +checkUnnamed717(core.List<api.Property> o) { unittest.expect(o, unittest.hasLength(2)); checkProperty(o[0]); checkProperty(o[1]); } -buildUnnamed743() { +buildUnnamed718() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed743(core.List<core.String> o) { +checkUnnamed718(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1394,7 +1394,7 @@ o.embedLink = "foo"; o.etag = "foo"; o.explicitlyTrashed = true; - o.exportLinks = buildUnnamed736(); + o.exportLinks = buildUnnamed711(); o.fileExtension = "foo"; o.fileSize = "foo"; o.folderColorRgb = "foo"; @@ -1417,21 +1417,21 @@ o.mimeType = "foo"; o.modifiedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); - o.openWithLinks = buildUnnamed737(); + o.openWithLinks = buildUnnamed712(); o.originalFilename = "foo"; o.ownedByMe = true; - o.ownerNames = buildUnnamed738(); - o.owners = buildUnnamed739(); - o.parents = buildUnnamed740(); - o.permissions = buildUnnamed741(); - o.properties = buildUnnamed742(); + o.ownerNames = buildUnnamed713(); + o.owners = buildUnnamed714(); + o.parents = buildUnnamed715(); + o.permissions = buildUnnamed716(); + o.properties = buildUnnamed717(); 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 = buildUnnamed743(); + o.spaces = buildUnnamed718(); o.teamDriveId = "foo"; o.thumbnail = buildFileThumbnail(); o.thumbnailLink = "foo"; @@ -1467,7 +1467,7 @@ unittest.expect(o.embedLink, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.explicitlyTrashed, unittest.isTrue); - checkUnnamed736(o.exportLinks); + checkUnnamed711(o.exportLinks); unittest.expect(o.fileExtension, unittest.equals('foo')); unittest.expect(o.fileSize, unittest.equals('foo')); unittest.expect(o.folderColorRgb, unittest.equals('foo')); @@ -1490,21 +1490,21 @@ unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.modifiedByMeDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed737(o.openWithLinks); + checkUnnamed712(o.openWithLinks); unittest.expect(o.originalFilename, unittest.equals('foo')); unittest.expect(o.ownedByMe, unittest.isTrue); - checkUnnamed738(o.ownerNames); - checkUnnamed739(o.owners); - checkUnnamed740(o.parents); - checkUnnamed741(o.permissions); - checkUnnamed742(o.properties); + checkUnnamed713(o.ownerNames); + checkUnnamed714(o.owners); + checkUnnamed715(o.parents); + checkUnnamed716(o.permissions); + checkUnnamed717(o.properties); unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.shareable, unittest.isTrue); unittest.expect(o.shared, unittest.isTrue); unittest.expect(o.sharedWithMeDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); checkUser(o.sharingUser); - checkUnnamed743(o.spaces); + checkUnnamed718(o.spaces); unittest.expect(o.teamDriveId, unittest.equals('foo')); checkFileThumbnail(o.thumbnail); unittest.expect(o.thumbnailLink, unittest.equals('foo')); @@ -1522,14 +1522,14 @@ buildCounterFile--; } -buildUnnamed744() { +buildUnnamed719() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed744(core.List<api.File> o) { +checkUnnamed719(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -1542,7 +1542,7 @@ if (buildCounterFileList < 3) { o.etag = "foo"; o.incompleteSearch = true; - o.items = buildUnnamed744(); + o.items = buildUnnamed719(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -1557,7 +1557,7 @@ if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.incompleteSearch, unittest.isTrue); - checkUnnamed744(o.items); + checkUnnamed719(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1566,14 +1566,14 @@ buildCounterFileList--; } -buildUnnamed745() { +buildUnnamed720() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed745(core.List<core.String> o) { +checkUnnamed720(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1584,7 +1584,7 @@ var o = new api.GeneratedIds(); buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - o.ids = buildUnnamed745(); + o.ids = buildUnnamed720(); o.kind = "foo"; o.space = "foo"; } @@ -1595,21 +1595,21 @@ checkGeneratedIds(api.GeneratedIds o) { buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - checkUnnamed745(o.ids); + checkUnnamed720(o.ids); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.space, unittest.equals('foo')); } buildCounterGeneratedIds--; } -buildUnnamed746() { +buildUnnamed721() { var o = new core.List<api.ParentReference>(); o.add(buildParentReference()); o.add(buildParentReference()); return o; } -checkUnnamed746(core.List<api.ParentReference> o) { +checkUnnamed721(core.List<api.ParentReference> o) { unittest.expect(o, unittest.hasLength(2)); checkParentReference(o[0]); checkParentReference(o[1]); @@ -1621,7 +1621,7 @@ buildCounterParentList++; if (buildCounterParentList < 3) { o.etag = "foo"; - o.items = buildUnnamed746(); + o.items = buildUnnamed721(); o.kind = "foo"; o.selfLink = "foo"; } @@ -1633,7 +1633,7 @@ buildCounterParentList++; if (buildCounterParentList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed746(o.items); + checkUnnamed721(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } @@ -1667,27 +1667,27 @@ buildCounterParentReference--; } -buildUnnamed747() { +buildUnnamed722() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed747(core.List<core.String> o) { +checkUnnamed722(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed748() { +buildUnnamed723() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed748(core.List<core.String> o) { +checkUnnamed723(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1698,7 +1698,7 @@ var o = new api.PermissionTeamDrivePermissionDetails(); buildCounterPermissionTeamDrivePermissionDetails++; if (buildCounterPermissionTeamDrivePermissionDetails < 3) { - o.additionalRoles = buildUnnamed748(); + o.additionalRoles = buildUnnamed723(); o.inherited = true; o.inheritedFrom = "foo"; o.role = "foo"; @@ -1711,7 +1711,7 @@ checkPermissionTeamDrivePermissionDetails(api.PermissionTeamDrivePermissionDetails o) { buildCounterPermissionTeamDrivePermissionDetails++; if (buildCounterPermissionTeamDrivePermissionDetails < 3) { - checkUnnamed748(o.additionalRoles); + checkUnnamed723(o.additionalRoles); unittest.expect(o.inherited, unittest.isTrue); unittest.expect(o.inheritedFrom, unittest.equals('foo')); unittest.expect(o.role, unittest.equals('foo')); @@ -1720,14 +1720,14 @@ buildCounterPermissionTeamDrivePermissionDetails--; } -buildUnnamed749() { +buildUnnamed724() { var o = new core.List<api.PermissionTeamDrivePermissionDetails>(); o.add(buildPermissionTeamDrivePermissionDetails()); o.add(buildPermissionTeamDrivePermissionDetails()); return o; } -checkUnnamed749(core.List<api.PermissionTeamDrivePermissionDetails> o) { +checkUnnamed724(core.List<api.PermissionTeamDrivePermissionDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkPermissionTeamDrivePermissionDetails(o[0]); checkPermissionTeamDrivePermissionDetails(o[1]); @@ -1738,7 +1738,7 @@ var o = new api.Permission(); buildCounterPermission++; if (buildCounterPermission < 3) { - o.additionalRoles = buildUnnamed747(); + o.additionalRoles = buildUnnamed722(); o.authKey = "foo"; o.deleted = true; o.domain = "foo"; @@ -1751,7 +1751,7 @@ o.photoLink = "foo"; o.role = "foo"; o.selfLink = "foo"; - o.teamDrivePermissionDetails = buildUnnamed749(); + o.teamDrivePermissionDetails = buildUnnamed724(); o.type = "foo"; o.value = "foo"; o.withLink = true; @@ -1763,7 +1763,7 @@ checkPermission(api.Permission o) { buildCounterPermission++; if (buildCounterPermission < 3) { - checkUnnamed747(o.additionalRoles); + checkUnnamed722(o.additionalRoles); unittest.expect(o.authKey, unittest.equals('foo')); unittest.expect(o.deleted, unittest.isTrue); unittest.expect(o.domain, unittest.equals('foo')); @@ -1776,7 +1776,7 @@ unittest.expect(o.photoLink, unittest.equals('foo')); unittest.expect(o.role, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed749(o.teamDrivePermissionDetails); + checkUnnamed724(o.teamDrivePermissionDetails); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); unittest.expect(o.withLink, unittest.isTrue); @@ -1805,14 +1805,14 @@ buildCounterPermissionId--; } -buildUnnamed750() { +buildUnnamed725() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed750(core.List<api.Permission> o) { +checkUnnamed725(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -1824,7 +1824,7 @@ buildCounterPermissionList++; if (buildCounterPermissionList < 3) { o.etag = "foo"; - o.items = buildUnnamed750(); + o.items = buildUnnamed725(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1837,7 +1837,7 @@ buildCounterPermissionList++; if (buildCounterPermissionList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed750(o.items); + checkUnnamed725(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1874,14 +1874,14 @@ buildCounterProperty--; } -buildUnnamed751() { +buildUnnamed726() { var o = new core.List<api.Property>(); o.add(buildProperty()); o.add(buildProperty()); return o; } -checkUnnamed751(core.List<api.Property> o) { +checkUnnamed726(core.List<api.Property> o) { unittest.expect(o, unittest.hasLength(2)); checkProperty(o[0]); checkProperty(o[1]); @@ -1893,7 +1893,7 @@ buildCounterPropertyList++; if (buildCounterPropertyList < 3) { o.etag = "foo"; - o.items = buildUnnamed751(); + o.items = buildUnnamed726(); o.kind = "foo"; o.selfLink = "foo"; } @@ -1905,21 +1905,21 @@ buildCounterPropertyList++; if (buildCounterPropertyList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed751(o.items); + checkUnnamed726(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterPropertyList--; } -buildUnnamed752() { +buildUnnamed727() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed752(core.Map<core.String, core.String> o) { +checkUnnamed727(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1932,7 +1932,7 @@ if (buildCounterRevision < 3) { o.downloadUrl = "foo"; o.etag = "foo"; - o.exportLinks = buildUnnamed752(); + o.exportLinks = buildUnnamed727(); o.fileSize = "foo"; o.id = "foo"; o.kind = "foo"; @@ -1958,7 +1958,7 @@ if (buildCounterRevision < 3) { unittest.expect(o.downloadUrl, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed752(o.exportLinks); + checkUnnamed727(o.exportLinks); unittest.expect(o.fileSize, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -1978,14 +1978,14 @@ buildCounterRevision--; } -buildUnnamed753() { +buildUnnamed728() { var o = new core.List<api.Revision>(); o.add(buildRevision()); o.add(buildRevision()); return o; } -checkUnnamed753(core.List<api.Revision> o) { +checkUnnamed728(core.List<api.Revision> o) { unittest.expect(o, unittest.hasLength(2)); checkRevision(o[0]); checkRevision(o[1]); @@ -1997,7 +1997,7 @@ buildCounterRevisionList++; if (buildCounterRevisionList < 3) { o.etag = "foo"; - o.items = buildUnnamed753(); + o.items = buildUnnamed728(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2010,7 +2010,7 @@ buildCounterRevisionList++; if (buildCounterRevisionList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed753(o.items); + checkUnnamed728(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2142,14 +2142,14 @@ buildCounterTeamDrive--; } -buildUnnamed754() { +buildUnnamed729() { var o = new core.List<api.TeamDrive>(); o.add(buildTeamDrive()); o.add(buildTeamDrive()); return o; } -checkUnnamed754(core.List<api.TeamDrive> o) { +checkUnnamed729(core.List<api.TeamDrive> o) { unittest.expect(o, unittest.hasLength(2)); checkTeamDrive(o[0]); checkTeamDrive(o[1]); @@ -2160,7 +2160,7 @@ var o = new api.TeamDriveList(); buildCounterTeamDriveList++; if (buildCounterTeamDriveList < 3) { - o.items = buildUnnamed754(); + o.items = buildUnnamed729(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2171,7 +2171,7 @@ checkTeamDriveList(api.TeamDriveList o) { buildCounterTeamDriveList++; if (buildCounterTeamDriveList < 3) { - checkUnnamed754(o.items); + checkUnnamed729(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 9d89e81..ada254a 100644 --- a/generated/googleapis/test/drive/v3_test.dart +++ b/generated/googleapis/test/drive/v3_test.dart
@@ -51,79 +51,79 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1569() { +buildUnnamed1596() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1569(core.List<core.String> o) { +checkUnnamed1596(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1570() { +buildUnnamed1597() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed1569(); - o["y"] = buildUnnamed1569(); + o["x"] = buildUnnamed1596(); + o["y"] = buildUnnamed1596(); return o; } -checkUnnamed1570(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed1597(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1569(o["x"]); - checkUnnamed1569(o["y"]); + checkUnnamed1596(o["x"]); + checkUnnamed1596(o["y"]); } -buildUnnamed1571() { +buildUnnamed1598() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1571(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')); } -buildUnnamed1572() { +buildUnnamed1599() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1572(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')); } -buildUnnamed1573() { +buildUnnamed1600() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed1572(); - o["y"] = buildUnnamed1572(); + o["x"] = buildUnnamed1599(); + o["y"] = buildUnnamed1599(); return o; } -checkUnnamed1573(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed1600(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1572(o["x"]); - checkUnnamed1572(o["y"]); + checkUnnamed1599(o["x"]); + checkUnnamed1599(o["y"]); } -buildUnnamed1574() { +buildUnnamed1601() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1574(core.Map<core.String, core.String> o) { +checkUnnamed1601(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -177,14 +177,14 @@ buildCounterAboutTeamDriveThemes--; } -buildUnnamed1575() { +buildUnnamed1602() { var o = new core.List<api.AboutTeamDriveThemes>(); o.add(buildAboutTeamDriveThemes()); o.add(buildAboutTeamDriveThemes()); return o; } -checkUnnamed1575(core.List<api.AboutTeamDriveThemes> o) { +checkUnnamed1602(core.List<api.AboutTeamDriveThemes> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutTeamDriveThemes(o[0]); checkAboutTeamDriveThemes(o[1]); @@ -196,14 +196,14 @@ buildCounterAbout++; if (buildCounterAbout < 3) { o.appInstalled = true; - o.exportFormats = buildUnnamed1570(); - o.folderColorPalette = buildUnnamed1571(); - o.importFormats = buildUnnamed1573(); + o.exportFormats = buildUnnamed1597(); + o.folderColorPalette = buildUnnamed1598(); + o.importFormats = buildUnnamed1600(); o.kind = "foo"; - o.maxImportSizes = buildUnnamed1574(); + o.maxImportSizes = buildUnnamed1601(); o.maxUploadSize = "foo"; o.storageQuota = buildAboutStorageQuota(); - o.teamDriveThemes = buildUnnamed1575(); + o.teamDriveThemes = buildUnnamed1602(); o.user = buildUser(); } buildCounterAbout--; @@ -214,14 +214,14 @@ buildCounterAbout++; if (buildCounterAbout < 3) { unittest.expect(o.appInstalled, unittest.isTrue); - checkUnnamed1570(o.exportFormats); - checkUnnamed1571(o.folderColorPalette); - checkUnnamed1573(o.importFormats); + checkUnnamed1597(o.exportFormats); + checkUnnamed1598(o.folderColorPalette); + checkUnnamed1600(o.importFormats); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1574(o.maxImportSizes); + checkUnnamed1601(o.maxImportSizes); unittest.expect(o.maxUploadSize, unittest.equals('foo')); checkAboutStorageQuota(o.storageQuota); - checkUnnamed1575(o.teamDriveThemes); + checkUnnamed1602(o.teamDriveThemes); checkUser(o.user); } buildCounterAbout--; @@ -260,14 +260,14 @@ buildCounterChange--; } -buildUnnamed1576() { +buildUnnamed1603() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed1576(core.List<api.Change> o) { +checkUnnamed1603(core.List<api.Change> o) { unittest.expect(o, unittest.hasLength(2)); checkChange(o[0]); checkChange(o[1]); @@ -278,7 +278,7 @@ var o = new api.ChangeList(); buildCounterChangeList++; if (buildCounterChangeList < 3) { - o.changes = buildUnnamed1576(); + o.changes = buildUnnamed1603(); o.kind = "foo"; o.newStartPageToken = "foo"; o.nextPageToken = "foo"; @@ -290,7 +290,7 @@ checkChangeList(api.ChangeList o) { buildCounterChangeList++; if (buildCounterChangeList < 3) { - checkUnnamed1576(o.changes); + checkUnnamed1603(o.changes); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.newStartPageToken, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -298,14 +298,14 @@ buildCounterChangeList--; } -buildUnnamed1577() { +buildUnnamed1604() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1577(core.Map<core.String, core.String> o) { +checkUnnamed1604(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -320,7 +320,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed1577(); + o.params = buildUnnamed1604(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -338,7 +338,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1577(o.params); + checkUnnamed1604(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -369,14 +369,14 @@ buildCounterCommentQuotedFileContent--; } -buildUnnamed1578() { +buildUnnamed1605() { var o = new core.List<api.Reply>(); o.add(buildReply()); o.add(buildReply()); return o; } -checkUnnamed1578(core.List<api.Reply> o) { +checkUnnamed1605(core.List<api.Reply> o) { unittest.expect(o, unittest.hasLength(2)); checkReply(o[0]); checkReply(o[1]); @@ -397,7 +397,7 @@ o.kind = "foo"; o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); o.quotedFileContent = buildCommentQuotedFileContent(); - o.replies = buildUnnamed1578(); + o.replies = buildUnnamed1605(); o.resolved = true; } buildCounterComment--; @@ -417,20 +417,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); checkCommentQuotedFileContent(o.quotedFileContent); - checkUnnamed1578(o.replies); + checkUnnamed1605(o.replies); unittest.expect(o.resolved, unittest.isTrue); } buildCounterComment--; } -buildUnnamed1579() { +buildUnnamed1606() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed1579(core.List<api.Comment> o) { +checkUnnamed1606(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -441,7 +441,7 @@ var o = new api.CommentList(); buildCounterCommentList++; if (buildCounterCommentList < 3) { - o.comments = buildUnnamed1579(); + o.comments = buildUnnamed1606(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -452,21 +452,21 @@ checkCommentList(api.CommentList o) { buildCounterCommentList++; if (buildCounterCommentList < 3) { - checkUnnamed1579(o.comments); + checkUnnamed1606(o.comments); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCommentList--; } -buildUnnamed1580() { +buildUnnamed1607() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1580(core.Map<core.String, core.String> o) { +checkUnnamed1607(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -647,66 +647,66 @@ buildCounterFileImageMediaMetadata--; } -buildUnnamed1581() { +buildUnnamed1608() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed1581(core.List<api.User> o) { +checkUnnamed1608(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); } -buildUnnamed1582() { +buildUnnamed1609() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1582(core.List<core.String> o) { +checkUnnamed1609(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1583() { +buildUnnamed1610() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1583(core.List<api.Permission> o) { +checkUnnamed1610(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); } -buildUnnamed1584() { +buildUnnamed1611() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1584(core.Map<core.String, core.String> o) { +checkUnnamed1611(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1585() { +buildUnnamed1612() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1585(core.List<core.String> o) { +checkUnnamed1612(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -740,7 +740,7 @@ var o = new api.File(); buildCounterFile++; if (buildCounterFile < 3) { - o.appProperties = buildUnnamed1580(); + o.appProperties = buildUnnamed1607(); o.capabilities = buildFileCapabilities(); o.contentHints = buildFileContentHints(); o.createdTime = core.DateTime.parse("2002-02-27T14:01:02"); @@ -766,16 +766,16 @@ o.name = "foo"; o.originalFilename = "foo"; o.ownedByMe = true; - o.owners = buildUnnamed1581(); - o.parents = buildUnnamed1582(); - o.permissions = buildUnnamed1583(); - o.properties = buildUnnamed1584(); + o.owners = buildUnnamed1608(); + o.parents = buildUnnamed1609(); + o.permissions = buildUnnamed1610(); + o.properties = buildUnnamed1611(); o.quotaBytesUsed = "foo"; o.shared = true; o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02"); o.sharingUser = buildUser(); o.size = "foo"; - o.spaces = buildUnnamed1585(); + o.spaces = buildUnnamed1612(); o.starred = true; o.teamDriveId = "foo"; o.thumbnailLink = "foo"; @@ -799,7 +799,7 @@ checkFile(api.File o) { buildCounterFile++; if (buildCounterFile < 3) { - checkUnnamed1580(o.appProperties); + checkUnnamed1607(o.appProperties); checkFileCapabilities(o.capabilities); checkFileContentHints(o.contentHints); unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -825,16 +825,16 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.originalFilename, unittest.equals('foo')); unittest.expect(o.ownedByMe, unittest.isTrue); - checkUnnamed1581(o.owners); - checkUnnamed1582(o.parents); - checkUnnamed1583(o.permissions); - checkUnnamed1584(o.properties); + checkUnnamed1608(o.owners); + checkUnnamed1609(o.parents); + checkUnnamed1610(o.permissions); + checkUnnamed1611(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')); - checkUnnamed1585(o.spaces); + checkUnnamed1612(o.spaces); unittest.expect(o.starred, unittest.isTrue); unittest.expect(o.teamDriveId, unittest.equals('foo')); unittest.expect(o.thumbnailLink, unittest.equals('foo')); @@ -854,14 +854,14 @@ buildCounterFile--; } -buildUnnamed1586() { +buildUnnamed1613() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed1586(core.List<api.File> o) { +checkUnnamed1613(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -872,7 +872,7 @@ var o = new api.FileList(); buildCounterFileList++; if (buildCounterFileList < 3) { - o.files = buildUnnamed1586(); + o.files = buildUnnamed1613(); o.incompleteSearch = true; o.kind = "foo"; o.nextPageToken = "foo"; @@ -884,7 +884,7 @@ checkFileList(api.FileList o) { buildCounterFileList++; if (buildCounterFileList < 3) { - checkUnnamed1586(o.files); + checkUnnamed1613(o.files); unittest.expect(o.incompleteSearch, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -892,14 +892,14 @@ buildCounterFileList--; } -buildUnnamed1587() { +buildUnnamed1614() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1587(core.List<core.String> o) { +checkUnnamed1614(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -910,7 +910,7 @@ var o = new api.GeneratedIds(); buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - o.ids = buildUnnamed1587(); + o.ids = buildUnnamed1614(); o.kind = "foo"; o.space = "foo"; } @@ -921,7 +921,7 @@ checkGeneratedIds(api.GeneratedIds o) { buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - checkUnnamed1587(o.ids); + checkUnnamed1614(o.ids); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.space, unittest.equals('foo')); } @@ -953,14 +953,14 @@ buildCounterPermissionTeamDrivePermissionDetails--; } -buildUnnamed1588() { +buildUnnamed1615() { var o = new core.List<api.PermissionTeamDrivePermissionDetails>(); o.add(buildPermissionTeamDrivePermissionDetails()); o.add(buildPermissionTeamDrivePermissionDetails()); return o; } -checkUnnamed1588(core.List<api.PermissionTeamDrivePermissionDetails> o) { +checkUnnamed1615(core.List<api.PermissionTeamDrivePermissionDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkPermissionTeamDrivePermissionDetails(o[0]); checkPermissionTeamDrivePermissionDetails(o[1]); @@ -981,7 +981,7 @@ o.kind = "foo"; o.photoLink = "foo"; o.role = "foo"; - o.teamDrivePermissionDetails = buildUnnamed1588(); + o.teamDrivePermissionDetails = buildUnnamed1615(); o.type = "foo"; } buildCounterPermission--; @@ -1001,20 +1001,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.photoLink, unittest.equals('foo')); unittest.expect(o.role, unittest.equals('foo')); - checkUnnamed1588(o.teamDrivePermissionDetails); + checkUnnamed1615(o.teamDrivePermissionDetails); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPermission--; } -buildUnnamed1589() { +buildUnnamed1616() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1589(core.List<api.Permission> o) { +checkUnnamed1616(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -1027,7 +1027,7 @@ if (buildCounterPermissionList < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.permissions = buildUnnamed1589(); + o.permissions = buildUnnamed1616(); } buildCounterPermissionList--; return o; @@ -1038,7 +1038,7 @@ if (buildCounterPermissionList < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1589(o.permissions); + checkUnnamed1616(o.permissions); } buildCounterPermissionList--; } @@ -1078,14 +1078,14 @@ buildCounterReply--; } -buildUnnamed1590() { +buildUnnamed1617() { var o = new core.List<api.Reply>(); o.add(buildReply()); o.add(buildReply()); return o; } -checkUnnamed1590(core.List<api.Reply> o) { +checkUnnamed1617(core.List<api.Reply> o) { unittest.expect(o, unittest.hasLength(2)); checkReply(o[0]); checkReply(o[1]); @@ -1098,7 +1098,7 @@ if (buildCounterReplyList < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.replies = buildUnnamed1590(); + o.replies = buildUnnamed1617(); } buildCounterReplyList--; return o; @@ -1109,7 +1109,7 @@ if (buildCounterReplyList < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1590(o.replies); + checkUnnamed1617(o.replies); } buildCounterReplyList--; } @@ -1155,14 +1155,14 @@ buildCounterRevision--; } -buildUnnamed1591() { +buildUnnamed1618() { var o = new core.List<api.Revision>(); o.add(buildRevision()); o.add(buildRevision()); return o; } -checkUnnamed1591(core.List<api.Revision> o) { +checkUnnamed1618(core.List<api.Revision> o) { unittest.expect(o, unittest.hasLength(2)); checkRevision(o[0]); checkRevision(o[1]); @@ -1175,7 +1175,7 @@ if (buildCounterRevisionList < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.revisions = buildUnnamed1591(); + o.revisions = buildUnnamed1618(); } buildCounterRevisionList--; return o; @@ -1186,7 +1186,7 @@ if (buildCounterRevisionList < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1591(o.revisions); + checkUnnamed1618(o.revisions); } buildCounterRevisionList--; } @@ -1315,14 +1315,14 @@ buildCounterTeamDrive--; } -buildUnnamed1592() { +buildUnnamed1619() { var o = new core.List<api.TeamDrive>(); o.add(buildTeamDrive()); o.add(buildTeamDrive()); return o; } -checkUnnamed1592(core.List<api.TeamDrive> o) { +checkUnnamed1619(core.List<api.TeamDrive> o) { unittest.expect(o, unittest.hasLength(2)); checkTeamDrive(o[0]); checkTeamDrive(o[1]); @@ -1335,7 +1335,7 @@ if (buildCounterTeamDriveList < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.teamDrives = buildUnnamed1592(); + o.teamDrives = buildUnnamed1619(); } buildCounterTeamDriveList--; return o; @@ -1346,7 +1346,7 @@ if (buildCounterTeamDriveList < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1592(o.teamDrives); + checkUnnamed1619(o.teamDrives); } buildCounterTeamDriveList--; }
diff --git a/generated/googleapis/test/firebasedynamiclinks/v1_test.dart b/generated/googleapis/test/firebasedynamiclinks/v1_test.dart index 6081b46..70b9158 100644 --- a/generated/googleapis/test/firebasedynamiclinks/v1_test.dart +++ b/generated/googleapis/test/firebasedynamiclinks/v1_test.dart
@@ -120,14 +120,14 @@ buildCounterCreateShortDynamicLinkRequest--; } -buildUnnamed2140() { +buildUnnamed2174() { var o = new core.List<api.DynamicLinkWarning>(); o.add(buildDynamicLinkWarning()); o.add(buildDynamicLinkWarning()); return o; } -checkUnnamed2140(core.List<api.DynamicLinkWarning> o) { +checkUnnamed2174(core.List<api.DynamicLinkWarning> o) { unittest.expect(o, unittest.hasLength(2)); checkDynamicLinkWarning(o[0]); checkDynamicLinkWarning(o[1]); @@ -140,7 +140,7 @@ if (buildCounterCreateShortDynamicLinkResponse < 3) { o.previewLink = "foo"; o.shortLink = "foo"; - o.warning = buildUnnamed2140(); + o.warning = buildUnnamed2174(); } buildCounterCreateShortDynamicLinkResponse--; return o; @@ -151,7 +151,7 @@ if (buildCounterCreateShortDynamicLinkResponse < 3) { unittest.expect(o.previewLink, unittest.equals('foo')); unittest.expect(o.shortLink, unittest.equals('foo')); - checkUnnamed2140(o.warning); + checkUnnamed2174(o.warning); } buildCounterCreateShortDynamicLinkResponse--; } @@ -210,14 +210,14 @@ buildCounterDynamicLinkInfo--; } -buildUnnamed2141() { +buildUnnamed2175() { var o = new core.List<api.DynamicLinkEventStat>(); o.add(buildDynamicLinkEventStat()); o.add(buildDynamicLinkEventStat()); return o; } -checkUnnamed2141(core.List<api.DynamicLinkEventStat> o) { +checkUnnamed2175(core.List<api.DynamicLinkEventStat> o) { unittest.expect(o, unittest.hasLength(2)); checkDynamicLinkEventStat(o[0]); checkDynamicLinkEventStat(o[1]); @@ -228,7 +228,7 @@ var o = new api.DynamicLinkStats(); buildCounterDynamicLinkStats++; if (buildCounterDynamicLinkStats < 3) { - o.linkEventStats = buildUnnamed2141(); + o.linkEventStats = buildUnnamed2175(); } buildCounterDynamicLinkStats--; return o; @@ -237,7 +237,7 @@ checkDynamicLinkStats(api.DynamicLinkStats o) { buildCounterDynamicLinkStats++; if (buildCounterDynamicLinkStats < 3) { - checkUnnamed2141(o.linkEventStats); + checkUnnamed2175(o.linkEventStats); } buildCounterDynamicLinkStats--; }
diff --git a/generated/googleapis/test/firebaserules/v1_test.dart b/generated/googleapis/test/firebaserules/v1_test.dart index 796f8d1..bce014f 100644 --- a/generated/googleapis/test/firebaserules/v1_test.dart +++ b/generated/googleapis/test/firebaserules/v1_test.dart
@@ -112,14 +112,14 @@ buildCounterFile--; } -buildUnnamed3009() { +buildUnnamed3058() { 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; } -checkUnnamed3009(core.List<core.Object> o) { +checkUnnamed3058(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted2 = (o[0]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); var casted3 = (o[1]) 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')); @@ -130,7 +130,7 @@ var o = new api.FunctionCall(); buildCounterFunctionCall++; if (buildCounterFunctionCall < 3) { - o.args = buildUnnamed3009(); + o.args = buildUnnamed3058(); o.function = "foo"; } buildCounterFunctionCall--; @@ -140,20 +140,20 @@ checkFunctionCall(api.FunctionCall o) { buildCounterFunctionCall++; if (buildCounterFunctionCall < 3) { - checkUnnamed3009(o.args); + checkUnnamed3058(o.args); unittest.expect(o.function, unittest.equals('foo')); } buildCounterFunctionCall--; } -buildUnnamed3010() { +buildUnnamed3059() { var o = new core.List<api.Arg>(); o.add(buildArg()); o.add(buildArg()); return o; } -checkUnnamed3010(core.List<api.Arg> o) { +checkUnnamed3059(core.List<api.Arg> o) { unittest.expect(o, unittest.hasLength(2)); checkArg(o[0]); checkArg(o[1]); @@ -164,7 +164,7 @@ var o = new api.FunctionMock(); buildCounterFunctionMock++; if (buildCounterFunctionMock < 3) { - o.args = buildUnnamed3010(); + o.args = buildUnnamed3059(); o.function = "foo"; o.result = buildResult(); } @@ -175,7 +175,7 @@ checkFunctionMock(api.FunctionMock o) { buildCounterFunctionMock++; if (buildCounterFunctionMock < 3) { - checkUnnamed3010(o.args); + checkUnnamed3059(o.args); unittest.expect(o.function, unittest.equals('foo')); checkResult(o.result); } @@ -205,14 +205,14 @@ buildCounterIssue--; } -buildUnnamed3011() { +buildUnnamed3060() { var o = new core.List<api.Release>(); o.add(buildRelease()); o.add(buildRelease()); return o; } -checkUnnamed3011(core.List<api.Release> o) { +checkUnnamed3060(core.List<api.Release> o) { unittest.expect(o, unittest.hasLength(2)); checkRelease(o[0]); checkRelease(o[1]); @@ -224,7 +224,7 @@ buildCounterListReleasesResponse++; if (buildCounterListReleasesResponse < 3) { o.nextPageToken = "foo"; - o.releases = buildUnnamed3011(); + o.releases = buildUnnamed3060(); } buildCounterListReleasesResponse--; return o; @@ -234,19 +234,19 @@ buildCounterListReleasesResponse++; if (buildCounterListReleasesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3011(o.releases); + checkUnnamed3060(o.releases); } buildCounterListReleasesResponse--; } -buildUnnamed3012() { +buildUnnamed3061() { var o = new core.List<api.Ruleset>(); o.add(buildRuleset()); o.add(buildRuleset()); return o; } -checkUnnamed3012(core.List<api.Ruleset> o) { +checkUnnamed3061(core.List<api.Ruleset> o) { unittest.expect(o, unittest.hasLength(2)); checkRuleset(o[0]); checkRuleset(o[1]); @@ -258,7 +258,7 @@ buildCounterListRulesetsResponse++; if (buildCounterListRulesetsResponse < 3) { o.nextPageToken = "foo"; - o.rulesets = buildUnnamed3012(); + o.rulesets = buildUnnamed3061(); } buildCounterListRulesetsResponse--; return o; @@ -268,7 +268,7 @@ buildCounterListRulesetsResponse++; if (buildCounterListRulesetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3012(o.rulesets); + checkUnnamed3061(o.rulesets); } buildCounterListRulesetsResponse--; } @@ -342,14 +342,14 @@ buildCounterRuleset--; } -buildUnnamed3013() { +buildUnnamed3062() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed3013(core.List<api.File> o) { +checkUnnamed3062(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -360,7 +360,7 @@ var o = new api.Source(); buildCounterSource++; if (buildCounterSource < 3) { - o.files = buildUnnamed3013(); + o.files = buildUnnamed3062(); } buildCounterSource--; return o; @@ -369,7 +369,7 @@ checkSource(api.Source o) { buildCounterSource++; if (buildCounterSource < 3) { - checkUnnamed3013(o.files); + checkUnnamed3062(o.files); } buildCounterSource--; } @@ -397,14 +397,14 @@ buildCounterSourcePosition--; } -buildUnnamed3014() { +buildUnnamed3063() { var o = new core.List<api.FunctionMock>(); o.add(buildFunctionMock()); o.add(buildFunctionMock()); return o; } -checkUnnamed3014(core.List<api.FunctionMock> o) { +checkUnnamed3063(core.List<api.FunctionMock> o) { unittest.expect(o, unittest.hasLength(2)); checkFunctionMock(o[0]); checkFunctionMock(o[1]); @@ -416,7 +416,7 @@ buildCounterTestCase++; if (buildCounterTestCase < 3) { o.expectation = "foo"; - o.functionMocks = buildUnnamed3014(); + o.functionMocks = buildUnnamed3063(); o.request = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.resource = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; } @@ -428,34 +428,34 @@ buildCounterTestCase++; if (buildCounterTestCase < 3) { unittest.expect(o.expectation, unittest.equals('foo')); - checkUnnamed3014(o.functionMocks); + checkUnnamed3063(o.functionMocks); var casted5 = (o.request) 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.resource) 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')); } buildCounterTestCase--; } -buildUnnamed3015() { +buildUnnamed3064() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3015(core.List<core.String> o) { +checkUnnamed3064(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3016() { +buildUnnamed3065() { var o = new core.List<api.FunctionCall>(); o.add(buildFunctionCall()); o.add(buildFunctionCall()); return o; } -checkUnnamed3016(core.List<api.FunctionCall> o) { +checkUnnamed3065(core.List<api.FunctionCall> o) { unittest.expect(o, unittest.hasLength(2)); checkFunctionCall(o[0]); checkFunctionCall(o[1]); @@ -466,9 +466,9 @@ var o = new api.TestResult(); buildCounterTestResult++; if (buildCounterTestResult < 3) { - o.debugMessages = buildUnnamed3015(); + o.debugMessages = buildUnnamed3064(); o.errorPosition = buildSourcePosition(); - o.functionCalls = buildUnnamed3016(); + o.functionCalls = buildUnnamed3065(); o.state = "foo"; } buildCounterTestResult--; @@ -478,9 +478,9 @@ checkTestResult(api.TestResult o) { buildCounterTestResult++; if (buildCounterTestResult < 3) { - checkUnnamed3015(o.debugMessages); + checkUnnamed3064(o.debugMessages); checkSourcePosition(o.errorPosition); - checkUnnamed3016(o.functionCalls); + checkUnnamed3065(o.functionCalls); unittest.expect(o.state, unittest.equals('foo')); } buildCounterTestResult--; @@ -507,27 +507,27 @@ buildCounterTestRulesetRequest--; } -buildUnnamed3017() { +buildUnnamed3066() { var o = new core.List<api.Issue>(); o.add(buildIssue()); o.add(buildIssue()); return o; } -checkUnnamed3017(core.List<api.Issue> o) { +checkUnnamed3066(core.List<api.Issue> o) { unittest.expect(o, unittest.hasLength(2)); checkIssue(o[0]); checkIssue(o[1]); } -buildUnnamed3018() { +buildUnnamed3067() { var o = new core.List<api.TestResult>(); o.add(buildTestResult()); o.add(buildTestResult()); return o; } -checkUnnamed3018(core.List<api.TestResult> o) { +checkUnnamed3067(core.List<api.TestResult> o) { unittest.expect(o, unittest.hasLength(2)); checkTestResult(o[0]); checkTestResult(o[1]); @@ -538,8 +538,8 @@ var o = new api.TestRulesetResponse(); buildCounterTestRulesetResponse++; if (buildCounterTestRulesetResponse < 3) { - o.issues = buildUnnamed3017(); - o.testResults = buildUnnamed3018(); + o.issues = buildUnnamed3066(); + o.testResults = buildUnnamed3067(); } buildCounterTestRulesetResponse--; return o; @@ -548,20 +548,20 @@ checkTestRulesetResponse(api.TestRulesetResponse o) { buildCounterTestRulesetResponse++; if (buildCounterTestRulesetResponse < 3) { - checkUnnamed3017(o.issues); - checkUnnamed3018(o.testResults); + checkUnnamed3066(o.issues); + checkUnnamed3067(o.testResults); } buildCounterTestRulesetResponse--; } -buildUnnamed3019() { +buildUnnamed3068() { var o = new core.List<api.TestCase>(); o.add(buildTestCase()); o.add(buildTestCase()); return o; } -checkUnnamed3019(core.List<api.TestCase> o) { +checkUnnamed3068(core.List<api.TestCase> o) { unittest.expect(o, unittest.hasLength(2)); checkTestCase(o[0]); checkTestCase(o[1]); @@ -572,7 +572,7 @@ var o = new api.TestSuite(); buildCounterTestSuite++; if (buildCounterTestSuite < 3) { - o.testCases = buildUnnamed3019(); + o.testCases = buildUnnamed3068(); } buildCounterTestSuite--; return o; @@ -581,7 +581,7 @@ checkTestSuite(api.TestSuite o) { buildCounterTestSuite++; if (buildCounterTestSuite < 3) { - checkUnnamed3019(o.testCases); + checkUnnamed3068(o.testCases); } buildCounterTestSuite--; } @@ -948,9 +948,9 @@ var mock = new HttpServerMock(); api.ProjectsReleasesResourceApi res = new api.FirebaserulesApi(mock).projects.releases; var arg_name = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_filter = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -978,9 +978,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), 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)); var h = { @@ -989,7 +989,7 @@ var resp = convert.JSON.encode(buildListReleasesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListReleasesResponse response) { + res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListReleasesResponse response) { checkListReleasesResponse(response); }))); });
diff --git a/generated/googleapis/test/fusiontables/v1_test.dart b/generated/googleapis/test/fusiontables/v1_test.dart index 419a9ac..3e8785a 100644 --- a/generated/googleapis/test/fusiontables/v1_test.dart +++ b/generated/googleapis/test/fusiontables/v1_test.dart
@@ -132,14 +132,14 @@ buildCounterColumn--; } -buildUnnamed2603() { +buildUnnamed2640() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed2603(core.List<api.Column> o) { +checkUnnamed2640(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -150,7 +150,7 @@ var o = new api.ColumnList(); buildCounterColumnList++; if (buildCounterColumnList < 3) { - o.items = buildUnnamed2603(); + o.items = buildUnnamed2640(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -162,7 +162,7 @@ checkColumnList(api.ColumnList o) { buildCounterColumnList++; if (buildCounterColumnList < 3) { - checkUnnamed2603(o.items); + checkUnnamed2640(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -170,14 +170,14 @@ buildCounterColumnList--; } -buildUnnamed2604() { +buildUnnamed2641() { 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; } -checkUnnamed2604(core.List<core.Object> o) { +checkUnnamed2641(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -188,7 +188,7 @@ var o = new api.Geometry(); buildCounterGeometry++; if (buildCounterGeometry < 3) { - o.geometries = buildUnnamed2604(); + o.geometries = buildUnnamed2641(); o.geometry = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.type = "foo"; } @@ -199,7 +199,7 @@ checkGeometry(api.Geometry o) { buildCounterGeometry++; if (buildCounterGeometry < 3) { - checkUnnamed2604(o.geometries); + checkUnnamed2641(o.geometries); var casted3 = (o.geometry) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } @@ -227,30 +227,30 @@ buildCounterImport--; } -buildUnnamed2605() { +buildUnnamed2642() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed2605(core.List<core.double> o) { +checkUnnamed2642(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)); } -buildUnnamed2606() { +buildUnnamed2643() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed2605()); - o.add(buildUnnamed2605()); + o.add(buildUnnamed2642()); + o.add(buildUnnamed2642()); return o; } -checkUnnamed2606(core.List<core.List<core.double>> o) { +checkUnnamed2643(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2605(o[0]); - checkUnnamed2605(o[1]); + checkUnnamed2642(o[0]); + checkUnnamed2642(o[1]); } core.int buildCounterLine = 0; @@ -258,7 +258,7 @@ var o = new api.Line(); buildCounterLine++; if (buildCounterLine < 3) { - o.coordinates = buildUnnamed2606(); + o.coordinates = buildUnnamed2643(); o.type = "foo"; } buildCounterLine--; @@ -268,7 +268,7 @@ checkLine(api.Line o) { buildCounterLine++; if (buildCounterLine < 3) { - checkUnnamed2606(o.coordinates); + checkUnnamed2643(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterLine--; @@ -301,14 +301,14 @@ buildCounterLineStyle--; } -buildUnnamed2607() { +buildUnnamed2644() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed2607(core.List<core.double> o) { +checkUnnamed2644(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); @@ -319,7 +319,7 @@ var o = new api.Point(); buildCounterPoint++; if (buildCounterPoint < 3) { - o.coordinates = buildUnnamed2607(); + o.coordinates = buildUnnamed2644(); o.type = "foo"; } buildCounterPoint--; @@ -329,7 +329,7 @@ checkPoint(api.Point o) { buildCounterPoint++; if (buildCounterPoint < 3) { - checkUnnamed2607(o.coordinates); + checkUnnamed2644(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPoint--; @@ -356,43 +356,43 @@ buildCounterPointStyle--; } -buildUnnamed2608() { +buildUnnamed2645() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed2608(core.List<core.double> o) { +checkUnnamed2645(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)); } -buildUnnamed2609() { +buildUnnamed2646() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed2608()); - o.add(buildUnnamed2608()); + o.add(buildUnnamed2645()); + o.add(buildUnnamed2645()); return o; } -checkUnnamed2609(core.List<core.List<core.double>> o) { +checkUnnamed2646(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2608(o[0]); - checkUnnamed2608(o[1]); + checkUnnamed2645(o[0]); + checkUnnamed2645(o[1]); } -buildUnnamed2610() { +buildUnnamed2647() { var o = new core.List<core.List<core.List<core.double>>>(); - o.add(buildUnnamed2609()); - o.add(buildUnnamed2609()); + o.add(buildUnnamed2646()); + o.add(buildUnnamed2646()); return o; } -checkUnnamed2610(core.List<core.List<core.List<core.double>>> o) { +checkUnnamed2647(core.List<core.List<core.List<core.double>>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2609(o[0]); - checkUnnamed2609(o[1]); + checkUnnamed2646(o[0]); + checkUnnamed2646(o[1]); } core.int buildCounterPolygon = 0; @@ -400,7 +400,7 @@ var o = new api.Polygon(); buildCounterPolygon++; if (buildCounterPolygon < 3) { - o.coordinates = buildUnnamed2610(); + o.coordinates = buildUnnamed2647(); o.type = "foo"; } buildCounterPolygon--; @@ -410,7 +410,7 @@ checkPolygon(api.Polygon o) { buildCounterPolygon++; if (buildCounterPolygon < 3) { - checkUnnamed2610(o.coordinates); + checkUnnamed2647(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPolygon--; @@ -449,43 +449,43 @@ buildCounterPolygonStyle--; } -buildUnnamed2611() { +buildUnnamed2648() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2611(core.List<core.String> o) { +checkUnnamed2648(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2612() { +buildUnnamed2649() { 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; } -checkUnnamed2612(core.List<core.Object> o) { +checkUnnamed2649(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted4 = (o[0]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); var casted5 = (o[1]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); } -buildUnnamed2613() { +buildUnnamed2650() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed2612()); - o.add(buildUnnamed2612()); + o.add(buildUnnamed2649()); + o.add(buildUnnamed2649()); return o; } -checkUnnamed2613(core.List<core.List<core.Object>> o) { +checkUnnamed2650(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2612(o[0]); - checkUnnamed2612(o[1]); + checkUnnamed2649(o[0]); + checkUnnamed2649(o[1]); } core.int buildCounterSqlresponse = 0; @@ -493,9 +493,9 @@ var o = new api.Sqlresponse(); buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - o.columns = buildUnnamed2611(); + o.columns = buildUnnamed2648(); o.kind = "foo"; - o.rows = buildUnnamed2613(); + o.rows = buildUnnamed2650(); } buildCounterSqlresponse--; return o; @@ -504,21 +504,21 @@ checkSqlresponse(api.Sqlresponse o) { buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - checkUnnamed2611(o.columns); + checkUnnamed2648(o.columns); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2613(o.rows); + checkUnnamed2650(o.rows); } buildCounterSqlresponse--; } -buildUnnamed2614() { +buildUnnamed2651() { var o = new core.List<api.Bucket>(); o.add(buildBucket()); o.add(buildBucket()); return o; } -checkUnnamed2614(core.List<api.Bucket> o) { +checkUnnamed2651(core.List<api.Bucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBucket(o[0]); checkBucket(o[1]); @@ -545,14 +545,14 @@ buildCounterStyleFunctionGradientColors--; } -buildUnnamed2615() { +buildUnnamed2652() { var o = new core.List<api.StyleFunctionGradientColors>(); o.add(buildStyleFunctionGradientColors()); o.add(buildStyleFunctionGradientColors()); return o; } -checkUnnamed2615(core.List<api.StyleFunctionGradientColors> o) { +checkUnnamed2652(core.List<api.StyleFunctionGradientColors> o) { unittest.expect(o, unittest.hasLength(2)); checkStyleFunctionGradientColors(o[0]); checkStyleFunctionGradientColors(o[1]); @@ -563,7 +563,7 @@ var o = new api.StyleFunctionGradient(); buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - o.colors = buildUnnamed2615(); + o.colors = buildUnnamed2652(); o.max = 42.0; o.min = 42.0; } @@ -574,7 +574,7 @@ checkStyleFunctionGradient(api.StyleFunctionGradient o) { buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - checkUnnamed2615(o.colors); + checkUnnamed2652(o.colors); unittest.expect(o.max, unittest.equals(42.0)); unittest.expect(o.min, unittest.equals(42.0)); } @@ -586,7 +586,7 @@ var o = new api.StyleFunction(); buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - o.buckets = buildUnnamed2614(); + o.buckets = buildUnnamed2651(); o.columnName = "foo"; o.gradient = buildStyleFunctionGradient(); o.kind = "foo"; @@ -598,7 +598,7 @@ checkStyleFunction(api.StyleFunction o) { buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - checkUnnamed2614(o.buckets); + checkUnnamed2651(o.buckets); unittest.expect(o.columnName, unittest.equals('foo')); checkStyleFunctionGradient(o.gradient); unittest.expect(o.kind, unittest.equals('foo')); @@ -637,14 +637,14 @@ buildCounterStyleSetting--; } -buildUnnamed2616() { +buildUnnamed2653() { var o = new core.List<api.StyleSetting>(); o.add(buildStyleSetting()); o.add(buildStyleSetting()); return o; } -checkUnnamed2616(core.List<api.StyleSetting> o) { +checkUnnamed2653(core.List<api.StyleSetting> o) { unittest.expect(o, unittest.hasLength(2)); checkStyleSetting(o[0]); checkStyleSetting(o[1]); @@ -655,7 +655,7 @@ var o = new api.StyleSettingList(); buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - o.items = buildUnnamed2616(); + o.items = buildUnnamed2653(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -667,7 +667,7 @@ checkStyleSettingList(api.StyleSettingList o) { buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - checkUnnamed2616(o.items); + checkUnnamed2653(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -675,27 +675,27 @@ buildCounterStyleSettingList--; } -buildUnnamed2617() { +buildUnnamed2654() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2617(core.List<core.String> o) { +checkUnnamed2654(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2618() { +buildUnnamed2655() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed2618(core.List<api.Column> o) { +checkUnnamed2655(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -708,8 +708,8 @@ if (buildCounterTable < 3) { o.attribution = "foo"; o.attributionLink = "foo"; - o.baseTableIds = buildUnnamed2617(); - o.columns = buildUnnamed2618(); + o.baseTableIds = buildUnnamed2654(); + o.columns = buildUnnamed2655(); o.description = "foo"; o.isExportable = true; o.kind = "foo"; @@ -726,8 +726,8 @@ if (buildCounterTable < 3) { unittest.expect(o.attribution, unittest.equals('foo')); unittest.expect(o.attributionLink, unittest.equals('foo')); - checkUnnamed2617(o.baseTableIds); - checkUnnamed2618(o.columns); + checkUnnamed2654(o.baseTableIds); + checkUnnamed2655(o.columns); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.isExportable, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -738,14 +738,14 @@ buildCounterTable--; } -buildUnnamed2619() { +buildUnnamed2656() { var o = new core.List<api.Table>(); o.add(buildTable()); o.add(buildTable()); return o; } -checkUnnamed2619(core.List<api.Table> o) { +checkUnnamed2656(core.List<api.Table> o) { unittest.expect(o, unittest.hasLength(2)); checkTable(o[0]); checkTable(o[1]); @@ -756,7 +756,7 @@ var o = new api.TableList(); buildCounterTableList++; if (buildCounterTableList < 3) { - o.items = buildUnnamed2619(); + o.items = buildUnnamed2656(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -767,7 +767,7 @@ checkTableList(api.TableList o) { buildCounterTableList++; if (buildCounterTableList < 3) { - checkUnnamed2619(o.items); + checkUnnamed2656(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -801,14 +801,14 @@ buildCounterTask--; } -buildUnnamed2620() { +buildUnnamed2657() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed2620(core.List<api.Task> o) { +checkUnnamed2657(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -819,7 +819,7 @@ var o = new api.TaskList(); buildCounterTaskList++; if (buildCounterTaskList < 3) { - o.items = buildUnnamed2620(); + o.items = buildUnnamed2657(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -831,7 +831,7 @@ checkTaskList(api.TaskList o) { buildCounterTaskList++; if (buildCounterTaskList < 3) { - checkUnnamed2620(o.items); + checkUnnamed2657(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -839,14 +839,14 @@ buildCounterTaskList--; } -buildUnnamed2621() { +buildUnnamed2658() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2621(core.List<core.String> o) { +checkUnnamed2658(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -857,7 +857,7 @@ var o = new api.Template(); buildCounterTemplate++; if (buildCounterTemplate < 3) { - o.automaticColumnNames = buildUnnamed2621(); + o.automaticColumnNames = buildUnnamed2658(); o.body = "foo"; o.kind = "foo"; o.name = "foo"; @@ -871,7 +871,7 @@ checkTemplate(api.Template o) { buildCounterTemplate++; if (buildCounterTemplate < 3) { - checkUnnamed2621(o.automaticColumnNames); + checkUnnamed2658(o.automaticColumnNames); unittest.expect(o.body, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -881,14 +881,14 @@ buildCounterTemplate--; } -buildUnnamed2622() { +buildUnnamed2659() { var o = new core.List<api.Template>(); o.add(buildTemplate()); o.add(buildTemplate()); return o; } -checkUnnamed2622(core.List<api.Template> o) { +checkUnnamed2659(core.List<api.Template> o) { unittest.expect(o, unittest.hasLength(2)); checkTemplate(o[0]); checkTemplate(o[1]); @@ -899,7 +899,7 @@ var o = new api.TemplateList(); buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - o.items = buildUnnamed2622(); + o.items = buildUnnamed2659(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -911,7 +911,7 @@ checkTemplateList(api.TemplateList o) { buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - checkUnnamed2622(o.items); + checkUnnamed2659(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 80bf995..7c1c59d 100644 --- a/generated/googleapis/test/fusiontables/v2_test.dart +++ b/generated/googleapis/test/fusiontables/v2_test.dart
@@ -101,14 +101,14 @@ buildCounterColumnBaseColumn--; } -buildUnnamed494() { +buildUnnamed469() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed494(core.List<core.String> o) { +checkUnnamed469(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -129,7 +129,7 @@ o.kind = "foo"; o.name = "foo"; o.type = "foo"; - o.validValues = buildUnnamed494(); + o.validValues = buildUnnamed469(); o.validateData = true; } buildCounterColumn--; @@ -149,20 +149,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); - checkUnnamed494(o.validValues); + checkUnnamed469(o.validValues); unittest.expect(o.validateData, unittest.isTrue); } buildCounterColumn--; } -buildUnnamed495() { +buildUnnamed470() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed495(core.List<api.Column> o) { +checkUnnamed470(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -173,7 +173,7 @@ var o = new api.ColumnList(); buildCounterColumnList++; if (buildCounterColumnList < 3) { - o.items = buildUnnamed495(); + o.items = buildUnnamed470(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -185,7 +185,7 @@ checkColumnList(api.ColumnList o) { buildCounterColumnList++; if (buildCounterColumnList < 3) { - checkUnnamed495(o.items); + checkUnnamed470(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -193,14 +193,14 @@ buildCounterColumnList--; } -buildUnnamed496() { +buildUnnamed471() { 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; } -checkUnnamed496(core.List<core.Object> o) { +checkUnnamed471(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -211,7 +211,7 @@ var o = new api.Geometry(); buildCounterGeometry++; if (buildCounterGeometry < 3) { - o.geometries = buildUnnamed496(); + o.geometries = buildUnnamed471(); o.geometry = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.type = "foo"; } @@ -222,7 +222,7 @@ checkGeometry(api.Geometry o) { buildCounterGeometry++; if (buildCounterGeometry < 3) { - checkUnnamed496(o.geometries); + checkUnnamed471(o.geometries); var casted3 = (o.geometry) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } @@ -250,30 +250,30 @@ buildCounterImport--; } -buildUnnamed497() { +buildUnnamed472() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed497(core.List<core.double> o) { +checkUnnamed472(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)); } -buildUnnamed498() { +buildUnnamed473() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed497()); - o.add(buildUnnamed497()); + o.add(buildUnnamed472()); + o.add(buildUnnamed472()); return o; } -checkUnnamed498(core.List<core.List<core.double>> o) { +checkUnnamed473(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed497(o[0]); - checkUnnamed497(o[1]); + checkUnnamed472(o[0]); + checkUnnamed472(o[1]); } core.int buildCounterLine = 0; @@ -281,7 +281,7 @@ var o = new api.Line(); buildCounterLine++; if (buildCounterLine < 3) { - o.coordinates = buildUnnamed498(); + o.coordinates = buildUnnamed473(); o.type = "foo"; } buildCounterLine--; @@ -291,7 +291,7 @@ checkLine(api.Line o) { buildCounterLine++; if (buildCounterLine < 3) { - checkUnnamed498(o.coordinates); + checkUnnamed473(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterLine--; @@ -324,14 +324,14 @@ buildCounterLineStyle--; } -buildUnnamed499() { +buildUnnamed474() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed499(core.List<core.double> o) { +checkUnnamed474(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 = buildUnnamed499(); + o.coordinates = buildUnnamed474(); o.type = "foo"; } buildCounterPoint--; @@ -352,7 +352,7 @@ checkPoint(api.Point o) { buildCounterPoint++; if (buildCounterPoint < 3) { - checkUnnamed499(o.coordinates); + checkUnnamed474(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPoint--; @@ -379,43 +379,43 @@ buildCounterPointStyle--; } -buildUnnamed500() { +buildUnnamed475() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed500(core.List<core.double> o) { +checkUnnamed475(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)); } -buildUnnamed501() { +buildUnnamed476() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed500()); - o.add(buildUnnamed500()); + o.add(buildUnnamed475()); + o.add(buildUnnamed475()); return o; } -checkUnnamed501(core.List<core.List<core.double>> o) { +checkUnnamed476(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed500(o[0]); - checkUnnamed500(o[1]); + checkUnnamed475(o[0]); + checkUnnamed475(o[1]); } -buildUnnamed502() { +buildUnnamed477() { var o = new core.List<core.List<core.List<core.double>>>(); - o.add(buildUnnamed501()); - o.add(buildUnnamed501()); + o.add(buildUnnamed476()); + o.add(buildUnnamed476()); return o; } -checkUnnamed502(core.List<core.List<core.List<core.double>>> o) { +checkUnnamed477(core.List<core.List<core.List<core.double>>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed501(o[0]); - checkUnnamed501(o[1]); + checkUnnamed476(o[0]); + checkUnnamed476(o[1]); } core.int buildCounterPolygon = 0; @@ -423,7 +423,7 @@ var o = new api.Polygon(); buildCounterPolygon++; if (buildCounterPolygon < 3) { - o.coordinates = buildUnnamed502(); + o.coordinates = buildUnnamed477(); o.type = "foo"; } buildCounterPolygon--; @@ -433,7 +433,7 @@ checkPolygon(api.Polygon o) { buildCounterPolygon++; if (buildCounterPolygon < 3) { - checkUnnamed502(o.coordinates); + checkUnnamed477(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPolygon--; @@ -472,43 +472,43 @@ buildCounterPolygonStyle--; } -buildUnnamed503() { +buildUnnamed478() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed503(core.List<core.String> o) { +checkUnnamed478(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed504() { +buildUnnamed479() { 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; } -checkUnnamed504(core.List<core.Object> o) { +checkUnnamed479(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted4 = (o[0]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); var casted5 = (o[1]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); } -buildUnnamed505() { +buildUnnamed480() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed504()); - o.add(buildUnnamed504()); + o.add(buildUnnamed479()); + o.add(buildUnnamed479()); return o; } -checkUnnamed505(core.List<core.List<core.Object>> o) { +checkUnnamed480(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed504(o[0]); - checkUnnamed504(o[1]); + checkUnnamed479(o[0]); + checkUnnamed479(o[1]); } core.int buildCounterSqlresponse = 0; @@ -516,9 +516,9 @@ var o = new api.Sqlresponse(); buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - o.columns = buildUnnamed503(); + o.columns = buildUnnamed478(); o.kind = "foo"; - o.rows = buildUnnamed505(); + o.rows = buildUnnamed480(); } buildCounterSqlresponse--; return o; @@ -527,21 +527,21 @@ checkSqlresponse(api.Sqlresponse o) { buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - checkUnnamed503(o.columns); + checkUnnamed478(o.columns); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed505(o.rows); + checkUnnamed480(o.rows); } buildCounterSqlresponse--; } -buildUnnamed506() { +buildUnnamed481() { var o = new core.List<api.Bucket>(); o.add(buildBucket()); o.add(buildBucket()); return o; } -checkUnnamed506(core.List<api.Bucket> o) { +checkUnnamed481(core.List<api.Bucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBucket(o[0]); checkBucket(o[1]); @@ -568,14 +568,14 @@ buildCounterStyleFunctionGradientColors--; } -buildUnnamed507() { +buildUnnamed482() { var o = new core.List<api.StyleFunctionGradientColors>(); o.add(buildStyleFunctionGradientColors()); o.add(buildStyleFunctionGradientColors()); return o; } -checkUnnamed507(core.List<api.StyleFunctionGradientColors> o) { +checkUnnamed482(core.List<api.StyleFunctionGradientColors> o) { unittest.expect(o, unittest.hasLength(2)); checkStyleFunctionGradientColors(o[0]); checkStyleFunctionGradientColors(o[1]); @@ -586,7 +586,7 @@ var o = new api.StyleFunctionGradient(); buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - o.colors = buildUnnamed507(); + o.colors = buildUnnamed482(); o.max = 42.0; o.min = 42.0; } @@ -597,7 +597,7 @@ checkStyleFunctionGradient(api.StyleFunctionGradient o) { buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - checkUnnamed507(o.colors); + checkUnnamed482(o.colors); unittest.expect(o.max, unittest.equals(42.0)); unittest.expect(o.min, unittest.equals(42.0)); } @@ -609,7 +609,7 @@ var o = new api.StyleFunction(); buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - o.buckets = buildUnnamed506(); + o.buckets = buildUnnamed481(); o.columnName = "foo"; o.gradient = buildStyleFunctionGradient(); o.kind = "foo"; @@ -621,7 +621,7 @@ checkStyleFunction(api.StyleFunction o) { buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - checkUnnamed506(o.buckets); + checkUnnamed481(o.buckets); unittest.expect(o.columnName, unittest.equals('foo')); checkStyleFunctionGradient(o.gradient); unittest.expect(o.kind, unittest.equals('foo')); @@ -660,14 +660,14 @@ buildCounterStyleSetting--; } -buildUnnamed508() { +buildUnnamed483() { var o = new core.List<api.StyleSetting>(); o.add(buildStyleSetting()); o.add(buildStyleSetting()); return o; } -checkUnnamed508(core.List<api.StyleSetting> o) { +checkUnnamed483(core.List<api.StyleSetting> o) { unittest.expect(o, unittest.hasLength(2)); checkStyleSetting(o[0]); checkStyleSetting(o[1]); @@ -678,7 +678,7 @@ var o = new api.StyleSettingList(); buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - o.items = buildUnnamed508(); + o.items = buildUnnamed483(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -690,7 +690,7 @@ checkStyleSettingList(api.StyleSettingList o) { buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - checkUnnamed508(o.items); + checkUnnamed483(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -698,27 +698,27 @@ buildCounterStyleSettingList--; } -buildUnnamed509() { +buildUnnamed484() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed509(core.List<core.String> o) { +checkUnnamed484(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed510() { +buildUnnamed485() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed510(core.List<api.Column> o) { +checkUnnamed485(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -731,9 +731,9 @@ if (buildCounterTable < 3) { o.attribution = "foo"; o.attributionLink = "foo"; - o.baseTableIds = buildUnnamed509(); + o.baseTableIds = buildUnnamed484(); o.columnPropertiesJsonSchema = "foo"; - o.columns = buildUnnamed510(); + o.columns = buildUnnamed485(); o.description = "foo"; o.isExportable = true; o.kind = "foo"; @@ -752,9 +752,9 @@ if (buildCounterTable < 3) { unittest.expect(o.attribution, unittest.equals('foo')); unittest.expect(o.attributionLink, unittest.equals('foo')); - checkUnnamed509(o.baseTableIds); + checkUnnamed484(o.baseTableIds); unittest.expect(o.columnPropertiesJsonSchema, unittest.equals('foo')); - checkUnnamed510(o.columns); + checkUnnamed485(o.columns); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.isExportable, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -767,14 +767,14 @@ buildCounterTable--; } -buildUnnamed511() { +buildUnnamed486() { var o = new core.List<api.Table>(); o.add(buildTable()); o.add(buildTable()); return o; } -checkUnnamed511(core.List<api.Table> o) { +checkUnnamed486(core.List<api.Table> o) { unittest.expect(o, unittest.hasLength(2)); checkTable(o[0]); checkTable(o[1]); @@ -785,7 +785,7 @@ var o = new api.TableList(); buildCounterTableList++; if (buildCounterTableList < 3) { - o.items = buildUnnamed511(); + o.items = buildUnnamed486(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -796,7 +796,7 @@ checkTableList(api.TableList o) { buildCounterTableList++; if (buildCounterTableList < 3) { - checkUnnamed511(o.items); + checkUnnamed486(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -830,14 +830,14 @@ buildCounterTask--; } -buildUnnamed512() { +buildUnnamed487() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed512(core.List<api.Task> o) { +checkUnnamed487(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -848,7 +848,7 @@ var o = new api.TaskList(); buildCounterTaskList++; if (buildCounterTaskList < 3) { - o.items = buildUnnamed512(); + o.items = buildUnnamed487(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -860,7 +860,7 @@ checkTaskList(api.TaskList o) { buildCounterTaskList++; if (buildCounterTaskList < 3) { - checkUnnamed512(o.items); + checkUnnamed487(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -868,14 +868,14 @@ buildCounterTaskList--; } -buildUnnamed513() { +buildUnnamed488() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed513(core.List<core.String> o) { +checkUnnamed488(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -886,7 +886,7 @@ var o = new api.Template(); buildCounterTemplate++; if (buildCounterTemplate < 3) { - o.automaticColumnNames = buildUnnamed513(); + o.automaticColumnNames = buildUnnamed488(); o.body = "foo"; o.kind = "foo"; o.name = "foo"; @@ -900,7 +900,7 @@ checkTemplate(api.Template o) { buildCounterTemplate++; if (buildCounterTemplate < 3) { - checkUnnamed513(o.automaticColumnNames); + checkUnnamed488(o.automaticColumnNames); unittest.expect(o.body, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -910,14 +910,14 @@ buildCounterTemplate--; } -buildUnnamed514() { +buildUnnamed489() { var o = new core.List<api.Template>(); o.add(buildTemplate()); o.add(buildTemplate()); return o; } -checkUnnamed514(core.List<api.Template> o) { +checkUnnamed489(core.List<api.Template> o) { unittest.expect(o, unittest.hasLength(2)); checkTemplate(o[0]); checkTemplate(o[1]); @@ -928,7 +928,7 @@ var o = new api.TemplateList(); buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - o.items = buildUnnamed514(); + o.items = buildUnnamed489(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -940,7 +940,7 @@ checkTemplateList(api.TemplateList o) { buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - checkUnnamed514(o.items); + checkUnnamed489(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 01777d8..ee17ced 100644 --- a/generated/googleapis/test/games/v1_test.dart +++ b/generated/googleapis/test/games/v1_test.dart
@@ -94,14 +94,14 @@ buildCounterAchievementDefinition--; } -buildUnnamed133() { +buildUnnamed96() { var o = new core.List<api.AchievementDefinition>(); o.add(buildAchievementDefinition()); o.add(buildAchievementDefinition()); return o; } -checkUnnamed133(core.List<api.AchievementDefinition> o) { +checkUnnamed96(core.List<api.AchievementDefinition> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementDefinition(o[0]); checkAchievementDefinition(o[1]); @@ -112,7 +112,7 @@ var o = new api.AchievementDefinitionsListResponse(); buildCounterAchievementDefinitionsListResponse++; if (buildCounterAchievementDefinitionsListResponse < 3) { - o.items = buildUnnamed133(); + o.items = buildUnnamed96(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -123,7 +123,7 @@ checkAchievementDefinitionsListResponse(api.AchievementDefinitionsListResponse o) { buildCounterAchievementDefinitionsListResponse++; if (buildCounterAchievementDefinitionsListResponse < 3) { - checkUnnamed133(o.items); + checkUnnamed96(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -218,14 +218,14 @@ buildCounterAchievementUnlockResponse--; } -buildUnnamed134() { +buildUnnamed97() { var o = new core.List<api.AchievementUpdateRequest>(); o.add(buildAchievementUpdateRequest()); o.add(buildAchievementUpdateRequest()); return o; } -checkUnnamed134(core.List<api.AchievementUpdateRequest> o) { +checkUnnamed97(core.List<api.AchievementUpdateRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementUpdateRequest(o[0]); checkAchievementUpdateRequest(o[1]); @@ -237,7 +237,7 @@ buildCounterAchievementUpdateMultipleRequest++; if (buildCounterAchievementUpdateMultipleRequest < 3) { o.kind = "foo"; - o.updates = buildUnnamed134(); + o.updates = buildUnnamed97(); } buildCounterAchievementUpdateMultipleRequest--; return o; @@ -247,19 +247,19 @@ buildCounterAchievementUpdateMultipleRequest++; if (buildCounterAchievementUpdateMultipleRequest < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed134(o.updates); + checkUnnamed97(o.updates); } buildCounterAchievementUpdateMultipleRequest--; } -buildUnnamed135() { +buildUnnamed98() { var o = new core.List<api.AchievementUpdateResponse>(); o.add(buildAchievementUpdateResponse()); o.add(buildAchievementUpdateResponse()); return o; } -checkUnnamed135(core.List<api.AchievementUpdateResponse> o) { +checkUnnamed98(core.List<api.AchievementUpdateResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementUpdateResponse(o[0]); checkAchievementUpdateResponse(o[1]); @@ -271,7 +271,7 @@ buildCounterAchievementUpdateMultipleResponse++; if (buildCounterAchievementUpdateMultipleResponse < 3) { o.kind = "foo"; - o.updatedAchievements = buildUnnamed135(); + o.updatedAchievements = buildUnnamed98(); } buildCounterAchievementUpdateMultipleResponse--; return o; @@ -281,7 +281,7 @@ buildCounterAchievementUpdateMultipleResponse++; if (buildCounterAchievementUpdateMultipleResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed135(o.updatedAchievements); + checkUnnamed98(o.updatedAchievements); } buildCounterAchievementUpdateMultipleResponse--; } @@ -392,40 +392,40 @@ buildCounterAnonymousPlayer--; } -buildUnnamed136() { +buildUnnamed99() { var o = new core.List<api.ImageAsset>(); o.add(buildImageAsset()); o.add(buildImageAsset()); return o; } -checkUnnamed136(core.List<api.ImageAsset> o) { +checkUnnamed99(core.List<api.ImageAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkImageAsset(o[0]); checkImageAsset(o[1]); } -buildUnnamed137() { +buildUnnamed100() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed137(core.List<core.String> o) { +checkUnnamed100(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed138() { +buildUnnamed101() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed138(core.List<api.Instance> o) { +checkUnnamed101(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -437,13 +437,13 @@ buildCounterApplication++; if (buildCounterApplication < 3) { o.achievementCount = 42; - o.assets = buildUnnamed136(); + o.assets = buildUnnamed99(); o.author = "foo"; o.category = buildApplicationCategory(); o.description = "foo"; - o.enabledFeatures = buildUnnamed137(); + o.enabledFeatures = buildUnnamed100(); o.id = "foo"; - o.instances = buildUnnamed138(); + o.instances = buildUnnamed101(); o.kind = "foo"; o.lastUpdatedTimestamp = "foo"; o.leaderboardCount = 42; @@ -458,13 +458,13 @@ buildCounterApplication++; if (buildCounterApplication < 3) { unittest.expect(o.achievementCount, unittest.equals(42)); - checkUnnamed136(o.assets); + checkUnnamed99(o.assets); unittest.expect(o.author, unittest.equals('foo')); checkApplicationCategory(o.category); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed137(o.enabledFeatures); + checkUnnamed100(o.enabledFeatures); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed138(o.instances); + checkUnnamed101(o.instances); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastUpdatedTimestamp, unittest.equals('foo')); unittest.expect(o.leaderboardCount, unittest.equals(42)); @@ -543,14 +543,14 @@ buildCounterCategory--; } -buildUnnamed139() { +buildUnnamed102() { var o = new core.List<api.Category>(); o.add(buildCategory()); o.add(buildCategory()); return o; } -checkUnnamed139(core.List<api.Category> o) { +checkUnnamed102(core.List<api.Category> o) { unittest.expect(o, unittest.hasLength(2)); checkCategory(o[0]); checkCategory(o[1]); @@ -561,7 +561,7 @@ var o = new api.CategoryListResponse(); buildCounterCategoryListResponse++; if (buildCounterCategoryListResponse < 3) { - o.items = buildUnnamed139(); + o.items = buildUnnamed102(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -572,7 +572,7 @@ checkCategoryListResponse(api.CategoryListResponse o) { buildCounterCategoryListResponse++; if (buildCounterCategoryListResponse < 3) { - checkUnnamed139(o.items); + checkUnnamed102(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -623,14 +623,14 @@ buildCounterEventChild--; } -buildUnnamed140() { +buildUnnamed103() { var o = new core.List<api.EventChild>(); o.add(buildEventChild()); o.add(buildEventChild()); return o; } -checkUnnamed140(core.List<api.EventChild> o) { +checkUnnamed103(core.List<api.EventChild> o) { unittest.expect(o, unittest.hasLength(2)); checkEventChild(o[0]); checkEventChild(o[1]); @@ -641,7 +641,7 @@ var o = new api.EventDefinition(); buildCounterEventDefinition++; if (buildCounterEventDefinition < 3) { - o.childEvents = buildUnnamed140(); + o.childEvents = buildUnnamed103(); o.description = "foo"; o.displayName = "foo"; o.id = "foo"; @@ -657,7 +657,7 @@ checkEventDefinition(api.EventDefinition o) { buildCounterEventDefinition++; if (buildCounterEventDefinition < 3) { - checkUnnamed140(o.childEvents); + checkUnnamed103(o.childEvents); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -669,14 +669,14 @@ buildCounterEventDefinition--; } -buildUnnamed141() { +buildUnnamed104() { var o = new core.List<api.EventDefinition>(); o.add(buildEventDefinition()); o.add(buildEventDefinition()); return o; } -checkUnnamed141(core.List<api.EventDefinition> o) { +checkUnnamed104(core.List<api.EventDefinition> o) { unittest.expect(o, unittest.hasLength(2)); checkEventDefinition(o[0]); checkEventDefinition(o[1]); @@ -687,7 +687,7 @@ var o = new api.EventDefinitionListResponse(); buildCounterEventDefinitionListResponse++; if (buildCounterEventDefinitionListResponse < 3) { - o.items = buildUnnamed141(); + o.items = buildUnnamed104(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -698,7 +698,7 @@ checkEventDefinitionListResponse(api.EventDefinitionListResponse o) { buildCounterEventDefinitionListResponse++; if (buildCounterEventDefinitionListResponse < 3) { - checkUnnamed141(o.items); + checkUnnamed104(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -728,14 +728,14 @@ buildCounterEventPeriodRange--; } -buildUnnamed142() { +buildUnnamed105() { var o = new core.List<api.EventUpdateRequest>(); o.add(buildEventUpdateRequest()); o.add(buildEventUpdateRequest()); return o; } -checkUnnamed142(core.List<api.EventUpdateRequest> o) { +checkUnnamed105(core.List<api.EventUpdateRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkEventUpdateRequest(o[0]); checkEventUpdateRequest(o[1]); @@ -748,7 +748,7 @@ if (buildCounterEventPeriodUpdate < 3) { o.kind = "foo"; o.timePeriod = buildEventPeriodRange(); - o.updates = buildUnnamed142(); + o.updates = buildUnnamed105(); } buildCounterEventPeriodUpdate--; return o; @@ -759,7 +759,7 @@ if (buildCounterEventPeriodUpdate < 3) { unittest.expect(o.kind, unittest.equals('foo')); checkEventPeriodRange(o.timePeriod); - checkUnnamed142(o.updates); + checkUnnamed105(o.updates); } buildCounterEventPeriodUpdate--; } @@ -787,14 +787,14 @@ buildCounterEventRecordFailure--; } -buildUnnamed143() { +buildUnnamed106() { var o = new core.List<api.EventPeriodUpdate>(); o.add(buildEventPeriodUpdate()); o.add(buildEventPeriodUpdate()); return o; } -checkUnnamed143(core.List<api.EventPeriodUpdate> o) { +checkUnnamed106(core.List<api.EventPeriodUpdate> o) { unittest.expect(o, unittest.hasLength(2)); checkEventPeriodUpdate(o[0]); checkEventPeriodUpdate(o[1]); @@ -808,7 +808,7 @@ o.currentTimeMillis = "foo"; o.kind = "foo"; o.requestId = "foo"; - o.timePeriods = buildUnnamed143(); + o.timePeriods = buildUnnamed106(); } buildCounterEventRecordRequest--; return o; @@ -820,7 +820,7 @@ unittest.expect(o.currentTimeMillis, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.requestId, unittest.equals('foo')); - checkUnnamed143(o.timePeriods); + checkUnnamed106(o.timePeriods); } buildCounterEventRecordRequest--; } @@ -848,40 +848,40 @@ buildCounterEventUpdateRequest--; } -buildUnnamed144() { +buildUnnamed107() { var o = new core.List<api.EventBatchRecordFailure>(); o.add(buildEventBatchRecordFailure()); o.add(buildEventBatchRecordFailure()); return o; } -checkUnnamed144(core.List<api.EventBatchRecordFailure> o) { +checkUnnamed107(core.List<api.EventBatchRecordFailure> o) { unittest.expect(o, unittest.hasLength(2)); checkEventBatchRecordFailure(o[0]); checkEventBatchRecordFailure(o[1]); } -buildUnnamed145() { +buildUnnamed108() { var o = new core.List<api.EventRecordFailure>(); o.add(buildEventRecordFailure()); o.add(buildEventRecordFailure()); return o; } -checkUnnamed145(core.List<api.EventRecordFailure> o) { +checkUnnamed108(core.List<api.EventRecordFailure> o) { unittest.expect(o, unittest.hasLength(2)); checkEventRecordFailure(o[0]); checkEventRecordFailure(o[1]); } -buildUnnamed146() { +buildUnnamed109() { var o = new core.List<api.PlayerEvent>(); o.add(buildPlayerEvent()); o.add(buildPlayerEvent()); return o; } -checkUnnamed146(core.List<api.PlayerEvent> o) { +checkUnnamed109(core.List<api.PlayerEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerEvent(o[0]); checkPlayerEvent(o[1]); @@ -892,10 +892,10 @@ var o = new api.EventUpdateResponse(); buildCounterEventUpdateResponse++; if (buildCounterEventUpdateResponse < 3) { - o.batchFailures = buildUnnamed144(); - o.eventFailures = buildUnnamed145(); + o.batchFailures = buildUnnamed107(); + o.eventFailures = buildUnnamed108(); o.kind = "foo"; - o.playerEvents = buildUnnamed146(); + o.playerEvents = buildUnnamed109(); } buildCounterEventUpdateResponse--; return o; @@ -904,10 +904,10 @@ checkEventUpdateResponse(api.EventUpdateResponse o) { buildCounterEventUpdateResponse++; if (buildCounterEventUpdateResponse < 3) { - checkUnnamed144(o.batchFailures); - checkUnnamed145(o.eventFailures); + checkUnnamed107(o.batchFailures); + checkUnnamed108(o.eventFailures); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed146(o.playerEvents); + checkUnnamed109(o.playerEvents); } buildCounterEventUpdateResponse--; } @@ -1161,14 +1161,14 @@ buildCounterLeaderboardEntry--; } -buildUnnamed147() { +buildUnnamed110() { var o = new core.List<api.Leaderboard>(); o.add(buildLeaderboard()); o.add(buildLeaderboard()); return o; } -checkUnnamed147(core.List<api.Leaderboard> o) { +checkUnnamed110(core.List<api.Leaderboard> o) { unittest.expect(o, unittest.hasLength(2)); checkLeaderboard(o[0]); checkLeaderboard(o[1]); @@ -1179,7 +1179,7 @@ var o = new api.LeaderboardListResponse(); buildCounterLeaderboardListResponse++; if (buildCounterLeaderboardListResponse < 3) { - o.items = buildUnnamed147(); + o.items = buildUnnamed110(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1190,7 +1190,7 @@ checkLeaderboardListResponse(api.LeaderboardListResponse o) { buildCounterLeaderboardListResponse++; if (buildCounterLeaderboardListResponse < 3) { - checkUnnamed147(o.items); + checkUnnamed110(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1224,14 +1224,14 @@ buildCounterLeaderboardScoreRank--; } -buildUnnamed148() { +buildUnnamed111() { var o = new core.List<api.LeaderboardEntry>(); o.add(buildLeaderboardEntry()); o.add(buildLeaderboardEntry()); return o; } -checkUnnamed148(core.List<api.LeaderboardEntry> o) { +checkUnnamed111(core.List<api.LeaderboardEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLeaderboardEntry(o[0]); checkLeaderboardEntry(o[1]); @@ -1242,7 +1242,7 @@ var o = new api.LeaderboardScores(); buildCounterLeaderboardScores++; if (buildCounterLeaderboardScores < 3) { - o.items = buildUnnamed148(); + o.items = buildUnnamed111(); o.kind = "foo"; o.nextPageToken = "foo"; o.numScores = "foo"; @@ -1256,7 +1256,7 @@ checkLeaderboardScores(api.LeaderboardScores o) { buildCounterLeaderboardScores++; if (buildCounterLeaderboardScores < 3) { - checkUnnamed148(o.items); + checkUnnamed111(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.numScores, unittest.equals('foo')); @@ -1266,14 +1266,14 @@ buildCounterLeaderboardScores--; } -buildUnnamed149() { +buildUnnamed112() { var o = new core.List<api.PlayerLevel>(); o.add(buildPlayerLevel()); o.add(buildPlayerLevel()); return o; } -checkUnnamed149(core.List<api.PlayerLevel> o) { +checkUnnamed112(core.List<api.PlayerLevel> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerLevel(o[0]); checkPlayerLevel(o[1]); @@ -1286,7 +1286,7 @@ if (buildCounterMetagameConfig < 3) { o.currentVersion = 42; o.kind = "foo"; - o.playerLevels = buildUnnamed149(); + o.playerLevels = buildUnnamed112(); } buildCounterMetagameConfig--; return o; @@ -1297,7 +1297,7 @@ if (buildCounterMetagameConfig < 3) { unittest.expect(o.currentVersion, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed149(o.playerLevels); + checkUnnamed112(o.playerLevels); } buildCounterMetagameConfig--; } @@ -1534,14 +1534,14 @@ buildCounterPlayerAchievement--; } -buildUnnamed150() { +buildUnnamed113() { var o = new core.List<api.PlayerAchievement>(); o.add(buildPlayerAchievement()); o.add(buildPlayerAchievement()); return o; } -checkUnnamed150(core.List<api.PlayerAchievement> o) { +checkUnnamed113(core.List<api.PlayerAchievement> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerAchievement(o[0]); checkPlayerAchievement(o[1]); @@ -1552,7 +1552,7 @@ var o = new api.PlayerAchievementListResponse(); buildCounterPlayerAchievementListResponse++; if (buildCounterPlayerAchievementListResponse < 3) { - o.items = buildUnnamed150(); + o.items = buildUnnamed113(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1563,7 +1563,7 @@ checkPlayerAchievementListResponse(api.PlayerAchievementListResponse o) { buildCounterPlayerAchievementListResponse++; if (buildCounterPlayerAchievementListResponse < 3) { - checkUnnamed150(o.items); + checkUnnamed113(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1597,14 +1597,14 @@ buildCounterPlayerEvent--; } -buildUnnamed151() { +buildUnnamed114() { var o = new core.List<api.PlayerEvent>(); o.add(buildPlayerEvent()); o.add(buildPlayerEvent()); return o; } -checkUnnamed151(core.List<api.PlayerEvent> o) { +checkUnnamed114(core.List<api.PlayerEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerEvent(o[0]); checkPlayerEvent(o[1]); @@ -1615,7 +1615,7 @@ var o = new api.PlayerEventListResponse(); buildCounterPlayerEventListResponse++; if (buildCounterPlayerEventListResponse < 3) { - o.items = buildUnnamed151(); + o.items = buildUnnamed114(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1626,7 +1626,7 @@ checkPlayerEventListResponse(api.PlayerEventListResponse o) { buildCounterPlayerEventListResponse++; if (buildCounterPlayerEventListResponse < 3) { - checkUnnamed151(o.items); + checkUnnamed114(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1695,14 +1695,14 @@ buildCounterPlayerLeaderboardScore--; } -buildUnnamed152() { +buildUnnamed115() { var o = new core.List<api.PlayerLeaderboardScore>(); o.add(buildPlayerLeaderboardScore()); o.add(buildPlayerLeaderboardScore()); return o; } -checkUnnamed152(core.List<api.PlayerLeaderboardScore> o) { +checkUnnamed115(core.List<api.PlayerLeaderboardScore> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerLeaderboardScore(o[0]); checkPlayerLeaderboardScore(o[1]); @@ -1713,7 +1713,7 @@ var o = new api.PlayerLeaderboardScoreListResponse(); buildCounterPlayerLeaderboardScoreListResponse++; if (buildCounterPlayerLeaderboardScoreListResponse < 3) { - o.items = buildUnnamed152(); + o.items = buildUnnamed115(); o.kind = "foo"; o.nextPageToken = "foo"; o.player = buildPlayer(); @@ -1725,7 +1725,7 @@ checkPlayerLeaderboardScoreListResponse(api.PlayerLeaderboardScoreListResponse o) { buildCounterPlayerLeaderboardScoreListResponse++; if (buildCounterPlayerLeaderboardScoreListResponse < 3) { - checkUnnamed152(o.items); + checkUnnamed115(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPlayer(o.player); @@ -1758,14 +1758,14 @@ buildCounterPlayerLevel--; } -buildUnnamed153() { +buildUnnamed116() { var o = new core.List<api.Player>(); o.add(buildPlayer()); o.add(buildPlayer()); return o; } -checkUnnamed153(core.List<api.Player> o) { +checkUnnamed116(core.List<api.Player> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayer(o[0]); checkPlayer(o[1]); @@ -1776,7 +1776,7 @@ var o = new api.PlayerListResponse(); buildCounterPlayerListResponse++; if (buildCounterPlayerListResponse < 3) { - o.items = buildUnnamed153(); + o.items = buildUnnamed116(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1787,7 +1787,7 @@ checkPlayerListResponse(api.PlayerListResponse o) { buildCounterPlayerListResponse++; if (buildCounterPlayerListResponse < 3) { - checkUnnamed153(o.items); + checkUnnamed116(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1821,14 +1821,14 @@ buildCounterPlayerScore--; } -buildUnnamed154() { +buildUnnamed117() { var o = new core.List<api.PlayerScoreResponse>(); o.add(buildPlayerScoreResponse()); o.add(buildPlayerScoreResponse()); return o; } -checkUnnamed154(core.List<api.PlayerScoreResponse> o) { +checkUnnamed117(core.List<api.PlayerScoreResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerScoreResponse(o[0]); checkPlayerScoreResponse(o[1]); @@ -1840,7 +1840,7 @@ buildCounterPlayerScoreListResponse++; if (buildCounterPlayerScoreListResponse < 3) { o.kind = "foo"; - o.submittedScores = buildUnnamed154(); + o.submittedScores = buildUnnamed117(); } buildCounterPlayerScoreListResponse--; return o; @@ -1850,32 +1850,32 @@ buildCounterPlayerScoreListResponse++; if (buildCounterPlayerScoreListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed154(o.submittedScores); + checkUnnamed117(o.submittedScores); } buildCounterPlayerScoreListResponse--; } -buildUnnamed155() { +buildUnnamed118() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed155(core.List<core.String> o) { +checkUnnamed118(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed156() { +buildUnnamed119() { var o = new core.List<api.PlayerScore>(); o.add(buildPlayerScore()); o.add(buildPlayerScore()); return o; } -checkUnnamed156(core.List<api.PlayerScore> o) { +checkUnnamed119(core.List<api.PlayerScore> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerScore(o[0]); checkPlayerScore(o[1]); @@ -1886,12 +1886,12 @@ var o = new api.PlayerScoreResponse(); buildCounterPlayerScoreResponse++; if (buildCounterPlayerScoreResponse < 3) { - o.beatenScoreTimeSpans = buildUnnamed155(); + o.beatenScoreTimeSpans = buildUnnamed118(); o.formattedScore = "foo"; o.kind = "foo"; o.leaderboardId = "foo"; o.scoreTag = "foo"; - o.unbeatenScores = buildUnnamed156(); + o.unbeatenScores = buildUnnamed119(); } buildCounterPlayerScoreResponse--; return o; @@ -1900,24 +1900,24 @@ checkPlayerScoreResponse(api.PlayerScoreResponse o) { buildCounterPlayerScoreResponse++; if (buildCounterPlayerScoreResponse < 3) { - checkUnnamed155(o.beatenScoreTimeSpans); + checkUnnamed118(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')); - checkUnnamed156(o.unbeatenScores); + checkUnnamed119(o.unbeatenScores); } buildCounterPlayerScoreResponse--; } -buildUnnamed157() { +buildUnnamed120() { var o = new core.List<api.ScoreSubmission>(); o.add(buildScoreSubmission()); o.add(buildScoreSubmission()); return o; } -checkUnnamed157(core.List<api.ScoreSubmission> o) { +checkUnnamed120(core.List<api.ScoreSubmission> o) { unittest.expect(o, unittest.hasLength(2)); checkScoreSubmission(o[0]); checkScoreSubmission(o[1]); @@ -1929,7 +1929,7 @@ buildCounterPlayerScoreSubmissionList++; if (buildCounterPlayerScoreSubmissionList < 3) { o.kind = "foo"; - o.scores = buildUnnamed157(); + o.scores = buildUnnamed120(); } buildCounterPlayerScoreSubmissionList--; return o; @@ -1939,7 +1939,7 @@ buildCounterPlayerScoreSubmissionList++; if (buildCounterPlayerScoreSubmissionList < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed157(o.scores); + checkUnnamed120(o.scores); } buildCounterPlayerScoreSubmissionList--; } @@ -2032,14 +2032,14 @@ buildCounterPushTokenId--; } -buildUnnamed158() { +buildUnnamed121() { var o = new core.List<api.QuestMilestone>(); o.add(buildQuestMilestone()); o.add(buildQuestMilestone()); return o; } -checkUnnamed158(core.List<api.QuestMilestone> o) { +checkUnnamed121(core.List<api.QuestMilestone> o) { unittest.expect(o, unittest.hasLength(2)); checkQuestMilestone(o[0]); checkQuestMilestone(o[1]); @@ -2061,7 +2061,7 @@ o.isDefaultIconUrl = true; o.kind = "foo"; o.lastUpdatedTimestampMillis = "foo"; - o.milestones = buildUnnamed158(); + o.milestones = buildUnnamed121(); o.name = "foo"; o.notifyTimestampMillis = "foo"; o.startTimestampMillis = "foo"; @@ -2085,7 +2085,7 @@ unittest.expect(o.isDefaultIconUrl, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastUpdatedTimestampMillis, unittest.equals('foo')); - checkUnnamed158(o.milestones); + checkUnnamed121(o.milestones); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notifyTimestampMillis, unittest.equals('foo')); unittest.expect(o.startTimestampMillis, unittest.equals('foo')); @@ -2144,14 +2144,14 @@ buildCounterQuestCriterion--; } -buildUnnamed159() { +buildUnnamed122() { var o = new core.List<api.Quest>(); o.add(buildQuest()); o.add(buildQuest()); return o; } -checkUnnamed159(core.List<api.Quest> o) { +checkUnnamed122(core.List<api.Quest> o) { unittest.expect(o, unittest.hasLength(2)); checkQuest(o[0]); checkQuest(o[1]); @@ -2162,7 +2162,7 @@ var o = new api.QuestListResponse(); buildCounterQuestListResponse++; if (buildCounterQuestListResponse < 3) { - o.items = buildUnnamed159(); + o.items = buildUnnamed122(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2173,21 +2173,21 @@ checkQuestListResponse(api.QuestListResponse o) { buildCounterQuestListResponse++; if (buildCounterQuestListResponse < 3) { - checkUnnamed159(o.items); + checkUnnamed122(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterQuestListResponse--; } -buildUnnamed160() { +buildUnnamed123() { var o = new core.List<api.QuestCriterion>(); o.add(buildQuestCriterion()); o.add(buildQuestCriterion()); return o; } -checkUnnamed160(core.List<api.QuestCriterion> o) { +checkUnnamed123(core.List<api.QuestCriterion> o) { unittest.expect(o, unittest.hasLength(2)); checkQuestCriterion(o[0]); checkQuestCriterion(o[1]); @@ -2199,7 +2199,7 @@ buildCounterQuestMilestone++; if (buildCounterQuestMilestone < 3) { o.completionRewardData = "foo"; - o.criteria = buildUnnamed160(); + o.criteria = buildUnnamed123(); o.id = "foo"; o.kind = "foo"; o.state = "foo"; @@ -2212,7 +2212,7 @@ buildCounterQuestMilestone++; if (buildCounterQuestMilestone < 3) { unittest.expect(o.completionRewardData, unittest.equals('foo')); - checkUnnamed160(o.criteria); + checkUnnamed123(o.criteria); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); @@ -2243,14 +2243,14 @@ buildCounterRevisionCheckResponse--; } -buildUnnamed161() { +buildUnnamed124() { var o = new core.List<api.RoomParticipant>(); o.add(buildRoomParticipant()); o.add(buildRoomParticipant()); return o; } -checkUnnamed161(core.List<api.RoomParticipant> o) { +checkUnnamed124(core.List<api.RoomParticipant> o) { unittest.expect(o, unittest.hasLength(2)); checkRoomParticipant(o[0]); checkRoomParticipant(o[1]); @@ -2269,7 +2269,7 @@ o.inviterId = "foo"; o.kind = "foo"; o.lastUpdateDetails = buildRoomModification(); - o.participants = buildUnnamed161(); + o.participants = buildUnnamed124(); o.roomId = "foo"; o.roomStatusVersion = 42; o.status = "foo"; @@ -2290,7 +2290,7 @@ unittest.expect(o.inviterId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkRoomModification(o.lastUpdateDetails); - checkUnnamed161(o.participants); + checkUnnamed124(o.participants); unittest.expect(o.roomId, unittest.equals('foo')); unittest.expect(o.roomStatusVersion, unittest.equals(42)); unittest.expect(o.status, unittest.equals('foo')); @@ -2366,27 +2366,27 @@ buildCounterRoomClientAddress--; } -buildUnnamed162() { +buildUnnamed125() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed162(core.List<core.String> o) { +checkUnnamed125(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed163() { +buildUnnamed126() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed163(core.List<core.String> o) { +checkUnnamed126(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2398,9 +2398,9 @@ buildCounterRoomCreateRequest++; if (buildCounterRoomCreateRequest < 3) { o.autoMatchingCriteria = buildRoomAutoMatchingCriteria(); - o.capabilities = buildUnnamed162(); + o.capabilities = buildUnnamed125(); o.clientAddress = buildRoomClientAddress(); - o.invitedPlayerIds = buildUnnamed163(); + o.invitedPlayerIds = buildUnnamed126(); o.kind = "foo"; o.networkDiagnostics = buildNetworkDiagnostics(); o.requestId = "foo"; @@ -2414,9 +2414,9 @@ buildCounterRoomCreateRequest++; if (buildCounterRoomCreateRequest < 3) { checkRoomAutoMatchingCriteria(o.autoMatchingCriteria); - checkUnnamed162(o.capabilities); + checkUnnamed125(o.capabilities); checkRoomClientAddress(o.clientAddress); - checkUnnamed163(o.invitedPlayerIds); + checkUnnamed126(o.invitedPlayerIds); unittest.expect(o.kind, unittest.equals('foo')); checkNetworkDiagnostics(o.networkDiagnostics); unittest.expect(o.requestId, unittest.equals('foo')); @@ -2425,14 +2425,14 @@ buildCounterRoomCreateRequest--; } -buildUnnamed164() { +buildUnnamed127() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed164(core.List<core.String> o) { +checkUnnamed127(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2443,7 +2443,7 @@ var o = new api.RoomJoinRequest(); buildCounterRoomJoinRequest++; if (buildCounterRoomJoinRequest < 3) { - o.capabilities = buildUnnamed164(); + o.capabilities = buildUnnamed127(); o.clientAddress = buildRoomClientAddress(); o.kind = "foo"; o.networkDiagnostics = buildNetworkDiagnostics(); @@ -2455,7 +2455,7 @@ checkRoomJoinRequest(api.RoomJoinRequest o) { buildCounterRoomJoinRequest++; if (buildCounterRoomJoinRequest < 3) { - checkUnnamed164(o.capabilities); + checkUnnamed127(o.capabilities); checkRoomClientAddress(o.clientAddress); unittest.expect(o.kind, unittest.equals('foo')); checkNetworkDiagnostics(o.networkDiagnostics); @@ -2463,14 +2463,14 @@ buildCounterRoomJoinRequest--; } -buildUnnamed165() { +buildUnnamed128() { var o = new core.List<api.PeerSessionDiagnostics>(); o.add(buildPeerSessionDiagnostics()); o.add(buildPeerSessionDiagnostics()); return o; } -checkUnnamed165(core.List<api.PeerSessionDiagnostics> o) { +checkUnnamed128(core.List<api.PeerSessionDiagnostics> o) { unittest.expect(o, unittest.hasLength(2)); checkPeerSessionDiagnostics(o[0]); checkPeerSessionDiagnostics(o[1]); @@ -2487,7 +2487,7 @@ o.kind = "foo"; o.networkOperatorCode = "foo"; o.networkOperatorName = "foo"; - o.peerSession = buildUnnamed165(); + o.peerSession = buildUnnamed128(); o.socketsUsed = true; } buildCounterRoomLeaveDiagnostics--; @@ -2503,7 +2503,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.networkOperatorCode, unittest.equals('foo')); unittest.expect(o.networkOperatorName, unittest.equals('foo')); - checkUnnamed165(o.peerSession); + checkUnnamed128(o.peerSession); unittest.expect(o.socketsUsed, unittest.isTrue); } buildCounterRoomLeaveDiagnostics--; @@ -2532,14 +2532,14 @@ buildCounterRoomLeaveRequest--; } -buildUnnamed166() { +buildUnnamed129() { var o = new core.List<api.Room>(); o.add(buildRoom()); o.add(buildRoom()); return o; } -checkUnnamed166(core.List<api.Room> o) { +checkUnnamed129(core.List<api.Room> o) { unittest.expect(o, unittest.hasLength(2)); checkRoom(o[0]); checkRoom(o[1]); @@ -2550,7 +2550,7 @@ var o = new api.RoomList(); buildCounterRoomList++; if (buildCounterRoomList < 3) { - o.items = buildUnnamed166(); + o.items = buildUnnamed129(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2561,7 +2561,7 @@ checkRoomList(api.RoomList o) { buildCounterRoomList++; if (buildCounterRoomList < 3) { - checkUnnamed166(o.items); + checkUnnamed129(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2622,14 +2622,14 @@ buildCounterRoomP2PStatus--; } -buildUnnamed167() { +buildUnnamed130() { var o = new core.List<api.RoomP2PStatus>(); o.add(buildRoomP2PStatus()); o.add(buildRoomP2PStatus()); return o; } -checkUnnamed167(core.List<api.RoomP2PStatus> o) { +checkUnnamed130(core.List<api.RoomP2PStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRoomP2PStatus(o[0]); checkRoomP2PStatus(o[1]); @@ -2641,7 +2641,7 @@ buildCounterRoomP2PStatuses++; if (buildCounterRoomP2PStatuses < 3) { o.kind = "foo"; - o.updates = buildUnnamed167(); + o.updates = buildUnnamed130(); } buildCounterRoomP2PStatuses--; return o; @@ -2651,19 +2651,19 @@ buildCounterRoomP2PStatuses++; if (buildCounterRoomP2PStatuses < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed167(o.updates); + checkUnnamed130(o.updates); } buildCounterRoomP2PStatuses--; } -buildUnnamed168() { +buildUnnamed131() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed168(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')); @@ -2676,7 +2676,7 @@ if (buildCounterRoomParticipant < 3) { o.autoMatched = true; o.autoMatchedPlayer = buildAnonymousPlayer(); - o.capabilities = buildUnnamed168(); + o.capabilities = buildUnnamed131(); o.clientAddress = buildRoomClientAddress(); o.connected = true; o.id = "foo"; @@ -2694,7 +2694,7 @@ if (buildCounterRoomParticipant < 3) { unittest.expect(o.autoMatched, unittest.isTrue); checkAnonymousPlayer(o.autoMatchedPlayer); - checkUnnamed168(o.capabilities); + checkUnnamed131(o.capabilities); checkRoomClientAddress(o.clientAddress); unittest.expect(o.connected, unittest.isTrue); unittest.expect(o.id, unittest.equals('foo')); @@ -2706,14 +2706,14 @@ buildCounterRoomParticipant--; } -buildUnnamed169() { +buildUnnamed132() { var o = new core.List<api.RoomParticipant>(); o.add(buildRoomParticipant()); o.add(buildRoomParticipant()); return o; } -checkUnnamed169(core.List<api.RoomParticipant> o) { +checkUnnamed132(core.List<api.RoomParticipant> o) { unittest.expect(o, unittest.hasLength(2)); checkRoomParticipant(o[0]); checkRoomParticipant(o[1]); @@ -2726,7 +2726,7 @@ if (buildCounterRoomStatus < 3) { o.autoMatchingStatus = buildRoomAutoMatchStatus(); o.kind = "foo"; - o.participants = buildUnnamed169(); + o.participants = buildUnnamed132(); o.roomId = "foo"; o.status = "foo"; o.statusVersion = 42; @@ -2740,7 +2740,7 @@ if (buildCounterRoomStatus < 3) { checkRoomAutoMatchStatus(o.autoMatchingStatus); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed169(o.participants); + checkUnnamed132(o.participants); unittest.expect(o.roomId, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.statusVersion, unittest.equals(42)); @@ -2841,14 +2841,14 @@ buildCounterSnapshotImage--; } -buildUnnamed170() { +buildUnnamed133() { var o = new core.List<api.Snapshot>(); o.add(buildSnapshot()); o.add(buildSnapshot()); return o; } -checkUnnamed170(core.List<api.Snapshot> o) { +checkUnnamed133(core.List<api.Snapshot> o) { unittest.expect(o, unittest.hasLength(2)); checkSnapshot(o[0]); checkSnapshot(o[1]); @@ -2859,7 +2859,7 @@ var o = new api.SnapshotListResponse(); buildCounterSnapshotListResponse++; if (buildCounterSnapshotListResponse < 3) { - o.items = buildUnnamed170(); + o.items = buildUnnamed133(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2870,7 +2870,7 @@ checkSnapshotListResponse(api.SnapshotListResponse o) { buildCounterSnapshotListResponse++; if (buildCounterSnapshotListResponse < 3) { - checkUnnamed170(o.items); + checkUnnamed133(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2902,27 +2902,27 @@ buildCounterTurnBasedAutoMatchingCriteria--; } -buildUnnamed171() { +buildUnnamed134() { var o = new core.List<api.TurnBasedMatchParticipant>(); o.add(buildTurnBasedMatchParticipant()); o.add(buildTurnBasedMatchParticipant()); return o; } -checkUnnamed171(core.List<api.TurnBasedMatchParticipant> o) { +checkUnnamed134(core.List<api.TurnBasedMatchParticipant> o) { unittest.expect(o, unittest.hasLength(2)); checkTurnBasedMatchParticipant(o[0]); checkTurnBasedMatchParticipant(o[1]); } -buildUnnamed172() { +buildUnnamed135() { var o = new core.List<api.ParticipantResult>(); o.add(buildParticipantResult()); o.add(buildParticipantResult()); return o; } -checkUnnamed172(core.List<api.ParticipantResult> o) { +checkUnnamed135(core.List<api.ParticipantResult> o) { unittest.expect(o, unittest.hasLength(2)); checkParticipantResult(o[0]); checkParticipantResult(o[1]); @@ -2944,11 +2944,11 @@ o.matchId = "foo"; o.matchNumber = 42; o.matchVersion = 42; - o.participants = buildUnnamed171(); + o.participants = buildUnnamed134(); o.pendingParticipantId = "foo"; o.previousMatchData = buildTurnBasedMatchData(); o.rematchId = "foo"; - o.results = buildUnnamed172(); + o.results = buildUnnamed135(); o.status = "foo"; o.userMatchStatus = "foo"; o.variant = 42; @@ -2972,11 +2972,11 @@ unittest.expect(o.matchId, unittest.equals('foo')); unittest.expect(o.matchNumber, unittest.equals(42)); unittest.expect(o.matchVersion, unittest.equals(42)); - checkUnnamed171(o.participants); + checkUnnamed134(o.participants); unittest.expect(o.pendingParticipantId, unittest.equals('foo')); checkTurnBasedMatchData(o.previousMatchData); unittest.expect(o.rematchId, unittest.equals('foo')); - checkUnnamed172(o.results); + checkUnnamed135(o.results); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.userMatchStatus, unittest.equals('foo')); unittest.expect(o.variant, unittest.equals(42)); @@ -2985,14 +2985,14 @@ buildCounterTurnBasedMatch--; } -buildUnnamed173() { +buildUnnamed136() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed173(core.List<core.String> o) { +checkUnnamed136(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3004,7 +3004,7 @@ buildCounterTurnBasedMatchCreateRequest++; if (buildCounterTurnBasedMatchCreateRequest < 3) { o.autoMatchingCriteria = buildTurnBasedAutoMatchingCriteria(); - o.invitedPlayerIds = buildUnnamed173(); + o.invitedPlayerIds = buildUnnamed136(); o.kind = "foo"; o.requestId = "foo"; o.variant = 42; @@ -3017,7 +3017,7 @@ buildCounterTurnBasedMatchCreateRequest++; if (buildCounterTurnBasedMatchCreateRequest < 3) { checkTurnBasedAutoMatchingCriteria(o.autoMatchingCriteria); - checkUnnamed173(o.invitedPlayerIds); + checkUnnamed136(o.invitedPlayerIds); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.requestId, unittest.equals('foo')); unittest.expect(o.variant, unittest.equals(42)); @@ -3069,14 +3069,14 @@ buildCounterTurnBasedMatchDataRequest--; } -buildUnnamed174() { +buildUnnamed137() { var o = new core.List<api.TurnBasedMatch>(); o.add(buildTurnBasedMatch()); o.add(buildTurnBasedMatch()); return o; } -checkUnnamed174(core.List<api.TurnBasedMatch> o) { +checkUnnamed137(core.List<api.TurnBasedMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkTurnBasedMatch(o[0]); checkTurnBasedMatch(o[1]); @@ -3087,7 +3087,7 @@ var o = new api.TurnBasedMatchList(); buildCounterTurnBasedMatchList++; if (buildCounterTurnBasedMatchList < 3) { - o.items = buildUnnamed174(); + o.items = buildUnnamed137(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3098,7 +3098,7 @@ checkTurnBasedMatchList(api.TurnBasedMatchList o) { buildCounterTurnBasedMatchList++; if (buildCounterTurnBasedMatchList < 3) { - checkUnnamed174(o.items); + checkUnnamed137(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3180,14 +3180,14 @@ buildCounterTurnBasedMatchRematch--; } -buildUnnamed175() { +buildUnnamed138() { var o = new core.List<api.ParticipantResult>(); o.add(buildParticipantResult()); o.add(buildParticipantResult()); return o; } -checkUnnamed175(core.List<api.ParticipantResult> o) { +checkUnnamed138(core.List<api.ParticipantResult> o) { unittest.expect(o, unittest.hasLength(2)); checkParticipantResult(o[0]); checkParticipantResult(o[1]); @@ -3201,7 +3201,7 @@ o.data = buildTurnBasedMatchDataRequest(); o.kind = "foo"; o.matchVersion = 42; - o.results = buildUnnamed175(); + o.results = buildUnnamed138(); } buildCounterTurnBasedMatchResults--; return o; @@ -3213,19 +3213,19 @@ checkTurnBasedMatchDataRequest(o.data); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.matchVersion, unittest.equals(42)); - checkUnnamed175(o.results); + checkUnnamed138(o.results); } buildCounterTurnBasedMatchResults--; } -buildUnnamed176() { +buildUnnamed139() { var o = new core.List<api.TurnBasedMatch>(); o.add(buildTurnBasedMatch()); o.add(buildTurnBasedMatch()); return o; } -checkUnnamed176(core.List<api.TurnBasedMatch> o) { +checkUnnamed139(core.List<api.TurnBasedMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkTurnBasedMatch(o[0]); checkTurnBasedMatch(o[1]); @@ -3236,7 +3236,7 @@ var o = new api.TurnBasedMatchSync(); buildCounterTurnBasedMatchSync++; if (buildCounterTurnBasedMatchSync < 3) { - o.items = buildUnnamed176(); + o.items = buildUnnamed139(); o.kind = "foo"; o.moreAvailable = true; o.nextPageToken = "foo"; @@ -3248,7 +3248,7 @@ checkTurnBasedMatchSync(api.TurnBasedMatchSync o) { buildCounterTurnBasedMatchSync++; if (buildCounterTurnBasedMatchSync < 3) { - checkUnnamed176(o.items); + checkUnnamed139(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.moreAvailable, unittest.isTrue); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -3256,14 +3256,14 @@ buildCounterTurnBasedMatchSync--; } -buildUnnamed177() { +buildUnnamed140() { var o = new core.List<api.ParticipantResult>(); o.add(buildParticipantResult()); o.add(buildParticipantResult()); return o; } -checkUnnamed177(core.List<api.ParticipantResult> o) { +checkUnnamed140(core.List<api.ParticipantResult> o) { unittest.expect(o, unittest.hasLength(2)); checkParticipantResult(o[0]); checkParticipantResult(o[1]); @@ -3278,7 +3278,7 @@ o.kind = "foo"; o.matchVersion = 42; o.pendingParticipantId = "foo"; - o.results = buildUnnamed177(); + o.results = buildUnnamed140(); } buildCounterTurnBasedMatchTurn--; return o; @@ -3291,7 +3291,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.matchVersion, unittest.equals(42)); unittest.expect(o.pendingParticipantId, unittest.equals('foo')); - checkUnnamed177(o.results); + checkUnnamed140(o.results); } buildCounterTurnBasedMatchTurn--; }
diff --git a/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart b/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart index c3283f1..0218ae6 100644 --- a/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart +++ b/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart
@@ -113,14 +113,14 @@ buildCounterAchievementConfigurationDetail--; } -buildUnnamed763() { +buildUnnamed738() { var o = new core.List<api.AchievementConfiguration>(); o.add(buildAchievementConfiguration()); o.add(buildAchievementConfiguration()); return o; } -checkUnnamed763(core.List<api.AchievementConfiguration> o) { +checkUnnamed738(core.List<api.AchievementConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementConfiguration(o[0]); checkAchievementConfiguration(o[1]); @@ -131,7 +131,7 @@ var o = new api.AchievementConfigurationListResponse(); buildCounterAchievementConfigurationListResponse++; if (buildCounterAchievementConfigurationListResponse < 3) { - o.items = buildUnnamed763(); + o.items = buildUnnamed738(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -142,7 +142,7 @@ checkAchievementConfigurationListResponse(api.AchievementConfigurationListResponse o) { buildCounterAchievementConfigurationListResponse++; if (buildCounterAchievementConfigurationListResponse < 3) { - checkUnnamed763(o.items); + checkUnnamed738(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -288,14 +288,14 @@ buildCounterLeaderboardConfigurationDetail--; } -buildUnnamed764() { +buildUnnamed739() { var o = new core.List<api.LeaderboardConfiguration>(); o.add(buildLeaderboardConfiguration()); o.add(buildLeaderboardConfiguration()); return o; } -checkUnnamed764(core.List<api.LeaderboardConfiguration> o) { +checkUnnamed739(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 = buildUnnamed764(); + o.items = buildUnnamed739(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -317,7 +317,7 @@ checkLeaderboardConfigurationListResponse(api.LeaderboardConfigurationListResponse o) { buildCounterLeaderboardConfigurationListResponse++; if (buildCounterLeaderboardConfigurationListResponse < 3) { - checkUnnamed764(o.items); + checkUnnamed739(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -347,14 +347,14 @@ buildCounterLocalizedString--; } -buildUnnamed765() { +buildUnnamed740() { var o = new core.List<api.LocalizedString>(); o.add(buildLocalizedString()); o.add(buildLocalizedString()); return o; } -checkUnnamed765(core.List<api.LocalizedString> o) { +checkUnnamed740(core.List<api.LocalizedString> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedString(o[0]); checkLocalizedString(o[1]); @@ -366,7 +366,7 @@ buildCounterLocalizedStringBundle++; if (buildCounterLocalizedStringBundle < 3) { o.kind = "foo"; - o.translations = buildUnnamed765(); + o.translations = buildUnnamed740(); } buildCounterLocalizedStringBundle--; return o; @@ -376,7 +376,7 @@ buildCounterLocalizedStringBundle++; if (buildCounterLocalizedStringBundle < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed765(o.translations); + checkUnnamed740(o.translations); } buildCounterLocalizedStringBundle--; }
diff --git a/generated/googleapis/test/gamesmanagement/v1management_test.dart b/generated/googleapis/test/gamesmanagement/v1management_test.dart index 893bd8d..85a79d3 100644 --- a/generated/googleapis/test/gamesmanagement/v1management_test.dart +++ b/generated/googleapis/test/gamesmanagement/v1management_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed755() { +buildUnnamed730() { var o = new core.List<api.AchievementResetResponse>(); o.add(buildAchievementResetResponse()); o.add(buildAchievementResetResponse()); return o; } -checkUnnamed755(core.List<api.AchievementResetResponse> o) { +checkUnnamed730(core.List<api.AchievementResetResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementResetResponse(o[0]); checkAchievementResetResponse(o[1]); @@ -70,7 +70,7 @@ buildCounterAchievementResetAllResponse++; if (buildCounterAchievementResetAllResponse < 3) { o.kind = "foo"; - o.results = buildUnnamed755(); + o.results = buildUnnamed730(); } buildCounterAchievementResetAllResponse--; return o; @@ -80,19 +80,19 @@ buildCounterAchievementResetAllResponse++; if (buildCounterAchievementResetAllResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed755(o.results); + checkUnnamed730(o.results); } buildCounterAchievementResetAllResponse--; } -buildUnnamed756() { +buildUnnamed731() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed756(core.List<core.String> o) { +checkUnnamed731(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -103,7 +103,7 @@ var o = new api.AchievementResetMultipleForAllRequest(); buildCounterAchievementResetMultipleForAllRequest++; if (buildCounterAchievementResetMultipleForAllRequest < 3) { - o.achievementIds = buildUnnamed756(); + o.achievementIds = buildUnnamed731(); o.kind = "foo"; } buildCounterAchievementResetMultipleForAllRequest--; @@ -113,7 +113,7 @@ checkAchievementResetMultipleForAllRequest(api.AchievementResetMultipleForAllRequest o) { buildCounterAchievementResetMultipleForAllRequest++; if (buildCounterAchievementResetMultipleForAllRequest < 3) { - checkUnnamed756(o.achievementIds); + checkUnnamed731(o.achievementIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAchievementResetMultipleForAllRequest--; @@ -144,14 +144,14 @@ buildCounterAchievementResetResponse--; } -buildUnnamed757() { +buildUnnamed732() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed757(core.List<core.String> o) { +checkUnnamed732(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -162,7 +162,7 @@ var o = new api.EventsResetMultipleForAllRequest(); buildCounterEventsResetMultipleForAllRequest++; if (buildCounterEventsResetMultipleForAllRequest < 3) { - o.eventIds = buildUnnamed757(); + o.eventIds = buildUnnamed732(); o.kind = "foo"; } buildCounterEventsResetMultipleForAllRequest--; @@ -172,7 +172,7 @@ checkEventsResetMultipleForAllRequest(api.EventsResetMultipleForAllRequest o) { buildCounterEventsResetMultipleForAllRequest++; if (buildCounterEventsResetMultipleForAllRequest < 3) { - checkUnnamed757(o.eventIds); + checkUnnamed732(o.eventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventsResetMultipleForAllRequest--; @@ -270,14 +270,14 @@ buildCounterHiddenPlayer--; } -buildUnnamed758() { +buildUnnamed733() { var o = new core.List<api.HiddenPlayer>(); o.add(buildHiddenPlayer()); o.add(buildHiddenPlayer()); return o; } -checkUnnamed758(core.List<api.HiddenPlayer> o) { +checkUnnamed733(core.List<api.HiddenPlayer> o) { unittest.expect(o, unittest.hasLength(2)); checkHiddenPlayer(o[0]); checkHiddenPlayer(o[1]); @@ -288,7 +288,7 @@ var o = new api.HiddenPlayerList(); buildCounterHiddenPlayerList++; if (buildCounterHiddenPlayerList < 3) { - o.items = buildUnnamed758(); + o.items = buildUnnamed733(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -299,7 +299,7 @@ checkHiddenPlayerList(api.HiddenPlayerList o) { buildCounterHiddenPlayerList++; if (buildCounterHiddenPlayerList < 3) { - checkUnnamed758(o.items); + checkUnnamed733(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -368,14 +368,14 @@ buildCounterPlayer--; } -buildUnnamed759() { +buildUnnamed734() { var o = new core.List<api.PlayerScoreResetResponse>(); o.add(buildPlayerScoreResetResponse()); o.add(buildPlayerScoreResetResponse()); return o; } -checkUnnamed759(core.List<api.PlayerScoreResetResponse> o) { +checkUnnamed734(core.List<api.PlayerScoreResetResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerScoreResetResponse(o[0]); checkPlayerScoreResetResponse(o[1]); @@ -387,7 +387,7 @@ buildCounterPlayerScoreResetAllResponse++; if (buildCounterPlayerScoreResetAllResponse < 3) { o.kind = "foo"; - o.results = buildUnnamed759(); + o.results = buildUnnamed734(); } buildCounterPlayerScoreResetAllResponse--; return o; @@ -397,19 +397,19 @@ buildCounterPlayerScoreResetAllResponse++; if (buildCounterPlayerScoreResetAllResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed759(o.results); + checkUnnamed734(o.results); } buildCounterPlayerScoreResetAllResponse--; } -buildUnnamed760() { +buildUnnamed735() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed760(core.List<core.String> o) { +checkUnnamed735(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -422,7 +422,7 @@ if (buildCounterPlayerScoreResetResponse < 3) { o.definitionId = "foo"; o.kind = "foo"; - o.resetScoreTimeSpans = buildUnnamed760(); + o.resetScoreTimeSpans = buildUnnamed735(); } buildCounterPlayerScoreResetResponse--; return o; @@ -433,7 +433,7 @@ if (buildCounterPlayerScoreResetResponse < 3) { unittest.expect(o.definitionId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed760(o.resetScoreTimeSpans); + checkUnnamed735(o.resetScoreTimeSpans); } buildCounterPlayerScoreResetResponse--; } @@ -459,14 +459,14 @@ buildCounterProfileSettings--; } -buildUnnamed761() { +buildUnnamed736() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed761(core.List<core.String> o) { +checkUnnamed736(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -478,7 +478,7 @@ buildCounterQuestsResetMultipleForAllRequest++; if (buildCounterQuestsResetMultipleForAllRequest < 3) { o.kind = "foo"; - o.questIds = buildUnnamed761(); + o.questIds = buildUnnamed736(); } buildCounterQuestsResetMultipleForAllRequest--; return o; @@ -488,19 +488,19 @@ buildCounterQuestsResetMultipleForAllRequest++; if (buildCounterQuestsResetMultipleForAllRequest < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed761(o.questIds); + checkUnnamed736(o.questIds); } buildCounterQuestsResetMultipleForAllRequest--; } -buildUnnamed762() { +buildUnnamed737() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed762(core.List<core.String> o) { +checkUnnamed737(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -512,7 +512,7 @@ buildCounterScoresResetMultipleForAllRequest++; if (buildCounterScoresResetMultipleForAllRequest < 3) { o.kind = "foo"; - o.leaderboardIds = buildUnnamed762(); + o.leaderboardIds = buildUnnamed737(); } buildCounterScoresResetMultipleForAllRequest--; return o; @@ -522,7 +522,7 @@ buildCounterScoresResetMultipleForAllRequest++; if (buildCounterScoresResetMultipleForAllRequest < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed762(o.leaderboardIds); + checkUnnamed737(o.leaderboardIds); } buildCounterScoresResetMultipleForAllRequest--; }
diff --git a/generated/googleapis/test/genomics/v1_test.dart b/generated/googleapis/test/genomics/v1_test.dart index 957d1de..450c2c1 100644 --- a/generated/googleapis/test/genomics/v1_test.dart +++ b/generated/googleapis/test/genomics/v1_test.dart
@@ -51,30 +51,30 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2491() { +buildUnnamed2528() { 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; } -checkUnnamed2491(core.List<core.Object> o) { +checkUnnamed2528(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2492() { +buildUnnamed2529() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2491(); - o["y"] = buildUnnamed2491(); + o["x"] = buildUnnamed2528(); + o["y"] = buildUnnamed2528(); return o; } -checkUnnamed2492(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2529(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2491(o["x"]); - checkUnnamed2491(o["y"]); + checkUnnamed2528(o["x"]); + checkUnnamed2528(o["y"]); } core.int buildCounterAnnotation = 0; @@ -85,7 +85,7 @@ o.annotationSetId = "foo"; o.end = "foo"; o.id = "foo"; - o.info = buildUnnamed2492(); + o.info = buildUnnamed2529(); o.name = "foo"; o.referenceId = "foo"; o.referenceName = "foo"; @@ -105,7 +105,7 @@ unittest.expect(o.annotationSetId, unittest.equals('foo')); unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2492(o.info); + checkUnnamed2529(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.referenceId, unittest.equals('foo')); unittest.expect(o.referenceName, unittest.equals('foo')); @@ -118,30 +118,30 @@ buildCounterAnnotation--; } -buildUnnamed2493() { +buildUnnamed2530() { 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; } -checkUnnamed2493(core.List<core.Object> o) { +checkUnnamed2530(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed2494() { +buildUnnamed2531() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2493(); - o["y"] = buildUnnamed2493(); + o["x"] = buildUnnamed2530(); + o["y"] = buildUnnamed2530(); return o; } -checkUnnamed2494(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2531(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2493(o["x"]); - checkUnnamed2493(o["y"]); + checkUnnamed2530(o["x"]); + checkUnnamed2530(o["y"]); } core.int buildCounterAnnotationSet = 0; @@ -151,7 +151,7 @@ if (buildCounterAnnotationSet < 3) { o.datasetId = "foo"; o.id = "foo"; - o.info = buildUnnamed2494(); + o.info = buildUnnamed2531(); o.name = "foo"; o.referenceSetId = "foo"; o.sourceUri = "foo"; @@ -166,7 +166,7 @@ if (buildCounterAnnotationSet < 3) { unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2494(o.info); + checkUnnamed2531(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); unittest.expect(o.sourceUri, unittest.equals('foo')); @@ -175,14 +175,14 @@ buildCounterAnnotationSet--; } -buildUnnamed2495() { +buildUnnamed2532() { var o = new core.List<api.Annotation>(); o.add(buildAnnotation()); o.add(buildAnnotation()); return o; } -checkUnnamed2495(core.List<api.Annotation> o) { +checkUnnamed2532(core.List<api.Annotation> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotation(o[0]); checkAnnotation(o[1]); @@ -193,7 +193,7 @@ var o = new api.BatchCreateAnnotationsRequest(); buildCounterBatchCreateAnnotationsRequest++; if (buildCounterBatchCreateAnnotationsRequest < 3) { - o.annotations = buildUnnamed2495(); + o.annotations = buildUnnamed2532(); o.requestId = "foo"; } buildCounterBatchCreateAnnotationsRequest--; @@ -203,20 +203,20 @@ checkBatchCreateAnnotationsRequest(api.BatchCreateAnnotationsRequest o) { buildCounterBatchCreateAnnotationsRequest++; if (buildCounterBatchCreateAnnotationsRequest < 3) { - checkUnnamed2495(o.annotations); + checkUnnamed2532(o.annotations); unittest.expect(o.requestId, unittest.equals('foo')); } buildCounterBatchCreateAnnotationsRequest--; } -buildUnnamed2496() { +buildUnnamed2533() { var o = new core.List<api.Entry>(); o.add(buildEntry()); o.add(buildEntry()); return o; } -checkUnnamed2496(core.List<api.Entry> o) { +checkUnnamed2533(core.List<api.Entry> o) { unittest.expect(o, unittest.hasLength(2)); checkEntry(o[0]); checkEntry(o[1]); @@ -227,7 +227,7 @@ var o = new api.BatchCreateAnnotationsResponse(); buildCounterBatchCreateAnnotationsResponse++; if (buildCounterBatchCreateAnnotationsResponse < 3) { - o.entries = buildUnnamed2496(); + o.entries = buildUnnamed2533(); } buildCounterBatchCreateAnnotationsResponse--; return o; @@ -236,19 +236,19 @@ checkBatchCreateAnnotationsResponse(api.BatchCreateAnnotationsResponse o) { buildCounterBatchCreateAnnotationsResponse++; if (buildCounterBatchCreateAnnotationsResponse < 3) { - checkUnnamed2496(o.entries); + checkUnnamed2533(o.entries); } buildCounterBatchCreateAnnotationsResponse--; } -buildUnnamed2497() { +buildUnnamed2534() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2497(core.List<core.String> o) { +checkUnnamed2534(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -259,7 +259,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed2497(); + o.members = buildUnnamed2534(); o.role = "foo"; } buildCounterBinding--; @@ -269,46 +269,46 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed2497(o.members); + checkUnnamed2534(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed2498() { +buildUnnamed2535() { 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; } -checkUnnamed2498(core.List<core.Object> o) { +checkUnnamed2535(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed2499() { +buildUnnamed2536() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2498(); - o["y"] = buildUnnamed2498(); + o["x"] = buildUnnamed2535(); + o["y"] = buildUnnamed2535(); return o; } -checkUnnamed2499(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2536(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2498(o["x"]); - checkUnnamed2498(o["y"]); + checkUnnamed2535(o["x"]); + checkUnnamed2535(o["y"]); } -buildUnnamed2500() { +buildUnnamed2537() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2500(core.List<core.String> o) { +checkUnnamed2537(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -321,10 +321,10 @@ if (buildCounterCallSet < 3) { o.created = "foo"; o.id = "foo"; - o.info = buildUnnamed2499(); + o.info = buildUnnamed2536(); o.name = "foo"; o.sampleId = "foo"; - o.variantSetIds = buildUnnamed2500(); + o.variantSetIds = buildUnnamed2537(); } buildCounterCallSet--; return o; @@ -335,10 +335,10 @@ if (buildCounterCallSet < 3) { unittest.expect(o.created, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2499(o.info); + checkUnnamed2536(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.sampleId, unittest.equals('foo')); - checkUnnamed2500(o.variantSetIds); + checkUnnamed2537(o.variantSetIds); } buildCounterCallSet--; } @@ -383,27 +383,27 @@ buildCounterCigarUnit--; } -buildUnnamed2501() { +buildUnnamed2538() { var o = new core.List<api.ExternalId>(); o.add(buildExternalId()); o.add(buildExternalId()); return o; } -checkUnnamed2501(core.List<api.ExternalId> o) { +checkUnnamed2538(core.List<api.ExternalId> o) { unittest.expect(o, unittest.hasLength(2)); checkExternalId(o[0]); checkExternalId(o[1]); } -buildUnnamed2502() { +buildUnnamed2539() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2502(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')); @@ -415,8 +415,8 @@ buildCounterClinicalCondition++; if (buildCounterClinicalCondition < 3) { o.conceptId = "foo"; - o.externalIds = buildUnnamed2501(); - o.names = buildUnnamed2502(); + o.externalIds = buildUnnamed2538(); + o.names = buildUnnamed2539(); o.omimId = "foo"; } buildCounterClinicalCondition--; @@ -427,8 +427,8 @@ buildCounterClinicalCondition++; if (buildCounterClinicalCondition < 3) { unittest.expect(o.conceptId, unittest.equals('foo')); - checkUnnamed2501(o.externalIds); - checkUnnamed2502(o.names); + checkUnnamed2538(o.externalIds); + checkUnnamed2539(o.names); unittest.expect(o.omimId, unittest.equals('foo')); } buildCounterClinicalCondition--; @@ -455,14 +455,14 @@ buildCounterCodingSequence--; } -buildUnnamed2503() { +buildUnnamed2540() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2503(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')); @@ -473,7 +473,7 @@ var o = new api.ComputeEngine(); buildCounterComputeEngine++; if (buildCounterComputeEngine < 3) { - o.diskNames = buildUnnamed2503(); + o.diskNames = buildUnnamed2540(); o.instanceName = "foo"; o.machineType = "foo"; o.zone = "foo"; @@ -485,7 +485,7 @@ checkComputeEngine(api.ComputeEngine o) { buildCounterComputeEngine++; if (buildCounterComputeEngine < 3) { - checkUnnamed2503(o.diskNames); + checkUnnamed2540(o.diskNames); unittest.expect(o.instanceName, unittest.equals('foo')); unittest.expect(o.machineType, unittest.equals('foo')); unittest.expect(o.zone, unittest.equals('foo')); @@ -625,14 +625,14 @@ buildCounterExperiment--; } -buildUnnamed2504() { +buildUnnamed2541() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2504(core.List<core.String> o) { +checkUnnamed2541(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -645,7 +645,7 @@ if (buildCounterExportReadGroupSetRequest < 3) { o.exportUri = "foo"; o.projectId = "foo"; - o.referenceNames = buildUnnamed2504(); + o.referenceNames = buildUnnamed2541(); } buildCounterExportReadGroupSetRequest--; return o; @@ -656,19 +656,19 @@ if (buildCounterExportReadGroupSetRequest < 3) { unittest.expect(o.exportUri, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); - checkUnnamed2504(o.referenceNames); + checkUnnamed2541(o.referenceNames); } buildCounterExportReadGroupSetRequest--; } -buildUnnamed2505() { +buildUnnamed2542() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2505(core.List<core.String> o) { +checkUnnamed2542(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -681,7 +681,7 @@ if (buildCounterExportVariantSetRequest < 3) { o.bigqueryDataset = "foo"; o.bigqueryTable = "foo"; - o.callSetIds = buildUnnamed2505(); + o.callSetIds = buildUnnamed2542(); o.format = "foo"; o.projectId = "foo"; } @@ -694,7 +694,7 @@ if (buildCounterExportVariantSetRequest < 3) { unittest.expect(o.bigqueryDataset, unittest.equals('foo')); unittest.expect(o.bigqueryTable, unittest.equals('foo')); - checkUnnamed2505(o.callSetIds); + checkUnnamed2542(o.callSetIds); unittest.expect(o.format, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); } @@ -739,14 +739,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed2506() { +buildUnnamed2543() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2506(core.List<core.String> o) { +checkUnnamed2543(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -760,7 +760,7 @@ o.datasetId = "foo"; o.partitionStrategy = "foo"; o.referenceSetId = "foo"; - o.sourceUris = buildUnnamed2506(); + o.sourceUris = buildUnnamed2543(); } buildCounterImportReadGroupSetsRequest--; return o; @@ -772,19 +772,19 @@ unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.partitionStrategy, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); - checkUnnamed2506(o.sourceUris); + checkUnnamed2543(o.sourceUris); } buildCounterImportReadGroupSetsRequest--; } -buildUnnamed2507() { +buildUnnamed2544() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2507(core.List<core.String> o) { +checkUnnamed2544(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -795,7 +795,7 @@ var o = new api.ImportReadGroupSetsResponse(); buildCounterImportReadGroupSetsResponse++; if (buildCounterImportReadGroupSetsResponse < 3) { - o.readGroupSetIds = buildUnnamed2507(); + o.readGroupSetIds = buildUnnamed2544(); } buildCounterImportReadGroupSetsResponse--; return o; @@ -804,32 +804,32 @@ checkImportReadGroupSetsResponse(api.ImportReadGroupSetsResponse o) { buildCounterImportReadGroupSetsResponse++; if (buildCounterImportReadGroupSetsResponse < 3) { - checkUnnamed2507(o.readGroupSetIds); + checkUnnamed2544(o.readGroupSetIds); } buildCounterImportReadGroupSetsResponse--; } -buildUnnamed2508() { +buildUnnamed2545() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2508(core.Map<core.String, core.String> o) { +checkUnnamed2545(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed2509() { +buildUnnamed2546() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2509(core.List<core.String> 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')); @@ -841,9 +841,9 @@ buildCounterImportVariantsRequest++; if (buildCounterImportVariantsRequest < 3) { o.format = "foo"; - o.infoMergeConfig = buildUnnamed2508(); + o.infoMergeConfig = buildUnnamed2545(); o.normalizeReferenceNames = true; - o.sourceUris = buildUnnamed2509(); + o.sourceUris = buildUnnamed2546(); o.variantSetId = "foo"; } buildCounterImportVariantsRequest--; @@ -854,22 +854,22 @@ buildCounterImportVariantsRequest++; if (buildCounterImportVariantsRequest < 3) { unittest.expect(o.format, unittest.equals('foo')); - checkUnnamed2508(o.infoMergeConfig); + checkUnnamed2545(o.infoMergeConfig); unittest.expect(o.normalizeReferenceNames, unittest.isTrue); - checkUnnamed2509(o.sourceUris); + checkUnnamed2546(o.sourceUris); unittest.expect(o.variantSetId, unittest.equals('foo')); } buildCounterImportVariantsRequest--; } -buildUnnamed2510() { +buildUnnamed2547() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2510(core.List<core.String> o) { +checkUnnamed2547(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -880,7 +880,7 @@ var o = new api.ImportVariantsResponse(); buildCounterImportVariantsResponse++; if (buildCounterImportVariantsResponse < 3) { - o.callSetIds = buildUnnamed2510(); + o.callSetIds = buildUnnamed2547(); } buildCounterImportVariantsResponse--; return o; @@ -889,19 +889,19 @@ checkImportVariantsResponse(api.ImportVariantsResponse o) { buildCounterImportVariantsResponse++; if (buildCounterImportVariantsResponse < 3) { - checkUnnamed2510(o.callSetIds); + checkUnnamed2547(o.callSetIds); } buildCounterImportVariantsResponse--; } -buildUnnamed2511() { +buildUnnamed2548() { var o = new core.List<api.CigarUnit>(); o.add(buildCigarUnit()); o.add(buildCigarUnit()); return o; } -checkUnnamed2511(core.List<api.CigarUnit> o) { +checkUnnamed2548(core.List<api.CigarUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkCigarUnit(o[0]); checkCigarUnit(o[1]); @@ -912,7 +912,7 @@ var o = new api.LinearAlignment(); buildCounterLinearAlignment++; if (buildCounterLinearAlignment < 3) { - o.cigar = buildUnnamed2511(); + o.cigar = buildUnnamed2548(); o.mappingQuality = 42; o.position = buildPosition(); } @@ -923,7 +923,7 @@ checkLinearAlignment(api.LinearAlignment o) { buildCounterLinearAlignment++; if (buildCounterLinearAlignment < 3) { - checkUnnamed2511(o.cigar); + checkUnnamed2548(o.cigar); unittest.expect(o.mappingQuality, unittest.equals(42)); checkPosition(o.position); } @@ -953,14 +953,14 @@ buildCounterListBasesResponse--; } -buildUnnamed2512() { +buildUnnamed2549() { var o = new core.List<api.CoverageBucket>(); o.add(buildCoverageBucket()); o.add(buildCoverageBucket()); return o; } -checkUnnamed2512(core.List<api.CoverageBucket> o) { +checkUnnamed2549(core.List<api.CoverageBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkCoverageBucket(o[0]); checkCoverageBucket(o[1]); @@ -972,7 +972,7 @@ buildCounterListCoverageBucketsResponse++; if (buildCounterListCoverageBucketsResponse < 3) { o.bucketWidth = "foo"; - o.coverageBuckets = buildUnnamed2512(); + o.coverageBuckets = buildUnnamed2549(); o.nextPageToken = "foo"; } buildCounterListCoverageBucketsResponse--; @@ -983,20 +983,20 @@ buildCounterListCoverageBucketsResponse++; if (buildCounterListCoverageBucketsResponse < 3) { unittest.expect(o.bucketWidth, unittest.equals('foo')); - checkUnnamed2512(o.coverageBuckets); + checkUnnamed2549(o.coverageBuckets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCoverageBucketsResponse--; } -buildUnnamed2513() { +buildUnnamed2550() { var o = new core.List<api.Dataset>(); o.add(buildDataset()); o.add(buildDataset()); return o; } -checkUnnamed2513(core.List<api.Dataset> o) { +checkUnnamed2550(core.List<api.Dataset> o) { unittest.expect(o, unittest.hasLength(2)); checkDataset(o[0]); checkDataset(o[1]); @@ -1007,7 +1007,7 @@ var o = new api.ListDatasetsResponse(); buildCounterListDatasetsResponse++; if (buildCounterListDatasetsResponse < 3) { - o.datasets = buildUnnamed2513(); + o.datasets = buildUnnamed2550(); o.nextPageToken = "foo"; } buildCounterListDatasetsResponse--; @@ -1017,20 +1017,20 @@ checkListDatasetsResponse(api.ListDatasetsResponse o) { buildCounterListDatasetsResponse++; if (buildCounterListDatasetsResponse < 3) { - checkUnnamed2513(o.datasets); + checkUnnamed2550(o.datasets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDatasetsResponse--; } -buildUnnamed2514() { +buildUnnamed2551() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2514(core.List<api.Operation> o) { +checkUnnamed2551(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1042,7 +1042,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed2514(); + o.operations = buildUnnamed2551(); } buildCounterListOperationsResponse--; return o; @@ -1052,32 +1052,32 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2514(o.operations); + checkUnnamed2551(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed2515() { +buildUnnamed2552() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2515(core.Map<core.String, core.String> o) { +checkUnnamed2552(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed2516() { +buildUnnamed2553() { var o = new core.List<api.Variant>(); o.add(buildVariant()); o.add(buildVariant()); return o; } -checkUnnamed2516(core.List<api.Variant> o) { +checkUnnamed2553(core.List<api.Variant> o) { unittest.expect(o, unittest.hasLength(2)); checkVariant(o[0]); checkVariant(o[1]); @@ -1088,9 +1088,9 @@ var o = new api.MergeVariantsRequest(); buildCounterMergeVariantsRequest++; if (buildCounterMergeVariantsRequest < 3) { - o.infoMergeConfig = buildUnnamed2515(); + o.infoMergeConfig = buildUnnamed2552(); o.variantSetId = "foo"; - o.variants = buildUnnamed2516(); + o.variants = buildUnnamed2553(); } buildCounterMergeVariantsRequest--; return o; @@ -1099,34 +1099,34 @@ checkMergeVariantsRequest(api.MergeVariantsRequest o) { buildCounterMergeVariantsRequest++; if (buildCounterMergeVariantsRequest < 3) { - checkUnnamed2515(o.infoMergeConfig); + checkUnnamed2552(o.infoMergeConfig); unittest.expect(o.variantSetId, unittest.equals('foo')); - checkUnnamed2516(o.variants); + checkUnnamed2553(o.variants); } buildCounterMergeVariantsRequest--; } -buildUnnamed2517() { +buildUnnamed2554() { 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; } -checkUnnamed2517(core.Map<core.String, core.Object> o) { +checkUnnamed2554(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')); } -buildUnnamed2518() { +buildUnnamed2555() { 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; } -checkUnnamed2518(core.Map<core.String, core.Object> o) { +checkUnnamed2555(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["string"], unittest.equals('foo')); @@ -1139,9 +1139,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2517(); + o.metadata = buildUnnamed2554(); o.name = "foo"; - o.response = buildUnnamed2518(); + o.response = buildUnnamed2555(); } buildCounterOperation--; return o; @@ -1152,9 +1152,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2517(o.metadata); + checkUnnamed2554(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2518(o.response); + checkUnnamed2555(o.response); } buildCounterOperation--; } @@ -1182,53 +1182,53 @@ buildCounterOperationEvent--; } -buildUnnamed2519() { +buildUnnamed2556() { var o = new core.List<api.OperationEvent>(); o.add(buildOperationEvent()); o.add(buildOperationEvent()); return o; } -checkUnnamed2519(core.List<api.OperationEvent> o) { +checkUnnamed2556(core.List<api.OperationEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationEvent(o[0]); checkOperationEvent(o[1]); } -buildUnnamed2520() { +buildUnnamed2557() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2520(core.Map<core.String, core.String> o) { +checkUnnamed2557(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed2521() { +buildUnnamed2558() { 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; } -checkUnnamed2521(core.Map<core.String, core.Object> o) { +checkUnnamed2558(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')); } -buildUnnamed2522() { +buildUnnamed2559() { 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; } -checkUnnamed2522(core.Map<core.String, core.Object> o) { +checkUnnamed2559(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted13 = (o["x"]) as core.Map; unittest.expect(casted13, unittest.hasLength(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest.expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["string"], unittest.equals('foo')); var casted14 = (o["y"]) as core.Map; unittest.expect(casted14, unittest.hasLength(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest.expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["string"], unittest.equals('foo')); @@ -1242,11 +1242,11 @@ o.clientId = "foo"; o.createTime = "foo"; o.endTime = "foo"; - o.events = buildUnnamed2519(); - o.labels = buildUnnamed2520(); + o.events = buildUnnamed2556(); + o.labels = buildUnnamed2557(); o.projectId = "foo"; - o.request = buildUnnamed2521(); - o.runtimeMetadata = buildUnnamed2522(); + o.request = buildUnnamed2558(); + o.runtimeMetadata = buildUnnamed2559(); o.startTime = "foo"; } buildCounterOperationMetadata--; @@ -1259,24 +1259,24 @@ unittest.expect(o.clientId, unittest.equals('foo')); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed2519(o.events); - checkUnnamed2520(o.labels); + checkUnnamed2556(o.events); + checkUnnamed2557(o.labels); unittest.expect(o.projectId, unittest.equals('foo')); - checkUnnamed2521(o.request); - checkUnnamed2522(o.runtimeMetadata); + checkUnnamed2558(o.request); + checkUnnamed2559(o.runtimeMetadata); unittest.expect(o.startTime, unittest.equals('foo')); } buildCounterOperationMetadata--; } -buildUnnamed2523() { +buildUnnamed2560() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed2523(core.List<api.Binding> o) { +checkUnnamed2560(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -1287,7 +1287,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed2523(); + o.bindings = buildUnnamed2560(); o.etag = "foo"; o.version = 42; } @@ -1298,7 +1298,7 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed2523(o.bindings); + checkUnnamed2560(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -1378,43 +1378,43 @@ buildCounterRange--; } -buildUnnamed2524() { +buildUnnamed2561() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2524(core.List<core.int> o) { +checkUnnamed2561(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)); } -buildUnnamed2525() { +buildUnnamed2562() { 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; } -checkUnnamed2525(core.List<core.Object> o) { +checkUnnamed2562(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')); } -buildUnnamed2526() { +buildUnnamed2563() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2525(); - o["y"] = buildUnnamed2525(); + o["x"] = buildUnnamed2562(); + o["y"] = buildUnnamed2562(); return o; } -checkUnnamed2526(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2563(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2525(o["x"]); - checkUnnamed2525(o["y"]); + checkUnnamed2562(o["x"]); + checkUnnamed2562(o["y"]); } core.int buildCounterRead = 0; @@ -1422,7 +1422,7 @@ var o = new api.Read(); buildCounterRead++; if (buildCounterRead < 3) { - o.alignedQuality = buildUnnamed2524(); + o.alignedQuality = buildUnnamed2561(); o.alignedSequence = "foo"; o.alignment = buildLinearAlignment(); o.duplicateFragment = true; @@ -1430,7 +1430,7 @@ o.fragmentLength = 42; o.fragmentName = "foo"; o.id = "foo"; - o.info = buildUnnamed2526(); + o.info = buildUnnamed2563(); o.nextMatePosition = buildPosition(); o.numberReads = 42; o.properPlacement = true; @@ -1447,7 +1447,7 @@ checkRead(api.Read o) { buildCounterRead++; if (buildCounterRead < 3) { - checkUnnamed2524(o.alignedQuality); + checkUnnamed2561(o.alignedQuality); unittest.expect(o.alignedSequence, unittest.equals('foo')); checkLinearAlignment(o.alignment); unittest.expect(o.duplicateFragment, unittest.isTrue); @@ -1455,7 +1455,7 @@ unittest.expect(o.fragmentLength, unittest.equals(42)); unittest.expect(o.fragmentName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2526(o.info); + checkUnnamed2563(o.info); checkPosition(o.nextMatePosition); unittest.expect(o.numberReads, unittest.equals(42)); unittest.expect(o.properPlacement, unittest.isTrue); @@ -1468,40 +1468,40 @@ buildCounterRead--; } -buildUnnamed2527() { +buildUnnamed2564() { 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; } -checkUnnamed2527(core.List<core.Object> o) { +checkUnnamed2564(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')); } -buildUnnamed2528() { +buildUnnamed2565() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2527(); - o["y"] = buildUnnamed2527(); + o["x"] = buildUnnamed2564(); + o["y"] = buildUnnamed2564(); return o; } -checkUnnamed2528(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2565(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2527(o["x"]); - checkUnnamed2527(o["y"]); + checkUnnamed2564(o["x"]); + checkUnnamed2564(o["y"]); } -buildUnnamed2529() { +buildUnnamed2566() { var o = new core.List<api.Program>(); o.add(buildProgram()); o.add(buildProgram()); return o; } -checkUnnamed2529(core.List<api.Program> o) { +checkUnnamed2566(core.List<api.Program> o) { unittest.expect(o, unittest.hasLength(2)); checkProgram(o[0]); checkProgram(o[1]); @@ -1516,10 +1516,10 @@ o.description = "foo"; o.experiment = buildExperiment(); o.id = "foo"; - o.info = buildUnnamed2528(); + o.info = buildUnnamed2565(); o.name = "foo"; o.predictedInsertSize = 42; - o.programs = buildUnnamed2529(); + o.programs = buildUnnamed2566(); o.referenceSetId = "foo"; o.sampleId = "foo"; } @@ -1534,50 +1534,50 @@ unittest.expect(o.description, unittest.equals('foo')); checkExperiment(o.experiment); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2528(o.info); + checkUnnamed2565(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.predictedInsertSize, unittest.equals(42)); - checkUnnamed2529(o.programs); + checkUnnamed2566(o.programs); unittest.expect(o.referenceSetId, unittest.equals('foo')); unittest.expect(o.sampleId, unittest.equals('foo')); } buildCounterReadGroup--; } -buildUnnamed2530() { +buildUnnamed2567() { 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; } -checkUnnamed2530(core.List<core.Object> o) { +checkUnnamed2567(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')); } -buildUnnamed2531() { +buildUnnamed2568() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2530(); - o["y"] = buildUnnamed2530(); + o["x"] = buildUnnamed2567(); + o["y"] = buildUnnamed2567(); return o; } -checkUnnamed2531(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2568(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2530(o["x"]); - checkUnnamed2530(o["y"]); + checkUnnamed2567(o["x"]); + checkUnnamed2567(o["y"]); } -buildUnnamed2532() { +buildUnnamed2569() { var o = new core.List<api.ReadGroup>(); o.add(buildReadGroup()); o.add(buildReadGroup()); return o; } -checkUnnamed2532(core.List<api.ReadGroup> o) { +checkUnnamed2569(core.List<api.ReadGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkReadGroup(o[0]); checkReadGroup(o[1]); @@ -1591,9 +1591,9 @@ o.datasetId = "foo"; o.filename = "foo"; o.id = "foo"; - o.info = buildUnnamed2531(); + o.info = buildUnnamed2568(); o.name = "foo"; - o.readGroups = buildUnnamed2532(); + o.readGroups = buildUnnamed2569(); o.referenceSetId = "foo"; } buildCounterReadGroupSet--; @@ -1606,22 +1606,22 @@ unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.filename, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2531(o.info); + checkUnnamed2568(o.info); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2532(o.readGroups); + checkUnnamed2569(o.readGroups); unittest.expect(o.referenceSetId, unittest.equals('foo')); } buildCounterReadGroupSet--; } -buildUnnamed2533() { +buildUnnamed2570() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2533(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')); @@ -1637,7 +1637,7 @@ o.md5checksum = "foo"; o.name = "foo"; o.ncbiTaxonId = 42; - o.sourceAccessions = buildUnnamed2533(); + o.sourceAccessions = buildUnnamed2570(); o.sourceUri = "foo"; } buildCounterReference--; @@ -1652,7 +1652,7 @@ unittest.expect(o.md5checksum, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.ncbiTaxonId, unittest.equals(42)); - checkUnnamed2533(o.sourceAccessions); + checkUnnamed2570(o.sourceAccessions); unittest.expect(o.sourceUri, unittest.equals('foo')); } buildCounterReference--; @@ -1679,27 +1679,27 @@ buildCounterReferenceBound--; } -buildUnnamed2534() { +buildUnnamed2571() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2534(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')); } -buildUnnamed2535() { +buildUnnamed2572() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2535(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')); @@ -1715,8 +1715,8 @@ o.id = "foo"; o.md5checksum = "foo"; o.ncbiTaxonId = 42; - o.referenceIds = buildUnnamed2534(); - o.sourceAccessions = buildUnnamed2535(); + o.referenceIds = buildUnnamed2571(); + o.sourceAccessions = buildUnnamed2572(); o.sourceUri = "foo"; } buildCounterReferenceSet--; @@ -1731,8 +1731,8 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.md5checksum, unittest.equals('foo')); unittest.expect(o.ncbiTaxonId, unittest.equals(42)); - checkUnnamed2534(o.referenceIds); - checkUnnamed2535(o.sourceAccessions); + checkUnnamed2571(o.referenceIds); + checkUnnamed2572(o.sourceAccessions); unittest.expect(o.sourceUri, unittest.equals('foo')); } buildCounterReferenceSet--; @@ -1757,27 +1757,27 @@ buildCounterRuntimeMetadata--; } -buildUnnamed2536() { +buildUnnamed2573() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2536(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')); } -buildUnnamed2537() { +buildUnnamed2574() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2537(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')); @@ -1788,12 +1788,12 @@ var o = new api.SearchAnnotationSetsRequest(); buildCounterSearchAnnotationSetsRequest++; if (buildCounterSearchAnnotationSetsRequest < 3) { - o.datasetIds = buildUnnamed2536(); + o.datasetIds = buildUnnamed2573(); o.name = "foo"; o.pageSize = 42; o.pageToken = "foo"; o.referenceSetId = "foo"; - o.types = buildUnnamed2537(); + o.types = buildUnnamed2574(); } buildCounterSearchAnnotationSetsRequest--; return o; @@ -1802,24 +1802,24 @@ checkSearchAnnotationSetsRequest(api.SearchAnnotationSetsRequest o) { buildCounterSearchAnnotationSetsRequest++; if (buildCounterSearchAnnotationSetsRequest < 3) { - checkUnnamed2536(o.datasetIds); + checkUnnamed2573(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')); - checkUnnamed2537(o.types); + checkUnnamed2574(o.types); } buildCounterSearchAnnotationSetsRequest--; } -buildUnnamed2538() { +buildUnnamed2575() { var o = new core.List<api.AnnotationSet>(); o.add(buildAnnotationSet()); o.add(buildAnnotationSet()); return o; } -checkUnnamed2538(core.List<api.AnnotationSet> o) { +checkUnnamed2575(core.List<api.AnnotationSet> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotationSet(o[0]); checkAnnotationSet(o[1]); @@ -1830,7 +1830,7 @@ var o = new api.SearchAnnotationSetsResponse(); buildCounterSearchAnnotationSetsResponse++; if (buildCounterSearchAnnotationSetsResponse < 3) { - o.annotationSets = buildUnnamed2538(); + o.annotationSets = buildUnnamed2575(); o.nextPageToken = "foo"; } buildCounterSearchAnnotationSetsResponse--; @@ -1840,20 +1840,20 @@ checkSearchAnnotationSetsResponse(api.SearchAnnotationSetsResponse o) { buildCounterSearchAnnotationSetsResponse++; if (buildCounterSearchAnnotationSetsResponse < 3) { - checkUnnamed2538(o.annotationSets); + checkUnnamed2575(o.annotationSets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchAnnotationSetsResponse--; } -buildUnnamed2539() { +buildUnnamed2576() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2539(core.List<core.String> o) { +checkUnnamed2576(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1864,7 +1864,7 @@ var o = new api.SearchAnnotationsRequest(); buildCounterSearchAnnotationsRequest++; if (buildCounterSearchAnnotationsRequest < 3) { - o.annotationSetIds = buildUnnamed2539(); + o.annotationSetIds = buildUnnamed2576(); o.end = "foo"; o.pageSize = 42; o.pageToken = "foo"; @@ -1879,7 +1879,7 @@ checkSearchAnnotationsRequest(api.SearchAnnotationsRequest o) { buildCounterSearchAnnotationsRequest++; if (buildCounterSearchAnnotationsRequest < 3) { - checkUnnamed2539(o.annotationSetIds); + checkUnnamed2576(o.annotationSetIds); unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); @@ -1890,14 +1890,14 @@ buildCounterSearchAnnotationsRequest--; } -buildUnnamed2540() { +buildUnnamed2577() { var o = new core.List<api.Annotation>(); o.add(buildAnnotation()); o.add(buildAnnotation()); return o; } -checkUnnamed2540(core.List<api.Annotation> o) { +checkUnnamed2577(core.List<api.Annotation> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotation(o[0]); checkAnnotation(o[1]); @@ -1908,7 +1908,7 @@ var o = new api.SearchAnnotationsResponse(); buildCounterSearchAnnotationsResponse++; if (buildCounterSearchAnnotationsResponse < 3) { - o.annotations = buildUnnamed2540(); + o.annotations = buildUnnamed2577(); o.nextPageToken = "foo"; } buildCounterSearchAnnotationsResponse--; @@ -1918,20 +1918,20 @@ checkSearchAnnotationsResponse(api.SearchAnnotationsResponse o) { buildCounterSearchAnnotationsResponse++; if (buildCounterSearchAnnotationsResponse < 3) { - checkUnnamed2540(o.annotations); + checkUnnamed2577(o.annotations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchAnnotationsResponse--; } -buildUnnamed2541() { +buildUnnamed2578() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2541(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')); @@ -1945,7 +1945,7 @@ o.name = "foo"; o.pageSize = 42; o.pageToken = "foo"; - o.variantSetIds = buildUnnamed2541(); + o.variantSetIds = buildUnnamed2578(); } buildCounterSearchCallSetsRequest--; return o; @@ -1957,19 +1957,19 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed2541(o.variantSetIds); + checkUnnamed2578(o.variantSetIds); } buildCounterSearchCallSetsRequest--; } -buildUnnamed2542() { +buildUnnamed2579() { var o = new core.List<api.CallSet>(); o.add(buildCallSet()); o.add(buildCallSet()); return o; } -checkUnnamed2542(core.List<api.CallSet> o) { +checkUnnamed2579(core.List<api.CallSet> o) { unittest.expect(o, unittest.hasLength(2)); checkCallSet(o[0]); checkCallSet(o[1]); @@ -1980,7 +1980,7 @@ var o = new api.SearchCallSetsResponse(); buildCounterSearchCallSetsResponse++; if (buildCounterSearchCallSetsResponse < 3) { - o.callSets = buildUnnamed2542(); + o.callSets = buildUnnamed2579(); o.nextPageToken = "foo"; } buildCounterSearchCallSetsResponse--; @@ -1990,20 +1990,20 @@ checkSearchCallSetsResponse(api.SearchCallSetsResponse o) { buildCounterSearchCallSetsResponse++; if (buildCounterSearchCallSetsResponse < 3) { - checkUnnamed2542(o.callSets); + checkUnnamed2579(o.callSets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchCallSetsResponse--; } -buildUnnamed2543() { +buildUnnamed2580() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2543(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')); @@ -2014,7 +2014,7 @@ var o = new api.SearchReadGroupSetsRequest(); buildCounterSearchReadGroupSetsRequest++; if (buildCounterSearchReadGroupSetsRequest < 3) { - o.datasetIds = buildUnnamed2543(); + o.datasetIds = buildUnnamed2580(); o.name = "foo"; o.pageSize = 42; o.pageToken = "foo"; @@ -2026,7 +2026,7 @@ checkSearchReadGroupSetsRequest(api.SearchReadGroupSetsRequest o) { buildCounterSearchReadGroupSetsRequest++; if (buildCounterSearchReadGroupSetsRequest < 3) { - checkUnnamed2543(o.datasetIds); + checkUnnamed2580(o.datasetIds); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); @@ -2034,14 +2034,14 @@ buildCounterSearchReadGroupSetsRequest--; } -buildUnnamed2544() { +buildUnnamed2581() { var o = new core.List<api.ReadGroupSet>(); o.add(buildReadGroupSet()); o.add(buildReadGroupSet()); return o; } -checkUnnamed2544(core.List<api.ReadGroupSet> o) { +checkUnnamed2581(core.List<api.ReadGroupSet> o) { unittest.expect(o, unittest.hasLength(2)); checkReadGroupSet(o[0]); checkReadGroupSet(o[1]); @@ -2053,7 +2053,7 @@ buildCounterSearchReadGroupSetsResponse++; if (buildCounterSearchReadGroupSetsResponse < 3) { o.nextPageToken = "foo"; - o.readGroupSets = buildUnnamed2544(); + o.readGroupSets = buildUnnamed2581(); } buildCounterSearchReadGroupSetsResponse--; return o; @@ -2063,32 +2063,32 @@ buildCounterSearchReadGroupSetsResponse++; if (buildCounterSearchReadGroupSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2544(o.readGroupSets); + checkUnnamed2581(o.readGroupSets); } buildCounterSearchReadGroupSetsResponse--; } -buildUnnamed2545() { +buildUnnamed2582() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2545(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')); } -buildUnnamed2546() { +buildUnnamed2583() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2546(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')); @@ -2102,8 +2102,8 @@ o.end = "foo"; o.pageSize = 42; o.pageToken = "foo"; - o.readGroupIds = buildUnnamed2545(); - o.readGroupSetIds = buildUnnamed2546(); + o.readGroupIds = buildUnnamed2582(); + o.readGroupSetIds = buildUnnamed2583(); o.referenceName = "foo"; o.start = "foo"; } @@ -2117,22 +2117,22 @@ unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed2545(o.readGroupIds); - checkUnnamed2546(o.readGroupSetIds); + checkUnnamed2582(o.readGroupIds); + checkUnnamed2583(o.readGroupSetIds); unittest.expect(o.referenceName, unittest.equals('foo')); unittest.expect(o.start, unittest.equals('foo')); } buildCounterSearchReadsRequest--; } -buildUnnamed2547() { +buildUnnamed2584() { var o = new core.List<api.Read>(); o.add(buildRead()); o.add(buildRead()); return o; } -checkUnnamed2547(core.List<api.Read> o) { +checkUnnamed2584(core.List<api.Read> o) { unittest.expect(o, unittest.hasLength(2)); checkRead(o[0]); checkRead(o[1]); @@ -2143,7 +2143,7 @@ var o = new api.SearchReadsResponse(); buildCounterSearchReadsResponse++; if (buildCounterSearchReadsResponse < 3) { - o.alignments = buildUnnamed2547(); + o.alignments = buildUnnamed2584(); o.nextPageToken = "foo"; } buildCounterSearchReadsResponse--; @@ -2153,33 +2153,33 @@ checkSearchReadsResponse(api.SearchReadsResponse o) { buildCounterSearchReadsResponse++; if (buildCounterSearchReadsResponse < 3) { - checkUnnamed2547(o.alignments); + checkUnnamed2584(o.alignments); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchReadsResponse--; } -buildUnnamed2548() { +buildUnnamed2585() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2548(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')); } -buildUnnamed2549() { +buildUnnamed2586() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2549(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')); @@ -2190,9 +2190,9 @@ var o = new api.SearchReferenceSetsRequest(); buildCounterSearchReferenceSetsRequest++; if (buildCounterSearchReferenceSetsRequest < 3) { - o.accessions = buildUnnamed2548(); + o.accessions = buildUnnamed2585(); o.assemblyId = "foo"; - o.md5checksums = buildUnnamed2549(); + o.md5checksums = buildUnnamed2586(); o.pageSize = 42; o.pageToken = "foo"; } @@ -2203,23 +2203,23 @@ checkSearchReferenceSetsRequest(api.SearchReferenceSetsRequest o) { buildCounterSearchReferenceSetsRequest++; if (buildCounterSearchReferenceSetsRequest < 3) { - checkUnnamed2548(o.accessions); + checkUnnamed2585(o.accessions); unittest.expect(o.assemblyId, unittest.equals('foo')); - checkUnnamed2549(o.md5checksums); + checkUnnamed2586(o.md5checksums); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); } buildCounterSearchReferenceSetsRequest--; } -buildUnnamed2550() { +buildUnnamed2587() { var o = new core.List<api.ReferenceSet>(); o.add(buildReferenceSet()); o.add(buildReferenceSet()); return o; } -checkUnnamed2550(core.List<api.ReferenceSet> o) { +checkUnnamed2587(core.List<api.ReferenceSet> o) { unittest.expect(o, unittest.hasLength(2)); checkReferenceSet(o[0]); checkReferenceSet(o[1]); @@ -2231,7 +2231,7 @@ buildCounterSearchReferenceSetsResponse++; if (buildCounterSearchReferenceSetsResponse < 3) { o.nextPageToken = "foo"; - o.referenceSets = buildUnnamed2550(); + o.referenceSets = buildUnnamed2587(); } buildCounterSearchReferenceSetsResponse--; return o; @@ -2241,32 +2241,32 @@ buildCounterSearchReferenceSetsResponse++; if (buildCounterSearchReferenceSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2550(o.referenceSets); + checkUnnamed2587(o.referenceSets); } buildCounterSearchReferenceSetsResponse--; } -buildUnnamed2551() { +buildUnnamed2588() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2551(core.List<core.String> o) { +checkUnnamed2588(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2552() { +buildUnnamed2589() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2552(core.List<core.String> o) { +checkUnnamed2589(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2277,8 +2277,8 @@ var o = new api.SearchReferencesRequest(); buildCounterSearchReferencesRequest++; if (buildCounterSearchReferencesRequest < 3) { - o.accessions = buildUnnamed2551(); - o.md5checksums = buildUnnamed2552(); + o.accessions = buildUnnamed2588(); + o.md5checksums = buildUnnamed2589(); o.pageSize = 42; o.pageToken = "foo"; o.referenceSetId = "foo"; @@ -2290,8 +2290,8 @@ checkSearchReferencesRequest(api.SearchReferencesRequest o) { buildCounterSearchReferencesRequest++; if (buildCounterSearchReferencesRequest < 3) { - checkUnnamed2551(o.accessions); - checkUnnamed2552(o.md5checksums); + checkUnnamed2588(o.accessions); + checkUnnamed2589(o.md5checksums); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); @@ -2299,14 +2299,14 @@ buildCounterSearchReferencesRequest--; } -buildUnnamed2553() { +buildUnnamed2590() { var o = new core.List<api.Reference>(); o.add(buildReference()); o.add(buildReference()); return o; } -checkUnnamed2553(core.List<api.Reference> o) { +checkUnnamed2590(core.List<api.Reference> o) { unittest.expect(o, unittest.hasLength(2)); checkReference(o[0]); checkReference(o[1]); @@ -2318,7 +2318,7 @@ buildCounterSearchReferencesResponse++; if (buildCounterSearchReferencesResponse < 3) { o.nextPageToken = "foo"; - o.references = buildUnnamed2553(); + o.references = buildUnnamed2590(); } buildCounterSearchReferencesResponse--; return o; @@ -2328,19 +2328,19 @@ buildCounterSearchReferencesResponse++; if (buildCounterSearchReferencesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2553(o.references); + checkUnnamed2590(o.references); } buildCounterSearchReferencesResponse--; } -buildUnnamed2554() { +buildUnnamed2591() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2554(core.List<core.String> o) { +checkUnnamed2591(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2351,7 +2351,7 @@ var o = new api.SearchVariantSetsRequest(); buildCounterSearchVariantSetsRequest++; if (buildCounterSearchVariantSetsRequest < 3) { - o.datasetIds = buildUnnamed2554(); + o.datasetIds = buildUnnamed2591(); o.pageSize = 42; o.pageToken = "foo"; } @@ -2362,21 +2362,21 @@ checkSearchVariantSetsRequest(api.SearchVariantSetsRequest o) { buildCounterSearchVariantSetsRequest++; if (buildCounterSearchVariantSetsRequest < 3) { - checkUnnamed2554(o.datasetIds); + checkUnnamed2591(o.datasetIds); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); } buildCounterSearchVariantSetsRequest--; } -buildUnnamed2555() { +buildUnnamed2592() { var o = new core.List<api.VariantSet>(); o.add(buildVariantSet()); o.add(buildVariantSet()); return o; } -checkUnnamed2555(core.List<api.VariantSet> o) { +checkUnnamed2592(core.List<api.VariantSet> o) { unittest.expect(o, unittest.hasLength(2)); checkVariantSet(o[0]); checkVariantSet(o[1]); @@ -2388,7 +2388,7 @@ buildCounterSearchVariantSetsResponse++; if (buildCounterSearchVariantSetsResponse < 3) { o.nextPageToken = "foo"; - o.variantSets = buildUnnamed2555(); + o.variantSets = buildUnnamed2592(); } buildCounterSearchVariantSetsResponse--; return o; @@ -2398,32 +2398,32 @@ buildCounterSearchVariantSetsResponse++; if (buildCounterSearchVariantSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2555(o.variantSets); + checkUnnamed2592(o.variantSets); } buildCounterSearchVariantSetsResponse--; } -buildUnnamed2556() { +buildUnnamed2593() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2556(core.List<core.String> o) { +checkUnnamed2593(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2557() { +buildUnnamed2594() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2557(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')); @@ -2434,7 +2434,7 @@ var o = new api.SearchVariantsRequest(); buildCounterSearchVariantsRequest++; if (buildCounterSearchVariantsRequest < 3) { - o.callSetIds = buildUnnamed2556(); + o.callSetIds = buildUnnamed2593(); o.end = "foo"; o.maxCalls = 42; o.pageSize = 42; @@ -2442,7 +2442,7 @@ o.referenceName = "foo"; o.start = "foo"; o.variantName = "foo"; - o.variantSetIds = buildUnnamed2557(); + o.variantSetIds = buildUnnamed2594(); } buildCounterSearchVariantsRequest--; return o; @@ -2451,7 +2451,7 @@ checkSearchVariantsRequest(api.SearchVariantsRequest o) { buildCounterSearchVariantsRequest++; if (buildCounterSearchVariantsRequest < 3) { - checkUnnamed2556(o.callSetIds); + checkUnnamed2593(o.callSetIds); unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.maxCalls, unittest.equals(42)); unittest.expect(o.pageSize, unittest.equals(42)); @@ -2459,19 +2459,19 @@ unittest.expect(o.referenceName, unittest.equals('foo')); unittest.expect(o.start, unittest.equals('foo')); unittest.expect(o.variantName, unittest.equals('foo')); - checkUnnamed2557(o.variantSetIds); + checkUnnamed2594(o.variantSetIds); } buildCounterSearchVariantsRequest--; } -buildUnnamed2558() { +buildUnnamed2595() { var o = new core.List<api.Variant>(); o.add(buildVariant()); o.add(buildVariant()); return o; } -checkUnnamed2558(core.List<api.Variant> o) { +checkUnnamed2595(core.List<api.Variant> o) { unittest.expect(o, unittest.hasLength(2)); checkVariant(o[0]); checkVariant(o[1]); @@ -2483,7 +2483,7 @@ buildCounterSearchVariantsResponse++; if (buildCounterSearchVariantsResponse < 3) { o.nextPageToken = "foo"; - o.variants = buildUnnamed2558(); + o.variants = buildUnnamed2595(); } buildCounterSearchVariantsResponse--; return o; @@ -2493,7 +2493,7 @@ buildCounterSearchVariantsResponse++; if (buildCounterSearchVariantsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2558(o.variants); + checkUnnamed2595(o.variants); } buildCounterSearchVariantsResponse--; } @@ -2517,30 +2517,30 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed2559() { +buildUnnamed2596() { 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; } -checkUnnamed2559(core.Map<core.String, core.Object> o) { +checkUnnamed2596(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')); } -buildUnnamed2560() { +buildUnnamed2597() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2559()); - o.add(buildUnnamed2559()); + o.add(buildUnnamed2596()); + o.add(buildUnnamed2596()); return o; } -checkUnnamed2560(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2597(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2559(o[0]); - checkUnnamed2559(o[1]); + checkUnnamed2596(o[0]); + checkUnnamed2596(o[1]); } core.int buildCounterStatus = 0; @@ -2549,7 +2549,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2560(); + o.details = buildUnnamed2597(); o.message = "foo"; } buildCounterStatus--; @@ -2560,20 +2560,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2560(o.details); + checkUnnamed2597(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed2561() { +buildUnnamed2598() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2561(core.List<core.String> o) { +checkUnnamed2598(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2584,7 +2584,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed2561(); + o.permissions = buildUnnamed2598(); } buildCounterTestIamPermissionsRequest--; return o; @@ -2593,19 +2593,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed2561(o.permissions); + checkUnnamed2598(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed2562() { +buildUnnamed2599() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2562(core.List<core.String> o) { +checkUnnamed2599(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2616,7 +2616,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed2562(); + o.permissions = buildUnnamed2599(); } buildCounterTestIamPermissionsResponse--; return o; @@ -2625,19 +2625,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed2562(o.permissions); + checkUnnamed2599(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed2563() { +buildUnnamed2600() { var o = new core.List<api.Exon>(); o.add(buildExon()); o.add(buildExon()); return o; } -checkUnnamed2563(core.List<api.Exon> o) { +checkUnnamed2600(core.List<api.Exon> o) { unittest.expect(o, unittest.hasLength(2)); checkExon(o[0]); checkExon(o[1]); @@ -2649,7 +2649,7 @@ buildCounterTranscript++; if (buildCounterTranscript < 3) { o.codingSequence = buildCodingSequence(); - o.exons = buildUnnamed2563(); + o.exons = buildUnnamed2600(); o.geneId = "foo"; } buildCounterTranscript--; @@ -2660,7 +2660,7 @@ buildCounterTranscript++; if (buildCounterTranscript < 3) { checkCodingSequence(o.codingSequence); - checkUnnamed2563(o.exons); + checkUnnamed2600(o.exons); unittest.expect(o.geneId, unittest.equals('foo')); } buildCounterTranscript--; @@ -2683,79 +2683,79 @@ buildCounterUndeleteDatasetRequest--; } -buildUnnamed2564() { +buildUnnamed2601() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2564(core.List<core.String> o) { +checkUnnamed2601(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2565() { +buildUnnamed2602() { var o = new core.List<api.VariantCall>(); o.add(buildVariantCall()); o.add(buildVariantCall()); return o; } -checkUnnamed2565(core.List<api.VariantCall> o) { +checkUnnamed2602(core.List<api.VariantCall> o) { unittest.expect(o, unittest.hasLength(2)); checkVariantCall(o[0]); checkVariantCall(o[1]); } -buildUnnamed2566() { +buildUnnamed2603() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2566(core.List<core.String> o) { +checkUnnamed2603(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2567() { +buildUnnamed2604() { 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; } -checkUnnamed2567(core.List<core.Object> o) { +checkUnnamed2604(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')); } -buildUnnamed2568() { +buildUnnamed2605() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2567(); - o["y"] = buildUnnamed2567(); + o["x"] = buildUnnamed2604(); + o["y"] = buildUnnamed2604(); return o; } -checkUnnamed2568(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2605(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2567(o["x"]); - checkUnnamed2567(o["y"]); + checkUnnamed2604(o["x"]); + checkUnnamed2604(o["y"]); } -buildUnnamed2569() { +buildUnnamed2606() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2569(core.List<core.String> o) { +checkUnnamed2606(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2766,14 +2766,14 @@ var o = new api.Variant(); buildCounterVariant++; if (buildCounterVariant < 3) { - o.alternateBases = buildUnnamed2564(); - o.calls = buildUnnamed2565(); + o.alternateBases = buildUnnamed2601(); + o.calls = buildUnnamed2602(); o.created = "foo"; o.end = "foo"; - o.filter = buildUnnamed2566(); + o.filter = buildUnnamed2603(); o.id = "foo"; - o.info = buildUnnamed2568(); - o.names = buildUnnamed2569(); + o.info = buildUnnamed2605(); + o.names = buildUnnamed2606(); o.quality = 42.0; o.referenceBases = "foo"; o.referenceName = "foo"; @@ -2787,14 +2787,14 @@ checkVariant(api.Variant o) { buildCounterVariant++; if (buildCounterVariant < 3) { - checkUnnamed2564(o.alternateBases); - checkUnnamed2565(o.calls); + checkUnnamed2601(o.alternateBases); + checkUnnamed2602(o.calls); unittest.expect(o.created, unittest.equals('foo')); unittest.expect(o.end, unittest.equals('foo')); - checkUnnamed2566(o.filter); + checkUnnamed2603(o.filter); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2568(o.info); - checkUnnamed2569(o.names); + checkUnnamed2605(o.info); + checkUnnamed2606(o.names); unittest.expect(o.quality, unittest.equals(42.0)); unittest.expect(o.referenceBases, unittest.equals('foo')); unittest.expect(o.referenceName, unittest.equals('foo')); @@ -2804,27 +2804,27 @@ buildCounterVariant--; } -buildUnnamed2570() { +buildUnnamed2607() { var o = new core.List<api.ClinicalCondition>(); o.add(buildClinicalCondition()); o.add(buildClinicalCondition()); return o; } -checkUnnamed2570(core.List<api.ClinicalCondition> o) { +checkUnnamed2607(core.List<api.ClinicalCondition> o) { unittest.expect(o, unittest.hasLength(2)); checkClinicalCondition(o[0]); checkClinicalCondition(o[1]); } -buildUnnamed2571() { +buildUnnamed2608() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2571(core.List<core.String> o) { +checkUnnamed2608(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2837,10 +2837,10 @@ if (buildCounterVariantAnnotation < 3) { o.alternateBases = "foo"; o.clinicalSignificance = "foo"; - o.conditions = buildUnnamed2570(); + o.conditions = buildUnnamed2607(); o.effect = "foo"; o.geneId = "foo"; - o.transcriptIds = buildUnnamed2571(); + o.transcriptIds = buildUnnamed2608(); o.type = "foo"; } buildCounterVariantAnnotation--; @@ -2852,65 +2852,65 @@ if (buildCounterVariantAnnotation < 3) { unittest.expect(o.alternateBases, unittest.equals('foo')); unittest.expect(o.clinicalSignificance, unittest.equals('foo')); - checkUnnamed2570(o.conditions); + checkUnnamed2607(o.conditions); unittest.expect(o.effect, unittest.equals('foo')); unittest.expect(o.geneId, unittest.equals('foo')); - checkUnnamed2571(o.transcriptIds); + checkUnnamed2608(o.transcriptIds); unittest.expect(o.type, unittest.equals('foo')); } buildCounterVariantAnnotation--; } -buildUnnamed2572() { +buildUnnamed2609() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2572(core.List<core.int> o) { +checkUnnamed2609(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)); } -buildUnnamed2573() { +buildUnnamed2610() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed2573(core.List<core.double> o) { +checkUnnamed2610(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)); } -buildUnnamed2574() { +buildUnnamed2611() { 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; } -checkUnnamed2574(core.List<core.Object> o) { +checkUnnamed2611(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted25 = (o[0]) as core.Map; unittest.expect(casted25, unittest.hasLength(3)); unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); unittest.expect(casted25["bool"], unittest.equals(true)); unittest.expect(casted25["string"], unittest.equals('foo')); var casted26 = (o[1]) as core.Map; unittest.expect(casted26, unittest.hasLength(3)); unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); unittest.expect(casted26["bool"], unittest.equals(true)); unittest.expect(casted26["string"], unittest.equals('foo')); } -buildUnnamed2575() { +buildUnnamed2612() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2574(); - o["y"] = buildUnnamed2574(); + o["x"] = buildUnnamed2611(); + o["y"] = buildUnnamed2611(); return o; } -checkUnnamed2575(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2612(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2574(o["x"]); - checkUnnamed2574(o["y"]); + checkUnnamed2611(o["x"]); + checkUnnamed2611(o["y"]); } core.int buildCounterVariantCall = 0; @@ -2920,9 +2920,9 @@ if (buildCounterVariantCall < 3) { o.callSetId = "foo"; o.callSetName = "foo"; - o.genotype = buildUnnamed2572(); - o.genotypeLikelihood = buildUnnamed2573(); - o.info = buildUnnamed2575(); + o.genotype = buildUnnamed2609(); + o.genotypeLikelihood = buildUnnamed2610(); + o.info = buildUnnamed2612(); o.phaseset = "foo"; } buildCounterVariantCall--; @@ -2934,35 +2934,35 @@ if (buildCounterVariantCall < 3) { unittest.expect(o.callSetId, unittest.equals('foo')); unittest.expect(o.callSetName, unittest.equals('foo')); - checkUnnamed2572(o.genotype); - checkUnnamed2573(o.genotypeLikelihood); - checkUnnamed2575(o.info); + checkUnnamed2609(o.genotype); + checkUnnamed2610(o.genotypeLikelihood); + checkUnnamed2612(o.info); unittest.expect(o.phaseset, unittest.equals('foo')); } buildCounterVariantCall--; } -buildUnnamed2576() { +buildUnnamed2613() { var o = new core.List<api.VariantSetMetadata>(); o.add(buildVariantSetMetadata()); o.add(buildVariantSetMetadata()); return o; } -checkUnnamed2576(core.List<api.VariantSetMetadata> o) { +checkUnnamed2613(core.List<api.VariantSetMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkVariantSetMetadata(o[0]); checkVariantSetMetadata(o[1]); } -buildUnnamed2577() { +buildUnnamed2614() { var o = new core.List<api.ReferenceBound>(); o.add(buildReferenceBound()); o.add(buildReferenceBound()); return o; } -checkUnnamed2577(core.List<api.ReferenceBound> o) { +checkUnnamed2614(core.List<api.ReferenceBound> o) { unittest.expect(o, unittest.hasLength(2)); checkReferenceBound(o[0]); checkReferenceBound(o[1]); @@ -2976,9 +2976,9 @@ o.datasetId = "foo"; o.description = "foo"; o.id = "foo"; - o.metadata = buildUnnamed2576(); + o.metadata = buildUnnamed2613(); o.name = "foo"; - o.referenceBounds = buildUnnamed2577(); + o.referenceBounds = buildUnnamed2614(); o.referenceSetId = "foo"; } buildCounterVariantSet--; @@ -2991,38 +2991,38 @@ unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2576(o.metadata); + checkUnnamed2613(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2577(o.referenceBounds); + checkUnnamed2614(o.referenceBounds); unittest.expect(o.referenceSetId, unittest.equals('foo')); } buildCounterVariantSet--; } -buildUnnamed2578() { +buildUnnamed2615() { 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; } -checkUnnamed2578(core.List<core.Object> o) { +checkUnnamed2615(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted27 = (o[0]) as core.Map; unittest.expect(casted27, unittest.hasLength(3)); unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); unittest.expect(casted27["bool"], unittest.equals(true)); unittest.expect(casted27["string"], unittest.equals('foo')); var casted28 = (o[1]) as core.Map; unittest.expect(casted28, unittest.hasLength(3)); unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); unittest.expect(casted28["bool"], unittest.equals(true)); unittest.expect(casted28["string"], unittest.equals('foo')); } -buildUnnamed2579() { +buildUnnamed2616() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2578(); - o["y"] = buildUnnamed2578(); + o["x"] = buildUnnamed2615(); + o["y"] = buildUnnamed2615(); return o; } -checkUnnamed2579(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2616(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2578(o["x"]); - checkUnnamed2578(o["y"]); + checkUnnamed2615(o["x"]); + checkUnnamed2615(o["y"]); } core.int buildCounterVariantSetMetadata = 0; @@ -3032,7 +3032,7 @@ if (buildCounterVariantSetMetadata < 3) { o.description = "foo"; o.id = "foo"; - o.info = buildUnnamed2579(); + o.info = buildUnnamed2616(); o.key = "foo"; o.number = "foo"; o.type = "foo"; @@ -3047,7 +3047,7 @@ if (buildCounterVariantSetMetadata < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2579(o.info); + checkUnnamed2616(o.info); unittest.expect(o.key, unittest.equals('foo')); unittest.expect(o.number, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -5055,9 +5055,9 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; var arg_name = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -5085,9 +5085,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), 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)); var h = { @@ -5096,7 +5096,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListOperationsResponse response) { + res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); }); @@ -5410,12 +5410,12 @@ var mock = new HttpServerMock(); api.ReadgroupsetsCoveragebucketsResourceApi res = new api.GenomicsApi(mock).readgroupsets.coveragebuckets; var arg_readGroupSetId = "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"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -5449,12 +5449,12 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + 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)); 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["targetBucketWidth"].first, unittest.equals(arg_targetBucketWidth)); var h = { @@ -5463,7 +5463,7 @@ var resp = convert.JSON.encode(buildListCoverageBucketsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_readGroupSetId, referenceName: arg_referenceName, end: arg_end, pageToken: arg_pageToken, pageSize: arg_pageSize, start: arg_start, targetBucketWidth: arg_targetBucketWidth).then(unittest.expectAsync1(((api.ListCoverageBucketsResponse response) { + res.list(arg_readGroupSetId, targetBucketWidth: arg_targetBucketWidth, referenceName: arg_referenceName, end: arg_end, pageToken: arg_pageToken, pageSize: arg_pageSize, start: arg_start).then(unittest.expectAsync1(((api.ListCoverageBucketsResponse response) { checkListCoverageBucketsResponse(response); }))); }); @@ -5626,10 +5626,10 @@ var mock = new HttpServerMock(); 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"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -5663,10 +5663,10 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), 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)); var h = { @@ -5675,7 +5675,7 @@ var resp = convert.JSON.encode(buildListBasesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_referenceId, pageToken: arg_pageToken, pageSize: arg_pageSize, start: arg_start, end: arg_end).then(unittest.expectAsync1(((api.ListBasesResponse response) { + res.list(arg_referenceId, end: arg_end, pageToken: arg_pageToken, pageSize: arg_pageSize, start: arg_start).then(unittest.expectAsync1(((api.ListBasesResponse response) { checkListBasesResponse(response); }))); });
diff --git a/generated/googleapis/test/identitytoolkit/v3_test.dart b/generated/googleapis/test/identitytoolkit/v3_test.dart index 9dd2438..5bb435c 100644 --- a/generated/googleapis/test/identitytoolkit/v3_test.dart +++ b/generated/googleapis/test/identitytoolkit/v3_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2396() { +buildUnnamed2432() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2396(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')); @@ -69,7 +69,7 @@ var o = new api.CreateAuthUriResponse(); buildCounterCreateAuthUriResponse++; if (buildCounterCreateAuthUriResponse < 3) { - o.allProviders = buildUnnamed2396(); + o.allProviders = buildUnnamed2432(); o.authUri = "foo"; o.captchaRequired = true; o.forExistingProvider = true; @@ -85,7 +85,7 @@ checkCreateAuthUriResponse(api.CreateAuthUriResponse o) { buildCounterCreateAuthUriResponse++; if (buildCounterCreateAuthUriResponse < 3) { - checkUnnamed2396(o.allProviders); + checkUnnamed2432(o.allProviders); unittest.expect(o.authUri, unittest.equals('foo')); unittest.expect(o.captchaRequired, unittest.isTrue); unittest.expect(o.forExistingProvider, unittest.isTrue); @@ -116,14 +116,14 @@ buildCounterDeleteAccountResponse--; } -buildUnnamed2397() { +buildUnnamed2433() { var o = new core.List<api.UserInfo>(); o.add(buildUserInfo()); o.add(buildUserInfo()); return o; } -checkUnnamed2397(core.List<api.UserInfo> o) { +checkUnnamed2433(core.List<api.UserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfo(o[0]); checkUserInfo(o[1]); @@ -136,7 +136,7 @@ if (buildCounterDownloadAccountResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.users = buildUnnamed2397(); + o.users = buildUnnamed2433(); } buildCounterDownloadAccountResponse--; return o; @@ -147,7 +147,7 @@ if (buildCounterDownloadAccountResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2397(o.users); + checkUnnamed2433(o.users); } buildCounterDownloadAccountResponse--; } @@ -181,14 +181,14 @@ buildCounterEmailTemplate--; } -buildUnnamed2398() { +buildUnnamed2434() { var o = new core.List<api.UserInfo>(); o.add(buildUserInfo()); o.add(buildUserInfo()); return o; } -checkUnnamed2398(core.List<api.UserInfo> o) { +checkUnnamed2434(core.List<api.UserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfo(o[0]); checkUserInfo(o[1]); @@ -200,7 +200,7 @@ buildCounterGetAccountInfoResponse++; if (buildCounterGetAccountInfoResponse < 3) { o.kind = "foo"; - o.users = buildUnnamed2398(); + o.users = buildUnnamed2434(); } buildCounterGetAccountInfoResponse--; return o; @@ -210,7 +210,7 @@ buildCounterGetAccountInfoResponse++; if (buildCounterGetAccountInfoResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2398(o.users); + checkUnnamed2434(o.users); } buildCounterGetAccountInfoResponse--; } @@ -261,14 +261,14 @@ buildCounterGetRecaptchaParamResponse--; } -buildUnnamed2399() { +buildUnnamed2435() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2399(core.Map<core.String, core.String> o) { +checkUnnamed2435(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -284,7 +284,7 @@ o.clientId = "foo"; o.context = "foo"; o.continueUri = "foo"; - o.customParameter = buildUnnamed2399(); + o.customParameter = buildUnnamed2435(); o.hostedDomain = "foo"; o.identifier = "foo"; o.oauthConsumerKey = "foo"; @@ -306,7 +306,7 @@ unittest.expect(o.clientId, unittest.equals('foo')); unittest.expect(o.context, unittest.equals('foo')); unittest.expect(o.continueUri, unittest.equals('foo')); - checkUnnamed2399(o.customParameter); + checkUnnamed2435(o.customParameter); unittest.expect(o.hostedDomain, unittest.equals('foo')); unittest.expect(o.identifier, unittest.equals('foo')); unittest.expect(o.oauthConsumerKey, unittest.equals('foo')); @@ -367,27 +367,40 @@ buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest--; } -buildUnnamed2400() { +buildUnnamed2436() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2400(core.List<core.String> o) { +checkUnnamed2436(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2401() { +buildUnnamed2437() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2401(core.List<core.String> o) { +checkUnnamed2437(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed2438() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2438(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -399,9 +412,10 @@ buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { o.delegatedProjectNumber = "foo"; - o.email = buildUnnamed2400(); + o.email = buildUnnamed2436(); o.idToken = "foo"; - o.localId = buildUnnamed2401(); + o.localId = buildUnnamed2437(); + o.phoneNumber = buildUnnamed2438(); } buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; return o; @@ -411,34 +425,35 @@ buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); - checkUnnamed2400(o.email); + checkUnnamed2436(o.email); unittest.expect(o.idToken, unittest.equals('foo')); - checkUnnamed2401(o.localId); + checkUnnamed2437(o.localId); + checkUnnamed2438(o.phoneNumber); } buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; } -buildUnnamed2402() { +buildUnnamed2439() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2402(core.List<core.String> o) { +checkUnnamed2439(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2403() { +buildUnnamed2440() { var o = new core.List<api.IdpConfig>(); o.add(buildIdpConfig()); o.add(buildIdpConfig()); return o; } -checkUnnamed2403(core.List<api.IdpConfig> o) { +checkUnnamed2440(core.List<api.IdpConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkIdpConfig(o[0]); checkIdpConfig(o[1]); @@ -451,11 +466,11 @@ if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { o.allowPasswordUser = true; o.apiKey = "foo"; - o.authorizedDomains = buildUnnamed2402(); + o.authorizedDomains = buildUnnamed2439(); o.changeEmailTemplate = buildEmailTemplate(); o.dynamicLinksDomain = "foo"; o.enableAnonymousUser = true; - o.idpConfig = buildUnnamed2403(); + o.idpConfig = buildUnnamed2440(); o.legacyResetPasswordTemplate = buildEmailTemplate(); o.projectId = "foo"; o.resetPasswordTemplate = buildEmailTemplate(); @@ -471,11 +486,11 @@ if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { unittest.expect(o.allowPasswordUser, unittest.isTrue); unittest.expect(o.apiKey, unittest.equals('foo')); - checkUnnamed2402(o.authorizedDomains); + checkUnnamed2439(o.authorizedDomains); checkEmailTemplate(o.changeEmailTemplate); unittest.expect(o.dynamicLinksDomain, unittest.equals('foo')); unittest.expect(o.enableAnonymousUser, unittest.isTrue); - checkUnnamed2403(o.idpConfig); + checkUnnamed2440(o.idpConfig); checkEmailTemplate(o.legacyResetPasswordTemplate); unittest.expect(o.projectId, unittest.equals('foo')); checkEmailTemplate(o.resetPasswordTemplate); @@ -523,40 +538,40 @@ buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest--; } -buildUnnamed2404() { +buildUnnamed2441() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2404(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')); } -buildUnnamed2405() { +buildUnnamed2442() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2405(core.List<core.String> o) { +checkUnnamed2442(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2406() { +buildUnnamed2443() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2406(core.List<core.String> o) { +checkUnnamed2443(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -571,8 +586,8 @@ o.captchaResponse = "foo"; o.createdAt = "foo"; o.delegatedProjectNumber = "foo"; - o.deleteAttribute = buildUnnamed2404(); - o.deleteProvider = buildUnnamed2405(); + o.deleteAttribute = buildUnnamed2441(); + o.deleteProvider = buildUnnamed2442(); o.disableUser = true; o.displayName = "foo"; o.email = "foo"; @@ -583,8 +598,9 @@ o.localId = "foo"; o.oobCode = "foo"; o.password = "foo"; + o.phoneNumber = "foo"; o.photoUrl = "foo"; - o.provider = buildUnnamed2406(); + o.provider = buildUnnamed2443(); o.returnSecureToken = true; o.upgradeToFederatedLogin = true; o.validSince = "foo"; @@ -600,8 +616,8 @@ unittest.expect(o.captchaResponse, unittest.equals('foo')); unittest.expect(o.createdAt, unittest.equals('foo')); unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); - checkUnnamed2404(o.deleteAttribute); - checkUnnamed2405(o.deleteProvider); + checkUnnamed2441(o.deleteAttribute); + checkUnnamed2442(o.deleteProvider); unittest.expect(o.disableUser, unittest.isTrue); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.email, unittest.equals('foo')); @@ -612,8 +628,9 @@ unittest.expect(o.localId, unittest.equals('foo')); unittest.expect(o.oobCode, unittest.equals('foo')); unittest.expect(o.password, unittest.equals('foo')); + unittest.expect(o.phoneNumber, unittest.equals('foo')); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed2406(o.provider); + checkUnnamed2443(o.provider); unittest.expect(o.returnSecureToken, unittest.isTrue); unittest.expect(o.upgradeToFederatedLogin, unittest.isTrue); unittest.expect(o.validSince, unittest.equals('foo')); @@ -621,27 +638,27 @@ buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--; } -buildUnnamed2407() { +buildUnnamed2444() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2407(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')); } -buildUnnamed2408() { +buildUnnamed2445() { var o = new core.List<api.IdpConfig>(); o.add(buildIdpConfig()); o.add(buildIdpConfig()); return o; } -checkUnnamed2408(core.List<api.IdpConfig> o) { +checkUnnamed2445(core.List<api.IdpConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkIdpConfig(o[0]); checkIdpConfig(o[1]); @@ -654,11 +671,11 @@ if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { o.allowPasswordUser = true; o.apiKey = "foo"; - o.authorizedDomains = buildUnnamed2407(); + o.authorizedDomains = buildUnnamed2444(); o.changeEmailTemplate = buildEmailTemplate(); o.delegatedProjectNumber = "foo"; o.enableAnonymousUser = true; - o.idpConfig = buildUnnamed2408(); + o.idpConfig = buildUnnamed2445(); o.legacyResetPasswordTemplate = buildEmailTemplate(); o.resetPasswordTemplate = buildEmailTemplate(); o.useEmailSending = true; @@ -673,11 +690,11 @@ if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { unittest.expect(o.allowPasswordUser, unittest.isTrue); unittest.expect(o.apiKey, unittest.equals('foo')); - checkUnnamed2407(o.authorizedDomains); + checkUnnamed2444(o.authorizedDomains); checkEmailTemplate(o.changeEmailTemplate); unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); unittest.expect(o.enableAnonymousUser, unittest.isTrue); - checkUnnamed2408(o.idpConfig); + checkUnnamed2445(o.idpConfig); checkEmailTemplate(o.legacyResetPasswordTemplate); checkEmailTemplate(o.resetPasswordTemplate); unittest.expect(o.useEmailSending, unittest.isTrue); @@ -760,6 +777,7 @@ o.instanceId = "foo"; o.localId = "foo"; o.password = "foo"; + o.phoneNumber = "foo"; o.photoUrl = "foo"; } buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest--; @@ -779,19 +797,20 @@ unittest.expect(o.instanceId, unittest.equals('foo')); unittest.expect(o.localId, unittest.equals('foo')); unittest.expect(o.password, unittest.equals('foo')); + unittest.expect(o.phoneNumber, unittest.equals('foo')); unittest.expect(o.photoUrl, unittest.equals('foo')); } buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest--; } -buildUnnamed2409() { +buildUnnamed2446() { var o = new core.List<api.UserInfo>(); o.add(buildUserInfo()); o.add(buildUserInfo()); return o; } -checkUnnamed2409(core.List<api.UserInfo> o) { +checkUnnamed2446(core.List<api.UserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfo(o[0]); checkUserInfo(o[1]); @@ -811,7 +830,7 @@ o.sanityCheck = true; o.signerKey = "foo"; o.targetProjectId = "foo"; - o.users = buildUnnamed2409(); + o.users = buildUnnamed2446(); } buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; return o; @@ -829,7 +848,7 @@ unittest.expect(o.sanityCheck, unittest.isTrue); unittest.expect(o.signerKey, unittest.equals('foo')); unittest.expect(o.targetProjectId, unittest.equals('foo')); - checkUnnamed2409(o.users); + checkUnnamed2446(o.users); } buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; } @@ -933,14 +952,14 @@ buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest--; } -buildUnnamed2410() { +buildUnnamed2447() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2410(core.List<core.String> o) { +checkUnnamed2447(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -956,7 +975,7 @@ o.experimentPercent = 42; o.provider = "foo"; o.secret = "foo"; - o.whitelistedAudiences = buildUnnamed2410(); + o.whitelistedAudiences = buildUnnamed2447(); } buildCounterIdpConfig--; return o; @@ -970,7 +989,7 @@ unittest.expect(o.experimentPercent, unittest.equals(42)); unittest.expect(o.provider, unittest.equals('foo')); unittest.expect(o.secret, unittest.equals('foo')); - checkUnnamed2410(o.whitelistedAudiences); + checkUnnamed2447(o.whitelistedAudiences); } buildCounterIdpConfig--; } @@ -1072,14 +1091,14 @@ buildCounterSetAccountInfoResponseProviderUserInfo--; } -buildUnnamed2411() { +buildUnnamed2448() { var o = new core.List<api.SetAccountInfoResponseProviderUserInfo>(); o.add(buildSetAccountInfoResponseProviderUserInfo()); o.add(buildSetAccountInfoResponseProviderUserInfo()); return o; } -checkUnnamed2411(core.List<api.SetAccountInfoResponseProviderUserInfo> o) { +checkUnnamed2448(core.List<api.SetAccountInfoResponseProviderUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSetAccountInfoResponseProviderUserInfo(o[0]); checkSetAccountInfoResponseProviderUserInfo(o[1]); @@ -1100,7 +1119,7 @@ o.newEmail = "foo"; o.passwordHash = "foo"; o.photoUrl = "foo"; - o.providerUserInfo = buildUnnamed2411(); + o.providerUserInfo = buildUnnamed2448(); o.refreshToken = "foo"; } buildCounterSetAccountInfoResponse--; @@ -1120,7 +1139,7 @@ unittest.expect(o.newEmail, unittest.equals('foo')); unittest.expect(o.passwordHash, unittest.equals('foo')); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed2411(o.providerUserInfo); + checkUnnamed2448(o.providerUserInfo); unittest.expect(o.refreshToken, unittest.equals('foo')); } buildCounterSetAccountInfoResponse--; @@ -1178,14 +1197,14 @@ buildCounterUploadAccountResponseError--; } -buildUnnamed2412() { +buildUnnamed2449() { var o = new core.List<api.UploadAccountResponseError>(); o.add(buildUploadAccountResponseError()); o.add(buildUploadAccountResponseError()); return o; } -checkUnnamed2412(core.List<api.UploadAccountResponseError> o) { +checkUnnamed2449(core.List<api.UploadAccountResponseError> o) { unittest.expect(o, unittest.hasLength(2)); checkUploadAccountResponseError(o[0]); checkUploadAccountResponseError(o[1]); @@ -1196,7 +1215,7 @@ var o = new api.UploadAccountResponse(); buildCounterUploadAccountResponse++; if (buildCounterUploadAccountResponse < 3) { - o.error = buildUnnamed2412(); + o.error = buildUnnamed2449(); o.kind = "foo"; } buildCounterUploadAccountResponse--; @@ -1206,7 +1225,7 @@ checkUploadAccountResponse(api.UploadAccountResponse o) { buildCounterUploadAccountResponse++; if (buildCounterUploadAccountResponse < 3) { - checkUnnamed2412(o.error); + checkUnnamed2449(o.error); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUploadAccountResponse--; @@ -1245,14 +1264,14 @@ buildCounterUserInfoProviderUserInfo--; } -buildUnnamed2413() { +buildUnnamed2450() { var o = new core.List<api.UserInfoProviderUserInfo>(); o.add(buildUserInfoProviderUserInfo()); o.add(buildUserInfoProviderUserInfo()); return o; } -checkUnnamed2413(core.List<api.UserInfoProviderUserInfo> o) { +checkUnnamed2450(core.List<api.UserInfoProviderUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfoProviderUserInfo(o[0]); checkUserInfoProviderUserInfo(o[1]); @@ -1275,7 +1294,7 @@ o.passwordUpdatedAt = 42.0; o.phoneNumber = "foo"; o.photoUrl = "foo"; - o.providerUserInfo = buildUnnamed2413(); + o.providerUserInfo = buildUnnamed2450(); o.rawPassword = "foo"; o.salt = "foo"; o.screenName = "foo"; @@ -1301,7 +1320,7 @@ unittest.expect(o.passwordUpdatedAt, unittest.equals(42.0)); unittest.expect(o.phoneNumber, unittest.equals('foo')); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed2413(o.providerUserInfo); + checkUnnamed2450(o.providerUserInfo); unittest.expect(o.rawPassword, unittest.equals('foo')); unittest.expect(o.salt, unittest.equals('foo')); unittest.expect(o.screenName, unittest.equals('foo')); @@ -1311,14 +1330,14 @@ buildCounterUserInfo--; } -buildUnnamed2414() { +buildUnnamed2451() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2414(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')); @@ -1367,7 +1386,7 @@ o.refreshToken = "foo"; o.screenName = "foo"; o.timeZone = "foo"; - o.verifiedProvider = buildUnnamed2414(); + o.verifiedProvider = buildUnnamed2451(); } buildCounterVerifyAssertionResponse--; return o; @@ -1414,7 +1433,7 @@ unittest.expect(o.refreshToken, unittest.equals('foo')); unittest.expect(o.screenName, unittest.equals('foo')); unittest.expect(o.timeZone, unittest.equals('foo')); - checkUnnamed2414(o.verifiedProvider); + checkUnnamed2451(o.verifiedProvider); } buildCounterVerifyAssertionResponse--; }
diff --git a/generated/googleapis/test/language/v1_test.dart b/generated/googleapis/test/language/v1_test.dart index 1e42e56..f9cb2df 100644 --- a/generated/googleapis/test/language/v1_test.dart +++ b/generated/googleapis/test/language/v1_test.dart
@@ -72,14 +72,14 @@ buildCounterAnalyzeEntitiesRequest--; } -buildUnnamed880() { +buildUnnamed856() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed880(core.List<api.Entity> o) { +checkUnnamed856(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); @@ -90,7 +90,7 @@ var o = new api.AnalyzeEntitiesResponse(); buildCounterAnalyzeEntitiesResponse++; if (buildCounterAnalyzeEntitiesResponse < 3) { - o.entities = buildUnnamed880(); + o.entities = buildUnnamed856(); o.language = "foo"; } buildCounterAnalyzeEntitiesResponse--; @@ -100,7 +100,7 @@ checkAnalyzeEntitiesResponse(api.AnalyzeEntitiesResponse o) { buildCounterAnalyzeEntitiesResponse++; if (buildCounterAnalyzeEntitiesResponse < 3) { - checkUnnamed880(o.entities); + checkUnnamed856(o.entities); unittest.expect(o.language, unittest.equals('foo')); } buildCounterAnalyzeEntitiesResponse--; @@ -127,14 +127,14 @@ buildCounterAnalyzeSentimentRequest--; } -buildUnnamed881() { +buildUnnamed857() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed881(core.List<api.Sentence> o) { +checkUnnamed857(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); @@ -147,7 +147,7 @@ if (buildCounterAnalyzeSentimentResponse < 3) { o.documentSentiment = buildSentiment(); o.language = "foo"; - o.sentences = buildUnnamed881(); + o.sentences = buildUnnamed857(); } buildCounterAnalyzeSentimentResponse--; return o; @@ -158,7 +158,7 @@ if (buildCounterAnalyzeSentimentResponse < 3) { checkSentiment(o.documentSentiment); unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed881(o.sentences); + checkUnnamed857(o.sentences); } buildCounterAnalyzeSentimentResponse--; } @@ -184,27 +184,27 @@ buildCounterAnalyzeSyntaxRequest--; } -buildUnnamed882() { +buildUnnamed858() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed882(core.List<api.Sentence> o) { +checkUnnamed858(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); } -buildUnnamed883() { +buildUnnamed859() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed883(core.List<api.Token> o) { +checkUnnamed859(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -216,8 +216,8 @@ buildCounterAnalyzeSyntaxResponse++; if (buildCounterAnalyzeSyntaxResponse < 3) { o.language = "foo"; - o.sentences = buildUnnamed882(); - o.tokens = buildUnnamed883(); + o.sentences = buildUnnamed858(); + o.tokens = buildUnnamed859(); } buildCounterAnalyzeSyntaxResponse--; return o; @@ -227,8 +227,8 @@ buildCounterAnalyzeSyntaxResponse++; if (buildCounterAnalyzeSyntaxResponse < 3) { unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed882(o.sentences); - checkUnnamed883(o.tokens); + checkUnnamed858(o.sentences); + checkUnnamed859(o.tokens); } buildCounterAnalyzeSyntaxResponse--; } @@ -256,40 +256,40 @@ buildCounterAnnotateTextRequest--; } -buildUnnamed884() { +buildUnnamed860() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed884(core.List<api.Entity> o) { +checkUnnamed860(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); } -buildUnnamed885() { +buildUnnamed861() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed885(core.List<api.Sentence> o) { +checkUnnamed861(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); } -buildUnnamed886() { +buildUnnamed862() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed886(core.List<api.Token> o) { +checkUnnamed862(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -301,10 +301,10 @@ buildCounterAnnotateTextResponse++; if (buildCounterAnnotateTextResponse < 3) { o.documentSentiment = buildSentiment(); - o.entities = buildUnnamed884(); + o.entities = buildUnnamed860(); o.language = "foo"; - o.sentences = buildUnnamed885(); - o.tokens = buildUnnamed886(); + o.sentences = buildUnnamed861(); + o.tokens = buildUnnamed862(); } buildCounterAnnotateTextResponse--; return o; @@ -314,10 +314,10 @@ buildCounterAnnotateTextResponse++; if (buildCounterAnnotateTextResponse < 3) { checkSentiment(o.documentSentiment); - checkUnnamed884(o.entities); + checkUnnamed860(o.entities); unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed885(o.sentences); - checkUnnamed886(o.tokens); + checkUnnamed861(o.sentences); + checkUnnamed862(o.tokens); } buildCounterAnnotateTextResponse--; } @@ -368,27 +368,27 @@ buildCounterDocument--; } -buildUnnamed887() { +buildUnnamed863() { var o = new core.List<api.EntityMention>(); o.add(buildEntityMention()); o.add(buildEntityMention()); return o; } -checkUnnamed887(core.List<api.EntityMention> o) { +checkUnnamed863(core.List<api.EntityMention> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityMention(o[0]); checkEntityMention(o[1]); } -buildUnnamed888() { +buildUnnamed864() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed888(core.Map<core.String, core.String> o) { +checkUnnamed864(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -399,8 +399,8 @@ var o = new api.Entity(); buildCounterEntity++; if (buildCounterEntity < 3) { - o.mentions = buildUnnamed887(); - o.metadata = buildUnnamed888(); + o.mentions = buildUnnamed863(); + o.metadata = buildUnnamed864(); o.name = "foo"; o.salience = 42.0; o.type = "foo"; @@ -412,8 +412,8 @@ checkEntity(api.Entity o) { buildCounterEntity++; if (buildCounterEntity < 3) { - checkUnnamed887(o.mentions); - checkUnnamed888(o.metadata); + checkUnnamed863(o.mentions); + checkUnnamed864(o.metadata); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.salience, unittest.equals(42.0)); unittest.expect(o.type, unittest.equals('foo')); @@ -548,30 +548,30 @@ buildCounterSentiment--; } -buildUnnamed889() { +buildUnnamed865() { 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; } -checkUnnamed889(core.Map<core.String, core.Object> o) { +checkUnnamed865(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')); } -buildUnnamed890() { +buildUnnamed866() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed889()); - o.add(buildUnnamed889()); + o.add(buildUnnamed865()); + o.add(buildUnnamed865()); return o; } -checkUnnamed890(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed866(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed889(o[0]); - checkUnnamed889(o[1]); + checkUnnamed865(o[0]); + checkUnnamed865(o[1]); } core.int buildCounterStatus = 0; @@ -580,7 +580,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed890(); + o.details = buildUnnamed866(); o.message = "foo"; } buildCounterStatus--; @@ -591,7 +591,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed890(o.details); + checkUnnamed866(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 7da6e63..b0812b8 100644 --- a/generated/googleapis/test/licensing/v1_test.dart +++ b/generated/googleapis/test/licensing/v1_test.dart
@@ -103,14 +103,14 @@ buildCounterLicenseAssignmentInsert--; } -buildUnnamed2052() { +buildUnnamed2086() { var o = new core.List<api.LicenseAssignment>(); o.add(buildLicenseAssignment()); o.add(buildLicenseAssignment()); return o; } -checkUnnamed2052(core.List<api.LicenseAssignment> o) { +checkUnnamed2086(core.List<api.LicenseAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkLicenseAssignment(o[0]); checkLicenseAssignment(o[1]); @@ -122,7 +122,7 @@ buildCounterLicenseAssignmentList++; if (buildCounterLicenseAssignmentList < 3) { o.etag = "foo"; - o.items = buildUnnamed2052(); + o.items = buildUnnamed2086(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -134,7 +134,7 @@ buildCounterLicenseAssignmentList++; if (buildCounterLicenseAssignmentList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2052(o.items); + checkUnnamed2086(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 57e3478..0b58868 100644 --- a/generated/googleapis/test/logging/v2_test.dart +++ b/generated/googleapis/test/logging/v2_test.dart
@@ -136,27 +136,27 @@ buildCounterLabelDescriptor--; } -buildUnnamed275() { +buildUnnamed250() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed275(core.List<core.String> o) { +checkUnnamed250(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed276() { +buildUnnamed251() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed276(core.List<core.String> o) { +checkUnnamed251(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -171,8 +171,8 @@ o.orderBy = "foo"; o.pageSize = 42; o.pageToken = "foo"; - o.projectIds = buildUnnamed275(); - o.resourceNames = buildUnnamed276(); + o.projectIds = buildUnnamed250(); + o.resourceNames = buildUnnamed251(); } buildCounterListLogEntriesRequest--; return o; @@ -185,20 +185,20 @@ unittest.expect(o.orderBy, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed275(o.projectIds); - checkUnnamed276(o.resourceNames); + checkUnnamed250(o.projectIds); + checkUnnamed251(o.resourceNames); } buildCounterListLogEntriesRequest--; } -buildUnnamed277() { +buildUnnamed252() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed277(core.List<api.LogEntry> o) { +checkUnnamed252(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); @@ -209,7 +209,7 @@ var o = new api.ListLogEntriesResponse(); buildCounterListLogEntriesResponse++; if (buildCounterListLogEntriesResponse < 3) { - o.entries = buildUnnamed277(); + o.entries = buildUnnamed252(); o.nextPageToken = "foo"; } buildCounterListLogEntriesResponse--; @@ -219,20 +219,20 @@ checkListLogEntriesResponse(api.ListLogEntriesResponse o) { buildCounterListLogEntriesResponse++; if (buildCounterListLogEntriesResponse < 3) { - checkUnnamed277(o.entries); + checkUnnamed252(o.entries); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLogEntriesResponse--; } -buildUnnamed278() { +buildUnnamed253() { var o = new core.List<api.LogMetric>(); o.add(buildLogMetric()); o.add(buildLogMetric()); return o; } -checkUnnamed278(core.List<api.LogMetric> o) { +checkUnnamed253(core.List<api.LogMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkLogMetric(o[0]); checkLogMetric(o[1]); @@ -243,7 +243,7 @@ var o = new api.ListLogMetricsResponse(); buildCounterListLogMetricsResponse++; if (buildCounterListLogMetricsResponse < 3) { - o.metrics = buildUnnamed278(); + o.metrics = buildUnnamed253(); o.nextPageToken = "foo"; } buildCounterListLogMetricsResponse--; @@ -253,20 +253,20 @@ checkListLogMetricsResponse(api.ListLogMetricsResponse o) { buildCounterListLogMetricsResponse++; if (buildCounterListLogMetricsResponse < 3) { - checkUnnamed278(o.metrics); + checkUnnamed253(o.metrics); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLogMetricsResponse--; } -buildUnnamed279() { +buildUnnamed254() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed279(core.List<core.String> o) { +checkUnnamed254(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -277,7 +277,7 @@ var o = new api.ListLogsResponse(); buildCounterListLogsResponse++; if (buildCounterListLogsResponse < 3) { - o.logNames = buildUnnamed279(); + o.logNames = buildUnnamed254(); o.nextPageToken = "foo"; } buildCounterListLogsResponse--; @@ -287,20 +287,20 @@ checkListLogsResponse(api.ListLogsResponse o) { buildCounterListLogsResponse++; if (buildCounterListLogsResponse < 3) { - checkUnnamed279(o.logNames); + checkUnnamed254(o.logNames); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLogsResponse--; } -buildUnnamed280() { +buildUnnamed255() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed280(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed255(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); @@ -312,7 +312,7 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { o.nextPageToken = "foo"; - o.resourceDescriptors = buildUnnamed280(); + o.resourceDescriptors = buildUnnamed255(); } buildCounterListMonitoredResourceDescriptorsResponse--; return o; @@ -322,19 +322,19 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed280(o.resourceDescriptors); + checkUnnamed255(o.resourceDescriptors); } buildCounterListMonitoredResourceDescriptorsResponse--; } -buildUnnamed281() { +buildUnnamed256() { var o = new core.List<api.LogSink>(); o.add(buildLogSink()); o.add(buildLogSink()); return o; } -checkUnnamed281(core.List<api.LogSink> o) { +checkUnnamed256(core.List<api.LogSink> o) { unittest.expect(o, unittest.hasLength(2)); checkLogSink(o[0]); checkLogSink(o[1]); @@ -346,7 +346,7 @@ buildCounterListSinksResponse++; if (buildCounterListSinksResponse < 3) { o.nextPageToken = "foo"; - o.sinks = buildUnnamed281(); + o.sinks = buildUnnamed256(); } buildCounterListSinksResponse--; return o; @@ -356,45 +356,45 @@ buildCounterListSinksResponse++; if (buildCounterListSinksResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed281(o.sinks); + checkUnnamed256(o.sinks); } buildCounterListSinksResponse--; } -buildUnnamed282() { +buildUnnamed257() { 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; } -checkUnnamed282(core.Map<core.String, core.Object> o) { +checkUnnamed257(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')); } -buildUnnamed283() { +buildUnnamed258() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed283(core.Map<core.String, core.String> o) { +checkUnnamed258(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed284() { +buildUnnamed259() { 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; } -checkUnnamed284(core.Map<core.String, core.Object> o) { +checkUnnamed259(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')); @@ -407,11 +407,11 @@ if (buildCounterLogEntry < 3) { o.httpRequest = buildHttpRequest(); o.insertId = "foo"; - o.jsonPayload = buildUnnamed282(); - o.labels = buildUnnamed283(); + o.jsonPayload = buildUnnamed257(); + o.labels = buildUnnamed258(); o.logName = "foo"; o.operation = buildLogEntryOperation(); - o.protoPayload = buildUnnamed284(); + o.protoPayload = buildUnnamed259(); o.receiveTimestamp = "foo"; o.resource = buildMonitoredResource(); o.severity = "foo"; @@ -429,11 +429,11 @@ if (buildCounterLogEntry < 3) { checkHttpRequest(o.httpRequest); unittest.expect(o.insertId, unittest.equals('foo')); - checkUnnamed282(o.jsonPayload); - checkUnnamed283(o.labels); + checkUnnamed257(o.jsonPayload); + checkUnnamed258(o.labels); unittest.expect(o.logName, unittest.equals('foo')); checkLogEntryOperation(o.operation); - checkUnnamed284(o.protoPayload); + checkUnnamed259(o.protoPayload); unittest.expect(o.receiveTimestamp, unittest.equals('foo')); checkMonitoredResource(o.resource); unittest.expect(o.severity, unittest.equals('foo')); @@ -576,14 +576,14 @@ buildCounterLogSink--; } -buildUnnamed285() { +buildUnnamed260() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed285(core.Map<core.String, core.String> o) { +checkUnnamed260(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -594,7 +594,7 @@ var o = new api.MonitoredResource(); buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - o.labels = buildUnnamed285(); + o.labels = buildUnnamed260(); o.type = "foo"; } buildCounterMonitoredResource--; @@ -604,20 +604,20 @@ checkMonitoredResource(api.MonitoredResource o) { buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - checkUnnamed285(o.labels); + checkUnnamed260(o.labels); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResource--; } -buildUnnamed286() { +buildUnnamed261() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed286(core.List<api.LabelDescriptor> o) { +checkUnnamed261(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -630,7 +630,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed286(); + o.labels = buildUnnamed261(); o.name = "foo"; o.type = "foo"; } @@ -643,34 +643,34 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed286(o.labels); + checkUnnamed261(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResourceDescriptor--; } -buildUnnamed287() { +buildUnnamed262() { var o = new core.List<api.LogLine>(); o.add(buildLogLine()); o.add(buildLogLine()); return o; } -checkUnnamed287(core.List<api.LogLine> o) { +checkUnnamed262(core.List<api.LogLine> o) { unittest.expect(o, unittest.hasLength(2)); checkLogLine(o[0]); checkLogLine(o[1]); } -buildUnnamed288() { +buildUnnamed263() { var o = new core.List<api.SourceReference>(); o.add(buildSourceReference()); o.add(buildSourceReference()); return o; } -checkUnnamed288(core.List<api.SourceReference> o) { +checkUnnamed263(core.List<api.SourceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceReference(o[0]); checkSourceReference(o[1]); @@ -693,7 +693,7 @@ o.instanceIndex = 42; o.ip = "foo"; o.latency = "foo"; - o.line = buildUnnamed287(); + o.line = buildUnnamed262(); o.megaCycles = "foo"; o.method = "foo"; o.moduleId = "foo"; @@ -703,7 +703,7 @@ o.requestId = "foo"; o.resource = "foo"; o.responseSize = "foo"; - o.sourceReference = buildUnnamed288(); + o.sourceReference = buildUnnamed263(); o.startTime = "foo"; o.status = 42; o.taskName = "foo"; @@ -733,7 +733,7 @@ unittest.expect(o.instanceIndex, unittest.equals(42)); unittest.expect(o.ip, unittest.equals('foo')); unittest.expect(o.latency, unittest.equals('foo')); - checkUnnamed287(o.line); + checkUnnamed262(o.line); unittest.expect(o.megaCycles, unittest.equals('foo')); unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.moduleId, unittest.equals('foo')); @@ -743,7 +743,7 @@ unittest.expect(o.requestId, unittest.equals('foo')); unittest.expect(o.resource, unittest.equals('foo')); unittest.expect(o.responseSize, unittest.equals('foo')); - checkUnnamed288(o.sourceReference); + checkUnnamed263(o.sourceReference); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.status, unittest.equals(42)); unittest.expect(o.taskName, unittest.equals('foo')); @@ -801,27 +801,27 @@ buildCounterSourceReference--; } -buildUnnamed289() { +buildUnnamed264() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed289(core.List<api.LogEntry> o) { +checkUnnamed264(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); } -buildUnnamed290() { +buildUnnamed265() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed290(core.Map<core.String, core.String> o) { +checkUnnamed265(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -832,8 +832,8 @@ var o = new api.WriteLogEntriesRequest(); buildCounterWriteLogEntriesRequest++; if (buildCounterWriteLogEntriesRequest < 3) { - o.entries = buildUnnamed289(); - o.labels = buildUnnamed290(); + o.entries = buildUnnamed264(); + o.labels = buildUnnamed265(); o.logName = "foo"; o.partialSuccess = true; o.resource = buildMonitoredResource(); @@ -845,8 +845,8 @@ checkWriteLogEntriesRequest(api.WriteLogEntriesRequest o) { buildCounterWriteLogEntriesRequest++; if (buildCounterWriteLogEntriesRequest < 3) { - checkUnnamed289(o.entries); - checkUnnamed290(o.labels); + checkUnnamed264(o.entries); + checkUnnamed265(o.labels); unittest.expect(o.logName, unittest.equals('foo')); unittest.expect(o.partialSuccess, unittest.isTrue); checkMonitoredResource(o.resource); @@ -1122,8 +1122,8 @@ var mock = new HttpServerMock(); 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"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1151,8 +1151,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -1161,7 +1161,7 @@ var resp = convert.JSON.encode(buildListLogsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListLogsResponse response) { + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListLogsResponse response) { checkListLogsResponse(response); }))); }); @@ -1316,8 +1316,8 @@ var mock = new HttpServerMock(); api.BillingAccountsSinksResourceApi res = new api.LoggingApi(mock).billingAccounts.sinks; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1345,8 +1345,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -1355,7 +1355,7 @@ var resp = convert.JSON.encode(buildListSinksResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListSinksResponse response) { + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListSinksResponse response) { checkListSinksResponse(response); }))); }); @@ -1757,8 +1757,8 @@ var mock = new HttpServerMock(); api.FoldersSinksResourceApi res = new api.LoggingApi(mock).folders.sinks; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1786,8 +1786,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -1796,7 +1796,7 @@ var resp = convert.JSON.encode(buildListSinksResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListSinksResponse response) { + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListSinksResponse response) { checkListSinksResponse(response); }))); }); @@ -1860,8 +1860,8 @@ var mock = new HttpServerMock(); api.MonitoredResourceDescriptorsResourceApi res = new api.LoggingApi(mock).monitoredResourceDescriptors; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1888,8 +1888,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -1898,7 +1898,7 @@ var resp = convert.JSON.encode(buildListMonitoredResourceDescriptorsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListMonitoredResourceDescriptorsResponse response) { + res.list(pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListMonitoredResourceDescriptorsResponse response) { checkListMonitoredResourceDescriptorsResponse(response); }))); }); @@ -1957,8 +1957,8 @@ var mock = new HttpServerMock(); api.OrganizationsLogsResourceApi res = new api.LoggingApi(mock).organizations.logs; var arg_parent = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1986,8 +1986,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -1996,7 +1996,7 @@ var resp = convert.JSON.encode(buildListLogsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListLogsResponse response) { + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListLogsResponse response) { checkListLogsResponse(response); }))); });
diff --git a/generated/googleapis/test/manufacturers/v1_test.dart b/generated/googleapis/test/manufacturers/v1_test.dart index fbe7da7..b61de5b 100644 --- a/generated/googleapis/test/manufacturers/v1_test.dart +++ b/generated/googleapis/test/manufacturers/v1_test.dart
@@ -51,79 +51,79 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1560() { +buildUnnamed1587() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed1560(core.List<api.Image> o) { +checkUnnamed1587(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); } -buildUnnamed1561() { +buildUnnamed1588() { var o = new core.List<api.FeatureDescription>(); o.add(buildFeatureDescription()); o.add(buildFeatureDescription()); return o; } -checkUnnamed1561(core.List<api.FeatureDescription> o) { +checkUnnamed1588(core.List<api.FeatureDescription> o) { unittest.expect(o, unittest.hasLength(2)); checkFeatureDescription(o[0]); checkFeatureDescription(o[1]); } -buildUnnamed1562() { +buildUnnamed1589() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1562(core.List<core.String> o) { +checkUnnamed1589(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1563() { +buildUnnamed1590() { var o = new core.List<api.ProductDetail>(); o.add(buildProductDetail()); o.add(buildProductDetail()); return o; } -checkUnnamed1563(core.List<api.ProductDetail> o) { +checkUnnamed1590(core.List<api.ProductDetail> o) { unittest.expect(o, unittest.hasLength(2)); checkProductDetail(o[0]); checkProductDetail(o[1]); } -buildUnnamed1564() { +buildUnnamed1591() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1564(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')); } -buildUnnamed1565() { +buildUnnamed1592() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1565(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')); @@ -134,7 +134,7 @@ var o = new api.Attributes(); buildCounterAttributes++; if (buildCounterAttributes < 3) { - o.additionalImageLink = buildUnnamed1560(); + o.additionalImageLink = buildUnnamed1587(); o.ageGroup = "foo"; o.brand = "foo"; o.capacity = buildCapacity(); @@ -142,21 +142,21 @@ o.count = buildCount(); o.description = "foo"; o.disclosureDate = "foo"; - o.featureDescription = buildUnnamed1561(); + o.featureDescription = buildUnnamed1588(); o.flavor = "foo"; o.format = "foo"; o.gender = "foo"; - o.gtin = buildUnnamed1562(); + o.gtin = buildUnnamed1589(); o.imageLink = buildImage(); o.itemGroupId = "foo"; o.material = "foo"; o.mpn = "foo"; o.pattern = "foo"; - o.productDetail = buildUnnamed1563(); + o.productDetail = buildUnnamed1590(); o.productLine = "foo"; o.productName = "foo"; o.productPageUrl = "foo"; - o.productType = buildUnnamed1564(); + o.productType = buildUnnamed1591(); o.releaseDate = "foo"; o.scent = "foo"; o.size = "foo"; @@ -165,7 +165,7 @@ o.suggestedRetailPrice = buildPrice(); o.theme = "foo"; o.title = "foo"; - o.videoLink = buildUnnamed1565(); + o.videoLink = buildUnnamed1592(); } buildCounterAttributes--; return o; @@ -174,7 +174,7 @@ checkAttributes(api.Attributes o) { buildCounterAttributes++; if (buildCounterAttributes < 3) { - checkUnnamed1560(o.additionalImageLink); + checkUnnamed1587(o.additionalImageLink); unittest.expect(o.ageGroup, unittest.equals('foo')); unittest.expect(o.brand, unittest.equals('foo')); checkCapacity(o.capacity); @@ -182,21 +182,21 @@ checkCount(o.count); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.disclosureDate, unittest.equals('foo')); - checkUnnamed1561(o.featureDescription); + checkUnnamed1588(o.featureDescription); unittest.expect(o.flavor, unittest.equals('foo')); unittest.expect(o.format, unittest.equals('foo')); unittest.expect(o.gender, unittest.equals('foo')); - checkUnnamed1562(o.gtin); + checkUnnamed1589(o.gtin); checkImage(o.imageLink); 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')); - checkUnnamed1563(o.productDetail); + checkUnnamed1590(o.productDetail); unittest.expect(o.productLine, unittest.equals('foo')); unittest.expect(o.productName, unittest.equals('foo')); unittest.expect(o.productPageUrl, unittest.equals('foo')); - checkUnnamed1564(o.productType); + checkUnnamed1591(o.productType); unittest.expect(o.releaseDate, unittest.equals('foo')); unittest.expect(o.scent, unittest.equals('foo')); unittest.expect(o.size, unittest.equals('foo')); @@ -205,7 +205,7 @@ checkPrice(o.suggestedRetailPrice); unittest.expect(o.theme, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed1565(o.videoLink); + checkUnnamed1592(o.videoLink); } buildCounterAttributes--; } @@ -342,14 +342,14 @@ buildCounterIssue--; } -buildUnnamed1566() { +buildUnnamed1593() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed1566(core.List<api.Product> o) { +checkUnnamed1593(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -361,7 +361,7 @@ buildCounterListProductsResponse++; if (buildCounterListProductsResponse < 3) { o.nextPageToken = "foo"; - o.products = buildUnnamed1566(); + o.products = buildUnnamed1593(); } buildCounterListProductsResponse--; return o; @@ -371,7 +371,7 @@ buildCounterListProductsResponse++; if (buildCounterListProductsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1566(o.products); + checkUnnamed1593(o.products); } buildCounterListProductsResponse--; } @@ -397,27 +397,27 @@ buildCounterPrice--; } -buildUnnamed1567() { +buildUnnamed1594() { var o = new core.List<api.Issue>(); o.add(buildIssue()); o.add(buildIssue()); return o; } -checkUnnamed1567(core.List<api.Issue> o) { +checkUnnamed1594(core.List<api.Issue> o) { unittest.expect(o, unittest.hasLength(2)); checkIssue(o[0]); checkIssue(o[1]); } -buildUnnamed1568() { +buildUnnamed1595() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1568(core.List<core.String> o) { +checkUnnamed1595(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -430,8 +430,8 @@ if (buildCounterProduct < 3) { o.contentLanguage = "foo"; o.finalAttributes = buildAttributes(); - o.issues = buildUnnamed1567(); - o.manuallyDeletedAttributes = buildUnnamed1568(); + o.issues = buildUnnamed1594(); + o.manuallyDeletedAttributes = buildUnnamed1595(); o.manuallyProvidedAttributes = buildAttributes(); o.name = "foo"; o.parent = "foo"; @@ -448,8 +448,8 @@ if (buildCounterProduct < 3) { unittest.expect(o.contentLanguage, unittest.equals('foo')); checkAttributes(o.finalAttributes); - checkUnnamed1567(o.issues); - checkUnnamed1568(o.manuallyDeletedAttributes); + checkUnnamed1594(o.issues); + checkUnnamed1595(o.manuallyDeletedAttributes); checkAttributes(o.manuallyProvidedAttributes); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); @@ -682,8 +682,8 @@ var mock = new HttpServerMock(); api.AccountsProductsResourceApi res = new api.ManufacturersApi(mock).accounts.products; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -711,8 +711,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -721,7 +721,7 @@ var resp = convert.JSON.encode(buildListProductsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListProductsResponse response) { + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListProductsResponse response) { checkListProductsResponse(response); }))); });
diff --git a/generated/googleapis/test/mirror/v1_test.dart b/generated/googleapis/test/mirror/v1_test.dart index fa0410d..36ed374 100644 --- a/generated/googleapis/test/mirror/v1_test.dart +++ b/generated/googleapis/test/mirror/v1_test.dart
@@ -51,40 +51,40 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1498() { +buildUnnamed1480() { var o = new core.List<api.AuthToken>(); o.add(buildAuthToken()); o.add(buildAuthToken()); return o; } -checkUnnamed1498(core.List<api.AuthToken> o) { +checkUnnamed1480(core.List<api.AuthToken> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthToken(o[0]); checkAuthToken(o[1]); } -buildUnnamed1499() { +buildUnnamed1481() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1499(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')); } -buildUnnamed1500() { +buildUnnamed1482() { var o = new core.List<api.UserData>(); o.add(buildUserData()); o.add(buildUserData()); return o; } -checkUnnamed1500(core.List<api.UserData> o) { +checkUnnamed1482(core.List<api.UserData> o) { unittest.expect(o, unittest.hasLength(2)); checkUserData(o[0]); checkUserData(o[1]); @@ -95,10 +95,10 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.authTokens = buildUnnamed1498(); - o.features = buildUnnamed1499(); + o.authTokens = buildUnnamed1480(); + o.features = buildUnnamed1481(); o.password = "foo"; - o.userData = buildUnnamed1500(); + o.userData = buildUnnamed1482(); } buildCounterAccount--; return o; @@ -107,10 +107,10 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed1498(o.authTokens); - checkUnnamed1499(o.features); + checkUnnamed1480(o.authTokens); + checkUnnamed1481(o.features); unittest.expect(o.password, unittest.equals('foo')); - checkUnnamed1500(o.userData); + checkUnnamed1482(o.userData); } buildCounterAccount--; } @@ -140,14 +140,14 @@ buildCounterAttachment--; } -buildUnnamed1501() { +buildUnnamed1483() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed1501(core.List<api.Attachment> o) { +checkUnnamed1483(core.List<api.Attachment> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachment(o[0]); checkAttachment(o[1]); @@ -158,7 +158,7 @@ var o = new api.AttachmentsListResponse(); buildCounterAttachmentsListResponse++; if (buildCounterAttachmentsListResponse < 3) { - o.items = buildUnnamed1501(); + o.items = buildUnnamed1483(); o.kind = "foo"; } buildCounterAttachmentsListResponse--; @@ -168,7 +168,7 @@ checkAttachmentsListResponse(api.AttachmentsListResponse o) { buildCounterAttachmentsListResponse++; if (buildCounterAttachmentsListResponse < 3) { - checkUnnamed1501(o.items); + checkUnnamed1483(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAttachmentsListResponse--; @@ -214,53 +214,53 @@ buildCounterCommand--; } -buildUnnamed1502() { +buildUnnamed1484() { var o = new core.List<api.Command>(); o.add(buildCommand()); o.add(buildCommand()); return o; } -checkUnnamed1502(core.List<api.Command> o) { +checkUnnamed1484(core.List<api.Command> o) { unittest.expect(o, unittest.hasLength(2)); checkCommand(o[0]); checkCommand(o[1]); } -buildUnnamed1503() { +buildUnnamed1485() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1503(core.List<core.String> o) { +checkUnnamed1485(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1504() { +buildUnnamed1486() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1504(core.List<core.String> o) { +checkUnnamed1486(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1505() { +buildUnnamed1487() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1505(core.List<core.String> o) { +checkUnnamed1487(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -271,15 +271,15 @@ var o = new api.Contact(); buildCounterContact++; if (buildCounterContact < 3) { - o.acceptCommands = buildUnnamed1502(); - o.acceptTypes = buildUnnamed1503(); + o.acceptCommands = buildUnnamed1484(); + o.acceptTypes = buildUnnamed1485(); o.displayName = "foo"; o.id = "foo"; - o.imageUrls = buildUnnamed1504(); + o.imageUrls = buildUnnamed1486(); o.kind = "foo"; o.phoneNumber = "foo"; o.priority = 42; - o.sharingFeatures = buildUnnamed1505(); + o.sharingFeatures = buildUnnamed1487(); o.source = "foo"; o.speakableName = "foo"; o.type = "foo"; @@ -291,15 +291,15 @@ checkContact(api.Contact o) { buildCounterContact++; if (buildCounterContact < 3) { - checkUnnamed1502(o.acceptCommands); - checkUnnamed1503(o.acceptTypes); + checkUnnamed1484(o.acceptCommands); + checkUnnamed1485(o.acceptTypes); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1504(o.imageUrls); + checkUnnamed1486(o.imageUrls); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.phoneNumber, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42)); - checkUnnamed1505(o.sharingFeatures); + checkUnnamed1487(o.sharingFeatures); unittest.expect(o.source, unittest.equals('foo')); unittest.expect(o.speakableName, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -307,14 +307,14 @@ buildCounterContact--; } -buildUnnamed1506() { +buildUnnamed1488() { var o = new core.List<api.Contact>(); o.add(buildContact()); o.add(buildContact()); return o; } -checkUnnamed1506(core.List<api.Contact> o) { +checkUnnamed1488(core.List<api.Contact> o) { unittest.expect(o, unittest.hasLength(2)); checkContact(o[0]); checkContact(o[1]); @@ -325,7 +325,7 @@ var o = new api.ContactsListResponse(); buildCounterContactsListResponse++; if (buildCounterContactsListResponse < 3) { - o.items = buildUnnamed1506(); + o.items = buildUnnamed1488(); o.kind = "foo"; } buildCounterContactsListResponse--; @@ -335,7 +335,7 @@ checkContactsListResponse(api.ContactsListResponse o) { buildCounterContactsListResponse++; if (buildCounterContactsListResponse < 3) { - checkUnnamed1506(o.items); + checkUnnamed1488(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterContactsListResponse--; @@ -374,14 +374,14 @@ buildCounterLocation--; } -buildUnnamed1507() { +buildUnnamed1489() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed1507(core.List<api.Location> o) { +checkUnnamed1489(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 = buildUnnamed1507(); + o.items = buildUnnamed1489(); o.kind = "foo"; } buildCounterLocationsListResponse--; @@ -402,20 +402,20 @@ checkLocationsListResponse(api.LocationsListResponse o) { buildCounterLocationsListResponse++; if (buildCounterLocationsListResponse < 3) { - checkUnnamed1507(o.items); + checkUnnamed1489(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterLocationsListResponse--; } -buildUnnamed1508() { +buildUnnamed1490() { var o = new core.List<api.MenuValue>(); o.add(buildMenuValue()); o.add(buildMenuValue()); return o; } -checkUnnamed1508(core.List<api.MenuValue> o) { +checkUnnamed1490(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 = buildUnnamed1508(); + o.values = buildUnnamed1490(); } 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); - checkUnnamed1508(o.values); + checkUnnamed1490(o.values); } buildCounterMenuItem--; } @@ -473,14 +473,14 @@ buildCounterMenuValue--; } -buildUnnamed1509() { +buildUnnamed1491() { var o = new core.List<api.UserAction>(); o.add(buildUserAction()); o.add(buildUserAction()); return o; } -checkUnnamed1509(core.List<api.UserAction> o) { +checkUnnamed1491(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 = buildUnnamed1509(); + o.userActions = buildUnnamed1491(); 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')); - checkUnnamed1509(o.userActions); + checkUnnamed1491(o.userActions); unittest.expect(o.userToken, unittest.equals('foo')); unittest.expect(o.verifyToken, unittest.equals('foo')); } @@ -559,14 +559,14 @@ buildCounterSetting--; } -buildUnnamed1510() { +buildUnnamed1492() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1510(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')); @@ -582,7 +582,7 @@ o.id = "foo"; o.kind = "foo"; o.notification = buildNotification(); - o.operation = buildUnnamed1510(); + o.operation = buildUnnamed1492(); o.updated = core.DateTime.parse("2002-02-27T14:01:02"); o.userToken = "foo"; o.verifyToken = "foo"; @@ -599,7 +599,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkNotification(o.notification); - checkUnnamed1510(o.operation); + checkUnnamed1492(o.operation); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.userToken, unittest.equals('foo')); unittest.expect(o.verifyToken, unittest.equals('foo')); @@ -607,14 +607,14 @@ buildCounterSubscription--; } -buildUnnamed1511() { +buildUnnamed1493() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed1511(core.List<api.Subscription> o) { +checkUnnamed1493(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -625,7 +625,7 @@ var o = new api.SubscriptionsListResponse(); buildCounterSubscriptionsListResponse++; if (buildCounterSubscriptionsListResponse < 3) { - o.items = buildUnnamed1511(); + o.items = buildUnnamed1493(); o.kind = "foo"; } buildCounterSubscriptionsListResponse--; @@ -635,46 +635,46 @@ checkSubscriptionsListResponse(api.SubscriptionsListResponse o) { buildCounterSubscriptionsListResponse++; if (buildCounterSubscriptionsListResponse < 3) { - checkUnnamed1511(o.items); + checkUnnamed1493(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterSubscriptionsListResponse--; } -buildUnnamed1512() { +buildUnnamed1494() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed1512(core.List<api.Attachment> o) { +checkUnnamed1494(core.List<api.Attachment> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachment(o[0]); checkAttachment(o[1]); } -buildUnnamed1513() { +buildUnnamed1495() { var o = new core.List<api.MenuItem>(); o.add(buildMenuItem()); o.add(buildMenuItem()); return o; } -checkUnnamed1513(core.List<api.MenuItem> o) { +checkUnnamed1495(core.List<api.MenuItem> o) { unittest.expect(o, unittest.hasLength(2)); checkMenuItem(o[0]); checkMenuItem(o[1]); } -buildUnnamed1514() { +buildUnnamed1496() { var o = new core.List<api.Contact>(); o.add(buildContact()); o.add(buildContact()); return o; } -checkUnnamed1514(core.List<api.Contact> o) { +checkUnnamed1496(core.List<api.Contact> o) { unittest.expect(o, unittest.hasLength(2)); checkContact(o[0]); checkContact(o[1]); @@ -685,7 +685,7 @@ var o = new api.TimelineItem(); buildCounterTimelineItem++; if (buildCounterTimelineItem < 3) { - o.attachments = buildUnnamed1512(); + o.attachments = buildUnnamed1494(); o.bundleId = "foo"; o.canonicalUrl = "foo"; o.created = core.DateTime.parse("2002-02-27T14:01:02"); @@ -700,10 +700,10 @@ o.isPinned = true; o.kind = "foo"; o.location = buildLocation(); - o.menuItems = buildUnnamed1513(); + o.menuItems = buildUnnamed1495(); o.notification = buildNotificationConfig(); o.pinScore = 42; - o.recipients = buildUnnamed1514(); + o.recipients = buildUnnamed1496(); o.selfLink = "foo"; o.sourceItemId = "foo"; o.speakableText = "foo"; @@ -719,7 +719,7 @@ checkTimelineItem(api.TimelineItem o) { buildCounterTimelineItem++; if (buildCounterTimelineItem < 3) { - checkUnnamed1512(o.attachments); + checkUnnamed1494(o.attachments); unittest.expect(o.bundleId, unittest.equals('foo')); unittest.expect(o.canonicalUrl, unittest.equals('foo')); unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -734,10 +734,10 @@ unittest.expect(o.isPinned, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); checkLocation(o.location); - checkUnnamed1513(o.menuItems); + checkUnnamed1495(o.menuItems); checkNotificationConfig(o.notification); unittest.expect(o.pinScore, unittest.equals(42)); - checkUnnamed1514(o.recipients); + checkUnnamed1496(o.recipients); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.sourceItemId, unittest.equals('foo')); unittest.expect(o.speakableText, unittest.equals('foo')); @@ -749,14 +749,14 @@ buildCounterTimelineItem--; } -buildUnnamed1515() { +buildUnnamed1497() { var o = new core.List<api.TimelineItem>(); o.add(buildTimelineItem()); o.add(buildTimelineItem()); return o; } -checkUnnamed1515(core.List<api.TimelineItem> o) { +checkUnnamed1497(core.List<api.TimelineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkTimelineItem(o[0]); checkTimelineItem(o[1]); @@ -767,7 +767,7 @@ var o = new api.TimelineListResponse(); buildCounterTimelineListResponse++; if (buildCounterTimelineListResponse < 3) { - o.items = buildUnnamed1515(); + o.items = buildUnnamed1497(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -778,7 +778,7 @@ checkTimelineListResponse(api.TimelineListResponse o) { buildCounterTimelineListResponse++; if (buildCounterTimelineListResponse < 3) { - checkUnnamed1515(o.items); + checkUnnamed1497(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 2e01e62..5b3aa22 100644 --- a/generated/googleapis/test/ml/v1_test.dart +++ b/generated/googleapis/test/ml/v1_test.dart
@@ -121,23 +121,23 @@ buildCounterGoogleCloudMlV1HyperparameterOutputHyperparameterMetric--; } -core.int buildCounterGoogleCloudMlV1AutomaticScaling = 0; -buildGoogleCloudMlV1AutomaticScaling() { - var o = new api.GoogleCloudMlV1AutomaticScaling(); - buildCounterGoogleCloudMlV1AutomaticScaling++; - if (buildCounterGoogleCloudMlV1AutomaticScaling < 3) { +core.int buildCounterGoogleCloudMlV1AutoScaling = 0; +buildGoogleCloudMlV1AutoScaling() { + var o = new api.GoogleCloudMlV1AutoScaling(); + buildCounterGoogleCloudMlV1AutoScaling++; + if (buildCounterGoogleCloudMlV1AutoScaling < 3) { o.minNodes = 42; } - buildCounterGoogleCloudMlV1AutomaticScaling--; + buildCounterGoogleCloudMlV1AutoScaling--; return o; } -checkGoogleCloudMlV1AutomaticScaling(api.GoogleCloudMlV1AutomaticScaling o) { - buildCounterGoogleCloudMlV1AutomaticScaling++; - if (buildCounterGoogleCloudMlV1AutomaticScaling < 3) { +checkGoogleCloudMlV1AutoScaling(api.GoogleCloudMlV1AutoScaling o) { + buildCounterGoogleCloudMlV1AutoScaling++; + if (buildCounterGoogleCloudMlV1AutoScaling < 3) { unittest.expect(o.minNodes, unittest.equals(42)); } - buildCounterGoogleCloudMlV1AutomaticScaling--; + buildCounterGoogleCloudMlV1AutoScaling--; } core.int buildCounterGoogleCloudMlV1CancelJobRequest = 0; @@ -776,7 +776,7 @@ var o = new api.GoogleCloudMlV1Version(); buildCounterGoogleCloudMlV1Version++; if (buildCounterGoogleCloudMlV1Version < 3) { - o.automaticScaling = buildGoogleCloudMlV1AutomaticScaling(); + o.autoScaling = buildGoogleCloudMlV1AutoScaling(); o.createTime = "foo"; o.deploymentUri = "foo"; o.description = "foo"; @@ -795,7 +795,7 @@ checkGoogleCloudMlV1Version(api.GoogleCloudMlV1Version o) { buildCounterGoogleCloudMlV1Version++; if (buildCounterGoogleCloudMlV1Version < 3) { - checkGoogleCloudMlV1AutomaticScaling(o.automaticScaling); + checkGoogleCloudMlV1AutoScaling(o.autoScaling); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.deploymentUri, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); @@ -810,23 +810,23 @@ buildCounterGoogleCloudMlV1Version--; } -core.int buildCounterGoogleCloudMlV1beta1AutomaticScaling = 0; -buildGoogleCloudMlV1beta1AutomaticScaling() { - var o = new api.GoogleCloudMlV1beta1AutomaticScaling(); - buildCounterGoogleCloudMlV1beta1AutomaticScaling++; - if (buildCounterGoogleCloudMlV1beta1AutomaticScaling < 3) { +core.int buildCounterGoogleCloudMlV1beta1AutoScaling = 0; +buildGoogleCloudMlV1beta1AutoScaling() { + var o = new api.GoogleCloudMlV1beta1AutoScaling(); + buildCounterGoogleCloudMlV1beta1AutoScaling++; + if (buildCounterGoogleCloudMlV1beta1AutoScaling < 3) { o.minNodes = 42; } - buildCounterGoogleCloudMlV1beta1AutomaticScaling--; + buildCounterGoogleCloudMlV1beta1AutoScaling--; return o; } -checkGoogleCloudMlV1beta1AutomaticScaling(api.GoogleCloudMlV1beta1AutomaticScaling o) { - buildCounterGoogleCloudMlV1beta1AutomaticScaling++; - if (buildCounterGoogleCloudMlV1beta1AutomaticScaling < 3) { +checkGoogleCloudMlV1beta1AutoScaling(api.GoogleCloudMlV1beta1AutoScaling o) { + buildCounterGoogleCloudMlV1beta1AutoScaling++; + if (buildCounterGoogleCloudMlV1beta1AutoScaling < 3) { unittest.expect(o.minNodes, unittest.equals(42)); } - buildCounterGoogleCloudMlV1beta1AutomaticScaling--; + buildCounterGoogleCloudMlV1beta1AutoScaling--; } core.int buildCounterGoogleCloudMlV1beta1ManualScaling = 0; @@ -884,7 +884,7 @@ var o = new api.GoogleCloudMlV1beta1Version(); buildCounterGoogleCloudMlV1beta1Version++; if (buildCounterGoogleCloudMlV1beta1Version < 3) { - o.automaticScaling = buildGoogleCloudMlV1beta1AutomaticScaling(); + o.autoScaling = buildGoogleCloudMlV1beta1AutoScaling(); o.createTime = "foo"; o.deploymentUri = "foo"; o.description = "foo"; @@ -903,7 +903,7 @@ checkGoogleCloudMlV1beta1Version(api.GoogleCloudMlV1beta1Version o) { buildCounterGoogleCloudMlV1beta1Version++; if (buildCounterGoogleCloudMlV1beta1Version < 3) { - checkGoogleCloudMlV1beta1AutomaticScaling(o.automaticScaling); + checkGoogleCloudMlV1beta1AutoScaling(o.autoScaling); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.deploymentUri, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); @@ -1606,11 +1606,11 @@ }); - unittest.group("obj-schema-GoogleCloudMlV1AutomaticScaling", () { + unittest.group("obj-schema-GoogleCloudMlV1AutoScaling", () { unittest.test("to-json--from-json", () { - var o = buildGoogleCloudMlV1AutomaticScaling(); - var od = new api.GoogleCloudMlV1AutomaticScaling.fromJson(o.toJson()); - checkGoogleCloudMlV1AutomaticScaling(od); + var o = buildGoogleCloudMlV1AutoScaling(); + var od = new api.GoogleCloudMlV1AutoScaling.fromJson(o.toJson()); + checkGoogleCloudMlV1AutoScaling(od); }); }); @@ -1786,11 +1786,11 @@ }); - unittest.group("obj-schema-GoogleCloudMlV1beta1AutomaticScaling", () { + unittest.group("obj-schema-GoogleCloudMlV1beta1AutoScaling", () { unittest.test("to-json--from-json", () { - var o = buildGoogleCloudMlV1beta1AutomaticScaling(); - var od = new api.GoogleCloudMlV1beta1AutomaticScaling.fromJson(o.toJson()); - checkGoogleCloudMlV1beta1AutomaticScaling(od); + var o = buildGoogleCloudMlV1beta1AutoScaling(); + var od = new api.GoogleCloudMlV1beta1AutoScaling.fromJson(o.toJson()); + checkGoogleCloudMlV1beta1AutoScaling(od); }); });
diff --git a/generated/googleapis/test/oauth2/v2_test.dart b/generated/googleapis/test/oauth2/v2_test.dart index f454f55..def8db1 100644 --- a/generated/googleapis/test/oauth2/v2_test.dart +++ b/generated/googleapis/test/oauth2/v2_test.dart
@@ -80,14 +80,14 @@ buildCounterJwkKeys--; } -buildUnnamed2458() { +buildUnnamed2495() { var o = new core.List<api.JwkKeys>(); o.add(buildJwkKeys()); o.add(buildJwkKeys()); return o; } -checkUnnamed2458(core.List<api.JwkKeys> o) { +checkUnnamed2495(core.List<api.JwkKeys> o) { unittest.expect(o, unittest.hasLength(2)); checkJwkKeys(o[0]); checkJwkKeys(o[1]); @@ -98,7 +98,7 @@ var o = new api.Jwk(); buildCounterJwk++; if (buildCounterJwk < 3) { - o.keys = buildUnnamed2458(); + o.keys = buildUnnamed2495(); } buildCounterJwk--; return o; @@ -107,7 +107,7 @@ checkJwk(api.Jwk o) { buildCounterJwk++; if (buildCounterJwk < 3) { - checkUnnamed2458(o.keys); + checkUnnamed2495(o.keys); } buildCounterJwk--; }
diff --git a/generated/googleapis/test/playcustomapp/v1_test.dart b/generated/googleapis/test/playcustomapp/v1_test.dart new file mode 100644 index 0000000..fdbd3b3 --- /dev/null +++ b/generated/googleapis/test/playcustomapp/v1_test.dart
@@ -0,0 +1,139 @@ +library googleapis.playcustomapp.v1.test; + +import "dart:core" as core; +import "dart:collection" as collection; +import "dart:async" as async; +import "dart:convert" as convert; + +import 'package:http/http.dart' as http; +import 'package:http/testing.dart' as http_testing; +import 'package:test/test.dart' as unittest; + +import 'package:googleapis/playcustomapp/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); +} + +core.int buildCounterCustomApp = 0; +buildCustomApp() { + var o = new api.CustomApp(); + buildCounterCustomApp++; + if (buildCounterCustomApp < 3) { + o.languageCode = "foo"; + o.title = "foo"; + } + buildCounterCustomApp--; + return o; +} + +checkCustomApp(api.CustomApp o) { + buildCounterCustomApp++; + if (buildCounterCustomApp < 3) { + unittest.expect(o.languageCode, unittest.equals('foo')); + unittest.expect(o.title, unittest.equals('foo')); + } + buildCounterCustomApp--; +} + + +main() { + unittest.group("obj-schema-CustomApp", () { + unittest.test("to-json--from-json", () { + var o = buildCustomApp(); + var od = new api.CustomApp.fromJson(o.toJson()); + checkCustomApp(od); + }); + }); + + + unittest.group("resource-AccountsCustomAppsResourceApi", () { + unittest.test("method--create", () { + // TODO: Implement tests for media upload; + // TODO: Implement tests for media download; + + var mock = new HttpServerMock(); + api.AccountsCustomAppsResourceApi res = new api.PlaycustomappApi(mock).accounts.customApps; + var arg_request = buildCustomApp(); + var arg_account = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.CustomApp.fromJson(json); + checkCustomApp(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildCustomApp()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request, arg_account).then(unittest.expectAsync1(((api.CustomApp response) { + checkCustomApp(response); + }))); + }); + + }); + + +} +
diff --git a/generated/googleapis/test/plus/v1_test.dart b/generated/googleapis/test/plus/v1_test.dart index 1ec027f..8cad141 100644 --- a/generated/googleapis/test/plus/v1_test.dart +++ b/generated/googleapis/test/plus/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed179() { +buildUnnamed150() { var o = new core.List<api.PlusAclentryResource>(); o.add(buildPlusAclentryResource()); o.add(buildPlusAclentryResource()); return o; } -checkUnnamed179(core.List<api.PlusAclentryResource> o) { +checkUnnamed150(core.List<api.PlusAclentryResource> o) { unittest.expect(o, unittest.hasLength(2)); checkPlusAclentryResource(o[0]); checkPlusAclentryResource(o[1]); @@ -70,7 +70,7 @@ buildCounterAcl++; if (buildCounterAcl < 3) { o.description = "foo"; - o.items = buildUnnamed179(); + o.items = buildUnnamed150(); o.kind = "foo"; } buildCounterAcl--; @@ -81,7 +81,7 @@ buildCounterAcl++; if (buildCounterAcl < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed179(o.items); + checkUnnamed150(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAcl--; @@ -439,14 +439,14 @@ buildCounterActivityObjectAttachmentsThumbnails--; } -buildUnnamed180() { +buildUnnamed151() { var o = new core.List<api.ActivityObjectAttachmentsThumbnails>(); o.add(buildActivityObjectAttachmentsThumbnails()); o.add(buildActivityObjectAttachmentsThumbnails()); return o; } -checkUnnamed180(core.List<api.ActivityObjectAttachmentsThumbnails> o) { +checkUnnamed151(core.List<api.ActivityObjectAttachmentsThumbnails> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityObjectAttachmentsThumbnails(o[0]); checkActivityObjectAttachmentsThumbnails(o[1]); @@ -464,7 +464,7 @@ o.id = "foo"; o.image = buildActivityObjectAttachmentsImage(); o.objectType = "foo"; - o.thumbnails = buildUnnamed180(); + o.thumbnails = buildUnnamed151(); o.url = "foo"; } buildCounterActivityObjectAttachments--; @@ -481,20 +481,20 @@ unittest.expect(o.id, unittest.equals('foo')); checkActivityObjectAttachmentsImage(o.image); unittest.expect(o.objectType, unittest.equals('foo')); - checkUnnamed180(o.thumbnails); + checkUnnamed151(o.thumbnails); unittest.expect(o.url, unittest.equals('foo')); } buildCounterActivityObjectAttachments--; } -buildUnnamed181() { +buildUnnamed152() { var o = new core.List<api.ActivityObjectAttachments>(); o.add(buildActivityObjectAttachments()); o.add(buildActivityObjectAttachments()); return o; } -checkUnnamed181(core.List<api.ActivityObjectAttachments> o) { +checkUnnamed152(core.List<api.ActivityObjectAttachments> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityObjectAttachments(o[0]); checkActivityObjectAttachments(o[1]); @@ -569,7 +569,7 @@ buildCounterActivityObject++; if (buildCounterActivityObject < 3) { o.actor = buildActivityObjectActor(); - o.attachments = buildUnnamed181(); + o.attachments = buildUnnamed152(); o.content = "foo"; o.id = "foo"; o.objectType = "foo"; @@ -587,7 +587,7 @@ buildCounterActivityObject++; if (buildCounterActivityObject < 3) { checkActivityObjectActor(o.actor); - checkUnnamed181(o.attachments); + checkUnnamed152(o.attachments); unittest.expect(o.content, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.objectType, unittest.equals('foo')); @@ -676,14 +676,14 @@ buildCounterActivity--; } -buildUnnamed182() { +buildUnnamed153() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed182(core.List<api.Activity> o) { +checkUnnamed153(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -696,7 +696,7 @@ if (buildCounterActivityFeed < 3) { o.etag = "foo"; o.id = "foo"; - o.items = buildUnnamed182(); + o.items = buildUnnamed153(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -713,7 +713,7 @@ if (buildCounterActivityFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed182(o.items); + checkUnnamed153(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -850,14 +850,14 @@ buildCounterCommentInReplyTo--; } -buildUnnamed183() { +buildUnnamed154() { var o = new core.List<api.CommentInReplyTo>(); o.add(buildCommentInReplyTo()); o.add(buildCommentInReplyTo()); return o; } -checkUnnamed183(core.List<api.CommentInReplyTo> o) { +checkUnnamed154(core.List<api.CommentInReplyTo> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentInReplyTo(o[0]); checkCommentInReplyTo(o[1]); @@ -913,7 +913,7 @@ o.actor = buildCommentActor(); o.etag = "foo"; o.id = "foo"; - o.inReplyTo = buildUnnamed183(); + o.inReplyTo = buildUnnamed154(); o.kind = "foo"; o.object = buildCommentObject(); o.plusoners = buildCommentPlusoners(); @@ -932,7 +932,7 @@ checkCommentActor(o.actor); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed183(o.inReplyTo); + checkUnnamed154(o.inReplyTo); unittest.expect(o.kind, unittest.equals('foo')); checkCommentObject(o.object); checkCommentPlusoners(o.plusoners); @@ -944,14 +944,14 @@ buildCounterComment--; } -buildUnnamed184() { +buildUnnamed155() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed184(core.List<api.Comment> o) { +checkUnnamed155(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -964,7 +964,7 @@ if (buildCounterCommentFeed < 3) { o.etag = "foo"; o.id = "foo"; - o.items = buildUnnamed184(); + o.items = buildUnnamed155(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -980,7 +980,7 @@ if (buildCounterCommentFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed184(o.items); + checkUnnamed155(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -990,14 +990,14 @@ buildCounterCommentFeed--; } -buildUnnamed185() { +buildUnnamed156() { var o = new core.List<api.Person>(); o.add(buildPerson()); o.add(buildPerson()); return o; } -checkUnnamed185(core.List<api.Person> o) { +checkUnnamed156(core.List<api.Person> o) { unittest.expect(o, unittest.hasLength(2)); checkPerson(o[0]); checkPerson(o[1]); @@ -1009,7 +1009,7 @@ buildCounterPeopleFeed++; if (buildCounterPeopleFeed < 3) { o.etag = "foo"; - o.items = buildUnnamed185(); + o.items = buildUnnamed156(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1024,7 +1024,7 @@ buildCounterPeopleFeed++; if (buildCounterPeopleFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed185(o.items); + checkUnnamed156(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1143,14 +1143,14 @@ buildCounterPersonEmails--; } -buildUnnamed186() { +buildUnnamed157() { var o = new core.List<api.PersonEmails>(); o.add(buildPersonEmails()); o.add(buildPersonEmails()); return o; } -checkUnnamed186(core.List<api.PersonEmails> o) { +checkUnnamed157(core.List<api.PersonEmails> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonEmails(o[0]); checkPersonEmails(o[1]); @@ -1241,14 +1241,14 @@ buildCounterPersonOrganizations--; } -buildUnnamed187() { +buildUnnamed158() { var o = new core.List<api.PersonOrganizations>(); o.add(buildPersonOrganizations()); o.add(buildPersonOrganizations()); return o; } -checkUnnamed187(core.List<api.PersonOrganizations> o) { +checkUnnamed158(core.List<api.PersonOrganizations> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonOrganizations(o[0]); checkPersonOrganizations(o[1]); @@ -1275,14 +1275,14 @@ buildCounterPersonPlacesLived--; } -buildUnnamed188() { +buildUnnamed159() { var o = new core.List<api.PersonPlacesLived>(); o.add(buildPersonPlacesLived()); o.add(buildPersonPlacesLived()); return o; } -checkUnnamed188(core.List<api.PersonPlacesLived> o) { +checkUnnamed159(core.List<api.PersonPlacesLived> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonPlacesLived(o[0]); checkPersonPlacesLived(o[1]); @@ -1311,14 +1311,14 @@ buildCounterPersonUrls--; } -buildUnnamed189() { +buildUnnamed160() { var o = new core.List<api.PersonUrls>(); o.add(buildPersonUrls()); o.add(buildPersonUrls()); return o; } -checkUnnamed189(core.List<api.PersonUrls> o) { +checkUnnamed160(core.List<api.PersonUrls> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonUrls(o[0]); checkPersonUrls(o[1]); @@ -1338,7 +1338,7 @@ o.currentLocation = "foo"; o.displayName = "foo"; o.domain = "foo"; - o.emails = buildUnnamed186(); + o.emails = buildUnnamed157(); o.etag = "foo"; o.gender = "foo"; o.id = "foo"; @@ -1350,14 +1350,14 @@ o.nickname = "foo"; o.objectType = "foo"; o.occupation = "foo"; - o.organizations = buildUnnamed187(); - o.placesLived = buildUnnamed188(); + o.organizations = buildUnnamed158(); + o.placesLived = buildUnnamed159(); o.plusOneCount = 42; o.relationshipStatus = "foo"; o.skills = "foo"; o.tagline = "foo"; o.url = "foo"; - o.urls = buildUnnamed189(); + o.urls = buildUnnamed160(); o.verified = true; } buildCounterPerson--; @@ -1376,7 +1376,7 @@ unittest.expect(o.currentLocation, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.domain, unittest.equals('foo')); - checkUnnamed186(o.emails); + checkUnnamed157(o.emails); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.gender, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -1388,14 +1388,14 @@ unittest.expect(o.nickname, unittest.equals('foo')); unittest.expect(o.objectType, unittest.equals('foo')); unittest.expect(o.occupation, unittest.equals('foo')); - checkUnnamed187(o.organizations); - checkUnnamed188(o.placesLived); + checkUnnamed158(o.organizations); + checkUnnamed159(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')); - checkUnnamed189(o.urls); + checkUnnamed160(o.urls); unittest.expect(o.verified, unittest.isTrue); } buildCounterPerson--;
diff --git a/generated/googleapis/test/prediction/v1_6_test.dart b/generated/googleapis/test/prediction/v1_6_test.dart index 0861ca0..7772f2b 100644 --- a/generated/googleapis/test/prediction/v1_6_test.dart +++ b/generated/googleapis/test/prediction/v1_6_test.dart
@@ -72,14 +72,14 @@ buildCounterAnalyzeDataDescriptionFeaturesCategoricalValues--; } -buildUnnamed1834() { +buildUnnamed1868() { var o = new core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues>(); o.add(buildAnalyzeDataDescriptionFeaturesCategoricalValues()); o.add(buildAnalyzeDataDescriptionFeaturesCategoricalValues()); return o; } -checkUnnamed1834(core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues> o) { +checkUnnamed1868(core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues> o) { unittest.expect(o, unittest.hasLength(2)); checkAnalyzeDataDescriptionFeaturesCategoricalValues(o[0]); checkAnalyzeDataDescriptionFeaturesCategoricalValues(o[1]); @@ -91,7 +91,7 @@ buildCounterAnalyzeDataDescriptionFeaturesCategorical++; if (buildCounterAnalyzeDataDescriptionFeaturesCategorical < 3) { o.count = "foo"; - o.values = buildUnnamed1834(); + o.values = buildUnnamed1868(); } buildCounterAnalyzeDataDescriptionFeaturesCategorical--; return o; @@ -101,7 +101,7 @@ buildCounterAnalyzeDataDescriptionFeaturesCategorical++; if (buildCounterAnalyzeDataDescriptionFeaturesCategorical < 3) { unittest.expect(o.count, unittest.equals('foo')); - checkUnnamed1834(o.values); + checkUnnamed1868(o.values); } buildCounterAnalyzeDataDescriptionFeaturesCategorical--; } @@ -173,14 +173,14 @@ buildCounterAnalyzeDataDescriptionFeatures--; } -buildUnnamed1835() { +buildUnnamed1869() { var o = new core.List<api.AnalyzeDataDescriptionFeatures>(); o.add(buildAnalyzeDataDescriptionFeatures()); o.add(buildAnalyzeDataDescriptionFeatures()); return o; } -checkUnnamed1835(core.List<api.AnalyzeDataDescriptionFeatures> o) { +checkUnnamed1869(core.List<api.AnalyzeDataDescriptionFeatures> o) { unittest.expect(o, unittest.hasLength(2)); checkAnalyzeDataDescriptionFeatures(o[0]); checkAnalyzeDataDescriptionFeatures(o[1]); @@ -230,14 +230,14 @@ buildCounterAnalyzeDataDescriptionOutputFeatureText--; } -buildUnnamed1836() { +buildUnnamed1870() { var o = new core.List<api.AnalyzeDataDescriptionOutputFeatureText>(); o.add(buildAnalyzeDataDescriptionOutputFeatureText()); o.add(buildAnalyzeDataDescriptionOutputFeatureText()); return o; } -checkUnnamed1836(core.List<api.AnalyzeDataDescriptionOutputFeatureText> o) { +checkUnnamed1870(core.List<api.AnalyzeDataDescriptionOutputFeatureText> o) { unittest.expect(o, unittest.hasLength(2)); checkAnalyzeDataDescriptionOutputFeatureText(o[0]); checkAnalyzeDataDescriptionOutputFeatureText(o[1]); @@ -249,7 +249,7 @@ buildCounterAnalyzeDataDescriptionOutputFeature++; if (buildCounterAnalyzeDataDescriptionOutputFeature < 3) { o.numeric = buildAnalyzeDataDescriptionOutputFeatureNumeric(); - o.text = buildUnnamed1836(); + o.text = buildUnnamed1870(); } buildCounterAnalyzeDataDescriptionOutputFeature--; return o; @@ -259,7 +259,7 @@ buildCounterAnalyzeDataDescriptionOutputFeature++; if (buildCounterAnalyzeDataDescriptionOutputFeature < 3) { checkAnalyzeDataDescriptionOutputFeatureNumeric(o.numeric); - checkUnnamed1836(o.text); + checkUnnamed1870(o.text); } buildCounterAnalyzeDataDescriptionOutputFeature--; } @@ -269,7 +269,7 @@ var o = new api.AnalyzeDataDescription(); buildCounterAnalyzeDataDescription++; if (buildCounterAnalyzeDataDescription < 3) { - o.features = buildUnnamed1835(); + o.features = buildUnnamed1869(); o.outputFeature = buildAnalyzeDataDescriptionOutputFeature(); } buildCounterAnalyzeDataDescription--; @@ -279,72 +279,72 @@ checkAnalyzeDataDescription(api.AnalyzeDataDescription o) { buildCounterAnalyzeDataDescription++; if (buildCounterAnalyzeDataDescription < 3) { - checkUnnamed1835(o.features); + checkUnnamed1869(o.features); checkAnalyzeDataDescriptionOutputFeature(o.outputFeature); } buildCounterAnalyzeDataDescription--; } -buildUnnamed1837() { +buildUnnamed1871() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1837(core.Map<core.String, core.String> o) { +checkUnnamed1871(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1838() { +buildUnnamed1872() { var o = new core.List<core.Map<core.String, core.String>>(); - o.add(buildUnnamed1837()); - o.add(buildUnnamed1837()); + o.add(buildUnnamed1871()); + o.add(buildUnnamed1871()); return o; } -checkUnnamed1838(core.List<core.Map<core.String, core.String>> o) { +checkUnnamed1872(core.List<core.Map<core.String, core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1837(o[0]); - checkUnnamed1837(o[1]); + checkUnnamed1871(o[0]); + checkUnnamed1871(o[1]); } -buildUnnamed1839() { +buildUnnamed1873() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1839(core.Map<core.String, core.String> o) { +checkUnnamed1873(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1840() { +buildUnnamed1874() { var o = new core.Map<core.String, core.Map<core.String, core.String>>(); - o["x"] = buildUnnamed1839(); - o["y"] = buildUnnamed1839(); + o["x"] = buildUnnamed1873(); + o["y"] = buildUnnamed1873(); return o; } -checkUnnamed1840(core.Map<core.String, core.Map<core.String, core.String>> o) { +checkUnnamed1874(core.Map<core.String, core.Map<core.String, core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1839(o["x"]); - checkUnnamed1839(o["y"]); + checkUnnamed1873(o["x"]); + checkUnnamed1873(o["y"]); } -buildUnnamed1841() { +buildUnnamed1875() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1841(core.Map<core.String, core.String> o) { +checkUnnamed1875(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -355,8 +355,8 @@ var o = new api.AnalyzeModelDescription(); buildCounterAnalyzeModelDescription++; if (buildCounterAnalyzeModelDescription < 3) { - o.confusionMatrix = buildUnnamed1840(); - o.confusionMatrixRowTotals = buildUnnamed1841(); + o.confusionMatrix = buildUnnamed1874(); + o.confusionMatrixRowTotals = buildUnnamed1875(); o.modelinfo = buildInsert2(); } buildCounterAnalyzeModelDescription--; @@ -366,8 +366,8 @@ checkAnalyzeModelDescription(api.AnalyzeModelDescription o) { buildCounterAnalyzeModelDescription++; if (buildCounterAnalyzeModelDescription < 3) { - checkUnnamed1840(o.confusionMatrix); - checkUnnamed1841(o.confusionMatrixRowTotals); + checkUnnamed1874(o.confusionMatrix); + checkUnnamed1875(o.confusionMatrixRowTotals); checkInsert2(o.modelinfo); } buildCounterAnalyzeModelDescription--; @@ -379,7 +379,7 @@ buildCounterAnalyze++; if (buildCounterAnalyze < 3) { o.dataDescription = buildAnalyzeDataDescription(); - o.errors = buildUnnamed1838(); + o.errors = buildUnnamed1872(); o.id = "foo"; o.kind = "foo"; o.modelDescription = buildAnalyzeModelDescription(); @@ -393,7 +393,7 @@ buildCounterAnalyze++; if (buildCounterAnalyze < 3) { checkAnalyzeDataDescription(o.dataDescription); - checkUnnamed1838(o.errors); + checkUnnamed1872(o.errors); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkAnalyzeModelDescription(o.modelDescription); @@ -402,14 +402,14 @@ buildCounterAnalyze--; } -buildUnnamed1842() { +buildUnnamed1876() { 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; } -checkUnnamed1842(core.List<core.Object> o) { +checkUnnamed1876(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -420,7 +420,7 @@ var o = new api.InputInput(); buildCounterInputInput++; if (buildCounterInputInput < 3) { - o.csvInstance = buildUnnamed1842(); + o.csvInstance = buildUnnamed1876(); } buildCounterInputInput--; return o; @@ -429,7 +429,7 @@ checkInputInput(api.InputInput o) { buildCounterInputInput++; if (buildCounterInputInput < 3) { - checkUnnamed1842(o.csvInstance); + checkUnnamed1876(o.csvInstance); } buildCounterInputInput--; } @@ -453,14 +453,14 @@ buildCounterInput--; } -buildUnnamed1843() { +buildUnnamed1877() { 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; } -checkUnnamed1843(core.List<core.Object> o) { +checkUnnamed1877(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -471,7 +471,7 @@ var o = new api.InsertTrainingInstances(); buildCounterInsertTrainingInstances++; if (buildCounterInsertTrainingInstances < 3) { - o.csvInstance = buildUnnamed1843(); + o.csvInstance = buildUnnamed1877(); o.output = "foo"; } buildCounterInsertTrainingInstances--; @@ -481,49 +481,49 @@ checkInsertTrainingInstances(api.InsertTrainingInstances o) { buildCounterInsertTrainingInstances++; if (buildCounterInsertTrainingInstances < 3) { - checkUnnamed1843(o.csvInstance); + checkUnnamed1877(o.csvInstance); unittest.expect(o.output, unittest.equals('foo')); } buildCounterInsertTrainingInstances--; } -buildUnnamed1844() { +buildUnnamed1878() { var o = new core.List<api.InsertTrainingInstances>(); o.add(buildInsertTrainingInstances()); o.add(buildInsertTrainingInstances()); return o; } -checkUnnamed1844(core.List<api.InsertTrainingInstances> o) { +checkUnnamed1878(core.List<api.InsertTrainingInstances> o) { unittest.expect(o, unittest.hasLength(2)); checkInsertTrainingInstances(o[0]); checkInsertTrainingInstances(o[1]); } -buildUnnamed1845() { +buildUnnamed1879() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed1845(core.Map<core.String, core.double> o) { +checkUnnamed1879(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)); } -buildUnnamed1846() { +buildUnnamed1880() { var o = new core.List<core.Map<core.String, core.double>>(); - o.add(buildUnnamed1845()); - o.add(buildUnnamed1845()); + o.add(buildUnnamed1879()); + o.add(buildUnnamed1879()); return o; } -checkUnnamed1846(core.List<core.Map<core.String, core.double>> o) { +checkUnnamed1880(core.List<core.Map<core.String, core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1845(o[0]); - checkUnnamed1845(o[1]); + checkUnnamed1879(o[0]); + checkUnnamed1879(o[1]); } core.int buildCounterInsert = 0; @@ -537,8 +537,8 @@ o.storageDataLocation = "foo"; o.storagePMMLLocation = "foo"; o.storagePMMLModelLocation = "foo"; - o.trainingInstances = buildUnnamed1844(); - o.utility = buildUnnamed1846(); + o.trainingInstances = buildUnnamed1878(); + o.utility = buildUnnamed1880(); } buildCounterInsert--; return o; @@ -553,8 +553,8 @@ unittest.expect(o.storageDataLocation, unittest.equals('foo')); unittest.expect(o.storagePMMLLocation, unittest.equals('foo')); unittest.expect(o.storagePMMLModelLocation, unittest.equals('foo')); - checkUnnamed1844(o.trainingInstances); - checkUnnamed1846(o.utility); + checkUnnamed1878(o.trainingInstances); + checkUnnamed1880(o.utility); } buildCounterInsert--; } @@ -627,14 +627,14 @@ buildCounterInsert2--; } -buildUnnamed1847() { +buildUnnamed1881() { var o = new core.List<api.Insert2>(); o.add(buildInsert2()); o.add(buildInsert2()); return o; } -checkUnnamed1847(core.List<api.Insert2> o) { +checkUnnamed1881(core.List<api.Insert2> o) { unittest.expect(o, unittest.hasLength(2)); checkInsert2(o[0]); checkInsert2(o[1]); @@ -645,7 +645,7 @@ var o = new api.List(); buildCounterList++; if (buildCounterList < 3) { - o.items = buildUnnamed1847(); + o.items = buildUnnamed1881(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -657,7 +657,7 @@ checkList(api.List o) { buildCounterList++; if (buildCounterList < 3) { - checkUnnamed1847(o.items); + checkUnnamed1881(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -686,14 +686,14 @@ buildCounterOutputOutputMulti--; } -buildUnnamed1848() { +buildUnnamed1882() { var o = new core.List<api.OutputOutputMulti>(); o.add(buildOutputOutputMulti()); o.add(buildOutputOutputMulti()); return o; } -checkUnnamed1848(core.List<api.OutputOutputMulti> o) { +checkUnnamed1882(core.List<api.OutputOutputMulti> o) { unittest.expect(o, unittest.hasLength(2)); checkOutputOutputMulti(o[0]); checkOutputOutputMulti(o[1]); @@ -707,7 +707,7 @@ o.id = "foo"; o.kind = "foo"; o.outputLabel = "foo"; - o.outputMulti = buildUnnamed1848(); + o.outputMulti = buildUnnamed1882(); o.outputValue = "foo"; o.selfLink = "foo"; } @@ -721,21 +721,21 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.outputLabel, unittest.equals('foo')); - checkUnnamed1848(o.outputMulti); + checkUnnamed1882(o.outputMulti); unittest.expect(o.outputValue, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterOutput--; } -buildUnnamed1849() { +buildUnnamed1883() { 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; } -checkUnnamed1849(core.List<core.Object> o) { +checkUnnamed1883(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); @@ -746,7 +746,7 @@ var o = new api.Update(); buildCounterUpdate++; if (buildCounterUpdate < 3) { - o.csvInstance = buildUnnamed1849(); + o.csvInstance = buildUnnamed1883(); o.output = "foo"; } buildCounterUpdate--; @@ -756,7 +756,7 @@ checkUpdate(api.Update o) { buildCounterUpdate++; if (buildCounterUpdate < 3) { - checkUnnamed1849(o.csvInstance); + checkUnnamed1883(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 27f7458..441a71a 100644 --- a/generated/googleapis/test/pubsub/v1_test.dart +++ b/generated/googleapis/test/pubsub/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1278() { +buildUnnamed1256() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1278(core.List<core.String> o) { +checkUnnamed1256(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -69,7 +69,7 @@ var o = new api.AcknowledgeRequest(); buildCounterAcknowledgeRequest++; if (buildCounterAcknowledgeRequest < 3) { - o.ackIds = buildUnnamed1278(); + o.ackIds = buildUnnamed1256(); } buildCounterAcknowledgeRequest--; return o; @@ -78,19 +78,19 @@ checkAcknowledgeRequest(api.AcknowledgeRequest o) { buildCounterAcknowledgeRequest++; if (buildCounterAcknowledgeRequest < 3) { - checkUnnamed1278(o.ackIds); + checkUnnamed1256(o.ackIds); } buildCounterAcknowledgeRequest--; } -buildUnnamed1279() { +buildUnnamed1257() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1279(core.List<core.String> o) { +checkUnnamed1257(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -101,7 +101,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed1279(); + o.members = buildUnnamed1257(); o.role = "foo"; } buildCounterBinding--; @@ -111,7 +111,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed1279(o.members); + checkUnnamed1257(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -134,14 +134,14 @@ buildCounterEmpty--; } -buildUnnamed1280() { +buildUnnamed1258() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed1280(core.List<api.Subscription> o) { +checkUnnamed1258(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -153,7 +153,7 @@ buildCounterListSubscriptionsResponse++; if (buildCounterListSubscriptionsResponse < 3) { o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed1280(); + o.subscriptions = buildUnnamed1258(); } buildCounterListSubscriptionsResponse--; return o; @@ -163,19 +163,19 @@ buildCounterListSubscriptionsResponse++; if (buildCounterListSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1280(o.subscriptions); + checkUnnamed1258(o.subscriptions); } buildCounterListSubscriptionsResponse--; } -buildUnnamed1281() { +buildUnnamed1259() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1281(core.List<core.String> o) { +checkUnnamed1259(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -187,7 +187,7 @@ buildCounterListTopicSubscriptionsResponse++; if (buildCounterListTopicSubscriptionsResponse < 3) { o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed1281(); + o.subscriptions = buildUnnamed1259(); } buildCounterListTopicSubscriptionsResponse--; return o; @@ -197,19 +197,19 @@ buildCounterListTopicSubscriptionsResponse++; if (buildCounterListTopicSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1281(o.subscriptions); + checkUnnamed1259(o.subscriptions); } buildCounterListTopicSubscriptionsResponse--; } -buildUnnamed1282() { +buildUnnamed1260() { var o = new core.List<api.Topic>(); o.add(buildTopic()); o.add(buildTopic()); return o; } -checkUnnamed1282(core.List<api.Topic> o) { +checkUnnamed1260(core.List<api.Topic> o) { unittest.expect(o, unittest.hasLength(2)); checkTopic(o[0]); checkTopic(o[1]); @@ -221,7 +221,7 @@ buildCounterListTopicsResponse++; if (buildCounterListTopicsResponse < 3) { o.nextPageToken = "foo"; - o.topics = buildUnnamed1282(); + o.topics = buildUnnamed1260(); } buildCounterListTopicsResponse--; return o; @@ -231,19 +231,19 @@ buildCounterListTopicsResponse++; if (buildCounterListTopicsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1282(o.topics); + checkUnnamed1260(o.topics); } buildCounterListTopicsResponse--; } -buildUnnamed1283() { +buildUnnamed1261() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1283(core.List<core.String> o) { +checkUnnamed1261(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -255,7 +255,7 @@ buildCounterModifyAckDeadlineRequest++; if (buildCounterModifyAckDeadlineRequest < 3) { o.ackDeadlineSeconds = 42; - o.ackIds = buildUnnamed1283(); + o.ackIds = buildUnnamed1261(); } buildCounterModifyAckDeadlineRequest--; return o; @@ -265,7 +265,7 @@ buildCounterModifyAckDeadlineRequest++; if (buildCounterModifyAckDeadlineRequest < 3) { unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); - checkUnnamed1283(o.ackIds); + checkUnnamed1261(o.ackIds); } buildCounterModifyAckDeadlineRequest--; } @@ -289,14 +289,14 @@ buildCounterModifyPushConfigRequest--; } -buildUnnamed1284() { +buildUnnamed1262() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1284(core.List<api.Binding> o) { +checkUnnamed1262(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -307,7 +307,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed1284(); + o.bindings = buildUnnamed1262(); o.etag = "foo"; o.version = 42; } @@ -318,21 +318,21 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1284(o.bindings); + checkUnnamed1262(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed1285() { +buildUnnamed1263() { var o = new core.List<api.PubsubMessage>(); o.add(buildPubsubMessage()); o.add(buildPubsubMessage()); return o; } -checkUnnamed1285(core.List<api.PubsubMessage> o) { +checkUnnamed1263(core.List<api.PubsubMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkPubsubMessage(o[0]); checkPubsubMessage(o[1]); @@ -343,7 +343,7 @@ var o = new api.PublishRequest(); buildCounterPublishRequest++; if (buildCounterPublishRequest < 3) { - o.messages = buildUnnamed1285(); + o.messages = buildUnnamed1263(); } buildCounterPublishRequest--; return o; @@ -352,19 +352,19 @@ checkPublishRequest(api.PublishRequest o) { buildCounterPublishRequest++; if (buildCounterPublishRequest < 3) { - checkUnnamed1285(o.messages); + checkUnnamed1263(o.messages); } buildCounterPublishRequest--; } -buildUnnamed1286() { +buildUnnamed1264() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1286(core.List<core.String> o) { +checkUnnamed1264(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -375,7 +375,7 @@ var o = new api.PublishResponse(); buildCounterPublishResponse++; if (buildCounterPublishResponse < 3) { - o.messageIds = buildUnnamed1286(); + o.messageIds = buildUnnamed1264(); } buildCounterPublishResponse--; return o; @@ -384,19 +384,19 @@ checkPublishResponse(api.PublishResponse o) { buildCounterPublishResponse++; if (buildCounterPublishResponse < 3) { - checkUnnamed1286(o.messageIds); + checkUnnamed1264(o.messageIds); } buildCounterPublishResponse--; } -buildUnnamed1287() { +buildUnnamed1265() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1287(core.Map<core.String, core.String> o) { +checkUnnamed1265(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -407,7 +407,7 @@ var o = new api.PubsubMessage(); buildCounterPubsubMessage++; if (buildCounterPubsubMessage < 3) { - o.attributes = buildUnnamed1287(); + o.attributes = buildUnnamed1265(); o.data = "foo"; o.messageId = "foo"; o.publishTime = "foo"; @@ -419,7 +419,7 @@ checkPubsubMessage(api.PubsubMessage o) { buildCounterPubsubMessage++; if (buildCounterPubsubMessage < 3) { - checkUnnamed1287(o.attributes); + checkUnnamed1265(o.attributes); unittest.expect(o.data, unittest.equals('foo')); unittest.expect(o.messageId, unittest.equals('foo')); unittest.expect(o.publishTime, unittest.equals('foo')); @@ -448,14 +448,14 @@ buildCounterPullRequest--; } -buildUnnamed1288() { +buildUnnamed1266() { var o = new core.List<api.ReceivedMessage>(); o.add(buildReceivedMessage()); o.add(buildReceivedMessage()); return o; } -checkUnnamed1288(core.List<api.ReceivedMessage> o) { +checkUnnamed1266(core.List<api.ReceivedMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkReceivedMessage(o[0]); checkReceivedMessage(o[1]); @@ -466,7 +466,7 @@ var o = new api.PullResponse(); buildCounterPullResponse++; if (buildCounterPullResponse < 3) { - o.receivedMessages = buildUnnamed1288(); + o.receivedMessages = buildUnnamed1266(); } buildCounterPullResponse--; return o; @@ -475,19 +475,19 @@ checkPullResponse(api.PullResponse o) { buildCounterPullResponse++; if (buildCounterPullResponse < 3) { - checkUnnamed1288(o.receivedMessages); + checkUnnamed1266(o.receivedMessages); } buildCounterPullResponse--; } -buildUnnamed1289() { +buildUnnamed1267() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1289(core.Map<core.String, core.String> o) { +checkUnnamed1267(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -498,7 +498,7 @@ var o = new api.PushConfig(); buildCounterPushConfig++; if (buildCounterPushConfig < 3) { - o.attributes = buildUnnamed1289(); + o.attributes = buildUnnamed1267(); o.pushEndpoint = "foo"; } buildCounterPushConfig--; @@ -508,7 +508,7 @@ checkPushConfig(api.PushConfig o) { buildCounterPushConfig++; if (buildCounterPushConfig < 3) { - checkUnnamed1289(o.attributes); + checkUnnamed1267(o.attributes); unittest.expect(o.pushEndpoint, unittest.equals('foo')); } buildCounterPushConfig--; @@ -579,14 +579,14 @@ buildCounterSubscription--; } -buildUnnamed1290() { +buildUnnamed1268() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1290(core.List<core.String> o) { +checkUnnamed1268(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -597,7 +597,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1290(); + o.permissions = buildUnnamed1268(); } buildCounterTestIamPermissionsRequest--; return o; @@ -606,19 +606,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1290(o.permissions); + checkUnnamed1268(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1291() { +buildUnnamed1269() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1291(core.List<core.String> o) { +checkUnnamed1269(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -629,7 +629,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1291(); + o.permissions = buildUnnamed1269(); } buildCounterTestIamPermissionsResponse--; return o; @@ -638,7 +638,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1291(o.permissions); + checkUnnamed1269(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -1239,8 +1239,8 @@ var mock = new HttpServerMock(); api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_project = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1268,8 +1268,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -1278,7 +1278,7 @@ var resp = convert.JSON.encode(buildListSubscriptionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListSubscriptionsResponse response) { + res.list(arg_project, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListSubscriptionsResponse response) { checkListSubscriptionsResponse(response); }))); }); @@ -1721,8 +1721,8 @@ var mock = new HttpServerMock(); api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topics; var arg_project = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1750,8 +1750,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -1760,7 +1760,7 @@ var resp = convert.JSON.encode(buildListTopicsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListTopicsResponse response) { + res.list(arg_project, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListTopicsResponse response) { checkListTopicsResponse(response); }))); });
diff --git a/generated/googleapis/test/reseller/v1_test.dart b/generated/googleapis/test/reseller/v1_test.dart index dbda1ab..5fdf87d 100644 --- a/generated/googleapis/test/reseller/v1_test.dart +++ b/generated/googleapis/test/reseller/v1_test.dart
@@ -169,14 +169,14 @@ buildCounterRenewalSettings--; } -buildUnnamed2393() { +buildUnnamed2429() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2393(core.List<core.String> o) { +checkUnnamed2429(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -187,7 +187,7 @@ var o = new api.ResellernotifyGetwatchdetailsResponse(); buildCounterResellernotifyGetwatchdetailsResponse++; if (buildCounterResellernotifyGetwatchdetailsResponse < 3) { - o.serviceAccountEmailAddresses = buildUnnamed2393(); + o.serviceAccountEmailAddresses = buildUnnamed2429(); o.topicName = "foo"; } buildCounterResellernotifyGetwatchdetailsResponse--; @@ -197,7 +197,7 @@ checkResellernotifyGetwatchdetailsResponse(api.ResellernotifyGetwatchdetailsResponse o) { buildCounterResellernotifyGetwatchdetailsResponse++; if (buildCounterResellernotifyGetwatchdetailsResponse < 3) { - checkUnnamed2393(o.serviceAccountEmailAddresses); + checkUnnamed2429(o.serviceAccountEmailAddresses); unittest.expect(o.topicName, unittest.equals('foo')); } buildCounterResellernotifyGetwatchdetailsResponse--; @@ -291,14 +291,14 @@ buildCounterSubscriptionPlan--; } -buildUnnamed2394() { +buildUnnamed2430() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2394(core.List<core.String> o) { +checkUnnamed2430(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -366,7 +366,7 @@ o.skuName = "foo"; o.status = "foo"; o.subscriptionId = "foo"; - o.suspensionReasons = buildUnnamed2394(); + o.suspensionReasons = buildUnnamed2430(); o.transferInfo = buildSubscriptionTransferInfo(); o.trialSettings = buildSubscriptionTrialSettings(); } @@ -392,21 +392,21 @@ unittest.expect(o.skuName, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subscriptionId, unittest.equals('foo')); - checkUnnamed2394(o.suspensionReasons); + checkUnnamed2430(o.suspensionReasons); checkSubscriptionTransferInfo(o.transferInfo); checkSubscriptionTrialSettings(o.trialSettings); } buildCounterSubscription--; } -buildUnnamed2395() { +buildUnnamed2431() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed2395(core.List<api.Subscription> o) { +checkUnnamed2431(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -419,7 +419,7 @@ if (buildCounterSubscriptions < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed2395(); + o.subscriptions = buildUnnamed2431(); } buildCounterSubscriptions--; return o; @@ -430,7 +430,7 @@ if (buildCounterSubscriptions < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2395(o.subscriptions); + checkUnnamed2431(o.subscriptions); } buildCounterSubscriptions--; }
diff --git a/generated/googleapis/test/runtimeconfig/v1_test.dart b/generated/googleapis/test/runtimeconfig/v1_test.dart index f3d63ca..4afbf50 100644 --- a/generated/googleapis/test/runtimeconfig/v1_test.dart +++ b/generated/googleapis/test/runtimeconfig/v1_test.dart
@@ -85,14 +85,14 @@ buildCounterEmpty--; } -buildUnnamed1894() { +buildUnnamed1928() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1894(core.List<api.Operation> o) { +checkUnnamed1928(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -104,7 +104,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1894(); + o.operations = buildUnnamed1928(); } buildCounterListOperationsResponse--; return o; @@ -114,32 +114,32 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1894(o.operations); + checkUnnamed1928(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1895() { +buildUnnamed1929() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1895(core.Map<core.String, core.Object> o) { +checkUnnamed1929(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1896() { +buildUnnamed1930() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1896(core.Map<core.String, core.Object> o) { +checkUnnamed1930(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -152,9 +152,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1895(); + o.metadata = buildUnnamed1929(); o.name = "foo"; - o.response = buildUnnamed1896(); + o.response = buildUnnamed1930(); } buildCounterOperation--; return o; @@ -165,37 +165,37 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1895(o.metadata); + checkUnnamed1929(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1896(o.response); + checkUnnamed1930(o.response); } buildCounterOperation--; } -buildUnnamed1897() { +buildUnnamed1931() { 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; } -checkUnnamed1897(core.Map<core.String, core.Object> o) { +checkUnnamed1931(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')); } -buildUnnamed1898() { +buildUnnamed1932() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1897()); - o.add(buildUnnamed1897()); + o.add(buildUnnamed1931()); + o.add(buildUnnamed1931()); return o; } -checkUnnamed1898(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1932(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1897(o[0]); - checkUnnamed1897(o[1]); + checkUnnamed1931(o[0]); + checkUnnamed1931(o[1]); } core.int buildCounterStatus = 0; @@ -204,7 +204,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1898(); + o.details = buildUnnamed1932(); o.message = "foo"; } buildCounterStatus--; @@ -215,7 +215,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1898(o.details); + checkUnnamed1932(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--;
diff --git a/generated/googleapis/test/safebrowsing/v4_test.dart b/generated/googleapis/test/safebrowsing/v4_test.dart index f226af5..edc5fcb 100644 --- a/generated/googleapis/test/safebrowsing/v4_test.dart +++ b/generated/googleapis/test/safebrowsing/v4_test.dart
@@ -91,14 +91,14 @@ buildCounterClientInfo--; } -buildUnnamed1088() { +buildUnnamed1064() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1088(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')); @@ -112,7 +112,7 @@ o.maxDatabaseEntries = 42; o.maxUpdateEntries = 42; o.region = "foo"; - o.supportedCompressions = buildUnnamed1088(); + o.supportedCompressions = buildUnnamed1064(); } buildCounterConstraints--; return o; @@ -124,19 +124,19 @@ unittest.expect(o.maxDatabaseEntries, unittest.equals(42)); unittest.expect(o.maxUpdateEntries, unittest.equals(42)); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed1088(o.supportedCompressions); + checkUnnamed1064(o.supportedCompressions); } buildCounterConstraints--; } -buildUnnamed1089() { +buildUnnamed1065() { var o = new core.List<api.ListUpdateRequest>(); o.add(buildListUpdateRequest()); o.add(buildListUpdateRequest()); return o; } -checkUnnamed1089(core.List<api.ListUpdateRequest> o) { +checkUnnamed1065(core.List<api.ListUpdateRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkListUpdateRequest(o[0]); checkListUpdateRequest(o[1]); @@ -148,7 +148,7 @@ buildCounterFetchThreatListUpdatesRequest++; if (buildCounterFetchThreatListUpdatesRequest < 3) { o.client = buildClientInfo(); - o.listUpdateRequests = buildUnnamed1089(); + o.listUpdateRequests = buildUnnamed1065(); } buildCounterFetchThreatListUpdatesRequest--; return o; @@ -158,19 +158,19 @@ buildCounterFetchThreatListUpdatesRequest++; if (buildCounterFetchThreatListUpdatesRequest < 3) { checkClientInfo(o.client); - checkUnnamed1089(o.listUpdateRequests); + checkUnnamed1065(o.listUpdateRequests); } buildCounterFetchThreatListUpdatesRequest--; } -buildUnnamed1090() { +buildUnnamed1066() { var o = new core.List<api.ListUpdateResponse>(); o.add(buildListUpdateResponse()); o.add(buildListUpdateResponse()); return o; } -checkUnnamed1090(core.List<api.ListUpdateResponse> o) { +checkUnnamed1066(core.List<api.ListUpdateResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkListUpdateResponse(o[0]); checkListUpdateResponse(o[1]); @@ -181,7 +181,7 @@ var o = new api.FetchThreatListUpdatesResponse(); buildCounterFetchThreatListUpdatesResponse++; if (buildCounterFetchThreatListUpdatesResponse < 3) { - o.listUpdateResponses = buildUnnamed1090(); + o.listUpdateResponses = buildUnnamed1066(); o.minimumWaitDuration = "foo"; } buildCounterFetchThreatListUpdatesResponse--; @@ -191,20 +191,20 @@ checkFetchThreatListUpdatesResponse(api.FetchThreatListUpdatesResponse o) { buildCounterFetchThreatListUpdatesResponse++; if (buildCounterFetchThreatListUpdatesResponse < 3) { - checkUnnamed1090(o.listUpdateResponses); + checkUnnamed1066(o.listUpdateResponses); unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); } buildCounterFetchThreatListUpdatesResponse--; } -buildUnnamed1091() { +buildUnnamed1067() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1091(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')); @@ -217,7 +217,7 @@ if (buildCounterFindFullHashesRequest < 3) { o.apiClient = buildClientInfo(); o.client = buildClientInfo(); - o.clientStates = buildUnnamed1091(); + o.clientStates = buildUnnamed1067(); o.threatInfo = buildThreatInfo(); } buildCounterFindFullHashesRequest--; @@ -229,20 +229,20 @@ if (buildCounterFindFullHashesRequest < 3) { checkClientInfo(o.apiClient); checkClientInfo(o.client); - checkUnnamed1091(o.clientStates); + checkUnnamed1067(o.clientStates); checkThreatInfo(o.threatInfo); } buildCounterFindFullHashesRequest--; } -buildUnnamed1092() { +buildUnnamed1068() { var o = new core.List<api.ThreatMatch>(); o.add(buildThreatMatch()); o.add(buildThreatMatch()); return o; } -checkUnnamed1092(core.List<api.ThreatMatch> o) { +checkUnnamed1068(core.List<api.ThreatMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatMatch(o[0]); checkThreatMatch(o[1]); @@ -253,7 +253,7 @@ var o = new api.FindFullHashesResponse(); buildCounterFindFullHashesResponse++; if (buildCounterFindFullHashesResponse < 3) { - o.matches = buildUnnamed1092(); + o.matches = buildUnnamed1068(); o.minimumWaitDuration = "foo"; o.negativeCacheDuration = "foo"; } @@ -264,7 +264,7 @@ checkFindFullHashesResponse(api.FindFullHashesResponse o) { buildCounterFindFullHashesResponse++; if (buildCounterFindFullHashesResponse < 3) { - checkUnnamed1092(o.matches); + checkUnnamed1068(o.matches); unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); unittest.expect(o.negativeCacheDuration, unittest.equals('foo')); } @@ -292,14 +292,14 @@ buildCounterFindThreatMatchesRequest--; } -buildUnnamed1093() { +buildUnnamed1069() { var o = new core.List<api.ThreatMatch>(); o.add(buildThreatMatch()); o.add(buildThreatMatch()); return o; } -checkUnnamed1093(core.List<api.ThreatMatch> o) { +checkUnnamed1069(core.List<api.ThreatMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatMatch(o[0]); checkThreatMatch(o[1]); @@ -310,7 +310,7 @@ var o = new api.FindThreatMatchesResponse(); buildCounterFindThreatMatchesResponse++; if (buildCounterFindThreatMatchesResponse < 3) { - o.matches = buildUnnamed1093(); + o.matches = buildUnnamed1069(); } buildCounterFindThreatMatchesResponse--; return o; @@ -319,19 +319,19 @@ checkFindThreatMatchesResponse(api.FindThreatMatchesResponse o) { buildCounterFindThreatMatchesResponse++; if (buildCounterFindThreatMatchesResponse < 3) { - checkUnnamed1093(o.matches); + checkUnnamed1069(o.matches); } buildCounterFindThreatMatchesResponse--; } -buildUnnamed1094() { +buildUnnamed1070() { var o = new core.List<api.ThreatListDescriptor>(); o.add(buildThreatListDescriptor()); o.add(buildThreatListDescriptor()); return o; } -checkUnnamed1094(core.List<api.ThreatListDescriptor> o) { +checkUnnamed1070(core.List<api.ThreatListDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatListDescriptor(o[0]); checkThreatListDescriptor(o[1]); @@ -342,7 +342,7 @@ var o = new api.ListThreatListsResponse(); buildCounterListThreatListsResponse++; if (buildCounterListThreatListsResponse < 3) { - o.threatLists = buildUnnamed1094(); + o.threatLists = buildUnnamed1070(); } buildCounterListThreatListsResponse--; return o; @@ -351,7 +351,7 @@ checkListThreatListsResponse(api.ListThreatListsResponse o) { buildCounterListThreatListsResponse++; if (buildCounterListThreatListsResponse < 3) { - checkUnnamed1094(o.threatLists); + checkUnnamed1070(o.threatLists); } buildCounterListThreatListsResponse--; } @@ -383,27 +383,27 @@ buildCounterListUpdateRequest--; } -buildUnnamed1095() { +buildUnnamed1071() { var o = new core.List<api.ThreatEntrySet>(); o.add(buildThreatEntrySet()); o.add(buildThreatEntrySet()); return o; } -checkUnnamed1095(core.List<api.ThreatEntrySet> o) { +checkUnnamed1071(core.List<api.ThreatEntrySet> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatEntrySet(o[0]); checkThreatEntrySet(o[1]); } -buildUnnamed1096() { +buildUnnamed1072() { var o = new core.List<api.ThreatEntrySet>(); o.add(buildThreatEntrySet()); o.add(buildThreatEntrySet()); return o; } -checkUnnamed1096(core.List<api.ThreatEntrySet> o) { +checkUnnamed1072(core.List<api.ThreatEntrySet> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatEntrySet(o[0]); checkThreatEntrySet(o[1]); @@ -414,11 +414,11 @@ var o = new api.ListUpdateResponse(); buildCounterListUpdateResponse++; if (buildCounterListUpdateResponse < 3) { - o.additions = buildUnnamed1095(); + o.additions = buildUnnamed1071(); o.checksum = buildChecksum(); o.newClientState = "foo"; o.platformType = "foo"; - o.removals = buildUnnamed1096(); + o.removals = buildUnnamed1072(); o.responseType = "foo"; o.threatEntryType = "foo"; o.threatType = "foo"; @@ -430,11 +430,11 @@ checkListUpdateResponse(api.ListUpdateResponse o) { buildCounterListUpdateResponse++; if (buildCounterListUpdateResponse < 3) { - checkUnnamed1095(o.additions); + checkUnnamed1071(o.additions); checkChecksum(o.checksum); unittest.expect(o.newClientState, unittest.equals('foo')); unittest.expect(o.platformType, unittest.equals('foo')); - checkUnnamed1096(o.removals); + checkUnnamed1072(o.removals); unittest.expect(o.responseType, unittest.equals('foo')); unittest.expect(o.threatEntryType, unittest.equals('foo')); unittest.expect(o.threatType, unittest.equals('foo')); @@ -484,14 +484,14 @@ buildCounterRawHashes--; } -buildUnnamed1097() { +buildUnnamed1073() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1097(core.List<core.int> o) { +checkUnnamed1073(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)); @@ -502,7 +502,7 @@ var o = new api.RawIndices(); buildCounterRawIndices++; if (buildCounterRawIndices < 3) { - o.indices = buildUnnamed1097(); + o.indices = buildUnnamed1073(); } buildCounterRawIndices--; return o; @@ -511,7 +511,7 @@ checkRawIndices(api.RawIndices o) { buildCounterRawIndices++; if (buildCounterRawIndices < 3) { - checkUnnamed1097(o.indices); + checkUnnamed1073(o.indices); } buildCounterRawIndices--; } @@ -564,14 +564,14 @@ buildCounterThreatEntry--; } -buildUnnamed1098() { +buildUnnamed1074() { var o = new core.List<api.MetadataEntry>(); o.add(buildMetadataEntry()); o.add(buildMetadataEntry()); return o; } -checkUnnamed1098(core.List<api.MetadataEntry> o) { +checkUnnamed1074(core.List<api.MetadataEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataEntry(o[0]); checkMetadataEntry(o[1]); @@ -582,7 +582,7 @@ var o = new api.ThreatEntryMetadata(); buildCounterThreatEntryMetadata++; if (buildCounterThreatEntryMetadata < 3) { - o.entries = buildUnnamed1098(); + o.entries = buildUnnamed1074(); } buildCounterThreatEntryMetadata--; return o; @@ -591,7 +591,7 @@ checkThreatEntryMetadata(api.ThreatEntryMetadata o) { buildCounterThreatEntryMetadata++; if (buildCounterThreatEntryMetadata < 3) { - checkUnnamed1098(o.entries); + checkUnnamed1074(o.entries); } buildCounterThreatEntryMetadata--; } @@ -623,53 +623,53 @@ buildCounterThreatEntrySet--; } -buildUnnamed1099() { +buildUnnamed1075() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1099(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')); } -buildUnnamed1100() { +buildUnnamed1076() { var o = new core.List<api.ThreatEntry>(); o.add(buildThreatEntry()); o.add(buildThreatEntry()); return o; } -checkUnnamed1100(core.List<api.ThreatEntry> o) { +checkUnnamed1076(core.List<api.ThreatEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatEntry(o[0]); checkThreatEntry(o[1]); } -buildUnnamed1101() { +buildUnnamed1077() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1101(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')); } -buildUnnamed1102() { +buildUnnamed1078() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1102(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')); @@ -680,10 +680,10 @@ var o = new api.ThreatInfo(); buildCounterThreatInfo++; if (buildCounterThreatInfo < 3) { - o.platformTypes = buildUnnamed1099(); - o.threatEntries = buildUnnamed1100(); - o.threatEntryTypes = buildUnnamed1101(); - o.threatTypes = buildUnnamed1102(); + o.platformTypes = buildUnnamed1075(); + o.threatEntries = buildUnnamed1076(); + o.threatEntryTypes = buildUnnamed1077(); + o.threatTypes = buildUnnamed1078(); } buildCounterThreatInfo--; return o; @@ -692,10 +692,10 @@ checkThreatInfo(api.ThreatInfo o) { buildCounterThreatInfo++; if (buildCounterThreatInfo < 3) { - checkUnnamed1099(o.platformTypes); - checkUnnamed1100(o.threatEntries); - checkUnnamed1101(o.threatEntryTypes); - checkUnnamed1102(o.threatTypes); + checkUnnamed1075(o.platformTypes); + checkUnnamed1076(o.threatEntries); + checkUnnamed1077(o.threatEntryTypes); + checkUnnamed1078(o.threatTypes); } buildCounterThreatInfo--; } @@ -958,8 +958,8 @@ var mock = new HttpServerMock(); api.EncodedFullHashesResourceApi res = new api.SafebrowsingApi(mock).encodedFullHashes; var arg_encodedRequest = "foo"; - var arg_clientId = "foo"; var arg_clientVersion = "foo"; + var arg_clientId = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -989,8 +989,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["clientId"].first, unittest.equals(arg_clientId)); unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_clientVersion)); + unittest.expect(queryMap["clientId"].first, unittest.equals(arg_clientId)); var h = { @@ -999,7 +999,7 @@ var resp = convert.JSON.encode(buildFindFullHashesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_encodedRequest, clientId: arg_clientId, clientVersion: arg_clientVersion).then(unittest.expectAsync1(((api.FindFullHashesResponse response) { + res.get(arg_encodedRequest, clientVersion: arg_clientVersion, clientId: arg_clientId).then(unittest.expectAsync1(((api.FindFullHashesResponse response) { checkFindFullHashesResponse(response); }))); }); @@ -1013,8 +1013,8 @@ var mock = new HttpServerMock(); api.EncodedUpdatesResourceApi res = new api.SafebrowsingApi(mock).encodedUpdates; var arg_encodedRequest = "foo"; - var arg_clientId = "foo"; var arg_clientVersion = "foo"; + var arg_clientId = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1044,8 +1044,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["clientId"].first, unittest.equals(arg_clientId)); unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_clientVersion)); + unittest.expect(queryMap["clientId"].first, unittest.equals(arg_clientId)); var h = { @@ -1054,7 +1054,7 @@ var resp = convert.JSON.encode(buildFetchThreatListUpdatesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_encodedRequest, clientId: arg_clientId, clientVersion: arg_clientVersion).then(unittest.expectAsync1(((api.FetchThreatListUpdatesResponse response) { + res.get(arg_encodedRequest, clientVersion: arg_clientVersion, clientId: arg_clientId).then(unittest.expectAsync1(((api.FetchThreatListUpdatesResponse response) { checkFetchThreatListUpdatesResponse(response); }))); });
diff --git a/generated/googleapis/test/script/v1_test.dart b/generated/googleapis/test/script/v1_test.dart index 93b2cb1..22fee62 100644 --- a/generated/googleapis/test/script/v1_test.dart +++ b/generated/googleapis/test/script/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed806() { +buildUnnamed781() { var o = new core.List<api.ScriptStackTraceElement>(); o.add(buildScriptStackTraceElement()); o.add(buildScriptStackTraceElement()); return o; } -checkUnnamed806(core.List<api.ScriptStackTraceElement> o) { +checkUnnamed781(core.List<api.ScriptStackTraceElement> o) { unittest.expect(o, unittest.hasLength(2)); checkScriptStackTraceElement(o[0]); checkScriptStackTraceElement(o[1]); @@ -71,7 +71,7 @@ if (buildCounterExecutionError < 3) { o.errorMessage = "foo"; o.errorType = "foo"; - o.scriptStackTraceElements = buildUnnamed806(); + o.scriptStackTraceElements = buildUnnamed781(); } buildCounterExecutionError--; return o; @@ -82,19 +82,19 @@ if (buildCounterExecutionError < 3) { unittest.expect(o.errorMessage, unittest.equals('foo')); unittest.expect(o.errorType, unittest.equals('foo')); - checkUnnamed806(o.scriptStackTraceElements); + checkUnnamed781(o.scriptStackTraceElements); } buildCounterExecutionError--; } -buildUnnamed807() { +buildUnnamed782() { 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; } -checkUnnamed807(core.List<core.Object> o) { +checkUnnamed782(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -107,7 +107,7 @@ if (buildCounterExecutionRequest < 3) { o.devMode = true; o.function = "foo"; - o.parameters = buildUnnamed807(); + o.parameters = buildUnnamed782(); o.sessionState = "foo"; } buildCounterExecutionRequest--; @@ -119,7 +119,7 @@ if (buildCounterExecutionRequest < 3) { unittest.expect(o.devMode, unittest.isTrue); unittest.expect(o.function, unittest.equals('foo')); - checkUnnamed807(o.parameters); + checkUnnamed782(o.parameters); unittest.expect(o.sessionState, unittest.equals('foo')); } buildCounterExecutionRequest--; @@ -144,14 +144,14 @@ buildCounterExecutionResponse--; } -buildUnnamed808() { +buildUnnamed783() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed808(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')); @@ -162,7 +162,7 @@ var o = new api.JoinAsyncRequest(); buildCounterJoinAsyncRequest++; if (buildCounterJoinAsyncRequest < 3) { - o.names = buildUnnamed808(); + o.names = buildUnnamed783(); o.scriptId = "foo"; o.timeout = "foo"; } @@ -173,21 +173,21 @@ checkJoinAsyncRequest(api.JoinAsyncRequest o) { buildCounterJoinAsyncRequest++; if (buildCounterJoinAsyncRequest < 3) { - checkUnnamed808(o.names); + checkUnnamed783(o.names); unittest.expect(o.scriptId, unittest.equals('foo')); unittest.expect(o.timeout, unittest.equals('foo')); } buildCounterJoinAsyncRequest--; } -buildUnnamed809() { +buildUnnamed784() { var o = new core.Map<core.String, api.Operation>(); o["x"] = buildOperation(); o["y"] = buildOperation(); return o; } -checkUnnamed809(core.Map<core.String, api.Operation> o) { +checkUnnamed784(core.Map<core.String, api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o["x"]); checkOperation(o["y"]); @@ -198,7 +198,7 @@ var o = new api.JoinAsyncResponse(); buildCounterJoinAsyncResponse++; if (buildCounterJoinAsyncResponse < 3) { - o.results = buildUnnamed809(); + o.results = buildUnnamed784(); } buildCounterJoinAsyncResponse--; return o; @@ -207,32 +207,32 @@ checkJoinAsyncResponse(api.JoinAsyncResponse o) { buildCounterJoinAsyncResponse++; if (buildCounterJoinAsyncResponse < 3) { - checkUnnamed809(o.results); + checkUnnamed784(o.results); } buildCounterJoinAsyncResponse--; } -buildUnnamed810() { +buildUnnamed785() { 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; } -checkUnnamed810(core.Map<core.String, core.Object> o) { +checkUnnamed785(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted4 = (o["x"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); var casted5 = (o["y"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); } -buildUnnamed811() { +buildUnnamed786() { 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; } -checkUnnamed811(core.Map<core.String, core.Object> o) { +checkUnnamed786(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted6 = (o["x"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); var casted7 = (o["y"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); @@ -245,9 +245,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed810(); + o.metadata = buildUnnamed785(); o.name = "foo"; - o.response = buildUnnamed811(); + o.response = buildUnnamed786(); } buildCounterOperation--; return o; @@ -258,9 +258,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed810(o.metadata); + checkUnnamed785(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed811(o.response); + checkUnnamed786(o.response); } buildCounterOperation--; } @@ -286,30 +286,30 @@ buildCounterScriptStackTraceElement--; } -buildUnnamed812() { +buildUnnamed787() { 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; } -checkUnnamed812(core.Map<core.String, core.Object> o) { +checkUnnamed787(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted8 = (o["x"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); var casted9 = (o["y"]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); } -buildUnnamed813() { +buildUnnamed788() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed812()); - o.add(buildUnnamed812()); + o.add(buildUnnamed787()); + o.add(buildUnnamed787()); return o; } -checkUnnamed813(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed788(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed812(o[0]); - checkUnnamed812(o[1]); + checkUnnamed787(o[0]); + checkUnnamed787(o[1]); } core.int buildCounterStatus = 0; @@ -318,7 +318,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed813(); + o.details = buildUnnamed788(); o.message = "foo"; } buildCounterStatus--; @@ -329,7 +329,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed813(o.details); + checkUnnamed788(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--;
diff --git a/generated/googleapis/test/searchconsole/v1_test.dart b/generated/googleapis/test/searchconsole/v1_test.dart index 52cb67f..e15be02 100644 --- a/generated/googleapis/test/searchconsole/v1_test.dart +++ b/generated/googleapis/test/searchconsole/v1_test.dart
@@ -150,27 +150,27 @@ buildCounterRunMobileFriendlyTestRequest--; } -buildUnnamed1241() { +buildUnnamed1216() { var o = new core.List<api.MobileFriendlyIssue>(); o.add(buildMobileFriendlyIssue()); o.add(buildMobileFriendlyIssue()); return o; } -checkUnnamed1241(core.List<api.MobileFriendlyIssue> o) { +checkUnnamed1216(core.List<api.MobileFriendlyIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileFriendlyIssue(o[0]); checkMobileFriendlyIssue(o[1]); } -buildUnnamed1242() { +buildUnnamed1217() { var o = new core.List<api.ResourceIssue>(); o.add(buildResourceIssue()); o.add(buildResourceIssue()); return o; } -checkUnnamed1242(core.List<api.ResourceIssue> o) { +checkUnnamed1217(core.List<api.ResourceIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceIssue(o[0]); checkResourceIssue(o[1]); @@ -182,8 +182,8 @@ buildCounterRunMobileFriendlyTestResponse++; if (buildCounterRunMobileFriendlyTestResponse < 3) { o.mobileFriendliness = "foo"; - o.mobileFriendlyIssues = buildUnnamed1241(); - o.resourceIssues = buildUnnamed1242(); + o.mobileFriendlyIssues = buildUnnamed1216(); + o.resourceIssues = buildUnnamed1217(); o.screenshot = buildImage(); o.testStatus = buildTestStatus(); } @@ -195,8 +195,8 @@ buildCounterRunMobileFriendlyTestResponse++; if (buildCounterRunMobileFriendlyTestResponse < 3) { unittest.expect(o.mobileFriendliness, unittest.equals('foo')); - checkUnnamed1241(o.mobileFriendlyIssues); - checkUnnamed1242(o.resourceIssues); + checkUnnamed1216(o.mobileFriendlyIssues); + checkUnnamed1217(o.resourceIssues); checkImage(o.screenshot); checkTestStatus(o.testStatus); }
diff --git a/generated/googleapis/test/servicecontrol/v1_test.dart b/generated/googleapis/test/servicecontrol/v1_test.dart index 4014faa..e6bad66 100644 --- a/generated/googleapis/test/servicecontrol/v1_test.dart +++ b/generated/googleapis/test/servicecontrol/v1_test.dart
@@ -74,27 +74,27 @@ buildCounterAllocateQuotaRequest--; } -buildUnnamed1645() { +buildUnnamed1677() { var o = new core.List<api.QuotaError>(); o.add(buildQuotaError()); o.add(buildQuotaError()); return o; } -checkUnnamed1645(core.List<api.QuotaError> o) { +checkUnnamed1677(core.List<api.QuotaError> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaError(o[0]); checkQuotaError(o[1]); } -buildUnnamed1646() { +buildUnnamed1678() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1646(core.List<api.MetricValueSet> o) { +checkUnnamed1678(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); @@ -105,9 +105,9 @@ var o = new api.AllocateQuotaResponse(); buildCounterAllocateQuotaResponse++; if (buildCounterAllocateQuotaResponse < 3) { - o.allocateErrors = buildUnnamed1645(); + o.allocateErrors = buildUnnamed1677(); o.operationId = "foo"; - o.quotaMetrics = buildUnnamed1646(); + o.quotaMetrics = buildUnnamed1678(); o.serviceConfigId = "foo"; } buildCounterAllocateQuotaResponse--; @@ -117,61 +117,61 @@ checkAllocateQuotaResponse(api.AllocateQuotaResponse o) { buildCounterAllocateQuotaResponse++; if (buildCounterAllocateQuotaResponse < 3) { - checkUnnamed1645(o.allocateErrors); + checkUnnamed1677(o.allocateErrors); unittest.expect(o.operationId, unittest.equals('foo')); - checkUnnamed1646(o.quotaMetrics); + checkUnnamed1678(o.quotaMetrics); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterAllocateQuotaResponse--; } -buildUnnamed1647() { +buildUnnamed1679() { var o = new core.List<api.AuthorizationInfo>(); o.add(buildAuthorizationInfo()); o.add(buildAuthorizationInfo()); return o; } -checkUnnamed1647(core.List<api.AuthorizationInfo> o) { +checkUnnamed1679(core.List<api.AuthorizationInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthorizationInfo(o[0]); checkAuthorizationInfo(o[1]); } -buildUnnamed1648() { +buildUnnamed1680() { 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; } -checkUnnamed1648(core.Map<core.String, core.Object> o) { +checkUnnamed1680(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')); } -buildUnnamed1649() { +buildUnnamed1681() { 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; } -checkUnnamed1649(core.Map<core.String, core.Object> o) { +checkUnnamed1681(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')); } -buildUnnamed1650() { +buildUnnamed1682() { 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; } -checkUnnamed1650(core.Map<core.String, core.Object> o) { +checkUnnamed1682(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')); @@ -183,14 +183,14 @@ buildCounterAuditLog++; if (buildCounterAuditLog < 3) { o.authenticationInfo = buildAuthenticationInfo(); - o.authorizationInfo = buildUnnamed1647(); + o.authorizationInfo = buildUnnamed1679(); o.methodName = "foo"; o.numResponseItems = "foo"; - o.request = buildUnnamed1648(); + o.request = buildUnnamed1680(); o.requestMetadata = buildRequestMetadata(); o.resourceName = "foo"; - o.response = buildUnnamed1649(); - o.serviceData = buildUnnamed1650(); + o.response = buildUnnamed1681(); + o.serviceData = buildUnnamed1682(); o.serviceName = "foo"; o.status = buildStatus(); } @@ -202,14 +202,14 @@ buildCounterAuditLog++; if (buildCounterAuditLog < 3) { checkAuthenticationInfo(o.authenticationInfo); - checkUnnamed1647(o.authorizationInfo); + checkUnnamed1679(o.authorizationInfo); unittest.expect(o.methodName, unittest.equals('foo')); unittest.expect(o.numResponseItems, unittest.equals('foo')); - checkUnnamed1648(o.request); + checkUnnamed1680(o.request); checkRequestMetadata(o.requestMetadata); unittest.expect(o.resourceName, unittest.equals('foo')); - checkUnnamed1649(o.response); - checkUnnamed1650(o.serviceData); + checkUnnamed1681(o.response); + checkUnnamed1682(o.serviceData); unittest.expect(o.serviceName, unittest.equals('foo')); checkStatus(o.status); } @@ -281,14 +281,14 @@ buildCounterCheckError--; } -buildUnnamed1651() { +buildUnnamed1683() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1651(core.List<core.String> o) { +checkUnnamed1683(core.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 +299,8 @@ var o = new api.CheckInfo(); buildCounterCheckInfo++; if (buildCounterCheckInfo < 3) { - o.unusedArguments = buildUnnamed1651(); + o.consumerInfo = buildConsumerInfo(); + o.unusedArguments = buildUnnamed1683(); } buildCounterCheckInfo--; return o; @@ -308,7 +309,8 @@ checkCheckInfo(api.CheckInfo o) { buildCounterCheckInfo++; if (buildCounterCheckInfo < 3) { - checkUnnamed1651(o.unusedArguments); + checkConsumerInfo(o.consumerInfo); + checkUnnamed1683(o.unusedArguments); } buildCounterCheckInfo--; } @@ -338,14 +340,14 @@ buildCounterCheckRequest--; } -buildUnnamed1652() { +buildUnnamed1684() { var o = new core.List<api.CheckError>(); o.add(buildCheckError()); o.add(buildCheckError()); return o; } -checkUnnamed1652(core.List<api.CheckError> o) { +checkUnnamed1684(core.List<api.CheckError> o) { unittest.expect(o, unittest.hasLength(2)); checkCheckError(o[0]); checkCheckError(o[1]); @@ -356,7 +358,7 @@ var o = new api.CheckResponse(); buildCounterCheckResponse++; if (buildCounterCheckResponse < 3) { - o.checkErrors = buildUnnamed1652(); + o.checkErrors = buildUnnamed1684(); o.checkInfo = buildCheckInfo(); o.operationId = "foo"; o.quotaInfo = buildQuotaInfo(); @@ -369,7 +371,7 @@ checkCheckResponse(api.CheckResponse o) { buildCounterCheckResponse++; if (buildCounterCheckResponse < 3) { - checkUnnamed1652(o.checkErrors); + checkUnnamed1684(o.checkErrors); checkCheckInfo(o.checkInfo); unittest.expect(o.operationId, unittest.equals('foo')); checkQuotaInfo(o.quotaInfo); @@ -378,14 +380,33 @@ buildCounterCheckResponse--; } -buildUnnamed1653() { +core.int buildCounterConsumerInfo = 0; +buildConsumerInfo() { + var o = new api.ConsumerInfo(); + buildCounterConsumerInfo++; + if (buildCounterConsumerInfo < 3) { + o.projectNumber = "foo"; + } + buildCounterConsumerInfo--; + return o; +} + +checkConsumerInfo(api.ConsumerInfo o) { + buildCounterConsumerInfo++; + if (buildCounterConsumerInfo < 3) { + unittest.expect(o.projectNumber, unittest.equals('foo')); + } + buildCounterConsumerInfo--; +} + +buildUnnamed1685() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1653(core.List<core.String> o) { +checkUnnamed1685(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -396,7 +417,7 @@ var o = new api.Distribution(); buildCounterDistribution++; if (buildCounterDistribution < 3) { - o.bucketCounts = buildUnnamed1653(); + o.bucketCounts = buildUnnamed1685(); o.count = "foo"; o.explicitBuckets = buildExplicitBuckets(); o.exponentialBuckets = buildExponentialBuckets(); @@ -413,7 +434,7 @@ checkDistribution(api.Distribution o) { buildCounterDistribution++; if (buildCounterDistribution < 3) { - checkUnnamed1653(o.bucketCounts); + checkUnnamed1685(o.bucketCounts); unittest.expect(o.count, unittest.equals('foo')); checkExplicitBuckets(o.explicitBuckets); checkExponentialBuckets(o.exponentialBuckets); @@ -447,27 +468,27 @@ buildCounterEndReconciliationRequest--; } -buildUnnamed1654() { +buildUnnamed1686() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1654(core.List<api.MetricValueSet> o) { +checkUnnamed1686(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); } -buildUnnamed1655() { +buildUnnamed1687() { var o = new core.List<api.QuotaError>(); o.add(buildQuotaError()); o.add(buildQuotaError()); return o; } -checkUnnamed1655(core.List<api.QuotaError> o) { +checkUnnamed1687(core.List<api.QuotaError> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaError(o[0]); checkQuotaError(o[1]); @@ -479,8 +500,8 @@ buildCounterEndReconciliationResponse++; if (buildCounterEndReconciliationResponse < 3) { o.operationId = "foo"; - o.quotaMetrics = buildUnnamed1654(); - o.reconciliationErrors = buildUnnamed1655(); + o.quotaMetrics = buildUnnamed1686(); + o.reconciliationErrors = buildUnnamed1687(); o.serviceConfigId = "foo"; } buildCounterEndReconciliationResponse--; @@ -491,21 +512,21 @@ buildCounterEndReconciliationResponse++; if (buildCounterEndReconciliationResponse < 3) { unittest.expect(o.operationId, unittest.equals('foo')); - checkUnnamed1654(o.quotaMetrics); - checkUnnamed1655(o.reconciliationErrors); + checkUnnamed1686(o.quotaMetrics); + checkUnnamed1687(o.reconciliationErrors); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterEndReconciliationResponse--; } -buildUnnamed1656() { +buildUnnamed1688() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed1656(core.List<core.double> o) { +checkUnnamed1688(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)); @@ -516,7 +537,7 @@ var o = new api.ExplicitBuckets(); buildCounterExplicitBuckets++; if (buildCounterExplicitBuckets < 3) { - o.bounds = buildUnnamed1656(); + o.bounds = buildUnnamed1688(); } buildCounterExplicitBuckets--; return o; @@ -525,7 +546,7 @@ checkExplicitBuckets(api.ExplicitBuckets o) { buildCounterExplicitBuckets++; if (buildCounterExplicitBuckets < 3) { - checkUnnamed1656(o.bounds); + checkUnnamed1688(o.bounds); } buildCounterExplicitBuckets--; } @@ -576,40 +597,40 @@ buildCounterLinearBuckets--; } -buildUnnamed1657() { +buildUnnamed1689() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1657(core.Map<core.String, core.String> o) { +checkUnnamed1689(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1658() { +buildUnnamed1690() { 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; } -checkUnnamed1658(core.Map<core.String, core.Object> o) { +checkUnnamed1690(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')); } -buildUnnamed1659() { +buildUnnamed1691() { 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; } -checkUnnamed1659(core.Map<core.String, core.Object> o) { +checkUnnamed1691(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')); @@ -621,11 +642,11 @@ buildCounterLogEntry++; if (buildCounterLogEntry < 3) { o.insertId = "foo"; - o.labels = buildUnnamed1657(); + o.labels = buildUnnamed1689(); o.name = "foo"; - o.protoPayload = buildUnnamed1658(); + o.protoPayload = buildUnnamed1690(); o.severity = "foo"; - o.structPayload = buildUnnamed1659(); + o.structPayload = buildUnnamed1691(); o.textPayload = "foo"; o.timestamp = "foo"; } @@ -637,25 +658,25 @@ buildCounterLogEntry++; if (buildCounterLogEntry < 3) { unittest.expect(o.insertId, unittest.equals('foo')); - checkUnnamed1657(o.labels); + checkUnnamed1689(o.labels); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1658(o.protoPayload); + checkUnnamed1690(o.protoPayload); unittest.expect(o.severity, unittest.equals('foo')); - checkUnnamed1659(o.structPayload); + checkUnnamed1691(o.structPayload); unittest.expect(o.textPayload, unittest.equals('foo')); unittest.expect(o.timestamp, unittest.equals('foo')); } buildCounterLogEntry--; } -buildUnnamed1660() { +buildUnnamed1692() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1660(core.Map<core.String, core.String> o) { +checkUnnamed1692(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -671,7 +692,7 @@ o.doubleValue = 42.0; o.endTime = "foo"; o.int64Value = "foo"; - o.labels = buildUnnamed1660(); + o.labels = buildUnnamed1692(); o.moneyValue = buildMoney(); o.startTime = "foo"; o.stringValue = "foo"; @@ -688,7 +709,7 @@ unittest.expect(o.doubleValue, unittest.equals(42.0)); unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.int64Value, unittest.equals('foo')); - checkUnnamed1660(o.labels); + checkUnnamed1692(o.labels); checkMoney(o.moneyValue); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.stringValue, unittest.equals('foo')); @@ -696,14 +717,14 @@ buildCounterMetricValue--; } -buildUnnamed1661() { +buildUnnamed1693() { var o = new core.List<api.MetricValue>(); o.add(buildMetricValue()); o.add(buildMetricValue()); return o; } -checkUnnamed1661(core.List<api.MetricValue> o) { +checkUnnamed1693(core.List<api.MetricValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValue(o[0]); checkMetricValue(o[1]); @@ -715,7 +736,7 @@ buildCounterMetricValueSet++; if (buildCounterMetricValueSet < 3) { o.metricName = "foo"; - o.metricValues = buildUnnamed1661(); + o.metricValues = buildUnnamed1693(); } buildCounterMetricValueSet--; return o; @@ -725,7 +746,7 @@ buildCounterMetricValueSet++; if (buildCounterMetricValueSet < 3) { unittest.expect(o.metricName, unittest.equals('foo')); - checkUnnamed1661(o.metricValues); + checkUnnamed1693(o.metricValues); } buildCounterMetricValueSet--; } @@ -753,53 +774,53 @@ buildCounterMoney--; } -buildUnnamed1662() { +buildUnnamed1694() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1662(core.Map<core.String, core.String> o) { +checkUnnamed1694(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1663() { +buildUnnamed1695() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed1663(core.List<api.LogEntry> o) { +checkUnnamed1695(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); } -buildUnnamed1664() { +buildUnnamed1696() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1664(core.List<api.MetricValueSet> o) { +checkUnnamed1696(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); } -buildUnnamed1665() { +buildUnnamed1697() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1665(core.Map<core.String, core.String> o) { +checkUnnamed1697(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -813,15 +834,15 @@ o.consumerId = "foo"; o.endTime = "foo"; o.importance = "foo"; - o.labels = buildUnnamed1662(); - o.logEntries = buildUnnamed1663(); - o.metricValueSets = buildUnnamed1664(); + o.labels = buildUnnamed1694(); + o.logEntries = buildUnnamed1695(); + o.metricValueSets = buildUnnamed1696(); o.operationId = "foo"; o.operationName = "foo"; o.quotaProperties = buildQuotaProperties(); o.resourceContainer = "foo"; o.startTime = "foo"; - o.userLabels = buildUnnamed1665(); + o.userLabels = buildUnnamed1697(); } buildCounterOperation--; return o; @@ -833,15 +854,15 @@ unittest.expect(o.consumerId, unittest.equals('foo')); unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.importance, unittest.equals('foo')); - checkUnnamed1662(o.labels); - checkUnnamed1663(o.logEntries); - checkUnnamed1664(o.metricValueSets); + checkUnnamed1694(o.labels); + checkUnnamed1695(o.logEntries); + checkUnnamed1696(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')); unittest.expect(o.startTime, unittest.equals('foo')); - checkUnnamed1665(o.userLabels); + checkUnnamed1697(o.userLabels); } buildCounterOperation--; } @@ -869,40 +890,40 @@ buildCounterQuotaError--; } -buildUnnamed1666() { +buildUnnamed1698() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1666(core.List<core.String> o) { +checkUnnamed1698(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1667() { +buildUnnamed1699() { var o = new core.Map<core.String, core.int>(); o["x"] = 42; o["y"] = 42; return o; } -checkUnnamed1667(core.Map<core.String, core.int> o) { +checkUnnamed1699(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)); } -buildUnnamed1668() { +buildUnnamed1700() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1668(core.List<api.MetricValueSet> o) { +checkUnnamed1700(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); @@ -913,9 +934,9 @@ var o = new api.QuotaInfo(); buildCounterQuotaInfo++; if (buildCounterQuotaInfo < 3) { - o.limitExceeded = buildUnnamed1666(); - o.quotaConsumed = buildUnnamed1667(); - o.quotaMetrics = buildUnnamed1668(); + o.limitExceeded = buildUnnamed1698(); + o.quotaConsumed = buildUnnamed1699(); + o.quotaMetrics = buildUnnamed1700(); } buildCounterQuotaInfo--; return o; @@ -924,34 +945,34 @@ checkQuotaInfo(api.QuotaInfo o) { buildCounterQuotaInfo++; if (buildCounterQuotaInfo < 3) { - checkUnnamed1666(o.limitExceeded); - checkUnnamed1667(o.quotaConsumed); - checkUnnamed1668(o.quotaMetrics); + checkUnnamed1698(o.limitExceeded); + checkUnnamed1699(o.quotaConsumed); + checkUnnamed1700(o.quotaMetrics); } buildCounterQuotaInfo--; } -buildUnnamed1669() { +buildUnnamed1701() { 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) { +checkUnnamed1701(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1670() { +buildUnnamed1702() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1670(core.List<api.MetricValueSet> o) { +checkUnnamed1702(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); @@ -963,10 +984,10 @@ buildCounterQuotaOperation++; if (buildCounterQuotaOperation < 3) { o.consumerId = "foo"; - o.labels = buildUnnamed1669(); + o.labels = buildUnnamed1701(); o.methodName = "foo"; o.operationId = "foo"; - o.quotaMetrics = buildUnnamed1670(); + o.quotaMetrics = buildUnnamed1702(); o.quotaMode = "foo"; } buildCounterQuotaOperation--; @@ -977,23 +998,23 @@ buildCounterQuotaOperation++; if (buildCounterQuotaOperation < 3) { unittest.expect(o.consumerId, unittest.equals('foo')); - checkUnnamed1669(o.labels); + checkUnnamed1701(o.labels); unittest.expect(o.methodName, unittest.equals('foo')); unittest.expect(o.operationId, unittest.equals('foo')); - checkUnnamed1670(o.quotaMetrics); + checkUnnamed1702(o.quotaMetrics); unittest.expect(o.quotaMode, unittest.equals('foo')); } buildCounterQuotaOperation--; } -buildUnnamed1671() { +buildUnnamed1703() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1671(core.Map<core.String, core.String> o) { +checkUnnamed1703(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1004,7 +1025,7 @@ var o = new api.QuotaProperties(); buildCounterQuotaProperties++; if (buildCounterQuotaProperties < 3) { - o.limitByIds = buildUnnamed1671(); + o.limitByIds = buildUnnamed1703(); o.quotaMode = "foo"; } buildCounterQuotaProperties--; @@ -1014,7 +1035,7 @@ checkQuotaProperties(api.QuotaProperties o) { buildCounterQuotaProperties++; if (buildCounterQuotaProperties < 3) { - checkUnnamed1671(o.limitByIds); + checkUnnamed1703(o.limitByIds); unittest.expect(o.quotaMode, unittest.equals('foo')); } buildCounterQuotaProperties--; @@ -1041,27 +1062,27 @@ buildCounterReleaseQuotaRequest--; } -buildUnnamed1672() { +buildUnnamed1704() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1672(core.List<api.MetricValueSet> o) { +checkUnnamed1704(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); } -buildUnnamed1673() { +buildUnnamed1705() { var o = new core.List<api.QuotaError>(); o.add(buildQuotaError()); o.add(buildQuotaError()); return o; } -checkUnnamed1673(core.List<api.QuotaError> o) { +checkUnnamed1705(core.List<api.QuotaError> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaError(o[0]); checkQuotaError(o[1]); @@ -1073,8 +1094,8 @@ buildCounterReleaseQuotaResponse++; if (buildCounterReleaseQuotaResponse < 3) { o.operationId = "foo"; - o.quotaMetrics = buildUnnamed1672(); - o.releaseErrors = buildUnnamed1673(); + o.quotaMetrics = buildUnnamed1704(); + o.releaseErrors = buildUnnamed1705(); o.serviceConfigId = "foo"; } buildCounterReleaseQuotaResponse--; @@ -1085,8 +1106,8 @@ buildCounterReleaseQuotaResponse++; if (buildCounterReleaseQuotaResponse < 3) { unittest.expect(o.operationId, unittest.equals('foo')); - checkUnnamed1672(o.quotaMetrics); - checkUnnamed1673(o.releaseErrors); + checkUnnamed1704(o.quotaMetrics); + checkUnnamed1705(o.releaseErrors); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterReleaseQuotaResponse--; @@ -1134,14 +1155,14 @@ buildCounterReportInfo--; } -buildUnnamed1674() { +buildUnnamed1706() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1674(core.List<api.Operation> o) { +checkUnnamed1706(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1152,7 +1173,7 @@ var o = new api.ReportRequest(); buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - o.operations = buildUnnamed1674(); + o.operations = buildUnnamed1706(); o.serviceConfigId = "foo"; } buildCounterReportRequest--; @@ -1162,33 +1183,33 @@ checkReportRequest(api.ReportRequest o) { buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - checkUnnamed1674(o.operations); + checkUnnamed1706(o.operations); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterReportRequest--; } -buildUnnamed1675() { +buildUnnamed1707() { var o = new core.List<api.ReportError>(); o.add(buildReportError()); o.add(buildReportError()); return o; } -checkUnnamed1675(core.List<api.ReportError> o) { +checkUnnamed1707(core.List<api.ReportError> o) { unittest.expect(o, unittest.hasLength(2)); checkReportError(o[0]); checkReportError(o[1]); } -buildUnnamed1676() { +buildUnnamed1708() { var o = new core.List<api.ReportInfo>(); o.add(buildReportInfo()); o.add(buildReportInfo()); return o; } -checkUnnamed1676(core.List<api.ReportInfo> o) { +checkUnnamed1708(core.List<api.ReportInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkReportInfo(o[0]); checkReportInfo(o[1]); @@ -1199,8 +1220,8 @@ var o = new api.ReportResponse(); buildCounterReportResponse++; if (buildCounterReportResponse < 3) { - o.reportErrors = buildUnnamed1675(); - o.reportInfos = buildUnnamed1676(); + o.reportErrors = buildUnnamed1707(); + o.reportInfos = buildUnnamed1708(); o.serviceConfigId = "foo"; } buildCounterReportResponse--; @@ -1210,8 +1231,8 @@ checkReportResponse(api.ReportResponse o) { buildCounterReportResponse++; if (buildCounterReportResponse < 3) { - checkUnnamed1675(o.reportErrors); - checkUnnamed1676(o.reportInfos); + checkUnnamed1707(o.reportErrors); + checkUnnamed1708(o.reportInfos); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterReportResponse--; @@ -1259,27 +1280,27 @@ buildCounterStartReconciliationRequest--; } -buildUnnamed1677() { +buildUnnamed1709() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1677(core.List<api.MetricValueSet> o) { +checkUnnamed1709(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); } -buildUnnamed1678() { +buildUnnamed1710() { var o = new core.List<api.QuotaError>(); o.add(buildQuotaError()); o.add(buildQuotaError()); return o; } -checkUnnamed1678(core.List<api.QuotaError> o) { +checkUnnamed1710(core.List<api.QuotaError> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaError(o[0]); checkQuotaError(o[1]); @@ -1291,8 +1312,8 @@ buildCounterStartReconciliationResponse++; if (buildCounterStartReconciliationResponse < 3) { o.operationId = "foo"; - o.quotaMetrics = buildUnnamed1677(); - o.reconciliationErrors = buildUnnamed1678(); + o.quotaMetrics = buildUnnamed1709(); + o.reconciliationErrors = buildUnnamed1710(); o.serviceConfigId = "foo"; } buildCounterStartReconciliationResponse--; @@ -1303,37 +1324,37 @@ buildCounterStartReconciliationResponse++; if (buildCounterStartReconciliationResponse < 3) { unittest.expect(o.operationId, unittest.equals('foo')); - checkUnnamed1677(o.quotaMetrics); - checkUnnamed1678(o.reconciliationErrors); + checkUnnamed1709(o.quotaMetrics); + checkUnnamed1710(o.reconciliationErrors); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterStartReconciliationResponse--; } -buildUnnamed1679() { +buildUnnamed1711() { 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; } -checkUnnamed1679(core.Map<core.String, core.Object> o) { +checkUnnamed1711(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')); } -buildUnnamed1680() { +buildUnnamed1712() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1679()); - o.add(buildUnnamed1679()); + o.add(buildUnnamed1711()); + o.add(buildUnnamed1711()); return o; } -checkUnnamed1680(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1712(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1679(o[0]); - checkUnnamed1679(o[1]); + checkUnnamed1711(o[0]); + checkUnnamed1711(o[1]); } core.int buildCounterStatus = 0; @@ -1342,7 +1363,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1680(); + o.details = buildUnnamed1712(); o.message = "foo"; } buildCounterStatus--; @@ -1353,7 +1374,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1680(o.details); + checkUnnamed1712(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1442,6 +1463,15 @@ }); + unittest.group("obj-schema-ConsumerInfo", () { + unittest.test("to-json--from-json", () { + var o = buildConsumerInfo(); + var od = new api.ConsumerInfo.fromJson(o.toJson()); + checkConsumerInfo(od); + }); + }); + + unittest.group("obj-schema-Distribution", () { unittest.test("to-json--from-json", () { var o = buildDistribution();
diff --git a/generated/googleapis/test/servicemanagement/v1_test.dart b/generated/googleapis/test/servicemanagement/v1_test.dart index 18f549b..6723bdc 100644 --- a/generated/googleapis/test/servicemanagement/v1_test.dart +++ b/generated/googleapis/test/servicemanagement/v1_test.dart
@@ -70,40 +70,40 @@ buildCounterAdvice--; } -buildUnnamed1149() { +buildUnnamed1124() { var o = new core.List<api.Method>(); o.add(buildMethod()); o.add(buildMethod()); return o; } -checkUnnamed1149(core.List<api.Method> o) { +checkUnnamed1124(core.List<api.Method> o) { unittest.expect(o, unittest.hasLength(2)); checkMethod(o[0]); checkMethod(o[1]); } -buildUnnamed1150() { +buildUnnamed1125() { var o = new core.List<api.Mixin>(); o.add(buildMixin()); o.add(buildMixin()); return o; } -checkUnnamed1150(core.List<api.Mixin> o) { +checkUnnamed1125(core.List<api.Mixin> o) { unittest.expect(o, unittest.hasLength(2)); checkMixin(o[0]); checkMixin(o[1]); } -buildUnnamed1151() { +buildUnnamed1126() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1151(core.List<api.Option> o) { +checkUnnamed1126(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -114,10 +114,10 @@ var o = new api.Api(); buildCounterApi++; if (buildCounterApi < 3) { - o.methods = buildUnnamed1149(); - o.mixins = buildUnnamed1150(); + o.methods = buildUnnamed1124(); + o.mixins = buildUnnamed1125(); o.name = "foo"; - o.options = buildUnnamed1151(); + o.options = buildUnnamed1126(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; o.version = "foo"; @@ -129,10 +129,10 @@ checkApi(api.Api o) { buildCounterApi++; if (buildCounterApi < 3) { - checkUnnamed1149(o.methods); - checkUnnamed1150(o.mixins); + checkUnnamed1124(o.methods); + checkUnnamed1125(o.mixins); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1151(o.options); + checkUnnamed1126(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -140,27 +140,27 @@ buildCounterApi--; } -buildUnnamed1152() { +buildUnnamed1127() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed1152(core.List<api.AuditLogConfig> o) { +checkUnnamed1127(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); } -buildUnnamed1153() { +buildUnnamed1128() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1153(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')); @@ -171,8 +171,8 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed1152(); - o.exemptedMembers = buildUnnamed1153(); + o.auditLogConfigs = buildUnnamed1127(); + o.exemptedMembers = buildUnnamed1128(); o.service = "foo"; } buildCounterAuditConfig--; @@ -182,21 +182,21 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed1152(o.auditLogConfigs); - checkUnnamed1153(o.exemptedMembers); + checkUnnamed1127(o.auditLogConfigs); + checkUnnamed1128(o.exemptedMembers); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed1154() { +buildUnnamed1129() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1154(core.List<core.String> o) { +checkUnnamed1129(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -207,7 +207,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed1154(); + o.exemptedMembers = buildUnnamed1129(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -217,7 +217,7 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed1154(o.exemptedMembers); + checkUnnamed1129(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; @@ -269,27 +269,27 @@ buildCounterAuthRequirement--; } -buildUnnamed1155() { +buildUnnamed1130() { var o = new core.List<api.AuthProvider>(); o.add(buildAuthProvider()); o.add(buildAuthProvider()); return o; } -checkUnnamed1155(core.List<api.AuthProvider> o) { +checkUnnamed1130(core.List<api.AuthProvider> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthProvider(o[0]); checkAuthProvider(o[1]); } -buildUnnamed1156() { +buildUnnamed1131() { var o = new core.List<api.AuthenticationRule>(); o.add(buildAuthenticationRule()); o.add(buildAuthenticationRule()); return o; } -checkUnnamed1156(core.List<api.AuthenticationRule> o) { +checkUnnamed1131(core.List<api.AuthenticationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthenticationRule(o[0]); checkAuthenticationRule(o[1]); @@ -300,8 +300,8 @@ var o = new api.Authentication(); buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - o.providers = buildUnnamed1155(); - o.rules = buildUnnamed1156(); + o.providers = buildUnnamed1130(); + o.rules = buildUnnamed1131(); } buildCounterAuthentication--; return o; @@ -310,20 +310,20 @@ checkAuthentication(api.Authentication o) { buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - checkUnnamed1155(o.providers); - checkUnnamed1156(o.rules); + checkUnnamed1130(o.providers); + checkUnnamed1131(o.rules); } buildCounterAuthentication--; } -buildUnnamed1157() { +buildUnnamed1132() { var o = new core.List<api.AuthRequirement>(); o.add(buildAuthRequirement()); o.add(buildAuthRequirement()); return o; } -checkUnnamed1157(core.List<api.AuthRequirement> o) { +checkUnnamed1132(core.List<api.AuthRequirement> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthRequirement(o[0]); checkAuthRequirement(o[1]); @@ -337,7 +337,7 @@ o.allowWithoutCredential = true; o.customAuth = buildCustomAuthRequirements(); o.oauth = buildOAuthRequirements(); - o.requirements = buildUnnamed1157(); + o.requirements = buildUnnamed1132(); o.selector = "foo"; } buildCounterAuthenticationRule--; @@ -350,7 +350,7 @@ unittest.expect(o.allowWithoutCredential, unittest.isTrue); checkCustomAuthRequirements(o.customAuth); checkOAuthRequirements(o.oauth); - checkUnnamed1157(o.requirements); + checkUnnamed1132(o.requirements); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterAuthenticationRule--; @@ -375,14 +375,14 @@ buildCounterAuthorizationConfig--; } -buildUnnamed1158() { +buildUnnamed1133() { var o = new core.List<api.BackendRule>(); o.add(buildBackendRule()); o.add(buildBackendRule()); return o; } -checkUnnamed1158(core.List<api.BackendRule> o) { +checkUnnamed1133(core.List<api.BackendRule> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendRule(o[0]); checkBackendRule(o[1]); @@ -393,7 +393,7 @@ var o = new api.Backend(); buildCounterBackend++; if (buildCounterBackend < 3) { - o.rules = buildUnnamed1158(); + o.rules = buildUnnamed1133(); } buildCounterBackend--; return o; @@ -402,7 +402,7 @@ checkBackend(api.Backend o) { buildCounterBackend++; if (buildCounterBackend < 3) { - checkUnnamed1158(o.rules); + checkUnnamed1133(o.rules); } buildCounterBackend--; } @@ -432,14 +432,14 @@ buildCounterBackendRule--; } -buildUnnamed1159() { +buildUnnamed1134() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1159(core.List<core.String> o) { +checkUnnamed1134(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -451,7 +451,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { o.condition = buildExpr(); - o.members = buildUnnamed1159(); + o.members = buildUnnamed1134(); o.role = "foo"; } buildCounterBinding--; @@ -462,20 +462,20 @@ buildCounterBinding++; if (buildCounterBinding < 3) { checkExpr(o.condition); - checkUnnamed1159(o.members); + checkUnnamed1134(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed1160() { +buildUnnamed1135() { var o = new core.List<api.ConfigChange>(); o.add(buildConfigChange()); o.add(buildConfigChange()); return o; } -checkUnnamed1160(core.List<api.ConfigChange> o) { +checkUnnamed1135(core.List<api.ConfigChange> o) { unittest.expect(o, unittest.hasLength(2)); checkConfigChange(o[0]); checkConfigChange(o[1]); @@ -486,7 +486,7 @@ var o = new api.ChangeReport(); buildCounterChangeReport++; if (buildCounterChangeReport < 3) { - o.configChanges = buildUnnamed1160(); + o.configChanges = buildUnnamed1135(); } buildCounterChangeReport--; return o; @@ -495,7 +495,7 @@ checkChangeReport(api.ChangeReport o) { buildCounterChangeReport++; if (buildCounterChangeReport < 3) { - checkUnnamed1160(o.configChanges); + checkUnnamed1135(o.configChanges); } buildCounterChangeReport--; } @@ -505,6 +505,7 @@ var o = new api.CloudAuditOptions(); buildCounterCloudAuditOptions++; if (buildCounterCloudAuditOptions < 3) { + o.isReadPermissionType = true; o.logName = "foo"; } buildCounterCloudAuditOptions--; @@ -514,19 +515,20 @@ checkCloudAuditOptions(api.CloudAuditOptions o) { buildCounterCloudAuditOptions++; if (buildCounterCloudAuditOptions < 3) { + unittest.expect(o.isReadPermissionType, unittest.isTrue); unittest.expect(o.logName, unittest.equals('foo')); } buildCounterCloudAuditOptions--; } -buildUnnamed1161() { +buildUnnamed1136() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1161(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')); @@ -542,7 +544,7 @@ o.svc = "foo"; o.sys = "foo"; o.value = "foo"; - o.values = buildUnnamed1161(); + o.values = buildUnnamed1136(); } buildCounterCondition--; return o; @@ -556,19 +558,19 @@ unittest.expect(o.svc, unittest.equals('foo')); unittest.expect(o.sys, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); - checkUnnamed1161(o.values); + checkUnnamed1136(o.values); } buildCounterCondition--; } -buildUnnamed1162() { +buildUnnamed1137() { var o = new core.List<api.Advice>(); o.add(buildAdvice()); o.add(buildAdvice()); return o; } -checkUnnamed1162(core.List<api.Advice> o) { +checkUnnamed1137(core.List<api.Advice> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvice(o[0]); checkAdvice(o[1]); @@ -579,7 +581,7 @@ var o = new api.ConfigChange(); buildCounterConfigChange++; if (buildCounterConfigChange < 3) { - o.advices = buildUnnamed1162(); + o.advices = buildUnnamed1137(); o.changeType = "foo"; o.element = "foo"; o.newValue = "foo"; @@ -592,7 +594,7 @@ checkConfigChange(api.ConfigChange o) { buildCounterConfigChange++; if (buildCounterConfigChange < 3) { - checkUnnamed1162(o.advices); + checkUnnamed1137(o.advices); unittest.expect(o.changeType, unittest.equals('foo')); unittest.expect(o.element, unittest.equals('foo')); unittest.expect(o.newValue, unittest.equals('foo')); @@ -643,14 +645,14 @@ buildCounterConfigRef--; } -buildUnnamed1163() { +buildUnnamed1138() { var o = new core.List<api.ConfigFile>(); o.add(buildConfigFile()); o.add(buildConfigFile()); return o; } -checkUnnamed1163(core.List<api.ConfigFile> o) { +checkUnnamed1138(core.List<api.ConfigFile> o) { unittest.expect(o, unittest.hasLength(2)); checkConfigFile(o[0]); checkConfigFile(o[1]); @@ -661,7 +663,7 @@ var o = new api.ConfigSource(); buildCounterConfigSource++; if (buildCounterConfigSource < 3) { - o.files = buildUnnamed1163(); + o.files = buildUnnamed1138(); o.id = "foo"; } buildCounterConfigSource--; @@ -671,20 +673,20 @@ checkConfigSource(api.ConfigSource o) { buildCounterConfigSource++; if (buildCounterConfigSource < 3) { - checkUnnamed1163(o.files); + checkUnnamed1138(o.files); unittest.expect(o.id, unittest.equals('foo')); } buildCounterConfigSource--; } -buildUnnamed1164() { +buildUnnamed1139() { var o = new core.List<api.ContextRule>(); o.add(buildContextRule()); o.add(buildContextRule()); return o; } -checkUnnamed1164(core.List<api.ContextRule> o) { +checkUnnamed1139(core.List<api.ContextRule> o) { unittest.expect(o, unittest.hasLength(2)); checkContextRule(o[0]); checkContextRule(o[1]); @@ -695,7 +697,7 @@ var o = new api.Context(); buildCounterContext++; if (buildCounterContext < 3) { - o.rules = buildUnnamed1164(); + o.rules = buildUnnamed1139(); } buildCounterContext--; return o; @@ -704,32 +706,32 @@ checkContext(api.Context o) { buildCounterContext++; if (buildCounterContext < 3) { - checkUnnamed1164(o.rules); + checkUnnamed1139(o.rules); } buildCounterContext--; } -buildUnnamed1165() { +buildUnnamed1140() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1165(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')); } -buildUnnamed1166() { +buildUnnamed1141() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1166(core.List<core.String> o) { +checkUnnamed1141(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -740,8 +742,8 @@ var o = new api.ContextRule(); buildCounterContextRule++; if (buildCounterContextRule < 3) { - o.provided = buildUnnamed1165(); - o.requested = buildUnnamed1166(); + o.provided = buildUnnamed1140(); + o.requested = buildUnnamed1141(); o.selector = "foo"; } buildCounterContextRule--; @@ -751,8 +753,8 @@ checkContextRule(api.ContextRule o) { buildCounterContextRule++; if (buildCounterContextRule < 3) { - checkUnnamed1165(o.provided); - checkUnnamed1166(o.requested); + checkUnnamed1140(o.provided); + checkUnnamed1141(o.requested); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterContextRule--; @@ -817,27 +819,27 @@ buildCounterCustomAuthRequirements--; } -buildUnnamed1167() { +buildUnnamed1142() { var o = new core.List<api.CustomErrorRule>(); o.add(buildCustomErrorRule()); o.add(buildCustomErrorRule()); return o; } -checkUnnamed1167(core.List<api.CustomErrorRule> o) { +checkUnnamed1142(core.List<api.CustomErrorRule> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomErrorRule(o[0]); checkCustomErrorRule(o[1]); } -buildUnnamed1168() { +buildUnnamed1143() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1168(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')); @@ -848,8 +850,8 @@ var o = new api.CustomError(); buildCounterCustomError++; if (buildCounterCustomError < 3) { - o.rules = buildUnnamed1167(); - o.types = buildUnnamed1168(); + o.rules = buildUnnamed1142(); + o.types = buildUnnamed1143(); } buildCounterCustomError--; return o; @@ -858,8 +860,8 @@ checkCustomError(api.CustomError o) { buildCounterCustomError++; if (buildCounterCustomError < 3) { - checkUnnamed1167(o.rules); - checkUnnamed1168(o.types); + checkUnnamed1142(o.rules); + checkUnnamed1143(o.types); } buildCounterCustomError--; } @@ -982,27 +984,27 @@ buildCounterDisableServiceRequest--; } -buildUnnamed1169() { +buildUnnamed1144() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1169(core.List<api.Page> o) { +checkUnnamed1144(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed1170() { +buildUnnamed1145() { var o = new core.List<api.DocumentationRule>(); o.add(buildDocumentationRule()); o.add(buildDocumentationRule()); return o; } -checkUnnamed1170(core.List<api.DocumentationRule> o) { +checkUnnamed1145(core.List<api.DocumentationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkDocumentationRule(o[0]); checkDocumentationRule(o[1]); @@ -1015,8 +1017,8 @@ if (buildCounterDocumentation < 3) { o.documentationRootUrl = "foo"; o.overview = "foo"; - o.pages = buildUnnamed1169(); - o.rules = buildUnnamed1170(); + o.pages = buildUnnamed1144(); + o.rules = buildUnnamed1145(); o.summary = "foo"; } buildCounterDocumentation--; @@ -1028,8 +1030,8 @@ if (buildCounterDocumentation < 3) { unittest.expect(o.documentationRootUrl, unittest.equals('foo')); unittest.expect(o.overview, unittest.equals('foo')); - checkUnnamed1169(o.pages); - checkUnnamed1170(o.rules); + checkUnnamed1144(o.pages); + checkUnnamed1145(o.rules); unittest.expect(o.summary, unittest.equals('foo')); } buildCounterDocumentation--; @@ -1077,40 +1079,40 @@ buildCounterEnableServiceRequest--; } -buildUnnamed1171() { +buildUnnamed1146() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1171(core.List<core.String> o) { +checkUnnamed1146(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1172() { +buildUnnamed1147() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1172(core.List<core.String> o) { +checkUnnamed1147(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1173() { +buildUnnamed1148() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1173(core.List<core.String> o) { +checkUnnamed1148(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1121,10 +1123,10 @@ var o = new api.Endpoint(); buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - o.aliases = buildUnnamed1171(); + o.aliases = buildUnnamed1146(); o.allowCors = true; - o.apis = buildUnnamed1172(); - o.features = buildUnnamed1173(); + o.apis = buildUnnamed1147(); + o.features = buildUnnamed1148(); o.name = "foo"; o.target = "foo"; } @@ -1135,37 +1137,37 @@ checkEndpoint(api.Endpoint o) { buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - checkUnnamed1171(o.aliases); + checkUnnamed1146(o.aliases); unittest.expect(o.allowCors, unittest.isTrue); - checkUnnamed1172(o.apis); - checkUnnamed1173(o.features); + checkUnnamed1147(o.apis); + checkUnnamed1148(o.features); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); } buildCounterEndpoint--; } -buildUnnamed1174() { +buildUnnamed1149() { var o = new core.List<api.EnumValue>(); o.add(buildEnumValue()); o.add(buildEnumValue()); return o; } -checkUnnamed1174(core.List<api.EnumValue> o) { +checkUnnamed1149(core.List<api.EnumValue> o) { unittest.expect(o, unittest.hasLength(2)); checkEnumValue(o[0]); checkEnumValue(o[1]); } -buildUnnamed1175() { +buildUnnamed1150() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1175(core.List<api.Option> o) { +checkUnnamed1150(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1176,9 +1178,9 @@ var o = new api.Enum(); buildCounterEnum++; if (buildCounterEnum < 3) { - o.enumvalue = buildUnnamed1174(); + o.enumvalue = buildUnnamed1149(); o.name = "foo"; - o.options = buildUnnamed1175(); + o.options = buildUnnamed1150(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -1189,23 +1191,23 @@ checkEnum(api.Enum o) { buildCounterEnum++; if (buildCounterEnum < 3) { - checkUnnamed1174(o.enumvalue); + checkUnnamed1149(o.enumvalue); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1175(o.options); + checkUnnamed1150(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } buildCounterEnum--; } -buildUnnamed1176() { +buildUnnamed1151() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1176(core.List<api.Option> o) { +checkUnnamed1151(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1218,7 +1220,7 @@ if (buildCounterEnumValue < 3) { o.name = "foo"; o.number = 42; - o.options = buildUnnamed1176(); + o.options = buildUnnamed1151(); } buildCounterEnumValue--; return o; @@ -1229,7 +1231,7 @@ if (buildCounterEnumValue < 3) { unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); - checkUnnamed1176(o.options); + checkUnnamed1151(o.options); } buildCounterEnumValue--; } @@ -1278,14 +1280,14 @@ buildCounterExpr--; } -buildUnnamed1177() { +buildUnnamed1152() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1177(core.List<api.Option> o) { +checkUnnamed1152(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1303,7 +1305,7 @@ o.name = "foo"; o.number = 42; o.oneofIndex = 42; - o.options = buildUnnamed1177(); + o.options = buildUnnamed1152(); o.packed = true; o.typeUrl = "foo"; } @@ -1321,21 +1323,21 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); unittest.expect(o.oneofIndex, unittest.equals(42)); - checkUnnamed1177(o.options); + checkUnnamed1152(o.options); unittest.expect(o.packed, unittest.isTrue); unittest.expect(o.typeUrl, unittest.equals('foo')); } buildCounterField--; } -buildUnnamed1178() { +buildUnnamed1153() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1178(core.List<core.String> o) { +checkUnnamed1153(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1349,7 +1351,7 @@ o.cancelState = "foo"; o.deadline = "foo"; o.flowName = "foo"; - o.resourceNames = buildUnnamed1178(); + o.resourceNames = buildUnnamed1153(); o.startTime = "foo"; } buildCounterFlowOperationMetadata--; @@ -1362,33 +1364,33 @@ unittest.expect(o.cancelState, unittest.equals('foo')); unittest.expect(o.deadline, unittest.equals('foo')); unittest.expect(o.flowName, unittest.equals('foo')); - checkUnnamed1178(o.resourceNames); + checkUnnamed1153(o.resourceNames); unittest.expect(o.startTime, unittest.equals('foo')); } buildCounterFlowOperationMetadata--; } -buildUnnamed1179() { +buildUnnamed1154() { 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; } -checkUnnamed1179(core.Map<core.String, core.Object> o) { +checkUnnamed1154(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')); } -buildUnnamed1180() { +buildUnnamed1155() { 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; } -checkUnnamed1180(core.Map<core.String, core.Object> o) { +checkUnnamed1155(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')); @@ -1399,8 +1401,8 @@ var o = new api.GenerateConfigReportRequest(); buildCounterGenerateConfigReportRequest++; if (buildCounterGenerateConfigReportRequest < 3) { - o.newConfig = buildUnnamed1179(); - o.oldConfig = buildUnnamed1180(); + o.newConfig = buildUnnamed1154(); + o.oldConfig = buildUnnamed1155(); } buildCounterGenerateConfigReportRequest--; return o; @@ -1409,33 +1411,33 @@ checkGenerateConfigReportRequest(api.GenerateConfigReportRequest o) { buildCounterGenerateConfigReportRequest++; if (buildCounterGenerateConfigReportRequest < 3) { - checkUnnamed1179(o.newConfig); - checkUnnamed1180(o.oldConfig); + checkUnnamed1154(o.newConfig); + checkUnnamed1155(o.oldConfig); } buildCounterGenerateConfigReportRequest--; } -buildUnnamed1181() { +buildUnnamed1156() { var o = new core.List<api.ChangeReport>(); o.add(buildChangeReport()); o.add(buildChangeReport()); return o; } -checkUnnamed1181(core.List<api.ChangeReport> o) { +checkUnnamed1156(core.List<api.ChangeReport> o) { unittest.expect(o, unittest.hasLength(2)); checkChangeReport(o[0]); checkChangeReport(o[1]); } -buildUnnamed1182() { +buildUnnamed1157() { var o = new core.List<api.Diagnostic>(); o.add(buildDiagnostic()); o.add(buildDiagnostic()); return o; } -checkUnnamed1182(core.List<api.Diagnostic> o) { +checkUnnamed1157(core.List<api.Diagnostic> o) { unittest.expect(o, unittest.hasLength(2)); checkDiagnostic(o[0]); checkDiagnostic(o[1]); @@ -1446,8 +1448,8 @@ var o = new api.GenerateConfigReportResponse(); buildCounterGenerateConfigReportResponse++; if (buildCounterGenerateConfigReportResponse < 3) { - o.changeReports = buildUnnamed1181(); - o.diagnostics = buildUnnamed1182(); + o.changeReports = buildUnnamed1156(); + o.diagnostics = buildUnnamed1157(); o.id = "foo"; o.serviceName = "foo"; } @@ -1458,8 +1460,8 @@ checkGenerateConfigReportResponse(api.GenerateConfigReportResponse o) { buildCounterGenerateConfigReportResponse++; if (buildCounterGenerateConfigReportResponse < 3) { - checkUnnamed1181(o.changeReports); - checkUnnamed1182(o.diagnostics); + checkUnnamed1156(o.changeReports); + checkUnnamed1157(o.diagnostics); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.serviceName, unittest.equals('foo')); } @@ -1483,14 +1485,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed1183() { +buildUnnamed1158() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed1183(core.List<api.HttpRule> o) { +checkUnnamed1158(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -1502,7 +1504,7 @@ buildCounterHttp++; if (buildCounterHttp < 3) { o.fullyDecodeReservedExpansion = true; - o.rules = buildUnnamed1183(); + o.rules = buildUnnamed1158(); } buildCounterHttp--; return o; @@ -1512,19 +1514,19 @@ buildCounterHttp++; if (buildCounterHttp < 3) { unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); - checkUnnamed1183(o.rules); + checkUnnamed1158(o.rules); } buildCounterHttp--; } -buildUnnamed1184() { +buildUnnamed1159() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed1184(core.List<api.HttpRule> o) { +checkUnnamed1159(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -1535,7 +1537,7 @@ var o = new api.HttpRule(); buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - o.additionalBindings = buildUnnamed1184(); + o.additionalBindings = buildUnnamed1159(); o.body = "foo"; o.custom = buildCustomHttpPattern(); o.delete = "foo"; @@ -1557,7 +1559,7 @@ checkHttpRule(api.HttpRule o) { buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - checkUnnamed1184(o.additionalBindings); + checkUnnamed1159(o.additionalBindings); unittest.expect(o.body, unittest.equals('foo')); checkCustomHttpPattern(o.custom); unittest.expect(o.delete, unittest.equals('foo')); @@ -1598,14 +1600,14 @@ buildCounterLabelDescriptor--; } -buildUnnamed1185() { +buildUnnamed1160() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1185(core.List<api.Operation> o) { +checkUnnamed1160(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1617,7 +1619,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1185(); + o.operations = buildUnnamed1160(); } buildCounterListOperationsResponse--; return o; @@ -1627,19 +1629,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1185(o.operations); + checkUnnamed1160(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1186() { +buildUnnamed1161() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed1186(core.List<api.Service> o) { +checkUnnamed1161(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -1651,7 +1653,7 @@ buildCounterListServiceConfigsResponse++; if (buildCounterListServiceConfigsResponse < 3) { o.nextPageToken = "foo"; - o.serviceConfigs = buildUnnamed1186(); + o.serviceConfigs = buildUnnamed1161(); } buildCounterListServiceConfigsResponse--; return o; @@ -1661,19 +1663,19 @@ buildCounterListServiceConfigsResponse++; if (buildCounterListServiceConfigsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1186(o.serviceConfigs); + checkUnnamed1161(o.serviceConfigs); } buildCounterListServiceConfigsResponse--; } -buildUnnamed1187() { +buildUnnamed1162() { var o = new core.List<api.Rollout>(); o.add(buildRollout()); o.add(buildRollout()); return o; } -checkUnnamed1187(core.List<api.Rollout> o) { +checkUnnamed1162(core.List<api.Rollout> o) { unittest.expect(o, unittest.hasLength(2)); checkRollout(o[0]); checkRollout(o[1]); @@ -1685,7 +1687,7 @@ buildCounterListServiceRolloutsResponse++; if (buildCounterListServiceRolloutsResponse < 3) { o.nextPageToken = "foo"; - o.rollouts = buildUnnamed1187(); + o.rollouts = buildUnnamed1162(); } buildCounterListServiceRolloutsResponse--; return o; @@ -1695,19 +1697,19 @@ buildCounterListServiceRolloutsResponse++; if (buildCounterListServiceRolloutsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1187(o.rollouts); + checkUnnamed1162(o.rollouts); } buildCounterListServiceRolloutsResponse--; } -buildUnnamed1188() { +buildUnnamed1163() { var o = new core.List<api.ManagedService>(); o.add(buildManagedService()); o.add(buildManagedService()); return o; } -checkUnnamed1188(core.List<api.ManagedService> o) { +checkUnnamed1163(core.List<api.ManagedService> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedService(o[0]); checkManagedService(o[1]); @@ -1719,7 +1721,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed1188(); + o.services = buildUnnamed1163(); } buildCounterListServicesResponse--; return o; @@ -1729,7 +1731,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1188(o.services); + checkUnnamed1163(o.services); } buildCounterListServicesResponse--; } @@ -1757,14 +1759,14 @@ buildCounterLogConfig--; } -buildUnnamed1189() { +buildUnnamed1164() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1189(core.List<api.LabelDescriptor> o) { +checkUnnamed1164(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1777,7 +1779,7 @@ if (buildCounterLogDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1189(); + o.labels = buildUnnamed1164(); o.name = "foo"; } buildCounterLogDescriptor--; @@ -1789,33 +1791,33 @@ if (buildCounterLogDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1189(o.labels); + checkUnnamed1164(o.labels); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLogDescriptor--; } -buildUnnamed1190() { +buildUnnamed1165() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed1190(core.List<api.LoggingDestination> o) { +checkUnnamed1165(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); } -buildUnnamed1191() { +buildUnnamed1166() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed1191(core.List<api.LoggingDestination> o) { +checkUnnamed1166(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); @@ -1826,8 +1828,8 @@ var o = new api.Logging(); buildCounterLogging++; if (buildCounterLogging < 3) { - o.consumerDestinations = buildUnnamed1190(); - o.producerDestinations = buildUnnamed1191(); + o.consumerDestinations = buildUnnamed1165(); + o.producerDestinations = buildUnnamed1166(); } buildCounterLogging--; return o; @@ -1836,20 +1838,20 @@ checkLogging(api.Logging o) { buildCounterLogging++; if (buildCounterLogging < 3) { - checkUnnamed1190(o.consumerDestinations); - checkUnnamed1191(o.producerDestinations); + checkUnnamed1165(o.consumerDestinations); + checkUnnamed1166(o.producerDestinations); } buildCounterLogging--; } -buildUnnamed1192() { +buildUnnamed1167() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1192(core.List<core.String> o) { +checkUnnamed1167(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1860,7 +1862,7 @@ var o = new api.LoggingDestination(); buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - o.logs = buildUnnamed1192(); + o.logs = buildUnnamed1167(); o.monitoredResource = "foo"; } buildCounterLoggingDestination--; @@ -1870,7 +1872,7 @@ checkLoggingDestination(api.LoggingDestination o) { buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - checkUnnamed1192(o.logs); + checkUnnamed1167(o.logs); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterLoggingDestination--; @@ -1926,14 +1928,14 @@ buildCounterMediaDownload--; } -buildUnnamed1193() { +buildUnnamed1168() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1193(core.List<core.String> o) { +checkUnnamed1168(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1948,7 +1950,7 @@ o.dropzone = "foo"; o.enabled = true; o.maxSize = "foo"; - o.mimeTypes = buildUnnamed1193(); + o.mimeTypes = buildUnnamed1168(); o.progressNotification = true; o.startNotification = true; o.uploadService = "foo"; @@ -1964,7 +1966,7 @@ unittest.expect(o.dropzone, unittest.equals('foo')); unittest.expect(o.enabled, unittest.isTrue); unittest.expect(o.maxSize, unittest.equals('foo')); - checkUnnamed1193(o.mimeTypes); + checkUnnamed1168(o.mimeTypes); unittest.expect(o.progressNotification, unittest.isTrue); unittest.expect(o.startNotification, unittest.isTrue); unittest.expect(o.uploadService, unittest.equals('foo')); @@ -1972,14 +1974,14 @@ buildCounterMediaUpload--; } -buildUnnamed1194() { +buildUnnamed1169() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1194(core.List<api.Option> o) { +checkUnnamed1169(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1991,7 +1993,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { o.name = "foo"; - o.options = buildUnnamed1194(); + o.options = buildUnnamed1169(); o.requestStreaming = true; o.requestTypeUrl = "foo"; o.responseStreaming = true; @@ -2006,7 +2008,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1194(o.options); + checkUnnamed1169(o.options); unittest.expect(o.requestStreaming, unittest.isTrue); unittest.expect(o.requestTypeUrl, unittest.equals('foo')); unittest.expect(o.responseStreaming, unittest.isTrue); @@ -2016,14 +2018,14 @@ buildCounterMethod--; } -buildUnnamed1195() { +buildUnnamed1170() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1195(core.List<api.LabelDescriptor> o) { +checkUnnamed1170(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -2036,7 +2038,7 @@ if (buildCounterMetricDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1195(); + o.labels = buildUnnamed1170(); o.metricKind = "foo"; o.name = "foo"; o.type = "foo"; @@ -2052,7 +2054,7 @@ if (buildCounterMetricDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1195(o.labels); + checkUnnamed1170(o.labels); unittest.expect(o.metricKind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -2062,14 +2064,14 @@ buildCounterMetricDescriptor--; } -buildUnnamed1196() { +buildUnnamed1171() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1196(core.Map<core.String, core.String> o) { +checkUnnamed1171(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -2080,7 +2082,7 @@ var o = new api.MetricRule(); buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - o.metricCosts = buildUnnamed1196(); + o.metricCosts = buildUnnamed1171(); o.selector = "foo"; } buildCounterMetricRule--; @@ -2090,7 +2092,7 @@ checkMetricRule(api.MetricRule o) { buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - checkUnnamed1196(o.metricCosts); + checkUnnamed1171(o.metricCosts); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterMetricRule--; @@ -2117,14 +2119,14 @@ buildCounterMixin--; } -buildUnnamed1197() { +buildUnnamed1172() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1197(core.List<api.LabelDescriptor> o) { +checkUnnamed1172(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -2137,7 +2139,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1197(); + o.labels = buildUnnamed1172(); o.name = "foo"; o.type = "foo"; } @@ -2150,34 +2152,34 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1197(o.labels); + checkUnnamed1172(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResourceDescriptor--; } -buildUnnamed1198() { +buildUnnamed1173() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed1198(core.List<api.MonitoringDestination> o) { +checkUnnamed1173(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); } -buildUnnamed1199() { +buildUnnamed1174() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed1199(core.List<api.MonitoringDestination> o) { +checkUnnamed1174(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); @@ -2188,8 +2190,8 @@ var o = new api.Monitoring(); buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - o.consumerDestinations = buildUnnamed1198(); - o.producerDestinations = buildUnnamed1199(); + o.consumerDestinations = buildUnnamed1173(); + o.producerDestinations = buildUnnamed1174(); } buildCounterMonitoring--; return o; @@ -2198,20 +2200,20 @@ checkMonitoring(api.Monitoring o) { buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - checkUnnamed1198(o.consumerDestinations); - checkUnnamed1199(o.producerDestinations); + checkUnnamed1173(o.consumerDestinations); + checkUnnamed1174(o.producerDestinations); } buildCounterMonitoring--; } -buildUnnamed1200() { +buildUnnamed1175() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1200(core.List<core.String> o) { +checkUnnamed1175(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2222,7 +2224,7 @@ var o = new api.MonitoringDestination(); buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - o.metrics = buildUnnamed1200(); + o.metrics = buildUnnamed1175(); o.monitoredResource = "foo"; } buildCounterMonitoringDestination--; @@ -2232,7 +2234,7 @@ checkMonitoringDestination(api.MonitoringDestination o) { buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - checkUnnamed1200(o.metrics); + checkUnnamed1175(o.metrics); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterMonitoringDestination--; @@ -2257,27 +2259,27 @@ buildCounterOAuthRequirements--; } -buildUnnamed1201() { +buildUnnamed1176() { 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; } -checkUnnamed1201(core.Map<core.String, core.Object> o) { +checkUnnamed1176(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')); } -buildUnnamed1202() { +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; } -checkUnnamed1202(core.Map<core.String, core.Object> o) { +checkUnnamed1177(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')); @@ -2290,9 +2292,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1201(); + o.metadata = buildUnnamed1176(); o.name = "foo"; - o.response = buildUnnamed1202(); + o.response = buildUnnamed1177(); } buildCounterOperation--; return o; @@ -2303,34 +2305,34 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1201(o.metadata); + checkUnnamed1176(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1202(o.response); + checkUnnamed1177(o.response); } buildCounterOperation--; } -buildUnnamed1203() { +buildUnnamed1178() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1203(core.List<core.String> o) { +checkUnnamed1178(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1204() { +buildUnnamed1179() { var o = new core.List<api.Step>(); o.add(buildStep()); o.add(buildStep()); return o; } -checkUnnamed1204(core.List<api.Step> o) { +checkUnnamed1179(core.List<api.Step> o) { unittest.expect(o, unittest.hasLength(2)); checkStep(o[0]); checkStep(o[1]); @@ -2342,9 +2344,9 @@ buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { o.progressPercentage = 42; - o.resourceNames = buildUnnamed1203(); + o.resourceNames = buildUnnamed1178(); o.startTime = "foo"; - o.steps = buildUnnamed1204(); + o.steps = buildUnnamed1179(); } buildCounterOperationMetadata--; return o; @@ -2354,21 +2356,21 @@ buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { unittest.expect(o.progressPercentage, unittest.equals(42)); - checkUnnamed1203(o.resourceNames); + checkUnnamed1178(o.resourceNames); unittest.expect(o.startTime, unittest.equals('foo')); - checkUnnamed1204(o.steps); + checkUnnamed1179(o.steps); } buildCounterOperationMetadata--; } -buildUnnamed1205() { +buildUnnamed1180() { 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; } -checkUnnamed1205(core.Map<core.String, core.Object> o) { +checkUnnamed1180(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')); @@ -2380,7 +2382,7 @@ buildCounterOption++; if (buildCounterOption < 3) { o.name = "foo"; - o.value = buildUnnamed1205(); + o.value = buildUnnamed1180(); } buildCounterOption--; return o; @@ -2390,19 +2392,19 @@ buildCounterOption++; if (buildCounterOption < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1205(o.value); + checkUnnamed1180(o.value); } buildCounterOption--; } -buildUnnamed1206() { +buildUnnamed1181() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1206(core.List<api.Page> o) { +checkUnnamed1181(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -2415,7 +2417,7 @@ if (buildCounterPage < 3) { o.content = "foo"; o.name = "foo"; - o.subpages = buildUnnamed1206(); + o.subpages = buildUnnamed1181(); } buildCounterPage--; return o; @@ -2426,45 +2428,45 @@ if (buildCounterPage < 3) { unittest.expect(o.content, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1206(o.subpages); + checkUnnamed1181(o.subpages); } buildCounterPage--; } -buildUnnamed1207() { +buildUnnamed1182() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed1207(core.List<api.AuditConfig> o) { +checkUnnamed1182(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed1208() { +buildUnnamed1183() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1208(core.List<api.Binding> o) { +checkUnnamed1183(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); } -buildUnnamed1209() { +buildUnnamed1184() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed1209(core.List<api.Rule> o) { +checkUnnamed1184(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -2475,11 +2477,11 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed1207(); - o.bindings = buildUnnamed1208(); + o.auditConfigs = buildUnnamed1182(); + o.bindings = buildUnnamed1183(); o.etag = "foo"; o.iamOwned = true; - o.rules = buildUnnamed1209(); + o.rules = buildUnnamed1184(); o.version = 42; } buildCounterPolicy--; @@ -2489,37 +2491,37 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1207(o.auditConfigs); - checkUnnamed1208(o.bindings); + checkUnnamed1182(o.auditConfigs); + checkUnnamed1183(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.iamOwned, unittest.isTrue); - checkUnnamed1209(o.rules); + checkUnnamed1184(o.rules); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed1210() { +buildUnnamed1185() { var o = new core.List<api.QuotaLimit>(); o.add(buildQuotaLimit()); o.add(buildQuotaLimit()); return o; } -checkUnnamed1210(core.List<api.QuotaLimit> o) { +checkUnnamed1185(core.List<api.QuotaLimit> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaLimit(o[0]); checkQuotaLimit(o[1]); } -buildUnnamed1211() { +buildUnnamed1186() { var o = new core.List<api.MetricRule>(); o.add(buildMetricRule()); o.add(buildMetricRule()); return o; } -checkUnnamed1211(core.List<api.MetricRule> o) { +checkUnnamed1186(core.List<api.MetricRule> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricRule(o[0]); checkMetricRule(o[1]); @@ -2530,8 +2532,8 @@ var o = new api.Quota(); buildCounterQuota++; if (buildCounterQuota < 3) { - o.limits = buildUnnamed1210(); - o.metricRules = buildUnnamed1211(); + o.limits = buildUnnamed1185(); + o.metricRules = buildUnnamed1186(); } buildCounterQuota--; return o; @@ -2540,20 +2542,20 @@ checkQuota(api.Quota o) { buildCounterQuota++; if (buildCounterQuota < 3) { - checkUnnamed1210(o.limits); - checkUnnamed1211(o.metricRules); + checkUnnamed1185(o.limits); + checkUnnamed1186(o.metricRules); } buildCounterQuota--; } -buildUnnamed1212() { +buildUnnamed1187() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1212(core.Map<core.String, core.String> o) { +checkUnnamed1187(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -2573,7 +2575,7 @@ o.metric = "foo"; o.name = "foo"; o.unit = "foo"; - o.values = buildUnnamed1212(); + o.values = buildUnnamed1187(); } buildCounterQuotaLimit--; return o; @@ -2591,7 +2593,7 @@ unittest.expect(o.metric, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.unit, unittest.equals('foo')); - checkUnnamed1212(o.values); + checkUnnamed1187(o.values); } buildCounterQuotaLimit--; } @@ -2627,66 +2629,66 @@ buildCounterRollout--; } -buildUnnamed1213() { +buildUnnamed1188() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed1213(core.List<api.Condition> o) { +checkUnnamed1188(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed1214() { +buildUnnamed1189() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1214(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')); } -buildUnnamed1215() { +buildUnnamed1190() { var o = new core.List<api.LogConfig>(); o.add(buildLogConfig()); o.add(buildLogConfig()); return o; } -checkUnnamed1215(core.List<api.LogConfig> o) { +checkUnnamed1190(core.List<api.LogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkLogConfig(o[0]); checkLogConfig(o[1]); } -buildUnnamed1216() { +buildUnnamed1191() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1216(core.List<core.String> o) { +checkUnnamed1191(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1217() { +buildUnnamed1192() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1217(core.List<core.String> o) { +checkUnnamed1192(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2698,12 +2700,12 @@ buildCounterRule++; if (buildCounterRule < 3) { o.action = "foo"; - o.conditions = buildUnnamed1213(); + o.conditions = buildUnnamed1188(); o.description = "foo"; - o.in_ = buildUnnamed1214(); - o.logConfig = buildUnnamed1215(); - o.notIn = buildUnnamed1216(); - o.permissions = buildUnnamed1217(); + o.in_ = buildUnnamed1189(); + o.logConfig = buildUnnamed1190(); + o.notIn = buildUnnamed1191(); + o.permissions = buildUnnamed1192(); } buildCounterRule--; return o; @@ -2713,115 +2715,115 @@ buildCounterRule++; if (buildCounterRule < 3) { unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed1213(o.conditions); + checkUnnamed1188(o.conditions); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1214(o.in_); - checkUnnamed1215(o.logConfig); - checkUnnamed1216(o.notIn); - checkUnnamed1217(o.permissions); + checkUnnamed1189(o.in_); + checkUnnamed1190(o.logConfig); + checkUnnamed1191(o.notIn); + checkUnnamed1192(o.permissions); } buildCounterRule--; } -buildUnnamed1218() { +buildUnnamed1193() { var o = new core.List<api.Api>(); o.add(buildApi()); o.add(buildApi()); return o; } -checkUnnamed1218(core.List<api.Api> o) { +checkUnnamed1193(core.List<api.Api> o) { unittest.expect(o, unittest.hasLength(2)); checkApi(o[0]); checkApi(o[1]); } -buildUnnamed1219() { +buildUnnamed1194() { var o = new core.List<api.Endpoint>(); o.add(buildEndpoint()); o.add(buildEndpoint()); return o; } -checkUnnamed1219(core.List<api.Endpoint> o) { +checkUnnamed1194(core.List<api.Endpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkEndpoint(o[0]); checkEndpoint(o[1]); } -buildUnnamed1220() { +buildUnnamed1195() { var o = new core.List<api.Enum>(); o.add(buildEnum()); o.add(buildEnum()); return o; } -checkUnnamed1220(core.List<api.Enum> o) { +checkUnnamed1195(core.List<api.Enum> o) { unittest.expect(o, unittest.hasLength(2)); checkEnum(o[0]); checkEnum(o[1]); } -buildUnnamed1221() { +buildUnnamed1196() { var o = new core.List<api.LogDescriptor>(); o.add(buildLogDescriptor()); o.add(buildLogDescriptor()); return o; } -checkUnnamed1221(core.List<api.LogDescriptor> o) { +checkUnnamed1196(core.List<api.LogDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLogDescriptor(o[0]); checkLogDescriptor(o[1]); } -buildUnnamed1222() { +buildUnnamed1197() { var o = new core.List<api.MetricDescriptor>(); o.add(buildMetricDescriptor()); o.add(buildMetricDescriptor()); return o; } -checkUnnamed1222(core.List<api.MetricDescriptor> o) { +checkUnnamed1197(core.List<api.MetricDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricDescriptor(o[0]); checkMetricDescriptor(o[1]); } -buildUnnamed1223() { +buildUnnamed1198() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed1223(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed1198(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); } -buildUnnamed1224() { +buildUnnamed1199() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed1224(core.List<api.Type> o) { +checkUnnamed1199(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); } -buildUnnamed1225() { +buildUnnamed1200() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed1225(core.List<api.Type> o) { +checkUnnamed1200(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); @@ -2832,7 +2834,7 @@ var o = new api.Service(); buildCounterService++; if (buildCounterService < 3) { - o.apis = buildUnnamed1218(); + o.apis = buildUnnamed1193(); o.authentication = buildAuthentication(); o.backend = buildBackend(); o.configVersion = 42; @@ -2840,24 +2842,24 @@ o.control = buildControl(); o.customError = buildCustomError(); o.documentation = buildDocumentation(); - o.endpoints = buildUnnamed1219(); - o.enums = buildUnnamed1220(); + o.endpoints = buildUnnamed1194(); + o.enums = buildUnnamed1195(); o.experimental = buildExperimental(); o.http = buildHttp(); o.id = "foo"; o.logging = buildLogging(); - o.logs = buildUnnamed1221(); - o.metrics = buildUnnamed1222(); - o.monitoredResources = buildUnnamed1223(); + o.logs = buildUnnamed1196(); + o.metrics = buildUnnamed1197(); + o.monitoredResources = buildUnnamed1198(); o.monitoring = buildMonitoring(); o.name = "foo"; o.producerProjectId = "foo"; o.quota = buildQuota(); o.sourceInfo = buildSourceInfo(); o.systemParameters = buildSystemParameters(); - o.systemTypes = buildUnnamed1224(); + o.systemTypes = buildUnnamed1199(); o.title = "foo"; - o.types = buildUnnamed1225(); + o.types = buildUnnamed1200(); o.usage = buildUsage(); o.visibility = buildVisibility(); } @@ -2868,7 +2870,7 @@ checkService(api.Service o) { buildCounterService++; if (buildCounterService < 3) { - checkUnnamed1218(o.apis); + checkUnnamed1193(o.apis); checkAuthentication(o.authentication); checkBackend(o.backend); unittest.expect(o.configVersion, unittest.equals(42)); @@ -2876,24 +2878,24 @@ checkControl(o.control); checkCustomError(o.customError); checkDocumentation(o.documentation); - checkUnnamed1219(o.endpoints); - checkUnnamed1220(o.enums); + checkUnnamed1194(o.endpoints); + checkUnnamed1195(o.enums); checkExperimental(o.experimental); checkHttp(o.http); unittest.expect(o.id, unittest.equals('foo')); checkLogging(o.logging); - checkUnnamed1221(o.logs); - checkUnnamed1222(o.metrics); - checkUnnamed1223(o.monitoredResources); + checkUnnamed1196(o.logs); + checkUnnamed1197(o.metrics); + checkUnnamed1198(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); - checkUnnamed1224(o.systemTypes); + checkUnnamed1199(o.systemTypes); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed1225(o.types); + checkUnnamed1200(o.types); checkUsage(o.usage); checkVisibility(o.visibility); } @@ -2940,30 +2942,30 @@ buildCounterSourceContext--; } -buildUnnamed1226() { +buildUnnamed1201() { 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; } -checkUnnamed1226(core.Map<core.String, core.Object> o) { +checkUnnamed1201(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')); } -buildUnnamed1227() { +buildUnnamed1202() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1226()); - o.add(buildUnnamed1226()); + o.add(buildUnnamed1201()); + o.add(buildUnnamed1201()); return o; } -checkUnnamed1227(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1202(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1226(o[0]); - checkUnnamed1226(o[1]); + checkUnnamed1201(o[0]); + checkUnnamed1201(o[1]); } core.int buildCounterSourceInfo = 0; @@ -2971,7 +2973,7 @@ var o = new api.SourceInfo(); buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - o.sourceFiles = buildUnnamed1227(); + o.sourceFiles = buildUnnamed1202(); } buildCounterSourceInfo--; return o; @@ -2980,35 +2982,35 @@ checkSourceInfo(api.SourceInfo o) { buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - checkUnnamed1227(o.sourceFiles); + checkUnnamed1202(o.sourceFiles); } buildCounterSourceInfo--; } -buildUnnamed1228() { +buildUnnamed1203() { 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; } -checkUnnamed1228(core.Map<core.String, core.Object> o) { +checkUnnamed1203(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted13 = (o["x"]) as core.Map; unittest.expect(casted13, unittest.hasLength(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest.expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["string"], unittest.equals('foo')); var casted14 = (o["y"]) as core.Map; unittest.expect(casted14, unittest.hasLength(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest.expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["string"], unittest.equals('foo')); } -buildUnnamed1229() { +buildUnnamed1204() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1228()); - o.add(buildUnnamed1228()); + o.add(buildUnnamed1203()); + o.add(buildUnnamed1203()); return o; } -checkUnnamed1229(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1204(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1228(o[0]); - checkUnnamed1228(o[1]); + checkUnnamed1203(o[0]); + checkUnnamed1203(o[1]); } core.int buildCounterStatus = 0; @@ -3017,7 +3019,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1229(); + o.details = buildUnnamed1204(); o.message = "foo"; } buildCounterStatus--; @@ -3028,7 +3030,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1229(o.details); + checkUnnamed1204(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -3118,14 +3120,14 @@ buildCounterSystemParameter--; } -buildUnnamed1230() { +buildUnnamed1205() { var o = new core.List<api.SystemParameter>(); o.add(buildSystemParameter()); o.add(buildSystemParameter()); return o; } -checkUnnamed1230(core.List<api.SystemParameter> o) { +checkUnnamed1205(core.List<api.SystemParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameter(o[0]); checkSystemParameter(o[1]); @@ -3136,7 +3138,7 @@ var o = new api.SystemParameterRule(); buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - o.parameters = buildUnnamed1230(); + o.parameters = buildUnnamed1205(); o.selector = "foo"; } buildCounterSystemParameterRule--; @@ -3146,20 +3148,20 @@ checkSystemParameterRule(api.SystemParameterRule o) { buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - checkUnnamed1230(o.parameters); + checkUnnamed1205(o.parameters); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterSystemParameterRule--; } -buildUnnamed1231() { +buildUnnamed1206() { var o = new core.List<api.SystemParameterRule>(); o.add(buildSystemParameterRule()); o.add(buildSystemParameterRule()); return o; } -checkUnnamed1231(core.List<api.SystemParameterRule> o) { +checkUnnamed1206(core.List<api.SystemParameterRule> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameterRule(o[0]); checkSystemParameterRule(o[1]); @@ -3170,7 +3172,7 @@ var o = new api.SystemParameters(); buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - o.rules = buildUnnamed1231(); + o.rules = buildUnnamed1206(); } buildCounterSystemParameters--; return o; @@ -3179,19 +3181,19 @@ checkSystemParameters(api.SystemParameters o) { buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - checkUnnamed1231(o.rules); + checkUnnamed1206(o.rules); } buildCounterSystemParameters--; } -buildUnnamed1232() { +buildUnnamed1207() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1232(core.List<core.String> o) { +checkUnnamed1207(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3202,7 +3204,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1232(); + o.permissions = buildUnnamed1207(); } buildCounterTestIamPermissionsRequest--; return o; @@ -3211,19 +3213,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1232(o.permissions); + checkUnnamed1207(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1233() { +buildUnnamed1208() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1233(core.List<core.String> o) { +checkUnnamed1208(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3234,7 +3236,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1233(); + o.permissions = buildUnnamed1208(); } buildCounterTestIamPermissionsResponse--; return o; @@ -3243,19 +3245,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1233(o.permissions); + checkUnnamed1208(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed1234() { +buildUnnamed1209() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed1234(core.Map<core.String, core.double> o) { +checkUnnamed1209(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)); @@ -3266,7 +3268,7 @@ var o = new api.TrafficPercentStrategy(); buildCounterTrafficPercentStrategy++; if (buildCounterTrafficPercentStrategy < 3) { - o.percentages = buildUnnamed1234(); + o.percentages = buildUnnamed1209(); } buildCounterTrafficPercentStrategy--; return o; @@ -3275,45 +3277,45 @@ checkTrafficPercentStrategy(api.TrafficPercentStrategy o) { buildCounterTrafficPercentStrategy++; if (buildCounterTrafficPercentStrategy < 3) { - checkUnnamed1234(o.percentages); + checkUnnamed1209(o.percentages); } buildCounterTrafficPercentStrategy--; } -buildUnnamed1235() { +buildUnnamed1210() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed1235(core.List<api.Field> o) { +checkUnnamed1210(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); } -buildUnnamed1236() { +buildUnnamed1211() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1236(core.List<core.String> o) { +checkUnnamed1211(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1237() { +buildUnnamed1212() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1237(core.List<api.Option> o) { +checkUnnamed1212(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -3324,10 +3326,10 @@ var o = new api.Type(); buildCounterType++; if (buildCounterType < 3) { - o.fields = buildUnnamed1235(); + o.fields = buildUnnamed1210(); o.name = "foo"; - o.oneofs = buildUnnamed1236(); - o.options = buildUnnamed1237(); + o.oneofs = buildUnnamed1211(); + o.options = buildUnnamed1212(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -3338,10 +3340,10 @@ checkType(api.Type o) { buildCounterType++; if (buildCounterType < 3) { - checkUnnamed1235(o.fields); + checkUnnamed1210(o.fields); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1236(o.oneofs); - checkUnnamed1237(o.options); + checkUnnamed1211(o.oneofs); + checkUnnamed1212(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } @@ -3367,27 +3369,27 @@ buildCounterUndeleteServiceResponse--; } -buildUnnamed1238() { +buildUnnamed1213() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1238(core.List<core.String> o) { +checkUnnamed1213(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1239() { +buildUnnamed1214() { var o = new core.List<api.UsageRule>(); o.add(buildUsageRule()); o.add(buildUsageRule()); return o; } -checkUnnamed1239(core.List<api.UsageRule> o) { +checkUnnamed1214(core.List<api.UsageRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageRule(o[0]); checkUsageRule(o[1]); @@ -3399,8 +3401,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { o.producerNotificationChannel = "foo"; - o.requirements = buildUnnamed1238(); - o.rules = buildUnnamed1239(); + o.requirements = buildUnnamed1213(); + o.rules = buildUnnamed1214(); } buildCounterUsage--; return o; @@ -3410,8 +3412,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); - checkUnnamed1238(o.requirements); - checkUnnamed1239(o.rules); + checkUnnamed1213(o.requirements); + checkUnnamed1214(o.rules); } buildCounterUsage--; } @@ -3439,14 +3441,14 @@ buildCounterUsageRule--; } -buildUnnamed1240() { +buildUnnamed1215() { var o = new core.List<api.VisibilityRule>(); o.add(buildVisibilityRule()); o.add(buildVisibilityRule()); return o; } -checkUnnamed1240(core.List<api.VisibilityRule> o) { +checkUnnamed1215(core.List<api.VisibilityRule> o) { unittest.expect(o, unittest.hasLength(2)); checkVisibilityRule(o[0]); checkVisibilityRule(o[1]); @@ -3457,7 +3459,7 @@ var o = new api.Visibility(); buildCounterVisibility++; if (buildCounterVisibility < 3) { - o.rules = buildUnnamed1240(); + o.rules = buildUnnamed1215(); } buildCounterVisibility--; return o; @@ -3466,7 +3468,7 @@ checkVisibility(api.Visibility o) { buildCounterVisibility++; if (buildCounterVisibility < 3) { - checkUnnamed1240(o.rules); + checkUnnamed1215(o.rules); } buildCounterVisibility--; } @@ -4399,10 +4401,10 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.ServicemanagementApi(mock).operations; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_name = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -4429,10 +4431,10 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), 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(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); var h = { @@ -4441,7 +4443,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(pageToken: arg_pageToken, name: arg_name, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListOperationsResponse response) { + res.list(filter: arg_filter, pageToken: arg_pageToken, name: arg_name, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); }); @@ -4753,8 +4755,8 @@ var mock = new HttpServerMock(); api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; var arg_serviceName = "foo"; - var arg_view = "foo"; var arg_configId = "foo"; + var arg_view = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -4788,8 +4790,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), 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)); var h = { @@ -4798,7 +4800,7 @@ var resp = convert.JSON.encode(buildService()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getConfig(arg_serviceName, view: arg_view, configId: arg_configId).then(unittest.expectAsync1(((api.Service response) { + res.getConfig(arg_serviceName, configId: arg_configId, view: arg_view).then(unittest.expectAsync1(((api.Service response) { checkService(response); }))); }); @@ -5548,9 +5550,9 @@ var mock = new HttpServerMock(); api.ServicesRolloutsResourceApi res = new api.ServicemanagementApi(mock).services.rollouts; var arg_serviceName = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -5584,9 +5586,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), 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)); var h = { @@ -5595,7 +5597,7 @@ var resp = convert.JSON.encode(buildListServiceRolloutsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_serviceName, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListServiceRolloutsResponse response) { + res.list(arg_serviceName, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListServiceRolloutsResponse response) { checkListServiceRolloutsResponse(response); }))); });
diff --git a/generated/googleapis/test/serviceuser/v1_test.dart b/generated/googleapis/test/serviceuser/v1_test.dart index b786077..de9fb28 100644 --- a/generated/googleapis/test/serviceuser/v1_test.dart +++ b/generated/googleapis/test/serviceuser/v1_test.dart
@@ -51,40 +51,40 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1727() { +buildUnnamed1759() { var o = new core.List<api.Method>(); o.add(buildMethod()); o.add(buildMethod()); return o; } -checkUnnamed1727(core.List<api.Method> o) { +checkUnnamed1759(core.List<api.Method> o) { unittest.expect(o, unittest.hasLength(2)); checkMethod(o[0]); checkMethod(o[1]); } -buildUnnamed1728() { +buildUnnamed1760() { var o = new core.List<api.Mixin>(); o.add(buildMixin()); o.add(buildMixin()); return o; } -checkUnnamed1728(core.List<api.Mixin> o) { +checkUnnamed1760(core.List<api.Mixin> o) { unittest.expect(o, unittest.hasLength(2)); checkMixin(o[0]); checkMixin(o[1]); } -buildUnnamed1729() { +buildUnnamed1761() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1729(core.List<api.Option> o) { +checkUnnamed1761(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -95,10 +95,10 @@ var o = new api.Api(); buildCounterApi++; if (buildCounterApi < 3) { - o.methods = buildUnnamed1727(); - o.mixins = buildUnnamed1728(); + o.methods = buildUnnamed1759(); + o.mixins = buildUnnamed1760(); o.name = "foo"; - o.options = buildUnnamed1729(); + o.options = buildUnnamed1761(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; o.version = "foo"; @@ -110,10 +110,10 @@ checkApi(api.Api o) { buildCounterApi++; if (buildCounterApi < 3) { - checkUnnamed1727(o.methods); - checkUnnamed1728(o.mixins); + checkUnnamed1759(o.methods); + checkUnnamed1760(o.mixins); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1729(o.options); + checkUnnamed1761(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -167,27 +167,27 @@ buildCounterAuthRequirement--; } -buildUnnamed1730() { +buildUnnamed1762() { var o = new core.List<api.AuthProvider>(); o.add(buildAuthProvider()); o.add(buildAuthProvider()); return o; } -checkUnnamed1730(core.List<api.AuthProvider> o) { +checkUnnamed1762(core.List<api.AuthProvider> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthProvider(o[0]); checkAuthProvider(o[1]); } -buildUnnamed1731() { +buildUnnamed1763() { var o = new core.List<api.AuthenticationRule>(); o.add(buildAuthenticationRule()); o.add(buildAuthenticationRule()); return o; } -checkUnnamed1731(core.List<api.AuthenticationRule> o) { +checkUnnamed1763(core.List<api.AuthenticationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthenticationRule(o[0]); checkAuthenticationRule(o[1]); @@ -198,8 +198,8 @@ var o = new api.Authentication(); buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - o.providers = buildUnnamed1730(); - o.rules = buildUnnamed1731(); + o.providers = buildUnnamed1762(); + o.rules = buildUnnamed1763(); } buildCounterAuthentication--; return o; @@ -208,20 +208,20 @@ checkAuthentication(api.Authentication o) { buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - checkUnnamed1730(o.providers); - checkUnnamed1731(o.rules); + checkUnnamed1762(o.providers); + checkUnnamed1763(o.rules); } buildCounterAuthentication--; } -buildUnnamed1732() { +buildUnnamed1764() { var o = new core.List<api.AuthRequirement>(); o.add(buildAuthRequirement()); o.add(buildAuthRequirement()); return o; } -checkUnnamed1732(core.List<api.AuthRequirement> o) { +checkUnnamed1764(core.List<api.AuthRequirement> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthRequirement(o[0]); checkAuthRequirement(o[1]); @@ -235,7 +235,7 @@ o.allowWithoutCredential = true; o.customAuth = buildCustomAuthRequirements(); o.oauth = buildOAuthRequirements(); - o.requirements = buildUnnamed1732(); + o.requirements = buildUnnamed1764(); o.selector = "foo"; } buildCounterAuthenticationRule--; @@ -248,7 +248,7 @@ unittest.expect(o.allowWithoutCredential, unittest.isTrue); checkCustomAuthRequirements(o.customAuth); checkOAuthRequirements(o.oauth); - checkUnnamed1732(o.requirements); + checkUnnamed1764(o.requirements); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterAuthenticationRule--; @@ -273,14 +273,14 @@ buildCounterAuthorizationConfig--; } -buildUnnamed1733() { +buildUnnamed1765() { var o = new core.List<api.BackendRule>(); o.add(buildBackendRule()); o.add(buildBackendRule()); return o; } -checkUnnamed1733(core.List<api.BackendRule> o) { +checkUnnamed1765(core.List<api.BackendRule> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendRule(o[0]); checkBackendRule(o[1]); @@ -291,7 +291,7 @@ var o = new api.Backend(); buildCounterBackend++; if (buildCounterBackend < 3) { - o.rules = buildUnnamed1733(); + o.rules = buildUnnamed1765(); } buildCounterBackend--; return o; @@ -300,7 +300,7 @@ checkBackend(api.Backend o) { buildCounterBackend++; if (buildCounterBackend < 3) { - checkUnnamed1733(o.rules); + checkUnnamed1765(o.rules); } buildCounterBackend--; } @@ -330,14 +330,14 @@ buildCounterBackendRule--; } -buildUnnamed1734() { +buildUnnamed1766() { var o = new core.List<api.ContextRule>(); o.add(buildContextRule()); o.add(buildContextRule()); return o; } -checkUnnamed1734(core.List<api.ContextRule> o) { +checkUnnamed1766(core.List<api.ContextRule> o) { unittest.expect(o, unittest.hasLength(2)); checkContextRule(o[0]); checkContextRule(o[1]); @@ -348,7 +348,7 @@ var o = new api.Context(); buildCounterContext++; if (buildCounterContext < 3) { - o.rules = buildUnnamed1734(); + o.rules = buildUnnamed1766(); } buildCounterContext--; return o; @@ -357,32 +357,32 @@ checkContext(api.Context o) { buildCounterContext++; if (buildCounterContext < 3) { - checkUnnamed1734(o.rules); + checkUnnamed1766(o.rules); } buildCounterContext--; } -buildUnnamed1735() { +buildUnnamed1767() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1735(core.List<core.String> o) { +checkUnnamed1767(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1736() { +buildUnnamed1768() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1736(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')); @@ -393,8 +393,8 @@ var o = new api.ContextRule(); buildCounterContextRule++; if (buildCounterContextRule < 3) { - o.provided = buildUnnamed1735(); - o.requested = buildUnnamed1736(); + o.provided = buildUnnamed1767(); + o.requested = buildUnnamed1768(); o.selector = "foo"; } buildCounterContextRule--; @@ -404,8 +404,8 @@ checkContextRule(api.ContextRule o) { buildCounterContextRule++; if (buildCounterContextRule < 3) { - checkUnnamed1735(o.provided); - checkUnnamed1736(o.requested); + checkUnnamed1767(o.provided); + checkUnnamed1768(o.requested); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterContextRule--; @@ -449,27 +449,27 @@ buildCounterCustomAuthRequirements--; } -buildUnnamed1737() { +buildUnnamed1769() { var o = new core.List<api.CustomErrorRule>(); o.add(buildCustomErrorRule()); o.add(buildCustomErrorRule()); return o; } -checkUnnamed1737(core.List<api.CustomErrorRule> o) { +checkUnnamed1769(core.List<api.CustomErrorRule> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomErrorRule(o[0]); checkCustomErrorRule(o[1]); } -buildUnnamed1738() { +buildUnnamed1770() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1738(core.List<core.String> o) { +checkUnnamed1770(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -480,8 +480,8 @@ var o = new api.CustomError(); buildCounterCustomError++; if (buildCounterCustomError < 3) { - o.rules = buildUnnamed1737(); - o.types = buildUnnamed1738(); + o.rules = buildUnnamed1769(); + o.types = buildUnnamed1770(); } buildCounterCustomError--; return o; @@ -490,8 +490,8 @@ checkCustomError(api.CustomError o) { buildCounterCustomError++; if (buildCounterCustomError < 3) { - checkUnnamed1737(o.rules); - checkUnnamed1738(o.types); + checkUnnamed1769(o.rules); + checkUnnamed1770(o.types); } buildCounterCustomError--; } @@ -555,27 +555,27 @@ buildCounterDisableServiceRequest--; } -buildUnnamed1739() { +buildUnnamed1771() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1739(core.List<api.Page> o) { +checkUnnamed1771(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed1740() { +buildUnnamed1772() { var o = new core.List<api.DocumentationRule>(); o.add(buildDocumentationRule()); o.add(buildDocumentationRule()); return o; } -checkUnnamed1740(core.List<api.DocumentationRule> o) { +checkUnnamed1772(core.List<api.DocumentationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkDocumentationRule(o[0]); checkDocumentationRule(o[1]); @@ -588,8 +588,8 @@ if (buildCounterDocumentation < 3) { o.documentationRootUrl = "foo"; o.overview = "foo"; - o.pages = buildUnnamed1739(); - o.rules = buildUnnamed1740(); + o.pages = buildUnnamed1771(); + o.rules = buildUnnamed1772(); o.summary = "foo"; } buildCounterDocumentation--; @@ -601,8 +601,8 @@ if (buildCounterDocumentation < 3) { unittest.expect(o.documentationRootUrl, unittest.equals('foo')); unittest.expect(o.overview, unittest.equals('foo')); - checkUnnamed1739(o.pages); - checkUnnamed1740(o.rules); + checkUnnamed1771(o.pages); + checkUnnamed1772(o.rules); unittest.expect(o.summary, unittest.equals('foo')); } buildCounterDocumentation--; @@ -648,40 +648,40 @@ buildCounterEnableServiceRequest--; } -buildUnnamed1741() { +buildUnnamed1773() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1741(core.List<core.String> o) { +checkUnnamed1773(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1742() { +buildUnnamed1774() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1742(core.List<core.String> o) { +checkUnnamed1774(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1743() { +buildUnnamed1775() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1743(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')); @@ -692,10 +692,10 @@ var o = new api.Endpoint(); buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - o.aliases = buildUnnamed1741(); + o.aliases = buildUnnamed1773(); o.allowCors = true; - o.apis = buildUnnamed1742(); - o.features = buildUnnamed1743(); + o.apis = buildUnnamed1774(); + o.features = buildUnnamed1775(); o.name = "foo"; o.target = "foo"; } @@ -706,37 +706,37 @@ checkEndpoint(api.Endpoint o) { buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - checkUnnamed1741(o.aliases); + checkUnnamed1773(o.aliases); unittest.expect(o.allowCors, unittest.isTrue); - checkUnnamed1742(o.apis); - checkUnnamed1743(o.features); + checkUnnamed1774(o.apis); + checkUnnamed1775(o.features); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); } buildCounterEndpoint--; } -buildUnnamed1744() { +buildUnnamed1776() { var o = new core.List<api.EnumValue>(); o.add(buildEnumValue()); o.add(buildEnumValue()); return o; } -checkUnnamed1744(core.List<api.EnumValue> o) { +checkUnnamed1776(core.List<api.EnumValue> o) { unittest.expect(o, unittest.hasLength(2)); checkEnumValue(o[0]); checkEnumValue(o[1]); } -buildUnnamed1745() { +buildUnnamed1777() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1745(core.List<api.Option> o) { +checkUnnamed1777(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -747,9 +747,9 @@ var o = new api.Enum(); buildCounterEnum++; if (buildCounterEnum < 3) { - o.enumvalue = buildUnnamed1744(); + o.enumvalue = buildUnnamed1776(); o.name = "foo"; - o.options = buildUnnamed1745(); + o.options = buildUnnamed1777(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -760,23 +760,23 @@ checkEnum(api.Enum o) { buildCounterEnum++; if (buildCounterEnum < 3) { - checkUnnamed1744(o.enumvalue); + checkUnnamed1776(o.enumvalue); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1745(o.options); + checkUnnamed1777(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } buildCounterEnum--; } -buildUnnamed1746() { +buildUnnamed1778() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1746(core.List<api.Option> o) { +checkUnnamed1778(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -789,7 +789,7 @@ if (buildCounterEnumValue < 3) { o.name = "foo"; o.number = 42; - o.options = buildUnnamed1746(); + o.options = buildUnnamed1778(); } buildCounterEnumValue--; return o; @@ -800,7 +800,7 @@ if (buildCounterEnumValue < 3) { unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); - checkUnnamed1746(o.options); + checkUnnamed1778(o.options); } buildCounterEnumValue--; } @@ -824,14 +824,14 @@ buildCounterExperimental--; } -buildUnnamed1747() { +buildUnnamed1779() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1747(core.List<api.Option> o) { +checkUnnamed1779(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -849,7 +849,7 @@ o.name = "foo"; o.number = 42; o.oneofIndex = 42; - o.options = buildUnnamed1747(); + o.options = buildUnnamed1779(); o.packed = true; o.typeUrl = "foo"; } @@ -867,21 +867,21 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); unittest.expect(o.oneofIndex, unittest.equals(42)); - checkUnnamed1747(o.options); + checkUnnamed1779(o.options); unittest.expect(o.packed, unittest.isTrue); unittest.expect(o.typeUrl, unittest.equals('foo')); } buildCounterField--; } -buildUnnamed1748() { +buildUnnamed1780() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed1748(core.List<api.HttpRule> o) { +checkUnnamed1780(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -893,7 +893,7 @@ buildCounterHttp++; if (buildCounterHttp < 3) { o.fullyDecodeReservedExpansion = true; - o.rules = buildUnnamed1748(); + o.rules = buildUnnamed1780(); } buildCounterHttp--; return o; @@ -903,19 +903,19 @@ buildCounterHttp++; if (buildCounterHttp < 3) { unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); - checkUnnamed1748(o.rules); + checkUnnamed1780(o.rules); } buildCounterHttp--; } -buildUnnamed1749() { +buildUnnamed1781() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed1749(core.List<api.HttpRule> o) { +checkUnnamed1781(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -926,7 +926,7 @@ var o = new api.HttpRule(); buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - o.additionalBindings = buildUnnamed1749(); + o.additionalBindings = buildUnnamed1781(); o.body = "foo"; o.custom = buildCustomHttpPattern(); o.delete = "foo"; @@ -948,7 +948,7 @@ checkHttpRule(api.HttpRule o) { buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - checkUnnamed1749(o.additionalBindings); + checkUnnamed1781(o.additionalBindings); unittest.expect(o.body, unittest.equals('foo')); checkCustomHttpPattern(o.custom); unittest.expect(o.delete, unittest.equals('foo')); @@ -989,14 +989,14 @@ buildCounterLabelDescriptor--; } -buildUnnamed1750() { +buildUnnamed1782() { var o = new core.List<api.PublishedService>(); o.add(buildPublishedService()); o.add(buildPublishedService()); return o; } -checkUnnamed1750(core.List<api.PublishedService> o) { +checkUnnamed1782(core.List<api.PublishedService> o) { unittest.expect(o, unittest.hasLength(2)); checkPublishedService(o[0]); checkPublishedService(o[1]); @@ -1008,7 +1008,7 @@ buildCounterListEnabledServicesResponse++; if (buildCounterListEnabledServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed1750(); + o.services = buildUnnamed1782(); } buildCounterListEnabledServicesResponse--; return o; @@ -1018,19 +1018,19 @@ buildCounterListEnabledServicesResponse++; if (buildCounterListEnabledServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1750(o.services); + checkUnnamed1782(o.services); } buildCounterListEnabledServicesResponse--; } -buildUnnamed1751() { +buildUnnamed1783() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1751(core.List<api.LabelDescriptor> o) { +checkUnnamed1783(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1043,7 +1043,7 @@ if (buildCounterLogDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1751(); + o.labels = buildUnnamed1783(); o.name = "foo"; } buildCounterLogDescriptor--; @@ -1055,33 +1055,33 @@ if (buildCounterLogDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1751(o.labels); + checkUnnamed1783(o.labels); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLogDescriptor--; } -buildUnnamed1752() { +buildUnnamed1784() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed1752(core.List<api.LoggingDestination> o) { +checkUnnamed1784(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); } -buildUnnamed1753() { +buildUnnamed1785() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed1753(core.List<api.LoggingDestination> o) { +checkUnnamed1785(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); @@ -1092,8 +1092,8 @@ var o = new api.Logging(); buildCounterLogging++; if (buildCounterLogging < 3) { - o.consumerDestinations = buildUnnamed1752(); - o.producerDestinations = buildUnnamed1753(); + o.consumerDestinations = buildUnnamed1784(); + o.producerDestinations = buildUnnamed1785(); } buildCounterLogging--; return o; @@ -1102,20 +1102,20 @@ checkLogging(api.Logging o) { buildCounterLogging++; if (buildCounterLogging < 3) { - checkUnnamed1752(o.consumerDestinations); - checkUnnamed1753(o.producerDestinations); + checkUnnamed1784(o.consumerDestinations); + checkUnnamed1785(o.producerDestinations); } buildCounterLogging--; } -buildUnnamed1754() { +buildUnnamed1786() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1754(core.List<core.String> o) { +checkUnnamed1786(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1126,7 +1126,7 @@ var o = new api.LoggingDestination(); buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - o.logs = buildUnnamed1754(); + o.logs = buildUnnamed1786(); o.monitoredResource = "foo"; } buildCounterLoggingDestination--; @@ -1136,7 +1136,7 @@ checkLoggingDestination(api.LoggingDestination o) { buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - checkUnnamed1754(o.logs); + checkUnnamed1786(o.logs); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterLoggingDestination--; @@ -1171,14 +1171,14 @@ buildCounterMediaDownload--; } -buildUnnamed1755() { +buildUnnamed1787() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1755(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')); @@ -1193,7 +1193,7 @@ o.dropzone = "foo"; o.enabled = true; o.maxSize = "foo"; - o.mimeTypes = buildUnnamed1755(); + o.mimeTypes = buildUnnamed1787(); o.progressNotification = true; o.startNotification = true; o.uploadService = "foo"; @@ -1209,7 +1209,7 @@ unittest.expect(o.dropzone, unittest.equals('foo')); unittest.expect(o.enabled, unittest.isTrue); unittest.expect(o.maxSize, unittest.equals('foo')); - checkUnnamed1755(o.mimeTypes); + checkUnnamed1787(o.mimeTypes); unittest.expect(o.progressNotification, unittest.isTrue); unittest.expect(o.startNotification, unittest.isTrue); unittest.expect(o.uploadService, unittest.equals('foo')); @@ -1217,14 +1217,14 @@ buildCounterMediaUpload--; } -buildUnnamed1756() { +buildUnnamed1788() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1756(core.List<api.Option> o) { +checkUnnamed1788(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1236,7 +1236,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { o.name = "foo"; - o.options = buildUnnamed1756(); + o.options = buildUnnamed1788(); o.requestStreaming = true; o.requestTypeUrl = "foo"; o.responseStreaming = true; @@ -1251,7 +1251,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1756(o.options); + checkUnnamed1788(o.options); unittest.expect(o.requestStreaming, unittest.isTrue); unittest.expect(o.requestTypeUrl, unittest.equals('foo')); unittest.expect(o.responseStreaming, unittest.isTrue); @@ -1261,14 +1261,14 @@ buildCounterMethod--; } -buildUnnamed1757() { +buildUnnamed1789() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1757(core.List<api.LabelDescriptor> o) { +checkUnnamed1789(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1281,7 +1281,7 @@ if (buildCounterMetricDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1757(); + o.labels = buildUnnamed1789(); o.metricKind = "foo"; o.name = "foo"; o.type = "foo"; @@ -1297,7 +1297,7 @@ if (buildCounterMetricDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1757(o.labels); + checkUnnamed1789(o.labels); unittest.expect(o.metricKind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -1307,14 +1307,14 @@ buildCounterMetricDescriptor--; } -buildUnnamed1758() { +buildUnnamed1790() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1758(core.Map<core.String, core.String> o) { +checkUnnamed1790(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1325,7 +1325,7 @@ var o = new api.MetricRule(); buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - o.metricCosts = buildUnnamed1758(); + o.metricCosts = buildUnnamed1790(); o.selector = "foo"; } buildCounterMetricRule--; @@ -1335,7 +1335,7 @@ checkMetricRule(api.MetricRule o) { buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - checkUnnamed1758(o.metricCosts); + checkUnnamed1790(o.metricCosts); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterMetricRule--; @@ -1362,14 +1362,14 @@ buildCounterMixin--; } -buildUnnamed1759() { +buildUnnamed1791() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1759(core.List<api.LabelDescriptor> o) { +checkUnnamed1791(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1382,7 +1382,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1759(); + o.labels = buildUnnamed1791(); o.name = "foo"; o.type = "foo"; } @@ -1395,34 +1395,34 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1759(o.labels); + checkUnnamed1791(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResourceDescriptor--; } -buildUnnamed1760() { +buildUnnamed1792() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed1760(core.List<api.MonitoringDestination> o) { +checkUnnamed1792(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); } -buildUnnamed1761() { +buildUnnamed1793() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed1761(core.List<api.MonitoringDestination> o) { +checkUnnamed1793(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); @@ -1433,8 +1433,8 @@ var o = new api.Monitoring(); buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - o.consumerDestinations = buildUnnamed1760(); - o.producerDestinations = buildUnnamed1761(); + o.consumerDestinations = buildUnnamed1792(); + o.producerDestinations = buildUnnamed1793(); } buildCounterMonitoring--; return o; @@ -1443,20 +1443,20 @@ checkMonitoring(api.Monitoring o) { buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - checkUnnamed1760(o.consumerDestinations); - checkUnnamed1761(o.producerDestinations); + checkUnnamed1792(o.consumerDestinations); + checkUnnamed1793(o.producerDestinations); } buildCounterMonitoring--; } -buildUnnamed1762() { +buildUnnamed1794() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1762(core.List<core.String> o) { +checkUnnamed1794(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1467,7 +1467,7 @@ var o = new api.MonitoringDestination(); buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - o.metrics = buildUnnamed1762(); + o.metrics = buildUnnamed1794(); o.monitoredResource = "foo"; } buildCounterMonitoringDestination--; @@ -1477,7 +1477,7 @@ checkMonitoringDestination(api.MonitoringDestination o) { buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - checkUnnamed1762(o.metrics); + checkUnnamed1794(o.metrics); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterMonitoringDestination--; @@ -1502,27 +1502,27 @@ buildCounterOAuthRequirements--; } -buildUnnamed1763() { +buildUnnamed1795() { 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; } -checkUnnamed1763(core.Map<core.String, core.Object> o) { +checkUnnamed1795(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')); } -buildUnnamed1764() { +buildUnnamed1796() { 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; } -checkUnnamed1764(core.Map<core.String, core.Object> o) { +checkUnnamed1796(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')); @@ -1535,9 +1535,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1763(); + o.metadata = buildUnnamed1795(); o.name = "foo"; - o.response = buildUnnamed1764(); + o.response = buildUnnamed1796(); } buildCounterOperation--; return o; @@ -1548,34 +1548,34 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1763(o.metadata); + checkUnnamed1795(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1764(o.response); + checkUnnamed1796(o.response); } buildCounterOperation--; } -buildUnnamed1765() { +buildUnnamed1797() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1765(core.List<core.String> o) { +checkUnnamed1797(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1766() { +buildUnnamed1798() { var o = new core.List<api.Step>(); o.add(buildStep()); o.add(buildStep()); return o; } -checkUnnamed1766(core.List<api.Step> o) { +checkUnnamed1798(core.List<api.Step> o) { unittest.expect(o, unittest.hasLength(2)); checkStep(o[0]); checkStep(o[1]); @@ -1587,9 +1587,9 @@ buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { o.progressPercentage = 42; - o.resourceNames = buildUnnamed1765(); + o.resourceNames = buildUnnamed1797(); o.startTime = "foo"; - o.steps = buildUnnamed1766(); + o.steps = buildUnnamed1798(); } buildCounterOperationMetadata--; return o; @@ -1599,21 +1599,21 @@ buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { unittest.expect(o.progressPercentage, unittest.equals(42)); - checkUnnamed1765(o.resourceNames); + checkUnnamed1797(o.resourceNames); unittest.expect(o.startTime, unittest.equals('foo')); - checkUnnamed1766(o.steps); + checkUnnamed1798(o.steps); } buildCounterOperationMetadata--; } -buildUnnamed1767() { +buildUnnamed1799() { 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; } -checkUnnamed1767(core.Map<core.String, core.Object> o) { +checkUnnamed1799(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')); @@ -1625,7 +1625,7 @@ buildCounterOption++; if (buildCounterOption < 3) { o.name = "foo"; - o.value = buildUnnamed1767(); + o.value = buildUnnamed1799(); } buildCounterOption--; return o; @@ -1635,19 +1635,19 @@ buildCounterOption++; if (buildCounterOption < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1767(o.value); + checkUnnamed1799(o.value); } buildCounterOption--; } -buildUnnamed1768() { +buildUnnamed1800() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1768(core.List<api.Page> o) { +checkUnnamed1800(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -1660,7 +1660,7 @@ if (buildCounterPage < 3) { o.content = "foo"; o.name = "foo"; - o.subpages = buildUnnamed1768(); + o.subpages = buildUnnamed1800(); } buildCounterPage--; return o; @@ -1671,7 +1671,7 @@ if (buildCounterPage < 3) { unittest.expect(o.content, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1768(o.subpages); + checkUnnamed1800(o.subpages); } buildCounterPage--; } @@ -1697,27 +1697,27 @@ buildCounterPublishedService--; } -buildUnnamed1769() { +buildUnnamed1801() { var o = new core.List<api.QuotaLimit>(); o.add(buildQuotaLimit()); o.add(buildQuotaLimit()); return o; } -checkUnnamed1769(core.List<api.QuotaLimit> o) { +checkUnnamed1801(core.List<api.QuotaLimit> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaLimit(o[0]); checkQuotaLimit(o[1]); } -buildUnnamed1770() { +buildUnnamed1802() { var o = new core.List<api.MetricRule>(); o.add(buildMetricRule()); o.add(buildMetricRule()); return o; } -checkUnnamed1770(core.List<api.MetricRule> o) { +checkUnnamed1802(core.List<api.MetricRule> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricRule(o[0]); checkMetricRule(o[1]); @@ -1728,8 +1728,8 @@ var o = new api.Quota(); buildCounterQuota++; if (buildCounterQuota < 3) { - o.limits = buildUnnamed1769(); - o.metricRules = buildUnnamed1770(); + o.limits = buildUnnamed1801(); + o.metricRules = buildUnnamed1802(); } buildCounterQuota--; return o; @@ -1738,20 +1738,20 @@ checkQuota(api.Quota o) { buildCounterQuota++; if (buildCounterQuota < 3) { - checkUnnamed1769(o.limits); - checkUnnamed1770(o.metricRules); + checkUnnamed1801(o.limits); + checkUnnamed1802(o.metricRules); } buildCounterQuota--; } -buildUnnamed1771() { +buildUnnamed1803() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1771(core.Map<core.String, core.String> o) { +checkUnnamed1803(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1771,7 +1771,7 @@ o.metric = "foo"; o.name = "foo"; o.unit = "foo"; - o.values = buildUnnamed1771(); + o.values = buildUnnamed1803(); } buildCounterQuotaLimit--; return o; @@ -1789,19 +1789,19 @@ unittest.expect(o.metric, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.unit, unittest.equals('foo')); - checkUnnamed1771(o.values); + checkUnnamed1803(o.values); } buildCounterQuotaLimit--; } -buildUnnamed1772() { +buildUnnamed1804() { var o = new core.List<api.PublishedService>(); o.add(buildPublishedService()); o.add(buildPublishedService()); return o; } -checkUnnamed1772(core.List<api.PublishedService> o) { +checkUnnamed1804(core.List<api.PublishedService> o) { unittest.expect(o, unittest.hasLength(2)); checkPublishedService(o[0]); checkPublishedService(o[1]); @@ -1813,7 +1813,7 @@ buildCounterSearchServicesResponse++; if (buildCounterSearchServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed1772(); + o.services = buildUnnamed1804(); } buildCounterSearchServicesResponse--; return o; @@ -1823,110 +1823,110 @@ buildCounterSearchServicesResponse++; if (buildCounterSearchServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1772(o.services); + checkUnnamed1804(o.services); } buildCounterSearchServicesResponse--; } -buildUnnamed1773() { +buildUnnamed1805() { var o = new core.List<api.Api>(); o.add(buildApi()); o.add(buildApi()); return o; } -checkUnnamed1773(core.List<api.Api> o) { +checkUnnamed1805(core.List<api.Api> o) { unittest.expect(o, unittest.hasLength(2)); checkApi(o[0]); checkApi(o[1]); } -buildUnnamed1774() { +buildUnnamed1806() { var o = new core.List<api.Endpoint>(); o.add(buildEndpoint()); o.add(buildEndpoint()); return o; } -checkUnnamed1774(core.List<api.Endpoint> o) { +checkUnnamed1806(core.List<api.Endpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkEndpoint(o[0]); checkEndpoint(o[1]); } -buildUnnamed1775() { +buildUnnamed1807() { var o = new core.List<api.Enum>(); o.add(buildEnum()); o.add(buildEnum()); return o; } -checkUnnamed1775(core.List<api.Enum> o) { +checkUnnamed1807(core.List<api.Enum> o) { unittest.expect(o, unittest.hasLength(2)); checkEnum(o[0]); checkEnum(o[1]); } -buildUnnamed1776() { +buildUnnamed1808() { var o = new core.List<api.LogDescriptor>(); o.add(buildLogDescriptor()); o.add(buildLogDescriptor()); return o; } -checkUnnamed1776(core.List<api.LogDescriptor> o) { +checkUnnamed1808(core.List<api.LogDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLogDescriptor(o[0]); checkLogDescriptor(o[1]); } -buildUnnamed1777() { +buildUnnamed1809() { var o = new core.List<api.MetricDescriptor>(); o.add(buildMetricDescriptor()); o.add(buildMetricDescriptor()); return o; } -checkUnnamed1777(core.List<api.MetricDescriptor> o) { +checkUnnamed1809(core.List<api.MetricDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricDescriptor(o[0]); checkMetricDescriptor(o[1]); } -buildUnnamed1778() { +buildUnnamed1810() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed1778(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed1810(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); } -buildUnnamed1779() { +buildUnnamed1811() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed1779(core.List<api.Type> o) { +checkUnnamed1811(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); } -buildUnnamed1780() { +buildUnnamed1812() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed1780(core.List<api.Type> o) { +checkUnnamed1812(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); @@ -1937,7 +1937,7 @@ var o = new api.Service(); buildCounterService++; if (buildCounterService < 3) { - o.apis = buildUnnamed1773(); + o.apis = buildUnnamed1805(); o.authentication = buildAuthentication(); o.backend = buildBackend(); o.configVersion = 42; @@ -1945,24 +1945,24 @@ o.control = buildControl(); o.customError = buildCustomError(); o.documentation = buildDocumentation(); - o.endpoints = buildUnnamed1774(); - o.enums = buildUnnamed1775(); + o.endpoints = buildUnnamed1806(); + o.enums = buildUnnamed1807(); o.experimental = buildExperimental(); o.http = buildHttp(); o.id = "foo"; o.logging = buildLogging(); - o.logs = buildUnnamed1776(); - o.metrics = buildUnnamed1777(); - o.monitoredResources = buildUnnamed1778(); + o.logs = buildUnnamed1808(); + o.metrics = buildUnnamed1809(); + o.monitoredResources = buildUnnamed1810(); o.monitoring = buildMonitoring(); o.name = "foo"; o.producerProjectId = "foo"; o.quota = buildQuota(); o.sourceInfo = buildSourceInfo(); o.systemParameters = buildSystemParameters(); - o.systemTypes = buildUnnamed1779(); + o.systemTypes = buildUnnamed1811(); o.title = "foo"; - o.types = buildUnnamed1780(); + o.types = buildUnnamed1812(); o.usage = buildUsage(); o.visibility = buildVisibility(); } @@ -1973,7 +1973,7 @@ checkService(api.Service o) { buildCounterService++; if (buildCounterService < 3) { - checkUnnamed1773(o.apis); + checkUnnamed1805(o.apis); checkAuthentication(o.authentication); checkBackend(o.backend); unittest.expect(o.configVersion, unittest.equals(42)); @@ -1981,24 +1981,24 @@ checkControl(o.control); checkCustomError(o.customError); checkDocumentation(o.documentation); - checkUnnamed1774(o.endpoints); - checkUnnamed1775(o.enums); + checkUnnamed1806(o.endpoints); + checkUnnamed1807(o.enums); checkExperimental(o.experimental); checkHttp(o.http); unittest.expect(o.id, unittest.equals('foo')); checkLogging(o.logging); - checkUnnamed1776(o.logs); - checkUnnamed1777(o.metrics); - checkUnnamed1778(o.monitoredResources); + checkUnnamed1808(o.logs); + checkUnnamed1809(o.metrics); + checkUnnamed1810(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); - checkUnnamed1779(o.systemTypes); + checkUnnamed1811(o.systemTypes); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed1780(o.types); + checkUnnamed1812(o.types); checkUsage(o.usage); checkVisibility(o.visibility); } @@ -2024,30 +2024,30 @@ buildCounterSourceContext--; } -buildUnnamed1781() { +buildUnnamed1813() { 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; } -checkUnnamed1781(core.Map<core.String, core.Object> o) { +checkUnnamed1813(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')); } -buildUnnamed1782() { +buildUnnamed1814() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1781()); - o.add(buildUnnamed1781()); + o.add(buildUnnamed1813()); + o.add(buildUnnamed1813()); return o; } -checkUnnamed1782(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1814(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1781(o[0]); - checkUnnamed1781(o[1]); + checkUnnamed1813(o[0]); + checkUnnamed1813(o[1]); } core.int buildCounterSourceInfo = 0; @@ -2055,7 +2055,7 @@ var o = new api.SourceInfo(); buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - o.sourceFiles = buildUnnamed1782(); + o.sourceFiles = buildUnnamed1814(); } buildCounterSourceInfo--; return o; @@ -2064,35 +2064,35 @@ checkSourceInfo(api.SourceInfo o) { buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - checkUnnamed1782(o.sourceFiles); + checkUnnamed1814(o.sourceFiles); } buildCounterSourceInfo--; } -buildUnnamed1783() { +buildUnnamed1815() { 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; } -checkUnnamed1783(core.Map<core.String, core.Object> o) { +checkUnnamed1815(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')); } -buildUnnamed1784() { +buildUnnamed1816() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1783()); - o.add(buildUnnamed1783()); + o.add(buildUnnamed1815()); + o.add(buildUnnamed1815()); return o; } -checkUnnamed1784(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1816(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1783(o[0]); - checkUnnamed1783(o[1]); + checkUnnamed1815(o[0]); + checkUnnamed1815(o[1]); } core.int buildCounterStatus = 0; @@ -2101,7 +2101,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1784(); + o.details = buildUnnamed1816(); o.message = "foo"; } buildCounterStatus--; @@ -2112,7 +2112,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1784(o.details); + checkUnnamed1816(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -2162,14 +2162,14 @@ buildCounterSystemParameter--; } -buildUnnamed1785() { +buildUnnamed1817() { var o = new core.List<api.SystemParameter>(); o.add(buildSystemParameter()); o.add(buildSystemParameter()); return o; } -checkUnnamed1785(core.List<api.SystemParameter> o) { +checkUnnamed1817(core.List<api.SystemParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameter(o[0]); checkSystemParameter(o[1]); @@ -2180,7 +2180,7 @@ var o = new api.SystemParameterRule(); buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - o.parameters = buildUnnamed1785(); + o.parameters = buildUnnamed1817(); o.selector = "foo"; } buildCounterSystemParameterRule--; @@ -2190,20 +2190,20 @@ checkSystemParameterRule(api.SystemParameterRule o) { buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - checkUnnamed1785(o.parameters); + checkUnnamed1817(o.parameters); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterSystemParameterRule--; } -buildUnnamed1786() { +buildUnnamed1818() { var o = new core.List<api.SystemParameterRule>(); o.add(buildSystemParameterRule()); o.add(buildSystemParameterRule()); return o; } -checkUnnamed1786(core.List<api.SystemParameterRule> o) { +checkUnnamed1818(core.List<api.SystemParameterRule> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameterRule(o[0]); checkSystemParameterRule(o[1]); @@ -2214,7 +2214,7 @@ var o = new api.SystemParameters(); buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - o.rules = buildUnnamed1786(); + o.rules = buildUnnamed1818(); } buildCounterSystemParameters--; return o; @@ -2223,45 +2223,45 @@ checkSystemParameters(api.SystemParameters o) { buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - checkUnnamed1786(o.rules); + checkUnnamed1818(o.rules); } buildCounterSystemParameters--; } -buildUnnamed1787() { +buildUnnamed1819() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed1787(core.List<api.Field> o) { +checkUnnamed1819(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); } -buildUnnamed1788() { +buildUnnamed1820() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1788(core.List<core.String> o) { +checkUnnamed1820(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1789() { +buildUnnamed1821() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1789(core.List<api.Option> o) { +checkUnnamed1821(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -2272,10 +2272,10 @@ var o = new api.Type(); buildCounterType++; if (buildCounterType < 3) { - o.fields = buildUnnamed1787(); + o.fields = buildUnnamed1819(); o.name = "foo"; - o.oneofs = buildUnnamed1788(); - o.options = buildUnnamed1789(); + o.oneofs = buildUnnamed1820(); + o.options = buildUnnamed1821(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -2286,37 +2286,37 @@ checkType(api.Type o) { buildCounterType++; if (buildCounterType < 3) { - checkUnnamed1787(o.fields); + checkUnnamed1819(o.fields); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1788(o.oneofs); - checkUnnamed1789(o.options); + checkUnnamed1820(o.oneofs); + checkUnnamed1821(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } buildCounterType--; } -buildUnnamed1790() { +buildUnnamed1822() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1790(core.List<core.String> o) { +checkUnnamed1822(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1791() { +buildUnnamed1823() { var o = new core.List<api.UsageRule>(); o.add(buildUsageRule()); o.add(buildUsageRule()); return o; } -checkUnnamed1791(core.List<api.UsageRule> o) { +checkUnnamed1823(core.List<api.UsageRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageRule(o[0]); checkUsageRule(o[1]); @@ -2328,8 +2328,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { o.producerNotificationChannel = "foo"; - o.requirements = buildUnnamed1790(); - o.rules = buildUnnamed1791(); + o.requirements = buildUnnamed1822(); + o.rules = buildUnnamed1823(); } buildCounterUsage--; return o; @@ -2339,8 +2339,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); - checkUnnamed1790(o.requirements); - checkUnnamed1791(o.rules); + checkUnnamed1822(o.requirements); + checkUnnamed1823(o.rules); } buildCounterUsage--; } @@ -2368,14 +2368,14 @@ buildCounterUsageRule--; } -buildUnnamed1792() { +buildUnnamed1824() { var o = new core.List<api.VisibilityRule>(); o.add(buildVisibilityRule()); o.add(buildVisibilityRule()); return o; } -checkUnnamed1792(core.List<api.VisibilityRule> o) { +checkUnnamed1824(core.List<api.VisibilityRule> o) { unittest.expect(o, unittest.hasLength(2)); checkVisibilityRule(o[0]); checkVisibilityRule(o[1]); @@ -2386,7 +2386,7 @@ var o = new api.Visibility(); buildCounterVisibility++; if (buildCounterVisibility < 3) { - o.rules = buildUnnamed1792(); + o.rules = buildUnnamed1824(); } buildCounterVisibility--; return o; @@ -2395,7 +2395,7 @@ checkVisibility(api.Visibility o) { buildCounterVisibility++; if (buildCounterVisibility < 3) { - checkUnnamed1792(o.rules); + checkUnnamed1824(o.rules); } buildCounterVisibility--; }
diff --git a/generated/googleapis/test/siteverification/v1_test.dart b/generated/googleapis/test/siteverification/v1_test.dart index 0d331ff..582e788 100644 --- a/generated/googleapis/test/siteverification/v1_test.dart +++ b/generated/googleapis/test/siteverification/v1_test.dart
@@ -114,14 +114,14 @@ buildCounterSiteVerificationWebResourceGettokenResponse--; } -buildUnnamed190() { +buildUnnamed161() { var o = new core.List<api.SiteVerificationWebResourceResource>(); o.add(buildSiteVerificationWebResourceResource()); o.add(buildSiteVerificationWebResourceResource()); return o; } -checkUnnamed190(core.List<api.SiteVerificationWebResourceResource> o) { +checkUnnamed161(core.List<api.SiteVerificationWebResourceResource> o) { unittest.expect(o, unittest.hasLength(2)); checkSiteVerificationWebResourceResource(o[0]); checkSiteVerificationWebResourceResource(o[1]); @@ -132,7 +132,7 @@ var o = new api.SiteVerificationWebResourceListResponse(); buildCounterSiteVerificationWebResourceListResponse++; if (buildCounterSiteVerificationWebResourceListResponse < 3) { - o.items = buildUnnamed190(); + o.items = buildUnnamed161(); } buildCounterSiteVerificationWebResourceListResponse--; return o; @@ -141,19 +141,19 @@ checkSiteVerificationWebResourceListResponse(api.SiteVerificationWebResourceListResponse o) { buildCounterSiteVerificationWebResourceListResponse++; if (buildCounterSiteVerificationWebResourceListResponse < 3) { - checkUnnamed190(o.items); + checkUnnamed161(o.items); } buildCounterSiteVerificationWebResourceListResponse--; } -buildUnnamed191() { +buildUnnamed162() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed191(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')); @@ -186,7 +186,7 @@ buildCounterSiteVerificationWebResourceResource++; if (buildCounterSiteVerificationWebResourceResource < 3) { o.id = "foo"; - o.owners = buildUnnamed191(); + o.owners = buildUnnamed162(); o.site = buildSiteVerificationWebResourceResourceSite(); } buildCounterSiteVerificationWebResourceResource--; @@ -197,7 +197,7 @@ buildCounterSiteVerificationWebResourceResource++; if (buildCounterSiteVerificationWebResourceResource < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed191(o.owners); + checkUnnamed162(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 081566c..8b80470 100644 --- a/generated/googleapis/test/slides/v1_test.dart +++ b/generated/googleapis/test/slides/v1_test.dart
@@ -105,14 +105,14 @@ buildCounterAutoText--; } -buildUnnamed1681() { +buildUnnamed1713() { var o = new core.List<api.Request>(); o.add(buildRequest()); o.add(buildRequest()); return o; } -checkUnnamed1681(core.List<api.Request> o) { +checkUnnamed1713(core.List<api.Request> o) { unittest.expect(o, unittest.hasLength(2)); checkRequest(o[0]); checkRequest(o[1]); @@ -123,7 +123,7 @@ var o = new api.BatchUpdatePresentationRequest(); buildCounterBatchUpdatePresentationRequest++; if (buildCounterBatchUpdatePresentationRequest < 3) { - o.requests = buildUnnamed1681(); + o.requests = buildUnnamed1713(); o.writeControl = buildWriteControl(); } buildCounterBatchUpdatePresentationRequest--; @@ -133,20 +133,20 @@ checkBatchUpdatePresentationRequest(api.BatchUpdatePresentationRequest o) { buildCounterBatchUpdatePresentationRequest++; if (buildCounterBatchUpdatePresentationRequest < 3) { - checkUnnamed1681(o.requests); + checkUnnamed1713(o.requests); checkWriteControl(o.writeControl); } buildCounterBatchUpdatePresentationRequest--; } -buildUnnamed1682() { +buildUnnamed1714() { var o = new core.List<api.Response>(); o.add(buildResponse()); o.add(buildResponse()); return o; } -checkUnnamed1682(core.List<api.Response> o) { +checkUnnamed1714(core.List<api.Response> o) { unittest.expect(o, unittest.hasLength(2)); checkResponse(o[0]); checkResponse(o[1]); @@ -158,7 +158,7 @@ buildCounterBatchUpdatePresentationResponse++; if (buildCounterBatchUpdatePresentationResponse < 3) { o.presentationId = "foo"; - o.replies = buildUnnamed1682(); + o.replies = buildUnnamed1714(); } buildCounterBatchUpdatePresentationResponse--; return o; @@ -168,7 +168,7 @@ buildCounterBatchUpdatePresentationResponse++; if (buildCounterBatchUpdatePresentationResponse < 3) { unittest.expect(o.presentationId, unittest.equals('foo')); - checkUnnamed1682(o.replies); + checkUnnamed1714(o.replies); } buildCounterBatchUpdatePresentationResponse--; } @@ -198,14 +198,14 @@ buildCounterBullet--; } -buildUnnamed1683() { +buildUnnamed1715() { var o = new core.List<api.ThemeColorPair>(); o.add(buildThemeColorPair()); o.add(buildThemeColorPair()); return o; } -checkUnnamed1683(core.List<api.ThemeColorPair> o) { +checkUnnamed1715(core.List<api.ThemeColorPair> o) { unittest.expect(o, unittest.hasLength(2)); checkThemeColorPair(o[0]); checkThemeColorPair(o[1]); @@ -216,7 +216,7 @@ var o = new api.ColorScheme(); buildCounterColorScheme++; if (buildCounterColorScheme < 3) { - o.colors = buildUnnamed1683(); + o.colors = buildUnnamed1715(); } buildCounterColorScheme--; return o; @@ -225,7 +225,7 @@ checkColorScheme(api.ColorScheme o) { buildCounterColorScheme++; if (buildCounterColorScheme < 3) { - checkUnnamed1683(o.colors); + checkUnnamed1715(o.colors); } buildCounterColorScheme--; } @@ -450,14 +450,14 @@ buildCounterCreateSheetsChartResponse--; } -buildUnnamed1684() { +buildUnnamed1716() { var o = new core.List<api.LayoutPlaceholderIdMapping>(); o.add(buildLayoutPlaceholderIdMapping()); o.add(buildLayoutPlaceholderIdMapping()); return o; } -checkUnnamed1684(core.List<api.LayoutPlaceholderIdMapping> o) { +checkUnnamed1716(core.List<api.LayoutPlaceholderIdMapping> o) { unittest.expect(o, unittest.hasLength(2)); checkLayoutPlaceholderIdMapping(o[0]); checkLayoutPlaceholderIdMapping(o[1]); @@ -470,7 +470,7 @@ if (buildCounterCreateSlideRequest < 3) { o.insertionIndex = 42; o.objectId = "foo"; - o.placeholderIdMappings = buildUnnamed1684(); + o.placeholderIdMappings = buildUnnamed1716(); o.slideLayoutReference = buildLayoutReference(); } buildCounterCreateSlideRequest--; @@ -482,7 +482,7 @@ if (buildCounterCreateSlideRequest < 3) { unittest.expect(o.insertionIndex, unittest.equals(42)); unittest.expect(o.objectId, unittest.equals('foo')); - checkUnnamed1684(o.placeholderIdMappings); + checkUnnamed1716(o.placeholderIdMappings); checkLayoutReference(o.slideLayoutReference); } buildCounterCreateSlideRequest--; @@ -750,14 +750,14 @@ buildCounterDimension--; } -buildUnnamed1685() { +buildUnnamed1717() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1685(core.Map<core.String, core.String> o) { +checkUnnamed1717(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -769,7 +769,7 @@ buildCounterDuplicateObjectRequest++; if (buildCounterDuplicateObjectRequest < 3) { o.objectId = "foo"; - o.objectIds = buildUnnamed1685(); + o.objectIds = buildUnnamed1717(); } buildCounterDuplicateObjectRequest--; return o; @@ -779,7 +779,7 @@ buildCounterDuplicateObjectRequest++; if (buildCounterDuplicateObjectRequest < 3) { unittest.expect(o.objectId, unittest.equals('foo')); - checkUnnamed1685(o.objectIds); + checkUnnamed1717(o.objectIds); } buildCounterDuplicateObjectRequest--; } @@ -803,14 +803,14 @@ buildCounterDuplicateObjectResponse--; } -buildUnnamed1686() { +buildUnnamed1718() { var o = new core.List<api.PageElement>(); o.add(buildPageElement()); o.add(buildPageElement()); return o; } -checkUnnamed1686(core.List<api.PageElement> o) { +checkUnnamed1718(core.List<api.PageElement> o) { unittest.expect(o, unittest.hasLength(2)); checkPageElement(o[0]); checkPageElement(o[1]); @@ -821,7 +821,7 @@ var o = new api.Group(); buildCounterGroup++; if (buildCounterGroup < 3) { - o.children = buildUnnamed1686(); + o.children = buildUnnamed1718(); } buildCounterGroup--; return o; @@ -830,7 +830,7 @@ checkGroup(api.Group o) { buildCounterGroup++; if (buildCounterGroup < 3) { - checkUnnamed1686(o.children); + checkUnnamed1718(o.children); } buildCounterGroup--; } @@ -1125,14 +1125,14 @@ buildCounterLink--; } -buildUnnamed1687() { +buildUnnamed1719() { var o = new core.Map<core.String, api.NestingLevel>(); o["x"] = buildNestingLevel(); o["y"] = buildNestingLevel(); return o; } -checkUnnamed1687(core.Map<core.String, api.NestingLevel> o) { +checkUnnamed1719(core.Map<core.String, api.NestingLevel> o) { unittest.expect(o, unittest.hasLength(2)); checkNestingLevel(o["x"]); checkNestingLevel(o["y"]); @@ -1144,7 +1144,7 @@ buildCounterList++; if (buildCounterList < 3) { o.listId = "foo"; - o.nestingLevel = buildUnnamed1687(); + o.nestingLevel = buildUnnamed1719(); } buildCounterList--; return o; @@ -1154,11 +1154,30 @@ buildCounterList++; if (buildCounterList < 3) { unittest.expect(o.listId, unittest.equals('foo')); - checkUnnamed1687(o.nestingLevel); + checkUnnamed1719(o.nestingLevel); } buildCounterList--; } +core.int buildCounterMasterProperties = 0; +buildMasterProperties() { + var o = new api.MasterProperties(); + buildCounterMasterProperties++; + if (buildCounterMasterProperties < 3) { + o.displayName = "foo"; + } + buildCounterMasterProperties--; + return o; +} + +checkMasterProperties(api.MasterProperties o) { + buildCounterMasterProperties++; + if (buildCounterMasterProperties < 3) { + unittest.expect(o.displayName, unittest.equals('foo')); + } + buildCounterMasterProperties--; +} + core.int buildCounterNestingLevel = 0; buildNestingLevel() { var o = new api.NestingLevel(); @@ -1281,14 +1300,14 @@ buildCounterOutlineFill--; } -buildUnnamed1688() { +buildUnnamed1720() { var o = new core.List<api.PageElement>(); o.add(buildPageElement()); o.add(buildPageElement()); return o; } -checkUnnamed1688(core.List<api.PageElement> o) { +checkUnnamed1720(core.List<api.PageElement> o) { unittest.expect(o, unittest.hasLength(2)); checkPageElement(o[0]); checkPageElement(o[1]); @@ -1300,9 +1319,10 @@ buildCounterPage++; if (buildCounterPage < 3) { o.layoutProperties = buildLayoutProperties(); + o.masterProperties = buildMasterProperties(); o.notesProperties = buildNotesProperties(); o.objectId = "foo"; - o.pageElements = buildUnnamed1688(); + o.pageElements = buildUnnamed1720(); o.pageProperties = buildPageProperties(); o.pageType = "foo"; o.revisionId = "foo"; @@ -1316,9 +1336,10 @@ buildCounterPage++; if (buildCounterPage < 3) { checkLayoutProperties(o.layoutProperties); + checkMasterProperties(o.masterProperties); checkNotesProperties(o.notesProperties); unittest.expect(o.objectId, unittest.equals('foo')); - checkUnnamed1688(o.pageElements); + checkUnnamed1720(o.pageElements); checkPageProperties(o.pageProperties); unittest.expect(o.pageType, unittest.equals('foo')); unittest.expect(o.revisionId, unittest.equals('foo')); @@ -1516,40 +1537,40 @@ buildCounterPlaceholder--; } -buildUnnamed1689() { +buildUnnamed1721() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1689(core.List<api.Page> o) { +checkUnnamed1721(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed1690() { +buildUnnamed1722() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1690(core.List<api.Page> o) { +checkUnnamed1722(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed1691() { +buildUnnamed1723() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1691(core.List<api.Page> o) { +checkUnnamed1723(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -1560,14 +1581,14 @@ var o = new api.Presentation(); buildCounterPresentation++; if (buildCounterPresentation < 3) { - o.layouts = buildUnnamed1689(); + o.layouts = buildUnnamed1721(); o.locale = "foo"; - o.masters = buildUnnamed1690(); + o.masters = buildUnnamed1722(); o.notesMaster = buildPage(); o.pageSize = buildSize(); o.presentationId = "foo"; o.revisionId = "foo"; - o.slides = buildUnnamed1691(); + o.slides = buildUnnamed1723(); o.title = "foo"; } buildCounterPresentation--; @@ -1577,14 +1598,14 @@ checkPresentation(api.Presentation o) { buildCounterPresentation++; if (buildCounterPresentation < 3) { - checkUnnamed1689(o.layouts); + checkUnnamed1721(o.layouts); unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed1690(o.masters); + checkUnnamed1722(o.masters); checkPage(o.notesMaster); checkSize(o.pageSize); unittest.expect(o.presentationId, unittest.equals('foo')); unittest.expect(o.revisionId, unittest.equals('foo')); - checkUnnamed1691(o.slides); + checkUnnamed1723(o.slides); unittest.expect(o.title, unittest.equals('foo')); } buildCounterPresentation--; @@ -1613,14 +1634,14 @@ buildCounterRange--; } -buildUnnamed1692() { +buildUnnamed1724() { var o = new core.List<api.ColorStop>(); o.add(buildColorStop()); o.add(buildColorStop()); return o; } -checkUnnamed1692(core.List<api.ColorStop> o) { +checkUnnamed1724(core.List<api.ColorStop> o) { unittest.expect(o, unittest.hasLength(2)); checkColorStop(o[0]); checkColorStop(o[1]); @@ -1632,7 +1653,7 @@ buildCounterRecolor++; if (buildCounterRecolor < 3) { o.name = "foo"; - o.recolorStops = buildUnnamed1692(); + o.recolorStops = buildUnnamed1724(); } buildCounterRecolor--; return o; @@ -1642,7 +1663,7 @@ buildCounterRecolor++; if (buildCounterRecolor < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1692(o.recolorStops); + checkUnnamed1724(o.recolorStops); } buildCounterRecolor--; } @@ -1666,14 +1687,14 @@ buildCounterRefreshSheetsChartRequest--; } -buildUnnamed1693() { +buildUnnamed1725() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1693(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')); @@ -1686,7 +1707,7 @@ if (buildCounterReplaceAllShapesWithImageRequest < 3) { o.containsText = buildSubstringMatchCriteria(); o.imageUrl = "foo"; - o.pageObjectIds = buildUnnamed1693(); + o.pageObjectIds = buildUnnamed1725(); o.replaceMethod = "foo"; } buildCounterReplaceAllShapesWithImageRequest--; @@ -1698,7 +1719,7 @@ if (buildCounterReplaceAllShapesWithImageRequest < 3) { checkSubstringMatchCriteria(o.containsText); unittest.expect(o.imageUrl, unittest.equals('foo')); - checkUnnamed1693(o.pageObjectIds); + checkUnnamed1725(o.pageObjectIds); unittest.expect(o.replaceMethod, unittest.equals('foo')); } buildCounterReplaceAllShapesWithImageRequest--; @@ -1723,14 +1744,14 @@ buildCounterReplaceAllShapesWithImageResponse--; } -buildUnnamed1694() { +buildUnnamed1726() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1694(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')); @@ -1744,7 +1765,7 @@ o.chartId = 42; o.containsText = buildSubstringMatchCriteria(); o.linkingMode = "foo"; - o.pageObjectIds = buildUnnamed1694(); + o.pageObjectIds = buildUnnamed1726(); o.spreadsheetId = "foo"; } buildCounterReplaceAllShapesWithSheetsChartRequest--; @@ -1757,7 +1778,7 @@ unittest.expect(o.chartId, unittest.equals(42)); checkSubstringMatchCriteria(o.containsText); unittest.expect(o.linkingMode, unittest.equals('foo')); - checkUnnamed1694(o.pageObjectIds); + checkUnnamed1726(o.pageObjectIds); unittest.expect(o.spreadsheetId, unittest.equals('foo')); } buildCounterReplaceAllShapesWithSheetsChartRequest--; @@ -1782,14 +1803,14 @@ buildCounterReplaceAllShapesWithSheetsChartResponse--; } -buildUnnamed1695() { +buildUnnamed1727() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1695(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')); @@ -1801,7 +1822,7 @@ buildCounterReplaceAllTextRequest++; if (buildCounterReplaceAllTextRequest < 3) { o.containsText = buildSubstringMatchCriteria(); - o.pageObjectIds = buildUnnamed1695(); + o.pageObjectIds = buildUnnamed1727(); o.replaceText = "foo"; } buildCounterReplaceAllTextRequest--; @@ -1812,7 +1833,7 @@ buildCounterReplaceAllTextRequest++; if (buildCounterReplaceAllTextRequest < 3) { checkSubstringMatchCriteria(o.containsText); - checkUnnamed1695(o.pageObjectIds); + checkUnnamed1727(o.pageObjectIds); unittest.expect(o.replaceText, unittest.equals('foo')); } buildCounterReplaceAllTextRequest--; @@ -2233,27 +2254,27 @@ buildCounterSubstringMatchCriteria--; } -buildUnnamed1696() { +buildUnnamed1728() { var o = new core.List<api.TableColumnProperties>(); o.add(buildTableColumnProperties()); o.add(buildTableColumnProperties()); return o; } -checkUnnamed1696(core.List<api.TableColumnProperties> o) { +checkUnnamed1728(core.List<api.TableColumnProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkTableColumnProperties(o[0]); checkTableColumnProperties(o[1]); } -buildUnnamed1697() { +buildUnnamed1729() { var o = new core.List<api.TableRow>(); o.add(buildTableRow()); o.add(buildTableRow()); return o; } -checkUnnamed1697(core.List<api.TableRow> o) { +checkUnnamed1729(core.List<api.TableRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableRow(o[0]); checkTableRow(o[1]); @@ -2266,8 +2287,8 @@ if (buildCounterTable < 3) { o.columns = 42; o.rows = 42; - o.tableColumns = buildUnnamed1696(); - o.tableRows = buildUnnamed1697(); + o.tableColumns = buildUnnamed1728(); + o.tableRows = buildUnnamed1729(); } buildCounterTable--; return o; @@ -2278,8 +2299,8 @@ if (buildCounterTable < 3) { unittest.expect(o.columns, unittest.equals(42)); unittest.expect(o.rows, unittest.equals(42)); - checkUnnamed1696(o.tableColumns); - checkUnnamed1697(o.tableRows); + checkUnnamed1728(o.tableColumns); + checkUnnamed1729(o.tableRows); } buildCounterTable--; } @@ -2414,14 +2435,14 @@ buildCounterTableRange--; } -buildUnnamed1698() { +buildUnnamed1730() { var o = new core.List<api.TableCell>(); o.add(buildTableCell()); o.add(buildTableCell()); return o; } -checkUnnamed1698(core.List<api.TableCell> o) { +checkUnnamed1730(core.List<api.TableCell> o) { unittest.expect(o, unittest.hasLength(2)); checkTableCell(o[0]); checkTableCell(o[1]); @@ -2433,7 +2454,7 @@ buildCounterTableRow++; if (buildCounterTableRow < 3) { o.rowHeight = buildDimension(); - o.tableCells = buildUnnamed1698(); + o.tableCells = buildUnnamed1730(); } buildCounterTableRow--; return o; @@ -2443,32 +2464,32 @@ buildCounterTableRow++; if (buildCounterTableRow < 3) { checkDimension(o.rowHeight); - checkUnnamed1698(o.tableCells); + checkUnnamed1730(o.tableCells); } buildCounterTableRow--; } -buildUnnamed1699() { +buildUnnamed1731() { var o = new core.Map<core.String, api.List>(); o["x"] = buildList(); o["y"] = buildList(); return o; } -checkUnnamed1699(core.Map<core.String, api.List> o) { +checkUnnamed1731(core.Map<core.String, api.List> o) { unittest.expect(o, unittest.hasLength(2)); checkList(o["x"]); checkList(o["y"]); } -buildUnnamed1700() { +buildUnnamed1732() { var o = new core.List<api.TextElement>(); o.add(buildTextElement()); o.add(buildTextElement()); return o; } -checkUnnamed1700(core.List<api.TextElement> o) { +checkUnnamed1732(core.List<api.TextElement> o) { unittest.expect(o, unittest.hasLength(2)); checkTextElement(o[0]); checkTextElement(o[1]); @@ -2479,8 +2500,8 @@ var o = new api.TextContent(); buildCounterTextContent++; if (buildCounterTextContent < 3) { - o.lists = buildUnnamed1699(); - o.textElements = buildUnnamed1700(); + o.lists = buildUnnamed1731(); + o.textElements = buildUnnamed1732(); } buildCounterTextContent--; return o; @@ -2489,8 +2510,8 @@ checkTextContent(api.TextContent o) { buildCounterTextContent++; if (buildCounterTextContent < 3) { - checkUnnamed1699(o.lists); - checkUnnamed1700(o.textElements); + checkUnnamed1731(o.lists); + checkUnnamed1732(o.textElements); } buildCounterTextContent--; } @@ -2770,14 +2791,14 @@ buildCounterUpdateShapePropertiesRequest--; } -buildUnnamed1701() { +buildUnnamed1733() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1701(core.List<core.String> o) { +checkUnnamed1733(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2789,7 +2810,7 @@ buildCounterUpdateSlidesPositionRequest++; if (buildCounterUpdateSlidesPositionRequest < 3) { o.insertionIndex = 42; - o.slideObjectIds = buildUnnamed1701(); + o.slideObjectIds = buildUnnamed1733(); } buildCounterUpdateSlidesPositionRequest--; return o; @@ -2799,7 +2820,7 @@ buildCounterUpdateSlidesPositionRequest++; if (buildCounterUpdateSlidesPositionRequest < 3) { unittest.expect(o.insertionIndex, unittest.equals(42)); - checkUnnamed1701(o.slideObjectIds); + checkUnnamed1733(o.slideObjectIds); } buildCounterUpdateSlidesPositionRequest--; } @@ -3389,6 +3410,15 @@ }); + unittest.group("obj-schema-MasterProperties", () { + unittest.test("to-json--from-json", () { + var o = buildMasterProperties(); + var od = new api.MasterProperties.fromJson(o.toJson()); + checkMasterProperties(od); + }); + }); + + unittest.group("obj-schema-NestingLevel", () { unittest.test("to-json--from-json", () { var o = buildNestingLevel();
diff --git a/generated/googleapis/test/sourcerepo/v1_test.dart b/generated/googleapis/test/sourcerepo/v1_test.dart index 6c7d194..e04de82 100644 --- a/generated/googleapis/test/sourcerepo/v1_test.dart +++ b/generated/googleapis/test/sourcerepo/v1_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed515() { +buildUnnamed490() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed515(core.List<api.AuditLogConfig> o) { +checkUnnamed490(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); } -buildUnnamed516() { +buildUnnamed491() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed516(core.List<core.String> o) { +checkUnnamed491(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -82,8 +82,8 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed515(); - o.exemptedMembers = buildUnnamed516(); + o.auditLogConfigs = buildUnnamed490(); + o.exemptedMembers = buildUnnamed491(); o.service = "foo"; } buildCounterAuditConfig--; @@ -93,21 +93,21 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed515(o.auditLogConfigs); - checkUnnamed516(o.exemptedMembers); + checkUnnamed490(o.auditLogConfigs); + checkUnnamed491(o.exemptedMembers); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed517() { +buildUnnamed492() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed517(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')); @@ -118,7 +118,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed517(); + o.exemptedMembers = buildUnnamed492(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -128,20 +128,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed517(o.exemptedMembers); + checkUnnamed492(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed518() { +buildUnnamed493() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed518(core.List<core.String> o) { +checkUnnamed493(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -152,7 +152,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed518(); + o.members = buildUnnamed493(); o.role = "foo"; } buildCounterBinding--; @@ -162,7 +162,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed518(o.members); + checkUnnamed493(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -187,14 +187,14 @@ buildCounterCloudAuditOptions--; } -buildUnnamed519() { +buildUnnamed494() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed519(core.List<core.String> o) { +checkUnnamed494(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -210,7 +210,7 @@ o.svc = "foo"; o.sys = "foo"; o.value = "foo"; - o.values = buildUnnamed519(); + o.values = buildUnnamed494(); } buildCounterCondition--; return o; @@ -224,7 +224,7 @@ unittest.expect(o.svc, unittest.equals('foo')); unittest.expect(o.sys, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); - checkUnnamed519(o.values); + checkUnnamed494(o.values); } buildCounterCondition--; } @@ -284,14 +284,14 @@ buildCounterEmpty--; } -buildUnnamed520() { +buildUnnamed495() { var o = new core.List<api.Repo>(); o.add(buildRepo()); o.add(buildRepo()); return o; } -checkUnnamed520(core.List<api.Repo> o) { +checkUnnamed495(core.List<api.Repo> o) { unittest.expect(o, unittest.hasLength(2)); checkRepo(o[0]); checkRepo(o[1]); @@ -303,7 +303,7 @@ buildCounterListReposResponse++; if (buildCounterListReposResponse < 3) { o.nextPageToken = "foo"; - o.repos = buildUnnamed520(); + o.repos = buildUnnamed495(); } buildCounterListReposResponse--; return o; @@ -313,7 +313,7 @@ buildCounterListReposResponse++; if (buildCounterListReposResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed520(o.repos); + checkUnnamed495(o.repos); } buildCounterListReposResponse--; } @@ -364,40 +364,40 @@ buildCounterMirrorConfig--; } -buildUnnamed521() { +buildUnnamed496() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed521(core.List<api.AuditConfig> o) { +checkUnnamed496(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed522() { +buildUnnamed497() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed522(core.List<api.Binding> o) { +checkUnnamed497(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); } -buildUnnamed523() { +buildUnnamed498() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed523(core.List<api.Rule> o) { +checkUnnamed498(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -408,11 +408,11 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed521(); - o.bindings = buildUnnamed522(); + o.auditConfigs = buildUnnamed496(); + o.bindings = buildUnnamed497(); o.etag = "foo"; o.iamOwned = true; - o.rules = buildUnnamed523(); + o.rules = buildUnnamed498(); o.version = 42; } buildCounterPolicy--; @@ -422,11 +422,11 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed521(o.auditConfigs); - checkUnnamed522(o.bindings); + checkUnnamed496(o.auditConfigs); + checkUnnamed497(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.iamOwned, unittest.isTrue); - checkUnnamed523(o.rules); + checkUnnamed498(o.rules); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; @@ -457,66 +457,66 @@ buildCounterRepo--; } -buildUnnamed524() { +buildUnnamed499() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed524(core.List<api.Condition> o) { +checkUnnamed499(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed525() { +buildUnnamed500() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed525(core.List<core.String> o) { +checkUnnamed500(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed526() { +buildUnnamed501() { var o = new core.List<api.LogConfig>(); o.add(buildLogConfig()); o.add(buildLogConfig()); return o; } -checkUnnamed526(core.List<api.LogConfig> o) { +checkUnnamed501(core.List<api.LogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkLogConfig(o[0]); checkLogConfig(o[1]); } -buildUnnamed527() { +buildUnnamed502() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed527(core.List<core.String> o) { +checkUnnamed502(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed528() { +buildUnnamed503() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed528(core.List<core.String> o) { +checkUnnamed503(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -528,12 +528,12 @@ buildCounterRule++; if (buildCounterRule < 3) { o.action = "foo"; - o.conditions = buildUnnamed524(); + o.conditions = buildUnnamed499(); o.description = "foo"; - o.in_ = buildUnnamed525(); - o.logConfig = buildUnnamed526(); - o.notIn = buildUnnamed527(); - o.permissions = buildUnnamed528(); + o.in_ = buildUnnamed500(); + o.logConfig = buildUnnamed501(); + o.notIn = buildUnnamed502(); + o.permissions = buildUnnamed503(); } buildCounterRule--; return o; @@ -543,12 +543,12 @@ buildCounterRule++; if (buildCounterRule < 3) { unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed524(o.conditions); + checkUnnamed499(o.conditions); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed525(o.in_); - checkUnnamed526(o.logConfig); - checkUnnamed527(o.notIn); - checkUnnamed528(o.permissions); + checkUnnamed500(o.in_); + checkUnnamed501(o.logConfig); + checkUnnamed502(o.notIn); + checkUnnamed503(o.permissions); } buildCounterRule--; } @@ -574,14 +574,14 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed529() { +buildUnnamed504() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed529(core.List<core.String> o) { +checkUnnamed504(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -592,7 +592,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed529(); + o.permissions = buildUnnamed504(); } buildCounterTestIamPermissionsRequest--; return o; @@ -601,19 +601,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed529(o.permissions); + checkUnnamed504(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed530() { +buildUnnamed505() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed530(core.List<core.String> o) { +checkUnnamed505(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -624,7 +624,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed530(); + o.permissions = buildUnnamed505(); } buildCounterTestIamPermissionsResponse--; return o; @@ -633,7 +633,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed530(o.permissions); + checkUnnamed505(o.permissions); } buildCounterTestIamPermissionsResponse--; }
diff --git a/generated/googleapis/test/spanner/v1_test.dart b/generated/googleapis/test/spanner/v1_test.dart index f8af998..e347010 100644 --- a/generated/googleapis/test/spanner/v1_test.dart +++ b/generated/googleapis/test/spanner/v1_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2053() { +buildUnnamed2087() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed2053(core.List<api.AuditLogConfig> o) { +checkUnnamed2087(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); } -buildUnnamed2054() { +buildUnnamed2088() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2054(core.List<core.String> o) { +checkUnnamed2088(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -82,8 +82,8 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed2053(); - o.exemptedMembers = buildUnnamed2054(); + o.auditLogConfigs = buildUnnamed2087(); + o.exemptedMembers = buildUnnamed2088(); o.service = "foo"; } buildCounterAuditConfig--; @@ -93,21 +93,21 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed2053(o.auditLogConfigs); - checkUnnamed2054(o.exemptedMembers); + checkUnnamed2087(o.auditLogConfigs); + checkUnnamed2088(o.exemptedMembers); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed2055() { +buildUnnamed2089() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2055(core.List<core.String> o) { +checkUnnamed2089(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -118,7 +118,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed2055(); + o.exemptedMembers = buildUnnamed2089(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -128,7 +128,7 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed2055(o.exemptedMembers); + checkUnnamed2089(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; @@ -153,14 +153,14 @@ buildCounterBeginTransactionRequest--; } -buildUnnamed2056() { +buildUnnamed2090() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2056(core.List<core.String> o) { +checkUnnamed2090(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -172,7 +172,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { o.condition = buildExpr(); - o.members = buildUnnamed2056(); + o.members = buildUnnamed2090(); o.role = "foo"; } buildCounterBinding--; @@ -183,7 +183,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { checkExpr(o.condition); - checkUnnamed2056(o.members); + checkUnnamed2090(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -231,14 +231,14 @@ buildCounterCloudAuditOptions--; } -buildUnnamed2057() { +buildUnnamed2091() { var o = new core.List<api.Mutation>(); o.add(buildMutation()); o.add(buildMutation()); return o; } -checkUnnamed2057(core.List<api.Mutation> o) { +checkUnnamed2091(core.List<api.Mutation> o) { unittest.expect(o, unittest.hasLength(2)); checkMutation(o[0]); checkMutation(o[1]); @@ -249,7 +249,7 @@ var o = new api.CommitRequest(); buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { - o.mutations = buildUnnamed2057(); + o.mutations = buildUnnamed2091(); o.singleUseTransaction = buildTransactionOptions(); o.transactionId = "foo"; } @@ -260,7 +260,7 @@ checkCommitRequest(api.CommitRequest o) { buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { - checkUnnamed2057(o.mutations); + checkUnnamed2091(o.mutations); checkTransactionOptions(o.singleUseTransaction); unittest.expect(o.transactionId, unittest.equals('foo')); } @@ -286,14 +286,14 @@ buildCounterCommitResponse--; } -buildUnnamed2058() { +buildUnnamed2092() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2058(core.List<core.String> o) { +checkUnnamed2092(core.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 +309,7 @@ o.svc = "foo"; o.sys = "foo"; o.value = "foo"; - o.values = buildUnnamed2058(); + o.values = buildUnnamed2092(); } buildCounterCondition--; return o; @@ -323,7 +323,7 @@ unittest.expect(o.svc, unittest.equals('foo')); unittest.expect(o.sys, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); - checkUnnamed2058(o.values); + checkUnnamed2092(o.values); } buildCounterCondition--; } @@ -368,14 +368,14 @@ buildCounterCreateDatabaseMetadata--; } -buildUnnamed2059() { +buildUnnamed2093() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2059(core.List<core.String> o) { +checkUnnamed2093(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -387,7 +387,7 @@ buildCounterCreateDatabaseRequest++; if (buildCounterCreateDatabaseRequest < 3) { o.createStatement = "foo"; - o.extraStatements = buildUnnamed2059(); + o.extraStatements = buildUnnamed2093(); } buildCounterCreateDatabaseRequest--; return o; @@ -397,7 +397,7 @@ buildCounterCreateDatabaseRequest++; if (buildCounterCreateDatabaseRequest < 3) { unittest.expect(o.createStatement, unittest.equals('foo')); - checkUnnamed2059(o.extraStatements); + checkUnnamed2093(o.extraStatements); } buildCounterCreateDatabaseRequest--; } @@ -524,27 +524,27 @@ buildCounterEmpty--; } -buildUnnamed2060() { +buildUnnamed2094() { var o = new core.Map<core.String, api.Type>(); o["x"] = buildType(); o["y"] = buildType(); return o; } -checkUnnamed2060(core.Map<core.String, api.Type> o) { +checkUnnamed2094(core.Map<core.String, api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o["x"]); checkType(o["y"]); } -buildUnnamed2061() { +buildUnnamed2095() { 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; } -checkUnnamed2061(core.Map<core.String, core.Object> o) { +checkUnnamed2095(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')); @@ -555,8 +555,8 @@ var o = new api.ExecuteSqlRequest(); buildCounterExecuteSqlRequest++; if (buildCounterExecuteSqlRequest < 3) { - o.paramTypes = buildUnnamed2060(); - o.params = buildUnnamed2061(); + o.paramTypes = buildUnnamed2094(); + o.params = buildUnnamed2095(); o.queryMode = "foo"; o.resumeToken = "foo"; o.sql = "foo"; @@ -569,8 +569,8 @@ checkExecuteSqlRequest(api.ExecuteSqlRequest o) { buildCounterExecuteSqlRequest++; if (buildCounterExecuteSqlRequest < 3) { - checkUnnamed2060(o.paramTypes); - checkUnnamed2061(o.params); + checkUnnamed2094(o.paramTypes); + checkUnnamed2095(o.params); unittest.expect(o.queryMode, unittest.equals('foo')); unittest.expect(o.resumeToken, unittest.equals('foo')); unittest.expect(o.sql, unittest.equals('foo')); @@ -625,14 +625,14 @@ buildCounterField--; } -buildUnnamed2062() { +buildUnnamed2096() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2062(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')); @@ -643,7 +643,7 @@ var o = new api.GetDatabaseDdlResponse(); buildCounterGetDatabaseDdlResponse++; if (buildCounterGetDatabaseDdlResponse < 3) { - o.statements = buildUnnamed2062(); + o.statements = buildUnnamed2096(); } buildCounterGetDatabaseDdlResponse--; return o; @@ -652,7 +652,7 @@ checkGetDatabaseDdlResponse(api.GetDatabaseDdlResponse o) { buildCounterGetDatabaseDdlResponse++; if (buildCounterGetDatabaseDdlResponse < 3) { - checkUnnamed2062(o.statements); + checkUnnamed2096(o.statements); } buildCounterGetDatabaseDdlResponse--; } @@ -674,14 +674,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed2063() { +buildUnnamed2097() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2063(core.Map<core.String, core.String> o) { +checkUnnamed2097(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -694,7 +694,7 @@ if (buildCounterInstance < 3) { o.config = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed2063(); + o.labels = buildUnnamed2097(); o.name = "foo"; o.nodeCount = 42; o.state = "foo"; @@ -708,7 +708,7 @@ if (buildCounterInstance < 3) { unittest.expect(o.config, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed2063(o.labels); + checkUnnamed2097(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nodeCount, unittest.equals(42)); unittest.expect(o.state, unittest.equals('foo')); @@ -737,53 +737,53 @@ buildCounterInstanceConfig--; } -buildUnnamed2064() { +buildUnnamed2098() { 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; } -checkUnnamed2064(core.List<core.Object> o) { +checkUnnamed2098(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed2065() { +buildUnnamed2099() { 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; } -checkUnnamed2065(core.List<core.Object> o) { +checkUnnamed2099(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed2066() { +buildUnnamed2100() { 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; } -checkUnnamed2066(core.List<core.Object> o) { +checkUnnamed2100(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); var casted8 = (o[1]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed2067() { +buildUnnamed2101() { 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; } -checkUnnamed2067(core.List<core.Object> o) { +checkUnnamed2101(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted9 = (o[0]) 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[1]) 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')); @@ -794,10 +794,10 @@ var o = new api.KeyRange(); buildCounterKeyRange++; if (buildCounterKeyRange < 3) { - o.endClosed = buildUnnamed2064(); - o.endOpen = buildUnnamed2065(); - o.startClosed = buildUnnamed2066(); - o.startOpen = buildUnnamed2067(); + o.endClosed = buildUnnamed2098(); + o.endOpen = buildUnnamed2099(); + o.startClosed = buildUnnamed2100(); + o.startOpen = buildUnnamed2101(); } buildCounterKeyRange--; return o; @@ -806,48 +806,48 @@ checkKeyRange(api.KeyRange o) { buildCounterKeyRange++; if (buildCounterKeyRange < 3) { - checkUnnamed2064(o.endClosed); - checkUnnamed2065(o.endOpen); - checkUnnamed2066(o.startClosed); - checkUnnamed2067(o.startOpen); + checkUnnamed2098(o.endClosed); + checkUnnamed2099(o.endOpen); + checkUnnamed2100(o.startClosed); + checkUnnamed2101(o.startOpen); } buildCounterKeyRange--; } -buildUnnamed2068() { +buildUnnamed2102() { 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; } -checkUnnamed2068(core.List<core.Object> o) { +checkUnnamed2102(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted11 = (o[0]) 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[1]) 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')); } -buildUnnamed2069() { +buildUnnamed2103() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed2068()); - o.add(buildUnnamed2068()); + o.add(buildUnnamed2102()); + o.add(buildUnnamed2102()); return o; } -checkUnnamed2069(core.List<core.List<core.Object>> o) { +checkUnnamed2103(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2068(o[0]); - checkUnnamed2068(o[1]); + checkUnnamed2102(o[0]); + checkUnnamed2102(o[1]); } -buildUnnamed2070() { +buildUnnamed2104() { var o = new core.List<api.KeyRange>(); o.add(buildKeyRange()); o.add(buildKeyRange()); return o; } -checkUnnamed2070(core.List<api.KeyRange> o) { +checkUnnamed2104(core.List<api.KeyRange> o) { unittest.expect(o, unittest.hasLength(2)); checkKeyRange(o[0]); checkKeyRange(o[1]); @@ -859,8 +859,8 @@ buildCounterKeySet++; if (buildCounterKeySet < 3) { o.all = true; - o.keys = buildUnnamed2069(); - o.ranges = buildUnnamed2070(); + o.keys = buildUnnamed2103(); + o.ranges = buildUnnamed2104(); } buildCounterKeySet--; return o; @@ -870,20 +870,20 @@ buildCounterKeySet++; if (buildCounterKeySet < 3) { unittest.expect(o.all, unittest.isTrue); - checkUnnamed2069(o.keys); - checkUnnamed2070(o.ranges); + checkUnnamed2103(o.keys); + checkUnnamed2104(o.ranges); } buildCounterKeySet--; } -buildUnnamed2071() { +buildUnnamed2105() { var o = new core.List<api.Database>(); o.add(buildDatabase()); o.add(buildDatabase()); return o; } -checkUnnamed2071(core.List<api.Database> o) { +checkUnnamed2105(core.List<api.Database> o) { unittest.expect(o, unittest.hasLength(2)); checkDatabase(o[0]); checkDatabase(o[1]); @@ -894,7 +894,7 @@ var o = new api.ListDatabasesResponse(); buildCounterListDatabasesResponse++; if (buildCounterListDatabasesResponse < 3) { - o.databases = buildUnnamed2071(); + o.databases = buildUnnamed2105(); o.nextPageToken = "foo"; } buildCounterListDatabasesResponse--; @@ -904,20 +904,20 @@ checkListDatabasesResponse(api.ListDatabasesResponse o) { buildCounterListDatabasesResponse++; if (buildCounterListDatabasesResponse < 3) { - checkUnnamed2071(o.databases); + checkUnnamed2105(o.databases); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDatabasesResponse--; } -buildUnnamed2072() { +buildUnnamed2106() { var o = new core.List<api.InstanceConfig>(); o.add(buildInstanceConfig()); o.add(buildInstanceConfig()); return o; } -checkUnnamed2072(core.List<api.InstanceConfig> o) { +checkUnnamed2106(core.List<api.InstanceConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceConfig(o[0]); checkInstanceConfig(o[1]); @@ -928,7 +928,7 @@ var o = new api.ListInstanceConfigsResponse(); buildCounterListInstanceConfigsResponse++; if (buildCounterListInstanceConfigsResponse < 3) { - o.instanceConfigs = buildUnnamed2072(); + o.instanceConfigs = buildUnnamed2106(); o.nextPageToken = "foo"; } buildCounterListInstanceConfigsResponse--; @@ -938,20 +938,20 @@ checkListInstanceConfigsResponse(api.ListInstanceConfigsResponse o) { buildCounterListInstanceConfigsResponse++; if (buildCounterListInstanceConfigsResponse < 3) { - checkUnnamed2072(o.instanceConfigs); + checkUnnamed2106(o.instanceConfigs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstanceConfigsResponse--; } -buildUnnamed2073() { +buildUnnamed2107() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed2073(core.List<api.Instance> o) { +checkUnnamed2107(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -962,7 +962,7 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed2073(); + o.instances = buildUnnamed2107(); o.nextPageToken = "foo"; } buildCounterListInstancesResponse--; @@ -972,20 +972,20 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed2073(o.instances); + checkUnnamed2107(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstancesResponse--; } -buildUnnamed2074() { +buildUnnamed2108() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2074(core.List<api.Operation> o) { +checkUnnamed2108(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -997,7 +997,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed2074(); + o.operations = buildUnnamed2108(); } buildCounterListOperationsResponse--; return o; @@ -1007,7 +1007,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2074(o.operations); + checkUnnamed2108(o.operations); } buildCounterListOperationsResponse--; } @@ -1062,27 +1062,27 @@ buildCounterMutation--; } -buildUnnamed2075() { +buildUnnamed2109() { 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; } -checkUnnamed2075(core.Map<core.String, core.Object> o) { +checkUnnamed2109(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted13 = (o["x"]) as core.Map; unittest.expect(casted13, unittest.hasLength(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest.expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["string"], unittest.equals('foo')); var casted14 = (o["y"]) as core.Map; unittest.expect(casted14, unittest.hasLength(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest.expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["string"], unittest.equals('foo')); } -buildUnnamed2076() { +buildUnnamed2110() { 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; } -checkUnnamed2076(core.Map<core.String, core.Object> o) { +checkUnnamed2110(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')); @@ -1095,9 +1095,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2075(); + o.metadata = buildUnnamed2109(); o.name = "foo"; - o.response = buildUnnamed2076(); + o.response = buildUnnamed2110(); } buildCounterOperation--; return o; @@ -1108,21 +1108,21 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2075(o.metadata); + checkUnnamed2109(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2076(o.response); + checkUnnamed2110(o.response); } buildCounterOperation--; } -buildUnnamed2077() { +buildUnnamed2111() { 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; } -checkUnnamed2077(core.List<core.Object> o) { +checkUnnamed2111(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')); @@ -1137,7 +1137,7 @@ o.metadata = buildResultSetMetadata(); o.resumeToken = "foo"; o.stats = buildResultSetStats(); - o.values = buildUnnamed2077(); + o.values = buildUnnamed2111(); } buildCounterPartialResultSet--; return o; @@ -1150,45 +1150,45 @@ checkResultSetMetadata(o.metadata); unittest.expect(o.resumeToken, unittest.equals('foo')); checkResultSetStats(o.stats); - checkUnnamed2077(o.values); + checkUnnamed2111(o.values); } buildCounterPartialResultSet--; } -buildUnnamed2078() { +buildUnnamed2112() { var o = new core.List<api.ChildLink>(); o.add(buildChildLink()); o.add(buildChildLink()); return o; } -checkUnnamed2078(core.List<api.ChildLink> o) { +checkUnnamed2112(core.List<api.ChildLink> o) { unittest.expect(o, unittest.hasLength(2)); checkChildLink(o[0]); checkChildLink(o[1]); } -buildUnnamed2079() { +buildUnnamed2113() { 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; } -checkUnnamed2079(core.Map<core.String, core.Object> o) { +checkUnnamed2113(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted19 = (o["x"]) as core.Map; unittest.expect(casted19, unittest.hasLength(3)); unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); unittest.expect(casted19["bool"], unittest.equals(true)); unittest.expect(casted19["string"], unittest.equals('foo')); var casted20 = (o["y"]) as core.Map; unittest.expect(casted20, unittest.hasLength(3)); unittest.expect(casted20["list"], unittest.equals([1, 2, 3])); unittest.expect(casted20["bool"], unittest.equals(true)); unittest.expect(casted20["string"], unittest.equals('foo')); } -buildUnnamed2080() { +buildUnnamed2114() { 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; } -checkUnnamed2080(core.Map<core.String, core.Object> o) { +checkUnnamed2114(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')); @@ -1199,12 +1199,12 @@ var o = new api.PlanNode(); buildCounterPlanNode++; if (buildCounterPlanNode < 3) { - o.childLinks = buildUnnamed2078(); + o.childLinks = buildUnnamed2112(); o.displayName = "foo"; - o.executionStats = buildUnnamed2079(); + o.executionStats = buildUnnamed2113(); o.index = 42; o.kind = "foo"; - o.metadata = buildUnnamed2080(); + o.metadata = buildUnnamed2114(); o.shortRepresentation = buildShortRepresentation(); } buildCounterPlanNode--; @@ -1214,51 +1214,51 @@ checkPlanNode(api.PlanNode o) { buildCounterPlanNode++; if (buildCounterPlanNode < 3) { - checkUnnamed2078(o.childLinks); + checkUnnamed2112(o.childLinks); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed2079(o.executionStats); + checkUnnamed2113(o.executionStats); unittest.expect(o.index, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2080(o.metadata); + checkUnnamed2114(o.metadata); checkShortRepresentation(o.shortRepresentation); } buildCounterPlanNode--; } -buildUnnamed2081() { +buildUnnamed2115() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed2081(core.List<api.AuditConfig> o) { +checkUnnamed2115(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed2082() { +buildUnnamed2116() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed2082(core.List<api.Binding> o) { +checkUnnamed2116(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); } -buildUnnamed2083() { +buildUnnamed2117() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed2083(core.List<api.Rule> o) { +checkUnnamed2117(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -1269,11 +1269,11 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed2081(); - o.bindings = buildUnnamed2082(); + o.auditConfigs = buildUnnamed2115(); + o.bindings = buildUnnamed2116(); o.etag = "foo"; o.iamOwned = true; - o.rules = buildUnnamed2083(); + o.rules = buildUnnamed2117(); o.version = 42; } buildCounterPolicy--; @@ -1283,24 +1283,24 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed2081(o.auditConfigs); - checkUnnamed2082(o.bindings); + checkUnnamed2115(o.auditConfigs); + checkUnnamed2116(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.iamOwned, unittest.isTrue); - checkUnnamed2083(o.rules); + checkUnnamed2117(o.rules); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed2084() { +buildUnnamed2118() { var o = new core.List<api.PlanNode>(); o.add(buildPlanNode()); o.add(buildPlanNode()); return o; } -checkUnnamed2084(core.List<api.PlanNode> o) { +checkUnnamed2118(core.List<api.PlanNode> o) { unittest.expect(o, unittest.hasLength(2)); checkPlanNode(o[0]); checkPlanNode(o[1]); @@ -1311,7 +1311,7 @@ var o = new api.QueryPlan(); buildCounterQueryPlan++; if (buildCounterQueryPlan < 3) { - o.planNodes = buildUnnamed2084(); + o.planNodes = buildUnnamed2118(); } buildCounterQueryPlan--; return o; @@ -1320,7 +1320,7 @@ checkQueryPlan(api.QueryPlan o) { buildCounterQueryPlan++; if (buildCounterQueryPlan < 3) { - checkUnnamed2084(o.planNodes); + checkUnnamed2118(o.planNodes); } buildCounterQueryPlan--; } @@ -1354,14 +1354,14 @@ buildCounterReadOnly--; } -buildUnnamed2085() { +buildUnnamed2119() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2085(core.List<core.String> o) { +checkUnnamed2119(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1372,7 +1372,7 @@ var o = new api.ReadRequest(); buildCounterReadRequest++; if (buildCounterReadRequest < 3) { - o.columns = buildUnnamed2085(); + o.columns = buildUnnamed2119(); o.index = "foo"; o.keySet = buildKeySet(); o.limit = "foo"; @@ -1387,7 +1387,7 @@ checkReadRequest(api.ReadRequest o) { buildCounterReadRequest++; if (buildCounterReadRequest < 3) { - checkUnnamed2085(o.columns); + checkUnnamed2119(o.columns); unittest.expect(o.index, unittest.equals('foo')); checkKeySet(o.keySet); unittest.expect(o.limit, unittest.equals('foo')); @@ -1415,30 +1415,30 @@ buildCounterReadWrite--; } -buildUnnamed2086() { +buildUnnamed2120() { 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; } -checkUnnamed2086(core.List<core.Object> o) { +checkUnnamed2120(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')); } -buildUnnamed2087() { +buildUnnamed2121() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed2086()); - o.add(buildUnnamed2086()); + o.add(buildUnnamed2120()); + o.add(buildUnnamed2120()); return o; } -checkUnnamed2087(core.List<core.List<core.Object>> o) { +checkUnnamed2121(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2086(o[0]); - checkUnnamed2086(o[1]); + checkUnnamed2120(o[0]); + checkUnnamed2120(o[1]); } core.int buildCounterResultSet = 0; @@ -1447,7 +1447,7 @@ buildCounterResultSet++; if (buildCounterResultSet < 3) { o.metadata = buildResultSetMetadata(); - o.rows = buildUnnamed2087(); + o.rows = buildUnnamed2121(); o.stats = buildResultSetStats(); } buildCounterResultSet--; @@ -1458,7 +1458,7 @@ buildCounterResultSet++; if (buildCounterResultSet < 3) { checkResultSetMetadata(o.metadata); - checkUnnamed2087(o.rows); + checkUnnamed2121(o.rows); checkResultSetStats(o.stats); } buildCounterResultSet--; @@ -1485,14 +1485,14 @@ buildCounterResultSetMetadata--; } -buildUnnamed2088() { +buildUnnamed2122() { 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; } -checkUnnamed2088(core.Map<core.String, core.Object> o) { +checkUnnamed2122(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted25 = (o["x"]) as core.Map; unittest.expect(casted25, unittest.hasLength(3)); unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); unittest.expect(casted25["bool"], unittest.equals(true)); unittest.expect(casted25["string"], unittest.equals('foo')); var casted26 = (o["y"]) as core.Map; unittest.expect(casted26, unittest.hasLength(3)); unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); unittest.expect(casted26["bool"], unittest.equals(true)); unittest.expect(casted26["string"], unittest.equals('foo')); @@ -1504,7 +1504,7 @@ buildCounterResultSetStats++; if (buildCounterResultSetStats < 3) { o.queryPlan = buildQueryPlan(); - o.queryStats = buildUnnamed2088(); + o.queryStats = buildUnnamed2122(); } buildCounterResultSetStats--; return o; @@ -1514,7 +1514,7 @@ buildCounterResultSetStats++; if (buildCounterResultSetStats < 3) { checkQueryPlan(o.queryPlan); - checkUnnamed2088(o.queryStats); + checkUnnamed2122(o.queryStats); } buildCounterResultSetStats--; } @@ -1538,66 +1538,66 @@ buildCounterRollbackRequest--; } -buildUnnamed2089() { +buildUnnamed2123() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed2089(core.List<api.Condition> o) { +checkUnnamed2123(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed2090() { +buildUnnamed2124() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2090(core.List<core.String> o) { +checkUnnamed2124(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2091() { +buildUnnamed2125() { var o = new core.List<api.LogConfig>(); o.add(buildLogConfig()); o.add(buildLogConfig()); return o; } -checkUnnamed2091(core.List<api.LogConfig> o) { +checkUnnamed2125(core.List<api.LogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkLogConfig(o[0]); checkLogConfig(o[1]); } -buildUnnamed2092() { +buildUnnamed2126() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2092(core.List<core.String> o) { +checkUnnamed2126(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2093() { +buildUnnamed2127() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2093(core.List<core.String> o) { +checkUnnamed2127(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1609,12 +1609,12 @@ buildCounterRule++; if (buildCounterRule < 3) { o.action = "foo"; - o.conditions = buildUnnamed2089(); + o.conditions = buildUnnamed2123(); o.description = "foo"; - o.in_ = buildUnnamed2090(); - o.logConfig = buildUnnamed2091(); - o.notIn = buildUnnamed2092(); - o.permissions = buildUnnamed2093(); + o.in_ = buildUnnamed2124(); + o.logConfig = buildUnnamed2125(); + o.notIn = buildUnnamed2126(); + o.permissions = buildUnnamed2127(); } buildCounterRule--; return o; @@ -1624,12 +1624,12 @@ buildCounterRule++; if (buildCounterRule < 3) { unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed2089(o.conditions); + checkUnnamed2123(o.conditions); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2090(o.in_); - checkUnnamed2091(o.logConfig); - checkUnnamed2092(o.notIn); - checkUnnamed2093(o.permissions); + checkUnnamed2124(o.in_); + checkUnnamed2125(o.logConfig); + checkUnnamed2126(o.notIn); + checkUnnamed2127(o.permissions); } buildCounterRule--; } @@ -1674,14 +1674,14 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed2094() { +buildUnnamed2128() { var o = new core.Map<core.String, core.int>(); o["x"] = 42; o["y"] = 42; return o; } -checkUnnamed2094(core.Map<core.String, core.int> o) { +checkUnnamed2128(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)); @@ -1693,7 +1693,7 @@ buildCounterShortRepresentation++; if (buildCounterShortRepresentation < 3) { o.description = "foo"; - o.subqueries = buildUnnamed2094(); + o.subqueries = buildUnnamed2128(); } buildCounterShortRepresentation--; return o; @@ -1703,35 +1703,35 @@ buildCounterShortRepresentation++; if (buildCounterShortRepresentation < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2094(o.subqueries); + checkUnnamed2128(o.subqueries); } buildCounterShortRepresentation--; } -buildUnnamed2095() { +buildUnnamed2129() { 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; } -checkUnnamed2095(core.Map<core.String, core.Object> o) { +checkUnnamed2129(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted27 = (o["x"]) as core.Map; unittest.expect(casted27, unittest.hasLength(3)); unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); unittest.expect(casted27["bool"], unittest.equals(true)); unittest.expect(casted27["string"], unittest.equals('foo')); var casted28 = (o["y"]) as core.Map; unittest.expect(casted28, unittest.hasLength(3)); unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); unittest.expect(casted28["bool"], unittest.equals(true)); unittest.expect(casted28["string"], unittest.equals('foo')); } -buildUnnamed2096() { +buildUnnamed2130() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2095()); - o.add(buildUnnamed2095()); + o.add(buildUnnamed2129()); + o.add(buildUnnamed2129()); return o; } -checkUnnamed2096(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2130(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2095(o[0]); - checkUnnamed2095(o[1]); + checkUnnamed2129(o[0]); + checkUnnamed2129(o[1]); } core.int buildCounterStatus = 0; @@ -1740,7 +1740,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2096(); + o.details = buildUnnamed2130(); o.message = "foo"; } buildCounterStatus--; @@ -1751,20 +1751,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2096(o.details); + checkUnnamed2130(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed2097() { +buildUnnamed2131() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed2097(core.List<api.Field> o) { +checkUnnamed2131(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); @@ -1775,7 +1775,7 @@ var o = new api.StructType(); buildCounterStructType++; if (buildCounterStructType < 3) { - o.fields = buildUnnamed2097(); + o.fields = buildUnnamed2131(); } buildCounterStructType--; return o; @@ -1784,19 +1784,19 @@ checkStructType(api.StructType o) { buildCounterStructType++; if (buildCounterStructType < 3) { - checkUnnamed2097(o.fields); + checkUnnamed2131(o.fields); } buildCounterStructType--; } -buildUnnamed2098() { +buildUnnamed2132() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2098(core.List<core.String> o) { +checkUnnamed2132(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1807,7 +1807,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed2098(); + o.permissions = buildUnnamed2132(); } buildCounterTestIamPermissionsRequest--; return o; @@ -1816,19 +1816,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed2098(o.permissions); + checkUnnamed2132(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed2099() { +buildUnnamed2133() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2099(core.List<core.String> o) { +checkUnnamed2133(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1839,7 +1839,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed2099(); + o.permissions = buildUnnamed2133(); } buildCounterTestIamPermissionsResponse--; return o; @@ -1848,7 +1848,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed2099(o.permissions); + checkUnnamed2133(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -1941,27 +1941,27 @@ buildCounterType--; } -buildUnnamed2100() { +buildUnnamed2134() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2100(core.List<core.String> o) { +checkUnnamed2134(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2101() { +buildUnnamed2135() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2101(core.List<core.String> o) { +checkUnnamed2135(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1972,9 +1972,9 @@ var o = new api.UpdateDatabaseDdlMetadata(); buildCounterUpdateDatabaseDdlMetadata++; if (buildCounterUpdateDatabaseDdlMetadata < 3) { - o.commitTimestamps = buildUnnamed2100(); + o.commitTimestamps = buildUnnamed2134(); o.database = "foo"; - o.statements = buildUnnamed2101(); + o.statements = buildUnnamed2135(); } buildCounterUpdateDatabaseDdlMetadata--; return o; @@ -1983,21 +1983,21 @@ checkUpdateDatabaseDdlMetadata(api.UpdateDatabaseDdlMetadata o) { buildCounterUpdateDatabaseDdlMetadata++; if (buildCounterUpdateDatabaseDdlMetadata < 3) { - checkUnnamed2100(o.commitTimestamps); + checkUnnamed2134(o.commitTimestamps); unittest.expect(o.database, unittest.equals('foo')); - checkUnnamed2101(o.statements); + checkUnnamed2135(o.statements); } buildCounterUpdateDatabaseDdlMetadata--; } -buildUnnamed2102() { +buildUnnamed2136() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2102(core.List<core.String> o) { +checkUnnamed2136(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2009,7 +2009,7 @@ buildCounterUpdateDatabaseDdlRequest++; if (buildCounterUpdateDatabaseDdlRequest < 3) { o.operationId = "foo"; - o.statements = buildUnnamed2102(); + o.statements = buildUnnamed2136(); } buildCounterUpdateDatabaseDdlRequest--; return o; @@ -2019,7 +2019,7 @@ buildCounterUpdateDatabaseDdlRequest++; if (buildCounterUpdateDatabaseDdlRequest < 3) { unittest.expect(o.operationId, unittest.equals('foo')); - checkUnnamed2102(o.statements); + checkUnnamed2136(o.statements); } buildCounterUpdateDatabaseDdlRequest--; } @@ -2070,43 +2070,43 @@ buildCounterUpdateInstanceRequest--; } -buildUnnamed2103() { +buildUnnamed2137() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2103(core.List<core.String> o) { +checkUnnamed2137(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2104() { +buildUnnamed2138() { 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; } -checkUnnamed2104(core.List<core.Object> o) { +checkUnnamed2138(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')); } -buildUnnamed2105() { +buildUnnamed2139() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed2104()); - o.add(buildUnnamed2104()); + o.add(buildUnnamed2138()); + o.add(buildUnnamed2138()); return o; } -checkUnnamed2105(core.List<core.List<core.Object>> o) { +checkUnnamed2139(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2104(o[0]); - checkUnnamed2104(o[1]); + checkUnnamed2138(o[0]); + checkUnnamed2138(o[1]); } core.int buildCounterWrite = 0; @@ -2114,9 +2114,9 @@ var o = new api.Write(); buildCounterWrite++; if (buildCounterWrite < 3) { - o.columns = buildUnnamed2103(); + o.columns = buildUnnamed2137(); o.table = "foo"; - o.values = buildUnnamed2105(); + o.values = buildUnnamed2139(); } buildCounterWrite--; return o; @@ -2125,9 +2125,9 @@ checkWrite(api.Write o) { buildCounterWrite++; if (buildCounterWrite < 3) { - checkUnnamed2103(o.columns); + checkUnnamed2137(o.columns); unittest.expect(o.table, unittest.equals('foo')); - checkUnnamed2105(o.values); + checkUnnamed2139(o.values); } buildCounterWrite--; }
diff --git a/generated/googleapis/test/speech/v1_test.dart b/generated/googleapis/test/speech/v1_test.dart index 9e96fc7..aab2904 100644 --- a/generated/googleapis/test/speech/v1_test.dart +++ b/generated/googleapis/test/speech/v1_test.dart
@@ -85,14 +85,14 @@ buildCounterEmpty--; } -buildUnnamed2649() { +buildUnnamed2686() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2649(core.List<api.Operation> o) { +checkUnnamed2686(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -104,7 +104,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed2649(); + o.operations = buildUnnamed2686(); } buildCounterListOperationsResponse--; return o; @@ -114,7 +114,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2649(o.operations); + checkUnnamed2686(o.operations); } buildCounterListOperationsResponse--; } @@ -140,27 +140,27 @@ buildCounterLongRunningRecognizeRequest--; } -buildUnnamed2650() { +buildUnnamed2687() { 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; } -checkUnnamed2650(core.Map<core.String, core.Object> o) { +checkUnnamed2687(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')); } -buildUnnamed2651() { +buildUnnamed2688() { 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; } -checkUnnamed2651(core.Map<core.String, core.Object> o) { +checkUnnamed2688(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -173,9 +173,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2650(); + o.metadata = buildUnnamed2687(); o.name = "foo"; - o.response = buildUnnamed2651(); + o.response = buildUnnamed2688(); } buildCounterOperation--; return o; @@ -186,9 +186,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2650(o.metadata); + checkUnnamed2687(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2651(o.response); + checkUnnamed2688(o.response); } buildCounterOperation--; } @@ -214,14 +214,14 @@ buildCounterRecognitionAudio--; } -buildUnnamed2652() { +buildUnnamed2689() { var o = new core.List<api.SpeechContext>(); o.add(buildSpeechContext()); o.add(buildSpeechContext()); return o; } -checkUnnamed2652(core.List<api.SpeechContext> o) { +checkUnnamed2689(core.List<api.SpeechContext> o) { unittest.expect(o, unittest.hasLength(2)); checkSpeechContext(o[0]); checkSpeechContext(o[1]); @@ -232,12 +232,13 @@ var o = new api.RecognitionConfig(); buildCounterRecognitionConfig++; if (buildCounterRecognitionConfig < 3) { + o.enableWordTimeOffsets = true; o.encoding = "foo"; o.languageCode = "foo"; o.maxAlternatives = 42; o.profanityFilter = true; o.sampleRateHertz = 42; - o.speechContexts = buildUnnamed2652(); + o.speechContexts = buildUnnamed2689(); } buildCounterRecognitionConfig--; return o; @@ -246,12 +247,13 @@ checkRecognitionConfig(api.RecognitionConfig o) { buildCounterRecognitionConfig++; if (buildCounterRecognitionConfig < 3) { + 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)); - checkUnnamed2652(o.speechContexts); + checkUnnamed2689(o.speechContexts); } buildCounterRecognitionConfig--; } @@ -277,14 +279,14 @@ buildCounterRecognizeRequest--; } -buildUnnamed2653() { +buildUnnamed2690() { var o = new core.List<api.SpeechRecognitionResult>(); o.add(buildSpeechRecognitionResult()); o.add(buildSpeechRecognitionResult()); return o; } -checkUnnamed2653(core.List<api.SpeechRecognitionResult> o) { +checkUnnamed2690(core.List<api.SpeechRecognitionResult> o) { unittest.expect(o, unittest.hasLength(2)); checkSpeechRecognitionResult(o[0]); checkSpeechRecognitionResult(o[1]); @@ -295,7 +297,7 @@ var o = new api.RecognizeResponse(); buildCounterRecognizeResponse++; if (buildCounterRecognizeResponse < 3) { - o.results = buildUnnamed2653(); + o.results = buildUnnamed2690(); } buildCounterRecognizeResponse--; return o; @@ -304,19 +306,19 @@ checkRecognizeResponse(api.RecognizeResponse o) { buildCounterRecognizeResponse++; if (buildCounterRecognizeResponse < 3) { - checkUnnamed2653(o.results); + checkUnnamed2690(o.results); } buildCounterRecognizeResponse--; } -buildUnnamed2654() { +buildUnnamed2691() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2654(core.List<core.String> o) { +checkUnnamed2691(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -327,7 +329,7 @@ var o = new api.SpeechContext(); buildCounterSpeechContext++; if (buildCounterSpeechContext < 3) { - o.phrases = buildUnnamed2654(); + o.phrases = buildUnnamed2691(); } buildCounterSpeechContext--; return o; @@ -336,11 +338,24 @@ checkSpeechContext(api.SpeechContext o) { buildCounterSpeechContext++; if (buildCounterSpeechContext < 3) { - checkUnnamed2654(o.phrases); + checkUnnamed2691(o.phrases); } buildCounterSpeechContext--; } +buildUnnamed2692() { + var o = new core.List<api.WordInfo>(); + o.add(buildWordInfo()); + o.add(buildWordInfo()); + return o; +} + +checkUnnamed2692(core.List<api.WordInfo> o) { + unittest.expect(o, unittest.hasLength(2)); + checkWordInfo(o[0]); + checkWordInfo(o[1]); +} + core.int buildCounterSpeechRecognitionAlternative = 0; buildSpeechRecognitionAlternative() { var o = new api.SpeechRecognitionAlternative(); @@ -348,6 +363,7 @@ if (buildCounterSpeechRecognitionAlternative < 3) { o.confidence = 42.0; o.transcript = "foo"; + o.words = buildUnnamed2692(); } buildCounterSpeechRecognitionAlternative--; return o; @@ -358,18 +374,19 @@ if (buildCounterSpeechRecognitionAlternative < 3) { unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.transcript, unittest.equals('foo')); + checkUnnamed2692(o.words); } buildCounterSpeechRecognitionAlternative--; } -buildUnnamed2655() { +buildUnnamed2693() { var o = new core.List<api.SpeechRecognitionAlternative>(); o.add(buildSpeechRecognitionAlternative()); o.add(buildSpeechRecognitionAlternative()); return o; } -checkUnnamed2655(core.List<api.SpeechRecognitionAlternative> o) { +checkUnnamed2693(core.List<api.SpeechRecognitionAlternative> o) { unittest.expect(o, unittest.hasLength(2)); checkSpeechRecognitionAlternative(o[0]); checkSpeechRecognitionAlternative(o[1]); @@ -380,7 +397,7 @@ var o = new api.SpeechRecognitionResult(); buildCounterSpeechRecognitionResult++; if (buildCounterSpeechRecognitionResult < 3) { - o.alternatives = buildUnnamed2655(); + o.alternatives = buildUnnamed2693(); } buildCounterSpeechRecognitionResult--; return o; @@ -389,35 +406,35 @@ checkSpeechRecognitionResult(api.SpeechRecognitionResult o) { buildCounterSpeechRecognitionResult++; if (buildCounterSpeechRecognitionResult < 3) { - checkUnnamed2655(o.alternatives); + checkUnnamed2693(o.alternatives); } buildCounterSpeechRecognitionResult--; } -buildUnnamed2656() { +buildUnnamed2694() { 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; } -checkUnnamed2656(core.Map<core.String, core.Object> o) { +checkUnnamed2694(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')); } -buildUnnamed2657() { +buildUnnamed2695() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2656()); - o.add(buildUnnamed2656()); + o.add(buildUnnamed2694()); + o.add(buildUnnamed2694()); return o; } -checkUnnamed2657(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2695(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2656(o[0]); - checkUnnamed2656(o[1]); + checkUnnamed2694(o[0]); + checkUnnamed2694(o[1]); } core.int buildCounterStatus = 0; @@ -426,7 +443,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2657(); + o.details = buildUnnamed2695(); o.message = "foo"; } buildCounterStatus--; @@ -437,12 +454,35 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2657(o.details); + checkUnnamed2695(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } +core.int buildCounterWordInfo = 0; +buildWordInfo() { + var o = new api.WordInfo(); + buildCounterWordInfo++; + if (buildCounterWordInfo < 3) { + o.endTime = "foo"; + o.startTime = "foo"; + o.word = "foo"; + } + buildCounterWordInfo--; + return o; +} + +checkWordInfo(api.WordInfo o) { + buildCounterWordInfo++; + if (buildCounterWordInfo < 3) { + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.startTime, unittest.equals('foo')); + unittest.expect(o.word, unittest.equals('foo')); + } + buildCounterWordInfo--; +} + main() { unittest.group("obj-schema-CancelOperationRequest", () { @@ -562,6 +602,15 @@ }); + unittest.group("obj-schema-WordInfo", () { + unittest.test("to-json--from-json", () { + var o = buildWordInfo(); + var od = new api.WordInfo.fromJson(o.toJson()); + checkWordInfo(od); + }); + }); + + unittest.group("resource-OperationsResourceApi", () { unittest.test("method--cancel", () {
diff --git a/generated/googleapis/test/storagetransfer/v1_test.dart b/generated/googleapis/test/storagetransfer/v1_test.dart index 400e3db..67d9816 100644 --- a/generated/googleapis/test/storagetransfer/v1_test.dart +++ b/generated/googleapis/test/storagetransfer/v1_test.dart
@@ -133,14 +133,14 @@ buildCounterEmpty--; } -buildUnnamed1413() { +buildUnnamed1391() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1413(core.List<core.String> o) { +checkUnnamed1391(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -151,7 +151,7 @@ var o = new api.ErrorLogEntry(); buildCounterErrorLogEntry++; if (buildCounterErrorLogEntry < 3) { - o.errorDetails = buildUnnamed1413(); + o.errorDetails = buildUnnamed1391(); o.url = "foo"; } buildCounterErrorLogEntry--; @@ -161,20 +161,20 @@ checkErrorLogEntry(api.ErrorLogEntry o) { buildCounterErrorLogEntry++; if (buildCounterErrorLogEntry < 3) { - checkUnnamed1413(o.errorDetails); + checkUnnamed1391(o.errorDetails); unittest.expect(o.url, unittest.equals('foo')); } buildCounterErrorLogEntry--; } -buildUnnamed1414() { +buildUnnamed1392() { var o = new core.List<api.ErrorLogEntry>(); o.add(buildErrorLogEntry()); o.add(buildErrorLogEntry()); return o; } -checkUnnamed1414(core.List<api.ErrorLogEntry> o) { +checkUnnamed1392(core.List<api.ErrorLogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorLogEntry(o[0]); checkErrorLogEntry(o[1]); @@ -187,7 +187,7 @@ if (buildCounterErrorSummary < 3) { o.errorCode = "foo"; o.errorCount = "foo"; - o.errorLogEntries = buildUnnamed1414(); + o.errorLogEntries = buildUnnamed1392(); } buildCounterErrorSummary--; return o; @@ -198,7 +198,7 @@ if (buildCounterErrorSummary < 3) { unittest.expect(o.errorCode, unittest.equals('foo')); unittest.expect(o.errorCount, unittest.equals('foo')); - checkUnnamed1414(o.errorLogEntries); + checkUnnamed1392(o.errorLogEntries); } buildCounterErrorSummary--; } @@ -260,14 +260,14 @@ buildCounterHttpData--; } -buildUnnamed1415() { +buildUnnamed1393() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1415(core.List<api.Operation> o) { +checkUnnamed1393(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -279,7 +279,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1415(); + o.operations = buildUnnamed1393(); } buildCounterListOperationsResponse--; return o; @@ -289,19 +289,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1415(o.operations); + checkUnnamed1393(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1416() { +buildUnnamed1394() { var o = new core.List<api.TransferJob>(); o.add(buildTransferJob()); o.add(buildTransferJob()); return o; } -checkUnnamed1416(core.List<api.TransferJob> o) { +checkUnnamed1394(core.List<api.TransferJob> o) { unittest.expect(o, unittest.hasLength(2)); checkTransferJob(o[0]); checkTransferJob(o[1]); @@ -313,7 +313,7 @@ buildCounterListTransferJobsResponse++; if (buildCounterListTransferJobsResponse < 3) { o.nextPageToken = "foo"; - o.transferJobs = buildUnnamed1416(); + o.transferJobs = buildUnnamed1394(); } buildCounterListTransferJobsResponse--; return o; @@ -323,32 +323,32 @@ buildCounterListTransferJobsResponse++; if (buildCounterListTransferJobsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1416(o.transferJobs); + checkUnnamed1394(o.transferJobs); } buildCounterListTransferJobsResponse--; } -buildUnnamed1417() { +buildUnnamed1395() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1417(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')); } -buildUnnamed1418() { +buildUnnamed1396() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1418(core.List<core.String> o) { +checkUnnamed1396(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -359,8 +359,8 @@ var o = new api.ObjectConditions(); buildCounterObjectConditions++; if (buildCounterObjectConditions < 3) { - o.excludePrefixes = buildUnnamed1417(); - o.includePrefixes = buildUnnamed1418(); + o.excludePrefixes = buildUnnamed1395(); + o.includePrefixes = buildUnnamed1396(); o.maxTimeElapsedSinceLastModification = "foo"; o.minTimeElapsedSinceLastModification = "foo"; } @@ -371,35 +371,35 @@ checkObjectConditions(api.ObjectConditions o) { buildCounterObjectConditions++; if (buildCounterObjectConditions < 3) { - checkUnnamed1417(o.excludePrefixes); - checkUnnamed1418(o.includePrefixes); + checkUnnamed1395(o.excludePrefixes); + checkUnnamed1396(o.includePrefixes); unittest.expect(o.maxTimeElapsedSinceLastModification, unittest.equals('foo')); unittest.expect(o.minTimeElapsedSinceLastModification, unittest.equals('foo')); } buildCounterObjectConditions--; } -buildUnnamed1419() { +buildUnnamed1397() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1419(core.Map<core.String, core.Object> o) { +checkUnnamed1397(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')); } -buildUnnamed1420() { +buildUnnamed1398() { 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; } -checkUnnamed1420(core.Map<core.String, core.Object> o) { +checkUnnamed1398(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -412,9 +412,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1419(); + o.metadata = buildUnnamed1397(); o.name = "foo"; - o.response = buildUnnamed1420(); + o.response = buildUnnamed1398(); } buildCounterOperation--; return o; @@ -425,9 +425,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1419(o.metadata); + checkUnnamed1397(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1420(o.response); + checkUnnamed1398(o.response); } buildCounterOperation--; } @@ -489,30 +489,30 @@ buildCounterSchedule--; } -buildUnnamed1421() { +buildUnnamed1399() { 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; } -checkUnnamed1421(core.Map<core.String, core.Object> o) { +checkUnnamed1399(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')); } -buildUnnamed1422() { +buildUnnamed1400() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1421()); - o.add(buildUnnamed1421()); + o.add(buildUnnamed1399()); + o.add(buildUnnamed1399()); return o; } -checkUnnamed1422(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1400(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1421(o[0]); - checkUnnamed1421(o[1]); + checkUnnamed1399(o[0]); + checkUnnamed1399(o[1]); } core.int buildCounterStatus = 0; @@ -521,7 +521,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1422(); + o.details = buildUnnamed1400(); o.message = "foo"; } buildCounterStatus--; @@ -532,7 +532,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1422(o.details); + checkUnnamed1400(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -647,14 +647,14 @@ buildCounterTransferJob--; } -buildUnnamed1423() { +buildUnnamed1401() { var o = new core.List<api.ErrorSummary>(); o.add(buildErrorSummary()); o.add(buildErrorSummary()); return o; } -checkUnnamed1423(core.List<api.ErrorSummary> o) { +checkUnnamed1401(core.List<api.ErrorSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorSummary(o[0]); checkErrorSummary(o[1]); @@ -667,7 +667,7 @@ if (buildCounterTransferOperation < 3) { o.counters = buildTransferCounters(); o.endTime = "foo"; - o.errorBreakdowns = buildUnnamed1423(); + o.errorBreakdowns = buildUnnamed1401(); o.name = "foo"; o.projectId = "foo"; o.startTime = "foo"; @@ -684,7 +684,7 @@ if (buildCounterTransferOperation < 3) { checkTransferCounters(o.counters); unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed1423(o.errorBreakdowns); + checkUnnamed1401(o.errorBreakdowns); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.startTime, unittest.equals('foo')); @@ -1138,9 +1138,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"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1167,9 +1167,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -1178,7 +1178,7 @@ var resp = convert.JSON.encode(buildListTransferJobsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListTransferJobsResponse response) { + res.list(pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListTransferJobsResponse response) { checkListTransferJobsResponse(response); }))); });
diff --git a/generated/googleapis/test/surveys/v2_test.dart b/generated/googleapis/test/surveys/v2_test.dart index 2fdc340..60bc7f3 100644 --- a/generated/googleapis/test/surveys/v2_test.dart +++ b/generated/googleapis/test/surveys/v2_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2174() { +buildUnnamed2208() { var o = new core.List<api.FieldMask>(); o.add(buildFieldMask()); o.add(buildFieldMask()); return o; } -checkUnnamed2174(core.List<api.FieldMask> o) { +checkUnnamed2208(core.List<api.FieldMask> o) { unittest.expect(o, unittest.hasLength(2)); checkFieldMask(o[0]); checkFieldMask(o[1]); @@ -69,7 +69,7 @@ var o = new api.FieldMask(); buildCounterFieldMask++; if (buildCounterFieldMask < 3) { - o.fields = buildUnnamed2174(); + o.fields = buildUnnamed2208(); o.id = 42; } buildCounterFieldMask--; @@ -79,20 +79,20 @@ checkFieldMask(api.FieldMask o) { buildCounterFieldMask++; if (buildCounterFieldMask < 3) { - checkUnnamed2174(o.fields); + checkUnnamed2208(o.fields); unittest.expect(o.id, unittest.equals(42)); } buildCounterFieldMask--; } -buildUnnamed2175() { +buildUnnamed2209() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2175(core.List<core.String> o) { +checkUnnamed2209(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -108,7 +108,7 @@ o.language = "foo"; o.mobileAppPanelId = "foo"; o.name = "foo"; - o.owners = buildUnnamed2175(); + o.owners = buildUnnamed2209(); } buildCounterMobileAppPanel--; return o; @@ -122,19 +122,19 @@ unittest.expect(o.language, unittest.equals('foo')); unittest.expect(o.mobileAppPanelId, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2175(o.owners); + checkUnnamed2209(o.owners); } buildCounterMobileAppPanel--; } -buildUnnamed2176() { +buildUnnamed2210() { var o = new core.List<api.MobileAppPanel>(); o.add(buildMobileAppPanel()); o.add(buildMobileAppPanel()); return o; } -checkUnnamed2176(core.List<api.MobileAppPanel> o) { +checkUnnamed2210(core.List<api.MobileAppPanel> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileAppPanel(o[0]); checkMobileAppPanel(o[1]); @@ -147,7 +147,7 @@ if (buildCounterMobileAppPanelsListResponse < 3) { o.pageInfo = buildPageInfo(); o.requestId = "foo"; - o.resources = buildUnnamed2176(); + o.resources = buildUnnamed2210(); o.tokenPagination = buildTokenPagination(); } buildCounterMobileAppPanelsListResponse--; @@ -159,7 +159,7 @@ if (buildCounterMobileAppPanelsListResponse < 3) { checkPageInfo(o.pageInfo); unittest.expect(o.requestId, unittest.equals('foo')); - checkUnnamed2176(o.resources); + checkUnnamed2210(o.resources); checkTokenPagination(o.tokenPagination); } buildCounterMobileAppPanelsListResponse--; @@ -207,14 +207,14 @@ buildCounterResultsGetRequest--; } -buildUnnamed2177() { +buildUnnamed2211() { var o = new core.List<api.FieldMask>(); o.add(buildFieldMask()); o.add(buildFieldMask()); return o; } -checkUnnamed2177(core.List<api.FieldMask> o) { +checkUnnamed2211(core.List<api.FieldMask> o) { unittest.expect(o, unittest.hasLength(2)); checkFieldMask(o[0]); checkFieldMask(o[1]); @@ -225,7 +225,7 @@ var o = new api.ResultsMask(); buildCounterResultsMask++; if (buildCounterResultsMask < 3) { - o.fields = buildUnnamed2177(); + o.fields = buildUnnamed2211(); o.projection = "foo"; } buildCounterResultsMask--; @@ -235,33 +235,33 @@ checkResultsMask(api.ResultsMask o) { buildCounterResultsMask++; if (buildCounterResultsMask < 3) { - checkUnnamed2177(o.fields); + checkUnnamed2211(o.fields); unittest.expect(o.projection, unittest.equals('foo')); } buildCounterResultsMask--; } -buildUnnamed2178() { +buildUnnamed2212() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2178(core.List<core.String> o) { +checkUnnamed2212(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2179() { +buildUnnamed2213() { var o = new core.List<api.SurveyQuestion>(); o.add(buildSurveyQuestion()); o.add(buildSurveyQuestion()); return o; } -checkUnnamed2179(core.List<api.SurveyQuestion> o) { +checkUnnamed2213(core.List<api.SurveyQuestion> o) { unittest.expect(o, unittest.hasLength(2)); checkSurveyQuestion(o[0]); checkSurveyQuestion(o[1]); @@ -276,8 +276,8 @@ o.cost = buildSurveyCost(); o.customerData = "foo"; o.description = "foo"; - o.owners = buildUnnamed2178(); - o.questions = buildUnnamed2179(); + o.owners = buildUnnamed2212(); + o.questions = buildUnnamed2213(); o.rejectionReason = buildSurveyRejection(); o.state = "foo"; o.surveyUrlId = "foo"; @@ -295,8 +295,8 @@ checkSurveyCost(o.cost); unittest.expect(o.customerData, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2178(o.owners); - checkUnnamed2179(o.questions); + checkUnnamed2212(o.owners); + checkUnnamed2213(o.questions); checkSurveyRejection(o.rejectionReason); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.surveyUrlId, unittest.equals('foo')); @@ -306,27 +306,27 @@ buildCounterSurvey--; } -buildUnnamed2180() { +buildUnnamed2214() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2180(core.List<core.String> o) { +checkUnnamed2214(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2181() { +buildUnnamed2215() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2181(core.List<core.String> o) { +checkUnnamed2215(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -337,11 +337,11 @@ var o = new api.SurveyAudience(); buildCounterSurveyAudience++; if (buildCounterSurveyAudience < 3) { - o.ages = buildUnnamed2180(); + o.ages = buildUnnamed2214(); o.country = "foo"; o.countrySubdivision = "foo"; o.gender = "foo"; - o.languages = buildUnnamed2181(); + o.languages = buildUnnamed2215(); o.mobileAppPanelId = "foo"; o.populationSource = "foo"; } @@ -352,11 +352,11 @@ checkSurveyAudience(api.SurveyAudience o) { buildCounterSurveyAudience++; if (buildCounterSurveyAudience < 3) { - checkUnnamed2180(o.ages); + checkUnnamed2214(o.ages); unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.countrySubdivision, unittest.equals('foo')); unittest.expect(o.gender, unittest.equals('foo')); - checkUnnamed2181(o.languages); + checkUnnamed2215(o.languages); unittest.expect(o.mobileAppPanelId, unittest.equals('foo')); unittest.expect(o.populationSource, unittest.equals('foo')); } @@ -388,53 +388,53 @@ buildCounterSurveyCost--; } -buildUnnamed2182() { +buildUnnamed2216() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2182(core.List<core.String> o) { +checkUnnamed2216(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2183() { +buildUnnamed2217() { var o = new core.List<api.SurveyQuestionImage>(); o.add(buildSurveyQuestionImage()); o.add(buildSurveyQuestionImage()); return o; } -checkUnnamed2183(core.List<api.SurveyQuestionImage> o) { +checkUnnamed2217(core.List<api.SurveyQuestionImage> o) { unittest.expect(o, unittest.hasLength(2)); checkSurveyQuestionImage(o[0]); checkSurveyQuestionImage(o[1]); } -buildUnnamed2184() { +buildUnnamed2218() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2184(core.List<core.String> o) { +checkUnnamed2218(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2185() { +buildUnnamed2219() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2185(core.List<core.String> o) { +checkUnnamed2219(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -446,20 +446,20 @@ buildCounterSurveyQuestion++; if (buildCounterSurveyQuestion < 3) { o.answerOrder = "foo"; - o.answers = buildUnnamed2182(); + o.answers = buildUnnamed2216(); o.hasOther = true; o.highValueLabel = "foo"; - o.images = buildUnnamed2183(); + o.images = buildUnnamed2217(); o.lastAnswerPositionPinned = true; o.lowValueLabel = "foo"; o.mustPickSuggestion = true; o.numStars = "foo"; o.openTextPlaceholder = "foo"; - o.openTextSuggestions = buildUnnamed2184(); + o.openTextSuggestions = buildUnnamed2218(); o.question = "foo"; o.sentimentText = "foo"; o.singleLineResponse = true; - o.thresholdAnswers = buildUnnamed2185(); + o.thresholdAnswers = buildUnnamed2219(); o.type = "foo"; o.unitOfMeasurementLabel = "foo"; o.videoId = "foo"; @@ -472,20 +472,20 @@ buildCounterSurveyQuestion++; if (buildCounterSurveyQuestion < 3) { unittest.expect(o.answerOrder, unittest.equals('foo')); - checkUnnamed2182(o.answers); + checkUnnamed2216(o.answers); unittest.expect(o.hasOther, unittest.isTrue); unittest.expect(o.highValueLabel, unittest.equals('foo')); - checkUnnamed2183(o.images); + checkUnnamed2217(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')); - checkUnnamed2184(o.openTextSuggestions); + checkUnnamed2218(o.openTextSuggestions); unittest.expect(o.question, unittest.equals('foo')); unittest.expect(o.sentimentText, unittest.equals('foo')); unittest.expect(o.singleLineResponse, unittest.isTrue); - checkUnnamed2185(o.thresholdAnswers); + checkUnnamed2219(o.thresholdAnswers); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.unitOfMeasurementLabel, unittest.equals('foo')); unittest.expect(o.videoId, unittest.equals('foo')); @@ -577,14 +577,14 @@ buildCounterSurveysDeleteResponse--; } -buildUnnamed2186() { +buildUnnamed2220() { var o = new core.List<api.Survey>(); o.add(buildSurvey()); o.add(buildSurvey()); return o; } -checkUnnamed2186(core.List<api.Survey> o) { +checkUnnamed2220(core.List<api.Survey> o) { unittest.expect(o, unittest.hasLength(2)); checkSurvey(o[0]); checkSurvey(o[1]); @@ -597,7 +597,7 @@ if (buildCounterSurveysListResponse < 3) { o.pageInfo = buildPageInfo(); o.requestId = "foo"; - o.resources = buildUnnamed2186(); + o.resources = buildUnnamed2220(); o.tokenPagination = buildTokenPagination(); } buildCounterSurveysListResponse--; @@ -609,7 +609,7 @@ if (buildCounterSurveysListResponse < 3) { checkPageInfo(o.pageInfo); unittest.expect(o.requestId, unittest.equals('foo')); - checkUnnamed2186(o.resources); + checkUnnamed2220(o.resources); checkTokenPagination(o.tokenPagination); } buildCounterSurveysListResponse--;
diff --git a/generated/googleapis/test/tasks/v1_test.dart b/generated/googleapis/test/tasks/v1_test.dart index 19ab00a..edb2034 100644 --- a/generated/googleapis/test/tasks/v1_test.dart +++ b/generated/googleapis/test/tasks/v1_test.dart
@@ -74,14 +74,14 @@ buildCounterTaskLinks--; } -buildUnnamed2658() { +buildUnnamed2696() { var o = new core.List<api.TaskLinks>(); o.add(buildTaskLinks()); o.add(buildTaskLinks()); return o; } -checkUnnamed2658(core.List<api.TaskLinks> o) { +checkUnnamed2696(core.List<api.TaskLinks> o) { unittest.expect(o, unittest.hasLength(2)); checkTaskLinks(o[0]); checkTaskLinks(o[1]); @@ -99,7 +99,7 @@ o.hidden = true; o.id = "foo"; o.kind = "foo"; - o.links = buildUnnamed2658(); + o.links = buildUnnamed2696(); o.notes = "foo"; o.parent = "foo"; o.position = "foo"; @@ -122,7 +122,7 @@ unittest.expect(o.hidden, unittest.isTrue); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2658(o.links); + checkUnnamed2696(o.links); unittest.expect(o.notes, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); unittest.expect(o.position, unittest.equals('foo')); @@ -163,14 +163,14 @@ buildCounterTaskList--; } -buildUnnamed2659() { +buildUnnamed2697() { var o = new core.List<api.TaskList>(); o.add(buildTaskList()); o.add(buildTaskList()); return o; } -checkUnnamed2659(core.List<api.TaskList> o) { +checkUnnamed2697(core.List<api.TaskList> o) { unittest.expect(o, unittest.hasLength(2)); checkTaskList(o[0]); checkTaskList(o[1]); @@ -182,7 +182,7 @@ buildCounterTaskLists++; if (buildCounterTaskLists < 3) { o.etag = "foo"; - o.items = buildUnnamed2659(); + o.items = buildUnnamed2697(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -194,21 +194,21 @@ buildCounterTaskLists++; if (buildCounterTaskLists < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2659(o.items); + checkUnnamed2697(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterTaskLists--; } -buildUnnamed2660() { +buildUnnamed2698() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed2660(core.List<api.Task> o) { +checkUnnamed2698(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -220,7 +220,7 @@ buildCounterTasks++; if (buildCounterTasks < 3) { o.etag = "foo"; - o.items = buildUnnamed2660(); + o.items = buildUnnamed2698(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -232,7 +232,7 @@ buildCounterTasks++; if (buildCounterTasks < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2660(o.items); + checkUnnamed2698(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); }
diff --git a/generated/googleapis/test/tracing/v2_test.dart b/generated/googleapis/test/tracing/v2_test.dart deleted file mode 100644 index 96babfc..0000000 --- a/generated/googleapis/test/tracing/v2_test.dart +++ /dev/null
@@ -1,1018 +0,0 @@ -library googleapis.tracing.v2.test; - -import "dart:core" as core; -import "dart:collection" as collection; -import "dart:async" as async; -import "dart:convert" as convert; - -import 'package:http/http.dart' as http; -import 'package:http/testing.dart' as http_testing; -import 'package:test/test.dart' as unittest; - -import 'package:googleapis/tracing/v2.dart' as api; - -class HttpServerMock extends http.BaseClient { - core.Function _callback; - core.bool _expectJson; - - void register(core.Function callback, core.bool expectJson) { - _callback = callback; - _expectJson = expectJson; - } - - async.Future<http.StreamedResponse> send(http.BaseRequest request) { - if (_expectJson) { - return request.finalize() - .transform(convert.UTF8.decoder) - .join('') - .then((core.String jsonString) { - if (jsonString.isEmpty) { - return _callback(request, null); - } else { - return _callback(request, convert.JSON.decode(jsonString)); - } - }); - } else { - var stream = request.finalize(); - if (stream == null) { - return _callback(request, []); - } else { - return stream.toBytes().then((data) { - return _callback(request, data); - }); - } - } - } -} - -http.StreamedResponse stringResponse( - core.int status, core.Map<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); -} - -core.int buildCounterAnnotation = 0; -buildAnnotation() { - var o = new api.Annotation(); - buildCounterAnnotation++; - if (buildCounterAnnotation < 3) { - o.attributes = buildAttributes(); - o.description = buildTruncatableString(); - } - buildCounterAnnotation--; - return o; -} - -checkAnnotation(api.Annotation o) { - buildCounterAnnotation++; - if (buildCounterAnnotation < 3) { - checkAttributes(o.attributes); - checkTruncatableString(o.description); - } - buildCounterAnnotation--; -} - -core.int buildCounterAttributeValue = 0; -buildAttributeValue() { - var o = new api.AttributeValue(); - buildCounterAttributeValue++; - if (buildCounterAttributeValue < 3) { - o.boolValue = true; - o.intValue = "foo"; - o.stringValue = buildTruncatableString(); - } - buildCounterAttributeValue--; - return o; -} - -checkAttributeValue(api.AttributeValue o) { - buildCounterAttributeValue++; - if (buildCounterAttributeValue < 3) { - unittest.expect(o.boolValue, unittest.isTrue); - unittest.expect(o.intValue, unittest.equals('foo')); - checkTruncatableString(o.stringValue); - } - buildCounterAttributeValue--; -} - -buildUnnamed1739() { - var o = new core.Map<core.String, api.AttributeValue>(); - o["x"] = buildAttributeValue(); - o["y"] = buildAttributeValue(); - return o; -} - -checkUnnamed1739(core.Map<core.String, api.AttributeValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAttributeValue(o["x"]); - checkAttributeValue(o["y"]); -} - -core.int buildCounterAttributes = 0; -buildAttributes() { - var o = new api.Attributes(); - buildCounterAttributes++; - if (buildCounterAttributes < 3) { - o.attributeMap = buildUnnamed1739(); - o.droppedAttributesCount = 42; - } - buildCounterAttributes--; - return o; -} - -checkAttributes(api.Attributes o) { - buildCounterAttributes++; - if (buildCounterAttributes < 3) { - checkUnnamed1739(o.attributeMap); - unittest.expect(o.droppedAttributesCount, unittest.equals(42)); - } - buildCounterAttributes--; -} - -buildUnnamed1740() { - var o = new core.List<api.Span>(); - o.add(buildSpan()); - o.add(buildSpan()); - return o; -} - -checkUnnamed1740(core.List<api.Span> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSpan(o[0]); - checkSpan(o[1]); -} - -core.int buildCounterBatchWriteSpansRequest = 0; -buildBatchWriteSpansRequest() { - var o = new api.BatchWriteSpansRequest(); - buildCounterBatchWriteSpansRequest++; - if (buildCounterBatchWriteSpansRequest < 3) { - o.spans = buildUnnamed1740(); - } - buildCounterBatchWriteSpansRequest--; - return o; -} - -checkBatchWriteSpansRequest(api.BatchWriteSpansRequest o) { - buildCounterBatchWriteSpansRequest++; - if (buildCounterBatchWriteSpansRequest < 3) { - checkUnnamed1740(o.spans); - } - buildCounterBatchWriteSpansRequest--; -} - -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 buildCounterLink = 0; -buildLink() { - var o = new api.Link(); - buildCounterLink++; - if (buildCounterLink < 3) { - o.spanId = "foo"; - o.traceId = "foo"; - o.type = "foo"; - } - buildCounterLink--; - return o; -} - -checkLink(api.Link o) { - buildCounterLink++; - if (buildCounterLink < 3) { - unittest.expect(o.spanId, unittest.equals('foo')); - unittest.expect(o.traceId, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterLink--; -} - -buildUnnamed1741() { - var o = new core.List<api.Link>(); - o.add(buildLink()); - o.add(buildLink()); - return o; -} - -checkUnnamed1741(core.List<api.Link> o) { - unittest.expect(o, unittest.hasLength(2)); - checkLink(o[0]); - checkLink(o[1]); -} - -core.int buildCounterLinks = 0; -buildLinks() { - var o = new api.Links(); - buildCounterLinks++; - if (buildCounterLinks < 3) { - o.droppedLinksCount = 42; - o.link = buildUnnamed1741(); - } - buildCounterLinks--; - return o; -} - -checkLinks(api.Links o) { - buildCounterLinks++; - if (buildCounterLinks < 3) { - unittest.expect(o.droppedLinksCount, unittest.equals(42)); - checkUnnamed1741(o.link); - } - buildCounterLinks--; -} - -buildUnnamed1742() { - var o = new core.List<api.Span>(); - o.add(buildSpan()); - o.add(buildSpan()); - return o; -} - -checkUnnamed1742(core.List<api.Span> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSpan(o[0]); - checkSpan(o[1]); -} - -core.int buildCounterListSpansResponse = 0; -buildListSpansResponse() { - var o = new api.ListSpansResponse(); - buildCounterListSpansResponse++; - if (buildCounterListSpansResponse < 3) { - o.nextPageToken = "foo"; - o.spans = buildUnnamed1742(); - } - buildCounterListSpansResponse--; - return o; -} - -checkListSpansResponse(api.ListSpansResponse o) { - buildCounterListSpansResponse++; - if (buildCounterListSpansResponse < 3) { - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1742(o.spans); - } - buildCounterListSpansResponse--; -} - -buildUnnamed1743() { - var o = new core.List<api.Trace>(); - o.add(buildTrace()); - o.add(buildTrace()); - return o; -} - -checkUnnamed1743(core.List<api.Trace> o) { - unittest.expect(o, unittest.hasLength(2)); - checkTrace(o[0]); - checkTrace(o[1]); -} - -core.int buildCounterListTracesResponse = 0; -buildListTracesResponse() { - var o = new api.ListTracesResponse(); - buildCounterListTracesResponse++; - if (buildCounterListTracesResponse < 3) { - o.nextPageToken = "foo"; - o.traces = buildUnnamed1743(); - } - buildCounterListTracesResponse--; - return o; -} - -checkListTracesResponse(api.ListTracesResponse o) { - buildCounterListTracesResponse++; - if (buildCounterListTracesResponse < 3) { - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1743(o.traces); - } - buildCounterListTracesResponse--; -} - -core.int buildCounterModule = 0; -buildModule() { - var o = new api.Module(); - buildCounterModule++; - if (buildCounterModule < 3) { - o.buildId = buildTruncatableString(); - o.module = buildTruncatableString(); - } - buildCounterModule--; - return o; -} - -checkModule(api.Module o) { - buildCounterModule++; - if (buildCounterModule < 3) { - checkTruncatableString(o.buildId); - checkTruncatableString(o.module); - } - buildCounterModule--; -} - -core.int buildCounterNetworkEvent = 0; -buildNetworkEvent() { - var o = new api.NetworkEvent(); - buildCounterNetworkEvent++; - if (buildCounterNetworkEvent < 3) { - o.messageId = "foo"; - o.messageSize = "foo"; - o.time = "foo"; - o.type = "foo"; - } - buildCounterNetworkEvent--; - return o; -} - -checkNetworkEvent(api.NetworkEvent o) { - buildCounterNetworkEvent++; - if (buildCounterNetworkEvent < 3) { - unittest.expect(o.messageId, unittest.equals('foo')); - unittest.expect(o.messageSize, unittest.equals('foo')); - unittest.expect(o.time, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterNetworkEvent--; -} - -core.int buildCounterSpan = 0; -buildSpan() { - var o = new api.Span(); - buildCounterSpan++; - if (buildCounterSpan < 3) { - o.attributes = buildAttributes(); - o.displayName = buildTruncatableString(); - o.endTime = "foo"; - o.links = buildLinks(); - o.name = "foo"; - o.parentSpanId = "foo"; - o.spanId = "foo"; - o.stackTrace = buildStackTrace(); - o.startTime = "foo"; - o.status = buildStatus(); - o.timeEvents = buildTimeEvents(); - } - buildCounterSpan--; - return o; -} - -checkSpan(api.Span o) { - buildCounterSpan++; - if (buildCounterSpan < 3) { - checkAttributes(o.attributes); - checkTruncatableString(o.displayName); - unittest.expect(o.endTime, unittest.equals('foo')); - checkLinks(o.links); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.parentSpanId, unittest.equals('foo')); - unittest.expect(o.spanId, unittest.equals('foo')); - checkStackTrace(o.stackTrace); - unittest.expect(o.startTime, unittest.equals('foo')); - checkStatus(o.status); - checkTimeEvents(o.timeEvents); - } - buildCounterSpan--; -} - -core.int buildCounterStackFrame = 0; -buildStackFrame() { - var o = new api.StackFrame(); - buildCounterStackFrame++; - if (buildCounterStackFrame < 3) { - o.columnNumber = "foo"; - o.fileName = buildTruncatableString(); - o.functionName = buildTruncatableString(); - o.lineNumber = "foo"; - o.loadModule = buildModule(); - o.originalFunctionName = buildTruncatableString(); - o.sourceVersion = buildTruncatableString(); - } - buildCounterStackFrame--; - return o; -} - -checkStackFrame(api.StackFrame o) { - buildCounterStackFrame++; - if (buildCounterStackFrame < 3) { - unittest.expect(o.columnNumber, unittest.equals('foo')); - checkTruncatableString(o.fileName); - checkTruncatableString(o.functionName); - unittest.expect(o.lineNumber, unittest.equals('foo')); - checkModule(o.loadModule); - checkTruncatableString(o.originalFunctionName); - checkTruncatableString(o.sourceVersion); - } - buildCounterStackFrame--; -} - -buildUnnamed1744() { - var o = new core.List<api.StackFrame>(); - o.add(buildStackFrame()); - o.add(buildStackFrame()); - return o; -} - -checkUnnamed1744(core.List<api.StackFrame> o) { - unittest.expect(o, unittest.hasLength(2)); - checkStackFrame(o[0]); - checkStackFrame(o[1]); -} - -core.int buildCounterStackFrames = 0; -buildStackFrames() { - var o = new api.StackFrames(); - buildCounterStackFrames++; - if (buildCounterStackFrames < 3) { - o.droppedFramesCount = 42; - o.frame = buildUnnamed1744(); - } - buildCounterStackFrames--; - return o; -} - -checkStackFrames(api.StackFrames o) { - buildCounterStackFrames++; - if (buildCounterStackFrames < 3) { - unittest.expect(o.droppedFramesCount, unittest.equals(42)); - checkUnnamed1744(o.frame); - } - buildCounterStackFrames--; -} - -core.int buildCounterStackTrace = 0; -buildStackTrace() { - var o = new api.StackTrace(); - buildCounterStackTrace++; - if (buildCounterStackTrace < 3) { - o.stackFrames = buildStackFrames(); - o.stackTraceHashId = "foo"; - } - buildCounterStackTrace--; - return o; -} - -checkStackTrace(api.StackTrace o) { - buildCounterStackTrace++; - if (buildCounterStackTrace < 3) { - checkStackFrames(o.stackFrames); - unittest.expect(o.stackTraceHashId, unittest.equals('foo')); - } - buildCounterStackTrace--; -} - -buildUnnamed1745() { - 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; -} - -checkUnnamed1745(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')); -} - -buildUnnamed1746() { - var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1745()); - o.add(buildUnnamed1745()); - return o; -} - -checkUnnamed1746(core.List<core.Map<core.String, core.Object>> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1745(o[0]); - checkUnnamed1745(o[1]); -} - -core.int buildCounterStatus = 0; -buildStatus() { - var o = new api.Status(); - buildCounterStatus++; - if (buildCounterStatus < 3) { - o.code = 42; - o.details = buildUnnamed1746(); - o.message = "foo"; - } - buildCounterStatus--; - return o; -} - -checkStatus(api.Status o) { - buildCounterStatus++; - if (buildCounterStatus < 3) { - unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1746(o.details); - unittest.expect(o.message, unittest.equals('foo')); - } - buildCounterStatus--; -} - -core.int buildCounterTimeEvent = 0; -buildTimeEvent() { - var o = new api.TimeEvent(); - buildCounterTimeEvent++; - if (buildCounterTimeEvent < 3) { - o.annotation = buildAnnotation(); - o.networkEvent = buildNetworkEvent(); - o.time = "foo"; - } - buildCounterTimeEvent--; - return o; -} - -checkTimeEvent(api.TimeEvent o) { - buildCounterTimeEvent++; - if (buildCounterTimeEvent < 3) { - checkAnnotation(o.annotation); - checkNetworkEvent(o.networkEvent); - unittest.expect(o.time, unittest.equals('foo')); - } - buildCounterTimeEvent--; -} - -buildUnnamed1747() { - var o = new core.List<api.TimeEvent>(); - o.add(buildTimeEvent()); - o.add(buildTimeEvent()); - return o; -} - -checkUnnamed1747(core.List<api.TimeEvent> o) { - unittest.expect(o, unittest.hasLength(2)); - checkTimeEvent(o[0]); - checkTimeEvent(o[1]); -} - -core.int buildCounterTimeEvents = 0; -buildTimeEvents() { - var o = new api.TimeEvents(); - buildCounterTimeEvents++; - if (buildCounterTimeEvents < 3) { - o.droppedAnnotationsCount = 42; - o.droppedNetworkEventsCount = 42; - o.timeEvent = buildUnnamed1747(); - } - buildCounterTimeEvents--; - return o; -} - -checkTimeEvents(api.TimeEvents o) { - buildCounterTimeEvents++; - if (buildCounterTimeEvents < 3) { - unittest.expect(o.droppedAnnotationsCount, unittest.equals(42)); - unittest.expect(o.droppedNetworkEventsCount, unittest.equals(42)); - checkUnnamed1747(o.timeEvent); - } - buildCounterTimeEvents--; -} - -core.int buildCounterTrace = 0; -buildTrace() { - var o = new api.Trace(); - buildCounterTrace++; - if (buildCounterTrace < 3) { - o.name = "foo"; - } - buildCounterTrace--; - return o; -} - -checkTrace(api.Trace o) { - buildCounterTrace++; - if (buildCounterTrace < 3) { - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterTrace--; -} - -core.int buildCounterTruncatableString = 0; -buildTruncatableString() { - var o = new api.TruncatableString(); - buildCounterTruncatableString++; - if (buildCounterTruncatableString < 3) { - o.truncatedCharacterCount = 42; - o.value = "foo"; - } - buildCounterTruncatableString--; - return o; -} - -checkTruncatableString(api.TruncatableString o) { - buildCounterTruncatableString++; - if (buildCounterTruncatableString < 3) { - unittest.expect(o.truncatedCharacterCount, unittest.equals(42)); - unittest.expect(o.value, unittest.equals('foo')); - } - buildCounterTruncatableString--; -} - - -main() { - unittest.group("obj-schema-Annotation", () { - unittest.test("to-json--from-json", () { - var o = buildAnnotation(); - var od = new api.Annotation.fromJson(o.toJson()); - checkAnnotation(od); - }); - }); - - - unittest.group("obj-schema-AttributeValue", () { - unittest.test("to-json--from-json", () { - var o = buildAttributeValue(); - var od = new api.AttributeValue.fromJson(o.toJson()); - checkAttributeValue(od); - }); - }); - - - unittest.group("obj-schema-Attributes", () { - unittest.test("to-json--from-json", () { - var o = buildAttributes(); - var od = new api.Attributes.fromJson(o.toJson()); - checkAttributes(od); - }); - }); - - - unittest.group("obj-schema-BatchWriteSpansRequest", () { - unittest.test("to-json--from-json", () { - var o = buildBatchWriteSpansRequest(); - var od = new api.BatchWriteSpansRequest.fromJson(o.toJson()); - checkBatchWriteSpansRequest(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-Link", () { - unittest.test("to-json--from-json", () { - var o = buildLink(); - var od = new api.Link.fromJson(o.toJson()); - checkLink(od); - }); - }); - - - unittest.group("obj-schema-Links", () { - unittest.test("to-json--from-json", () { - var o = buildLinks(); - var od = new api.Links.fromJson(o.toJson()); - checkLinks(od); - }); - }); - - - unittest.group("obj-schema-ListSpansResponse", () { - unittest.test("to-json--from-json", () { - var o = buildListSpansResponse(); - var od = new api.ListSpansResponse.fromJson(o.toJson()); - checkListSpansResponse(od); - }); - }); - - - unittest.group("obj-schema-ListTracesResponse", () { - unittest.test("to-json--from-json", () { - var o = buildListTracesResponse(); - var od = new api.ListTracesResponse.fromJson(o.toJson()); - checkListTracesResponse(od); - }); - }); - - - unittest.group("obj-schema-Module", () { - unittest.test("to-json--from-json", () { - var o = buildModule(); - var od = new api.Module.fromJson(o.toJson()); - checkModule(od); - }); - }); - - - unittest.group("obj-schema-NetworkEvent", () { - unittest.test("to-json--from-json", () { - var o = buildNetworkEvent(); - var od = new api.NetworkEvent.fromJson(o.toJson()); - checkNetworkEvent(od); - }); - }); - - - unittest.group("obj-schema-Span", () { - unittest.test("to-json--from-json", () { - var o = buildSpan(); - var od = new api.Span.fromJson(o.toJson()); - checkSpan(od); - }); - }); - - - unittest.group("obj-schema-StackFrame", () { - unittest.test("to-json--from-json", () { - var o = buildStackFrame(); - var od = new api.StackFrame.fromJson(o.toJson()); - checkStackFrame(od); - }); - }); - - - unittest.group("obj-schema-StackFrames", () { - unittest.test("to-json--from-json", () { - var o = buildStackFrames(); - var od = new api.StackFrames.fromJson(o.toJson()); - checkStackFrames(od); - }); - }); - - - unittest.group("obj-schema-StackTrace", () { - unittest.test("to-json--from-json", () { - var o = buildStackTrace(); - var od = new api.StackTrace.fromJson(o.toJson()); - checkStackTrace(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-TimeEvent", () { - unittest.test("to-json--from-json", () { - var o = buildTimeEvent(); - var od = new api.TimeEvent.fromJson(o.toJson()); - checkTimeEvent(od); - }); - }); - - - unittest.group("obj-schema-TimeEvents", () { - unittest.test("to-json--from-json", () { - var o = buildTimeEvents(); - var od = new api.TimeEvents.fromJson(o.toJson()); - checkTimeEvents(od); - }); - }); - - - unittest.group("obj-schema-Trace", () { - unittest.test("to-json--from-json", () { - var o = buildTrace(); - var od = new api.Trace.fromJson(o.toJson()); - checkTrace(od); - }); - }); - - - unittest.group("obj-schema-TruncatableString", () { - unittest.test("to-json--from-json", () { - var o = buildTruncatableString(); - var od = new api.TruncatableString.fromJson(o.toJson()); - checkTruncatableString(od); - }); - }); - - - unittest.group("resource-ProjectsTracesResourceApi", () { - unittest.test("method--batchWrite", () { - - var mock = new HttpServerMock(); - api.ProjectsTracesResourceApi res = new api.TracingApi(mock).projects.traces; - var arg_request = buildBatchWriteSpansRequest(); - var arg_name = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.BatchWriteSpansRequest.fromJson(json); - checkBatchWriteSpansRequest(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildEmpty()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.batchWrite(arg_request, arg_name).then(unittest.expectAsync1(((api.Empty response) { - checkEmpty(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.ProjectsTracesResourceApi res = new api.TracingApi(mock).projects.traces; - var arg_parent = "foo"; - var arg_orderBy = "foo"; - var arg_filter = "foo"; - var arg_endTime = "foo"; - var arg_pageToken = "foo"; - var arg_startTime = "foo"; - var arg_pageSize = 42; - 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("v2/")); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTime)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildListTracesResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_parent, orderBy: arg_orderBy, filter: arg_filter, endTime: arg_endTime, pageToken: arg_pageToken, startTime: arg_startTime, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListTracesResponse response) { - checkListTracesResponse(response); - }))); - }); - - unittest.test("method--listSpans", () { - - var mock = new HttpServerMock(); - api.ProjectsTracesResourceApi res = new api.TracingApi(mock).projects.traces; - var arg_parent = "foo"; - var arg_pageToken = "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("v2/")); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildListSpansResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.listSpans(arg_parent, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListSpansResponse response) { - checkListSpansResponse(response); - }))); - }); - - }); - - - unittest.group("resource-ProjectsTracesSpansResourceApi", () { - unittest.test("method--create", () { - - var mock = new HttpServerMock(); - api.ProjectsTracesSpansResourceApi res = new api.TracingApi(mock).projects.traces.spans; - var arg_request = buildSpan(); - var arg_name = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.Span.fromJson(json); - checkSpan(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSpan()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.create(arg_request, arg_name).then(unittest.expectAsync1(((api.Span response) { - checkSpan(response); - }))); - }); - - }); - - -} -
diff --git a/generated/googleapis/test/urlshortener/v1_test.dart b/generated/googleapis/test/urlshortener/v1_test.dart index bd1b28b..dc1f383 100644 --- a/generated/googleapis/test/urlshortener/v1_test.dart +++ b/generated/googleapis/test/urlshortener/v1_test.dart
@@ -51,53 +51,53 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed794() { +buildUnnamed769() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed794(core.List<api.StringCount> o) { +checkUnnamed769(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); } -buildUnnamed795() { +buildUnnamed770() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed795(core.List<api.StringCount> o) { +checkUnnamed770(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); } -buildUnnamed796() { +buildUnnamed771() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed796(core.List<api.StringCount> o) { +checkUnnamed771(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); } -buildUnnamed797() { +buildUnnamed772() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed797(core.List<api.StringCount> o) { +checkUnnamed772(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); @@ -108,11 +108,11 @@ var o = new api.AnalyticsSnapshot(); buildCounterAnalyticsSnapshot++; if (buildCounterAnalyticsSnapshot < 3) { - o.browsers = buildUnnamed794(); - o.countries = buildUnnamed795(); + o.browsers = buildUnnamed769(); + o.countries = buildUnnamed770(); o.longUrlClicks = "foo"; - o.platforms = buildUnnamed796(); - o.referrers = buildUnnamed797(); + o.platforms = buildUnnamed771(); + o.referrers = buildUnnamed772(); o.shortUrlClicks = "foo"; } buildCounterAnalyticsSnapshot--; @@ -122,11 +122,11 @@ checkAnalyticsSnapshot(api.AnalyticsSnapshot o) { buildCounterAnalyticsSnapshot++; if (buildCounterAnalyticsSnapshot < 3) { - checkUnnamed794(o.browsers); - checkUnnamed795(o.countries); + checkUnnamed769(o.browsers); + checkUnnamed770(o.countries); unittest.expect(o.longUrlClicks, unittest.equals('foo')); - checkUnnamed796(o.platforms); - checkUnnamed797(o.referrers); + checkUnnamed771(o.platforms); + checkUnnamed772(o.referrers); unittest.expect(o.shortUrlClicks, unittest.equals('foo')); } buildCounterAnalyticsSnapshot--; @@ -209,14 +209,14 @@ buildCounterUrl--; } -buildUnnamed798() { +buildUnnamed773() { var o = new core.List<api.Url>(); o.add(buildUrl()); o.add(buildUrl()); return o; } -checkUnnamed798(core.List<api.Url> o) { +checkUnnamed773(core.List<api.Url> o) { unittest.expect(o, unittest.hasLength(2)); checkUrl(o[0]); checkUrl(o[1]); @@ -227,7 +227,7 @@ var o = new api.UrlHistory(); buildCounterUrlHistory++; if (buildCounterUrlHistory < 3) { - o.items = buildUnnamed798(); + o.items = buildUnnamed773(); o.itemsPerPage = 42; o.kind = "foo"; o.nextPageToken = "foo"; @@ -240,7 +240,7 @@ checkUrlHistory(api.UrlHistory o) { buildCounterUrlHistory++; if (buildCounterUrlHistory < 3) { - checkUnnamed798(o.items); + checkUnnamed773(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 new file mode 100644 index 0000000..6dfcc62 --- /dev/null +++ b/generated/googleapis/test/vault/v1_test.dart
@@ -0,0 +1,1714 @@ +library googleapis.vault.v1.test; + +import "dart:core" as core; +import "dart:collection" as collection; +import "dart:async" as async; +import "dart:convert" as convert; + +import 'package:http/http.dart' as http; +import 'package:http/testing.dart' as http_testing; +import 'package:test/test.dart' as unittest; + +import 'package:googleapis/vault/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); +} + +core.int buildCounterAddMatterPermissionsRequest = 0; +buildAddMatterPermissionsRequest() { + var o = new api.AddMatterPermissionsRequest(); + buildCounterAddMatterPermissionsRequest++; + if (buildCounterAddMatterPermissionsRequest < 3) { + o.ccMe = true; + o.matterPermission = buildMatterPermission(); + o.sendEmails = true; + } + buildCounterAddMatterPermissionsRequest--; + return o; +} + +checkAddMatterPermissionsRequest(api.AddMatterPermissionsRequest o) { + buildCounterAddMatterPermissionsRequest++; + if (buildCounterAddMatterPermissionsRequest < 3) { + unittest.expect(o.ccMe, unittest.isTrue); + checkMatterPermission(o.matterPermission); + unittest.expect(o.sendEmails, unittest.isTrue); + } + buildCounterAddMatterPermissionsRequest--; +} + +core.int buildCounterCloseMatterRequest = 0; +buildCloseMatterRequest() { + var o = new api.CloseMatterRequest(); + buildCounterCloseMatterRequest++; + if (buildCounterCloseMatterRequest < 3) { + } + buildCounterCloseMatterRequest--; + return o; +} + +checkCloseMatterRequest(api.CloseMatterRequest o) { + buildCounterCloseMatterRequest++; + if (buildCounterCloseMatterRequest < 3) { + } + buildCounterCloseMatterRequest--; +} + +core.int buildCounterCloseMatterResponse = 0; +buildCloseMatterResponse() { + var o = new api.CloseMatterResponse(); + buildCounterCloseMatterResponse++; + if (buildCounterCloseMatterResponse < 3) { + o.matter = buildMatter(); + } + buildCounterCloseMatterResponse--; + return o; +} + +checkCloseMatterResponse(api.CloseMatterResponse o) { + buildCounterCloseMatterResponse++; + if (buildCounterCloseMatterResponse < 3) { + checkMatter(o.matter); + } + buildCounterCloseMatterResponse--; +} + +core.int buildCounterCorpusQuery = 0; +buildCorpusQuery() { + var o = new api.CorpusQuery(); + buildCounterCorpusQuery++; + if (buildCounterCorpusQuery < 3) { + o.driveQuery = buildHeldDriveQuery(); + o.groupsQuery = buildHeldGroupsQuery(); + o.mailQuery = buildHeldMailQuery(); + } + buildCounterCorpusQuery--; + return o; +} + +checkCorpusQuery(api.CorpusQuery o) { + buildCounterCorpusQuery++; + if (buildCounterCorpusQuery < 3) { + checkHeldDriveQuery(o.driveQuery); + checkHeldGroupsQuery(o.groupsQuery); + checkHeldMailQuery(o.mailQuery); + } + buildCounterCorpusQuery--; +} + +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 buildCounterHeldAccount = 0; +buildHeldAccount() { + var o = new api.HeldAccount(); + buildCounterHeldAccount++; + if (buildCounterHeldAccount < 3) { + o.accountId = "foo"; + o.holdTime = "foo"; + } + buildCounterHeldAccount--; + return o; +} + +checkHeldAccount(api.HeldAccount o) { + buildCounterHeldAccount++; + if (buildCounterHeldAccount < 3) { + unittest.expect(o.accountId, unittest.equals('foo')); + unittest.expect(o.holdTime, unittest.equals('foo')); + } + buildCounterHeldAccount--; +} + +core.int buildCounterHeldDriveQuery = 0; +buildHeldDriveQuery() { + var o = new api.HeldDriveQuery(); + buildCounterHeldDriveQuery++; + if (buildCounterHeldDriveQuery < 3) { + o.includeTeamDriveFiles = true; + } + buildCounterHeldDriveQuery--; + return o; +} + +checkHeldDriveQuery(api.HeldDriveQuery o) { + buildCounterHeldDriveQuery++; + if (buildCounterHeldDriveQuery < 3) { + unittest.expect(o.includeTeamDriveFiles, unittest.isTrue); + } + buildCounterHeldDriveQuery--; +} + +core.int buildCounterHeldGroupsQuery = 0; +buildHeldGroupsQuery() { + var o = new api.HeldGroupsQuery(); + buildCounterHeldGroupsQuery++; + if (buildCounterHeldGroupsQuery < 3) { + o.endTime = "foo"; + o.startTime = "foo"; + o.terms = "foo"; + } + buildCounterHeldGroupsQuery--; + return o; +} + +checkHeldGroupsQuery(api.HeldGroupsQuery o) { + buildCounterHeldGroupsQuery++; + if (buildCounterHeldGroupsQuery < 3) { + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.startTime, unittest.equals('foo')); + unittest.expect(o.terms, unittest.equals('foo')); + } + buildCounterHeldGroupsQuery--; +} + +core.int buildCounterHeldMailQuery = 0; +buildHeldMailQuery() { + var o = new api.HeldMailQuery(); + buildCounterHeldMailQuery++; + if (buildCounterHeldMailQuery < 3) { + o.endTime = "foo"; + o.startTime = "foo"; + o.terms = "foo"; + } + buildCounterHeldMailQuery--; + return o; +} + +checkHeldMailQuery(api.HeldMailQuery o) { + buildCounterHeldMailQuery++; + if (buildCounterHeldMailQuery < 3) { + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.startTime, unittest.equals('foo')); + unittest.expect(o.terms, unittest.equals('foo')); + } + buildCounterHeldMailQuery--; +} + +core.int buildCounterHeldOrgUnit = 0; +buildHeldOrgUnit() { + var o = new api.HeldOrgUnit(); + buildCounterHeldOrgUnit++; + if (buildCounterHeldOrgUnit < 3) { + o.holdTime = "foo"; + o.orgUnitId = "foo"; + } + buildCounterHeldOrgUnit--; + return o; +} + +checkHeldOrgUnit(api.HeldOrgUnit o) { + buildCounterHeldOrgUnit++; + if (buildCounterHeldOrgUnit < 3) { + unittest.expect(o.holdTime, unittest.equals('foo')); + unittest.expect(o.orgUnitId, unittest.equals('foo')); + } + buildCounterHeldOrgUnit--; +} + +buildUnnamed1620() { + var o = new core.List<api.HeldAccount>(); + o.add(buildHeldAccount()); + o.add(buildHeldAccount()); + return o; +} + +checkUnnamed1620(core.List<api.HeldAccount> o) { + unittest.expect(o, unittest.hasLength(2)); + checkHeldAccount(o[0]); + checkHeldAccount(o[1]); +} + +core.int buildCounterHold = 0; +buildHold() { + var o = new api.Hold(); + buildCounterHold++; + if (buildCounterHold < 3) { + o.accounts = buildUnnamed1620(); + o.corpus = "foo"; + o.holdId = "foo"; + o.name = "foo"; + o.orgUnit = buildHeldOrgUnit(); + o.query = buildCorpusQuery(); + o.updateTime = "foo"; + } + buildCounterHold--; + return o; +} + +checkHold(api.Hold o) { + buildCounterHold++; + if (buildCounterHold < 3) { + checkUnnamed1620(o.accounts); + unittest.expect(o.corpus, unittest.equals('foo')); + unittest.expect(o.holdId, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + checkHeldOrgUnit(o.orgUnit); + checkCorpusQuery(o.query); + unittest.expect(o.updateTime, unittest.equals('foo')); + } + buildCounterHold--; +} + +buildUnnamed1621() { + var o = new core.List<api.HeldAccount>(); + o.add(buildHeldAccount()); + o.add(buildHeldAccount()); + return o; +} + +checkUnnamed1621(core.List<api.HeldAccount> o) { + unittest.expect(o, unittest.hasLength(2)); + checkHeldAccount(o[0]); + checkHeldAccount(o[1]); +} + +core.int buildCounterListHeldAccountsResponse = 0; +buildListHeldAccountsResponse() { + var o = new api.ListHeldAccountsResponse(); + buildCounterListHeldAccountsResponse++; + if (buildCounterListHeldAccountsResponse < 3) { + o.accounts = buildUnnamed1621(); + } + buildCounterListHeldAccountsResponse--; + return o; +} + +checkListHeldAccountsResponse(api.ListHeldAccountsResponse o) { + buildCounterListHeldAccountsResponse++; + if (buildCounterListHeldAccountsResponse < 3) { + checkUnnamed1621(o.accounts); + } + buildCounterListHeldAccountsResponse--; +} + +buildUnnamed1622() { + var o = new core.List<api.Hold>(); + o.add(buildHold()); + o.add(buildHold()); + return o; +} + +checkUnnamed1622(core.List<api.Hold> o) { + unittest.expect(o, unittest.hasLength(2)); + checkHold(o[0]); + checkHold(o[1]); +} + +core.int buildCounterListHoldsResponse = 0; +buildListHoldsResponse() { + var o = new api.ListHoldsResponse(); + buildCounterListHoldsResponse++; + if (buildCounterListHoldsResponse < 3) { + o.holds = buildUnnamed1622(); + o.nextPageToken = "foo"; + } + buildCounterListHoldsResponse--; + return o; +} + +checkListHoldsResponse(api.ListHoldsResponse o) { + buildCounterListHoldsResponse++; + if (buildCounterListHoldsResponse < 3) { + checkUnnamed1622(o.holds); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListHoldsResponse--; +} + +buildUnnamed1623() { + var o = new core.List<api.Matter>(); + o.add(buildMatter()); + o.add(buildMatter()); + return o; +} + +checkUnnamed1623(core.List<api.Matter> o) { + unittest.expect(o, unittest.hasLength(2)); + checkMatter(o[0]); + checkMatter(o[1]); +} + +core.int buildCounterListMattersResponse = 0; +buildListMattersResponse() { + var o = new api.ListMattersResponse(); + buildCounterListMattersResponse++; + if (buildCounterListMattersResponse < 3) { + o.matters = buildUnnamed1623(); + o.nextPageToken = "foo"; + } + buildCounterListMattersResponse--; + return o; +} + +checkListMattersResponse(api.ListMattersResponse o) { + buildCounterListMattersResponse++; + if (buildCounterListMattersResponse < 3) { + checkUnnamed1623(o.matters); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListMattersResponse--; +} + +buildUnnamed1624() { + var o = new core.List<api.MatterPermission>(); + o.add(buildMatterPermission()); + o.add(buildMatterPermission()); + return o; +} + +checkUnnamed1624(core.List<api.MatterPermission> o) { + unittest.expect(o, unittest.hasLength(2)); + checkMatterPermission(o[0]); + checkMatterPermission(o[1]); +} + +core.int buildCounterMatter = 0; +buildMatter() { + var o = new api.Matter(); + buildCounterMatter++; + if (buildCounterMatter < 3) { + o.description = "foo"; + o.matterId = "foo"; + o.matterPermissions = buildUnnamed1624(); + o.name = "foo"; + o.state = "foo"; + } + buildCounterMatter--; + return o; +} + +checkMatter(api.Matter o) { + buildCounterMatter++; + if (buildCounterMatter < 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.matterId, unittest.equals('foo')); + checkUnnamed1624(o.matterPermissions); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.state, unittest.equals('foo')); + } + buildCounterMatter--; +} + +core.int buildCounterMatterPermission = 0; +buildMatterPermission() { + var o = new api.MatterPermission(); + buildCounterMatterPermission++; + if (buildCounterMatterPermission < 3) { + o.accountId = "foo"; + o.role = "foo"; + } + buildCounterMatterPermission--; + return o; +} + +checkMatterPermission(api.MatterPermission o) { + buildCounterMatterPermission++; + if (buildCounterMatterPermission < 3) { + unittest.expect(o.accountId, unittest.equals('foo')); + unittest.expect(o.role, unittest.equals('foo')); + } + buildCounterMatterPermission--; +} + +core.int buildCounterRemoveMatterPermissionsRequest = 0; +buildRemoveMatterPermissionsRequest() { + var o = new api.RemoveMatterPermissionsRequest(); + buildCounterRemoveMatterPermissionsRequest++; + if (buildCounterRemoveMatterPermissionsRequest < 3) { + o.accountId = "foo"; + } + buildCounterRemoveMatterPermissionsRequest--; + return o; +} + +checkRemoveMatterPermissionsRequest(api.RemoveMatterPermissionsRequest o) { + buildCounterRemoveMatterPermissionsRequest++; + if (buildCounterRemoveMatterPermissionsRequest < 3) { + unittest.expect(o.accountId, unittest.equals('foo')); + } + buildCounterRemoveMatterPermissionsRequest--; +} + +core.int buildCounterReopenMatterRequest = 0; +buildReopenMatterRequest() { + var o = new api.ReopenMatterRequest(); + buildCounterReopenMatterRequest++; + if (buildCounterReopenMatterRequest < 3) { + } + buildCounterReopenMatterRequest--; + return o; +} + +checkReopenMatterRequest(api.ReopenMatterRequest o) { + buildCounterReopenMatterRequest++; + if (buildCounterReopenMatterRequest < 3) { + } + buildCounterReopenMatterRequest--; +} + +core.int buildCounterReopenMatterResponse = 0; +buildReopenMatterResponse() { + var o = new api.ReopenMatterResponse(); + buildCounterReopenMatterResponse++; + if (buildCounterReopenMatterResponse < 3) { + o.matter = buildMatter(); + } + buildCounterReopenMatterResponse--; + return o; +} + +checkReopenMatterResponse(api.ReopenMatterResponse o) { + buildCounterReopenMatterResponse++; + if (buildCounterReopenMatterResponse < 3) { + checkMatter(o.matter); + } + buildCounterReopenMatterResponse--; +} + +core.int buildCounterUndeleteMatterRequest = 0; +buildUndeleteMatterRequest() { + var o = new api.UndeleteMatterRequest(); + buildCounterUndeleteMatterRequest++; + if (buildCounterUndeleteMatterRequest < 3) { + } + buildCounterUndeleteMatterRequest--; + return o; +} + +checkUndeleteMatterRequest(api.UndeleteMatterRequest o) { + buildCounterUndeleteMatterRequest++; + if (buildCounterUndeleteMatterRequest < 3) { + } + buildCounterUndeleteMatterRequest--; +} + + +main() { + unittest.group("obj-schema-AddMatterPermissionsRequest", () { + unittest.test("to-json--from-json", () { + var o = buildAddMatterPermissionsRequest(); + var od = new api.AddMatterPermissionsRequest.fromJson(o.toJson()); + checkAddMatterPermissionsRequest(od); + }); + }); + + + unittest.group("obj-schema-CloseMatterRequest", () { + unittest.test("to-json--from-json", () { + var o = buildCloseMatterRequest(); + var od = new api.CloseMatterRequest.fromJson(o.toJson()); + checkCloseMatterRequest(od); + }); + }); + + + unittest.group("obj-schema-CloseMatterResponse", () { + unittest.test("to-json--from-json", () { + var o = buildCloseMatterResponse(); + var od = new api.CloseMatterResponse.fromJson(o.toJson()); + checkCloseMatterResponse(od); + }); + }); + + + unittest.group("obj-schema-CorpusQuery", () { + unittest.test("to-json--from-json", () { + var o = buildCorpusQuery(); + var od = new api.CorpusQuery.fromJson(o.toJson()); + checkCorpusQuery(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-HeldAccount", () { + unittest.test("to-json--from-json", () { + var o = buildHeldAccount(); + var od = new api.HeldAccount.fromJson(o.toJson()); + checkHeldAccount(od); + }); + }); + + + unittest.group("obj-schema-HeldDriveQuery", () { + unittest.test("to-json--from-json", () { + var o = buildHeldDriveQuery(); + var od = new api.HeldDriveQuery.fromJson(o.toJson()); + checkHeldDriveQuery(od); + }); + }); + + + unittest.group("obj-schema-HeldGroupsQuery", () { + unittest.test("to-json--from-json", () { + var o = buildHeldGroupsQuery(); + var od = new api.HeldGroupsQuery.fromJson(o.toJson()); + checkHeldGroupsQuery(od); + }); + }); + + + unittest.group("obj-schema-HeldMailQuery", () { + unittest.test("to-json--from-json", () { + var o = buildHeldMailQuery(); + var od = new api.HeldMailQuery.fromJson(o.toJson()); + checkHeldMailQuery(od); + }); + }); + + + unittest.group("obj-schema-HeldOrgUnit", () { + unittest.test("to-json--from-json", () { + var o = buildHeldOrgUnit(); + var od = new api.HeldOrgUnit.fromJson(o.toJson()); + checkHeldOrgUnit(od); + }); + }); + + + unittest.group("obj-schema-Hold", () { + unittest.test("to-json--from-json", () { + var o = buildHold(); + var od = new api.Hold.fromJson(o.toJson()); + checkHold(od); + }); + }); + + + unittest.group("obj-schema-ListHeldAccountsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListHeldAccountsResponse(); + var od = new api.ListHeldAccountsResponse.fromJson(o.toJson()); + checkListHeldAccountsResponse(od); + }); + }); + + + unittest.group("obj-schema-ListHoldsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListHoldsResponse(); + var od = new api.ListHoldsResponse.fromJson(o.toJson()); + checkListHoldsResponse(od); + }); + }); + + + unittest.group("obj-schema-ListMattersResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListMattersResponse(); + var od = new api.ListMattersResponse.fromJson(o.toJson()); + checkListMattersResponse(od); + }); + }); + + + unittest.group("obj-schema-Matter", () { + unittest.test("to-json--from-json", () { + var o = buildMatter(); + var od = new api.Matter.fromJson(o.toJson()); + checkMatter(od); + }); + }); + + + unittest.group("obj-schema-MatterPermission", () { + unittest.test("to-json--from-json", () { + var o = buildMatterPermission(); + var od = new api.MatterPermission.fromJson(o.toJson()); + checkMatterPermission(od); + }); + }); + + + unittest.group("obj-schema-RemoveMatterPermissionsRequest", () { + unittest.test("to-json--from-json", () { + var o = buildRemoveMatterPermissionsRequest(); + var od = new api.RemoveMatterPermissionsRequest.fromJson(o.toJson()); + checkRemoveMatterPermissionsRequest(od); + }); + }); + + + unittest.group("obj-schema-ReopenMatterRequest", () { + unittest.test("to-json--from-json", () { + var o = buildReopenMatterRequest(); + var od = new api.ReopenMatterRequest.fromJson(o.toJson()); + checkReopenMatterRequest(od); + }); + }); + + + unittest.group("obj-schema-ReopenMatterResponse", () { + unittest.test("to-json--from-json", () { + var o = buildReopenMatterResponse(); + var od = new api.ReopenMatterResponse.fromJson(o.toJson()); + checkReopenMatterResponse(od); + }); + }); + + + unittest.group("obj-schema-UndeleteMatterRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUndeleteMatterRequest(); + var od = new api.UndeleteMatterRequest.fromJson(o.toJson()); + checkUndeleteMatterRequest(od); + }); + }); + + + unittest.group("resource-MattersResourceApi", () { + unittest.test("method--addPermissions", () { + + var mock = new HttpServerMock(); + api.MattersResourceApi res = new api.VaultApi(mock).matters; + var arg_request = buildAddMatterPermissionsRequest(); + var arg_matterId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.AddMatterPermissionsRequest.fromJson(json); + checkAddMatterPermissionsRequest(obj); + + var path = (req.url).path; + 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/matters/")); + pathOffset += 11; + index = path.indexOf(":addPermissions", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_matterId")); + unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals(":addPermissions")); + pathOffset += 15; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildMatterPermission()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.addPermissions(arg_request, arg_matterId).then(unittest.expectAsync1(((api.MatterPermission response) { + checkMatterPermission(response); + }))); + }); + + unittest.test("method--close", () { + + var mock = new HttpServerMock(); + api.MattersResourceApi res = new api.VaultApi(mock).matters; + var arg_request = buildCloseMatterRequest(); + var arg_matterId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.CloseMatterRequest.fromJson(json); + checkCloseMatterRequest(obj); + + var path = (req.url).path; + 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/matters/")); + pathOffset += 11; + index = path.indexOf(":close", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_matterId")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals(":close")); + pathOffset += 6; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildCloseMatterResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.close(arg_request, arg_matterId).then(unittest.expectAsync1(((api.CloseMatterResponse response) { + checkCloseMatterResponse(response); + }))); + }); + + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.MattersResourceApi res = new api.VaultApi(mock).matters; + var arg_request = buildMatter(); + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.Matter.fromJson(json); + checkMatter(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("v1/matters")); + pathOffset += 10; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildMatter()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request).then(unittest.expectAsync1(((api.Matter response) { + checkMatter(response); + }))); + }); + + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.MattersResourceApi res = new api.VaultApi(mock).matters; + var arg_matterId = "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/matters/")); + pathOffset += 11; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_matterId")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildMatter()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_matterId).then(unittest.expectAsync1(((api.Matter response) { + checkMatter(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.MattersResourceApi res = new api.VaultApi(mock).matters; + var arg_matterId = "foo"; + var arg_view = "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/matters/")); + pathOffset += 11; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_matterId")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildMatter()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_matterId, view: arg_view).then(unittest.expectAsync1(((api.Matter response) { + checkMatter(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.MattersResourceApi res = new api.VaultApi(mock).matters; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + var arg_view = "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 + 10), unittest.equals("v1/matters")); + pathOffset += 10; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["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)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListMattersResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view).then(unittest.expectAsync1(((api.ListMattersResponse response) { + checkListMattersResponse(response); + }))); + }); + + unittest.test("method--removePermissions", () { + + var mock = new HttpServerMock(); + api.MattersResourceApi res = new api.VaultApi(mock).matters; + var arg_request = buildRemoveMatterPermissionsRequest(); + var arg_matterId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.RemoveMatterPermissionsRequest.fromJson(json); + checkRemoveMatterPermissionsRequest(obj); + + var path = (req.url).path; + 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/matters/")); + pathOffset += 11; + index = path.indexOf(":removePermissions", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_matterId")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals(":removePermissions")); + pathOffset += 18; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.removePermissions(arg_request, arg_matterId).then(unittest.expectAsync1(((api.Empty response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--reopen", () { + + var mock = new HttpServerMock(); + api.MattersResourceApi res = new api.VaultApi(mock).matters; + var arg_request = buildReopenMatterRequest(); + var arg_matterId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.ReopenMatterRequest.fromJson(json); + checkReopenMatterRequest(obj); + + var path = (req.url).path; + 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/matters/")); + pathOffset += 11; + index = path.indexOf(":reopen", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_matterId")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals(":reopen")); + pathOffset += 7; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildReopenMatterResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.reopen(arg_request, arg_matterId).then(unittest.expectAsync1(((api.ReopenMatterResponse response) { + checkReopenMatterResponse(response); + }))); + }); + + unittest.test("method--undelete", () { + + var mock = new HttpServerMock(); + api.MattersResourceApi res = new api.VaultApi(mock).matters; + var arg_request = buildUndeleteMatterRequest(); + var arg_matterId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.UndeleteMatterRequest.fromJson(json); + checkUndeleteMatterRequest(obj); + + var path = (req.url).path; + 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/matters/")); + pathOffset += 11; + index = path.indexOf(":undelete", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_matterId")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals(":undelete")); + pathOffset += 9; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildMatter()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.undelete(arg_request, arg_matterId).then(unittest.expectAsync1(((api.Matter response) { + checkMatter(response); + }))); + }); + + unittest.test("method--update", () { + + var mock = new HttpServerMock(); + api.MattersResourceApi res = new api.VaultApi(mock).matters; + var arg_request = buildMatter(); + var arg_matterId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.Matter.fromJson(json); + checkMatter(obj); + + var path = (req.url).path; + 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/matters/")); + pathOffset += 11; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_matterId")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildMatter()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.update(arg_request, arg_matterId).then(unittest.expectAsync1(((api.Matter response) { + checkMatter(response); + }))); + }); + + }); + + + unittest.group("resource-MattersHoldsResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.MattersHoldsResourceApi res = new api.VaultApi(mock).matters.holds; + var arg_request = buildHold(); + var arg_matterId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.Hold.fromJson(json); + checkHold(obj); + + var path = (req.url).path; + 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/matters/")); + pathOffset += 11; + index = path.indexOf("/holds", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_matterId")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/holds")); + pathOffset += 6; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildHold()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request, arg_matterId).then(unittest.expectAsync1(((api.Hold response) { + checkHold(response); + }))); + }); + + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.MattersHoldsResourceApi res = new api.VaultApi(mock).matters.holds; + var arg_matterId = "foo"; + var arg_holdId = "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/matters/")); + pathOffset += 11; + index = path.indexOf("/holds/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_matterId")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/holds/")); + pathOffset += 7; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_holdId")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_matterId, arg_holdId).then(unittest.expectAsync1(((api.Empty response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.MattersHoldsResourceApi res = new api.VaultApi(mock).matters.holds; + var arg_matterId = "foo"; + var arg_holdId = "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/matters/")); + pathOffset += 11; + index = path.indexOf("/holds/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_matterId")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/holds/")); + pathOffset += 7; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_holdId")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildHold()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_matterId, arg_holdId).then(unittest.expectAsync1(((api.Hold response) { + checkHold(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.MattersHoldsResourceApi res = new api.VaultApi(mock).matters.holds; + var arg_matterId = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + 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/matters/")); + pathOffset += 11; + index = path.indexOf("/holds", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_matterId")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/holds")); + pathOffset += 6; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListHoldsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_matterId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListHoldsResponse response) { + checkListHoldsResponse(response); + }))); + }); + + unittest.test("method--update", () { + + var mock = new HttpServerMock(); + api.MattersHoldsResourceApi res = new api.VaultApi(mock).matters.holds; + var arg_request = buildHold(); + var arg_matterId = "foo"; + var arg_holdId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.Hold.fromJson(json); + checkHold(obj); + + var path = (req.url).path; + 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/matters/")); + pathOffset += 11; + index = path.indexOf("/holds/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_matterId")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/holds/")); + pathOffset += 7; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_holdId")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildHold()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.update(arg_request, arg_matterId, arg_holdId).then(unittest.expectAsync1(((api.Hold response) { + checkHold(response); + }))); + }); + + }); + + + unittest.group("resource-MattersHoldsAccountsResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.MattersHoldsAccountsResourceApi res = new api.VaultApi(mock).matters.holds.accounts; + var arg_request = buildHeldAccount(); + var arg_matterId = "foo"; + var arg_holdId = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.HeldAccount.fromJson(json); + checkHeldAccount(obj); + + var path = (req.url).path; + 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/matters/")); + pathOffset += 11; + index = path.indexOf("/holds/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_matterId")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/holds/")); + pathOffset += 7; + index = path.indexOf("/accounts", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_holdId")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/accounts")); + pathOffset += 9; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildHeldAccount()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request, arg_matterId, arg_holdId).then(unittest.expectAsync1(((api.HeldAccount response) { + checkHeldAccount(response); + }))); + }); + + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.MattersHoldsAccountsResourceApi res = new api.VaultApi(mock).matters.holds.accounts; + var arg_matterId = "foo"; + var arg_holdId = "foo"; + var arg_accountId = "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/matters/")); + pathOffset += 11; + index = path.indexOf("/holds/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_matterId")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/holds/")); + pathOffset += 7; + index = path.indexOf("/accounts/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_holdId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/accounts/")); + pathOffset += 10; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_accountId")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_matterId, arg_holdId, arg_accountId).then(unittest.expectAsync1(((api.Empty response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.MattersHoldsAccountsResourceApi res = new api.VaultApi(mock).matters.holds.accounts; + var arg_matterId = "foo"; + var arg_holdId = "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/matters/")); + pathOffset += 11; + index = path.indexOf("/holds/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_matterId")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/holds/")); + pathOffset += 7; + index = path.indexOf("/accounts", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_holdId")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/accounts")); + pathOffset += 9; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListHeldAccountsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_matterId, arg_holdId).then(unittest.expectAsync1(((api.ListHeldAccountsResponse response) { + checkListHeldAccountsResponse(response); + }))); + }); + + }); + + +} +
diff --git a/generated/googleapis/test/vision/v1_test.dart b/generated/googleapis/test/vision/v1_test.dart index f7f23a7..78cffec 100644 --- a/generated/googleapis/test/vision/v1_test.dart +++ b/generated/googleapis/test/vision/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1311() { +buildUnnamed1289() { var o = new core.List<api.Feature>(); o.add(buildFeature()); o.add(buildFeature()); return o; } -checkUnnamed1311(core.List<api.Feature> o) { +checkUnnamed1289(core.List<api.Feature> o) { unittest.expect(o, unittest.hasLength(2)); checkFeature(o[0]); checkFeature(o[1]); @@ -69,7 +69,7 @@ var o = new api.AnnotateImageRequest(); buildCounterAnnotateImageRequest++; if (buildCounterAnnotateImageRequest < 3) { - o.features = buildUnnamed1311(); + o.features = buildUnnamed1289(); o.image = buildImage(); o.imageContext = buildImageContext(); } @@ -80,73 +80,73 @@ checkAnnotateImageRequest(api.AnnotateImageRequest o) { buildCounterAnnotateImageRequest++; if (buildCounterAnnotateImageRequest < 3) { - checkUnnamed1311(o.features); + checkUnnamed1289(o.features); checkImage(o.image); checkImageContext(o.imageContext); } buildCounterAnnotateImageRequest--; } -buildUnnamed1312() { +buildUnnamed1290() { var o = new core.List<api.FaceAnnotation>(); o.add(buildFaceAnnotation()); o.add(buildFaceAnnotation()); return o; } -checkUnnamed1312(core.List<api.FaceAnnotation> o) { +checkUnnamed1290(core.List<api.FaceAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkFaceAnnotation(o[0]); checkFaceAnnotation(o[1]); } -buildUnnamed1313() { +buildUnnamed1291() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1313(core.List<api.EntityAnnotation> o) { +checkUnnamed1291(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); } -buildUnnamed1314() { +buildUnnamed1292() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1314(core.List<api.EntityAnnotation> o) { +checkUnnamed1292(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); } -buildUnnamed1315() { +buildUnnamed1293() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1315(core.List<api.EntityAnnotation> o) { +checkUnnamed1293(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); } -buildUnnamed1316() { +buildUnnamed1294() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1316(core.List<api.EntityAnnotation> o) { +checkUnnamed1294(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); @@ -159,14 +159,14 @@ if (buildCounterAnnotateImageResponse < 3) { o.cropHintsAnnotation = buildCropHintsAnnotation(); o.error = buildStatus(); - o.faceAnnotations = buildUnnamed1312(); + o.faceAnnotations = buildUnnamed1290(); o.fullTextAnnotation = buildTextAnnotation(); o.imagePropertiesAnnotation = buildImageProperties(); - o.labelAnnotations = buildUnnamed1313(); - o.landmarkAnnotations = buildUnnamed1314(); - o.logoAnnotations = buildUnnamed1315(); + o.labelAnnotations = buildUnnamed1291(); + o.landmarkAnnotations = buildUnnamed1292(); + o.logoAnnotations = buildUnnamed1293(); o.safeSearchAnnotation = buildSafeSearchAnnotation(); - o.textAnnotations = buildUnnamed1316(); + o.textAnnotations = buildUnnamed1294(); o.webDetection = buildWebDetection(); } buildCounterAnnotateImageResponse--; @@ -178,27 +178,27 @@ if (buildCounterAnnotateImageResponse < 3) { checkCropHintsAnnotation(o.cropHintsAnnotation); checkStatus(o.error); - checkUnnamed1312(o.faceAnnotations); + checkUnnamed1290(o.faceAnnotations); checkTextAnnotation(o.fullTextAnnotation); checkImageProperties(o.imagePropertiesAnnotation); - checkUnnamed1313(o.labelAnnotations); - checkUnnamed1314(o.landmarkAnnotations); - checkUnnamed1315(o.logoAnnotations); + checkUnnamed1291(o.labelAnnotations); + checkUnnamed1292(o.landmarkAnnotations); + checkUnnamed1293(o.logoAnnotations); checkSafeSearchAnnotation(o.safeSearchAnnotation); - checkUnnamed1316(o.textAnnotations); + checkUnnamed1294(o.textAnnotations); checkWebDetection(o.webDetection); } buildCounterAnnotateImageResponse--; } -buildUnnamed1317() { +buildUnnamed1295() { var o = new core.List<api.AnnotateImageRequest>(); o.add(buildAnnotateImageRequest()); o.add(buildAnnotateImageRequest()); return o; } -checkUnnamed1317(core.List<api.AnnotateImageRequest> o) { +checkUnnamed1295(core.List<api.AnnotateImageRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotateImageRequest(o[0]); checkAnnotateImageRequest(o[1]); @@ -209,7 +209,7 @@ var o = new api.BatchAnnotateImagesRequest(); buildCounterBatchAnnotateImagesRequest++; if (buildCounterBatchAnnotateImagesRequest < 3) { - o.requests = buildUnnamed1317(); + o.requests = buildUnnamed1295(); } buildCounterBatchAnnotateImagesRequest--; return o; @@ -218,19 +218,19 @@ checkBatchAnnotateImagesRequest(api.BatchAnnotateImagesRequest o) { buildCounterBatchAnnotateImagesRequest++; if (buildCounterBatchAnnotateImagesRequest < 3) { - checkUnnamed1317(o.requests); + checkUnnamed1295(o.requests); } buildCounterBatchAnnotateImagesRequest--; } -buildUnnamed1318() { +buildUnnamed1296() { var o = new core.List<api.AnnotateImageResponse>(); o.add(buildAnnotateImageResponse()); o.add(buildAnnotateImageResponse()); return o; } -checkUnnamed1318(core.List<api.AnnotateImageResponse> o) { +checkUnnamed1296(core.List<api.AnnotateImageResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotateImageResponse(o[0]); checkAnnotateImageResponse(o[1]); @@ -241,7 +241,7 @@ var o = new api.BatchAnnotateImagesResponse(); buildCounterBatchAnnotateImagesResponse++; if (buildCounterBatchAnnotateImagesResponse < 3) { - o.responses = buildUnnamed1318(); + o.responses = buildUnnamed1296(); } buildCounterBatchAnnotateImagesResponse--; return o; @@ -250,19 +250,19 @@ checkBatchAnnotateImagesResponse(api.BatchAnnotateImagesResponse o) { buildCounterBatchAnnotateImagesResponse++; if (buildCounterBatchAnnotateImagesResponse < 3) { - checkUnnamed1318(o.responses); + checkUnnamed1296(o.responses); } buildCounterBatchAnnotateImagesResponse--; } -buildUnnamed1319() { +buildUnnamed1297() { var o = new core.List<api.Paragraph>(); o.add(buildParagraph()); o.add(buildParagraph()); return o; } -checkUnnamed1319(core.List<api.Paragraph> o) { +checkUnnamed1297(core.List<api.Paragraph> o) { unittest.expect(o, unittest.hasLength(2)); checkParagraph(o[0]); checkParagraph(o[1]); @@ -275,7 +275,7 @@ if (buildCounterBlock < 3) { o.blockType = "foo"; o.boundingBox = buildBoundingPoly(); - o.paragraphs = buildUnnamed1319(); + o.paragraphs = buildUnnamed1297(); o.property = buildTextProperty(); } buildCounterBlock--; @@ -287,20 +287,20 @@ if (buildCounterBlock < 3) { unittest.expect(o.blockType, unittest.equals('foo')); checkBoundingPoly(o.boundingBox); - checkUnnamed1319(o.paragraphs); + checkUnnamed1297(o.paragraphs); checkTextProperty(o.property); } buildCounterBlock--; } -buildUnnamed1320() { +buildUnnamed1298() { var o = new core.List<api.Vertex>(); o.add(buildVertex()); o.add(buildVertex()); return o; } -checkUnnamed1320(core.List<api.Vertex> o) { +checkUnnamed1298(core.List<api.Vertex> o) { unittest.expect(o, unittest.hasLength(2)); checkVertex(o[0]); checkVertex(o[1]); @@ -311,7 +311,7 @@ var o = new api.BoundingPoly(); buildCounterBoundingPoly++; if (buildCounterBoundingPoly < 3) { - o.vertices = buildUnnamed1320(); + o.vertices = buildUnnamed1298(); } buildCounterBoundingPoly--; return o; @@ -320,7 +320,7 @@ checkBoundingPoly(api.BoundingPoly o) { buildCounterBoundingPoly++; if (buildCounterBoundingPoly < 3) { - checkUnnamed1320(o.vertices); + checkUnnamed1298(o.vertices); } buildCounterBoundingPoly--; } @@ -396,14 +396,14 @@ buildCounterCropHint--; } -buildUnnamed1321() { +buildUnnamed1299() { var o = new core.List<api.CropHint>(); o.add(buildCropHint()); o.add(buildCropHint()); return o; } -checkUnnamed1321(core.List<api.CropHint> o) { +checkUnnamed1299(core.List<api.CropHint> o) { unittest.expect(o, unittest.hasLength(2)); checkCropHint(o[0]); checkCropHint(o[1]); @@ -414,7 +414,7 @@ var o = new api.CropHintsAnnotation(); buildCounterCropHintsAnnotation++; if (buildCounterCropHintsAnnotation < 3) { - o.cropHints = buildUnnamed1321(); + o.cropHints = buildUnnamed1299(); } buildCounterCropHintsAnnotation--; return o; @@ -423,19 +423,19 @@ checkCropHintsAnnotation(api.CropHintsAnnotation o) { buildCounterCropHintsAnnotation++; if (buildCounterCropHintsAnnotation < 3) { - checkUnnamed1321(o.cropHints); + checkUnnamed1299(o.cropHints); } buildCounterCropHintsAnnotation--; } -buildUnnamed1322() { +buildUnnamed1300() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed1322(core.List<core.double> o) { +checkUnnamed1300(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)); @@ -446,7 +446,7 @@ var o = new api.CropHintsParams(); buildCounterCropHintsParams++; if (buildCounterCropHintsParams < 3) { - o.aspectRatios = buildUnnamed1322(); + o.aspectRatios = buildUnnamed1300(); } buildCounterCropHintsParams--; return o; @@ -455,7 +455,7 @@ checkCropHintsParams(api.CropHintsParams o) { buildCounterCropHintsParams++; if (buildCounterCropHintsParams < 3) { - checkUnnamed1322(o.aspectRatios); + checkUnnamed1300(o.aspectRatios); } buildCounterCropHintsParams--; } @@ -502,14 +502,14 @@ buildCounterDetectedLanguage--; } -buildUnnamed1323() { +buildUnnamed1301() { var o = new core.List<api.ColorInfo>(); o.add(buildColorInfo()); o.add(buildColorInfo()); return o; } -checkUnnamed1323(core.List<api.ColorInfo> o) { +checkUnnamed1301(core.List<api.ColorInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkColorInfo(o[0]); checkColorInfo(o[1]); @@ -520,7 +520,7 @@ var o = new api.DominantColorsAnnotation(); buildCounterDominantColorsAnnotation++; if (buildCounterDominantColorsAnnotation < 3) { - o.colors = buildUnnamed1323(); + o.colors = buildUnnamed1301(); } buildCounterDominantColorsAnnotation--; return o; @@ -529,32 +529,32 @@ checkDominantColorsAnnotation(api.DominantColorsAnnotation o) { buildCounterDominantColorsAnnotation++; if (buildCounterDominantColorsAnnotation < 3) { - checkUnnamed1323(o.colors); + checkUnnamed1301(o.colors); } buildCounterDominantColorsAnnotation--; } -buildUnnamed1324() { +buildUnnamed1302() { var o = new core.List<api.LocationInfo>(); o.add(buildLocationInfo()); o.add(buildLocationInfo()); return o; } -checkUnnamed1324(core.List<api.LocationInfo> o) { +checkUnnamed1302(core.List<api.LocationInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkLocationInfo(o[0]); checkLocationInfo(o[1]); } -buildUnnamed1325() { +buildUnnamed1303() { var o = new core.List<api.Property>(); o.add(buildProperty()); o.add(buildProperty()); return o; } -checkUnnamed1325(core.List<api.Property> o) { +checkUnnamed1303(core.List<api.Property> o) { unittest.expect(o, unittest.hasLength(2)); checkProperty(o[0]); checkProperty(o[1]); @@ -569,9 +569,9 @@ o.confidence = 42.0; o.description = "foo"; o.locale = "foo"; - o.locations = buildUnnamed1324(); + o.locations = buildUnnamed1302(); o.mid = "foo"; - o.properties = buildUnnamed1325(); + o.properties = buildUnnamed1303(); o.score = 42.0; o.topicality = 42.0; } @@ -586,23 +586,23 @@ unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed1324(o.locations); + checkUnnamed1302(o.locations); unittest.expect(o.mid, unittest.equals('foo')); - checkUnnamed1325(o.properties); + checkUnnamed1303(o.properties); unittest.expect(o.score, unittest.equals(42.0)); unittest.expect(o.topicality, unittest.equals(42.0)); } buildCounterEntityAnnotation--; } -buildUnnamed1326() { +buildUnnamed1304() { var o = new core.List<api.Landmark>(); o.add(buildLandmark()); o.add(buildLandmark()); return o; } -checkUnnamed1326(core.List<api.Landmark> o) { +checkUnnamed1304(core.List<api.Landmark> o) { unittest.expect(o, unittest.hasLength(2)); checkLandmark(o[0]); checkLandmark(o[1]); @@ -621,7 +621,7 @@ o.headwearLikelihood = "foo"; o.joyLikelihood = "foo"; o.landmarkingConfidence = 42.0; - o.landmarks = buildUnnamed1326(); + o.landmarks = buildUnnamed1304(); o.panAngle = 42.0; o.rollAngle = 42.0; o.sorrowLikelihood = "foo"; @@ -644,7 +644,7 @@ unittest.expect(o.headwearLikelihood, unittest.equals('foo')); unittest.expect(o.joyLikelihood, unittest.equals('foo')); unittest.expect(o.landmarkingConfidence, unittest.equals(42.0)); - checkUnnamed1326(o.landmarks); + checkUnnamed1304(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')); @@ -697,14 +697,14 @@ buildCounterImage--; } -buildUnnamed1327() { +buildUnnamed1305() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1327(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')); @@ -716,7 +716,7 @@ buildCounterImageContext++; if (buildCounterImageContext < 3) { o.cropHintsParams = buildCropHintsParams(); - o.languageHints = buildUnnamed1327(); + o.languageHints = buildUnnamed1305(); o.latLongRect = buildLatLongRect(); } buildCounterImageContext--; @@ -727,7 +727,7 @@ buildCounterImageContext++; if (buildCounterImageContext < 3) { checkCropHintsParams(o.cropHintsParams); - checkUnnamed1327(o.languageHints); + checkUnnamed1305(o.languageHints); checkLatLongRect(o.latLongRect); } buildCounterImageContext--; @@ -855,14 +855,14 @@ buildCounterLocationInfo--; } -buildUnnamed1328() { +buildUnnamed1306() { var o = new core.List<api.Block>(); o.add(buildBlock()); o.add(buildBlock()); return o; } -checkUnnamed1328(core.List<api.Block> o) { +checkUnnamed1306(core.List<api.Block> o) { unittest.expect(o, unittest.hasLength(2)); checkBlock(o[0]); checkBlock(o[1]); @@ -873,7 +873,7 @@ var o = new api.Page(); buildCounterPage++; if (buildCounterPage < 3) { - o.blocks = buildUnnamed1328(); + o.blocks = buildUnnamed1306(); o.height = 42; o.property = buildTextProperty(); o.width = 42; @@ -885,7 +885,7 @@ checkPage(api.Page o) { buildCounterPage++; if (buildCounterPage < 3) { - checkUnnamed1328(o.blocks); + checkUnnamed1306(o.blocks); unittest.expect(o.height, unittest.equals(42)); checkTextProperty(o.property); unittest.expect(o.width, unittest.equals(42)); @@ -893,14 +893,14 @@ buildCounterPage--; } -buildUnnamed1329() { +buildUnnamed1307() { var o = new core.List<api.Word>(); o.add(buildWord()); o.add(buildWord()); return o; } -checkUnnamed1329(core.List<api.Word> o) { +checkUnnamed1307(core.List<api.Word> o) { unittest.expect(o, unittest.hasLength(2)); checkWord(o[0]); checkWord(o[1]); @@ -913,7 +913,7 @@ if (buildCounterParagraph < 3) { o.boundingBox = buildBoundingPoly(); o.property = buildTextProperty(); - o.words = buildUnnamed1329(); + o.words = buildUnnamed1307(); } buildCounterParagraph--; return o; @@ -924,7 +924,7 @@ if (buildCounterParagraph < 3) { checkBoundingPoly(o.boundingBox); checkTextProperty(o.property); - checkUnnamed1329(o.words); + checkUnnamed1307(o.words); } buildCounterParagraph--; } @@ -1000,30 +1000,30 @@ buildCounterSafeSearchAnnotation--; } -buildUnnamed1330() { +buildUnnamed1308() { 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; } -checkUnnamed1330(core.Map<core.String, core.Object> o) { +checkUnnamed1308(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')); } -buildUnnamed1331() { +buildUnnamed1309() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1330()); - o.add(buildUnnamed1330()); + o.add(buildUnnamed1308()); + o.add(buildUnnamed1308()); return o; } -checkUnnamed1331(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1309(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1330(o[0]); - checkUnnamed1330(o[1]); + checkUnnamed1308(o[0]); + checkUnnamed1308(o[1]); } core.int buildCounterStatus = 0; @@ -1032,7 +1032,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1331(); + o.details = buildUnnamed1309(); o.message = "foo"; } buildCounterStatus--; @@ -1043,7 +1043,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1331(o.details); + checkUnnamed1309(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1072,14 +1072,14 @@ buildCounterSymbol--; } -buildUnnamed1332() { +buildUnnamed1310() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1332(core.List<api.Page> o) { +checkUnnamed1310(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -1090,7 +1090,7 @@ var o = new api.TextAnnotation(); buildCounterTextAnnotation++; if (buildCounterTextAnnotation < 3) { - o.pages = buildUnnamed1332(); + o.pages = buildUnnamed1310(); o.text = "foo"; } buildCounterTextAnnotation--; @@ -1100,20 +1100,20 @@ checkTextAnnotation(api.TextAnnotation o) { buildCounterTextAnnotation++; if (buildCounterTextAnnotation < 3) { - checkUnnamed1332(o.pages); + checkUnnamed1310(o.pages); unittest.expect(o.text, unittest.equals('foo')); } buildCounterTextAnnotation--; } -buildUnnamed1333() { +buildUnnamed1311() { var o = new core.List<api.DetectedLanguage>(); o.add(buildDetectedLanguage()); o.add(buildDetectedLanguage()); return o; } -checkUnnamed1333(core.List<api.DetectedLanguage> o) { +checkUnnamed1311(core.List<api.DetectedLanguage> o) { unittest.expect(o, unittest.hasLength(2)); checkDetectedLanguage(o[0]); checkDetectedLanguage(o[1]); @@ -1125,7 +1125,7 @@ buildCounterTextProperty++; if (buildCounterTextProperty < 3) { o.detectedBreak = buildDetectedBreak(); - o.detectedLanguages = buildUnnamed1333(); + o.detectedLanguages = buildUnnamed1311(); } buildCounterTextProperty--; return o; @@ -1135,7 +1135,7 @@ buildCounterTextProperty++; if (buildCounterTextProperty < 3) { checkDetectedBreak(o.detectedBreak); - checkUnnamed1333(o.detectedLanguages); + checkUnnamed1311(o.detectedLanguages); } buildCounterTextProperty--; } @@ -1161,66 +1161,66 @@ buildCounterVertex--; } -buildUnnamed1334() { +buildUnnamed1312() { var o = new core.List<api.WebImage>(); o.add(buildWebImage()); o.add(buildWebImage()); return o; } -checkUnnamed1334(core.List<api.WebImage> o) { +checkUnnamed1312(core.List<api.WebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkWebImage(o[0]); checkWebImage(o[1]); } -buildUnnamed1335() { +buildUnnamed1313() { var o = new core.List<api.WebPage>(); o.add(buildWebPage()); o.add(buildWebPage()); return o; } -checkUnnamed1335(core.List<api.WebPage> o) { +checkUnnamed1313(core.List<api.WebPage> o) { unittest.expect(o, unittest.hasLength(2)); checkWebPage(o[0]); checkWebPage(o[1]); } -buildUnnamed1336() { +buildUnnamed1314() { var o = new core.List<api.WebImage>(); o.add(buildWebImage()); o.add(buildWebImage()); return o; } -checkUnnamed1336(core.List<api.WebImage> o) { +checkUnnamed1314(core.List<api.WebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkWebImage(o[0]); checkWebImage(o[1]); } -buildUnnamed1337() { +buildUnnamed1315() { var o = new core.List<api.WebImage>(); o.add(buildWebImage()); o.add(buildWebImage()); return o; } -checkUnnamed1337(core.List<api.WebImage> o) { +checkUnnamed1315(core.List<api.WebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkWebImage(o[0]); checkWebImage(o[1]); } -buildUnnamed1338() { +buildUnnamed1316() { var o = new core.List<api.WebEntity>(); o.add(buildWebEntity()); o.add(buildWebEntity()); return o; } -checkUnnamed1338(core.List<api.WebEntity> o) { +checkUnnamed1316(core.List<api.WebEntity> o) { unittest.expect(o, unittest.hasLength(2)); checkWebEntity(o[0]); checkWebEntity(o[1]); @@ -1231,11 +1231,11 @@ var o = new api.WebDetection(); buildCounterWebDetection++; if (buildCounterWebDetection < 3) { - o.fullMatchingImages = buildUnnamed1334(); - o.pagesWithMatchingImages = buildUnnamed1335(); - o.partialMatchingImages = buildUnnamed1336(); - o.visuallySimilarImages = buildUnnamed1337(); - o.webEntities = buildUnnamed1338(); + o.fullMatchingImages = buildUnnamed1312(); + o.pagesWithMatchingImages = buildUnnamed1313(); + o.partialMatchingImages = buildUnnamed1314(); + o.visuallySimilarImages = buildUnnamed1315(); + o.webEntities = buildUnnamed1316(); } buildCounterWebDetection--; return o; @@ -1244,11 +1244,11 @@ checkWebDetection(api.WebDetection o) { buildCounterWebDetection++; if (buildCounterWebDetection < 3) { - checkUnnamed1334(o.fullMatchingImages); - checkUnnamed1335(o.pagesWithMatchingImages); - checkUnnamed1336(o.partialMatchingImages); - checkUnnamed1337(o.visuallySimilarImages); - checkUnnamed1338(o.webEntities); + checkUnnamed1312(o.fullMatchingImages); + checkUnnamed1313(o.pagesWithMatchingImages); + checkUnnamed1314(o.partialMatchingImages); + checkUnnamed1315(o.visuallySimilarImages); + checkUnnamed1316(o.webEntities); } buildCounterWebDetection--; } @@ -1318,14 +1318,14 @@ buildCounterWebPage--; } -buildUnnamed1339() { +buildUnnamed1317() { var o = new core.List<api.Symbol>(); o.add(buildSymbol()); o.add(buildSymbol()); return o; } -checkUnnamed1339(core.List<api.Symbol> o) { +checkUnnamed1317(core.List<api.Symbol> o) { unittest.expect(o, unittest.hasLength(2)); checkSymbol(o[0]); checkSymbol(o[1]); @@ -1338,7 +1338,7 @@ if (buildCounterWord < 3) { o.boundingBox = buildBoundingPoly(); o.property = buildTextProperty(); - o.symbols = buildUnnamed1339(); + o.symbols = buildUnnamed1317(); } buildCounterWord--; return o; @@ -1349,7 +1349,7 @@ if (buildCounterWord < 3) { checkBoundingPoly(o.boundingBox); checkTextProperty(o.property); - checkUnnamed1339(o.symbols); + checkUnnamed1317(o.symbols); } buildCounterWord--; }
diff --git a/generated/googleapis/test/webfonts/v1_test.dart b/generated/googleapis/test/webfonts/v1_test.dart index af39bfb..b451384 100644 --- a/generated/googleapis/test/webfonts/v1_test.dart +++ b/generated/googleapis/test/webfonts/v1_test.dart
@@ -51,40 +51,40 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1641() { +buildUnnamed1673() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1641(core.Map<core.String, core.String> o) { +checkUnnamed1673(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1642() { +buildUnnamed1674() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1642(core.List<core.String> o) { +checkUnnamed1674(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1643() { +buildUnnamed1675() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1643(core.List<core.String> o) { +checkUnnamed1675(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -97,11 +97,11 @@ if (buildCounterWebfont < 3) { o.category = "foo"; o.family = "foo"; - o.files = buildUnnamed1641(); + o.files = buildUnnamed1673(); o.kind = "foo"; o.lastModified = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.subsets = buildUnnamed1642(); - o.variants = buildUnnamed1643(); + o.subsets = buildUnnamed1674(); + o.variants = buildUnnamed1675(); o.version = "foo"; } buildCounterWebfont--; @@ -113,24 +113,24 @@ if (buildCounterWebfont < 3) { unittest.expect(o.category, unittest.equals('foo')); unittest.expect(o.family, unittest.equals('foo')); - checkUnnamed1641(o.files); + checkUnnamed1673(o.files); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastModified, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed1642(o.subsets); - checkUnnamed1643(o.variants); + checkUnnamed1674(o.subsets); + checkUnnamed1675(o.variants); unittest.expect(o.version, unittest.equals('foo')); } buildCounterWebfont--; } -buildUnnamed1644() { +buildUnnamed1676() { var o = new core.List<api.Webfont>(); o.add(buildWebfont()); o.add(buildWebfont()); return o; } -checkUnnamed1644(core.List<api.Webfont> o) { +checkUnnamed1676(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 = buildUnnamed1644(); + o.items = buildUnnamed1676(); o.kind = "foo"; } buildCounterWebfontList--; @@ -151,7 +151,7 @@ checkWebfontList(api.WebfontList o) { buildCounterWebfontList++; if (buildCounterWebfontList < 3) { - checkUnnamed1644(o.items); + checkUnnamed1676(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 7cc648a..d6ad392 100644 --- a/generated/googleapis/test/webmasters/v3_test.dart +++ b/generated/googleapis/test/webmasters/v3_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed686() { +buildUnnamed661() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed686(core.List<core.String> o) { +checkUnnamed661(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -72,7 +72,7 @@ o.clicks = 42.0; o.ctr = 42.0; o.impressions = 42.0; - o.keys = buildUnnamed686(); + o.keys = buildUnnamed661(); o.position = 42.0; } buildCounterApiDataRow--; @@ -85,7 +85,7 @@ unittest.expect(o.clicks, unittest.equals(42.0)); unittest.expect(o.ctr, unittest.equals(42.0)); unittest.expect(o.impressions, unittest.equals(42.0)); - checkUnnamed686(o.keys); + checkUnnamed661(o.keys); unittest.expect(o.position, unittest.equals(42.0)); } buildCounterApiDataRow--; @@ -114,14 +114,14 @@ buildCounterApiDimensionFilter--; } -buildUnnamed687() { +buildUnnamed662() { var o = new core.List<api.ApiDimensionFilter>(); o.add(buildApiDimensionFilter()); o.add(buildApiDimensionFilter()); return o; } -checkUnnamed687(core.List<api.ApiDimensionFilter> o) { +checkUnnamed662(core.List<api.ApiDimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkApiDimensionFilter(o[0]); checkApiDimensionFilter(o[1]); @@ -132,7 +132,7 @@ var o = new api.ApiDimensionFilterGroup(); buildCounterApiDimensionFilterGroup++; if (buildCounterApiDimensionFilterGroup < 3) { - o.filters = buildUnnamed687(); + o.filters = buildUnnamed662(); o.groupType = "foo"; } buildCounterApiDimensionFilterGroup--; @@ -142,33 +142,33 @@ checkApiDimensionFilterGroup(api.ApiDimensionFilterGroup o) { buildCounterApiDimensionFilterGroup++; if (buildCounterApiDimensionFilterGroup < 3) { - checkUnnamed687(o.filters); + checkUnnamed662(o.filters); unittest.expect(o.groupType, unittest.equals('foo')); } buildCounterApiDimensionFilterGroup--; } -buildUnnamed688() { +buildUnnamed663() { var o = new core.List<api.ApiDimensionFilterGroup>(); o.add(buildApiDimensionFilterGroup()); o.add(buildApiDimensionFilterGroup()); return o; } -checkUnnamed688(core.List<api.ApiDimensionFilterGroup> o) { +checkUnnamed663(core.List<api.ApiDimensionFilterGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkApiDimensionFilterGroup(o[0]); checkApiDimensionFilterGroup(o[1]); } -buildUnnamed689() { +buildUnnamed664() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed689(core.List<core.String> o) { +checkUnnamed664(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -180,8 +180,8 @@ buildCounterSearchAnalyticsQueryRequest++; if (buildCounterSearchAnalyticsQueryRequest < 3) { o.aggregationType = "foo"; - o.dimensionFilterGroups = buildUnnamed688(); - o.dimensions = buildUnnamed689(); + o.dimensionFilterGroups = buildUnnamed663(); + o.dimensions = buildUnnamed664(); o.endDate = "foo"; o.rowLimit = 42; o.searchType = "foo"; @@ -196,8 +196,8 @@ buildCounterSearchAnalyticsQueryRequest++; if (buildCounterSearchAnalyticsQueryRequest < 3) { unittest.expect(o.aggregationType, unittest.equals('foo')); - checkUnnamed688(o.dimensionFilterGroups); - checkUnnamed689(o.dimensions); + checkUnnamed663(o.dimensionFilterGroups); + checkUnnamed664(o.dimensions); unittest.expect(o.endDate, unittest.equals('foo')); unittest.expect(o.rowLimit, unittest.equals(42)); unittest.expect(o.searchType, unittest.equals('foo')); @@ -207,14 +207,14 @@ buildCounterSearchAnalyticsQueryRequest--; } -buildUnnamed690() { +buildUnnamed665() { var o = new core.List<api.ApiDataRow>(); o.add(buildApiDataRow()); o.add(buildApiDataRow()); return o; } -checkUnnamed690(core.List<api.ApiDataRow> o) { +checkUnnamed665(core.List<api.ApiDataRow> o) { unittest.expect(o, unittest.hasLength(2)); checkApiDataRow(o[0]); checkApiDataRow(o[1]); @@ -226,7 +226,7 @@ buildCounterSearchAnalyticsQueryResponse++; if (buildCounterSearchAnalyticsQueryResponse < 3) { o.responseAggregationType = "foo"; - o.rows = buildUnnamed690(); + o.rows = buildUnnamed665(); } buildCounterSearchAnalyticsQueryResponse--; return o; @@ -236,19 +236,19 @@ buildCounterSearchAnalyticsQueryResponse++; if (buildCounterSearchAnalyticsQueryResponse < 3) { unittest.expect(o.responseAggregationType, unittest.equals('foo')); - checkUnnamed690(o.rows); + checkUnnamed665(o.rows); } buildCounterSearchAnalyticsQueryResponse--; } -buildUnnamed691() { +buildUnnamed666() { var o = new core.List<api.WmxSitemap>(); o.add(buildWmxSitemap()); o.add(buildWmxSitemap()); return o; } -checkUnnamed691(core.List<api.WmxSitemap> o) { +checkUnnamed666(core.List<api.WmxSitemap> o) { unittest.expect(o, unittest.hasLength(2)); checkWmxSitemap(o[0]); checkWmxSitemap(o[1]); @@ -259,7 +259,7 @@ var o = new api.SitemapsListResponse(); buildCounterSitemapsListResponse++; if (buildCounterSitemapsListResponse < 3) { - o.sitemap = buildUnnamed691(); + o.sitemap = buildUnnamed666(); } buildCounterSitemapsListResponse--; return o; @@ -268,19 +268,19 @@ checkSitemapsListResponse(api.SitemapsListResponse o) { buildCounterSitemapsListResponse++; if (buildCounterSitemapsListResponse < 3) { - checkUnnamed691(o.sitemap); + checkUnnamed666(o.sitemap); } buildCounterSitemapsListResponse--; } -buildUnnamed692() { +buildUnnamed667() { var o = new core.List<api.WmxSite>(); o.add(buildWmxSite()); o.add(buildWmxSite()); return o; } -checkUnnamed692(core.List<api.WmxSite> o) { +checkUnnamed667(core.List<api.WmxSite> o) { unittest.expect(o, unittest.hasLength(2)); checkWmxSite(o[0]); checkWmxSite(o[1]); @@ -291,7 +291,7 @@ var o = new api.SitesListResponse(); buildCounterSitesListResponse++; if (buildCounterSitesListResponse < 3) { - o.siteEntry = buildUnnamed692(); + o.siteEntry = buildUnnamed667(); } buildCounterSitesListResponse--; return o; @@ -300,7 +300,7 @@ checkSitesListResponse(api.SitesListResponse o) { buildCounterSitesListResponse++; if (buildCounterSitesListResponse < 3) { - checkUnnamed692(o.siteEntry); + checkUnnamed667(o.siteEntry); } buildCounterSitesListResponse--; } @@ -326,14 +326,14 @@ buildCounterUrlCrawlErrorCount--; } -buildUnnamed693() { +buildUnnamed668() { var o = new core.List<api.UrlCrawlErrorCount>(); o.add(buildUrlCrawlErrorCount()); o.add(buildUrlCrawlErrorCount()); return o; } -checkUnnamed693(core.List<api.UrlCrawlErrorCount> o) { +checkUnnamed668(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 = buildUnnamed693(); + o.entries = buildUnnamed668(); o.platform = "foo"; } buildCounterUrlCrawlErrorCountsPerType--; @@ -356,20 +356,20 @@ buildCounterUrlCrawlErrorCountsPerType++; if (buildCounterUrlCrawlErrorCountsPerType < 3) { unittest.expect(o.category, unittest.equals('foo')); - checkUnnamed693(o.entries); + checkUnnamed668(o.entries); unittest.expect(o.platform, unittest.equals('foo')); } buildCounterUrlCrawlErrorCountsPerType--; } -buildUnnamed694() { +buildUnnamed669() { var o = new core.List<api.UrlCrawlErrorCountsPerType>(); o.add(buildUrlCrawlErrorCountsPerType()); o.add(buildUrlCrawlErrorCountsPerType()); return o; } -checkUnnamed694(core.List<api.UrlCrawlErrorCountsPerType> o) { +checkUnnamed669(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 = buildUnnamed694(); + o.countPerTypes = buildUnnamed669(); } buildCounterUrlCrawlErrorsCountsQueryResponse--; return o; @@ -389,7 +389,7 @@ checkUrlCrawlErrorsCountsQueryResponse(api.UrlCrawlErrorsCountsQueryResponse o) { buildCounterUrlCrawlErrorsCountsQueryResponse++; if (buildCounterUrlCrawlErrorsCountsQueryResponse < 3) { - checkUnnamed694(o.countPerTypes); + checkUnnamed669(o.countPerTypes); } buildCounterUrlCrawlErrorsCountsQueryResponse--; } @@ -421,14 +421,14 @@ buildCounterUrlCrawlErrorsSample--; } -buildUnnamed695() { +buildUnnamed670() { var o = new core.List<api.UrlCrawlErrorsSample>(); o.add(buildUrlCrawlErrorsSample()); o.add(buildUrlCrawlErrorsSample()); return o; } -checkUnnamed695(core.List<api.UrlCrawlErrorsSample> o) { +checkUnnamed670(core.List<api.UrlCrawlErrorsSample> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlCrawlErrorsSample(o[0]); checkUrlCrawlErrorsSample(o[1]); @@ -439,7 +439,7 @@ var o = new api.UrlCrawlErrorsSamplesListResponse(); buildCounterUrlCrawlErrorsSamplesListResponse++; if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { - o.urlCrawlErrorSample = buildUnnamed695(); + o.urlCrawlErrorSample = buildUnnamed670(); } buildCounterUrlCrawlErrorsSamplesListResponse--; return o; @@ -448,32 +448,32 @@ checkUrlCrawlErrorsSamplesListResponse(api.UrlCrawlErrorsSamplesListResponse o) { buildCounterUrlCrawlErrorsSamplesListResponse++; if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { - checkUnnamed695(o.urlCrawlErrorSample); + checkUnnamed670(o.urlCrawlErrorSample); } buildCounterUrlCrawlErrorsSamplesListResponse--; } -buildUnnamed696() { +buildUnnamed671() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed696(core.List<core.String> o) { +checkUnnamed671(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed697() { +buildUnnamed672() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed697(core.List<core.String> o) { +checkUnnamed672(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -484,8 +484,8 @@ var o = new api.UrlSampleDetails(); buildCounterUrlSampleDetails++; if (buildCounterUrlSampleDetails < 3) { - o.containingSitemaps = buildUnnamed696(); - o.linkedFromUrls = buildUnnamed697(); + o.containingSitemaps = buildUnnamed671(); + o.linkedFromUrls = buildUnnamed672(); } buildCounterUrlSampleDetails--; return o; @@ -494,8 +494,8 @@ checkUrlSampleDetails(api.UrlSampleDetails o) { buildCounterUrlSampleDetails++; if (buildCounterUrlSampleDetails < 3) { - checkUnnamed696(o.containingSitemaps); - checkUnnamed697(o.linkedFromUrls); + checkUnnamed671(o.containingSitemaps); + checkUnnamed672(o.linkedFromUrls); } buildCounterUrlSampleDetails--; } @@ -521,14 +521,14 @@ buildCounterWmxSite--; } -buildUnnamed698() { +buildUnnamed673() { var o = new core.List<api.WmxSitemapContent>(); o.add(buildWmxSitemapContent()); o.add(buildWmxSitemapContent()); return o; } -checkUnnamed698(core.List<api.WmxSitemapContent> o) { +checkUnnamed673(core.List<api.WmxSitemapContent> o) { unittest.expect(o, unittest.hasLength(2)); checkWmxSitemapContent(o[0]); checkWmxSitemapContent(o[1]); @@ -539,7 +539,7 @@ var o = new api.WmxSitemap(); buildCounterWmxSitemap++; if (buildCounterWmxSitemap < 3) { - o.contents = buildUnnamed698(); + o.contents = buildUnnamed673(); o.errors = "foo"; o.isPending = true; o.isSitemapsIndex = true; @@ -556,7 +556,7 @@ checkWmxSitemap(api.WmxSitemap o) { buildCounterWmxSitemap++; if (buildCounterWmxSitemap < 3) { - checkUnnamed698(o.contents); + checkUnnamed673(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 1288125..cd6fe2d 100644 --- a/generated/googleapis/test/youtube/v3_test.dart +++ b/generated/googleapis/test/youtube/v3_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed582() { +buildUnnamed557() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed582(core.List<core.String> o) { +checkUnnamed557(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -70,7 +70,7 @@ buildCounterAccessPolicy++; if (buildCounterAccessPolicy < 3) { o.allowed = true; - o.exception = buildUnnamed582(); + o.exception = buildUnnamed557(); } buildCounterAccessPolicy--; return o; @@ -80,7 +80,7 @@ buildCounterAccessPolicy++; if (buildCounterAccessPolicy < 3) { unittest.expect(o.allowed, unittest.isTrue); - checkUnnamed582(o.exception); + checkUnnamed557(o.exception); } buildCounterAccessPolicy--; } @@ -269,27 +269,27 @@ buildCounterActivityContentDetailsPlaylistItem--; } -buildUnnamed583() { +buildUnnamed558() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed583(core.List<core.String> o) { +checkUnnamed558(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed584() { +buildUnnamed559() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed584(core.List<core.String> o) { +checkUnnamed559(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -307,8 +307,8 @@ o.customCtaButtonText = "foo"; o.descriptionText = "foo"; o.destinationUrl = "foo"; - o.forecastingUrl = buildUnnamed583(); - o.impressionUrl = buildUnnamed584(); + o.forecastingUrl = buildUnnamed558(); + o.impressionUrl = buildUnnamed559(); o.videoId = "foo"; } buildCounterActivityContentDetailsPromotedItem--; @@ -325,8 +325,8 @@ unittest.expect(o.customCtaButtonText, unittest.equals('foo')); unittest.expect(o.descriptionText, unittest.equals('foo')); unittest.expect(o.destinationUrl, unittest.equals('foo')); - checkUnnamed583(o.forecastingUrl); - checkUnnamed584(o.impressionUrl); + checkUnnamed558(o.forecastingUrl); + checkUnnamed559(o.impressionUrl); unittest.expect(o.videoId, unittest.equals('foo')); } buildCounterActivityContentDetailsPromotedItem--; @@ -420,14 +420,14 @@ buildCounterActivityContentDetailsUpload--; } -buildUnnamed585() { +buildUnnamed560() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed585(core.List<api.Activity> o) { +checkUnnamed560(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -440,7 +440,7 @@ if (buildCounterActivityListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed585(); + o.items = buildUnnamed560(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -457,7 +457,7 @@ if (buildCounterActivityListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed585(o.items); + checkUnnamed560(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -526,14 +526,14 @@ buildCounterCaption--; } -buildUnnamed586() { +buildUnnamed561() { var o = new core.List<api.Caption>(); o.add(buildCaption()); o.add(buildCaption()); return o; } -checkUnnamed586(core.List<api.Caption> o) { +checkUnnamed561(core.List<api.Caption> o) { unittest.expect(o, unittest.hasLength(2)); checkCaption(o[0]); checkCaption(o[1]); @@ -546,7 +546,7 @@ if (buildCounterCaptionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed586(); + o.items = buildUnnamed561(); o.kind = "foo"; o.visitorId = "foo"; } @@ -559,7 +559,7 @@ if (buildCounterCaptionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed586(o.items); + checkUnnamed561(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -636,14 +636,14 @@ buildCounterCdnSettings--; } -buildUnnamed587() { +buildUnnamed562() { var o = new core.Map<core.String, api.ChannelLocalization>(); o["x"] = buildChannelLocalization(); o["y"] = buildChannelLocalization(); return o; } -checkUnnamed587(core.Map<core.String, api.ChannelLocalization> o) { +checkUnnamed562(core.Map<core.String, api.ChannelLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelLocalization(o["x"]); checkChannelLocalization(o["y"]); @@ -663,7 +663,7 @@ o.id = "foo"; o.invideoPromotion = buildInvideoPromotion(); o.kind = "foo"; - o.localizations = buildUnnamed587(); + o.localizations = buildUnnamed562(); o.snippet = buildChannelSnippet(); o.statistics = buildChannelStatistics(); o.status = buildChannelStatus(); @@ -685,7 +685,7 @@ unittest.expect(o.id, unittest.equals('foo')); checkInvideoPromotion(o.invideoPromotion); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed587(o.localizations); + checkUnnamed562(o.localizations); checkChannelSnippet(o.snippet); checkChannelStatistics(o.statistics); checkChannelStatus(o.status); @@ -742,14 +742,14 @@ buildCounterChannelBannerResource--; } -buildUnnamed588() { +buildUnnamed563() { var o = new core.List<api.PropertyValue>(); o.add(buildPropertyValue()); o.add(buildPropertyValue()); return o; } -checkUnnamed588(core.List<api.PropertyValue> o) { +checkUnnamed563(core.List<api.PropertyValue> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyValue(o[0]); checkPropertyValue(o[1]); @@ -761,7 +761,7 @@ buildCounterChannelBrandingSettings++; if (buildCounterChannelBrandingSettings < 3) { o.channel = buildChannelSettings(); - o.hints = buildUnnamed588(); + o.hints = buildUnnamed563(); o.image = buildImageSettings(); o.watch = buildWatchSettings(); } @@ -773,7 +773,7 @@ buildCounterChannelBrandingSettings++; if (buildCounterChannelBrandingSettings < 3) { checkChannelSettings(o.channel); - checkUnnamed588(o.hints); + checkUnnamed563(o.hints); checkImageSettings(o.image); checkWatchSettings(o.watch); } @@ -868,14 +868,14 @@ buildCounterChannelConversionPing--; } -buildUnnamed589() { +buildUnnamed564() { var o = new core.List<api.ChannelConversionPing>(); o.add(buildChannelConversionPing()); o.add(buildChannelConversionPing()); return o; } -checkUnnamed589(core.List<api.ChannelConversionPing> o) { +checkUnnamed564(core.List<api.ChannelConversionPing> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelConversionPing(o[0]); checkChannelConversionPing(o[1]); @@ -886,7 +886,7 @@ var o = new api.ChannelConversionPings(); buildCounterChannelConversionPings++; if (buildCounterChannelConversionPings < 3) { - o.pings = buildUnnamed589(); + o.pings = buildUnnamed564(); } buildCounterChannelConversionPings--; return o; @@ -895,19 +895,19 @@ checkChannelConversionPings(api.ChannelConversionPings o) { buildCounterChannelConversionPings++; if (buildCounterChannelConversionPings < 3) { - checkUnnamed589(o.pings); + checkUnnamed564(o.pings); } buildCounterChannelConversionPings--; } -buildUnnamed590() { +buildUnnamed565() { var o = new core.List<api.Channel>(); o.add(buildChannel()); o.add(buildChannel()); return o; } -checkUnnamed590(core.List<api.Channel> o) { +checkUnnamed565(core.List<api.Channel> o) { unittest.expect(o, unittest.hasLength(2)); checkChannel(o[0]); checkChannel(o[1]); @@ -920,7 +920,7 @@ if (buildCounterChannelListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed590(); + o.items = buildUnnamed565(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -937,7 +937,7 @@ if (buildCounterChannelListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed590(o.items); + checkUnnamed565(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -994,14 +994,14 @@ buildCounterChannelProfileDetails--; } -buildUnnamed591() { +buildUnnamed566() { var o = new core.Map<core.String, api.ChannelSectionLocalization>(); o["x"] = buildChannelSectionLocalization(); o["y"] = buildChannelSectionLocalization(); return o; } -checkUnnamed591(core.Map<core.String, api.ChannelSectionLocalization> o) { +checkUnnamed566(core.Map<core.String, api.ChannelSectionLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelSectionLocalization(o["x"]); checkChannelSectionLocalization(o["y"]); @@ -1016,7 +1016,7 @@ o.etag = "foo"; o.id = "foo"; o.kind = "foo"; - o.localizations = buildUnnamed591(); + o.localizations = buildUnnamed566(); o.snippet = buildChannelSectionSnippet(); o.targeting = buildChannelSectionTargeting(); } @@ -1031,34 +1031,34 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed591(o.localizations); + checkUnnamed566(o.localizations); checkChannelSectionSnippet(o.snippet); checkChannelSectionTargeting(o.targeting); } buildCounterChannelSection--; } -buildUnnamed592() { +buildUnnamed567() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed592(core.List<core.String> o) { +checkUnnamed567(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed593() { +buildUnnamed568() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed593(core.List<core.String> o) { +checkUnnamed568(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1069,8 +1069,8 @@ var o = new api.ChannelSectionContentDetails(); buildCounterChannelSectionContentDetails++; if (buildCounterChannelSectionContentDetails < 3) { - o.channels = buildUnnamed592(); - o.playlists = buildUnnamed593(); + o.channels = buildUnnamed567(); + o.playlists = buildUnnamed568(); } buildCounterChannelSectionContentDetails--; return o; @@ -1079,20 +1079,20 @@ checkChannelSectionContentDetails(api.ChannelSectionContentDetails o) { buildCounterChannelSectionContentDetails++; if (buildCounterChannelSectionContentDetails < 3) { - checkUnnamed592(o.channels); - checkUnnamed593(o.playlists); + checkUnnamed567(o.channels); + checkUnnamed568(o.playlists); } buildCounterChannelSectionContentDetails--; } -buildUnnamed594() { +buildUnnamed569() { var o = new core.List<api.ChannelSection>(); o.add(buildChannelSection()); o.add(buildChannelSection()); return o; } -checkUnnamed594(core.List<api.ChannelSection> o) { +checkUnnamed569(core.List<api.ChannelSection> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelSection(o[0]); checkChannelSection(o[1]); @@ -1105,7 +1105,7 @@ if (buildCounterChannelSectionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed594(); + o.items = buildUnnamed569(); o.kind = "foo"; o.visitorId = "foo"; } @@ -1118,7 +1118,7 @@ if (buildCounterChannelSectionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed594(o.items); + checkUnnamed569(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -1175,40 +1175,40 @@ buildCounterChannelSectionSnippet--; } -buildUnnamed595() { +buildUnnamed570() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed595(core.List<core.String> o) { +checkUnnamed570(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed596() { +buildUnnamed571() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed596(core.List<core.String> o) { +checkUnnamed571(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed597() { +buildUnnamed572() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed597(core.List<core.String> o) { +checkUnnamed572(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1219,9 +1219,9 @@ var o = new api.ChannelSectionTargeting(); buildCounterChannelSectionTargeting++; if (buildCounterChannelSectionTargeting < 3) { - o.countries = buildUnnamed595(); - o.languages = buildUnnamed596(); - o.regions = buildUnnamed597(); + o.countries = buildUnnamed570(); + o.languages = buildUnnamed571(); + o.regions = buildUnnamed572(); } buildCounterChannelSectionTargeting--; return o; @@ -1230,21 +1230,21 @@ checkChannelSectionTargeting(api.ChannelSectionTargeting o) { buildCounterChannelSectionTargeting++; if (buildCounterChannelSectionTargeting < 3) { - checkUnnamed595(o.countries); - checkUnnamed596(o.languages); - checkUnnamed597(o.regions); + checkUnnamed570(o.countries); + checkUnnamed571(o.languages); + checkUnnamed572(o.regions); } buildCounterChannelSectionTargeting--; } -buildUnnamed598() { +buildUnnamed573() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed598(core.List<core.String> o) { +checkUnnamed573(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1260,7 +1260,7 @@ o.defaultTab = "foo"; o.description = "foo"; o.featuredChannelsTitle = "foo"; - o.featuredChannelsUrls = buildUnnamed598(); + o.featuredChannelsUrls = buildUnnamed573(); o.keywords = "foo"; o.moderateComments = true; o.profileColor = "foo"; @@ -1282,7 +1282,7 @@ unittest.expect(o.defaultTab, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.featuredChannelsTitle, unittest.equals('foo')); - checkUnnamed598(o.featuredChannelsUrls); + checkUnnamed573(o.featuredChannelsUrls); unittest.expect(o.keywords, unittest.equals('foo')); unittest.expect(o.moderateComments, unittest.isTrue); unittest.expect(o.profileColor, unittest.equals('foo')); @@ -1378,27 +1378,27 @@ buildCounterChannelStatus--; } -buildUnnamed599() { +buildUnnamed574() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed599(core.List<core.String> 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')); } -buildUnnamed600() { +buildUnnamed575() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed600(core.List<core.String> o) { +checkUnnamed575(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1409,8 +1409,8 @@ var o = new api.ChannelTopicDetails(); buildCounterChannelTopicDetails++; if (buildCounterChannelTopicDetails < 3) { - o.topicCategories = buildUnnamed599(); - o.topicIds = buildUnnamed600(); + o.topicCategories = buildUnnamed574(); + o.topicIds = buildUnnamed575(); } buildCounterChannelTopicDetails--; return o; @@ -1419,8 +1419,8 @@ checkChannelTopicDetails(api.ChannelTopicDetails o) { buildCounterChannelTopicDetails++; if (buildCounterChannelTopicDetails < 3) { - checkUnnamed599(o.topicCategories); - checkUnnamed600(o.topicIds); + checkUnnamed574(o.topicCategories); + checkUnnamed575(o.topicIds); } buildCounterChannelTopicDetails--; } @@ -1450,14 +1450,14 @@ buildCounterComment--; } -buildUnnamed601() { +buildUnnamed576() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed601(core.List<api.Comment> o) { +checkUnnamed576(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1470,7 +1470,7 @@ if (buildCounterCommentListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed601(); + o.items = buildUnnamed576(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -1486,7 +1486,7 @@ if (buildCounterCommentListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed601(o.items); + checkUnnamed576(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -1570,14 +1570,14 @@ buildCounterCommentThread--; } -buildUnnamed602() { +buildUnnamed577() { var o = new core.List<api.CommentThread>(); o.add(buildCommentThread()); o.add(buildCommentThread()); return o; } -checkUnnamed602(core.List<api.CommentThread> o) { +checkUnnamed577(core.List<api.CommentThread> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentThread(o[0]); checkCommentThread(o[1]); @@ -1590,7 +1590,7 @@ if (buildCounterCommentThreadListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed602(); + o.items = buildUnnamed577(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -1606,7 +1606,7 @@ if (buildCounterCommentThreadListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed602(o.items); + checkUnnamed577(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -1616,14 +1616,14 @@ buildCounterCommentThreadListResponse--; } -buildUnnamed603() { +buildUnnamed578() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed603(core.List<api.Comment> o) { +checkUnnamed578(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1634,7 +1634,7 @@ var o = new api.CommentThreadReplies(); buildCounterCommentThreadReplies++; if (buildCounterCommentThreadReplies < 3) { - o.comments = buildUnnamed603(); + o.comments = buildUnnamed578(); } buildCounterCommentThreadReplies--; return o; @@ -1643,7 +1643,7 @@ checkCommentThreadReplies(api.CommentThreadReplies o) { buildCounterCommentThreadReplies++; if (buildCounterCommentThreadReplies < 3) { - checkUnnamed603(o.comments); + checkUnnamed578(o.comments); } buildCounterCommentThreadReplies--; } @@ -1677,27 +1677,27 @@ buildCounterCommentThreadSnippet--; } -buildUnnamed604() { +buildUnnamed579() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed604(core.List<core.String> o) { +checkUnnamed579(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed605() { +buildUnnamed580() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed605(core.List<core.String> o) { +checkUnnamed580(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1728,7 +1728,7 @@ o.cscfRating = "foo"; o.czfilmRating = "foo"; o.djctqRating = "foo"; - o.djctqRatingReasons = buildUnnamed604(); + o.djctqRatingReasons = buildUnnamed579(); o.ecbmctRating = "foo"; o.eefilmRating = "foo"; o.egfilmRating = "foo"; @@ -1737,7 +1737,7 @@ o.fcoRating = "foo"; o.fmocRating = "foo"; o.fpbRating = "foo"; - o.fpbRatingReasons = buildUnnamed605(); + o.fpbRatingReasons = buildUnnamed580(); o.fskRating = "foo"; o.grfilmRating = "foo"; o.icaaRating = "foo"; @@ -1804,7 +1804,7 @@ unittest.expect(o.cscfRating, unittest.equals('foo')); unittest.expect(o.czfilmRating, unittest.equals('foo')); unittest.expect(o.djctqRating, unittest.equals('foo')); - checkUnnamed604(o.djctqRatingReasons); + checkUnnamed579(o.djctqRatingReasons); unittest.expect(o.ecbmctRating, unittest.equals('foo')); unittest.expect(o.eefilmRating, unittest.equals('foo')); unittest.expect(o.egfilmRating, unittest.equals('foo')); @@ -1813,7 +1813,7 @@ unittest.expect(o.fcoRating, unittest.equals('foo')); unittest.expect(o.fmocRating, unittest.equals('foo')); unittest.expect(o.fpbRating, unittest.equals('foo')); - checkUnnamed605(o.fpbRatingReasons); + checkUnnamed580(o.fpbRatingReasons); unittest.expect(o.fskRating, unittest.equals('foo')); unittest.expect(o.grfilmRating, unittest.equals('foo')); unittest.expect(o.icaaRating, unittest.equals('foo')); @@ -1881,14 +1881,14 @@ buildCounterFanFundingEvent--; } -buildUnnamed606() { +buildUnnamed581() { var o = new core.List<api.FanFundingEvent>(); o.add(buildFanFundingEvent()); o.add(buildFanFundingEvent()); return o; } -checkUnnamed606(core.List<api.FanFundingEvent> o) { +checkUnnamed581(core.List<api.FanFundingEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkFanFundingEvent(o[0]); checkFanFundingEvent(o[1]); @@ -1901,7 +1901,7 @@ if (buildCounterFanFundingEventListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed606(); + o.items = buildUnnamed581(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -1917,7 +1917,7 @@ if (buildCounterFanFundingEventListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed606(o.items); + checkUnnamed581(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -2006,14 +2006,14 @@ buildCounterGuideCategory--; } -buildUnnamed607() { +buildUnnamed582() { var o = new core.List<api.GuideCategory>(); o.add(buildGuideCategory()); o.add(buildGuideCategory()); return o; } -checkUnnamed607(core.List<api.GuideCategory> o) { +checkUnnamed582(core.List<api.GuideCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkGuideCategory(o[0]); checkGuideCategory(o[1]); @@ -2026,7 +2026,7 @@ if (buildCounterGuideCategoryListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed607(); + o.items = buildUnnamed582(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -2043,7 +2043,7 @@ if (buildCounterGuideCategoryListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed607(o.items); + checkUnnamed582(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -2100,14 +2100,14 @@ buildCounterI18nLanguage--; } -buildUnnamed608() { +buildUnnamed583() { var o = new core.List<api.I18nLanguage>(); o.add(buildI18nLanguage()); o.add(buildI18nLanguage()); return o; } -checkUnnamed608(core.List<api.I18nLanguage> o) { +checkUnnamed583(core.List<api.I18nLanguage> o) { unittest.expect(o, unittest.hasLength(2)); checkI18nLanguage(o[0]); checkI18nLanguage(o[1]); @@ -2120,7 +2120,7 @@ if (buildCounterI18nLanguageListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed608(); + o.items = buildUnnamed583(); o.kind = "foo"; o.visitorId = "foo"; } @@ -2133,7 +2133,7 @@ if (buildCounterI18nLanguageListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed608(o.items); + checkUnnamed583(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -2186,14 +2186,14 @@ buildCounterI18nRegion--; } -buildUnnamed609() { +buildUnnamed584() { var o = new core.List<api.I18nRegion>(); o.add(buildI18nRegion()); o.add(buildI18nRegion()); return o; } -checkUnnamed609(core.List<api.I18nRegion> o) { +checkUnnamed584(core.List<api.I18nRegion> o) { unittest.expect(o, unittest.hasLength(2)); checkI18nRegion(o[0]); checkI18nRegion(o[1]); @@ -2206,7 +2206,7 @@ if (buildCounterI18nRegionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed609(); + o.items = buildUnnamed584(); o.kind = "foo"; o.visitorId = "foo"; } @@ -2219,7 +2219,7 @@ if (buildCounterI18nRegionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed609(o.items); + checkUnnamed584(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -2379,14 +2379,14 @@ buildCounterInvideoPosition--; } -buildUnnamed610() { +buildUnnamed585() { var o = new core.List<api.PromotedItem>(); o.add(buildPromotedItem()); o.add(buildPromotedItem()); return o; } -checkUnnamed610(core.List<api.PromotedItem> o) { +checkUnnamed585(core.List<api.PromotedItem> o) { unittest.expect(o, unittest.hasLength(2)); checkPromotedItem(o[0]); checkPromotedItem(o[1]); @@ -2398,7 +2398,7 @@ buildCounterInvideoPromotion++; if (buildCounterInvideoPromotion < 3) { o.defaultTiming = buildInvideoTiming(); - o.items = buildUnnamed610(); + o.items = buildUnnamed585(); o.position = buildInvideoPosition(); o.useSmartTiming = true; } @@ -2410,7 +2410,7 @@ buildCounterInvideoPromotion++; if (buildCounterInvideoPromotion < 3) { checkInvideoTiming(o.defaultTiming); - checkUnnamed610(o.items); + checkUnnamed585(o.items); checkInvideoPosition(o.position); unittest.expect(o.useSmartTiming, unittest.isTrue); } @@ -2533,14 +2533,14 @@ buildCounterLiveBroadcastContentDetails--; } -buildUnnamed611() { +buildUnnamed586() { var o = new core.List<api.LiveBroadcast>(); o.add(buildLiveBroadcast()); o.add(buildLiveBroadcast()); return o; } -checkUnnamed611(core.List<api.LiveBroadcast> o) { +checkUnnamed586(core.List<api.LiveBroadcast> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveBroadcast(o[0]); checkLiveBroadcast(o[1]); @@ -2553,7 +2553,7 @@ if (buildCounterLiveBroadcastListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed611(); + o.items = buildUnnamed586(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -2570,7 +2570,7 @@ if (buildCounterLiveBroadcastListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed611(o.items); + checkUnnamed586(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -2689,14 +2689,14 @@ buildCounterLiveBroadcastTopic--; } -buildUnnamed612() { +buildUnnamed587() { var o = new core.List<api.LiveBroadcastTopic>(); o.add(buildLiveBroadcastTopic()); o.add(buildLiveBroadcastTopic()); return o; } -checkUnnamed612(core.List<api.LiveBroadcastTopic> o) { +checkUnnamed587(core.List<api.LiveBroadcastTopic> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveBroadcastTopic(o[0]); checkLiveBroadcastTopic(o[1]); @@ -2707,7 +2707,7 @@ var o = new api.LiveBroadcastTopicDetails(); buildCounterLiveBroadcastTopicDetails++; if (buildCounterLiveBroadcastTopicDetails < 3) { - o.topics = buildUnnamed612(); + o.topics = buildUnnamed587(); } buildCounterLiveBroadcastTopicDetails--; return o; @@ -2716,7 +2716,7 @@ checkLiveBroadcastTopicDetails(api.LiveBroadcastTopicDetails o) { buildCounterLiveBroadcastTopicDetails++; if (buildCounterLiveBroadcastTopicDetails < 3) { - checkUnnamed612(o.topics); + checkUnnamed587(o.topics); } buildCounterLiveBroadcastTopicDetails--; } @@ -2896,14 +2896,14 @@ buildCounterLiveChatMessageDeletedDetails--; } -buildUnnamed613() { +buildUnnamed588() { var o = new core.List<api.LiveChatMessage>(); o.add(buildLiveChatMessage()); o.add(buildLiveChatMessage()); return o; } -checkUnnamed613(core.List<api.LiveChatMessage> o) { +checkUnnamed588(core.List<api.LiveChatMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatMessage(o[0]); checkLiveChatMessage(o[1]); @@ -2916,7 +2916,7 @@ if (buildCounterLiveChatMessageListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed613(); + o.items = buildUnnamed588(); o.kind = "foo"; o.nextPageToken = "foo"; o.offlineAt = core.DateTime.parse("2002-02-27T14:01:02"); @@ -2934,7 +2934,7 @@ if (buildCounterLiveChatMessageListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed613(o.items); + checkUnnamed588(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.offlineAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -3039,14 +3039,14 @@ buildCounterLiveChatModerator--; } -buildUnnamed614() { +buildUnnamed589() { var o = new core.List<api.LiveChatModerator>(); o.add(buildLiveChatModerator()); o.add(buildLiveChatModerator()); return o; } -checkUnnamed614(core.List<api.LiveChatModerator> o) { +checkUnnamed589(core.List<api.LiveChatModerator> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatModerator(o[0]); checkLiveChatModerator(o[1]); @@ -3059,7 +3059,7 @@ if (buildCounterLiveChatModeratorListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed614(); + o.items = buildUnnamed589(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3076,7 +3076,7 @@ if (buildCounterLiveChatModeratorListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed614(o.items); + checkUnnamed589(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3127,14 +3127,14 @@ buildCounterLiveChatPollClosedDetails--; } -buildUnnamed615() { +buildUnnamed590() { var o = new core.List<api.LiveChatPollItem>(); o.add(buildLiveChatPollItem()); o.add(buildLiveChatPollItem()); return o; } -checkUnnamed615(core.List<api.LiveChatPollItem> o) { +checkUnnamed590(core.List<api.LiveChatPollItem> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatPollItem(o[0]); checkLiveChatPollItem(o[1]); @@ -3146,7 +3146,7 @@ buildCounterLiveChatPollEditedDetails++; if (buildCounterLiveChatPollEditedDetails < 3) { o.id = "foo"; - o.items = buildUnnamed615(); + o.items = buildUnnamed590(); o.prompt = "foo"; } buildCounterLiveChatPollEditedDetails--; @@ -3157,7 +3157,7 @@ buildCounterLiveChatPollEditedDetails++; if (buildCounterLiveChatPollEditedDetails < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed615(o.items); + checkUnnamed590(o.items); unittest.expect(o.prompt, unittest.equals('foo')); } buildCounterLiveChatPollEditedDetails--; @@ -3184,14 +3184,14 @@ buildCounterLiveChatPollItem--; } -buildUnnamed616() { +buildUnnamed591() { var o = new core.List<api.LiveChatPollItem>(); o.add(buildLiveChatPollItem()); o.add(buildLiveChatPollItem()); return o; } -checkUnnamed616(core.List<api.LiveChatPollItem> o) { +checkUnnamed591(core.List<api.LiveChatPollItem> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatPollItem(o[0]); checkLiveChatPollItem(o[1]); @@ -3203,7 +3203,7 @@ buildCounterLiveChatPollOpenedDetails++; if (buildCounterLiveChatPollOpenedDetails < 3) { o.id = "foo"; - o.items = buildUnnamed616(); + o.items = buildUnnamed591(); o.prompt = "foo"; } buildCounterLiveChatPollOpenedDetails--; @@ -3214,7 +3214,7 @@ buildCounterLiveChatPollOpenedDetails++; if (buildCounterLiveChatPollOpenedDetails < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed616(o.items); + checkUnnamed591(o.items); unittest.expect(o.prompt, unittest.equals('foo')); } buildCounterLiveChatPollOpenedDetails--; @@ -3387,14 +3387,14 @@ buildCounterLiveStreamContentDetails--; } -buildUnnamed617() { +buildUnnamed592() { var o = new core.List<api.LiveStreamConfigurationIssue>(); o.add(buildLiveStreamConfigurationIssue()); o.add(buildLiveStreamConfigurationIssue()); return o; } -checkUnnamed617(core.List<api.LiveStreamConfigurationIssue> o) { +checkUnnamed592(core.List<api.LiveStreamConfigurationIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveStreamConfigurationIssue(o[0]); checkLiveStreamConfigurationIssue(o[1]); @@ -3405,7 +3405,7 @@ var o = new api.LiveStreamHealthStatus(); buildCounterLiveStreamHealthStatus++; if (buildCounterLiveStreamHealthStatus < 3) { - o.configurationIssues = buildUnnamed617(); + o.configurationIssues = buildUnnamed592(); o.lastUpdateTimeSeconds = "foo"; o.status = "foo"; } @@ -3416,21 +3416,21 @@ checkLiveStreamHealthStatus(api.LiveStreamHealthStatus o) { buildCounterLiveStreamHealthStatus++; if (buildCounterLiveStreamHealthStatus < 3) { - checkUnnamed617(o.configurationIssues); + checkUnnamed592(o.configurationIssues); unittest.expect(o.lastUpdateTimeSeconds, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); } buildCounterLiveStreamHealthStatus--; } -buildUnnamed618() { +buildUnnamed593() { var o = new core.List<api.LiveStream>(); o.add(buildLiveStream()); o.add(buildLiveStream()); return o; } -checkUnnamed618(core.List<api.LiveStream> o) { +checkUnnamed593(core.List<api.LiveStream> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveStream(o[0]); checkLiveStream(o[1]); @@ -3443,7 +3443,7 @@ if (buildCounterLiveStreamListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed618(); + o.items = buildUnnamed593(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3460,7 +3460,7 @@ if (buildCounterLiveStreamListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed618(o.items); + checkUnnamed593(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3519,14 +3519,14 @@ buildCounterLiveStreamStatus--; } -buildUnnamed619() { +buildUnnamed594() { var o = new core.List<api.LocalizedString>(); o.add(buildLocalizedString()); o.add(buildLocalizedString()); return o; } -checkUnnamed619(core.List<api.LocalizedString> o) { +checkUnnamed594(core.List<api.LocalizedString> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedString(o[0]); checkLocalizedString(o[1]); @@ -3539,7 +3539,7 @@ if (buildCounterLocalizedProperty < 3) { o.default_ = "foo"; o.defaultLanguage = buildLanguageTag(); - o.localized = buildUnnamed619(); + o.localized = buildUnnamed594(); } buildCounterLocalizedProperty--; return o; @@ -3550,7 +3550,7 @@ if (buildCounterLocalizedProperty < 3) { unittest.expect(o.default_, unittest.equals('foo')); checkLanguageTag(o.defaultLanguage); - checkUnnamed619(o.localized); + checkUnnamed594(o.localized); } buildCounterLocalizedProperty--; } @@ -3620,14 +3620,14 @@ buildCounterPageInfo--; } -buildUnnamed620() { +buildUnnamed595() { var o = new core.Map<core.String, api.PlaylistLocalization>(); o["x"] = buildPlaylistLocalization(); o["y"] = buildPlaylistLocalization(); return o; } -checkUnnamed620(core.Map<core.String, api.PlaylistLocalization> o) { +checkUnnamed595(core.Map<core.String, api.PlaylistLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkPlaylistLocalization(o["x"]); checkPlaylistLocalization(o["y"]); @@ -3642,7 +3642,7 @@ o.etag = "foo"; o.id = "foo"; o.kind = "foo"; - o.localizations = buildUnnamed620(); + o.localizations = buildUnnamed595(); o.player = buildPlaylistPlayer(); o.snippet = buildPlaylistSnippet(); o.status = buildPlaylistStatus(); @@ -3658,7 +3658,7 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed620(o.localizations); + checkUnnamed595(o.localizations); checkPlaylistPlayer(o.player); checkPlaylistSnippet(o.snippet); checkPlaylistStatus(o.status); @@ -3741,14 +3741,14 @@ buildCounterPlaylistItemContentDetails--; } -buildUnnamed621() { +buildUnnamed596() { var o = new core.List<api.PlaylistItem>(); o.add(buildPlaylistItem()); o.add(buildPlaylistItem()); return o; } -checkUnnamed621(core.List<api.PlaylistItem> o) { +checkUnnamed596(core.List<api.PlaylistItem> o) { unittest.expect(o, unittest.hasLength(2)); checkPlaylistItem(o[0]); checkPlaylistItem(o[1]); @@ -3761,7 +3761,7 @@ if (buildCounterPlaylistItemListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed621(); + o.items = buildUnnamed596(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3778,7 +3778,7 @@ if (buildCounterPlaylistItemListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed621(o.items); + checkUnnamed596(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3843,14 +3843,14 @@ buildCounterPlaylistItemStatus--; } -buildUnnamed622() { +buildUnnamed597() { var o = new core.List<api.Playlist>(); o.add(buildPlaylist()); o.add(buildPlaylist()); return o; } -checkUnnamed622(core.List<api.Playlist> o) { +checkUnnamed597(core.List<api.Playlist> o) { unittest.expect(o, unittest.hasLength(2)); checkPlaylist(o[0]); checkPlaylist(o[1]); @@ -3863,7 +3863,7 @@ if (buildCounterPlaylistListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed622(); + o.items = buildUnnamed597(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3880,7 +3880,7 @@ if (buildCounterPlaylistListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed622(o.items); + checkUnnamed597(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3931,14 +3931,14 @@ buildCounterPlaylistPlayer--; } -buildUnnamed623() { +buildUnnamed598() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed623(core.List<core.String> o) { +checkUnnamed598(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3955,7 +3955,7 @@ o.description = "foo"; o.localized = buildPlaylistLocalization(); o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); - o.tags = buildUnnamed623(); + o.tags = buildUnnamed598(); o.thumbnails = buildThumbnailDetails(); o.title = "foo"; } @@ -3972,7 +3972,7 @@ unittest.expect(o.description, unittest.equals('foo')); checkPlaylistLocalization(o.localized); unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed623(o.tags); + checkUnnamed598(o.tags); checkThumbnailDetails(o.thumbnails); unittest.expect(o.title, unittest.equals('foo')); } @@ -4094,14 +4094,14 @@ buildCounterResourceId--; } -buildUnnamed624() { +buildUnnamed599() { var o = new core.List<api.SearchResult>(); o.add(buildSearchResult()); o.add(buildSearchResult()); return o; } -checkUnnamed624(core.List<api.SearchResult> o) { +checkUnnamed599(core.List<api.SearchResult> o) { unittest.expect(o, unittest.hasLength(2)); checkSearchResult(o[0]); checkSearchResult(o[1]); @@ -4114,7 +4114,7 @@ if (buildCounterSearchListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed624(); + o.items = buildUnnamed599(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4132,7 +4132,7 @@ if (buildCounterSearchListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed624(o.items); + checkUnnamed599(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4225,14 +4225,14 @@ buildCounterSponsor--; } -buildUnnamed625() { +buildUnnamed600() { var o = new core.List<api.Sponsor>(); o.add(buildSponsor()); o.add(buildSponsor()); return o; } -checkUnnamed625(core.List<api.Sponsor> o) { +checkUnnamed600(core.List<api.Sponsor> o) { unittest.expect(o, unittest.hasLength(2)); checkSponsor(o[0]); checkSponsor(o[1]); @@ -4245,7 +4245,7 @@ if (buildCounterSponsorListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed625(); + o.items = buildUnnamed600(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4261,7 +4261,7 @@ if (buildCounterSponsorListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed625(o.items); + checkUnnamed600(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4346,14 +4346,14 @@ buildCounterSubscriptionContentDetails--; } -buildUnnamed626() { +buildUnnamed601() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed626(core.List<api.Subscription> o) { +checkUnnamed601(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -4366,7 +4366,7 @@ if (buildCounterSubscriptionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed626(); + o.items = buildUnnamed601(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4383,7 +4383,7 @@ if (buildCounterSubscriptionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed626(o.items); + checkUnnamed601(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4475,14 +4475,14 @@ buildCounterSuperChatEvent--; } -buildUnnamed627() { +buildUnnamed602() { var o = new core.List<api.SuperChatEvent>(); o.add(buildSuperChatEvent()); o.add(buildSuperChatEvent()); return o; } -checkUnnamed627(core.List<api.SuperChatEvent> o) { +checkUnnamed602(core.List<api.SuperChatEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkSuperChatEvent(o[0]); checkSuperChatEvent(o[1]); @@ -4495,7 +4495,7 @@ if (buildCounterSuperChatEventListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed627(); + o.items = buildUnnamed602(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4511,7 +4511,7 @@ if (buildCounterSuperChatEventListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed627(o.items); + checkUnnamed602(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4604,14 +4604,14 @@ buildCounterThumbnailDetails--; } -buildUnnamed628() { +buildUnnamed603() { var o = new core.List<api.ThumbnailDetails>(); o.add(buildThumbnailDetails()); o.add(buildThumbnailDetails()); return o; } -checkUnnamed628(core.List<api.ThumbnailDetails> o) { +checkUnnamed603(core.List<api.ThumbnailDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkThumbnailDetails(o[0]); checkThumbnailDetails(o[1]); @@ -4624,7 +4624,7 @@ if (buildCounterThumbnailSetResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed628(); + o.items = buildUnnamed603(); o.kind = "foo"; o.visitorId = "foo"; } @@ -4637,7 +4637,7 @@ if (buildCounterThumbnailSetResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed628(o.items); + checkUnnamed603(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -4661,14 +4661,14 @@ buildCounterTokenPagination--; } -buildUnnamed629() { +buildUnnamed604() { var o = new core.Map<core.String, api.VideoLocalization>(); o["x"] = buildVideoLocalization(); o["y"] = buildVideoLocalization(); return o; } -checkUnnamed629(core.Map<core.String, api.VideoLocalization> o) { +checkUnnamed604(core.Map<core.String, api.VideoLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoLocalization(o["x"]); checkVideoLocalization(o["y"]); @@ -4686,7 +4686,7 @@ o.id = "foo"; o.kind = "foo"; o.liveStreamingDetails = buildVideoLiveStreamingDetails(); - o.localizations = buildUnnamed629(); + o.localizations = buildUnnamed604(); o.monetizationDetails = buildVideoMonetizationDetails(); o.player = buildVideoPlayer(); o.processingDetails = buildVideoProcessingDetails(); @@ -4712,7 +4712,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkVideoLiveStreamingDetails(o.liveStreamingDetails); - checkUnnamed629(o.localizations); + checkUnnamed604(o.localizations); checkVideoMonetizationDetails(o.monetizationDetails); checkVideoPlayer(o.player); checkVideoProcessingDetails(o.processingDetails); @@ -4779,14 +4779,14 @@ buildCounterVideoAbuseReportReason--; } -buildUnnamed630() { +buildUnnamed605() { var o = new core.List<api.VideoAbuseReportReason>(); o.add(buildVideoAbuseReportReason()); o.add(buildVideoAbuseReportReason()); return o; } -checkUnnamed630(core.List<api.VideoAbuseReportReason> o) { +checkUnnamed605(core.List<api.VideoAbuseReportReason> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoAbuseReportReason(o[0]); checkVideoAbuseReportReason(o[1]); @@ -4799,7 +4799,7 @@ if (buildCounterVideoAbuseReportReasonListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed630(); + o.items = buildUnnamed605(); o.kind = "foo"; o.visitorId = "foo"; } @@ -4812,21 +4812,21 @@ if (buildCounterVideoAbuseReportReasonListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed630(o.items); + checkUnnamed605(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } buildCounterVideoAbuseReportReasonListResponse--; } -buildUnnamed631() { +buildUnnamed606() { var o = new core.List<api.VideoAbuseReportSecondaryReason>(); o.add(buildVideoAbuseReportSecondaryReason()); o.add(buildVideoAbuseReportSecondaryReason()); return o; } -checkUnnamed631(core.List<api.VideoAbuseReportSecondaryReason> o) { +checkUnnamed606(core.List<api.VideoAbuseReportSecondaryReason> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoAbuseReportSecondaryReason(o[0]); checkVideoAbuseReportSecondaryReason(o[1]); @@ -4838,7 +4838,7 @@ buildCounterVideoAbuseReportReasonSnippet++; if (buildCounterVideoAbuseReportReasonSnippet < 3) { o.label = "foo"; - o.secondaryReasons = buildUnnamed631(); + o.secondaryReasons = buildUnnamed606(); } buildCounterVideoAbuseReportReasonSnippet--; return o; @@ -4848,7 +4848,7 @@ buildCounterVideoAbuseReportReasonSnippet++; if (buildCounterVideoAbuseReportReasonSnippet < 3) { unittest.expect(o.label, unittest.equals('foo')); - checkUnnamed631(o.secondaryReasons); + checkUnnamed606(o.secondaryReasons); } buildCounterVideoAbuseReportReasonSnippet--; } @@ -4922,14 +4922,14 @@ buildCounterVideoCategory--; } -buildUnnamed632() { +buildUnnamed607() { var o = new core.List<api.VideoCategory>(); o.add(buildVideoCategory()); o.add(buildVideoCategory()); return o; } -checkUnnamed632(core.List<api.VideoCategory> o) { +checkUnnamed607(core.List<api.VideoCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoCategory(o[0]); checkVideoCategory(o[1]); @@ -4942,7 +4942,7 @@ if (buildCounterVideoCategoryListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed632(); + o.items = buildUnnamed607(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4959,7 +4959,7 @@ if (buildCounterVideoCategoryListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed632(o.items); + checkUnnamed607(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -5030,27 +5030,27 @@ buildCounterVideoContentDetails--; } -buildUnnamed633() { +buildUnnamed608() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed633(core.List<core.String> o) { +checkUnnamed608(core.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() { +buildUnnamed609() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed634(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')); @@ -5061,8 +5061,8 @@ var o = new api.VideoContentDetailsRegionRestriction(); buildCounterVideoContentDetailsRegionRestriction++; if (buildCounterVideoContentDetailsRegionRestriction < 3) { - o.allowed = buildUnnamed633(); - o.blocked = buildUnnamed634(); + o.allowed = buildUnnamed608(); + o.blocked = buildUnnamed609(); } buildCounterVideoContentDetailsRegionRestriction--; return o; @@ -5071,33 +5071,33 @@ checkVideoContentDetailsRegionRestriction(api.VideoContentDetailsRegionRestriction o) { buildCounterVideoContentDetailsRegionRestriction++; if (buildCounterVideoContentDetailsRegionRestriction < 3) { - checkUnnamed633(o.allowed); - checkUnnamed634(o.blocked); + checkUnnamed608(o.allowed); + checkUnnamed609(o.blocked); } buildCounterVideoContentDetailsRegionRestriction--; } -buildUnnamed635() { +buildUnnamed610() { var o = new core.List<api.VideoFileDetailsAudioStream>(); o.add(buildVideoFileDetailsAudioStream()); o.add(buildVideoFileDetailsAudioStream()); return o; } -checkUnnamed635(core.List<api.VideoFileDetailsAudioStream> o) { +checkUnnamed610(core.List<api.VideoFileDetailsAudioStream> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoFileDetailsAudioStream(o[0]); checkVideoFileDetailsAudioStream(o[1]); } -buildUnnamed636() { +buildUnnamed611() { var o = new core.List<api.VideoFileDetailsVideoStream>(); o.add(buildVideoFileDetailsVideoStream()); o.add(buildVideoFileDetailsVideoStream()); return o; } -checkUnnamed636(core.List<api.VideoFileDetailsVideoStream> o) { +checkUnnamed611(core.List<api.VideoFileDetailsVideoStream> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoFileDetailsVideoStream(o[0]); checkVideoFileDetailsVideoStream(o[1]); @@ -5108,7 +5108,7 @@ var o = new api.VideoFileDetails(); buildCounterVideoFileDetails++; if (buildCounterVideoFileDetails < 3) { - o.audioStreams = buildUnnamed635(); + o.audioStreams = buildUnnamed610(); o.bitrateBps = "foo"; o.container = "foo"; o.creationTime = "foo"; @@ -5116,7 +5116,7 @@ o.fileName = "foo"; o.fileSize = "foo"; o.fileType = "foo"; - o.videoStreams = buildUnnamed636(); + o.videoStreams = buildUnnamed611(); } buildCounterVideoFileDetails--; return o; @@ -5125,7 +5125,7 @@ checkVideoFileDetails(api.VideoFileDetails o) { buildCounterVideoFileDetails++; if (buildCounterVideoFileDetails < 3) { - checkUnnamed635(o.audioStreams); + checkUnnamed610(o.audioStreams); unittest.expect(o.bitrateBps, unittest.equals('foo')); unittest.expect(o.container, unittest.equals('foo')); unittest.expect(o.creationTime, unittest.equals('foo')); @@ -5133,7 +5133,7 @@ unittest.expect(o.fileName, unittest.equals('foo')); unittest.expect(o.fileSize, unittest.equals('foo')); unittest.expect(o.fileType, unittest.equals('foo')); - checkUnnamed636(o.videoStreams); + checkUnnamed611(o.videoStreams); } buildCounterVideoFileDetails--; } @@ -5196,14 +5196,14 @@ buildCounterVideoFileDetailsVideoStream--; } -buildUnnamed637() { +buildUnnamed612() { var o = new core.List<api.VideoRating>(); o.add(buildVideoRating()); o.add(buildVideoRating()); return o; } -checkUnnamed637(core.List<api.VideoRating> o) { +checkUnnamed612(core.List<api.VideoRating> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoRating(o[0]); checkVideoRating(o[1]); @@ -5216,7 +5216,7 @@ if (buildCounterVideoGetRatingResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed637(); + o.items = buildUnnamed612(); o.kind = "foo"; o.visitorId = "foo"; } @@ -5229,21 +5229,21 @@ if (buildCounterVideoGetRatingResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed637(o.items); + checkUnnamed612(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } buildCounterVideoGetRatingResponse--; } -buildUnnamed638() { +buildUnnamed613() { var o = new core.List<api.Video>(); o.add(buildVideo()); o.add(buildVideo()); return o; } -checkUnnamed638(core.List<api.Video> o) { +checkUnnamed613(core.List<api.Video> o) { unittest.expect(o, unittest.hasLength(2)); checkVideo(o[0]); checkVideo(o[1]); @@ -5256,7 +5256,7 @@ if (buildCounterVideoListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed638(); + o.items = buildUnnamed613(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -5273,7 +5273,7 @@ if (buildCounterVideoListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed638(o.items); + checkUnnamed613(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -5432,14 +5432,14 @@ buildCounterVideoProcessingDetailsProcessingProgress--; } -buildUnnamed639() { +buildUnnamed614() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed639(core.List<core.String> o) { +checkUnnamed614(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5450,7 +5450,7 @@ var o = new api.VideoProjectDetails(); buildCounterVideoProjectDetails++; if (buildCounterVideoProjectDetails < 3) { - o.tags = buildUnnamed639(); + o.tags = buildUnnamed614(); } buildCounterVideoProjectDetails--; return o; @@ -5459,7 +5459,7 @@ checkVideoProjectDetails(api.VideoProjectDetails o) { buildCounterVideoProjectDetails++; if (buildCounterVideoProjectDetails < 3) { - checkUnnamed639(o.tags); + checkUnnamed614(o.tags); } buildCounterVideoProjectDetails--; } @@ -5508,14 +5508,14 @@ buildCounterVideoRecordingDetails--; } -buildUnnamed640() { +buildUnnamed615() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed640(core.List<core.String> o) { +checkUnnamed615(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5535,7 +5535,7 @@ o.liveBroadcastContent = "foo"; o.localized = buildVideoLocalization(); o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); - o.tags = buildUnnamed640(); + o.tags = buildUnnamed615(); o.thumbnails = buildThumbnailDetails(); o.title = "foo"; } @@ -5555,7 +5555,7 @@ unittest.expect(o.liveBroadcastContent, unittest.equals('foo')); checkVideoLocalization(o.localized); unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed640(o.tags); + checkUnnamed615(o.tags); checkThumbnailDetails(o.thumbnails); unittest.expect(o.title, unittest.equals('foo')); } @@ -5622,66 +5622,66 @@ buildCounterVideoStatus--; } -buildUnnamed641() { +buildUnnamed616() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed641(core.List<core.String> o) { +checkUnnamed616(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed642() { +buildUnnamed617() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed642(core.List<core.String> o) { +checkUnnamed617(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed643() { +buildUnnamed618() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed643(core.List<core.String> o) { +checkUnnamed618(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed644() { +buildUnnamed619() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed644(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')); } -buildUnnamed645() { +buildUnnamed620() { var o = new core.List<api.VideoSuggestionsTagSuggestion>(); o.add(buildVideoSuggestionsTagSuggestion()); o.add(buildVideoSuggestionsTagSuggestion()); return o; } -checkUnnamed645(core.List<api.VideoSuggestionsTagSuggestion> o) { +checkUnnamed620(core.List<api.VideoSuggestionsTagSuggestion> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoSuggestionsTagSuggestion(o[0]); checkVideoSuggestionsTagSuggestion(o[1]); @@ -5692,11 +5692,11 @@ var o = new api.VideoSuggestions(); buildCounterVideoSuggestions++; if (buildCounterVideoSuggestions < 3) { - o.editorSuggestions = buildUnnamed641(); - o.processingErrors = buildUnnamed642(); - o.processingHints = buildUnnamed643(); - o.processingWarnings = buildUnnamed644(); - o.tagSuggestions = buildUnnamed645(); + o.editorSuggestions = buildUnnamed616(); + o.processingErrors = buildUnnamed617(); + o.processingHints = buildUnnamed618(); + o.processingWarnings = buildUnnamed619(); + o.tagSuggestions = buildUnnamed620(); } buildCounterVideoSuggestions--; return o; @@ -5705,23 +5705,23 @@ checkVideoSuggestions(api.VideoSuggestions o) { buildCounterVideoSuggestions++; if (buildCounterVideoSuggestions < 3) { - checkUnnamed641(o.editorSuggestions); - checkUnnamed642(o.processingErrors); - checkUnnamed643(o.processingHints); - checkUnnamed644(o.processingWarnings); - checkUnnamed645(o.tagSuggestions); + checkUnnamed616(o.editorSuggestions); + checkUnnamed617(o.processingErrors); + checkUnnamed618(o.processingHints); + checkUnnamed619(o.processingWarnings); + checkUnnamed620(o.tagSuggestions); } buildCounterVideoSuggestions--; } -buildUnnamed646() { +buildUnnamed621() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed646(core.List<core.String> o) { +checkUnnamed621(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5732,7 +5732,7 @@ var o = new api.VideoSuggestionsTagSuggestion(); buildCounterVideoSuggestionsTagSuggestion++; if (buildCounterVideoSuggestionsTagSuggestion < 3) { - o.categoryRestricts = buildUnnamed646(); + o.categoryRestricts = buildUnnamed621(); o.tag = "foo"; } buildCounterVideoSuggestionsTagSuggestion--; @@ -5742,46 +5742,46 @@ checkVideoSuggestionsTagSuggestion(api.VideoSuggestionsTagSuggestion o) { buildCounterVideoSuggestionsTagSuggestion++; if (buildCounterVideoSuggestionsTagSuggestion < 3) { - checkUnnamed646(o.categoryRestricts); + checkUnnamed621(o.categoryRestricts); unittest.expect(o.tag, unittest.equals('foo')); } buildCounterVideoSuggestionsTagSuggestion--; } -buildUnnamed647() { +buildUnnamed622() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed647(core.List<core.String> o) { +checkUnnamed622(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed648() { +buildUnnamed623() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed648(core.List<core.String> o) { +checkUnnamed623(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed649() { +buildUnnamed624() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed649(core.List<core.String> o) { +checkUnnamed624(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5792,9 +5792,9 @@ var o = new api.VideoTopicDetails(); buildCounterVideoTopicDetails++; if (buildCounterVideoTopicDetails < 3) { - o.relevantTopicIds = buildUnnamed647(); - o.topicCategories = buildUnnamed648(); - o.topicIds = buildUnnamed649(); + o.relevantTopicIds = buildUnnamed622(); + o.topicCategories = buildUnnamed623(); + o.topicIds = buildUnnamed624(); } buildCounterVideoTopicDetails--; return o; @@ -5803,9 +5803,9 @@ checkVideoTopicDetails(api.VideoTopicDetails o) { buildCounterVideoTopicDetails++; if (buildCounterVideoTopicDetails < 3) { - checkUnnamed647(o.relevantTopicIds); - checkUnnamed648(o.topicCategories); - checkUnnamed649(o.topicIds); + checkUnnamed622(o.relevantTopicIds); + checkUnnamed623(o.topicCategories); + checkUnnamed624(o.topicIds); } buildCounterVideoTopicDetails--; }
diff --git a/generated/googleapis/test/youtubeanalytics/v1_test.dart b/generated/googleapis/test/youtubeanalytics/v1_test.dart index 2120490..e16143a 100644 --- a/generated/googleapis/test/youtubeanalytics/v1_test.dart +++ b/generated/googleapis/test/youtubeanalytics/v1_test.dart
@@ -168,14 +168,14 @@ buildCounterGroupItem--; } -buildUnnamed291() { +buildUnnamed266() { var o = new core.List<api.GroupItem>(); o.add(buildGroupItem()); o.add(buildGroupItem()); return o; } -checkUnnamed291(core.List<api.GroupItem> o) { +checkUnnamed266(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 = buildUnnamed291(); + o.items = buildUnnamed266(); o.kind = "foo"; } buildCounterGroupItemListResponse--; @@ -198,20 +198,20 @@ buildCounterGroupItemListResponse++; if (buildCounterGroupItemListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed291(o.items); + checkUnnamed266(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterGroupItemListResponse--; } -buildUnnamed292() { +buildUnnamed267() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed292(core.List<api.Group> o) { +checkUnnamed267(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 = buildUnnamed292(); + o.items = buildUnnamed267(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -235,7 +235,7 @@ buildCounterGroupListResponse++; if (buildCounterGroupListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed292(o.items); + checkUnnamed267(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -265,43 +265,43 @@ buildCounterResultTableColumnHeaders--; } -buildUnnamed293() { +buildUnnamed268() { var o = new core.List<api.ResultTableColumnHeaders>(); o.add(buildResultTableColumnHeaders()); o.add(buildResultTableColumnHeaders()); return o; } -checkUnnamed293(core.List<api.ResultTableColumnHeaders> o) { +checkUnnamed268(core.List<api.ResultTableColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkResultTableColumnHeaders(o[0]); checkResultTableColumnHeaders(o[1]); } -buildUnnamed294() { +buildUnnamed269() { 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; } -checkUnnamed294(core.List<core.Object> o) { +checkUnnamed269(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed295() { +buildUnnamed270() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed294()); - o.add(buildUnnamed294()); + o.add(buildUnnamed269()); + o.add(buildUnnamed269()); return o; } -checkUnnamed295(core.List<core.List<core.Object>> o) { +checkUnnamed270(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed294(o[0]); - checkUnnamed294(o[1]); + checkUnnamed269(o[0]); + checkUnnamed269(o[1]); } core.int buildCounterResultTable = 0; @@ -309,9 +309,9 @@ var o = new api.ResultTable(); buildCounterResultTable++; if (buildCounterResultTable < 3) { - o.columnHeaders = buildUnnamed293(); + o.columnHeaders = buildUnnamed268(); o.kind = "foo"; - o.rows = buildUnnamed295(); + o.rows = buildUnnamed270(); } buildCounterResultTable--; return o; @@ -320,9 +320,9 @@ checkResultTable(api.ResultTable o) { buildCounterResultTable++; if (buildCounterResultTable < 3) { - checkUnnamed293(o.columnHeaders); + checkUnnamed268(o.columnHeaders); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed295(o.rows); + checkUnnamed270(o.rows); } buildCounterResultTable--; }
diff --git a/generated/googleapis/test/youtubereporting/v1_test.dart b/generated/googleapis/test/youtubereporting/v1_test.dart index 81923fe..10c3e69 100644 --- a/generated/googleapis/test/youtubereporting/v1_test.dart +++ b/generated/googleapis/test/youtubereporting/v1_test.dart
@@ -97,14 +97,14 @@ buildCounterJob--; } -buildUnnamed1085() { +buildUnnamed1061() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed1085(core.List<api.Job> o) { +checkUnnamed1061(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -115,7 +115,7 @@ var o = new api.ListJobsResponse(); buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - o.jobs = buildUnnamed1085(); + o.jobs = buildUnnamed1061(); o.nextPageToken = "foo"; } buildCounterListJobsResponse--; @@ -125,20 +125,20 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed1085(o.jobs); + checkUnnamed1061(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobsResponse--; } -buildUnnamed1086() { +buildUnnamed1062() { var o = new core.List<api.ReportType>(); o.add(buildReportType()); o.add(buildReportType()); return o; } -checkUnnamed1086(core.List<api.ReportType> o) { +checkUnnamed1062(core.List<api.ReportType> o) { unittest.expect(o, unittest.hasLength(2)); checkReportType(o[0]); checkReportType(o[1]); @@ -150,7 +150,7 @@ buildCounterListReportTypesResponse++; if (buildCounterListReportTypesResponse < 3) { o.nextPageToken = "foo"; - o.reportTypes = buildUnnamed1086(); + o.reportTypes = buildUnnamed1062(); } buildCounterListReportTypesResponse--; return o; @@ -160,19 +160,19 @@ buildCounterListReportTypesResponse++; if (buildCounterListReportTypesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1086(o.reportTypes); + checkUnnamed1062(o.reportTypes); } buildCounterListReportTypesResponse--; } -buildUnnamed1087() { +buildUnnamed1063() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed1087(core.List<api.Report> o) { +checkUnnamed1063(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -184,7 +184,7 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { o.nextPageToken = "foo"; - o.reports = buildUnnamed1087(); + o.reports = buildUnnamed1063(); } buildCounterListReportsResponse--; return o; @@ -194,7 +194,7 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1087(o.reports); + checkUnnamed1063(o.reports); } buildCounterListReportsResponse--; } @@ -614,8 +614,8 @@ api.JobsReportsResourceApi res = new api.YoutubereportingApi(mock).jobs.reports; var arg_jobId = "foo"; var arg_createdAfter = "foo"; - var arg_startTimeAtOrAfter = "foo"; var arg_pageToken = "foo"; + var arg_startTimeAtOrAfter = "foo"; var arg_pageSize = 42; var arg_onBehalfOfContentOwner = "foo"; var arg_startTimeBefore = "foo"; @@ -653,8 +653,8 @@ } } unittest.expect(queryMap["createdAfter"].first, unittest.equals(arg_createdAfter)); - unittest.expect(queryMap["startTimeAtOrAfter"].first, unittest.equals(arg_startTimeAtOrAfter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["startTimeAtOrAfter"].first, unittest.equals(arg_startTimeAtOrAfter)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["startTimeBefore"].first, unittest.equals(arg_startTimeBefore)); @@ -666,7 +666,7 @@ var resp = convert.JSON.encode(buildListReportsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_jobId, createdAfter: arg_createdAfter, startTimeAtOrAfter: arg_startTimeAtOrAfter, pageToken: arg_pageToken, pageSize: arg_pageSize, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, startTimeBefore: arg_startTimeBefore).then(unittest.expectAsync1(((api.ListReportsResponse response) { + res.list(arg_jobId, createdAfter: arg_createdAfter, pageToken: arg_pageToken, startTimeAtOrAfter: arg_startTimeAtOrAfter, pageSize: arg_pageSize, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, startTimeBefore: arg_startTimeBefore).then(unittest.expectAsync1(((api.ListReportsResponse response) { checkListReportsResponse(response); }))); }); @@ -730,10 +730,10 @@ var mock = new HttpServerMock(); api.ReportTypesResourceApi res = new api.YoutubereportingApi(mock).reportTypes; + var arg_onBehalfOfContentOwner = "foo"; var arg_includeSystemManaged = true; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_onBehalfOfContentOwner = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -760,10 +760,10 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["includeSystemManaged"].first, unittest.equals("$arg_includeSystemManaged")); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); var h = { @@ -772,7 +772,7 @@ var resp = convert.JSON.encode(buildListReportTypesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(includeSystemManaged: arg_includeSystemManaged, pageToken: arg_pageToken, pageSize: arg_pageSize, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync1(((api.ListReportTypesResponse response) { + res.list(onBehalfOfContentOwner: arg_onBehalfOfContentOwner, includeSystemManaged: arg_includeSystemManaged, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListReportTypesResponse response) { checkListReportTypesResponse(response); }))); });
diff --git a/generated/googleapis_beta/CHANGELOG.md b/generated/googleapis_beta/CHANGELOG.md index 14f9810..87a1abf 100644 --- a/generated/googleapis_beta/CHANGELOG.md +++ b/generated/googleapis_beta/CHANGELOG.md
@@ -1,3 +1,7 @@ +## 0.39.0 + +* [api-removed] dataproc:v1beta1 + ## 0.38.1 * [api-new] oslogin:v1alpha
diff --git a/generated/googleapis_beta/README.md b/generated/googleapis_beta/README.md index 4e6f6d0..e994f2a 100644 --- a/generated/googleapis_beta/README.md +++ b/generated/googleapis_beta/README.md
@@ -123,12 +123,6 @@ Official API documentation: https://cloud.google.com/dataflow -####  Google Cloud Dataproc API - dataproc v1beta1 - -Manages Hadoop-based clusters and jobs on Google Cloud Platform. - -Official API documentation: https://cloud.google.com/dataproc/ - ####  DLP API - dlp v2beta1 The Google Data Loss Prevention API provides methods for detection of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories. @@ -161,9 +155,9 @@ ####  Google Cloud OS Login API - oslogin v1alpha -A Google Cloud API for managing OS login configuration for Directory API users. +Manages OS login configuration for Directory API users. -Official API documentation: https://developers.google.com/apis-explorer/#p/oslogin/v1alpha/ +Official API documentation: https://cloud.google.com/compute/docs/oslogin/rest/ ####  Google Proximity Beacon API - proximitybeacon v1beta1
diff --git a/generated/googleapis_beta/lib/adexchangebuyer2/v2beta1.dart b/generated/googleapis_beta/lib/adexchangebuyer2/v2beta1.dart index 8e60198..196c43c 100644 --- a/generated/googleapis_beta/lib/adexchangebuyer2/v2beta1.dart +++ b/generated/googleapis_beta/lib/adexchangebuyer2/v2beta1.dart
@@ -154,10 +154,6 @@ * [accountId] - Unique numerical account ID of the sponsor buyer to list the * clients for. * - * [pageSize] - Requested page size. The server may return fewer clients than - * requested. - * If unspecified, the server will pick an appropriate default. - * * [pageToken] - A token identifying a page of results the server should * return. * Typically, this is the value of @@ -165,6 +161,10 @@ * returned from the previous call to the * accounts.clients.list method. * + * [pageSize] - Requested page size. The server may return fewer clients than + * requested. + * If unspecified, the server will pick an appropriate default. + * * Completes with a [ListClientsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -173,7 +173,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<ListClientsResponse> list(core.String accountId, {core.int pageSize, core.String pageToken}) { + async.Future<ListClientsResponse> list(core.String accountId, {core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -184,12 +184,12 @@ if (accountId == null) { throw new core.ArgumentError("Parameter accountId is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/clients'; @@ -1045,6 +1045,16 @@ * [creativeId] - The creative ID to list the associations from. * Specify "-" to list all creatives under the above account. * + * [pageToken] - A token identifying a page of results the server should + * return. + * Typically, this is the value of + * ListDealAssociationsResponse.next_page_token + * returned from the previous call to 'ListDealAssociations' method. + * + * [pageSize] - Requested page size. Server may return fewer associations than + * requested. + * If unspecified, server will pick an appropriate default. + * * [query] - An optional query string to filter deal associations. If no * filter is * specified, all associations will be returned. @@ -1060,16 +1070,6 @@ * </ul> * Example: 'dealsId=12345 AND dealsStatus:disapproved' * - * [pageToken] - A token identifying a page of results the server should - * return. - * Typically, this is the value of - * ListDealAssociationsResponse.next_page_token - * returned from the previous call to 'ListDealAssociations' method. - * - * [pageSize] - Requested page size. Server may return fewer associations than - * requested. - * If unspecified, server will pick an appropriate default. - * * Completes with a [ListDealAssociationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1078,7 +1078,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<ListDealAssociationsResponse> list(core.String accountId, core.String creativeId, {core.String query, core.String pageToken, core.int pageSize}) { + async.Future<ListDealAssociationsResponse> list(core.String accountId, core.String creativeId, {core.String pageToken, core.int pageSize, core.String query}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1092,15 +1092,15 @@ if (creativeId == null) { throw new core.ArgumentError("Parameter creativeId is required."); } - if (query != null) { - _queryParams["query"] = [query]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (query != null) { + _queryParams["query"] = [query]; + } _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/creatives/' + commons.Escaper.ecapeVariable('$creativeId') + '/dealAssociations'; @@ -1689,10 +1689,6 @@ * * [filterSetId] - The ID of the filter set to apply. * - * [pageSize] - Requested page size. The server may return fewer results than - * requested. - * If unspecified, the server will pick an appropriate default. - * * [pageToken] - A token identifying a page of results the server should * return. * Typically, this is the value of @@ -1701,6 +1697,10 @@ * accounts.filterSets.filteredBids.list * method. * + * [pageSize] - Requested page size. The server may return fewer results than + * requested. + * If unspecified, the server will pick an appropriate default. + * * Completes with a [ListFilteredBidsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1709,7 +1709,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<ListFilteredBidsResponse> list(core.String accountId, core.String filterSetId, {core.int pageSize, core.String pageToken}) { + async.Future<ListFilteredBidsResponse> list(core.String accountId, core.String filterSetId, {core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1723,12 +1723,12 @@ if (filterSetId == null) { throw new core.ArgumentError("Parameter filterSetId is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBids'; @@ -1748,8 +1748,6 @@ class AccountsFilterSetsFilteredBidsCreativesResourceApi { final commons.ApiRequester _requester; - AccountsFilterSetsFilteredBidsCreativesDetailsResourceApi get details => new AccountsFilterSetsFilteredBidsCreativesDetailsResourceApi(_requester); - AccountsFilterSetsFilteredBidsCreativesResourceApi(commons.ApiRequester client) : _requester = client; @@ -1828,92 +1826,6 @@ } -class AccountsFilterSetsFilteredBidsCreativesDetailsResourceApi { - final commons.ApiRequester _requester; - - AccountsFilterSetsFilteredBidsCreativesDetailsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * List all details associated with a specific reason for which bids were - * filtered and a specific creative that was filtered for that reason, with - * the number of bids filtered for each detail. - * - * Request parameters: - * - * [accountId] - Account ID of the buyer. - * - * [filterSetId] - The ID of the filter set to apply. - * - * [creativeStatusId] - The ID of the creative status for which to retrieve a - * breakdown by detail. - * See - * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes). - * - * [creativeId] - The creative ID for which to retrieve a breakdown by detail. - * - * [pageToken] - A token identifying a page of results the server should - * return. - * Typically, this is the value of - * ListCreativeStatusAndCreativeBreakdownByDetailResponse.nextPageToken - * returned from the previous call to the - * accounts.filterSets.filteredBids.creatives.details.list - * method. - * - * [pageSize] - Requested page size. The server may return fewer results than - * requested. - * If unspecified, the server will pick an appropriate default. - * - * Completes with a [ListCreativeStatusAndCreativeBreakdownByDetailResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ListCreativeStatusAndCreativeBreakdownByDetailResponse> list(core.String accountId, core.String filterSetId, core.int creativeStatusId, core.String creativeId, {core.String pageToken, core.int pageSize}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (accountId == null) { - throw new core.ArgumentError("Parameter accountId is required."); - } - if (filterSetId == null) { - throw new core.ArgumentError("Parameter filterSetId is required."); - } - if (creativeStatusId == null) { - throw new core.ArgumentError("Parameter creativeStatusId is required."); - } - if (creativeId == null) { - throw new core.ArgumentError("Parameter creativeId is required."); - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - - _url = 'v2beta1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/filterSets/' + commons.Escaper.ecapeVariable('$filterSetId') + '/filteredBids/' + commons.Escaper.ecapeVariable('$creativeStatusId') + '/creatives/' + commons.Escaper.ecapeVariable('$creativeId') + '/details'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ListCreativeStatusAndCreativeBreakdownByDetailResponse.fromJson(data)); - } - -} - - class AccountsFilterSetsFilteredBidsDetailsResourceApi { final commons.ApiRequester _requester; @@ -1934,6 +1846,7 @@ * breakdown by detail. * See * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes). + * Details are only available for statuses 14, 15, 17, 18, 19, 86, and 87. * * [pageToken] - A token identifying a page of results the server should * return. @@ -3580,8 +3493,8 @@ * The granularity of time intervals if a time series breakdown is desired; * optional. * Possible string values are: - * - "INTERVAL_UNSPECIFIED" : A placeholder for an unspecified interval; no - * time series is applied. + * - "TIME_SERIES_GRANULARITY_UNSPECIFIED" : A placeholder for an unspecified + * interval; no time series is applied. * All rows in response will contain data for the entire requested time range. * - "HOURLY" : Indicates that data will be broken down by the hour. * - "DAILY" : Indicates that data will be broken down by the day. @@ -4201,73 +4114,6 @@ } /** - * Response message for listing all details associated with a given filtered bid - * reason and a given creative. - */ -class ListCreativeStatusAndCreativeBreakdownByDetailResponse { - /** - * The type of detail that the detail IDs represent. - * Possible string values are: - * - "TYPE_UNSPECIFIED" : A placeholder for an undefined status. - * This value will never be returned in responses. - * - "CREATIVE_ATTRIBUTE" : Indicates that the detail ID refers to a creative - * attribute; see - * [publisher-excludable-creative-attributes](https://developers.google.com/ad-exchange/rtb/downloads/publisher-excludable-creative-attributes). - * - "VENDOR" : Indicates that the detail ID refers to a vendor; see - * [vendors](https://developers.google.com/ad-exchange/rtb/downloads/vendors). - * - "SENSITIVE_CATEGORY" : Indicates that the detail ID refers to a sensitive - * category; see - * [ad-sensitive-categories](https://developers.google.com/ad-exchange/rtb/downloads/ad-sensitive-categories). - * - "PRODUCT_CATEGORY" : Indicates that the detail ID refers to a product - * category; see - * [ad-product-categories](https://developers.google.com/ad-exchange/rtb/downloads/ad-product-categories). - */ - core.String detailType; - /** - * List of rows, with counts of bids with a given creative status and - * creative, aggregated by detail. - */ - core.List<FilteredBidDetailRow> filteredBidDetailRows; - /** - * A token to retrieve the next page of results. - * Pass this value in the - * ListCreativeStatusAndCreativeBreakdownByDetailRequest.pageToken - * field in the subsequent call to the - * accounts.filterSets.filteredBids.creatives.details.list - * method to retrieve the next page of results. - */ - core.String nextPageToken; - - ListCreativeStatusAndCreativeBreakdownByDetailResponse(); - - ListCreativeStatusAndCreativeBreakdownByDetailResponse.fromJson(core.Map _json) { - if (_json.containsKey("detailType")) { - detailType = _json["detailType"]; - } - if (_json.containsKey("filteredBidDetailRows")) { - filteredBidDetailRows = _json["filteredBidDetailRows"].map((value) => new FilteredBidDetailRow.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 (detailType != null) { - _json["detailType"] = detailType; - } - if (filteredBidDetailRows != null) { - _json["filteredBidDetailRows"] = filteredBidDetailRows.map((value) => (value).toJson()).toList(); - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** * Response message for listing all creatives associated with a given filtered * bid reason. */ @@ -4318,7 +4164,7 @@ /** * The type of detail that the detail IDs represent. * Possible string values are: - * - "TYPE_UNSPECIFIED" : A placeholder for an undefined status. + * - "DETAIL_TYPE_UNSPECIFIED" : A placeholder for an undefined status. * This value will never be returned in responses. * - "CREATIVE_ATTRIBUTE" : Indicates that the detail ID refers to a creative * attribute; see
diff --git a/generated/googleapis_beta/lib/appengine/v1beta.dart b/generated/googleapis_beta/lib/appengine/v1beta.dart index 45861e7..a280f0f 100644 --- a/generated/googleapis_beta/lib/appengine/v1beta.dart +++ b/generated/googleapis_beta/lib/appengine/v1beta.dart
@@ -399,10 +399,15 @@ * [appsId] - Part of `parent`. Name of the parent Application resource. * Example: apps/myapp. * - * [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_CERTIFICATE" : A BASIC_CERTIFICATE. + * - "FULL_CERTIFICATE" : A FULL_CERTIFICATE. + * + * [pageToken] - Continuation token for fetching the next page of results. + * * Completes with a [ListAuthorizedCertificatesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -411,7 +416,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<ListAuthorizedCertificatesResponse> list(core.String appsId, {core.String pageToken, core.int pageSize}) { + async.Future<ListAuthorizedCertificatesResponse> list(core.String appsId, {core.int pageSize, core.String view, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -422,12 +427,15 @@ if (appsId == null) { throw new core.ArgumentError("Parameter appsId is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (view != null) { + _queryParams["view"] = [view]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/authorizedCertificates'; @@ -1191,12 +1199,12 @@ * [appsId] - Part of `name`. The resource that owns the locations collection, * if applicable. * - * [pageToken] - The standard list page token. - * * [pageSize] - The standard list page size. * * [filter] - The standard list filter. * + * [pageToken] - The standard list page token. + * * Completes with a [ListLocationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1205,7 +1213,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListLocationsResponse> list(core.String appsId, {core.String pageToken, core.int pageSize, core.String filter}) { + async.Future<ListLocationsResponse> list(core.String appsId, {core.int pageSize, core.String filter, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1216,15 +1224,15 @@ if (appsId == null) { throw new core.ArgumentError("Parameter appsId 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]; + } _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/locations'; @@ -1308,12 +1316,12 @@ * * [appsId] - Part of `name`. The name of the operation's parent resource. * - * [pageSize] - The standard list page size. - * * [filter] - The standard list filter. * * [pageToken] - The standard list page token. * + * [pageSize] - The standard list page size. + * * Completes with a [ListOperationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1322,7 +1330,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<ListOperationsResponse> list(core.String appsId, {core.int pageSize, core.String filter, core.String pageToken}) { + async.Future<ListOperationsResponse> list(core.String appsId, {core.String filter, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1333,15 +1341,15 @@ if (appsId == null) { throw new core.ArgumentError("Parameter appsId 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}"]; + } _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operations'; @@ -1518,6 +1526,8 @@ * * [servicesId] - Part of `name`. See documentation of `appsId`. * + * [updateMask] - Standard field mask for the set of fields to be updated. + * * [migrateTraffic] - Set to true to gradually shift traffic to one or more * versions that you specify. By default, traffic is shifted immediately. For * gradual traffic migration, the target versions must be located within @@ -1532,8 +1542,6 @@ * Splitting Traffic * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic). * - * [updateMask] - Standard field mask for the set of fields to be updated. - * * Completes with a [Operation]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1542,7 +1550,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> patch(Service request, core.String appsId, core.String servicesId, {core.bool migrateTraffic, core.String updateMask}) { + async.Future<Operation> patch(Service request, core.String appsId, core.String servicesId, {core.String updateMask, core.bool migrateTraffic}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1559,12 +1567,12 @@ if (servicesId == null) { throw new core.ArgumentError("Parameter servicesId is required."); } - if (migrateTraffic != null) { - _queryParams["migrateTraffic"] = ["${migrateTraffic}"]; - } if (updateMask != null) { _queryParams["updateMask"] = [updateMask]; } + if (migrateTraffic != null) { + _queryParams["migrateTraffic"] = ["${migrateTraffic}"]; + } _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/' + commons.Escaper.ecapeVariable('$servicesId'); @@ -1758,8 +1766,6 @@ * * [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. @@ -1767,6 +1773,8 @@ * - "BASIC" : A BASIC. * - "FULL" : A FULL. * + * [pageToken] - Continuation token for fetching the next page of results. + * * Completes with a [ListVersionsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1775,7 +1783,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<ListVersionsResponse> list(core.String appsId, core.String servicesId, {core.String pageToken, core.int pageSize, core.String view}) { + async.Future<ListVersionsResponse> list(core.String appsId, core.String servicesId, {core.int pageSize, core.String view, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1789,15 +1797,15 @@ if (servicesId == null) { throw new core.ArgumentError("Parameter servicesId is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } if (view != null) { _queryParams["view"] = [view]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'v1beta/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services/' + commons.Escaper.ecapeVariable('$servicesId') + '/versions'; @@ -2257,7 +2265,7 @@ /** * An Application resource contains the top-level configuration of an App Engine - * application. Next tag: 19 + * application. Next tag: 20 */ class Application { /** @@ -2434,8 +2442,8 @@ /** * Aggregate count of the domain mappings with this certificate mapped. This * count includes domain mappings on applications for which the user does not - * have VIEWER permissions.Only returned by GET requests when specifically - * requested by the view=FULL option.@OutputOnly + * have VIEWER permissions.Only returned by GET or LIST requests when + * specifically requested by the view=FULL_CERTIFICATE option.@OutputOnly */ core.int domainMappingsCount; /** @@ -2465,8 +2473,8 @@ * not represent the full list of mapped domain mappings if the user does not * have VIEWER permissions on all of the applications that have this * certificate mapped. See domain_mappings_count for a complete count.Only - * returned by GET requests when specifically requested by the view=FULL - * option.@OutputOnly + * returned by GET or LIST requests when specifically requested by the + * view=FULL_CERTIFICATE option.@OutputOnly */ core.List<core.String> visibleDomainMappings; @@ -5331,8 +5339,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a common set - * of message types for APIs to use. + * A list of messages that carry the error details. There 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.
diff --git a/generated/googleapis_beta/lib/appengine/v1beta4.dart b/generated/googleapis_beta/lib/appengine/v1beta4.dart index e0d2b7f..65503b1 100644 --- a/generated/googleapis_beta/lib/appengine/v1beta4.dart +++ b/generated/googleapis_beta/lib/appengine/v1beta4.dart
@@ -414,10 +414,10 @@ * [appsId] - Part of `name`. Name of the resource requested. Example: * apps/myapp. * - * [pageToken] - Continuation token for fetching the next page of results. - * * [pageSize] - Maximum results to return per page. * + * [pageToken] - Continuation token for fetching the next page of results. + * * Completes with a [ListModulesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -426,7 +426,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<ListModulesResponse> list(core.String appsId, {core.String pageToken, core.int pageSize}) { + async.Future<ListModulesResponse> list(core.String appsId, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -437,12 +437,12 @@ if (appsId == null) { throw new core.ArgumentError("Parameter appsId is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/modules'; @@ -1154,12 +1154,12 @@ * * [appsId] - Part of `name`. The name of the operation's parent resource. * + * [pageSize] - The standard list page size. + * * [filter] - The standard list filter. * * [pageToken] - The standard list page token. * - * [pageSize] - The standard list page size. - * * Completes with a [ListOperationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1168,7 +1168,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<ListOperationsResponse> list(core.String appsId, {core.String filter, core.String pageToken, core.int pageSize}) { + async.Future<ListOperationsResponse> list(core.String appsId, {core.int pageSize, core.String filter, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1179,15 +1179,15 @@ if (appsId == null) { throw new core.ArgumentError("Parameter appsId 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}"]; - } _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operations'; @@ -3533,8 +3533,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a common set - * of message types for APIs to use. + * A list of messages that carry the error details. There 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.
diff --git a/generated/googleapis_beta/lib/appengine/v1beta5.dart b/generated/googleapis_beta/lib/appengine/v1beta5.dart index 674fe91..9dd2b0f 100644 --- a/generated/googleapis_beta/lib/appengine/v1beta5.dart +++ b/generated/googleapis_beta/lib/appengine/v1beta5.dart
@@ -376,12 +376,12 @@ * * [appsId] - Part of `name`. The name of the operation's parent resource. * - * [pageSize] - The standard list page size. - * * [filter] - The standard list filter. * * [pageToken] - The standard list page token. * + * [pageSize] - The standard list page size. + * * Completes with a [ListOperationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -390,7 +390,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<ListOperationsResponse> list(core.String appsId, {core.int pageSize, core.String filter, core.String pageToken}) { + async.Future<ListOperationsResponse> list(core.String appsId, {core.String filter, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -401,15 +401,15 @@ if (appsId == null) { throw new core.ArgumentError("Parameter appsId 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}"]; + } _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operations'; @@ -532,10 +532,10 @@ * [appsId] - Part of `name`. Name of the resource requested. Example: * apps/myapp. * - * [pageToken] - Continuation token for fetching the next page of results. - * * [pageSize] - Maximum results to return per page. * + * [pageToken] - Continuation token for fetching the next page of results. + * * Completes with a [ListServicesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -544,7 +544,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListServicesResponse> list(core.String appsId, {core.String pageToken, core.int pageSize}) { + async.Future<ListServicesResponse> list(core.String appsId, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -555,12 +555,12 @@ if (appsId == null) { throw new core.ArgumentError("Parameter appsId is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/services'; @@ -3516,8 +3516,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a common set - * of message types for APIs to use. + * A list of messages that carry the error details. There 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.
diff --git a/generated/googleapis_beta/lib/clouderrorreporting/v1beta1.dart b/generated/googleapis_beta/lib/clouderrorreporting/v1beta1.dart index be3e8e8..ff813bc 100644 --- a/generated/googleapis_beta/lib/clouderrorreporting/v1beta1.dart +++ b/generated/googleapis_beta/lib/clouderrorreporting/v1beta1.dart
@@ -110,12 +110,6 @@ * Example: `projects/my-project-123`. * Value must have pattern "^projects/[^/]+$". * - * [pageToken] - [Optional] A `next_page_token` provided by a previous - * response. - * - * [serviceFilter_service] - [Optional] The exact value to match against - * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service). - * * [pageSize] - [Optional] The maximum number of results to return per * response. * @@ -136,6 +130,12 @@ * * [groupId] - [Required] The group for which events shall be returned. * + * [serviceFilter_service] - [Optional] The exact value to match against + * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service). + * + * [pageToken] - [Optional] A `next_page_token` provided by a previous + * response. + * * Completes with a [ListEventsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -144,7 +144,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<ListEventsResponse> list(core.String projectName, {core.String pageToken, core.String serviceFilter_service, core.int pageSize, core.String serviceFilter_version, core.String serviceFilter_resourceType, core.String timeRange_period, core.String groupId}) { + async.Future<ListEventsResponse> list(core.String projectName, {core.int pageSize, core.String serviceFilter_version, core.String serviceFilter_resourceType, core.String timeRange_period, core.String groupId, core.String serviceFilter_service, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -155,12 +155,6 @@ if (projectName == null) { throw new core.ArgumentError("Parameter projectName is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (serviceFilter_service != null) { - _queryParams["serviceFilter.service"] = [serviceFilter_service]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } @@ -176,6 +170,12 @@ if (groupId != null) { _queryParams["groupId"] = [groupId]; } + if (serviceFilter_service != null) { + _queryParams["serviceFilter.service"] = [serviceFilter_service]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') + '/events'; @@ -270,41 +270,6 @@ * Example: <code>projects/my-project-123</code>. * Value must have pattern "^projects/[^/]+$". * - * [serviceFilter_service] - [Optional] The exact value to match against - * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service). - * - * [pageSize] - [Optional] The maximum number of results to return per - * response. - * Default is 20. - * - * [order] - [Optional] The sort order in which the results are returned. - * Default is `COUNT_DESC`. - * Possible string values are: - * - "GROUP_ORDER_UNSPECIFIED" : A GROUP_ORDER_UNSPECIFIED. - * - "COUNT_DESC" : A COUNT_DESC. - * - "LAST_SEEN_DESC" : A LAST_SEEN_DESC. - * - "CREATED_DESC" : A CREATED_DESC. - * - "AFFECTED_USERS_DESC" : A AFFECTED_USERS_DESC. - * - * [serviceFilter_version] - [Optional] The exact value to match against - * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version). - * - * [alignmentTime] - [Optional] Time where the timed counts shall be aligned - * if rounded - * alignment is chosen. Default is 00:00 UTC. - * - * [serviceFilter_resourceType] - [Optional] The exact value to match against - * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type). - * - * [timedCountDuration] - [Optional] The preferred duration for a single - * returned `TimedCount`. - * If not set, no timed counts are returned. - * - * [pageToken] - [Optional] A `next_page_token` provided by a previous - * response. To view - * additional results, pass this token along with the identical query - * parameters as the first request. - * * [timeRange_period] - Restricts the query to the specified time range. * Possible string values are: * - "PERIOD_UNSPECIFIED" : A PERIOD_UNSPECIFIED. @@ -325,6 +290,41 @@ * [groupId] - [Optional] List all <code>ErrorGroupStats</code> with these * IDs. * + * [serviceFilter_service] - [Optional] The exact value to match against + * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service). + * + * [pageSize] - [Optional] The maximum number of results to return per + * response. + * Default is 20. + * + * [serviceFilter_version] - [Optional] The exact value to match against + * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version). + * + * [order] - [Optional] The sort order in which the results are returned. + * Default is `COUNT_DESC`. + * Possible string values are: + * - "GROUP_ORDER_UNSPECIFIED" : A GROUP_ORDER_UNSPECIFIED. + * - "COUNT_DESC" : A COUNT_DESC. + * - "LAST_SEEN_DESC" : A LAST_SEEN_DESC. + * - "CREATED_DESC" : A CREATED_DESC. + * - "AFFECTED_USERS_DESC" : A AFFECTED_USERS_DESC. + * + * [alignmentTime] - [Optional] Time where the timed counts shall be aligned + * if rounded + * alignment is chosen. Default is 00:00 UTC. + * + * [serviceFilter_resourceType] - [Optional] The exact value to match against + * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type). + * + * [timedCountDuration] - [Optional] The preferred duration for a single + * returned `TimedCount`. + * If not set, no timed counts are returned. + * + * [pageToken] - [Optional] A `next_page_token` provided by a previous + * response. To view + * additional results, pass this token along with the identical query + * parameters as the first request. + * * Completes with a [ListGroupStatsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -333,7 +333,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<ListGroupStatsResponse> list(core.String projectName, {core.String serviceFilter_service, core.int pageSize, core.String order, core.String serviceFilter_version, core.String alignmentTime, core.String serviceFilter_resourceType, core.String timedCountDuration, core.String pageToken, core.String timeRange_period, core.String alignment, core.List<core.String> groupId}) { + async.Future<ListGroupStatsResponse> list(core.String projectName, {core.String timeRange_period, core.String alignment, core.List<core.String> groupId, core.String serviceFilter_service, core.int pageSize, core.String serviceFilter_version, core.String order, core.String alignmentTime, core.String serviceFilter_resourceType, core.String timedCountDuration, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -344,18 +344,27 @@ if (projectName == null) { throw new core.ArgumentError("Parameter projectName is required."); } + if (timeRange_period != null) { + _queryParams["timeRange.period"] = [timeRange_period]; + } + if (alignment != null) { + _queryParams["alignment"] = [alignment]; + } + if (groupId != null) { + _queryParams["groupId"] = groupId; + } if (serviceFilter_service != null) { _queryParams["serviceFilter.service"] = [serviceFilter_service]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (order != null) { - _queryParams["order"] = [order]; - } if (serviceFilter_version != null) { _queryParams["serviceFilter.version"] = [serviceFilter_version]; } + if (order != null) { + _queryParams["order"] = [order]; + } if (alignmentTime != null) { _queryParams["alignmentTime"] = [alignmentTime]; } @@ -368,15 +377,6 @@ if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } - if (timeRange_period != null) { - _queryParams["timeRange.period"] = [timeRange_period]; - } - if (alignment != null) { - _queryParams["alignment"] = [alignment]; - } - if (groupId != null) { - _queryParams["groupId"] = groupId; - } _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') + '/groupStats'; @@ -528,8 +528,7 @@ * report the error, usually the place where it was logged. * For a logged exception this would be the source line where the * exception is logged, usually close to the place where it was - * caught. This value is in contrast to `Exception.cause_location`, - * which describes the source line where the exception was thrown. + * caught. */ SourceLocation reportLocation; /**
diff --git a/generated/googleapis_beta/lib/cloudresourcemanager/v1beta1.dart b/generated/googleapis_beta/lib/cloudresourcemanager/v1beta1.dart index aa6ba8b..d7dfe7e 100644 --- a/generated/googleapis_beta/lib/cloudresourcemanager/v1beta1.dart +++ b/generated/googleapis_beta/lib/cloudresourcemanager/v1beta1.dart
@@ -624,18 +624,6 @@ * * Request parameters: * - * [pageToken] - A pagination token returned from a previous call to - * ListProjects - * that indicates from where listing should continue. - * - * Optional. - * - * [pageSize] - The maximum number of Projects to return in the response. - * The server can return fewer Projects than requested. - * If unspecified, server picks an appropriate default. - * - * Optional. - * * [filter] - An expression for filtering the results of the request. Filter * rules are * case insensitive. The fields eligible for filtering are: @@ -668,6 +656,18 @@ * * Optional. * + * [pageToken] - A pagination token returned from a previous call to + * ListProjects + * that indicates from where listing should continue. + * + * Optional. + * + * [pageSize] - The maximum number of Projects to return in the response. + * The server can return fewer Projects than requested. + * If unspecified, server picks an appropriate default. + * + * Optional. + * * Completes with a [ListProjectsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -676,7 +676,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListProjectsResponse> list({core.String pageToken, core.int pageSize, core.String filter}) { + async.Future<ListProjectsResponse> list({core.String filter, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -684,15 +684,15 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } - if (filter != null) { - _queryParams["filter"] = [filter]; - } _url = 'v1beta1/projects';
diff --git a/generated/googleapis_beta/lib/dataflow/v1b3.dart b/generated/googleapis_beta/lib/dataflow/v1b3.dart index a89f012..3860b07 100644 --- a/generated/googleapis_beta/lib/dataflow/v1b3.dart +++ b/generated/googleapis_beta/lib/dataflow/v1b3.dart
@@ -114,8 +114,6 @@ * * [projectId] - The ID of the Cloud Platform project that the job belongs to. * - * [location] - The location that contains this job. - * * [replaceJobId] - Deprecated. This field is now in the Job message. * * [view] - The level of information requested in response. @@ -125,6 +123,8 @@ * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL. * - "JOB_VIEW_DESCRIPTION" : A JOB_VIEW_DESCRIPTION. * + * [location] - The location that contains this job. + * * Completes with a [Job]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -133,7 +133,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<Job> create(Job request, core.String projectId, {core.String location, core.String replaceJobId, core.String view}) { + async.Future<Job> create(Job request, core.String projectId, {core.String replaceJobId, core.String view, core.String location}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -147,15 +147,15 @@ if (projectId == null) { throw new core.ArgumentError("Parameter projectId is required."); } - if (location != null) { - _queryParams["location"] = [location]; - } if (replaceJobId != null) { _queryParams["replaceJobId"] = [replaceJobId]; } if (view != null) { _queryParams["view"] = [view]; } + if (location != null) { + _queryParams["location"] = [location]; + } _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs'; @@ -237,11 +237,11 @@ * * [jobId] - The job to get messages for. * - * [location] - The location which contains the job specified by job_id. - * * [startTime] - Return only metric data that has changed since this time. * Default is to return all information about all metrics for the job. * + * [location] - The location which contains the job specified by job_id. + * * Completes with a [JobMetrics]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -250,7 +250,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<JobMetrics> getMetrics(core.String projectId, core.String jobId, {core.String location, core.String startTime}) { + async.Future<JobMetrics> getMetrics(core.String projectId, core.String jobId, {core.String startTime, core.String location}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -264,12 +264,12 @@ if (jobId == null) { throw new core.ArgumentError("Parameter jobId is required."); } - if (location != null) { - _queryParams["location"] = [location]; - } if (startTime != null) { _queryParams["startTime"] = [startTime]; } + if (location != null) { + _queryParams["location"] = [location]; + } _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId') + '/metrics'; @@ -541,6 +541,19 @@ * * [jobId] - The job to get messages about. * + * [pageSize] - If specified, determines the maximum number of messages to + * return. If unspecified, the service may choose an appropriate + * default, or may return an arbitrarily large number of results. + * + * [minimumImportance] - Filter to only get messages with importance >= level + * Possible string values are: + * - "JOB_MESSAGE_IMPORTANCE_UNKNOWN" : A JOB_MESSAGE_IMPORTANCE_UNKNOWN. + * - "JOB_MESSAGE_DEBUG" : A JOB_MESSAGE_DEBUG. + * - "JOB_MESSAGE_DETAILED" : A JOB_MESSAGE_DETAILED. + * - "JOB_MESSAGE_BASIC" : A JOB_MESSAGE_BASIC. + * - "JOB_MESSAGE_WARNING" : A JOB_MESSAGE_WARNING. + * - "JOB_MESSAGE_ERROR" : A JOB_MESSAGE_ERROR. + * * [location] - The location which contains the job specified by job_id. * * [endTime] - Return only messages with timestamps < end_time. The default is @@ -556,19 +569,6 @@ * by an earlier call. This will cause the next page of results to * be returned. * - * [pageSize] - If specified, determines the maximum number of messages to - * return. If unspecified, the service may choose an appropriate - * default, or may return an arbitrarily large number of results. - * - * [minimumImportance] - Filter to only get messages with importance >= level - * Possible string values are: - * - "JOB_MESSAGE_IMPORTANCE_UNKNOWN" : A JOB_MESSAGE_IMPORTANCE_UNKNOWN. - * - "JOB_MESSAGE_DEBUG" : A JOB_MESSAGE_DEBUG. - * - "JOB_MESSAGE_DETAILED" : A JOB_MESSAGE_DETAILED. - * - "JOB_MESSAGE_BASIC" : A JOB_MESSAGE_BASIC. - * - "JOB_MESSAGE_WARNING" : A JOB_MESSAGE_WARNING. - * - "JOB_MESSAGE_ERROR" : A JOB_MESSAGE_ERROR. - * * Completes with a [ListJobMessagesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -577,7 +577,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListJobMessagesResponse> list(core.String projectId, core.String jobId, {core.String location, core.String endTime, core.String startTime, core.String pageToken, core.int pageSize, core.String minimumImportance}) { + async.Future<ListJobMessagesResponse> list(core.String projectId, core.String jobId, {core.int pageSize, core.String minimumImportance, core.String location, core.String endTime, core.String startTime, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -591,6 +591,12 @@ if (jobId == null) { throw new core.ArgumentError("Parameter jobId is required."); } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (minimumImportance != null) { + _queryParams["minimumImportance"] = [minimumImportance]; + } if (location != null) { _queryParams["location"] = [location]; } @@ -603,12 +609,6 @@ if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - if (minimumImportance != null) { - _queryParams["minimumImportance"] = [minimumImportance]; - } _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId') + '/messages'; @@ -1251,19 +1251,6 @@ * * [jobId] - The job to get messages about. * - * [endTime] - Return only messages with timestamps < end_time. The default is - * now - * (i.e. return up to the latest messages available). - * - * [startTime] - If specified, return only messages with timestamps >= - * start_time. - * The default is the job creation time (i.e. beginning of messages). - * - * [pageToken] - If supplied, this should be the value of next_page_token - * returned - * by an earlier call. This will cause the next page of results to - * be returned. - * * [pageSize] - If specified, determines the maximum number of messages to * return. If unspecified, the service may choose an appropriate * default, or may return an arbitrarily large number of results. @@ -1277,6 +1264,19 @@ * - "JOB_MESSAGE_WARNING" : A JOB_MESSAGE_WARNING. * - "JOB_MESSAGE_ERROR" : A JOB_MESSAGE_ERROR. * + * [endTime] - Return only messages with timestamps < end_time. The default is + * now + * (i.e. return up to the latest messages available). + * + * [startTime] - If specified, return only messages with timestamps >= + * start_time. + * The default is the job creation time (i.e. beginning of messages). + * + * [pageToken] - If supplied, this should be the value of next_page_token + * returned + * by an earlier call. This will cause the next page of results to + * be returned. + * * Completes with a [ListJobMessagesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1285,7 +1285,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListJobMessagesResponse> list(core.String projectId, core.String location, core.String jobId, {core.String endTime, core.String startTime, core.String pageToken, core.int pageSize, core.String minimumImportance}) { + async.Future<ListJobMessagesResponse> list(core.String projectId, core.String location, core.String jobId, {core.int pageSize, core.String minimumImportance, core.String endTime, core.String startTime, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1302,6 +1302,12 @@ if (jobId == null) { throw new core.ArgumentError("Parameter jobId is required."); } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (minimumImportance != null) { + _queryParams["minimumImportance"] = [minimumImportance]; + } if (endTime != null) { _queryParams["endTime"] = [endTime]; } @@ -1311,12 +1317,6 @@ if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - if (minimumImportance != null) { - _queryParams["minimumImportance"] = [minimumImportance]; - } _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/locations/' + commons.Escaper.ecapeVariable('$location') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId') + '/messages'; @@ -1577,15 +1577,15 @@ * * [location] - The location to which to direct the request. * + * [validateOnly] - If true, the request is validated but not actually + * executed. + * Defaults to false. + * * [gcsPath] - Required. A Cloud Storage path to the template from which to * create * the job. * Must be valid Cloud Storage URL, beginning with 'gs://'. * - * [validateOnly] - If true, the request is validated but not actually - * executed. - * Defaults to false. - * * Completes with a [LaunchTemplateResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1594,7 +1594,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<LaunchTemplateResponse> launch(LaunchTemplateParameters request, core.String projectId, core.String location, {core.String gcsPath, core.bool validateOnly}) { + async.Future<LaunchTemplateResponse> launch(LaunchTemplateParameters request, core.String projectId, core.String location, {core.bool validateOnly, core.String gcsPath}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1611,12 +1611,12 @@ if (location == null) { throw new core.ArgumentError("Parameter location is required."); } - if (gcsPath != null) { - _queryParams["gcsPath"] = [gcsPath]; - } if (validateOnly != null) { _queryParams["validateOnly"] = ["${validateOnly}"]; } + if (gcsPath != null) { + _queryParams["gcsPath"] = [gcsPath]; + } _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/locations/' + commons.Escaper.ecapeVariable('$location') + '/templates:launch'; @@ -1692,6 +1692,8 @@ * [projectId] - Required. The ID of the Cloud Platform project that the job * belongs to. * + * [location] - The location to which to direct the request. + * * [view] - The view to retrieve. Defaults to METADATA_ONLY. * Possible string values are: * - "METADATA_ONLY" : A METADATA_ONLY. @@ -1700,8 +1702,6 @@ * create the job. * Must be a valid Cloud Storage URL, beginning with `gs://`. * - * [location] - The location to which to direct the request. - * * Completes with a [GetTemplateResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1710,7 +1710,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<GetTemplateResponse> get(core.String projectId, {core.String view, core.String gcsPath, core.String location}) { + async.Future<GetTemplateResponse> get(core.String projectId, {core.String location, core.String view, core.String gcsPath}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1721,15 +1721,15 @@ if (projectId == null) { throw new core.ArgumentError("Parameter projectId is required."); } + if (location != null) { + _queryParams["location"] = [location]; + } if (view != null) { _queryParams["view"] = [view]; } if (gcsPath != null) { _queryParams["gcsPath"] = [gcsPath]; } - if (location != null) { - _queryParams["location"] = [location]; - } _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/templates:get'; @@ -1753,17 +1753,17 @@ * [projectId] - Required. The ID of the Cloud Platform project that the job * belongs to. * - * [gcsPath] - Required. A Cloud Storage path to the template from which to - * create - * the job. - * Must be valid Cloud Storage URL, beginning with 'gs://'. - * * [location] - The location to which to direct the request. * * [validateOnly] - If true, the request is validated but not actually * executed. * Defaults to false. * + * [gcsPath] - Required. A Cloud Storage path to the template from which to + * create + * the job. + * Must be valid Cloud Storage URL, beginning with 'gs://'. + * * Completes with a [LaunchTemplateResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1772,7 +1772,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<LaunchTemplateResponse> launch(LaunchTemplateParameters request, core.String projectId, {core.String gcsPath, core.String location, core.bool validateOnly}) { + async.Future<LaunchTemplateResponse> launch(LaunchTemplateParameters request, core.String projectId, {core.String location, core.bool validateOnly, core.String gcsPath}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1786,15 +1786,15 @@ if (projectId == null) { throw new core.ArgumentError("Parameter projectId is required."); } - if (gcsPath != null) { - _queryParams["gcsPath"] = [gcsPath]; - } if (location != null) { _queryParams["location"] = [location]; } if (validateOnly != null) { _queryParams["validateOnly"] = ["${validateOnly}"]; } + if (gcsPath != null) { + _queryParams["gcsPath"] = [gcsPath]; + } _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/templates:launch'; @@ -6973,8 +6973,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a - * common set of message types for APIs to use. + * A list of messages that carry the error details. There 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.
diff --git a/generated/googleapis_beta/lib/dataproc/v1beta1.dart b/generated/googleapis_beta/lib/dataproc/v1beta1.dart deleted file mode 100644 index d8b8295..0000000 --- a/generated/googleapis_beta/lib/dataproc/v1beta1.dart +++ /dev/null
@@ -1,3314 +0,0 @@ -// This is a generated file (see the discoveryapis_generator project). - -library googleapis_beta.dataproc.v1beta1; - -import 'dart:core' as core; -import 'dart:async' as async; -import 'dart:convert' as convert; - -import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; -import 'package:http/http.dart' as http; - -export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show - ApiRequestError, DetailedApiRequestError; - -const core.String USER_AGENT = 'dart-api-client dataproc/v1beta1'; - -/** Manages Hadoop-based clusters and jobs on Google Cloud Platform. */ -class DataprocApi { - /** View and manage your data across Google Cloud Platform services */ - static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; - - - final commons.ApiRequester _requester; - - OperationsResourceApi get operations => new OperationsResourceApi(_requester); - ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); - - DataprocApi(http.Client client, {core.String rootUrl: "https://dataproc.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.get or other - * methods to check whether the cancellation succeeded or whether the - * operation completed despite cancellation. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [name] - The name of the operation resource to be cancelled. - * Value must have pattern "^operations/.+$". - * - * Completes with a [Empty]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Empty> cancel(CancelOperationRequest request, core.String name) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (name == null) { - throw new core.ArgumentError("Parameter name is required."); - } - - _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + ':cancel'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Empty.fromJson(data)); - } - - /** - * Deletes a long-running operation. This method indicates that the client is - * no longer interested in the operation result. It does not cancel the - * operation. If the server doesn't support this method, it returns - * google.rpc.Code.UNIMPLEMENTED. - * - * Request parameters: - * - * [name] - The name of the operation resource to be deleted. - * Value must have pattern "^operations/.+$". - * - * Completes with a [Empty]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Empty> delete(core.String name) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (name == null) { - throw new core.ArgumentError("Parameter name is required."); - } - - _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new 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/.+$". - * - * 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) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (name == null) { - throw new core.ArgumentError("Parameter name is required."); - } - - _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Operation.fromJson(data)); - } - - /** - * Lists operations that match the specified filter in the request. If the - * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name - * binding below allows API services to override the binding to use different - * resource name schemes, such as users / * /operations. - * - * Request parameters: - * - * [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. - * - * 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.String filter, core.String pageToken, core.int pageSize}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (name == null) { - throw new core.ArgumentError("Parameter name is required."); - } - if (filter != null) { - _queryParams["filter"] = [filter]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - - _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ListOperationsResponse.fromJson(data)); - } - -} - - -class ProjectsResourceApi { - final commons.ApiRequester _requester; - - ProjectsClustersResourceApi get clusters => new ProjectsClustersResourceApi(_requester); - ProjectsJobsResourceApi get jobs => new ProjectsJobsResourceApi(_requester); - - ProjectsResourceApi(commons.ApiRequester client) : - _requester = client; -} - - -class ProjectsClustersResourceApi { - final commons.ApiRequester _requester; - - ProjectsClustersResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Creates a cluster in a project. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [projectId] - Required The ID of the Google Cloud Platform project that the - * cluster belongs to. - * - * 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(Cluster request, core.String projectId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - - _url = 'v1beta1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/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 a cluster in a project. - * - * Request parameters: - * - * [projectId] - Required The ID of the Google Cloud Platform project that the - * cluster belongs to. - * - * [clusterName] - Required The cluster name. - * - * 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 projectId, core.String clusterName) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (clusterName == null) { - throw new core.ArgumentError("Parameter clusterName is required."); - } - - _url = 'v1beta1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterName'); - - 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 cluster diagnostic information. After the operation completes, the - * Operation.response field contains DiagnoseClusterOutputLocation. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [projectId] - Required The ID of the Google Cloud Platform project that the - * cluster belongs to. - * - * [clusterName] - Required The cluster name. - * - * 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> diagnose(DiagnoseClusterRequest request, core.String projectId, core.String clusterName) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (clusterName == null) { - throw new core.ArgumentError("Parameter clusterName is required."); - } - - _url = 'v1beta1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterName') + ':diagnose'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Operation.fromJson(data)); - } - - /** - * Gets the resource representation for a cluster in a project. - * - * Request parameters: - * - * [projectId] - Required The ID of the Google Cloud Platform project that the - * cluster belongs to. - * - * [clusterName] - Required The cluster name. - * - * 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 projectId, core.String clusterName) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (clusterName == null) { - throw new core.ArgumentError("Parameter clusterName is required."); - } - - _url = 'v1beta1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterName'); - - 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 in a project. - * - * Request parameters: - * - * [projectId] - Required The ID of the Google Cloud Platform project that the - * cluster belongs to. - * - * [pageToken] - The standard List page token. - * - * [pageSize] - The standard List page size. - * - * [filter] - Optional A filter constraining which clusters to list. Valid - * filters contain label terms such as: labels.key1 = val1 AND (-labels.k2 = - * val2 OR labels.k3 = val3) - * - * 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 projectId, {core.String pageToken, core.int pageSize, core.String filter}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - if (filter != null) { - _queryParams["filter"] = [filter]; - } - - _url = 'v1beta1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/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)); - } - - /** - * Updates a cluster in a project. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [projectId] - Required The ID of the Google Cloud Platform project the - * cluster belongs to. - * - * [clusterName] - Required The cluster name. - * - * [updateMask] - Required Specifies the path, relative to - * <code>Cluster</code>, of the field to update. For example, to change the - * number of workers in a cluster to 5, the <code>update_mask</code> parameter - * would be specified as - * <code>configuration.worker_configuration.num_instances</code>, and the - * PATCH request body would specify the new value, as follows: - * { - * "configuration":{ - * "workerConfiguration":{ - * "numInstances":"5" - * } - * } - * } - * Similarly, to change the number of preemptible workers in a cluster to 5, - * the <code>update_mask</code> parameter would be - * <code>config.secondary_worker_config.num_instances</code>, and the PATCH - * request body would be set as follows: - * { - * "config":{ - * "secondaryWorkerConfig":{ - * "numInstances":"5" - * } - * } - * } - * <strong>Note:</strong> Currently, - * <code>config.worker_config.num_instances</code> and - * <code>config.secondary_worker_config.num_instances</code> are the only - * fields that can be updated. - * - * Completes with a [Operation]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Operation> patch(Cluster request, core.String projectId, core.String clusterName, {core.String updateMask}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (clusterName == null) { - throw new core.ArgumentError("Parameter clusterName is required."); - } - if (updateMask != null) { - _queryParams["updateMask"] = [updateMask]; - } - - _url = 'v1beta1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterName'); - - 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 ProjectsJobsResourceApi { - final commons.ApiRequester _requester; - - ProjectsJobsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Starts a job cancellation request. To access the job resource after - * cancellation, call jobs.list or jobs.get. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [projectId] - Required The ID of the Google Cloud Platform project that the - * job belongs to. - * - * [jobId] - Required The job ID. - * - * Completes with a [Job]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Job> cancel(CancelJobRequest request, core.String projectId, core.String jobId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (jobId == null) { - throw new core.ArgumentError("Parameter jobId is required."); - } - - _url = 'v1beta1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId') + ':cancel'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Job.fromJson(data)); - } - - /** - * Deletes the job from the project. If the job is active, the delete fails, - * and the response returns FAILED_PRECONDITION. - * - * Request parameters: - * - * [projectId] - Required The ID of the Google Cloud Platform project that the - * job belongs to. - * - * [jobId] - Required The job ID. - * - * 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 projectId, core.String jobId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (jobId == null) { - throw new core.ArgumentError("Parameter jobId is required."); - } - - _url = 'v1beta1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId'); - - 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 resource representation for a job in a project. - * - * Request parameters: - * - * [projectId] - Required The ID of the Google Cloud Platform project that the - * job belongs to. - * - * [jobId] - Required The job ID. - * - * Completes with a [Job]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Job> get(core.String projectId, core.String jobId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (jobId == null) { - throw new core.ArgumentError("Parameter jobId is required."); - } - - _url = 'v1beta1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Job.fromJson(data)); - } - - /** - * Lists jobs in a project. - * - * Request parameters: - * - * [projectId] - Required The ID of the Google Cloud Platform project that the - * job belongs to. - * - * [clusterName] - Optional If set, the returned jobs list includes only jobs - * that were submitted to the named cluster. - * - * [filter] - Optional A filter constraining which jobs to list. Valid filters - * contain job state and label terms such as: labels.key1 = val1 AND - * (labels.k2 = val2 OR labels.k3 = val3) - * - * [jobStateMatcher] - Optional Specifies enumerated categories of jobs to - * list. - * Possible string values are: - * - "ALL" : A ALL. - * - "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. - * - * Completes with a [ListJobsResponse]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<ListJobsResponse> list(core.String projectId, {core.String clusterName, core.String filter, core.String jobStateMatcher, core.String pageToken, core.int pageSize}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (clusterName != null) { - _queryParams["clusterName"] = [clusterName]; - } - if (filter != null) { - _queryParams["filter"] = [filter]; - } - if (jobStateMatcher != null) { - _queryParams["jobStateMatcher"] = [jobStateMatcher]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - - _url = 'v1beta1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ListJobsResponse.fromJson(data)); - } - - /** - * Updates a job in a project. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [projectId] - Required The ID of the Google Cloud Platform project that the - * job belongs to. - * - * [jobId] - Required The job ID. - * - * [updateMask] - Required Specifies the path, relative to <code>Job</code>, - * of the field to update. For example, to update the labels of a Job the - * <code>update_mask</code> parameter would be specified as - * <code>labels</code>, and the PATCH request body would specify the new - * value. <strong>Note:</strong> Currently, <code>labels</code> is the only - * field that can be updated. - * - * Completes with a [Job]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Job> patch(Job request, core.String projectId, core.String jobId, {core.String updateMask}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (jobId == null) { - throw new core.ArgumentError("Parameter jobId is required."); - } - if (updateMask != null) { - _queryParams["updateMask"] = [updateMask]; - } - - _url = 'v1beta1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId'); - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Job.fromJson(data)); - } - - /** - * Submits a job to a cluster. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [projectId] - Required The ID of the Google Cloud Platform project that the - * job belongs to. - * - * Completes with a [Job]. - * - * Completes with a [commons.ApiRequestError] if the API endpoint returned an - * error. - * - * If the used [http.Client] completes with an error when making a REST call, - * this method will complete with the same error. - */ - async.Future<Job> submit(SubmitJobRequest request, core.String projectId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - - _url = 'v1beta1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs:submit'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Job.fromJson(data)); - } - -} - - - -/** - * Specifies the type and number of accelerator cards attached to the instances - * of an instance group (see GPUs on Compute Engine). - */ -class AcceleratorConfiguration { - /** - * The number of the accelerator cards of this type exposed to this instance. - */ - core.int acceleratorCount; - /** - * Full or partial URI of the accelerator type resource to expose to this - * instance. See Google Compute Engine AcceleratorTypes( - * /compute/docs/reference/beta/acceleratorTypes) - */ - core.String acceleratorTypeUri; - - AcceleratorConfiguration(); - - AcceleratorConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("acceleratorCount")) { - acceleratorCount = _json["acceleratorCount"]; - } - if (_json.containsKey("acceleratorTypeUri")) { - acceleratorTypeUri = _json["acceleratorTypeUri"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (acceleratorCount != null) { - _json["acceleratorCount"] = acceleratorCount; - } - if (acceleratorTypeUri != null) { - _json["acceleratorTypeUri"] = acceleratorTypeUri; - } - return _json; - } -} - -/** A request to cancel a job. */ -class CancelJobRequest { - - CancelJobRequest(); - - CancelJobRequest.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 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; - } -} - -/** - * Describes the identifying information, configuration, and status of a cluster - * of Google Compute Engine instances. - */ -class Cluster { - /** - * Required The cluster name. Cluster names within a project must be unique. - * Names from deleted clusters can be reused. - */ - core.String clusterName; - /** - * Output-only A cluster UUID (Unique Universal Identifier). Cloud Dataproc - * generates this value when it creates the cluster. - */ - core.String clusterUuid; - /** - * Required The cluster configuration. Note that Cloud Dataproc may set - * default values, and values may change when clusters are updated. - */ - ClusterConfiguration configuration; - /** - * Optional The labels to associate with this cluster.Label keys must be - * between 1 and 63 characters long, and must conform to the following PCRE - * regular expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 - * characters long, and must conform to the following PCRE regular expression: - * \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 64 labels can be associated with a - * given cluster. - */ - core.Map<core.String, core.String> labels; - /** Contains cluster daemon metrics such as HDFS and YARN stats. */ - ClusterMetrics metrics; - /** - * Required The Google Cloud Platform project ID that the cluster belongs to. - */ - core.String projectId; - /** Output-only Cluster status. */ - ClusterStatus status; - /** Output-only Previous cluster statuses. */ - core.List<ClusterStatus> statusHistory; - - Cluster(); - - Cluster.fromJson(core.Map _json) { - if (_json.containsKey("clusterName")) { - clusterName = _json["clusterName"]; - } - if (_json.containsKey("clusterUuid")) { - clusterUuid = _json["clusterUuid"]; - } - if (_json.containsKey("configuration")) { - configuration = new ClusterConfiguration.fromJson(_json["configuration"]); - } - if (_json.containsKey("labels")) { - labels = _json["labels"]; - } - if (_json.containsKey("metrics")) { - metrics = new ClusterMetrics.fromJson(_json["metrics"]); - } - if (_json.containsKey("projectId")) { - projectId = _json["projectId"]; - } - if (_json.containsKey("status")) { - status = new ClusterStatus.fromJson(_json["status"]); - } - if (_json.containsKey("statusHistory")) { - statusHistory = _json["statusHistory"].map((value) => new ClusterStatus.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 (clusterName != null) { - _json["clusterName"] = clusterName; - } - if (clusterUuid != null) { - _json["clusterUuid"] = clusterUuid; - } - if (configuration != null) { - _json["configuration"] = (configuration).toJson(); - } - if (labels != null) { - _json["labels"] = labels; - } - if (metrics != null) { - _json["metrics"] = (metrics).toJson(); - } - if (projectId != null) { - _json["projectId"] = projectId; - } - if (status != null) { - _json["status"] = (status).toJson(); - } - if (statusHistory != null) { - _json["statusHistory"] = statusHistory.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** The cluster configuration. */ -class ClusterConfiguration { - /** - * Optional A Google Cloud Storage staging bucket used for sharing generated - * SSH keys and configuration. 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 configurationBucket; - /** - * Required The shared Google Compute Engine configuration settings for all - * instances in a cluster. - */ - GceClusterConfiguration gceClusterConfiguration; - /** - * Optional Commands to execute on each node after configuration is completed. - * By default, executables are run on master and all worker nodes. You can - * test a node's <code>role</code> metadata to run an executable on a master - * or worker node, as shown below: - * ROLE=$(/usr/share/google/get_metadata_value attributes/role) - * if [[ "${ROLE}" == 'Master' ]]; then - * ... master specific actions ... - * else - * ... worker specific actions ... - * fi - */ - core.List<NodeInitializationAction> initializationActions; - /** - * Optional The Google Compute Engine configuration settings for the master - * instance in a cluster. - */ - InstanceGroupConfiguration masterConfiguration; - /** - * Optional The Google Compute Engine configuration settings for additional - * worker instances in a cluster. - */ - InstanceGroupConfiguration secondaryWorkerConfiguration; - /** Optional The configuration settings for software inside the cluster. */ - SoftwareConfiguration softwareConfiguration; - /** - * Optional The Google Compute Engine configuration settings for worker - * instances in a cluster. - */ - InstanceGroupConfiguration workerConfiguration; - - ClusterConfiguration(); - - ClusterConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("configurationBucket")) { - configurationBucket = _json["configurationBucket"]; - } - if (_json.containsKey("gceClusterConfiguration")) { - gceClusterConfiguration = new GceClusterConfiguration.fromJson(_json["gceClusterConfiguration"]); - } - if (_json.containsKey("initializationActions")) { - initializationActions = _json["initializationActions"].map((value) => new NodeInitializationAction.fromJson(value)).toList(); - } - if (_json.containsKey("masterConfiguration")) { - masterConfiguration = new InstanceGroupConfiguration.fromJson(_json["masterConfiguration"]); - } - if (_json.containsKey("secondaryWorkerConfiguration")) { - secondaryWorkerConfiguration = new InstanceGroupConfiguration.fromJson(_json["secondaryWorkerConfiguration"]); - } - if (_json.containsKey("softwareConfiguration")) { - softwareConfiguration = new SoftwareConfiguration.fromJson(_json["softwareConfiguration"]); - } - if (_json.containsKey("workerConfiguration")) { - workerConfiguration = new InstanceGroupConfiguration.fromJson(_json["workerConfiguration"]); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (configurationBucket != null) { - _json["configurationBucket"] = configurationBucket; - } - if (gceClusterConfiguration != null) { - _json["gceClusterConfiguration"] = (gceClusterConfiguration).toJson(); - } - if (initializationActions != null) { - _json["initializationActions"] = initializationActions.map((value) => (value).toJson()).toList(); - } - if (masterConfiguration != null) { - _json["masterConfiguration"] = (masterConfiguration).toJson(); - } - if (secondaryWorkerConfiguration != null) { - _json["secondaryWorkerConfiguration"] = (secondaryWorkerConfiguration).toJson(); - } - if (softwareConfiguration != null) { - _json["softwareConfiguration"] = (softwareConfiguration).toJson(); - } - if (workerConfiguration != null) { - _json["workerConfiguration"] = (workerConfiguration).toJson(); - } - return _json; - } -} - -/** Contains cluster daemon metrics, such as HDFS and YARN stats. */ -class ClusterMetrics { - /** The HDFS metrics. */ - core.Map<core.String, core.String> hdfsMetrics; - /** The YARN metrics. */ - core.Map<core.String, core.String> yarnMetrics; - - ClusterMetrics(); - - ClusterMetrics.fromJson(core.Map _json) { - if (_json.containsKey("hdfsMetrics")) { - hdfsMetrics = _json["hdfsMetrics"]; - } - if (_json.containsKey("yarnMetrics")) { - yarnMetrics = _json["yarnMetrics"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (hdfsMetrics != null) { - _json["hdfsMetrics"] = hdfsMetrics; - } - if (yarnMetrics != null) { - _json["yarnMetrics"] = yarnMetrics; - } - return _json; - } -} - -/** Metadata describing the operation. */ -class ClusterOperationMetadata { - /** Output-only. Name of the cluster for the operation. */ - core.String clusterName; - /** Output-only. Cluster UUID for the operation. */ - core.String clusterUuid; - /** Output-only. Short description of operation. */ - core.String description; - /** Output-only. Labels associated with the operation */ - core.Map<core.String, core.String> labels; - /** Output-only. The operation type. */ - core.String operationType; - /** Output-only. Current operation status. */ - ClusterOperationStatus status; - /** Output-only. The previous operation status. */ - core.List<ClusterOperationStatus> statusHistory; - /** Output-only. Errors encountered during operation execution. */ - core.List<core.String> warnings; - - ClusterOperationMetadata(); - - ClusterOperationMetadata.fromJson(core.Map _json) { - if (_json.containsKey("clusterName")) { - clusterName = _json["clusterName"]; - } - if (_json.containsKey("clusterUuid")) { - clusterUuid = _json["clusterUuid"]; - } - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("labels")) { - labels = _json["labels"]; - } - if (_json.containsKey("operationType")) { - operationType = _json["operationType"]; - } - if (_json.containsKey("status")) { - status = new ClusterOperationStatus.fromJson(_json["status"]); - } - if (_json.containsKey("statusHistory")) { - statusHistory = _json["statusHistory"].map((value) => new ClusterOperationStatus.fromJson(value)).toList(); - } - if (_json.containsKey("warnings")) { - warnings = _json["warnings"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (clusterName != null) { - _json["clusterName"] = clusterName; - } - if (clusterUuid != null) { - _json["clusterUuid"] = clusterUuid; - } - if (description != null) { - _json["description"] = description; - } - if (labels != null) { - _json["labels"] = labels; - } - if (operationType != null) { - _json["operationType"] = operationType; - } - if (status != null) { - _json["status"] = (status).toJson(); - } - if (statusHistory != null) { - _json["statusHistory"] = statusHistory.map((value) => (value).toJson()).toList(); - } - if (warnings != null) { - _json["warnings"] = warnings; - } - return _json; - } -} - -/** The status of the operation. */ -class ClusterOperationStatus { - /** Output-only.A message containing any operation metadata details. */ - core.String details; - /** Output-only. A message containing the detailed operation state. */ - core.String innerState; - /** - * Output-only. A message containing the operation state. - * Possible string values are: - * - "UNKNOWN" : Unused. - * - "PENDING" : The operation has been created. - * - "RUNNING" : The operation is running. - * - "DONE" : The operation is done; either cancelled or completed. - */ - core.String state; - /** Output-only. The time this state was entered. */ - core.String stateStartTime; - - ClusterOperationStatus(); - - ClusterOperationStatus.fromJson(core.Map _json) { - if (_json.containsKey("details")) { - details = _json["details"]; - } - if (_json.containsKey("innerState")) { - innerState = _json["innerState"]; - } - if (_json.containsKey("state")) { - state = _json["state"]; - } - if (_json.containsKey("stateStartTime")) { - stateStartTime = _json["stateStartTime"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (details != null) { - _json["details"] = details; - } - if (innerState != null) { - _json["innerState"] = innerState; - } - if (state != null) { - _json["state"] = state; - } - if (stateStartTime != null) { - _json["stateStartTime"] = stateStartTime; - } - return _json; - } -} - -/** The status of a cluster and its instances. */ -class ClusterStatus { - /** Optional details of cluster's state. */ - core.String detail; - /** - * The cluster's state. - * Possible string values are: - * - "UNKNOWN" : The cluster state is unknown. - * - "CREATING" : The cluster is being created and set up. It is not ready for - * use. - * - "RUNNING" : The cluster is currently running and healthy. It is ready for - * use. - * - "ERROR" : The cluster encountered an error. It is not ready for use. - * - "DELETING" : The cluster is being deleted. It cannot be used. - * - "UPDATING" : The cluster is being updated. It continues to accept and - * process jobs. - */ - core.String state; - /** Time when this state was entered. */ - core.String stateStartTime; - /** - * Output-only Additional state information that includes status reported by - * the agent. - * Possible string values are: - * - "UNSPECIFIED" - * - "UNHEALTHY" : The cluster is known to be in an unhealthy state (for - * example, critical daemons are not running or HDFS capacity is - * exhausted).Applies to RUNNING state. - * - "STALE_STATUS" : The agent-reported status is out of date (may occur if - * Cloud Dataproc loses communication with Agent).Applies to RUNNING state. - */ - core.String substate; - - ClusterStatus(); - - ClusterStatus.fromJson(core.Map _json) { - if (_json.containsKey("detail")) { - detail = _json["detail"]; - } - if (_json.containsKey("state")) { - state = _json["state"]; - } - if (_json.containsKey("stateStartTime")) { - stateStartTime = _json["stateStartTime"]; - } - if (_json.containsKey("substate")) { - substate = _json["substate"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (detail != null) { - _json["detail"] = detail; - } - if (state != null) { - _json["state"] = state; - } - if (stateStartTime != null) { - _json["stateStartTime"] = stateStartTime; - } - if (substate != null) { - _json["substate"] = substate; - } - return _json; - } -} - -/** The location of diagnostic output. */ -class DiagnoseClusterOutputLocation { - /** - * Output-only The Google Cloud Storage URI of the diagnostic output. This is - * a plain text file with a summary of collected diagnostics. - */ - core.String outputUri; - - DiagnoseClusterOutputLocation(); - - DiagnoseClusterOutputLocation.fromJson(core.Map _json) { - if (_json.containsKey("outputUri")) { - outputUri = _json["outputUri"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (outputUri != null) { - _json["outputUri"] = outputUri; - } - return _json; - } -} - -/** A request to collect cluster diagnostic information. */ -class DiagnoseClusterRequest { - - DiagnoseClusterRequest(); - - DiagnoseClusterRequest.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 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. - */ - core.String outputUri; - - DiagnoseClusterResults(); - - DiagnoseClusterResults.fromJson(core.Map _json) { - if (_json.containsKey("outputUri")) { - outputUri = _json["outputUri"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (outputUri != null) { - _json["outputUri"] = outputUri; - } - return _json; - } -} - -/** Specifies the configuration of disk options for a group of VM instances. */ -class DiskConfiguration { - /** Optional Size in GB of the boot disk (default is 500GB). */ - core.int bootDiskSizeGb; - /** - * Optional Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are - * not attached, the boot disk is used to store runtime logs and HDFS data. If - * one or more SSDs are attached, this runtime bulk data is spread across - * them, and the boot disk contains only basic configuration and installed - * binaries. - */ - core.int numLocalSsds; - - DiskConfiguration(); - - DiskConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("bootDiskSizeGb")) { - bootDiskSizeGb = _json["bootDiskSizeGb"]; - } - if (_json.containsKey("numLocalSsds")) { - numLocalSsds = _json["numLocalSsds"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (bootDiskSizeGb != null) { - _json["bootDiskSizeGb"] = bootDiskSizeGb; - } - if (numLocalSsds != null) { - _json["numLocalSsds"] = numLocalSsds; - } - 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; - } -} - -/** - * Common configuration settings for resources of Google Compute Engine cluster - * instances, applicable to all instances in the cluster. - */ -class GceClusterConfiguration { - /** - * If true, all instances in the cluser will only have internal IP addresses. - * By default, clusters are not restricted to internal IP addresses, and will - * have ephemeral external IP addresses assigned to each instance. This - * restriction can only be enabled for subnetwork enabled networks, and all - * off-cluster dependencies must be configured to be accessible without - * external IP addresses. - */ - core.bool internalIpOnly; - /** The Google Compute Engine metadata entries to add to all instances. */ - core.Map<core.String, core.String> metadata; - /** - * The Google Compute Engine network to be used for machine communications. - * Cannot be specified with subnetwork_uri. If neither network_uri nor - * subnetwork_uri is specified, the "default" network of the project is used, - * if it exists. Cannot be a "Custom Subnet Network" (see - * https://cloud.google.com/compute/docs/subnetworks for more information). - * Example: - * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default. - */ - 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: - * roles/logging.logWriter - * roles/storage.objectAdmin(see - * https://cloud.google.com/compute/docs/access/service-accounts#custom_service_accounts - * for more information). Example: - * [account_id]@[project_id].iam.gserviceaccount.com - */ - core.String serviceAccount; - /** - * The URIs of service account scopes to be included in Google Compute Engine - * instances. The following base set of scopes is always included: - - * https://www.googleapis.com/auth/cloud.useraccounts.readonly - - * https://www.googleapis.com/auth/devstorage.read_write - - * https://www.googleapis.com/auth/logging.write If no scopes are specfied, - * the following defaults are also provided: - - * https://www.googleapis.com/auth/bigquery - - * https://www.googleapis.com/auth/bigtable.admin.table - - * https://www.googleapis.com/auth/bigtable.data - - * https://www.googleapis.com/auth/devstorage.full_control - */ - core.List<core.String> serviceAccountScopes; - /** - * The Google Compute Engine subnetwork to be used for machine communications. - * Cannot be specified with network_uri. Example: - * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0. - */ - core.String subnetworkUri; - /** The Google Compute Engine tags to add to all instances. */ - core.List<core.String> tags; - /** - * Required The zone where the Google Compute Engine cluster will be located. - * Example: - * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]. - */ - core.String zoneUri; - - GceClusterConfiguration(); - - GceClusterConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("internalIpOnly")) { - internalIpOnly = _json["internalIpOnly"]; - } - if (_json.containsKey("metadata")) { - metadata = _json["metadata"]; - } - if (_json.containsKey("networkUri")) { - networkUri = _json["networkUri"]; - } - if (_json.containsKey("serviceAccount")) { - serviceAccount = _json["serviceAccount"]; - } - if (_json.containsKey("serviceAccountScopes")) { - serviceAccountScopes = _json["serviceAccountScopes"]; - } - if (_json.containsKey("subnetworkUri")) { - subnetworkUri = _json["subnetworkUri"]; - } - if (_json.containsKey("tags")) { - tags = _json["tags"]; - } - if (_json.containsKey("zoneUri")) { - zoneUri = _json["zoneUri"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (internalIpOnly != null) { - _json["internalIpOnly"] = internalIpOnly; - } - if (metadata != null) { - _json["metadata"] = metadata; - } - if (networkUri != null) { - _json["networkUri"] = networkUri; - } - if (serviceAccount != null) { - _json["serviceAccount"] = serviceAccount; - } - if (serviceAccountScopes != null) { - _json["serviceAccountScopes"] = serviceAccountScopes; - } - if (subnetworkUri != null) { - _json["subnetworkUri"] = subnetworkUri; - } - if (tags != null) { - _json["tags"] = tags; - } - if (zoneUri != null) { - _json["zoneUri"] = zoneUri; - } - return _json; - } -} - -/** A Cloud Dataproc job for running Hadoop MapReduce jobs on YARN. */ -class HadoopJob { - /** - * Optional HCFS URIs of archives to be extracted in the working directory of - * Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, - * or .zip. - */ - core.List<core.String> archiveUris; - /** - * Optional The arguments to pass to the driver. Do not include arguments, - * such as -libjars or -Dfoo=bar, that can be set as job properties, since a - * collision may occur that causes an incorrect job submission. - */ - core.List<core.String> args; - /** - * Optional HCFS URIs of files to be copied to the working directory of Hadoop - * drivers and distributed tasks. Useful for naively parallel tasks. - */ - core.List<core.String> fileUris; - /** - * Optional Jar file URIs to add to the CLASSPATHs of the Hadoop driver and - * tasks. - */ - core.List<core.String> jarFileUris; - /** Optional The runtime log configuration for job execution. */ - LoggingConfiguration loggingConfiguration; - /** - * The name of the driver's main class. The jar file containing the class must - * be in the default CLASSPATH or specified in jar_file_uris. - */ - core.String mainClass; - /** - * The Hadoop Compatible Filesystem (HCFS) URI of the jar file containing the - * main class. Examples: - * 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' - * 'hdfs:/tmp/test-samples/custom-wordcount.jar' - * 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar' - */ - core.String mainJarFileUri; - /** - * Optional A mapping of property names to values, used to configure Hadoop. - * Properties that conflict with values set by the Cloud Dataproc API may be - * overwritten. Can include properties set in /etc/hadoop/conf / * -site and - * classes in user code. - */ - core.Map<core.String, core.String> properties; - - HadoopJob(); - - HadoopJob.fromJson(core.Map _json) { - if (_json.containsKey("archiveUris")) { - archiveUris = _json["archiveUris"]; - } - if (_json.containsKey("args")) { - args = _json["args"]; - } - if (_json.containsKey("fileUris")) { - fileUris = _json["fileUris"]; - } - if (_json.containsKey("jarFileUris")) { - jarFileUris = _json["jarFileUris"]; - } - if (_json.containsKey("loggingConfiguration")) { - loggingConfiguration = new LoggingConfiguration.fromJson(_json["loggingConfiguration"]); - } - if (_json.containsKey("mainClass")) { - mainClass = _json["mainClass"]; - } - if (_json.containsKey("mainJarFileUri")) { - mainJarFileUri = _json["mainJarFileUri"]; - } - if (_json.containsKey("properties")) { - properties = _json["properties"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (archiveUris != null) { - _json["archiveUris"] = archiveUris; - } - if (args != null) { - _json["args"] = args; - } - if (fileUris != null) { - _json["fileUris"] = fileUris; - } - if (jarFileUris != null) { - _json["jarFileUris"] = jarFileUris; - } - if (loggingConfiguration != null) { - _json["loggingConfiguration"] = (loggingConfiguration).toJson(); - } - if (mainClass != null) { - _json["mainClass"] = mainClass; - } - if (mainJarFileUri != null) { - _json["mainJarFileUri"] = mainJarFileUri; - } - if (properties != null) { - _json["properties"] = properties; - } - return _json; - } -} - -/** A Cloud Dataproc job for running Hive queries on YARN. */ -class HiveJob { - /** - * Optional Whether to continue executing queries if a query fails. The - * default value is false. Setting to true can be useful when executing - * independent parallel queries. - */ - core.bool continueOnFailure; - /** - * Optional HCFS URIs of jar files to add to the CLASSPATH of the Hive server - * and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs. - */ - core.List<core.String> jarFileUris; - /** - * Optional A mapping of property names and values, used to configure Hive. - * Properties that conflict with values set by the Cloud Dataproc API may be - * overwritten. Can include properties set in /etc/hadoop/conf / * -site.xml, - * /etc/hive/conf/hive-site.xml, and classes in user code. - */ - core.Map<core.String, core.String> properties; - /** The HCFS URI of the script that contains Hive queries. */ - core.String queryFileUri; - /** A list of queries. */ - QueryList queryList; - /** - * Optional Mapping of query variable names to values (equivalent to the Hive - * command: SET name="value";). - */ - core.Map<core.String, core.String> scriptVariables; - - HiveJob(); - - HiveJob.fromJson(core.Map _json) { - if (_json.containsKey("continueOnFailure")) { - continueOnFailure = _json["continueOnFailure"]; - } - if (_json.containsKey("jarFileUris")) { - jarFileUris = _json["jarFileUris"]; - } - if (_json.containsKey("properties")) { - properties = _json["properties"]; - } - if (_json.containsKey("queryFileUri")) { - queryFileUri = _json["queryFileUri"]; - } - if (_json.containsKey("queryList")) { - queryList = new QueryList.fromJson(_json["queryList"]); - } - if (_json.containsKey("scriptVariables")) { - scriptVariables = _json["scriptVariables"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (continueOnFailure != null) { - _json["continueOnFailure"] = continueOnFailure; - } - if (jarFileUris != null) { - _json["jarFileUris"] = jarFileUris; - } - if (properties != null) { - _json["properties"] = properties; - } - if (queryFileUri != null) { - _json["queryFileUri"] = queryFileUri; - } - if (queryList != null) { - _json["queryList"] = (queryList).toJson(); - } - if (scriptVariables != null) { - _json["scriptVariables"] = scriptVariables; - } - return _json; - } -} - -/** - * The configuration settings for Google Compute Engine resources in an instance - * group, such as a master or worker group. - */ -class InstanceGroupConfiguration { - /** - * Optional The Google Compute Engine accelerator configuration for these - * instances. - */ - core.List<AcceleratorConfiguration> accelerators; - /** Disk option configuration settings. */ - DiskConfiguration diskConfiguration; - /** - * Output-only The Google Compute Engine image resource used for cluster - * instances. Inferred from SoftwareConfiguration.image_version. - */ - core.String imageUri; - /** - * The list of instance names. Dataproc derives the names from cluster_name, - * num_instances, and the instance group if not set by user (recommended - * practice is to let Dataproc derive the name). - */ - core.List<core.String> instanceNames; - /** Specifies that this instance group contains Preemptible Instances. */ - core.bool isPreemptible; - /** - * The Google Compute Engine machine type used for cluster instances. Example: - * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2. - */ - core.String machineTypeUri; - /** - * Output-only The configuration for Google Compute Engine Instance Group - * Manager that manages this group. This is only used for preemptible instance - * groups. - */ - ManagedGroupConfiguration managedGroupConfiguration; - /** - * The number of VM instances in the instance group. For master instance - * groups, must be set to 1. - */ - core.int numInstances; - - InstanceGroupConfiguration(); - - InstanceGroupConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("accelerators")) { - accelerators = _json["accelerators"].map((value) => new AcceleratorConfiguration.fromJson(value)).toList(); - } - if (_json.containsKey("diskConfiguration")) { - diskConfiguration = new DiskConfiguration.fromJson(_json["diskConfiguration"]); - } - if (_json.containsKey("imageUri")) { - imageUri = _json["imageUri"]; - } - if (_json.containsKey("instanceNames")) { - instanceNames = _json["instanceNames"]; - } - if (_json.containsKey("isPreemptible")) { - isPreemptible = _json["isPreemptible"]; - } - if (_json.containsKey("machineTypeUri")) { - machineTypeUri = _json["machineTypeUri"]; - } - if (_json.containsKey("managedGroupConfiguration")) { - managedGroupConfiguration = new ManagedGroupConfiguration.fromJson(_json["managedGroupConfiguration"]); - } - if (_json.containsKey("numInstances")) { - numInstances = _json["numInstances"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (accelerators != null) { - _json["accelerators"] = accelerators.map((value) => (value).toJson()).toList(); - } - if (diskConfiguration != null) { - _json["diskConfiguration"] = (diskConfiguration).toJson(); - } - if (imageUri != null) { - _json["imageUri"] = imageUri; - } - if (instanceNames != null) { - _json["instanceNames"] = instanceNames; - } - if (isPreemptible != null) { - _json["isPreemptible"] = isPreemptible; - } - if (machineTypeUri != null) { - _json["machineTypeUri"] = machineTypeUri; - } - if (managedGroupConfiguration != null) { - _json["managedGroupConfiguration"] = (managedGroupConfiguration).toJson(); - } - if (numInstances != null) { - _json["numInstances"] = numInstances; - } - return _json; - } -} - -/** A Cloud Dataproc job resource. */ -class Job { - /** - * Output-only If present, the location of miscellaneous control files which - * may be used as part of job setup and handling. If not present, control - * files may be placed in the same location as driver_output_uri. - */ - core.String driverControlFilesUri; - /** - * Output-only A URI pointing to the location of the stdin of the job's driver - * program, only set if the job is interactive. - */ - core.String driverInputResourceUri; - /** - * Output-only A URI pointing to the location of the stdout of the job's - * driver program. - */ - core.String driverOutputResourceUri; - /** Job is a Hadoop job. */ - HadoopJob hadoopJob; - /** Job is a Hive job. */ - HiveJob hiveJob; - /** - * Optional If set to true, the driver's stdin will be kept open and - * driver_input_uri will be set to provide a path at which additional input - * can be sent to the driver. - */ - core.bool interactive; - /** - * Optional The labels to associate with this job.Label keys must be between 1 - * and 63 characters long, and must conform to the following regular - * expression: \p{Ll}\p{Lo}{0,62}Label values must be between 1 and 63 - * characters long, and must conform to the following regular expression: - * \p{Ll}\p{Lo}\p{N}_-{0,63}No more than 64 labels can be associated with a - * given job. - */ - core.Map<core.String, core.String> labels; - /** Job is a Pig job. */ - PigJob pigJob; - /** - * Required Job information, including how, when, and where to run the job. - */ - JobPlacement placement; - /** Job is a Pyspark job. */ - PySparkJob pysparkJob; - /** - * Optional The fully qualified reference to the job, which can be used to - * obtain the equivalent REST path of the job resource. If this property is - * not specified when a job is created, the server generates a - * <code>job_id</code>. - */ - JobReference reference; - /** Optional Job scheduling configuration. */ - JobScheduling scheduling; - /** Job is a Spark job. */ - SparkJob sparkJob; - /** Job is a SparkSql job. */ - SparkSqlJob sparkSqlJob; - /** - * Output-only The job status. Additional application-specific status - * information may be contained in the <code>type_job</code> and - * <code>yarn_applications</code> fields. - */ - JobStatus status; - /** Output-only The previous job status. */ - core.List<JobStatus> statusHistory; - /** - * Output-only The email address of the user submitting the job. For jobs - * submitted on the cluster, the address is <code>username@hostname</code>. - */ - core.String submittedBy; - /** Output-only The collection of YARN applications spun up by this job. */ - core.List<YarnApplication> yarnApplications; - - Job(); - - Job.fromJson(core.Map _json) { - if (_json.containsKey("driverControlFilesUri")) { - driverControlFilesUri = _json["driverControlFilesUri"]; - } - if (_json.containsKey("driverInputResourceUri")) { - driverInputResourceUri = _json["driverInputResourceUri"]; - } - if (_json.containsKey("driverOutputResourceUri")) { - driverOutputResourceUri = _json["driverOutputResourceUri"]; - } - if (_json.containsKey("hadoopJob")) { - hadoopJob = new HadoopJob.fromJson(_json["hadoopJob"]); - } - if (_json.containsKey("hiveJob")) { - hiveJob = new HiveJob.fromJson(_json["hiveJob"]); - } - if (_json.containsKey("interactive")) { - interactive = _json["interactive"]; - } - if (_json.containsKey("labels")) { - labels = _json["labels"]; - } - if (_json.containsKey("pigJob")) { - pigJob = new PigJob.fromJson(_json["pigJob"]); - } - if (_json.containsKey("placement")) { - placement = new JobPlacement.fromJson(_json["placement"]); - } - if (_json.containsKey("pysparkJob")) { - pysparkJob = new PySparkJob.fromJson(_json["pysparkJob"]); - } - if (_json.containsKey("reference")) { - reference = new JobReference.fromJson(_json["reference"]); - } - if (_json.containsKey("scheduling")) { - scheduling = new JobScheduling.fromJson(_json["scheduling"]); - } - if (_json.containsKey("sparkJob")) { - sparkJob = new SparkJob.fromJson(_json["sparkJob"]); - } - if (_json.containsKey("sparkSqlJob")) { - sparkSqlJob = new SparkSqlJob.fromJson(_json["sparkSqlJob"]); - } - if (_json.containsKey("status")) { - status = new JobStatus.fromJson(_json["status"]); - } - if (_json.containsKey("statusHistory")) { - statusHistory = _json["statusHistory"].map((value) => new JobStatus.fromJson(value)).toList(); - } - if (_json.containsKey("submittedBy")) { - submittedBy = _json["submittedBy"]; - } - if (_json.containsKey("yarnApplications")) { - yarnApplications = _json["yarnApplications"].map((value) => new YarnApplication.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 (driverControlFilesUri != null) { - _json["driverControlFilesUri"] = driverControlFilesUri; - } - if (driverInputResourceUri != null) { - _json["driverInputResourceUri"] = driverInputResourceUri; - } - if (driverOutputResourceUri != null) { - _json["driverOutputResourceUri"] = driverOutputResourceUri; - } - if (hadoopJob != null) { - _json["hadoopJob"] = (hadoopJob).toJson(); - } - if (hiveJob != null) { - _json["hiveJob"] = (hiveJob).toJson(); - } - if (interactive != null) { - _json["interactive"] = interactive; - } - if (labels != null) { - _json["labels"] = labels; - } - if (pigJob != null) { - _json["pigJob"] = (pigJob).toJson(); - } - if (placement != null) { - _json["placement"] = (placement).toJson(); - } - if (pysparkJob != null) { - _json["pysparkJob"] = (pysparkJob).toJson(); - } - if (reference != null) { - _json["reference"] = (reference).toJson(); - } - if (scheduling != null) { - _json["scheduling"] = (scheduling).toJson(); - } - if (sparkJob != null) { - _json["sparkJob"] = (sparkJob).toJson(); - } - if (sparkSqlJob != null) { - _json["sparkSqlJob"] = (sparkSqlJob).toJson(); - } - if (status != null) { - _json["status"] = (status).toJson(); - } - if (statusHistory != null) { - _json["statusHistory"] = statusHistory.map((value) => (value).toJson()).toList(); - } - if (submittedBy != null) { - _json["submittedBy"] = submittedBy; - } - if (yarnApplications != null) { - _json["yarnApplications"] = yarnApplications.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Cloud Dataproc job configuration. */ -class JobPlacement { - /** Required The name of the cluster where the job will be submitted. */ - core.String clusterName; - /** - * Output-only A cluster UUID generated by the Dataproc service when the job - * is submitted. - */ - core.String clusterUuid; - - JobPlacement(); - - JobPlacement.fromJson(core.Map _json) { - if (_json.containsKey("clusterName")) { - clusterName = _json["clusterName"]; - } - if (_json.containsKey("clusterUuid")) { - clusterUuid = _json["clusterUuid"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (clusterName != null) { - _json["clusterName"] = clusterName; - } - if (clusterUuid != null) { - _json["clusterUuid"] = clusterUuid; - } - return _json; - } -} - -/** Encapsulates the full scoping used to reference a job. */ -class JobReference { - /** - * Required The job ID, which must be unique within the project. The job ID is - * generated by the server upon job submission or provided by the user as a - * means to perform retries without creating duplicate jobs. The ID must - * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens - * (-). The maximum length is 100 characters. - */ - core.String jobId; - /** - * Required The ID of the Google Cloud Platform project that the job belongs - * to. - */ - core.String projectId; - - JobReference(); - - JobReference.fromJson(core.Map _json) { - if (_json.containsKey("jobId")) { - jobId = _json["jobId"]; - } - if (_json.containsKey("projectId")) { - projectId = _json["projectId"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (jobId != null) { - _json["jobId"] = jobId; - } - if (projectId != null) { - _json["projectId"] = projectId; - } - return _json; - } -} - -/** - * Job scheduling options.Beta Feature: These options are available for testing - * purposes only. They may be changed before final release. - */ -class JobScheduling { - /** - * Optional Maximum number of times per hour a driver may be restarted as a - * result of driver terminating with non-zero code before job is reported - * failed.A job may be reported as thrashing if driver exits with non-zero - * code 4 times within 10 minute window.Maximum value is 10. - */ - core.int maxFailuresPerHour; - - JobScheduling(); - - JobScheduling.fromJson(core.Map _json) { - if (_json.containsKey("maxFailuresPerHour")) { - maxFailuresPerHour = _json["maxFailuresPerHour"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (maxFailuresPerHour != null) { - _json["maxFailuresPerHour"] = maxFailuresPerHour; - } - return _json; - } -} - -/** Cloud Dataproc job status. */ -class JobStatus { - /** - * Optional Job state details, such as an error description if the state is - * <code>ERROR</code>. - */ - core.String details; - /** - * Required A state message specifying the overall job state. - * Possible string values are: - * - "STATE_UNSPECIFIED" : The job state is unknown. - * - "PENDING" : The job is pending; it has been submitted, but is not yet - * running. - * - "SETUP_DONE" : Job has been received by the service and completed initial - * setup; it will shortly be submitted to the cluster. - * - "RUNNING" : The job is running on the cluster. - * - "CANCEL_PENDING" : A CancelJob request has been received, but is pending. - * - "CANCEL_STARTED" : Transient in-flight resources have been canceled, and - * the request to cancel the running job has been issued to the cluster. - * - "CANCELLED" : The job cancelation was successful. - * - "DONE" : The job has completed successfully. - * - "ERROR" : The job has completed, but encountered an error. - * - "ATTEMPT_FAILURE" : Job attempt has failed. The detail field contains - * failure details for this attempt.Applies to restartable jobs only. - */ - core.String state; - /** Output-only The time when this state was entered. */ - core.String stateStartTime; - /** - * Output-only Additional state information, which includes status reported by - * the agent. - * Possible string values are: - * - "UNSPECIFIED" - * - "SUBMITTED" : The Job is submitted to the agent.Applies to RUNNING state. - * - "QUEUED" : The Job has been received and is awaiting execution (it may be - * waiting for a condition to be met). See the "details" field for the reason - * for the delay.Applies to RUNNING state. - * - "STALE_STATUS" : The agent-reported status is out of date, which may be - * caused by a loss of communication between the agent and Cloud Dataproc. If - * the agent does not send a timely update, the job will fail.Applies to - * RUNNING state. - */ - core.String substate; - - JobStatus(); - - JobStatus.fromJson(core.Map _json) { - if (_json.containsKey("details")) { - details = _json["details"]; - } - if (_json.containsKey("state")) { - state = _json["state"]; - } - if (_json.containsKey("stateStartTime")) { - stateStartTime = _json["stateStartTime"]; - } - if (_json.containsKey("substate")) { - substate = _json["substate"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (details != null) { - _json["details"] = details; - } - if (state != null) { - _json["state"] = state; - } - if (stateStartTime != null) { - _json["stateStartTime"] = stateStartTime; - } - if (substate != null) { - _json["substate"] = substate; - } - return _json; - } -} - -/** The list of all clusters in a project. */ -class ListClustersResponse { - /** Output-only The clusters in the project. */ - core.List<Cluster> clusters; - /** The standard List next-page token. */ - core.String nextPageToken; - - ListClustersResponse(); - - ListClustersResponse.fromJson(core.Map _json) { - if (_json.containsKey("clusters")) { - clusters = _json["clusters"].map((value) => new Cluster.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 (clusters != null) { - _json["clusters"] = clusters.map((value) => (value).toJson()).toList(); - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** A list of jobs in a project. */ -class ListJobsResponse { - /** Output-only Jobs list. */ - core.List<Job> jobs; - /** - * Optional This token is included in the response if there are more results - * to fetch. To fetch additional results, provide this value as the page_token - * in a subsequent <code>ListJobsRequest</code>. - */ - core.String nextPageToken; - - ListJobsResponse(); - - ListJobsResponse.fromJson(core.Map _json) { - if (_json.containsKey("jobs")) { - jobs = _json["jobs"].map((value) => new Job.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 (jobs != null) { - _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** The response message for Operations.ListOperations. */ -class ListOperationsResponse { - /** The standard List next-page token. */ - core.String nextPageToken; - /** A list of operations that matches the specified filter in the request. */ - core.List<Operation> operations; - - ListOperationsResponse(); - - ListOperationsResponse.fromJson(core.Map _json) { - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("operations")) { - operations = _json["operations"].map((value) => new Operation.fromJson(value)).toList(); - } - } - - core.Map<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; - } -} - -/** The runtime logging configuration of the job. */ -class LoggingConfiguration { - /** - * The per-package log levels for the driver. This may include "root" package - * name to configure rootLogger. Examples: 'com.google = FATAL', 'root = - * INFO', 'org.apache = DEBUG' - */ - core.Map<core.String, core.String> driverLogLevels; - - LoggingConfiguration(); - - LoggingConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("driverLogLevels")) { - driverLogLevels = _json["driverLogLevels"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (driverLogLevels != null) { - _json["driverLogLevels"] = driverLogLevels; - } - return _json; - } -} - -/** Specifies the resources used to actively manage an instance group. */ -class ManagedGroupConfiguration { - /** Output-only The name of the Instance Group Manager for this group. */ - core.String instanceGroupManagerName; - /** - * Output-only The name of the Instance Template used for the Managed Instance - * Group. - */ - core.String instanceTemplateName; - - ManagedGroupConfiguration(); - - ManagedGroupConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("instanceGroupManagerName")) { - instanceGroupManagerName = _json["instanceGroupManagerName"]; - } - if (_json.containsKey("instanceTemplateName")) { - instanceTemplateName = _json["instanceTemplateName"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (instanceGroupManagerName != null) { - _json["instanceGroupManagerName"] = instanceGroupManagerName; - } - if (instanceTemplateName != null) { - _json["instanceTemplateName"] = instanceTemplateName; - } - return _json; - } -} - -/** - * 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. */ - core.String executableFile; - /** - * Optional Amount of time executable has to complete. Default is 10 minutes. - * Cluster creation fails with an explanatory error message (the name of the - * executable that caused the error and the exceeded timeout period) if the - * executable is not completed at end of the timeout period. - */ - core.String executionTimeout; - - NodeInitializationAction(); - - NodeInitializationAction.fromJson(core.Map _json) { - if (_json.containsKey("executableFile")) { - executableFile = _json["executableFile"]; - } - if (_json.containsKey("executionTimeout")) { - executionTimeout = _json["executionTimeout"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (executableFile != null) { - _json["executableFile"] = executableFile; - } - if (executionTimeout != null) { - _json["executionTimeout"] = executionTimeout; - } - return _json; - } -} - -/** - * This resource represents a long-running operation that is the result of a - * network API call. - */ -class Operation { - /** - * If the value is false, it means the operation is still in progress. If - * true, the operation is completed, and either error or response is - * available. - */ - core.bool done; - /** The error result of the operation in case of failure or cancellation. */ - Status error; - /** - * Service-specific metadata associated with the operation. It typically - * contains progress information and common metadata such as create time. Some - * services might not provide such metadata. Any method that returns a - * long-running operation should document the metadata type, if any. - * - * The values for Object must be JSON objects. It can consist of `num`, - * `String`, `bool` and `null` as well as `Map` and `List` values. - */ - core.Map<core.String, core.Object> metadata; - /** - * The server-assigned name, which is only unique within the same service that - * originally returns it. If you use the default HTTP mapping, the name should - * have the format of operations/some/unique/name. - */ - core.String name; - /** - * The normal response of the operation in case of success. If the original - * method returns no data on success, such as Delete, the response is - * google.protobuf.Empty. If the original method is standard - * Get/Create/Update, the response should be the resource. For other methods, - * the response should have the type XxxResponse, where Xxx is the original - * method name. For example, if the original method name is TakeSnapshot(), - * the inferred response type is TakeSnapshotResponse. - * - * The values for Object must be JSON objects. It can consist of `num`, - * `String`, `bool` and `null` as well as `Map` and `List` values. - */ - core.Map<core.String, core.Object> response; - - Operation(); - - Operation.fromJson(core.Map _json) { - if (_json.containsKey("done")) { - done = _json["done"]; - } - if (_json.containsKey("error")) { - error = new Status.fromJson(_json["error"]); - } - if (_json.containsKey("metadata")) { - metadata = _json["metadata"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("response")) { - response = _json["response"]; - } - } - - core.Map<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; - } -} - -/** Metadata describing the operation. */ -class OperationMetadata { - /** Name of the cluster for the operation. */ - core.String clusterName; - /** Cluster UUId for the operation. */ - core.String clusterUuid; - /** Output-only Short description of operation. */ - core.String description; - /** Output-only The operation type. */ - core.String operationType; - /** Output-only Current operation status. */ - OperationStatus status; - /** Output-only Previous operation status. */ - core.List<OperationStatus> statusHistory; - /** Output-only Errors encountered during operation execution. */ - core.List<core.String> warnings; - - OperationMetadata(); - - OperationMetadata.fromJson(core.Map _json) { - if (_json.containsKey("clusterName")) { - clusterName = _json["clusterName"]; - } - if (_json.containsKey("clusterUuid")) { - clusterUuid = _json["clusterUuid"]; - } - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("operationType")) { - operationType = _json["operationType"]; - } - if (_json.containsKey("status")) { - status = new OperationStatus.fromJson(_json["status"]); - } - if (_json.containsKey("statusHistory")) { - statusHistory = _json["statusHistory"].map((value) => new OperationStatus.fromJson(value)).toList(); - } - if (_json.containsKey("warnings")) { - warnings = _json["warnings"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (clusterName != null) { - _json["clusterName"] = clusterName; - } - if (clusterUuid != null) { - _json["clusterUuid"] = clusterUuid; - } - if (description != null) { - _json["description"] = description; - } - if (operationType != null) { - _json["operationType"] = operationType; - } - if (status != null) { - _json["status"] = (status).toJson(); - } - if (statusHistory != null) { - _json["statusHistory"] = statusHistory.map((value) => (value).toJson()).toList(); - } - if (warnings != null) { - _json["warnings"] = warnings; - } - return _json; - } -} - -/** The status of the operation. */ -class OperationStatus { - /** A message containing any operation metadata details. */ - core.String details; - /** A message containing the detailed operation state. */ - core.String innerState; - /** - * A message containing the operation state. - * Possible string values are: - * - "UNKNOWN" : Unused. - * - "PENDING" : The operation has been created. - * - "RUNNING" : The operation is running. - * - "DONE" : The operation is done; either cancelled or completed. - */ - core.String state; - /** The time this state was entered. */ - core.String stateStartTime; - - OperationStatus(); - - OperationStatus.fromJson(core.Map _json) { - if (_json.containsKey("details")) { - details = _json["details"]; - } - if (_json.containsKey("innerState")) { - innerState = _json["innerState"]; - } - if (_json.containsKey("state")) { - state = _json["state"]; - } - if (_json.containsKey("stateStartTime")) { - stateStartTime = _json["stateStartTime"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (details != null) { - _json["details"] = details; - } - if (innerState != null) { - _json["innerState"] = innerState; - } - if (state != null) { - _json["state"] = state; - } - if (stateStartTime != null) { - _json["stateStartTime"] = stateStartTime; - } - return _json; - } -} - -/** A Cloud Dataproc job for running Pig queries on YARN. */ -class PigJob { - /** - * Optional Whether to continue executing queries if a query fails. The - * default value is false. Setting to true can be useful when executing - * independent parallel queries. - */ - core.bool continueOnFailure; - /** - * Optional HCFS URIs of jar files to add to the CLASSPATH of the Pig Client - * and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs. - */ - core.List<core.String> jarFileUris; - /** Optional The runtime log configuration for job execution. */ - LoggingConfiguration loggingConfiguration; - /** - * Optional A mapping of property names to values, used to configure Pig. - * Properties that conflict with values set by the Cloud Dataproc API may be - * overwritten. Can include properties set in /etc/hadoop/conf / * -site.xml, - * /etc/pig/conf/pig.properties, and classes in user code. - */ - core.Map<core.String, core.String> properties; - /** The HCFS URI of the script that contains the Pig queries. */ - core.String queryFileUri; - /** A list of queries. */ - QueryList queryList; - /** - * Optional Mapping of query variable names to values (equivalent to the Pig - * command: name=[value]). - */ - core.Map<core.String, core.String> scriptVariables; - - PigJob(); - - PigJob.fromJson(core.Map _json) { - if (_json.containsKey("continueOnFailure")) { - continueOnFailure = _json["continueOnFailure"]; - } - if (_json.containsKey("jarFileUris")) { - jarFileUris = _json["jarFileUris"]; - } - if (_json.containsKey("loggingConfiguration")) { - loggingConfiguration = new LoggingConfiguration.fromJson(_json["loggingConfiguration"]); - } - if (_json.containsKey("properties")) { - properties = _json["properties"]; - } - if (_json.containsKey("queryFileUri")) { - queryFileUri = _json["queryFileUri"]; - } - if (_json.containsKey("queryList")) { - queryList = new QueryList.fromJson(_json["queryList"]); - } - if (_json.containsKey("scriptVariables")) { - scriptVariables = _json["scriptVariables"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (continueOnFailure != null) { - _json["continueOnFailure"] = continueOnFailure; - } - if (jarFileUris != null) { - _json["jarFileUris"] = jarFileUris; - } - if (loggingConfiguration != null) { - _json["loggingConfiguration"] = (loggingConfiguration).toJson(); - } - if (properties != null) { - _json["properties"] = properties; - } - if (queryFileUri != null) { - _json["queryFileUri"] = queryFileUri; - } - if (queryList != null) { - _json["queryList"] = (queryList).toJson(); - } - if (scriptVariables != null) { - _json["scriptVariables"] = scriptVariables; - } - return _json; - } -} - -/** A Cloud Dataproc job for running PySpark applications on YARN. */ -class PySparkJob { - /** - * Optional HCFS URIs of archives to be extracted in the working directory of - * .jar, .tar, .tar.gz, .tgz, and .zip. - */ - core.List<core.String> archiveUris; - /** - * Optional The arguments to pass to the driver. Do not include arguments, - * such as --conf, that can be set as job properties, since a collision may - * occur that causes an incorrect job submission. - */ - core.List<core.String> args; - /** - * Optional HCFS URIs of files to be copied to the working directory of Python - * drivers and distributed tasks. Useful for naively parallel tasks. - */ - core.List<core.String> fileUris; - /** - * Optional HCFS URIs of jar files to add to the CLASSPATHs of the Python - * driver and tasks. - */ - core.List<core.String> jarFileUris; - /** Optional The runtime log configuration for job execution. */ - LoggingConfiguration loggingConfiguration; - /** - * Required The Hadoop Compatible Filesystem (HCFS) URI of the main Python - * file to use as the driver. Must be a .py file. - */ - core.String mainPythonFileUri; - /** - * Optional A mapping of property names to values, used to configure PySpark. - * Properties that conflict with values set by the Cloud Dataproc API may be - * overwritten. Can include properties set in - * /etc/spark/conf/spark-defaults.conf and classes in user code. - */ - core.Map<core.String, core.String> properties; - /** - * Optional HCFS file URIs of Python files to pass to the PySpark framework. - * Supported file types: .py, .egg, and .zip. - */ - core.List<core.String> pythonFileUris; - - PySparkJob(); - - PySparkJob.fromJson(core.Map _json) { - if (_json.containsKey("archiveUris")) { - archiveUris = _json["archiveUris"]; - } - if (_json.containsKey("args")) { - args = _json["args"]; - } - if (_json.containsKey("fileUris")) { - fileUris = _json["fileUris"]; - } - if (_json.containsKey("jarFileUris")) { - jarFileUris = _json["jarFileUris"]; - } - if (_json.containsKey("loggingConfiguration")) { - loggingConfiguration = new LoggingConfiguration.fromJson(_json["loggingConfiguration"]); - } - if (_json.containsKey("mainPythonFileUri")) { - mainPythonFileUri = _json["mainPythonFileUri"]; - } - if (_json.containsKey("properties")) { - properties = _json["properties"]; - } - if (_json.containsKey("pythonFileUris")) { - pythonFileUris = _json["pythonFileUris"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (archiveUris != null) { - _json["archiveUris"] = archiveUris; - } - if (args != null) { - _json["args"] = args; - } - if (fileUris != null) { - _json["fileUris"] = fileUris; - } - if (jarFileUris != null) { - _json["jarFileUris"] = jarFileUris; - } - if (loggingConfiguration != null) { - _json["loggingConfiguration"] = (loggingConfiguration).toJson(); - } - if (mainPythonFileUri != null) { - _json["mainPythonFileUri"] = mainPythonFileUri; - } - if (properties != null) { - _json["properties"] = properties; - } - if (pythonFileUris != null) { - _json["pythonFileUris"] = pythonFileUris; - } - return _json; - } -} - -/** A list of queries to run on a cluster. */ -class QueryList { - /** - * Required The queries to execute. You do not need to terminate a query with - * a semicolon. Multiple queries can be specified in one string by separating - * each with a semicolon. Here is an example of an Cloud Dataproc API snippet - * that uses a QueryList to specify a HiveJob: - * "hiveJob": { - * "queryList": { - * "queries": [ - * "query1", - * "query2", - * "query3;query4", - * ] - * } - * } - */ - core.List<core.String> queries; - - QueryList(); - - QueryList.fromJson(core.Map _json) { - if (_json.containsKey("queries")) { - queries = _json["queries"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (queries != null) { - _json["queries"] = queries; - } - return _json; - } -} - -/** - * Specifies the selection and configuration of software inside the cluster. - */ -class SoftwareConfiguration { - /** - * 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). - */ - core.String imageVersion; - /** - * Optional The properties to set on daemon configuration files.Property keys - * are specified in "prefix:property" format, such as "core:fs.defaultFS". The - * following are supported prefixes and their mappings: core - core-site.xml - * hdfs - hdfs-site.xml mapred - mapred-site.xml yarn - yarn-site.xml hive - * - hive-site.xml pig - pig.properties spark - spark-defaults.conf - */ - core.Map<core.String, core.String> properties; - - SoftwareConfiguration(); - - SoftwareConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("imageVersion")) { - imageVersion = _json["imageVersion"]; - } - if (_json.containsKey("properties")) { - properties = _json["properties"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (imageVersion != null) { - _json["imageVersion"] = imageVersion; - } - if (properties != null) { - _json["properties"] = properties; - } - return _json; - } -} - -/** A Cloud Dataproc job for running Spark applications on YARN. */ -class SparkJob { - /** - * Optional HCFS URIs of archives to be extracted in the working directory of - * Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, - * and .zip. - */ - core.List<core.String> archiveUris; - /** - * Optional The arguments to pass to the driver. Do not include arguments, - * such as --conf, that can be set as job properties, since a collision may - * occur that causes an incorrect job submission. - */ - core.List<core.String> args; - /** - * Optional HCFS URIs of files to be copied to the working directory of Spark - * drivers and distributed tasks. Useful for naively parallel tasks. - */ - core.List<core.String> fileUris; - /** - * Optional HCFS URIs of jar files to add to the CLASSPATHs of the Spark - * driver and tasks. - */ - core.List<core.String> jarFileUris; - /** Optional The runtime log configuration for job execution. */ - LoggingConfiguration loggingConfiguration; - /** - * The name of the driver's main class. The jar file that contains the class - * must be in the default CLASSPATH or specified in jar_file_uris. - */ - core.String mainClass; - /** - * The Hadoop Compatible Filesystem (HCFS) URI of the jar file that contains - * the main class. - */ - core.String mainJarFileUri; - /** - * Optional A mapping of property names to values, used to configure Spark. - * Properties that conflict with values set by the Cloud Dataproc API may be - * overwritten. Can include properties set in - * /etc/spark/conf/spark-defaults.conf and classes in user code. - */ - core.Map<core.String, core.String> properties; - - SparkJob(); - - SparkJob.fromJson(core.Map _json) { - if (_json.containsKey("archiveUris")) { - archiveUris = _json["archiveUris"]; - } - if (_json.containsKey("args")) { - args = _json["args"]; - } - if (_json.containsKey("fileUris")) { - fileUris = _json["fileUris"]; - } - if (_json.containsKey("jarFileUris")) { - jarFileUris = _json["jarFileUris"]; - } - if (_json.containsKey("loggingConfiguration")) { - loggingConfiguration = new LoggingConfiguration.fromJson(_json["loggingConfiguration"]); - } - if (_json.containsKey("mainClass")) { - mainClass = _json["mainClass"]; - } - if (_json.containsKey("mainJarFileUri")) { - mainJarFileUri = _json["mainJarFileUri"]; - } - if (_json.containsKey("properties")) { - properties = _json["properties"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (archiveUris != null) { - _json["archiveUris"] = archiveUris; - } - if (args != null) { - _json["args"] = args; - } - if (fileUris != null) { - _json["fileUris"] = fileUris; - } - if (jarFileUris != null) { - _json["jarFileUris"] = jarFileUris; - } - if (loggingConfiguration != null) { - _json["loggingConfiguration"] = (loggingConfiguration).toJson(); - } - if (mainClass != null) { - _json["mainClass"] = mainClass; - } - if (mainJarFileUri != null) { - _json["mainJarFileUri"] = mainJarFileUri; - } - if (properties != null) { - _json["properties"] = properties; - } - return _json; - } -} - -/** A Cloud Dataproc job for running Spark SQL queries. */ -class SparkSqlJob { - /** Optional HCFS URIs of jar files to be added to the Spark CLASSPATH. */ - core.List<core.String> jarFileUris; - /** Optional The runtime log configuration for job execution. */ - LoggingConfiguration loggingConfiguration; - /** - * Optional A mapping of property names to values, used to configure Spark - * SQL's SparkConf. Properties that conflict with values set by the Cloud - * Dataproc API may be overwritten. - */ - core.Map<core.String, core.String> properties; - /** The HCFS URI of the script that contains SQL queries. */ - core.String queryFileUri; - /** A list of queries. */ - QueryList queryList; - /** - * Optional Mapping of query variable names to values (equivalent to the Spark - * SQL command: SET name="value";). - */ - core.Map<core.String, core.String> scriptVariables; - - SparkSqlJob(); - - SparkSqlJob.fromJson(core.Map _json) { - if (_json.containsKey("jarFileUris")) { - jarFileUris = _json["jarFileUris"]; - } - if (_json.containsKey("loggingConfiguration")) { - loggingConfiguration = new LoggingConfiguration.fromJson(_json["loggingConfiguration"]); - } - if (_json.containsKey("properties")) { - properties = _json["properties"]; - } - if (_json.containsKey("queryFileUri")) { - queryFileUri = _json["queryFileUri"]; - } - if (_json.containsKey("queryList")) { - queryList = new QueryList.fromJson(_json["queryList"]); - } - if (_json.containsKey("scriptVariables")) { - scriptVariables = _json["scriptVariables"]; - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (jarFileUris != null) { - _json["jarFileUris"] = jarFileUris; - } - if (loggingConfiguration != null) { - _json["loggingConfiguration"] = (loggingConfiguration).toJson(); - } - if (properties != null) { - _json["properties"] = properties; - } - if (queryFileUri != null) { - _json["queryFileUri"] = queryFileUri; - } - if (queryList != null) { - _json["queryList"] = (queryList).toJson(); - } - if (scriptVariables != null) { - _json["scriptVariables"] = scriptVariables; - } - 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 needsOverviewThe Status message contains - * three pieces of data: error code, error message, and error details. The error - * code should be an enum value of google.rpc.Code, but it may accept additional - * error codes if needed. The error message should be a developer-facing English - * message that helps developers understand and resolve the error. If a - * localized user-facing error message is needed, put the localized message in - * the error details or localize it in the client. The optional error details - * may contain arbitrary information about the error. There is a predefined set - * of error detail types in the package google.rpc that can be used for common - * error conditions.Language mappingThe Status message is the logical - * representation of the error model, but it is not necessarily the actual wire - * format. When the Status message is exposed in different client libraries and - * different wire protocols, it can be mapped differently. For example, it will - * likely be mapped to some exceptions in Java, but more likely mapped to some - * error codes in C.Other usesThe error model and the Status message can be used - * in a variety of environments, either with or without APIs, to provide a - * consistent developer experience across different environments.Example uses of - * this error model include: - * Partial errors. If a service needs to return partial errors to the client, it - * may embed the Status in the normal response to indicate the partial errors. - * Workflow errors. A typical workflow has multiple steps. Each step may have a - * Status message for error reporting. - * Batch operations. If a client uses batch request and batch response, the - * Status message should be used directly inside batch response, one for each - * error sub-response. - * Asynchronous operations. If an API call embeds asynchronous operation results - * in its response, the status of those operations should be represented - * directly using the Status message. - * Logging. If some API errors are stored in logs, the message Status could be - * used directly after any stripping needed for security/privacy reasons. - */ -class Status { - /** The status code, which should be an enum value of google.rpc.Code. */ - core.int code; - /** - * A list of messages that carry the error details. There will be a common set - * of message types for APIs to use. - * - * The values for Object must be JSON objects. It can consist of `num`, - * `String`, `bool` and `null` as well as `Map` and `List` values. - */ - core.List<core.Map<core.String, core.Object>> details; - /** - * A developer-facing error message, which should be in English. Any - * user-facing error message should be localized and sent in the - * google.rpc.Status.details field, or localized by the client. - */ - core.String message; - - Status(); - - Status.fromJson(core.Map _json) { - if (_json.containsKey("code")) { - code = _json["code"]; - } - if (_json.containsKey("details")) { - details = _json["details"]; - } - if (_json.containsKey("message")) { - message = _json["message"]; - } - } - - core.Map<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; - } -} - -/** A request to submit a job. */ -class SubmitJobRequest { - /** Required The job resource. */ - Job job; - - SubmitJobRequest(); - - SubmitJobRequest.fromJson(core.Map _json) { - if (_json.containsKey("job")) { - job = new Job.fromJson(_json["job"]); - } - } - - core.Map<core.String, core.Object> toJson() { - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); - if (job != null) { - _json["job"] = (job).toJson(); - } - return _json; - } -} - -/** - * A YARN application created by a job. Application information is a subset of - * <code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>. - */ -class YarnApplication { - /** Required The application name. */ - core.String name; - /** Required The numerical progress of the application, from 1 to 100. */ - core.double progress; - /** - * Required The application state. - * Possible string values are: - * - "STATE_UNSPECIFIED" : Status is unspecified. - * - "NEW" : Status is NEW. - * - "NEW_SAVING" : Status is NEW_SAVING. - * - "SUBMITTED" : Status is SUBMITTED. - * - "ACCEPTED" : Status is ACCEPTED. - * - "RUNNING" : Status is RUNNING. - * - "FINISHED" : Status is FINISHED. - * - "FAILED" : Status is FAILED. - * - "KILLED" : Status is KILLED. - */ - core.String state; - /** - * Optional The HTTP URL of the ApplicationMaster, HistoryServer, or - * TimelineServer that provides application-specific information. The URL uses - * the internal hostname, and requires a proxy server for resolution and, - * possibly, access. - */ - core.String trackingUrl; - - YarnApplication(); - - YarnApplication.fromJson(core.Map _json) { - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("progress")) { - progress = _json["progress"]; - } - if (_json.containsKey("state")) { - state = _json["state"]; - } - if (_json.containsKey("trackingUrl")) { - trackingUrl = _json["trackingUrl"]; - } - } - - core.Map<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 (progress != null) { - _json["progress"] = progress; - } - if (state != null) { - _json["state"] = state; - } - if (trackingUrl != null) { - _json["trackingUrl"] = trackingUrl; - } - return _json; - } -}
diff --git a/generated/googleapis_beta/lib/dlp/v2beta1.dart b/generated/googleapis_beta/lib/dlp/v2beta1.dart index 853cd3a..f40ea5b 100644 --- a/generated/googleapis_beta/lib/dlp/v2beta1.dart +++ b/generated/googleapis_beta/lib/dlp/v2beta1.dart
@@ -317,14 +317,14 @@ * [name] - The name of the operation's parent resource. * Value must have pattern "^inspect/operations$". * + * [pageSize] - The list page size. The max allowed value is 256 and default + * is 100. + * * [filter] - This parameter supports filtering by done, ie done=true or * done=false. * * [pageToken] - The standard list page token. * - * [pageSize] - The list page size. The max allowed value is 256 and default - * is 100. - * * Completes with a [GoogleLongrunningListOperationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -333,7 +333,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<GoogleLongrunningListOperationsResponse> list(core.String name, {core.String filter, core.String pageToken, core.int pageSize}) { + async.Future<GoogleLongrunningListOperationsResponse> list(core.String name, {core.int pageSize, core.String filter, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -344,15 +344,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}"]; - } _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name'); @@ -392,9 +392,12 @@ * * [name] - Identifier of the results set returned as metadata of * the longrunning operation created by a call to CreateInspectOperation. - * Should be in the format of `inspect/results/{id}. + * Should be in the format of `inspect/results/{id}`. * Value must have pattern "^inspect/results/[^/]+$". * + * [pageSize] - Maximum number of results to return. + * If 0, the implementation selects a reasonable value. + * * [filter] - Restricts findings to items that match. Supports info_type and * likelihood. * <p>Examples:<br/> @@ -409,9 +412,6 @@ * that this is a continuation of a prior `ListInspectFindings` call, and that * the system should return the next page of data. * - * [pageSize] - Maximum number of results to return. - * If 0, the implementation selects a reasonable value. - * * Completes with a [GooglePrivacyDlpV2beta1ListInspectFindingsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -420,7 +420,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<GooglePrivacyDlpV2beta1ListInspectFindingsResponse> list(core.String name, {core.String filter, core.String pageToken, core.int pageSize}) { + async.Future<GooglePrivacyDlpV2beta1ListInspectFindingsResponse> list(core.String name, {core.int pageSize, core.String filter, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -431,15 +431,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}"]; - } _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$name') + '/findings'; @@ -1003,7 +1003,7 @@ /** General identifier of a data field in a storage service. */ class GooglePrivacyDlpV2beta1FieldId { - /** Column name describing the field. */ + /** Name describing the field. */ core.String columnName; GooglePrivacyDlpV2beta1FieldId(); @@ -1211,12 +1211,7 @@ /** Type of information detected by the API. */ class GooglePrivacyDlpV2beta1InfoType { - /** - * Name of the information type. For built-in info types, this is provided by - * the API call ListInfoTypes. For user-defined info types, this is - * provided by the user. All user-defined info types must have unique names, - * and cannot conflict with built-in info type names. - */ + /** Name of the information type. */ core.String name; GooglePrivacyDlpV2beta1InfoType(); @@ -2220,8 +2215,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a - * common set of message types for APIs to use. + * A list of messages that carry the error details. There 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.
diff --git a/generated/googleapis_beta/lib/language/v1beta1.dart b/generated/googleapis_beta/lib/language/v1beta1.dart index 2d29e4c..846b261 100644 --- a/generated/googleapis_beta/lib/language/v1beta1.dart +++ b/generated/googleapis_beta/lib/language/v1beta1.dart
@@ -20,6 +20,11 @@ * and text annotations. */ class LanguageApi { + /** + * Apply machine learning models to reveal the structure and meaning of text + */ + static const CloudLanguageScope = "https://www.googleapis.com/auth/cloud-language"; + /** View and manage your data across Google Cloud Platform services */ static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; @@ -1336,8 +1341,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a - * common set of message types for APIs to use. + * A list of messages that carry the error details. There 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.
diff --git a/generated/googleapis_beta/lib/language/v1beta2.dart b/generated/googleapis_beta/lib/language/v1beta2.dart index 0c0ecfa..4205c5b 100644 --- a/generated/googleapis_beta/lib/language/v1beta2.dart +++ b/generated/googleapis_beta/lib/language/v1beta2.dart
@@ -20,6 +20,11 @@ * and text annotations. */ class LanguageApi { + /** + * Apply machine learning models to reveal the structure and meaning of text + */ + static const CloudLanguageScope = "https://www.googleapis.com/auth/cloud-language"; + /** View and manage your data across Google Cloud Platform services */ static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; @@ -1482,8 +1487,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a - * common set of message types for APIs to use. + * A list of messages that carry the error details. There 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.
diff --git a/generated/googleapis_beta/lib/logging/v2beta1.dart b/generated/googleapis_beta/lib/logging/v2beta1.dart index 7991149..7c9a7c7 100644 --- a/generated/googleapis_beta/lib/logging/v2beta1.dart +++ b/generated/googleapis_beta/lib/logging/v2beta1.dart
@@ -2149,9 +2149,8 @@ */ core.String name; /** - * Optional. The log entry format to use for this sink's exported log entries. - * The v2 format is used by default. The v1 format is deprecated and should be - * used only as part of a migration effort to v2. See Migration to the v2 API. + * Deprecated. The log entry format to use for this sink's exported log + * entries. The v2 format is used by default and cannot be changed. * Possible string values are: * - "VERSION_FORMAT_UNSPECIFIED" : An unspecified format version that will * default to V2.
diff --git a/generated/googleapis_beta/lib/oslogin/v1alpha.dart b/generated/googleapis_beta/lib/oslogin/v1alpha.dart index 140799f..091c0a4 100644 --- a/generated/googleapis_beta/lib/oslogin/v1alpha.dart +++ b/generated/googleapis_beta/lib/oslogin/v1alpha.dart
@@ -14,10 +14,7 @@ const core.String USER_AGENT = 'dart-api-client oslogin/v1alpha'; -/** - * A Google Cloud API for managing OS login configuration for Directory API - * users. - */ +/** Manages OS login configuration for Directory API users. */ class OsloginApi { /** View and manage your data across Google Cloud Platform services */ static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform";
diff --git a/generated/googleapis_beta/lib/proximitybeacon/v1beta1.dart b/generated/googleapis_beta/lib/proximitybeacon/v1beta1.dart index a4b0dc4..62315e8 100644 --- a/generated/googleapis_beta/lib/proximitybeacon/v1beta1.dart +++ b/generated/googleapis_beta/lib/proximitybeacon/v1beta1.dart
@@ -706,12 +706,6 @@ * Required. * Value must have pattern "^beacons/[^/]+$". * - * [namespacedType] - Specifies the namespace and type of attachments to - * delete in - * `namespace/type` format. Accepts `* / * ` to specify - * "all types in all namespaces". - * Optional. - * * [projectId] - The project id to delete beacon attachments under. This field * can be * used when "*" is specified to mean all attachment namespaces. Projects @@ -720,6 +714,12 @@ * making the request is used. * Optional. * + * [namespacedType] - Specifies the namespace and type of attachments to + * delete in + * `namespace/type` format. Accepts `* / * ` to specify + * "all types in all namespaces". + * Optional. + * * Completes with a [DeleteAttachmentsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -728,7 +728,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<DeleteAttachmentsResponse> batchDelete(core.String beaconName, {core.String namespacedType, core.String projectId}) { + async.Future<DeleteAttachmentsResponse> batchDelete(core.String beaconName, {core.String projectId, core.String namespacedType}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -739,12 +739,12 @@ if (beaconName == null) { throw new core.ArgumentError("Parameter beaconName is required."); } - if (namespacedType != null) { - _queryParams["namespacedType"] = [namespacedType]; - } if (projectId != null) { _queryParams["projectId"] = [projectId]; } + if (namespacedType != null) { + _queryParams["namespacedType"] = [namespacedType]; + } _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$beaconName') + '/attachments:batchDelete'; @@ -923,6 +923,11 @@ * Required. * Value must have pattern "^beacons/[^/]+$". * + * [namespacedType] - Specifies the namespace and type of attachment to + * include in response in + * <var>namespace/type</var> format. Accepts `* / * ` to specify + * "all types in all namespaces". + * * [projectId] - The project id to list beacon attachments under. This field * can be * used when "*" is specified to mean all attachment namespaces. Projects @@ -931,11 +936,6 @@ * making the request is used. * Optional. * - * [namespacedType] - Specifies the namespace and type of attachment to - * include in response in - * <var>namespace/type</var> format. Accepts `* / * ` to specify - * "all types in all namespaces". - * * Completes with a [ListBeaconAttachmentsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -944,7 +944,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<ListBeaconAttachmentsResponse> list(core.String beaconName, {core.String projectId, core.String namespacedType}) { + async.Future<ListBeaconAttachmentsResponse> list(core.String beaconName, {core.String namespacedType, core.String projectId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -955,12 +955,12 @@ if (beaconName == null) { throw new core.ArgumentError("Parameter beaconName is required."); } - if (projectId != null) { - _queryParams["projectId"] = [projectId]; - } if (namespacedType != null) { _queryParams["namespacedType"] = [namespacedType]; } + if (projectId != null) { + _queryParams["projectId"] = [projectId]; + } _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$beaconName') + '/attachments';
diff --git a/generated/googleapis_beta/lib/pubsub/v1beta2.dart b/generated/googleapis_beta/lib/pubsub/v1beta2.dart index 9c699a6..c1eacd7 100644 --- a/generated/googleapis_beta/lib/pubsub/v1beta2.dart +++ b/generated/googleapis_beta/lib/pubsub/v1beta2.dart
@@ -294,13 +294,13 @@ * [project] - The name of the cloud project that subscriptions belong to. * 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. - * * Completes with a [ListSubscriptionsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -309,7 +309,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.String pageToken, core.int pageSize}) { + async.Future<ListSubscriptionsResponse> list(core.String project, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -320,12 +320,12 @@ if (project == null) { throw new core.ArgumentError("Parameter project is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$project') + '/subscriptions'; @@ -784,13 +784,13 @@ * [project] - The name of the cloud project that topics belong to. * Value must have pattern "^projects/[^/]+$". * + * [pageSize] - Maximum number of topics to return. + * * [pageToken] - The value returned by the last `ListTopicsResponse`; * indicates that this is * a continuation of a prior `ListTopics` call, and that the system should * return the next page of data. * - * [pageSize] - Maximum number of topics to return. - * * Completes with a [ListTopicsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -799,7 +799,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<ListTopicsResponse> list(core.String project, {core.String pageToken, core.int pageSize}) { + async.Future<ListTopicsResponse> list(core.String project, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -810,12 +810,12 @@ if (project == null) { throw new core.ArgumentError("Parameter project is required."); } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$project') + '/topics';
diff --git a/generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart b/generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart index b0fe9c9..22ff18c 100644 --- a/generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart +++ b/generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart
@@ -753,15 +753,15 @@ * * `projects/example-project/config/[CONFIG_NAME]/variables/example-variable`. * - * [pageToken] - Specifies a page token to use. Set `pageToken` to a - * `nextPageToken` - * returned by a previous list request to get the next page of results. - * * [returnValues] - The flag indicates whether the user wants to return values * of variables. * If true, then only those variables that user has IAM GetVariable permission * will be returned along with their values. * + * [pageToken] - Specifies a page token to use. Set `pageToken` to a + * `nextPageToken` + * returned by a previous list request to get the next page of results. + * * [pageSize] - Specifies the number of results to return per page. If there * are fewer * elements than the specified number, returns all elements. @@ -774,7 +774,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<ListVariablesResponse> list(core.String parent, {core.String filter, core.String pageToken, core.bool returnValues, core.int pageSize}) { + async.Future<ListVariablesResponse> list(core.String parent, {core.String filter, core.bool returnValues, core.String pageToken, core.int pageSize}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -788,12 +788,12 @@ if (filter != null) { _queryParams["filter"] = [filter]; } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (returnValues != null) { _queryParams["returnValues"] = ["${returnValues}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; }
diff --git a/generated/googleapis_beta/lib/speech/v1beta1.dart b/generated/googleapis_beta/lib/speech/v1beta1.dart index 40d8ba1..7f8b424 100644 --- a/generated/googleapis_beta/lib/speech/v1beta1.dart +++ b/generated/googleapis_beta/lib/speech/v1beta1.dart
@@ -184,14 +184,14 @@ * * Request parameters: * - * [pageSize] - The standard list page size. - * - * [filter] - The standard list filter. - * * [pageToken] - The standard list page token. * * [name] - The name of the operation's parent resource. * + * [pageSize] - The standard list page size. + * + * [filter] - The standard list filter. + * * Completes with a [ListOperationsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -200,7 +200,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<ListOperationsResponse> list({core.int pageSize, core.String filter, core.String pageToken, core.String name}) { + async.Future<ListOperationsResponse> list({core.String pageToken, core.String name, core.int pageSize, core.String filter}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -208,18 +208,18 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } if (name != null) { _queryParams["name"] = [name]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } _url = 'v1beta1/operations'; @@ -827,8 +827,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a - * common set of message types for APIs to use. + * A list of messages that carry the error details. There 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.
diff --git a/generated/googleapis_beta/lib/toolresults/v1beta3.dart b/generated/googleapis_beta/lib/toolresults/v1beta3.dart index 0f201fb..c9ed561 100644 --- a/generated/googleapis_beta/lib/toolresults/v1beta3.dart +++ b/generated/googleapis_beta/lib/toolresults/v1beta3.dart
@@ -2082,7 +2082,7 @@ */ core.String state; /** - * TestExecution Matrix ID that the Test Service uses. + * TestExecution Matrix ID that the TestExecutionService uses. * * - In response: present if set by create - In create: optional - In update: * never set @@ -3018,26 +3018,42 @@ /** A stacktrace. */ class StackTrace { + /** Exception cluster ID */ + core.String clusterId; /** * The stack trace message. * * Required */ core.String exception; + /** Exception report ID */ + core.String reportId; StackTrace(); StackTrace.fromJson(core.Map _json) { + if (_json.containsKey("clusterId")) { + clusterId = _json["clusterId"]; + } if (_json.containsKey("exception")) { exception = _json["exception"]; } + if (_json.containsKey("reportId")) { + reportId = _json["reportId"]; + } } 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 (exception != null) { _json["exception"] = exception; } + if (reportId != null) { + _json["reportId"] = reportId; + } return _json; } }
diff --git a/generated/googleapis_beta/lib/toolresults/v1beta3firstparty.dart b/generated/googleapis_beta/lib/toolresults/v1beta3firstparty.dart index 457c58e..9d055d3 100644 --- a/generated/googleapis_beta/lib/toolresults/v1beta3firstparty.dart +++ b/generated/googleapis_beta/lib/toolresults/v1beta3firstparty.dart
@@ -2079,7 +2079,7 @@ */ core.String state; /** - * TestExecution Matrix ID that the Test Service uses. + * TestExecution Matrix ID that the TestExecutionService uses. * * - In response: present if set by create - In create: optional - In update: * never set @@ -3015,26 +3015,42 @@ /** A stacktrace. */ class StackTrace { + /** Exception cluster ID */ + core.String clusterId; /** * The stack trace message. * * Required */ core.String exception; + /** Exception report ID */ + core.String reportId; StackTrace(); StackTrace.fromJson(core.Map _json) { + if (_json.containsKey("clusterId")) { + clusterId = _json["clusterId"]; + } if (_json.containsKey("exception")) { exception = _json["exception"]; } + if (_json.containsKey("reportId")) { + reportId = _json["reportId"]; + } } 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 (exception != null) { _json["exception"] = exception; } + if (reportId != null) { + _json["reportId"] = reportId; + } return _json; } }
diff --git a/generated/googleapis_beta/lib/videointelligence/v1beta1.dart b/generated/googleapis_beta/lib/videointelligence/v1beta1.dart index 592b389..9915926 100644 --- a/generated/googleapis_beta/lib/videointelligence/v1beta1.dart +++ b/generated/googleapis_beta/lib/videointelligence/v1beta1.dart
@@ -650,6 +650,120 @@ } } +/** + * Safe search annotation (based on per-frame visual signals only). + * If no unsafe content has been detected in a frame, no annotations + * are present for that frame. If only some types of unsafe content + * have been detected in a frame, the likelihood is set to `UNKNOWN` + * for all other types of unsafe content. + */ +class GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation { + /** + * Likelihood of adult content. + * Possible string values are: + * - "UNKNOWN" : Unknown likelihood. + * - "VERY_UNLIKELY" : Very unlikely. + * - "UNLIKELY" : Unlikely. + * - "POSSIBLE" : Possible. + * - "LIKELY" : Likely. + * - "VERY_LIKELY" : Very likely. + */ + core.String adult; + /** + * Likelihood of medical content. + * Possible string values are: + * - "UNKNOWN" : Unknown likelihood. + * - "VERY_UNLIKELY" : Very unlikely. + * - "UNLIKELY" : Unlikely. + * - "POSSIBLE" : Possible. + * - "LIKELY" : Likely. + * - "VERY_LIKELY" : Very likely. + */ + core.String medical; + /** + * Likelihood of racy content. + * Possible string values are: + * - "UNKNOWN" : Unknown likelihood. + * - "VERY_UNLIKELY" : Very unlikely. + * - "UNLIKELY" : Unlikely. + * - "POSSIBLE" : Possible. + * - "LIKELY" : Likely. + * - "VERY_LIKELY" : Very likely. + */ + core.String racy; + /** + * Likelihood that an obvious modification was made to the original + * version to make it appear funny or offensive. + * Possible string values are: + * - "UNKNOWN" : Unknown likelihood. + * - "VERY_UNLIKELY" : Very unlikely. + * - "UNLIKELY" : Unlikely. + * - "POSSIBLE" : Possible. + * - "LIKELY" : Likely. + * - "VERY_LIKELY" : Very likely. + */ + core.String spoof; + /** Video time offset in microseconds. */ + core.String timeOffset; + /** + * Likelihood of violent content. + * Possible string values are: + * - "UNKNOWN" : Unknown likelihood. + * - "VERY_UNLIKELY" : Very unlikely. + * - "UNLIKELY" : Unlikely. + * - "POSSIBLE" : Possible. + * - "LIKELY" : Likely. + * - "VERY_LIKELY" : Very likely. + */ + core.String violent; + + GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(); + + GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation.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("timeOffset")) { + timeOffset = _json["timeOffset"]; + } + if (_json.containsKey("violent")) { + violent = _json["violent"]; + } + } + + 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 (timeOffset != null) { + _json["timeOffset"] = timeOffset; + } + if (violent != null) { + _json["violent"] = violent; + } + return _json; + } +} + /** Annotation progress for a single video. */ class GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress { /** @@ -716,6 +830,8 @@ core.String inputUri; /** Label annotations. There is exactly one element for each unique label. */ core.List<GoogleCloudVideointelligenceV1beta1LabelAnnotation> labelAnnotations; + /** Safe search annotations. */ + core.List<GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation> safeSearchAnnotations; /** Shot annotations. Each shot is represented as a video segment. */ core.List<GoogleCloudVideointelligenceV1beta1VideoSegment> shotAnnotations; @@ -731,6 +847,9 @@ if (_json.containsKey("labelAnnotations")) { labelAnnotations = _json["labelAnnotations"].map((value) => new GoogleCloudVideointelligenceV1beta1LabelAnnotation.fromJson(value)).toList(); } + if (_json.containsKey("safeSearchAnnotations")) { + safeSearchAnnotations = _json["safeSearchAnnotations"].map((value) => new GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation.fromJson(value)).toList(); + } if (_json.containsKey("shotAnnotations")) { shotAnnotations = _json["shotAnnotations"].map((value) => new GoogleCloudVideointelligenceV1beta1VideoSegment.fromJson(value)).toList(); } @@ -747,6 +866,9 @@ if (labelAnnotations != null) { _json["labelAnnotations"] = labelAnnotations.map((value) => (value).toJson()).toList(); } + if (safeSearchAnnotations != null) { + _json["safeSearchAnnotations"] = safeSearchAnnotations.map((value) => (value).toJson()).toList(); + } if (shotAnnotations != null) { _json["shotAnnotations"] = shotAnnotations.map((value) => (value).toJson()).toList(); } @@ -773,6 +895,11 @@ */ core.String labelDetectionModel; /** + * Model to use for safe search detection. + * Supported values: "latest" and "stable" (the default). + */ + core.String safeSearchDetectionModel; + /** * Video segments to annotate. The segments may overlap and are not required * to be contiguous or span the whole video. If unspecified, each video * is treated as a single segment. @@ -783,6 +910,11 @@ * Supported values: "latest" and "stable" (the default). */ core.String shotChangeDetectionModel; + /** + * Whether the video has been shot from a stationary (i.e. non-moving) camera. + * When set to true, might improve detection accuracy for moving objects. + */ + core.bool stationaryCamera; GoogleCloudVideointelligenceV1beta1VideoContext(); @@ -793,12 +925,18 @@ if (_json.containsKey("labelDetectionModel")) { labelDetectionModel = _json["labelDetectionModel"]; } + if (_json.containsKey("safeSearchDetectionModel")) { + safeSearchDetectionModel = _json["safeSearchDetectionModel"]; + } if (_json.containsKey("segments")) { segments = _json["segments"].map((value) => new GoogleCloudVideointelligenceV1beta1VideoSegment.fromJson(value)).toList(); } if (_json.containsKey("shotChangeDetectionModel")) { shotChangeDetectionModel = _json["shotChangeDetectionModel"]; } + if (_json.containsKey("stationaryCamera")) { + stationaryCamera = _json["stationaryCamera"]; + } } core.Map<core.String, core.Object> toJson() { @@ -809,12 +947,18 @@ if (labelDetectionModel != null) { _json["labelDetectionModel"] = labelDetectionModel; } + if (safeSearchDetectionModel != null) { + _json["safeSearchDetectionModel"] = safeSearchDetectionModel; + } if (segments != null) { _json["segments"] = segments.map((value) => (value).toJson()).toList(); } if (shotChangeDetectionModel != null) { _json["shotChangeDetectionModel"] = shotChangeDetectionModel; } + if (stationaryCamera != null) { + _json["stationaryCamera"] = stationaryCamera; + } return _json; } } @@ -994,8 +1138,8 @@ /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a - * common set of message types for APIs to use. + * A list of messages that carry the error details. There 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.
diff --git a/generated/googleapis_beta/pubspec.yaml b/generated/googleapis_beta/pubspec.yaml index b76da28..088fa3d 100644 --- a/generated/googleapis_beta/pubspec.yaml +++ b/generated/googleapis_beta/pubspec.yaml
@@ -1,7 +1,7 @@ name: googleapis_beta -version: 0.38.1 +version: 0.38.0 author: Dart Team <misc@dartlang.org> -description: "Auto-generated client libraries for accessing the following APIs:adexchangebuyer2:v2beta1, appengine:v1beta, appengine:v1beta4, appengine:v1beta5, clouderrorreporting:v1beta1, cloudmonitoring:v2beta2, cloudresourcemanager:v1beta1, clouduseraccounts:beta, dataflow:v1b3, dataproc:v1beta1, dlp:v2beta1, dns:v2beta1, language:v1beta1, language:v1beta2, logging:v2beta1, oslogin:v1alpha, proximitybeacon:v1beta1, pubsub:v1beta2, replicapool:v1beta2, replicapoolupdater:v1beta1, resourceviews:v1beta1, resourceviews:v1beta2, runtimeconfig:v1beta1, speech:v1beta1, sqladmin:v1beta3, sqladmin:v1beta4, taskqueue:v1beta2, toolresults:v1beta3, toolresults:v1beta3firstparty, videointelligence:v1beta1" +description: "Auto-generated client libraries for accessing the following APIs:adexchangebuyer2:v2beta1, appengine:v1beta, appengine:v1beta4, appengine:v1beta5, clouderrorreporting:v1beta1, cloudmonitoring:v2beta2, cloudresourcemanager:v1beta1, clouduseraccounts:beta, dataflow:v1b3, dlp:v2beta1, dns:v2beta1, language:v1beta1, language:v1beta2, logging:v2beta1, oslogin:v1alpha, proximitybeacon:v1beta1, pubsub:v1beta2, replicapool:v1beta2, replicapoolupdater:v1beta1, resourceviews:v1beta1, resourceviews:v1beta2, runtimeconfig:v1beta1, speech:v1beta1, sqladmin:v1beta3, sqladmin:v1beta4, taskqueue:v1beta2, toolresults:v1beta3, toolresults:v1beta3firstparty, videointelligence:v1beta1" homepage: http://www.dartlang.org/googleapis/ environment: sdk: '>=1.22.0 <2.0.0'
diff --git a/generated/googleapis_beta/test/adexchangebuyer2/v2beta1_test.dart b/generated/googleapis_beta/test/adexchangebuyer2/v2beta1_test.dart index 53cd154..96b3607 100644 --- a/generated/googleapis_beta/test/adexchangebuyer2/v2beta1_test.dart +++ b/generated/googleapis_beta/test/adexchangebuyer2/v2beta1_test.dart
@@ -91,14 +91,14 @@ buildCounterAddDealAssociationRequest--; } -buildUnnamed3535() { +buildUnnamed3532() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3535(core.List<core.String> o) { +checkUnnamed3532(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -109,7 +109,7 @@ var o = new api.AppContext(); buildCounterAppContext++; if (buildCounterAppContext < 3) { - o.appTypes = buildUnnamed3535(); + o.appTypes = buildUnnamed3532(); } buildCounterAppContext--; return o; @@ -118,19 +118,19 @@ checkAppContext(api.AppContext o) { buildCounterAppContext++; if (buildCounterAppContext < 3) { - checkUnnamed3535(o.appTypes); + checkUnnamed3532(o.appTypes); } buildCounterAppContext--; } -buildUnnamed3536() { +buildUnnamed3533() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3536(core.List<core.String> o) { +checkUnnamed3533(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -141,7 +141,7 @@ var o = new api.AuctionContext(); buildCounterAuctionContext++; if (buildCounterAuctionContext < 3) { - o.auctionTypes = buildUnnamed3536(); + o.auctionTypes = buildUnnamed3533(); } buildCounterAuctionContext--; return o; @@ -150,7 +150,7 @@ checkAuctionContext(api.AuctionContext o) { buildCounterAuctionContext++; if (buildCounterAuctionContext < 3) { - checkUnnamed3536(o.auctionTypes); + checkUnnamed3533(o.auctionTypes); } buildCounterAuctionContext--; } @@ -313,27 +313,27 @@ buildCounterClientUserInvitation--; } -buildUnnamed3537() { +buildUnnamed3534() { var o = new core.List<api.ServingContext>(); o.add(buildServingContext()); o.add(buildServingContext()); return o; } -checkUnnamed3537(core.List<api.ServingContext> o) { +checkUnnamed3534(core.List<api.ServingContext> o) { unittest.expect(o, unittest.hasLength(2)); checkServingContext(o[0]); checkServingContext(o[1]); } -buildUnnamed3538() { +buildUnnamed3535() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3538(core.List<core.String> 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')); @@ -344,8 +344,8 @@ var o = new api.Correction(); buildCounterCorrection++; if (buildCounterCorrection < 3) { - o.contexts = buildUnnamed3537(); - o.details = buildUnnamed3538(); + o.contexts = buildUnnamed3534(); + o.details = buildUnnamed3535(); o.type = "foo"; } buildCounterCorrection--; @@ -355,13 +355,52 @@ checkCorrection(api.Correction o) { buildCounterCorrection++; if (buildCounterCorrection < 3) { - checkUnnamed3537(o.contexts); - checkUnnamed3538(o.details); + checkUnnamed3534(o.contexts); + checkUnnamed3535(o.details); unittest.expect(o.type, unittest.equals('foo')); } buildCounterCorrection--; } +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')); +} + +buildUnnamed3537() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3537(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed3538() { + var o = new core.List<api.Correction>(); + o.add(buildCorrection()); + o.add(buildCorrection()); + return o; +} + +checkUnnamed3538(core.List<api.Correction> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCorrection(o[0]); + checkCorrection(o[1]); +} + buildUnnamed3539() { var o = new core.List<core.String>(); o.add("foo"); @@ -389,42 +428,42 @@ } buildUnnamed3541() { - var o = new core.List<api.Correction>(); - o.add(buildCorrection()); - o.add(buildCorrection()); + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); return o; } -checkUnnamed3541(core.List<api.Correction> o) { +checkUnnamed3541(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); - checkCorrection(o[0]); - checkCorrection(o[1]); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } buildUnnamed3542() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); + var o = new core.List<core.int>(); + o.add(42); + o.add(42); return o; } -checkUnnamed3542(core.List<core.String> o) { +checkUnnamed3542(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + unittest.expect(o[0], unittest.equals(42)); + unittest.expect(o[1], unittest.equals(42)); } buildUnnamed3543() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); + var o = new core.List<core.int>(); + o.add(42); + o.add(42); return o; } -checkUnnamed3543(core.List<core.String> o) { +checkUnnamed3543(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + unittest.expect(o[0], unittest.equals(42)); + unittest.expect(o[1], unittest.equals(42)); } buildUnnamed3544() { @@ -441,78 +480,39 @@ } buildUnnamed3545() { - var o = new core.List<core.int>(); - o.add(42); - o.add(42); + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); return o; } -checkUnnamed3545(core.List<core.int> o) { +checkUnnamed3545(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals(42)); - unittest.expect(o[1], unittest.equals(42)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } buildUnnamed3546() { - var o = new core.List<core.int>(); - o.add(42); - o.add(42); - return o; -} - -checkUnnamed3546(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)); -} - -buildUnnamed3547() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3547(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3548() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3548(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3549() { var o = new core.List<api.ServingRestriction>(); o.add(buildServingRestriction()); o.add(buildServingRestriction()); return o; } -checkUnnamed3549(core.List<api.ServingRestriction> o) { +checkUnnamed3546(core.List<api.ServingRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkServingRestriction(o[0]); checkServingRestriction(o[1]); } -buildUnnamed3550() { +buildUnnamed3547() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3550(core.List<core.int> o) { +checkUnnamed3547(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)); @@ -528,24 +528,24 @@ o.advertiserName = "foo"; o.agencyId = "foo"; o.apiUpdateTime = "foo"; - o.attributes = buildUnnamed3539(); - o.clickThroughUrls = buildUnnamed3540(); - o.corrections = buildUnnamed3541(); + o.attributes = buildUnnamed3536(); + o.clickThroughUrls = buildUnnamed3537(); + o.corrections = buildUnnamed3538(); o.creativeId = "foo"; o.dealsStatus = "foo"; - o.detectedAdvertiserIds = buildUnnamed3542(); - o.detectedDomains = buildUnnamed3543(); - o.detectedLanguages = buildUnnamed3544(); - o.detectedProductCategories = buildUnnamed3545(); - o.detectedSensitiveCategories = buildUnnamed3546(); + o.detectedAdvertiserIds = buildUnnamed3539(); + o.detectedDomains = buildUnnamed3540(); + o.detectedLanguages = buildUnnamed3541(); + o.detectedProductCategories = buildUnnamed3542(); + o.detectedSensitiveCategories = buildUnnamed3543(); o.filteringStats = buildFilteringStats(); o.html = buildHtmlContent(); - o.impressionTrackingUrls = buildUnnamed3547(); + o.impressionTrackingUrls = buildUnnamed3544(); o.native = buildNativeContent(); o.openAuctionStatus = "foo"; - o.restrictedCategories = buildUnnamed3548(); - o.servingRestrictions = buildUnnamed3549(); - o.vendorIds = buildUnnamed3550(); + o.restrictedCategories = buildUnnamed3545(); + o.servingRestrictions = buildUnnamed3546(); + o.vendorIds = buildUnnamed3547(); o.version = 42; o.video = buildVideoContent(); } @@ -561,24 +561,24 @@ unittest.expect(o.advertiserName, unittest.equals('foo')); unittest.expect(o.agencyId, unittest.equals('foo')); unittest.expect(o.apiUpdateTime, unittest.equals('foo')); - checkUnnamed3539(o.attributes); - checkUnnamed3540(o.clickThroughUrls); - checkUnnamed3541(o.corrections); + checkUnnamed3536(o.attributes); + checkUnnamed3537(o.clickThroughUrls); + checkUnnamed3538(o.corrections); unittest.expect(o.creativeId, unittest.equals('foo')); unittest.expect(o.dealsStatus, unittest.equals('foo')); - checkUnnamed3542(o.detectedAdvertiserIds); - checkUnnamed3543(o.detectedDomains); - checkUnnamed3544(o.detectedLanguages); - checkUnnamed3545(o.detectedProductCategories); - checkUnnamed3546(o.detectedSensitiveCategories); + checkUnnamed3539(o.detectedAdvertiserIds); + checkUnnamed3540(o.detectedDomains); + checkUnnamed3541(o.detectedLanguages); + checkUnnamed3542(o.detectedProductCategories); + checkUnnamed3543(o.detectedSensitiveCategories); checkFilteringStats(o.filteringStats); checkHtmlContent(o.html); - checkUnnamed3547(o.impressionTrackingUrls); + checkUnnamed3544(o.impressionTrackingUrls); checkNativeContent(o.native); unittest.expect(o.openAuctionStatus, unittest.equals('foo')); - checkUnnamed3548(o.restrictedCategories); - checkUnnamed3549(o.servingRestrictions); - checkUnnamed3550(o.vendorIds); + checkUnnamed3545(o.restrictedCategories); + checkUnnamed3546(o.servingRestrictions); + checkUnnamed3547(o.vendorIds); unittest.expect(o.version, unittest.equals(42)); checkVideoContent(o.video); } @@ -654,14 +654,14 @@ buildCounterDate--; } -buildUnnamed3551() { +buildUnnamed3548() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3551(core.List<core.String> o) { +checkUnnamed3548(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -672,7 +672,7 @@ var o = new api.Disapproval(); buildCounterDisapproval++; if (buildCounterDisapproval < 3) { - o.details = buildUnnamed3551(); + o.details = buildUnnamed3548(); o.reason = "foo"; } buildCounterDisapproval--; @@ -682,7 +682,7 @@ checkDisapproval(api.Disapproval o) { buildCounterDisapproval++; if (buildCounterDisapproval < 3) { - checkUnnamed3551(o.details); + checkUnnamed3548(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterDisapproval--; @@ -705,27 +705,27 @@ buildCounterEmpty--; } -buildUnnamed3552() { +buildUnnamed3549() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3552(core.List<core.String> o) { +checkUnnamed3549(core.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() { +buildUnnamed3550() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3553(core.List<core.int> o) { +checkUnnamed3550(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)); @@ -744,10 +744,10 @@ o.filterSetId = "foo"; o.format = "foo"; o.ownerAccountId = "foo"; - o.platforms = buildUnnamed3552(); + o.platforms = buildUnnamed3549(); o.realtimeTimeRange = buildRealtimeTimeRange(); o.relativeDateRange = buildRelativeDateRange(); - o.sellerNetworkIds = buildUnnamed3553(); + o.sellerNetworkIds = buildUnnamed3550(); o.timeSeriesGranularity = "foo"; } buildCounterFilterSet--; @@ -765,10 +765,10 @@ unittest.expect(o.filterSetId, unittest.equals('foo')); unittest.expect(o.format, unittest.equals('foo')); unittest.expect(o.ownerAccountId, unittest.equals('foo')); - checkUnnamed3552(o.platforms); + checkUnnamed3549(o.platforms); checkRealtimeTimeRange(o.realtimeTimeRange); checkRelativeDateRange(o.relativeDateRange); - checkUnnamed3553(o.sellerNetworkIds); + checkUnnamed3550(o.sellerNetworkIds); unittest.expect(o.timeSeriesGranularity, unittest.equals('foo')); } buildCounterFilterSet--; @@ -820,14 +820,14 @@ buildCounterFilteredBidDetailRow--; } -buildUnnamed3554() { +buildUnnamed3551() { var o = new core.List<api.Reason>(); o.add(buildReason()); o.add(buildReason()); return o; } -checkUnnamed3554(core.List<api.Reason> o) { +checkUnnamed3551(core.List<api.Reason> o) { unittest.expect(o, unittest.hasLength(2)); checkReason(o[0]); checkReason(o[1]); @@ -839,7 +839,7 @@ buildCounterFilteringStats++; if (buildCounterFilteringStats < 3) { o.date = buildDate(); - o.reasons = buildUnnamed3554(); + o.reasons = buildUnnamed3551(); } buildCounterFilteringStats--; return o; @@ -849,7 +849,7 @@ buildCounterFilteringStats++; if (buildCounterFilteringStats < 3) { checkDate(o.date); - checkUnnamed3554(o.reasons); + checkUnnamed3551(o.reasons); } buildCounterFilteringStats--; } @@ -929,14 +929,14 @@ buildCounterImpressionMetricsRow--; } -buildUnnamed3555() { +buildUnnamed3552() { var o = new core.List<api.BidMetricsRow>(); o.add(buildBidMetricsRow()); o.add(buildBidMetricsRow()); return o; } -checkUnnamed3555(core.List<api.BidMetricsRow> o) { +checkUnnamed3552(core.List<api.BidMetricsRow> o) { unittest.expect(o, unittest.hasLength(2)); checkBidMetricsRow(o[0]); checkBidMetricsRow(o[1]); @@ -947,7 +947,7 @@ var o = new api.ListBidMetricsResponse(); buildCounterListBidMetricsResponse++; if (buildCounterListBidMetricsResponse < 3) { - o.bidMetricsRows = buildUnnamed3555(); + o.bidMetricsRows = buildUnnamed3552(); o.nextPageToken = "foo"; } buildCounterListBidMetricsResponse--; @@ -957,20 +957,20 @@ checkListBidMetricsResponse(api.ListBidMetricsResponse o) { buildCounterListBidMetricsResponse++; if (buildCounterListBidMetricsResponse < 3) { - checkUnnamed3555(o.bidMetricsRows); + checkUnnamed3552(o.bidMetricsRows); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListBidMetricsResponse--; } -buildUnnamed3556() { +buildUnnamed3553() { var o = new core.List<api.CalloutStatusRow>(); o.add(buildCalloutStatusRow()); o.add(buildCalloutStatusRow()); return o; } -checkUnnamed3556(core.List<api.CalloutStatusRow> o) { +checkUnnamed3553(core.List<api.CalloutStatusRow> o) { unittest.expect(o, unittest.hasLength(2)); checkCalloutStatusRow(o[0]); checkCalloutStatusRow(o[1]); @@ -981,7 +981,7 @@ var o = new api.ListBidResponseErrorsResponse(); buildCounterListBidResponseErrorsResponse++; if (buildCounterListBidResponseErrorsResponse < 3) { - o.calloutStatusRows = buildUnnamed3556(); + o.calloutStatusRows = buildUnnamed3553(); o.nextPageToken = "foo"; } buildCounterListBidResponseErrorsResponse--; @@ -991,20 +991,20 @@ checkListBidResponseErrorsResponse(api.ListBidResponseErrorsResponse o) { buildCounterListBidResponseErrorsResponse++; if (buildCounterListBidResponseErrorsResponse < 3) { - checkUnnamed3556(o.calloutStatusRows); + checkUnnamed3553(o.calloutStatusRows); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListBidResponseErrorsResponse--; } -buildUnnamed3557() { +buildUnnamed3554() { var o = new core.List<api.BidResponseWithoutBidsStatusRow>(); o.add(buildBidResponseWithoutBidsStatusRow()); o.add(buildBidResponseWithoutBidsStatusRow()); return o; } -checkUnnamed3557(core.List<api.BidResponseWithoutBidsStatusRow> o) { +checkUnnamed3554(core.List<api.BidResponseWithoutBidsStatusRow> o) { unittest.expect(o, unittest.hasLength(2)); checkBidResponseWithoutBidsStatusRow(o[0]); checkBidResponseWithoutBidsStatusRow(o[1]); @@ -1015,7 +1015,7 @@ var o = new api.ListBidResponsesWithoutBidsResponse(); buildCounterListBidResponsesWithoutBidsResponse++; if (buildCounterListBidResponsesWithoutBidsResponse < 3) { - o.bidResponseWithoutBidsStatusRows = buildUnnamed3557(); + o.bidResponseWithoutBidsStatusRows = buildUnnamed3554(); o.nextPageToken = "foo"; } buildCounterListBidResponsesWithoutBidsResponse--; @@ -1025,20 +1025,20 @@ checkListBidResponsesWithoutBidsResponse(api.ListBidResponsesWithoutBidsResponse o) { buildCounterListBidResponsesWithoutBidsResponse++; if (buildCounterListBidResponsesWithoutBidsResponse < 3) { - checkUnnamed3557(o.bidResponseWithoutBidsStatusRows); + checkUnnamed3554(o.bidResponseWithoutBidsStatusRows); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListBidResponsesWithoutBidsResponse--; } -buildUnnamed3558() { +buildUnnamed3555() { var o = new core.List<api.ClientUserInvitation>(); o.add(buildClientUserInvitation()); o.add(buildClientUserInvitation()); return o; } -checkUnnamed3558(core.List<api.ClientUserInvitation> o) { +checkUnnamed3555(core.List<api.ClientUserInvitation> o) { unittest.expect(o, unittest.hasLength(2)); checkClientUserInvitation(o[0]); checkClientUserInvitation(o[1]); @@ -1049,7 +1049,7 @@ var o = new api.ListClientUserInvitationsResponse(); buildCounterListClientUserInvitationsResponse++; if (buildCounterListClientUserInvitationsResponse < 3) { - o.invitations = buildUnnamed3558(); + o.invitations = buildUnnamed3555(); o.nextPageToken = "foo"; } buildCounterListClientUserInvitationsResponse--; @@ -1059,20 +1059,20 @@ checkListClientUserInvitationsResponse(api.ListClientUserInvitationsResponse o) { buildCounterListClientUserInvitationsResponse++; if (buildCounterListClientUserInvitationsResponse < 3) { - checkUnnamed3558(o.invitations); + checkUnnamed3555(o.invitations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListClientUserInvitationsResponse--; } -buildUnnamed3559() { +buildUnnamed3556() { var o = new core.List<api.ClientUser>(); o.add(buildClientUser()); o.add(buildClientUser()); return o; } -checkUnnamed3559(core.List<api.ClientUser> o) { +checkUnnamed3556(core.List<api.ClientUser> o) { unittest.expect(o, unittest.hasLength(2)); checkClientUser(o[0]); checkClientUser(o[1]); @@ -1084,7 +1084,7 @@ buildCounterListClientUsersResponse++; if (buildCounterListClientUsersResponse < 3) { o.nextPageToken = "foo"; - o.users = buildUnnamed3559(); + o.users = buildUnnamed3556(); } buildCounterListClientUsersResponse--; return o; @@ -1094,19 +1094,19 @@ buildCounterListClientUsersResponse++; if (buildCounterListClientUsersResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3559(o.users); + checkUnnamed3556(o.users); } buildCounterListClientUsersResponse--; } -buildUnnamed3560() { +buildUnnamed3557() { var o = new core.List<api.Client>(); o.add(buildClient()); o.add(buildClient()); return o; } -checkUnnamed3560(core.List<api.Client> o) { +checkUnnamed3557(core.List<api.Client> o) { unittest.expect(o, unittest.hasLength(2)); checkClient(o[0]); checkClient(o[1]); @@ -1117,7 +1117,7 @@ var o = new api.ListClientsResponse(); buildCounterListClientsResponse++; if (buildCounterListClientsResponse < 3) { - o.clients = buildUnnamed3560(); + o.clients = buildUnnamed3557(); o.nextPageToken = "foo"; } buildCounterListClientsResponse--; @@ -1127,56 +1127,20 @@ checkListClientsResponse(api.ListClientsResponse o) { buildCounterListClientsResponse++; if (buildCounterListClientsResponse < 3) { - checkUnnamed3560(o.clients); + checkUnnamed3557(o.clients); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListClientsResponse--; } -buildUnnamed3561() { - var o = new core.List<api.FilteredBidDetailRow>(); - o.add(buildFilteredBidDetailRow()); - o.add(buildFilteredBidDetailRow()); - return o; -} - -checkUnnamed3561(core.List<api.FilteredBidDetailRow> o) { - unittest.expect(o, unittest.hasLength(2)); - checkFilteredBidDetailRow(o[0]); - checkFilteredBidDetailRow(o[1]); -} - -core.int buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse = 0; -buildListCreativeStatusAndCreativeBreakdownByDetailResponse() { - var o = new api.ListCreativeStatusAndCreativeBreakdownByDetailResponse(); - buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse++; - if (buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse < 3) { - o.detailType = "foo"; - o.filteredBidDetailRows = buildUnnamed3561(); - o.nextPageToken = "foo"; - } - buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse--; - return o; -} - -checkListCreativeStatusAndCreativeBreakdownByDetailResponse(api.ListCreativeStatusAndCreativeBreakdownByDetailResponse o) { - buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse++; - if (buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse < 3) { - unittest.expect(o.detailType, unittest.equals('foo')); - checkUnnamed3561(o.filteredBidDetailRows); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterListCreativeStatusAndCreativeBreakdownByDetailResponse--; -} - -buildUnnamed3562() { +buildUnnamed3558() { var o = new core.List<api.FilteredBidCreativeRow>(); o.add(buildFilteredBidCreativeRow()); o.add(buildFilteredBidCreativeRow()); return o; } -checkUnnamed3562(core.List<api.FilteredBidCreativeRow> o) { +checkUnnamed3558(core.List<api.FilteredBidCreativeRow> o) { unittest.expect(o, unittest.hasLength(2)); checkFilteredBidCreativeRow(o[0]); checkFilteredBidCreativeRow(o[1]); @@ -1187,7 +1151,7 @@ var o = new api.ListCreativeStatusBreakdownByCreativeResponse(); buildCounterListCreativeStatusBreakdownByCreativeResponse++; if (buildCounterListCreativeStatusBreakdownByCreativeResponse < 3) { - o.filteredBidCreativeRows = buildUnnamed3562(); + o.filteredBidCreativeRows = buildUnnamed3558(); o.nextPageToken = "foo"; } buildCounterListCreativeStatusBreakdownByCreativeResponse--; @@ -1197,20 +1161,20 @@ checkListCreativeStatusBreakdownByCreativeResponse(api.ListCreativeStatusBreakdownByCreativeResponse o) { buildCounterListCreativeStatusBreakdownByCreativeResponse++; if (buildCounterListCreativeStatusBreakdownByCreativeResponse < 3) { - checkUnnamed3562(o.filteredBidCreativeRows); + checkUnnamed3558(o.filteredBidCreativeRows); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCreativeStatusBreakdownByCreativeResponse--; } -buildUnnamed3563() { +buildUnnamed3559() { var o = new core.List<api.FilteredBidDetailRow>(); o.add(buildFilteredBidDetailRow()); o.add(buildFilteredBidDetailRow()); return o; } -checkUnnamed3563(core.List<api.FilteredBidDetailRow> o) { +checkUnnamed3559(core.List<api.FilteredBidDetailRow> o) { unittest.expect(o, unittest.hasLength(2)); checkFilteredBidDetailRow(o[0]); checkFilteredBidDetailRow(o[1]); @@ -1222,7 +1186,7 @@ buildCounterListCreativeStatusBreakdownByDetailResponse++; if (buildCounterListCreativeStatusBreakdownByDetailResponse < 3) { o.detailType = "foo"; - o.filteredBidDetailRows = buildUnnamed3563(); + o.filteredBidDetailRows = buildUnnamed3559(); o.nextPageToken = "foo"; } buildCounterListCreativeStatusBreakdownByDetailResponse--; @@ -1233,20 +1197,20 @@ buildCounterListCreativeStatusBreakdownByDetailResponse++; if (buildCounterListCreativeStatusBreakdownByDetailResponse < 3) { unittest.expect(o.detailType, unittest.equals('foo')); - checkUnnamed3563(o.filteredBidDetailRows); + checkUnnamed3559(o.filteredBidDetailRows); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCreativeStatusBreakdownByDetailResponse--; } -buildUnnamed3564() { +buildUnnamed3560() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed3564(core.List<api.Creative> o) { +checkUnnamed3560(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -1257,7 +1221,7 @@ var o = new api.ListCreativesResponse(); buildCounterListCreativesResponse++; if (buildCounterListCreativesResponse < 3) { - o.creatives = buildUnnamed3564(); + o.creatives = buildUnnamed3560(); o.nextPageToken = "foo"; } buildCounterListCreativesResponse--; @@ -1267,20 +1231,20 @@ checkListCreativesResponse(api.ListCreativesResponse o) { buildCounterListCreativesResponse++; if (buildCounterListCreativesResponse < 3) { - checkUnnamed3564(o.creatives); + checkUnnamed3560(o.creatives); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCreativesResponse--; } -buildUnnamed3565() { +buildUnnamed3561() { var o = new core.List<api.CreativeDealAssociation>(); o.add(buildCreativeDealAssociation()); o.add(buildCreativeDealAssociation()); return o; } -checkUnnamed3565(core.List<api.CreativeDealAssociation> o) { +checkUnnamed3561(core.List<api.CreativeDealAssociation> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeDealAssociation(o[0]); checkCreativeDealAssociation(o[1]); @@ -1291,7 +1255,7 @@ var o = new api.ListDealAssociationsResponse(); buildCounterListDealAssociationsResponse++; if (buildCounterListDealAssociationsResponse < 3) { - o.associations = buildUnnamed3565(); + o.associations = buildUnnamed3561(); o.nextPageToken = "foo"; } buildCounterListDealAssociationsResponse--; @@ -1301,20 +1265,20 @@ checkListDealAssociationsResponse(api.ListDealAssociationsResponse o) { buildCounterListDealAssociationsResponse++; if (buildCounterListDealAssociationsResponse < 3) { - checkUnnamed3565(o.associations); + checkUnnamed3561(o.associations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDealAssociationsResponse--; } -buildUnnamed3566() { +buildUnnamed3562() { var o = new core.List<api.FilterSet>(); o.add(buildFilterSet()); o.add(buildFilterSet()); return o; } -checkUnnamed3566(core.List<api.FilterSet> o) { +checkUnnamed3562(core.List<api.FilterSet> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterSet(o[0]); checkFilterSet(o[1]); @@ -1325,7 +1289,7 @@ var o = new api.ListFilterSetsResponse(); buildCounterListFilterSetsResponse++; if (buildCounterListFilterSetsResponse < 3) { - o.filterSets = buildUnnamed3566(); + o.filterSets = buildUnnamed3562(); o.nextPageToken = "foo"; } buildCounterListFilterSetsResponse--; @@ -1335,20 +1299,20 @@ checkListFilterSetsResponse(api.ListFilterSetsResponse o) { buildCounterListFilterSetsResponse++; if (buildCounterListFilterSetsResponse < 3) { - checkUnnamed3566(o.filterSets); + checkUnnamed3562(o.filterSets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListFilterSetsResponse--; } -buildUnnamed3567() { +buildUnnamed3563() { var o = new core.List<api.CalloutStatusRow>(); o.add(buildCalloutStatusRow()); o.add(buildCalloutStatusRow()); return o; } -checkUnnamed3567(core.List<api.CalloutStatusRow> o) { +checkUnnamed3563(core.List<api.CalloutStatusRow> o) { unittest.expect(o, unittest.hasLength(2)); checkCalloutStatusRow(o[0]); checkCalloutStatusRow(o[1]); @@ -1359,7 +1323,7 @@ var o = new api.ListFilteredBidRequestsResponse(); buildCounterListFilteredBidRequestsResponse++; if (buildCounterListFilteredBidRequestsResponse < 3) { - o.calloutStatusRows = buildUnnamed3567(); + o.calloutStatusRows = buildUnnamed3563(); o.nextPageToken = "foo"; } buildCounterListFilteredBidRequestsResponse--; @@ -1369,20 +1333,20 @@ checkListFilteredBidRequestsResponse(api.ListFilteredBidRequestsResponse o) { buildCounterListFilteredBidRequestsResponse++; if (buildCounterListFilteredBidRequestsResponse < 3) { - checkUnnamed3567(o.calloutStatusRows); + checkUnnamed3563(o.calloutStatusRows); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListFilteredBidRequestsResponse--; } -buildUnnamed3568() { +buildUnnamed3564() { var o = new core.List<api.CreativeStatusRow>(); o.add(buildCreativeStatusRow()); o.add(buildCreativeStatusRow()); return o; } -checkUnnamed3568(core.List<api.CreativeStatusRow> o) { +checkUnnamed3564(core.List<api.CreativeStatusRow> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeStatusRow(o[0]); checkCreativeStatusRow(o[1]); @@ -1393,7 +1357,7 @@ var o = new api.ListFilteredBidsResponse(); buildCounterListFilteredBidsResponse++; if (buildCounterListFilteredBidsResponse < 3) { - o.creativeStatusRows = buildUnnamed3568(); + o.creativeStatusRows = buildUnnamed3564(); o.nextPageToken = "foo"; } buildCounterListFilteredBidsResponse--; @@ -1403,20 +1367,20 @@ checkListFilteredBidsResponse(api.ListFilteredBidsResponse o) { buildCounterListFilteredBidsResponse++; if (buildCounterListFilteredBidsResponse < 3) { - checkUnnamed3568(o.creativeStatusRows); + checkUnnamed3564(o.creativeStatusRows); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListFilteredBidsResponse--; } -buildUnnamed3569() { +buildUnnamed3565() { var o = new core.List<api.ImpressionMetricsRow>(); o.add(buildImpressionMetricsRow()); o.add(buildImpressionMetricsRow()); return o; } -checkUnnamed3569(core.List<api.ImpressionMetricsRow> o) { +checkUnnamed3565(core.List<api.ImpressionMetricsRow> o) { unittest.expect(o, unittest.hasLength(2)); checkImpressionMetricsRow(o[0]); checkImpressionMetricsRow(o[1]); @@ -1427,7 +1391,7 @@ var o = new api.ListImpressionMetricsResponse(); buildCounterListImpressionMetricsResponse++; if (buildCounterListImpressionMetricsResponse < 3) { - o.impressionMetricsRows = buildUnnamed3569(); + o.impressionMetricsRows = buildUnnamed3565(); o.nextPageToken = "foo"; } buildCounterListImpressionMetricsResponse--; @@ -1437,20 +1401,20 @@ checkListImpressionMetricsResponse(api.ListImpressionMetricsResponse o) { buildCounterListImpressionMetricsResponse++; if (buildCounterListImpressionMetricsResponse < 3) { - checkUnnamed3569(o.impressionMetricsRows); + checkUnnamed3565(o.impressionMetricsRows); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListImpressionMetricsResponse--; } -buildUnnamed3570() { +buildUnnamed3566() { var o = new core.List<api.CreativeStatusRow>(); o.add(buildCreativeStatusRow()); o.add(buildCreativeStatusRow()); return o; } -checkUnnamed3570(core.List<api.CreativeStatusRow> o) { +checkUnnamed3566(core.List<api.CreativeStatusRow> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeStatusRow(o[0]); checkCreativeStatusRow(o[1]); @@ -1461,7 +1425,7 @@ var o = new api.ListLosingBidsResponse(); buildCounterListLosingBidsResponse++; if (buildCounterListLosingBidsResponse < 3) { - o.creativeStatusRows = buildUnnamed3570(); + o.creativeStatusRows = buildUnnamed3566(); o.nextPageToken = "foo"; } buildCounterListLosingBidsResponse--; @@ -1471,20 +1435,20 @@ checkListLosingBidsResponse(api.ListLosingBidsResponse o) { buildCounterListLosingBidsResponse++; if (buildCounterListLosingBidsResponse < 3) { - checkUnnamed3570(o.creativeStatusRows); + checkUnnamed3566(o.creativeStatusRows); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLosingBidsResponse--; } -buildUnnamed3571() { +buildUnnamed3567() { var o = new core.List<api.NonBillableWinningBidStatusRow>(); o.add(buildNonBillableWinningBidStatusRow()); o.add(buildNonBillableWinningBidStatusRow()); return o; } -checkUnnamed3571(core.List<api.NonBillableWinningBidStatusRow> o) { +checkUnnamed3567(core.List<api.NonBillableWinningBidStatusRow> o) { unittest.expect(o, unittest.hasLength(2)); checkNonBillableWinningBidStatusRow(o[0]); checkNonBillableWinningBidStatusRow(o[1]); @@ -1496,7 +1460,7 @@ buildCounterListNonBillableWinningBidsResponse++; if (buildCounterListNonBillableWinningBidsResponse < 3) { o.nextPageToken = "foo"; - o.nonBillableWinningBidStatusRows = buildUnnamed3571(); + o.nonBillableWinningBidStatusRows = buildUnnamed3567(); } buildCounterListNonBillableWinningBidsResponse--; return o; @@ -1506,19 +1470,19 @@ buildCounterListNonBillableWinningBidsResponse++; if (buildCounterListNonBillableWinningBidsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3571(o.nonBillableWinningBidStatusRows); + checkUnnamed3567(o.nonBillableWinningBidStatusRows); } buildCounterListNonBillableWinningBidsResponse--; } -buildUnnamed3572() { +buildUnnamed3568() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3572(core.List<core.int> o) { +checkUnnamed3568(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)); @@ -1529,7 +1493,7 @@ var o = new api.LocationContext(); buildCounterLocationContext++; if (buildCounterLocationContext < 3) { - o.geoCriteriaIds = buildUnnamed3572(); + o.geoCriteriaIds = buildUnnamed3568(); } buildCounterLocationContext--; return o; @@ -1538,7 +1502,7 @@ checkLocationContext(api.LocationContext o) { buildCounterLocationContext++; if (buildCounterLocationContext < 3) { - checkUnnamed3572(o.geoCriteriaIds); + checkUnnamed3568(o.geoCriteriaIds); } buildCounterLocationContext--; } @@ -1630,14 +1594,14 @@ buildCounterNonBillableWinningBidStatusRow--; } -buildUnnamed3573() { +buildUnnamed3569() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3573(core.List<core.String> o) { +checkUnnamed3569(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1648,7 +1612,7 @@ var o = new api.PlatformContext(); buildCounterPlatformContext++; if (buildCounterPlatformContext < 3) { - o.platforms = buildUnnamed3573(); + o.platforms = buildUnnamed3569(); } buildCounterPlatformContext--; return o; @@ -1657,7 +1621,7 @@ checkPlatformContext(api.PlatformContext o) { buildCounterPlatformContext++; if (buildCounterPlatformContext < 3) { - checkUnnamed3573(o.platforms); + checkUnnamed3569(o.platforms); } buildCounterPlatformContext--; } @@ -1761,14 +1725,14 @@ buildCounterRowDimensions--; } -buildUnnamed3574() { +buildUnnamed3570() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3574(core.List<core.String> o) { +checkUnnamed3570(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1779,7 +1743,7 @@ var o = new api.SecurityContext(); buildCounterSecurityContext++; if (buildCounterSecurityContext < 3) { - o.securities = buildUnnamed3574(); + o.securities = buildUnnamed3570(); } buildCounterSecurityContext--; return o; @@ -1788,7 +1752,7 @@ checkSecurityContext(api.SecurityContext o) { buildCounterSecurityContext++; if (buildCounterSecurityContext < 3) { - checkUnnamed3574(o.securities); + checkUnnamed3570(o.securities); } buildCounterSecurityContext--; } @@ -1822,27 +1786,27 @@ buildCounterServingContext--; } -buildUnnamed3575() { +buildUnnamed3571() { var o = new core.List<api.ServingContext>(); o.add(buildServingContext()); o.add(buildServingContext()); return o; } -checkUnnamed3575(core.List<api.ServingContext> o) { +checkUnnamed3571(core.List<api.ServingContext> o) { unittest.expect(o, unittest.hasLength(2)); checkServingContext(o[0]); checkServingContext(o[1]); } -buildUnnamed3576() { +buildUnnamed3572() { var o = new core.List<api.Disapproval>(); o.add(buildDisapproval()); o.add(buildDisapproval()); return o; } -checkUnnamed3576(core.List<api.Disapproval> o) { +checkUnnamed3572(core.List<api.Disapproval> o) { unittest.expect(o, unittest.hasLength(2)); checkDisapproval(o[0]); checkDisapproval(o[1]); @@ -1853,8 +1817,8 @@ var o = new api.ServingRestriction(); buildCounterServingRestriction++; if (buildCounterServingRestriction < 3) { - o.contexts = buildUnnamed3575(); - o.disapprovalReasons = buildUnnamed3576(); + o.contexts = buildUnnamed3571(); + o.disapprovalReasons = buildUnnamed3572(); o.status = "foo"; } buildCounterServingRestriction--; @@ -1864,8 +1828,8 @@ checkServingRestriction(api.ServingRestriction o) { buildCounterServingRestriction++; if (buildCounterServingRestriction < 3) { - checkUnnamed3575(o.contexts); - checkUnnamed3576(o.disapprovalReasons); + checkUnnamed3571(o.contexts); + checkUnnamed3572(o.disapprovalReasons); unittest.expect(o.status, unittest.equals('foo')); } buildCounterServingRestriction--; @@ -2219,15 +2183,6 @@ }); - unittest.group("obj-schema-ListCreativeStatusAndCreativeBreakdownByDetailResponse", () { - unittest.test("to-json--from-json", () { - var o = buildListCreativeStatusAndCreativeBreakdownByDetailResponse(); - var od = new api.ListCreativeStatusAndCreativeBreakdownByDetailResponse.fromJson(o.toJson()); - checkListCreativeStatusAndCreativeBreakdownByDetailResponse(od); - }); - }); - - unittest.group("obj-schema-ListCreativeStatusBreakdownByCreativeResponse", () { unittest.test("to-json--from-json", () { var o = buildListCreativeStatusBreakdownByCreativeResponse(); @@ -2587,8 +2542,8 @@ var mock = new HttpServerMock(); api.AccountsClientsResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.clients; var arg_accountId = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -2622,8 +2577,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -2632,7 +2587,7 @@ var resp = convert.JSON.encode(buildListClientsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListClientsResponse response) { + res.list(arg_accountId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListClientsResponse response) { checkListClientsResponse(response); }))); }); @@ -3517,9 +3472,9 @@ api.AccountsCreativesDealAssociationsResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.creatives.dealAssociations; var arg_accountId = "foo"; var arg_creativeId = "foo"; - var arg_query = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_query = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -3560,9 +3515,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); var h = { @@ -3571,7 +3526,7 @@ var resp = convert.JSON.encode(buildListDealAssociationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, arg_creativeId, query: arg_query, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListDealAssociationsResponse response) { + res.list(arg_accountId, arg_creativeId, pageToken: arg_pageToken, pageSize: arg_pageSize, query: arg_query).then(unittest.expectAsync1(((api.ListDealAssociationsResponse response) { checkListDealAssociationsResponse(response); }))); }); @@ -4143,8 +4098,8 @@ api.AccountsFilterSetsFilteredBidsResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.filterSets.filteredBids; var arg_accountId = "foo"; var arg_filterSetId = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -4185,8 +4140,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -4195,7 +4150,7 @@ var resp = convert.JSON.encode(buildListFilteredBidsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_accountId, arg_filterSetId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListFilteredBidsResponse response) { + res.list(arg_accountId, arg_filterSetId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListFilteredBidsResponse response) { checkListFilteredBidsResponse(response); }))); }); @@ -4278,89 +4233,6 @@ }); - unittest.group("resource-AccountsFilterSetsFilteredBidsCreativesDetailsResourceApi", () { - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.AccountsFilterSetsFilteredBidsCreativesDetailsResourceApi res = new api.Adexchangebuyer2Api(mock).accounts.filterSets.filteredBids.creatives.details; - var arg_accountId = "foo"; - var arg_filterSetId = "foo"; - var arg_creativeStatusId = 42; - var arg_creativeId = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; - 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 + 17), unittest.equals("v2beta1/accounts/")); - pathOffset += 17; - index = path.indexOf("/filterSets/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_accountId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/filterSets/")); - pathOffset += 12; - index = path.indexOf("/filteredBids/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_filterSetId")); - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("/filteredBids/")); - pathOffset += 14; - index = path.indexOf("/creatives/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_creativeStatusId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/creatives/")); - pathOffset += 11; - index = path.indexOf("/details", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_creativeId")); - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/details")); - pathOffset += 8; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildListCreativeStatusAndCreativeBreakdownByDetailResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_accountId, arg_filterSetId, arg_creativeStatusId, arg_creativeId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListCreativeStatusAndCreativeBreakdownByDetailResponse response) { - checkListCreativeStatusAndCreativeBreakdownByDetailResponse(response); - }))); - }); - - }); - - unittest.group("resource-AccountsFilterSetsFilteredBidsDetailsResourceApi", () { unittest.test("method--list", () {
diff --git a/generated/googleapis_beta/test/appengine/v1beta4_test.dart b/generated/googleapis_beta/test/appengine/v1beta4_test.dart index c47c8e4..5564546 100644 --- a/generated/googleapis_beta/test/appengine/v1beta4_test.dart +++ b/generated/googleapis_beta/test/appengine/v1beta4_test.dart
@@ -97,14 +97,14 @@ buildCounterApiEndpointHandler--; } -buildUnnamed3496() { +buildUnnamed3493() { var o = new core.List<api.UrlDispatchRule>(); o.add(buildUrlDispatchRule()); o.add(buildUrlDispatchRule()); return o; } -checkUnnamed3496(core.List<api.UrlDispatchRule> o) { +checkUnnamed3493(core.List<api.UrlDispatchRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlDispatchRule(o[0]); checkUrlDispatchRule(o[1]); @@ -120,7 +120,7 @@ o.defaultBucket = "foo"; o.defaultCookieExpiration = "foo"; o.defaultHostname = "foo"; - o.dispatchRules = buildUnnamed3496(); + o.dispatchRules = buildUnnamed3493(); o.iap = buildIdentityAwareProxy(); o.id = "foo"; o.location = "foo"; @@ -138,7 +138,7 @@ unittest.expect(o.defaultBucket, unittest.equals('foo')); unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); unittest.expect(o.defaultHostname, unittest.equals('foo')); - checkUnnamed3496(o.dispatchRules); + checkUnnamed3493(o.dispatchRules); checkIdentityAwareProxy(o.iap); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); @@ -268,27 +268,27 @@ buildCounterDebugInstanceRequest--; } -buildUnnamed3497() { +buildUnnamed3494() { var o = new core.Map<core.String, api.FileInfo>(); o["x"] = buildFileInfo(); o["y"] = buildFileInfo(); return o; } -checkUnnamed3497(core.Map<core.String, api.FileInfo> o) { +checkUnnamed3494(core.Map<core.String, api.FileInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkFileInfo(o["x"]); checkFileInfo(o["y"]); } -buildUnnamed3498() { +buildUnnamed3495() { var o = new core.List<api.SourceReference>(); o.add(buildSourceReference()); o.add(buildSourceReference()); return o; } -checkUnnamed3498(core.List<api.SourceReference> o) { +checkUnnamed3495(core.List<api.SourceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceReference(o[0]); checkSourceReference(o[1]); @@ -300,8 +300,8 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { o.container = buildContainerInfo(); - o.files = buildUnnamed3497(); - o.sourceReferences = buildUnnamed3498(); + o.files = buildUnnamed3494(); + o.sourceReferences = buildUnnamed3495(); } buildCounterDeployment--; return o; @@ -311,8 +311,8 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { checkContainerInfo(o.container); - checkUnnamed3497(o.files); - checkUnnamed3498(o.sourceReferences); + checkUnnamed3494(o.files); + checkUnnamed3495(o.sourceReferences); } buildCounterDeployment--; } @@ -514,14 +514,14 @@ buildCounterLibrary--; } -buildUnnamed3499() { +buildUnnamed3496() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed3499(core.List<api.Instance> o) { +checkUnnamed3496(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -532,7 +532,7 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed3499(); + o.instances = buildUnnamed3496(); o.nextPageToken = "foo"; } buildCounterListInstancesResponse--; @@ -542,20 +542,20 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed3499(o.instances); + checkUnnamed3496(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstancesResponse--; } -buildUnnamed3500() { +buildUnnamed3497() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed3500(core.List<api.Location> o) { +checkUnnamed3497(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -566,7 +566,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed3500(); + o.locations = buildUnnamed3497(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -576,20 +576,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed3500(o.locations); + checkUnnamed3497(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed3501() { +buildUnnamed3498() { var o = new core.List<api.Module>(); o.add(buildModule()); o.add(buildModule()); return o; } -checkUnnamed3501(core.List<api.Module> o) { +checkUnnamed3498(core.List<api.Module> o) { unittest.expect(o, unittest.hasLength(2)); checkModule(o[0]); checkModule(o[1]); @@ -600,7 +600,7 @@ var o = new api.ListModulesResponse(); buildCounterListModulesResponse++; if (buildCounterListModulesResponse < 3) { - o.modules = buildUnnamed3501(); + o.modules = buildUnnamed3498(); o.nextPageToken = "foo"; } buildCounterListModulesResponse--; @@ -610,20 +610,20 @@ checkListModulesResponse(api.ListModulesResponse o) { buildCounterListModulesResponse++; if (buildCounterListModulesResponse < 3) { - checkUnnamed3501(o.modules); + checkUnnamed3498(o.modules); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListModulesResponse--; } -buildUnnamed3502() { +buildUnnamed3499() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3502(core.List<api.Operation> o) { +checkUnnamed3499(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -635,7 +635,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3502(); + o.operations = buildUnnamed3499(); } buildCounterListOperationsResponse--; return o; @@ -645,19 +645,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3502(o.operations); + checkUnnamed3499(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3503() { +buildUnnamed3500() { var o = new core.List<api.Version>(); o.add(buildVersion()); o.add(buildVersion()); return o; } -checkUnnamed3503(core.List<api.Version> o) { +checkUnnamed3500(core.List<api.Version> o) { unittest.expect(o, unittest.hasLength(2)); checkVersion(o[0]); checkVersion(o[1]); @@ -669,7 +669,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { o.nextPageToken = "foo"; - o.versions = buildUnnamed3503(); + o.versions = buildUnnamed3500(); } buildCounterListVersionsResponse--; return o; @@ -679,32 +679,32 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3503(o.versions); + checkUnnamed3500(o.versions); } buildCounterListVersionsResponse--; } -buildUnnamed3504() { +buildUnnamed3501() { 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) { +checkUnnamed3501(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3505() { +buildUnnamed3502() { 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; } -checkUnnamed3505(core.Map<core.String, core.Object> o) { +checkUnnamed3502(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')); @@ -715,9 +715,9 @@ var o = new api.Location(); buildCounterLocation++; if (buildCounterLocation < 3) { - o.labels = buildUnnamed3504(); + o.labels = buildUnnamed3501(); o.locationId = "foo"; - o.metadata = buildUnnamed3505(); + o.metadata = buildUnnamed3502(); o.name = "foo"; } buildCounterLocation--; @@ -727,9 +727,9 @@ checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { - checkUnnamed3504(o.labels); + checkUnnamed3501(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed3505(o.metadata); + checkUnnamed3502(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -798,14 +798,14 @@ buildCounterModule--; } -buildUnnamed3506() { +buildUnnamed3503() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3506(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')); @@ -816,7 +816,7 @@ var o = new api.Network(); buildCounterNetwork++; if (buildCounterNetwork < 3) { - o.forwardedPorts = buildUnnamed3506(); + o.forwardedPorts = buildUnnamed3503(); o.instanceTag = "foo"; o.name = "foo"; } @@ -827,7 +827,7 @@ checkNetwork(api.Network o) { buildCounterNetwork++; if (buildCounterNetwork < 3) { - checkUnnamed3506(o.forwardedPorts); + checkUnnamed3503(o.forwardedPorts); unittest.expect(o.instanceTag, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -859,27 +859,27 @@ buildCounterNetworkUtilization--; } -buildUnnamed3507() { +buildUnnamed3504() { 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; } -checkUnnamed3507(core.Map<core.String, core.Object> o) { +checkUnnamed3504(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')); } -buildUnnamed3508() { +buildUnnamed3505() { 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; } -checkUnnamed3508(core.Map<core.String, core.Object> o) { +checkUnnamed3505(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')); @@ -892,9 +892,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3507(); + o.metadata = buildUnnamed3504(); o.name = "foo"; - o.response = buildUnnamed3508(); + o.response = buildUnnamed3505(); } buildCounterOperation--; return o; @@ -905,9 +905,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3507(o.metadata); + checkUnnamed3504(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3508(o.response); + checkUnnamed3505(o.response); } buildCounterOperation--; } @@ -968,14 +968,14 @@ buildCounterOperationMetadataExperimental--; } -buildUnnamed3509() { +buildUnnamed3506() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3509(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')); @@ -992,7 +992,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed3509(); + o.warning = buildUnnamed3506(); } buildCounterOperationMetadataV1--; return o; @@ -1007,19 +1007,19 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3509(o.warning); + checkUnnamed3506(o.warning); } buildCounterOperationMetadataV1--; } -buildUnnamed3510() { +buildUnnamed3507() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3510(core.List<core.String> o) { +checkUnnamed3507(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1036,7 +1036,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed3510(); + o.warning = buildUnnamed3507(); } buildCounterOperationMetadataV1Alpha--; return o; @@ -1051,19 +1051,19 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3510(o.warning); + checkUnnamed3507(o.warning); } buildCounterOperationMetadataV1Alpha--; } -buildUnnamed3511() { +buildUnnamed3508() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3511(core.List<core.String> o) { +checkUnnamed3508(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1080,7 +1080,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed3511(); + o.warning = buildUnnamed3508(); } buildCounterOperationMetadataV1Beta--; return o; @@ -1095,7 +1095,7 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3511(o.warning); + checkUnnamed3508(o.warning); } buildCounterOperationMetadataV1Beta--; } @@ -1148,14 +1148,14 @@ buildCounterRequestUtilization--; } -buildUnnamed3512() { +buildUnnamed3509() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed3512(core.List<api.Volume> o) { +checkUnnamed3509(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -1169,7 +1169,7 @@ o.cpu = 42.0; o.diskGb = 42.0; o.memoryGb = 42.0; - o.volumes = buildUnnamed3512(); + o.volumes = buildUnnamed3509(); } buildCounterResources--; return o; @@ -1181,7 +1181,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)); - checkUnnamed3512(o.volumes); + checkUnnamed3509(o.volumes); } buildCounterResources--; } @@ -1226,14 +1226,14 @@ buildCounterSourceReference--; } -buildUnnamed3513() { +buildUnnamed3510() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3513(core.Map<core.String, core.String> o) { +checkUnnamed3510(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1247,7 +1247,7 @@ o.applicationReadable = true; o.directory = "foo"; o.expiration = "foo"; - o.httpHeaders = buildUnnamed3513(); + o.httpHeaders = buildUnnamed3510(); o.mimeType = "foo"; o.requireMatchingFile = true; } @@ -1261,21 +1261,21 @@ unittest.expect(o.applicationReadable, unittest.isTrue); unittest.expect(o.directory, unittest.equals('foo')); unittest.expect(o.expiration, unittest.equals('foo')); - checkUnnamed3513(o.httpHeaders); + checkUnnamed3510(o.httpHeaders); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.requireMatchingFile, unittest.isTrue); } buildCounterStaticDirectoryHandler--; } -buildUnnamed3514() { +buildUnnamed3511() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3514(core.Map<core.String, core.String> o) { +checkUnnamed3511(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1288,7 +1288,7 @@ if (buildCounterStaticFilesHandler < 3) { o.applicationReadable = true; o.expiration = "foo"; - o.httpHeaders = buildUnnamed3514(); + o.httpHeaders = buildUnnamed3511(); o.mimeType = "foo"; o.path = "foo"; o.requireMatchingFile = true; @@ -1303,7 +1303,7 @@ if (buildCounterStaticFilesHandler < 3) { unittest.expect(o.applicationReadable, unittest.isTrue); unittest.expect(o.expiration, unittest.equals('foo')); - checkUnnamed3514(o.httpHeaders); + checkUnnamed3511(o.httpHeaders); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.requireMatchingFile, unittest.isTrue); @@ -1312,30 +1312,30 @@ buildCounterStaticFilesHandler--; } -buildUnnamed3515() { +buildUnnamed3512() { 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; } -checkUnnamed3515(core.Map<core.String, core.Object> o) { +checkUnnamed3512(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')); } -buildUnnamed3516() { +buildUnnamed3513() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3515()); - o.add(buildUnnamed3515()); + o.add(buildUnnamed3512()); + o.add(buildUnnamed3512()); return o; } -checkUnnamed3516(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3513(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3515(o[0]); - checkUnnamed3515(o[1]); + checkUnnamed3512(o[0]); + checkUnnamed3512(o[1]); } core.int buildCounterStatus = 0; @@ -1344,7 +1344,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3516(); + o.details = buildUnnamed3513(); o.message = "foo"; } buildCounterStatus--; @@ -1355,20 +1355,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3516(o.details); + checkUnnamed3513(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3517() { +buildUnnamed3514() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed3517(core.Map<core.String, core.double> o) { +checkUnnamed3514(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)); @@ -1379,7 +1379,7 @@ var o = new api.TrafficSplit(); buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - o.allocations = buildUnnamed3517(); + o.allocations = buildUnnamed3514(); o.shardBy = "foo"; } buildCounterTrafficSplit--; @@ -1389,7 +1389,7 @@ checkTrafficSplit(api.TrafficSplit o) { buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - checkUnnamed3517(o.allocations); + checkUnnamed3514(o.allocations); unittest.expect(o.shardBy, unittest.equals('foo')); } buildCounterTrafficSplit--; @@ -1453,79 +1453,79 @@ buildCounterUrlMap--; } -buildUnnamed3518() { +buildUnnamed3515() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3518(core.Map<core.String, core.String> o) { +checkUnnamed3515(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3519() { +buildUnnamed3516() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3519(core.Map<core.String, core.String> o) { +checkUnnamed3516(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3520() { +buildUnnamed3517() { var o = new core.List<api.ErrorHandler>(); o.add(buildErrorHandler()); o.add(buildErrorHandler()); return o; } -checkUnnamed3520(core.List<api.ErrorHandler> o) { +checkUnnamed3517(core.List<api.ErrorHandler> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorHandler(o[0]); checkErrorHandler(o[1]); } -buildUnnamed3521() { +buildUnnamed3518() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed3521(core.List<api.UrlMap> o) { +checkUnnamed3518(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); } -buildUnnamed3522() { +buildUnnamed3519() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3522(core.List<core.String> o) { +checkUnnamed3519(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3523() { +buildUnnamed3520() { var o = new core.List<api.Library>(); o.add(buildLibrary()); o.add(buildLibrary()); return o; } -checkUnnamed3523(core.List<api.Library> o) { +checkUnnamed3520(core.List<api.Library> o) { unittest.expect(o, unittest.hasLength(2)); checkLibrary(o[0]); checkLibrary(o[1]); @@ -1539,20 +1539,20 @@ o.apiConfig = buildApiConfigHandler(); o.automaticScaling = buildAutomaticScaling(); o.basicScaling = buildBasicScaling(); - o.betaSettings = buildUnnamed3518(); + o.betaSettings = buildUnnamed3515(); o.creationTime = "foo"; o.defaultExpiration = "foo"; o.deployer = "foo"; o.deployment = buildDeployment(); o.env = "foo"; - o.envVariables = buildUnnamed3519(); - o.errorHandlers = buildUnnamed3520(); - o.handlers = buildUnnamed3521(); + o.envVariables = buildUnnamed3516(); + o.errorHandlers = buildUnnamed3517(); + o.handlers = buildUnnamed3518(); o.healthCheck = buildHealthCheck(); o.id = "foo"; - o.inboundServices = buildUnnamed3522(); + o.inboundServices = buildUnnamed3519(); o.instanceClass = "foo"; - o.libraries = buildUnnamed3523(); + o.libraries = buildUnnamed3520(); o.manualScaling = buildManualScaling(); o.name = "foo"; o.network = buildNetwork(); @@ -1574,20 +1574,20 @@ checkApiConfigHandler(o.apiConfig); checkAutomaticScaling(o.automaticScaling); checkBasicScaling(o.basicScaling); - checkUnnamed3518(o.betaSettings); + checkUnnamed3515(o.betaSettings); unittest.expect(o.creationTime, unittest.equals('foo')); unittest.expect(o.defaultExpiration, unittest.equals('foo')); unittest.expect(o.deployer, unittest.equals('foo')); checkDeployment(o.deployment); unittest.expect(o.env, unittest.equals('foo')); - checkUnnamed3519(o.envVariables); - checkUnnamed3520(o.errorHandlers); - checkUnnamed3521(o.handlers); + checkUnnamed3516(o.envVariables); + checkUnnamed3517(o.errorHandlers); + checkUnnamed3518(o.handlers); checkHealthCheck(o.healthCheck); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3522(o.inboundServices); + checkUnnamed3519(o.inboundServices); unittest.expect(o.instanceClass, unittest.equals('foo')); - checkUnnamed3523(o.libraries); + checkUnnamed3520(o.libraries); checkManualScaling(o.manualScaling); unittest.expect(o.name, unittest.equals('foo')); checkNetwork(o.network); @@ -2426,8 +2426,8 @@ var mock = new HttpServerMock(); api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules; var arg_appsId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -2461,8 +2461,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -2471,7 +2471,7 @@ var resp = convert.JSON.encode(buildListModulesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListModulesResponse response) { + res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListModulesResponse response) { checkListModulesResponse(response); }))); }); @@ -3228,9 +3228,9 @@ var mock = new HttpServerMock(); api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operations; var arg_appsId = "foo"; + var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -3264,9 +3264,9 @@ 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(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -3275,7 +3275,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse response) { + res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/appengine/v1beta5_test.dart b/generated/googleapis_beta/test/appengine/v1beta5_test.dart index ebcb39e..99d03e3 100644 --- a/generated/googleapis_beta/test/appengine/v1beta5_test.dart +++ b/generated/googleapis_beta/test/appengine/v1beta5_test.dart
@@ -97,14 +97,14 @@ buildCounterApiEndpointHandler--; } -buildUnnamed3469() { +buildUnnamed3466() { var o = new core.List<api.UrlDispatchRule>(); o.add(buildUrlDispatchRule()); o.add(buildUrlDispatchRule()); return o; } -checkUnnamed3469(core.List<api.UrlDispatchRule> o) { +checkUnnamed3466(core.List<api.UrlDispatchRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlDispatchRule(o[0]); checkUrlDispatchRule(o[1]); @@ -120,7 +120,7 @@ o.defaultBucket = "foo"; o.defaultCookieExpiration = "foo"; o.defaultHostname = "foo"; - o.dispatchRules = buildUnnamed3469(); + o.dispatchRules = buildUnnamed3466(); o.iap = buildIdentityAwareProxy(); o.id = "foo"; o.location = "foo"; @@ -138,7 +138,7 @@ unittest.expect(o.defaultBucket, unittest.equals('foo')); unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); unittest.expect(o.defaultHostname, unittest.equals('foo')); - checkUnnamed3469(o.dispatchRules); + checkUnnamed3466(o.dispatchRules); checkIdentityAwareProxy(o.iap); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); @@ -268,27 +268,27 @@ buildCounterDebugInstanceRequest--; } -buildUnnamed3470() { +buildUnnamed3467() { var o = new core.Map<core.String, api.FileInfo>(); o["x"] = buildFileInfo(); o["y"] = buildFileInfo(); return o; } -checkUnnamed3470(core.Map<core.String, api.FileInfo> o) { +checkUnnamed3467(core.Map<core.String, api.FileInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkFileInfo(o["x"]); checkFileInfo(o["y"]); } -buildUnnamed3471() { +buildUnnamed3468() { var o = new core.List<api.SourceReference>(); o.add(buildSourceReference()); o.add(buildSourceReference()); return o; } -checkUnnamed3471(core.List<api.SourceReference> o) { +checkUnnamed3468(core.List<api.SourceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceReference(o[0]); checkSourceReference(o[1]); @@ -300,8 +300,8 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { o.container = buildContainerInfo(); - o.files = buildUnnamed3470(); - o.sourceReferences = buildUnnamed3471(); + o.files = buildUnnamed3467(); + o.sourceReferences = buildUnnamed3468(); } buildCounterDeployment--; return o; @@ -311,8 +311,8 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { checkContainerInfo(o.container); - checkUnnamed3470(o.files); - checkUnnamed3471(o.sourceReferences); + checkUnnamed3467(o.files); + checkUnnamed3468(o.sourceReferences); } buildCounterDeployment--; } @@ -535,14 +535,14 @@ buildCounterLibrary--; } -buildUnnamed3472() { +buildUnnamed3469() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed3472(core.List<api.Instance> o) { +checkUnnamed3469(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -553,7 +553,7 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed3472(); + o.instances = buildUnnamed3469(); o.nextPageToken = "foo"; } buildCounterListInstancesResponse--; @@ -563,20 +563,20 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed3472(o.instances); + checkUnnamed3469(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstancesResponse--; } -buildUnnamed3473() { +buildUnnamed3470() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed3473(core.List<api.Location> o) { +checkUnnamed3470(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -587,7 +587,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed3473(); + o.locations = buildUnnamed3470(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -597,20 +597,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed3473(o.locations); + checkUnnamed3470(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed3474() { +buildUnnamed3471() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3474(core.List<api.Operation> o) { +checkUnnamed3471(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -622,7 +622,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3474(); + o.operations = buildUnnamed3471(); } buildCounterListOperationsResponse--; return o; @@ -632,19 +632,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3474(o.operations); + checkUnnamed3471(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3475() { +buildUnnamed3472() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed3475(core.List<api.Service> o) { +checkUnnamed3472(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -656,7 +656,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed3475(); + o.services = buildUnnamed3472(); } buildCounterListServicesResponse--; return o; @@ -666,19 +666,19 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3475(o.services); + checkUnnamed3472(o.services); } buildCounterListServicesResponse--; } -buildUnnamed3476() { +buildUnnamed3473() { var o = new core.List<api.Version>(); o.add(buildVersion()); o.add(buildVersion()); return o; } -checkUnnamed3476(core.List<api.Version> o) { +checkUnnamed3473(core.List<api.Version> o) { unittest.expect(o, unittest.hasLength(2)); checkVersion(o[0]); checkVersion(o[1]); @@ -690,7 +690,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { o.nextPageToken = "foo"; - o.versions = buildUnnamed3476(); + o.versions = buildUnnamed3473(); } buildCounterListVersionsResponse--; return o; @@ -700,32 +700,32 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3476(o.versions); + checkUnnamed3473(o.versions); } buildCounterListVersionsResponse--; } -buildUnnamed3477() { +buildUnnamed3474() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3477(core.Map<core.String, core.String> o) { +checkUnnamed3474(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3478() { +buildUnnamed3475() { 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; } -checkUnnamed3478(core.Map<core.String, core.Object> o) { +checkUnnamed3475(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')); @@ -736,9 +736,9 @@ var o = new api.Location(); buildCounterLocation++; if (buildCounterLocation < 3) { - o.labels = buildUnnamed3477(); + o.labels = buildUnnamed3474(); o.locationId = "foo"; - o.metadata = buildUnnamed3478(); + o.metadata = buildUnnamed3475(); o.name = "foo"; } buildCounterLocation--; @@ -748,9 +748,9 @@ checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { - checkUnnamed3477(o.labels); + checkUnnamed3474(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed3478(o.metadata); + checkUnnamed3475(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -796,14 +796,14 @@ buildCounterManualScaling--; } -buildUnnamed3479() { +buildUnnamed3476() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3479(core.List<core.String> o) { +checkUnnamed3476(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -814,7 +814,7 @@ var o = new api.Network(); buildCounterNetwork++; if (buildCounterNetwork < 3) { - o.forwardedPorts = buildUnnamed3479(); + o.forwardedPorts = buildUnnamed3476(); o.instanceTag = "foo"; o.name = "foo"; o.subnetworkName = "foo"; @@ -826,7 +826,7 @@ checkNetwork(api.Network o) { buildCounterNetwork++; if (buildCounterNetwork < 3) { - checkUnnamed3479(o.forwardedPorts); + checkUnnamed3476(o.forwardedPorts); unittest.expect(o.instanceTag, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.subnetworkName, unittest.equals('foo')); @@ -859,27 +859,27 @@ buildCounterNetworkUtilization--; } -buildUnnamed3480() { +buildUnnamed3477() { 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; } -checkUnnamed3480(core.Map<core.String, core.Object> o) { +checkUnnamed3477(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')); } -buildUnnamed3481() { +buildUnnamed3478() { 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; } -checkUnnamed3481(core.Map<core.String, core.Object> o) { +checkUnnamed3478(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')); @@ -892,9 +892,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3480(); + o.metadata = buildUnnamed3477(); o.name = "foo"; - o.response = buildUnnamed3481(); + o.response = buildUnnamed3478(); } buildCounterOperation--; return o; @@ -905,9 +905,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3480(o.metadata); + checkUnnamed3477(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3481(o.response); + checkUnnamed3478(o.response); } buildCounterOperation--; } @@ -968,14 +968,14 @@ buildCounterOperationMetadataExperimental--; } -buildUnnamed3482() { +buildUnnamed3479() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3482(core.List<core.String> o) { +checkUnnamed3479(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -992,7 +992,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed3482(); + o.warning = buildUnnamed3479(); } buildCounterOperationMetadataV1--; return o; @@ -1007,19 +1007,19 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3482(o.warning); + checkUnnamed3479(o.warning); } buildCounterOperationMetadataV1--; } -buildUnnamed3483() { +buildUnnamed3480() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3483(core.List<core.String> o) { +checkUnnamed3480(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1036,7 +1036,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed3483(); + o.warning = buildUnnamed3480(); } buildCounterOperationMetadataV1Alpha--; return o; @@ -1051,19 +1051,19 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3483(o.warning); + checkUnnamed3480(o.warning); } buildCounterOperationMetadataV1Alpha--; } -buildUnnamed3484() { +buildUnnamed3481() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3484(core.List<core.String> o) { +checkUnnamed3481(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1080,7 +1080,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed3484(); + o.warning = buildUnnamed3481(); } buildCounterOperationMetadataV1Beta--; return o; @@ -1095,7 +1095,7 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3484(o.warning); + checkUnnamed3481(o.warning); } buildCounterOperationMetadataV1Beta--; } @@ -1148,14 +1148,14 @@ buildCounterRequestUtilization--; } -buildUnnamed3485() { +buildUnnamed3482() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed3485(core.List<api.Volume> o) { +checkUnnamed3482(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -1169,7 +1169,7 @@ o.cpu = 42.0; o.diskGb = 42.0; o.memoryGb = 42.0; - o.volumes = buildUnnamed3485(); + o.volumes = buildUnnamed3482(); } buildCounterResources--; return o; @@ -1181,7 +1181,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)); - checkUnnamed3485(o.volumes); + checkUnnamed3482(o.volumes); } buildCounterResources--; } @@ -1249,14 +1249,14 @@ buildCounterSourceReference--; } -buildUnnamed3486() { +buildUnnamed3483() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3486(core.Map<core.String, core.String> o) { +checkUnnamed3483(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1269,7 +1269,7 @@ if (buildCounterStaticFilesHandler < 3) { o.applicationReadable = true; o.expiration = "foo"; - o.httpHeaders = buildUnnamed3486(); + o.httpHeaders = buildUnnamed3483(); o.mimeType = "foo"; o.path = "foo"; o.requireMatchingFile = true; @@ -1284,7 +1284,7 @@ if (buildCounterStaticFilesHandler < 3) { unittest.expect(o.applicationReadable, unittest.isTrue); unittest.expect(o.expiration, unittest.equals('foo')); - checkUnnamed3486(o.httpHeaders); + checkUnnamed3483(o.httpHeaders); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.requireMatchingFile, unittest.isTrue); @@ -1293,30 +1293,30 @@ buildCounterStaticFilesHandler--; } -buildUnnamed3487() { +buildUnnamed3484() { 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; } -checkUnnamed3487(core.Map<core.String, core.Object> o) { +checkUnnamed3484(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')); } -buildUnnamed3488() { +buildUnnamed3485() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3487()); - o.add(buildUnnamed3487()); + o.add(buildUnnamed3484()); + o.add(buildUnnamed3484()); return o; } -checkUnnamed3488(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3485(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3487(o[0]); - checkUnnamed3487(o[1]); + checkUnnamed3484(o[0]); + checkUnnamed3484(o[1]); } core.int buildCounterStatus = 0; @@ -1325,7 +1325,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3488(); + o.details = buildUnnamed3485(); o.message = "foo"; } buildCounterStatus--; @@ -1336,20 +1336,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3488(o.details); + checkUnnamed3485(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3489() { +buildUnnamed3486() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed3489(core.Map<core.String, core.double> o) { +checkUnnamed3486(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)); @@ -1360,7 +1360,7 @@ var o = new api.TrafficSplit(); buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - o.allocations = buildUnnamed3489(); + o.allocations = buildUnnamed3486(); o.shardBy = "foo"; } buildCounterTrafficSplit--; @@ -1370,7 +1370,7 @@ checkTrafficSplit(api.TrafficSplit o) { buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - checkUnnamed3489(o.allocations); + checkUnnamed3486(o.allocations); unittest.expect(o.shardBy, unittest.equals('foo')); } buildCounterTrafficSplit--; @@ -1432,79 +1432,79 @@ buildCounterUrlMap--; } -buildUnnamed3490() { +buildUnnamed3487() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3490(core.Map<core.String, core.String> o) { +checkUnnamed3487(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3491() { +buildUnnamed3488() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3491(core.Map<core.String, core.String> o) { +checkUnnamed3488(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3492() { +buildUnnamed3489() { var o = new core.List<api.ErrorHandler>(); o.add(buildErrorHandler()); o.add(buildErrorHandler()); return o; } -checkUnnamed3492(core.List<api.ErrorHandler> o) { +checkUnnamed3489(core.List<api.ErrorHandler> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorHandler(o[0]); checkErrorHandler(o[1]); } -buildUnnamed3493() { +buildUnnamed3490() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed3493(core.List<api.UrlMap> o) { +checkUnnamed3490(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); } -buildUnnamed3494() { +buildUnnamed3491() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3494(core.List<core.String> o) { +checkUnnamed3491(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3495() { +buildUnnamed3492() { var o = new core.List<api.Library>(); o.add(buildLibrary()); o.add(buildLibrary()); return o; } -checkUnnamed3495(core.List<api.Library> o) { +checkUnnamed3492(core.List<api.Library> o) { unittest.expect(o, unittest.hasLength(2)); checkLibrary(o[0]); checkLibrary(o[1]); @@ -1518,7 +1518,7 @@ o.apiConfig = buildApiConfigHandler(); o.automaticScaling = buildAutomaticScaling(); o.basicScaling = buildBasicScaling(); - o.betaSettings = buildUnnamed3490(); + o.betaSettings = buildUnnamed3487(); o.creationTime = "foo"; o.defaultExpiration = "foo"; o.deployer = "foo"; @@ -1526,14 +1526,14 @@ o.diskUsageBytes = "foo"; o.endpointsApiService = buildEndpointsApiService(); o.env = "foo"; - o.envVariables = buildUnnamed3491(); - o.errorHandlers = buildUnnamed3492(); - o.handlers = buildUnnamed3493(); + o.envVariables = buildUnnamed3488(); + o.errorHandlers = buildUnnamed3489(); + o.handlers = buildUnnamed3490(); o.healthCheck = buildHealthCheck(); o.id = "foo"; - o.inboundServices = buildUnnamed3494(); + o.inboundServices = buildUnnamed3491(); o.instanceClass = "foo"; - o.libraries = buildUnnamed3495(); + o.libraries = buildUnnamed3492(); o.manualScaling = buildManualScaling(); o.name = "foo"; o.network = buildNetwork(); @@ -1555,7 +1555,7 @@ checkApiConfigHandler(o.apiConfig); checkAutomaticScaling(o.automaticScaling); checkBasicScaling(o.basicScaling); - checkUnnamed3490(o.betaSettings); + checkUnnamed3487(o.betaSettings); unittest.expect(o.creationTime, unittest.equals('foo')); unittest.expect(o.defaultExpiration, unittest.equals('foo')); unittest.expect(o.deployer, unittest.equals('foo')); @@ -1563,14 +1563,14 @@ unittest.expect(o.diskUsageBytes, unittest.equals('foo')); checkEndpointsApiService(o.endpointsApiService); unittest.expect(o.env, unittest.equals('foo')); - checkUnnamed3491(o.envVariables); - checkUnnamed3492(o.errorHandlers); - checkUnnamed3493(o.handlers); + checkUnnamed3488(o.envVariables); + checkUnnamed3489(o.errorHandlers); + checkUnnamed3490(o.handlers); checkHealthCheck(o.healthCheck); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3494(o.inboundServices); + checkUnnamed3491(o.inboundServices); unittest.expect(o.instanceClass, unittest.equals('foo')); - checkUnnamed3495(o.libraries); + checkUnnamed3492(o.libraries); checkManualScaling(o.manualScaling); unittest.expect(o.name, unittest.equals('foo')); checkNetwork(o.network); @@ -2354,9 +2354,9 @@ var mock = new HttpServerMock(); api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operations; var arg_appsId = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; + var arg_pageSize = 42; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -2390,9 +2390,9 @@ 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(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -2401,7 +2401,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListOperationsResponse response) { + res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); }); @@ -2525,8 +2525,8 @@ var mock = new HttpServerMock(); api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services; var arg_appsId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -2560,8 +2560,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -2570,7 +2570,7 @@ var resp = convert.JSON.encode(buildListServicesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListServicesResponse response) { + res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListServicesResponse response) { checkListServicesResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/appengine/v1beta_test.dart b/generated/googleapis_beta/test/appengine/v1beta_test.dart index be530ad..dbb8e9b 100644 --- a/generated/googleapis_beta/test/appengine/v1beta_test.dart +++ b/generated/googleapis_beta/test/appengine/v1beta_test.dart
@@ -97,14 +97,14 @@ buildCounterApiEndpointHandler--; } -buildUnnamed3577() { +buildUnnamed3573() { var o = new core.List<api.UrlDispatchRule>(); o.add(buildUrlDispatchRule()); o.add(buildUrlDispatchRule()); return o; } -checkUnnamed3577(core.List<api.UrlDispatchRule> o) { +checkUnnamed3573(core.List<api.UrlDispatchRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlDispatchRule(o[0]); checkUrlDispatchRule(o[1]); @@ -120,7 +120,7 @@ o.defaultBucket = "foo"; o.defaultCookieExpiration = "foo"; o.defaultHostname = "foo"; - o.dispatchRules = buildUnnamed3577(); + o.dispatchRules = buildUnnamed3573(); o.featureSettings = buildFeatureSettings(); o.gcrDomain = "foo"; o.iap = buildIdentityAwareProxy(); @@ -141,7 +141,7 @@ unittest.expect(o.defaultBucket, unittest.equals('foo')); unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); unittest.expect(o.defaultHostname, unittest.equals('foo')); - checkUnnamed3577(o.dispatchRules); + checkUnnamed3573(o.dispatchRules); checkFeatureSettings(o.featureSettings); unittest.expect(o.gcrDomain, unittest.equals('foo')); checkIdentityAwareProxy(o.iap); @@ -153,27 +153,27 @@ buildCounterApplication--; } -buildUnnamed3578() { +buildUnnamed3574() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3578(core.List<core.String> o) { +checkUnnamed3574(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3579() { +buildUnnamed3575() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3579(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')); @@ -187,11 +187,11 @@ o.certificateRawData = buildCertificateRawData(); o.displayName = "foo"; o.domainMappingsCount = 42; - o.domainNames = buildUnnamed3578(); + o.domainNames = buildUnnamed3574(); o.expireTime = "foo"; o.id = "foo"; o.name = "foo"; - o.visibleDomainMappings = buildUnnamed3579(); + o.visibleDomainMappings = buildUnnamed3575(); } buildCounterAuthorizedCertificate--; return o; @@ -203,11 +203,11 @@ checkCertificateRawData(o.certificateRawData); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.domainMappingsCount, unittest.equals(42)); - checkUnnamed3578(o.domainNames); + checkUnnamed3574(o.domainNames); unittest.expect(o.expireTime, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3579(o.visibleDomainMappings); + checkUnnamed3575(o.visibleDomainMappings); } buildCounterAuthorizedCertificate--; } @@ -297,14 +297,14 @@ buildCounterBasicScaling--; } -buildUnnamed3580() { +buildUnnamed3576() { var o = new core.List<api.FirewallRule>(); o.add(buildFirewallRule()); o.add(buildFirewallRule()); return o; } -checkUnnamed3580(core.List<api.FirewallRule> o) { +checkUnnamed3576(core.List<api.FirewallRule> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallRule(o[0]); checkFirewallRule(o[1]); @@ -315,7 +315,7 @@ var o = new api.BatchUpdateIngressRulesRequest(); buildCounterBatchUpdateIngressRulesRequest++; if (buildCounterBatchUpdateIngressRulesRequest < 3) { - o.ingressRules = buildUnnamed3580(); + o.ingressRules = buildUnnamed3576(); } buildCounterBatchUpdateIngressRulesRequest--; return o; @@ -324,19 +324,19 @@ checkBatchUpdateIngressRulesRequest(api.BatchUpdateIngressRulesRequest o) { buildCounterBatchUpdateIngressRulesRequest++; if (buildCounterBatchUpdateIngressRulesRequest < 3) { - checkUnnamed3580(o.ingressRules); + checkUnnamed3576(o.ingressRules); } buildCounterBatchUpdateIngressRulesRequest--; } -buildUnnamed3581() { +buildUnnamed3577() { var o = new core.List<api.FirewallRule>(); o.add(buildFirewallRule()); o.add(buildFirewallRule()); return o; } -checkUnnamed3581(core.List<api.FirewallRule> o) { +checkUnnamed3577(core.List<api.FirewallRule> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallRule(o[0]); checkFirewallRule(o[1]); @@ -347,7 +347,7 @@ var o = new api.BatchUpdateIngressRulesResponse(); buildCounterBatchUpdateIngressRulesResponse++; if (buildCounterBatchUpdateIngressRulesResponse < 3) { - o.ingressRules = buildUnnamed3581(); + o.ingressRules = buildUnnamed3577(); } buildCounterBatchUpdateIngressRulesResponse--; return o; @@ -356,7 +356,7 @@ checkBatchUpdateIngressRulesResponse(api.BatchUpdateIngressRulesResponse o) { buildCounterBatchUpdateIngressRulesResponse++; if (buildCounterBatchUpdateIngressRulesResponse < 3) { - checkUnnamed3581(o.ingressRules); + checkUnnamed3577(o.ingressRules); } buildCounterBatchUpdateIngressRulesResponse--; } @@ -460,14 +460,14 @@ buildCounterDebugInstanceRequest--; } -buildUnnamed3582() { +buildUnnamed3578() { var o = new core.Map<core.String, api.FileInfo>(); o["x"] = buildFileInfo(); o["y"] = buildFileInfo(); return o; } -checkUnnamed3582(core.Map<core.String, api.FileInfo> o) { +checkUnnamed3578(core.Map<core.String, api.FileInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkFileInfo(o["x"]); checkFileInfo(o["y"]); @@ -480,7 +480,7 @@ if (buildCounterDeployment < 3) { o.build = buildBuildInfo(); o.container = buildContainerInfo(); - o.files = buildUnnamed3582(); + o.files = buildUnnamed3578(); o.zip = buildZipInfo(); } buildCounterDeployment--; @@ -492,7 +492,7 @@ if (buildCounterDeployment < 3) { checkBuildInfo(o.build); checkContainerInfo(o.container); - checkUnnamed3582(o.files); + checkUnnamed3578(o.files); checkZipInfo(o.zip); } buildCounterDeployment--; @@ -523,14 +523,14 @@ buildCounterDiskUtilization--; } -buildUnnamed3583() { +buildUnnamed3579() { var o = new core.List<api.ResourceRecord>(); o.add(buildResourceRecord()); o.add(buildResourceRecord()); return o; } -checkUnnamed3583(core.List<api.ResourceRecord> o) { +checkUnnamed3579(core.List<api.ResourceRecord> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecord(o[0]); checkResourceRecord(o[1]); @@ -543,7 +543,7 @@ if (buildCounterDomainMapping < 3) { o.id = "foo"; o.name = "foo"; - o.resourceRecords = buildUnnamed3583(); + o.resourceRecords = buildUnnamed3579(); o.sslSettings = buildSslSettings(); } buildCounterDomainMapping--; @@ -555,7 +555,7 @@ if (buildCounterDomainMapping < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3583(o.resourceRecords); + checkUnnamed3579(o.resourceRecords); checkSslSettings(o.sslSettings); } buildCounterDomainMapping--; @@ -815,14 +815,14 @@ buildCounterLibrary--; } -buildUnnamed3584() { +buildUnnamed3580() { var o = new core.List<api.AuthorizedCertificate>(); o.add(buildAuthorizedCertificate()); o.add(buildAuthorizedCertificate()); return o; } -checkUnnamed3584(core.List<api.AuthorizedCertificate> o) { +checkUnnamed3580(core.List<api.AuthorizedCertificate> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthorizedCertificate(o[0]); checkAuthorizedCertificate(o[1]); @@ -833,7 +833,7 @@ var o = new api.ListAuthorizedCertificatesResponse(); buildCounterListAuthorizedCertificatesResponse++; if (buildCounterListAuthorizedCertificatesResponse < 3) { - o.certificates = buildUnnamed3584(); + o.certificates = buildUnnamed3580(); o.nextPageToken = "foo"; } buildCounterListAuthorizedCertificatesResponse--; @@ -843,20 +843,20 @@ checkListAuthorizedCertificatesResponse(api.ListAuthorizedCertificatesResponse o) { buildCounterListAuthorizedCertificatesResponse++; if (buildCounterListAuthorizedCertificatesResponse < 3) { - checkUnnamed3584(o.certificates); + checkUnnamed3580(o.certificates); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAuthorizedCertificatesResponse--; } -buildUnnamed3585() { +buildUnnamed3581() { var o = new core.List<api.AuthorizedDomain>(); o.add(buildAuthorizedDomain()); o.add(buildAuthorizedDomain()); return o; } -checkUnnamed3585(core.List<api.AuthorizedDomain> o) { +checkUnnamed3581(core.List<api.AuthorizedDomain> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthorizedDomain(o[0]); checkAuthorizedDomain(o[1]); @@ -867,7 +867,7 @@ var o = new api.ListAuthorizedDomainsResponse(); buildCounterListAuthorizedDomainsResponse++; if (buildCounterListAuthorizedDomainsResponse < 3) { - o.domains = buildUnnamed3585(); + o.domains = buildUnnamed3581(); o.nextPageToken = "foo"; } buildCounterListAuthorizedDomainsResponse--; @@ -877,20 +877,20 @@ checkListAuthorizedDomainsResponse(api.ListAuthorizedDomainsResponse o) { buildCounterListAuthorizedDomainsResponse++; if (buildCounterListAuthorizedDomainsResponse < 3) { - checkUnnamed3585(o.domains); + checkUnnamed3581(o.domains); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAuthorizedDomainsResponse--; } -buildUnnamed3586() { +buildUnnamed3582() { var o = new core.List<api.DomainMapping>(); o.add(buildDomainMapping()); o.add(buildDomainMapping()); return o; } -checkUnnamed3586(core.List<api.DomainMapping> o) { +checkUnnamed3582(core.List<api.DomainMapping> o) { unittest.expect(o, unittest.hasLength(2)); checkDomainMapping(o[0]); checkDomainMapping(o[1]); @@ -901,7 +901,7 @@ var o = new api.ListDomainMappingsResponse(); buildCounterListDomainMappingsResponse++; if (buildCounterListDomainMappingsResponse < 3) { - o.domainMappings = buildUnnamed3586(); + o.domainMappings = buildUnnamed3582(); o.nextPageToken = "foo"; } buildCounterListDomainMappingsResponse--; @@ -911,20 +911,20 @@ checkListDomainMappingsResponse(api.ListDomainMappingsResponse o) { buildCounterListDomainMappingsResponse++; if (buildCounterListDomainMappingsResponse < 3) { - checkUnnamed3586(o.domainMappings); + checkUnnamed3582(o.domainMappings); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDomainMappingsResponse--; } -buildUnnamed3587() { +buildUnnamed3583() { var o = new core.List<api.FirewallRule>(); o.add(buildFirewallRule()); o.add(buildFirewallRule()); return o; } -checkUnnamed3587(core.List<api.FirewallRule> o) { +checkUnnamed3583(core.List<api.FirewallRule> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallRule(o[0]); checkFirewallRule(o[1]); @@ -935,7 +935,7 @@ var o = new api.ListIngressRulesResponse(); buildCounterListIngressRulesResponse++; if (buildCounterListIngressRulesResponse < 3) { - o.ingressRules = buildUnnamed3587(); + o.ingressRules = buildUnnamed3583(); o.nextPageToken = "foo"; } buildCounterListIngressRulesResponse--; @@ -945,20 +945,20 @@ checkListIngressRulesResponse(api.ListIngressRulesResponse o) { buildCounterListIngressRulesResponse++; if (buildCounterListIngressRulesResponse < 3) { - checkUnnamed3587(o.ingressRules); + checkUnnamed3583(o.ingressRules); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListIngressRulesResponse--; } -buildUnnamed3588() { +buildUnnamed3584() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed3588(core.List<api.Instance> o) { +checkUnnamed3584(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -969,7 +969,7 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed3588(); + o.instances = buildUnnamed3584(); o.nextPageToken = "foo"; } buildCounterListInstancesResponse--; @@ -979,20 +979,20 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed3588(o.instances); + checkUnnamed3584(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstancesResponse--; } -buildUnnamed3589() { +buildUnnamed3585() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed3589(core.List<api.Location> o) { +checkUnnamed3585(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -1003,7 +1003,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed3589(); + o.locations = buildUnnamed3585(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -1013,20 +1013,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed3589(o.locations); + checkUnnamed3585(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed3590() { +buildUnnamed3586() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3590(core.List<api.Operation> o) { +checkUnnamed3586(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1038,7 +1038,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3590(); + o.operations = buildUnnamed3586(); } buildCounterListOperationsResponse--; return o; @@ -1048,19 +1048,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3590(o.operations); + checkUnnamed3586(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3591() { +buildUnnamed3587() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed3591(core.List<api.Service> o) { +checkUnnamed3587(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -1072,7 +1072,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed3591(); + o.services = buildUnnamed3587(); } buildCounterListServicesResponse--; return o; @@ -1082,19 +1082,19 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3591(o.services); + checkUnnamed3587(o.services); } buildCounterListServicesResponse--; } -buildUnnamed3592() { +buildUnnamed3588() { var o = new core.List<api.Version>(); o.add(buildVersion()); o.add(buildVersion()); return o; } -checkUnnamed3592(core.List<api.Version> o) { +checkUnnamed3588(core.List<api.Version> o) { unittest.expect(o, unittest.hasLength(2)); checkVersion(o[0]); checkVersion(o[1]); @@ -1106,7 +1106,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { o.nextPageToken = "foo"; - o.versions = buildUnnamed3592(); + o.versions = buildUnnamed3588(); } buildCounterListVersionsResponse--; return o; @@ -1116,7 +1116,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3592(o.versions); + checkUnnamed3588(o.versions); } buildCounterListVersionsResponse--; } @@ -1152,27 +1152,27 @@ buildCounterLivenessCheck--; } -buildUnnamed3593() { +buildUnnamed3589() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3593(core.Map<core.String, core.String> o) { +checkUnnamed3589(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3594() { +buildUnnamed3590() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3594(core.Map<core.String, core.Object> o) { +checkUnnamed3590(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')); @@ -1183,9 +1183,9 @@ var o = new api.Location(); buildCounterLocation++; if (buildCounterLocation < 3) { - o.labels = buildUnnamed3593(); + o.labels = buildUnnamed3589(); o.locationId = "foo"; - o.metadata = buildUnnamed3594(); + o.metadata = buildUnnamed3590(); o.name = "foo"; } buildCounterLocation--; @@ -1195,9 +1195,9 @@ checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { - checkUnnamed3593(o.labels); + checkUnnamed3589(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed3594(o.metadata); + checkUnnamed3590(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -1243,14 +1243,14 @@ buildCounterManualScaling--; } -buildUnnamed3595() { +buildUnnamed3591() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3595(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')); @@ -1261,7 +1261,7 @@ var o = new api.Network(); buildCounterNetwork++; if (buildCounterNetwork < 3) { - o.forwardedPorts = buildUnnamed3595(); + o.forwardedPorts = buildUnnamed3591(); o.instanceTag = "foo"; o.name = "foo"; o.subnetworkName = "foo"; @@ -1273,7 +1273,7 @@ checkNetwork(api.Network o) { buildCounterNetwork++; if (buildCounterNetwork < 3) { - checkUnnamed3595(o.forwardedPorts); + checkUnnamed3591(o.forwardedPorts); unittest.expect(o.instanceTag, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.subnetworkName, unittest.equals('foo')); @@ -1306,27 +1306,27 @@ buildCounterNetworkUtilization--; } -buildUnnamed3596() { +buildUnnamed3592() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3596(core.Map<core.String, core.Object> o) { +checkUnnamed3592(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')); } -buildUnnamed3597() { +buildUnnamed3593() { 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; } -checkUnnamed3597(core.Map<core.String, core.Object> o) { +checkUnnamed3593(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')); @@ -1339,9 +1339,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3596(); + o.metadata = buildUnnamed3592(); o.name = "foo"; - o.response = buildUnnamed3597(); + o.response = buildUnnamed3593(); } buildCounterOperation--; return o; @@ -1352,9 +1352,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3596(o.metadata); + checkUnnamed3592(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3597(o.response); + checkUnnamed3593(o.response); } buildCounterOperation--; } @@ -1415,14 +1415,14 @@ buildCounterOperationMetadataExperimental--; } -buildUnnamed3598() { +buildUnnamed3594() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3598(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')); @@ -1439,7 +1439,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed3598(); + o.warning = buildUnnamed3594(); } buildCounterOperationMetadataV1--; return o; @@ -1454,19 +1454,19 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3598(o.warning); + checkUnnamed3594(o.warning); } buildCounterOperationMetadataV1--; } -buildUnnamed3599() { +buildUnnamed3595() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3599(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')); @@ -1483,7 +1483,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed3599(); + o.warning = buildUnnamed3595(); } buildCounterOperationMetadataV1Alpha--; return o; @@ -1498,19 +1498,19 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3599(o.warning); + checkUnnamed3595(o.warning); } buildCounterOperationMetadataV1Alpha--; } -buildUnnamed3600() { +buildUnnamed3596() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3600(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')); @@ -1527,7 +1527,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed3600(); + o.warning = buildUnnamed3596(); } buildCounterOperationMetadataV1Beta--; return o; @@ -1542,7 +1542,7 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3600(o.warning); + checkUnnamed3596(o.warning); } buildCounterOperationMetadataV1Beta--; } @@ -1666,14 +1666,14 @@ buildCounterResourceRecord--; } -buildUnnamed3601() { +buildUnnamed3597() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed3601(core.List<api.Volume> o) { +checkUnnamed3597(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -1687,7 +1687,7 @@ o.cpu = 42.0; o.diskGb = 42.0; o.memoryGb = 42.0; - o.volumes = buildUnnamed3601(); + o.volumes = buildUnnamed3597(); } buildCounterResources--; return o; @@ -1699,7 +1699,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)); - checkUnnamed3601(o.volumes); + checkUnnamed3597(o.volumes); } buildCounterResources--; } @@ -1790,14 +1790,14 @@ buildCounterStandardSchedulerSettings--; } -buildUnnamed3602() { +buildUnnamed3598() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3602(core.Map<core.String, core.String> o) { +checkUnnamed3598(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1810,7 +1810,7 @@ if (buildCounterStaticFilesHandler < 3) { o.applicationReadable = true; o.expiration = "foo"; - o.httpHeaders = buildUnnamed3602(); + o.httpHeaders = buildUnnamed3598(); o.mimeType = "foo"; o.path = "foo"; o.requireMatchingFile = true; @@ -1825,7 +1825,7 @@ if (buildCounterStaticFilesHandler < 3) { unittest.expect(o.applicationReadable, unittest.isTrue); unittest.expect(o.expiration, unittest.equals('foo')); - checkUnnamed3602(o.httpHeaders); + checkUnnamed3598(o.httpHeaders); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.requireMatchingFile, unittest.isTrue); @@ -1834,30 +1834,30 @@ buildCounterStaticFilesHandler--; } -buildUnnamed3603() { +buildUnnamed3599() { 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; } -checkUnnamed3603(core.Map<core.String, core.Object> o) { +checkUnnamed3599(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')); } -buildUnnamed3604() { +buildUnnamed3600() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3603()); - o.add(buildUnnamed3603()); + o.add(buildUnnamed3599()); + o.add(buildUnnamed3599()); return o; } -checkUnnamed3604(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3600(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3603(o[0]); - checkUnnamed3603(o[1]); + checkUnnamed3599(o[0]); + checkUnnamed3599(o[1]); } core.int buildCounterStatus = 0; @@ -1866,7 +1866,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3604(); + o.details = buildUnnamed3600(); o.message = "foo"; } buildCounterStatus--; @@ -1877,20 +1877,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3604(o.details); + checkUnnamed3600(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3605() { +buildUnnamed3601() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed3605(core.Map<core.String, core.double> o) { +checkUnnamed3601(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)); @@ -1901,7 +1901,7 @@ var o = new api.TrafficSplit(); buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - o.allocations = buildUnnamed3605(); + o.allocations = buildUnnamed3601(); o.shardBy = "foo"; } buildCounterTrafficSplit--; @@ -1911,7 +1911,7 @@ checkTrafficSplit(api.TrafficSplit o) { buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - checkUnnamed3605(o.allocations); + checkUnnamed3601(o.allocations); unittest.expect(o.shardBy, unittest.equals('foo')); } buildCounterTrafficSplit--; @@ -1973,79 +1973,79 @@ buildCounterUrlMap--; } -buildUnnamed3606() { +buildUnnamed3602() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3606(core.Map<core.String, core.String> o) { +checkUnnamed3602(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3607() { +buildUnnamed3603() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3607(core.Map<core.String, core.String> o) { +checkUnnamed3603(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3608() { +buildUnnamed3604() { var o = new core.List<api.ErrorHandler>(); o.add(buildErrorHandler()); o.add(buildErrorHandler()); return o; } -checkUnnamed3608(core.List<api.ErrorHandler> o) { +checkUnnamed3604(core.List<api.ErrorHandler> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorHandler(o[0]); checkErrorHandler(o[1]); } -buildUnnamed3609() { +buildUnnamed3605() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed3609(core.List<api.UrlMap> o) { +checkUnnamed3605(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); } -buildUnnamed3610() { +buildUnnamed3606() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3610(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')); } -buildUnnamed3611() { +buildUnnamed3607() { var o = new core.List<api.Library>(); o.add(buildLibrary()); o.add(buildLibrary()); return o; } -checkUnnamed3611(core.List<api.Library> o) { +checkUnnamed3607(core.List<api.Library> o) { unittest.expect(o, unittest.hasLength(2)); checkLibrary(o[0]); checkLibrary(o[1]); @@ -2059,7 +2059,7 @@ o.apiConfig = buildApiConfigHandler(); o.automaticScaling = buildAutomaticScaling(); o.basicScaling = buildBasicScaling(); - o.betaSettings = buildUnnamed3606(); + o.betaSettings = buildUnnamed3602(); o.createTime = "foo"; o.createdBy = "foo"; o.defaultExpiration = "foo"; @@ -2067,14 +2067,14 @@ o.diskUsageBytes = "foo"; o.endpointsApiService = buildEndpointsApiService(); o.env = "foo"; - o.envVariables = buildUnnamed3607(); - o.errorHandlers = buildUnnamed3608(); - o.handlers = buildUnnamed3609(); + o.envVariables = buildUnnamed3603(); + o.errorHandlers = buildUnnamed3604(); + o.handlers = buildUnnamed3605(); o.healthCheck = buildHealthCheck(); o.id = "foo"; - o.inboundServices = buildUnnamed3610(); + o.inboundServices = buildUnnamed3606(); o.instanceClass = "foo"; - o.libraries = buildUnnamed3611(); + o.libraries = buildUnnamed3607(); o.livenessCheck = buildLivenessCheck(); o.manualScaling = buildManualScaling(); o.name = "foo"; @@ -2099,7 +2099,7 @@ checkApiConfigHandler(o.apiConfig); checkAutomaticScaling(o.automaticScaling); checkBasicScaling(o.basicScaling); - checkUnnamed3606(o.betaSettings); + checkUnnamed3602(o.betaSettings); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.createdBy, unittest.equals('foo')); unittest.expect(o.defaultExpiration, unittest.equals('foo')); @@ -2107,14 +2107,14 @@ unittest.expect(o.diskUsageBytes, unittest.equals('foo')); checkEndpointsApiService(o.endpointsApiService); unittest.expect(o.env, unittest.equals('foo')); - checkUnnamed3607(o.envVariables); - checkUnnamed3608(o.errorHandlers); - checkUnnamed3609(o.handlers); + checkUnnamed3603(o.envVariables); + checkUnnamed3604(o.errorHandlers); + checkUnnamed3605(o.handlers); checkHealthCheck(o.healthCheck); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3610(o.inboundServices); + checkUnnamed3606(o.inboundServices); unittest.expect(o.instanceClass, unittest.equals('foo')); - checkUnnamed3611(o.libraries); + checkUnnamed3607(o.libraries); checkLivenessCheck(o.livenessCheck); checkManualScaling(o.manualScaling); unittest.expect(o.name, unittest.equals('foo')); @@ -3151,8 +3151,9 @@ var mock = new HttpServerMock(); api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock).apps.authorizedCertificates; var arg_appsId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_view = "foo"; + var arg_pageToken = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -3186,8 +3187,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -3196,7 +3198,7 @@ var resp = convert.JSON.encode(buildListAuthorizedCertificatesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListAuthorizedCertificatesResponse response) { + res.list(arg_appsId, pageSize: arg_pageSize, view: arg_view, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListAuthorizedCertificatesResponse response) { checkListAuthorizedCertificatesResponse(response); }))); }); @@ -4012,9 +4014,9 @@ var mock = new HttpServerMock(); api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locations; var arg_appsId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageToken = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -4048,9 +4050,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -4059,7 +4061,7 @@ var resp = convert.JSON.encode(buildListLocationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListLocationsResponse response) { + res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListLocationsResponse response) { checkListLocationsResponse(response); }))); }); @@ -4128,9 +4130,9 @@ var mock = new HttpServerMock(); api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operations; var arg_appsId = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; + var arg_pageSize = 42; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -4164,9 +4166,9 @@ 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(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -4175,7 +4177,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListOperationsResponse response) { + res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); }); @@ -4356,8 +4358,8 @@ var arg_request = buildService(); var arg_appsId = "foo"; var arg_servicesId = "foo"; - var arg_migrateTraffic = true; var arg_updateMask = "foo"; + var arg_migrateTraffic = true; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Service.fromJson(json); checkService(obj); @@ -4397,8 +4399,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_migrateTraffic")); unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask)); + unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_migrateTraffic")); var h = { @@ -4407,7 +4409,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_appsId, arg_servicesId, migrateTraffic: arg_migrateTraffic, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Operation response) { + res.patch(arg_request, arg_appsId, arg_servicesId, updateMask: arg_updateMask, migrateTraffic: arg_migrateTraffic).then(unittest.expectAsync1(((api.Operation response) { checkOperation(response); }))); }); @@ -4613,9 +4615,9 @@ api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps.services.versions; var arg_appsId = "foo"; var arg_servicesId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_view = "foo"; + var arg_pageToken = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -4656,9 +4658,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -4667,7 +4669,7 @@ var resp = convert.JSON.encode(buildListVersionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_appsId, arg_servicesId, pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view).then(unittest.expectAsync1(((api.ListVersionsResponse response) { + res.list(arg_appsId, arg_servicesId, pageSize: arg_pageSize, view: arg_view, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListVersionsResponse response) { checkListVersionsResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart b/generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart index a0b1c4b..97d35e1 100644 --- a/generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart +++ b/generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart
@@ -70,14 +70,14 @@ buildCounterAncestor--; } -buildUnnamed3397() { +buildUnnamed3394() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed3397(core.List<api.AuditLogConfig> o) { +checkUnnamed3394(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -88,7 +88,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed3397(); + o.auditLogConfigs = buildUnnamed3394(); o.service = "foo"; } buildCounterAuditConfig--; @@ -98,20 +98,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed3397(o.auditLogConfigs); + checkUnnamed3394(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed3398() { +buildUnnamed3395() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3398(core.List<core.String> o) { +checkUnnamed3395(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -122,7 +122,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed3398(); + o.exemptedMembers = buildUnnamed3395(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -132,20 +132,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed3398(o.exemptedMembers); + checkUnnamed3395(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed3399() { +buildUnnamed3396() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3399(core.List<core.String> o) { +checkUnnamed3396(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -156,7 +156,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed3399(); + o.members = buildUnnamed3396(); o.role = "foo"; } buildCounterBinding--; @@ -166,7 +166,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed3399(o.members); + checkUnnamed3396(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -250,14 +250,14 @@ buildCounterGetAncestryRequest--; } -buildUnnamed3400() { +buildUnnamed3397() { var o = new core.List<api.Ancestor>(); o.add(buildAncestor()); o.add(buildAncestor()); return o; } -checkUnnamed3400(core.List<api.Ancestor> o) { +checkUnnamed3397(core.List<api.Ancestor> o) { unittest.expect(o, unittest.hasLength(2)); checkAncestor(o[0]); checkAncestor(o[1]); @@ -268,7 +268,7 @@ var o = new api.GetAncestryResponse(); buildCounterGetAncestryResponse++; if (buildCounterGetAncestryResponse < 3) { - o.ancestor = buildUnnamed3400(); + o.ancestor = buildUnnamed3397(); } buildCounterGetAncestryResponse--; return o; @@ -277,7 +277,7 @@ checkGetAncestryResponse(api.GetAncestryResponse o) { buildCounterGetAncestryResponse++; if (buildCounterGetAncestryResponse < 3) { - checkUnnamed3400(o.ancestor); + checkUnnamed3397(o.ancestor); } buildCounterGetAncestryResponse--; } @@ -299,14 +299,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed3401() { +buildUnnamed3398() { var o = new core.List<api.Organization>(); o.add(buildOrganization()); o.add(buildOrganization()); return o; } -checkUnnamed3401(core.List<api.Organization> o) { +checkUnnamed3398(core.List<api.Organization> o) { unittest.expect(o, unittest.hasLength(2)); checkOrganization(o[0]); checkOrganization(o[1]); @@ -318,7 +318,7 @@ buildCounterListOrganizationsResponse++; if (buildCounterListOrganizationsResponse < 3) { o.nextPageToken = "foo"; - o.organizations = buildUnnamed3401(); + o.organizations = buildUnnamed3398(); } buildCounterListOrganizationsResponse--; return o; @@ -328,19 +328,19 @@ buildCounterListOrganizationsResponse++; if (buildCounterListOrganizationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3401(o.organizations); + checkUnnamed3398(o.organizations); } buildCounterListOrganizationsResponse--; } -buildUnnamed3402() { +buildUnnamed3399() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed3402(core.List<api.Project> o) { +checkUnnamed3399(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -352,7 +352,7 @@ buildCounterListProjectsResponse++; if (buildCounterListProjectsResponse < 3) { o.nextPageToken = "foo"; - o.projects = buildUnnamed3402(); + o.projects = buildUnnamed3399(); } buildCounterListProjectsResponse--; return o; @@ -362,7 +362,7 @@ buildCounterListProjectsResponse++; if (buildCounterListProjectsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3402(o.projects); + checkUnnamed3399(o.projects); } buildCounterListProjectsResponse--; } @@ -415,27 +415,27 @@ buildCounterOrganizationOwner--; } -buildUnnamed3403() { +buildUnnamed3400() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed3403(core.List<api.AuditConfig> o) { +checkUnnamed3400(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed3404() { +buildUnnamed3401() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed3404(core.List<api.Binding> o) { +checkUnnamed3401(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -446,8 +446,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed3403(); - o.bindings = buildUnnamed3404(); + o.auditConfigs = buildUnnamed3400(); + o.bindings = buildUnnamed3401(); o.etag = "foo"; o.version = 42; } @@ -458,22 +458,22 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed3403(o.auditConfigs); - checkUnnamed3404(o.bindings); + checkUnnamed3400(o.auditConfigs); + checkUnnamed3401(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed3405() { +buildUnnamed3402() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3405(core.Map<core.String, core.String> o) { +checkUnnamed3402(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -485,7 +485,7 @@ buildCounterProject++; if (buildCounterProject < 3) { o.createTime = "foo"; - o.labels = buildUnnamed3405(); + o.labels = buildUnnamed3402(); o.lifecycleState = "foo"; o.name = "foo"; o.parent = buildResourceId(); @@ -500,7 +500,7 @@ buildCounterProject++; if (buildCounterProject < 3) { unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed3405(o.labels); + checkUnnamed3402(o.labels); unittest.expect(o.lifecycleState, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkResourceId(o.parent); @@ -575,14 +575,14 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed3406() { +buildUnnamed3403() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3406(core.List<core.String> o) { +checkUnnamed3403(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -593,7 +593,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed3406(); + o.permissions = buildUnnamed3403(); } buildCounterTestIamPermissionsRequest--; return o; @@ -602,19 +602,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed3406(o.permissions); + checkUnnamed3403(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed3407() { +buildUnnamed3404() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3407(core.List<core.String> o) { +checkUnnamed3404(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -625,7 +625,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed3407(); + o.permissions = buildUnnamed3404(); } buildCounterTestIamPermissionsResponse--; return o; @@ -634,7 +634,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed3407(o.permissions); + checkUnnamed3404(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -1410,9 +1410,9 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1439,9 +1439,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), 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)); var h = { @@ -1450,7 +1450,7 @@ var resp = convert.JSON.encode(buildListProjectsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListProjectsResponse response) { + res.list(filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListProjectsResponse response) { checkListProjectsResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/clouduseraccounts/beta_test.dart b/generated/googleapis_beta/test/clouduseraccounts/beta_test.dart index f865f92..87af204 100644 --- a/generated/googleapis_beta/test/clouduseraccounts/beta_test.dart +++ b/generated/googleapis_beta/test/clouduseraccounts/beta_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3238() { +buildUnnamed3234() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3238(core.List<core.String> o) { +checkUnnamed3234(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -69,7 +69,7 @@ var o = new api.AuthorizedKeysView(); buildCounterAuthorizedKeysView++; if (buildCounterAuthorizedKeysView < 3) { - o.keys = buildUnnamed3238(); + o.keys = buildUnnamed3234(); o.sudoer = true; } buildCounterAuthorizedKeysView--; @@ -79,20 +79,20 @@ checkAuthorizedKeysView(api.AuthorizedKeysView o) { buildCounterAuthorizedKeysView++; if (buildCounterAuthorizedKeysView < 3) { - checkUnnamed3238(o.keys); + checkUnnamed3234(o.keys); unittest.expect(o.sudoer, unittest.isTrue); } buildCounterAuthorizedKeysView--; } -buildUnnamed3239() { +buildUnnamed3235() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3239(core.List<core.String> o) { +checkUnnamed3235(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -107,7 +107,7 @@ o.description = "foo"; o.id = "foo"; o.kind = "foo"; - o.members = buildUnnamed3239(); + o.members = buildUnnamed3235(); o.name = "foo"; o.selfLink = "foo"; } @@ -122,21 +122,21 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3239(o.members); + checkUnnamed3235(o.members); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterGroup--; } -buildUnnamed3240() { +buildUnnamed3236() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed3240(core.List<api.Group> o) { +checkUnnamed3236(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -148,7 +148,7 @@ buildCounterGroupList++; if (buildCounterGroupList < 3) { o.id = "foo"; - o.items = buildUnnamed3240(); + o.items = buildUnnamed3236(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -161,7 +161,7 @@ buildCounterGroupList++; if (buildCounterGroupList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3240(o.items); + checkUnnamed3236(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -169,14 +169,14 @@ buildCounterGroupList--; } -buildUnnamed3241() { +buildUnnamed3237() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3241(core.List<core.String> o) { +checkUnnamed3237(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -187,7 +187,7 @@ var o = new api.GroupsAddMemberRequest(); buildCounterGroupsAddMemberRequest++; if (buildCounterGroupsAddMemberRequest < 3) { - o.users = buildUnnamed3241(); + o.users = buildUnnamed3237(); } buildCounterGroupsAddMemberRequest--; return o; @@ -196,19 +196,19 @@ checkGroupsAddMemberRequest(api.GroupsAddMemberRequest o) { buildCounterGroupsAddMemberRequest++; if (buildCounterGroupsAddMemberRequest < 3) { - checkUnnamed3241(o.users); + checkUnnamed3237(o.users); } buildCounterGroupsAddMemberRequest--; } -buildUnnamed3242() { +buildUnnamed3238() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3242(core.List<core.String> o) { +checkUnnamed3238(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -219,7 +219,7 @@ var o = new api.GroupsRemoveMemberRequest(); buildCounterGroupsRemoveMemberRequest++; if (buildCounterGroupsRemoveMemberRequest < 3) { - o.users = buildUnnamed3242(); + o.users = buildUnnamed3238(); } buildCounterGroupsRemoveMemberRequest--; return o; @@ -228,32 +228,32 @@ checkGroupsRemoveMemberRequest(api.GroupsRemoveMemberRequest o) { buildCounterGroupsRemoveMemberRequest++; if (buildCounterGroupsRemoveMemberRequest < 3) { - checkUnnamed3242(o.users); + checkUnnamed3238(o.users); } buildCounterGroupsRemoveMemberRequest--; } -buildUnnamed3243() { +buildUnnamed3239() { var o = new core.List<api.LinuxGroupView>(); o.add(buildLinuxGroupView()); o.add(buildLinuxGroupView()); return o; } -checkUnnamed3243(core.List<api.LinuxGroupView> o) { +checkUnnamed3239(core.List<api.LinuxGroupView> o) { unittest.expect(o, unittest.hasLength(2)); checkLinuxGroupView(o[0]); checkLinuxGroupView(o[1]); } -buildUnnamed3244() { +buildUnnamed3240() { var o = new core.List<api.LinuxUserView>(); o.add(buildLinuxUserView()); o.add(buildLinuxUserView()); return o; } -checkUnnamed3244(core.List<api.LinuxUserView> o) { +checkUnnamed3240(core.List<api.LinuxUserView> o) { unittest.expect(o, unittest.hasLength(2)); checkLinuxUserView(o[0]); checkLinuxUserView(o[1]); @@ -264,9 +264,9 @@ var o = new api.LinuxAccountViews(); buildCounterLinuxAccountViews++; if (buildCounterLinuxAccountViews < 3) { - o.groupViews = buildUnnamed3243(); + o.groupViews = buildUnnamed3239(); o.kind = "foo"; - o.userViews = buildUnnamed3244(); + o.userViews = buildUnnamed3240(); } buildCounterLinuxAccountViews--; return o; @@ -275,9 +275,9 @@ checkLinuxAccountViews(api.LinuxAccountViews o) { buildCounterLinuxAccountViews++; if (buildCounterLinuxAccountViews < 3) { - checkUnnamed3243(o.groupViews); + checkUnnamed3239(o.groupViews); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3244(o.userViews); + checkUnnamed3240(o.userViews); } buildCounterLinuxAccountViews--; } @@ -320,14 +320,14 @@ buildCounterLinuxGetLinuxAccountViewsResponse--; } -buildUnnamed3245() { +buildUnnamed3241() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3245(core.List<core.String> o) { +checkUnnamed3241(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -340,7 +340,7 @@ if (buildCounterLinuxGroupView < 3) { o.gid = 42; o.groupName = "foo"; - o.members = buildUnnamed3245(); + o.members = buildUnnamed3241(); } buildCounterLinuxGroupView--; return o; @@ -351,7 +351,7 @@ if (buildCounterLinuxGroupView < 3) { unittest.expect(o.gid, unittest.equals(42)); unittest.expect(o.groupName, unittest.equals('foo')); - checkUnnamed3245(o.members); + checkUnnamed3241(o.members); } buildCounterLinuxGroupView--; } @@ -408,14 +408,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed3246() { +buildUnnamed3242() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed3246(core.List<api.OperationErrorErrors> o) { +checkUnnamed3242(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -426,7 +426,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed3246(); + o.errors = buildUnnamed3242(); } buildCounterOperationError--; return o; @@ -435,7 +435,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed3246(o.errors); + checkUnnamed3242(o.errors); } buildCounterOperationError--; } @@ -461,14 +461,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed3247() { +buildUnnamed3243() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed3247(core.List<api.OperationWarningsData> o) { +checkUnnamed3243(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -480,7 +480,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed3247(); + o.data = buildUnnamed3243(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -491,20 +491,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed3247(o.data); + checkUnnamed3243(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed3248() { +buildUnnamed3244() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed3248(core.List<api.OperationWarnings> o) { +checkUnnamed3244(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -536,7 +536,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed3248(); + o.warnings = buildUnnamed3244(); o.zone = "foo"; } buildCounterOperation--; @@ -567,20 +567,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3248(o.warnings); + checkUnnamed3244(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed3249() { +buildUnnamed3245() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3249(core.List<api.Operation> o) { +checkUnnamed3245(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -592,7 +592,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { o.id = "foo"; - o.items = buildUnnamed3249(); + o.items = buildUnnamed3245(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -605,7 +605,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3249(o.items); + checkUnnamed3245(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -640,27 +640,27 @@ buildCounterPublicKey--; } -buildUnnamed3250() { +buildUnnamed3246() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3250(core.List<core.String> o) { +checkUnnamed3246(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3251() { +buildUnnamed3247() { var o = new core.List<api.PublicKey>(); o.add(buildPublicKey()); o.add(buildPublicKey()); return o; } -checkUnnamed3251(core.List<api.PublicKey> o) { +checkUnnamed3247(core.List<api.PublicKey> o) { unittest.expect(o, unittest.hasLength(2)); checkPublicKey(o[0]); checkPublicKey(o[1]); @@ -673,12 +673,12 @@ if (buildCounterUser < 3) { o.creationTimestamp = "foo"; o.description = "foo"; - o.groups = buildUnnamed3250(); + o.groups = buildUnnamed3246(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; o.owner = "foo"; - o.publicKeys = buildUnnamed3251(); + o.publicKeys = buildUnnamed3247(); o.selfLink = "foo"; } buildCounterUser--; @@ -690,25 +690,25 @@ if (buildCounterUser < 3) { unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed3250(o.groups); + checkUnnamed3246(o.groups); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.owner, unittest.equals('foo')); - checkUnnamed3251(o.publicKeys); + checkUnnamed3247(o.publicKeys); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterUser--; } -buildUnnamed3252() { +buildUnnamed3248() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed3252(core.List<api.User> o) { +checkUnnamed3248(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -720,7 +720,7 @@ buildCounterUserList++; if (buildCounterUserList < 3) { o.id = "foo"; - o.items = buildUnnamed3252(); + o.items = buildUnnamed3248(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -733,7 +733,7 @@ buildCounterUserList++; if (buildCounterUserList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3252(o.items); + checkUnnamed3248(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo'));
diff --git a/generated/googleapis_beta/test/dataflow/v1b3_test.dart b/generated/googleapis_beta/test/dataflow/v1b3_test.dart index fd7172a..1fa35d1 100644 --- a/generated/googleapis_beta/test/dataflow/v1b3_test.dart +++ b/generated/googleapis_beta/test/dataflow/v1b3_test.dart
@@ -237,53 +237,53 @@ buildCounterComponentTransform--; } -buildUnnamed3020() { +buildUnnamed3069() { var o = new core.List<api.StreamLocation>(); o.add(buildStreamLocation()); o.add(buildStreamLocation()); return o; } -checkUnnamed3020(core.List<api.StreamLocation> o) { +checkUnnamed3069(core.List<api.StreamLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkStreamLocation(o[0]); checkStreamLocation(o[1]); } -buildUnnamed3021() { +buildUnnamed3070() { var o = new core.List<api.KeyRangeLocation>(); o.add(buildKeyRangeLocation()); o.add(buildKeyRangeLocation()); return o; } -checkUnnamed3021(core.List<api.KeyRangeLocation> o) { +checkUnnamed3070(core.List<api.KeyRangeLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkKeyRangeLocation(o[0]); checkKeyRangeLocation(o[1]); } -buildUnnamed3022() { +buildUnnamed3071() { var o = new core.List<api.StreamLocation>(); o.add(buildStreamLocation()); o.add(buildStreamLocation()); return o; } -checkUnnamed3022(core.List<api.StreamLocation> o) { +checkUnnamed3071(core.List<api.StreamLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkStreamLocation(o[0]); checkStreamLocation(o[1]); } -buildUnnamed3023() { +buildUnnamed3072() { var o = new core.List<api.StateFamilyConfig>(); o.add(buildStateFamilyConfig()); o.add(buildStateFamilyConfig()); return o; } -checkUnnamed3023(core.List<api.StateFamilyConfig> o) { +checkUnnamed3072(core.List<api.StateFamilyConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkStateFamilyConfig(o[0]); checkStateFamilyConfig(o[1]); @@ -295,10 +295,10 @@ buildCounterComputationTopology++; if (buildCounterComputationTopology < 3) { o.computationId = "foo"; - o.inputs = buildUnnamed3020(); - o.keyRanges = buildUnnamed3021(); - o.outputs = buildUnnamed3022(); - o.stateFamilies = buildUnnamed3023(); + o.inputs = buildUnnamed3069(); + o.keyRanges = buildUnnamed3070(); + o.outputs = buildUnnamed3071(); + o.stateFamilies = buildUnnamed3072(); o.systemStageName = "foo"; } buildCounterComputationTopology--; @@ -309,10 +309,10 @@ buildCounterComputationTopology++; if (buildCounterComputationTopology < 3) { unittest.expect(o.computationId, unittest.equals('foo')); - checkUnnamed3020(o.inputs); - checkUnnamed3021(o.keyRanges); - checkUnnamed3022(o.outputs); - checkUnnamed3023(o.stateFamilies); + checkUnnamed3069(o.inputs); + checkUnnamed3070(o.keyRanges); + checkUnnamed3071(o.outputs); + checkUnnamed3072(o.stateFamilies); unittest.expect(o.systemStageName, unittest.equals('foo')); } buildCounterComputationTopology--; @@ -463,14 +463,14 @@ buildCounterCounterUpdate--; } -buildUnnamed3024() { +buildUnnamed3073() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3024(core.Map<core.String, core.String> o) { +checkUnnamed3073(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -485,7 +485,7 @@ o.gcsPath = "foo"; o.jobName = "foo"; o.location = "foo"; - o.parameters = buildUnnamed3024(); + o.parameters = buildUnnamed3073(); } buildCounterCreateJobFromTemplateRequest--; return o; @@ -498,7 +498,7 @@ unittest.expect(o.gcsPath, unittest.equals('foo')); unittest.expect(o.jobName, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); - checkUnnamed3024(o.parameters); + checkUnnamed3073(o.parameters); } buildCounterCreateJobFromTemplateRequest--; } @@ -522,14 +522,14 @@ buildCounterCustomSourceLocation--; } -buildUnnamed3025() { +buildUnnamed3074() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3025(core.List<core.String> o) { +checkUnnamed3074(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -540,7 +540,7 @@ var o = new api.DataDiskAssignment(); buildCounterDataDiskAssignment++; if (buildCounterDataDiskAssignment < 3) { - o.dataDisks = buildUnnamed3025(); + o.dataDisks = buildUnnamed3074(); o.vmInstance = "foo"; } buildCounterDataDiskAssignment--; @@ -550,7 +550,7 @@ checkDataDiskAssignment(api.DataDiskAssignment o) { buildCounterDataDiskAssignment++; if (buildCounterDataDiskAssignment < 3) { - checkUnnamed3025(o.dataDisks); + checkUnnamed3074(o.dataDisks); unittest.expect(o.vmInstance, unittest.equals('foo')); } buildCounterDataDiskAssignment--; @@ -641,14 +641,14 @@ buildCounterDisplayData--; } -buildUnnamed3026() { +buildUnnamed3075() { var o = new core.List<api.LogBucket>(); o.add(buildLogBucket()); o.add(buildLogBucket()); return o; } -checkUnnamed3026(core.List<api.LogBucket> o) { +checkUnnamed3075(core.List<api.LogBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkLogBucket(o[0]); checkLogBucket(o[1]); @@ -660,7 +660,7 @@ buildCounterDistributionUpdate++; if (buildCounterDistributionUpdate < 3) { o.count = buildSplitInt64(); - o.logBuckets = buildUnnamed3026(); + o.logBuckets = buildUnnamed3075(); o.max = buildSplitInt64(); o.min = buildSplitInt64(); o.sum = buildSplitInt64(); @@ -674,7 +674,7 @@ buildCounterDistributionUpdate++; if (buildCounterDistributionUpdate < 3) { checkSplitInt64(o.count); - checkUnnamed3026(o.logBuckets); + checkUnnamed3075(o.logBuckets); checkSplitInt64(o.max); checkSplitInt64(o.min); checkSplitInt64(o.sum); @@ -704,79 +704,79 @@ buildCounterDynamicSourceSplit--; } -buildUnnamed3027() { +buildUnnamed3076() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3027(core.List<core.String> o) { +checkUnnamed3076(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3028() { +buildUnnamed3077() { 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; } -checkUnnamed3028(core.Map<core.String, core.Object> o) { +checkUnnamed3077(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted2 = (o["x"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); var casted3 = (o["y"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); } -buildUnnamed3029() { +buildUnnamed3078() { 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; } -checkUnnamed3029(core.Map<core.String, core.Object> o) { +checkUnnamed3078(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted4 = (o["x"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); var casted5 = (o["y"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); } -buildUnnamed3030() { +buildUnnamed3079() { 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; } -checkUnnamed3030(core.Map<core.String, core.Object> o) { +checkUnnamed3079(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted6 = (o["x"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); var casted7 = (o["y"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); } -buildUnnamed3031() { +buildUnnamed3080() { 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; } -checkUnnamed3031(core.Map<core.String, core.Object> o) { +checkUnnamed3080(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted8 = (o["x"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); var casted9 = (o["y"]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); } -buildUnnamed3032() { +buildUnnamed3081() { var o = new core.List<api.WorkerPool>(); o.add(buildWorkerPool()); o.add(buildWorkerPool()); return o; } -checkUnnamed3032(core.List<api.WorkerPool> o) { +checkUnnamed3081(core.List<api.WorkerPool> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkerPool(o[0]); checkWorkerPool(o[1]); @@ -789,14 +789,14 @@ if (buildCounterEnvironment < 3) { o.clusterManagerApiService = "foo"; o.dataset = "foo"; - o.experiments = buildUnnamed3027(); - o.internalExperiments = buildUnnamed3028(); - o.sdkPipelineOptions = buildUnnamed3029(); + o.experiments = buildUnnamed3076(); + o.internalExperiments = buildUnnamed3077(); + o.sdkPipelineOptions = buildUnnamed3078(); o.serviceAccountEmail = "foo"; o.tempStoragePrefix = "foo"; - o.userAgent = buildUnnamed3030(); - o.version = buildUnnamed3031(); - o.workerPools = buildUnnamed3032(); + o.userAgent = buildUnnamed3079(); + o.version = buildUnnamed3080(); + o.workerPools = buildUnnamed3081(); } buildCounterEnvironment--; return o; @@ -807,14 +807,14 @@ if (buildCounterEnvironment < 3) { unittest.expect(o.clusterManagerApiService, unittest.equals('foo')); unittest.expect(o.dataset, unittest.equals('foo')); - checkUnnamed3027(o.experiments); - checkUnnamed3028(o.internalExperiments); - checkUnnamed3029(o.sdkPipelineOptions); + checkUnnamed3076(o.experiments); + checkUnnamed3077(o.internalExperiments); + checkUnnamed3078(o.sdkPipelineOptions); unittest.expect(o.serviceAccountEmail, unittest.equals('foo')); unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); - checkUnnamed3030(o.userAgent); - checkUnnamed3031(o.version); - checkUnnamed3032(o.workerPools); + checkUnnamed3079(o.userAgent); + checkUnnamed3080(o.version); + checkUnnamed3081(o.workerPools); } buildCounterEnvironment--; } @@ -842,53 +842,53 @@ buildCounterExecutionStageState--; } -buildUnnamed3033() { +buildUnnamed3082() { var o = new core.List<api.ComponentSource>(); o.add(buildComponentSource()); o.add(buildComponentSource()); return o; } -checkUnnamed3033(core.List<api.ComponentSource> o) { +checkUnnamed3082(core.List<api.ComponentSource> o) { unittest.expect(o, unittest.hasLength(2)); checkComponentSource(o[0]); checkComponentSource(o[1]); } -buildUnnamed3034() { +buildUnnamed3083() { var o = new core.List<api.ComponentTransform>(); o.add(buildComponentTransform()); o.add(buildComponentTransform()); return o; } -checkUnnamed3034(core.List<api.ComponentTransform> o) { +checkUnnamed3083(core.List<api.ComponentTransform> o) { unittest.expect(o, unittest.hasLength(2)); checkComponentTransform(o[0]); checkComponentTransform(o[1]); } -buildUnnamed3035() { +buildUnnamed3084() { var o = new core.List<api.StageSource>(); o.add(buildStageSource()); o.add(buildStageSource()); return o; } -checkUnnamed3035(core.List<api.StageSource> o) { +checkUnnamed3084(core.List<api.StageSource> o) { unittest.expect(o, unittest.hasLength(2)); checkStageSource(o[0]); checkStageSource(o[1]); } -buildUnnamed3036() { +buildUnnamed3085() { var o = new core.List<api.StageSource>(); o.add(buildStageSource()); o.add(buildStageSource()); return o; } -checkUnnamed3036(core.List<api.StageSource> o) { +checkUnnamed3085(core.List<api.StageSource> o) { unittest.expect(o, unittest.hasLength(2)); checkStageSource(o[0]); checkStageSource(o[1]); @@ -899,13 +899,13 @@ var o = new api.ExecutionStageSummary(); buildCounterExecutionStageSummary++; if (buildCounterExecutionStageSummary < 3) { - o.componentSource = buildUnnamed3033(); - o.componentTransform = buildUnnamed3034(); + o.componentSource = buildUnnamed3082(); + o.componentTransform = buildUnnamed3083(); o.id = "foo"; - o.inputSource = buildUnnamed3035(); + o.inputSource = buildUnnamed3084(); o.kind = "foo"; o.name = "foo"; - o.outputSource = buildUnnamed3036(); + o.outputSource = buildUnnamed3085(); } buildCounterExecutionStageSummary--; return o; @@ -914,13 +914,13 @@ checkExecutionStageSummary(api.ExecutionStageSummary o) { buildCounterExecutionStageSummary++; if (buildCounterExecutionStageSummary < 3) { - checkUnnamed3033(o.componentSource); - checkUnnamed3034(o.componentTransform); + checkUnnamed3082(o.componentSource); + checkUnnamed3083(o.componentTransform); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3035(o.inputSource); + checkUnnamed3084(o.inputSource); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3036(o.outputSource); + checkUnnamed3085(o.outputSource); } buildCounterExecutionStageSummary--; } @@ -944,14 +944,14 @@ buildCounterFailedLocation--; } -buildUnnamed3037() { +buildUnnamed3086() { var o = new core.List<api.InstructionInput>(); o.add(buildInstructionInput()); o.add(buildInstructionInput()); return o; } -checkUnnamed3037(core.List<api.InstructionInput> o) { +checkUnnamed3086(core.List<api.InstructionInput> o) { unittest.expect(o, unittest.hasLength(2)); checkInstructionInput(o[0]); checkInstructionInput(o[1]); @@ -962,7 +962,7 @@ var o = new api.FlattenInstruction(); buildCounterFlattenInstruction++; if (buildCounterFlattenInstruction < 3) { - o.inputs = buildUnnamed3037(); + o.inputs = buildUnnamed3086(); } buildCounterFlattenInstruction--; return o; @@ -971,19 +971,19 @@ checkFlattenInstruction(api.FlattenInstruction o) { buildCounterFlattenInstruction++; if (buildCounterFlattenInstruction < 3) { - checkUnnamed3037(o.inputs); + checkUnnamed3086(o.inputs); } buildCounterFlattenInstruction--; } -buildUnnamed3038() { +buildUnnamed3087() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3038(core.List<core.double> o) { +checkUnnamed3087(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)); @@ -994,7 +994,7 @@ var o = new api.FloatingPointList(); buildCounterFloatingPointList++; if (buildCounterFloatingPointList < 3) { - o.elements = buildUnnamed3038(); + o.elements = buildUnnamed3087(); } buildCounterFloatingPointList--; return o; @@ -1003,7 +1003,7 @@ checkFloatingPointList(api.FloatingPointList o) { buildCounterFloatingPointList++; if (buildCounterFloatingPointList < 3) { - checkUnnamed3038(o.elements); + checkUnnamed3087(o.elements); } buildCounterFloatingPointList--; } @@ -1113,14 +1113,14 @@ buildCounterInstructionInput--; } -buildUnnamed3039() { +buildUnnamed3088() { 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; } -checkUnnamed3039(core.Map<core.String, core.Object> o) { +checkUnnamed3088(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted10 = (o["x"]) as core.Map; unittest.expect(casted10, unittest.hasLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["string"], unittest.equals('foo')); var casted11 = (o["y"]) as core.Map; unittest.expect(casted11, unittest.hasLength(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["string"], unittest.equals('foo')); @@ -1131,7 +1131,7 @@ var o = new api.InstructionOutput(); buildCounterInstructionOutput++; if (buildCounterInstructionOutput < 3) { - o.codec = buildUnnamed3039(); + o.codec = buildUnnamed3088(); o.name = "foo"; o.onlyCountKeyBytes = true; o.onlyCountValueBytes = true; @@ -1145,7 +1145,7 @@ checkInstructionOutput(api.InstructionOutput o) { buildCounterInstructionOutput++; if (buildCounterInstructionOutput < 3) { - checkUnnamed3039(o.codec); + checkUnnamed3088(o.codec); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.onlyCountKeyBytes, unittest.isTrue); unittest.expect(o.onlyCountValueBytes, unittest.isTrue); @@ -1155,14 +1155,14 @@ buildCounterInstructionOutput--; } -buildUnnamed3040() { +buildUnnamed3089() { var o = new core.List<api.SplitInt64>(); o.add(buildSplitInt64()); o.add(buildSplitInt64()); return o; } -checkUnnamed3040(core.List<api.SplitInt64> o) { +checkUnnamed3089(core.List<api.SplitInt64> o) { unittest.expect(o, unittest.hasLength(2)); checkSplitInt64(o[0]); checkSplitInt64(o[1]); @@ -1173,7 +1173,7 @@ var o = new api.IntegerList(); buildCounterIntegerList++; if (buildCounterIntegerList < 3) { - o.elements = buildUnnamed3040(); + o.elements = buildUnnamed3089(); } buildCounterIntegerList--; return o; @@ -1182,7 +1182,7 @@ checkIntegerList(api.IntegerList o) { buildCounterIntegerList++; if (buildCounterIntegerList < 3) { - checkUnnamed3040(o.elements); + checkUnnamed3089(o.elements); } buildCounterIntegerList--; } @@ -1208,66 +1208,66 @@ buildCounterIntegerMean--; } -buildUnnamed3041() { +buildUnnamed3090() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3041(core.Map<core.String, core.String> o) { +checkUnnamed3090(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3042() { +buildUnnamed3091() { var o = new core.List<api.ExecutionStageState>(); o.add(buildExecutionStageState()); o.add(buildExecutionStageState()); return o; } -checkUnnamed3042(core.List<api.ExecutionStageState> o) { +checkUnnamed3091(core.List<api.ExecutionStageState> o) { unittest.expect(o, unittest.hasLength(2)); checkExecutionStageState(o[0]); checkExecutionStageState(o[1]); } -buildUnnamed3043() { +buildUnnamed3092() { var o = new core.List<api.Step>(); o.add(buildStep()); o.add(buildStep()); return o; } -checkUnnamed3043(core.List<api.Step> o) { +checkUnnamed3092(core.List<api.Step> o) { unittest.expect(o, unittest.hasLength(2)); checkStep(o[0]); checkStep(o[1]); } -buildUnnamed3044() { +buildUnnamed3093() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3044(core.List<core.String> o) { +checkUnnamed3093(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3045() { +buildUnnamed3094() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3045(core.Map<core.String, core.String> o) { +checkUnnamed3094(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1285,7 +1285,7 @@ o.environment = buildEnvironment(); o.executionInfo = buildJobExecutionInfo(); o.id = "foo"; - o.labels = buildUnnamed3041(); + o.labels = buildUnnamed3090(); o.location = "foo"; o.name = "foo"; o.pipelineDescription = buildPipelineDescription(); @@ -1293,10 +1293,10 @@ o.replaceJobId = "foo"; o.replacedByJobId = "foo"; o.requestedState = "foo"; - o.stageStates = buildUnnamed3042(); - o.steps = buildUnnamed3043(); - o.tempFiles = buildUnnamed3044(); - o.transformNameMapping = buildUnnamed3045(); + o.stageStates = buildUnnamed3091(); + o.steps = buildUnnamed3092(); + o.tempFiles = buildUnnamed3093(); + o.transformNameMapping = buildUnnamed3094(); o.type = "foo"; } buildCounterJob--; @@ -1313,7 +1313,7 @@ checkEnvironment(o.environment); checkJobExecutionInfo(o.executionInfo); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3041(o.labels); + checkUnnamed3090(o.labels); unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkPipelineDescription(o.pipelineDescription); @@ -1321,23 +1321,23 @@ unittest.expect(o.replaceJobId, unittest.equals('foo')); unittest.expect(o.replacedByJobId, unittest.equals('foo')); unittest.expect(o.requestedState, unittest.equals('foo')); - checkUnnamed3042(o.stageStates); - checkUnnamed3043(o.steps); - checkUnnamed3044(o.tempFiles); - checkUnnamed3045(o.transformNameMapping); + checkUnnamed3091(o.stageStates); + checkUnnamed3092(o.steps); + checkUnnamed3093(o.tempFiles); + checkUnnamed3094(o.transformNameMapping); unittest.expect(o.type, unittest.equals('foo')); } buildCounterJob--; } -buildUnnamed3046() { +buildUnnamed3095() { var o = new core.Map<core.String, api.JobExecutionStageInfo>(); o["x"] = buildJobExecutionStageInfo(); o["y"] = buildJobExecutionStageInfo(); return o; } -checkUnnamed3046(core.Map<core.String, api.JobExecutionStageInfo> o) { +checkUnnamed3095(core.Map<core.String, api.JobExecutionStageInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkJobExecutionStageInfo(o["x"]); checkJobExecutionStageInfo(o["y"]); @@ -1348,7 +1348,7 @@ var o = new api.JobExecutionInfo(); buildCounterJobExecutionInfo++; if (buildCounterJobExecutionInfo < 3) { - o.stages = buildUnnamed3046(); + o.stages = buildUnnamed3095(); } buildCounterJobExecutionInfo--; return o; @@ -1357,19 +1357,19 @@ checkJobExecutionInfo(api.JobExecutionInfo o) { buildCounterJobExecutionInfo++; if (buildCounterJobExecutionInfo < 3) { - checkUnnamed3046(o.stages); + checkUnnamed3095(o.stages); } buildCounterJobExecutionInfo--; } -buildUnnamed3047() { +buildUnnamed3096() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3047(core.List<core.String> o) { +checkUnnamed3096(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1380,7 +1380,7 @@ var o = new api.JobExecutionStageInfo(); buildCounterJobExecutionStageInfo++; if (buildCounterJobExecutionStageInfo < 3) { - o.stepName = buildUnnamed3047(); + o.stepName = buildUnnamed3096(); } buildCounterJobExecutionStageInfo--; return o; @@ -1389,7 +1389,7 @@ checkJobExecutionStageInfo(api.JobExecutionStageInfo o) { buildCounterJobExecutionStageInfo++; if (buildCounterJobExecutionStageInfo < 3) { - checkUnnamed3047(o.stepName); + checkUnnamed3096(o.stepName); } buildCounterJobExecutionStageInfo--; } @@ -1419,14 +1419,14 @@ buildCounterJobMessage--; } -buildUnnamed3048() { +buildUnnamed3097() { var o = new core.List<api.MetricUpdate>(); o.add(buildMetricUpdate()); o.add(buildMetricUpdate()); return o; } -checkUnnamed3048(core.List<api.MetricUpdate> o) { +checkUnnamed3097(core.List<api.MetricUpdate> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricUpdate(o[0]); checkMetricUpdate(o[1]); @@ -1438,7 +1438,7 @@ buildCounterJobMetrics++; if (buildCounterJobMetrics < 3) { o.metricTime = "foo"; - o.metrics = buildUnnamed3048(); + o.metrics = buildUnnamed3097(); } buildCounterJobMetrics--; return o; @@ -1448,7 +1448,7 @@ buildCounterJobMetrics++; if (buildCounterJobMetrics < 3) { unittest.expect(o.metricTime, unittest.equals('foo')); - checkUnnamed3048(o.metrics); + checkUnnamed3097(o.metrics); } buildCounterJobMetrics--; } @@ -1503,14 +1503,14 @@ buildCounterKeyRangeLocation--; } -buildUnnamed3049() { +buildUnnamed3098() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3049(core.Map<core.String, core.String> o) { +checkUnnamed3098(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1523,7 +1523,7 @@ if (buildCounterLaunchTemplateParameters < 3) { o.environment = buildRuntimeEnvironment(); o.jobName = "foo"; - o.parameters = buildUnnamed3049(); + o.parameters = buildUnnamed3098(); } buildCounterLaunchTemplateParameters--; return o; @@ -1534,7 +1534,7 @@ if (buildCounterLaunchTemplateParameters < 3) { checkRuntimeEnvironment(o.environment); unittest.expect(o.jobName, unittest.equals('foo')); - checkUnnamed3049(o.parameters); + checkUnnamed3098(o.parameters); } buildCounterLaunchTemplateParameters--; } @@ -1558,27 +1558,27 @@ buildCounterLaunchTemplateResponse--; } -buildUnnamed3050() { +buildUnnamed3099() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3050(core.List<core.String> o) { +checkUnnamed3099(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3051() { +buildUnnamed3100() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3051(core.List<core.String> o) { +checkUnnamed3100(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1592,8 +1592,8 @@ o.currentWorkerTime = "foo"; o.location = "foo"; o.requestedLeaseDuration = "foo"; - o.workItemTypes = buildUnnamed3050(); - o.workerCapabilities = buildUnnamed3051(); + o.workItemTypes = buildUnnamed3099(); + o.workerCapabilities = buildUnnamed3100(); o.workerId = "foo"; } buildCounterLeaseWorkItemRequest--; @@ -1606,21 +1606,21 @@ unittest.expect(o.currentWorkerTime, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); - checkUnnamed3050(o.workItemTypes); - checkUnnamed3051(o.workerCapabilities); + checkUnnamed3099(o.workItemTypes); + checkUnnamed3100(o.workerCapabilities); unittest.expect(o.workerId, unittest.equals('foo')); } buildCounterLeaseWorkItemRequest--; } -buildUnnamed3052() { +buildUnnamed3101() { var o = new core.List<api.WorkItem>(); o.add(buildWorkItem()); o.add(buildWorkItem()); return o; } -checkUnnamed3052(core.List<api.WorkItem> o) { +checkUnnamed3101(core.List<api.WorkItem> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkItem(o[0]); checkWorkItem(o[1]); @@ -1631,7 +1631,7 @@ var o = new api.LeaseWorkItemResponse(); buildCounterLeaseWorkItemResponse++; if (buildCounterLeaseWorkItemResponse < 3) { - o.workItems = buildUnnamed3052(); + o.workItems = buildUnnamed3101(); } buildCounterLeaseWorkItemResponse--; return o; @@ -1640,32 +1640,32 @@ checkLeaseWorkItemResponse(api.LeaseWorkItemResponse o) { buildCounterLeaseWorkItemResponse++; if (buildCounterLeaseWorkItemResponse < 3) { - checkUnnamed3052(o.workItems); + checkUnnamed3101(o.workItems); } buildCounterLeaseWorkItemResponse--; } -buildUnnamed3053() { +buildUnnamed3102() { var o = new core.List<api.AutoscalingEvent>(); o.add(buildAutoscalingEvent()); o.add(buildAutoscalingEvent()); return o; } -checkUnnamed3053(core.List<api.AutoscalingEvent> o) { +checkUnnamed3102(core.List<api.AutoscalingEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalingEvent(o[0]); checkAutoscalingEvent(o[1]); } -buildUnnamed3054() { +buildUnnamed3103() { var o = new core.List<api.JobMessage>(); o.add(buildJobMessage()); o.add(buildJobMessage()); return o; } -checkUnnamed3054(core.List<api.JobMessage> o) { +checkUnnamed3103(core.List<api.JobMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkJobMessage(o[0]); checkJobMessage(o[1]); @@ -1676,8 +1676,8 @@ var o = new api.ListJobMessagesResponse(); buildCounterListJobMessagesResponse++; if (buildCounterListJobMessagesResponse < 3) { - o.autoscalingEvents = buildUnnamed3053(); - o.jobMessages = buildUnnamed3054(); + o.autoscalingEvents = buildUnnamed3102(); + o.jobMessages = buildUnnamed3103(); o.nextPageToken = "foo"; } buildCounterListJobMessagesResponse--; @@ -1687,34 +1687,34 @@ checkListJobMessagesResponse(api.ListJobMessagesResponse o) { buildCounterListJobMessagesResponse++; if (buildCounterListJobMessagesResponse < 3) { - checkUnnamed3053(o.autoscalingEvents); - checkUnnamed3054(o.jobMessages); + checkUnnamed3102(o.autoscalingEvents); + checkUnnamed3103(o.jobMessages); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobMessagesResponse--; } -buildUnnamed3055() { +buildUnnamed3104() { var o = new core.List<api.FailedLocation>(); o.add(buildFailedLocation()); o.add(buildFailedLocation()); return o; } -checkUnnamed3055(core.List<api.FailedLocation> o) { +checkUnnamed3104(core.List<api.FailedLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkFailedLocation(o[0]); checkFailedLocation(o[1]); } -buildUnnamed3056() { +buildUnnamed3105() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed3056(core.List<api.Job> o) { +checkUnnamed3105(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -1725,8 +1725,8 @@ var o = new api.ListJobsResponse(); buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - o.failedLocation = buildUnnamed3055(); - o.jobs = buildUnnamed3056(); + o.failedLocation = buildUnnamed3104(); + o.jobs = buildUnnamed3105(); o.nextPageToken = "foo"; } buildCounterListJobsResponse--; @@ -1736,8 +1736,8 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed3055(o.failedLocation); - checkUnnamed3056(o.jobs); + checkUnnamed3104(o.failedLocation); + checkUnnamed3105(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobsResponse--; @@ -1764,14 +1764,14 @@ buildCounterLogBucket--; } -buildUnnamed3057() { +buildUnnamed3106() { var o = new core.List<api.ParallelInstruction>(); o.add(buildParallelInstruction()); o.add(buildParallelInstruction()); return o; } -checkUnnamed3057(core.List<api.ParallelInstruction> o) { +checkUnnamed3106(core.List<api.ParallelInstruction> o) { unittest.expect(o, unittest.hasLength(2)); checkParallelInstruction(o[0]); checkParallelInstruction(o[1]); @@ -1782,7 +1782,7 @@ var o = new api.MapTask(); buildCounterMapTask++; if (buildCounterMapTask < 3) { - o.instructions = buildUnnamed3057(); + o.instructions = buildUnnamed3106(); o.stageName = "foo"; o.systemName = "foo"; } @@ -1793,7 +1793,7 @@ checkMapTask(api.MapTask o) { buildCounterMapTask++; if (buildCounterMapTask < 3) { - checkUnnamed3057(o.instructions); + checkUnnamed3106(o.instructions); unittest.expect(o.stageName, unittest.equals('foo')); unittest.expect(o.systemName, unittest.equals('foo')); } @@ -1821,14 +1821,14 @@ buildCounterMetricShortId--; } -buildUnnamed3058() { +buildUnnamed3107() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3058(core.Map<core.String, core.String> o) { +checkUnnamed3107(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1839,7 +1839,7 @@ var o = new api.MetricStructuredName(); buildCounterMetricStructuredName++; if (buildCounterMetricStructuredName < 3) { - o.context = buildUnnamed3058(); + o.context = buildUnnamed3107(); o.name = "foo"; o.origin = "foo"; } @@ -1850,7 +1850,7 @@ checkMetricStructuredName(api.MetricStructuredName o) { buildCounterMetricStructuredName++; if (buildCounterMetricStructuredName < 3) { - checkUnnamed3058(o.context); + checkUnnamed3107(o.context); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.origin, unittest.equals('foo')); } @@ -1974,40 +1974,40 @@ buildCounterPackage--; } -buildUnnamed3059() { +buildUnnamed3108() { var o = new core.List<api.MultiOutputInfo>(); o.add(buildMultiOutputInfo()); o.add(buildMultiOutputInfo()); return o; } -checkUnnamed3059(core.List<api.MultiOutputInfo> o) { +checkUnnamed3108(core.List<api.MultiOutputInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkMultiOutputInfo(o[0]); checkMultiOutputInfo(o[1]); } -buildUnnamed3060() { +buildUnnamed3109() { var o = new core.List<api.SideInputInfo>(); o.add(buildSideInputInfo()); o.add(buildSideInputInfo()); return o; } -checkUnnamed3060(core.List<api.SideInputInfo> o) { +checkUnnamed3109(core.List<api.SideInputInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSideInputInfo(o[0]); checkSideInputInfo(o[1]); } -buildUnnamed3061() { +buildUnnamed3110() { 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; } -checkUnnamed3061(core.Map<core.String, core.Object> o) { +checkUnnamed3110(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted18 = (o["x"]) 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["y"]) 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')); @@ -2019,10 +2019,10 @@ buildCounterParDoInstruction++; if (buildCounterParDoInstruction < 3) { o.input = buildInstructionInput(); - o.multiOutputInfos = buildUnnamed3059(); + o.multiOutputInfos = buildUnnamed3108(); o.numOutputs = 42; - o.sideInputs = buildUnnamed3060(); - o.userFn = buildUnnamed3061(); + o.sideInputs = buildUnnamed3109(); + o.userFn = buildUnnamed3110(); } buildCounterParDoInstruction--; return o; @@ -2032,22 +2032,22 @@ buildCounterParDoInstruction++; if (buildCounterParDoInstruction < 3) { checkInstructionInput(o.input); - checkUnnamed3059(o.multiOutputInfos); + checkUnnamed3108(o.multiOutputInfos); unittest.expect(o.numOutputs, unittest.equals(42)); - checkUnnamed3060(o.sideInputs); - checkUnnamed3061(o.userFn); + checkUnnamed3109(o.sideInputs); + checkUnnamed3110(o.userFn); } buildCounterParDoInstruction--; } -buildUnnamed3062() { +buildUnnamed3111() { var o = new core.List<api.InstructionOutput>(); o.add(buildInstructionOutput()); o.add(buildInstructionOutput()); return o; } -checkUnnamed3062(core.List<api.InstructionOutput> o) { +checkUnnamed3111(core.List<api.InstructionOutput> o) { unittest.expect(o, unittest.hasLength(2)); checkInstructionOutput(o[0]); checkInstructionOutput(o[1]); @@ -2061,7 +2061,7 @@ o.flatten = buildFlattenInstruction(); o.name = "foo"; o.originalName = "foo"; - o.outputs = buildUnnamed3062(); + o.outputs = buildUnnamed3111(); o.parDo = buildParDoInstruction(); o.partialGroupByKey = buildPartialGroupByKeyInstruction(); o.read = buildReadInstruction(); @@ -2078,7 +2078,7 @@ checkFlattenInstruction(o.flatten); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.originalName, unittest.equals('foo')); - checkUnnamed3062(o.outputs); + checkUnnamed3111(o.outputs); checkParDoInstruction(o.parDo); checkPartialGroupByKeyInstruction(o.partialGroupByKey); checkReadInstruction(o.read); @@ -2109,14 +2109,14 @@ buildCounterParameter--; } -buildUnnamed3063() { +buildUnnamed3112() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3063(core.List<core.String> o) { +checkUnnamed3112(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2131,7 +2131,7 @@ o.isOptional = true; o.label = "foo"; o.name = "foo"; - o.regexes = buildUnnamed3063(); + o.regexes = buildUnnamed3112(); } buildCounterParameterMetadata--; return o; @@ -2144,45 +2144,45 @@ unittest.expect(o.isOptional, unittest.isTrue); unittest.expect(o.label, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3063(o.regexes); + checkUnnamed3112(o.regexes); } buildCounterParameterMetadata--; } -buildUnnamed3064() { +buildUnnamed3113() { 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; } -checkUnnamed3064(core.Map<core.String, core.Object> o) { +checkUnnamed3113(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')); } -buildUnnamed3065() { +buildUnnamed3114() { var o = new core.List<api.SideInputInfo>(); o.add(buildSideInputInfo()); o.add(buildSideInputInfo()); return o; } -checkUnnamed3065(core.List<api.SideInputInfo> o) { +checkUnnamed3114(core.List<api.SideInputInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSideInputInfo(o[0]); checkSideInputInfo(o[1]); } -buildUnnamed3066() { +buildUnnamed3115() { 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; } -checkUnnamed3066(core.Map<core.String, core.Object> o) { +checkUnnamed3115(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted23 = (o["x"]) as core.Map; unittest.expect(casted23, unittest.hasLength(3)); unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); unittest.expect(casted23["bool"], unittest.equals(true)); unittest.expect(casted23["string"], unittest.equals('foo')); var casted24 = (o["y"]) as core.Map; unittest.expect(casted24, unittest.hasLength(3)); unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); unittest.expect(casted24["bool"], unittest.equals(true)); unittest.expect(casted24["string"], unittest.equals('foo')); @@ -2194,11 +2194,11 @@ buildCounterPartialGroupByKeyInstruction++; if (buildCounterPartialGroupByKeyInstruction < 3) { o.input = buildInstructionInput(); - o.inputElementCodec = buildUnnamed3064(); + o.inputElementCodec = buildUnnamed3113(); o.originalCombineValuesInputStoreName = "foo"; o.originalCombineValuesStepName = "foo"; - o.sideInputs = buildUnnamed3065(); - o.valueCombiningFn = buildUnnamed3066(); + o.sideInputs = buildUnnamed3114(); + o.valueCombiningFn = buildUnnamed3115(); } buildCounterPartialGroupByKeyInstruction--; return o; @@ -2208,49 +2208,49 @@ buildCounterPartialGroupByKeyInstruction++; if (buildCounterPartialGroupByKeyInstruction < 3) { checkInstructionInput(o.input); - checkUnnamed3064(o.inputElementCodec); + checkUnnamed3113(o.inputElementCodec); unittest.expect(o.originalCombineValuesInputStoreName, unittest.equals('foo')); unittest.expect(o.originalCombineValuesStepName, unittest.equals('foo')); - checkUnnamed3065(o.sideInputs); - checkUnnamed3066(o.valueCombiningFn); + checkUnnamed3114(o.sideInputs); + checkUnnamed3115(o.valueCombiningFn); } buildCounterPartialGroupByKeyInstruction--; } -buildUnnamed3067() { +buildUnnamed3116() { var o = new core.List<api.DisplayData>(); o.add(buildDisplayData()); o.add(buildDisplayData()); return o; } -checkUnnamed3067(core.List<api.DisplayData> o) { +checkUnnamed3116(core.List<api.DisplayData> o) { unittest.expect(o, unittest.hasLength(2)); checkDisplayData(o[0]); checkDisplayData(o[1]); } -buildUnnamed3068() { +buildUnnamed3117() { var o = new core.List<api.ExecutionStageSummary>(); o.add(buildExecutionStageSummary()); o.add(buildExecutionStageSummary()); return o; } -checkUnnamed3068(core.List<api.ExecutionStageSummary> o) { +checkUnnamed3117(core.List<api.ExecutionStageSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkExecutionStageSummary(o[0]); checkExecutionStageSummary(o[1]); } -buildUnnamed3069() { +buildUnnamed3118() { var o = new core.List<api.TransformSummary>(); o.add(buildTransformSummary()); o.add(buildTransformSummary()); return o; } -checkUnnamed3069(core.List<api.TransformSummary> o) { +checkUnnamed3118(core.List<api.TransformSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkTransformSummary(o[0]); checkTransformSummary(o[1]); @@ -2261,9 +2261,9 @@ var o = new api.PipelineDescription(); buildCounterPipelineDescription++; if (buildCounterPipelineDescription < 3) { - o.displayData = buildUnnamed3067(); - o.executionPipelineStage = buildUnnamed3068(); - o.originalPipelineTransform = buildUnnamed3069(); + o.displayData = buildUnnamed3116(); + o.executionPipelineStage = buildUnnamed3117(); + o.originalPipelineTransform = buildUnnamed3118(); } buildCounterPipelineDescription--; return o; @@ -2272,9 +2272,9 @@ checkPipelineDescription(api.PipelineDescription o) { buildCounterPipelineDescription++; if (buildCounterPipelineDescription < 3) { - checkUnnamed3067(o.displayData); - checkUnnamed3068(o.executionPipelineStage); - checkUnnamed3069(o.originalPipelineTransform); + checkUnnamed3116(o.displayData); + checkUnnamed3117(o.executionPipelineStage); + checkUnnamed3118(o.originalPipelineTransform); } buildCounterPipelineDescription--; } @@ -2358,14 +2358,14 @@ buildCounterReadInstruction--; } -buildUnnamed3070() { +buildUnnamed3119() { var o = new core.List<api.WorkItemStatus>(); o.add(buildWorkItemStatus()); o.add(buildWorkItemStatus()); return o; } -checkUnnamed3070(core.List<api.WorkItemStatus> o) { +checkUnnamed3119(core.List<api.WorkItemStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkItemStatus(o[0]); checkWorkItemStatus(o[1]); @@ -2378,7 +2378,7 @@ if (buildCounterReportWorkItemStatusRequest < 3) { o.currentWorkerTime = "foo"; o.location = "foo"; - o.workItemStatuses = buildUnnamed3070(); + o.workItemStatuses = buildUnnamed3119(); o.workerId = "foo"; } buildCounterReportWorkItemStatusRequest--; @@ -2390,20 +2390,20 @@ if (buildCounterReportWorkItemStatusRequest < 3) { unittest.expect(o.currentWorkerTime, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); - checkUnnamed3070(o.workItemStatuses); + checkUnnamed3119(o.workItemStatuses); unittest.expect(o.workerId, unittest.equals('foo')); } buildCounterReportWorkItemStatusRequest--; } -buildUnnamed3071() { +buildUnnamed3120() { var o = new core.List<api.WorkItemServiceState>(); o.add(buildWorkItemServiceState()); o.add(buildWorkItemServiceState()); return o; } -checkUnnamed3071(core.List<api.WorkItemServiceState> o) { +checkUnnamed3120(core.List<api.WorkItemServiceState> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkItemServiceState(o[0]); checkWorkItemServiceState(o[1]); @@ -2414,7 +2414,7 @@ var o = new api.ReportWorkItemStatusResponse(); buildCounterReportWorkItemStatusResponse++; if (buildCounterReportWorkItemStatusResponse < 3) { - o.workItemServiceStates = buildUnnamed3071(); + o.workItemServiceStates = buildUnnamed3120(); } buildCounterReportWorkItemStatusResponse--; return o; @@ -2423,7 +2423,7 @@ checkReportWorkItemStatusResponse(api.ReportWorkItemStatusResponse o) { buildCounterReportWorkItemStatusResponse++; if (buildCounterReportWorkItemStatusResponse < 3) { - checkUnnamed3071(o.workItemServiceStates); + checkUnnamed3120(o.workItemServiceStates); } buildCounterReportWorkItemStatusResponse--; } @@ -2449,14 +2449,14 @@ buildCounterReportedParallelism--; } -buildUnnamed3072() { +buildUnnamed3121() { var o = new core.List<api.CPUTime>(); o.add(buildCPUTime()); o.add(buildCPUTime()); return o; } -checkUnnamed3072(core.List<api.CPUTime> o) { +checkUnnamed3121(core.List<api.CPUTime> o) { unittest.expect(o, unittest.hasLength(2)); checkCPUTime(o[0]); checkCPUTime(o[1]); @@ -2467,7 +2467,7 @@ var o = new api.ResourceUtilizationReport(); buildCounterResourceUtilizationReport++; if (buildCounterResourceUtilizationReport < 3) { - o.cpuTime = buildUnnamed3072(); + o.cpuTime = buildUnnamed3121(); } buildCounterResourceUtilizationReport--; return o; @@ -2476,7 +2476,7 @@ checkResourceUtilizationReport(api.ResourceUtilizationReport o) { buildCounterResourceUtilizationReport++; if (buildCounterResourceUtilizationReport < 3) { - checkUnnamed3072(o.cpuTime); + checkUnnamed3121(o.cpuTime); } buildCounterResourceUtilizationReport--; } @@ -2569,14 +2569,14 @@ buildCounterSendDebugCaptureResponse--; } -buildUnnamed3073() { +buildUnnamed3122() { var o = new core.List<api.WorkerMessage>(); o.add(buildWorkerMessage()); o.add(buildWorkerMessage()); return o; } -checkUnnamed3073(core.List<api.WorkerMessage> o) { +checkUnnamed3122(core.List<api.WorkerMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkerMessage(o[0]); checkWorkerMessage(o[1]); @@ -2588,7 +2588,7 @@ buildCounterSendWorkerMessagesRequest++; if (buildCounterSendWorkerMessagesRequest < 3) { o.location = "foo"; - o.workerMessages = buildUnnamed3073(); + o.workerMessages = buildUnnamed3122(); } buildCounterSendWorkerMessagesRequest--; return o; @@ -2598,19 +2598,19 @@ buildCounterSendWorkerMessagesRequest++; if (buildCounterSendWorkerMessagesRequest < 3) { unittest.expect(o.location, unittest.equals('foo')); - checkUnnamed3073(o.workerMessages); + checkUnnamed3122(o.workerMessages); } buildCounterSendWorkerMessagesRequest--; } -buildUnnamed3074() { +buildUnnamed3123() { var o = new core.List<api.WorkerMessageResponse>(); o.add(buildWorkerMessageResponse()); o.add(buildWorkerMessageResponse()); return o; } -checkUnnamed3074(core.List<api.WorkerMessageResponse> o) { +checkUnnamed3123(core.List<api.WorkerMessageResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkerMessageResponse(o[0]); checkWorkerMessageResponse(o[1]); @@ -2621,7 +2621,7 @@ var o = new api.SendWorkerMessagesResponse(); buildCounterSendWorkerMessagesResponse++; if (buildCounterSendWorkerMessagesResponse < 3) { - o.workerMessageResponses = buildUnnamed3074(); + o.workerMessageResponses = buildUnnamed3123(); } buildCounterSendWorkerMessagesResponse--; return o; @@ -2630,45 +2630,45 @@ checkSendWorkerMessagesResponse(api.SendWorkerMessagesResponse o) { buildCounterSendWorkerMessagesResponse++; if (buildCounterSendWorkerMessagesResponse < 3) { - checkUnnamed3074(o.workerMessageResponses); + checkUnnamed3123(o.workerMessageResponses); } buildCounterSendWorkerMessagesResponse--; } -buildUnnamed3075() { +buildUnnamed3124() { var o = new core.List<api.SideInputInfo>(); o.add(buildSideInputInfo()); o.add(buildSideInputInfo()); return o; } -checkUnnamed3075(core.List<api.SideInputInfo> o) { +checkUnnamed3124(core.List<api.SideInputInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSideInputInfo(o[0]); checkSideInputInfo(o[1]); } -buildUnnamed3076() { +buildUnnamed3125() { var o = new core.List<api.SeqMapTaskOutputInfo>(); o.add(buildSeqMapTaskOutputInfo()); o.add(buildSeqMapTaskOutputInfo()); return o; } -checkUnnamed3076(core.List<api.SeqMapTaskOutputInfo> o) { +checkUnnamed3125(core.List<api.SeqMapTaskOutputInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSeqMapTaskOutputInfo(o[0]); checkSeqMapTaskOutputInfo(o[1]); } -buildUnnamed3077() { +buildUnnamed3126() { 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; } -checkUnnamed3077(core.Map<core.String, core.Object> o) { +checkUnnamed3126(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted25 = (o["x"]) as core.Map; unittest.expect(casted25, unittest.hasLength(3)); unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); unittest.expect(casted25["bool"], unittest.equals(true)); unittest.expect(casted25["string"], unittest.equals('foo')); var casted26 = (o["y"]) as core.Map; unittest.expect(casted26, unittest.hasLength(3)); unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); unittest.expect(casted26["bool"], unittest.equals(true)); unittest.expect(casted26["string"], unittest.equals('foo')); @@ -2679,12 +2679,12 @@ var o = new api.SeqMapTask(); buildCounterSeqMapTask++; if (buildCounterSeqMapTask < 3) { - o.inputs = buildUnnamed3075(); + o.inputs = buildUnnamed3124(); o.name = "foo"; - o.outputInfos = buildUnnamed3076(); + o.outputInfos = buildUnnamed3125(); o.stageName = "foo"; o.systemName = "foo"; - o.userFn = buildUnnamed3077(); + o.userFn = buildUnnamed3126(); } buildCounterSeqMapTask--; return o; @@ -2693,12 +2693,12 @@ checkSeqMapTask(api.SeqMapTask o) { buildCounterSeqMapTask++; if (buildCounterSeqMapTask < 3) { - checkUnnamed3075(o.inputs); + checkUnnamed3124(o.inputs); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3076(o.outputInfos); + checkUnnamed3125(o.outputInfos); unittest.expect(o.stageName, unittest.equals('foo')); unittest.expect(o.systemName, unittest.equals('foo')); - checkUnnamed3077(o.userFn); + checkUnnamed3126(o.userFn); } buildCounterSeqMapTask--; } @@ -2745,27 +2745,27 @@ buildCounterShellTask--; } -buildUnnamed3078() { +buildUnnamed3127() { 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; } -checkUnnamed3078(core.Map<core.String, core.Object> o) { +checkUnnamed3127(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted27 = (o["x"]) as core.Map; unittest.expect(casted27, unittest.hasLength(3)); unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); unittest.expect(casted27["bool"], unittest.equals(true)); unittest.expect(casted27["string"], unittest.equals('foo')); var casted28 = (o["y"]) as core.Map; unittest.expect(casted28, unittest.hasLength(3)); unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); unittest.expect(casted28["bool"], unittest.equals(true)); unittest.expect(casted28["string"], unittest.equals('foo')); } -buildUnnamed3079() { +buildUnnamed3128() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed3079(core.List<api.Source> o) { +checkUnnamed3128(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -2776,8 +2776,8 @@ var o = new api.SideInputInfo(); buildCounterSideInputInfo++; if (buildCounterSideInputInfo < 3) { - o.kind = buildUnnamed3078(); - o.sources = buildUnnamed3079(); + o.kind = buildUnnamed3127(); + o.sources = buildUnnamed3128(); o.tag = "foo"; } buildCounterSideInputInfo--; @@ -2787,34 +2787,34 @@ checkSideInputInfo(api.SideInputInfo o) { buildCounterSideInputInfo++; if (buildCounterSideInputInfo < 3) { - checkUnnamed3078(o.kind); - checkUnnamed3079(o.sources); + checkUnnamed3127(o.kind); + checkUnnamed3128(o.sources); unittest.expect(o.tag, unittest.equals('foo')); } buildCounterSideInputInfo--; } -buildUnnamed3080() { +buildUnnamed3129() { 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; } -checkUnnamed3080(core.Map<core.String, core.Object> o) { +checkUnnamed3129(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted29 = (o["x"]) as core.Map; unittest.expect(casted29, unittest.hasLength(3)); unittest.expect(casted29["list"], unittest.equals([1, 2, 3])); unittest.expect(casted29["bool"], unittest.equals(true)); unittest.expect(casted29["string"], unittest.equals('foo')); var casted30 = (o["y"]) as core.Map; unittest.expect(casted30, unittest.hasLength(3)); unittest.expect(casted30["list"], unittest.equals([1, 2, 3])); unittest.expect(casted30["bool"], unittest.equals(true)); unittest.expect(casted30["string"], unittest.equals('foo')); } -buildUnnamed3081() { +buildUnnamed3130() { 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; } -checkUnnamed3081(core.Map<core.String, core.Object> o) { +checkUnnamed3130(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted31 = (o["x"]) as core.Map; unittest.expect(casted31, unittest.hasLength(3)); unittest.expect(casted31["list"], unittest.equals([1, 2, 3])); unittest.expect(casted31["bool"], unittest.equals(true)); unittest.expect(casted31["string"], unittest.equals('foo')); var casted32 = (o["y"]) as core.Map; unittest.expect(casted32, unittest.hasLength(3)); unittest.expect(casted32["list"], unittest.equals([1, 2, 3])); unittest.expect(casted32["bool"], unittest.equals(true)); unittest.expect(casted32["string"], unittest.equals('foo')); @@ -2825,8 +2825,8 @@ var o = new api.Sink(); buildCounterSink++; if (buildCounterSink < 3) { - o.codec = buildUnnamed3080(); - o.spec = buildUnnamed3081(); + o.codec = buildUnnamed3129(); + o.spec = buildUnnamed3130(); } buildCounterSink--; return o; @@ -2835,59 +2835,59 @@ checkSink(api.Sink o) { buildCounterSink++; if (buildCounterSink < 3) { - checkUnnamed3080(o.codec); - checkUnnamed3081(o.spec); + checkUnnamed3129(o.codec); + checkUnnamed3130(o.spec); } buildCounterSink--; } -buildUnnamed3082() { +buildUnnamed3131() { 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; } -checkUnnamed3082(core.Map<core.String, core.Object> o) { +checkUnnamed3131(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted33 = (o["x"]) as core.Map; unittest.expect(casted33, unittest.hasLength(3)); unittest.expect(casted33["list"], unittest.equals([1, 2, 3])); unittest.expect(casted33["bool"], unittest.equals(true)); unittest.expect(casted33["string"], unittest.equals('foo')); var casted34 = (o["y"]) as core.Map; unittest.expect(casted34, unittest.hasLength(3)); unittest.expect(casted34["list"], unittest.equals([1, 2, 3])); unittest.expect(casted34["bool"], unittest.equals(true)); unittest.expect(casted34["string"], unittest.equals('foo')); } -buildUnnamed3083() { +buildUnnamed3132() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3082()); - o.add(buildUnnamed3082()); + o.add(buildUnnamed3131()); + o.add(buildUnnamed3131()); return o; } -checkUnnamed3083(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3132(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3082(o[0]); - checkUnnamed3082(o[1]); + checkUnnamed3131(o[0]); + checkUnnamed3131(o[1]); } -buildUnnamed3084() { +buildUnnamed3133() { 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; } -checkUnnamed3084(core.Map<core.String, core.Object> o) { +checkUnnamed3133(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted35 = (o["x"]) as core.Map; unittest.expect(casted35, unittest.hasLength(3)); unittest.expect(casted35["list"], unittest.equals([1, 2, 3])); unittest.expect(casted35["bool"], unittest.equals(true)); unittest.expect(casted35["string"], unittest.equals('foo')); var casted36 = (o["y"]) as core.Map; unittest.expect(casted36, unittest.hasLength(3)); unittest.expect(casted36["list"], unittest.equals([1, 2, 3])); unittest.expect(casted36["bool"], unittest.equals(true)); unittest.expect(casted36["string"], unittest.equals('foo')); } -buildUnnamed3085() { +buildUnnamed3134() { 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; } -checkUnnamed3085(core.Map<core.String, core.Object> o) { +checkUnnamed3134(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted37 = (o["x"]) as core.Map; unittest.expect(casted37, unittest.hasLength(3)); unittest.expect(casted37["list"], unittest.equals([1, 2, 3])); unittest.expect(casted37["bool"], unittest.equals(true)); unittest.expect(casted37["string"], unittest.equals('foo')); var casted38 = (o["y"]) as core.Map; unittest.expect(casted38, unittest.hasLength(3)); unittest.expect(casted38["list"], unittest.equals([1, 2, 3])); unittest.expect(casted38["bool"], unittest.equals(true)); unittest.expect(casted38["string"], unittest.equals('foo')); @@ -2898,11 +2898,11 @@ var o = new api.Source(); buildCounterSource++; if (buildCounterSource < 3) { - o.baseSpecs = buildUnnamed3083(); - o.codec = buildUnnamed3084(); + o.baseSpecs = buildUnnamed3132(); + o.codec = buildUnnamed3133(); o.doesNotNeedSplitting = true; o.metadata = buildSourceMetadata(); - o.spec = buildUnnamed3085(); + o.spec = buildUnnamed3134(); } buildCounterSource--; return o; @@ -2911,11 +2911,11 @@ checkSource(api.Source o) { buildCounterSource++; if (buildCounterSource < 3) { - checkUnnamed3083(o.baseSpecs); - checkUnnamed3084(o.codec); + checkUnnamed3132(o.baseSpecs); + checkUnnamed3133(o.codec); unittest.expect(o.doesNotNeedSplitting, unittest.isTrue); checkSourceMetadata(o.metadata); - checkUnnamed3085(o.spec); + checkUnnamed3134(o.spec); } buildCounterSource--; } @@ -3090,27 +3090,27 @@ buildCounterSourceSplitRequest--; } -buildUnnamed3086() { +buildUnnamed3135() { var o = new core.List<api.DerivedSource>(); o.add(buildDerivedSource()); o.add(buildDerivedSource()); return o; } -checkUnnamed3086(core.List<api.DerivedSource> o) { +checkUnnamed3135(core.List<api.DerivedSource> o) { unittest.expect(o, unittest.hasLength(2)); checkDerivedSource(o[0]); checkDerivedSource(o[1]); } -buildUnnamed3087() { +buildUnnamed3136() { var o = new core.List<api.SourceSplitShard>(); o.add(buildSourceSplitShard()); o.add(buildSourceSplitShard()); return o; } -checkUnnamed3087(core.List<api.SourceSplitShard> o) { +checkUnnamed3136(core.List<api.SourceSplitShard> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceSplitShard(o[0]); checkSourceSplitShard(o[1]); @@ -3121,9 +3121,9 @@ var o = new api.SourceSplitResponse(); buildCounterSourceSplitResponse++; if (buildCounterSourceSplitResponse < 3) { - o.bundles = buildUnnamed3086(); + o.bundles = buildUnnamed3135(); o.outcome = "foo"; - o.shards = buildUnnamed3087(); + o.shards = buildUnnamed3136(); } buildCounterSourceSplitResponse--; return o; @@ -3132,9 +3132,9 @@ checkSourceSplitResponse(api.SourceSplitResponse o) { buildCounterSourceSplitResponse++; if (buildCounterSourceSplitResponse < 3) { - checkUnnamed3086(o.bundles); + checkUnnamed3135(o.bundles); unittest.expect(o.outcome, unittest.equals('foo')); - checkUnnamed3087(o.shards); + checkUnnamed3136(o.shards); } buildCounterSourceSplitResponse--; } @@ -3227,30 +3227,30 @@ buildCounterStateFamilyConfig--; } -buildUnnamed3088() { +buildUnnamed3137() { 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; } -checkUnnamed3088(core.Map<core.String, core.Object> o) { +checkUnnamed3137(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted39 = (o["x"]) as core.Map; unittest.expect(casted39, unittest.hasLength(3)); unittest.expect(casted39["list"], unittest.equals([1, 2, 3])); unittest.expect(casted39["bool"], unittest.equals(true)); unittest.expect(casted39["string"], unittest.equals('foo')); var casted40 = (o["y"]) as core.Map; unittest.expect(casted40, unittest.hasLength(3)); unittest.expect(casted40["list"], unittest.equals([1, 2, 3])); unittest.expect(casted40["bool"], unittest.equals(true)); unittest.expect(casted40["string"], unittest.equals('foo')); } -buildUnnamed3089() { +buildUnnamed3138() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3088()); - o.add(buildUnnamed3088()); + o.add(buildUnnamed3137()); + o.add(buildUnnamed3137()); return o; } -checkUnnamed3089(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3138(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3088(o[0]); - checkUnnamed3088(o[1]); + checkUnnamed3137(o[0]); + checkUnnamed3137(o[1]); } core.int buildCounterStatus = 0; @@ -3259,7 +3259,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3089(); + o.details = buildUnnamed3138(); o.message = "foo"; } buildCounterStatus--; @@ -3270,20 +3270,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3089(o.details); + checkUnnamed3138(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3090() { +buildUnnamed3139() { 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; } -checkUnnamed3090(core.Map<core.String, core.Object> o) { +checkUnnamed3139(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted41 = (o["x"]) as core.Map; unittest.expect(casted41, unittest.hasLength(3)); unittest.expect(casted41["list"], unittest.equals([1, 2, 3])); unittest.expect(casted41["bool"], unittest.equals(true)); unittest.expect(casted41["string"], unittest.equals('foo')); var casted42 = (o["y"]) as core.Map; unittest.expect(casted42, unittest.hasLength(3)); unittest.expect(casted42["list"], unittest.equals([1, 2, 3])); unittest.expect(casted42["bool"], unittest.equals(true)); unittest.expect(casted42["string"], unittest.equals('foo')); @@ -3296,7 +3296,7 @@ if (buildCounterStep < 3) { o.kind = "foo"; o.name = "foo"; - o.properties = buildUnnamed3090(); + o.properties = buildUnnamed3139(); } buildCounterStep--; return o; @@ -3307,7 +3307,7 @@ if (buildCounterStep < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3090(o.properties); + checkUnnamed3139(o.properties); } buildCounterStep--; } @@ -3337,14 +3337,14 @@ buildCounterStreamLocation--; } -buildUnnamed3091() { +buildUnnamed3140() { var o = new core.List<api.ParallelInstruction>(); o.add(buildParallelInstruction()); o.add(buildParallelInstruction()); return o; } -checkUnnamed3091(core.List<api.ParallelInstruction> o) { +checkUnnamed3140(core.List<api.ParallelInstruction> o) { unittest.expect(o, unittest.hasLength(2)); checkParallelInstruction(o[0]); checkParallelInstruction(o[1]); @@ -3356,7 +3356,7 @@ buildCounterStreamingComputationConfig++; if (buildCounterStreamingComputationConfig < 3) { o.computationId = "foo"; - o.instructions = buildUnnamed3091(); + o.instructions = buildUnnamed3140(); o.stageName = "foo"; o.systemName = "foo"; } @@ -3368,21 +3368,21 @@ buildCounterStreamingComputationConfig++; if (buildCounterStreamingComputationConfig < 3) { unittest.expect(o.computationId, unittest.equals('foo')); - checkUnnamed3091(o.instructions); + checkUnnamed3140(o.instructions); unittest.expect(o.stageName, unittest.equals('foo')); unittest.expect(o.systemName, unittest.equals('foo')); } buildCounterStreamingComputationConfig--; } -buildUnnamed3092() { +buildUnnamed3141() { var o = new core.List<api.KeyRangeDataDiskAssignment>(); o.add(buildKeyRangeDataDiskAssignment()); o.add(buildKeyRangeDataDiskAssignment()); return o; } -checkUnnamed3092(core.List<api.KeyRangeDataDiskAssignment> o) { +checkUnnamed3141(core.List<api.KeyRangeDataDiskAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkKeyRangeDataDiskAssignment(o[0]); checkKeyRangeDataDiskAssignment(o[1]); @@ -3394,7 +3394,7 @@ buildCounterStreamingComputationRanges++; if (buildCounterStreamingComputationRanges < 3) { o.computationId = "foo"; - o.rangeAssignments = buildUnnamed3092(); + o.rangeAssignments = buildUnnamed3141(); } buildCounterStreamingComputationRanges--; return o; @@ -3404,32 +3404,32 @@ buildCounterStreamingComputationRanges++; if (buildCounterStreamingComputationRanges < 3) { unittest.expect(o.computationId, unittest.equals('foo')); - checkUnnamed3092(o.rangeAssignments); + checkUnnamed3141(o.rangeAssignments); } buildCounterStreamingComputationRanges--; } -buildUnnamed3093() { +buildUnnamed3142() { var o = new core.List<api.StreamingComputationRanges>(); o.add(buildStreamingComputationRanges()); o.add(buildStreamingComputationRanges()); return o; } -checkUnnamed3093(core.List<api.StreamingComputationRanges> o) { +checkUnnamed3142(core.List<api.StreamingComputationRanges> o) { unittest.expect(o, unittest.hasLength(2)); checkStreamingComputationRanges(o[0]); checkStreamingComputationRanges(o[1]); } -buildUnnamed3094() { +buildUnnamed3143() { var o = new core.List<api.MountedDataDisk>(); o.add(buildMountedDataDisk()); o.add(buildMountedDataDisk()); return o; } -checkUnnamed3094(core.List<api.MountedDataDisk> o) { +checkUnnamed3143(core.List<api.MountedDataDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkMountedDataDisk(o[0]); checkMountedDataDisk(o[1]); @@ -3440,8 +3440,8 @@ var o = new api.StreamingComputationTask(); buildCounterStreamingComputationTask++; if (buildCounterStreamingComputationTask < 3) { - o.computationRanges = buildUnnamed3093(); - o.dataDisks = buildUnnamed3094(); + o.computationRanges = buildUnnamed3142(); + o.dataDisks = buildUnnamed3143(); o.taskType = "foo"; } buildCounterStreamingComputationTask--; @@ -3451,34 +3451,34 @@ checkStreamingComputationTask(api.StreamingComputationTask o) { buildCounterStreamingComputationTask++; if (buildCounterStreamingComputationTask < 3) { - checkUnnamed3093(o.computationRanges); - checkUnnamed3094(o.dataDisks); + checkUnnamed3142(o.computationRanges); + checkUnnamed3143(o.dataDisks); unittest.expect(o.taskType, unittest.equals('foo')); } buildCounterStreamingComputationTask--; } -buildUnnamed3095() { +buildUnnamed3144() { var o = new core.List<api.StreamingComputationConfig>(); o.add(buildStreamingComputationConfig()); o.add(buildStreamingComputationConfig()); return o; } -checkUnnamed3095(core.List<api.StreamingComputationConfig> o) { +checkUnnamed3144(core.List<api.StreamingComputationConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkStreamingComputationConfig(o[0]); checkStreamingComputationConfig(o[1]); } -buildUnnamed3096() { +buildUnnamed3145() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3096(core.Map<core.String, core.String> o) { +checkUnnamed3145(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -3489,8 +3489,8 @@ var o = new api.StreamingConfigTask(); buildCounterStreamingConfigTask++; if (buildCounterStreamingConfigTask < 3) { - o.streamingComputationConfigs = buildUnnamed3095(); - o.userStepToStateFamilyNameMap = buildUnnamed3096(); + o.streamingComputationConfigs = buildUnnamed3144(); + o.userStepToStateFamilyNameMap = buildUnnamed3145(); o.windmillServiceEndpoint = "foo"; o.windmillServicePort = "foo"; } @@ -3501,8 +3501,8 @@ checkStreamingConfigTask(api.StreamingConfigTask o) { buildCounterStreamingConfigTask++; if (buildCounterStreamingConfigTask < 3) { - checkUnnamed3095(o.streamingComputationConfigs); - checkUnnamed3096(o.userStepToStateFamilyNameMap); + checkUnnamed3144(o.streamingComputationConfigs); + checkUnnamed3145(o.userStepToStateFamilyNameMap); unittest.expect(o.windmillServiceEndpoint, unittest.equals('foo')); unittest.expect(o.windmillServicePort, unittest.equals('foo')); } @@ -3574,14 +3574,14 @@ buildCounterStreamingStageLocation--; } -buildUnnamed3097() { +buildUnnamed3146() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3097(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')); @@ -3592,7 +3592,7 @@ var o = new api.StringList(); buildCounterStringList++; if (buildCounterStringList < 3) { - o.elements = buildUnnamed3097(); + o.elements = buildUnnamed3146(); } buildCounterStringList--; return o; @@ -3601,19 +3601,19 @@ checkStringList(api.StringList o) { buildCounterStringList++; if (buildCounterStringList < 3) { - checkUnnamed3097(o.elements); + checkUnnamed3146(o.elements); } buildCounterStringList--; } -buildUnnamed3098() { +buildUnnamed3147() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed3098(core.List<api.Parameter> o) { +checkUnnamed3147(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -3626,7 +3626,7 @@ if (buildCounterStructuredMessage < 3) { o.messageKey = "foo"; o.messageText = "foo"; - o.parameters = buildUnnamed3098(); + o.parameters = buildUnnamed3147(); } buildCounterStructuredMessage--; return o; @@ -3637,19 +3637,19 @@ if (buildCounterStructuredMessage < 3) { unittest.expect(o.messageKey, unittest.equals('foo')); unittest.expect(o.messageText, unittest.equals('foo')); - checkUnnamed3098(o.parameters); + checkUnnamed3147(o.parameters); } buildCounterStructuredMessage--; } -buildUnnamed3099() { +buildUnnamed3148() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3099(core.List<core.String> o) { +checkUnnamed3148(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3671,7 +3671,7 @@ o.logDir = "foo"; o.logToSerialconsole = true; o.logUploadLocation = "foo"; - o.oauthScopes = buildUnnamed3099(); + o.oauthScopes = buildUnnamed3148(); o.parallelWorkerSettings = buildWorkerSettings(); o.streamingWorkerMainClass = "foo"; o.taskGroup = "foo"; @@ -3698,7 +3698,7 @@ unittest.expect(o.logDir, unittest.equals('foo')); unittest.expect(o.logToSerialconsole, unittest.isTrue); unittest.expect(o.logUploadLocation, unittest.equals('foo')); - checkUnnamed3099(o.oauthScopes); + checkUnnamed3148(o.oauthScopes); checkWorkerSettings(o.parallelWorkerSettings); unittest.expect(o.streamingWorkerMainClass, unittest.equals('foo')); unittest.expect(o.taskGroup, unittest.equals('foo')); @@ -3710,14 +3710,14 @@ buildCounterTaskRunnerSettings--; } -buildUnnamed3100() { +buildUnnamed3149() { var o = new core.List<api.ParameterMetadata>(); o.add(buildParameterMetadata()); o.add(buildParameterMetadata()); return o; } -checkUnnamed3100(core.List<api.ParameterMetadata> o) { +checkUnnamed3149(core.List<api.ParameterMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkParameterMetadata(o[0]); checkParameterMetadata(o[1]); @@ -3730,7 +3730,7 @@ if (buildCounterTemplateMetadata < 3) { o.description = "foo"; o.name = "foo"; - o.parameters = buildUnnamed3100(); + o.parameters = buildUnnamed3149(); } buildCounterTemplateMetadata--; return o; @@ -3741,45 +3741,45 @@ if (buildCounterTemplateMetadata < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3100(o.parameters); + checkUnnamed3149(o.parameters); } buildCounterTemplateMetadata--; } -buildUnnamed3101() { +buildUnnamed3150() { var o = new core.List<api.ComputationTopology>(); o.add(buildComputationTopology()); o.add(buildComputationTopology()); return o; } -checkUnnamed3101(core.List<api.ComputationTopology> o) { +checkUnnamed3150(core.List<api.ComputationTopology> o) { unittest.expect(o, unittest.hasLength(2)); checkComputationTopology(o[0]); checkComputationTopology(o[1]); } -buildUnnamed3102() { +buildUnnamed3151() { var o = new core.List<api.DataDiskAssignment>(); o.add(buildDataDiskAssignment()); o.add(buildDataDiskAssignment()); return o; } -checkUnnamed3102(core.List<api.DataDiskAssignment> o) { +checkUnnamed3151(core.List<api.DataDiskAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkDataDiskAssignment(o[0]); checkDataDiskAssignment(o[1]); } -buildUnnamed3103() { +buildUnnamed3152() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3103(core.Map<core.String, core.String> o) { +checkUnnamed3152(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -3790,11 +3790,11 @@ var o = new api.TopologyConfig(); buildCounterTopologyConfig++; if (buildCounterTopologyConfig < 3) { - o.computations = buildUnnamed3101(); - o.dataDiskAssignments = buildUnnamed3102(); + o.computations = buildUnnamed3150(); + o.dataDiskAssignments = buildUnnamed3151(); o.forwardingKeyBits = 42; o.persistentStateVersion = 42; - o.userStageToComputationNameMap = buildUnnamed3103(); + o.userStageToComputationNameMap = buildUnnamed3152(); } buildCounterTopologyConfig--; return o; @@ -3803,49 +3803,49 @@ checkTopologyConfig(api.TopologyConfig o) { buildCounterTopologyConfig++; if (buildCounterTopologyConfig < 3) { - checkUnnamed3101(o.computations); - checkUnnamed3102(o.dataDiskAssignments); + checkUnnamed3150(o.computations); + checkUnnamed3151(o.dataDiskAssignments); unittest.expect(o.forwardingKeyBits, unittest.equals(42)); unittest.expect(o.persistentStateVersion, unittest.equals(42)); - checkUnnamed3103(o.userStageToComputationNameMap); + checkUnnamed3152(o.userStageToComputationNameMap); } buildCounterTopologyConfig--; } -buildUnnamed3104() { +buildUnnamed3153() { var o = new core.List<api.DisplayData>(); o.add(buildDisplayData()); o.add(buildDisplayData()); return o; } -checkUnnamed3104(core.List<api.DisplayData> o) { +checkUnnamed3153(core.List<api.DisplayData> o) { unittest.expect(o, unittest.hasLength(2)); checkDisplayData(o[0]); checkDisplayData(o[1]); } -buildUnnamed3105() { +buildUnnamed3154() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3105(core.List<core.String> o) { +checkUnnamed3154(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3106() { +buildUnnamed3155() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3106(core.List<core.String> o) { +checkUnnamed3155(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3856,12 +3856,12 @@ var o = new api.TransformSummary(); buildCounterTransformSummary++; if (buildCounterTransformSummary < 3) { - o.displayData = buildUnnamed3104(); + o.displayData = buildUnnamed3153(); o.id = "foo"; - o.inputCollectionName = buildUnnamed3105(); + o.inputCollectionName = buildUnnamed3154(); o.kind = "foo"; o.name = "foo"; - o.outputCollectionName = buildUnnamed3106(); + o.outputCollectionName = buildUnnamed3155(); } buildCounterTransformSummary--; return o; @@ -3870,24 +3870,24 @@ checkTransformSummary(api.TransformSummary o) { buildCounterTransformSummary++; if (buildCounterTransformSummary < 3) { - checkUnnamed3104(o.displayData); + checkUnnamed3153(o.displayData); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3105(o.inputCollectionName); + checkUnnamed3154(o.inputCollectionName); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3106(o.outputCollectionName); + checkUnnamed3155(o.outputCollectionName); } buildCounterTransformSummary--; } -buildUnnamed3107() { +buildUnnamed3156() { var o = new core.List<api.Package>(); o.add(buildPackage()); o.add(buildPackage()); return o; } -checkUnnamed3107(core.List<api.Package> o) { +checkUnnamed3156(core.List<api.Package> o) { unittest.expect(o, unittest.hasLength(2)); checkPackage(o[0]); checkPackage(o[1]); @@ -3904,7 +3904,7 @@ o.jobId = "foo"; o.leaseExpireTime = "foo"; o.mapTask = buildMapTask(); - o.packages = buildUnnamed3107(); + o.packages = buildUnnamed3156(); o.projectId = "foo"; o.reportStatusInterval = "foo"; o.seqMapTask = buildSeqMapTask(); @@ -3927,7 +3927,7 @@ unittest.expect(o.jobId, unittest.equals('foo')); unittest.expect(o.leaseExpireTime, unittest.equals('foo')); checkMapTask(o.mapTask); - checkUnnamed3107(o.packages); + checkUnnamed3156(o.packages); unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.reportStatusInterval, unittest.equals('foo')); checkSeqMapTask(o.seqMapTask); @@ -3940,27 +3940,27 @@ buildCounterWorkItem--; } -buildUnnamed3108() { +buildUnnamed3157() { 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; } -checkUnnamed3108(core.Map<core.String, core.Object> o) { +checkUnnamed3157(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted43 = (o["x"]) as core.Map; unittest.expect(casted43, unittest.hasLength(3)); unittest.expect(casted43["list"], unittest.equals([1, 2, 3])); unittest.expect(casted43["bool"], unittest.equals(true)); unittest.expect(casted43["string"], unittest.equals('foo')); var casted44 = (o["y"]) as core.Map; unittest.expect(casted44, unittest.hasLength(3)); unittest.expect(casted44["list"], unittest.equals([1, 2, 3])); unittest.expect(casted44["bool"], unittest.equals(true)); unittest.expect(casted44["string"], unittest.equals('foo')); } -buildUnnamed3109() { +buildUnnamed3158() { var o = new core.List<api.MetricShortId>(); o.add(buildMetricShortId()); o.add(buildMetricShortId()); return o; } -checkUnnamed3109(core.List<api.MetricShortId> o) { +checkUnnamed3158(core.List<api.MetricShortId> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricShortId(o[0]); checkMetricShortId(o[1]); @@ -3971,9 +3971,9 @@ var o = new api.WorkItemServiceState(); buildCounterWorkItemServiceState++; if (buildCounterWorkItemServiceState < 3) { - o.harnessData = buildUnnamed3108(); + o.harnessData = buildUnnamed3157(); o.leaseExpireTime = "foo"; - o.metricShortId = buildUnnamed3109(); + o.metricShortId = buildUnnamed3158(); o.nextReportIndex = "foo"; o.reportStatusInterval = "foo"; o.splitRequest = buildApproximateSplitRequest(); @@ -3987,9 +3987,9 @@ checkWorkItemServiceState(api.WorkItemServiceState o) { buildCounterWorkItemServiceState++; if (buildCounterWorkItemServiceState < 3) { - checkUnnamed3108(o.harnessData); + checkUnnamed3157(o.harnessData); unittest.expect(o.leaseExpireTime, unittest.equals('foo')); - checkUnnamed3109(o.metricShortId); + checkUnnamed3158(o.metricShortId); unittest.expect(o.nextReportIndex, unittest.equals('foo')); unittest.expect(o.reportStatusInterval, unittest.equals('foo')); checkApproximateSplitRequest(o.splitRequest); @@ -3999,40 +3999,40 @@ buildCounterWorkItemServiceState--; } -buildUnnamed3110() { +buildUnnamed3159() { var o = new core.List<api.CounterUpdate>(); o.add(buildCounterUpdate()); o.add(buildCounterUpdate()); return o; } -checkUnnamed3110(core.List<api.CounterUpdate> o) { +checkUnnamed3159(core.List<api.CounterUpdate> o) { unittest.expect(o, unittest.hasLength(2)); checkCounterUpdate(o[0]); checkCounterUpdate(o[1]); } -buildUnnamed3111() { +buildUnnamed3160() { var o = new core.List<api.Status>(); o.add(buildStatus()); o.add(buildStatus()); return o; } -checkUnnamed3111(core.List<api.Status> o) { +checkUnnamed3160(core.List<api.Status> o) { unittest.expect(o, unittest.hasLength(2)); checkStatus(o[0]); checkStatus(o[1]); } -buildUnnamed3112() { +buildUnnamed3161() { var o = new core.List<api.MetricUpdate>(); o.add(buildMetricUpdate()); o.add(buildMetricUpdate()); return o; } -checkUnnamed3112(core.List<api.MetricUpdate> o) { +checkUnnamed3161(core.List<api.MetricUpdate> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricUpdate(o[0]); checkMetricUpdate(o[1]); @@ -4044,10 +4044,10 @@ buildCounterWorkItemStatus++; if (buildCounterWorkItemStatus < 3) { o.completed = true; - o.counterUpdates = buildUnnamed3110(); + o.counterUpdates = buildUnnamed3159(); o.dynamicSourceSplit = buildDynamicSourceSplit(); - o.errors = buildUnnamed3111(); - o.metricUpdates = buildUnnamed3112(); + o.errors = buildUnnamed3160(); + o.metricUpdates = buildUnnamed3161(); o.progress = buildApproximateProgress(); o.reportIndex = "foo"; o.reportedProgress = buildApproximateReportedProgress(); @@ -4065,10 +4065,10 @@ buildCounterWorkItemStatus++; if (buildCounterWorkItemStatus < 3) { unittest.expect(o.completed, unittest.isTrue); - checkUnnamed3110(o.counterUpdates); + checkUnnamed3159(o.counterUpdates); checkDynamicSourceSplit(o.dynamicSourceSplit); - checkUnnamed3111(o.errors); - checkUnnamed3112(o.metricUpdates); + checkUnnamed3160(o.errors); + checkUnnamed3161(o.metricUpdates); checkApproximateProgress(o.progress); unittest.expect(o.reportIndex, unittest.equals('foo')); checkApproximateReportedProgress(o.reportedProgress); @@ -4081,30 +4081,30 @@ buildCounterWorkItemStatus--; } -buildUnnamed3113() { +buildUnnamed3162() { 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; } -checkUnnamed3113(core.Map<core.String, core.Object> o) { +checkUnnamed3162(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted45 = (o["x"]) as core.Map; unittest.expect(casted45, unittest.hasLength(3)); unittest.expect(casted45["list"], unittest.equals([1, 2, 3])); unittest.expect(casted45["bool"], unittest.equals(true)); unittest.expect(casted45["string"], unittest.equals('foo')); var casted46 = (o["y"]) as core.Map; unittest.expect(casted46, unittest.hasLength(3)); unittest.expect(casted46["list"], unittest.equals([1, 2, 3])); unittest.expect(casted46["bool"], unittest.equals(true)); unittest.expect(casted46["string"], unittest.equals('foo')); } -buildUnnamed3114() { +buildUnnamed3163() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3113()); - o.add(buildUnnamed3113()); + o.add(buildUnnamed3162()); + o.add(buildUnnamed3162()); return o; } -checkUnnamed3114(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3163(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3113(o[0]); - checkUnnamed3113(o[1]); + checkUnnamed3162(o[0]); + checkUnnamed3162(o[1]); } core.int buildCounterWorkerHealthReport = 0; @@ -4112,7 +4112,7 @@ var o = new api.WorkerHealthReport(); buildCounterWorkerHealthReport++; if (buildCounterWorkerHealthReport < 3) { - o.pods = buildUnnamed3114(); + o.pods = buildUnnamed3163(); o.reportInterval = "foo"; o.vmIsHealthy = true; o.vmStartupTime = "foo"; @@ -4124,7 +4124,7 @@ checkWorkerHealthReport(api.WorkerHealthReport o) { buildCounterWorkerHealthReport++; if (buildCounterWorkerHealthReport < 3) { - checkUnnamed3114(o.pods); + checkUnnamed3163(o.pods); unittest.expect(o.reportInterval, unittest.equals('foo')); unittest.expect(o.vmIsHealthy, unittest.isTrue); unittest.expect(o.vmStartupTime, unittest.equals('foo')); @@ -4151,14 +4151,14 @@ buildCounterWorkerHealthReportResponse--; } -buildUnnamed3115() { +buildUnnamed3164() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3115(core.Map<core.String, core.String> o) { +checkUnnamed3164(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -4169,7 +4169,7 @@ var o = new api.WorkerMessage(); buildCounterWorkerMessage++; if (buildCounterWorkerMessage < 3) { - o.labels = buildUnnamed3115(); + o.labels = buildUnnamed3164(); o.time = "foo"; o.workerHealthReport = buildWorkerHealthReport(); o.workerMessageCode = buildWorkerMessageCode(); @@ -4182,7 +4182,7 @@ checkWorkerMessage(api.WorkerMessage o) { buildCounterWorkerMessage++; if (buildCounterWorkerMessage < 3) { - checkUnnamed3115(o.labels); + checkUnnamed3164(o.labels); unittest.expect(o.time, unittest.equals('foo')); checkWorkerHealthReport(o.workerHealthReport); checkWorkerMessageCode(o.workerMessageCode); @@ -4191,14 +4191,14 @@ buildCounterWorkerMessage--; } -buildUnnamed3116() { +buildUnnamed3165() { 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; } -checkUnnamed3116(core.Map<core.String, core.Object> o) { +checkUnnamed3165(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted47 = (o["x"]) as core.Map; unittest.expect(casted47, unittest.hasLength(3)); unittest.expect(casted47["list"], unittest.equals([1, 2, 3])); unittest.expect(casted47["bool"], unittest.equals(true)); unittest.expect(casted47["string"], unittest.equals('foo')); var casted48 = (o["y"]) as core.Map; unittest.expect(casted48, unittest.hasLength(3)); unittest.expect(casted48["list"], unittest.equals([1, 2, 3])); unittest.expect(casted48["bool"], unittest.equals(true)); unittest.expect(casted48["string"], unittest.equals('foo')); @@ -4210,7 +4210,7 @@ buildCounterWorkerMessageCode++; if (buildCounterWorkerMessageCode < 3) { o.code = "foo"; - o.parameters = buildUnnamed3116(); + o.parameters = buildUnnamed3165(); } buildCounterWorkerMessageCode--; return o; @@ -4220,7 +4220,7 @@ buildCounterWorkerMessageCode++; if (buildCounterWorkerMessageCode < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed3116(o.parameters); + checkUnnamed3165(o.parameters); } buildCounterWorkerMessageCode--; } @@ -4246,53 +4246,53 @@ buildCounterWorkerMessageResponse--; } -buildUnnamed3117() { +buildUnnamed3166() { var o = new core.List<api.Disk>(); o.add(buildDisk()); o.add(buildDisk()); return o; } -checkUnnamed3117(core.List<api.Disk> o) { +checkUnnamed3166(core.List<api.Disk> o) { unittest.expect(o, unittest.hasLength(2)); checkDisk(o[0]); checkDisk(o[1]); } -buildUnnamed3118() { +buildUnnamed3167() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3118(core.Map<core.String, core.String> o) { +checkUnnamed3167(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3119() { +buildUnnamed3168() { var o = new core.List<api.Package>(); o.add(buildPackage()); o.add(buildPackage()); return o; } -checkUnnamed3119(core.List<api.Package> o) { +checkUnnamed3168(core.List<api.Package> o) { unittest.expect(o, unittest.hasLength(2)); checkPackage(o[0]); checkPackage(o[1]); } -buildUnnamed3120() { +buildUnnamed3169() { 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; } -checkUnnamed3120(core.Map<core.String, core.Object> o) { +checkUnnamed3169(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted49 = (o["x"]) as core.Map; unittest.expect(casted49, unittest.hasLength(3)); unittest.expect(casted49["list"], unittest.equals([1, 2, 3])); unittest.expect(casted49["bool"], unittest.equals(true)); unittest.expect(casted49["string"], unittest.equals('foo')); var casted50 = (o["y"]) as core.Map; unittest.expect(casted50, unittest.hasLength(3)); unittest.expect(casted50["list"], unittest.equals([1, 2, 3])); unittest.expect(casted50["bool"], unittest.equals(true)); unittest.expect(casted50["string"], unittest.equals('foo')); @@ -4304,7 +4304,7 @@ buildCounterWorkerPool++; if (buildCounterWorkerPool < 3) { o.autoscalingSettings = buildAutoscalingSettings(); - o.dataDisks = buildUnnamed3117(); + o.dataDisks = buildUnnamed3166(); o.defaultPackageSet = "foo"; o.diskSizeGb = 42; o.diskSourceImage = "foo"; @@ -4312,13 +4312,13 @@ o.ipConfiguration = "foo"; o.kind = "foo"; o.machineType = "foo"; - o.metadata = buildUnnamed3118(); + o.metadata = buildUnnamed3167(); o.network = "foo"; o.numThreadsPerWorker = 42; o.numWorkers = 42; o.onHostMaintenance = "foo"; - o.packages = buildUnnamed3119(); - o.poolArgs = buildUnnamed3120(); + o.packages = buildUnnamed3168(); + o.poolArgs = buildUnnamed3169(); o.subnetwork = "foo"; o.taskrunnerSettings = buildTaskRunnerSettings(); o.teardownPolicy = "foo"; @@ -4333,7 +4333,7 @@ buildCounterWorkerPool++; if (buildCounterWorkerPool < 3) { checkAutoscalingSettings(o.autoscalingSettings); - checkUnnamed3117(o.dataDisks); + checkUnnamed3166(o.dataDisks); unittest.expect(o.defaultPackageSet, unittest.equals('foo')); unittest.expect(o.diskSizeGb, unittest.equals(42)); unittest.expect(o.diskSourceImage, unittest.equals('foo')); @@ -4341,13 +4341,13 @@ unittest.expect(o.ipConfiguration, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.machineType, unittest.equals('foo')); - checkUnnamed3118(o.metadata); + checkUnnamed3167(o.metadata); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.numThreadsPerWorker, unittest.equals(42)); unittest.expect(o.numWorkers, unittest.equals(42)); unittest.expect(o.onHostMaintenance, unittest.equals('foo')); - checkUnnamed3119(o.packages); - checkUnnamed3120(o.poolArgs); + checkUnnamed3168(o.packages); + checkUnnamed3169(o.poolArgs); unittest.expect(o.subnetwork, unittest.equals('foo')); checkTaskRunnerSettings(o.taskrunnerSettings); unittest.expect(o.teardownPolicy, unittest.equals('foo')); @@ -5582,9 +5582,9 @@ api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; var arg_request = buildJob(); var arg_projectId = "foo"; - var arg_location = "foo"; var arg_replaceJobId = "foo"; var arg_view = "foo"; + var arg_location = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Job.fromJson(json); checkJob(obj); @@ -5621,9 +5621,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["location"].first, unittest.equals(arg_location)); unittest.expect(queryMap["replaceJobId"].first, unittest.equals(arg_replaceJobId)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); + unittest.expect(queryMap["location"].first, unittest.equals(arg_location)); var h = { @@ -5632,7 +5632,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_projectId, location: arg_location, replaceJobId: arg_replaceJobId, view: arg_view).then(unittest.expectAsync1(((api.Job response) { + res.create(arg_request, arg_projectId, replaceJobId: arg_replaceJobId, view: arg_view, location: arg_location).then(unittest.expectAsync1(((api.Job response) { checkJob(response); }))); }); @@ -5702,8 +5702,8 @@ api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; var arg_projectId = "foo"; var arg_jobId = "foo"; - var arg_location = "foo"; var arg_startTime = "foo"; + var arg_location = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -5744,8 +5744,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["location"].first, unittest.equals(arg_location)); unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTime)); + unittest.expect(queryMap["location"].first, unittest.equals(arg_location)); var h = { @@ -5754,7 +5754,7 @@ var resp = convert.JSON.encode(buildJobMetrics()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getMetrics(arg_projectId, arg_jobId, location: arg_location, startTime: arg_startTime).then(unittest.expectAsync1(((api.JobMetrics response) { + res.getMetrics(arg_projectId, arg_jobId, startTime: arg_startTime, location: arg_location).then(unittest.expectAsync1(((api.JobMetrics response) { checkJobMetrics(response); }))); }); @@ -6021,12 +6021,12 @@ api.ProjectsJobsMessagesResourceApi res = new api.DataflowApi(mock).projects.jobs.messages; var arg_projectId = "foo"; var arg_jobId = "foo"; + var arg_pageSize = 42; + var arg_minimumImportance = "foo"; var arg_location = "foo"; var arg_endTime = "foo"; var arg_startTime = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; - var arg_minimumImportance = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -6067,12 +6067,12 @@ 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["minimumImportance"].first, unittest.equals(arg_minimumImportance)); unittest.expect(queryMap["location"].first, unittest.equals(arg_location)); unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime)); unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTime)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg_minimumImportance)); var h = { @@ -6081,7 +6081,7 @@ var resp = convert.JSON.encode(buildListJobMessagesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, arg_jobId, location: arg_location, endTime: arg_endTime, startTime: arg_startTime, pageToken: arg_pageToken, pageSize: arg_pageSize, minimumImportance: arg_minimumImportance).then(unittest.expectAsync1(((api.ListJobMessagesResponse response) { + res.list(arg_projectId, arg_jobId, pageSize: arg_pageSize, minimumImportance: arg_minimumImportance, location: arg_location, endTime: arg_endTime, startTime: arg_startTime, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListJobMessagesResponse response) { checkListJobMessagesResponse(response); }))); }); @@ -6779,11 +6779,11 @@ var arg_projectId = "foo"; var arg_location = "foo"; var arg_jobId = "foo"; + var arg_pageSize = 42; + var arg_minimumImportance = "foo"; var arg_endTime = "foo"; var arg_startTime = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; - var arg_minimumImportance = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -6831,11 +6831,11 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg_minimumImportance)); unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime)); unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTime)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg_minimumImportance)); var h = { @@ -6844,7 +6844,7 @@ var resp = convert.JSON.encode(buildListJobMessagesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, arg_location, arg_jobId, endTime: arg_endTime, startTime: arg_startTime, pageToken: arg_pageToken, pageSize: arg_pageSize, minimumImportance: arg_minimumImportance).then(unittest.expectAsync1(((api.ListJobMessagesResponse response) { + res.list(arg_projectId, arg_location, arg_jobId, pageSize: arg_pageSize, minimumImportance: arg_minimumImportance, endTime: arg_endTime, startTime: arg_startTime, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListJobMessagesResponse response) { checkListJobMessagesResponse(response); }))); }); @@ -7132,8 +7132,8 @@ var arg_request = buildLaunchTemplateParameters(); var arg_projectId = "foo"; var arg_location = "foo"; - var arg_gcsPath = "foo"; var arg_validateOnly = true; + var arg_gcsPath = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LaunchTemplateParameters.fromJson(json); checkLaunchTemplateParameters(obj); @@ -7177,8 +7177,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath)); unittest.expect(queryMap["validateOnly"].first, unittest.equals("$arg_validateOnly")); + unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath)); var h = { @@ -7187,7 +7187,7 @@ var resp = convert.JSON.encode(buildLaunchTemplateResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.launch(arg_request, arg_projectId, arg_location, gcsPath: arg_gcsPath, validateOnly: arg_validateOnly).then(unittest.expectAsync1(((api.LaunchTemplateResponse response) { + res.launch(arg_request, arg_projectId, arg_location, validateOnly: arg_validateOnly, gcsPath: arg_gcsPath).then(unittest.expectAsync1(((api.LaunchTemplateResponse response) { checkLaunchTemplateResponse(response); }))); }); @@ -7256,9 +7256,9 @@ var mock = new HttpServerMock(); api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects.templates; var arg_projectId = "foo"; + var arg_location = "foo"; var arg_view = "foo"; var arg_gcsPath = "foo"; - var arg_location = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -7292,9 +7292,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["location"].first, unittest.equals(arg_location)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath)); - unittest.expect(queryMap["location"].first, unittest.equals(arg_location)); var h = { @@ -7303,7 +7303,7 @@ var resp = convert.JSON.encode(buildGetTemplateResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_projectId, view: arg_view, gcsPath: arg_gcsPath, location: arg_location).then(unittest.expectAsync1(((api.GetTemplateResponse response) { + res.get(arg_projectId, location: arg_location, view: arg_view, gcsPath: arg_gcsPath).then(unittest.expectAsync1(((api.GetTemplateResponse response) { checkGetTemplateResponse(response); }))); }); @@ -7314,9 +7314,9 @@ api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects.templates; var arg_request = buildLaunchTemplateParameters(); var arg_projectId = "foo"; - var arg_gcsPath = "foo"; var arg_location = "foo"; var arg_validateOnly = true; + var arg_gcsPath = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LaunchTemplateParameters.fromJson(json); checkLaunchTemplateParameters(obj); @@ -7353,9 +7353,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath)); unittest.expect(queryMap["location"].first, unittest.equals(arg_location)); unittest.expect(queryMap["validateOnly"].first, unittest.equals("$arg_validateOnly")); + unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath)); var h = { @@ -7364,7 +7364,7 @@ var resp = convert.JSON.encode(buildLaunchTemplateResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.launch(arg_request, arg_projectId, gcsPath: arg_gcsPath, location: arg_location, validateOnly: arg_validateOnly).then(unittest.expectAsync1(((api.LaunchTemplateResponse response) { + res.launch(arg_request, arg_projectId, location: arg_location, validateOnly: arg_validateOnly, gcsPath: arg_gcsPath).then(unittest.expectAsync1(((api.LaunchTemplateResponse response) { checkLaunchTemplateResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/dataproc/v1beta1_test.dart b/generated/googleapis_beta/test/dataproc/v1beta1_test.dart deleted file mode 100644 index f73160e..0000000 --- a/generated/googleapis_beta/test/dataproc/v1beta1_test.dart +++ /dev/null
@@ -1,3036 +0,0 @@ -library googleapis_beta.dataproc.v1beta1.test; - -import "dart:core" as core; -import "dart:collection" as collection; -import "dart:async" as async; -import "dart:convert" as convert; - -import 'package:http/http.dart' as http; -import 'package:http/testing.dart' as http_testing; -import 'package:test/test.dart' as unittest; - -import 'package:googleapis_beta/dataproc/v1beta1.dart' as api; - -class HttpServerMock extends http.BaseClient { - core.Function _callback; - core.bool _expectJson; - - void register(core.Function callback, core.bool expectJson) { - _callback = callback; - _expectJson = expectJson; - } - - async.Future<http.StreamedResponse> send(http.BaseRequest request) { - if (_expectJson) { - return request.finalize() - .transform(convert.UTF8.decoder) - .join('') - .then((core.String jsonString) { - if (jsonString.isEmpty) { - return _callback(request, null); - } else { - return _callback(request, convert.JSON.decode(jsonString)); - } - }); - } else { - var stream = request.finalize(); - if (stream == null) { - return _callback(request, []); - } else { - return stream.toBytes().then((data) { - return _callback(request, data); - }); - } - } - } -} - -http.StreamedResponse stringResponse( - core.int status, core.Map<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); -} - -core.int buildCounterAcceleratorConfiguration = 0; -buildAcceleratorConfiguration() { - var o = new api.AcceleratorConfiguration(); - buildCounterAcceleratorConfiguration++; - if (buildCounterAcceleratorConfiguration < 3) { - o.acceleratorCount = 42; - o.acceleratorTypeUri = "foo"; - } - buildCounterAcceleratorConfiguration--; - return o; -} - -checkAcceleratorConfiguration(api.AcceleratorConfiguration o) { - buildCounterAcceleratorConfiguration++; - if (buildCounterAcceleratorConfiguration < 3) { - unittest.expect(o.acceleratorCount, unittest.equals(42)); - unittest.expect(o.acceleratorTypeUri, unittest.equals('foo')); - } - buildCounterAcceleratorConfiguration--; -} - -core.int buildCounterCancelJobRequest = 0; -buildCancelJobRequest() { - var o = new api.CancelJobRequest(); - buildCounterCancelJobRequest++; - if (buildCounterCancelJobRequest < 3) { - } - buildCounterCancelJobRequest--; - return o; -} - -checkCancelJobRequest(api.CancelJobRequest o) { - buildCounterCancelJobRequest++; - if (buildCounterCancelJobRequest < 3) { - } - buildCounterCancelJobRequest--; -} - -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--; -} - -buildUnnamed3151() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed3151(core.Map<core.String, core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -buildUnnamed3152() { - var o = new core.List<api.ClusterStatus>(); - o.add(buildClusterStatus()); - o.add(buildClusterStatus()); - return o; -} - -checkUnnamed3152(core.List<api.ClusterStatus> o) { - unittest.expect(o, unittest.hasLength(2)); - checkClusterStatus(o[0]); - checkClusterStatus(o[1]); -} - -core.int buildCounterCluster = 0; -buildCluster() { - var o = new api.Cluster(); - buildCounterCluster++; - if (buildCounterCluster < 3) { - o.clusterName = "foo"; - o.clusterUuid = "foo"; - o.configuration = buildClusterConfiguration(); - o.labels = buildUnnamed3151(); - o.metrics = buildClusterMetrics(); - o.projectId = "foo"; - o.status = buildClusterStatus(); - o.statusHistory = buildUnnamed3152(); - } - buildCounterCluster--; - return o; -} - -checkCluster(api.Cluster o) { - buildCounterCluster++; - if (buildCounterCluster < 3) { - unittest.expect(o.clusterName, unittest.equals('foo')); - unittest.expect(o.clusterUuid, unittest.equals('foo')); - checkClusterConfiguration(o.configuration); - checkUnnamed3151(o.labels); - checkClusterMetrics(o.metrics); - unittest.expect(o.projectId, unittest.equals('foo')); - checkClusterStatus(o.status); - checkUnnamed3152(o.statusHistory); - } - buildCounterCluster--; -} - -buildUnnamed3153() { - var o = new core.List<api.NodeInitializationAction>(); - o.add(buildNodeInitializationAction()); - o.add(buildNodeInitializationAction()); - return o; -} - -checkUnnamed3153(core.List<api.NodeInitializationAction> o) { - unittest.expect(o, unittest.hasLength(2)); - checkNodeInitializationAction(o[0]); - checkNodeInitializationAction(o[1]); -} - -core.int buildCounterClusterConfiguration = 0; -buildClusterConfiguration() { - var o = new api.ClusterConfiguration(); - buildCounterClusterConfiguration++; - if (buildCounterClusterConfiguration < 3) { - o.configurationBucket = "foo"; - o.gceClusterConfiguration = buildGceClusterConfiguration(); - o.initializationActions = buildUnnamed3153(); - o.masterConfiguration = buildInstanceGroupConfiguration(); - o.secondaryWorkerConfiguration = buildInstanceGroupConfiguration(); - o.softwareConfiguration = buildSoftwareConfiguration(); - o.workerConfiguration = buildInstanceGroupConfiguration(); - } - buildCounterClusterConfiguration--; - return o; -} - -checkClusterConfiguration(api.ClusterConfiguration o) { - buildCounterClusterConfiguration++; - if (buildCounterClusterConfiguration < 3) { - unittest.expect(o.configurationBucket, unittest.equals('foo')); - checkGceClusterConfiguration(o.gceClusterConfiguration); - checkUnnamed3153(o.initializationActions); - checkInstanceGroupConfiguration(o.masterConfiguration); - checkInstanceGroupConfiguration(o.secondaryWorkerConfiguration); - checkSoftwareConfiguration(o.softwareConfiguration); - checkInstanceGroupConfiguration(o.workerConfiguration); - } - buildCounterClusterConfiguration--; -} - -buildUnnamed3154() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed3154(core.Map<core.String, core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -buildUnnamed3155() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed3155(core.Map<core.String, core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -core.int buildCounterClusterMetrics = 0; -buildClusterMetrics() { - var o = new api.ClusterMetrics(); - buildCounterClusterMetrics++; - if (buildCounterClusterMetrics < 3) { - o.hdfsMetrics = buildUnnamed3154(); - o.yarnMetrics = buildUnnamed3155(); - } - buildCounterClusterMetrics--; - return o; -} - -checkClusterMetrics(api.ClusterMetrics o) { - buildCounterClusterMetrics++; - if (buildCounterClusterMetrics < 3) { - checkUnnamed3154(o.hdfsMetrics); - checkUnnamed3155(o.yarnMetrics); - } - buildCounterClusterMetrics--; -} - -buildUnnamed3156() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed3156(core.Map<core.String, core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -buildUnnamed3157() { - var o = new core.List<api.ClusterOperationStatus>(); - o.add(buildClusterOperationStatus()); - o.add(buildClusterOperationStatus()); - return o; -} - -checkUnnamed3157(core.List<api.ClusterOperationStatus> o) { - unittest.expect(o, unittest.hasLength(2)); - checkClusterOperationStatus(o[0]); - checkClusterOperationStatus(o[1]); -} - -buildUnnamed3158() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -core.int buildCounterClusterOperationMetadata = 0; -buildClusterOperationMetadata() { - var o = new api.ClusterOperationMetadata(); - buildCounterClusterOperationMetadata++; - if (buildCounterClusterOperationMetadata < 3) { - o.clusterName = "foo"; - o.clusterUuid = "foo"; - o.description = "foo"; - o.labels = buildUnnamed3156(); - o.operationType = "foo"; - o.status = buildClusterOperationStatus(); - o.statusHistory = buildUnnamed3157(); - o.warnings = buildUnnamed3158(); - } - buildCounterClusterOperationMetadata--; - return o; -} - -checkClusterOperationMetadata(api.ClusterOperationMetadata o) { - buildCounterClusterOperationMetadata++; - if (buildCounterClusterOperationMetadata < 3) { - unittest.expect(o.clusterName, unittest.equals('foo')); - unittest.expect(o.clusterUuid, unittest.equals('foo')); - unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed3156(o.labels); - unittest.expect(o.operationType, unittest.equals('foo')); - checkClusterOperationStatus(o.status); - checkUnnamed3157(o.statusHistory); - checkUnnamed3158(o.warnings); - } - buildCounterClusterOperationMetadata--; -} - -core.int buildCounterClusterOperationStatus = 0; -buildClusterOperationStatus() { - var o = new api.ClusterOperationStatus(); - buildCounterClusterOperationStatus++; - if (buildCounterClusterOperationStatus < 3) { - o.details = "foo"; - o.innerState = "foo"; - o.state = "foo"; - o.stateStartTime = "foo"; - } - buildCounterClusterOperationStatus--; - return o; -} - -checkClusterOperationStatus(api.ClusterOperationStatus o) { - buildCounterClusterOperationStatus++; - if (buildCounterClusterOperationStatus < 3) { - unittest.expect(o.details, unittest.equals('foo')); - unittest.expect(o.innerState, unittest.equals('foo')); - unittest.expect(o.state, unittest.equals('foo')); - unittest.expect(o.stateStartTime, unittest.equals('foo')); - } - buildCounterClusterOperationStatus--; -} - -core.int buildCounterClusterStatus = 0; -buildClusterStatus() { - var o = new api.ClusterStatus(); - buildCounterClusterStatus++; - if (buildCounterClusterStatus < 3) { - o.detail = "foo"; - o.state = "foo"; - o.stateStartTime = "foo"; - o.substate = "foo"; - } - buildCounterClusterStatus--; - return o; -} - -checkClusterStatus(api.ClusterStatus o) { - buildCounterClusterStatus++; - if (buildCounterClusterStatus < 3) { - unittest.expect(o.detail, unittest.equals('foo')); - unittest.expect(o.state, unittest.equals('foo')); - unittest.expect(o.stateStartTime, unittest.equals('foo')); - unittest.expect(o.substate, unittest.equals('foo')); - } - buildCounterClusterStatus--; -} - -core.int buildCounterDiagnoseClusterOutputLocation = 0; -buildDiagnoseClusterOutputLocation() { - var o = new api.DiagnoseClusterOutputLocation(); - buildCounterDiagnoseClusterOutputLocation++; - if (buildCounterDiagnoseClusterOutputLocation < 3) { - o.outputUri = "foo"; - } - buildCounterDiagnoseClusterOutputLocation--; - return o; -} - -checkDiagnoseClusterOutputLocation(api.DiagnoseClusterOutputLocation o) { - buildCounterDiagnoseClusterOutputLocation++; - if (buildCounterDiagnoseClusterOutputLocation < 3) { - unittest.expect(o.outputUri, unittest.equals('foo')); - } - buildCounterDiagnoseClusterOutputLocation--; -} - -core.int buildCounterDiagnoseClusterRequest = 0; -buildDiagnoseClusterRequest() { - var o = new api.DiagnoseClusterRequest(); - buildCounterDiagnoseClusterRequest++; - if (buildCounterDiagnoseClusterRequest < 3) { - } - buildCounterDiagnoseClusterRequest--; - return o; -} - -checkDiagnoseClusterRequest(api.DiagnoseClusterRequest o) { - buildCounterDiagnoseClusterRequest++; - if (buildCounterDiagnoseClusterRequest < 3) { - } - buildCounterDiagnoseClusterRequest--; -} - -core.int buildCounterDiagnoseClusterResults = 0; -buildDiagnoseClusterResults() { - var o = new api.DiagnoseClusterResults(); - buildCounterDiagnoseClusterResults++; - if (buildCounterDiagnoseClusterResults < 3) { - o.outputUri = "foo"; - } - buildCounterDiagnoseClusterResults--; - return o; -} - -checkDiagnoseClusterResults(api.DiagnoseClusterResults o) { - buildCounterDiagnoseClusterResults++; - if (buildCounterDiagnoseClusterResults < 3) { - unittest.expect(o.outputUri, unittest.equals('foo')); - } - buildCounterDiagnoseClusterResults--; -} - -core.int buildCounterDiskConfiguration = 0; -buildDiskConfiguration() { - var o = new api.DiskConfiguration(); - buildCounterDiskConfiguration++; - if (buildCounterDiskConfiguration < 3) { - o.bootDiskSizeGb = 42; - o.numLocalSsds = 42; - } - buildCounterDiskConfiguration--; - return o; -} - -checkDiskConfiguration(api.DiskConfiguration o) { - buildCounterDiskConfiguration++; - if (buildCounterDiskConfiguration < 3) { - unittest.expect(o.bootDiskSizeGb, unittest.equals(42)); - unittest.expect(o.numLocalSsds, unittest.equals(42)); - } - buildCounterDiskConfiguration--; -} - -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--; -} - -buildUnnamed3159() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed3159(core.Map<core.String, core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -buildUnnamed3160() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3160(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3161() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3161(core.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 buildCounterGceClusterConfiguration = 0; -buildGceClusterConfiguration() { - var o = new api.GceClusterConfiguration(); - buildCounterGceClusterConfiguration++; - if (buildCounterGceClusterConfiguration < 3) { - o.internalIpOnly = true; - o.metadata = buildUnnamed3159(); - o.networkUri = "foo"; - o.serviceAccount = "foo"; - o.serviceAccountScopes = buildUnnamed3160(); - o.subnetworkUri = "foo"; - o.tags = buildUnnamed3161(); - o.zoneUri = "foo"; - } - buildCounterGceClusterConfiguration--; - return o; -} - -checkGceClusterConfiguration(api.GceClusterConfiguration o) { - buildCounterGceClusterConfiguration++; - if (buildCounterGceClusterConfiguration < 3) { - unittest.expect(o.internalIpOnly, unittest.isTrue); - checkUnnamed3159(o.metadata); - unittest.expect(o.networkUri, unittest.equals('foo')); - unittest.expect(o.serviceAccount, unittest.equals('foo')); - checkUnnamed3160(o.serviceAccountScopes); - unittest.expect(o.subnetworkUri, unittest.equals('foo')); - checkUnnamed3161(o.tags); - unittest.expect(o.zoneUri, unittest.equals('foo')); - } - buildCounterGceClusterConfiguration--; -} - -buildUnnamed3162() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3162(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3163() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3163(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3164() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3164(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3165() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3165(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3166() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed3166(core.Map<core.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 buildCounterHadoopJob = 0; -buildHadoopJob() { - var o = new api.HadoopJob(); - buildCounterHadoopJob++; - if (buildCounterHadoopJob < 3) { - o.archiveUris = buildUnnamed3162(); - o.args = buildUnnamed3163(); - o.fileUris = buildUnnamed3164(); - o.jarFileUris = buildUnnamed3165(); - o.loggingConfiguration = buildLoggingConfiguration(); - o.mainClass = "foo"; - o.mainJarFileUri = "foo"; - o.properties = buildUnnamed3166(); - } - buildCounterHadoopJob--; - return o; -} - -checkHadoopJob(api.HadoopJob o) { - buildCounterHadoopJob++; - if (buildCounterHadoopJob < 3) { - checkUnnamed3162(o.archiveUris); - checkUnnamed3163(o.args); - checkUnnamed3164(o.fileUris); - checkUnnamed3165(o.jarFileUris); - checkLoggingConfiguration(o.loggingConfiguration); - unittest.expect(o.mainClass, unittest.equals('foo')); - unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed3166(o.properties); - } - buildCounterHadoopJob--; -} - -buildUnnamed3167() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed3168() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed3168(core.Map<core.String, core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -buildUnnamed3169() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed3169(core.Map<core.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 buildCounterHiveJob = 0; -buildHiveJob() { - var o = new api.HiveJob(); - buildCounterHiveJob++; - if (buildCounterHiveJob < 3) { - o.continueOnFailure = true; - o.jarFileUris = buildUnnamed3167(); - o.properties = buildUnnamed3168(); - o.queryFileUri = "foo"; - o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed3169(); - } - buildCounterHiveJob--; - return o; -} - -checkHiveJob(api.HiveJob o) { - buildCounterHiveJob++; - if (buildCounterHiveJob < 3) { - unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed3167(o.jarFileUris); - checkUnnamed3168(o.properties); - unittest.expect(o.queryFileUri, unittest.equals('foo')); - checkQueryList(o.queryList); - checkUnnamed3169(o.scriptVariables); - } - buildCounterHiveJob--; -} - -buildUnnamed3170() { - var o = new core.List<api.AcceleratorConfiguration>(); - o.add(buildAcceleratorConfiguration()); - o.add(buildAcceleratorConfiguration()); - return o; -} - -checkUnnamed3170(core.List<api.AcceleratorConfiguration> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAcceleratorConfiguration(o[0]); - checkAcceleratorConfiguration(o[1]); -} - -buildUnnamed3171() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3171(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterInstanceGroupConfiguration = 0; -buildInstanceGroupConfiguration() { - var o = new api.InstanceGroupConfiguration(); - buildCounterInstanceGroupConfiguration++; - if (buildCounterInstanceGroupConfiguration < 3) { - o.accelerators = buildUnnamed3170(); - o.diskConfiguration = buildDiskConfiguration(); - o.imageUri = "foo"; - o.instanceNames = buildUnnamed3171(); - o.isPreemptible = true; - o.machineTypeUri = "foo"; - o.managedGroupConfiguration = buildManagedGroupConfiguration(); - o.numInstances = 42; - } - buildCounterInstanceGroupConfiguration--; - return o; -} - -checkInstanceGroupConfiguration(api.InstanceGroupConfiguration o) { - buildCounterInstanceGroupConfiguration++; - if (buildCounterInstanceGroupConfiguration < 3) { - checkUnnamed3170(o.accelerators); - checkDiskConfiguration(o.diskConfiguration); - unittest.expect(o.imageUri, unittest.equals('foo')); - checkUnnamed3171(o.instanceNames); - unittest.expect(o.isPreemptible, unittest.isTrue); - unittest.expect(o.machineTypeUri, unittest.equals('foo')); - checkManagedGroupConfiguration(o.managedGroupConfiguration); - unittest.expect(o.numInstances, unittest.equals(42)); - } - buildCounterInstanceGroupConfiguration--; -} - -buildUnnamed3172() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed3172(core.Map<core.String, core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -buildUnnamed3173() { - var o = new core.List<api.JobStatus>(); - o.add(buildJobStatus()); - o.add(buildJobStatus()); - return o; -} - -checkUnnamed3173(core.List<api.JobStatus> o) { - unittest.expect(o, unittest.hasLength(2)); - checkJobStatus(o[0]); - checkJobStatus(o[1]); -} - -buildUnnamed3174() { - var o = new core.List<api.YarnApplication>(); - o.add(buildYarnApplication()); - o.add(buildYarnApplication()); - return o; -} - -checkUnnamed3174(core.List<api.YarnApplication> o) { - unittest.expect(o, unittest.hasLength(2)); - checkYarnApplication(o[0]); - checkYarnApplication(o[1]); -} - -core.int buildCounterJob = 0; -buildJob() { - var o = new api.Job(); - buildCounterJob++; - if (buildCounterJob < 3) { - o.driverControlFilesUri = "foo"; - o.driverInputResourceUri = "foo"; - o.driverOutputResourceUri = "foo"; - o.hadoopJob = buildHadoopJob(); - o.hiveJob = buildHiveJob(); - o.interactive = true; - o.labels = buildUnnamed3172(); - o.pigJob = buildPigJob(); - o.placement = buildJobPlacement(); - o.pysparkJob = buildPySparkJob(); - o.reference = buildJobReference(); - o.scheduling = buildJobScheduling(); - o.sparkJob = buildSparkJob(); - o.sparkSqlJob = buildSparkSqlJob(); - o.status = buildJobStatus(); - o.statusHistory = buildUnnamed3173(); - o.submittedBy = "foo"; - o.yarnApplications = buildUnnamed3174(); - } - buildCounterJob--; - return o; -} - -checkJob(api.Job o) { - buildCounterJob++; - if (buildCounterJob < 3) { - unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); - unittest.expect(o.driverInputResourceUri, unittest.equals('foo')); - unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); - checkHadoopJob(o.hadoopJob); - checkHiveJob(o.hiveJob); - unittest.expect(o.interactive, unittest.isTrue); - checkUnnamed3172(o.labels); - checkPigJob(o.pigJob); - checkJobPlacement(o.placement); - checkPySparkJob(o.pysparkJob); - checkJobReference(o.reference); - checkJobScheduling(o.scheduling); - checkSparkJob(o.sparkJob); - checkSparkSqlJob(o.sparkSqlJob); - checkJobStatus(o.status); - checkUnnamed3173(o.statusHistory); - unittest.expect(o.submittedBy, unittest.equals('foo')); - checkUnnamed3174(o.yarnApplications); - } - buildCounterJob--; -} - -core.int buildCounterJobPlacement = 0; -buildJobPlacement() { - var o = new api.JobPlacement(); - buildCounterJobPlacement++; - if (buildCounterJobPlacement < 3) { - o.clusterName = "foo"; - o.clusterUuid = "foo"; - } - buildCounterJobPlacement--; - return o; -} - -checkJobPlacement(api.JobPlacement o) { - buildCounterJobPlacement++; - if (buildCounterJobPlacement < 3) { - unittest.expect(o.clusterName, unittest.equals('foo')); - unittest.expect(o.clusterUuid, unittest.equals('foo')); - } - buildCounterJobPlacement--; -} - -core.int buildCounterJobReference = 0; -buildJobReference() { - var o = new api.JobReference(); - buildCounterJobReference++; - if (buildCounterJobReference < 3) { - o.jobId = "foo"; - o.projectId = "foo"; - } - buildCounterJobReference--; - return o; -} - -checkJobReference(api.JobReference o) { - buildCounterJobReference++; - if (buildCounterJobReference < 3) { - unittest.expect(o.jobId, unittest.equals('foo')); - unittest.expect(o.projectId, unittest.equals('foo')); - } - buildCounterJobReference--; -} - -core.int buildCounterJobScheduling = 0; -buildJobScheduling() { - var o = new api.JobScheduling(); - buildCounterJobScheduling++; - if (buildCounterJobScheduling < 3) { - o.maxFailuresPerHour = 42; - } - buildCounterJobScheduling--; - return o; -} - -checkJobScheduling(api.JobScheduling o) { - buildCounterJobScheduling++; - if (buildCounterJobScheduling < 3) { - unittest.expect(o.maxFailuresPerHour, unittest.equals(42)); - } - buildCounterJobScheduling--; -} - -core.int buildCounterJobStatus = 0; -buildJobStatus() { - var o = new api.JobStatus(); - buildCounterJobStatus++; - if (buildCounterJobStatus < 3) { - o.details = "foo"; - o.state = "foo"; - o.stateStartTime = "foo"; - o.substate = "foo"; - } - buildCounterJobStatus--; - return o; -} - -checkJobStatus(api.JobStatus o) { - buildCounterJobStatus++; - if (buildCounterJobStatus < 3) { - unittest.expect(o.details, unittest.equals('foo')); - unittest.expect(o.state, unittest.equals('foo')); - unittest.expect(o.stateStartTime, unittest.equals('foo')); - unittest.expect(o.substate, unittest.equals('foo')); - } - buildCounterJobStatus--; -} - -buildUnnamed3175() { - var o = new core.List<api.Cluster>(); - o.add(buildCluster()); - o.add(buildCluster()); - return o; -} - -checkUnnamed3175(core.List<api.Cluster> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCluster(o[0]); - checkCluster(o[1]); -} - -core.int buildCounterListClustersResponse = 0; -buildListClustersResponse() { - var o = new api.ListClustersResponse(); - buildCounterListClustersResponse++; - if (buildCounterListClustersResponse < 3) { - o.clusters = buildUnnamed3175(); - o.nextPageToken = "foo"; - } - buildCounterListClustersResponse--; - return o; -} - -checkListClustersResponse(api.ListClustersResponse o) { - buildCounterListClustersResponse++; - if (buildCounterListClustersResponse < 3) { - checkUnnamed3175(o.clusters); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterListClustersResponse--; -} - -buildUnnamed3176() { - var o = new core.List<api.Job>(); - o.add(buildJob()); - o.add(buildJob()); - return o; -} - -checkUnnamed3176(core.List<api.Job> o) { - unittest.expect(o, unittest.hasLength(2)); - checkJob(o[0]); - checkJob(o[1]); -} - -core.int buildCounterListJobsResponse = 0; -buildListJobsResponse() { - var o = new api.ListJobsResponse(); - buildCounterListJobsResponse++; - if (buildCounterListJobsResponse < 3) { - o.jobs = buildUnnamed3176(); - o.nextPageToken = "foo"; - } - buildCounterListJobsResponse--; - return o; -} - -checkListJobsResponse(api.ListJobsResponse o) { - buildCounterListJobsResponse++; - if (buildCounterListJobsResponse < 3) { - checkUnnamed3176(o.jobs); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterListJobsResponse--; -} - -buildUnnamed3177() { - var o = new core.List<api.Operation>(); - o.add(buildOperation()); - o.add(buildOperation()); - return o; -} - -checkUnnamed3177(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 = buildUnnamed3177(); - } - buildCounterListOperationsResponse--; - return o; -} - -checkListOperationsResponse(api.ListOperationsResponse o) { - buildCounterListOperationsResponse++; - if (buildCounterListOperationsResponse < 3) { - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3177(o.operations); - } - buildCounterListOperationsResponse--; -} - -buildUnnamed3178() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed3178(core.Map<core.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 buildCounterLoggingConfiguration = 0; -buildLoggingConfiguration() { - var o = new api.LoggingConfiguration(); - buildCounterLoggingConfiguration++; - if (buildCounterLoggingConfiguration < 3) { - o.driverLogLevels = buildUnnamed3178(); - } - buildCounterLoggingConfiguration--; - return o; -} - -checkLoggingConfiguration(api.LoggingConfiguration o) { - buildCounterLoggingConfiguration++; - if (buildCounterLoggingConfiguration < 3) { - checkUnnamed3178(o.driverLogLevels); - } - buildCounterLoggingConfiguration--; -} - -core.int buildCounterManagedGroupConfiguration = 0; -buildManagedGroupConfiguration() { - var o = new api.ManagedGroupConfiguration(); - buildCounterManagedGroupConfiguration++; - if (buildCounterManagedGroupConfiguration < 3) { - o.instanceGroupManagerName = "foo"; - o.instanceTemplateName = "foo"; - } - buildCounterManagedGroupConfiguration--; - return o; -} - -checkManagedGroupConfiguration(api.ManagedGroupConfiguration o) { - buildCounterManagedGroupConfiguration++; - if (buildCounterManagedGroupConfiguration < 3) { - unittest.expect(o.instanceGroupManagerName, unittest.equals('foo')); - unittest.expect(o.instanceTemplateName, unittest.equals('foo')); - } - buildCounterManagedGroupConfiguration--; -} - -core.int buildCounterNodeInitializationAction = 0; -buildNodeInitializationAction() { - var o = new api.NodeInitializationAction(); - buildCounterNodeInitializationAction++; - if (buildCounterNodeInitializationAction < 3) { - o.executableFile = "foo"; - o.executionTimeout = "foo"; - } - buildCounterNodeInitializationAction--; - return o; -} - -checkNodeInitializationAction(api.NodeInitializationAction o) { - buildCounterNodeInitializationAction++; - if (buildCounterNodeInitializationAction < 3) { - unittest.expect(o.executableFile, unittest.equals('foo')); - unittest.expect(o.executionTimeout, unittest.equals('foo')); - } - buildCounterNodeInitializationAction--; -} - -buildUnnamed3179() { - 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; -} - -checkUnnamed3179(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')); -} - -buildUnnamed3180() { - 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; -} - -checkUnnamed3180(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 = buildUnnamed3179(); - o.name = "foo"; - o.response = buildUnnamed3180(); - } - buildCounterOperation--; - return o; -} - -checkOperation(api.Operation o) { - buildCounterOperation++; - if (buildCounterOperation < 3) { - unittest.expect(o.done, unittest.isTrue); - checkStatus(o.error); - checkUnnamed3179(o.metadata); - unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3180(o.response); - } - buildCounterOperation--; -} - -buildUnnamed3181() { - var o = new core.List<api.OperationStatus>(); - o.add(buildOperationStatus()); - o.add(buildOperationStatus()); - return o; -} - -checkUnnamed3181(core.List<api.OperationStatus> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOperationStatus(o[0]); - checkOperationStatus(o[1]); -} - -buildUnnamed3182() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3182(core.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 buildCounterOperationMetadata = 0; -buildOperationMetadata() { - var o = new api.OperationMetadata(); - buildCounterOperationMetadata++; - if (buildCounterOperationMetadata < 3) { - o.clusterName = "foo"; - o.clusterUuid = "foo"; - o.description = "foo"; - o.operationType = "foo"; - o.status = buildOperationStatus(); - o.statusHistory = buildUnnamed3181(); - o.warnings = buildUnnamed3182(); - } - buildCounterOperationMetadata--; - return o; -} - -checkOperationMetadata(api.OperationMetadata o) { - buildCounterOperationMetadata++; - if (buildCounterOperationMetadata < 3) { - unittest.expect(o.clusterName, unittest.equals('foo')); - unittest.expect(o.clusterUuid, unittest.equals('foo')); - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.operationType, unittest.equals('foo')); - checkOperationStatus(o.status); - checkUnnamed3181(o.statusHistory); - checkUnnamed3182(o.warnings); - } - buildCounterOperationMetadata--; -} - -core.int buildCounterOperationStatus = 0; -buildOperationStatus() { - var o = new api.OperationStatus(); - buildCounterOperationStatus++; - if (buildCounterOperationStatus < 3) { - o.details = "foo"; - o.innerState = "foo"; - o.state = "foo"; - o.stateStartTime = "foo"; - } - buildCounterOperationStatus--; - return o; -} - -checkOperationStatus(api.OperationStatus o) { - buildCounterOperationStatus++; - if (buildCounterOperationStatus < 3) { - unittest.expect(o.details, unittest.equals('foo')); - unittest.expect(o.innerState, unittest.equals('foo')); - unittest.expect(o.state, unittest.equals('foo')); - unittest.expect(o.stateStartTime, unittest.equals('foo')); - } - buildCounterOperationStatus--; -} - -buildUnnamed3183() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3183(core.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() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed3184(core.Map<core.String, core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -buildUnnamed3185() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed3185(core.Map<core.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 buildCounterPigJob = 0; -buildPigJob() { - var o = new api.PigJob(); - buildCounterPigJob++; - if (buildCounterPigJob < 3) { - o.continueOnFailure = true; - o.jarFileUris = buildUnnamed3183(); - o.loggingConfiguration = buildLoggingConfiguration(); - o.properties = buildUnnamed3184(); - o.queryFileUri = "foo"; - o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed3185(); - } - buildCounterPigJob--; - return o; -} - -checkPigJob(api.PigJob o) { - buildCounterPigJob++; - if (buildCounterPigJob < 3) { - unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed3183(o.jarFileUris); - checkLoggingConfiguration(o.loggingConfiguration); - checkUnnamed3184(o.properties); - unittest.expect(o.queryFileUri, unittest.equals('foo')); - checkQueryList(o.queryList); - checkUnnamed3185(o.scriptVariables); - } - buildCounterPigJob--; -} - -buildUnnamed3186() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3186(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3187(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3188() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3188(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3189() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3189(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3190() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed3190(core.Map<core.String, core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -buildUnnamed3191() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3191(core.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 buildCounterPySparkJob = 0; -buildPySparkJob() { - var o = new api.PySparkJob(); - buildCounterPySparkJob++; - if (buildCounterPySparkJob < 3) { - o.archiveUris = buildUnnamed3186(); - o.args = buildUnnamed3187(); - o.fileUris = buildUnnamed3188(); - o.jarFileUris = buildUnnamed3189(); - o.loggingConfiguration = buildLoggingConfiguration(); - o.mainPythonFileUri = "foo"; - o.properties = buildUnnamed3190(); - o.pythonFileUris = buildUnnamed3191(); - } - buildCounterPySparkJob--; - return o; -} - -checkPySparkJob(api.PySparkJob o) { - buildCounterPySparkJob++; - if (buildCounterPySparkJob < 3) { - checkUnnamed3186(o.archiveUris); - checkUnnamed3187(o.args); - checkUnnamed3188(o.fileUris); - checkUnnamed3189(o.jarFileUris); - checkLoggingConfiguration(o.loggingConfiguration); - unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); - checkUnnamed3190(o.properties); - checkUnnamed3191(o.pythonFileUris); - } - buildCounterPySparkJob--; -} - -buildUnnamed3192() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3192(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterQueryList = 0; -buildQueryList() { - var o = new api.QueryList(); - buildCounterQueryList++; - if (buildCounterQueryList < 3) { - o.queries = buildUnnamed3192(); - } - buildCounterQueryList--; - return o; -} - -checkQueryList(api.QueryList o) { - buildCounterQueryList++; - if (buildCounterQueryList < 3) { - checkUnnamed3192(o.queries); - } - buildCounterQueryList--; -} - -buildUnnamed3193() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed3193(core.Map<core.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 buildCounterSoftwareConfiguration = 0; -buildSoftwareConfiguration() { - var o = new api.SoftwareConfiguration(); - buildCounterSoftwareConfiguration++; - if (buildCounterSoftwareConfiguration < 3) { - o.imageVersion = "foo"; - o.properties = buildUnnamed3193(); - } - buildCounterSoftwareConfiguration--; - return o; -} - -checkSoftwareConfiguration(api.SoftwareConfiguration o) { - buildCounterSoftwareConfiguration++; - if (buildCounterSoftwareConfiguration < 3) { - unittest.expect(o.imageVersion, unittest.equals('foo')); - checkUnnamed3193(o.properties); - } - buildCounterSoftwareConfiguration--; -} - -buildUnnamed3194() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3194(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3195() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3195(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3196() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3196(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3197() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3197(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3198() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed3198(core.Map<core.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 buildCounterSparkJob = 0; -buildSparkJob() { - var o = new api.SparkJob(); - buildCounterSparkJob++; - if (buildCounterSparkJob < 3) { - o.archiveUris = buildUnnamed3194(); - o.args = buildUnnamed3195(); - o.fileUris = buildUnnamed3196(); - o.jarFileUris = buildUnnamed3197(); - o.loggingConfiguration = buildLoggingConfiguration(); - o.mainClass = "foo"; - o.mainJarFileUri = "foo"; - o.properties = buildUnnamed3198(); - } - buildCounterSparkJob--; - return o; -} - -checkSparkJob(api.SparkJob o) { - buildCounterSparkJob++; - if (buildCounterSparkJob < 3) { - checkUnnamed3194(o.archiveUris); - checkUnnamed3195(o.args); - checkUnnamed3196(o.fileUris); - checkUnnamed3197(o.jarFileUris); - checkLoggingConfiguration(o.loggingConfiguration); - unittest.expect(o.mainClass, unittest.equals('foo')); - unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed3198(o.properties); - } - buildCounterSparkJob--; -} - -buildUnnamed3199() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3199(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3200() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed3200(core.Map<core.String, core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals('foo')); - unittest.expect(o["y"], unittest.equals('foo')); -} - -buildUnnamed3201() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed3201(core.Map<core.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 buildCounterSparkSqlJob = 0; -buildSparkSqlJob() { - var o = new api.SparkSqlJob(); - buildCounterSparkSqlJob++; - if (buildCounterSparkSqlJob < 3) { - o.jarFileUris = buildUnnamed3199(); - o.loggingConfiguration = buildLoggingConfiguration(); - o.properties = buildUnnamed3200(); - o.queryFileUri = "foo"; - o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed3201(); - } - buildCounterSparkSqlJob--; - return o; -} - -checkSparkSqlJob(api.SparkSqlJob o) { - buildCounterSparkSqlJob++; - if (buildCounterSparkSqlJob < 3) { - checkUnnamed3199(o.jarFileUris); - checkLoggingConfiguration(o.loggingConfiguration); - checkUnnamed3200(o.properties); - unittest.expect(o.queryFileUri, unittest.equals('foo')); - checkQueryList(o.queryList); - checkUnnamed3201(o.scriptVariables); - } - buildCounterSparkSqlJob--; -} - -buildUnnamed3202() { - 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; -} - -checkUnnamed3202(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')); -} - -buildUnnamed3203() { - var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3202()); - o.add(buildUnnamed3202()); - return o; -} - -checkUnnamed3203(core.List<core.Map<core.String, core.Object>> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3202(o[0]); - checkUnnamed3202(o[1]); -} - -core.int buildCounterStatus = 0; -buildStatus() { - var o = new api.Status(); - buildCounterStatus++; - if (buildCounterStatus < 3) { - o.code = 42; - o.details = buildUnnamed3203(); - o.message = "foo"; - } - buildCounterStatus--; - return o; -} - -checkStatus(api.Status o) { - buildCounterStatus++; - if (buildCounterStatus < 3) { - unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3203(o.details); - unittest.expect(o.message, unittest.equals('foo')); - } - buildCounterStatus--; -} - -core.int buildCounterSubmitJobRequest = 0; -buildSubmitJobRequest() { - var o = new api.SubmitJobRequest(); - buildCounterSubmitJobRequest++; - if (buildCounterSubmitJobRequest < 3) { - o.job = buildJob(); - } - buildCounterSubmitJobRequest--; - return o; -} - -checkSubmitJobRequest(api.SubmitJobRequest o) { - buildCounterSubmitJobRequest++; - if (buildCounterSubmitJobRequest < 3) { - checkJob(o.job); - } - buildCounterSubmitJobRequest--; -} - -core.int buildCounterYarnApplication = 0; -buildYarnApplication() { - var o = new api.YarnApplication(); - buildCounterYarnApplication++; - if (buildCounterYarnApplication < 3) { - o.name = "foo"; - o.progress = 42.0; - o.state = "foo"; - o.trackingUrl = "foo"; - } - buildCounterYarnApplication--; - return o; -} - -checkYarnApplication(api.YarnApplication o) { - buildCounterYarnApplication++; - if (buildCounterYarnApplication < 3) { - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.progress, unittest.equals(42.0)); - unittest.expect(o.state, unittest.equals('foo')); - unittest.expect(o.trackingUrl, unittest.equals('foo')); - } - buildCounterYarnApplication--; -} - - -main() { - unittest.group("obj-schema-AcceleratorConfiguration", () { - unittest.test("to-json--from-json", () { - var o = buildAcceleratorConfiguration(); - var od = new api.AcceleratorConfiguration.fromJson(o.toJson()); - checkAcceleratorConfiguration(od); - }); - }); - - - unittest.group("obj-schema-CancelJobRequest", () { - unittest.test("to-json--from-json", () { - var o = buildCancelJobRequest(); - var od = new api.CancelJobRequest.fromJson(o.toJson()); - checkCancelJobRequest(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-Cluster", () { - unittest.test("to-json--from-json", () { - var o = buildCluster(); - var od = new api.Cluster.fromJson(o.toJson()); - checkCluster(od); - }); - }); - - - unittest.group("obj-schema-ClusterConfiguration", () { - unittest.test("to-json--from-json", () { - var o = buildClusterConfiguration(); - var od = new api.ClusterConfiguration.fromJson(o.toJson()); - checkClusterConfiguration(od); - }); - }); - - - unittest.group("obj-schema-ClusterMetrics", () { - unittest.test("to-json--from-json", () { - var o = buildClusterMetrics(); - var od = new api.ClusterMetrics.fromJson(o.toJson()); - checkClusterMetrics(od); - }); - }); - - - unittest.group("obj-schema-ClusterOperationMetadata", () { - unittest.test("to-json--from-json", () { - var o = buildClusterOperationMetadata(); - var od = new api.ClusterOperationMetadata.fromJson(o.toJson()); - checkClusterOperationMetadata(od); - }); - }); - - - unittest.group("obj-schema-ClusterOperationStatus", () { - unittest.test("to-json--from-json", () { - var o = buildClusterOperationStatus(); - var od = new api.ClusterOperationStatus.fromJson(o.toJson()); - checkClusterOperationStatus(od); - }); - }); - - - unittest.group("obj-schema-ClusterStatus", () { - unittest.test("to-json--from-json", () { - var o = buildClusterStatus(); - var od = new api.ClusterStatus.fromJson(o.toJson()); - checkClusterStatus(od); - }); - }); - - - unittest.group("obj-schema-DiagnoseClusterOutputLocation", () { - unittest.test("to-json--from-json", () { - var o = buildDiagnoseClusterOutputLocation(); - var od = new api.DiagnoseClusterOutputLocation.fromJson(o.toJson()); - checkDiagnoseClusterOutputLocation(od); - }); - }); - - - unittest.group("obj-schema-DiagnoseClusterRequest", () { - unittest.test("to-json--from-json", () { - var o = buildDiagnoseClusterRequest(); - var od = new api.DiagnoseClusterRequest.fromJson(o.toJson()); - checkDiagnoseClusterRequest(od); - }); - }); - - - unittest.group("obj-schema-DiagnoseClusterResults", () { - unittest.test("to-json--from-json", () { - var o = buildDiagnoseClusterResults(); - var od = new api.DiagnoseClusterResults.fromJson(o.toJson()); - checkDiagnoseClusterResults(od); - }); - }); - - - unittest.group("obj-schema-DiskConfiguration", () { - unittest.test("to-json--from-json", () { - var o = buildDiskConfiguration(); - var od = new api.DiskConfiguration.fromJson(o.toJson()); - checkDiskConfiguration(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-GceClusterConfiguration", () { - unittest.test("to-json--from-json", () { - var o = buildGceClusterConfiguration(); - var od = new api.GceClusterConfiguration.fromJson(o.toJson()); - checkGceClusterConfiguration(od); - }); - }); - - - unittest.group("obj-schema-HadoopJob", () { - unittest.test("to-json--from-json", () { - var o = buildHadoopJob(); - var od = new api.HadoopJob.fromJson(o.toJson()); - checkHadoopJob(od); - }); - }); - - - unittest.group("obj-schema-HiveJob", () { - unittest.test("to-json--from-json", () { - var o = buildHiveJob(); - var od = new api.HiveJob.fromJson(o.toJson()); - checkHiveJob(od); - }); - }); - - - unittest.group("obj-schema-InstanceGroupConfiguration", () { - unittest.test("to-json--from-json", () { - var o = buildInstanceGroupConfiguration(); - var od = new api.InstanceGroupConfiguration.fromJson(o.toJson()); - checkInstanceGroupConfiguration(od); - }); - }); - - - unittest.group("obj-schema-Job", () { - unittest.test("to-json--from-json", () { - var o = buildJob(); - var od = new api.Job.fromJson(o.toJson()); - checkJob(od); - }); - }); - - - unittest.group("obj-schema-JobPlacement", () { - unittest.test("to-json--from-json", () { - var o = buildJobPlacement(); - var od = new api.JobPlacement.fromJson(o.toJson()); - checkJobPlacement(od); - }); - }); - - - unittest.group("obj-schema-JobReference", () { - unittest.test("to-json--from-json", () { - var o = buildJobReference(); - var od = new api.JobReference.fromJson(o.toJson()); - checkJobReference(od); - }); - }); - - - unittest.group("obj-schema-JobScheduling", () { - unittest.test("to-json--from-json", () { - var o = buildJobScheduling(); - var od = new api.JobScheduling.fromJson(o.toJson()); - checkJobScheduling(od); - }); - }); - - - unittest.group("obj-schema-JobStatus", () { - unittest.test("to-json--from-json", () { - var o = buildJobStatus(); - var od = new api.JobStatus.fromJson(o.toJson()); - checkJobStatus(od); - }); - }); - - - unittest.group("obj-schema-ListClustersResponse", () { - unittest.test("to-json--from-json", () { - var o = buildListClustersResponse(); - var od = new api.ListClustersResponse.fromJson(o.toJson()); - checkListClustersResponse(od); - }); - }); - - - unittest.group("obj-schema-ListJobsResponse", () { - unittest.test("to-json--from-json", () { - var o = buildListJobsResponse(); - var od = new api.ListJobsResponse.fromJson(o.toJson()); - checkListJobsResponse(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-LoggingConfiguration", () { - unittest.test("to-json--from-json", () { - var o = buildLoggingConfiguration(); - var od = new api.LoggingConfiguration.fromJson(o.toJson()); - checkLoggingConfiguration(od); - }); - }); - - - unittest.group("obj-schema-ManagedGroupConfiguration", () { - unittest.test("to-json--from-json", () { - var o = buildManagedGroupConfiguration(); - var od = new api.ManagedGroupConfiguration.fromJson(o.toJson()); - checkManagedGroupConfiguration(od); - }); - }); - - - unittest.group("obj-schema-NodeInitializationAction", () { - unittest.test("to-json--from-json", () { - var o = buildNodeInitializationAction(); - var od = new api.NodeInitializationAction.fromJson(o.toJson()); - checkNodeInitializationAction(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-OperationStatus", () { - unittest.test("to-json--from-json", () { - var o = buildOperationStatus(); - var od = new api.OperationStatus.fromJson(o.toJson()); - checkOperationStatus(od); - }); - }); - - - unittest.group("obj-schema-PigJob", () { - unittest.test("to-json--from-json", () { - var o = buildPigJob(); - var od = new api.PigJob.fromJson(o.toJson()); - checkPigJob(od); - }); - }); - - - unittest.group("obj-schema-PySparkJob", () { - unittest.test("to-json--from-json", () { - var o = buildPySparkJob(); - var od = new api.PySparkJob.fromJson(o.toJson()); - checkPySparkJob(od); - }); - }); - - - unittest.group("obj-schema-QueryList", () { - unittest.test("to-json--from-json", () { - var o = buildQueryList(); - var od = new api.QueryList.fromJson(o.toJson()); - checkQueryList(od); - }); - }); - - - unittest.group("obj-schema-SoftwareConfiguration", () { - unittest.test("to-json--from-json", () { - var o = buildSoftwareConfiguration(); - var od = new api.SoftwareConfiguration.fromJson(o.toJson()); - checkSoftwareConfiguration(od); - }); - }); - - - unittest.group("obj-schema-SparkJob", () { - unittest.test("to-json--from-json", () { - var o = buildSparkJob(); - var od = new api.SparkJob.fromJson(o.toJson()); - checkSparkJob(od); - }); - }); - - - unittest.group("obj-schema-SparkSqlJob", () { - unittest.test("to-json--from-json", () { - var o = buildSparkSqlJob(); - var od = new api.SparkSqlJob.fromJson(o.toJson()); - checkSparkSqlJob(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-SubmitJobRequest", () { - unittest.test("to-json--from-json", () { - var o = buildSubmitJobRequest(); - var od = new api.SubmitJobRequest.fromJson(o.toJson()); - checkSubmitJobRequest(od); - }); - }); - - - unittest.group("obj-schema-YarnApplication", () { - unittest.test("to-json--from-json", () { - var o = buildYarnApplication(); - var od = new api.YarnApplication.fromJson(o.toJson()); - checkYarnApplication(od); - }); - }); - - - unittest.group("resource-OperationsResourceApi", () { - unittest.test("method--cancel", () { - - var mock = new HttpServerMock(); - api.OperationsResourceApi res = new api.DataprocApi(mock).operations; - var arg_request = buildCancelOperationRequest(); - var arg_name = "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 + 8), unittest.equals("v1beta1/")); - pathOffset += 8; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildEmpty()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.cancel(arg_request, arg_name).then(unittest.expectAsync1(((api.Empty response) { - checkEmpty(response); - }))); - }); - - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.OperationsResourceApi res = new api.DataprocApi(mock).operations; - var arg_name = "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("v1beta1/")); - pathOffset += 8; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildEmpty()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { - checkEmpty(response); - }))); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.OperationsResourceApi res = new api.DataprocApi(mock).operations; - var arg_name = "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("v1beta1/")); - pathOffset += 8; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOperation()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { - checkOperation(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.OperationsResourceApi res = new api.DataprocApi(mock).operations; - var arg_name = "foo"; - var arg_filter = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; - 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("v1beta1/")); - pathOffset += 8; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(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)); - - - 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, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse response) { - checkListOperationsResponse(response); - }))); - }); - - }); - - - unittest.group("resource-ProjectsClustersResourceApi", () { - unittest.test("method--create", () { - - var mock = new HttpServerMock(); - api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.clusters; - var arg_request = buildCluster(); - var arg_projectId = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.Cluster.fromJson(json); - checkCluster(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1beta1/projects/")); - pathOffset += 17; - index = path.indexOf("/clusters", 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 + 9), unittest.equals("/clusters")); - pathOffset += 9; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOperation()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.create(arg_request, arg_projectId).then(unittest.expectAsync1(((api.Operation response) { - checkOperation(response); - }))); - }); - - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.clusters; - var arg_projectId = "foo"; - var arg_clusterName = "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 + 17), unittest.equals("v1beta1/projects/")); - pathOffset += 17; - index = path.indexOf("/clusters/", 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 + 10), unittest.equals("/clusters/")); - pathOffset += 10; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_clusterName")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOperation()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_projectId, arg_clusterName).then(unittest.expectAsync1(((api.Operation response) { - checkOperation(response); - }))); - }); - - unittest.test("method--diagnose", () { - - var mock = new HttpServerMock(); - api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.clusters; - var arg_request = buildDiagnoseClusterRequest(); - var arg_projectId = "foo"; - var arg_clusterName = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.DiagnoseClusterRequest.fromJson(json); - checkDiagnoseClusterRequest(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1beta1/projects/")); - pathOffset += 17; - index = path.indexOf("/clusters/", 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 + 10), unittest.equals("/clusters/")); - pathOffset += 10; - index = path.indexOf(":diagnose", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_clusterName")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals(":diagnose")); - pathOffset += 9; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOperation()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.diagnose(arg_request, arg_projectId, arg_clusterName).then(unittest.expectAsync1(((api.Operation response) { - checkOperation(response); - }))); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.clusters; - var arg_projectId = "foo"; - var arg_clusterName = "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 + 17), unittest.equals("v1beta1/projects/")); - pathOffset += 17; - index = path.indexOf("/clusters/", 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 + 10), unittest.equals("/clusters/")); - pathOffset += 10; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_clusterName")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - 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_projectId, arg_clusterName).then(unittest.expectAsync1(((api.Cluster response) { - checkCluster(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.clusters; - var arg_projectId = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; - var arg_filter = "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 + 17), unittest.equals("v1beta1/projects/")); - pathOffset += 17; - index = path.indexOf("/clusters", 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 + 9), unittest.equals("/clusters")); - pathOffset += 9; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["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)); - - - 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_projectId, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListClustersResponse response) { - checkListClustersResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.clusters; - var arg_request = buildCluster(); - var arg_projectId = "foo"; - var arg_clusterName = "foo"; - var arg_updateMask = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.Cluster.fromJson(json); - checkCluster(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1beta1/projects/")); - pathOffset += 17; - index = path.indexOf("/clusters/", 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 + 10), unittest.equals("/clusters/")); - pathOffset += 10; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_clusterName")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOperation()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_projectId, arg_clusterName, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Operation response) { - checkOperation(response); - }))); - }); - - }); - - - unittest.group("resource-ProjectsJobsResourceApi", () { - unittest.test("method--cancel", () { - - var mock = new HttpServerMock(); - api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; - var arg_request = buildCancelJobRequest(); - var arg_projectId = "foo"; - var arg_jobId = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.CancelJobRequest.fromJson(json); - checkCancelJobRequest(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1beta1/projects/")); - pathOffset += 17; - index = path.indexOf("/jobs/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/jobs/")); - pathOffset += 6; - index = path.indexOf(":cancel", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_jobId")); - unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals(":cancel")); - pathOffset += 7; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildJob()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.cancel(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsync1(((api.Job response) { - checkJob(response); - }))); - }); - - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; - var arg_projectId = "foo"; - var arg_jobId = "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 + 17), unittest.equals("v1beta1/projects/")); - pathOffset += 17; - index = path.indexOf("/jobs/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/jobs/")); - pathOffset += 6; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_jobId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildEmpty()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_projectId, arg_jobId).then(unittest.expectAsync1(((api.Empty response) { - checkEmpty(response); - }))); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; - var arg_projectId = "foo"; - var arg_jobId = "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 + 17), unittest.equals("v1beta1/projects/")); - pathOffset += 17; - index = path.indexOf("/jobs/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/jobs/")); - pathOffset += 6; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_jobId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildJob()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_projectId, arg_jobId).then(unittest.expectAsync1(((api.Job response) { - checkJob(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; - var arg_projectId = "foo"; - var arg_clusterName = "foo"; - var arg_filter = "foo"; - var arg_jobStateMatcher = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; - 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 + 17), unittest.equals("v1beta1/projects/")); - pathOffset += 17; - index = path.indexOf("/jobs", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equals("/jobs")); - pathOffset += 5; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["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["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildListJobsResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_projectId, clusterName: arg_clusterName, filter: arg_filter, jobStateMatcher: arg_jobStateMatcher, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListJobsResponse response) { - checkListJobsResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; - var arg_request = buildJob(); - var arg_projectId = "foo"; - var arg_jobId = "foo"; - var arg_updateMask = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.Job.fromJson(json); - checkJob(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1beta1/projects/")); - pathOffset += 17; - index = path.indexOf("/jobs/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/jobs/")); - pathOffset += 6; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_jobId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildJob()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_projectId, arg_jobId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Job response) { - checkJob(response); - }))); - }); - - unittest.test("method--submit", () { - - var mock = new HttpServerMock(); - api.ProjectsJobsResourceApi res = new api.DataprocApi(mock).projects.jobs; - var arg_request = buildSubmitJobRequest(); - var arg_projectId = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.SubmitJobRequest.fromJson(json); - checkSubmitJobRequest(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1beta1/projects/")); - pathOffset += 17; - index = path.indexOf("/jobs:submit", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/jobs:submit")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildJob()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.submit(arg_request, arg_projectId).then(unittest.expectAsync1(((api.Job response) { - checkJob(response); - }))); - }); - - }); - - -} -
diff --git a/generated/googleapis_beta/test/dlp/v2beta1_test.dart b/generated/googleapis_beta/test/dlp/v2beta1_test.dart index d3f832d..8f949c7 100644 --- a/generated/googleapis_beta/test/dlp/v2beta1_test.dart +++ b/generated/googleapis_beta/test/dlp/v2beta1_test.dart
@@ -68,14 +68,14 @@ buildCounterGoogleLongrunningCancelOperationRequest--; } -buildUnnamed3287() { +buildUnnamed3283() { var o = new core.List<api.GoogleLongrunningOperation>(); o.add(buildGoogleLongrunningOperation()); o.add(buildGoogleLongrunningOperation()); return o; } -checkUnnamed3287(core.List<api.GoogleLongrunningOperation> o) { +checkUnnamed3283(core.List<api.GoogleLongrunningOperation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleLongrunningOperation(o[0]); checkGoogleLongrunningOperation(o[1]); @@ -87,7 +87,7 @@ buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3287(); + o.operations = buildUnnamed3283(); } buildCounterGoogleLongrunningListOperationsResponse--; return o; @@ -97,32 +97,32 @@ buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3287(o.operations); + checkUnnamed3283(o.operations); } buildCounterGoogleLongrunningListOperationsResponse--; } -buildUnnamed3288() { +buildUnnamed3284() { 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; } -checkUnnamed3288(core.Map<core.String, core.Object> o) { +checkUnnamed3284(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')); } -buildUnnamed3289() { +buildUnnamed3285() { 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; } -checkUnnamed3289(core.Map<core.String, core.Object> o) { +checkUnnamed3285(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')); @@ -135,9 +135,9 @@ if (buildCounterGoogleLongrunningOperation < 3) { o.done = true; o.error = buildGoogleRpcStatus(); - o.metadata = buildUnnamed3288(); + o.metadata = buildUnnamed3284(); o.name = "foo"; - o.response = buildUnnamed3289(); + o.response = buildUnnamed3285(); } buildCounterGoogleLongrunningOperation--; return o; @@ -148,9 +148,9 @@ if (buildCounterGoogleLongrunningOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkGoogleRpcStatus(o.error); - checkUnnamed3288(o.metadata); + checkUnnamed3284(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3289(o.response); + checkUnnamed3285(o.response); } buildCounterGoogleLongrunningOperation--; } @@ -323,14 +323,14 @@ buildCounterGooglePrivacyDlpV2beta1DatastoreKey--; } -buildUnnamed3290() { +buildUnnamed3286() { var o = new core.List<api.GooglePrivacyDlpV2beta1Projection>(); o.add(buildGooglePrivacyDlpV2beta1Projection()); o.add(buildGooglePrivacyDlpV2beta1Projection()); return o; } -checkUnnamed3290(core.List<api.GooglePrivacyDlpV2beta1Projection> o) { +checkUnnamed3286(core.List<api.GooglePrivacyDlpV2beta1Projection> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2beta1Projection(o[0]); checkGooglePrivacyDlpV2beta1Projection(o[1]); @@ -343,7 +343,7 @@ if (buildCounterGooglePrivacyDlpV2beta1DatastoreOptions < 3) { o.kind = buildGooglePrivacyDlpV2beta1KindExpression(); o.partitionId = buildGooglePrivacyDlpV2beta1PartitionId(); - o.projection = buildUnnamed3290(); + o.projection = buildUnnamed3286(); } buildCounterGooglePrivacyDlpV2beta1DatastoreOptions--; return o; @@ -354,7 +354,7 @@ if (buildCounterGooglePrivacyDlpV2beta1DatastoreOptions < 3) { checkGooglePrivacyDlpV2beta1KindExpression(o.kind); checkGooglePrivacyDlpV2beta1PartitionId(o.partitionId); - checkUnnamed3290(o.projection); + checkUnnamed3286(o.projection); } buildCounterGooglePrivacyDlpV2beta1DatastoreOptions--; } @@ -491,14 +491,14 @@ buildCounterGooglePrivacyDlpV2beta1InfoType--; } -buildUnnamed3291() { +buildUnnamed3287() { var o = new core.List<api.GooglePrivacyDlpV2beta1CategoryDescription>(); o.add(buildGooglePrivacyDlpV2beta1CategoryDescription()); o.add(buildGooglePrivacyDlpV2beta1CategoryDescription()); return o; } -checkUnnamed3291(core.List<api.GooglePrivacyDlpV2beta1CategoryDescription> o) { +checkUnnamed3287(core.List<api.GooglePrivacyDlpV2beta1CategoryDescription> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2beta1CategoryDescription(o[0]); checkGooglePrivacyDlpV2beta1CategoryDescription(o[1]); @@ -509,7 +509,7 @@ var o = new api.GooglePrivacyDlpV2beta1InfoTypeDescription(); buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription++; if (buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription < 3) { - o.categories = buildUnnamed3291(); + o.categories = buildUnnamed3287(); o.displayName = "foo"; o.name = "foo"; } @@ -520,7 +520,7 @@ checkGooglePrivacyDlpV2beta1InfoTypeDescription(api.GooglePrivacyDlpV2beta1InfoTypeDescription o) { buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription++; if (buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription < 3) { - checkUnnamed3291(o.categories); + checkUnnamed3287(o.categories); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -548,14 +548,14 @@ buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics--; } -buildUnnamed3292() { +buildUnnamed3288() { var o = new core.List<api.GooglePrivacyDlpV2beta1InfoType>(); o.add(buildGooglePrivacyDlpV2beta1InfoType()); o.add(buildGooglePrivacyDlpV2beta1InfoType()); return o; } -checkUnnamed3292(core.List<api.GooglePrivacyDlpV2beta1InfoType> o) { +checkUnnamed3288(core.List<api.GooglePrivacyDlpV2beta1InfoType> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2beta1InfoType(o[0]); checkGooglePrivacyDlpV2beta1InfoType(o[1]); @@ -568,7 +568,7 @@ if (buildCounterGooglePrivacyDlpV2beta1InspectConfig < 3) { o.excludeTypes = true; o.includeQuote = true; - o.infoTypes = buildUnnamed3292(); + o.infoTypes = buildUnnamed3288(); o.maxFindings = 42; o.minLikelihood = "foo"; } @@ -581,21 +581,21 @@ if (buildCounterGooglePrivacyDlpV2beta1InspectConfig < 3) { unittest.expect(o.excludeTypes, unittest.isTrue); unittest.expect(o.includeQuote, unittest.isTrue); - checkUnnamed3292(o.infoTypes); + checkUnnamed3288(o.infoTypes); unittest.expect(o.maxFindings, unittest.equals(42)); unittest.expect(o.minLikelihood, unittest.equals('foo')); } buildCounterGooglePrivacyDlpV2beta1InspectConfig--; } -buildUnnamed3293() { +buildUnnamed3289() { var o = new core.List<api.GooglePrivacyDlpV2beta1ContentItem>(); o.add(buildGooglePrivacyDlpV2beta1ContentItem()); o.add(buildGooglePrivacyDlpV2beta1ContentItem()); return o; } -checkUnnamed3293(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) { +checkUnnamed3289(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2beta1ContentItem(o[0]); checkGooglePrivacyDlpV2beta1ContentItem(o[1]); @@ -607,7 +607,7 @@ buildCounterGooglePrivacyDlpV2beta1InspectContentRequest++; if (buildCounterGooglePrivacyDlpV2beta1InspectContentRequest < 3) { o.inspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig(); - o.items = buildUnnamed3293(); + o.items = buildUnnamed3289(); } buildCounterGooglePrivacyDlpV2beta1InspectContentRequest--; return o; @@ -617,19 +617,19 @@ buildCounterGooglePrivacyDlpV2beta1InspectContentRequest++; if (buildCounterGooglePrivacyDlpV2beta1InspectContentRequest < 3) { checkGooglePrivacyDlpV2beta1InspectConfig(o.inspectConfig); - checkUnnamed3293(o.items); + checkUnnamed3289(o.items); } buildCounterGooglePrivacyDlpV2beta1InspectContentRequest--; } -buildUnnamed3294() { +buildUnnamed3290() { var o = new core.List<api.GooglePrivacyDlpV2beta1InspectResult>(); o.add(buildGooglePrivacyDlpV2beta1InspectResult()); o.add(buildGooglePrivacyDlpV2beta1InspectResult()); return o; } -checkUnnamed3294(core.List<api.GooglePrivacyDlpV2beta1InspectResult> o) { +checkUnnamed3290(core.List<api.GooglePrivacyDlpV2beta1InspectResult> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2beta1InspectResult(o[0]); checkGooglePrivacyDlpV2beta1InspectResult(o[1]); @@ -640,7 +640,7 @@ var o = new api.GooglePrivacyDlpV2beta1InspectContentResponse(); buildCounterGooglePrivacyDlpV2beta1InspectContentResponse++; if (buildCounterGooglePrivacyDlpV2beta1InspectContentResponse < 3) { - o.results = buildUnnamed3294(); + o.results = buildUnnamed3290(); } buildCounterGooglePrivacyDlpV2beta1InspectContentResponse--; return o; @@ -649,19 +649,19 @@ checkGooglePrivacyDlpV2beta1InspectContentResponse(api.GooglePrivacyDlpV2beta1InspectContentResponse o) { buildCounterGooglePrivacyDlpV2beta1InspectContentResponse++; if (buildCounterGooglePrivacyDlpV2beta1InspectContentResponse < 3) { - checkUnnamed3294(o.results); + checkUnnamed3290(o.results); } buildCounterGooglePrivacyDlpV2beta1InspectContentResponse--; } -buildUnnamed3295() { +buildUnnamed3291() { var o = new core.List<api.GooglePrivacyDlpV2beta1InfoTypeStatistics>(); o.add(buildGooglePrivacyDlpV2beta1InfoTypeStatistics()); o.add(buildGooglePrivacyDlpV2beta1InfoTypeStatistics()); return o; } -checkUnnamed3295(core.List<api.GooglePrivacyDlpV2beta1InfoTypeStatistics> o) { +checkUnnamed3291(core.List<api.GooglePrivacyDlpV2beta1InfoTypeStatistics> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2beta1InfoTypeStatistics(o[0]); checkGooglePrivacyDlpV2beta1InfoTypeStatistics(o[1]); @@ -673,7 +673,7 @@ buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata++; if (buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata < 3) { o.createTime = "foo"; - o.infoTypeStats = buildUnnamed3295(); + o.infoTypeStats = buildUnnamed3291(); o.processedBytes = "foo"; o.requestInspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig(); o.requestOutputConfig = buildGooglePrivacyDlpV2beta1OutputStorageConfig(); @@ -688,7 +688,7 @@ buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata++; if (buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata < 3) { unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed3295(o.infoTypeStats); + checkUnnamed3291(o.infoTypeStats); unittest.expect(o.processedBytes, unittest.equals('foo')); checkGooglePrivacyDlpV2beta1InspectConfig(o.requestInspectConfig); checkGooglePrivacyDlpV2beta1OutputStorageConfig(o.requestOutputConfig); @@ -717,14 +717,14 @@ buildCounterGooglePrivacyDlpV2beta1InspectOperationResult--; } -buildUnnamed3296() { +buildUnnamed3292() { var o = new core.List<api.GooglePrivacyDlpV2beta1Finding>(); o.add(buildGooglePrivacyDlpV2beta1Finding()); o.add(buildGooglePrivacyDlpV2beta1Finding()); return o; } -checkUnnamed3296(core.List<api.GooglePrivacyDlpV2beta1Finding> o) { +checkUnnamed3292(core.List<api.GooglePrivacyDlpV2beta1Finding> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2beta1Finding(o[0]); checkGooglePrivacyDlpV2beta1Finding(o[1]); @@ -735,7 +735,7 @@ var o = new api.GooglePrivacyDlpV2beta1InspectResult(); buildCounterGooglePrivacyDlpV2beta1InspectResult++; if (buildCounterGooglePrivacyDlpV2beta1InspectResult < 3) { - o.findings = buildUnnamed3296(); + o.findings = buildUnnamed3292(); o.findingsTruncated = true; } buildCounterGooglePrivacyDlpV2beta1InspectResult--; @@ -745,20 +745,20 @@ checkGooglePrivacyDlpV2beta1InspectResult(api.GooglePrivacyDlpV2beta1InspectResult o) { buildCounterGooglePrivacyDlpV2beta1InspectResult++; if (buildCounterGooglePrivacyDlpV2beta1InspectResult < 3) { - checkUnnamed3296(o.findings); + checkUnnamed3292(o.findings); unittest.expect(o.findingsTruncated, unittest.isTrue); } buildCounterGooglePrivacyDlpV2beta1InspectResult--; } -buildUnnamed3297() { +buildUnnamed3293() { var o = new core.List<api.GooglePrivacyDlpV2beta1PathElement>(); o.add(buildGooglePrivacyDlpV2beta1PathElement()); o.add(buildGooglePrivacyDlpV2beta1PathElement()); return o; } -checkUnnamed3297(core.List<api.GooglePrivacyDlpV2beta1PathElement> o) { +checkUnnamed3293(core.List<api.GooglePrivacyDlpV2beta1PathElement> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2beta1PathElement(o[0]); checkGooglePrivacyDlpV2beta1PathElement(o[1]); @@ -770,7 +770,7 @@ buildCounterGooglePrivacyDlpV2beta1Key++; if (buildCounterGooglePrivacyDlpV2beta1Key < 3) { o.partitionId = buildGooglePrivacyDlpV2beta1PartitionId(); - o.path = buildUnnamed3297(); + o.path = buildUnnamed3293(); } buildCounterGooglePrivacyDlpV2beta1Key--; return o; @@ -780,7 +780,7 @@ buildCounterGooglePrivacyDlpV2beta1Key++; if (buildCounterGooglePrivacyDlpV2beta1Key < 3) { checkGooglePrivacyDlpV2beta1PartitionId(o.partitionId); - checkUnnamed3297(o.path); + checkUnnamed3293(o.path); } buildCounterGooglePrivacyDlpV2beta1Key--; } @@ -804,14 +804,14 @@ buildCounterGooglePrivacyDlpV2beta1KindExpression--; } -buildUnnamed3298() { +buildUnnamed3294() { var o = new core.List<api.GooglePrivacyDlpV2beta1InfoTypeDescription>(); o.add(buildGooglePrivacyDlpV2beta1InfoTypeDescription()); o.add(buildGooglePrivacyDlpV2beta1InfoTypeDescription()); return o; } -checkUnnamed3298(core.List<api.GooglePrivacyDlpV2beta1InfoTypeDescription> o) { +checkUnnamed3294(core.List<api.GooglePrivacyDlpV2beta1InfoTypeDescription> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2beta1InfoTypeDescription(o[0]); checkGooglePrivacyDlpV2beta1InfoTypeDescription(o[1]); @@ -822,7 +822,7 @@ var o = new api.GooglePrivacyDlpV2beta1ListInfoTypesResponse(); buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse++; if (buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse < 3) { - o.infoTypes = buildUnnamed3298(); + o.infoTypes = buildUnnamed3294(); } buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse--; return o; @@ -831,7 +831,7 @@ checkGooglePrivacyDlpV2beta1ListInfoTypesResponse(api.GooglePrivacyDlpV2beta1ListInfoTypesResponse o) { buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse++; if (buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse < 3) { - checkUnnamed3298(o.infoTypes); + checkUnnamed3294(o.infoTypes); } buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse--; } @@ -857,14 +857,14 @@ buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse--; } -buildUnnamed3299() { +buildUnnamed3295() { var o = new core.List<api.GooglePrivacyDlpV2beta1CategoryDescription>(); o.add(buildGooglePrivacyDlpV2beta1CategoryDescription()); o.add(buildGooglePrivacyDlpV2beta1CategoryDescription()); return o; } -checkUnnamed3299(core.List<api.GooglePrivacyDlpV2beta1CategoryDescription> o) { +checkUnnamed3295(core.List<api.GooglePrivacyDlpV2beta1CategoryDescription> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2beta1CategoryDescription(o[0]); checkGooglePrivacyDlpV2beta1CategoryDescription(o[1]); @@ -875,7 +875,7 @@ var o = new api.GooglePrivacyDlpV2beta1ListRootCategoriesResponse(); buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse++; if (buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse < 3) { - o.categories = buildUnnamed3299(); + o.categories = buildUnnamed3295(); } buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse--; return o; @@ -884,19 +884,19 @@ checkGooglePrivacyDlpV2beta1ListRootCategoriesResponse(api.GooglePrivacyDlpV2beta1ListRootCategoriesResponse o) { buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse++; if (buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse < 3) { - checkUnnamed3299(o.categories); + checkUnnamed3295(o.categories); } buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse--; } -buildUnnamed3300() { +buildUnnamed3296() { var o = new core.List<api.GooglePrivacyDlpV2beta1ImageLocation>(); o.add(buildGooglePrivacyDlpV2beta1ImageLocation()); o.add(buildGooglePrivacyDlpV2beta1ImageLocation()); return o; } -checkUnnamed3300(core.List<api.GooglePrivacyDlpV2beta1ImageLocation> o) { +checkUnnamed3296(core.List<api.GooglePrivacyDlpV2beta1ImageLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2beta1ImageLocation(o[0]); checkGooglePrivacyDlpV2beta1ImageLocation(o[1]); @@ -910,7 +910,7 @@ o.byteRange = buildGooglePrivacyDlpV2beta1Range(); o.codepointRange = buildGooglePrivacyDlpV2beta1Range(); o.fieldId = buildGooglePrivacyDlpV2beta1FieldId(); - o.imageBoxes = buildUnnamed3300(); + o.imageBoxes = buildUnnamed3296(); o.recordKey = buildGooglePrivacyDlpV2beta1RecordKey(); } buildCounterGooglePrivacyDlpV2beta1Location--; @@ -923,7 +923,7 @@ checkGooglePrivacyDlpV2beta1Range(o.byteRange); checkGooglePrivacyDlpV2beta1Range(o.codepointRange); checkGooglePrivacyDlpV2beta1FieldId(o.fieldId); - checkUnnamed3300(o.imageBoxes); + checkUnnamed3296(o.imageBoxes); checkGooglePrivacyDlpV2beta1RecordKey(o.recordKey); } buildCounterGooglePrivacyDlpV2beta1Location--; @@ -1072,40 +1072,40 @@ buildCounterGooglePrivacyDlpV2beta1RecordKey--; } -buildUnnamed3301() { +buildUnnamed3297() { var o = new core.List<api.GooglePrivacyDlpV2beta1ImageRedactionConfig>(); o.add(buildGooglePrivacyDlpV2beta1ImageRedactionConfig()); o.add(buildGooglePrivacyDlpV2beta1ImageRedactionConfig()); return o; } -checkUnnamed3301(core.List<api.GooglePrivacyDlpV2beta1ImageRedactionConfig> o) { +checkUnnamed3297(core.List<api.GooglePrivacyDlpV2beta1ImageRedactionConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2beta1ImageRedactionConfig(o[0]); checkGooglePrivacyDlpV2beta1ImageRedactionConfig(o[1]); } -buildUnnamed3302() { +buildUnnamed3298() { var o = new core.List<api.GooglePrivacyDlpV2beta1ContentItem>(); o.add(buildGooglePrivacyDlpV2beta1ContentItem()); o.add(buildGooglePrivacyDlpV2beta1ContentItem()); return o; } -checkUnnamed3302(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) { +checkUnnamed3298(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2beta1ContentItem(o[0]); checkGooglePrivacyDlpV2beta1ContentItem(o[1]); } -buildUnnamed3303() { +buildUnnamed3299() { var o = new core.List<api.GooglePrivacyDlpV2beta1ReplaceConfig>(); o.add(buildGooglePrivacyDlpV2beta1ReplaceConfig()); o.add(buildGooglePrivacyDlpV2beta1ReplaceConfig()); return o; } -checkUnnamed3303(core.List<api.GooglePrivacyDlpV2beta1ReplaceConfig> o) { +checkUnnamed3299(core.List<api.GooglePrivacyDlpV2beta1ReplaceConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2beta1ReplaceConfig(o[0]); checkGooglePrivacyDlpV2beta1ReplaceConfig(o[1]); @@ -1116,10 +1116,10 @@ var o = new api.GooglePrivacyDlpV2beta1RedactContentRequest(); buildCounterGooglePrivacyDlpV2beta1RedactContentRequest++; if (buildCounterGooglePrivacyDlpV2beta1RedactContentRequest < 3) { - o.imageRedactionConfigs = buildUnnamed3301(); + o.imageRedactionConfigs = buildUnnamed3297(); o.inspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig(); - o.items = buildUnnamed3302(); - o.replaceConfigs = buildUnnamed3303(); + o.items = buildUnnamed3298(); + o.replaceConfigs = buildUnnamed3299(); } buildCounterGooglePrivacyDlpV2beta1RedactContentRequest--; return o; @@ -1128,22 +1128,22 @@ checkGooglePrivacyDlpV2beta1RedactContentRequest(api.GooglePrivacyDlpV2beta1RedactContentRequest o) { buildCounterGooglePrivacyDlpV2beta1RedactContentRequest++; if (buildCounterGooglePrivacyDlpV2beta1RedactContentRequest < 3) { - checkUnnamed3301(o.imageRedactionConfigs); + checkUnnamed3297(o.imageRedactionConfigs); checkGooglePrivacyDlpV2beta1InspectConfig(o.inspectConfig); - checkUnnamed3302(o.items); - checkUnnamed3303(o.replaceConfigs); + checkUnnamed3298(o.items); + checkUnnamed3299(o.replaceConfigs); } buildCounterGooglePrivacyDlpV2beta1RedactContentRequest--; } -buildUnnamed3304() { +buildUnnamed3300() { var o = new core.List<api.GooglePrivacyDlpV2beta1ContentItem>(); o.add(buildGooglePrivacyDlpV2beta1ContentItem()); o.add(buildGooglePrivacyDlpV2beta1ContentItem()); return o; } -checkUnnamed3304(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) { +checkUnnamed3300(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2beta1ContentItem(o[0]); checkGooglePrivacyDlpV2beta1ContentItem(o[1]); @@ -1154,7 +1154,7 @@ var o = new api.GooglePrivacyDlpV2beta1RedactContentResponse(); buildCounterGooglePrivacyDlpV2beta1RedactContentResponse++; if (buildCounterGooglePrivacyDlpV2beta1RedactContentResponse < 3) { - o.items = buildUnnamed3304(); + o.items = buildUnnamed3300(); } buildCounterGooglePrivacyDlpV2beta1RedactContentResponse--; return o; @@ -1163,7 +1163,7 @@ checkGooglePrivacyDlpV2beta1RedactContentResponse(api.GooglePrivacyDlpV2beta1RedactContentResponse o) { buildCounterGooglePrivacyDlpV2beta1RedactContentResponse++; if (buildCounterGooglePrivacyDlpV2beta1RedactContentResponse < 3) { - checkUnnamed3304(o.items); + checkUnnamed3300(o.items); } buildCounterGooglePrivacyDlpV2beta1RedactContentResponse--; } @@ -1227,30 +1227,30 @@ buildCounterGoogleProtobufEmpty--; } -buildUnnamed3305() { +buildUnnamed3301() { 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; } -checkUnnamed3305(core.Map<core.String, core.Object> o) { +checkUnnamed3301(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')); } -buildUnnamed3306() { +buildUnnamed3302() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3305()); - o.add(buildUnnamed3305()); + o.add(buildUnnamed3301()); + o.add(buildUnnamed3301()); return o; } -checkUnnamed3306(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3302(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3305(o[0]); - checkUnnamed3305(o[1]); + checkUnnamed3301(o[0]); + checkUnnamed3301(o[1]); } core.int buildCounterGoogleRpcStatus = 0; @@ -1259,7 +1259,7 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { o.code = 42; - o.details = buildUnnamed3306(); + o.details = buildUnnamed3302(); o.message = "foo"; } buildCounterGoogleRpcStatus--; @@ -1270,7 +1270,7 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3306(o.details); + checkUnnamed3302(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterGoogleRpcStatus--; @@ -1973,9 +1973,9 @@ var mock = new HttpServerMock(); api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operations; var arg_name = "foo"; + var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -2003,9 +2003,9 @@ 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(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -2014,7 +2014,7 @@ var resp = convert.JSON.encode(buildGoogleLongrunningListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.GoogleLongrunningListOperationsResponse response) { + res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.GoogleLongrunningListOperationsResponse response) { checkGoogleLongrunningListOperationsResponse(response); }))); }); @@ -2028,9 +2028,9 @@ var mock = new HttpServerMock(); api.InspectResultsFindingsResourceApi res = new api.DlpApi(mock).inspect.results.findings; var arg_name = "foo"; + var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -2058,9 +2058,9 @@ 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(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); var h = { @@ -2069,7 +2069,7 @@ var resp = convert.JSON.encode(buildGooglePrivacyDlpV2beta1ListInspectFindingsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.GooglePrivacyDlpV2beta1ListInspectFindingsResponse response) { + res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.GooglePrivacyDlpV2beta1ListInspectFindingsResponse response) { checkGooglePrivacyDlpV2beta1ListInspectFindingsResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/dns/v2beta1_test.dart b/generated/googleapis_beta/test/dns/v2beta1_test.dart index bad019a..e47524f 100644 --- a/generated/googleapis_beta/test/dns/v2beta1_test.dart +++ b/generated/googleapis_beta/test/dns/v2beta1_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3440() { +buildUnnamed3437() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed3440(core.List<api.ResourceRecordSet> o) { +checkUnnamed3437(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); } -buildUnnamed3441() { +buildUnnamed3438() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed3441(core.List<api.ResourceRecordSet> o) { +checkUnnamed3438(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); @@ -82,8 +82,8 @@ var o = new api.Change(); buildCounterChange++; if (buildCounterChange < 3) { - o.additions = buildUnnamed3440(); - o.deletions = buildUnnamed3441(); + o.additions = buildUnnamed3437(); + o.deletions = buildUnnamed3438(); o.id = "foo"; o.isServing = true; o.kind = "foo"; @@ -97,8 +97,8 @@ checkChange(api.Change o) { buildCounterChange++; if (buildCounterChange < 3) { - checkUnnamed3440(o.additions); - checkUnnamed3441(o.deletions); + checkUnnamed3437(o.additions); + checkUnnamed3438(o.deletions); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isServing, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -108,14 +108,14 @@ buildCounterChange--; } -buildUnnamed3442() { +buildUnnamed3439() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed3442(core.List<api.Change> o) { +checkUnnamed3439(core.List<api.Change> o) { unittest.expect(o, unittest.hasLength(2)); checkChange(o[0]); checkChange(o[1]); @@ -126,7 +126,7 @@ var o = new api.ChangesListResponse(); buildCounterChangesListResponse++; if (buildCounterChangesListResponse < 3) { - o.changes = buildUnnamed3442(); + o.changes = buildUnnamed3439(); o.header = buildResponseHeader(); o.kind = "foo"; o.nextPageToken = "foo"; @@ -138,7 +138,7 @@ checkChangesListResponse(api.ChangesListResponse o) { buildCounterChangesListResponse++; if (buildCounterChangesListResponse < 3) { - checkUnnamed3442(o.changes); + checkUnnamed3439(o.changes); checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -146,14 +146,14 @@ buildCounterChangesListResponse--; } -buildUnnamed3443() { +buildUnnamed3440() { var o = new core.List<api.DnsKeyDigest>(); o.add(buildDnsKeyDigest()); o.add(buildDnsKeyDigest()); return o; } -checkUnnamed3443(core.List<api.DnsKeyDigest> o) { +checkUnnamed3440(core.List<api.DnsKeyDigest> o) { unittest.expect(o, unittest.hasLength(2)); checkDnsKeyDigest(o[0]); checkDnsKeyDigest(o[1]); @@ -167,7 +167,7 @@ o.algorithm = "foo"; o.creationTime = "foo"; o.description = "foo"; - o.digests = buildUnnamed3443(); + o.digests = buildUnnamed3440(); o.id = "foo"; o.isActive = true; o.keyLength = 42; @@ -186,7 +186,7 @@ unittest.expect(o.algorithm, unittest.equals('foo')); unittest.expect(o.creationTime, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed3443(o.digests); + checkUnnamed3440(o.digests); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isActive, unittest.isTrue); unittest.expect(o.keyLength, unittest.equals(42)); @@ -244,14 +244,14 @@ buildCounterDnsKeySpec--; } -buildUnnamed3444() { +buildUnnamed3441() { var o = new core.List<api.DnsKey>(); o.add(buildDnsKey()); o.add(buildDnsKey()); return o; } -checkUnnamed3444(core.List<api.DnsKey> o) { +checkUnnamed3441(core.List<api.DnsKey> o) { unittest.expect(o, unittest.hasLength(2)); checkDnsKey(o[0]); checkDnsKey(o[1]); @@ -262,7 +262,7 @@ var o = new api.DnsKeysListResponse(); buildCounterDnsKeysListResponse++; if (buildCounterDnsKeysListResponse < 3) { - o.dnsKeys = buildUnnamed3444(); + o.dnsKeys = buildUnnamed3441(); o.header = buildResponseHeader(); o.kind = "foo"; o.nextPageToken = "foo"; @@ -274,7 +274,7 @@ checkDnsKeysListResponse(api.DnsKeysListResponse o) { buildCounterDnsKeysListResponse++; if (buildCounterDnsKeysListResponse < 3) { - checkUnnamed3444(o.dnsKeys); + checkUnnamed3441(o.dnsKeys); checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -282,14 +282,14 @@ buildCounterDnsKeysListResponse--; } -buildUnnamed3445() { +buildUnnamed3442() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3445(core.List<core.String> o) { +checkUnnamed3442(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -308,7 +308,7 @@ o.kind = "foo"; o.name = "foo"; o.nameServerSet = "foo"; - o.nameServers = buildUnnamed3445(); + o.nameServers = buildUnnamed3442(); } buildCounterManagedZone--; return o; @@ -325,19 +325,19 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nameServerSet, unittest.equals('foo')); - checkUnnamed3445(o.nameServers); + checkUnnamed3442(o.nameServers); } buildCounterManagedZone--; } -buildUnnamed3446() { +buildUnnamed3443() { var o = new core.List<api.DnsKeySpec>(); o.add(buildDnsKeySpec()); o.add(buildDnsKeySpec()); return o; } -checkUnnamed3446(core.List<api.DnsKeySpec> o) { +checkUnnamed3443(core.List<api.DnsKeySpec> o) { unittest.expect(o, unittest.hasLength(2)); checkDnsKeySpec(o[0]); checkDnsKeySpec(o[1]); @@ -348,7 +348,7 @@ var o = new api.ManagedZoneDnsSecConfig(); buildCounterManagedZoneDnsSecConfig++; if (buildCounterManagedZoneDnsSecConfig < 3) { - o.defaultKeySpecs = buildUnnamed3446(); + o.defaultKeySpecs = buildUnnamed3443(); o.kind = "foo"; o.nonExistence = "foo"; o.state = "foo"; @@ -360,7 +360,7 @@ checkManagedZoneDnsSecConfig(api.ManagedZoneDnsSecConfig o) { buildCounterManagedZoneDnsSecConfig++; if (buildCounterManagedZoneDnsSecConfig < 3) { - checkUnnamed3446(o.defaultKeySpecs); + checkUnnamed3443(o.defaultKeySpecs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nonExistence, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); @@ -368,14 +368,14 @@ buildCounterManagedZoneDnsSecConfig--; } -buildUnnamed3447() { +buildUnnamed3444() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3447(core.List<api.Operation> o) { +checkUnnamed3444(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -389,7 +389,7 @@ o.header = buildResponseHeader(); o.kind = "foo"; o.nextPageToken = "foo"; - o.operations = buildUnnamed3447(); + o.operations = buildUnnamed3444(); } buildCounterManagedZoneOperationsListResponse--; return o; @@ -401,7 +401,7 @@ checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3447(o.operations); + checkUnnamed3444(o.operations); } buildCounterManagedZoneOperationsListResponse--; } @@ -425,14 +425,14 @@ buildCounterManagedZonesDeleteResponse--; } -buildUnnamed3448() { +buildUnnamed3445() { var o = new core.List<api.ManagedZone>(); o.add(buildManagedZone()); o.add(buildManagedZone()); return o; } -checkUnnamed3448(core.List<api.ManagedZone> o) { +checkUnnamed3445(core.List<api.ManagedZone> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedZone(o[0]); checkManagedZone(o[1]); @@ -445,7 +445,7 @@ if (buildCounterManagedZonesListResponse < 3) { o.header = buildResponseHeader(); o.kind = "foo"; - o.managedZones = buildUnnamed3448(); + o.managedZones = buildUnnamed3445(); o.nextPageToken = "foo"; } buildCounterManagedZonesListResponse--; @@ -457,7 +457,7 @@ if (buildCounterManagedZonesListResponse < 3) { checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3448(o.managedZones); + checkUnnamed3445(o.managedZones); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterManagedZonesListResponse--; @@ -563,14 +563,14 @@ buildCounterProject--; } -buildUnnamed3449() { +buildUnnamed3446() { var o = new core.List<api.DnsKeySpec>(); o.add(buildDnsKeySpec()); o.add(buildDnsKeySpec()); return o; } -checkUnnamed3449(core.List<api.DnsKeySpec> o) { +checkUnnamed3446(core.List<api.DnsKeySpec> o) { unittest.expect(o, unittest.hasLength(2)); checkDnsKeySpec(o[0]); checkDnsKeySpec(o[1]); @@ -589,7 +589,7 @@ o.rrsetDeletionsPerChange = 42; o.rrsetsPerManagedZone = 42; o.totalRrdataSizePerChange = 42; - o.whitelistedKeySpecs = buildUnnamed3449(); + o.whitelistedKeySpecs = buildUnnamed3446(); } buildCounterQuota--; return o; @@ -606,32 +606,32 @@ unittest.expect(o.rrsetDeletionsPerChange, unittest.equals(42)); unittest.expect(o.rrsetsPerManagedZone, unittest.equals(42)); unittest.expect(o.totalRrdataSizePerChange, unittest.equals(42)); - checkUnnamed3449(o.whitelistedKeySpecs); + checkUnnamed3446(o.whitelistedKeySpecs); } buildCounterQuota--; } -buildUnnamed3450() { +buildUnnamed3447() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3450(core.List<core.String> o) { +checkUnnamed3447(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3451() { +buildUnnamed3448() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3451(core.List<core.String> o) { +checkUnnamed3448(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -644,8 +644,8 @@ if (buildCounterResourceRecordSet < 3) { o.kind = "foo"; o.name = "foo"; - o.rrdatas = buildUnnamed3450(); - o.signatureRrdatas = buildUnnamed3451(); + o.rrdatas = buildUnnamed3447(); + o.signatureRrdatas = buildUnnamed3448(); o.ttl = 42; o.type = "foo"; } @@ -658,22 +658,22 @@ if (buildCounterResourceRecordSet < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3450(o.rrdatas); - checkUnnamed3451(o.signatureRrdatas); + checkUnnamed3447(o.rrdatas); + checkUnnamed3448(o.signatureRrdatas); unittest.expect(o.ttl, unittest.equals(42)); unittest.expect(o.type, unittest.equals('foo')); } buildCounterResourceRecordSet--; } -buildUnnamed3452() { +buildUnnamed3449() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed3452(core.List<api.ResourceRecordSet> o) { +checkUnnamed3449(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); @@ -687,7 +687,7 @@ o.header = buildResponseHeader(); o.kind = "foo"; o.nextPageToken = "foo"; - o.rrsets = buildUnnamed3452(); + o.rrsets = buildUnnamed3449(); } buildCounterResourceRecordSetsListResponse--; return o; @@ -699,7 +699,7 @@ checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3452(o.rrsets); + checkUnnamed3449(o.rrsets); } buildCounterResourceRecordSetsListResponse--; }
diff --git a/generated/googleapis_beta/test/language/v1beta1_test.dart b/generated/googleapis_beta/test/language/v1beta1_test.dart index 6b82685..505e927 100644 --- a/generated/googleapis_beta/test/language/v1beta1_test.dart +++ b/generated/googleapis_beta/test/language/v1beta1_test.dart
@@ -72,14 +72,14 @@ buildCounterAnalyzeEntitiesRequest--; } -buildUnnamed3140() { +buildUnnamed3189() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed3140(core.List<api.Entity> o) { +checkUnnamed3189(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); @@ -90,7 +90,7 @@ var o = new api.AnalyzeEntitiesResponse(); buildCounterAnalyzeEntitiesResponse++; if (buildCounterAnalyzeEntitiesResponse < 3) { - o.entities = buildUnnamed3140(); + o.entities = buildUnnamed3189(); o.language = "foo"; } buildCounterAnalyzeEntitiesResponse--; @@ -100,7 +100,7 @@ checkAnalyzeEntitiesResponse(api.AnalyzeEntitiesResponse o) { buildCounterAnalyzeEntitiesResponse++; if (buildCounterAnalyzeEntitiesResponse < 3) { - checkUnnamed3140(o.entities); + checkUnnamed3189(o.entities); unittest.expect(o.language, unittest.equals('foo')); } buildCounterAnalyzeEntitiesResponse--; @@ -127,14 +127,14 @@ buildCounterAnalyzeSentimentRequest--; } -buildUnnamed3141() { +buildUnnamed3190() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed3141(core.List<api.Sentence> o) { +checkUnnamed3190(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); @@ -147,7 +147,7 @@ if (buildCounterAnalyzeSentimentResponse < 3) { o.documentSentiment = buildSentiment(); o.language = "foo"; - o.sentences = buildUnnamed3141(); + o.sentences = buildUnnamed3190(); } buildCounterAnalyzeSentimentResponse--; return o; @@ -158,7 +158,7 @@ if (buildCounterAnalyzeSentimentResponse < 3) { checkSentiment(o.documentSentiment); unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed3141(o.sentences); + checkUnnamed3190(o.sentences); } buildCounterAnalyzeSentimentResponse--; } @@ -184,27 +184,27 @@ buildCounterAnalyzeSyntaxRequest--; } -buildUnnamed3142() { +buildUnnamed3191() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed3142(core.List<api.Sentence> o) { +checkUnnamed3191(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); } -buildUnnamed3143() { +buildUnnamed3192() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed3143(core.List<api.Token> o) { +checkUnnamed3192(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -216,8 +216,8 @@ buildCounterAnalyzeSyntaxResponse++; if (buildCounterAnalyzeSyntaxResponse < 3) { o.language = "foo"; - o.sentences = buildUnnamed3142(); - o.tokens = buildUnnamed3143(); + o.sentences = buildUnnamed3191(); + o.tokens = buildUnnamed3192(); } buildCounterAnalyzeSyntaxResponse--; return o; @@ -227,8 +227,8 @@ buildCounterAnalyzeSyntaxResponse++; if (buildCounterAnalyzeSyntaxResponse < 3) { unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed3142(o.sentences); - checkUnnamed3143(o.tokens); + checkUnnamed3191(o.sentences); + checkUnnamed3192(o.tokens); } buildCounterAnalyzeSyntaxResponse--; } @@ -256,40 +256,40 @@ buildCounterAnnotateTextRequest--; } -buildUnnamed3144() { +buildUnnamed3193() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed3144(core.List<api.Entity> o) { +checkUnnamed3193(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); } -buildUnnamed3145() { +buildUnnamed3194() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed3145(core.List<api.Sentence> o) { +checkUnnamed3194(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); } -buildUnnamed3146() { +buildUnnamed3195() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed3146(core.List<api.Token> o) { +checkUnnamed3195(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -301,10 +301,10 @@ buildCounterAnnotateTextResponse++; if (buildCounterAnnotateTextResponse < 3) { o.documentSentiment = buildSentiment(); - o.entities = buildUnnamed3144(); + o.entities = buildUnnamed3193(); o.language = "foo"; - o.sentences = buildUnnamed3145(); - o.tokens = buildUnnamed3146(); + o.sentences = buildUnnamed3194(); + o.tokens = buildUnnamed3195(); } buildCounterAnnotateTextResponse--; return o; @@ -314,10 +314,10 @@ buildCounterAnnotateTextResponse++; if (buildCounterAnnotateTextResponse < 3) { checkSentiment(o.documentSentiment); - checkUnnamed3144(o.entities); + checkUnnamed3193(o.entities); unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed3145(o.sentences); - checkUnnamed3146(o.tokens); + checkUnnamed3194(o.sentences); + checkUnnamed3195(o.tokens); } buildCounterAnnotateTextResponse--; } @@ -368,27 +368,27 @@ buildCounterDocument--; } -buildUnnamed3147() { +buildUnnamed3196() { var o = new core.List<api.EntityMention>(); o.add(buildEntityMention()); o.add(buildEntityMention()); return o; } -checkUnnamed3147(core.List<api.EntityMention> o) { +checkUnnamed3196(core.List<api.EntityMention> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityMention(o[0]); checkEntityMention(o[1]); } -buildUnnamed3148() { +buildUnnamed3197() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3148(core.Map<core.String, core.String> o) { +checkUnnamed3197(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -399,8 +399,8 @@ var o = new api.Entity(); buildCounterEntity++; if (buildCounterEntity < 3) { - o.mentions = buildUnnamed3147(); - o.metadata = buildUnnamed3148(); + o.mentions = buildUnnamed3196(); + o.metadata = buildUnnamed3197(); o.name = "foo"; o.salience = 42.0; o.type = "foo"; @@ -412,8 +412,8 @@ checkEntity(api.Entity o) { buildCounterEntity++; if (buildCounterEntity < 3) { - checkUnnamed3147(o.mentions); - checkUnnamed3148(o.metadata); + checkUnnamed3196(o.mentions); + checkUnnamed3197(o.metadata); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.salience, unittest.equals(42.0)); unittest.expect(o.type, unittest.equals('foo')); @@ -550,30 +550,30 @@ buildCounterSentiment--; } -buildUnnamed3149() { +buildUnnamed3198() { 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; } -checkUnnamed3149(core.Map<core.String, core.Object> o) { +checkUnnamed3198(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')); } -buildUnnamed3150() { +buildUnnamed3199() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3149()); - o.add(buildUnnamed3149()); + o.add(buildUnnamed3198()); + o.add(buildUnnamed3198()); return o; } -checkUnnamed3150(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3199(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3149(o[0]); - checkUnnamed3149(o[1]); + checkUnnamed3198(o[0]); + checkUnnamed3198(o[1]); } core.int buildCounterStatus = 0; @@ -582,7 +582,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3150(); + o.details = buildUnnamed3199(); o.message = "foo"; } buildCounterStatus--; @@ -593,7 +593,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3150(o.details); + checkUnnamed3199(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--;
diff --git a/generated/googleapis_beta/test/language/v1beta2_test.dart b/generated/googleapis_beta/test/language/v1beta2_test.dart index 4b5c98f..52e15ff 100644 --- a/generated/googleapis_beta/test/language/v1beta2_test.dart +++ b/generated/googleapis_beta/test/language/v1beta2_test.dart
@@ -72,14 +72,14 @@ buildCounterAnalyzeEntitiesRequest--; } -buildUnnamed3343() { +buildUnnamed3340() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed3343(core.List<api.Entity> o) { +checkUnnamed3340(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); @@ -90,7 +90,7 @@ var o = new api.AnalyzeEntitiesResponse(); buildCounterAnalyzeEntitiesResponse++; if (buildCounterAnalyzeEntitiesResponse < 3) { - o.entities = buildUnnamed3343(); + o.entities = buildUnnamed3340(); o.language = "foo"; } buildCounterAnalyzeEntitiesResponse--; @@ -100,7 +100,7 @@ checkAnalyzeEntitiesResponse(api.AnalyzeEntitiesResponse o) { buildCounterAnalyzeEntitiesResponse++; if (buildCounterAnalyzeEntitiesResponse < 3) { - checkUnnamed3343(o.entities); + checkUnnamed3340(o.entities); unittest.expect(o.language, unittest.equals('foo')); } buildCounterAnalyzeEntitiesResponse--; @@ -127,14 +127,14 @@ buildCounterAnalyzeEntitySentimentRequest--; } -buildUnnamed3344() { +buildUnnamed3341() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed3344(core.List<api.Entity> o) { +checkUnnamed3341(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); @@ -145,7 +145,7 @@ var o = new api.AnalyzeEntitySentimentResponse(); buildCounterAnalyzeEntitySentimentResponse++; if (buildCounterAnalyzeEntitySentimentResponse < 3) { - o.entities = buildUnnamed3344(); + o.entities = buildUnnamed3341(); o.language = "foo"; } buildCounterAnalyzeEntitySentimentResponse--; @@ -155,7 +155,7 @@ checkAnalyzeEntitySentimentResponse(api.AnalyzeEntitySentimentResponse o) { buildCounterAnalyzeEntitySentimentResponse++; if (buildCounterAnalyzeEntitySentimentResponse < 3) { - checkUnnamed3344(o.entities); + checkUnnamed3341(o.entities); unittest.expect(o.language, unittest.equals('foo')); } buildCounterAnalyzeEntitySentimentResponse--; @@ -182,14 +182,14 @@ buildCounterAnalyzeSentimentRequest--; } -buildUnnamed3345() { +buildUnnamed3342() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed3345(core.List<api.Sentence> o) { +checkUnnamed3342(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); @@ -202,7 +202,7 @@ if (buildCounterAnalyzeSentimentResponse < 3) { o.documentSentiment = buildSentiment(); o.language = "foo"; - o.sentences = buildUnnamed3345(); + o.sentences = buildUnnamed3342(); } buildCounterAnalyzeSentimentResponse--; return o; @@ -213,7 +213,7 @@ if (buildCounterAnalyzeSentimentResponse < 3) { checkSentiment(o.documentSentiment); unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed3345(o.sentences); + checkUnnamed3342(o.sentences); } buildCounterAnalyzeSentimentResponse--; } @@ -239,6 +239,91 @@ buildCounterAnalyzeSyntaxRequest--; } +buildUnnamed3343() { + var o = new core.List<api.Sentence>(); + o.add(buildSentence()); + o.add(buildSentence()); + return o; +} + +checkUnnamed3343(core.List<api.Sentence> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSentence(o[0]); + checkSentence(o[1]); +} + +buildUnnamed3344() { + var o = new core.List<api.Token>(); + o.add(buildToken()); + o.add(buildToken()); + return o; +} + +checkUnnamed3344(core.List<api.Token> o) { + unittest.expect(o, unittest.hasLength(2)); + checkToken(o[0]); + checkToken(o[1]); +} + +core.int buildCounterAnalyzeSyntaxResponse = 0; +buildAnalyzeSyntaxResponse() { + var o = new api.AnalyzeSyntaxResponse(); + buildCounterAnalyzeSyntaxResponse++; + if (buildCounterAnalyzeSyntaxResponse < 3) { + o.language = "foo"; + o.sentences = buildUnnamed3343(); + o.tokens = buildUnnamed3344(); + } + buildCounterAnalyzeSyntaxResponse--; + return o; +} + +checkAnalyzeSyntaxResponse(api.AnalyzeSyntaxResponse o) { + buildCounterAnalyzeSyntaxResponse++; + if (buildCounterAnalyzeSyntaxResponse < 3) { + unittest.expect(o.language, unittest.equals('foo')); + checkUnnamed3343(o.sentences); + checkUnnamed3344(o.tokens); + } + buildCounterAnalyzeSyntaxResponse--; +} + +core.int buildCounterAnnotateTextRequest = 0; +buildAnnotateTextRequest() { + var o = new api.AnnotateTextRequest(); + buildCounterAnnotateTextRequest++; + if (buildCounterAnnotateTextRequest < 3) { + o.document = buildDocument(); + o.encodingType = "foo"; + o.features = buildFeatures(); + } + buildCounterAnnotateTextRequest--; + return o; +} + +checkAnnotateTextRequest(api.AnnotateTextRequest o) { + buildCounterAnnotateTextRequest++; + if (buildCounterAnnotateTextRequest < 3) { + checkDocument(o.document); + unittest.expect(o.encodingType, unittest.equals('foo')); + checkFeatures(o.features); + } + buildCounterAnnotateTextRequest--; +} + +buildUnnamed3345() { + var o = new core.List<api.Entity>(); + o.add(buildEntity()); + o.add(buildEntity()); + return o; +} + +checkUnnamed3345(core.List<api.Entity> o) { + unittest.expect(o, unittest.hasLength(2)); + checkEntity(o[0]); + checkEntity(o[1]); +} + buildUnnamed3346() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); @@ -265,101 +350,16 @@ checkToken(o[1]); } -core.int buildCounterAnalyzeSyntaxResponse = 0; -buildAnalyzeSyntaxResponse() { - var o = new api.AnalyzeSyntaxResponse(); - buildCounterAnalyzeSyntaxResponse++; - if (buildCounterAnalyzeSyntaxResponse < 3) { - o.language = "foo"; - o.sentences = buildUnnamed3346(); - o.tokens = buildUnnamed3347(); - } - buildCounterAnalyzeSyntaxResponse--; - return o; -} - -checkAnalyzeSyntaxResponse(api.AnalyzeSyntaxResponse o) { - buildCounterAnalyzeSyntaxResponse++; - if (buildCounterAnalyzeSyntaxResponse < 3) { - unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed3346(o.sentences); - checkUnnamed3347(o.tokens); - } - buildCounterAnalyzeSyntaxResponse--; -} - -core.int buildCounterAnnotateTextRequest = 0; -buildAnnotateTextRequest() { - var o = new api.AnnotateTextRequest(); - buildCounterAnnotateTextRequest++; - if (buildCounterAnnotateTextRequest < 3) { - o.document = buildDocument(); - o.encodingType = "foo"; - o.features = buildFeatures(); - } - buildCounterAnnotateTextRequest--; - return o; -} - -checkAnnotateTextRequest(api.AnnotateTextRequest o) { - buildCounterAnnotateTextRequest++; - if (buildCounterAnnotateTextRequest < 3) { - checkDocument(o.document); - unittest.expect(o.encodingType, unittest.equals('foo')); - checkFeatures(o.features); - } - buildCounterAnnotateTextRequest--; -} - -buildUnnamed3348() { - var o = new core.List<api.Entity>(); - o.add(buildEntity()); - o.add(buildEntity()); - return o; -} - -checkUnnamed3348(core.List<api.Entity> o) { - unittest.expect(o, unittest.hasLength(2)); - checkEntity(o[0]); - checkEntity(o[1]); -} - -buildUnnamed3349() { - var o = new core.List<api.Sentence>(); - o.add(buildSentence()); - o.add(buildSentence()); - return o; -} - -checkUnnamed3349(core.List<api.Sentence> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSentence(o[0]); - checkSentence(o[1]); -} - -buildUnnamed3350() { - var o = new core.List<api.Token>(); - o.add(buildToken()); - o.add(buildToken()); - return o; -} - -checkUnnamed3350(core.List<api.Token> o) { - unittest.expect(o, unittest.hasLength(2)); - checkToken(o[0]); - checkToken(o[1]); -} - core.int buildCounterAnnotateTextResponse = 0; buildAnnotateTextResponse() { var o = new api.AnnotateTextResponse(); buildCounterAnnotateTextResponse++; if (buildCounterAnnotateTextResponse < 3) { o.documentSentiment = buildSentiment(); - o.entities = buildUnnamed3348(); + o.entities = buildUnnamed3345(); o.language = "foo"; - o.sentences = buildUnnamed3349(); - o.tokens = buildUnnamed3350(); + o.sentences = buildUnnamed3346(); + o.tokens = buildUnnamed3347(); } buildCounterAnnotateTextResponse--; return o; @@ -369,10 +369,10 @@ buildCounterAnnotateTextResponse++; if (buildCounterAnnotateTextResponse < 3) { checkSentiment(o.documentSentiment); - checkUnnamed3348(o.entities); + checkUnnamed3345(o.entities); unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed3349(o.sentences); - checkUnnamed3350(o.tokens); + checkUnnamed3346(o.sentences); + checkUnnamed3347(o.tokens); } buildCounterAnnotateTextResponse--; } @@ -423,27 +423,27 @@ buildCounterDocument--; } -buildUnnamed3351() { +buildUnnamed3348() { var o = new core.List<api.EntityMention>(); o.add(buildEntityMention()); o.add(buildEntityMention()); return o; } -checkUnnamed3351(core.List<api.EntityMention> o) { +checkUnnamed3348(core.List<api.EntityMention> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityMention(o[0]); checkEntityMention(o[1]); } -buildUnnamed3352() { +buildUnnamed3349() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3352(core.Map<core.String, core.String> o) { +checkUnnamed3349(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -454,8 +454,8 @@ var o = new api.Entity(); buildCounterEntity++; if (buildCounterEntity < 3) { - o.mentions = buildUnnamed3351(); - o.metadata = buildUnnamed3352(); + o.mentions = buildUnnamed3348(); + o.metadata = buildUnnamed3349(); o.name = "foo"; o.salience = 42.0; o.sentiment = buildSentiment(); @@ -468,8 +468,8 @@ checkEntity(api.Entity o) { buildCounterEntity++; if (buildCounterEntity < 3) { - checkUnnamed3351(o.mentions); - checkUnnamed3352(o.metadata); + checkUnnamed3348(o.mentions); + checkUnnamed3349(o.metadata); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.salience, unittest.equals(42.0)); checkSentiment(o.sentiment); @@ -609,30 +609,30 @@ buildCounterSentiment--; } -buildUnnamed3353() { +buildUnnamed3350() { 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; } -checkUnnamed3353(core.Map<core.String, core.Object> o) { +checkUnnamed3350(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')); } -buildUnnamed3354() { +buildUnnamed3351() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3353()); - o.add(buildUnnamed3353()); + o.add(buildUnnamed3350()); + o.add(buildUnnamed3350()); return o; } -checkUnnamed3354(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3351(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3353(o[0]); - checkUnnamed3353(o[1]); + checkUnnamed3350(o[0]); + checkUnnamed3350(o[1]); } core.int buildCounterStatus = 0; @@ -641,7 +641,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3354(); + o.details = buildUnnamed3351(); o.message = "foo"; } buildCounterStatus--; @@ -652,7 +652,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3354(o.details); + checkUnnamed3351(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--;
diff --git a/generated/googleapis_beta/test/logging/v2beta1_test.dart b/generated/googleapis_beta/test/logging/v2beta1_test.dart index 12a8d44..afa46e8 100644 --- a/generated/googleapis_beta/test/logging/v2beta1_test.dart +++ b/generated/googleapis_beta/test/logging/v2beta1_test.dart
@@ -136,19 +136,129 @@ buildCounterLabelDescriptor--; } -buildUnnamed3453() { +buildUnnamed3450() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3453(core.List<core.String> o) { +checkUnnamed3450(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } +buildUnnamed3451() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3451(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterListLogEntriesRequest = 0; +buildListLogEntriesRequest() { + var o = new api.ListLogEntriesRequest(); + buildCounterListLogEntriesRequest++; + if (buildCounterListLogEntriesRequest < 3) { + o.filter = "foo"; + o.orderBy = "foo"; + o.pageSize = 42; + o.pageToken = "foo"; + o.projectIds = buildUnnamed3450(); + o.resourceNames = buildUnnamed3451(); + } + buildCounterListLogEntriesRequest--; + return o; +} + +checkListLogEntriesRequest(api.ListLogEntriesRequest o) { + buildCounterListLogEntriesRequest++; + if (buildCounterListLogEntriesRequest < 3) { + unittest.expect(o.filter, unittest.equals('foo')); + unittest.expect(o.orderBy, unittest.equals('foo')); + unittest.expect(o.pageSize, unittest.equals(42)); + unittest.expect(o.pageToken, unittest.equals('foo')); + checkUnnamed3450(o.projectIds); + checkUnnamed3451(o.resourceNames); + } + buildCounterListLogEntriesRequest--; +} + +buildUnnamed3452() { + var o = new core.List<api.LogEntry>(); + o.add(buildLogEntry()); + o.add(buildLogEntry()); + return o; +} + +checkUnnamed3452(core.List<api.LogEntry> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLogEntry(o[0]); + checkLogEntry(o[1]); +} + +core.int buildCounterListLogEntriesResponse = 0; +buildListLogEntriesResponse() { + var o = new api.ListLogEntriesResponse(); + buildCounterListLogEntriesResponse++; + if (buildCounterListLogEntriesResponse < 3) { + o.entries = buildUnnamed3452(); + o.nextPageToken = "foo"; + } + buildCounterListLogEntriesResponse--; + return o; +} + +checkListLogEntriesResponse(api.ListLogEntriesResponse o) { + buildCounterListLogEntriesResponse++; + if (buildCounterListLogEntriesResponse < 3) { + checkUnnamed3452(o.entries); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListLogEntriesResponse--; +} + +buildUnnamed3453() { + var o = new core.List<api.LogMetric>(); + o.add(buildLogMetric()); + o.add(buildLogMetric()); + return o; +} + +checkUnnamed3453(core.List<api.LogMetric> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLogMetric(o[0]); + checkLogMetric(o[1]); +} + +core.int buildCounterListLogMetricsResponse = 0; +buildListLogMetricsResponse() { + var o = new api.ListLogMetricsResponse(); + buildCounterListLogMetricsResponse++; + if (buildCounterListLogMetricsResponse < 3) { + o.metrics = buildUnnamed3453(); + o.nextPageToken = "foo"; + } + buildCounterListLogMetricsResponse--; + return o; +} + +checkListLogMetricsResponse(api.ListLogMetricsResponse o) { + buildCounterListLogMetricsResponse++; + if (buildCounterListLogMetricsResponse < 3) { + checkUnnamed3453(o.metrics); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListLogMetricsResponse--; +} + buildUnnamed3454() { var o = new core.List<core.String>(); o.add("foo"); @@ -162,122 +272,12 @@ unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterListLogEntriesRequest = 0; -buildListLogEntriesRequest() { - var o = new api.ListLogEntriesRequest(); - buildCounterListLogEntriesRequest++; - if (buildCounterListLogEntriesRequest < 3) { - o.filter = "foo"; - o.orderBy = "foo"; - o.pageSize = 42; - o.pageToken = "foo"; - o.projectIds = buildUnnamed3453(); - o.resourceNames = buildUnnamed3454(); - } - buildCounterListLogEntriesRequest--; - return o; -} - -checkListLogEntriesRequest(api.ListLogEntriesRequest o) { - buildCounterListLogEntriesRequest++; - if (buildCounterListLogEntriesRequest < 3) { - unittest.expect(o.filter, unittest.equals('foo')); - unittest.expect(o.orderBy, unittest.equals('foo')); - unittest.expect(o.pageSize, unittest.equals(42)); - unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed3453(o.projectIds); - checkUnnamed3454(o.resourceNames); - } - buildCounterListLogEntriesRequest--; -} - -buildUnnamed3455() { - var o = new core.List<api.LogEntry>(); - o.add(buildLogEntry()); - o.add(buildLogEntry()); - return o; -} - -checkUnnamed3455(core.List<api.LogEntry> o) { - unittest.expect(o, unittest.hasLength(2)); - checkLogEntry(o[0]); - checkLogEntry(o[1]); -} - -core.int buildCounterListLogEntriesResponse = 0; -buildListLogEntriesResponse() { - var o = new api.ListLogEntriesResponse(); - buildCounterListLogEntriesResponse++; - if (buildCounterListLogEntriesResponse < 3) { - o.entries = buildUnnamed3455(); - o.nextPageToken = "foo"; - } - buildCounterListLogEntriesResponse--; - return o; -} - -checkListLogEntriesResponse(api.ListLogEntriesResponse o) { - buildCounterListLogEntriesResponse++; - if (buildCounterListLogEntriesResponse < 3) { - checkUnnamed3455(o.entries); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterListLogEntriesResponse--; -} - -buildUnnamed3456() { - var o = new core.List<api.LogMetric>(); - o.add(buildLogMetric()); - o.add(buildLogMetric()); - return o; -} - -checkUnnamed3456(core.List<api.LogMetric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkLogMetric(o[0]); - checkLogMetric(o[1]); -} - -core.int buildCounterListLogMetricsResponse = 0; -buildListLogMetricsResponse() { - var o = new api.ListLogMetricsResponse(); - buildCounterListLogMetricsResponse++; - if (buildCounterListLogMetricsResponse < 3) { - o.metrics = buildUnnamed3456(); - o.nextPageToken = "foo"; - } - buildCounterListLogMetricsResponse--; - return o; -} - -checkListLogMetricsResponse(api.ListLogMetricsResponse o) { - buildCounterListLogMetricsResponse++; - if (buildCounterListLogMetricsResponse < 3) { - checkUnnamed3456(o.metrics); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterListLogMetricsResponse--; -} - -buildUnnamed3457() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3457(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - core.int buildCounterListLogsResponse = 0; buildListLogsResponse() { var o = new api.ListLogsResponse(); buildCounterListLogsResponse++; if (buildCounterListLogsResponse < 3) { - o.logNames = buildUnnamed3457(); + o.logNames = buildUnnamed3454(); o.nextPageToken = "foo"; } buildCounterListLogsResponse--; @@ -287,20 +287,20 @@ checkListLogsResponse(api.ListLogsResponse o) { buildCounterListLogsResponse++; if (buildCounterListLogsResponse < 3) { - checkUnnamed3457(o.logNames); + checkUnnamed3454(o.logNames); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLogsResponse--; } -buildUnnamed3458() { +buildUnnamed3455() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed3458(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed3455(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); @@ -312,7 +312,7 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { o.nextPageToken = "foo"; - o.resourceDescriptors = buildUnnamed3458(); + o.resourceDescriptors = buildUnnamed3455(); } buildCounterListMonitoredResourceDescriptorsResponse--; return o; @@ -322,19 +322,19 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3458(o.resourceDescriptors); + checkUnnamed3455(o.resourceDescriptors); } buildCounterListMonitoredResourceDescriptorsResponse--; } -buildUnnamed3459() { +buildUnnamed3456() { var o = new core.List<api.LogSink>(); o.add(buildLogSink()); o.add(buildLogSink()); return o; } -checkUnnamed3459(core.List<api.LogSink> o) { +checkUnnamed3456(core.List<api.LogSink> o) { unittest.expect(o, unittest.hasLength(2)); checkLogSink(o[0]); checkLogSink(o[1]); @@ -346,7 +346,7 @@ buildCounterListSinksResponse++; if (buildCounterListSinksResponse < 3) { o.nextPageToken = "foo"; - o.sinks = buildUnnamed3459(); + o.sinks = buildUnnamed3456(); } buildCounterListSinksResponse--; return o; @@ -356,45 +356,45 @@ buildCounterListSinksResponse++; if (buildCounterListSinksResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3459(o.sinks); + checkUnnamed3456(o.sinks); } buildCounterListSinksResponse--; } -buildUnnamed3460() { +buildUnnamed3457() { 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; } -checkUnnamed3460(core.Map<core.String, core.Object> o) { +checkUnnamed3457(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')); } -buildUnnamed3461() { +buildUnnamed3458() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3461(core.Map<core.String, core.String> o) { +checkUnnamed3458(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3462() { +buildUnnamed3459() { 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; } -checkUnnamed3462(core.Map<core.String, core.Object> o) { +checkUnnamed3459(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')); @@ -407,11 +407,11 @@ if (buildCounterLogEntry < 3) { o.httpRequest = buildHttpRequest(); o.insertId = "foo"; - o.jsonPayload = buildUnnamed3460(); - o.labels = buildUnnamed3461(); + o.jsonPayload = buildUnnamed3457(); + o.labels = buildUnnamed3458(); o.logName = "foo"; o.operation = buildLogEntryOperation(); - o.protoPayload = buildUnnamed3462(); + o.protoPayload = buildUnnamed3459(); o.receiveTimestamp = "foo"; o.resource = buildMonitoredResource(); o.severity = "foo"; @@ -429,11 +429,11 @@ if (buildCounterLogEntry < 3) { checkHttpRequest(o.httpRequest); unittest.expect(o.insertId, unittest.equals('foo')); - checkUnnamed3460(o.jsonPayload); - checkUnnamed3461(o.labels); + checkUnnamed3457(o.jsonPayload); + checkUnnamed3458(o.labels); unittest.expect(o.logName, unittest.equals('foo')); checkLogEntryOperation(o.operation); - checkUnnamed3462(o.protoPayload); + checkUnnamed3459(o.protoPayload); unittest.expect(o.receiveTimestamp, unittest.equals('foo')); checkMonitoredResource(o.resource); unittest.expect(o.severity, unittest.equals('foo')); @@ -576,14 +576,14 @@ buildCounterLogSink--; } -buildUnnamed3463() { +buildUnnamed3460() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3463(core.Map<core.String, core.String> o) { +checkUnnamed3460(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -594,7 +594,7 @@ var o = new api.MonitoredResource(); buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - o.labels = buildUnnamed3463(); + o.labels = buildUnnamed3460(); o.type = "foo"; } buildCounterMonitoredResource--; @@ -604,20 +604,20 @@ checkMonitoredResource(api.MonitoredResource o) { buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - checkUnnamed3463(o.labels); + checkUnnamed3460(o.labels); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResource--; } -buildUnnamed3464() { +buildUnnamed3461() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed3464(core.List<api.LabelDescriptor> o) { +checkUnnamed3461(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -630,7 +630,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed3464(); + o.labels = buildUnnamed3461(); o.name = "foo"; o.type = "foo"; } @@ -643,34 +643,34 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed3464(o.labels); + checkUnnamed3461(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResourceDescriptor--; } -buildUnnamed3465() { +buildUnnamed3462() { var o = new core.List<api.LogLine>(); o.add(buildLogLine()); o.add(buildLogLine()); return o; } -checkUnnamed3465(core.List<api.LogLine> o) { +checkUnnamed3462(core.List<api.LogLine> o) { unittest.expect(o, unittest.hasLength(2)); checkLogLine(o[0]); checkLogLine(o[1]); } -buildUnnamed3466() { +buildUnnamed3463() { var o = new core.List<api.SourceReference>(); o.add(buildSourceReference()); o.add(buildSourceReference()); return o; } -checkUnnamed3466(core.List<api.SourceReference> o) { +checkUnnamed3463(core.List<api.SourceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceReference(o[0]); checkSourceReference(o[1]); @@ -693,7 +693,7 @@ o.instanceIndex = 42; o.ip = "foo"; o.latency = "foo"; - o.line = buildUnnamed3465(); + o.line = buildUnnamed3462(); o.megaCycles = "foo"; o.method = "foo"; o.moduleId = "foo"; @@ -703,7 +703,7 @@ o.requestId = "foo"; o.resource = "foo"; o.responseSize = "foo"; - o.sourceReference = buildUnnamed3466(); + o.sourceReference = buildUnnamed3463(); o.startTime = "foo"; o.status = 42; o.taskName = "foo"; @@ -733,7 +733,7 @@ unittest.expect(o.instanceIndex, unittest.equals(42)); unittest.expect(o.ip, unittest.equals('foo')); unittest.expect(o.latency, unittest.equals('foo')); - checkUnnamed3465(o.line); + checkUnnamed3462(o.line); unittest.expect(o.megaCycles, unittest.equals('foo')); unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.moduleId, unittest.equals('foo')); @@ -743,7 +743,7 @@ unittest.expect(o.requestId, unittest.equals('foo')); unittest.expect(o.resource, unittest.equals('foo')); unittest.expect(o.responseSize, unittest.equals('foo')); - checkUnnamed3466(o.sourceReference); + checkUnnamed3463(o.sourceReference); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.status, unittest.equals(42)); unittest.expect(o.taskName, unittest.equals('foo')); @@ -801,27 +801,27 @@ buildCounterSourceReference--; } -buildUnnamed3467() { +buildUnnamed3464() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed3467(core.List<api.LogEntry> o) { +checkUnnamed3464(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); } -buildUnnamed3468() { +buildUnnamed3465() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3468(core.Map<core.String, core.String> o) { +checkUnnamed3465(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -832,8 +832,8 @@ var o = new api.WriteLogEntriesRequest(); buildCounterWriteLogEntriesRequest++; if (buildCounterWriteLogEntriesRequest < 3) { - o.entries = buildUnnamed3467(); - o.labels = buildUnnamed3468(); + o.entries = buildUnnamed3464(); + o.labels = buildUnnamed3465(); o.logName = "foo"; o.partialSuccess = true; o.resource = buildMonitoredResource(); @@ -845,8 +845,8 @@ checkWriteLogEntriesRequest(api.WriteLogEntriesRequest o) { buildCounterWriteLogEntriesRequest++; if (buildCounterWriteLogEntriesRequest < 3) { - checkUnnamed3467(o.entries); - checkUnnamed3468(o.labels); + checkUnnamed3464(o.entries); + checkUnnamed3465(o.labels); unittest.expect(o.logName, unittest.equals('foo')); unittest.expect(o.partialSuccess, unittest.isTrue); checkMonitoredResource(o.resource);
diff --git a/generated/googleapis_beta/test/oslogin/v1alpha_test.dart b/generated/googleapis_beta/test/oslogin/v1alpha_test.dart index 778af44..3f4292e 100644 --- a/generated/googleapis_beta/test/oslogin/v1alpha_test.dart +++ b/generated/googleapis_beta/test/oslogin/v1alpha_test.dart
@@ -87,27 +87,27 @@ buildCounterImportSshPublicKeyResponse--; } -buildUnnamed3395() { +buildUnnamed3392() { var o = new core.List<api.PosixAccount>(); o.add(buildPosixAccount()); o.add(buildPosixAccount()); return o; } -checkUnnamed3395(core.List<api.PosixAccount> o) { +checkUnnamed3392(core.List<api.PosixAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkPosixAccount(o[0]); checkPosixAccount(o[1]); } -buildUnnamed3396() { +buildUnnamed3393() { var o = new core.Map<core.String, api.SshPublicKey>(); o["x"] = buildSshPublicKey(); o["y"] = buildSshPublicKey(); return o; } -checkUnnamed3396(core.Map<core.String, api.SshPublicKey> o) { +checkUnnamed3393(core.Map<core.String, api.SshPublicKey> o) { unittest.expect(o, unittest.hasLength(2)); checkSshPublicKey(o["x"]); checkSshPublicKey(o["y"]); @@ -119,8 +119,8 @@ buildCounterLoginProfile++; if (buildCounterLoginProfile < 3) { o.name = "foo"; - o.posixAccounts = buildUnnamed3395(); - o.sshPublicKeys = buildUnnamed3396(); + o.posixAccounts = buildUnnamed3392(); + o.sshPublicKeys = buildUnnamed3393(); o.suspended = true; } buildCounterLoginProfile--; @@ -131,8 +131,8 @@ buildCounterLoginProfile++; if (buildCounterLoginProfile < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3395(o.posixAccounts); - checkUnnamed3396(o.sshPublicKeys); + checkUnnamed3392(o.posixAccounts); + checkUnnamed3393(o.sshPublicKeys); unittest.expect(o.suspended, unittest.isTrue); } buildCounterLoginProfile--;
diff --git a/generated/googleapis_beta/test/proximitybeacon/v1beta1_test.dart b/generated/googleapis_beta/test/proximitybeacon/v1beta1_test.dart index 8b1251f..0614522 100644 --- a/generated/googleapis_beta/test/proximitybeacon/v1beta1_test.dart +++ b/generated/googleapis_beta/test/proximitybeacon/v1beta1_test.dart
@@ -93,14 +93,14 @@ buildCounterAttachmentInfo--; } -buildUnnamed3430() { +buildUnnamed3427() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3430(core.Map<core.String, core.String> o) { +checkUnnamed3427(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -119,7 +119,7 @@ o.indoorLevel = buildIndoorLevel(); o.latLng = buildLatLng(); o.placeId = "foo"; - o.properties = buildUnnamed3430(); + o.properties = buildUnnamed3427(); o.provisioningKey = "foo"; o.status = "foo"; } @@ -138,7 +138,7 @@ checkIndoorLevel(o.indoorLevel); checkLatLng(o.latLng); unittest.expect(o.placeId, unittest.equals('foo')); - checkUnnamed3430(o.properties); + checkUnnamed3427(o.properties); unittest.expect(o.provisioningKey, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); } @@ -170,14 +170,14 @@ buildCounterBeaconAttachment--; } -buildUnnamed3431() { +buildUnnamed3428() { var o = new core.List<api.AttachmentInfo>(); o.add(buildAttachmentInfo()); o.add(buildAttachmentInfo()); return o; } -checkUnnamed3431(core.List<api.AttachmentInfo> o) { +checkUnnamed3428(core.List<api.AttachmentInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachmentInfo(o[0]); checkAttachmentInfo(o[1]); @@ -189,7 +189,7 @@ buildCounterBeaconInfo++; if (buildCounterBeaconInfo < 3) { o.advertisedId = buildAdvertisedId(); - o.attachments = buildUnnamed3431(); + o.attachments = buildUnnamed3428(); o.beaconName = "foo"; } buildCounterBeaconInfo--; @@ -200,7 +200,7 @@ buildCounterBeaconInfo++; if (buildCounterBeaconInfo < 3) { checkAdvertisedId(o.advertisedId); - checkUnnamed3431(o.attachments); + checkUnnamed3428(o.attachments); unittest.expect(o.beaconName, unittest.equals('foo')); } buildCounterBeaconInfo--; @@ -248,14 +248,14 @@ buildCounterDeleteAttachmentsResponse--; } -buildUnnamed3432() { +buildUnnamed3429() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3432(core.List<core.String> o) { +checkUnnamed3429(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -266,7 +266,7 @@ var o = new api.Diagnostics(); buildCounterDiagnostics++; if (buildCounterDiagnostics < 3) { - o.alerts = buildUnnamed3432(); + o.alerts = buildUnnamed3429(); o.beaconName = "foo"; o.estimatedLowBatteryDate = buildDate(); } @@ -277,7 +277,7 @@ checkDiagnostics(api.Diagnostics o) { buildCounterDiagnostics++; if (buildCounterDiagnostics < 3) { - checkUnnamed3432(o.alerts); + checkUnnamed3429(o.alerts); unittest.expect(o.beaconName, unittest.equals('foo')); checkDate(o.estimatedLowBatteryDate); } @@ -353,27 +353,27 @@ buildCounterEphemeralIdRegistrationParams--; } -buildUnnamed3433() { +buildUnnamed3430() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3433(core.List<core.String> o) { +checkUnnamed3430(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3434() { +buildUnnamed3431() { var o = new core.List<api.Observation>(); o.add(buildObservation()); o.add(buildObservation()); return o; } -checkUnnamed3434(core.List<api.Observation> o) { +checkUnnamed3431(core.List<api.Observation> o) { unittest.expect(o, unittest.hasLength(2)); checkObservation(o[0]); checkObservation(o[1]); @@ -384,8 +384,8 @@ var o = new api.GetInfoForObservedBeaconsRequest(); buildCounterGetInfoForObservedBeaconsRequest++; if (buildCounterGetInfoForObservedBeaconsRequest < 3) { - o.namespacedTypes = buildUnnamed3433(); - o.observations = buildUnnamed3434(); + o.namespacedTypes = buildUnnamed3430(); + o.observations = buildUnnamed3431(); } buildCounterGetInfoForObservedBeaconsRequest--; return o; @@ -394,20 +394,20 @@ checkGetInfoForObservedBeaconsRequest(api.GetInfoForObservedBeaconsRequest o) { buildCounterGetInfoForObservedBeaconsRequest++; if (buildCounterGetInfoForObservedBeaconsRequest < 3) { - checkUnnamed3433(o.namespacedTypes); - checkUnnamed3434(o.observations); + checkUnnamed3430(o.namespacedTypes); + checkUnnamed3431(o.observations); } buildCounterGetInfoForObservedBeaconsRequest--; } -buildUnnamed3435() { +buildUnnamed3432() { var o = new core.List<api.BeaconInfo>(); o.add(buildBeaconInfo()); o.add(buildBeaconInfo()); return o; } -checkUnnamed3435(core.List<api.BeaconInfo> o) { +checkUnnamed3432(core.List<api.BeaconInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkBeaconInfo(o[0]); checkBeaconInfo(o[1]); @@ -418,7 +418,7 @@ var o = new api.GetInfoForObservedBeaconsResponse(); buildCounterGetInfoForObservedBeaconsResponse++; if (buildCounterGetInfoForObservedBeaconsResponse < 3) { - o.beacons = buildUnnamed3435(); + o.beacons = buildUnnamed3432(); } buildCounterGetInfoForObservedBeaconsResponse--; return o; @@ -427,7 +427,7 @@ checkGetInfoForObservedBeaconsResponse(api.GetInfoForObservedBeaconsResponse o) { buildCounterGetInfoForObservedBeaconsResponse++; if (buildCounterGetInfoForObservedBeaconsResponse < 3) { - checkUnnamed3435(o.beacons); + checkUnnamed3432(o.beacons); } buildCounterGetInfoForObservedBeaconsResponse--; } @@ -472,14 +472,14 @@ buildCounterLatLng--; } -buildUnnamed3436() { +buildUnnamed3433() { var o = new core.List<api.BeaconAttachment>(); o.add(buildBeaconAttachment()); o.add(buildBeaconAttachment()); return o; } -checkUnnamed3436(core.List<api.BeaconAttachment> o) { +checkUnnamed3433(core.List<api.BeaconAttachment> o) { unittest.expect(o, unittest.hasLength(2)); checkBeaconAttachment(o[0]); checkBeaconAttachment(o[1]); @@ -490,7 +490,7 @@ var o = new api.ListBeaconAttachmentsResponse(); buildCounterListBeaconAttachmentsResponse++; if (buildCounterListBeaconAttachmentsResponse < 3) { - o.attachments = buildUnnamed3436(); + o.attachments = buildUnnamed3433(); } buildCounterListBeaconAttachmentsResponse--; return o; @@ -499,19 +499,19 @@ checkListBeaconAttachmentsResponse(api.ListBeaconAttachmentsResponse o) { buildCounterListBeaconAttachmentsResponse++; if (buildCounterListBeaconAttachmentsResponse < 3) { - checkUnnamed3436(o.attachments); + checkUnnamed3433(o.attachments); } buildCounterListBeaconAttachmentsResponse--; } -buildUnnamed3437() { +buildUnnamed3434() { var o = new core.List<api.Beacon>(); o.add(buildBeacon()); o.add(buildBeacon()); return o; } -checkUnnamed3437(core.List<api.Beacon> o) { +checkUnnamed3434(core.List<api.Beacon> o) { unittest.expect(o, unittest.hasLength(2)); checkBeacon(o[0]); checkBeacon(o[1]); @@ -522,7 +522,7 @@ var o = new api.ListBeaconsResponse(); buildCounterListBeaconsResponse++; if (buildCounterListBeaconsResponse < 3) { - o.beacons = buildUnnamed3437(); + o.beacons = buildUnnamed3434(); o.nextPageToken = "foo"; o.totalCount = "foo"; } @@ -533,21 +533,21 @@ checkListBeaconsResponse(api.ListBeaconsResponse o) { buildCounterListBeaconsResponse++; if (buildCounterListBeaconsResponse < 3) { - checkUnnamed3437(o.beacons); + checkUnnamed3434(o.beacons); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalCount, unittest.equals('foo')); } buildCounterListBeaconsResponse--; } -buildUnnamed3438() { +buildUnnamed3435() { var o = new core.List<api.Diagnostics>(); o.add(buildDiagnostics()); o.add(buildDiagnostics()); return o; } -checkUnnamed3438(core.List<api.Diagnostics> o) { +checkUnnamed3435(core.List<api.Diagnostics> o) { unittest.expect(o, unittest.hasLength(2)); checkDiagnostics(o[0]); checkDiagnostics(o[1]); @@ -558,7 +558,7 @@ var o = new api.ListDiagnosticsResponse(); buildCounterListDiagnosticsResponse++; if (buildCounterListDiagnosticsResponse < 3) { - o.diagnostics = buildUnnamed3438(); + o.diagnostics = buildUnnamed3435(); o.nextPageToken = "foo"; } buildCounterListDiagnosticsResponse--; @@ -568,20 +568,20 @@ checkListDiagnosticsResponse(api.ListDiagnosticsResponse o) { buildCounterListDiagnosticsResponse++; if (buildCounterListDiagnosticsResponse < 3) { - checkUnnamed3438(o.diagnostics); + checkUnnamed3435(o.diagnostics); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDiagnosticsResponse--; } -buildUnnamed3439() { +buildUnnamed3436() { var o = new core.List<api.Namespace>(); o.add(buildNamespace()); o.add(buildNamespace()); return o; } -checkUnnamed3439(core.List<api.Namespace> o) { +checkUnnamed3436(core.List<api.Namespace> o) { unittest.expect(o, unittest.hasLength(2)); checkNamespace(o[0]); checkNamespace(o[1]); @@ -592,7 +592,7 @@ var o = new api.ListNamespacesResponse(); buildCounterListNamespacesResponse++; if (buildCounterListNamespacesResponse < 3) { - o.namespaces = buildUnnamed3439(); + o.namespaces = buildUnnamed3436(); } buildCounterListNamespacesResponse--; return o; @@ -601,7 +601,7 @@ checkListNamespacesResponse(api.ListNamespacesResponse o) { buildCounterListNamespacesResponse++; if (buildCounterListNamespacesResponse < 3) { - checkUnnamed3439(o.namespaces); + checkUnnamed3436(o.namespaces); } buildCounterListNamespacesResponse--; } @@ -1288,8 +1288,8 @@ var mock = new HttpServerMock(); api.BeaconsAttachmentsResourceApi res = new api.ProximitybeaconApi(mock).beacons.attachments; var arg_beaconName = "foo"; - var arg_namespacedType = "foo"; var arg_projectId = "foo"; + var arg_namespacedType = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1317,8 +1317,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["namespacedType"].first, unittest.equals(arg_namespacedType)); unittest.expect(queryMap["projectId"].first, unittest.equals(arg_projectId)); + unittest.expect(queryMap["namespacedType"].first, unittest.equals(arg_namespacedType)); var h = { @@ -1327,7 +1327,7 @@ var resp = convert.JSON.encode(buildDeleteAttachmentsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.batchDelete(arg_beaconName, namespacedType: arg_namespacedType, projectId: arg_projectId).then(unittest.expectAsync1(((api.DeleteAttachmentsResponse response) { + res.batchDelete(arg_beaconName, projectId: arg_projectId, namespacedType: arg_namespacedType).then(unittest.expectAsync1(((api.DeleteAttachmentsResponse response) { checkDeleteAttachmentsResponse(response); }))); }); @@ -1435,8 +1435,8 @@ var mock = new HttpServerMock(); api.BeaconsAttachmentsResourceApi res = new api.ProximitybeaconApi(mock).beacons.attachments; var arg_beaconName = "foo"; - var arg_projectId = "foo"; var arg_namespacedType = "foo"; + var arg_projectId = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1464,8 +1464,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["projectId"].first, unittest.equals(arg_projectId)); unittest.expect(queryMap["namespacedType"].first, unittest.equals(arg_namespacedType)); + unittest.expect(queryMap["projectId"].first, unittest.equals(arg_projectId)); var h = { @@ -1474,7 +1474,7 @@ var resp = convert.JSON.encode(buildListBeaconAttachmentsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_beaconName, projectId: arg_projectId, namespacedType: arg_namespacedType).then(unittest.expectAsync1(((api.ListBeaconAttachmentsResponse response) { + res.list(arg_beaconName, namespacedType: arg_namespacedType, projectId: arg_projectId).then(unittest.expectAsync1(((api.ListBeaconAttachmentsResponse response) { checkListBeaconAttachmentsResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/pubsub/v1beta2_test.dart b/generated/googleapis_beta/test/pubsub/v1beta2_test.dart index 1eb3679..9cf46c1 100644 --- a/generated/googleapis_beta/test/pubsub/v1beta2_test.dart +++ b/generated/googleapis_beta/test/pubsub/v1beta2_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3312() { +buildUnnamed3308() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3312(core.List<core.String> o) { +checkUnnamed3308(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -69,7 +69,7 @@ var o = new api.AcknowledgeRequest(); buildCounterAcknowledgeRequest++; if (buildCounterAcknowledgeRequest < 3) { - o.ackIds = buildUnnamed3312(); + o.ackIds = buildUnnamed3308(); } buildCounterAcknowledgeRequest--; return o; @@ -78,19 +78,19 @@ checkAcknowledgeRequest(api.AcknowledgeRequest o) { buildCounterAcknowledgeRequest++; if (buildCounterAcknowledgeRequest < 3) { - checkUnnamed3312(o.ackIds); + checkUnnamed3308(o.ackIds); } buildCounterAcknowledgeRequest--; } -buildUnnamed3313() { +buildUnnamed3309() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3313(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')); @@ -101,7 +101,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed3313(); + o.members = buildUnnamed3309(); o.role = "foo"; } buildCounterBinding--; @@ -111,7 +111,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed3313(o.members); + checkUnnamed3309(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -134,14 +134,14 @@ buildCounterEmpty--; } -buildUnnamed3314() { +buildUnnamed3310() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed3314(core.List<api.Subscription> o) { +checkUnnamed3310(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -153,7 +153,7 @@ buildCounterListSubscriptionsResponse++; if (buildCounterListSubscriptionsResponse < 3) { o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed3314(); + o.subscriptions = buildUnnamed3310(); } buildCounterListSubscriptionsResponse--; return o; @@ -163,19 +163,19 @@ buildCounterListSubscriptionsResponse++; if (buildCounterListSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3314(o.subscriptions); + checkUnnamed3310(o.subscriptions); } buildCounterListSubscriptionsResponse--; } -buildUnnamed3315() { +buildUnnamed3311() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3315(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')); @@ -187,7 +187,7 @@ buildCounterListTopicSubscriptionsResponse++; if (buildCounterListTopicSubscriptionsResponse < 3) { o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed3315(); + o.subscriptions = buildUnnamed3311(); } buildCounterListTopicSubscriptionsResponse--; return o; @@ -197,19 +197,19 @@ buildCounterListTopicSubscriptionsResponse++; if (buildCounterListTopicSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3315(o.subscriptions); + checkUnnamed3311(o.subscriptions); } buildCounterListTopicSubscriptionsResponse--; } -buildUnnamed3316() { +buildUnnamed3312() { var o = new core.List<api.Topic>(); o.add(buildTopic()); o.add(buildTopic()); return o; } -checkUnnamed3316(core.List<api.Topic> o) { +checkUnnamed3312(core.List<api.Topic> o) { unittest.expect(o, unittest.hasLength(2)); checkTopic(o[0]); checkTopic(o[1]); @@ -221,7 +221,7 @@ buildCounterListTopicsResponse++; if (buildCounterListTopicsResponse < 3) { o.nextPageToken = "foo"; - o.topics = buildUnnamed3316(); + o.topics = buildUnnamed3312(); } buildCounterListTopicsResponse--; return o; @@ -231,19 +231,19 @@ buildCounterListTopicsResponse++; if (buildCounterListTopicsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3316(o.topics); + checkUnnamed3312(o.topics); } buildCounterListTopicsResponse--; } -buildUnnamed3317() { +buildUnnamed3313() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3317(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')); @@ -256,7 +256,7 @@ if (buildCounterModifyAckDeadlineRequest < 3) { o.ackDeadlineSeconds = 42; o.ackId = "foo"; - o.ackIds = buildUnnamed3317(); + o.ackIds = buildUnnamed3313(); } buildCounterModifyAckDeadlineRequest--; return o; @@ -267,7 +267,7 @@ if (buildCounterModifyAckDeadlineRequest < 3) { unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); unittest.expect(o.ackId, unittest.equals('foo')); - checkUnnamed3317(o.ackIds); + checkUnnamed3313(o.ackIds); } buildCounterModifyAckDeadlineRequest--; } @@ -291,14 +291,14 @@ buildCounterModifyPushConfigRequest--; } -buildUnnamed3318() { +buildUnnamed3314() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed3318(core.List<api.Binding> o) { +checkUnnamed3314(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -309,7 +309,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed3318(); + o.bindings = buildUnnamed3314(); o.etag = "foo"; o.version = 42; } @@ -320,21 +320,21 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed3318(o.bindings); + checkUnnamed3314(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed3319() { +buildUnnamed3315() { var o = new core.List<api.PubsubMessage>(); o.add(buildPubsubMessage()); o.add(buildPubsubMessage()); return o; } -checkUnnamed3319(core.List<api.PubsubMessage> o) { +checkUnnamed3315(core.List<api.PubsubMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkPubsubMessage(o[0]); checkPubsubMessage(o[1]); @@ -345,7 +345,7 @@ var o = new api.PublishRequest(); buildCounterPublishRequest++; if (buildCounterPublishRequest < 3) { - o.messages = buildUnnamed3319(); + o.messages = buildUnnamed3315(); } buildCounterPublishRequest--; return o; @@ -354,19 +354,19 @@ checkPublishRequest(api.PublishRequest o) { buildCounterPublishRequest++; if (buildCounterPublishRequest < 3) { - checkUnnamed3319(o.messages); + checkUnnamed3315(o.messages); } buildCounterPublishRequest--; } -buildUnnamed3320() { +buildUnnamed3316() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3320(core.List<core.String> o) { +checkUnnamed3316(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -377,7 +377,7 @@ var o = new api.PublishResponse(); buildCounterPublishResponse++; if (buildCounterPublishResponse < 3) { - o.messageIds = buildUnnamed3320(); + o.messageIds = buildUnnamed3316(); } buildCounterPublishResponse--; return o; @@ -386,19 +386,19 @@ checkPublishResponse(api.PublishResponse o) { buildCounterPublishResponse++; if (buildCounterPublishResponse < 3) { - checkUnnamed3320(o.messageIds); + checkUnnamed3316(o.messageIds); } buildCounterPublishResponse--; } -buildUnnamed3321() { +buildUnnamed3317() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3321(core.Map<core.String, core.String> o) { +checkUnnamed3317(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -409,7 +409,7 @@ var o = new api.PubsubMessage(); buildCounterPubsubMessage++; if (buildCounterPubsubMessage < 3) { - o.attributes = buildUnnamed3321(); + o.attributes = buildUnnamed3317(); o.data = "foo"; o.messageId = "foo"; o.publishTime = "foo"; @@ -421,7 +421,7 @@ checkPubsubMessage(api.PubsubMessage o) { buildCounterPubsubMessage++; if (buildCounterPubsubMessage < 3) { - checkUnnamed3321(o.attributes); + checkUnnamed3317(o.attributes); unittest.expect(o.data, unittest.equals('foo')); unittest.expect(o.messageId, unittest.equals('foo')); unittest.expect(o.publishTime, unittest.equals('foo')); @@ -450,14 +450,14 @@ buildCounterPullRequest--; } -buildUnnamed3322() { +buildUnnamed3318() { var o = new core.List<api.ReceivedMessage>(); o.add(buildReceivedMessage()); o.add(buildReceivedMessage()); return o; } -checkUnnamed3322(core.List<api.ReceivedMessage> o) { +checkUnnamed3318(core.List<api.ReceivedMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkReceivedMessage(o[0]); checkReceivedMessage(o[1]); @@ -468,7 +468,7 @@ var o = new api.PullResponse(); buildCounterPullResponse++; if (buildCounterPullResponse < 3) { - o.receivedMessages = buildUnnamed3322(); + o.receivedMessages = buildUnnamed3318(); } buildCounterPullResponse--; return o; @@ -477,19 +477,19 @@ checkPullResponse(api.PullResponse o) { buildCounterPullResponse++; if (buildCounterPullResponse < 3) { - checkUnnamed3322(o.receivedMessages); + checkUnnamed3318(o.receivedMessages); } buildCounterPullResponse--; } -buildUnnamed3323() { +buildUnnamed3319() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3323(core.Map<core.String, core.String> o) { +checkUnnamed3319(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -500,7 +500,7 @@ var o = new api.PushConfig(); buildCounterPushConfig++; if (buildCounterPushConfig < 3) { - o.attributes = buildUnnamed3323(); + o.attributes = buildUnnamed3319(); o.pushEndpoint = "foo"; } buildCounterPushConfig--; @@ -510,7 +510,7 @@ checkPushConfig(api.PushConfig o) { buildCounterPushConfig++; if (buildCounterPushConfig < 3) { - checkUnnamed3323(o.attributes); + checkUnnamed3319(o.attributes); unittest.expect(o.pushEndpoint, unittest.equals('foo')); } buildCounterPushConfig--; @@ -581,14 +581,14 @@ buildCounterSubscription--; } -buildUnnamed3324() { +buildUnnamed3320() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3324(core.List<core.String> o) { +checkUnnamed3320(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -599,7 +599,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed3324(); + o.permissions = buildUnnamed3320(); } buildCounterTestIamPermissionsRequest--; return o; @@ -608,19 +608,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed3324(o.permissions); + checkUnnamed3320(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed3325() { +buildUnnamed3321() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3325(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')); @@ -631,7 +631,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed3325(); + o.permissions = buildUnnamed3321(); } buildCounterTestIamPermissionsResponse--; return o; @@ -640,7 +640,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed3325(o.permissions); + checkUnnamed3321(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -1094,8 +1094,8 @@ var mock = new HttpServerMock(); api.ProjectsSubscriptionsResourceApi res = new api.PubsubApi(mock).projects.subscriptions; var arg_project = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1123,8 +1123,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -1133,7 +1133,7 @@ var resp = convert.JSON.encode(buildListSubscriptionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListSubscriptionsResponse response) { + res.list(arg_project, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListSubscriptionsResponse response) { checkListSubscriptionsResponse(response); }))); }); @@ -1576,8 +1576,8 @@ var mock = new HttpServerMock(); api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topics; var arg_project = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1605,8 +1605,8 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -1615,7 +1615,7 @@ var resp = convert.JSON.encode(buildListTopicsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListTopicsResponse response) { + res.list(arg_project, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListTopicsResponse response) { checkListTopicsResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/replicapool/v1beta2_test.dart b/generated/googleapis_beta/test/replicapool/v1beta2_test.dart index 17c258d..7c2b0af 100644 --- a/generated/googleapis_beta/test/replicapool/v1beta2_test.dart +++ b/generated/googleapis_beta/test/replicapool/v1beta2_test.dart
@@ -51,19 +51,149 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3419() { +buildUnnamed3416() { var o = new core.List<api.ReplicaPoolAutoHealingPolicy>(); o.add(buildReplicaPoolAutoHealingPolicy()); o.add(buildReplicaPoolAutoHealingPolicy()); return o; } -checkUnnamed3419(core.List<api.ReplicaPoolAutoHealingPolicy> o) { +checkUnnamed3416(core.List<api.ReplicaPoolAutoHealingPolicy> o) { unittest.expect(o, unittest.hasLength(2)); checkReplicaPoolAutoHealingPolicy(o[0]); checkReplicaPoolAutoHealingPolicy(o[1]); } +buildUnnamed3417() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3417(core.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 buildCounterInstanceGroupManager = 0; +buildInstanceGroupManager() { + var o = new api.InstanceGroupManager(); + buildCounterInstanceGroupManager++; + if (buildCounterInstanceGroupManager < 3) { + o.autoHealingPolicies = buildUnnamed3416(); + o.baseInstanceName = "foo"; + o.creationTimestamp = "foo"; + o.currentSize = 42; + o.description = "foo"; + o.fingerprint = "foo"; + o.group = "foo"; + o.id = "foo"; + o.instanceTemplate = "foo"; + o.kind = "foo"; + o.name = "foo"; + o.selfLink = "foo"; + o.targetPools = buildUnnamed3417(); + o.targetSize = 42; + } + buildCounterInstanceGroupManager--; + return o; +} + +checkInstanceGroupManager(api.InstanceGroupManager o) { + buildCounterInstanceGroupManager++; + if (buildCounterInstanceGroupManager < 3) { + checkUnnamed3416(o.autoHealingPolicies); + unittest.expect(o.baseInstanceName, unittest.equals('foo')); + unittest.expect(o.creationTimestamp, unittest.equals('foo')); + unittest.expect(o.currentSize, unittest.equals(42)); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.fingerprint, unittest.equals('foo')); + unittest.expect(o.group, unittest.equals('foo')); + unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.instanceTemplate, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed3417(o.targetPools); + unittest.expect(o.targetSize, unittest.equals(42)); + } + buildCounterInstanceGroupManager--; +} + +buildUnnamed3418() { + var o = new core.List<api.InstanceGroupManager>(); + o.add(buildInstanceGroupManager()); + o.add(buildInstanceGroupManager()); + return o; +} + +checkUnnamed3418(core.List<api.InstanceGroupManager> o) { + unittest.expect(o, unittest.hasLength(2)); + checkInstanceGroupManager(o[0]); + checkInstanceGroupManager(o[1]); +} + +core.int buildCounterInstanceGroupManagerList = 0; +buildInstanceGroupManagerList() { + var o = new api.InstanceGroupManagerList(); + buildCounterInstanceGroupManagerList++; + if (buildCounterInstanceGroupManagerList < 3) { + o.id = "foo"; + o.items = buildUnnamed3418(); + o.kind = "foo"; + o.nextPageToken = "foo"; + o.selfLink = "foo"; + } + buildCounterInstanceGroupManagerList--; + return o; +} + +checkInstanceGroupManagerList(api.InstanceGroupManagerList o) { + buildCounterInstanceGroupManagerList++; + if (buildCounterInstanceGroupManagerList < 3) { + unittest.expect(o.id, unittest.equals('foo')); + checkUnnamed3418(o.items); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + } + buildCounterInstanceGroupManagerList--; +} + +buildUnnamed3419() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3419(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterInstanceGroupManagersAbandonInstancesRequest = 0; +buildInstanceGroupManagersAbandonInstancesRequest() { + var o = new api.InstanceGroupManagersAbandonInstancesRequest(); + buildCounterInstanceGroupManagersAbandonInstancesRequest++; + if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { + o.instances = buildUnnamed3419(); + } + buildCounterInstanceGroupManagersAbandonInstancesRequest--; + return o; +} + +checkInstanceGroupManagersAbandonInstancesRequest(api.InstanceGroupManagersAbandonInstancesRequest o) { + buildCounterInstanceGroupManagersAbandonInstancesRequest++; + if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { + checkUnnamed3419(o.instances); + } + buildCounterInstanceGroupManagersAbandonInstancesRequest--; +} + buildUnnamed3420() { var o = new core.List<core.String>(); o.add("foo"); @@ -77,142 +207,12 @@ unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterInstanceGroupManager = 0; -buildInstanceGroupManager() { - var o = new api.InstanceGroupManager(); - buildCounterInstanceGroupManager++; - if (buildCounterInstanceGroupManager < 3) { - o.autoHealingPolicies = buildUnnamed3419(); - o.baseInstanceName = "foo"; - o.creationTimestamp = "foo"; - o.currentSize = 42; - o.description = "foo"; - o.fingerprint = "foo"; - o.group = "foo"; - o.id = "foo"; - o.instanceTemplate = "foo"; - o.kind = "foo"; - o.name = "foo"; - o.selfLink = "foo"; - o.targetPools = buildUnnamed3420(); - o.targetSize = 42; - } - buildCounterInstanceGroupManager--; - return o; -} - -checkInstanceGroupManager(api.InstanceGroupManager o) { - buildCounterInstanceGroupManager++; - if (buildCounterInstanceGroupManager < 3) { - checkUnnamed3419(o.autoHealingPolicies); - unittest.expect(o.baseInstanceName, unittest.equals('foo')); - unittest.expect(o.creationTimestamp, unittest.equals('foo')); - unittest.expect(o.currentSize, unittest.equals(42)); - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.fingerprint, unittest.equals('foo')); - unittest.expect(o.group, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.instanceTemplate, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed3420(o.targetPools); - unittest.expect(o.targetSize, unittest.equals(42)); - } - buildCounterInstanceGroupManager--; -} - -buildUnnamed3421() { - var o = new core.List<api.InstanceGroupManager>(); - o.add(buildInstanceGroupManager()); - o.add(buildInstanceGroupManager()); - return o; -} - -checkUnnamed3421(core.List<api.InstanceGroupManager> o) { - unittest.expect(o, unittest.hasLength(2)); - checkInstanceGroupManager(o[0]); - checkInstanceGroupManager(o[1]); -} - -core.int buildCounterInstanceGroupManagerList = 0; -buildInstanceGroupManagerList() { - var o = new api.InstanceGroupManagerList(); - buildCounterInstanceGroupManagerList++; - if (buildCounterInstanceGroupManagerList < 3) { - o.id = "foo"; - o.items = buildUnnamed3421(); - o.kind = "foo"; - o.nextPageToken = "foo"; - o.selfLink = "foo"; - } - buildCounterInstanceGroupManagerList--; - return o; -} - -checkInstanceGroupManagerList(api.InstanceGroupManagerList o) { - buildCounterInstanceGroupManagerList++; - if (buildCounterInstanceGroupManagerList < 3) { - unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3421(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - unittest.expect(o.selfLink, unittest.equals('foo')); - } - buildCounterInstanceGroupManagerList--; -} - -buildUnnamed3422() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3422(core.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 buildCounterInstanceGroupManagersAbandonInstancesRequest = 0; -buildInstanceGroupManagersAbandonInstancesRequest() { - var o = new api.InstanceGroupManagersAbandonInstancesRequest(); - buildCounterInstanceGroupManagersAbandonInstancesRequest++; - if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - o.instances = buildUnnamed3422(); - } - buildCounterInstanceGroupManagersAbandonInstancesRequest--; - return o; -} - -checkInstanceGroupManagersAbandonInstancesRequest(api.InstanceGroupManagersAbandonInstancesRequest o) { - buildCounterInstanceGroupManagersAbandonInstancesRequest++; - if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - checkUnnamed3422(o.instances); - } - buildCounterInstanceGroupManagersAbandonInstancesRequest--; -} - -buildUnnamed3423() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - core.int buildCounterInstanceGroupManagersDeleteInstancesRequest = 0; buildInstanceGroupManagersDeleteInstancesRequest() { var o = new api.InstanceGroupManagersDeleteInstancesRequest(); buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - o.instances = buildUnnamed3423(); + o.instances = buildUnnamed3420(); } buildCounterInstanceGroupManagersDeleteInstancesRequest--; return o; @@ -221,19 +221,19 @@ checkInstanceGroupManagersDeleteInstancesRequest(api.InstanceGroupManagersDeleteInstancesRequest o) { buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - checkUnnamed3423(o.instances); + checkUnnamed3420(o.instances); } buildCounterInstanceGroupManagersDeleteInstancesRequest--; } -buildUnnamed3424() { +buildUnnamed3421() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3424(core.List<core.String> o) { +checkUnnamed3421(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -244,7 +244,7 @@ var o = new api.InstanceGroupManagersRecreateInstancesRequest(); buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - o.instances = buildUnnamed3424(); + o.instances = buildUnnamed3421(); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; return o; @@ -253,7 +253,7 @@ checkInstanceGroupManagersRecreateInstancesRequest(api.InstanceGroupManagersRecreateInstancesRequest o) { buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - checkUnnamed3424(o.instances); + checkUnnamed3421(o.instances); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; } @@ -277,14 +277,14 @@ buildCounterInstanceGroupManagersSetInstanceTemplateRequest--; } -buildUnnamed3425() { +buildUnnamed3422() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3425(core.List<core.String> o) { +checkUnnamed3422(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -296,7 +296,7 @@ buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { o.fingerprint = "foo"; - o.targetPools = buildUnnamed3425(); + o.targetPools = buildUnnamed3422(); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; return o; @@ -306,7 +306,7 @@ buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed3425(o.targetPools); + checkUnnamed3422(o.targetPools); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; } @@ -334,14 +334,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed3426() { +buildUnnamed3423() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed3426(core.List<api.OperationErrorErrors> o) { +checkUnnamed3423(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -352,7 +352,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed3426(); + o.errors = buildUnnamed3423(); } buildCounterOperationError--; return o; @@ -361,7 +361,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed3426(o.errors); + checkUnnamed3423(o.errors); } buildCounterOperationError--; } @@ -387,14 +387,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed3427() { +buildUnnamed3424() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed3427(core.List<api.OperationWarningsData> o) { +checkUnnamed3424(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -406,7 +406,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed3427(); + o.data = buildUnnamed3424(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -417,20 +417,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed3427(o.data); + checkUnnamed3424(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed3428() { +buildUnnamed3425() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed3428(core.List<api.OperationWarnings> o) { +checkUnnamed3425(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -461,7 +461,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed3428(); + o.warnings = buildUnnamed3425(); o.zone = "foo"; } buildCounterOperation--; @@ -491,20 +491,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3428(o.warnings); + checkUnnamed3425(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed3429() { +buildUnnamed3426() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3429(core.List<api.Operation> o) { +checkUnnamed3426(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -516,7 +516,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { o.id = "foo"; - o.items = buildUnnamed3429(); + o.items = buildUnnamed3426(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -529,7 +529,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3429(o.items); + checkUnnamed3426(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo'));
diff --git a/generated/googleapis_beta/test/replicapoolupdater/v1beta1_test.dart b/generated/googleapis_beta/test/replicapoolupdater/v1beta1_test.dart index 2d1d5f7..3919570 100644 --- a/generated/googleapis_beta/test/replicapoolupdater/v1beta1_test.dart +++ b/generated/googleapis_beta/test/replicapoolupdater/v1beta1_test.dart
@@ -74,14 +74,14 @@ buildCounterInstanceUpdateErrorErrors--; } -buildUnnamed3253() { +buildUnnamed3249() { var o = new core.List<api.InstanceUpdateErrorErrors>(); o.add(buildInstanceUpdateErrorErrors()); o.add(buildInstanceUpdateErrorErrors()); return o; } -checkUnnamed3253(core.List<api.InstanceUpdateErrorErrors> o) { +checkUnnamed3249(core.List<api.InstanceUpdateErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceUpdateErrorErrors(o[0]); checkInstanceUpdateErrorErrors(o[1]); @@ -92,7 +92,7 @@ var o = new api.InstanceUpdateError(); buildCounterInstanceUpdateError++; if (buildCounterInstanceUpdateError < 3) { - o.errors = buildUnnamed3253(); + o.errors = buildUnnamed3249(); } buildCounterInstanceUpdateError--; return o; @@ -101,7 +101,7 @@ checkInstanceUpdateError(api.InstanceUpdateError o) { buildCounterInstanceUpdateError++; if (buildCounterInstanceUpdateError < 3) { - checkUnnamed3253(o.errors); + checkUnnamed3249(o.errors); } buildCounterInstanceUpdateError--; } @@ -129,14 +129,14 @@ buildCounterInstanceUpdate--; } -buildUnnamed3254() { +buildUnnamed3250() { var o = new core.List<api.InstanceUpdate>(); o.add(buildInstanceUpdate()); o.add(buildInstanceUpdate()); return o; } -checkUnnamed3254(core.List<api.InstanceUpdate> o) { +checkUnnamed3250(core.List<api.InstanceUpdate> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceUpdate(o[0]); checkInstanceUpdate(o[1]); @@ -147,7 +147,7 @@ var o = new api.InstanceUpdateList(); buildCounterInstanceUpdateList++; if (buildCounterInstanceUpdateList < 3) { - o.items = buildUnnamed3254(); + o.items = buildUnnamed3250(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -159,7 +159,7 @@ checkInstanceUpdateList(api.InstanceUpdateList o) { buildCounterInstanceUpdateList++; if (buildCounterInstanceUpdateList < 3) { - checkUnnamed3254(o.items); + checkUnnamed3250(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -190,14 +190,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed3255() { +buildUnnamed3251() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed3255(core.List<api.OperationErrorErrors> o) { +checkUnnamed3251(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -208,7 +208,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed3255(); + o.errors = buildUnnamed3251(); } buildCounterOperationError--; return o; @@ -217,7 +217,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed3255(o.errors); + checkUnnamed3251(o.errors); } buildCounterOperationError--; } @@ -243,14 +243,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed3256() { +buildUnnamed3252() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed3256(core.List<api.OperationWarningsData> o) { +checkUnnamed3252(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -262,7 +262,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed3256(); + o.data = buildUnnamed3252(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -273,20 +273,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed3256(o.data); + checkUnnamed3252(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed3257() { +buildUnnamed3253() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed3257(core.List<api.OperationWarnings> o) { +checkUnnamed3253(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -317,7 +317,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed3257(); + o.warnings = buildUnnamed3253(); o.zone = "foo"; } buildCounterOperation--; @@ -347,20 +347,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3257(o.warnings); + checkUnnamed3253(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed3258() { +buildUnnamed3254() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3258(core.List<api.Operation> o) { +checkUnnamed3254(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -372,7 +372,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { o.id = "foo"; - o.items = buildUnnamed3258(); + o.items = buildUnnamed3254(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -385,7 +385,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3258(o.items); + checkUnnamed3254(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -416,14 +416,14 @@ buildCounterRollingUpdateErrorErrors--; } -buildUnnamed3259() { +buildUnnamed3255() { var o = new core.List<api.RollingUpdateErrorErrors>(); o.add(buildRollingUpdateErrorErrors()); o.add(buildRollingUpdateErrorErrors()); return o; } -checkUnnamed3259(core.List<api.RollingUpdateErrorErrors> o) { +checkUnnamed3255(core.List<api.RollingUpdateErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkRollingUpdateErrorErrors(o[0]); checkRollingUpdateErrorErrors(o[1]); @@ -434,7 +434,7 @@ var o = new api.RollingUpdateError(); buildCounterRollingUpdateError++; if (buildCounterRollingUpdateError < 3) { - o.errors = buildUnnamed3259(); + o.errors = buildUnnamed3255(); } buildCounterRollingUpdateError--; return o; @@ -443,7 +443,7 @@ checkRollingUpdateError(api.RollingUpdateError o) { buildCounterRollingUpdateError++; if (buildCounterRollingUpdateError < 3) { - checkUnnamed3259(o.errors); + checkUnnamed3255(o.errors); } buildCounterRollingUpdateError--; } @@ -524,14 +524,14 @@ buildCounterRollingUpdate--; } -buildUnnamed3260() { +buildUnnamed3256() { var o = new core.List<api.RollingUpdate>(); o.add(buildRollingUpdate()); o.add(buildRollingUpdate()); return o; } -checkUnnamed3260(core.List<api.RollingUpdate> o) { +checkUnnamed3256(core.List<api.RollingUpdate> o) { unittest.expect(o, unittest.hasLength(2)); checkRollingUpdate(o[0]); checkRollingUpdate(o[1]); @@ -542,7 +542,7 @@ var o = new api.RollingUpdateList(); buildCounterRollingUpdateList++; if (buildCounterRollingUpdateList < 3) { - o.items = buildUnnamed3260(); + o.items = buildUnnamed3256(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -554,7 +554,7 @@ checkRollingUpdateList(api.RollingUpdateList o) { buildCounterRollingUpdateList++; if (buildCounterRollingUpdateList < 3) { - checkUnnamed3260(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'));
diff --git a/generated/googleapis_beta/test/resourceviews/v1beta1_test.dart b/generated/googleapis_beta/test/resourceviews/v1beta1_test.dart index 7134f95..dee6ff2 100644 --- a/generated/googleapis_beta/test/resourceviews/v1beta1_test.dart +++ b/generated/googleapis_beta/test/resourceviews/v1beta1_test.dart
@@ -72,14 +72,14 @@ buildCounterLabel--; } -buildUnnamed3355() { +buildUnnamed3352() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3355(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')); @@ -90,7 +90,7 @@ var o = new api.RegionViewsAddResourcesRequest(); buildCounterRegionViewsAddResourcesRequest++; if (buildCounterRegionViewsAddResourcesRequest < 3) { - o.resources = buildUnnamed3355(); + o.resources = buildUnnamed3352(); } buildCounterRegionViewsAddResourcesRequest--; return o; @@ -99,7 +99,7 @@ checkRegionViewsAddResourcesRequest(api.RegionViewsAddResourcesRequest o) { buildCounterRegionViewsAddResourcesRequest++; if (buildCounterRegionViewsAddResourcesRequest < 3) { - checkUnnamed3355(o.resources); + checkUnnamed3352(o.resources); } buildCounterRegionViewsAddResourcesRequest--; } @@ -123,14 +123,14 @@ buildCounterRegionViewsInsertResponse--; } -buildUnnamed3356() { +buildUnnamed3353() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3356(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')); @@ -141,7 +141,7 @@ var o = new api.RegionViewsListResourcesResponse(); buildCounterRegionViewsListResourcesResponse++; if (buildCounterRegionViewsListResourcesResponse < 3) { - o.members = buildUnnamed3356(); + o.members = buildUnnamed3353(); o.nextPageToken = "foo"; } buildCounterRegionViewsListResourcesResponse--; @@ -151,20 +151,20 @@ checkRegionViewsListResourcesResponse(api.RegionViewsListResourcesResponse o) { buildCounterRegionViewsListResourcesResponse++; if (buildCounterRegionViewsListResourcesResponse < 3) { - checkUnnamed3356(o.members); + checkUnnamed3353(o.members); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterRegionViewsListResourcesResponse--; } -buildUnnamed3357() { +buildUnnamed3354() { var o = new core.List<api.ResourceView>(); o.add(buildResourceView()); o.add(buildResourceView()); return o; } -checkUnnamed3357(core.List<api.ResourceView> o) { +checkUnnamed3354(core.List<api.ResourceView> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceView(o[0]); checkResourceView(o[1]); @@ -176,7 +176,7 @@ buildCounterRegionViewsListResponse++; if (buildCounterRegionViewsListResponse < 3) { o.nextPageToken = "foo"; - o.resourceViews = buildUnnamed3357(); + o.resourceViews = buildUnnamed3354(); } buildCounterRegionViewsListResponse--; return o; @@ -186,19 +186,19 @@ buildCounterRegionViewsListResponse++; if (buildCounterRegionViewsListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3357(o.resourceViews); + checkUnnamed3354(o.resourceViews); } buildCounterRegionViewsListResponse--; } -buildUnnamed3358() { +buildUnnamed3355() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3358(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')); @@ -209,7 +209,7 @@ var o = new api.RegionViewsRemoveResourcesRequest(); buildCounterRegionViewsRemoveResourcesRequest++; if (buildCounterRegionViewsRemoveResourcesRequest < 3) { - o.resources = buildUnnamed3358(); + o.resources = buildUnnamed3355(); } buildCounterRegionViewsRemoveResourcesRequest--; return o; @@ -218,32 +218,32 @@ checkRegionViewsRemoveResourcesRequest(api.RegionViewsRemoveResourcesRequest o) { buildCounterRegionViewsRemoveResourcesRequest++; if (buildCounterRegionViewsRemoveResourcesRequest < 3) { - checkUnnamed3358(o.resources); + checkUnnamed3355(o.resources); } buildCounterRegionViewsRemoveResourcesRequest--; } -buildUnnamed3359() { +buildUnnamed3356() { var o = new core.List<api.Label>(); o.add(buildLabel()); o.add(buildLabel()); return o; } -checkUnnamed3359(core.List<api.Label> o) { +checkUnnamed3356(core.List<api.Label> o) { unittest.expect(o, unittest.hasLength(2)); checkLabel(o[0]); checkLabel(o[1]); } -buildUnnamed3360() { +buildUnnamed3357() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3360(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')); @@ -258,9 +258,9 @@ o.description = "foo"; o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed3359(); + o.labels = buildUnnamed3356(); o.lastModified = "foo"; - o.members = buildUnnamed3360(); + o.members = buildUnnamed3357(); o.name = "foo"; o.numMembers = 42; o.selfLink = "foo"; @@ -276,9 +276,9 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3359(o.labels); + checkUnnamed3356(o.labels); unittest.expect(o.lastModified, unittest.equals('foo')); - checkUnnamed3360(o.members); + checkUnnamed3357(o.members); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.numMembers, unittest.equals(42)); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -286,14 +286,14 @@ buildCounterResourceView--; } -buildUnnamed3361() { +buildUnnamed3358() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3361(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')); @@ -304,7 +304,7 @@ var o = new api.ZoneViewsAddResourcesRequest(); buildCounterZoneViewsAddResourcesRequest++; if (buildCounterZoneViewsAddResourcesRequest < 3) { - o.resources = buildUnnamed3361(); + o.resources = buildUnnamed3358(); } buildCounterZoneViewsAddResourcesRequest--; return o; @@ -313,7 +313,7 @@ checkZoneViewsAddResourcesRequest(api.ZoneViewsAddResourcesRequest o) { buildCounterZoneViewsAddResourcesRequest++; if (buildCounterZoneViewsAddResourcesRequest < 3) { - checkUnnamed3361(o.resources); + checkUnnamed3358(o.resources); } buildCounterZoneViewsAddResourcesRequest--; } @@ -337,14 +337,14 @@ buildCounterZoneViewsInsertResponse--; } -buildUnnamed3362() { +buildUnnamed3359() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3362(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')); @@ -355,7 +355,7 @@ var o = new api.ZoneViewsListResourcesResponse(); buildCounterZoneViewsListResourcesResponse++; if (buildCounterZoneViewsListResourcesResponse < 3) { - o.members = buildUnnamed3362(); + o.members = buildUnnamed3359(); o.nextPageToken = "foo"; } buildCounterZoneViewsListResourcesResponse--; @@ -365,20 +365,20 @@ checkZoneViewsListResourcesResponse(api.ZoneViewsListResourcesResponse o) { buildCounterZoneViewsListResourcesResponse++; if (buildCounterZoneViewsListResourcesResponse < 3) { - checkUnnamed3362(o.members); + checkUnnamed3359(o.members); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterZoneViewsListResourcesResponse--; } -buildUnnamed3363() { +buildUnnamed3360() { var o = new core.List<api.ResourceView>(); o.add(buildResourceView()); o.add(buildResourceView()); return o; } -checkUnnamed3363(core.List<api.ResourceView> o) { +checkUnnamed3360(core.List<api.ResourceView> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceView(o[0]); checkResourceView(o[1]); @@ -390,7 +390,7 @@ buildCounterZoneViewsListResponse++; if (buildCounterZoneViewsListResponse < 3) { o.nextPageToken = "foo"; - o.resourceViews = buildUnnamed3363(); + o.resourceViews = buildUnnamed3360(); } buildCounterZoneViewsListResponse--; return o; @@ -400,19 +400,19 @@ buildCounterZoneViewsListResponse++; if (buildCounterZoneViewsListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3363(o.resourceViews); + checkUnnamed3360(o.resourceViews); } buildCounterZoneViewsListResponse--; } -buildUnnamed3364() { +buildUnnamed3361() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3364(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')); @@ -423,7 +423,7 @@ var o = new api.ZoneViewsRemoveResourcesRequest(); buildCounterZoneViewsRemoveResourcesRequest++; if (buildCounterZoneViewsRemoveResourcesRequest < 3) { - o.resources = buildUnnamed3364(); + o.resources = buildUnnamed3361(); } buildCounterZoneViewsRemoveResourcesRequest--; return o; @@ -432,7 +432,7 @@ checkZoneViewsRemoveResourcesRequest(api.ZoneViewsRemoveResourcesRequest o) { buildCounterZoneViewsRemoveResourcesRequest++; if (buildCounterZoneViewsRemoveResourcesRequest < 3) { - checkUnnamed3364(o.resources); + checkUnnamed3361(o.resources); } buildCounterZoneViewsRemoveResourcesRequest--; }
diff --git a/generated/googleapis_beta/test/resourceviews/v1beta2_test.dart b/generated/googleapis_beta/test/resourceviews/v1beta2_test.dart index a3ca1a5..bc3d603 100644 --- a/generated/googleapis_beta/test/resourceviews/v1beta2_test.dart +++ b/generated/googleapis_beta/test/resourceviews/v1beta2_test.dart
@@ -72,30 +72,30 @@ buildCounterLabel--; } -buildUnnamed3223() { +buildUnnamed3219() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3223(core.List<core.int> o) { +checkUnnamed3219(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)); } -buildUnnamed3224() { +buildUnnamed3220() { var o = new core.Map<core.String, core.List<core.int>>(); - o["x"] = buildUnnamed3223(); - o["y"] = buildUnnamed3223(); + o["x"] = buildUnnamed3219(); + o["y"] = buildUnnamed3219(); return o; } -checkUnnamed3224(core.Map<core.String, core.List<core.int>> o) { +checkUnnamed3220(core.Map<core.String, core.List<core.int>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3223(o["x"]); - checkUnnamed3223(o["y"]); + checkUnnamed3219(o["x"]); + checkUnnamed3219(o["y"]); } core.int buildCounterListResourceResponseItem = 0; @@ -103,7 +103,7 @@ var o = new api.ListResourceResponseItem(); buildCounterListResourceResponseItem++; if (buildCounterListResourceResponseItem < 3) { - o.endpoints = buildUnnamed3224(); + o.endpoints = buildUnnamed3220(); o.resource = "foo"; } buildCounterListResourceResponseItem--; @@ -113,7 +113,7 @@ checkListResourceResponseItem(api.ListResourceResponseItem o) { buildCounterListResourceResponseItem++; if (buildCounterListResourceResponseItem < 3) { - checkUnnamed3224(o.endpoints); + checkUnnamed3220(o.endpoints); unittest.expect(o.resource, unittest.equals('foo')); } buildCounterListResourceResponseItem--; @@ -142,14 +142,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed3225() { +buildUnnamed3221() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed3225(core.List<api.OperationErrorErrors> o) { +checkUnnamed3221(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -160,7 +160,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed3225(); + o.errors = buildUnnamed3221(); } buildCounterOperationError--; return o; @@ -169,7 +169,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed3225(o.errors); + checkUnnamed3221(o.errors); } buildCounterOperationError--; } @@ -195,14 +195,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed3226() { +buildUnnamed3222() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed3226(core.List<api.OperationWarningsData> o) { +checkUnnamed3222(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -214,7 +214,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed3226(); + o.data = buildUnnamed3222(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -225,20 +225,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed3226(o.data); + checkUnnamed3222(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed3227() { +buildUnnamed3223() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed3227(core.List<api.OperationWarnings> o) { +checkUnnamed3223(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -269,7 +269,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed3227(); + o.warnings = buildUnnamed3223(); o.zone = "foo"; } buildCounterOperation--; @@ -299,20 +299,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3227(o.warnings); + checkUnnamed3223(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed3228() { +buildUnnamed3224() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3228(core.List<api.Operation> o) { +checkUnnamed3224(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -324,7 +324,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { o.id = "foo"; - o.items = buildUnnamed3228(); + o.items = buildUnnamed3224(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -337,7 +337,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3228(o.items); + checkUnnamed3224(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -345,40 +345,40 @@ buildCounterOperationList--; } -buildUnnamed3229() { +buildUnnamed3225() { var o = new core.List<api.ServiceEndpoint>(); o.add(buildServiceEndpoint()); o.add(buildServiceEndpoint()); return o; } -checkUnnamed3229(core.List<api.ServiceEndpoint> o) { +checkUnnamed3225(core.List<api.ServiceEndpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceEndpoint(o[0]); checkServiceEndpoint(o[1]); } -buildUnnamed3230() { +buildUnnamed3226() { var o = new core.List<api.Label>(); o.add(buildLabel()); o.add(buildLabel()); return o; } -checkUnnamed3230(core.List<api.Label> o) { +checkUnnamed3226(core.List<api.Label> o) { unittest.expect(o, unittest.hasLength(2)); checkLabel(o[0]); checkLabel(o[1]); } -buildUnnamed3231() { +buildUnnamed3227() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3231(core.List<core.String> o) { +checkUnnamed3227(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -391,14 +391,14 @@ if (buildCounterResourceView < 3) { o.creationTimestamp = "foo"; o.description = "foo"; - o.endpoints = buildUnnamed3229(); + o.endpoints = buildUnnamed3225(); o.fingerprint = "foo"; o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed3230(); + o.labels = buildUnnamed3226(); o.name = "foo"; o.network = "foo"; - o.resources = buildUnnamed3231(); + o.resources = buildUnnamed3227(); o.selfLink = "foo"; o.size = 42; } @@ -411,14 +411,14 @@ if (buildCounterResourceView < 3) { unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed3229(o.endpoints); + checkUnnamed3225(o.endpoints); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3230(o.labels); + checkUnnamed3226(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); - checkUnnamed3231(o.resources); + checkUnnamed3227(o.resources); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.size, unittest.equals(42)); } @@ -446,6 +446,146 @@ buildCounterServiceEndpoint--; } +buildUnnamed3228() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3228(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterZoneViewsAddResourcesRequest = 0; +buildZoneViewsAddResourcesRequest() { + var o = new api.ZoneViewsAddResourcesRequest(); + buildCounterZoneViewsAddResourcesRequest++; + if (buildCounterZoneViewsAddResourcesRequest < 3) { + o.resources = buildUnnamed3228(); + } + buildCounterZoneViewsAddResourcesRequest--; + return o; +} + +checkZoneViewsAddResourcesRequest(api.ZoneViewsAddResourcesRequest o) { + buildCounterZoneViewsAddResourcesRequest++; + if (buildCounterZoneViewsAddResourcesRequest < 3) { + checkUnnamed3228(o.resources); + } + buildCounterZoneViewsAddResourcesRequest--; +} + +buildUnnamed3229() { + var o = new core.List<api.ServiceEndpoint>(); + o.add(buildServiceEndpoint()); + o.add(buildServiceEndpoint()); + return o; +} + +checkUnnamed3229(core.List<api.ServiceEndpoint> o) { + unittest.expect(o, unittest.hasLength(2)); + checkServiceEndpoint(o[0]); + checkServiceEndpoint(o[1]); +} + +core.int buildCounterZoneViewsGetServiceResponse = 0; +buildZoneViewsGetServiceResponse() { + var o = new api.ZoneViewsGetServiceResponse(); + buildCounterZoneViewsGetServiceResponse++; + if (buildCounterZoneViewsGetServiceResponse < 3) { + o.endpoints = buildUnnamed3229(); + o.fingerprint = "foo"; + } + buildCounterZoneViewsGetServiceResponse--; + return o; +} + +checkZoneViewsGetServiceResponse(api.ZoneViewsGetServiceResponse o) { + buildCounterZoneViewsGetServiceResponse++; + if (buildCounterZoneViewsGetServiceResponse < 3) { + checkUnnamed3229(o.endpoints); + unittest.expect(o.fingerprint, unittest.equals('foo')); + } + buildCounterZoneViewsGetServiceResponse--; +} + +buildUnnamed3230() { + var o = new core.List<api.ResourceView>(); + o.add(buildResourceView()); + o.add(buildResourceView()); + return o; +} + +checkUnnamed3230(core.List<api.ResourceView> o) { + unittest.expect(o, unittest.hasLength(2)); + checkResourceView(o[0]); + checkResourceView(o[1]); +} + +core.int buildCounterZoneViewsList = 0; +buildZoneViewsList() { + var o = new api.ZoneViewsList(); + buildCounterZoneViewsList++; + if (buildCounterZoneViewsList < 3) { + o.items = buildUnnamed3230(); + o.kind = "foo"; + o.nextPageToken = "foo"; + o.selfLink = "foo"; + } + buildCounterZoneViewsList--; + return o; +} + +checkZoneViewsList(api.ZoneViewsList o) { + buildCounterZoneViewsList++; + if (buildCounterZoneViewsList < 3) { + checkUnnamed3230(o.items); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + } + buildCounterZoneViewsList--; +} + +buildUnnamed3231() { + var o = new core.List<api.ListResourceResponseItem>(); + o.add(buildListResourceResponseItem()); + o.add(buildListResourceResponseItem()); + return o; +} + +checkUnnamed3231(core.List<api.ListResourceResponseItem> o) { + unittest.expect(o, unittest.hasLength(2)); + checkListResourceResponseItem(o[0]); + checkListResourceResponseItem(o[1]); +} + +core.int buildCounterZoneViewsListResourcesResponse = 0; +buildZoneViewsListResourcesResponse() { + var o = new api.ZoneViewsListResourcesResponse(); + buildCounterZoneViewsListResourcesResponse++; + if (buildCounterZoneViewsListResourcesResponse < 3) { + o.items = buildUnnamed3231(); + o.network = "foo"; + o.nextPageToken = "foo"; + } + buildCounterZoneViewsListResourcesResponse--; + return o; +} + +checkZoneViewsListResourcesResponse(api.ZoneViewsListResourcesResponse o) { + buildCounterZoneViewsListResourcesResponse++; + if (buildCounterZoneViewsListResourcesResponse < 3) { + checkUnnamed3231(o.items); + unittest.expect(o.network, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterZoneViewsListResourcesResponse--; +} + buildUnnamed3232() { var o = new core.List<core.String>(); o.add("foo"); @@ -459,23 +599,23 @@ unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterZoneViewsAddResourcesRequest = 0; -buildZoneViewsAddResourcesRequest() { - var o = new api.ZoneViewsAddResourcesRequest(); - buildCounterZoneViewsAddResourcesRequest++; - if (buildCounterZoneViewsAddResourcesRequest < 3) { +core.int buildCounterZoneViewsRemoveResourcesRequest = 0; +buildZoneViewsRemoveResourcesRequest() { + var o = new api.ZoneViewsRemoveResourcesRequest(); + buildCounterZoneViewsRemoveResourcesRequest++; + if (buildCounterZoneViewsRemoveResourcesRequest < 3) { o.resources = buildUnnamed3232(); } - buildCounterZoneViewsAddResourcesRequest--; + buildCounterZoneViewsRemoveResourcesRequest--; return o; } -checkZoneViewsAddResourcesRequest(api.ZoneViewsAddResourcesRequest o) { - buildCounterZoneViewsAddResourcesRequest++; - if (buildCounterZoneViewsAddResourcesRequest < 3) { +checkZoneViewsRemoveResourcesRequest(api.ZoneViewsRemoveResourcesRequest o) { + buildCounterZoneViewsRemoveResourcesRequest++; + if (buildCounterZoneViewsRemoveResourcesRequest < 3) { checkUnnamed3232(o.resources); } - buildCounterZoneViewsAddResourcesRequest--; + buildCounterZoneViewsRemoveResourcesRequest--; } buildUnnamed3233() { @@ -491,152 +631,12 @@ checkServiceEndpoint(o[1]); } -core.int buildCounterZoneViewsGetServiceResponse = 0; -buildZoneViewsGetServiceResponse() { - var o = new api.ZoneViewsGetServiceResponse(); - buildCounterZoneViewsGetServiceResponse++; - if (buildCounterZoneViewsGetServiceResponse < 3) { - o.endpoints = buildUnnamed3233(); - o.fingerprint = "foo"; - } - buildCounterZoneViewsGetServiceResponse--; - return o; -} - -checkZoneViewsGetServiceResponse(api.ZoneViewsGetServiceResponse o) { - buildCounterZoneViewsGetServiceResponse++; - if (buildCounterZoneViewsGetServiceResponse < 3) { - checkUnnamed3233(o.endpoints); - unittest.expect(o.fingerprint, unittest.equals('foo')); - } - buildCounterZoneViewsGetServiceResponse--; -} - -buildUnnamed3234() { - var o = new core.List<api.ResourceView>(); - o.add(buildResourceView()); - o.add(buildResourceView()); - return o; -} - -checkUnnamed3234(core.List<api.ResourceView> o) { - unittest.expect(o, unittest.hasLength(2)); - checkResourceView(o[0]); - checkResourceView(o[1]); -} - -core.int buildCounterZoneViewsList = 0; -buildZoneViewsList() { - var o = new api.ZoneViewsList(); - buildCounterZoneViewsList++; - if (buildCounterZoneViewsList < 3) { - o.items = buildUnnamed3234(); - o.kind = "foo"; - o.nextPageToken = "foo"; - o.selfLink = "foo"; - } - buildCounterZoneViewsList--; - return o; -} - -checkZoneViewsList(api.ZoneViewsList o) { - buildCounterZoneViewsList++; - if (buildCounterZoneViewsList < 3) { - checkUnnamed3234(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - unittest.expect(o.selfLink, unittest.equals('foo')); - } - buildCounterZoneViewsList--; -} - -buildUnnamed3235() { - var o = new core.List<api.ListResourceResponseItem>(); - o.add(buildListResourceResponseItem()); - o.add(buildListResourceResponseItem()); - return o; -} - -checkUnnamed3235(core.List<api.ListResourceResponseItem> o) { - unittest.expect(o, unittest.hasLength(2)); - checkListResourceResponseItem(o[0]); - checkListResourceResponseItem(o[1]); -} - -core.int buildCounterZoneViewsListResourcesResponse = 0; -buildZoneViewsListResourcesResponse() { - var o = new api.ZoneViewsListResourcesResponse(); - buildCounterZoneViewsListResourcesResponse++; - if (buildCounterZoneViewsListResourcesResponse < 3) { - o.items = buildUnnamed3235(); - o.network = "foo"; - o.nextPageToken = "foo"; - } - buildCounterZoneViewsListResourcesResponse--; - return o; -} - -checkZoneViewsListResourcesResponse(api.ZoneViewsListResourcesResponse o) { - buildCounterZoneViewsListResourcesResponse++; - if (buildCounterZoneViewsListResourcesResponse < 3) { - checkUnnamed3235(o.items); - unittest.expect(o.network, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterZoneViewsListResourcesResponse--; -} - -buildUnnamed3236() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3236(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterZoneViewsRemoveResourcesRequest = 0; -buildZoneViewsRemoveResourcesRequest() { - var o = new api.ZoneViewsRemoveResourcesRequest(); - buildCounterZoneViewsRemoveResourcesRequest++; - if (buildCounterZoneViewsRemoveResourcesRequest < 3) { - o.resources = buildUnnamed3236(); - } - buildCounterZoneViewsRemoveResourcesRequest--; - return o; -} - -checkZoneViewsRemoveResourcesRequest(api.ZoneViewsRemoveResourcesRequest o) { - buildCounterZoneViewsRemoveResourcesRequest++; - if (buildCounterZoneViewsRemoveResourcesRequest < 3) { - checkUnnamed3236(o.resources); - } - buildCounterZoneViewsRemoveResourcesRequest--; -} - -buildUnnamed3237() { - var o = new core.List<api.ServiceEndpoint>(); - o.add(buildServiceEndpoint()); - o.add(buildServiceEndpoint()); - return o; -} - -checkUnnamed3237(core.List<api.ServiceEndpoint> o) { - unittest.expect(o, unittest.hasLength(2)); - checkServiceEndpoint(o[0]); - checkServiceEndpoint(o[1]); -} - core.int buildCounterZoneViewsSetServiceRequest = 0; buildZoneViewsSetServiceRequest() { var o = new api.ZoneViewsSetServiceRequest(); buildCounterZoneViewsSetServiceRequest++; if (buildCounterZoneViewsSetServiceRequest < 3) { - o.endpoints = buildUnnamed3237(); + o.endpoints = buildUnnamed3233(); o.fingerprint = "foo"; o.resourceName = "foo"; } @@ -647,7 +647,7 @@ checkZoneViewsSetServiceRequest(api.ZoneViewsSetServiceRequest o) { buildCounterZoneViewsSetServiceRequest++; if (buildCounterZoneViewsSetServiceRequest < 3) { - checkUnnamed3237(o.endpoints); + checkUnnamed3233(o.endpoints); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.resourceName, unittest.equals('foo')); }
diff --git a/generated/googleapis_beta/test/runtimeconfig/v1beta1_test.dart b/generated/googleapis_beta/test/runtimeconfig/v1beta1_test.dart index 7a5c7bc..ffed716 100644 --- a/generated/googleapis_beta/test/runtimeconfig/v1beta1_test.dart +++ b/generated/googleapis_beta/test/runtimeconfig/v1beta1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3524() { +buildUnnamed3521() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3524(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')); @@ -69,7 +69,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed3524(); + o.members = buildUnnamed3521(); o.role = "foo"; } buildCounterBinding--; @@ -79,7 +79,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed3524(o.members); + checkUnnamed3521(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -142,14 +142,14 @@ buildCounterEndCondition--; } -buildUnnamed3525() { +buildUnnamed3522() { var o = new core.List<api.RuntimeConfig>(); o.add(buildRuntimeConfig()); o.add(buildRuntimeConfig()); return o; } -checkUnnamed3525(core.List<api.RuntimeConfig> o) { +checkUnnamed3522(core.List<api.RuntimeConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkRuntimeConfig(o[0]); checkRuntimeConfig(o[1]); @@ -160,7 +160,7 @@ var o = new api.ListConfigsResponse(); buildCounterListConfigsResponse++; if (buildCounterListConfigsResponse < 3) { - o.configs = buildUnnamed3525(); + o.configs = buildUnnamed3522(); o.nextPageToken = "foo"; } buildCounterListConfigsResponse--; @@ -170,20 +170,20 @@ checkListConfigsResponse(api.ListConfigsResponse o) { buildCounterListConfigsResponse++; if (buildCounterListConfigsResponse < 3) { - checkUnnamed3525(o.configs); + checkUnnamed3522(o.configs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListConfigsResponse--; } -buildUnnamed3526() { +buildUnnamed3523() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed3526(core.List<api.Variable> o) { +checkUnnamed3523(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -195,7 +195,7 @@ buildCounterListVariablesResponse++; if (buildCounterListVariablesResponse < 3) { o.nextPageToken = "foo"; - o.variables = buildUnnamed3526(); + o.variables = buildUnnamed3523(); } buildCounterListVariablesResponse--; return o; @@ -205,19 +205,19 @@ buildCounterListVariablesResponse++; if (buildCounterListVariablesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3526(o.variables); + checkUnnamed3523(o.variables); } buildCounterListVariablesResponse--; } -buildUnnamed3527() { +buildUnnamed3524() { var o = new core.List<api.Waiter>(); o.add(buildWaiter()); o.add(buildWaiter()); return o; } -checkUnnamed3527(core.List<api.Waiter> o) { +checkUnnamed3524(core.List<api.Waiter> o) { unittest.expect(o, unittest.hasLength(2)); checkWaiter(o[0]); checkWaiter(o[1]); @@ -229,7 +229,7 @@ buildCounterListWaitersResponse++; if (buildCounterListWaitersResponse < 3) { o.nextPageToken = "foo"; - o.waiters = buildUnnamed3527(); + o.waiters = buildUnnamed3524(); } buildCounterListWaitersResponse--; return o; @@ -239,32 +239,32 @@ buildCounterListWaitersResponse++; if (buildCounterListWaitersResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3527(o.waiters); + checkUnnamed3524(o.waiters); } buildCounterListWaitersResponse--; } -buildUnnamed3528() { +buildUnnamed3525() { 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; } -checkUnnamed3528(core.Map<core.String, core.Object> o) { +checkUnnamed3525(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')); } -buildUnnamed3529() { +buildUnnamed3526() { 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; } -checkUnnamed3529(core.Map<core.String, core.Object> o) { +checkUnnamed3526(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')); @@ -277,9 +277,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3528(); + o.metadata = buildUnnamed3525(); o.name = "foo"; - o.response = buildUnnamed3529(); + o.response = buildUnnamed3526(); } buildCounterOperation--; return o; @@ -290,21 +290,21 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3528(o.metadata); + checkUnnamed3525(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3529(o.response); + checkUnnamed3526(o.response); } buildCounterOperation--; } -buildUnnamed3530() { +buildUnnamed3527() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed3530(core.List<api.Binding> o) { +checkUnnamed3527(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -315,7 +315,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed3530(); + o.bindings = buildUnnamed3527(); o.etag = "foo"; o.version = 42; } @@ -326,7 +326,7 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed3530(o.bindings); + checkUnnamed3527(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -373,30 +373,30 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed3531() { +buildUnnamed3528() { 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; } -checkUnnamed3531(core.Map<core.String, core.Object> o) { +checkUnnamed3528(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')); } -buildUnnamed3532() { +buildUnnamed3529() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3531()); - o.add(buildUnnamed3531()); + o.add(buildUnnamed3528()); + o.add(buildUnnamed3528()); return o; } -checkUnnamed3532(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3529(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3531(o[0]); - checkUnnamed3531(o[1]); + checkUnnamed3528(o[0]); + checkUnnamed3528(o[1]); } core.int buildCounterStatus = 0; @@ -405,7 +405,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3532(); + o.details = buildUnnamed3529(); o.message = "foo"; } buildCounterStatus--; @@ -416,20 +416,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3532(o.details); + checkUnnamed3529(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3533() { +buildUnnamed3530() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3533(core.List<core.String> o) { +checkUnnamed3530(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -440,7 +440,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed3533(); + o.permissions = buildUnnamed3530(); } buildCounterTestIamPermissionsRequest--; return o; @@ -449,19 +449,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed3533(o.permissions); + checkUnnamed3530(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed3534() { +buildUnnamed3531() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3534(core.List<core.String> o) { +checkUnnamed3531(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -472,7 +472,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed3534(); + o.permissions = buildUnnamed3531(); } buildCounterTestIamPermissionsResponse--; return o; @@ -481,7 +481,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed3534(o.permissions); + checkUnnamed3531(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -1352,8 +1352,8 @@ api.ProjectsConfigsVariablesResourceApi res = new api.RuntimeconfigApi(mock).projects.configs.variables; var arg_parent = "foo"; var arg_filter = "foo"; - var arg_pageToken = "foo"; var arg_returnValues = true; + var arg_pageToken = "foo"; var arg_pageSize = 42; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1383,8 +1383,8 @@ } } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["returnValues"].first, unittest.equals("$arg_returnValues")); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); @@ -1394,7 +1394,7 @@ var resp = convert.JSON.encode(buildListVariablesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_parent, filter: arg_filter, pageToken: arg_pageToken, returnValues: arg_returnValues, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListVariablesResponse response) { + res.list(arg_parent, filter: arg_filter, returnValues: arg_returnValues, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListVariablesResponse response) { checkListVariablesResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/speech/v1beta1_test.dart b/generated/googleapis_beta/test/speech/v1beta1_test.dart index f5d2a33..a22fe13 100644 --- a/generated/googleapis_beta/test/speech/v1beta1_test.dart +++ b/generated/googleapis_beta/test/speech/v1beta1_test.dart
@@ -89,14 +89,14 @@ buildCounterEmpty--; } -buildUnnamed3387() { +buildUnnamed3384() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3387(core.List<api.Operation> o) { +checkUnnamed3384(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -108,7 +108,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3387(); + o.operations = buildUnnamed3384(); } buildCounterListOperationsResponse--; return o; @@ -118,32 +118,32 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3387(o.operations); + checkUnnamed3384(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3388() { +buildUnnamed3385() { 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; } -checkUnnamed3388(core.Map<core.String, core.Object> o) { +checkUnnamed3385(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')); } -buildUnnamed3389() { +buildUnnamed3386() { 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; } -checkUnnamed3389(core.Map<core.String, core.Object> o) { +checkUnnamed3386(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')); @@ -156,9 +156,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3388(); + o.metadata = buildUnnamed3385(); o.name = "foo"; - o.response = buildUnnamed3389(); + o.response = buildUnnamed3386(); } buildCounterOperation--; return o; @@ -169,9 +169,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3388(o.metadata); + checkUnnamed3385(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3389(o.response); + checkUnnamed3386(o.response); } buildCounterOperation--; } @@ -226,14 +226,14 @@ buildCounterRecognitionConfig--; } -buildUnnamed3390() { +buildUnnamed3387() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3390(core.List<core.String> 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')); @@ -244,7 +244,7 @@ var o = new api.SpeechContext(); buildCounterSpeechContext++; if (buildCounterSpeechContext < 3) { - o.phrases = buildUnnamed3390(); + o.phrases = buildUnnamed3387(); } buildCounterSpeechContext--; return o; @@ -253,7 +253,7 @@ checkSpeechContext(api.SpeechContext o) { buildCounterSpeechContext++; if (buildCounterSpeechContext < 3) { - checkUnnamed3390(o.phrases); + checkUnnamed3387(o.phrases); } buildCounterSpeechContext--; } @@ -279,14 +279,14 @@ buildCounterSpeechRecognitionAlternative--; } -buildUnnamed3391() { +buildUnnamed3388() { var o = new core.List<api.SpeechRecognitionAlternative>(); o.add(buildSpeechRecognitionAlternative()); o.add(buildSpeechRecognitionAlternative()); return o; } -checkUnnamed3391(core.List<api.SpeechRecognitionAlternative> o) { +checkUnnamed3388(core.List<api.SpeechRecognitionAlternative> o) { unittest.expect(o, unittest.hasLength(2)); checkSpeechRecognitionAlternative(o[0]); checkSpeechRecognitionAlternative(o[1]); @@ -297,7 +297,7 @@ var o = new api.SpeechRecognitionResult(); buildCounterSpeechRecognitionResult++; if (buildCounterSpeechRecognitionResult < 3) { - o.alternatives = buildUnnamed3391(); + o.alternatives = buildUnnamed3388(); } buildCounterSpeechRecognitionResult--; return o; @@ -306,35 +306,35 @@ checkSpeechRecognitionResult(api.SpeechRecognitionResult o) { buildCounterSpeechRecognitionResult++; if (buildCounterSpeechRecognitionResult < 3) { - checkUnnamed3391(o.alternatives); + checkUnnamed3388(o.alternatives); } buildCounterSpeechRecognitionResult--; } -buildUnnamed3392() { +buildUnnamed3389() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3392(core.Map<core.String, core.Object> o) { +checkUnnamed3389(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')); } -buildUnnamed3393() { +buildUnnamed3390() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3392()); - o.add(buildUnnamed3392()); + o.add(buildUnnamed3389()); + o.add(buildUnnamed3389()); return o; } -checkUnnamed3393(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3390(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3392(o[0]); - checkUnnamed3392(o[1]); + checkUnnamed3389(o[0]); + checkUnnamed3389(o[1]); } core.int buildCounterStatus = 0; @@ -343,7 +343,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3393(); + o.details = buildUnnamed3390(); o.message = "foo"; } buildCounterStatus--; @@ -354,7 +354,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3393(o.details); + checkUnnamed3390(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -381,14 +381,14 @@ buildCounterSyncRecognizeRequest--; } -buildUnnamed3394() { +buildUnnamed3391() { var o = new core.List<api.SpeechRecognitionResult>(); o.add(buildSpeechRecognitionResult()); o.add(buildSpeechRecognitionResult()); return o; } -checkUnnamed3394(core.List<api.SpeechRecognitionResult> o) { +checkUnnamed3391(core.List<api.SpeechRecognitionResult> o) { unittest.expect(o, unittest.hasLength(2)); checkSpeechRecognitionResult(o[0]); checkSpeechRecognitionResult(o[1]); @@ -399,7 +399,7 @@ var o = new api.SyncRecognizeResponse(); buildCounterSyncRecognizeResponse++; if (buildCounterSyncRecognizeResponse < 3) { - o.results = buildUnnamed3394(); + o.results = buildUnnamed3391(); } buildCounterSyncRecognizeResponse--; return o; @@ -408,7 +408,7 @@ checkSyncRecognizeResponse(api.SyncRecognizeResponse o) { buildCounterSyncRecognizeResponse++; if (buildCounterSyncRecognizeResponse < 3) { - checkUnnamed3394(o.results); + checkUnnamed3391(o.results); } buildCounterSyncRecognizeResponse--; } @@ -663,10 +663,10 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.SpeechApi(mock).operations; - var arg_pageSize = 42; - var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_name = "foo"; + var arg_pageSize = 42; + var arg_filter = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -693,10 +693,10 @@ 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["name"].first, unittest.equals(arg_name)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); var h = { @@ -705,7 +705,7 @@ var resp = convert.JSON.encode(buildListOperationsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken, name: arg_name).then(unittest.expectAsync1(((api.ListOperationsResponse response) { + res.list(pageToken: arg_pageToken, name: arg_name, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListOperationsResponse response) { checkListOperationsResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/sqladmin/v1beta3_test.dart b/generated/googleapis_beta/test/sqladmin/v1beta3_test.dart index 28c41a7..3d60517 100644 --- a/generated/googleapis_beta/test/sqladmin/v1beta3_test.dart +++ b/generated/googleapis_beta/test/sqladmin/v1beta3_test.dart
@@ -113,14 +113,14 @@ buildCounterBackupRun--; } -buildUnnamed3121() { +buildUnnamed3170() { var o = new core.List<api.BackupRun>(); o.add(buildBackupRun()); o.add(buildBackupRun()); return o; } -checkUnnamed3121(core.List<api.BackupRun> o) { +checkUnnamed3170(core.List<api.BackupRun> o) { unittest.expect(o, unittest.hasLength(2)); checkBackupRun(o[0]); checkBackupRun(o[1]); @@ -131,7 +131,7 @@ var o = new api.BackupRunsListResponse(); buildCounterBackupRunsListResponse++; if (buildCounterBackupRunsListResponse < 3) { - o.items = buildUnnamed3121(); + o.items = buildUnnamed3170(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -142,7 +142,7 @@ checkBackupRunsListResponse(api.BackupRunsListResponse o) { buildCounterBackupRunsListResponse++; if (buildCounterBackupRunsListResponse < 3) { - checkUnnamed3121(o.items); + checkUnnamed3170(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -218,27 +218,27 @@ buildCounterDatabaseFlags--; } -buildUnnamed3122() { +buildUnnamed3171() { var o = new core.List<api.IpMapping>(); o.add(buildIpMapping()); o.add(buildIpMapping()); return o; } -checkUnnamed3122(core.List<api.IpMapping> o) { +checkUnnamed3171(core.List<api.IpMapping> o) { unittest.expect(o, unittest.hasLength(2)); checkIpMapping(o[0]); checkIpMapping(o[1]); } -buildUnnamed3123() { +buildUnnamed3172() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3123(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')); @@ -255,14 +255,14 @@ o.etag = "foo"; o.instance = "foo"; o.instanceType = "foo"; - o.ipAddresses = buildUnnamed3122(); + o.ipAddresses = buildUnnamed3171(); o.ipv6Address = "foo"; o.kind = "foo"; o.masterInstanceName = "foo"; o.maxDiskSize = "foo"; o.project = "foo"; o.region = "foo"; - o.replicaNames = buildUnnamed3123(); + o.replicaNames = buildUnnamed3172(); o.serverCaCert = buildSslCert(); o.serviceAccountEmailAddress = "foo"; o.settings = buildSettings(); @@ -281,14 +281,14 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.instance, unittest.equals('foo')); unittest.expect(o.instanceType, unittest.equals('foo')); - checkUnnamed3122(o.ipAddresses); + checkUnnamed3171(o.ipAddresses); unittest.expect(o.ipv6Address, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.masterInstanceName, unittest.equals('foo')); unittest.expect(o.maxDiskSize, unittest.equals('foo')); unittest.expect(o.project, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed3123(o.replicaNames); + checkUnnamed3172(o.replicaNames); checkSslCert(o.serverCaCert); unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); checkSettings(o.settings); @@ -297,27 +297,27 @@ buildCounterDatabaseInstance--; } -buildUnnamed3124() { +buildUnnamed3173() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3124(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')); } -buildUnnamed3125() { +buildUnnamed3174() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3125(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')); @@ -328,9 +328,9 @@ var o = new api.ExportContext(); buildCounterExportContext++; if (buildCounterExportContext < 3) { - o.database = buildUnnamed3124(); + o.database = buildUnnamed3173(); o.kind = "foo"; - o.table = buildUnnamed3125(); + o.table = buildUnnamed3174(); o.uri = "foo"; } buildCounterExportContext--; @@ -340,35 +340,35 @@ checkExportContext(api.ExportContext o) { buildCounterExportContext++; if (buildCounterExportContext < 3) { - checkUnnamed3124(o.database); + checkUnnamed3173(o.database); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3125(o.table); + checkUnnamed3174(o.table); unittest.expect(o.uri, unittest.equals('foo')); } buildCounterExportContext--; } -buildUnnamed3126() { +buildUnnamed3175() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3126(core.List<core.String> o) { +checkUnnamed3175(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3127() { +buildUnnamed3176() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3127(core.List<core.String> o) { +checkUnnamed3176(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -379,8 +379,8 @@ var o = new api.Flag(); buildCounterFlag++; if (buildCounterFlag < 3) { - o.allowedStringValues = buildUnnamed3126(); - o.appliesTo = buildUnnamed3127(); + o.allowedStringValues = buildUnnamed3175(); + o.appliesTo = buildUnnamed3176(); o.kind = "foo"; o.maxValue = "foo"; o.minValue = "foo"; @@ -394,8 +394,8 @@ checkFlag(api.Flag o) { buildCounterFlag++; if (buildCounterFlag < 3) { - checkUnnamed3126(o.allowedStringValues); - checkUnnamed3127(o.appliesTo); + checkUnnamed3175(o.allowedStringValues); + checkUnnamed3176(o.appliesTo); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.maxValue, unittest.equals('foo')); unittest.expect(o.minValue, unittest.equals('foo')); @@ -405,14 +405,14 @@ buildCounterFlag--; } -buildUnnamed3128() { +buildUnnamed3177() { var o = new core.List<api.Flag>(); o.add(buildFlag()); o.add(buildFlag()); return o; } -checkUnnamed3128(core.List<api.Flag> o) { +checkUnnamed3177(core.List<api.Flag> o) { unittest.expect(o, unittest.hasLength(2)); checkFlag(o[0]); checkFlag(o[1]); @@ -423,7 +423,7 @@ var o = new api.FlagsListResponse(); buildCounterFlagsListResponse++; if (buildCounterFlagsListResponse < 3) { - o.items = buildUnnamed3128(); + o.items = buildUnnamed3177(); o.kind = "foo"; } buildCounterFlagsListResponse--; @@ -433,20 +433,20 @@ checkFlagsListResponse(api.FlagsListResponse o) { buildCounterFlagsListResponse++; if (buildCounterFlagsListResponse < 3) { - checkUnnamed3128(o.items); + checkUnnamed3177(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterFlagsListResponse--; } -buildUnnamed3129() { +buildUnnamed3178() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3129(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')); @@ -459,7 +459,7 @@ if (buildCounterImportContext < 3) { o.database = "foo"; o.kind = "foo"; - o.uri = buildUnnamed3129(); + o.uri = buildUnnamed3178(); } buildCounterImportContext--; return o; @@ -470,19 +470,19 @@ if (buildCounterImportContext < 3) { unittest.expect(o.database, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3129(o.uri); + checkUnnamed3178(o.uri); } buildCounterImportContext--; } -buildUnnamed3130() { +buildUnnamed3179() { var o = new core.List<api.OperationError>(); o.add(buildOperationError()); o.add(buildOperationError()); return o; } -checkUnnamed3130(core.List<api.OperationError> o) { +checkUnnamed3179(core.List<api.OperationError> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationError(o[0]); checkOperationError(o[1]); @@ -495,7 +495,7 @@ if (buildCounterInstanceOperation < 3) { o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); o.enqueuedTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.error = buildUnnamed3130(); + o.error = buildUnnamed3179(); o.exportContext = buildExportContext(); o.importContext = buildImportContext(); o.instance = "foo"; @@ -515,7 +515,7 @@ if (buildCounterInstanceOperation < 3) { unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.enqueuedTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed3130(o.error); + checkUnnamed3179(o.error); checkExportContext(o.exportContext); checkImportContext(o.importContext); unittest.expect(o.instance, unittest.equals('foo')); @@ -710,14 +710,14 @@ buildCounterInstancesInsertResponse--; } -buildUnnamed3131() { +buildUnnamed3180() { var o = new core.List<api.DatabaseInstance>(); o.add(buildDatabaseInstance()); o.add(buildDatabaseInstance()); return o; } -checkUnnamed3131(core.List<api.DatabaseInstance> o) { +checkUnnamed3180(core.List<api.DatabaseInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkDatabaseInstance(o[0]); checkDatabaseInstance(o[1]); @@ -728,7 +728,7 @@ var o = new api.InstancesListResponse(); buildCounterInstancesListResponse++; if (buildCounterInstancesListResponse < 3) { - o.items = buildUnnamed3131(); + o.items = buildUnnamed3180(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -739,7 +739,7 @@ checkInstancesListResponse(api.InstancesListResponse o) { buildCounterInstancesListResponse++; if (buildCounterInstancesListResponse < 3) { - checkUnnamed3131(o.items); + checkUnnamed3180(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -872,14 +872,14 @@ buildCounterInstancesUpdateResponse--; } -buildUnnamed3132() { +buildUnnamed3181() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3132(core.List<core.String> o) { +checkUnnamed3181(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -890,7 +890,7 @@ var o = new api.IpConfiguration(); buildCounterIpConfiguration++; if (buildCounterIpConfiguration < 3) { - o.authorizedNetworks = buildUnnamed3132(); + o.authorizedNetworks = buildUnnamed3181(); o.enabled = true; o.kind = "foo"; o.requireSsl = true; @@ -902,7 +902,7 @@ checkIpConfiguration(api.IpConfiguration o) { buildCounterIpConfiguration++; if (buildCounterIpConfiguration < 3) { - checkUnnamed3132(o.authorizedNetworks); + checkUnnamed3181(o.authorizedNetworks); unittest.expect(o.enabled, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.requireSsl, unittest.isTrue); @@ -975,14 +975,14 @@ buildCounterOperationError--; } -buildUnnamed3133() { +buildUnnamed3182() { var o = new core.List<api.InstanceOperation>(); o.add(buildInstanceOperation()); o.add(buildInstanceOperation()); return o; } -checkUnnamed3133(core.List<api.InstanceOperation> o) { +checkUnnamed3182(core.List<api.InstanceOperation> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceOperation(o[0]); checkInstanceOperation(o[1]); @@ -993,7 +993,7 @@ var o = new api.OperationsListResponse(); buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { - o.items = buildUnnamed3133(); + o.items = buildUnnamed3182(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1004,7 +1004,7 @@ checkOperationsListResponse(api.OperationsListResponse o) { buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { - checkUnnamed3133(o.items); + checkUnnamed3182(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1032,40 +1032,40 @@ buildCounterSetRootPasswordContext--; } -buildUnnamed3134() { +buildUnnamed3183() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3134(core.List<core.String> o) { +checkUnnamed3183(core.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() { +buildUnnamed3184() { var o = new core.List<api.BackupConfiguration>(); o.add(buildBackupConfiguration()); o.add(buildBackupConfiguration()); return o; } -checkUnnamed3135(core.List<api.BackupConfiguration> o) { +checkUnnamed3184(core.List<api.BackupConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkBackupConfiguration(o[0]); checkBackupConfiguration(o[1]); } -buildUnnamed3136() { +buildUnnamed3185() { var o = new core.List<api.DatabaseFlags>(); o.add(buildDatabaseFlags()); o.add(buildDatabaseFlags()); return o; } -checkUnnamed3136(core.List<api.DatabaseFlags> o) { +checkUnnamed3185(core.List<api.DatabaseFlags> o) { unittest.expect(o, unittest.hasLength(2)); checkDatabaseFlags(o[0]); checkDatabaseFlags(o[1]); @@ -1077,9 +1077,9 @@ buildCounterSettings++; if (buildCounterSettings < 3) { o.activationPolicy = "foo"; - o.authorizedGaeApplications = buildUnnamed3134(); - o.backupConfiguration = buildUnnamed3135(); - o.databaseFlags = buildUnnamed3136(); + o.authorizedGaeApplications = buildUnnamed3183(); + o.backupConfiguration = buildUnnamed3184(); + o.databaseFlags = buildUnnamed3185(); o.databaseReplicationEnabled = true; o.ipConfiguration = buildIpConfiguration(); o.kind = "foo"; @@ -1097,9 +1097,9 @@ buildCounterSettings++; if (buildCounterSettings < 3) { unittest.expect(o.activationPolicy, unittest.equals('foo')); - checkUnnamed3134(o.authorizedGaeApplications); - checkUnnamed3135(o.backupConfiguration); - checkUnnamed3136(o.databaseFlags); + checkUnnamed3183(o.authorizedGaeApplications); + checkUnnamed3184(o.backupConfiguration); + checkUnnamed3185(o.databaseFlags); unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); checkIpConfiguration(o.ipConfiguration); unittest.expect(o.kind, unittest.equals('foo')); @@ -1229,14 +1229,14 @@ buildCounterSslCertsInsertResponse--; } -buildUnnamed3137() { +buildUnnamed3186() { var o = new core.List<api.SslCert>(); o.add(buildSslCert()); o.add(buildSslCert()); return o; } -checkUnnamed3137(core.List<api.SslCert> o) { +checkUnnamed3186(core.List<api.SslCert> o) { unittest.expect(o, unittest.hasLength(2)); checkSslCert(o[0]); checkSslCert(o[1]); @@ -1247,7 +1247,7 @@ var o = new api.SslCertsListResponse(); buildCounterSslCertsListResponse++; if (buildCounterSslCertsListResponse < 3) { - o.items = buildUnnamed3137(); + o.items = buildUnnamed3186(); o.kind = "foo"; } buildCounterSslCertsListResponse--; @@ -1257,20 +1257,20 @@ checkSslCertsListResponse(api.SslCertsListResponse o) { buildCounterSslCertsListResponse++; if (buildCounterSslCertsListResponse < 3) { - checkUnnamed3137(o.items); + checkUnnamed3186(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterSslCertsListResponse--; } -buildUnnamed3138() { +buildUnnamed3187() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3138(core.List<core.String> o) { +checkUnnamed3187(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1284,7 +1284,7 @@ o.DiskQuota = "foo"; o.RAM = "foo"; o.kind = "foo"; - o.region = buildUnnamed3138(); + o.region = buildUnnamed3187(); o.tier = "foo"; } buildCounterTier--; @@ -1297,20 +1297,20 @@ unittest.expect(o.DiskQuota, unittest.equals('foo')); unittest.expect(o.RAM, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3138(o.region); + checkUnnamed3187(o.region); unittest.expect(o.tier, unittest.equals('foo')); } buildCounterTier--; } -buildUnnamed3139() { +buildUnnamed3188() { var o = new core.List<api.Tier>(); o.add(buildTier()); o.add(buildTier()); return o; } -checkUnnamed3139(core.List<api.Tier> o) { +checkUnnamed3188(core.List<api.Tier> o) { unittest.expect(o, unittest.hasLength(2)); checkTier(o[0]); checkTier(o[1]); @@ -1321,7 +1321,7 @@ var o = new api.TiersListResponse(); buildCounterTiersListResponse++; if (buildCounterTiersListResponse < 3) { - o.items = buildUnnamed3139(); + o.items = buildUnnamed3188(); o.kind = "foo"; } buildCounterTiersListResponse--; @@ -1331,7 +1331,7 @@ checkTiersListResponse(api.TiersListResponse o) { buildCounterTiersListResponse++; if (buildCounterTiersListResponse < 3) { - checkUnnamed3139(o.items); + checkUnnamed3188(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTiersListResponse--;
diff --git a/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart b/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart index 5159d5b..803e262 100644 --- a/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart +++ b/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart
@@ -142,14 +142,14 @@ buildCounterBackupRun--; } -buildUnnamed3365() { +buildUnnamed3362() { var o = new core.List<api.BackupRun>(); o.add(buildBackupRun()); o.add(buildBackupRun()); return o; } -checkUnnamed3365(core.List<api.BackupRun> o) { +checkUnnamed3362(core.List<api.BackupRun> o) { unittest.expect(o, unittest.hasLength(2)); checkBackupRun(o[0]); checkBackupRun(o[1]); @@ -160,7 +160,7 @@ var o = new api.BackupRunsListResponse(); buildCounterBackupRunsListResponse++; if (buildCounterBackupRunsListResponse < 3) { - o.items = buildUnnamed3365(); + o.items = buildUnnamed3362(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -171,7 +171,7 @@ checkBackupRunsListResponse(api.BackupRunsListResponse o) { buildCounterBackupRunsListResponse++; if (buildCounterBackupRunsListResponse < 3) { - checkUnnamed3365(o.items); + checkUnnamed3362(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -299,19 +299,163 @@ buildCounterDatabaseInstanceFailoverReplica--; } -buildUnnamed3366() { +buildUnnamed3363() { var o = new core.List<api.IpMapping>(); o.add(buildIpMapping()); o.add(buildIpMapping()); return o; } -checkUnnamed3366(core.List<api.IpMapping> o) { +checkUnnamed3363(core.List<api.IpMapping> o) { unittest.expect(o, unittest.hasLength(2)); checkIpMapping(o[0]); checkIpMapping(o[1]); } +buildUnnamed3364() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed3365() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +core.int buildCounterDatabaseInstance = 0; +buildDatabaseInstance() { + var o = new api.DatabaseInstance(); + buildCounterDatabaseInstance++; + if (buildCounterDatabaseInstance < 3) { + o.backendType = "foo"; + o.connectionName = "foo"; + o.currentDiskSize = "foo"; + o.databaseVersion = "foo"; + o.etag = "foo"; + o.failoverReplica = buildDatabaseInstanceFailoverReplica(); + o.instanceType = "foo"; + o.ipAddresses = buildUnnamed3363(); + o.ipv6Address = "foo"; + o.kind = "foo"; + o.masterInstanceName = "foo"; + o.maxDiskSize = "foo"; + o.name = "foo"; + o.onPremisesConfiguration = buildOnPremisesConfiguration(); + o.project = "foo"; + o.region = "foo"; + o.replicaConfiguration = buildReplicaConfiguration(); + o.replicaNames = buildUnnamed3364(); + o.selfLink = "foo"; + o.serverCaCert = buildSslCert(); + o.serviceAccountEmailAddress = "foo"; + o.settings = buildSettings(); + o.state = "foo"; + o.suspensionReason = buildUnnamed3365(); + } + buildCounterDatabaseInstance--; + return o; +} + +checkDatabaseInstance(api.DatabaseInstance o) { + buildCounterDatabaseInstance++; + if (buildCounterDatabaseInstance < 3) { + unittest.expect(o.backendType, unittest.equals('foo')); + unittest.expect(o.connectionName, unittest.equals('foo')); + unittest.expect(o.currentDiskSize, unittest.equals('foo')); + unittest.expect(o.databaseVersion, unittest.equals('foo')); + unittest.expect(o.etag, unittest.equals('foo')); + checkDatabaseInstanceFailoverReplica(o.failoverReplica); + unittest.expect(o.instanceType, unittest.equals('foo')); + checkUnnamed3363(o.ipAddresses); + unittest.expect(o.ipv6Address, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.masterInstanceName, unittest.equals('foo')); + unittest.expect(o.maxDiskSize, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + checkOnPremisesConfiguration(o.onPremisesConfiguration); + unittest.expect(o.project, unittest.equals('foo')); + unittest.expect(o.region, unittest.equals('foo')); + checkReplicaConfiguration(o.replicaConfiguration); + checkUnnamed3364(o.replicaNames); + unittest.expect(o.selfLink, unittest.equals('foo')); + checkSslCert(o.serverCaCert); + unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); + checkSettings(o.settings); + unittest.expect(o.state, unittest.equals('foo')); + checkUnnamed3365(o.suspensionReason); + } + buildCounterDatabaseInstance--; +} + +buildUnnamed3366() { + var o = new core.List<api.Database>(); + o.add(buildDatabase()); + o.add(buildDatabase()); + return o; +} + +checkUnnamed3366(core.List<api.Database> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDatabase(o[0]); + checkDatabase(o[1]); +} + +core.int buildCounterDatabasesListResponse = 0; +buildDatabasesListResponse() { + var o = new api.DatabasesListResponse(); + buildCounterDatabasesListResponse++; + if (buildCounterDatabasesListResponse < 3) { + o.items = buildUnnamed3366(); + o.kind = "foo"; + } + buildCounterDatabasesListResponse--; + return o; +} + +checkDatabasesListResponse(api.DatabasesListResponse o) { + buildCounterDatabasesListResponse++; + if (buildCounterDatabasesListResponse < 3) { + checkUnnamed3366(o.items); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterDatabasesListResponse--; +} + +core.int buildCounterExportContextCsvExportOptions = 0; +buildExportContextCsvExportOptions() { + var o = new api.ExportContextCsvExportOptions(); + buildCounterExportContextCsvExportOptions++; + if (buildCounterExportContextCsvExportOptions < 3) { + o.selectQuery = "foo"; + } + buildCounterExportContextCsvExportOptions--; + return o; +} + +checkExportContextCsvExportOptions(api.ExportContextCsvExportOptions o) { + buildCounterExportContextCsvExportOptions++; + if (buildCounterExportContextCsvExportOptions < 3) { + unittest.expect(o.selectQuery, unittest.equals('foo')); + } + buildCounterExportContextCsvExportOptions--; +} + buildUnnamed3367() { var o = new core.List<core.String>(); o.add("foo"); @@ -338,157 +482,13 @@ unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterDatabaseInstance = 0; -buildDatabaseInstance() { - var o = new api.DatabaseInstance(); - buildCounterDatabaseInstance++; - if (buildCounterDatabaseInstance < 3) { - o.backendType = "foo"; - o.connectionName = "foo"; - o.currentDiskSize = "foo"; - o.databaseVersion = "foo"; - o.etag = "foo"; - o.failoverReplica = buildDatabaseInstanceFailoverReplica(); - o.instanceType = "foo"; - o.ipAddresses = buildUnnamed3366(); - o.ipv6Address = "foo"; - o.kind = "foo"; - o.masterInstanceName = "foo"; - o.maxDiskSize = "foo"; - o.name = "foo"; - o.onPremisesConfiguration = buildOnPremisesConfiguration(); - o.project = "foo"; - o.region = "foo"; - o.replicaConfiguration = buildReplicaConfiguration(); - o.replicaNames = buildUnnamed3367(); - o.selfLink = "foo"; - o.serverCaCert = buildSslCert(); - o.serviceAccountEmailAddress = "foo"; - o.settings = buildSettings(); - o.state = "foo"; - o.suspensionReason = buildUnnamed3368(); - } - buildCounterDatabaseInstance--; - return o; -} - -checkDatabaseInstance(api.DatabaseInstance o) { - buildCounterDatabaseInstance++; - if (buildCounterDatabaseInstance < 3) { - unittest.expect(o.backendType, unittest.equals('foo')); - unittest.expect(o.connectionName, unittest.equals('foo')); - unittest.expect(o.currentDiskSize, unittest.equals('foo')); - unittest.expect(o.databaseVersion, unittest.equals('foo')); - unittest.expect(o.etag, unittest.equals('foo')); - checkDatabaseInstanceFailoverReplica(o.failoverReplica); - unittest.expect(o.instanceType, unittest.equals('foo')); - checkUnnamed3366(o.ipAddresses); - unittest.expect(o.ipv6Address, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.masterInstanceName, unittest.equals('foo')); - unittest.expect(o.maxDiskSize, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - checkOnPremisesConfiguration(o.onPremisesConfiguration); - unittest.expect(o.project, unittest.equals('foo')); - unittest.expect(o.region, unittest.equals('foo')); - checkReplicaConfiguration(o.replicaConfiguration); - checkUnnamed3367(o.replicaNames); - unittest.expect(o.selfLink, unittest.equals('foo')); - checkSslCert(o.serverCaCert); - unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); - checkSettings(o.settings); - unittest.expect(o.state, unittest.equals('foo')); - checkUnnamed3368(o.suspensionReason); - } - buildCounterDatabaseInstance--; -} - -buildUnnamed3369() { - var o = new core.List<api.Database>(); - o.add(buildDatabase()); - o.add(buildDatabase()); - return o; -} - -checkUnnamed3369(core.List<api.Database> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDatabase(o[0]); - checkDatabase(o[1]); -} - -core.int buildCounterDatabasesListResponse = 0; -buildDatabasesListResponse() { - var o = new api.DatabasesListResponse(); - buildCounterDatabasesListResponse++; - if (buildCounterDatabasesListResponse < 3) { - o.items = buildUnnamed3369(); - o.kind = "foo"; - } - buildCounterDatabasesListResponse--; - return o; -} - -checkDatabasesListResponse(api.DatabasesListResponse o) { - buildCounterDatabasesListResponse++; - if (buildCounterDatabasesListResponse < 3) { - checkUnnamed3369(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterDatabasesListResponse--; -} - -core.int buildCounterExportContextCsvExportOptions = 0; -buildExportContextCsvExportOptions() { - var o = new api.ExportContextCsvExportOptions(); - buildCounterExportContextCsvExportOptions++; - if (buildCounterExportContextCsvExportOptions < 3) { - o.selectQuery = "foo"; - } - buildCounterExportContextCsvExportOptions--; - return o; -} - -checkExportContextCsvExportOptions(api.ExportContextCsvExportOptions o) { - buildCounterExportContextCsvExportOptions++; - if (buildCounterExportContextCsvExportOptions < 3) { - unittest.expect(o.selectQuery, unittest.equals('foo')); - } - buildCounterExportContextCsvExportOptions--; -} - -buildUnnamed3370() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3370(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3371(core.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 buildCounterExportContextSqlExportOptions = 0; buildExportContextSqlExportOptions() { var o = new api.ExportContextSqlExportOptions(); buildCounterExportContextSqlExportOptions++; if (buildCounterExportContextSqlExportOptions < 3) { o.schemaOnly = true; - o.tables = buildUnnamed3371(); + o.tables = buildUnnamed3368(); } buildCounterExportContextSqlExportOptions--; return o; @@ -498,7 +498,7 @@ buildCounterExportContextSqlExportOptions++; if (buildCounterExportContextSqlExportOptions < 3) { unittest.expect(o.schemaOnly, unittest.isTrue); - checkUnnamed3371(o.tables); + checkUnnamed3368(o.tables); } buildCounterExportContextSqlExportOptions--; } @@ -509,7 +509,7 @@ buildCounterExportContext++; if (buildCounterExportContext < 3) { o.csvExportOptions = buildExportContextCsvExportOptions(); - o.databases = buildUnnamed3370(); + o.databases = buildUnnamed3367(); o.fileType = "foo"; o.kind = "foo"; o.sqlExportOptions = buildExportContextSqlExportOptions(); @@ -523,7 +523,7 @@ buildCounterExportContext++; if (buildCounterExportContext < 3) { checkExportContextCsvExportOptions(o.csvExportOptions); - checkUnnamed3370(o.databases); + checkUnnamed3367(o.databases); unittest.expect(o.fileType, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkExportContextSqlExportOptions(o.sqlExportOptions); @@ -553,27 +553,27 @@ buildCounterFailoverContext--; } -buildUnnamed3372() { +buildUnnamed3369() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3372(core.List<core.String> o) { +checkUnnamed3369(core.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() { +buildUnnamed3370() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3373(core.List<core.String> o) { +checkUnnamed3370(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -584,8 +584,8 @@ var o = new api.Flag(); buildCounterFlag++; if (buildCounterFlag < 3) { - o.allowedStringValues = buildUnnamed3372(); - o.appliesTo = buildUnnamed3373(); + o.allowedStringValues = buildUnnamed3369(); + o.appliesTo = buildUnnamed3370(); o.kind = "foo"; o.maxValue = "foo"; o.minValue = "foo"; @@ -600,8 +600,8 @@ checkFlag(api.Flag o) { buildCounterFlag++; if (buildCounterFlag < 3) { - checkUnnamed3372(o.allowedStringValues); - checkUnnamed3373(o.appliesTo); + checkUnnamed3369(o.allowedStringValues); + checkUnnamed3370(o.appliesTo); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.maxValue, unittest.equals('foo')); unittest.expect(o.minValue, unittest.equals('foo')); @@ -612,14 +612,14 @@ buildCounterFlag--; } -buildUnnamed3374() { +buildUnnamed3371() { var o = new core.List<api.Flag>(); o.add(buildFlag()); o.add(buildFlag()); return o; } -checkUnnamed3374(core.List<api.Flag> o) { +checkUnnamed3371(core.List<api.Flag> o) { unittest.expect(o, unittest.hasLength(2)); checkFlag(o[0]); checkFlag(o[1]); @@ -630,7 +630,7 @@ var o = new api.FlagsListResponse(); buildCounterFlagsListResponse++; if (buildCounterFlagsListResponse < 3) { - o.items = buildUnnamed3374(); + o.items = buildUnnamed3371(); o.kind = "foo"; } buildCounterFlagsListResponse--; @@ -640,20 +640,20 @@ checkFlagsListResponse(api.FlagsListResponse o) { buildCounterFlagsListResponse++; if (buildCounterFlagsListResponse < 3) { - checkUnnamed3374(o.items); + checkUnnamed3371(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterFlagsListResponse--; } -buildUnnamed3375() { +buildUnnamed3372() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3375(core.List<core.String> o) { +checkUnnamed3372(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -664,7 +664,7 @@ var o = new api.ImportContextCsvImportOptions(); buildCounterImportContextCsvImportOptions++; if (buildCounterImportContextCsvImportOptions < 3) { - o.columns = buildUnnamed3375(); + o.columns = buildUnnamed3372(); o.table = "foo"; } buildCounterImportContextCsvImportOptions--; @@ -674,7 +674,7 @@ checkImportContextCsvImportOptions(api.ImportContextCsvImportOptions o) { buildCounterImportContextCsvImportOptions++; if (buildCounterImportContextCsvImportOptions < 3) { - checkUnnamed3375(o.columns); + checkUnnamed3372(o.columns); unittest.expect(o.table, unittest.equals('foo')); } buildCounterImportContextCsvImportOptions--; @@ -785,14 +785,14 @@ buildCounterInstancesImportRequest--; } -buildUnnamed3376() { +buildUnnamed3373() { var o = new core.List<api.DatabaseInstance>(); o.add(buildDatabaseInstance()); o.add(buildDatabaseInstance()); return o; } -checkUnnamed3376(core.List<api.DatabaseInstance> o) { +checkUnnamed3373(core.List<api.DatabaseInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkDatabaseInstance(o[0]); checkDatabaseInstance(o[1]); @@ -803,7 +803,7 @@ var o = new api.InstancesListResponse(); buildCounterInstancesListResponse++; if (buildCounterInstancesListResponse < 3) { - o.items = buildUnnamed3376(); + o.items = buildUnnamed3373(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -814,7 +814,7 @@ checkInstancesListResponse(api.InstancesListResponse o) { buildCounterInstancesListResponse++; if (buildCounterInstancesListResponse < 3) { - checkUnnamed3376(o.items); + checkUnnamed3373(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -859,14 +859,14 @@ buildCounterInstancesTruncateLogRequest--; } -buildUnnamed3377() { +buildUnnamed3374() { var o = new core.List<api.AclEntry>(); o.add(buildAclEntry()); o.add(buildAclEntry()); return o; } -checkUnnamed3377(core.List<api.AclEntry> o) { +checkUnnamed3374(core.List<api.AclEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAclEntry(o[0]); checkAclEntry(o[1]); @@ -877,7 +877,7 @@ var o = new api.IpConfiguration(); buildCounterIpConfiguration++; if (buildCounterIpConfiguration < 3) { - o.authorizedNetworks = buildUnnamed3377(); + o.authorizedNetworks = buildUnnamed3374(); o.ipv4Enabled = true; o.requireSsl = true; } @@ -888,7 +888,7 @@ checkIpConfiguration(api.IpConfiguration o) { buildCounterIpConfiguration++; if (buildCounterIpConfiguration < 3) { - checkUnnamed3377(o.authorizedNetworks); + checkUnnamed3374(o.authorizedNetworks); unittest.expect(o.ipv4Enabled, unittest.isTrue); unittest.expect(o.requireSsl, unittest.isTrue); } @@ -1096,14 +1096,14 @@ buildCounterOperationError--; } -buildUnnamed3378() { +buildUnnamed3375() { var o = new core.List<api.OperationError>(); o.add(buildOperationError()); o.add(buildOperationError()); return o; } -checkUnnamed3378(core.List<api.OperationError> o) { +checkUnnamed3375(core.List<api.OperationError> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationError(o[0]); checkOperationError(o[1]); @@ -1114,7 +1114,7 @@ var o = new api.OperationErrors(); buildCounterOperationErrors++; if (buildCounterOperationErrors < 3) { - o.errors = buildUnnamed3378(); + o.errors = buildUnnamed3375(); o.kind = "foo"; } buildCounterOperationErrors--; @@ -1124,20 +1124,20 @@ checkOperationErrors(api.OperationErrors o) { buildCounterOperationErrors++; if (buildCounterOperationErrors < 3) { - checkUnnamed3378(o.errors); + checkUnnamed3375(o.errors); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterOperationErrors--; } -buildUnnamed3379() { +buildUnnamed3376() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3379(core.List<api.Operation> o) { +checkUnnamed3376(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1148,7 +1148,7 @@ var o = new api.OperationsListResponse(); buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { - o.items = buildUnnamed3379(); + o.items = buildUnnamed3376(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1159,7 +1159,7 @@ checkOperationsListResponse(api.OperationsListResponse o) { buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { - checkUnnamed3379(o.items); + checkUnnamed3376(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1212,40 +1212,40 @@ buildCounterRestoreBackupContext--; } -buildUnnamed3380() { +buildUnnamed3377() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3380(core.List<core.String> o) { +checkUnnamed3377(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3381() { +buildUnnamed3378() { var o = new core.List<api.DatabaseFlags>(); o.add(buildDatabaseFlags()); o.add(buildDatabaseFlags()); return o; } -checkUnnamed3381(core.List<api.DatabaseFlags> o) { +checkUnnamed3378(core.List<api.DatabaseFlags> o) { unittest.expect(o, unittest.hasLength(2)); checkDatabaseFlags(o[0]); checkDatabaseFlags(o[1]); } -buildUnnamed3382() { +buildUnnamed3379() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3382(core.Map<core.String, core.String> o) { +checkUnnamed3379(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1257,13 +1257,13 @@ buildCounterSettings++; if (buildCounterSettings < 3) { o.activationPolicy = "foo"; - o.authorizedGaeApplications = buildUnnamed3380(); + o.authorizedGaeApplications = buildUnnamed3377(); o.availabilityType = "foo"; o.backupConfiguration = buildBackupConfiguration(); o.crashSafeReplicationEnabled = true; o.dataDiskSizeGb = "foo"; o.dataDiskType = "foo"; - o.databaseFlags = buildUnnamed3381(); + o.databaseFlags = buildUnnamed3378(); o.databaseReplicationEnabled = true; o.ipConfiguration = buildIpConfiguration(); o.kind = "foo"; @@ -1275,7 +1275,7 @@ o.storageAutoResize = true; o.storageAutoResizeLimit = "foo"; o.tier = "foo"; - o.userLabels = buildUnnamed3382(); + o.userLabels = buildUnnamed3379(); } buildCounterSettings--; return o; @@ -1285,13 +1285,13 @@ buildCounterSettings++; if (buildCounterSettings < 3) { unittest.expect(o.activationPolicy, unittest.equals('foo')); - checkUnnamed3380(o.authorizedGaeApplications); + checkUnnamed3377(o.authorizedGaeApplications); unittest.expect(o.availabilityType, unittest.equals('foo')); checkBackupConfiguration(o.backupConfiguration); unittest.expect(o.crashSafeReplicationEnabled, unittest.isTrue); unittest.expect(o.dataDiskSizeGb, unittest.equals('foo')); unittest.expect(o.dataDiskType, unittest.equals('foo')); - checkUnnamed3381(o.databaseFlags); + checkUnnamed3378(o.databaseFlags); unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); checkIpConfiguration(o.ipConfiguration); unittest.expect(o.kind, unittest.equals('foo')); @@ -1303,7 +1303,7 @@ unittest.expect(o.storageAutoResize, unittest.isTrue); unittest.expect(o.storageAutoResizeLimit, unittest.equals('foo')); unittest.expect(o.tier, unittest.equals('foo')); - checkUnnamed3382(o.userLabels); + checkUnnamed3379(o.userLabels); } buildCounterSettings--; } @@ -1427,14 +1427,14 @@ buildCounterSslCertsInsertResponse--; } -buildUnnamed3383() { +buildUnnamed3380() { var o = new core.List<api.SslCert>(); o.add(buildSslCert()); o.add(buildSslCert()); return o; } -checkUnnamed3383(core.List<api.SslCert> o) { +checkUnnamed3380(core.List<api.SslCert> o) { unittest.expect(o, unittest.hasLength(2)); checkSslCert(o[0]); checkSslCert(o[1]); @@ -1445,7 +1445,7 @@ var o = new api.SslCertsListResponse(); buildCounterSslCertsListResponse++; if (buildCounterSslCertsListResponse < 3) { - o.items = buildUnnamed3383(); + o.items = buildUnnamed3380(); o.kind = "foo"; } buildCounterSslCertsListResponse--; @@ -1455,20 +1455,20 @@ checkSslCertsListResponse(api.SslCertsListResponse o) { buildCounterSslCertsListResponse++; if (buildCounterSslCertsListResponse < 3) { - checkUnnamed3383(o.items); + checkUnnamed3380(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterSslCertsListResponse--; } -buildUnnamed3384() { +buildUnnamed3381() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3384(core.List<core.String> o) { +checkUnnamed3381(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1482,7 +1482,7 @@ o.DiskQuota = "foo"; o.RAM = "foo"; o.kind = "foo"; - o.region = buildUnnamed3384(); + o.region = buildUnnamed3381(); o.tier = "foo"; } buildCounterTier--; @@ -1495,20 +1495,20 @@ unittest.expect(o.DiskQuota, unittest.equals('foo')); unittest.expect(o.RAM, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3384(o.region); + checkUnnamed3381(o.region); unittest.expect(o.tier, unittest.equals('foo')); } buildCounterTier--; } -buildUnnamed3385() { +buildUnnamed3382() { var o = new core.List<api.Tier>(); o.add(buildTier()); o.add(buildTier()); return o; } -checkUnnamed3385(core.List<api.Tier> o) { +checkUnnamed3382(core.List<api.Tier> o) { unittest.expect(o, unittest.hasLength(2)); checkTier(o[0]); checkTier(o[1]); @@ -1519,7 +1519,7 @@ var o = new api.TiersListResponse(); buildCounterTiersListResponse++; if (buildCounterTiersListResponse < 3) { - o.items = buildUnnamed3385(); + o.items = buildUnnamed3382(); o.kind = "foo"; } buildCounterTiersListResponse--; @@ -1529,7 +1529,7 @@ checkTiersListResponse(api.TiersListResponse o) { buildCounterTiersListResponse++; if (buildCounterTiersListResponse < 3) { - checkUnnamed3385(o.items); + checkUnnamed3382(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTiersListResponse--; @@ -1587,14 +1587,14 @@ buildCounterUser--; } -buildUnnamed3386() { +buildUnnamed3383() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed3386(core.List<api.User> o) { +checkUnnamed3383(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -1605,7 +1605,7 @@ var o = new api.UsersListResponse(); buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { - o.items = buildUnnamed3386(); + o.items = buildUnnamed3383(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1616,7 +1616,7 @@ checkUsersListResponse(api.UsersListResponse o) { buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { - checkUnnamed3386(o.items); + checkUnnamed3383(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); }
diff --git a/generated/googleapis_beta/test/taskqueue/v1beta2_test.dart b/generated/googleapis_beta/test/taskqueue/v1beta2_test.dart index 8d1ccc5..c389004 100644 --- a/generated/googleapis_beta/test/taskqueue/v1beta2_test.dart +++ b/generated/googleapis_beta/test/taskqueue/v1beta2_test.dart
@@ -84,40 +84,40 @@ buildCounterTask--; } -buildUnnamed3307() { +buildUnnamed3303() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3307(core.List<core.String> o) { +checkUnnamed3303(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3308() { +buildUnnamed3304() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3308(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')); } -buildUnnamed3309() { +buildUnnamed3305() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3309(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')); @@ -128,9 +128,9 @@ var o = new api.TaskQueueAcl(); buildCounterTaskQueueAcl++; if (buildCounterTaskQueueAcl < 3) { - o.adminEmails = buildUnnamed3307(); - o.consumerEmails = buildUnnamed3308(); - o.producerEmails = buildUnnamed3309(); + o.adminEmails = buildUnnamed3303(); + o.consumerEmails = buildUnnamed3304(); + o.producerEmails = buildUnnamed3305(); } buildCounterTaskQueueAcl--; return o; @@ -139,9 +139,9 @@ checkTaskQueueAcl(api.TaskQueueAcl o) { buildCounterTaskQueueAcl++; if (buildCounterTaskQueueAcl < 3) { - checkUnnamed3307(o.adminEmails); - checkUnnamed3308(o.consumerEmails); - checkUnnamed3309(o.producerEmails); + checkUnnamed3303(o.adminEmails); + checkUnnamed3304(o.consumerEmails); + checkUnnamed3305(o.producerEmails); } buildCounterTaskQueueAcl--; } @@ -198,14 +198,14 @@ buildCounterTaskQueue--; } -buildUnnamed3310() { +buildUnnamed3306() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed3310(core.List<api.Task> o) { +checkUnnamed3306(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -216,7 +216,7 @@ var o = new api.Tasks(); buildCounterTasks++; if (buildCounterTasks < 3) { - o.items = buildUnnamed3310(); + o.items = buildUnnamed3306(); o.kind = "foo"; } buildCounterTasks--; @@ -226,20 +226,20 @@ checkTasks(api.Tasks o) { buildCounterTasks++; if (buildCounterTasks < 3) { - checkUnnamed3310(o.items); + checkUnnamed3306(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTasks--; } -buildUnnamed3311() { +buildUnnamed3307() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed3311(core.List<api.Task> o) { +checkUnnamed3307(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -250,7 +250,7 @@ var o = new api.Tasks2(); buildCounterTasks2++; if (buildCounterTasks2 < 3) { - o.items = buildUnnamed3311(); + o.items = buildUnnamed3307(); o.kind = "foo"; } buildCounterTasks2--; @@ -260,7 +260,7 @@ checkTasks2(api.Tasks2 o) { buildCounterTasks2++; if (buildCounterTasks2 < 3) { - checkUnnamed3311(o.items); + checkUnnamed3307(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTasks2--;
diff --git a/generated/googleapis_beta/test/videointelligence/v1beta1_test.dart b/generated/googleapis_beta/test/videointelligence/v1beta1_test.dart index a4aa5a5..c5df511 100644 --- a/generated/googleapis_beta/test/videointelligence/v1beta1_test.dart +++ b/generated/googleapis_beta/test/videointelligence/v1beta1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3326() { +buildUnnamed3322() { var o = new core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationProgress>(); o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationProgress()); o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationProgress()); return o; } -checkUnnamed3326(core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationProgress> o) { +checkUnnamed3322(core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationProgress> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(o[0]); checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(o[1]); @@ -69,7 +69,7 @@ var o = new api.GoogleCloudVideointelligenceV1AnnotateVideoProgress(); buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress++; if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress < 3) { - o.annotationProgress = buildUnnamed3326(); + o.annotationProgress = buildUnnamed3322(); } buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--; return o; @@ -78,19 +78,19 @@ checkGoogleCloudVideointelligenceV1AnnotateVideoProgress(api.GoogleCloudVideointelligenceV1AnnotateVideoProgress o) { buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress++; if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress < 3) { - checkUnnamed3326(o.annotationProgress); + checkUnnamed3322(o.annotationProgress); } buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--; } -buildUnnamed3327() { +buildUnnamed3323() { var o = new core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResults>(); o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationResults()); o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationResults()); return o; } -checkUnnamed3327(core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResults> o) { +checkUnnamed3323(core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResults> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1VideoAnnotationResults(o[0]); checkGoogleCloudVideointelligenceV1VideoAnnotationResults(o[1]); @@ -101,7 +101,7 @@ var o = new api.GoogleCloudVideointelligenceV1AnnotateVideoResponse(); buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse++; if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse < 3) { - o.annotationResults = buildUnnamed3327(); + o.annotationResults = buildUnnamed3323(); } buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--; return o; @@ -110,19 +110,19 @@ checkGoogleCloudVideointelligenceV1AnnotateVideoResponse(api.GoogleCloudVideointelligenceV1AnnotateVideoResponse o) { buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse++; if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse < 3) { - checkUnnamed3327(o.annotationResults); + checkUnnamed3323(o.annotationResults); } buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--; } -buildUnnamed3328() { +buildUnnamed3324() { var o = new core.List<api.GoogleCloudVideointelligenceV1LabelLocation>(); o.add(buildGoogleCloudVideointelligenceV1LabelLocation()); o.add(buildGoogleCloudVideointelligenceV1LabelLocation()); return o; } -checkUnnamed3328(core.List<api.GoogleCloudVideointelligenceV1LabelLocation> o) { +checkUnnamed3324(core.List<api.GoogleCloudVideointelligenceV1LabelLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1LabelLocation(o[0]); checkGoogleCloudVideointelligenceV1LabelLocation(o[1]); @@ -135,7 +135,7 @@ if (buildCounterGoogleCloudVideointelligenceV1LabelAnnotation < 3) { o.description = "foo"; o.languageCode = "foo"; - o.locations = buildUnnamed3328(); + o.locations = buildUnnamed3324(); } buildCounterGoogleCloudVideointelligenceV1LabelAnnotation--; return o; @@ -146,7 +146,7 @@ if (buildCounterGoogleCloudVideointelligenceV1LabelAnnotation < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.languageCode, unittest.equals('foo')); - checkUnnamed3328(o.locations); + checkUnnamed3324(o.locations); } buildCounterGoogleCloudVideointelligenceV1LabelAnnotation--; } @@ -220,40 +220,40 @@ buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress--; } -buildUnnamed3329() { +buildUnnamed3325() { var o = new core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation()); o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation()); return o; } -checkUnnamed3329(core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> o) { +checkUnnamed3325(core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1LabelAnnotation(o[1]); } -buildUnnamed3330() { +buildUnnamed3326() { var o = new core.List<api.GoogleCloudVideointelligenceV1SafeSearchAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1SafeSearchAnnotation()); o.add(buildGoogleCloudVideointelligenceV1SafeSearchAnnotation()); return o; } -checkUnnamed3330(core.List<api.GoogleCloudVideointelligenceV1SafeSearchAnnotation> o) { +checkUnnamed3326(core.List<api.GoogleCloudVideointelligenceV1SafeSearchAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(o[0]); checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(o[1]); } -buildUnnamed3331() { +buildUnnamed3327() { var o = new core.List<api.GoogleCloudVideointelligenceV1VideoSegment>(); o.add(buildGoogleCloudVideointelligenceV1VideoSegment()); o.add(buildGoogleCloudVideointelligenceV1VideoSegment()); return o; } -checkUnnamed3331(core.List<api.GoogleCloudVideointelligenceV1VideoSegment> o) { +checkUnnamed3327(core.List<api.GoogleCloudVideointelligenceV1VideoSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1VideoSegment(o[0]); checkGoogleCloudVideointelligenceV1VideoSegment(o[1]); @@ -266,9 +266,9 @@ if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults < 3) { o.error = buildGoogleRpcStatus(); o.inputUri = "foo"; - o.labelAnnotations = buildUnnamed3329(); - o.safeSearchAnnotations = buildUnnamed3330(); - o.shotAnnotations = buildUnnamed3331(); + o.labelAnnotations = buildUnnamed3325(); + o.safeSearchAnnotations = buildUnnamed3326(); + o.shotAnnotations = buildUnnamed3327(); } buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults--; return o; @@ -279,9 +279,9 @@ if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults < 3) { checkGoogleRpcStatus(o.error); unittest.expect(o.inputUri, unittest.equals('foo')); - checkUnnamed3329(o.labelAnnotations); - checkUnnamed3330(o.safeSearchAnnotations); - checkUnnamed3331(o.shotAnnotations); + checkUnnamed3325(o.labelAnnotations); + checkUnnamed3326(o.safeSearchAnnotations); + checkUnnamed3327(o.shotAnnotations); } buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults--; } @@ -307,14 +307,14 @@ buildCounterGoogleCloudVideointelligenceV1VideoSegment--; } -buildUnnamed3332() { +buildUnnamed3328() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress>(); o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress()); o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress()); return o; } -checkUnnamed3332(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress> o) { +checkUnnamed3328(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(o[0]); checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(o[1]); @@ -325,7 +325,7 @@ var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(); buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress++; if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress < 3) { - o.annotationProgress = buildUnnamed3332(); + o.annotationProgress = buildUnnamed3328(); } buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--; return o; @@ -334,19 +334,19 @@ checkGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(api.GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress o) { buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress++; if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress < 3) { - checkUnnamed3332(o.annotationProgress); + checkUnnamed3328(o.annotationProgress); } buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--; } -buildUnnamed3333() { +buildUnnamed3329() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3333(core.List<core.String> o) { +checkUnnamed3329(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -357,7 +357,7 @@ var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(); buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest++; if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest < 3) { - o.features = buildUnnamed3333(); + o.features = buildUnnamed3329(); o.inputContent = "foo"; o.inputUri = "foo"; o.locationId = "foo"; @@ -371,7 +371,7 @@ checkGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(api.GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest o) { buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest++; if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest < 3) { - checkUnnamed3333(o.features); + checkUnnamed3329(o.features); unittest.expect(o.inputContent, unittest.equals('foo')); unittest.expect(o.inputUri, unittest.equals('foo')); unittest.expect(o.locationId, unittest.equals('foo')); @@ -381,14 +381,14 @@ buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest--; } -buildUnnamed3334() { +buildUnnamed3330() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults>(); o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults()); o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults()); return o; } -checkUnnamed3334(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults> o) { +checkUnnamed3330(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(o[0]); checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(o[1]); @@ -399,7 +399,7 @@ var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(); buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse++; if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse < 3) { - o.annotationResults = buildUnnamed3334(); + o.annotationResults = buildUnnamed3330(); } buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--; return o; @@ -408,19 +408,19 @@ checkGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(api.GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse o) { buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse++; if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse < 3) { - checkUnnamed3334(o.annotationResults); + checkUnnamed3330(o.annotationResults); } buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--; } -buildUnnamed3335() { +buildUnnamed3331() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation>(); o.add(buildGoogleCloudVideointelligenceV1beta1LabelLocation()); o.add(buildGoogleCloudVideointelligenceV1beta1LabelLocation()); return o; } -checkUnnamed3335(core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation> o) { +checkUnnamed3331(core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta1LabelLocation(o[0]); checkGoogleCloudVideointelligenceV1beta1LabelLocation(o[1]); @@ -433,7 +433,7 @@ if (buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation < 3) { o.description = "foo"; o.languageCode = "foo"; - o.locations = buildUnnamed3335(); + o.locations = buildUnnamed3331(); } buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation--; return o; @@ -444,7 +444,7 @@ if (buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.languageCode, unittest.equals('foo')); - checkUnnamed3335(o.locations); + checkUnnamed3331(o.locations); } buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation--; } @@ -472,6 +472,35 @@ buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation--; } +core.int buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation = 0; +buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation() { + var o = new api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(); + buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation < 3) { + o.adult = "foo"; + o.medical = "foo"; + o.racy = "foo"; + o.spoof = "foo"; + o.timeOffset = "foo"; + o.violent = "foo"; + } + buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation--; + return o; +} + +checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation o) { + buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation < 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.timeOffset, unittest.equals('foo')); + unittest.expect(o.violent, unittest.equals('foo')); + } + buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation--; +} + core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress = 0; buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress() { var o = new api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(); @@ -497,27 +526,40 @@ buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress--; } -buildUnnamed3336() { +buildUnnamed3332() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation()); o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation()); return o; } -checkUnnamed3336(core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation> o) { +checkUnnamed3332(core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[1]); } -buildUnnamed3337() { +buildUnnamed3333() { + var o = new core.List<api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation>(); + o.add(buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation()); + o.add(buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation()); + return o; +} + +checkUnnamed3333(core.List<api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(o[0]); + checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(o[1]); +} + +buildUnnamed3334() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>(); o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); return o; } -checkUnnamed3337(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) { +checkUnnamed3334(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]); checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]); @@ -530,8 +572,9 @@ if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3) { o.error = buildGoogleRpcStatus(); o.inputUri = "foo"; - o.labelAnnotations = buildUnnamed3336(); - o.shotAnnotations = buildUnnamed3337(); + o.labelAnnotations = buildUnnamed3332(); + o.safeSearchAnnotations = buildUnnamed3333(); + o.shotAnnotations = buildUnnamed3334(); } buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--; return o; @@ -542,20 +585,21 @@ if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3) { checkGoogleRpcStatus(o.error); unittest.expect(o.inputUri, unittest.equals('foo')); - checkUnnamed3336(o.labelAnnotations); - checkUnnamed3337(o.shotAnnotations); + checkUnnamed3332(o.labelAnnotations); + checkUnnamed3333(o.safeSearchAnnotations); + checkUnnamed3334(o.shotAnnotations); } buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--; } -buildUnnamed3338() { +buildUnnamed3335() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>(); o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); return o; } -checkUnnamed3338(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) { +checkUnnamed3335(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]); checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]); @@ -568,8 +612,10 @@ if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) { o.labelDetectionMode = "foo"; o.labelDetectionModel = "foo"; - o.segments = buildUnnamed3338(); + o.safeSearchDetectionModel = "foo"; + o.segments = buildUnnamed3335(); o.shotChangeDetectionModel = "foo"; + o.stationaryCamera = true; } buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--; return o; @@ -580,8 +626,10 @@ if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) { unittest.expect(o.labelDetectionMode, unittest.equals('foo')); unittest.expect(o.labelDetectionModel, unittest.equals('foo')); - checkUnnamed3338(o.segments); + unittest.expect(o.safeSearchDetectionModel, unittest.equals('foo')); + checkUnnamed3335(o.segments); unittest.expect(o.shotChangeDetectionModel, unittest.equals('foo')); + unittest.expect(o.stationaryCamera, unittest.isTrue); } buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--; } @@ -607,27 +655,27 @@ buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment--; } -buildUnnamed3339() { +buildUnnamed3336() { 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; } -checkUnnamed3339(core.Map<core.String, core.Object> o) { +checkUnnamed3336(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')); } -buildUnnamed3340() { +buildUnnamed3337() { 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; } -checkUnnamed3340(core.Map<core.String, core.Object> o) { +checkUnnamed3337(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')); @@ -640,9 +688,9 @@ if (buildCounterGoogleLongrunningOperation < 3) { o.done = true; o.error = buildGoogleRpcStatus(); - o.metadata = buildUnnamed3339(); + o.metadata = buildUnnamed3336(); o.name = "foo"; - o.response = buildUnnamed3340(); + o.response = buildUnnamed3337(); } buildCounterGoogleLongrunningOperation--; return o; @@ -653,37 +701,37 @@ if (buildCounterGoogleLongrunningOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkGoogleRpcStatus(o.error); - checkUnnamed3339(o.metadata); + checkUnnamed3336(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3340(o.response); + checkUnnamed3337(o.response); } buildCounterGoogleLongrunningOperation--; } -buildUnnamed3341() { +buildUnnamed3338() { 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; } -checkUnnamed3341(core.Map<core.String, core.Object> o) { +checkUnnamed3338(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')); } -buildUnnamed3342() { +buildUnnamed3339() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3341()); - o.add(buildUnnamed3341()); + o.add(buildUnnamed3338()); + o.add(buildUnnamed3338()); return o; } -checkUnnamed3342(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3339(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3341(o[0]); - checkUnnamed3341(o[1]); + checkUnnamed3338(o[0]); + checkUnnamed3338(o[1]); } core.int buildCounterGoogleRpcStatus = 0; @@ -692,7 +740,7 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { o.code = 42; - o.details = buildUnnamed3342(); + o.details = buildUnnamed3339(); o.message = "foo"; } buildCounterGoogleRpcStatus--; @@ -703,7 +751,7 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3342(o.details); + checkUnnamed3339(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterGoogleRpcStatus--; @@ -828,6 +876,15 @@ }); + unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(); + var od = new api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation.fromJson(o.toJson()); + checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress();