| Index: generated/googleapis/test/logging/v2_test.dart
|
| diff --git a/generated/googleapis/test/logging/v2_test.dart b/generated/googleapis/test/logging/v2_test.dart
|
| index 0b588687fe26fabf2b4c1ffb28455a2199bc33d4..603c27c37a46745b9012891f8d6c7bc5c32f97e2 100644
|
| --- a/generated/googleapis/test/logging/v2_test.dart
|
| +++ b/generated/googleapis/test/logging/v2_test.dart
|
| @@ -78,6 +78,7 @@ buildHttpRequest() {
|
| o.cacheLookup = true;
|
| o.cacheValidatedWithOriginServer = true;
|
| o.latency = "foo";
|
| + o.protocol = "foo";
|
| o.referer = "foo";
|
| o.remoteIp = "foo";
|
| o.requestMethod = "foo";
|
| @@ -100,6 +101,7 @@ checkHttpRequest(api.HttpRequest o) {
|
| unittest.expect(o.cacheLookup, unittest.isTrue);
|
| unittest.expect(o.cacheValidatedWithOriginServer, unittest.isTrue);
|
| unittest.expect(o.latency, unittest.equals('foo'));
|
| + unittest.expect(o.protocol, unittest.equals('foo'));
|
| unittest.expect(o.referer, unittest.equals('foo'));
|
| unittest.expect(o.remoteIp, unittest.equals('foo'));
|
| unittest.expect(o.requestMethod, unittest.equals('foo'));
|
| @@ -136,27 +138,27 @@ checkLabelDescriptor(api.LabelDescriptor o) {
|
| buildCounterLabelDescriptor--;
|
| }
|
|
|
| -buildUnnamed250() {
|
| +buildUnnamed255() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed250(core.List<core.String> o) {
|
| +checkUnnamed255(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed251() {
|
| +buildUnnamed256() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed251(core.List<core.String> o) {
|
| +checkUnnamed256(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -171,8 +173,8 @@ buildListLogEntriesRequest() {
|
| o.orderBy = "foo";
|
| o.pageSize = 42;
|
| o.pageToken = "foo";
|
| - o.projectIds = buildUnnamed250();
|
| - o.resourceNames = buildUnnamed251();
|
| + o.projectIds = buildUnnamed255();
|
| + o.resourceNames = buildUnnamed256();
|
| }
|
| buildCounterListLogEntriesRequest--;
|
| return o;
|
| @@ -185,20 +187,20 @@ checkListLogEntriesRequest(api.ListLogEntriesRequest o) {
|
| unittest.expect(o.orderBy, unittest.equals('foo'));
|
| unittest.expect(o.pageSize, unittest.equals(42));
|
| unittest.expect(o.pageToken, unittest.equals('foo'));
|
| - checkUnnamed250(o.projectIds);
|
| - checkUnnamed251(o.resourceNames);
|
| + checkUnnamed255(o.projectIds);
|
| + checkUnnamed256(o.resourceNames);
|
| }
|
| buildCounterListLogEntriesRequest--;
|
| }
|
|
|
| -buildUnnamed252() {
|
| +buildUnnamed257() {
|
| var o = new core.List<api.LogEntry>();
|
| o.add(buildLogEntry());
|
| o.add(buildLogEntry());
|
| return o;
|
| }
|
|
|
| -checkUnnamed252(core.List<api.LogEntry> o) {
|
| +checkUnnamed257(core.List<api.LogEntry> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLogEntry(o[0]);
|
| checkLogEntry(o[1]);
|
| @@ -209,7 +211,7 @@ buildListLogEntriesResponse() {
|
| var o = new api.ListLogEntriesResponse();
|
| buildCounterListLogEntriesResponse++;
|
| if (buildCounterListLogEntriesResponse < 3) {
|
| - o.entries = buildUnnamed252();
|
| + o.entries = buildUnnamed257();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListLogEntriesResponse--;
|
| @@ -219,20 +221,20 @@ buildListLogEntriesResponse() {
|
| checkListLogEntriesResponse(api.ListLogEntriesResponse o) {
|
| buildCounterListLogEntriesResponse++;
|
| if (buildCounterListLogEntriesResponse < 3) {
|
| - checkUnnamed252(o.entries);
|
| + checkUnnamed257(o.entries);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListLogEntriesResponse--;
|
| }
|
|
|
| -buildUnnamed253() {
|
| +buildUnnamed258() {
|
| var o = new core.List<api.LogMetric>();
|
| o.add(buildLogMetric());
|
| o.add(buildLogMetric());
|
| return o;
|
| }
|
|
|
| -checkUnnamed253(core.List<api.LogMetric> o) {
|
| +checkUnnamed258(core.List<api.LogMetric> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLogMetric(o[0]);
|
| checkLogMetric(o[1]);
|
| @@ -243,7 +245,7 @@ buildListLogMetricsResponse() {
|
| var o = new api.ListLogMetricsResponse();
|
| buildCounterListLogMetricsResponse++;
|
| if (buildCounterListLogMetricsResponse < 3) {
|
| - o.metrics = buildUnnamed253();
|
| + o.metrics = buildUnnamed258();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListLogMetricsResponse--;
|
| @@ -253,20 +255,20 @@ buildListLogMetricsResponse() {
|
| checkListLogMetricsResponse(api.ListLogMetricsResponse o) {
|
| buildCounterListLogMetricsResponse++;
|
| if (buildCounterListLogMetricsResponse < 3) {
|
| - checkUnnamed253(o.metrics);
|
| + checkUnnamed258(o.metrics);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListLogMetricsResponse--;
|
| }
|
|
|
| -buildUnnamed254() {
|
| +buildUnnamed259() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed254(core.List<core.String> o) {
|
| +checkUnnamed259(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -277,7 +279,7 @@ buildListLogsResponse() {
|
| var o = new api.ListLogsResponse();
|
| buildCounterListLogsResponse++;
|
| if (buildCounterListLogsResponse < 3) {
|
| - o.logNames = buildUnnamed254();
|
| + o.logNames = buildUnnamed259();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListLogsResponse--;
|
| @@ -287,20 +289,20 @@ buildListLogsResponse() {
|
| checkListLogsResponse(api.ListLogsResponse o) {
|
| buildCounterListLogsResponse++;
|
| if (buildCounterListLogsResponse < 3) {
|
| - checkUnnamed254(o.logNames);
|
| + checkUnnamed259(o.logNames);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListLogsResponse--;
|
| }
|
|
|
| -buildUnnamed255() {
|
| +buildUnnamed260() {
|
| var o = new core.List<api.MonitoredResourceDescriptor>();
|
| o.add(buildMonitoredResourceDescriptor());
|
| o.add(buildMonitoredResourceDescriptor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed255(core.List<api.MonitoredResourceDescriptor> o) {
|
| +checkUnnamed260(core.List<api.MonitoredResourceDescriptor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMonitoredResourceDescriptor(o[0]);
|
| checkMonitoredResourceDescriptor(o[1]);
|
| @@ -312,7 +314,7 @@ buildListMonitoredResourceDescriptorsResponse() {
|
| buildCounterListMonitoredResourceDescriptorsResponse++;
|
| if (buildCounterListMonitoredResourceDescriptorsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.resourceDescriptors = buildUnnamed255();
|
| + o.resourceDescriptors = buildUnnamed260();
|
| }
|
| buildCounterListMonitoredResourceDescriptorsResponse--;
|
| return o;
|
| @@ -322,19 +324,19 @@ checkListMonitoredResourceDescriptorsResponse(api.ListMonitoredResourceDescripto
|
| buildCounterListMonitoredResourceDescriptorsResponse++;
|
| if (buildCounterListMonitoredResourceDescriptorsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed255(o.resourceDescriptors);
|
| + checkUnnamed260(o.resourceDescriptors);
|
| }
|
| buildCounterListMonitoredResourceDescriptorsResponse--;
|
| }
|
|
|
| -buildUnnamed256() {
|
| +buildUnnamed261() {
|
| var o = new core.List<api.LogSink>();
|
| o.add(buildLogSink());
|
| o.add(buildLogSink());
|
| return o;
|
| }
|
|
|
| -checkUnnamed256(core.List<api.LogSink> o) {
|
| +checkUnnamed261(core.List<api.LogSink> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLogSink(o[0]);
|
| checkLogSink(o[1]);
|
| @@ -346,7 +348,7 @@ buildListSinksResponse() {
|
| buildCounterListSinksResponse++;
|
| if (buildCounterListSinksResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.sinks = buildUnnamed256();
|
| + o.sinks = buildUnnamed261();
|
| }
|
| buildCounterListSinksResponse--;
|
| return o;
|
| @@ -356,45 +358,45 @@ checkListSinksResponse(api.ListSinksResponse o) {
|
| buildCounterListSinksResponse++;
|
| if (buildCounterListSinksResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed256(o.sinks);
|
| + checkUnnamed261(o.sinks);
|
| }
|
| buildCounterListSinksResponse--;
|
| }
|
|
|
| -buildUnnamed257() {
|
| +buildUnnamed262() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed257(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed262(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'));
|
| }
|
|
|
| -buildUnnamed258() {
|
| +buildUnnamed263() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed258(core.Map<core.String, core.String> o) {
|
| +checkUnnamed263(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed259() {
|
| +buildUnnamed264() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed259(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed264(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo'));
|
| var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo'));
|
| @@ -407,11 +409,11 @@ buildLogEntry() {
|
| if (buildCounterLogEntry < 3) {
|
| o.httpRequest = buildHttpRequest();
|
| o.insertId = "foo";
|
| - o.jsonPayload = buildUnnamed257();
|
| - o.labels = buildUnnamed258();
|
| + o.jsonPayload = buildUnnamed262();
|
| + o.labels = buildUnnamed263();
|
| o.logName = "foo";
|
| o.operation = buildLogEntryOperation();
|
| - o.protoPayload = buildUnnamed259();
|
| + o.protoPayload = buildUnnamed264();
|
| o.receiveTimestamp = "foo";
|
| o.resource = buildMonitoredResource();
|
| o.severity = "foo";
|
| @@ -429,11 +431,11 @@ checkLogEntry(api.LogEntry o) {
|
| if (buildCounterLogEntry < 3) {
|
| checkHttpRequest(o.httpRequest);
|
| unittest.expect(o.insertId, unittest.equals('foo'));
|
| - checkUnnamed257(o.jsonPayload);
|
| - checkUnnamed258(o.labels);
|
| + checkUnnamed262(o.jsonPayload);
|
| + checkUnnamed263(o.labels);
|
| unittest.expect(o.logName, unittest.equals('foo'));
|
| checkLogEntryOperation(o.operation);
|
| - checkUnnamed259(o.protoPayload);
|
| + checkUnnamed264(o.protoPayload);
|
| unittest.expect(o.receiveTimestamp, unittest.equals('foo'));
|
| checkMonitoredResource(o.resource);
|
| unittest.expect(o.severity, unittest.equals('foo'));
|
| @@ -576,14 +578,14 @@ checkLogSink(api.LogSink o) {
|
| buildCounterLogSink--;
|
| }
|
|
|
| -buildUnnamed260() {
|
| +buildUnnamed265() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed260(core.Map<core.String, core.String> o) {
|
| +checkUnnamed265(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| @@ -594,7 +596,7 @@ buildMonitoredResource() {
|
| var o = new api.MonitoredResource();
|
| buildCounterMonitoredResource++;
|
| if (buildCounterMonitoredResource < 3) {
|
| - o.labels = buildUnnamed260();
|
| + o.labels = buildUnnamed265();
|
| o.type = "foo";
|
| }
|
| buildCounterMonitoredResource--;
|
| @@ -604,20 +606,20 @@ buildMonitoredResource() {
|
| checkMonitoredResource(api.MonitoredResource o) {
|
| buildCounterMonitoredResource++;
|
| if (buildCounterMonitoredResource < 3) {
|
| - checkUnnamed260(o.labels);
|
| + checkUnnamed265(o.labels);
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| }
|
| buildCounterMonitoredResource--;
|
| }
|
|
|
| -buildUnnamed261() {
|
| +buildUnnamed266() {
|
| var o = new core.List<api.LabelDescriptor>();
|
| o.add(buildLabelDescriptor());
|
| o.add(buildLabelDescriptor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed261(core.List<api.LabelDescriptor> o) {
|
| +checkUnnamed266(core.List<api.LabelDescriptor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLabelDescriptor(o[0]);
|
| checkLabelDescriptor(o[1]);
|
| @@ -630,7 +632,7 @@ buildMonitoredResourceDescriptor() {
|
| if (buildCounterMonitoredResourceDescriptor < 3) {
|
| o.description = "foo";
|
| o.displayName = "foo";
|
| - o.labels = buildUnnamed261();
|
| + o.labels = buildUnnamed266();
|
| o.name = "foo";
|
| o.type = "foo";
|
| }
|
| @@ -643,34 +645,34 @@ checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) {
|
| if (buildCounterMonitoredResourceDescriptor < 3) {
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.displayName, unittest.equals('foo'));
|
| - checkUnnamed261(o.labels);
|
| + checkUnnamed266(o.labels);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| }
|
| buildCounterMonitoredResourceDescriptor--;
|
| }
|
|
|
| -buildUnnamed262() {
|
| +buildUnnamed267() {
|
| var o = new core.List<api.LogLine>();
|
| o.add(buildLogLine());
|
| o.add(buildLogLine());
|
| return o;
|
| }
|
|
|
| -checkUnnamed262(core.List<api.LogLine> o) {
|
| +checkUnnamed267(core.List<api.LogLine> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLogLine(o[0]);
|
| checkLogLine(o[1]);
|
| }
|
|
|
| -buildUnnamed263() {
|
| +buildUnnamed268() {
|
| var o = new core.List<api.SourceReference>();
|
| o.add(buildSourceReference());
|
| o.add(buildSourceReference());
|
| return o;
|
| }
|
|
|
| -checkUnnamed263(core.List<api.SourceReference> o) {
|
| +checkUnnamed268(core.List<api.SourceReference> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSourceReference(o[0]);
|
| checkSourceReference(o[1]);
|
| @@ -693,7 +695,7 @@ buildRequestLog() {
|
| o.instanceIndex = 42;
|
| o.ip = "foo";
|
| o.latency = "foo";
|
| - o.line = buildUnnamed262();
|
| + o.line = buildUnnamed267();
|
| o.megaCycles = "foo";
|
| o.method = "foo";
|
| o.moduleId = "foo";
|
| @@ -703,7 +705,7 @@ buildRequestLog() {
|
| o.requestId = "foo";
|
| o.resource = "foo";
|
| o.responseSize = "foo";
|
| - o.sourceReference = buildUnnamed263();
|
| + o.sourceReference = buildUnnamed268();
|
| o.startTime = "foo";
|
| o.status = 42;
|
| o.taskName = "foo";
|
| @@ -733,7 +735,7 @@ checkRequestLog(api.RequestLog o) {
|
| unittest.expect(o.instanceIndex, unittest.equals(42));
|
| unittest.expect(o.ip, unittest.equals('foo'));
|
| unittest.expect(o.latency, unittest.equals('foo'));
|
| - checkUnnamed262(o.line);
|
| + checkUnnamed267(o.line);
|
| unittest.expect(o.megaCycles, unittest.equals('foo'));
|
| unittest.expect(o.method, unittest.equals('foo'));
|
| unittest.expect(o.moduleId, unittest.equals('foo'));
|
| @@ -743,7 +745,7 @@ checkRequestLog(api.RequestLog o) {
|
| unittest.expect(o.requestId, unittest.equals('foo'));
|
| unittest.expect(o.resource, unittest.equals('foo'));
|
| unittest.expect(o.responseSize, unittest.equals('foo'));
|
| - checkUnnamed263(o.sourceReference);
|
| + checkUnnamed268(o.sourceReference);
|
| unittest.expect(o.startTime, unittest.equals('foo'));
|
| unittest.expect(o.status, unittest.equals(42));
|
| unittest.expect(o.taskName, unittest.equals('foo'));
|
| @@ -801,27 +803,27 @@ checkSourceReference(api.SourceReference o) {
|
| buildCounterSourceReference--;
|
| }
|
|
|
| -buildUnnamed264() {
|
| +buildUnnamed269() {
|
| var o = new core.List<api.LogEntry>();
|
| o.add(buildLogEntry());
|
| o.add(buildLogEntry());
|
| return o;
|
| }
|
|
|
| -checkUnnamed264(core.List<api.LogEntry> o) {
|
| +checkUnnamed269(core.List<api.LogEntry> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLogEntry(o[0]);
|
| checkLogEntry(o[1]);
|
| }
|
|
|
| -buildUnnamed265() {
|
| +buildUnnamed270() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed265(core.Map<core.String, core.String> o) {
|
| +checkUnnamed270(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| @@ -832,8 +834,8 @@ buildWriteLogEntriesRequest() {
|
| var o = new api.WriteLogEntriesRequest();
|
| buildCounterWriteLogEntriesRequest++;
|
| if (buildCounterWriteLogEntriesRequest < 3) {
|
| - o.entries = buildUnnamed264();
|
| - o.labels = buildUnnamed265();
|
| + o.entries = buildUnnamed269();
|
| + o.labels = buildUnnamed270();
|
| o.logName = "foo";
|
| o.partialSuccess = true;
|
| o.resource = buildMonitoredResource();
|
| @@ -845,8 +847,8 @@ buildWriteLogEntriesRequest() {
|
| checkWriteLogEntriesRequest(api.WriteLogEntriesRequest o) {
|
| buildCounterWriteLogEntriesRequest++;
|
| if (buildCounterWriteLogEntriesRequest < 3) {
|
| - checkUnnamed264(o.entries);
|
| - checkUnnamed265(o.labels);
|
| + checkUnnamed269(o.entries);
|
| + checkUnnamed270(o.labels);
|
| unittest.expect(o.logName, unittest.equals('foo'));
|
| unittest.expect(o.partialSuccess, unittest.isTrue);
|
| checkMonitoredResource(o.resource);
|
| @@ -1122,8 +1124,8 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.BillingAccountsLogsResourceApi res = new api.LoggingApi(mock).billingAccounts.logs;
|
| var arg_parent = "foo";
|
| - var arg_pageSize = 42;
|
| var arg_pageToken = "foo";
|
| + var arg_pageSize = 42;
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1151,8 +1153,8 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
|
|
|
|
| var h = {
|
| @@ -1161,7 +1163,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListLogsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListLogsResponse response) {
|
| + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListLogsResponse response) {
|
| checkListLogsResponse(response);
|
| })));
|
| });
|
| @@ -1316,8 +1318,8 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.BillingAccountsSinksResourceApi res = new api.LoggingApi(mock).billingAccounts.sinks;
|
| var arg_parent = "foo";
|
| - var arg_pageSize = 42;
|
| var arg_pageToken = "foo";
|
| + var arg_pageSize = 42;
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1345,8 +1347,8 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
|
|
|
|
| var h = {
|
| @@ -1355,11 +1357,62 @@ main() {
|
| var resp = convert.JSON.encode(buildListSinksResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListSinksResponse response) {
|
| + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListSinksResponse response) {
|
| checkListSinksResponse(response);
|
| })));
|
| });
|
|
|
| + unittest.test("method--patch", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.BillingAccountsSinksResourceApi res = new api.LoggingApi(mock).billingAccounts.sinks;
|
| + var arg_request = buildLogSink();
|
| + var arg_sinkName = "foo";
|
| + var arg_uniqueWriterIdentity = true;
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| + var obj = new api.LogSink.fromJson(json);
|
| + checkLogSink(obj);
|
| +
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/"));
|
| + pathOffset += 3;
|
| + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| + unittest.expect(queryMap["uniqueWriterIdentity"].first, unittest.equals("$arg_uniqueWriterIdentity"));
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildLogSink());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.patch(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync1(((api.LogSink response) {
|
| + checkLogSink(response);
|
| + })));
|
| + });
|
| +
|
| unittest.test("method--update", () {
|
|
|
| var mock = new HttpServerMock();
|
| @@ -1757,8 +1810,8 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.FoldersSinksResourceApi res = new api.LoggingApi(mock).folders.sinks;
|
| var arg_parent = "foo";
|
| - var arg_pageSize = 42;
|
| var arg_pageToken = "foo";
|
| + var arg_pageSize = 42;
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1786,8 +1839,8 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
|
|
|
|
| var h = {
|
| @@ -1796,11 +1849,62 @@ main() {
|
| var resp = convert.JSON.encode(buildListSinksResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListSinksResponse response) {
|
| + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListSinksResponse response) {
|
| checkListSinksResponse(response);
|
| })));
|
| });
|
|
|
| + unittest.test("method--patch", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.FoldersSinksResourceApi res = new api.LoggingApi(mock).folders.sinks;
|
| + var arg_request = buildLogSink();
|
| + var arg_sinkName = "foo";
|
| + var arg_uniqueWriterIdentity = true;
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| + var obj = new api.LogSink.fromJson(json);
|
| + checkLogSink(obj);
|
| +
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/"));
|
| + pathOffset += 3;
|
| + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| + unittest.expect(queryMap["uniqueWriterIdentity"].first, unittest.equals("$arg_uniqueWriterIdentity"));
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildLogSink());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.patch(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync1(((api.LogSink response) {
|
| + checkLogSink(response);
|
| + })));
|
| + });
|
| +
|
| unittest.test("method--update", () {
|
|
|
| var mock = new HttpServerMock();
|
| @@ -1860,8 +1964,8 @@ main() {
|
|
|
| var mock = new HttpServerMock();
|
| api.MonitoredResourceDescriptorsResourceApi res = new api.LoggingApi(mock).monitoredResourceDescriptors;
|
| - var arg_pageSize = 42;
|
| var arg_pageToken = "foo";
|
| + var arg_pageSize = 42;
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1888,8 +1992,8 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
|
|
|
|
| var h = {
|
| @@ -1898,7 +2002,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListMonitoredResourceDescriptorsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListMonitoredResourceDescriptorsResponse response) {
|
| + res.list(pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListMonitoredResourceDescriptorsResponse response) {
|
| checkListMonitoredResourceDescriptorsResponse(response);
|
| })));
|
| });
|
| @@ -2195,6 +2299,57 @@ main() {
|
| })));
|
| });
|
|
|
| + unittest.test("method--patch", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.OrganizationsSinksResourceApi res = new api.LoggingApi(mock).organizations.sinks;
|
| + var arg_request = buildLogSink();
|
| + var arg_sinkName = "foo";
|
| + var arg_uniqueWriterIdentity = true;
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| + var obj = new api.LogSink.fromJson(json);
|
| + checkLogSink(obj);
|
| +
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/"));
|
| + pathOffset += 3;
|
| + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| + unittest.expect(queryMap["uniqueWriterIdentity"].first, unittest.equals("$arg_uniqueWriterIdentity"));
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildLogSink());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.patch(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync1(((api.LogSink response) {
|
| + checkLogSink(response);
|
| + })));
|
| + });
|
| +
|
| unittest.test("method--update", () {
|
|
|
| var mock = new HttpServerMock();
|
| @@ -2492,8 +2647,8 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.metrics;
|
| var arg_parent = "foo";
|
| - var arg_pageSize = 42;
|
| var arg_pageToken = "foo";
|
| + var arg_pageSize = 42;
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -2521,8 +2676,8 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
|
|
|
|
| var h = {
|
| @@ -2531,7 +2686,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListLogMetricsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListLogMetricsResponse response) {
|
| + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListLogMetricsResponse response) {
|
| checkListLogMetricsResponse(response);
|
| })));
|
| });
|
| @@ -2779,6 +2934,57 @@ main() {
|
| })));
|
| });
|
|
|
| + unittest.test("method--patch", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.ProjectsSinksResourceApi res = new api.LoggingApi(mock).projects.sinks;
|
| + var arg_request = buildLogSink();
|
| + var arg_sinkName = "foo";
|
| + var arg_uniqueWriterIdentity = true;
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| + var obj = new api.LogSink.fromJson(json);
|
| + checkLogSink(obj);
|
| +
|
| + var path = (req.url).path;
|
| + var pathOffset = 0;
|
| + var index;
|
| + var subPart;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/"));
|
| + pathOffset += 3;
|
| + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
|
| +
|
| + var query = (req.url).query;
|
| + var queryOffset = 0;
|
| + var queryMap = {};
|
| + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| + parseBool(n) {
|
| + if (n == "true") return true;
|
| + if (n == "false") return false;
|
| + if (n == null) return null;
|
| + throw new core.ArgumentError("Invalid boolean: $n");
|
| + }
|
| + if (query.length > 0) {
|
| + for (var part in query.split("&")) {
|
| + var keyvalue = part.split("=");
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| + }
|
| + }
|
| + unittest.expect(queryMap["uniqueWriterIdentity"].first, unittest.equals("$arg_uniqueWriterIdentity"));
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildLogSink());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.patch(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync1(((api.LogSink response) {
|
| + checkLogSink(response);
|
| + })));
|
| + });
|
| +
|
| unittest.test("method--update", () {
|
|
|
| var mock = new HttpServerMock();
|
|
|