Api-roll 61: 2018-02-18 (#33)
diff --git a/generated/googleapis/test/ml/v1_test.dart b/generated/googleapis/test/ml/v1_test.dart
index bddfeaf..7daea93 100644
--- a/generated/googleapis/test/ml/v1_test.dart
+++ b/generated/googleapis/test/ml/v1_test.dart
@@ -50,7 +50,7 @@
return new http.StreamedResponse(stream, status, headers: headers);
}
-buildUnnamed0() {
+buildUnnamed2786() {
var o = new core.Map<core.String, core.Object>();
o["x"] = {
'list': [1, 2, 3],
@@ -65,7 +65,7 @@
return o;
}
-checkUnnamed0(core.Map<core.String, core.Object> o) {
+checkUnnamed2786(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));
@@ -79,17 +79,17 @@
unittest.expect(casted2["string"], unittest.equals('foo'));
}
-buildUnnamed1() {
+buildUnnamed2787() {
var o = new core.List<core.Map<core.String, core.Object>>();
- o.add(buildUnnamed0());
- o.add(buildUnnamed0());
+ o.add(buildUnnamed2786());
+ o.add(buildUnnamed2786());
return o;
}
-checkUnnamed1(core.List<core.Map<core.String, core.Object>> o) {
+checkUnnamed2787(core.List<core.Map<core.String, core.Object>> o) {
unittest.expect(o, unittest.hasLength(2));
- checkUnnamed0(o[0]);
- checkUnnamed0(o[1]);
+ checkUnnamed2786(o[0]);
+ checkUnnamed2786(o[1]);
}
core.int buildCounterGoogleApiHttpBody = 0;
@@ -99,7 +99,7 @@
if (buildCounterGoogleApiHttpBody < 3) {
o.contentType = "foo";
o.data = "foo";
- o.extensions = buildUnnamed1();
+ o.extensions = buildUnnamed2787();
}
buildCounterGoogleApiHttpBody--;
return o;
@@ -110,7 +110,7 @@
if (buildCounterGoogleApiHttpBody < 3) {
unittest.expect(o.contentType, unittest.equals('foo'));
unittest.expect(o.data, unittest.equals('foo'));
- checkUnnamed1(o.extensions);
+ checkUnnamed2787(o.extensions);
}
buildCounterGoogleApiHttpBody--;
}
@@ -172,14 +172,14 @@
buildCounterGoogleCloudMlV1CancelJobRequest--;
}
-buildUnnamed2() {
+buildUnnamed2788() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed2(core.List<core.String> o) {
+checkUnnamed2788(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'));
@@ -190,7 +190,7 @@
var o = new api.GoogleCloudMlV1Capability();
buildCounterGoogleCloudMlV1Capability++;
if (buildCounterGoogleCloudMlV1Capability < 3) {
- o.availableAccelerators = buildUnnamed2();
+ o.availableAccelerators = buildUnnamed2788();
o.type = "foo";
}
buildCounterGoogleCloudMlV1Capability--;
@@ -200,7 +200,7 @@
checkGoogleCloudMlV1Capability(api.GoogleCloudMlV1Capability o) {
buildCounterGoogleCloudMlV1Capability++;
if (buildCounterGoogleCloudMlV1Capability < 3) {
- checkUnnamed2(o.availableAccelerators);
+ checkUnnamed2788(o.availableAccelerators);
unittest.expect(o.type, unittest.equals('foo'));
}
buildCounterGoogleCloudMlV1Capability--;
@@ -227,7 +227,7 @@
buildCounterGoogleCloudMlV1GetConfigResponse--;
}
-buildUnnamed3() {
+buildUnnamed2789() {
var o = new core
.List<api.GoogleCloudMlV1HyperparameterOutputHyperparameterMetric>();
o.add(buildGoogleCloudMlV1HyperparameterOutputHyperparameterMetric());
@@ -235,21 +235,21 @@
return o;
}
-checkUnnamed3(
+checkUnnamed2789(
core.List<api.GoogleCloudMlV1HyperparameterOutputHyperparameterMetric> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(o[0]);
checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(o[1]);
}
-buildUnnamed4() {
+buildUnnamed2790() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed4(core.Map<core.String, core.String> o) {
+checkUnnamed2790(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'));
@@ -260,10 +260,10 @@
var o = new api.GoogleCloudMlV1HyperparameterOutput();
buildCounterGoogleCloudMlV1HyperparameterOutput++;
if (buildCounterGoogleCloudMlV1HyperparameterOutput < 3) {
- o.allMetrics = buildUnnamed3();
+ o.allMetrics = buildUnnamed2789();
o.finalMetric =
buildGoogleCloudMlV1HyperparameterOutputHyperparameterMetric();
- o.hyperparameters = buildUnnamed4();
+ o.hyperparameters = buildUnnamed2790();
o.isTrialStoppedEarly = true;
o.trialId = "foo";
}
@@ -275,23 +275,23 @@
api.GoogleCloudMlV1HyperparameterOutput o) {
buildCounterGoogleCloudMlV1HyperparameterOutput++;
if (buildCounterGoogleCloudMlV1HyperparameterOutput < 3) {
- checkUnnamed3(o.allMetrics);
+ checkUnnamed2789(o.allMetrics);
checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(o.finalMetric);
- checkUnnamed4(o.hyperparameters);
+ checkUnnamed2790(o.hyperparameters);
unittest.expect(o.isTrialStoppedEarly, unittest.isTrue);
unittest.expect(o.trialId, unittest.equals('foo'));
}
buildCounterGoogleCloudMlV1HyperparameterOutput--;
}
-buildUnnamed5() {
+buildUnnamed2791() {
var o = new core.List<api.GoogleCloudMlV1ParameterSpec>();
o.add(buildGoogleCloudMlV1ParameterSpec());
o.add(buildGoogleCloudMlV1ParameterSpec());
return o;
}
-checkUnnamed5(core.List<api.GoogleCloudMlV1ParameterSpec> o) {
+checkUnnamed2791(core.List<api.GoogleCloudMlV1ParameterSpec> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1ParameterSpec(o[0]);
checkGoogleCloudMlV1ParameterSpec(o[1]);
@@ -302,11 +302,13 @@
var o = new api.GoogleCloudMlV1HyperparameterSpec();
buildCounterGoogleCloudMlV1HyperparameterSpec++;
if (buildCounterGoogleCloudMlV1HyperparameterSpec < 3) {
+ o.enableTrialEarlyStopping = true;
o.goal = "foo";
o.hyperparameterMetricTag = "foo";
o.maxParallelTrials = 42;
o.maxTrials = 42;
- o.params = buildUnnamed5();
+ o.params = buildUnnamed2791();
+ o.resumePreviousJobId = "foo";
}
buildCounterGoogleCloudMlV1HyperparameterSpec--;
return o;
@@ -316,28 +318,17 @@
api.GoogleCloudMlV1HyperparameterSpec o) {
buildCounterGoogleCloudMlV1HyperparameterSpec++;
if (buildCounterGoogleCloudMlV1HyperparameterSpec < 3) {
+ unittest.expect(o.enableTrialEarlyStopping, unittest.isTrue);
unittest.expect(o.goal, unittest.equals('foo'));
unittest.expect(o.hyperparameterMetricTag, unittest.equals('foo'));
unittest.expect(o.maxParallelTrials, unittest.equals(42));
unittest.expect(o.maxTrials, unittest.equals(42));
- checkUnnamed5(o.params);
+ checkUnnamed2791(o.params);
+ unittest.expect(o.resumePreviousJobId, unittest.equals('foo'));
}
buildCounterGoogleCloudMlV1HyperparameterSpec--;
}
-buildUnnamed6() {
- var o = new core.Map<core.String, core.String>();
- o["x"] = "foo";
- o["y"] = "foo";
- return o;
-}
-
-checkUnnamed6(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'));
-}
-
core.int buildCounterGoogleCloudMlV1Job = 0;
buildGoogleCloudMlV1Job() {
var o = new api.GoogleCloudMlV1Job();
@@ -346,9 +337,7 @@
o.createTime = "foo";
o.endTime = "foo";
o.errorMessage = "foo";
- o.etag = "foo";
o.jobId = "foo";
- o.labels = buildUnnamed6();
o.predictionInput = buildGoogleCloudMlV1PredictionInput();
o.predictionOutput = buildGoogleCloudMlV1PredictionOutput();
o.startTime = "foo";
@@ -366,9 +355,7 @@
unittest.expect(o.createTime, unittest.equals('foo'));
unittest.expect(o.endTime, unittest.equals('foo'));
unittest.expect(o.errorMessage, unittest.equals('foo'));
- unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.jobId, unittest.equals('foo'));
- checkUnnamed6(o.labels);
checkGoogleCloudMlV1PredictionInput(o.predictionInput);
checkGoogleCloudMlV1PredictionOutput(o.predictionOutput);
unittest.expect(o.startTime, unittest.equals('foo'));
@@ -379,14 +366,14 @@
buildCounterGoogleCloudMlV1Job--;
}
-buildUnnamed7() {
+buildUnnamed2792() {
var o = new core.List<api.GoogleCloudMlV1Job>();
o.add(buildGoogleCloudMlV1Job());
o.add(buildGoogleCloudMlV1Job());
return o;
}
-checkUnnamed7(core.List<api.GoogleCloudMlV1Job> o) {
+checkUnnamed2792(core.List<api.GoogleCloudMlV1Job> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1Job(o[0]);
checkGoogleCloudMlV1Job(o[1]);
@@ -397,7 +384,7 @@
var o = new api.GoogleCloudMlV1ListJobsResponse();
buildCounterGoogleCloudMlV1ListJobsResponse++;
if (buildCounterGoogleCloudMlV1ListJobsResponse < 3) {
- o.jobs = buildUnnamed7();
+ o.jobs = buildUnnamed2792();
o.nextPageToken = "foo";
}
buildCounterGoogleCloudMlV1ListJobsResponse--;
@@ -407,20 +394,20 @@
checkGoogleCloudMlV1ListJobsResponse(api.GoogleCloudMlV1ListJobsResponse o) {
buildCounterGoogleCloudMlV1ListJobsResponse++;
if (buildCounterGoogleCloudMlV1ListJobsResponse < 3) {
- checkUnnamed7(o.jobs);
+ checkUnnamed2792(o.jobs);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
buildCounterGoogleCloudMlV1ListJobsResponse--;
}
-buildUnnamed8() {
+buildUnnamed2793() {
var o = new core.List<api.GoogleCloudMlV1Location>();
o.add(buildGoogleCloudMlV1Location());
o.add(buildGoogleCloudMlV1Location());
return o;
}
-checkUnnamed8(core.List<api.GoogleCloudMlV1Location> o) {
+checkUnnamed2793(core.List<api.GoogleCloudMlV1Location> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1Location(o[0]);
checkGoogleCloudMlV1Location(o[1]);
@@ -431,7 +418,7 @@
var o = new api.GoogleCloudMlV1ListLocationsResponse();
buildCounterGoogleCloudMlV1ListLocationsResponse++;
if (buildCounterGoogleCloudMlV1ListLocationsResponse < 3) {
- o.locations = buildUnnamed8();
+ o.locations = buildUnnamed2793();
o.nextPageToken = "foo";
}
buildCounterGoogleCloudMlV1ListLocationsResponse--;
@@ -442,20 +429,20 @@
api.GoogleCloudMlV1ListLocationsResponse o) {
buildCounterGoogleCloudMlV1ListLocationsResponse++;
if (buildCounterGoogleCloudMlV1ListLocationsResponse < 3) {
- checkUnnamed8(o.locations);
+ checkUnnamed2793(o.locations);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
buildCounterGoogleCloudMlV1ListLocationsResponse--;
}
-buildUnnamed9() {
+buildUnnamed2794() {
var o = new core.List<api.GoogleCloudMlV1Model>();
o.add(buildGoogleCloudMlV1Model());
o.add(buildGoogleCloudMlV1Model());
return o;
}
-checkUnnamed9(core.List<api.GoogleCloudMlV1Model> o) {
+checkUnnamed2794(core.List<api.GoogleCloudMlV1Model> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1Model(o[0]);
checkGoogleCloudMlV1Model(o[1]);
@@ -466,7 +453,7 @@
var o = new api.GoogleCloudMlV1ListModelsResponse();
buildCounterGoogleCloudMlV1ListModelsResponse++;
if (buildCounterGoogleCloudMlV1ListModelsResponse < 3) {
- o.models = buildUnnamed9();
+ o.models = buildUnnamed2794();
o.nextPageToken = "foo";
}
buildCounterGoogleCloudMlV1ListModelsResponse--;
@@ -477,20 +464,20 @@
api.GoogleCloudMlV1ListModelsResponse o) {
buildCounterGoogleCloudMlV1ListModelsResponse++;
if (buildCounterGoogleCloudMlV1ListModelsResponse < 3) {
- checkUnnamed9(o.models);
+ checkUnnamed2794(o.models);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
buildCounterGoogleCloudMlV1ListModelsResponse--;
}
-buildUnnamed10() {
+buildUnnamed2795() {
var o = new core.List<api.GoogleCloudMlV1Version>();
o.add(buildGoogleCloudMlV1Version());
o.add(buildGoogleCloudMlV1Version());
return o;
}
-checkUnnamed10(core.List<api.GoogleCloudMlV1Version> o) {
+checkUnnamed2795(core.List<api.GoogleCloudMlV1Version> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1Version(o[0]);
checkGoogleCloudMlV1Version(o[1]);
@@ -502,7 +489,7 @@
buildCounterGoogleCloudMlV1ListVersionsResponse++;
if (buildCounterGoogleCloudMlV1ListVersionsResponse < 3) {
o.nextPageToken = "foo";
- o.versions = buildUnnamed10();
+ o.versions = buildUnnamed2795();
}
buildCounterGoogleCloudMlV1ListVersionsResponse--;
return o;
@@ -513,19 +500,19 @@
buildCounterGoogleCloudMlV1ListVersionsResponse++;
if (buildCounterGoogleCloudMlV1ListVersionsResponse < 3) {
unittest.expect(o.nextPageToken, unittest.equals('foo'));
- checkUnnamed10(o.versions);
+ checkUnnamed2795(o.versions);
}
buildCounterGoogleCloudMlV1ListVersionsResponse--;
}
-buildUnnamed11() {
+buildUnnamed2796() {
var o = new core.List<api.GoogleCloudMlV1Capability>();
o.add(buildGoogleCloudMlV1Capability());
o.add(buildGoogleCloudMlV1Capability());
return o;
}
-checkUnnamed11(core.List<api.GoogleCloudMlV1Capability> o) {
+checkUnnamed2796(core.List<api.GoogleCloudMlV1Capability> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1Capability(o[0]);
checkGoogleCloudMlV1Capability(o[1]);
@@ -536,7 +523,7 @@
var o = new api.GoogleCloudMlV1Location();
buildCounterGoogleCloudMlV1Location++;
if (buildCounterGoogleCloudMlV1Location < 3) {
- o.capabilities = buildUnnamed11();
+ o.capabilities = buildUnnamed2796();
o.name = "foo";
}
buildCounterGoogleCloudMlV1Location--;
@@ -546,7 +533,7 @@
checkGoogleCloudMlV1Location(api.GoogleCloudMlV1Location o) {
buildCounterGoogleCloudMlV1Location++;
if (buildCounterGoogleCloudMlV1Location < 3) {
- checkUnnamed11(o.capabilities);
+ checkUnnamed2796(o.capabilities);
unittest.expect(o.name, unittest.equals('foo'));
}
buildCounterGoogleCloudMlV1Location--;
@@ -571,27 +558,14 @@
buildCounterGoogleCloudMlV1ManualScaling--;
}
-buildUnnamed12() {
- var o = new core.Map<core.String, core.String>();
- o["x"] = "foo";
- o["y"] = "foo";
- return o;
-}
-
-checkUnnamed12(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'));
-}
-
-buildUnnamed13() {
+buildUnnamed2797() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed13(core.List<core.String> o) {
+checkUnnamed2797(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'));
@@ -604,11 +578,9 @@
if (buildCounterGoogleCloudMlV1Model < 3) {
o.defaultVersion = buildGoogleCloudMlV1Version();
o.description = "foo";
- o.etag = "foo";
- o.labels = buildUnnamed12();
o.name = "foo";
o.onlinePredictionLogging = true;
- o.regions = buildUnnamed13();
+ o.regions = buildUnnamed2797();
}
buildCounterGoogleCloudMlV1Model--;
return o;
@@ -619,28 +591,13 @@
if (buildCounterGoogleCloudMlV1Model < 3) {
checkGoogleCloudMlV1Version(o.defaultVersion);
unittest.expect(o.description, unittest.equals('foo'));
- unittest.expect(o.etag, unittest.equals('foo'));
- checkUnnamed12(o.labels);
unittest.expect(o.name, unittest.equals('foo'));
unittest.expect(o.onlinePredictionLogging, unittest.isTrue);
- checkUnnamed13(o.regions);
+ checkUnnamed2797(o.regions);
}
buildCounterGoogleCloudMlV1Model--;
}
-buildUnnamed14() {
- var o = new core.Map<core.String, core.String>();
- o["x"] = "foo";
- o["y"] = "foo";
- return o;
-}
-
-checkUnnamed14(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'));
-}
-
core.int buildCounterGoogleCloudMlV1OperationMetadata = 0;
buildGoogleCloudMlV1OperationMetadata() {
var o = new api.GoogleCloudMlV1OperationMetadata();
@@ -649,7 +606,6 @@
o.createTime = "foo";
o.endTime = "foo";
o.isCancellationRequested = true;
- o.labels = buildUnnamed14();
o.modelName = "foo";
o.operationType = "foo";
o.projectNumber = "foo";
@@ -666,7 +622,6 @@
unittest.expect(o.createTime, unittest.equals('foo'));
unittest.expect(o.endTime, unittest.equals('foo'));
unittest.expect(o.isCancellationRequested, unittest.isTrue);
- checkUnnamed14(o.labels);
unittest.expect(o.modelName, unittest.equals('foo'));
unittest.expect(o.operationType, unittest.equals('foo'));
unittest.expect(o.projectNumber, unittest.equals('foo'));
@@ -676,27 +631,27 @@
buildCounterGoogleCloudMlV1OperationMetadata--;
}
-buildUnnamed15() {
+buildUnnamed2798() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed15(core.List<core.String> o) {
+checkUnnamed2798(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'));
}
-buildUnnamed16() {
+buildUnnamed2799() {
var o = new core.List<core.double>();
o.add(42.0);
o.add(42.0);
return o;
}
-checkUnnamed16(core.List<core.double> o) {
+checkUnnamed2799(core.List<core.double> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals(42.0));
unittest.expect(o[1], unittest.equals(42.0));
@@ -707,8 +662,8 @@
var o = new api.GoogleCloudMlV1ParameterSpec();
buildCounterGoogleCloudMlV1ParameterSpec++;
if (buildCounterGoogleCloudMlV1ParameterSpec < 3) {
- o.categoricalValues = buildUnnamed15();
- o.discreteValues = buildUnnamed16();
+ o.categoricalValues = buildUnnamed2798();
+ o.discreteValues = buildUnnamed2799();
o.maxValue = 42.0;
o.minValue = 42.0;
o.parameterName = "foo";
@@ -722,8 +677,8 @@
checkGoogleCloudMlV1ParameterSpec(api.GoogleCloudMlV1ParameterSpec o) {
buildCounterGoogleCloudMlV1ParameterSpec++;
if (buildCounterGoogleCloudMlV1ParameterSpec < 3) {
- checkUnnamed15(o.categoricalValues);
- checkUnnamed16(o.discreteValues);
+ checkUnnamed2798(o.categoricalValues);
+ checkUnnamed2799(o.discreteValues);
unittest.expect(o.maxValue, unittest.equals(42.0));
unittest.expect(o.minValue, unittest.equals(42.0));
unittest.expect(o.parameterName, unittest.equals('foo'));
@@ -752,14 +707,14 @@
buildCounterGoogleCloudMlV1PredictRequest--;
}
-buildUnnamed17() {
+buildUnnamed2800() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed17(core.List<core.String> o) {
+checkUnnamed2800(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'));
@@ -772,7 +727,7 @@
if (buildCounterGoogleCloudMlV1PredictionInput < 3) {
o.batchSize = "foo";
o.dataFormat = "foo";
- o.inputPaths = buildUnnamed17();
+ o.inputPaths = buildUnnamed2800();
o.maxWorkerCount = "foo";
o.modelName = "foo";
o.outputPath = "foo";
@@ -791,7 +746,7 @@
if (buildCounterGoogleCloudMlV1PredictionInput < 3) {
unittest.expect(o.batchSize, unittest.equals('foo'));
unittest.expect(o.dataFormat, unittest.equals('foo'));
- checkUnnamed17(o.inputPaths);
+ checkUnnamed2800(o.inputPaths);
unittest.expect(o.maxWorkerCount, unittest.equals('foo'));
unittest.expect(o.modelName, unittest.equals('foo'));
unittest.expect(o.outputPath, unittest.equals('foo'));
@@ -845,27 +800,27 @@
buildCounterGoogleCloudMlV1SetDefaultVersionRequest--;
}
-buildUnnamed18() {
+buildUnnamed2801() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed18(core.List<core.String> o) {
+checkUnnamed2801(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'));
}
-buildUnnamed19() {
+buildUnnamed2802() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed19(core.List<core.String> o) {
+checkUnnamed2802(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'));
@@ -876,11 +831,11 @@
var o = new api.GoogleCloudMlV1TrainingInput();
buildCounterGoogleCloudMlV1TrainingInput++;
if (buildCounterGoogleCloudMlV1TrainingInput < 3) {
- o.args = buildUnnamed18();
+ o.args = buildUnnamed2801();
o.hyperparameters = buildGoogleCloudMlV1HyperparameterSpec();
o.jobDir = "foo";
o.masterType = "foo";
- o.packageUris = buildUnnamed19();
+ o.packageUris = buildUnnamed2802();
o.parameterServerCount = "foo";
o.parameterServerType = "foo";
o.pythonModule = "foo";
@@ -898,11 +853,11 @@
checkGoogleCloudMlV1TrainingInput(api.GoogleCloudMlV1TrainingInput o) {
buildCounterGoogleCloudMlV1TrainingInput++;
if (buildCounterGoogleCloudMlV1TrainingInput < 3) {
- checkUnnamed18(o.args);
+ checkUnnamed2801(o.args);
checkGoogleCloudMlV1HyperparameterSpec(o.hyperparameters);
unittest.expect(o.jobDir, unittest.equals('foo'));
unittest.expect(o.masterType, unittest.equals('foo'));
- checkUnnamed19(o.packageUris);
+ checkUnnamed2802(o.packageUris);
unittest.expect(o.parameterServerCount, unittest.equals('foo'));
unittest.expect(o.parameterServerType, unittest.equals('foo'));
unittest.expect(o.pythonModule, unittest.equals('foo'));
@@ -916,14 +871,14 @@
buildCounterGoogleCloudMlV1TrainingInput--;
}
-buildUnnamed20() {
+buildUnnamed2803() {
var o = new core.List<api.GoogleCloudMlV1HyperparameterOutput>();
o.add(buildGoogleCloudMlV1HyperparameterOutput());
o.add(buildGoogleCloudMlV1HyperparameterOutput());
return o;
}
-checkUnnamed20(core.List<api.GoogleCloudMlV1HyperparameterOutput> o) {
+checkUnnamed2803(core.List<api.GoogleCloudMlV1HyperparameterOutput> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1HyperparameterOutput(o[0]);
checkGoogleCloudMlV1HyperparameterOutput(o[1]);
@@ -937,7 +892,7 @@
o.completedTrialCount = "foo";
o.consumedMLUnits = 42.0;
o.isHyperparameterTuningJob = true;
- o.trials = buildUnnamed20();
+ o.trials = buildUnnamed2803();
}
buildCounterGoogleCloudMlV1TrainingOutput--;
return o;
@@ -949,24 +904,11 @@
unittest.expect(o.completedTrialCount, unittest.equals('foo'));
unittest.expect(o.consumedMLUnits, unittest.equals(42.0));
unittest.expect(o.isHyperparameterTuningJob, unittest.isTrue);
- checkUnnamed20(o.trials);
+ checkUnnamed2803(o.trials);
}
buildCounterGoogleCloudMlV1TrainingOutput--;
}
-buildUnnamed21() {
- var o = new core.Map<core.String, core.String>();
- o["x"] = "foo";
- o["y"] = "foo";
- return o;
-}
-
-checkUnnamed21(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'));
-}
-
core.int buildCounterGoogleCloudMlV1Version = 0;
buildGoogleCloudMlV1Version() {
var o = new api.GoogleCloudMlV1Version();
@@ -977,9 +919,7 @@
o.deploymentUri = "foo";
o.description = "foo";
o.errorMessage = "foo";
- o.etag = "foo";
o.isDefault = true;
- o.labels = buildUnnamed21();
o.lastUseTime = "foo";
o.manualScaling = buildGoogleCloudMlV1ManualScaling();
o.name = "foo";
@@ -998,9 +938,7 @@
unittest.expect(o.deploymentUri, unittest.equals('foo'));
unittest.expect(o.description, unittest.equals('foo'));
unittest.expect(o.errorMessage, unittest.equals('foo'));
- unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.isDefault, unittest.isTrue);
- checkUnnamed21(o.labels);
unittest.expect(o.lastUseTime, unittest.equals('foo'));
checkGoogleCloudMlV1ManualScaling(o.manualScaling);
unittest.expect(o.name, unittest.equals('foo'));
@@ -1010,14 +948,14 @@
buildCounterGoogleCloudMlV1Version--;
}
-buildUnnamed22() {
+buildUnnamed2804() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed22(core.List<core.String> o) {
+checkUnnamed2804(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'));
@@ -1028,8 +966,7 @@
var o = new api.GoogleIamV1Binding();
buildCounterGoogleIamV1Binding++;
if (buildCounterGoogleIamV1Binding < 3) {
- o.condition = buildGoogleTypeExpr();
- o.members = buildUnnamed22();
+ o.members = buildUnnamed2804();
o.role = "foo";
}
buildCounterGoogleIamV1Binding--;
@@ -1039,21 +976,20 @@
checkGoogleIamV1Binding(api.GoogleIamV1Binding o) {
buildCounterGoogleIamV1Binding++;
if (buildCounterGoogleIamV1Binding < 3) {
- checkGoogleTypeExpr(o.condition);
- checkUnnamed22(o.members);
+ checkUnnamed2804(o.members);
unittest.expect(o.role, unittest.equals('foo'));
}
buildCounterGoogleIamV1Binding--;
}
-buildUnnamed23() {
+buildUnnamed2805() {
var o = new core.List<api.GoogleIamV1Binding>();
o.add(buildGoogleIamV1Binding());
o.add(buildGoogleIamV1Binding());
return o;
}
-checkUnnamed23(core.List<api.GoogleIamV1Binding> o) {
+checkUnnamed2805(core.List<api.GoogleIamV1Binding> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleIamV1Binding(o[0]);
checkGoogleIamV1Binding(o[1]);
@@ -1064,7 +1000,7 @@
var o = new api.GoogleIamV1Policy();
buildCounterGoogleIamV1Policy++;
if (buildCounterGoogleIamV1Policy < 3) {
- o.bindings = buildUnnamed23();
+ o.bindings = buildUnnamed2805();
o.etag = "foo";
o.version = 42;
}
@@ -1075,7 +1011,7 @@
checkGoogleIamV1Policy(api.GoogleIamV1Policy o) {
buildCounterGoogleIamV1Policy++;
if (buildCounterGoogleIamV1Policy < 3) {
- checkUnnamed23(o.bindings);
+ checkUnnamed2805(o.bindings);
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.version, unittest.equals(42));
}
@@ -1088,7 +1024,6 @@
buildCounterGoogleIamV1SetIamPolicyRequest++;
if (buildCounterGoogleIamV1SetIamPolicyRequest < 3) {
o.policy = buildGoogleIamV1Policy();
- o.updateMask = "foo";
}
buildCounterGoogleIamV1SetIamPolicyRequest--;
return o;
@@ -1098,19 +1033,18 @@
buildCounterGoogleIamV1SetIamPolicyRequest++;
if (buildCounterGoogleIamV1SetIamPolicyRequest < 3) {
checkGoogleIamV1Policy(o.policy);
- unittest.expect(o.updateMask, unittest.equals('foo'));
}
buildCounterGoogleIamV1SetIamPolicyRequest--;
}
-buildUnnamed24() {
+buildUnnamed2806() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed24(core.List<core.String> o) {
+checkUnnamed2806(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'));
@@ -1121,7 +1055,7 @@
var o = new api.GoogleIamV1TestIamPermissionsRequest();
buildCounterGoogleIamV1TestIamPermissionsRequest++;
if (buildCounterGoogleIamV1TestIamPermissionsRequest < 3) {
- o.permissions = buildUnnamed24();
+ o.permissions = buildUnnamed2806();
}
buildCounterGoogleIamV1TestIamPermissionsRequest--;
return o;
@@ -1131,19 +1065,19 @@
api.GoogleIamV1TestIamPermissionsRequest o) {
buildCounterGoogleIamV1TestIamPermissionsRequest++;
if (buildCounterGoogleIamV1TestIamPermissionsRequest < 3) {
- checkUnnamed24(o.permissions);
+ checkUnnamed2806(o.permissions);
}
buildCounterGoogleIamV1TestIamPermissionsRequest--;
}
-buildUnnamed25() {
+buildUnnamed2807() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed25(core.List<core.String> o) {
+checkUnnamed2807(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'));
@@ -1154,7 +1088,7 @@
var o = new api.GoogleIamV1TestIamPermissionsResponse();
buildCounterGoogleIamV1TestIamPermissionsResponse++;
if (buildCounterGoogleIamV1TestIamPermissionsResponse < 3) {
- o.permissions = buildUnnamed25();
+ o.permissions = buildUnnamed2807();
}
buildCounterGoogleIamV1TestIamPermissionsResponse--;
return o;
@@ -1164,19 +1098,19 @@
api.GoogleIamV1TestIamPermissionsResponse o) {
buildCounterGoogleIamV1TestIamPermissionsResponse++;
if (buildCounterGoogleIamV1TestIamPermissionsResponse < 3) {
- checkUnnamed25(o.permissions);
+ checkUnnamed2807(o.permissions);
}
buildCounterGoogleIamV1TestIamPermissionsResponse--;
}
-buildUnnamed26() {
+buildUnnamed2808() {
var o = new core.List<api.GoogleLongrunningOperation>();
o.add(buildGoogleLongrunningOperation());
o.add(buildGoogleLongrunningOperation());
return o;
}
-checkUnnamed26(core.List<api.GoogleLongrunningOperation> o) {
+checkUnnamed2808(core.List<api.GoogleLongrunningOperation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleLongrunningOperation(o[0]);
checkGoogleLongrunningOperation(o[1]);
@@ -1188,7 +1122,7 @@
buildCounterGoogleLongrunningListOperationsResponse++;
if (buildCounterGoogleLongrunningListOperationsResponse < 3) {
o.nextPageToken = "foo";
- o.operations = buildUnnamed26();
+ o.operations = buildUnnamed2808();
}
buildCounterGoogleLongrunningListOperationsResponse--;
return o;
@@ -1199,12 +1133,12 @@
buildCounterGoogleLongrunningListOperationsResponse++;
if (buildCounterGoogleLongrunningListOperationsResponse < 3) {
unittest.expect(o.nextPageToken, unittest.equals('foo'));
- checkUnnamed26(o.operations);
+ checkUnnamed2808(o.operations);
}
buildCounterGoogleLongrunningListOperationsResponse--;
}
-buildUnnamed27() {
+buildUnnamed2809() {
var o = new core.Map<core.String, core.Object>();
o["x"] = {
'list': [1, 2, 3],
@@ -1219,7 +1153,7 @@
return o;
}
-checkUnnamed27(core.Map<core.String, core.Object> o) {
+checkUnnamed2809(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));
@@ -1233,7 +1167,7 @@
unittest.expect(casted4["string"], unittest.equals('foo'));
}
-buildUnnamed28() {
+buildUnnamed2810() {
var o = new core.Map<core.String, core.Object>();
o["x"] = {
'list': [1, 2, 3],
@@ -1248,7 +1182,7 @@
return o;
}
-checkUnnamed28(core.Map<core.String, core.Object> o) {
+checkUnnamed2810(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));
@@ -1269,9 +1203,9 @@
if (buildCounterGoogleLongrunningOperation < 3) {
o.done = true;
o.error = buildGoogleRpcStatus();
- o.metadata = buildUnnamed27();
+ o.metadata = buildUnnamed2809();
o.name = "foo";
- o.response = buildUnnamed28();
+ o.response = buildUnnamed2810();
}
buildCounterGoogleLongrunningOperation--;
return o;
@@ -1282,9 +1216,9 @@
if (buildCounterGoogleLongrunningOperation < 3) {
unittest.expect(o.done, unittest.isTrue);
checkGoogleRpcStatus(o.error);
- checkUnnamed27(o.metadata);
+ checkUnnamed2809(o.metadata);
unittest.expect(o.name, unittest.equals('foo'));
- checkUnnamed28(o.response);
+ checkUnnamed2810(o.response);
}
buildCounterGoogleLongrunningOperation--;
}
@@ -1304,7 +1238,7 @@
buildCounterGoogleProtobufEmpty--;
}
-buildUnnamed29() {
+buildUnnamed2811() {
var o = new core.Map<core.String, core.Object>();
o["x"] = {
'list': [1, 2, 3],
@@ -1319,7 +1253,7 @@
return o;
}
-checkUnnamed29(core.Map<core.String, core.Object> o) {
+checkUnnamed2811(core.Map<core.String, core.Object> o) {
unittest.expect(o, unittest.hasLength(2));
var casted7 = (o["x"]) as core.Map;
unittest.expect(casted7, unittest.hasLength(3));
@@ -1333,17 +1267,17 @@
unittest.expect(casted8["string"], unittest.equals('foo'));
}
-buildUnnamed30() {
+buildUnnamed2812() {
var o = new core.List<core.Map<core.String, core.Object>>();
- o.add(buildUnnamed29());
- o.add(buildUnnamed29());
+ o.add(buildUnnamed2811());
+ o.add(buildUnnamed2811());
return o;
}
-checkUnnamed30(core.List<core.Map<core.String, core.Object>> o) {
+checkUnnamed2812(core.List<core.Map<core.String, core.Object>> o) {
unittest.expect(o, unittest.hasLength(2));
- checkUnnamed29(o[0]);
- checkUnnamed29(o[1]);
+ checkUnnamed2811(o[0]);
+ checkUnnamed2811(o[1]);
}
core.int buildCounterGoogleRpcStatus = 0;
@@ -1352,7 +1286,7 @@
buildCounterGoogleRpcStatus++;
if (buildCounterGoogleRpcStatus < 3) {
o.code = 42;
- o.details = buildUnnamed30();
+ o.details = buildUnnamed2812();
o.message = "foo";
}
buildCounterGoogleRpcStatus--;
@@ -1363,37 +1297,12 @@
buildCounterGoogleRpcStatus++;
if (buildCounterGoogleRpcStatus < 3) {
unittest.expect(o.code, unittest.equals(42));
- checkUnnamed30(o.details);
+ checkUnnamed2812(o.details);
unittest.expect(o.message, unittest.equals('foo'));
}
buildCounterGoogleRpcStatus--;
}
-core.int buildCounterGoogleTypeExpr = 0;
-buildGoogleTypeExpr() {
- var o = new api.GoogleTypeExpr();
- buildCounterGoogleTypeExpr++;
- if (buildCounterGoogleTypeExpr < 3) {
- o.description = "foo";
- o.expression = "foo";
- o.location = "foo";
- o.title = "foo";
- }
- buildCounterGoogleTypeExpr--;
- return o;
-}
-
-checkGoogleTypeExpr(api.GoogleTypeExpr o) {
- buildCounterGoogleTypeExpr++;
- if (buildCounterGoogleTypeExpr < 3) {
- unittest.expect(o.description, unittest.equals('foo'));
- unittest.expect(o.expression, unittest.equals('foo'));
- unittest.expect(o.location, unittest.equals('foo'));
- unittest.expect(o.title, unittest.equals('foo'));
- }
- buildCounterGoogleTypeExpr--;
-}
-
main() {
unittest.group("obj-schema-GoogleApiHttpBody", () {
unittest.test("to-json--from-json", () {
@@ -1675,14 +1584,6 @@
});
});
- unittest.group("obj-schema-GoogleTypeExpr", () {
- unittest.test("to-json--from-json", () {
- var o = buildGoogleTypeExpr();
- var od = new api.GoogleTypeExpr.fromJson(o.toJson());
- checkGoogleTypeExpr(od);
- });
- });
-
unittest.group("resource-ProjectsResourceApi", () {
unittest.test("method--getConfig", () {
var mock = new HttpServerMock();
@@ -2067,65 +1968,6 @@
})));
});
- unittest.test("method--patch", () {
- var mock = new HttpServerMock();
- api.ProjectsJobsResourceApi res = new api.MlApi(mock).projects.jobs;
- var arg_request = buildGoogleCloudMlV1Job();
- var arg_name = "foo";
- var arg_updateMask = "foo";
- var arg_$fields = "foo";
- mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
- var obj = new api.GoogleCloudMlV1Job.fromJson(json);
- checkGoogleCloudMlV1Job(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("v1/"));
- 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["updateMask"].first, unittest.equals(arg_updateMask));
- unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
-
- var h = {
- "content-type": "application/json; charset=utf-8",
- };
- var resp = convert.JSON.encode(buildGoogleCloudMlV1Job());
- return new async.Future.value(stringResponse(200, h, resp));
- }), true);
- res
- .patch(arg_request, arg_name,
- updateMask: arg_updateMask, $fields: arg_$fields)
- .then(unittest.expectAsync1(((api.GoogleCloudMlV1Job response) {
- checkGoogleCloudMlV1Job(response);
- })));
- });
-
unittest.test("method--setIamPolicy", () {
var mock = new HttpServerMock();
api.ProjectsJobsResourceApi res = new api.MlApi(mock).projects.jobs;
@@ -2297,8 +2139,8 @@
api.ProjectsLocationsResourceApi res =
new api.MlApi(mock).projects.locations;
var arg_parent = "foo";
- var arg_pageToken = "foo";
var arg_pageSize = 42;
+ var arg_pageToken = "foo";
var arg_$fields = "foo";
mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var path = (req.url).path;
@@ -2331,10 +2173,10 @@
core.Uri.decodeQueryComponent(keyvalue[1]));
}
}
- unittest.expect(
- queryMap["pageToken"].first, unittest.equals(arg_pageToken));
unittest.expect(core.int.parse(queryMap["pageSize"].first),
unittest.equals(arg_pageSize));
+ unittest.expect(
+ queryMap["pageToken"].first, unittest.equals(arg_pageToken));
unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
var h = {
@@ -2346,8 +2188,8 @@
}), true);
res
.list(arg_parent,
- pageToken: arg_pageToken,
pageSize: arg_pageSize,
+ pageToken: arg_pageToken,
$fields: arg_$fields)
.then(unittest.expectAsync1(
((api.GoogleCloudMlV1ListLocationsResponse response) {
@@ -2568,9 +2410,9 @@
var mock = new HttpServerMock();
api.ProjectsModelsResourceApi res = new api.MlApi(mock).projects.models;
var arg_parent = "foo";
- var arg_filter = "foo";
var arg_pageToken = "foo";
var arg_pageSize = 42;
+ var arg_filter = "foo";
var arg_$fields = "foo";
mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var path = (req.url).path;
@@ -2603,11 +2445,11 @@
core.Uri.decodeQueryComponent(keyvalue[1]));
}
}
- unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
unittest.expect(
queryMap["pageToken"].first, unittest.equals(arg_pageToken));
unittest.expect(core.int.parse(queryMap["pageSize"].first),
unittest.equals(arg_pageSize));
+ unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
var h = {
@@ -2619,9 +2461,9 @@
}), true);
res
.list(arg_parent,
- filter: arg_filter,
pageToken: arg_pageToken,
pageSize: arg_pageSize,
+ filter: arg_filter,
$fields: arg_$fields)
.then(unittest
.expectAsync1(((api.GoogleCloudMlV1ListModelsResponse response) {
@@ -2966,9 +2808,9 @@
api.ProjectsModelsVersionsResourceApi res =
new api.MlApi(mock).projects.models.versions;
var arg_parent = "foo";
+ var arg_pageToken = "foo";
var arg_pageSize = 42;
var arg_filter = "foo";
- var arg_pageToken = "foo";
var arg_$fields = "foo";
mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var path = (req.url).path;
@@ -3001,11 +2843,11 @@
core.Uri.decodeQueryComponent(keyvalue[1]));
}
}
+ unittest.expect(
+ queryMap["pageToken"].first, unittest.equals(arg_pageToken));
unittest.expect(core.int.parse(queryMap["pageSize"].first),
unittest.equals(arg_pageSize));
unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
- unittest.expect(
- queryMap["pageToken"].first, unittest.equals(arg_pageToken));
unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
var h = {
@@ -3017,9 +2859,9 @@
}), true);
res
.list(arg_parent,
+ pageToken: arg_pageToken,
pageSize: arg_pageSize,
filter: arg_filter,
- pageToken: arg_pageToken,
$fields: arg_$fields)
.then(unittest.expectAsync1(
((api.GoogleCloudMlV1ListVersionsResponse response) {