| Index: generated/googleapis_beta/test/dlp/v2beta1_test.dart
|
| diff --git a/generated/googleapis_beta/test/dlp/v2beta1_test.dart b/generated/googleapis_beta/test/dlp/v2beta1_test.dart
|
| index 6d894e794d7d110ff161b932ffb22db826768816..2ed7b45ec7b31abd1eb545ffe5ea701d072626b1 100644
|
| --- a/generated/googleapis_beta/test/dlp/v2beta1_test.dart
|
| +++ b/generated/googleapis_beta/test/dlp/v2beta1_test.dart
|
| @@ -1,12 +1,10 @@
|
| library googleapis_beta.dlp.v2beta1.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/dlp/v2beta1.dart' as api;
|
| @@ -22,7 +20,8 @@ class HttpServerMock extends http.BaseClient {
|
|
|
| async.Future<http.StreamedResponse> send(http.BaseRequest request) {
|
| if (_expectJson) {
|
| - return request.finalize()
|
| + return request
|
| + .finalize()
|
| .transform(convert.UTF8.decoder)
|
| .join('')
|
| .then((core.String jsonString) {
|
| @@ -45,8 +44,8 @@ class HttpServerMock extends http.BaseClient {
|
| }
|
| }
|
|
|
| -http.StreamedResponse stringResponse(
|
| - core.int status, core.Map<core.String, core.String> headers, core.String body) {
|
| +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);
|
| }
|
| @@ -55,27 +54,26 @@ core.int buildCounterGoogleLongrunningCancelOperationRequest = 0;
|
| buildGoogleLongrunningCancelOperationRequest() {
|
| var o = new api.GoogleLongrunningCancelOperationRequest();
|
| buildCounterGoogleLongrunningCancelOperationRequest++;
|
| - if (buildCounterGoogleLongrunningCancelOperationRequest < 3) {
|
| - }
|
| + if (buildCounterGoogleLongrunningCancelOperationRequest < 3) {}
|
| buildCounterGoogleLongrunningCancelOperationRequest--;
|
| return o;
|
| }
|
|
|
| -checkGoogleLongrunningCancelOperationRequest(api.GoogleLongrunningCancelOperationRequest o) {
|
| +checkGoogleLongrunningCancelOperationRequest(
|
| + api.GoogleLongrunningCancelOperationRequest o) {
|
| buildCounterGoogleLongrunningCancelOperationRequest++;
|
| - if (buildCounterGoogleLongrunningCancelOperationRequest < 3) {
|
| - }
|
| + if (buildCounterGoogleLongrunningCancelOperationRequest < 3) {}
|
| buildCounterGoogleLongrunningCancelOperationRequest--;
|
| }
|
|
|
| -buildUnnamed3310() {
|
| +buildUnnamed3303() {
|
| var o = new core.List<api.GoogleLongrunningOperation>();
|
| o.add(buildGoogleLongrunningOperation());
|
| o.add(buildGoogleLongrunningOperation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3310(core.List<api.GoogleLongrunningOperation> o) {
|
| +checkUnnamed3303(core.List<api.GoogleLongrunningOperation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGoogleLongrunningOperation(o[0]);
|
| checkGoogleLongrunningOperation(o[1]);
|
| @@ -87,45 +85,78 @@ buildGoogleLongrunningListOperationsResponse() {
|
| buildCounterGoogleLongrunningListOperationsResponse++;
|
| if (buildCounterGoogleLongrunningListOperationsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.operations = buildUnnamed3310();
|
| + o.operations = buildUnnamed3303();
|
| }
|
| buildCounterGoogleLongrunningListOperationsResponse--;
|
| return o;
|
| }
|
|
|
| -checkGoogleLongrunningListOperationsResponse(api.GoogleLongrunningListOperationsResponse o) {
|
| +checkGoogleLongrunningListOperationsResponse(
|
| + api.GoogleLongrunningListOperationsResponse o) {
|
| buildCounterGoogleLongrunningListOperationsResponse++;
|
| if (buildCounterGoogleLongrunningListOperationsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed3310(o.operations);
|
| + checkUnnamed3303(o.operations);
|
| }
|
| buildCounterGoogleLongrunningListOperationsResponse--;
|
| }
|
|
|
| -buildUnnamed3311() {
|
| +buildUnnamed3304() {
|
| var o = new core.Map<core.String, core.Object>();
|
| - o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| - o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| + o["x"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| + o["y"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| return o;
|
| }
|
|
|
| -checkUnnamed3311(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed3304(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'));
|
| -}
|
| -
|
| -buildUnnamed3312() {
|
| + 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'));
|
| +}
|
| +
|
| +buildUnnamed3305() {
|
| var o = new core.Map<core.String, core.Object>();
|
| - o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| - o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| + o["x"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| + o["y"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| return o;
|
| }
|
|
|
| -checkUnnamed3312(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed3305(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'));
|
| + var casted3 = (o["x"]) as core.Map;
|
| + unittest.expect(casted3, unittest.hasLength(3));
|
| + unittest.expect(casted3["list"], unittest.equals([1, 2, 3]));
|
| + unittest.expect(casted3["bool"], unittest.equals(true));
|
| + unittest.expect(casted3["string"], unittest.equals('foo'));
|
| + var casted4 = (o["y"]) as core.Map;
|
| + unittest.expect(casted4, unittest.hasLength(3));
|
| + unittest.expect(casted4["list"], unittest.equals([1, 2, 3]));
|
| + unittest.expect(casted4["bool"], unittest.equals(true));
|
| + unittest.expect(casted4["string"], unittest.equals('foo'));
|
| }
|
|
|
| core.int buildCounterGoogleLongrunningOperation = 0;
|
| @@ -135,9 +166,9 @@ buildGoogleLongrunningOperation() {
|
| if (buildCounterGoogleLongrunningOperation < 3) {
|
| o.done = true;
|
| o.error = buildGoogleRpcStatus();
|
| - o.metadata = buildUnnamed3311();
|
| + o.metadata = buildUnnamed3304();
|
| o.name = "foo";
|
| - o.response = buildUnnamed3312();
|
| + o.response = buildUnnamed3305();
|
| }
|
| buildCounterGoogleLongrunningOperation--;
|
| return o;
|
| @@ -148,21 +179,21 @@ checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) {
|
| if (buildCounterGoogleLongrunningOperation < 3) {
|
| unittest.expect(o.done, unittest.isTrue);
|
| checkGoogleRpcStatus(o.error);
|
| - checkUnnamed3311(o.metadata);
|
| + checkUnnamed3304(o.metadata);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed3312(o.response);
|
| + checkUnnamed3305(o.response);
|
| }
|
| buildCounterGoogleLongrunningOperation--;
|
| }
|
|
|
| -buildUnnamed3313() {
|
| +buildUnnamed3306() {
|
| var o = new core.List<api.GooglePrivacyDlpV2beta1FieldId>();
|
| o.add(buildGooglePrivacyDlpV2beta1FieldId());
|
| o.add(buildGooglePrivacyDlpV2beta1FieldId());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3313(core.List<api.GooglePrivacyDlpV2beta1FieldId> o) {
|
| +checkUnnamed3306(core.List<api.GooglePrivacyDlpV2beta1FieldId> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGooglePrivacyDlpV2beta1FieldId(o[0]);
|
| checkGooglePrivacyDlpV2beta1FieldId(o[1]);
|
| @@ -173,17 +204,18 @@ buildGooglePrivacyDlpV2beta1BigQueryOptions() {
|
| var o = new api.GooglePrivacyDlpV2beta1BigQueryOptions();
|
| buildCounterGooglePrivacyDlpV2beta1BigQueryOptions++;
|
| if (buildCounterGooglePrivacyDlpV2beta1BigQueryOptions < 3) {
|
| - o.identifyingFields = buildUnnamed3313();
|
| + o.identifyingFields = buildUnnamed3306();
|
| o.tableReference = buildGooglePrivacyDlpV2beta1BigQueryTable();
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1BigQueryOptions--;
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1BigQueryOptions(api.GooglePrivacyDlpV2beta1BigQueryOptions o) {
|
| +checkGooglePrivacyDlpV2beta1BigQueryOptions(
|
| + api.GooglePrivacyDlpV2beta1BigQueryOptions o) {
|
| buildCounterGooglePrivacyDlpV2beta1BigQueryOptions++;
|
| if (buildCounterGooglePrivacyDlpV2beta1BigQueryOptions < 3) {
|
| - checkUnnamed3313(o.identifyingFields);
|
| + checkUnnamed3306(o.identifyingFields);
|
| checkGooglePrivacyDlpV2beta1BigQueryTable(o.tableReference);
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1BigQueryOptions--;
|
| @@ -202,7 +234,8 @@ buildGooglePrivacyDlpV2beta1BigQueryTable() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1BigQueryTable(api.GooglePrivacyDlpV2beta1BigQueryTable o) {
|
| +checkGooglePrivacyDlpV2beta1BigQueryTable(
|
| + api.GooglePrivacyDlpV2beta1BigQueryTable o) {
|
| buildCounterGooglePrivacyDlpV2beta1BigQueryTable++;
|
| if (buildCounterGooglePrivacyDlpV2beta1BigQueryTable < 3) {
|
| unittest.expect(o.datasetId, unittest.equals('foo'));
|
| @@ -224,7 +257,8 @@ buildGooglePrivacyDlpV2beta1CategoryDescription() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1CategoryDescription(api.GooglePrivacyDlpV2beta1CategoryDescription o) {
|
| +checkGooglePrivacyDlpV2beta1CategoryDescription(
|
| + api.GooglePrivacyDlpV2beta1CategoryDescription o) {
|
| buildCounterGooglePrivacyDlpV2beta1CategoryDescription++;
|
| if (buildCounterGooglePrivacyDlpV2beta1CategoryDescription < 3) {
|
| unittest.expect(o.displayName, unittest.equals('foo'));
|
| @@ -245,7 +279,8 @@ buildGooglePrivacyDlpV2beta1CloudStorageKey() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1CloudStorageKey(api.GooglePrivacyDlpV2beta1CloudStorageKey o) {
|
| +checkGooglePrivacyDlpV2beta1CloudStorageKey(
|
| + api.GooglePrivacyDlpV2beta1CloudStorageKey o) {
|
| buildCounterGooglePrivacyDlpV2beta1CloudStorageKey++;
|
| if (buildCounterGooglePrivacyDlpV2beta1CloudStorageKey < 3) {
|
| unittest.expect(o.filePath, unittest.equals('foo'));
|
| @@ -265,7 +300,8 @@ buildGooglePrivacyDlpV2beta1CloudStorageOptions() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1CloudStorageOptions(api.GooglePrivacyDlpV2beta1CloudStorageOptions o) {
|
| +checkGooglePrivacyDlpV2beta1CloudStorageOptions(
|
| + api.GooglePrivacyDlpV2beta1CloudStorageOptions o) {
|
| buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions++;
|
| if (buildCounterGooglePrivacyDlpV2beta1CloudStorageOptions < 3) {
|
| checkGooglePrivacyDlpV2beta1FileSet(o.fileSet);
|
| @@ -284,7 +320,8 @@ buildGooglePrivacyDlpV2beta1CloudStoragePath() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1CloudStoragePath(api.GooglePrivacyDlpV2beta1CloudStoragePath o) {
|
| +checkGooglePrivacyDlpV2beta1CloudStoragePath(
|
| + api.GooglePrivacyDlpV2beta1CloudStoragePath o) {
|
| buildCounterGooglePrivacyDlpV2beta1CloudStoragePath++;
|
| if (buildCounterGooglePrivacyDlpV2beta1CloudStoragePath < 3) {
|
| unittest.expect(o.path, unittest.equals('foo'));
|
| @@ -329,7 +366,8 @@ buildGooglePrivacyDlpV2beta1ContentItem() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1ContentItem(api.GooglePrivacyDlpV2beta1ContentItem o) {
|
| +checkGooglePrivacyDlpV2beta1ContentItem(
|
| + api.GooglePrivacyDlpV2beta1ContentItem o) {
|
| buildCounterGooglePrivacyDlpV2beta1ContentItem++;
|
| if (buildCounterGooglePrivacyDlpV2beta1ContentItem < 3) {
|
| unittest.expect(o.data, unittest.equals('foo'));
|
| @@ -354,7 +392,8 @@ buildGooglePrivacyDlpV2beta1CreateInspectOperationRequest() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1CreateInspectOperationRequest(api.GooglePrivacyDlpV2beta1CreateInspectOperationRequest o) {
|
| +checkGooglePrivacyDlpV2beta1CreateInspectOperationRequest(
|
| + api.GooglePrivacyDlpV2beta1CreateInspectOperationRequest o) {
|
| buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest++;
|
| if (buildCounterGooglePrivacyDlpV2beta1CreateInspectOperationRequest < 3) {
|
| checkGooglePrivacyDlpV2beta1InspectConfig(o.inspectConfig);
|
| @@ -376,7 +415,8 @@ buildGooglePrivacyDlpV2beta1DatastoreKey() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1DatastoreKey(api.GooglePrivacyDlpV2beta1DatastoreKey o) {
|
| +checkGooglePrivacyDlpV2beta1DatastoreKey(
|
| + api.GooglePrivacyDlpV2beta1DatastoreKey o) {
|
| buildCounterGooglePrivacyDlpV2beta1DatastoreKey++;
|
| if (buildCounterGooglePrivacyDlpV2beta1DatastoreKey < 3) {
|
| checkGooglePrivacyDlpV2beta1Key(o.entityKey);
|
| @@ -384,14 +424,14 @@ checkGooglePrivacyDlpV2beta1DatastoreKey(api.GooglePrivacyDlpV2beta1DatastoreKey
|
| buildCounterGooglePrivacyDlpV2beta1DatastoreKey--;
|
| }
|
|
|
| -buildUnnamed3314() {
|
| +buildUnnamed3307() {
|
| var o = new core.List<api.GooglePrivacyDlpV2beta1Projection>();
|
| o.add(buildGooglePrivacyDlpV2beta1Projection());
|
| o.add(buildGooglePrivacyDlpV2beta1Projection());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3314(core.List<api.GooglePrivacyDlpV2beta1Projection> o) {
|
| +checkUnnamed3307(core.List<api.GooglePrivacyDlpV2beta1Projection> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGooglePrivacyDlpV2beta1Projection(o[0]);
|
| checkGooglePrivacyDlpV2beta1Projection(o[1]);
|
| @@ -404,18 +444,19 @@ buildGooglePrivacyDlpV2beta1DatastoreOptions() {
|
| if (buildCounterGooglePrivacyDlpV2beta1DatastoreOptions < 3) {
|
| o.kind = buildGooglePrivacyDlpV2beta1KindExpression();
|
| o.partitionId = buildGooglePrivacyDlpV2beta1PartitionId();
|
| - o.projection = buildUnnamed3314();
|
| + o.projection = buildUnnamed3307();
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1DatastoreOptions--;
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1DatastoreOptions(api.GooglePrivacyDlpV2beta1DatastoreOptions o) {
|
| +checkGooglePrivacyDlpV2beta1DatastoreOptions(
|
| + api.GooglePrivacyDlpV2beta1DatastoreOptions o) {
|
| buildCounterGooglePrivacyDlpV2beta1DatastoreOptions++;
|
| if (buildCounterGooglePrivacyDlpV2beta1DatastoreOptions < 3) {
|
| checkGooglePrivacyDlpV2beta1KindExpression(o.kind);
|
| checkGooglePrivacyDlpV2beta1PartitionId(o.partitionId);
|
| - checkUnnamed3314(o.projection);
|
| + checkUnnamed3307(o.projection);
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1DatastoreOptions--;
|
| }
|
| @@ -499,7 +540,8 @@ buildGooglePrivacyDlpV2beta1ImageLocation() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1ImageLocation(api.GooglePrivacyDlpV2beta1ImageLocation o) {
|
| +checkGooglePrivacyDlpV2beta1ImageLocation(
|
| + api.GooglePrivacyDlpV2beta1ImageLocation o) {
|
| buildCounterGooglePrivacyDlpV2beta1ImageLocation++;
|
| if (buildCounterGooglePrivacyDlpV2beta1ImageLocation < 3) {
|
| unittest.expect(o.height, unittest.equals(42));
|
| @@ -523,7 +565,8 @@ buildGooglePrivacyDlpV2beta1ImageRedactionConfig() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1ImageRedactionConfig(api.GooglePrivacyDlpV2beta1ImageRedactionConfig o) {
|
| +checkGooglePrivacyDlpV2beta1ImageRedactionConfig(
|
| + api.GooglePrivacyDlpV2beta1ImageRedactionConfig o) {
|
| buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig++;
|
| if (buildCounterGooglePrivacyDlpV2beta1ImageRedactionConfig < 3) {
|
| checkGooglePrivacyDlpV2beta1InfoType(o.infoType);
|
| @@ -552,14 +595,14 @@ checkGooglePrivacyDlpV2beta1InfoType(api.GooglePrivacyDlpV2beta1InfoType o) {
|
| buildCounterGooglePrivacyDlpV2beta1InfoType--;
|
| }
|
|
|
| -buildUnnamed3315() {
|
| +buildUnnamed3308() {
|
| var o = new core.List<api.GooglePrivacyDlpV2beta1CategoryDescription>();
|
| o.add(buildGooglePrivacyDlpV2beta1CategoryDescription());
|
| o.add(buildGooglePrivacyDlpV2beta1CategoryDescription());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3315(core.List<api.GooglePrivacyDlpV2beta1CategoryDescription> o) {
|
| +checkUnnamed3308(core.List<api.GooglePrivacyDlpV2beta1CategoryDescription> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGooglePrivacyDlpV2beta1CategoryDescription(o[0]);
|
| checkGooglePrivacyDlpV2beta1CategoryDescription(o[1]);
|
| @@ -570,7 +613,7 @@ buildGooglePrivacyDlpV2beta1InfoTypeDescription() {
|
| var o = new api.GooglePrivacyDlpV2beta1InfoTypeDescription();
|
| buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription++;
|
| if (buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription < 3) {
|
| - o.categories = buildUnnamed3315();
|
| + o.categories = buildUnnamed3308();
|
| o.displayName = "foo";
|
| o.name = "foo";
|
| }
|
| @@ -578,10 +621,11 @@ buildGooglePrivacyDlpV2beta1InfoTypeDescription() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1InfoTypeDescription(api.GooglePrivacyDlpV2beta1InfoTypeDescription o) {
|
| +checkGooglePrivacyDlpV2beta1InfoTypeDescription(
|
| + api.GooglePrivacyDlpV2beta1InfoTypeDescription o) {
|
| buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription++;
|
| if (buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription < 3) {
|
| - checkUnnamed3315(o.categories);
|
| + checkUnnamed3308(o.categories);
|
| unittest.expect(o.displayName, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| }
|
| @@ -600,7 +644,8 @@ buildGooglePrivacyDlpV2beta1InfoTypeLimit() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1InfoTypeLimit(api.GooglePrivacyDlpV2beta1InfoTypeLimit o) {
|
| +checkGooglePrivacyDlpV2beta1InfoTypeLimit(
|
| + api.GooglePrivacyDlpV2beta1InfoTypeLimit o) {
|
| buildCounterGooglePrivacyDlpV2beta1InfoTypeLimit++;
|
| if (buildCounterGooglePrivacyDlpV2beta1InfoTypeLimit < 3) {
|
| checkGooglePrivacyDlpV2beta1InfoType(o.infoType);
|
| @@ -621,7 +666,8 @@ buildGooglePrivacyDlpV2beta1InfoTypeStatistics() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1InfoTypeStatistics(api.GooglePrivacyDlpV2beta1InfoTypeStatistics o) {
|
| +checkGooglePrivacyDlpV2beta1InfoTypeStatistics(
|
| + api.GooglePrivacyDlpV2beta1InfoTypeStatistics o) {
|
| buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics++;
|
| if (buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics < 3) {
|
| unittest.expect(o.count, unittest.equals('foo'));
|
| @@ -630,27 +676,27 @@ checkGooglePrivacyDlpV2beta1InfoTypeStatistics(api.GooglePrivacyDlpV2beta1InfoTy
|
| buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics--;
|
| }
|
|
|
| -buildUnnamed3316() {
|
| +buildUnnamed3309() {
|
| var o = new core.List<api.GooglePrivacyDlpV2beta1InfoTypeLimit>();
|
| o.add(buildGooglePrivacyDlpV2beta1InfoTypeLimit());
|
| o.add(buildGooglePrivacyDlpV2beta1InfoTypeLimit());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3316(core.List<api.GooglePrivacyDlpV2beta1InfoTypeLimit> o) {
|
| +checkUnnamed3309(core.List<api.GooglePrivacyDlpV2beta1InfoTypeLimit> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGooglePrivacyDlpV2beta1InfoTypeLimit(o[0]);
|
| checkGooglePrivacyDlpV2beta1InfoTypeLimit(o[1]);
|
| }
|
|
|
| -buildUnnamed3317() {
|
| +buildUnnamed3310() {
|
| var o = new core.List<api.GooglePrivacyDlpV2beta1InfoType>();
|
| o.add(buildGooglePrivacyDlpV2beta1InfoType());
|
| o.add(buildGooglePrivacyDlpV2beta1InfoType());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3317(core.List<api.GooglePrivacyDlpV2beta1InfoType> o) {
|
| +checkUnnamed3310(core.List<api.GooglePrivacyDlpV2beta1InfoType> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGooglePrivacyDlpV2beta1InfoType(o[0]);
|
| checkGooglePrivacyDlpV2beta1InfoType(o[1]);
|
| @@ -663,8 +709,8 @@ buildGooglePrivacyDlpV2beta1InspectConfig() {
|
| if (buildCounterGooglePrivacyDlpV2beta1InspectConfig < 3) {
|
| o.excludeTypes = true;
|
| o.includeQuote = true;
|
| - o.infoTypeLimits = buildUnnamed3316();
|
| - o.infoTypes = buildUnnamed3317();
|
| + o.infoTypeLimits = buildUnnamed3309();
|
| + o.infoTypes = buildUnnamed3310();
|
| o.maxFindings = 42;
|
| o.minLikelihood = "foo";
|
| }
|
| @@ -672,27 +718,28 @@ buildGooglePrivacyDlpV2beta1InspectConfig() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1InspectConfig(api.GooglePrivacyDlpV2beta1InspectConfig o) {
|
| +checkGooglePrivacyDlpV2beta1InspectConfig(
|
| + api.GooglePrivacyDlpV2beta1InspectConfig o) {
|
| buildCounterGooglePrivacyDlpV2beta1InspectConfig++;
|
| if (buildCounterGooglePrivacyDlpV2beta1InspectConfig < 3) {
|
| unittest.expect(o.excludeTypes, unittest.isTrue);
|
| unittest.expect(o.includeQuote, unittest.isTrue);
|
| - checkUnnamed3316(o.infoTypeLimits);
|
| - checkUnnamed3317(o.infoTypes);
|
| + checkUnnamed3309(o.infoTypeLimits);
|
| + checkUnnamed3310(o.infoTypes);
|
| unittest.expect(o.maxFindings, unittest.equals(42));
|
| unittest.expect(o.minLikelihood, unittest.equals('foo'));
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1InspectConfig--;
|
| }
|
|
|
| -buildUnnamed3318() {
|
| +buildUnnamed3311() {
|
| var o = new core.List<api.GooglePrivacyDlpV2beta1ContentItem>();
|
| o.add(buildGooglePrivacyDlpV2beta1ContentItem());
|
| o.add(buildGooglePrivacyDlpV2beta1ContentItem());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3318(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) {
|
| +checkUnnamed3311(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGooglePrivacyDlpV2beta1ContentItem(o[0]);
|
| checkGooglePrivacyDlpV2beta1ContentItem(o[1]);
|
| @@ -704,29 +751,30 @@ buildGooglePrivacyDlpV2beta1InspectContentRequest() {
|
| buildCounterGooglePrivacyDlpV2beta1InspectContentRequest++;
|
| if (buildCounterGooglePrivacyDlpV2beta1InspectContentRequest < 3) {
|
| o.inspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig();
|
| - o.items = buildUnnamed3318();
|
| + o.items = buildUnnamed3311();
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1InspectContentRequest--;
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1InspectContentRequest(api.GooglePrivacyDlpV2beta1InspectContentRequest o) {
|
| +checkGooglePrivacyDlpV2beta1InspectContentRequest(
|
| + api.GooglePrivacyDlpV2beta1InspectContentRequest o) {
|
| buildCounterGooglePrivacyDlpV2beta1InspectContentRequest++;
|
| if (buildCounterGooglePrivacyDlpV2beta1InspectContentRequest < 3) {
|
| checkGooglePrivacyDlpV2beta1InspectConfig(o.inspectConfig);
|
| - checkUnnamed3318(o.items);
|
| + checkUnnamed3311(o.items);
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1InspectContentRequest--;
|
| }
|
|
|
| -buildUnnamed3319() {
|
| +buildUnnamed3312() {
|
| var o = new core.List<api.GooglePrivacyDlpV2beta1InspectResult>();
|
| o.add(buildGooglePrivacyDlpV2beta1InspectResult());
|
| o.add(buildGooglePrivacyDlpV2beta1InspectResult());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3319(core.List<api.GooglePrivacyDlpV2beta1InspectResult> o) {
|
| +checkUnnamed3312(core.List<api.GooglePrivacyDlpV2beta1InspectResult> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGooglePrivacyDlpV2beta1InspectResult(o[0]);
|
| checkGooglePrivacyDlpV2beta1InspectResult(o[1]);
|
| @@ -737,28 +785,29 @@ buildGooglePrivacyDlpV2beta1InspectContentResponse() {
|
| var o = new api.GooglePrivacyDlpV2beta1InspectContentResponse();
|
| buildCounterGooglePrivacyDlpV2beta1InspectContentResponse++;
|
| if (buildCounterGooglePrivacyDlpV2beta1InspectContentResponse < 3) {
|
| - o.results = buildUnnamed3319();
|
| + o.results = buildUnnamed3312();
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1InspectContentResponse--;
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1InspectContentResponse(api.GooglePrivacyDlpV2beta1InspectContentResponse o) {
|
| +checkGooglePrivacyDlpV2beta1InspectContentResponse(
|
| + api.GooglePrivacyDlpV2beta1InspectContentResponse o) {
|
| buildCounterGooglePrivacyDlpV2beta1InspectContentResponse++;
|
| if (buildCounterGooglePrivacyDlpV2beta1InspectContentResponse < 3) {
|
| - checkUnnamed3319(o.results);
|
| + checkUnnamed3312(o.results);
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1InspectContentResponse--;
|
| }
|
|
|
| -buildUnnamed3320() {
|
| +buildUnnamed3313() {
|
| var o = new core.List<api.GooglePrivacyDlpV2beta1InfoTypeStatistics>();
|
| o.add(buildGooglePrivacyDlpV2beta1InfoTypeStatistics());
|
| o.add(buildGooglePrivacyDlpV2beta1InfoTypeStatistics());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3320(core.List<api.GooglePrivacyDlpV2beta1InfoTypeStatistics> o) {
|
| +checkUnnamed3313(core.List<api.GooglePrivacyDlpV2beta1InfoTypeStatistics> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGooglePrivacyDlpV2beta1InfoTypeStatistics(o[0]);
|
| checkGooglePrivacyDlpV2beta1InfoTypeStatistics(o[1]);
|
| @@ -770,7 +819,7 @@ buildGooglePrivacyDlpV2beta1InspectOperationMetadata() {
|
| buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata++;
|
| if (buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata < 3) {
|
| o.createTime = "foo";
|
| - o.infoTypeStats = buildUnnamed3320();
|
| + o.infoTypeStats = buildUnnamed3313();
|
| o.processedBytes = "foo";
|
| o.requestInspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig();
|
| o.requestOutputConfig = buildGooglePrivacyDlpV2beta1OutputStorageConfig();
|
| @@ -781,11 +830,12 @@ buildGooglePrivacyDlpV2beta1InspectOperationMetadata() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1InspectOperationMetadata(api.GooglePrivacyDlpV2beta1InspectOperationMetadata o) {
|
| +checkGooglePrivacyDlpV2beta1InspectOperationMetadata(
|
| + api.GooglePrivacyDlpV2beta1InspectOperationMetadata o) {
|
| buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata++;
|
| if (buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata < 3) {
|
| unittest.expect(o.createTime, unittest.equals('foo'));
|
| - checkUnnamed3320(o.infoTypeStats);
|
| + checkUnnamed3313(o.infoTypeStats);
|
| unittest.expect(o.processedBytes, unittest.equals('foo'));
|
| checkGooglePrivacyDlpV2beta1InspectConfig(o.requestInspectConfig);
|
| checkGooglePrivacyDlpV2beta1OutputStorageConfig(o.requestOutputConfig);
|
| @@ -806,7 +856,8 @@ buildGooglePrivacyDlpV2beta1InspectOperationResult() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1InspectOperationResult(api.GooglePrivacyDlpV2beta1InspectOperationResult o) {
|
| +checkGooglePrivacyDlpV2beta1InspectOperationResult(
|
| + api.GooglePrivacyDlpV2beta1InspectOperationResult o) {
|
| buildCounterGooglePrivacyDlpV2beta1InspectOperationResult++;
|
| if (buildCounterGooglePrivacyDlpV2beta1InspectOperationResult < 3) {
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| @@ -814,14 +865,14 @@ checkGooglePrivacyDlpV2beta1InspectOperationResult(api.GooglePrivacyDlpV2beta1In
|
| buildCounterGooglePrivacyDlpV2beta1InspectOperationResult--;
|
| }
|
|
|
| -buildUnnamed3321() {
|
| +buildUnnamed3314() {
|
| var o = new core.List<api.GooglePrivacyDlpV2beta1Finding>();
|
| o.add(buildGooglePrivacyDlpV2beta1Finding());
|
| o.add(buildGooglePrivacyDlpV2beta1Finding());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3321(core.List<api.GooglePrivacyDlpV2beta1Finding> o) {
|
| +checkUnnamed3314(core.List<api.GooglePrivacyDlpV2beta1Finding> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGooglePrivacyDlpV2beta1Finding(o[0]);
|
| checkGooglePrivacyDlpV2beta1Finding(o[1]);
|
| @@ -832,30 +883,31 @@ buildGooglePrivacyDlpV2beta1InspectResult() {
|
| var o = new api.GooglePrivacyDlpV2beta1InspectResult();
|
| buildCounterGooglePrivacyDlpV2beta1InspectResult++;
|
| if (buildCounterGooglePrivacyDlpV2beta1InspectResult < 3) {
|
| - o.findings = buildUnnamed3321();
|
| + o.findings = buildUnnamed3314();
|
| o.findingsTruncated = true;
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1InspectResult--;
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1InspectResult(api.GooglePrivacyDlpV2beta1InspectResult o) {
|
| +checkGooglePrivacyDlpV2beta1InspectResult(
|
| + api.GooglePrivacyDlpV2beta1InspectResult o) {
|
| buildCounterGooglePrivacyDlpV2beta1InspectResult++;
|
| if (buildCounterGooglePrivacyDlpV2beta1InspectResult < 3) {
|
| - checkUnnamed3321(o.findings);
|
| + checkUnnamed3314(o.findings);
|
| unittest.expect(o.findingsTruncated, unittest.isTrue);
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1InspectResult--;
|
| }
|
|
|
| -buildUnnamed3322() {
|
| +buildUnnamed3315() {
|
| var o = new core.List<api.GooglePrivacyDlpV2beta1PathElement>();
|
| o.add(buildGooglePrivacyDlpV2beta1PathElement());
|
| o.add(buildGooglePrivacyDlpV2beta1PathElement());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3322(core.List<api.GooglePrivacyDlpV2beta1PathElement> o) {
|
| +checkUnnamed3315(core.List<api.GooglePrivacyDlpV2beta1PathElement> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGooglePrivacyDlpV2beta1PathElement(o[0]);
|
| checkGooglePrivacyDlpV2beta1PathElement(o[1]);
|
| @@ -867,7 +919,7 @@ buildGooglePrivacyDlpV2beta1Key() {
|
| buildCounterGooglePrivacyDlpV2beta1Key++;
|
| if (buildCounterGooglePrivacyDlpV2beta1Key < 3) {
|
| o.partitionId = buildGooglePrivacyDlpV2beta1PartitionId();
|
| - o.path = buildUnnamed3322();
|
| + o.path = buildUnnamed3315();
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1Key--;
|
| return o;
|
| @@ -877,7 +929,7 @@ checkGooglePrivacyDlpV2beta1Key(api.GooglePrivacyDlpV2beta1Key o) {
|
| buildCounterGooglePrivacyDlpV2beta1Key++;
|
| if (buildCounterGooglePrivacyDlpV2beta1Key < 3) {
|
| checkGooglePrivacyDlpV2beta1PartitionId(o.partitionId);
|
| - checkUnnamed3322(o.path);
|
| + checkUnnamed3315(o.path);
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1Key--;
|
| }
|
| @@ -893,7 +945,8 @@ buildGooglePrivacyDlpV2beta1KindExpression() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1KindExpression(api.GooglePrivacyDlpV2beta1KindExpression o) {
|
| +checkGooglePrivacyDlpV2beta1KindExpression(
|
| + api.GooglePrivacyDlpV2beta1KindExpression o) {
|
| buildCounterGooglePrivacyDlpV2beta1KindExpression++;
|
| if (buildCounterGooglePrivacyDlpV2beta1KindExpression < 3) {
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| @@ -901,14 +954,14 @@ checkGooglePrivacyDlpV2beta1KindExpression(api.GooglePrivacyDlpV2beta1KindExpres
|
| buildCounterGooglePrivacyDlpV2beta1KindExpression--;
|
| }
|
|
|
| -buildUnnamed3323() {
|
| +buildUnnamed3316() {
|
| var o = new core.List<api.GooglePrivacyDlpV2beta1InfoTypeDescription>();
|
| o.add(buildGooglePrivacyDlpV2beta1InfoTypeDescription());
|
| o.add(buildGooglePrivacyDlpV2beta1InfoTypeDescription());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3323(core.List<api.GooglePrivacyDlpV2beta1InfoTypeDescription> o) {
|
| +checkUnnamed3316(core.List<api.GooglePrivacyDlpV2beta1InfoTypeDescription> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGooglePrivacyDlpV2beta1InfoTypeDescription(o[0]);
|
| checkGooglePrivacyDlpV2beta1InfoTypeDescription(o[1]);
|
| @@ -919,16 +972,17 @@ buildGooglePrivacyDlpV2beta1ListInfoTypesResponse() {
|
| var o = new api.GooglePrivacyDlpV2beta1ListInfoTypesResponse();
|
| buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse++;
|
| if (buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse < 3) {
|
| - o.infoTypes = buildUnnamed3323();
|
| + o.infoTypes = buildUnnamed3316();
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse--;
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1ListInfoTypesResponse(api.GooglePrivacyDlpV2beta1ListInfoTypesResponse o) {
|
| +checkGooglePrivacyDlpV2beta1ListInfoTypesResponse(
|
| + api.GooglePrivacyDlpV2beta1ListInfoTypesResponse o) {
|
| buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse++;
|
| if (buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse < 3) {
|
| - checkUnnamed3323(o.infoTypes);
|
| + checkUnnamed3316(o.infoTypes);
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse--;
|
| }
|
| @@ -945,7 +999,8 @@ buildGooglePrivacyDlpV2beta1ListInspectFindingsResponse() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1ListInspectFindingsResponse(api.GooglePrivacyDlpV2beta1ListInspectFindingsResponse o) {
|
| +checkGooglePrivacyDlpV2beta1ListInspectFindingsResponse(
|
| + api.GooglePrivacyDlpV2beta1ListInspectFindingsResponse o) {
|
| buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse++;
|
| if (buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| @@ -954,14 +1009,14 @@ checkGooglePrivacyDlpV2beta1ListInspectFindingsResponse(api.GooglePrivacyDlpV2be
|
| buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse--;
|
| }
|
|
|
| -buildUnnamed3324() {
|
| +buildUnnamed3317() {
|
| var o = new core.List<api.GooglePrivacyDlpV2beta1CategoryDescription>();
|
| o.add(buildGooglePrivacyDlpV2beta1CategoryDescription());
|
| o.add(buildGooglePrivacyDlpV2beta1CategoryDescription());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3324(core.List<api.GooglePrivacyDlpV2beta1CategoryDescription> o) {
|
| +checkUnnamed3317(core.List<api.GooglePrivacyDlpV2beta1CategoryDescription> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGooglePrivacyDlpV2beta1CategoryDescription(o[0]);
|
| checkGooglePrivacyDlpV2beta1CategoryDescription(o[1]);
|
| @@ -972,28 +1027,29 @@ buildGooglePrivacyDlpV2beta1ListRootCategoriesResponse() {
|
| var o = new api.GooglePrivacyDlpV2beta1ListRootCategoriesResponse();
|
| buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse++;
|
| if (buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse < 3) {
|
| - o.categories = buildUnnamed3324();
|
| + o.categories = buildUnnamed3317();
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse--;
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1ListRootCategoriesResponse(api.GooglePrivacyDlpV2beta1ListRootCategoriesResponse o) {
|
| +checkGooglePrivacyDlpV2beta1ListRootCategoriesResponse(
|
| + api.GooglePrivacyDlpV2beta1ListRootCategoriesResponse o) {
|
| buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse++;
|
| if (buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse < 3) {
|
| - checkUnnamed3324(o.categories);
|
| + checkUnnamed3317(o.categories);
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse--;
|
| }
|
|
|
| -buildUnnamed3325() {
|
| +buildUnnamed3318() {
|
| var o = new core.List<api.GooglePrivacyDlpV2beta1ImageLocation>();
|
| o.add(buildGooglePrivacyDlpV2beta1ImageLocation());
|
| o.add(buildGooglePrivacyDlpV2beta1ImageLocation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3325(core.List<api.GooglePrivacyDlpV2beta1ImageLocation> o) {
|
| +checkUnnamed3318(core.List<api.GooglePrivacyDlpV2beta1ImageLocation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGooglePrivacyDlpV2beta1ImageLocation(o[0]);
|
| checkGooglePrivacyDlpV2beta1ImageLocation(o[1]);
|
| @@ -1007,7 +1063,7 @@ buildGooglePrivacyDlpV2beta1Location() {
|
| o.byteRange = buildGooglePrivacyDlpV2beta1Range();
|
| o.codepointRange = buildGooglePrivacyDlpV2beta1Range();
|
| o.fieldId = buildGooglePrivacyDlpV2beta1FieldId();
|
| - o.imageBoxes = buildUnnamed3325();
|
| + o.imageBoxes = buildUnnamed3318();
|
| o.recordKey = buildGooglePrivacyDlpV2beta1RecordKey();
|
| o.tableLocation = buildGooglePrivacyDlpV2beta1TableLocation();
|
| }
|
| @@ -1021,7 +1077,7 @@ checkGooglePrivacyDlpV2beta1Location(api.GooglePrivacyDlpV2beta1Location o) {
|
| checkGooglePrivacyDlpV2beta1Range(o.byteRange);
|
| checkGooglePrivacyDlpV2beta1Range(o.codepointRange);
|
| checkGooglePrivacyDlpV2beta1FieldId(o.fieldId);
|
| - checkUnnamed3325(o.imageBoxes);
|
| + checkUnnamed3318(o.imageBoxes);
|
| checkGooglePrivacyDlpV2beta1RecordKey(o.recordKey);
|
| checkGooglePrivacyDlpV2beta1TableLocation(o.tableLocation);
|
| }
|
| @@ -1039,7 +1095,8 @@ buildGooglePrivacyDlpV2beta1OperationConfig() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1OperationConfig(api.GooglePrivacyDlpV2beta1OperationConfig o) {
|
| +checkGooglePrivacyDlpV2beta1OperationConfig(
|
| + api.GooglePrivacyDlpV2beta1OperationConfig o) {
|
| buildCounterGooglePrivacyDlpV2beta1OperationConfig++;
|
| if (buildCounterGooglePrivacyDlpV2beta1OperationConfig < 3) {
|
| unittest.expect(o.maxItemFindings, unittest.equals('foo'));
|
| @@ -1059,7 +1116,8 @@ buildGooglePrivacyDlpV2beta1OutputStorageConfig() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1OutputStorageConfig(api.GooglePrivacyDlpV2beta1OutputStorageConfig o) {
|
| +checkGooglePrivacyDlpV2beta1OutputStorageConfig(
|
| + api.GooglePrivacyDlpV2beta1OutputStorageConfig o) {
|
| buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig++;
|
| if (buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig < 3) {
|
| checkGooglePrivacyDlpV2beta1CloudStoragePath(o.storagePath);
|
| @@ -1080,7 +1138,8 @@ buildGooglePrivacyDlpV2beta1PartitionId() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1PartitionId(api.GooglePrivacyDlpV2beta1PartitionId o) {
|
| +checkGooglePrivacyDlpV2beta1PartitionId(
|
| + api.GooglePrivacyDlpV2beta1PartitionId o) {
|
| buildCounterGooglePrivacyDlpV2beta1PartitionId++;
|
| if (buildCounterGooglePrivacyDlpV2beta1PartitionId < 3) {
|
| unittest.expect(o.namespaceId, unittest.equals('foo'));
|
| @@ -1102,7 +1161,8 @@ buildGooglePrivacyDlpV2beta1PathElement() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1PathElement(api.GooglePrivacyDlpV2beta1PathElement o) {
|
| +checkGooglePrivacyDlpV2beta1PathElement(
|
| + api.GooglePrivacyDlpV2beta1PathElement o) {
|
| buildCounterGooglePrivacyDlpV2beta1PathElement++;
|
| if (buildCounterGooglePrivacyDlpV2beta1PathElement < 3) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| @@ -1123,7 +1183,8 @@ buildGooglePrivacyDlpV2beta1Projection() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1Projection(api.GooglePrivacyDlpV2beta1Projection o) {
|
| +checkGooglePrivacyDlpV2beta1Projection(
|
| + api.GooglePrivacyDlpV2beta1Projection o) {
|
| buildCounterGooglePrivacyDlpV2beta1Projection++;
|
| if (buildCounterGooglePrivacyDlpV2beta1Projection < 3) {
|
| checkGooglePrivacyDlpV2beta1PropertyReference(o.property);
|
| @@ -1142,7 +1203,8 @@ buildGooglePrivacyDlpV2beta1PropertyReference() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1PropertyReference(api.GooglePrivacyDlpV2beta1PropertyReference o) {
|
| +checkGooglePrivacyDlpV2beta1PropertyReference(
|
| + api.GooglePrivacyDlpV2beta1PropertyReference o) {
|
| buildCounterGooglePrivacyDlpV2beta1PropertyReference++;
|
| if (buildCounterGooglePrivacyDlpV2beta1PropertyReference < 3) {
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| @@ -1192,40 +1254,40 @@ checkGooglePrivacyDlpV2beta1RecordKey(api.GooglePrivacyDlpV2beta1RecordKey o) {
|
| buildCounterGooglePrivacyDlpV2beta1RecordKey--;
|
| }
|
|
|
| -buildUnnamed3326() {
|
| +buildUnnamed3319() {
|
| var o = new core.List<api.GooglePrivacyDlpV2beta1ImageRedactionConfig>();
|
| o.add(buildGooglePrivacyDlpV2beta1ImageRedactionConfig());
|
| o.add(buildGooglePrivacyDlpV2beta1ImageRedactionConfig());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3326(core.List<api.GooglePrivacyDlpV2beta1ImageRedactionConfig> o) {
|
| +checkUnnamed3319(core.List<api.GooglePrivacyDlpV2beta1ImageRedactionConfig> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGooglePrivacyDlpV2beta1ImageRedactionConfig(o[0]);
|
| checkGooglePrivacyDlpV2beta1ImageRedactionConfig(o[1]);
|
| }
|
|
|
| -buildUnnamed3327() {
|
| +buildUnnamed3320() {
|
| var o = new core.List<api.GooglePrivacyDlpV2beta1ContentItem>();
|
| o.add(buildGooglePrivacyDlpV2beta1ContentItem());
|
| o.add(buildGooglePrivacyDlpV2beta1ContentItem());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3327(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) {
|
| +checkUnnamed3320(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGooglePrivacyDlpV2beta1ContentItem(o[0]);
|
| checkGooglePrivacyDlpV2beta1ContentItem(o[1]);
|
| }
|
|
|
| -buildUnnamed3328() {
|
| +buildUnnamed3321() {
|
| var o = new core.List<api.GooglePrivacyDlpV2beta1ReplaceConfig>();
|
| o.add(buildGooglePrivacyDlpV2beta1ReplaceConfig());
|
| o.add(buildGooglePrivacyDlpV2beta1ReplaceConfig());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3328(core.List<api.GooglePrivacyDlpV2beta1ReplaceConfig> o) {
|
| +checkUnnamed3321(core.List<api.GooglePrivacyDlpV2beta1ReplaceConfig> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGooglePrivacyDlpV2beta1ReplaceConfig(o[0]);
|
| checkGooglePrivacyDlpV2beta1ReplaceConfig(o[1]);
|
| @@ -1236,34 +1298,35 @@ buildGooglePrivacyDlpV2beta1RedactContentRequest() {
|
| var o = new api.GooglePrivacyDlpV2beta1RedactContentRequest();
|
| buildCounterGooglePrivacyDlpV2beta1RedactContentRequest++;
|
| if (buildCounterGooglePrivacyDlpV2beta1RedactContentRequest < 3) {
|
| - o.imageRedactionConfigs = buildUnnamed3326();
|
| + o.imageRedactionConfigs = buildUnnamed3319();
|
| o.inspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig();
|
| - o.items = buildUnnamed3327();
|
| - o.replaceConfigs = buildUnnamed3328();
|
| + o.items = buildUnnamed3320();
|
| + o.replaceConfigs = buildUnnamed3321();
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1RedactContentRequest--;
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1RedactContentRequest(api.GooglePrivacyDlpV2beta1RedactContentRequest o) {
|
| +checkGooglePrivacyDlpV2beta1RedactContentRequest(
|
| + api.GooglePrivacyDlpV2beta1RedactContentRequest o) {
|
| buildCounterGooglePrivacyDlpV2beta1RedactContentRequest++;
|
| if (buildCounterGooglePrivacyDlpV2beta1RedactContentRequest < 3) {
|
| - checkUnnamed3326(o.imageRedactionConfigs);
|
| + checkUnnamed3319(o.imageRedactionConfigs);
|
| checkGooglePrivacyDlpV2beta1InspectConfig(o.inspectConfig);
|
| - checkUnnamed3327(o.items);
|
| - checkUnnamed3328(o.replaceConfigs);
|
| + checkUnnamed3320(o.items);
|
| + checkUnnamed3321(o.replaceConfigs);
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1RedactContentRequest--;
|
| }
|
|
|
| -buildUnnamed3329() {
|
| +buildUnnamed3322() {
|
| var o = new core.List<api.GooglePrivacyDlpV2beta1ContentItem>();
|
| o.add(buildGooglePrivacyDlpV2beta1ContentItem());
|
| o.add(buildGooglePrivacyDlpV2beta1ContentItem());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3329(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) {
|
| +checkUnnamed3322(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGooglePrivacyDlpV2beta1ContentItem(o[0]);
|
| checkGooglePrivacyDlpV2beta1ContentItem(o[1]);
|
| @@ -1274,16 +1337,17 @@ buildGooglePrivacyDlpV2beta1RedactContentResponse() {
|
| var o = new api.GooglePrivacyDlpV2beta1RedactContentResponse();
|
| buildCounterGooglePrivacyDlpV2beta1RedactContentResponse++;
|
| if (buildCounterGooglePrivacyDlpV2beta1RedactContentResponse < 3) {
|
| - o.items = buildUnnamed3329();
|
| + o.items = buildUnnamed3322();
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1RedactContentResponse--;
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1RedactContentResponse(api.GooglePrivacyDlpV2beta1RedactContentResponse o) {
|
| +checkGooglePrivacyDlpV2beta1RedactContentResponse(
|
| + api.GooglePrivacyDlpV2beta1RedactContentResponse o) {
|
| buildCounterGooglePrivacyDlpV2beta1RedactContentResponse++;
|
| if (buildCounterGooglePrivacyDlpV2beta1RedactContentResponse < 3) {
|
| - checkUnnamed3329(o.items);
|
| + checkUnnamed3322(o.items);
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1RedactContentResponse--;
|
| }
|
| @@ -1300,7 +1364,8 @@ buildGooglePrivacyDlpV2beta1ReplaceConfig() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1ReplaceConfig(api.GooglePrivacyDlpV2beta1ReplaceConfig o) {
|
| +checkGooglePrivacyDlpV2beta1ReplaceConfig(
|
| + api.GooglePrivacyDlpV2beta1ReplaceConfig o) {
|
| buildCounterGooglePrivacyDlpV2beta1ReplaceConfig++;
|
| if (buildCounterGooglePrivacyDlpV2beta1ReplaceConfig < 3) {
|
| checkGooglePrivacyDlpV2beta1InfoType(o.infoType);
|
| @@ -1309,14 +1374,14 @@ checkGooglePrivacyDlpV2beta1ReplaceConfig(api.GooglePrivacyDlpV2beta1ReplaceConf
|
| buildCounterGooglePrivacyDlpV2beta1ReplaceConfig--;
|
| }
|
|
|
| -buildUnnamed3330() {
|
| +buildUnnamed3323() {
|
| var o = new core.List<api.GooglePrivacyDlpV2beta1Value>();
|
| o.add(buildGooglePrivacyDlpV2beta1Value());
|
| o.add(buildGooglePrivacyDlpV2beta1Value());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3330(core.List<api.GooglePrivacyDlpV2beta1Value> o) {
|
| +checkUnnamed3323(core.List<api.GooglePrivacyDlpV2beta1Value> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGooglePrivacyDlpV2beta1Value(o[0]);
|
| checkGooglePrivacyDlpV2beta1Value(o[1]);
|
| @@ -1327,7 +1392,7 @@ buildGooglePrivacyDlpV2beta1Row() {
|
| var o = new api.GooglePrivacyDlpV2beta1Row();
|
| buildCounterGooglePrivacyDlpV2beta1Row++;
|
| if (buildCounterGooglePrivacyDlpV2beta1Row < 3) {
|
| - o.values = buildUnnamed3330();
|
| + o.values = buildUnnamed3323();
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1Row--;
|
| return o;
|
| @@ -1336,7 +1401,7 @@ buildGooglePrivacyDlpV2beta1Row() {
|
| checkGooglePrivacyDlpV2beta1Row(api.GooglePrivacyDlpV2beta1Row o) {
|
| buildCounterGooglePrivacyDlpV2beta1Row++;
|
| if (buildCounterGooglePrivacyDlpV2beta1Row < 3) {
|
| - checkUnnamed3330(o.values);
|
| + checkUnnamed3323(o.values);
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1Row--;
|
| }
|
| @@ -1354,7 +1419,8 @@ buildGooglePrivacyDlpV2beta1StorageConfig() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1StorageConfig(api.GooglePrivacyDlpV2beta1StorageConfig o) {
|
| +checkGooglePrivacyDlpV2beta1StorageConfig(
|
| + api.GooglePrivacyDlpV2beta1StorageConfig o) {
|
| buildCounterGooglePrivacyDlpV2beta1StorageConfig++;
|
| if (buildCounterGooglePrivacyDlpV2beta1StorageConfig < 3) {
|
| checkGooglePrivacyDlpV2beta1BigQueryOptions(o.bigQueryOptions);
|
| @@ -1364,27 +1430,27 @@ checkGooglePrivacyDlpV2beta1StorageConfig(api.GooglePrivacyDlpV2beta1StorageConf
|
| buildCounterGooglePrivacyDlpV2beta1StorageConfig--;
|
| }
|
|
|
| -buildUnnamed3331() {
|
| +buildUnnamed3324() {
|
| var o = new core.List<api.GooglePrivacyDlpV2beta1FieldId>();
|
| o.add(buildGooglePrivacyDlpV2beta1FieldId());
|
| o.add(buildGooglePrivacyDlpV2beta1FieldId());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3331(core.List<api.GooglePrivacyDlpV2beta1FieldId> o) {
|
| +checkUnnamed3324(core.List<api.GooglePrivacyDlpV2beta1FieldId> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGooglePrivacyDlpV2beta1FieldId(o[0]);
|
| checkGooglePrivacyDlpV2beta1FieldId(o[1]);
|
| }
|
|
|
| -buildUnnamed3332() {
|
| +buildUnnamed3325() {
|
| var o = new core.List<api.GooglePrivacyDlpV2beta1Row>();
|
| o.add(buildGooglePrivacyDlpV2beta1Row());
|
| o.add(buildGooglePrivacyDlpV2beta1Row());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3332(core.List<api.GooglePrivacyDlpV2beta1Row> o) {
|
| +checkUnnamed3325(core.List<api.GooglePrivacyDlpV2beta1Row> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGooglePrivacyDlpV2beta1Row(o[0]);
|
| checkGooglePrivacyDlpV2beta1Row(o[1]);
|
| @@ -1395,8 +1461,8 @@ buildGooglePrivacyDlpV2beta1Table() {
|
| var o = new api.GooglePrivacyDlpV2beta1Table();
|
| buildCounterGooglePrivacyDlpV2beta1Table++;
|
| if (buildCounterGooglePrivacyDlpV2beta1Table < 3) {
|
| - o.headers = buildUnnamed3331();
|
| - o.rows = buildUnnamed3332();
|
| + o.headers = buildUnnamed3324();
|
| + o.rows = buildUnnamed3325();
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1Table--;
|
| return o;
|
| @@ -1405,8 +1471,8 @@ buildGooglePrivacyDlpV2beta1Table() {
|
| checkGooglePrivacyDlpV2beta1Table(api.GooglePrivacyDlpV2beta1Table o) {
|
| buildCounterGooglePrivacyDlpV2beta1Table++;
|
| if (buildCounterGooglePrivacyDlpV2beta1Table < 3) {
|
| - checkUnnamed3331(o.headers);
|
| - checkUnnamed3332(o.rows);
|
| + checkUnnamed3324(o.headers);
|
| + checkUnnamed3325(o.rows);
|
| }
|
| buildCounterGooglePrivacyDlpV2beta1Table--;
|
| }
|
| @@ -1422,7 +1488,8 @@ buildGooglePrivacyDlpV2beta1TableLocation() {
|
| return o;
|
| }
|
|
|
| -checkGooglePrivacyDlpV2beta1TableLocation(api.GooglePrivacyDlpV2beta1TableLocation o) {
|
| +checkGooglePrivacyDlpV2beta1TableLocation(
|
| + api.GooglePrivacyDlpV2beta1TableLocation o) {
|
| buildCounterGooglePrivacyDlpV2beta1TableLocation++;
|
| if (buildCounterGooglePrivacyDlpV2beta1TableLocation < 3) {
|
| unittest.expect(o.rowIndex, unittest.equals('foo'));
|
| @@ -1465,43 +1532,57 @@ core.int buildCounterGoogleProtobufEmpty = 0;
|
| buildGoogleProtobufEmpty() {
|
| var o = new api.GoogleProtobufEmpty();
|
| buildCounterGoogleProtobufEmpty++;
|
| - if (buildCounterGoogleProtobufEmpty < 3) {
|
| - }
|
| + if (buildCounterGoogleProtobufEmpty < 3) {}
|
| buildCounterGoogleProtobufEmpty--;
|
| return o;
|
| }
|
|
|
| checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) {
|
| buildCounterGoogleProtobufEmpty++;
|
| - if (buildCounterGoogleProtobufEmpty < 3) {
|
| - }
|
| + if (buildCounterGoogleProtobufEmpty < 3) {}
|
| buildCounterGoogleProtobufEmpty--;
|
| }
|
|
|
| -buildUnnamed3333() {
|
| +buildUnnamed3326() {
|
| var o = new core.Map<core.String, core.Object>();
|
| - o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| - o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| + o["x"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| + o["y"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| return o;
|
| }
|
|
|
| -checkUnnamed3333(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed3326(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo'));
|
| - var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo'));
|
| + var 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'));
|
| }
|
|
|
| -buildUnnamed3334() {
|
| +buildUnnamed3327() {
|
| var o = new core.List<core.Map<core.String, core.Object>>();
|
| - o.add(buildUnnamed3333());
|
| - o.add(buildUnnamed3333());
|
| + o.add(buildUnnamed3326());
|
| + o.add(buildUnnamed3326());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3334(core.List<core.Map<core.String, core.Object>> o) {
|
| +checkUnnamed3327(core.List<core.Map<core.String, core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed3333(o[0]);
|
| - checkUnnamed3333(o[1]);
|
| + checkUnnamed3326(o[0]);
|
| + checkUnnamed3326(o[1]);
|
| }
|
|
|
| core.int buildCounterGoogleRpcStatus = 0;
|
| @@ -1510,7 +1591,7 @@ buildGoogleRpcStatus() {
|
| buildCounterGoogleRpcStatus++;
|
| if (buildCounterGoogleRpcStatus < 3) {
|
| o.code = 42;
|
| - o.details = buildUnnamed3334();
|
| + o.details = buildUnnamed3327();
|
| o.message = "foo";
|
| }
|
| buildCounterGoogleRpcStatus--;
|
| @@ -1521,7 +1602,7 @@ checkGoogleRpcStatus(api.GoogleRpcStatus o) {
|
| buildCounterGoogleRpcStatus++;
|
| if (buildCounterGoogleRpcStatus < 3) {
|
| unittest.expect(o.code, unittest.equals(42));
|
| - checkUnnamed3334(o.details);
|
| + checkUnnamed3327(o.details);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterGoogleRpcStatus--;
|
| @@ -1575,26 +1656,25 @@ checkGoogleTypeTimeOfDay(api.GoogleTypeTimeOfDay o) {
|
| buildCounterGoogleTypeTimeOfDay--;
|
| }
|
|
|
| -
|
| main() {
|
| unittest.group("obj-schema-GoogleLongrunningCancelOperationRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGoogleLongrunningCancelOperationRequest();
|
| - var od = new api.GoogleLongrunningCancelOperationRequest.fromJson(o.toJson());
|
| + var od =
|
| + new api.GoogleLongrunningCancelOperationRequest.fromJson(o.toJson());
|
| checkGoogleLongrunningCancelOperationRequest(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GoogleLongrunningListOperationsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGoogleLongrunningListOperationsResponse();
|
| - var od = new api.GoogleLongrunningListOperationsResponse.fromJson(o.toJson());
|
| + var od =
|
| + new api.GoogleLongrunningListOperationsResponse.fromJson(o.toJson());
|
| checkGoogleLongrunningListOperationsResponse(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GoogleLongrunningOperation", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGoogleLongrunningOperation();
|
| @@ -1603,61 +1683,60 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1BigQueryOptions", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1BigQueryOptions();
|
| - var od = new api.GooglePrivacyDlpV2beta1BigQueryOptions.fromJson(o.toJson());
|
| + var od =
|
| + new api.GooglePrivacyDlpV2beta1BigQueryOptions.fromJson(o.toJson());
|
| checkGooglePrivacyDlpV2beta1BigQueryOptions(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1BigQueryTable", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1BigQueryTable();
|
| - var od = new api.GooglePrivacyDlpV2beta1BigQueryTable.fromJson(o.toJson());
|
| + var od =
|
| + new api.GooglePrivacyDlpV2beta1BigQueryTable.fromJson(o.toJson());
|
| checkGooglePrivacyDlpV2beta1BigQueryTable(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1CategoryDescription", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1CategoryDescription();
|
| - var od = new api.GooglePrivacyDlpV2beta1CategoryDescription.fromJson(o.toJson());
|
| + var od = new api.GooglePrivacyDlpV2beta1CategoryDescription.fromJson(
|
| + o.toJson());
|
| checkGooglePrivacyDlpV2beta1CategoryDescription(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1CloudStorageKey", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1CloudStorageKey();
|
| - var od = new api.GooglePrivacyDlpV2beta1CloudStorageKey.fromJson(o.toJson());
|
| + var od =
|
| + new api.GooglePrivacyDlpV2beta1CloudStorageKey.fromJson(o.toJson());
|
| checkGooglePrivacyDlpV2beta1CloudStorageKey(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1CloudStorageOptions", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1CloudStorageOptions();
|
| - var od = new api.GooglePrivacyDlpV2beta1CloudStorageOptions.fromJson(o.toJson());
|
| + var od = new api.GooglePrivacyDlpV2beta1CloudStorageOptions.fromJson(
|
| + o.toJson());
|
| checkGooglePrivacyDlpV2beta1CloudStorageOptions(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1CloudStoragePath", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1CloudStoragePath();
|
| - var od = new api.GooglePrivacyDlpV2beta1CloudStoragePath.fromJson(o.toJson());
|
| + var od =
|
| + new api.GooglePrivacyDlpV2beta1CloudStoragePath.fromJson(o.toJson());
|
| checkGooglePrivacyDlpV2beta1CloudStoragePath(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1Color", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1Color();
|
| @@ -1666,7 +1745,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1ContentItem", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1ContentItem();
|
| @@ -1675,16 +1753,17 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| - unittest.group("obj-schema-GooglePrivacyDlpV2beta1CreateInspectOperationRequest", () {
|
| + unittest.group(
|
| + "obj-schema-GooglePrivacyDlpV2beta1CreateInspectOperationRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1CreateInspectOperationRequest();
|
| - var od = new api.GooglePrivacyDlpV2beta1CreateInspectOperationRequest.fromJson(o.toJson());
|
| + var od =
|
| + new api.GooglePrivacyDlpV2beta1CreateInspectOperationRequest.fromJson(
|
| + o.toJson());
|
| checkGooglePrivacyDlpV2beta1CreateInspectOperationRequest(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1DatastoreKey", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1DatastoreKey();
|
| @@ -1693,16 +1772,15 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1DatastoreOptions", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1DatastoreOptions();
|
| - var od = new api.GooglePrivacyDlpV2beta1DatastoreOptions.fromJson(o.toJson());
|
| + var od =
|
| + new api.GooglePrivacyDlpV2beta1DatastoreOptions.fromJson(o.toJson());
|
| checkGooglePrivacyDlpV2beta1DatastoreOptions(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1FieldId", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1FieldId();
|
| @@ -1711,7 +1789,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1FileSet", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1FileSet();
|
| @@ -1720,7 +1797,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1Finding", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1Finding();
|
| @@ -1729,25 +1805,24 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1ImageLocation", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1ImageLocation();
|
| - var od = new api.GooglePrivacyDlpV2beta1ImageLocation.fromJson(o.toJson());
|
| + var od =
|
| + new api.GooglePrivacyDlpV2beta1ImageLocation.fromJson(o.toJson());
|
| checkGooglePrivacyDlpV2beta1ImageLocation(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1ImageRedactionConfig", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1ImageRedactionConfig();
|
| - var od = new api.GooglePrivacyDlpV2beta1ImageRedactionConfig.fromJson(o.toJson());
|
| + var od = new api.GooglePrivacyDlpV2beta1ImageRedactionConfig.fromJson(
|
| + o.toJson());
|
| checkGooglePrivacyDlpV2beta1ImageRedactionConfig(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1InfoType", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1InfoType();
|
| @@ -1756,88 +1831,90 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1InfoTypeDescription", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1InfoTypeDescription();
|
| - var od = new api.GooglePrivacyDlpV2beta1InfoTypeDescription.fromJson(o.toJson());
|
| + var od = new api.GooglePrivacyDlpV2beta1InfoTypeDescription.fromJson(
|
| + o.toJson());
|
| checkGooglePrivacyDlpV2beta1InfoTypeDescription(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1InfoTypeLimit", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1InfoTypeLimit();
|
| - var od = new api.GooglePrivacyDlpV2beta1InfoTypeLimit.fromJson(o.toJson());
|
| + var od =
|
| + new api.GooglePrivacyDlpV2beta1InfoTypeLimit.fromJson(o.toJson());
|
| checkGooglePrivacyDlpV2beta1InfoTypeLimit(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1InfoTypeStatistics", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1InfoTypeStatistics();
|
| - var od = new api.GooglePrivacyDlpV2beta1InfoTypeStatistics.fromJson(o.toJson());
|
| + var od = new api.GooglePrivacyDlpV2beta1InfoTypeStatistics.fromJson(
|
| + o.toJson());
|
| checkGooglePrivacyDlpV2beta1InfoTypeStatistics(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectConfig", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1InspectConfig();
|
| - var od = new api.GooglePrivacyDlpV2beta1InspectConfig.fromJson(o.toJson());
|
| + var od =
|
| + new api.GooglePrivacyDlpV2beta1InspectConfig.fromJson(o.toJson());
|
| checkGooglePrivacyDlpV2beta1InspectConfig(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectContentRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1InspectContentRequest();
|
| - var od = new api.GooglePrivacyDlpV2beta1InspectContentRequest.fromJson(o.toJson());
|
| + var od = new api.GooglePrivacyDlpV2beta1InspectContentRequest.fromJson(
|
| + o.toJson());
|
| checkGooglePrivacyDlpV2beta1InspectContentRequest(od);
|
| });
|
| });
|
|
|
| -
|
| - unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectContentResponse", () {
|
| + unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectContentResponse",
|
| + () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1InspectContentResponse();
|
| - var od = new api.GooglePrivacyDlpV2beta1InspectContentResponse.fromJson(o.toJson());
|
| + var od = new api.GooglePrivacyDlpV2beta1InspectContentResponse.fromJson(
|
| + o.toJson());
|
| checkGooglePrivacyDlpV2beta1InspectContentResponse(od);
|
| });
|
| });
|
|
|
| -
|
| - unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectOperationMetadata", () {
|
| + unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectOperationMetadata",
|
| + () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1InspectOperationMetadata();
|
| - var od = new api.GooglePrivacyDlpV2beta1InspectOperationMetadata.fromJson(o.toJson());
|
| + var od = new api.GooglePrivacyDlpV2beta1InspectOperationMetadata.fromJson(
|
| + o.toJson());
|
| checkGooglePrivacyDlpV2beta1InspectOperationMetadata(od);
|
| });
|
| });
|
|
|
| -
|
| - unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectOperationResult", () {
|
| + unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectOperationResult",
|
| + () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1InspectOperationResult();
|
| - var od = new api.GooglePrivacyDlpV2beta1InspectOperationResult.fromJson(o.toJson());
|
| + var od = new api.GooglePrivacyDlpV2beta1InspectOperationResult.fromJson(
|
| + o.toJson());
|
| checkGooglePrivacyDlpV2beta1InspectOperationResult(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1InspectResult", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1InspectResult();
|
| - var od = new api.GooglePrivacyDlpV2beta1InspectResult.fromJson(o.toJson());
|
| + var od =
|
| + new api.GooglePrivacyDlpV2beta1InspectResult.fromJson(o.toJson());
|
| checkGooglePrivacyDlpV2beta1InspectResult(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1Key", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1Key();
|
| @@ -1846,43 +1923,46 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1KindExpression", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1KindExpression();
|
| - var od = new api.GooglePrivacyDlpV2beta1KindExpression.fromJson(o.toJson());
|
| + var od =
|
| + new api.GooglePrivacyDlpV2beta1KindExpression.fromJson(o.toJson());
|
| checkGooglePrivacyDlpV2beta1KindExpression(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1ListInfoTypesResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1ListInfoTypesResponse();
|
| - var od = new api.GooglePrivacyDlpV2beta1ListInfoTypesResponse.fromJson(o.toJson());
|
| + var od = new api.GooglePrivacyDlpV2beta1ListInfoTypesResponse.fromJson(
|
| + o.toJson());
|
| checkGooglePrivacyDlpV2beta1ListInfoTypesResponse(od);
|
| });
|
| });
|
|
|
| -
|
| - unittest.group("obj-schema-GooglePrivacyDlpV2beta1ListInspectFindingsResponse", () {
|
| + unittest.group(
|
| + "obj-schema-GooglePrivacyDlpV2beta1ListInspectFindingsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1ListInspectFindingsResponse();
|
| - var od = new api.GooglePrivacyDlpV2beta1ListInspectFindingsResponse.fromJson(o.toJson());
|
| + var od =
|
| + new api.GooglePrivacyDlpV2beta1ListInspectFindingsResponse.fromJson(
|
| + o.toJson());
|
| checkGooglePrivacyDlpV2beta1ListInspectFindingsResponse(od);
|
| });
|
| });
|
|
|
| -
|
| - unittest.group("obj-schema-GooglePrivacyDlpV2beta1ListRootCategoriesResponse", () {
|
| + unittest.group("obj-schema-GooglePrivacyDlpV2beta1ListRootCategoriesResponse",
|
| + () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1ListRootCategoriesResponse();
|
| - var od = new api.GooglePrivacyDlpV2beta1ListRootCategoriesResponse.fromJson(o.toJson());
|
| + var od =
|
| + new api.GooglePrivacyDlpV2beta1ListRootCategoriesResponse.fromJson(
|
| + o.toJson());
|
| checkGooglePrivacyDlpV2beta1ListRootCategoriesResponse(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1Location", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1Location();
|
| @@ -1891,25 +1971,24 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1OperationConfig", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1OperationConfig();
|
| - var od = new api.GooglePrivacyDlpV2beta1OperationConfig.fromJson(o.toJson());
|
| + var od =
|
| + new api.GooglePrivacyDlpV2beta1OperationConfig.fromJson(o.toJson());
|
| checkGooglePrivacyDlpV2beta1OperationConfig(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1OutputStorageConfig", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1OutputStorageConfig();
|
| - var od = new api.GooglePrivacyDlpV2beta1OutputStorageConfig.fromJson(o.toJson());
|
| + var od = new api.GooglePrivacyDlpV2beta1OutputStorageConfig.fromJson(
|
| + o.toJson());
|
| checkGooglePrivacyDlpV2beta1OutputStorageConfig(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1PartitionId", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1PartitionId();
|
| @@ -1918,7 +1997,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1PathElement", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1PathElement();
|
| @@ -1927,7 +2005,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1Projection", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1Projection();
|
| @@ -1936,16 +2013,15 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1PropertyReference", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1PropertyReference();
|
| - var od = new api.GooglePrivacyDlpV2beta1PropertyReference.fromJson(o.toJson());
|
| + var od =
|
| + new api.GooglePrivacyDlpV2beta1PropertyReference.fromJson(o.toJson());
|
| checkGooglePrivacyDlpV2beta1PropertyReference(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1Range", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1Range();
|
| @@ -1954,7 +2030,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1RecordKey", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1RecordKey();
|
| @@ -1963,34 +2038,33 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1RedactContentRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1RedactContentRequest();
|
| - var od = new api.GooglePrivacyDlpV2beta1RedactContentRequest.fromJson(o.toJson());
|
| + var od = new api.GooglePrivacyDlpV2beta1RedactContentRequest.fromJson(
|
| + o.toJson());
|
| checkGooglePrivacyDlpV2beta1RedactContentRequest(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1RedactContentResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1RedactContentResponse();
|
| - var od = new api.GooglePrivacyDlpV2beta1RedactContentResponse.fromJson(o.toJson());
|
| + var od = new api.GooglePrivacyDlpV2beta1RedactContentResponse.fromJson(
|
| + o.toJson());
|
| checkGooglePrivacyDlpV2beta1RedactContentResponse(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1ReplaceConfig", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1ReplaceConfig();
|
| - var od = new api.GooglePrivacyDlpV2beta1ReplaceConfig.fromJson(o.toJson());
|
| + var od =
|
| + new api.GooglePrivacyDlpV2beta1ReplaceConfig.fromJson(o.toJson());
|
| checkGooglePrivacyDlpV2beta1ReplaceConfig(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1Row", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1Row();
|
| @@ -1999,16 +2073,15 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1StorageConfig", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1StorageConfig();
|
| - var od = new api.GooglePrivacyDlpV2beta1StorageConfig.fromJson(o.toJson());
|
| + var od =
|
| + new api.GooglePrivacyDlpV2beta1StorageConfig.fromJson(o.toJson());
|
| checkGooglePrivacyDlpV2beta1StorageConfig(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1Table", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1Table();
|
| @@ -2017,16 +2090,15 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1TableLocation", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1TableLocation();
|
| - var od = new api.GooglePrivacyDlpV2beta1TableLocation.fromJson(o.toJson());
|
| + var od =
|
| + new api.GooglePrivacyDlpV2beta1TableLocation.fromJson(o.toJson());
|
| checkGooglePrivacyDlpV2beta1TableLocation(od);
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GooglePrivacyDlpV2beta1Value", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGooglePrivacyDlpV2beta1Value();
|
| @@ -2035,7 +2107,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GoogleProtobufEmpty", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGoogleProtobufEmpty();
|
| @@ -2044,7 +2115,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GoogleRpcStatus", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGoogleRpcStatus();
|
| @@ -2053,7 +2123,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GoogleTypeDate", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGoogleTypeDate();
|
| @@ -2062,7 +2131,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GoogleTypeTimeOfDay", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGoogleTypeTimeOfDay();
|
| @@ -2071,24 +2139,25 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("resource-ContentResourceApi", () {
|
| unittest.test("method--inspect", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.ContentResourceApi res = new api.DlpApi(mock).content;
|
| var arg_request = buildGooglePrivacyDlpV2beta1InspectContentRequest();
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| - var obj = new api.GooglePrivacyDlpV2beta1InspectContentRequest.fromJson(json);
|
| + var obj =
|
| + new api.GooglePrivacyDlpV2beta1InspectContentRequest.fromJson(json);
|
| checkGooglePrivacyDlpV2beta1InspectContentRequest(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.equals("v2beta1/content:inspect"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 23),
|
| + unittest.equals("v2beta1/content:inspect"));
|
| pathOffset += 23;
|
|
|
| var query = (req.url).query;
|
| @@ -2101,41 +2170,46 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildGooglePrivacyDlpV2beta1InspectContentResponse());
|
| + var resp = convert.JSON
|
| + .encode(buildGooglePrivacyDlpV2beta1InspectContentResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.inspect(arg_request).then(unittest.expectAsync1(((api.GooglePrivacyDlpV2beta1InspectContentResponse response) {
|
| + res.inspect(arg_request).then(unittest.expectAsync1(
|
| + ((api.GooglePrivacyDlpV2beta1InspectContentResponse response) {
|
| checkGooglePrivacyDlpV2beta1InspectContentResponse(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--redact", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.ContentResourceApi res = new api.DlpApi(mock).content;
|
| var arg_request = buildGooglePrivacyDlpV2beta1RedactContentRequest();
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| - var obj = new api.GooglePrivacyDlpV2beta1RedactContentRequest.fromJson(json);
|
| + var obj =
|
| + new api.GooglePrivacyDlpV2beta1RedactContentRequest.fromJson(json);
|
| checkGooglePrivacyDlpV2beta1RedactContentRequest(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("v2beta1/content:redact"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 22),
|
| + unittest.equals("v2beta1/content:redact"));
|
| pathOffset += 22;
|
|
|
| var query = (req.url).query;
|
| @@ -2148,46 +2222,50 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildGooglePrivacyDlpV2beta1RedactContentResponse());
|
| + var resp = convert.JSON
|
| + .encode(buildGooglePrivacyDlpV2beta1RedactContentResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.redact(arg_request).then(unittest.expectAsync1(((api.GooglePrivacyDlpV2beta1RedactContentResponse response) {
|
| + res.redact(arg_request).then(unittest.expectAsync1(
|
| + ((api.GooglePrivacyDlpV2beta1RedactContentResponse response) {
|
| checkGooglePrivacyDlpV2beta1RedactContentResponse(response);
|
| })));
|
| });
|
| -
|
| });
|
|
|
| -
|
| unittest.group("resource-InspectOperationsResourceApi", () {
|
| unittest.test("method--cancel", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operations;
|
| + api.InspectOperationsResourceApi res =
|
| + new api.DlpApi(mock).inspect.operations;
|
| var arg_request = buildGoogleLongrunningCancelOperationRequest();
|
| var arg_name = "foo";
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| - var obj = new api.GoogleLongrunningCancelOperationRequest.fromJson(json);
|
| + var obj =
|
| + new api.GoogleLongrunningCancelOperationRequest.fromJson(json);
|
| checkGoogleLongrunningCancelOperationRequest(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v2beta1/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v2beta1/"));
|
| pathOffset += 8;
|
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
|
|
|
| @@ -2201,41 +2279,49 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildGoogleProtobufEmpty());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.cancel(arg_request, arg_name).then(unittest.expectAsync1(((api.GoogleProtobufEmpty response) {
|
| + res
|
| + .cancel(arg_request, arg_name)
|
| + .then(unittest.expectAsync1(((api.GoogleProtobufEmpty response) {
|
| checkGoogleProtobufEmpty(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--create", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operations;
|
| - var arg_request = buildGooglePrivacyDlpV2beta1CreateInspectOperationRequest();
|
| + api.InspectOperationsResourceApi res =
|
| + new api.DlpApi(mock).inspect.operations;
|
| + var arg_request =
|
| + buildGooglePrivacyDlpV2beta1CreateInspectOperationRequest();
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| - var obj = new api.GooglePrivacyDlpV2beta1CreateInspectOperationRequest.fromJson(json);
|
| + var obj = new api
|
| + .GooglePrivacyDlpV2beta1CreateInspectOperationRequest.fromJson(
|
| + json);
|
| checkGooglePrivacyDlpV2beta1CreateInspectOperationRequest(obj);
|
|
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.equals("v2beta1/inspect/operations"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 26),
|
| + unittest.equals("v2beta1/inspect/operations"));
|
| pathOffset += 26;
|
|
|
| var query = (req.url).query;
|
| @@ -2248,38 +2334,42 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildGoogleLongrunningOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.create(arg_request).then(unittest.expectAsync1(((api.GoogleLongrunningOperation response) {
|
| + res.create(arg_request).then(
|
| + unittest.expectAsync1(((api.GoogleLongrunningOperation response) {
|
| checkGoogleLongrunningOperation(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--delete", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operations;
|
| + api.InspectOperationsResourceApi res =
|
| + new api.DlpApi(mock).inspect.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("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v2beta1/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v2beta1/"));
|
| pathOffset += 8;
|
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
|
|
|
| @@ -2293,38 +2383,43 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildGoogleProtobufEmpty());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_name).then(unittest.expectAsync1(((api.GoogleProtobufEmpty response) {
|
| + res
|
| + .delete(arg_name)
|
| + .then(unittest.expectAsync1(((api.GoogleProtobufEmpty response) {
|
| checkGoogleProtobufEmpty(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--get", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operations;
|
| + api.InspectOperationsResourceApi res =
|
| + new api.DlpApi(mock).inspect.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("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v2beta1/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v2beta1/"));
|
| pathOffset += 8;
|
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
|
|
|
| @@ -2338,29 +2433,31 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildGoogleLongrunningOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_name).then(unittest.expectAsync1(((api.GoogleLongrunningOperation response) {
|
| + res.get(arg_name).then(
|
| + unittest.expectAsync1(((api.GoogleLongrunningOperation response) {
|
| checkGoogleLongrunningOperation(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--list", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operations;
|
| + api.InspectOperationsResourceApi res =
|
| + new api.DlpApi(mock).inspect.operations;
|
| var arg_name = "foo";
|
| var arg_filter = "foo";
|
| var arg_pageToken = "foo";
|
| @@ -2370,9 +2467,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v2beta1/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v2beta1/"));
|
| pathOffset += 8;
|
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
|
|
|
| @@ -2386,36 +2485,44 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + 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["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",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildGoogleLongrunningListOperationsResponse());
|
| + 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,
|
| + filter: arg_filter,
|
| + pageToken: arg_pageToken,
|
| + pageSize: arg_pageSize)
|
| + .then(unittest.expectAsync1(
|
| + ((api.GoogleLongrunningListOperationsResponse response) {
|
| checkGoogleLongrunningListOperationsResponse(response);
|
| })));
|
| });
|
| -
|
| });
|
|
|
| -
|
| unittest.group("resource-InspectResultsFindingsResourceApi", () {
|
| unittest.test("method--list", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.InspectResultsFindingsResourceApi res = new api.DlpApi(mock).inspect.results.findings;
|
| + api.InspectResultsFindingsResourceApi res =
|
| + new api.DlpApi(mock).inspect.results.findings;
|
| var arg_name = "foo";
|
| var arg_pageToken = "foo";
|
| var arg_pageSize = 42;
|
| @@ -2425,9 +2532,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v2beta1/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v2beta1/"));
|
| pathOffset += 8;
|
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
|
|
|
| @@ -2441,34 +2550,261 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + 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));
|
| + 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",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildGooglePrivacyDlpV2beta1ListInspectFindingsResponse());
|
| + var resp = convert.JSON
|
| + .encode(buildGooglePrivacyDlpV2beta1ListInspectFindingsResponse());
|
| 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.GooglePrivacyDlpV2beta1ListInspectFindingsResponse response) {
|
| + res
|
| + .list(arg_name,
|
| + pageToken: arg_pageToken,
|
| + pageSize: arg_pageSize,
|
| + filter: arg_filter)
|
| + .then(unittest.expectAsync1(
|
| + ((api.GooglePrivacyDlpV2beta1ListInspectFindingsResponse
|
| + response) {
|
| checkGooglePrivacyDlpV2beta1ListInspectFindingsResponse(response);
|
| })));
|
| });
|
| -
|
| });
|
|
|
| + unittest.group("resource-RiskAnalysisOperationsResourceApi", () {
|
| + unittest.test("method--cancel", () {
|
| + var mock = new HttpServerMock();
|
| + api.RiskAnalysisOperationsResourceApi res =
|
| + new api.DlpApi(mock).riskAnalysis.operations;
|
| + var arg_request = buildGoogleLongrunningCancelOperationRequest();
|
| + var arg_name = "foo";
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| + var obj =
|
| + new api.GoogleLongrunningCancelOperationRequest.fromJson(json);
|
| + checkGoogleLongrunningCancelOperationRequest(obj);
|
| +
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 8),
|
| + unittest.equals("v2beta1/"));
|
| + pathOffset += 8;
|
| + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| +
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| + var h = {
|
| + "content-type": "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildGoogleProtobufEmpty());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res
|
| + .cancel(arg_request, arg_name)
|
| + .then(unittest.expectAsync1(((api.GoogleProtobufEmpty response) {
|
| + checkGoogleProtobufEmpty(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--delete", () {
|
| + var mock = new HttpServerMock();
|
| + api.RiskAnalysisOperationsResourceApi res =
|
| + new api.DlpApi(mock).riskAnalysis.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("v2beta1/"));
|
| + pathOffset += 8;
|
| + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| +
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| + var h = {
|
| + "content-type": "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildGoogleProtobufEmpty());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res
|
| + .delete(arg_name)
|
| + .then(unittest.expectAsync1(((api.GoogleProtobufEmpty response) {
|
| + checkGoogleProtobufEmpty(response);
|
| + })));
|
| + });
|
| +
|
| + unittest.test("method--get", () {
|
| + var mock = new HttpServerMock();
|
| + api.RiskAnalysisOperationsResourceApi res =
|
| + new api.DlpApi(mock).riskAnalysis.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("v2beta1/"));
|
| + pathOffset += 8;
|
| + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| +
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| +
|
| + var h = {
|
| + "content-type": "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildGoogleLongrunningOperation());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.get(arg_name).then(
|
| + unittest.expectAsync1(((api.GoogleLongrunningOperation response) {
|
| + checkGoogleLongrunningOperation(response);
|
| + })));
|
| + });
|
|
|
| - unittest.group("resource-RootCategoriesResourceApi", () {
|
| unittest.test("method--list", () {
|
| + var mock = new HttpServerMock();
|
| + api.RiskAnalysisOperationsResourceApi res =
|
| + new api.DlpApi(mock).riskAnalysis.operations;
|
| + var arg_name = "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 + 8),
|
| + unittest.equals("v2beta1/"));
|
| + pathOffset += 8;
|
| + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
|
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| + 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(buildGoogleLongrunningListOperationsResponse());
|
| + 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.GoogleLongrunningListOperationsResponse response) {
|
| + checkGoogleLongrunningListOperationsResponse(response);
|
| + })));
|
| + });
|
| + });
|
| +
|
| + unittest.group("resource-RootCategoriesResourceApi", () {
|
| + unittest.test("method--list", () {
|
| var mock = new HttpServerMock();
|
| api.RootCategoriesResourceApi res = new api.DlpApi(mock).rootCategories;
|
| var arg_languageCode = "foo";
|
| @@ -2477,9 +2813,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("v2beta1/rootCategories"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 22),
|
| + unittest.equals("v2beta1/rootCategories"));
|
| pathOffset += 22;
|
|
|
| var query = (req.url).query;
|
| @@ -2492,34 +2830,36 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["languageCode"].first, unittest.equals(arg_languageCode));
|
| -
|
| + unittest.expect(
|
| + queryMap["languageCode"].first, unittest.equals(arg_languageCode));
|
|
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildGooglePrivacyDlpV2beta1ListRootCategoriesResponse());
|
| + var resp = convert.JSON
|
| + .encode(buildGooglePrivacyDlpV2beta1ListRootCategoriesResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(languageCode: arg_languageCode).then(unittest.expectAsync1(((api.GooglePrivacyDlpV2beta1ListRootCategoriesResponse response) {
|
| + res.list(languageCode: arg_languageCode).then(unittest.expectAsync1(
|
| + ((api.GooglePrivacyDlpV2beta1ListRootCategoriesResponse response) {
|
| checkGooglePrivacyDlpV2beta1ListRootCategoriesResponse(response);
|
| })));
|
| });
|
| -
|
| });
|
|
|
| -
|
| unittest.group("resource-RootCategoriesInfoTypesResourceApi", () {
|
| unittest.test("method--list", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.RootCategoriesInfoTypesResourceApi res = new api.DlpApi(mock).rootCategories.infoTypes;
|
| + api.RootCategoriesInfoTypesResourceApi res =
|
| + new api.DlpApi(mock).rootCategories.infoTypes;
|
| var arg_category = "foo";
|
| var arg_languageCode = "foo";
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| @@ -2527,9 +2867,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.equals("v2beta1/rootCategories/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 23),
|
| + unittest.equals("v2beta1/rootCategories/"));
|
| pathOffset += 23;
|
| // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
|
|
|
| @@ -2543,28 +2885,29 @@ main() {
|
| if (n == null) return null;
|
| throw new core.ArgumentError("Invalid boolean: $n");
|
| }
|
| +
|
| if (query.length > 0) {
|
| for (var part in query.split("&")) {
|
| var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["languageCode"].first, unittest.equals(arg_languageCode));
|
| -
|
| + unittest.expect(
|
| + queryMap["languageCode"].first, unittest.equals(arg_languageCode));
|
|
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| - var resp = convert.JSON.encode(buildGooglePrivacyDlpV2beta1ListInfoTypesResponse());
|
| + var resp = convert.JSON
|
| + .encode(buildGooglePrivacyDlpV2beta1ListInfoTypesResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_category, languageCode: arg_languageCode).then(unittest.expectAsync1(((api.GooglePrivacyDlpV2beta1ListInfoTypesResponse response) {
|
| + res.list(arg_category, languageCode: arg_languageCode).then(unittest
|
| + .expectAsync1(
|
| + ((api.GooglePrivacyDlpV2beta1ListInfoTypesResponse response) {
|
| checkGooglePrivacyDlpV2beta1ListInfoTypesResponse(response);
|
| })));
|
| });
|
| -
|
| });
|
| -
|
| -
|
| }
|
| -
|
|
|