Api-roll 64: 2018-08-27
diff --git a/generated/googleapis/test/ml/v1_test.dart b/generated/googleapis/test/ml/v1_test.dart
index 3c6a85c..a2b13ca 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);
}
-buildUnnamed3438() {
+buildUnnamed3858() {
var o = new core.Map<core.String, core.Object>();
o["x"] = {
'list': [1, 2, 3],
@@ -65,7 +65,7 @@
return o;
}
-checkUnnamed3438(core.Map<core.String, core.Object> o) {
+checkUnnamed3858(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'));
}
-buildUnnamed3439() {
+buildUnnamed3859() {
var o = new core.List<core.Map<core.String, core.Object>>();
- o.add(buildUnnamed3438());
- o.add(buildUnnamed3438());
+ o.add(buildUnnamed3858());
+ o.add(buildUnnamed3858());
return o;
}
-checkUnnamed3439(core.List<core.Map<core.String, core.Object>> o) {
+checkUnnamed3859(core.List<core.Map<core.String, core.Object>> o) {
unittest.expect(o, unittest.hasLength(2));
- checkUnnamed3438(o[0]);
- checkUnnamed3438(o[1]);
+ checkUnnamed3858(o[0]);
+ checkUnnamed3858(o[1]);
}
core.int buildCounterGoogleApiHttpBody = 0;
@@ -99,7 +99,7 @@
if (buildCounterGoogleApiHttpBody < 3) {
o.contentType = "foo";
o.data = "foo";
- o.extensions = buildUnnamed3439();
+ o.extensions = buildUnnamed3859();
}
buildCounterGoogleApiHttpBody--;
return o;
@@ -110,7 +110,7 @@
if (buildCounterGoogleApiHttpBody < 3) {
unittest.expect(o.contentType, unittest.equals('foo'));
unittest.expect(o.data, unittest.equals('foo'));
- checkUnnamed3439(o.extensions);
+ checkUnnamed3859(o.extensions);
}
buildCounterGoogleApiHttpBody--;
}
@@ -138,6 +138,27 @@
buildCounterGoogleCloudMlV1HyperparameterOutputHyperparameterMetric--;
}
+core.int buildCounterGoogleCloudMlV1AcceleratorConfig = 0;
+buildGoogleCloudMlV1AcceleratorConfig() {
+ var o = new api.GoogleCloudMlV1AcceleratorConfig();
+ buildCounterGoogleCloudMlV1AcceleratorConfig++;
+ if (buildCounterGoogleCloudMlV1AcceleratorConfig < 3) {
+ o.count = "foo";
+ o.type = "foo";
+ }
+ buildCounterGoogleCloudMlV1AcceleratorConfig--;
+ return o;
+}
+
+checkGoogleCloudMlV1AcceleratorConfig(api.GoogleCloudMlV1AcceleratorConfig o) {
+ buildCounterGoogleCloudMlV1AcceleratorConfig++;
+ if (buildCounterGoogleCloudMlV1AcceleratorConfig < 3) {
+ unittest.expect(o.count, unittest.equals('foo'));
+ unittest.expect(o.type, unittest.equals('foo'));
+ }
+ buildCounterGoogleCloudMlV1AcceleratorConfig--;
+}
+
core.int buildCounterGoogleCloudMlV1AutoScaling = 0;
buildGoogleCloudMlV1AutoScaling() {
var o = new api.GoogleCloudMlV1AutoScaling();
@@ -172,14 +193,14 @@
buildCounterGoogleCloudMlV1CancelJobRequest--;
}
-buildUnnamed3440() {
+buildUnnamed3860() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3440(core.List<core.String> o) {
+checkUnnamed3860(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 +211,7 @@
var o = new api.GoogleCloudMlV1Capability();
buildCounterGoogleCloudMlV1Capability++;
if (buildCounterGoogleCloudMlV1Capability < 3) {
- o.availableAccelerators = buildUnnamed3440();
+ o.availableAccelerators = buildUnnamed3860();
o.type = "foo";
}
buildCounterGoogleCloudMlV1Capability--;
@@ -200,7 +221,7 @@
checkGoogleCloudMlV1Capability(api.GoogleCloudMlV1Capability o) {
buildCounterGoogleCloudMlV1Capability++;
if (buildCounterGoogleCloudMlV1Capability < 3) {
- checkUnnamed3440(o.availableAccelerators);
+ checkUnnamed3860(o.availableAccelerators);
unittest.expect(o.type, unittest.equals('foo'));
}
buildCounterGoogleCloudMlV1Capability--;
@@ -248,7 +269,7 @@
buildCounterGoogleCloudMlV1GetConfigResponse--;
}
-buildUnnamed3441() {
+buildUnnamed3861() {
var o = new core
.List<api.GoogleCloudMlV1HyperparameterOutputHyperparameterMetric>();
o.add(buildGoogleCloudMlV1HyperparameterOutputHyperparameterMetric());
@@ -256,21 +277,21 @@
return o;
}
-checkUnnamed3441(
+checkUnnamed3861(
core.List<api.GoogleCloudMlV1HyperparameterOutputHyperparameterMetric> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(o[0]);
checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(o[1]);
}
-buildUnnamed3442() {
+buildUnnamed3862() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed3442(core.Map<core.String, core.String> o) {
+checkUnnamed3862(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'));
@@ -281,10 +302,10 @@
var o = new api.GoogleCloudMlV1HyperparameterOutput();
buildCounterGoogleCloudMlV1HyperparameterOutput++;
if (buildCounterGoogleCloudMlV1HyperparameterOutput < 3) {
- o.allMetrics = buildUnnamed3441();
+ o.allMetrics = buildUnnamed3861();
o.finalMetric =
buildGoogleCloudMlV1HyperparameterOutputHyperparameterMetric();
- o.hyperparameters = buildUnnamed3442();
+ o.hyperparameters = buildUnnamed3862();
o.isTrialStoppedEarly = true;
o.trialId = "foo";
}
@@ -296,23 +317,23 @@
api.GoogleCloudMlV1HyperparameterOutput o) {
buildCounterGoogleCloudMlV1HyperparameterOutput++;
if (buildCounterGoogleCloudMlV1HyperparameterOutput < 3) {
- checkUnnamed3441(o.allMetrics);
+ checkUnnamed3861(o.allMetrics);
checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(o.finalMetric);
- checkUnnamed3442(o.hyperparameters);
+ checkUnnamed3862(o.hyperparameters);
unittest.expect(o.isTrialStoppedEarly, unittest.isTrue);
unittest.expect(o.trialId, unittest.equals('foo'));
}
buildCounterGoogleCloudMlV1HyperparameterOutput--;
}
-buildUnnamed3443() {
+buildUnnamed3863() {
var o = new core.List<api.GoogleCloudMlV1ParameterSpec>();
o.add(buildGoogleCloudMlV1ParameterSpec());
o.add(buildGoogleCloudMlV1ParameterSpec());
return o;
}
-checkUnnamed3443(core.List<api.GoogleCloudMlV1ParameterSpec> o) {
+checkUnnamed3863(core.List<api.GoogleCloudMlV1ParameterSpec> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1ParameterSpec(o[0]);
checkGoogleCloudMlV1ParameterSpec(o[1]);
@@ -329,7 +350,7 @@
o.hyperparameterMetricTag = "foo";
o.maxParallelTrials = 42;
o.maxTrials = 42;
- o.params = buildUnnamed3443();
+ o.params = buildUnnamed3863();
o.resumePreviousJobId = "foo";
}
buildCounterGoogleCloudMlV1HyperparameterSpec--;
@@ -346,12 +367,25 @@
unittest.expect(o.hyperparameterMetricTag, unittest.equals('foo'));
unittest.expect(o.maxParallelTrials, unittest.equals(42));
unittest.expect(o.maxTrials, unittest.equals(42));
- checkUnnamed3443(o.params);
+ checkUnnamed3863(o.params);
unittest.expect(o.resumePreviousJobId, unittest.equals('foo'));
}
buildCounterGoogleCloudMlV1HyperparameterSpec--;
}
+buildUnnamed3864() {
+ var o = new core.Map<core.String, core.String>();
+ o["x"] = "foo";
+ o["y"] = "foo";
+ return o;
+}
+
+checkUnnamed3864(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();
@@ -360,7 +394,9 @@
o.createTime = "foo";
o.endTime = "foo";
o.errorMessage = "foo";
+ o.etag = "foo";
o.jobId = "foo";
+ o.labels = buildUnnamed3864();
o.predictionInput = buildGoogleCloudMlV1PredictionInput();
o.predictionOutput = buildGoogleCloudMlV1PredictionOutput();
o.startTime = "foo";
@@ -378,7 +414,9 @@
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'));
+ checkUnnamed3864(o.labels);
checkGoogleCloudMlV1PredictionInput(o.predictionInput);
checkGoogleCloudMlV1PredictionOutput(o.predictionOutput);
unittest.expect(o.startTime, unittest.equals('foo'));
@@ -389,14 +427,14 @@
buildCounterGoogleCloudMlV1Job--;
}
-buildUnnamed3444() {
+buildUnnamed3865() {
var o = new core.List<api.GoogleCloudMlV1Job>();
o.add(buildGoogleCloudMlV1Job());
o.add(buildGoogleCloudMlV1Job());
return o;
}
-checkUnnamed3444(core.List<api.GoogleCloudMlV1Job> o) {
+checkUnnamed3865(core.List<api.GoogleCloudMlV1Job> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1Job(o[0]);
checkGoogleCloudMlV1Job(o[1]);
@@ -407,7 +445,7 @@
var o = new api.GoogleCloudMlV1ListJobsResponse();
buildCounterGoogleCloudMlV1ListJobsResponse++;
if (buildCounterGoogleCloudMlV1ListJobsResponse < 3) {
- o.jobs = buildUnnamed3444();
+ o.jobs = buildUnnamed3865();
o.nextPageToken = "foo";
}
buildCounterGoogleCloudMlV1ListJobsResponse--;
@@ -417,20 +455,20 @@
checkGoogleCloudMlV1ListJobsResponse(api.GoogleCloudMlV1ListJobsResponse o) {
buildCounterGoogleCloudMlV1ListJobsResponse++;
if (buildCounterGoogleCloudMlV1ListJobsResponse < 3) {
- checkUnnamed3444(o.jobs);
+ checkUnnamed3865(o.jobs);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
buildCounterGoogleCloudMlV1ListJobsResponse--;
}
-buildUnnamed3445() {
+buildUnnamed3866() {
var o = new core.List<api.GoogleCloudMlV1Location>();
o.add(buildGoogleCloudMlV1Location());
o.add(buildGoogleCloudMlV1Location());
return o;
}
-checkUnnamed3445(core.List<api.GoogleCloudMlV1Location> o) {
+checkUnnamed3866(core.List<api.GoogleCloudMlV1Location> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1Location(o[0]);
checkGoogleCloudMlV1Location(o[1]);
@@ -441,7 +479,7 @@
var o = new api.GoogleCloudMlV1ListLocationsResponse();
buildCounterGoogleCloudMlV1ListLocationsResponse++;
if (buildCounterGoogleCloudMlV1ListLocationsResponse < 3) {
- o.locations = buildUnnamed3445();
+ o.locations = buildUnnamed3866();
o.nextPageToken = "foo";
}
buildCounterGoogleCloudMlV1ListLocationsResponse--;
@@ -452,20 +490,20 @@
api.GoogleCloudMlV1ListLocationsResponse o) {
buildCounterGoogleCloudMlV1ListLocationsResponse++;
if (buildCounterGoogleCloudMlV1ListLocationsResponse < 3) {
- checkUnnamed3445(o.locations);
+ checkUnnamed3866(o.locations);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
buildCounterGoogleCloudMlV1ListLocationsResponse--;
}
-buildUnnamed3446() {
+buildUnnamed3867() {
var o = new core.List<api.GoogleCloudMlV1Model>();
o.add(buildGoogleCloudMlV1Model());
o.add(buildGoogleCloudMlV1Model());
return o;
}
-checkUnnamed3446(core.List<api.GoogleCloudMlV1Model> o) {
+checkUnnamed3867(core.List<api.GoogleCloudMlV1Model> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1Model(o[0]);
checkGoogleCloudMlV1Model(o[1]);
@@ -476,7 +514,7 @@
var o = new api.GoogleCloudMlV1ListModelsResponse();
buildCounterGoogleCloudMlV1ListModelsResponse++;
if (buildCounterGoogleCloudMlV1ListModelsResponse < 3) {
- o.models = buildUnnamed3446();
+ o.models = buildUnnamed3867();
o.nextPageToken = "foo";
}
buildCounterGoogleCloudMlV1ListModelsResponse--;
@@ -487,20 +525,20 @@
api.GoogleCloudMlV1ListModelsResponse o) {
buildCounterGoogleCloudMlV1ListModelsResponse++;
if (buildCounterGoogleCloudMlV1ListModelsResponse < 3) {
- checkUnnamed3446(o.models);
+ checkUnnamed3867(o.models);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
buildCounterGoogleCloudMlV1ListModelsResponse--;
}
-buildUnnamed3447() {
+buildUnnamed3868() {
var o = new core.List<api.GoogleCloudMlV1Version>();
o.add(buildGoogleCloudMlV1Version());
o.add(buildGoogleCloudMlV1Version());
return o;
}
-checkUnnamed3447(core.List<api.GoogleCloudMlV1Version> o) {
+checkUnnamed3868(core.List<api.GoogleCloudMlV1Version> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1Version(o[0]);
checkGoogleCloudMlV1Version(o[1]);
@@ -512,7 +550,7 @@
buildCounterGoogleCloudMlV1ListVersionsResponse++;
if (buildCounterGoogleCloudMlV1ListVersionsResponse < 3) {
o.nextPageToken = "foo";
- o.versions = buildUnnamed3447();
+ o.versions = buildUnnamed3868();
}
buildCounterGoogleCloudMlV1ListVersionsResponse--;
return o;
@@ -523,19 +561,19 @@
buildCounterGoogleCloudMlV1ListVersionsResponse++;
if (buildCounterGoogleCloudMlV1ListVersionsResponse < 3) {
unittest.expect(o.nextPageToken, unittest.equals('foo'));
- checkUnnamed3447(o.versions);
+ checkUnnamed3868(o.versions);
}
buildCounterGoogleCloudMlV1ListVersionsResponse--;
}
-buildUnnamed3448() {
+buildUnnamed3869() {
var o = new core.List<api.GoogleCloudMlV1Capability>();
o.add(buildGoogleCloudMlV1Capability());
o.add(buildGoogleCloudMlV1Capability());
return o;
}
-checkUnnamed3448(core.List<api.GoogleCloudMlV1Capability> o) {
+checkUnnamed3869(core.List<api.GoogleCloudMlV1Capability> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1Capability(o[0]);
checkGoogleCloudMlV1Capability(o[1]);
@@ -546,7 +584,7 @@
var o = new api.GoogleCloudMlV1Location();
buildCounterGoogleCloudMlV1Location++;
if (buildCounterGoogleCloudMlV1Location < 3) {
- o.capabilities = buildUnnamed3448();
+ o.capabilities = buildUnnamed3869();
o.name = "foo";
}
buildCounterGoogleCloudMlV1Location--;
@@ -556,7 +594,7 @@
checkGoogleCloudMlV1Location(api.GoogleCloudMlV1Location o) {
buildCounterGoogleCloudMlV1Location++;
if (buildCounterGoogleCloudMlV1Location < 3) {
- checkUnnamed3448(o.capabilities);
+ checkUnnamed3869(o.capabilities);
unittest.expect(o.name, unittest.equals('foo'));
}
buildCounterGoogleCloudMlV1Location--;
@@ -581,14 +619,27 @@
buildCounterGoogleCloudMlV1ManualScaling--;
}
-buildUnnamed3449() {
+buildUnnamed3870() {
+ var o = new core.Map<core.String, core.String>();
+ o["x"] = "foo";
+ o["y"] = "foo";
+ return o;
+}
+
+checkUnnamed3870(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'));
+}
+
+buildUnnamed3871() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3449(core.List<core.String> o) {
+checkUnnamed3871(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'));
@@ -601,9 +652,11 @@
if (buildCounterGoogleCloudMlV1Model < 3) {
o.defaultVersion = buildGoogleCloudMlV1Version();
o.description = "foo";
+ o.etag = "foo";
+ o.labels = buildUnnamed3870();
o.name = "foo";
o.onlinePredictionLogging = true;
- o.regions = buildUnnamed3449();
+ o.regions = buildUnnamed3871();
}
buildCounterGoogleCloudMlV1Model--;
return o;
@@ -614,13 +667,28 @@
if (buildCounterGoogleCloudMlV1Model < 3) {
checkGoogleCloudMlV1Version(o.defaultVersion);
unittest.expect(o.description, unittest.equals('foo'));
+ unittest.expect(o.etag, unittest.equals('foo'));
+ checkUnnamed3870(o.labels);
unittest.expect(o.name, unittest.equals('foo'));
unittest.expect(o.onlinePredictionLogging, unittest.isTrue);
- checkUnnamed3449(o.regions);
+ checkUnnamed3871(o.regions);
}
buildCounterGoogleCloudMlV1Model--;
}
+buildUnnamed3872() {
+ var o = new core.Map<core.String, core.String>();
+ o["x"] = "foo";
+ o["y"] = "foo";
+ return o;
+}
+
+checkUnnamed3872(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();
@@ -629,6 +697,7 @@
o.createTime = "foo";
o.endTime = "foo";
o.isCancellationRequested = true;
+ o.labels = buildUnnamed3872();
o.modelName = "foo";
o.operationType = "foo";
o.projectNumber = "foo";
@@ -645,6 +714,7 @@
unittest.expect(o.createTime, unittest.equals('foo'));
unittest.expect(o.endTime, unittest.equals('foo'));
unittest.expect(o.isCancellationRequested, unittest.isTrue);
+ checkUnnamed3872(o.labels);
unittest.expect(o.modelName, unittest.equals('foo'));
unittest.expect(o.operationType, unittest.equals('foo'));
unittest.expect(o.projectNumber, unittest.equals('foo'));
@@ -654,27 +724,27 @@
buildCounterGoogleCloudMlV1OperationMetadata--;
}
-buildUnnamed3450() {
+buildUnnamed3873() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3450(core.List<core.String> o) {
+checkUnnamed3873(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'));
}
-buildUnnamed3451() {
+buildUnnamed3874() {
var o = new core.List<core.double>();
o.add(42.0);
o.add(42.0);
return o;
}
-checkUnnamed3451(core.List<core.double> o) {
+checkUnnamed3874(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));
@@ -685,8 +755,8 @@
var o = new api.GoogleCloudMlV1ParameterSpec();
buildCounterGoogleCloudMlV1ParameterSpec++;
if (buildCounterGoogleCloudMlV1ParameterSpec < 3) {
- o.categoricalValues = buildUnnamed3450();
- o.discreteValues = buildUnnamed3451();
+ o.categoricalValues = buildUnnamed3873();
+ o.discreteValues = buildUnnamed3874();
o.maxValue = 42.0;
o.minValue = 42.0;
o.parameterName = "foo";
@@ -700,8 +770,8 @@
checkGoogleCloudMlV1ParameterSpec(api.GoogleCloudMlV1ParameterSpec o) {
buildCounterGoogleCloudMlV1ParameterSpec++;
if (buildCounterGoogleCloudMlV1ParameterSpec < 3) {
- checkUnnamed3450(o.categoricalValues);
- checkUnnamed3451(o.discreteValues);
+ checkUnnamed3873(o.categoricalValues);
+ checkUnnamed3874(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'));
@@ -730,14 +800,14 @@
buildCounterGoogleCloudMlV1PredictRequest--;
}
-buildUnnamed3452() {
+buildUnnamed3875() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3452(core.List<core.String> o) {
+checkUnnamed3875(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'));
@@ -748,9 +818,10 @@
var o = new api.GoogleCloudMlV1PredictionInput();
buildCounterGoogleCloudMlV1PredictionInput++;
if (buildCounterGoogleCloudMlV1PredictionInput < 3) {
+ o.accelerator = buildGoogleCloudMlV1AcceleratorConfig();
o.batchSize = "foo";
o.dataFormat = "foo";
- o.inputPaths = buildUnnamed3452();
+ o.inputPaths = buildUnnamed3875();
o.maxWorkerCount = "foo";
o.modelName = "foo";
o.outputPath = "foo";
@@ -767,9 +838,10 @@
checkGoogleCloudMlV1PredictionInput(api.GoogleCloudMlV1PredictionInput o) {
buildCounterGoogleCloudMlV1PredictionInput++;
if (buildCounterGoogleCloudMlV1PredictionInput < 3) {
+ checkGoogleCloudMlV1AcceleratorConfig(o.accelerator);
unittest.expect(o.batchSize, unittest.equals('foo'));
unittest.expect(o.dataFormat, unittest.equals('foo'));
- checkUnnamed3452(o.inputPaths);
+ checkUnnamed3875(o.inputPaths);
unittest.expect(o.maxWorkerCount, unittest.equals('foo'));
unittest.expect(o.modelName, unittest.equals('foo'));
unittest.expect(o.outputPath, unittest.equals('foo'));
@@ -823,27 +895,27 @@
buildCounterGoogleCloudMlV1SetDefaultVersionRequest--;
}
-buildUnnamed3453() {
+buildUnnamed3876() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3453(core.List<core.String> o) {
+checkUnnamed3876(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'));
}
-buildUnnamed3454() {
+buildUnnamed3877() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3454(core.List<core.String> o) {
+checkUnnamed3877(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'));
@@ -854,11 +926,11 @@
var o = new api.GoogleCloudMlV1TrainingInput();
buildCounterGoogleCloudMlV1TrainingInput++;
if (buildCounterGoogleCloudMlV1TrainingInput < 3) {
- o.args = buildUnnamed3453();
+ o.args = buildUnnamed3876();
o.hyperparameters = buildGoogleCloudMlV1HyperparameterSpec();
o.jobDir = "foo";
o.masterType = "foo";
- o.packageUris = buildUnnamed3454();
+ o.packageUris = buildUnnamed3877();
o.parameterServerCount = "foo";
o.parameterServerType = "foo";
o.pythonModule = "foo";
@@ -876,11 +948,11 @@
checkGoogleCloudMlV1TrainingInput(api.GoogleCloudMlV1TrainingInput o) {
buildCounterGoogleCloudMlV1TrainingInput++;
if (buildCounterGoogleCloudMlV1TrainingInput < 3) {
- checkUnnamed3453(o.args);
+ checkUnnamed3876(o.args);
checkGoogleCloudMlV1HyperparameterSpec(o.hyperparameters);
unittest.expect(o.jobDir, unittest.equals('foo'));
unittest.expect(o.masterType, unittest.equals('foo'));
- checkUnnamed3454(o.packageUris);
+ checkUnnamed3877(o.packageUris);
unittest.expect(o.parameterServerCount, unittest.equals('foo'));
unittest.expect(o.parameterServerType, unittest.equals('foo'));
unittest.expect(o.pythonModule, unittest.equals('foo'));
@@ -894,14 +966,14 @@
buildCounterGoogleCloudMlV1TrainingInput--;
}
-buildUnnamed3455() {
+buildUnnamed3878() {
var o = new core.List<api.GoogleCloudMlV1HyperparameterOutput>();
o.add(buildGoogleCloudMlV1HyperparameterOutput());
o.add(buildGoogleCloudMlV1HyperparameterOutput());
return o;
}
-checkUnnamed3455(core.List<api.GoogleCloudMlV1HyperparameterOutput> o) {
+checkUnnamed3878(core.List<api.GoogleCloudMlV1HyperparameterOutput> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudMlV1HyperparameterOutput(o[0]);
checkGoogleCloudMlV1HyperparameterOutput(o[1]);
@@ -915,7 +987,7 @@
o.completedTrialCount = "foo";
o.consumedMLUnits = 42.0;
o.isHyperparameterTuningJob = true;
- o.trials = buildUnnamed3455();
+ o.trials = buildUnnamed3878();
}
buildCounterGoogleCloudMlV1TrainingOutput--;
return o;
@@ -927,11 +999,24 @@
unittest.expect(o.completedTrialCount, unittest.equals('foo'));
unittest.expect(o.consumedMLUnits, unittest.equals(42.0));
unittest.expect(o.isHyperparameterTuningJob, unittest.isTrue);
- checkUnnamed3455(o.trials);
+ checkUnnamed3878(o.trials);
}
buildCounterGoogleCloudMlV1TrainingOutput--;
}
+buildUnnamed3879() {
+ var o = new core.Map<core.String, core.String>();
+ o["x"] = "foo";
+ o["y"] = "foo";
+ return o;
+}
+
+checkUnnamed3879(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();
@@ -942,9 +1027,12 @@
o.deploymentUri = "foo";
o.description = "foo";
o.errorMessage = "foo";
+ o.etag = "foo";
o.framework = "foo";
o.isDefault = true;
+ o.labels = buildUnnamed3879();
o.lastUseTime = "foo";
+ o.machineType = "foo";
o.manualScaling = buildGoogleCloudMlV1ManualScaling();
o.name = "foo";
o.pythonVersion = "foo";
@@ -963,9 +1051,12 @@
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.framework, unittest.equals('foo'));
unittest.expect(o.isDefault, unittest.isTrue);
+ checkUnnamed3879(o.labels);
unittest.expect(o.lastUseTime, unittest.equals('foo'));
+ unittest.expect(o.machineType, unittest.equals('foo'));
checkGoogleCloudMlV1ManualScaling(o.manualScaling);
unittest.expect(o.name, unittest.equals('foo'));
unittest.expect(o.pythonVersion, unittest.equals('foo'));
@@ -975,14 +1066,14 @@
buildCounterGoogleCloudMlV1Version--;
}
-buildUnnamed3456() {
+buildUnnamed3880() {
var o = new core.List<api.GoogleIamV1AuditLogConfig>();
o.add(buildGoogleIamV1AuditLogConfig());
o.add(buildGoogleIamV1AuditLogConfig());
return o;
}
-checkUnnamed3456(core.List<api.GoogleIamV1AuditLogConfig> o) {
+checkUnnamed3880(core.List<api.GoogleIamV1AuditLogConfig> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleIamV1AuditLogConfig(o[0]);
checkGoogleIamV1AuditLogConfig(o[1]);
@@ -993,7 +1084,7 @@
var o = new api.GoogleIamV1AuditConfig();
buildCounterGoogleIamV1AuditConfig++;
if (buildCounterGoogleIamV1AuditConfig < 3) {
- o.auditLogConfigs = buildUnnamed3456();
+ o.auditLogConfigs = buildUnnamed3880();
o.service = "foo";
}
buildCounterGoogleIamV1AuditConfig--;
@@ -1003,20 +1094,20 @@
checkGoogleIamV1AuditConfig(api.GoogleIamV1AuditConfig o) {
buildCounterGoogleIamV1AuditConfig++;
if (buildCounterGoogleIamV1AuditConfig < 3) {
- checkUnnamed3456(o.auditLogConfigs);
+ checkUnnamed3880(o.auditLogConfigs);
unittest.expect(o.service, unittest.equals('foo'));
}
buildCounterGoogleIamV1AuditConfig--;
}
-buildUnnamed3457() {
+buildUnnamed3881() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3457(core.List<core.String> o) {
+checkUnnamed3881(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'));
@@ -1027,7 +1118,7 @@
var o = new api.GoogleIamV1AuditLogConfig();
buildCounterGoogleIamV1AuditLogConfig++;
if (buildCounterGoogleIamV1AuditLogConfig < 3) {
- o.exemptedMembers = buildUnnamed3457();
+ o.exemptedMembers = buildUnnamed3881();
o.logType = "foo";
}
buildCounterGoogleIamV1AuditLogConfig--;
@@ -1037,20 +1128,20 @@
checkGoogleIamV1AuditLogConfig(api.GoogleIamV1AuditLogConfig o) {
buildCounterGoogleIamV1AuditLogConfig++;
if (buildCounterGoogleIamV1AuditLogConfig < 3) {
- checkUnnamed3457(o.exemptedMembers);
+ checkUnnamed3881(o.exemptedMembers);
unittest.expect(o.logType, unittest.equals('foo'));
}
buildCounterGoogleIamV1AuditLogConfig--;
}
-buildUnnamed3458() {
+buildUnnamed3882() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3458(core.List<core.String> o) {
+checkUnnamed3882(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'));
@@ -1061,7 +1152,8 @@
var o = new api.GoogleIamV1Binding();
buildCounterGoogleIamV1Binding++;
if (buildCounterGoogleIamV1Binding < 3) {
- o.members = buildUnnamed3458();
+ o.condition = buildGoogleTypeExpr();
+ o.members = buildUnnamed3882();
o.role = "foo";
}
buildCounterGoogleIamV1Binding--;
@@ -1071,33 +1163,34 @@
checkGoogleIamV1Binding(api.GoogleIamV1Binding o) {
buildCounterGoogleIamV1Binding++;
if (buildCounterGoogleIamV1Binding < 3) {
- checkUnnamed3458(o.members);
+ checkGoogleTypeExpr(o.condition);
+ checkUnnamed3882(o.members);
unittest.expect(o.role, unittest.equals('foo'));
}
buildCounterGoogleIamV1Binding--;
}
-buildUnnamed3459() {
+buildUnnamed3883() {
var o = new core.List<api.GoogleIamV1AuditConfig>();
o.add(buildGoogleIamV1AuditConfig());
o.add(buildGoogleIamV1AuditConfig());
return o;
}
-checkUnnamed3459(core.List<api.GoogleIamV1AuditConfig> o) {
+checkUnnamed3883(core.List<api.GoogleIamV1AuditConfig> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleIamV1AuditConfig(o[0]);
checkGoogleIamV1AuditConfig(o[1]);
}
-buildUnnamed3460() {
+buildUnnamed3884() {
var o = new core.List<api.GoogleIamV1Binding>();
o.add(buildGoogleIamV1Binding());
o.add(buildGoogleIamV1Binding());
return o;
}
-checkUnnamed3460(core.List<api.GoogleIamV1Binding> o) {
+checkUnnamed3884(core.List<api.GoogleIamV1Binding> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleIamV1Binding(o[0]);
checkGoogleIamV1Binding(o[1]);
@@ -1108,8 +1201,8 @@
var o = new api.GoogleIamV1Policy();
buildCounterGoogleIamV1Policy++;
if (buildCounterGoogleIamV1Policy < 3) {
- o.auditConfigs = buildUnnamed3459();
- o.bindings = buildUnnamed3460();
+ o.auditConfigs = buildUnnamed3883();
+ o.bindings = buildUnnamed3884();
o.etag = "foo";
o.version = 42;
}
@@ -1120,8 +1213,8 @@
checkGoogleIamV1Policy(api.GoogleIamV1Policy o) {
buildCounterGoogleIamV1Policy++;
if (buildCounterGoogleIamV1Policy < 3) {
- checkUnnamed3459(o.auditConfigs);
- checkUnnamed3460(o.bindings);
+ checkUnnamed3883(o.auditConfigs);
+ checkUnnamed3884(o.bindings);
unittest.expect(o.etag, unittest.equals('foo'));
unittest.expect(o.version, unittest.equals(42));
}
@@ -1149,14 +1242,14 @@
buildCounterGoogleIamV1SetIamPolicyRequest--;
}
-buildUnnamed3461() {
+buildUnnamed3885() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3461(core.List<core.String> o) {
+checkUnnamed3885(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'));
@@ -1167,7 +1260,7 @@
var o = new api.GoogleIamV1TestIamPermissionsRequest();
buildCounterGoogleIamV1TestIamPermissionsRequest++;
if (buildCounterGoogleIamV1TestIamPermissionsRequest < 3) {
- o.permissions = buildUnnamed3461();
+ o.permissions = buildUnnamed3885();
}
buildCounterGoogleIamV1TestIamPermissionsRequest--;
return o;
@@ -1177,19 +1270,19 @@
api.GoogleIamV1TestIamPermissionsRequest o) {
buildCounterGoogleIamV1TestIamPermissionsRequest++;
if (buildCounterGoogleIamV1TestIamPermissionsRequest < 3) {
- checkUnnamed3461(o.permissions);
+ checkUnnamed3885(o.permissions);
}
buildCounterGoogleIamV1TestIamPermissionsRequest--;
}
-buildUnnamed3462() {
+buildUnnamed3886() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3462(core.List<core.String> o) {
+checkUnnamed3886(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'));
@@ -1200,7 +1293,7 @@
var o = new api.GoogleIamV1TestIamPermissionsResponse();
buildCounterGoogleIamV1TestIamPermissionsResponse++;
if (buildCounterGoogleIamV1TestIamPermissionsResponse < 3) {
- o.permissions = buildUnnamed3462();
+ o.permissions = buildUnnamed3886();
}
buildCounterGoogleIamV1TestIamPermissionsResponse--;
return o;
@@ -1210,19 +1303,19 @@
api.GoogleIamV1TestIamPermissionsResponse o) {
buildCounterGoogleIamV1TestIamPermissionsResponse++;
if (buildCounterGoogleIamV1TestIamPermissionsResponse < 3) {
- checkUnnamed3462(o.permissions);
+ checkUnnamed3886(o.permissions);
}
buildCounterGoogleIamV1TestIamPermissionsResponse--;
}
-buildUnnamed3463() {
+buildUnnamed3887() {
var o = new core.List<api.GoogleLongrunningOperation>();
o.add(buildGoogleLongrunningOperation());
o.add(buildGoogleLongrunningOperation());
return o;
}
-checkUnnamed3463(core.List<api.GoogleLongrunningOperation> o) {
+checkUnnamed3887(core.List<api.GoogleLongrunningOperation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleLongrunningOperation(o[0]);
checkGoogleLongrunningOperation(o[1]);
@@ -1234,7 +1327,7 @@
buildCounterGoogleLongrunningListOperationsResponse++;
if (buildCounterGoogleLongrunningListOperationsResponse < 3) {
o.nextPageToken = "foo";
- o.operations = buildUnnamed3463();
+ o.operations = buildUnnamed3887();
}
buildCounterGoogleLongrunningListOperationsResponse--;
return o;
@@ -1245,12 +1338,12 @@
buildCounterGoogleLongrunningListOperationsResponse++;
if (buildCounterGoogleLongrunningListOperationsResponse < 3) {
unittest.expect(o.nextPageToken, unittest.equals('foo'));
- checkUnnamed3463(o.operations);
+ checkUnnamed3887(o.operations);
}
buildCounterGoogleLongrunningListOperationsResponse--;
}
-buildUnnamed3464() {
+buildUnnamed3888() {
var o = new core.Map<core.String, core.Object>();
o["x"] = {
'list': [1, 2, 3],
@@ -1265,7 +1358,7 @@
return o;
}
-checkUnnamed3464(core.Map<core.String, core.Object> o) {
+checkUnnamed3888(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));
@@ -1279,7 +1372,7 @@
unittest.expect(casted4["string"], unittest.equals('foo'));
}
-buildUnnamed3465() {
+buildUnnamed3889() {
var o = new core.Map<core.String, core.Object>();
o["x"] = {
'list': [1, 2, 3],
@@ -1294,7 +1387,7 @@
return o;
}
-checkUnnamed3465(core.Map<core.String, core.Object> o) {
+checkUnnamed3889(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));
@@ -1315,9 +1408,9 @@
if (buildCounterGoogleLongrunningOperation < 3) {
o.done = true;
o.error = buildGoogleRpcStatus();
- o.metadata = buildUnnamed3464();
+ o.metadata = buildUnnamed3888();
o.name = "foo";
- o.response = buildUnnamed3465();
+ o.response = buildUnnamed3889();
}
buildCounterGoogleLongrunningOperation--;
return o;
@@ -1328,9 +1421,9 @@
if (buildCounterGoogleLongrunningOperation < 3) {
unittest.expect(o.done, unittest.isTrue);
checkGoogleRpcStatus(o.error);
- checkUnnamed3464(o.metadata);
+ checkUnnamed3888(o.metadata);
unittest.expect(o.name, unittest.equals('foo'));
- checkUnnamed3465(o.response);
+ checkUnnamed3889(o.response);
}
buildCounterGoogleLongrunningOperation--;
}
@@ -1350,7 +1443,7 @@
buildCounterGoogleProtobufEmpty--;
}
-buildUnnamed3466() {
+buildUnnamed3890() {
var o = new core.Map<core.String, core.Object>();
o["x"] = {
'list': [1, 2, 3],
@@ -1365,7 +1458,7 @@
return o;
}
-checkUnnamed3466(core.Map<core.String, core.Object> o) {
+checkUnnamed3890(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));
@@ -1379,17 +1472,17 @@
unittest.expect(casted8["string"], unittest.equals('foo'));
}
-buildUnnamed3467() {
+buildUnnamed3891() {
var o = new core.List<core.Map<core.String, core.Object>>();
- o.add(buildUnnamed3466());
- o.add(buildUnnamed3466());
+ o.add(buildUnnamed3890());
+ o.add(buildUnnamed3890());
return o;
}
-checkUnnamed3467(core.List<core.Map<core.String, core.Object>> o) {
+checkUnnamed3891(core.List<core.Map<core.String, core.Object>> o) {
unittest.expect(o, unittest.hasLength(2));
- checkUnnamed3466(o[0]);
- checkUnnamed3466(o[1]);
+ checkUnnamed3890(o[0]);
+ checkUnnamed3890(o[1]);
}
core.int buildCounterGoogleRpcStatus = 0;
@@ -1398,7 +1491,7 @@
buildCounterGoogleRpcStatus++;
if (buildCounterGoogleRpcStatus < 3) {
o.code = 42;
- o.details = buildUnnamed3467();
+ o.details = buildUnnamed3891();
o.message = "foo";
}
buildCounterGoogleRpcStatus--;
@@ -1409,12 +1502,37 @@
buildCounterGoogleRpcStatus++;
if (buildCounterGoogleRpcStatus < 3) {
unittest.expect(o.code, unittest.equals(42));
- checkUnnamed3467(o.details);
+ checkUnnamed3891(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", () {
@@ -1435,6 +1553,14 @@
});
});
+ unittest.group("obj-schema-GoogleCloudMlV1AcceleratorConfig", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudMlV1AcceleratorConfig();
+ var od = new api.GoogleCloudMlV1AcceleratorConfig.fromJson(o.toJson());
+ checkGoogleCloudMlV1AcceleratorConfig(od);
+ });
+ });
+
unittest.group("obj-schema-GoogleCloudMlV1AutoScaling", () {
unittest.test("to-json--from-json", () {
var o = buildGoogleCloudMlV1AutoScaling();
@@ -1720,6 +1846,14 @@
});
});
+ 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();
@@ -2045,9 +2179,9 @@
var mock = new HttpServerMock();
api.ProjectsJobsResourceApi res = new api.MlApi(mock).projects.jobs;
var arg_parent = "foo";
- var arg_pageSize = 42;
var arg_filter = "foo";
var arg_pageToken = "foo";
+ var arg_pageSize = 42;
var arg_$fields = "foo";
mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var path = (req.url).path;
@@ -2080,11 +2214,11 @@
core.Uri.decodeQueryComponent(keyvalue[1]));
}
}
- 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(core.int.parse(queryMap["pageSize"].first),
+ unittest.equals(arg_pageSize));
unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
var h = {
@@ -2095,15 +2229,74 @@
}), true);
res
.list(arg_parent,
- pageSize: arg_pageSize,
filter: arg_filter,
pageToken: arg_pageToken,
+ pageSize: arg_pageSize,
$fields: arg_$fields)
.then(unittest.expectAsync1(((response) {
checkGoogleCloudMlV1ListJobsResponse(response);
})));
});
+ 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 = <core.String, core.List<core.String>>{};
+ 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(((response) {
+ checkGoogleCloudMlV1Job(response);
+ })));
+ });
+
unittest.test("method--setIamPolicy", () {
var mock = new HttpServerMock();
api.ProjectsJobsResourceApi res = new api.MlApi(mock).projects.jobs;
@@ -2942,9 +3135,9 @@
api.ProjectsModelsVersionsResourceApi res =
new api.MlApi(mock).projects.models.versions;
var arg_parent = "foo";
+ var arg_pageSize = 42;
var arg_filter = "foo";
var arg_pageToken = "foo";
- var arg_pageSize = 42;
var arg_$fields = "foo";
mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var path = (req.url).path;
@@ -2977,11 +3170,11 @@
core.Uri.decodeQueryComponent(keyvalue[1]));
}
}
+ 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(core.int.parse(queryMap["pageSize"].first),
- unittest.equals(arg_pageSize));
unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
var h = {
@@ -2993,9 +3186,9 @@
}), true);
res
.list(arg_parent,
+ pageSize: arg_pageSize,
filter: arg_filter,
pageToken: arg_pageToken,
- pageSize: arg_pageSize,
$fields: arg_$fields)
.then(unittest.expectAsync1(((response) {
checkGoogleCloudMlV1ListVersionsResponse(response);
@@ -3282,9 +3475,9 @@
api.ProjectsOperationsResourceApi res =
new api.MlApi(mock).projects.operations;
var arg_name = "foo";
+ var arg_pageSize = 42;
var arg_filter = "foo";
var arg_pageToken = "foo";
- var arg_pageSize = 42;
var arg_$fields = "foo";
mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
var path = (req.url).path;
@@ -3317,11 +3510,11 @@
core.Uri.decodeQueryComponent(keyvalue[1]));
}
}
+ 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(core.int.parse(queryMap["pageSize"].first),
- unittest.equals(arg_pageSize));
unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields));
var h = {
@@ -3333,9 +3526,9 @@
}), true);
res
.list(arg_name,
+ pageSize: arg_pageSize,
filter: arg_filter,
pageToken: arg_pageToken,
- pageSize: arg_pageSize,
$fields: arg_$fields)
.then(unittest.expectAsync1(((response) {
checkGoogleLongrunningListOperationsResponse(response);