| Index: generated/googleapis_beta/test/cloudmonitoring/v2beta1_test.dart
|
| diff --git a/generated/googleapis_beta/test/cloudmonitoring/v2beta1_test.dart b/generated/googleapis_beta/test/cloudmonitoring/v2beta1_test.dart
|
| index 2defc15668e542cef5ffe261efc7f78a2568ccbb..96d99eebb70cb643b8aa4ec0375756d6416b3c61 100644
|
| --- a/generated/googleapis_beta/test/cloudmonitoring/v2beta1_test.dart
|
| +++ b/generated/googleapis_beta/test/cloudmonitoring/v2beta1_test.dart
|
| @@ -35,14 +35,14 @@ checkListMetricDescriptorsRequest(api.ListMetricDescriptorsRequest o) {
|
| buildCounterListMetricDescriptorsRequest--;
|
| }
|
|
|
| -buildUnnamed1174() {
|
| +buildUnnamed1205() {
|
| var o = new core.List<api.MetricDescriptor>();
|
| o.add(buildMetricDescriptor());
|
| o.add(buildMetricDescriptor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1174(core.List<api.MetricDescriptor> o) {
|
| +checkUnnamed1205(core.List<api.MetricDescriptor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMetricDescriptor(o[0]);
|
| checkMetricDescriptor(o[1]);
|
| @@ -54,7 +54,7 @@ buildListMetricDescriptorsResponse() {
|
| buildCounterListMetricDescriptorsResponse++;
|
| if (buildCounterListMetricDescriptorsResponse < 3) {
|
| o.kind = "foo";
|
| - o.metrics = buildUnnamed1174();
|
| + o.metrics = buildUnnamed1205();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListMetricDescriptorsResponse--;
|
| @@ -65,7 +65,7 @@ checkListMetricDescriptorsResponse(api.ListMetricDescriptorsResponse o) {
|
| buildCounterListMetricDescriptorsResponse++;
|
| if (buildCounterListMetricDescriptorsResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed1174(o.metrics);
|
| + checkUnnamed1205(o.metrics);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListMetricDescriptorsResponse--;
|
| @@ -90,14 +90,14 @@ checkListTimeseriesDescriptorsRequest(api.ListTimeseriesDescriptorsRequest o) {
|
| buildCounterListTimeseriesDescriptorsRequest--;
|
| }
|
|
|
| -buildUnnamed1175() {
|
| +buildUnnamed1206() {
|
| var o = new core.List<api.TimeseriesDescriptor>();
|
| o.add(buildTimeseriesDescriptor());
|
| o.add(buildTimeseriesDescriptor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1175(core.List<api.TimeseriesDescriptor> o) {
|
| +checkUnnamed1206(core.List<api.TimeseriesDescriptor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkTimeseriesDescriptor(o[0]);
|
| checkTimeseriesDescriptor(o[1]);
|
| @@ -111,7 +111,7 @@ buildListTimeseriesDescriptorsResponse() {
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.oldest = core.DateTime.parse("2002-02-27T14:01:02");
|
| - o.timeseries = buildUnnamed1175();
|
| + o.timeseries = buildUnnamed1206();
|
| o.youngest = core.DateTime.parse("2002-02-27T14:01:02");
|
| }
|
| buildCounterListTimeseriesDescriptorsResponse--;
|
| @@ -124,7 +124,7 @@ checkListTimeseriesDescriptorsResponse(api.ListTimeseriesDescriptorsResponse o)
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.oldest, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| - checkUnnamed1175(o.timeseries);
|
| + checkUnnamed1206(o.timeseries);
|
| unittest.expect(o.youngest, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| }
|
| buildCounterListTimeseriesDescriptorsResponse--;
|
| @@ -149,14 +149,14 @@ checkListTimeseriesRequest(api.ListTimeseriesRequest o) {
|
| buildCounterListTimeseriesRequest--;
|
| }
|
|
|
| -buildUnnamed1176() {
|
| +buildUnnamed1207() {
|
| var o = new core.List<api.Timeseries>();
|
| o.add(buildTimeseries());
|
| o.add(buildTimeseries());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1176(core.List<api.Timeseries> o) {
|
| +checkUnnamed1207(core.List<api.Timeseries> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkTimeseries(o[0]);
|
| checkTimeseries(o[1]);
|
| @@ -170,7 +170,7 @@ buildListTimeseriesResponse() {
|
| o.kind = "foo";
|
| o.nextPageToken = "foo";
|
| o.oldest = core.DateTime.parse("2002-02-27T14:01:02");
|
| - o.timeseries = buildUnnamed1176();
|
| + o.timeseries = buildUnnamed1207();
|
| o.youngest = core.DateTime.parse("2002-02-27T14:01:02");
|
| }
|
| buildCounterListTimeseriesResponse--;
|
| @@ -183,20 +183,20 @@ checkListTimeseriesResponse(api.ListTimeseriesResponse o) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.oldest, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| - checkUnnamed1176(o.timeseries);
|
| + checkUnnamed1207(o.timeseries);
|
| unittest.expect(o.youngest, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02")));
|
| }
|
| buildCounterListTimeseriesResponse--;
|
| }
|
|
|
| -buildUnnamed1177() {
|
| +buildUnnamed1208() {
|
| var o = new core.List<api.MetricDescriptorLabelDescriptor>();
|
| o.add(buildMetricDescriptorLabelDescriptor());
|
| o.add(buildMetricDescriptorLabelDescriptor());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1177(core.List<api.MetricDescriptorLabelDescriptor> o) {
|
| +checkUnnamed1208(core.List<api.MetricDescriptorLabelDescriptor> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkMetricDescriptorLabelDescriptor(o[0]);
|
| checkMetricDescriptorLabelDescriptor(o[1]);
|
| @@ -208,7 +208,7 @@ buildMetricDescriptor() {
|
| buildCounterMetricDescriptor++;
|
| if (buildCounterMetricDescriptor < 3) {
|
| o.description = "foo";
|
| - o.labels = buildUnnamed1177();
|
| + o.labels = buildUnnamed1208();
|
| o.name = "foo";
|
| o.project = "foo";
|
| o.typeDescriptor = buildMetricDescriptorTypeDescriptor();
|
| @@ -221,7 +221,7 @@ checkMetricDescriptor(api.MetricDescriptor o) {
|
| buildCounterMetricDescriptor++;
|
| if (buildCounterMetricDescriptor < 3) {
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| - checkUnnamed1177(o.labels);
|
| + checkUnnamed1208(o.labels);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.project, unittest.equals('foo'));
|
| checkMetricDescriptorTypeDescriptor(o.typeDescriptor);
|
| @@ -302,14 +302,14 @@ checkPoint(api.Point o) {
|
| buildCounterPoint--;
|
| }
|
|
|
| -buildUnnamed1178() {
|
| +buildUnnamed1209() {
|
| var o = new core.List<api.PointDistributionBucket>();
|
| o.add(buildPointDistributionBucket());
|
| o.add(buildPointDistributionBucket());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1178(core.List<api.PointDistributionBucket> o) {
|
| +checkUnnamed1209(core.List<api.PointDistributionBucket> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPointDistributionBucket(o[0]);
|
| checkPointDistributionBucket(o[1]);
|
| @@ -320,7 +320,7 @@ buildPointDistribution() {
|
| var o = new api.PointDistribution();
|
| buildCounterPointDistribution++;
|
| if (buildCounterPointDistribution < 3) {
|
| - o.buckets = buildUnnamed1178();
|
| + o.buckets = buildUnnamed1209();
|
| o.overflowBucket = buildPointDistributionOverflowBucket();
|
| o.underflowBucket = buildPointDistributionUnderflowBucket();
|
| }
|
| @@ -331,7 +331,7 @@ buildPointDistribution() {
|
| checkPointDistribution(api.PointDistribution o) {
|
| buildCounterPointDistribution++;
|
| if (buildCounterPointDistribution < 3) {
|
| - checkUnnamed1178(o.buckets);
|
| + checkUnnamed1209(o.buckets);
|
| checkPointDistributionOverflowBucket(o.overflowBucket);
|
| checkPointDistributionUnderflowBucket(o.underflowBucket);
|
| }
|
| @@ -403,14 +403,14 @@ checkPointDistributionUnderflowBucket(api.PointDistributionUnderflowBucket o) {
|
| buildCounterPointDistributionUnderflowBucket--;
|
| }
|
|
|
| -buildUnnamed1179() {
|
| +buildUnnamed1210() {
|
| var o = new core.List<api.Point>();
|
| o.add(buildPoint());
|
| o.add(buildPoint());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1179(core.List<api.Point> o) {
|
| +checkUnnamed1210(core.List<api.Point> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPoint(o[0]);
|
| checkPoint(o[1]);
|
| @@ -421,7 +421,7 @@ buildTimeseries() {
|
| var o = new api.Timeseries();
|
| buildCounterTimeseries++;
|
| if (buildCounterTimeseries < 3) {
|
| - o.points = buildUnnamed1179();
|
| + o.points = buildUnnamed1210();
|
| o.timeseriesDesc = buildTimeseriesDescriptor();
|
| }
|
| buildCounterTimeseries--;
|
| @@ -431,20 +431,20 @@ buildTimeseries() {
|
| checkTimeseries(api.Timeseries o) {
|
| buildCounterTimeseries++;
|
| if (buildCounterTimeseries < 3) {
|
| - checkUnnamed1179(o.points);
|
| + checkUnnamed1210(o.points);
|
| checkTimeseriesDescriptor(o.timeseriesDesc);
|
| }
|
| buildCounterTimeseries--;
|
| }
|
|
|
| -buildUnnamed1180() {
|
| +buildUnnamed1211() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed1180(core.Map<core.String, core.String> o) {
|
| +checkUnnamed1211(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'));
|
| @@ -455,7 +455,7 @@ buildTimeseriesDescriptor() {
|
| var o = new api.TimeseriesDescriptor();
|
| buildCounterTimeseriesDescriptor++;
|
| if (buildCounterTimeseriesDescriptor < 3) {
|
| - o.labels = buildUnnamed1180();
|
| + o.labels = buildUnnamed1211();
|
| o.metric = "foo";
|
| o.project = "foo";
|
| }
|
| @@ -466,34 +466,34 @@ buildTimeseriesDescriptor() {
|
| checkTimeseriesDescriptor(api.TimeseriesDescriptor o) {
|
| buildCounterTimeseriesDescriptor++;
|
| if (buildCounterTimeseriesDescriptor < 3) {
|
| - checkUnnamed1180(o.labels);
|
| + checkUnnamed1211(o.labels);
|
| unittest.expect(o.metric, unittest.equals('foo'));
|
| unittest.expect(o.project, unittest.equals('foo'));
|
| }
|
| buildCounterTimeseriesDescriptor--;
|
| }
|
|
|
| -buildUnnamed1181() {
|
| +buildUnnamed1212() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1181(core.List<core.String> o) {
|
| +checkUnnamed1212(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed1182() {
|
| +buildUnnamed1213() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1182(core.List<core.String> o) {
|
| +checkUnnamed1213(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -663,15 +663,8 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 34), unittest.equals("/cloudmonitoring/v2beta1/projects/"));
|
| - pathOffset += 34;
|
| - index = path.indexOf("/metricDescriptors", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_project"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/metricDescriptors"));
|
| - pathOffset += 18;
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -718,7 +711,7 @@ main() {
|
| var arg_metric = "foo";
|
| var arg_youngest = "foo";
|
| var arg_count = 42;
|
| - var arg_labels = buildUnnamed1181();
|
| + var arg_labels = buildUnnamed1212();
|
| var arg_oldest = "foo";
|
| var arg_pageToken = "foo";
|
| var arg_timespan = "foo";
|
| @@ -730,18 +723,8 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 34), unittest.equals("/cloudmonitoring/v2beta1/projects/"));
|
| - pathOffset += 34;
|
| - index = path.indexOf("/timeseries/", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_project"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/timeseries/"));
|
| - pathOffset += 12;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_metric"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
| @@ -791,7 +774,7 @@ main() {
|
| var arg_metric = "foo";
|
| var arg_youngest = "foo";
|
| var arg_count = 42;
|
| - var arg_labels = buildUnnamed1182();
|
| + var arg_labels = buildUnnamed1213();
|
| var arg_oldest = "foo";
|
| var arg_pageToken = "foo";
|
| var arg_timespan = "foo";
|
| @@ -803,18 +786,8 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 34), unittest.equals("/cloudmonitoring/v2beta1/projects/"));
|
| - pathOffset += 34;
|
| - index = path.indexOf("/timeseriesDescriptors/", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_project"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.equals("/timeseriesDescriptors/"));
|
| - pathOffset += 23;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_metric"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + pathOffset += 1;
|
|
|
| var query = (req.url).query;
|
| var queryOffset = 0;
|
|
|