| Index: generated/googleapis/test/storagetransfer/v1_test.dart
|
| diff --git a/generated/googleapis/test/storagetransfer/v1_test.dart b/generated/googleapis/test/storagetransfer/v1_test.dart
|
| index 57c9d5dbcd36e23c3993f82df492d3fb483511f8..c43849867478297da941b193372317e11f2896c2 100644
|
| --- a/generated/googleapis/test/storagetransfer/v1_test.dart
|
| +++ b/generated/googleapis/test/storagetransfer/v1_test.dart
|
| @@ -133,14 +133,14 @@ checkEmpty(api.Empty o) {
|
| buildCounterEmpty--;
|
| }
|
|
|
| -buildUnnamed1258() {
|
| +buildUnnamed1253() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1258(core.List<core.String> o) {
|
| +checkUnnamed1253(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -151,7 +151,7 @@ buildErrorLogEntry() {
|
| var o = new api.ErrorLogEntry();
|
| buildCounterErrorLogEntry++;
|
| if (buildCounterErrorLogEntry < 3) {
|
| - o.errorDetails = buildUnnamed1258();
|
| + o.errorDetails = buildUnnamed1253();
|
| o.url = "foo";
|
| }
|
| buildCounterErrorLogEntry--;
|
| @@ -161,20 +161,20 @@ buildErrorLogEntry() {
|
| checkErrorLogEntry(api.ErrorLogEntry o) {
|
| buildCounterErrorLogEntry++;
|
| if (buildCounterErrorLogEntry < 3) {
|
| - checkUnnamed1258(o.errorDetails);
|
| + checkUnnamed1253(o.errorDetails);
|
| unittest.expect(o.url, unittest.equals('foo'));
|
| }
|
| buildCounterErrorLogEntry--;
|
| }
|
|
|
| -buildUnnamed1259() {
|
| +buildUnnamed1254() {
|
| var o = new core.List<api.ErrorLogEntry>();
|
| o.add(buildErrorLogEntry());
|
| o.add(buildErrorLogEntry());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1259(core.List<api.ErrorLogEntry> o) {
|
| +checkUnnamed1254(core.List<api.ErrorLogEntry> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkErrorLogEntry(o[0]);
|
| checkErrorLogEntry(o[1]);
|
| @@ -187,7 +187,7 @@ buildErrorSummary() {
|
| if (buildCounterErrorSummary < 3) {
|
| o.errorCode = "foo";
|
| o.errorCount = "foo";
|
| - o.errorLogEntries = buildUnnamed1259();
|
| + o.errorLogEntries = buildUnnamed1254();
|
| }
|
| buildCounterErrorSummary--;
|
| return o;
|
| @@ -198,7 +198,7 @@ checkErrorSummary(api.ErrorSummary o) {
|
| if (buildCounterErrorSummary < 3) {
|
| unittest.expect(o.errorCode, unittest.equals('foo'));
|
| unittest.expect(o.errorCount, unittest.equals('foo'));
|
| - checkUnnamed1259(o.errorLogEntries);
|
| + checkUnnamed1254(o.errorLogEntries);
|
| }
|
| buildCounterErrorSummary--;
|
| }
|
| @@ -260,14 +260,14 @@ checkHttpData(api.HttpData o) {
|
| buildCounterHttpData--;
|
| }
|
|
|
| -buildUnnamed1260() {
|
| +buildUnnamed1255() {
|
| var o = new core.List<api.Operation>();
|
| o.add(buildOperation());
|
| o.add(buildOperation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1260(core.List<api.Operation> o) {
|
| +checkUnnamed1255(core.List<api.Operation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperation(o[0]);
|
| checkOperation(o[1]);
|
| @@ -279,7 +279,7 @@ buildListOperationsResponse() {
|
| buildCounterListOperationsResponse++;
|
| if (buildCounterListOperationsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.operations = buildUnnamed1260();
|
| + o.operations = buildUnnamed1255();
|
| }
|
| buildCounterListOperationsResponse--;
|
| return o;
|
| @@ -289,19 +289,19 @@ checkListOperationsResponse(api.ListOperationsResponse o) {
|
| buildCounterListOperationsResponse++;
|
| if (buildCounterListOperationsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed1260(o.operations);
|
| + checkUnnamed1255(o.operations);
|
| }
|
| buildCounterListOperationsResponse--;
|
| }
|
|
|
| -buildUnnamed1261() {
|
| +buildUnnamed1256() {
|
| var o = new core.List<api.TransferJob>();
|
| o.add(buildTransferJob());
|
| o.add(buildTransferJob());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1261(core.List<api.TransferJob> o) {
|
| +checkUnnamed1256(core.List<api.TransferJob> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkTransferJob(o[0]);
|
| checkTransferJob(o[1]);
|
| @@ -313,7 +313,7 @@ buildListTransferJobsResponse() {
|
| buildCounterListTransferJobsResponse++;
|
| if (buildCounterListTransferJobsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.transferJobs = buildUnnamed1261();
|
| + o.transferJobs = buildUnnamed1256();
|
| }
|
| buildCounterListTransferJobsResponse--;
|
| return o;
|
| @@ -323,32 +323,32 @@ checkListTransferJobsResponse(api.ListTransferJobsResponse o) {
|
| buildCounterListTransferJobsResponse++;
|
| if (buildCounterListTransferJobsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed1261(o.transferJobs);
|
| + checkUnnamed1256(o.transferJobs);
|
| }
|
| buildCounterListTransferJobsResponse--;
|
| }
|
|
|
| -buildUnnamed1262() {
|
| +buildUnnamed1257() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1262(core.List<core.String> o) {
|
| +checkUnnamed1257(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1263() {
|
| +buildUnnamed1258() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1263(core.List<core.String> o) {
|
| +checkUnnamed1258(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -359,8 +359,8 @@ buildObjectConditions() {
|
| var o = new api.ObjectConditions();
|
| buildCounterObjectConditions++;
|
| if (buildCounterObjectConditions < 3) {
|
| - o.excludePrefixes = buildUnnamed1262();
|
| - o.includePrefixes = buildUnnamed1263();
|
| + o.excludePrefixes = buildUnnamed1257();
|
| + o.includePrefixes = buildUnnamed1258();
|
| o.maxTimeElapsedSinceLastModification = "foo";
|
| o.minTimeElapsedSinceLastModification = "foo";
|
| }
|
| @@ -371,35 +371,35 @@ buildObjectConditions() {
|
| checkObjectConditions(api.ObjectConditions o) {
|
| buildCounterObjectConditions++;
|
| if (buildCounterObjectConditions < 3) {
|
| - checkUnnamed1262(o.excludePrefixes);
|
| - checkUnnamed1263(o.includePrefixes);
|
| + checkUnnamed1257(o.excludePrefixes);
|
| + checkUnnamed1258(o.includePrefixes);
|
| unittest.expect(o.maxTimeElapsedSinceLastModification, unittest.equals('foo'));
|
| unittest.expect(o.minTimeElapsedSinceLastModification, unittest.equals('foo'));
|
| }
|
| buildCounterObjectConditions--;
|
| }
|
|
|
| -buildUnnamed1264() {
|
| +buildUnnamed1259() {
|
| var o = new core.Map<core.String, core.Object>();
|
| o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| return o;
|
| }
|
|
|
| -checkUnnamed1264(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1259(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'));
|
| }
|
|
|
| -buildUnnamed1265() {
|
| +buildUnnamed1260() {
|
| var o = new core.Map<core.String, core.Object>();
|
| o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| return o;
|
| }
|
|
|
| -checkUnnamed1265(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1260(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo'));
|
| var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo'));
|
| @@ -412,9 +412,9 @@ buildOperation() {
|
| if (buildCounterOperation < 3) {
|
| o.done = true;
|
| o.error = buildStatus();
|
| - o.metadata = buildUnnamed1264();
|
| + o.metadata = buildUnnamed1259();
|
| o.name = "foo";
|
| - o.response = buildUnnamed1265();
|
| + o.response = buildUnnamed1260();
|
| }
|
| buildCounterOperation--;
|
| return o;
|
| @@ -425,9 +425,9 @@ checkOperation(api.Operation o) {
|
| if (buildCounterOperation < 3) {
|
| unittest.expect(o.done, unittest.isTrue);
|
| checkStatus(o.error);
|
| - checkUnnamed1264(o.metadata);
|
| + checkUnnamed1259(o.metadata);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed1265(o.response);
|
| + checkUnnamed1260(o.response);
|
| }
|
| buildCounterOperation--;
|
| }
|
| @@ -489,30 +489,30 @@ checkSchedule(api.Schedule o) {
|
| buildCounterSchedule--;
|
| }
|
|
|
| -buildUnnamed1266() {
|
| +buildUnnamed1261() {
|
| var o = new core.Map<core.String, core.Object>();
|
| o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| return o;
|
| }
|
|
|
| -checkUnnamed1266(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1261(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo'));
|
| var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1267() {
|
| +buildUnnamed1262() {
|
| var o = new core.List<core.Map<core.String, core.Object>>();
|
| - o.add(buildUnnamed1266());
|
| - o.add(buildUnnamed1266());
|
| + o.add(buildUnnamed1261());
|
| + o.add(buildUnnamed1261());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1267(core.List<core.Map<core.String, core.Object>> o) {
|
| +checkUnnamed1262(core.List<core.Map<core.String, core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed1266(o[0]);
|
| - checkUnnamed1266(o[1]);
|
| + checkUnnamed1261(o[0]);
|
| + checkUnnamed1261(o[1]);
|
| }
|
|
|
| core.int buildCounterStatus = 0;
|
| @@ -521,7 +521,7 @@ buildStatus() {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| o.code = 42;
|
| - o.details = buildUnnamed1267();
|
| + o.details = buildUnnamed1262();
|
| o.message = "foo";
|
| }
|
| buildCounterStatus--;
|
| @@ -532,7 +532,7 @@ checkStatus(api.Status o) {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| unittest.expect(o.code, unittest.equals(42));
|
| - checkUnnamed1267(o.details);
|
| + checkUnnamed1262(o.details);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterStatus--;
|
| @@ -647,14 +647,14 @@ checkTransferJob(api.TransferJob o) {
|
| buildCounterTransferJob--;
|
| }
|
|
|
| -buildUnnamed1268() {
|
| +buildUnnamed1263() {
|
| var o = new core.List<api.ErrorSummary>();
|
| o.add(buildErrorSummary());
|
| o.add(buildErrorSummary());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1268(core.List<api.ErrorSummary> o) {
|
| +checkUnnamed1263(core.List<api.ErrorSummary> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkErrorSummary(o[0]);
|
| checkErrorSummary(o[1]);
|
| @@ -667,7 +667,7 @@ buildTransferOperation() {
|
| if (buildCounterTransferOperation < 3) {
|
| o.counters = buildTransferCounters();
|
| o.endTime = "foo";
|
| - o.errorBreakdowns = buildUnnamed1268();
|
| + o.errorBreakdowns = buildUnnamed1263();
|
| o.name = "foo";
|
| o.projectId = "foo";
|
| o.startTime = "foo";
|
| @@ -684,7 +684,7 @@ checkTransferOperation(api.TransferOperation o) {
|
| if (buildCounterTransferOperation < 3) {
|
| checkTransferCounters(o.counters);
|
| unittest.expect(o.endTime, unittest.equals('foo'));
|
| - checkUnnamed1268(o.errorBreakdowns);
|
| + checkUnnamed1263(o.errorBreakdowns);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.projectId, unittest.equals('foo'));
|
| unittest.expect(o.startTime, unittest.equals('foo'));
|
| @@ -1138,9 +1138,9 @@ main() {
|
|
|
| var mock = new HttpServerMock();
|
| api.TransferJobsResourceApi res = new api.StoragetransferApi(mock).transferJobs;
|
| - var arg_filter = "foo";
|
| - var arg_pageSize = 42;
|
| var arg_pageToken = "foo";
|
| + var arg_pageSize = 42;
|
| + var arg_filter = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1167,9 +1167,9 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
|
|
|
|
| var h = {
|
| @@ -1178,7 +1178,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListTransferJobsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(filter: arg_filter, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListTransferJobsResponse response) {
|
| + res.list(pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListTransferJobsResponse response) {
|
| checkListTransferJobsResponse(response);
|
| })));
|
| });
|
| @@ -1377,8 +1377,8 @@ main() {
|
| api.TransferOperationsResourceApi res = new api.StoragetransferApi(mock).transferOperations;
|
| var arg_name = "foo";
|
| var arg_filter = "foo";
|
| - var arg_pageSize = 42;
|
| var arg_pageToken = "foo";
|
| + var arg_pageSize = 42;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1407,8 +1407,8 @@ main() {
|
| }
|
| }
|
| unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
|
|
|
|
| var h = {
|
| @@ -1417,7 +1417,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListOperationsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_name, filter: arg_filter, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response) {
|
| + res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListOperationsResponse response) {
|
| checkListOperationsResponse(response);
|
| })));
|
| });
|
| @@ -1523,54 +1523,5 @@ main() {
|
| });
|
|
|
|
|
| - unittest.group("resource-V1ResourceApi", () {
|
| - unittest.test("method--getGoogleServiceAccount", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.V1ResourceApi res = new api.StoragetransferApi(mock).v1;
|
| - var arg_projectId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.equals("v1:getGoogleServiceAccount"));
|
| - pathOffset += 26;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| - unittest.expect(queryMap["projectId"].first, unittest.equals(arg_projectId));
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildGoogleServiceAccount());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.getGoogleServiceAccount(projectId: arg_projectId).then(unittest.expectAsync(((api.GoogleServiceAccount response) {
|
| - checkGoogleServiceAccount(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| }
|
|
|
|
|