| Index: generated/googleapis_beta/test/logging/v2beta1_test.dart
|
| diff --git a/generated/googleapis_beta/test/logging/v2beta1_test.dart b/generated/googleapis_beta/test/logging/v2beta1_test.dart
|
| index 531270e6d36a45c1d904a1115d078e67276ffdd5..9b25df967d6d9973933ce634ba88f545cf452716 100644
|
| --- a/generated/googleapis_beta/test/logging/v2beta1_test.dart
|
| +++ b/generated/googleapis_beta/test/logging/v2beta1_test.dart
|
| @@ -136,27 +136,27 @@ checkLabelDescriptor(api.LabelDescriptor o) {
|
| buildCounterLabelDescriptor--;
|
| }
|
|
|
| -buildUnnamed3986() {
|
| +buildUnnamed3697() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3986(core.List<core.String> o) {
|
| +checkUnnamed3697(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed3987() {
|
| +buildUnnamed3698() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3987(core.List<core.String> o) {
|
| +checkUnnamed3698(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -171,8 +171,8 @@ buildListLogEntriesRequest() {
|
| o.orderBy = "foo";
|
| o.pageSize = 42;
|
| o.pageToken = "foo";
|
| - o.projectIds = buildUnnamed3986();
|
| - o.resourceNames = buildUnnamed3987();
|
| + o.projectIds = buildUnnamed3697();
|
| + o.resourceNames = buildUnnamed3698();
|
| }
|
| buildCounterListLogEntriesRequest--;
|
| return o;
|
| @@ -185,20 +185,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'));
|
| - checkUnnamed3986(o.projectIds);
|
| - checkUnnamed3987(o.resourceNames);
|
| + checkUnnamed3697(o.projectIds);
|
| + checkUnnamed3698(o.resourceNames);
|
| }
|
| buildCounterListLogEntriesRequest--;
|
| }
|
|
|
| -buildUnnamed3988() {
|
| +buildUnnamed3699() {
|
| var o = new core.List<api.LogEntry>();
|
| o.add(buildLogEntry());
|
| o.add(buildLogEntry());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3988(core.List<api.LogEntry> o) {
|
| +checkUnnamed3699(core.List<api.LogEntry> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLogEntry(o[0]);
|
| checkLogEntry(o[1]);
|
| @@ -209,7 +209,7 @@ buildListLogEntriesResponse() {
|
| var o = new api.ListLogEntriesResponse();
|
| buildCounterListLogEntriesResponse++;
|
| if (buildCounterListLogEntriesResponse < 3) {
|
| - o.entries = buildUnnamed3988();
|
| + o.entries = buildUnnamed3699();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListLogEntriesResponse--;
|
| @@ -219,20 +219,20 @@ buildListLogEntriesResponse() {
|
| checkListLogEntriesResponse(api.ListLogEntriesResponse o) {
|
| buildCounterListLogEntriesResponse++;
|
| if (buildCounterListLogEntriesResponse < 3) {
|
| - checkUnnamed3988(o.entries);
|
| + checkUnnamed3699(o.entries);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListLogEntriesResponse--;
|
| }
|
|
|
| -buildUnnamed3989() {
|
| +buildUnnamed3700() {
|
| var o = new core.List<api.LogMetric>();
|
| o.add(buildLogMetric());
|
| o.add(buildLogMetric());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3989(core.List<api.LogMetric> o) {
|
| +checkUnnamed3700(core.List<api.LogMetric> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLogMetric(o[0]);
|
| checkLogMetric(o[1]);
|
| @@ -243,7 +243,7 @@ buildListLogMetricsResponse() {
|
| var o = new api.ListLogMetricsResponse();
|
| buildCounterListLogMetricsResponse++;
|
| if (buildCounterListLogMetricsResponse < 3) {
|
| - o.metrics = buildUnnamed3989();
|
| + o.metrics = buildUnnamed3700();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListLogMetricsResponse--;
|
| @@ -253,20 +253,54 @@ buildListLogMetricsResponse() {
|
| checkListLogMetricsResponse(api.ListLogMetricsResponse o) {
|
| buildCounterListLogMetricsResponse++;
|
| if (buildCounterListLogMetricsResponse < 3) {
|
| - checkUnnamed3989(o.metrics);
|
| + checkUnnamed3700(o.metrics);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListLogMetricsResponse--;
|
| }
|
|
|
| -buildUnnamed3990() {
|
| +buildUnnamed3701() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed3701(core.List<core.String> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + unittest.expect(o[0], unittest.equals('foo'));
|
| + unittest.expect(o[1], unittest.equals('foo'));
|
| +}
|
| +
|
| +core.int buildCounterListLogsResponse = 0;
|
| +buildListLogsResponse() {
|
| + var o = new api.ListLogsResponse();
|
| + buildCounterListLogsResponse++;
|
| + if (buildCounterListLogsResponse < 3) {
|
| + o.logNames = buildUnnamed3701();
|
| + o.nextPageToken = "foo";
|
| + }
|
| + buildCounterListLogsResponse--;
|
| + return o;
|
| +}
|
| +
|
| +checkListLogsResponse(api.ListLogsResponse o) {
|
| + buildCounterListLogsResponse++;
|
| + if (buildCounterListLogsResponse < 3) {
|
| + checkUnnamed3701(o.logNames);
|
| + unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| + }
|
| + buildCounterListLogsResponse--;
|
| +}
|
| +
|
| +buildUnnamed3702() {
|
| var o = new core.List<api.MonitoredResourceDescriptor>();
|
| o.add(buildMonitoredResourceDescriptor());
|
| o.add(buildMonitoredResourceDescriptor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3990(core.List<api.MonitoredResourceDescriptor> o) {
|
| +checkUnnamed3702(core.List<api.MonitoredResourceDescriptor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMonitoredResourceDescriptor(o[0]);
|
| checkMonitoredResourceDescriptor(o[1]);
|
| @@ -278,7 +312,7 @@ buildListMonitoredResourceDescriptorsResponse() {
|
| buildCounterListMonitoredResourceDescriptorsResponse++;
|
| if (buildCounterListMonitoredResourceDescriptorsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.resourceDescriptors = buildUnnamed3990();
|
| + o.resourceDescriptors = buildUnnamed3702();
|
| }
|
| buildCounterListMonitoredResourceDescriptorsResponse--;
|
| return o;
|
| @@ -288,19 +322,19 @@ checkListMonitoredResourceDescriptorsResponse(api.ListMonitoredResourceDescripto
|
| buildCounterListMonitoredResourceDescriptorsResponse++;
|
| if (buildCounterListMonitoredResourceDescriptorsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed3990(o.resourceDescriptors);
|
| + checkUnnamed3702(o.resourceDescriptors);
|
| }
|
| buildCounterListMonitoredResourceDescriptorsResponse--;
|
| }
|
|
|
| -buildUnnamed3991() {
|
| +buildUnnamed3703() {
|
| var o = new core.List<api.LogSink>();
|
| o.add(buildLogSink());
|
| o.add(buildLogSink());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3991(core.List<api.LogSink> o) {
|
| +checkUnnamed3703(core.List<api.LogSink> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLogSink(o[0]);
|
| checkLogSink(o[1]);
|
| @@ -312,7 +346,7 @@ buildListSinksResponse() {
|
| buildCounterListSinksResponse++;
|
| if (buildCounterListSinksResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.sinks = buildUnnamed3991();
|
| + o.sinks = buildUnnamed3703();
|
| }
|
| buildCounterListSinksResponse--;
|
| return o;
|
| @@ -322,45 +356,45 @@ checkListSinksResponse(api.ListSinksResponse o) {
|
| buildCounterListSinksResponse++;
|
| if (buildCounterListSinksResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed3991(o.sinks);
|
| + checkUnnamed3703(o.sinks);
|
| }
|
| buildCounterListSinksResponse--;
|
| }
|
|
|
| -buildUnnamed3992() {
|
| +buildUnnamed3704() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed3992(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed3704(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'));
|
| }
|
|
|
| -buildUnnamed3993() {
|
| +buildUnnamed3705() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed3993(core.Map<core.String, core.String> o) {
|
| +checkUnnamed3705(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed3994() {
|
| +buildUnnamed3706() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed3994(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed3706(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'));
|
| @@ -373,15 +407,17 @@ buildLogEntry() {
|
| if (buildCounterLogEntry < 3) {
|
| o.httpRequest = buildHttpRequest();
|
| o.insertId = "foo";
|
| - o.jsonPayload = buildUnnamed3992();
|
| - o.labels = buildUnnamed3993();
|
| + o.jsonPayload = buildUnnamed3704();
|
| + o.labels = buildUnnamed3705();
|
| o.logName = "foo";
|
| o.operation = buildLogEntryOperation();
|
| - o.protoPayload = buildUnnamed3994();
|
| + o.protoPayload = buildUnnamed3706();
|
| o.resource = buildMonitoredResource();
|
| o.severity = "foo";
|
| + o.sourceLocation = buildLogEntrySourceLocation();
|
| o.textPayload = "foo";
|
| o.timestamp = "foo";
|
| + o.trace = "foo";
|
| }
|
| buildCounterLogEntry--;
|
| return o;
|
| @@ -392,15 +428,17 @@ checkLogEntry(api.LogEntry o) {
|
| if (buildCounterLogEntry < 3) {
|
| checkHttpRequest(o.httpRequest);
|
| unittest.expect(o.insertId, unittest.equals('foo'));
|
| - checkUnnamed3992(o.jsonPayload);
|
| - checkUnnamed3993(o.labels);
|
| + checkUnnamed3704(o.jsonPayload);
|
| + checkUnnamed3705(o.labels);
|
| unittest.expect(o.logName, unittest.equals('foo'));
|
| checkLogEntryOperation(o.operation);
|
| - checkUnnamed3994(o.protoPayload);
|
| + checkUnnamed3706(o.protoPayload);
|
| checkMonitoredResource(o.resource);
|
| unittest.expect(o.severity, unittest.equals('foo'));
|
| + checkLogEntrySourceLocation(o.sourceLocation);
|
| unittest.expect(o.textPayload, unittest.equals('foo'));
|
| unittest.expect(o.timestamp, unittest.equals('foo'));
|
| + unittest.expect(o.trace, unittest.equals('foo'));
|
| }
|
| buildCounterLogEntry--;
|
| }
|
| @@ -430,6 +468,29 @@ checkLogEntryOperation(api.LogEntryOperation o) {
|
| buildCounterLogEntryOperation--;
|
| }
|
|
|
| +core.int buildCounterLogEntrySourceLocation = 0;
|
| +buildLogEntrySourceLocation() {
|
| + var o = new api.LogEntrySourceLocation();
|
| + buildCounterLogEntrySourceLocation++;
|
| + if (buildCounterLogEntrySourceLocation < 3) {
|
| + o.file = "foo";
|
| + o.function = "foo";
|
| + o.line = "foo";
|
| + }
|
| + buildCounterLogEntrySourceLocation--;
|
| + return o;
|
| +}
|
| +
|
| +checkLogEntrySourceLocation(api.LogEntrySourceLocation o) {
|
| + buildCounterLogEntrySourceLocation++;
|
| + if (buildCounterLogEntrySourceLocation < 3) {
|
| + unittest.expect(o.file, unittest.equals('foo'));
|
| + unittest.expect(o.function, unittest.equals('foo'));
|
| + unittest.expect(o.line, unittest.equals('foo'));
|
| + }
|
| + buildCounterLogEntrySourceLocation--;
|
| +}
|
| +
|
| core.int buildCounterLogLine = 0;
|
| buildLogLine() {
|
| var o = new api.LogLine();
|
| @@ -511,14 +572,14 @@ checkLogSink(api.LogSink o) {
|
| buildCounterLogSink--;
|
| }
|
|
|
| -buildUnnamed3995() {
|
| +buildUnnamed3707() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed3995(core.Map<core.String, core.String> o) {
|
| +checkUnnamed3707(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| @@ -529,7 +590,7 @@ buildMonitoredResource() {
|
| var o = new api.MonitoredResource();
|
| buildCounterMonitoredResource++;
|
| if (buildCounterMonitoredResource < 3) {
|
| - o.labels = buildUnnamed3995();
|
| + o.labels = buildUnnamed3707();
|
| o.type = "foo";
|
| }
|
| buildCounterMonitoredResource--;
|
| @@ -539,20 +600,20 @@ buildMonitoredResource() {
|
| checkMonitoredResource(api.MonitoredResource o) {
|
| buildCounterMonitoredResource++;
|
| if (buildCounterMonitoredResource < 3) {
|
| - checkUnnamed3995(o.labels);
|
| + checkUnnamed3707(o.labels);
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| }
|
| buildCounterMonitoredResource--;
|
| }
|
|
|
| -buildUnnamed3996() {
|
| +buildUnnamed3708() {
|
| var o = new core.List<api.LabelDescriptor>();
|
| o.add(buildLabelDescriptor());
|
| o.add(buildLabelDescriptor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3996(core.List<api.LabelDescriptor> o) {
|
| +checkUnnamed3708(core.List<api.LabelDescriptor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLabelDescriptor(o[0]);
|
| checkLabelDescriptor(o[1]);
|
| @@ -565,7 +626,7 @@ buildMonitoredResourceDescriptor() {
|
| if (buildCounterMonitoredResourceDescriptor < 3) {
|
| o.description = "foo";
|
| o.displayName = "foo";
|
| - o.labels = buildUnnamed3996();
|
| + o.labels = buildUnnamed3708();
|
| o.name = "foo";
|
| o.type = "foo";
|
| }
|
| @@ -578,34 +639,34 @@ checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) {
|
| if (buildCounterMonitoredResourceDescriptor < 3) {
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.displayName, unittest.equals('foo'));
|
| - checkUnnamed3996(o.labels);
|
| + checkUnnamed3708(o.labels);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| }
|
| buildCounterMonitoredResourceDescriptor--;
|
| }
|
|
|
| -buildUnnamed3997() {
|
| +buildUnnamed3709() {
|
| var o = new core.List<api.LogLine>();
|
| o.add(buildLogLine());
|
| o.add(buildLogLine());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3997(core.List<api.LogLine> o) {
|
| +checkUnnamed3709(core.List<api.LogLine> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLogLine(o[0]);
|
| checkLogLine(o[1]);
|
| }
|
|
|
| -buildUnnamed3998() {
|
| +buildUnnamed3710() {
|
| var o = new core.List<api.SourceReference>();
|
| o.add(buildSourceReference());
|
| o.add(buildSourceReference());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3998(core.List<api.SourceReference> o) {
|
| +checkUnnamed3710(core.List<api.SourceReference> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSourceReference(o[0]);
|
| checkSourceReference(o[1]);
|
| @@ -628,7 +689,7 @@ buildRequestLog() {
|
| o.instanceIndex = 42;
|
| o.ip = "foo";
|
| o.latency = "foo";
|
| - o.line = buildUnnamed3997();
|
| + o.line = buildUnnamed3709();
|
| o.megaCycles = "foo";
|
| o.method = "foo";
|
| o.moduleId = "foo";
|
| @@ -638,7 +699,7 @@ buildRequestLog() {
|
| o.requestId = "foo";
|
| o.resource = "foo";
|
| o.responseSize = "foo";
|
| - o.sourceReference = buildUnnamed3998();
|
| + o.sourceReference = buildUnnamed3710();
|
| o.startTime = "foo";
|
| o.status = 42;
|
| o.taskName = "foo";
|
| @@ -668,7 +729,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'));
|
| - checkUnnamed3997(o.line);
|
| + checkUnnamed3709(o.line);
|
| unittest.expect(o.megaCycles, unittest.equals('foo'));
|
| unittest.expect(o.method, unittest.equals('foo'));
|
| unittest.expect(o.moduleId, unittest.equals('foo'));
|
| @@ -678,7 +739,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'));
|
| - checkUnnamed3998(o.sourceReference);
|
| + checkUnnamed3710(o.sourceReference);
|
| unittest.expect(o.startTime, unittest.equals('foo'));
|
| unittest.expect(o.status, unittest.equals(42));
|
| unittest.expect(o.taskName, unittest.equals('foo'));
|
| @@ -736,27 +797,27 @@ checkSourceReference(api.SourceReference o) {
|
| buildCounterSourceReference--;
|
| }
|
|
|
| -buildUnnamed3999() {
|
| +buildUnnamed3711() {
|
| var o = new core.List<api.LogEntry>();
|
| o.add(buildLogEntry());
|
| o.add(buildLogEntry());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3999(core.List<api.LogEntry> o) {
|
| +checkUnnamed3711(core.List<api.LogEntry> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLogEntry(o[0]);
|
| checkLogEntry(o[1]);
|
| }
|
|
|
| -buildUnnamed4000() {
|
| +buildUnnamed3712() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed4000(core.Map<core.String, core.String> o) {
|
| +checkUnnamed3712(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| @@ -767,8 +828,8 @@ buildWriteLogEntriesRequest() {
|
| var o = new api.WriteLogEntriesRequest();
|
| buildCounterWriteLogEntriesRequest++;
|
| if (buildCounterWriteLogEntriesRequest < 3) {
|
| - o.entries = buildUnnamed3999();
|
| - o.labels = buildUnnamed4000();
|
| + o.entries = buildUnnamed3711();
|
| + o.labels = buildUnnamed3712();
|
| o.logName = "foo";
|
| o.partialSuccess = true;
|
| o.resource = buildMonitoredResource();
|
| @@ -780,8 +841,8 @@ buildWriteLogEntriesRequest() {
|
| checkWriteLogEntriesRequest(api.WriteLogEntriesRequest o) {
|
| buildCounterWriteLogEntriesRequest++;
|
| if (buildCounterWriteLogEntriesRequest < 3) {
|
| - checkUnnamed3999(o.entries);
|
| - checkUnnamed4000(o.labels);
|
| + checkUnnamed3711(o.entries);
|
| + checkUnnamed3712(o.labels);
|
| unittest.expect(o.logName, unittest.equals('foo'));
|
| unittest.expect(o.partialSuccess, unittest.isTrue);
|
| checkMonitoredResource(o.resource);
|
| @@ -862,6 +923,15 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-ListLogsResponse", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildListLogsResponse();
|
| + var od = new api.ListLogsResponse.fromJson(o.toJson());
|
| + checkListLogsResponse(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-ListMonitoredResourceDescriptorsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildListMonitoredResourceDescriptorsResponse();
|
| @@ -898,6 +968,15 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-LogEntrySourceLocation", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildLogEntrySourceLocation();
|
| + var od = new api.LogEntrySourceLocation.fromJson(o.toJson());
|
| + checkLogEntrySourceLocation(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-LogLine", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildLogLine();
|
| @@ -1034,6 +1113,55 @@ main() {
|
| })));
|
| });
|
|
|
| + unittest.test("method--list", () {
|
| +
|
| + 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";
|
| + 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 + 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(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildListLogsResponse());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListLogsResponse response) {
|
| + checkListLogsResponse(response);
|
| + })));
|
| + });
|
| +
|
| });
|
|
|
|
|
| @@ -1232,6 +1360,55 @@ main() {
|
| })));
|
| });
|
|
|
| + unittest.test("method--list", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.OrganizationsLogsResourceApi res = new api.LoggingApi(mock).organizations.logs;
|
| + var arg_parent = "foo";
|
| + var arg_pageSize = 42;
|
| + var arg_pageToken = "foo";
|
| + 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 + 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(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildListLogsResponse());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListLogsResponse response) {
|
| + checkListLogsResponse(response);
|
| + })));
|
| + });
|
| +
|
| });
|
|
|
|
|
| @@ -1281,6 +1458,55 @@ main() {
|
| })));
|
| });
|
|
|
| + unittest.test("method--list", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.ProjectsLogsResourceApi res = new api.LoggingApi(mock).projects.logs;
|
| + var arg_parent = "foo";
|
| + var arg_pageSize = 42;
|
| + var arg_pageToken = "foo";
|
| + 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 + 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(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildListLogsResponse());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListLogsResponse response) {
|
| + checkListLogsResponse(response);
|
| + })));
|
| + });
|
| +
|
| });
|
|
|
|
|
|
|