| Index: generated/googleapis/test/dataproc/v1_test.dart
|
| diff --git a/generated/googleapis/test/dataproc/v1_test.dart b/generated/googleapis/test/dataproc/v1_test.dart
|
| index 1240770be98d5d76a09b9745b41b2aa32d5b573e..7e072cee58540953a25565ec53c958584537bdb0 100644
|
| --- a/generated/googleapis/test/dataproc/v1_test.dart
|
| +++ b/generated/googleapis/test/dataproc/v1_test.dart
|
| @@ -68,27 +68,27 @@ checkCancelJobRequest(api.CancelJobRequest o) {
|
| buildCounterCancelJobRequest--;
|
| }
|
|
|
| -buildUnnamed427() {
|
| +buildUnnamed429() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed427(core.Map<core.String, core.String> o) {
|
| +checkUnnamed429(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'));
|
| }
|
|
|
| -buildUnnamed428() {
|
| +buildUnnamed430() {
|
| var o = new core.List<api.ClusterStatus>();
|
| o.add(buildClusterStatus());
|
| o.add(buildClusterStatus());
|
| return o;
|
| }
|
|
|
| -checkUnnamed428(core.List<api.ClusterStatus> o) {
|
| +checkUnnamed430(core.List<api.ClusterStatus> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkClusterStatus(o[0]);
|
| checkClusterStatus(o[1]);
|
| @@ -102,11 +102,11 @@ buildCluster() {
|
| o.clusterName = "foo";
|
| o.clusterUuid = "foo";
|
| o.config = buildClusterConfig();
|
| - o.labels = buildUnnamed427();
|
| + o.labels = buildUnnamed429();
|
| o.metrics = buildClusterMetrics();
|
| o.projectId = "foo";
|
| o.status = buildClusterStatus();
|
| - o.statusHistory = buildUnnamed428();
|
| + o.statusHistory = buildUnnamed430();
|
| }
|
| buildCounterCluster--;
|
| return o;
|
| @@ -118,23 +118,23 @@ checkCluster(api.Cluster o) {
|
| unittest.expect(o.clusterName, unittest.equals('foo'));
|
| unittest.expect(o.clusterUuid, unittest.equals('foo'));
|
| checkClusterConfig(o.config);
|
| - checkUnnamed427(o.labels);
|
| + checkUnnamed429(o.labels);
|
| checkClusterMetrics(o.metrics);
|
| unittest.expect(o.projectId, unittest.equals('foo'));
|
| checkClusterStatus(o.status);
|
| - checkUnnamed428(o.statusHistory);
|
| + checkUnnamed430(o.statusHistory);
|
| }
|
| buildCounterCluster--;
|
| }
|
|
|
| -buildUnnamed429() {
|
| +buildUnnamed431() {
|
| var o = new core.List<api.NodeInitializationAction>();
|
| o.add(buildNodeInitializationAction());
|
| o.add(buildNodeInitializationAction());
|
| return o;
|
| }
|
|
|
| -checkUnnamed429(core.List<api.NodeInitializationAction> o) {
|
| +checkUnnamed431(core.List<api.NodeInitializationAction> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkNodeInitializationAction(o[0]);
|
| checkNodeInitializationAction(o[1]);
|
| @@ -147,7 +147,7 @@ buildClusterConfig() {
|
| if (buildCounterClusterConfig < 3) {
|
| o.configBucket = "foo";
|
| o.gceClusterConfig = buildGceClusterConfig();
|
| - o.initializationActions = buildUnnamed429();
|
| + o.initializationActions = buildUnnamed431();
|
| o.masterConfig = buildInstanceGroupConfig();
|
| o.secondaryWorkerConfig = buildInstanceGroupConfig();
|
| o.softwareConfig = buildSoftwareConfig();
|
| @@ -162,7 +162,7 @@ checkClusterConfig(api.ClusterConfig o) {
|
| if (buildCounterClusterConfig < 3) {
|
| unittest.expect(o.configBucket, unittest.equals('foo'));
|
| checkGceClusterConfig(o.gceClusterConfig);
|
| - checkUnnamed429(o.initializationActions);
|
| + checkUnnamed431(o.initializationActions);
|
| checkInstanceGroupConfig(o.masterConfig);
|
| checkInstanceGroupConfig(o.secondaryWorkerConfig);
|
| checkSoftwareConfig(o.softwareConfig);
|
| @@ -171,27 +171,27 @@ checkClusterConfig(api.ClusterConfig o) {
|
| buildCounterClusterConfig--;
|
| }
|
|
|
| -buildUnnamed430() {
|
| +buildUnnamed432() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed430(core.Map<core.String, core.String> o) {
|
| +checkUnnamed432(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'));
|
| }
|
|
|
| -buildUnnamed431() {
|
| +buildUnnamed433() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed431(core.Map<core.String, core.String> o) {
|
| +checkUnnamed433(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'));
|
| @@ -202,8 +202,8 @@ buildClusterMetrics() {
|
| var o = new api.ClusterMetrics();
|
| buildCounterClusterMetrics++;
|
| if (buildCounterClusterMetrics < 3) {
|
| - o.hdfsMetrics = buildUnnamed430();
|
| - o.yarnMetrics = buildUnnamed431();
|
| + o.hdfsMetrics = buildUnnamed432();
|
| + o.yarnMetrics = buildUnnamed433();
|
| }
|
| buildCounterClusterMetrics--;
|
| return o;
|
| @@ -212,38 +212,51 @@ buildClusterMetrics() {
|
| checkClusterMetrics(api.ClusterMetrics o) {
|
| buildCounterClusterMetrics++;
|
| if (buildCounterClusterMetrics < 3) {
|
| - checkUnnamed430(o.hdfsMetrics);
|
| - checkUnnamed431(o.yarnMetrics);
|
| + checkUnnamed432(o.hdfsMetrics);
|
| + checkUnnamed433(o.yarnMetrics);
|
| }
|
| buildCounterClusterMetrics--;
|
| }
|
|
|
| -buildUnnamed432() {
|
| +buildUnnamed434() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed432(core.Map<core.String, core.String> o) {
|
| +checkUnnamed434(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'));
|
| }
|
|
|
| -buildUnnamed433() {
|
| +buildUnnamed435() {
|
| var o = new core.List<api.ClusterOperationStatus>();
|
| o.add(buildClusterOperationStatus());
|
| o.add(buildClusterOperationStatus());
|
| return o;
|
| }
|
|
|
| -checkUnnamed433(core.List<api.ClusterOperationStatus> o) {
|
| +checkUnnamed435(core.List<api.ClusterOperationStatus> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkClusterOperationStatus(o[0]);
|
| checkClusterOperationStatus(o[1]);
|
| }
|
|
|
| +buildUnnamed436() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed436(core.List<core.String> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + unittest.expect(o[0], unittest.equals('foo'));
|
| + unittest.expect(o[1], unittest.equals('foo'));
|
| +}
|
| +
|
| core.int buildCounterClusterOperationMetadata = 0;
|
| buildClusterOperationMetadata() {
|
| var o = new api.ClusterOperationMetadata();
|
| @@ -252,10 +265,11 @@ buildClusterOperationMetadata() {
|
| o.clusterName = "foo";
|
| o.clusterUuid = "foo";
|
| o.description = "foo";
|
| - o.labels = buildUnnamed432();
|
| + o.labels = buildUnnamed434();
|
| o.operationType = "foo";
|
| o.status = buildClusterOperationStatus();
|
| - o.statusHistory = buildUnnamed433();
|
| + o.statusHistory = buildUnnamed435();
|
| + o.warnings = buildUnnamed436();
|
| }
|
| buildCounterClusterOperationMetadata--;
|
| return o;
|
| @@ -267,10 +281,11 @@ checkClusterOperationMetadata(api.ClusterOperationMetadata o) {
|
| unittest.expect(o.clusterName, unittest.equals('foo'));
|
| unittest.expect(o.clusterUuid, unittest.equals('foo'));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| - checkUnnamed432(o.labels);
|
| + checkUnnamed434(o.labels);
|
| unittest.expect(o.operationType, unittest.equals('foo'));
|
| checkClusterOperationStatus(o.status);
|
| - checkUnnamed433(o.statusHistory);
|
| + checkUnnamed435(o.statusHistory);
|
| + checkUnnamed436(o.warnings);
|
| }
|
| buildCounterClusterOperationMetadata--;
|
| }
|
| @@ -416,40 +431,40 @@ checkEmpty(api.Empty o) {
|
| buildCounterEmpty--;
|
| }
|
|
|
| -buildUnnamed434() {
|
| +buildUnnamed437() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed434(core.Map<core.String, core.String> o) {
|
| +checkUnnamed437(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'));
|
| }
|
|
|
| -buildUnnamed435() {
|
| +buildUnnamed438() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed435(core.List<core.String> o) {
|
| +checkUnnamed438(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'));
|
| }
|
|
|
| -buildUnnamed436() {
|
| +buildUnnamed439() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed436(core.List<core.String> o) {
|
| +checkUnnamed439(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'));
|
| @@ -461,11 +476,12 @@ buildGceClusterConfig() {
|
| buildCounterGceClusterConfig++;
|
| if (buildCounterGceClusterConfig < 3) {
|
| o.internalIpOnly = true;
|
| - o.metadata = buildUnnamed434();
|
| + o.metadata = buildUnnamed437();
|
| o.networkUri = "foo";
|
| - o.serviceAccountScopes = buildUnnamed435();
|
| + o.serviceAccount = "foo";
|
| + o.serviceAccountScopes = buildUnnamed438();
|
| o.subnetworkUri = "foo";
|
| - o.tags = buildUnnamed436();
|
| + o.tags = buildUnnamed439();
|
| o.zoneUri = "foo";
|
| }
|
| buildCounterGceClusterConfig--;
|
| @@ -476,76 +492,77 @@ checkGceClusterConfig(api.GceClusterConfig o) {
|
| buildCounterGceClusterConfig++;
|
| if (buildCounterGceClusterConfig < 3) {
|
| unittest.expect(o.internalIpOnly, unittest.isTrue);
|
| - checkUnnamed434(o.metadata);
|
| + checkUnnamed437(o.metadata);
|
| unittest.expect(o.networkUri, unittest.equals('foo'));
|
| - checkUnnamed435(o.serviceAccountScopes);
|
| + unittest.expect(o.serviceAccount, unittest.equals('foo'));
|
| + checkUnnamed438(o.serviceAccountScopes);
|
| unittest.expect(o.subnetworkUri, unittest.equals('foo'));
|
| - checkUnnamed436(o.tags);
|
| + checkUnnamed439(o.tags);
|
| unittest.expect(o.zoneUri, unittest.equals('foo'));
|
| }
|
| buildCounterGceClusterConfig--;
|
| }
|
|
|
| -buildUnnamed437() {
|
| +buildUnnamed440() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed437(core.List<core.String> o) {
|
| +checkUnnamed440(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'));
|
| }
|
|
|
| -buildUnnamed438() {
|
| +buildUnnamed441() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed438(core.List<core.String> o) {
|
| +checkUnnamed441(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'));
|
| }
|
|
|
| -buildUnnamed439() {
|
| +buildUnnamed442() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed439(core.List<core.String> o) {
|
| +checkUnnamed442(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'));
|
| }
|
|
|
| -buildUnnamed440() {
|
| +buildUnnamed443() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed440(core.List<core.String> o) {
|
| +checkUnnamed443(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'));
|
| }
|
|
|
| -buildUnnamed441() {
|
| +buildUnnamed444() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed441(core.Map<core.String, core.String> o) {
|
| +checkUnnamed444(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'));
|
| @@ -556,14 +573,14 @@ buildHadoopJob() {
|
| var o = new api.HadoopJob();
|
| buildCounterHadoopJob++;
|
| if (buildCounterHadoopJob < 3) {
|
| - o.archiveUris = buildUnnamed437();
|
| - o.args = buildUnnamed438();
|
| - o.fileUris = buildUnnamed439();
|
| - o.jarFileUris = buildUnnamed440();
|
| + o.archiveUris = buildUnnamed440();
|
| + o.args = buildUnnamed441();
|
| + o.fileUris = buildUnnamed442();
|
| + o.jarFileUris = buildUnnamed443();
|
| o.loggingConfig = buildLoggingConfig();
|
| o.mainClass = "foo";
|
| o.mainJarFileUri = "foo";
|
| - o.properties = buildUnnamed441();
|
| + o.properties = buildUnnamed444();
|
| }
|
| buildCounterHadoopJob--;
|
| return o;
|
| @@ -572,52 +589,52 @@ buildHadoopJob() {
|
| checkHadoopJob(api.HadoopJob o) {
|
| buildCounterHadoopJob++;
|
| if (buildCounterHadoopJob < 3) {
|
| - checkUnnamed437(o.archiveUris);
|
| - checkUnnamed438(o.args);
|
| - checkUnnamed439(o.fileUris);
|
| - checkUnnamed440(o.jarFileUris);
|
| + checkUnnamed440(o.archiveUris);
|
| + checkUnnamed441(o.args);
|
| + checkUnnamed442(o.fileUris);
|
| + checkUnnamed443(o.jarFileUris);
|
| checkLoggingConfig(o.loggingConfig);
|
| unittest.expect(o.mainClass, unittest.equals('foo'));
|
| unittest.expect(o.mainJarFileUri, unittest.equals('foo'));
|
| - checkUnnamed441(o.properties);
|
| + checkUnnamed444(o.properties);
|
| }
|
| buildCounterHadoopJob--;
|
| }
|
|
|
| -buildUnnamed442() {
|
| +buildUnnamed445() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed442(core.List<core.String> o) {
|
| +checkUnnamed445(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'));
|
| }
|
|
|
| -buildUnnamed443() {
|
| +buildUnnamed446() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed443(core.Map<core.String, core.String> o) {
|
| +checkUnnamed446(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'));
|
| }
|
|
|
| -buildUnnamed444() {
|
| +buildUnnamed447() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed444(core.Map<core.String, core.String> o) {
|
| +checkUnnamed447(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'));
|
| @@ -629,11 +646,11 @@ buildHiveJob() {
|
| buildCounterHiveJob++;
|
| if (buildCounterHiveJob < 3) {
|
| o.continueOnFailure = true;
|
| - o.jarFileUris = buildUnnamed442();
|
| - o.properties = buildUnnamed443();
|
| + o.jarFileUris = buildUnnamed445();
|
| + o.properties = buildUnnamed446();
|
| o.queryFileUri = "foo";
|
| o.queryList = buildQueryList();
|
| - o.scriptVariables = buildUnnamed444();
|
| + o.scriptVariables = buildUnnamed447();
|
| }
|
| buildCounterHiveJob--;
|
| return o;
|
| @@ -643,23 +660,23 @@ checkHiveJob(api.HiveJob o) {
|
| buildCounterHiveJob++;
|
| if (buildCounterHiveJob < 3) {
|
| unittest.expect(o.continueOnFailure, unittest.isTrue);
|
| - checkUnnamed442(o.jarFileUris);
|
| - checkUnnamed443(o.properties);
|
| + checkUnnamed445(o.jarFileUris);
|
| + checkUnnamed446(o.properties);
|
| unittest.expect(o.queryFileUri, unittest.equals('foo'));
|
| checkQueryList(o.queryList);
|
| - checkUnnamed444(o.scriptVariables);
|
| + checkUnnamed447(o.scriptVariables);
|
| }
|
| buildCounterHiveJob--;
|
| }
|
|
|
| -buildUnnamed445() {
|
| +buildUnnamed448() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed445(core.List<core.String> o) {
|
| +checkUnnamed448(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'));
|
| @@ -672,7 +689,7 @@ buildInstanceGroupConfig() {
|
| if (buildCounterInstanceGroupConfig < 3) {
|
| o.diskConfig = buildDiskConfig();
|
| o.imageUri = "foo";
|
| - o.instanceNames = buildUnnamed445();
|
| + o.instanceNames = buildUnnamed448();
|
| o.isPreemptible = true;
|
| o.machineTypeUri = "foo";
|
| o.managedGroupConfig = buildManagedGroupConfig();
|
| @@ -687,7 +704,7 @@ checkInstanceGroupConfig(api.InstanceGroupConfig o) {
|
| if (buildCounterInstanceGroupConfig < 3) {
|
| checkDiskConfig(o.diskConfig);
|
| unittest.expect(o.imageUri, unittest.equals('foo'));
|
| - checkUnnamed445(o.instanceNames);
|
| + checkUnnamed448(o.instanceNames);
|
| unittest.expect(o.isPreemptible, unittest.isTrue);
|
| unittest.expect(o.machineTypeUri, unittest.equals('foo'));
|
| checkManagedGroupConfig(o.managedGroupConfig);
|
| @@ -696,40 +713,40 @@ checkInstanceGroupConfig(api.InstanceGroupConfig o) {
|
| buildCounterInstanceGroupConfig--;
|
| }
|
|
|
| -buildUnnamed446() {
|
| +buildUnnamed449() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed446(core.Map<core.String, core.String> o) {
|
| +checkUnnamed449(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'));
|
| }
|
|
|
| -buildUnnamed447() {
|
| +buildUnnamed450() {
|
| var o = new core.List<api.JobStatus>();
|
| o.add(buildJobStatus());
|
| o.add(buildJobStatus());
|
| return o;
|
| }
|
|
|
| -checkUnnamed447(core.List<api.JobStatus> o) {
|
| +checkUnnamed450(core.List<api.JobStatus> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkJobStatus(o[0]);
|
| checkJobStatus(o[1]);
|
| }
|
|
|
| -buildUnnamed448() {
|
| +buildUnnamed451() {
|
| var o = new core.List<api.YarnApplication>();
|
| o.add(buildYarnApplication());
|
| o.add(buildYarnApplication());
|
| return o;
|
| }
|
|
|
| -checkUnnamed448(core.List<api.YarnApplication> o) {
|
| +checkUnnamed451(core.List<api.YarnApplication> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkYarnApplication(o[0]);
|
| checkYarnApplication(o[1]);
|
| @@ -744,16 +761,17 @@ buildJob() {
|
| o.driverOutputResourceUri = "foo";
|
| o.hadoopJob = buildHadoopJob();
|
| o.hiveJob = buildHiveJob();
|
| - o.labels = buildUnnamed446();
|
| + o.labels = buildUnnamed449();
|
| o.pigJob = buildPigJob();
|
| o.placement = buildJobPlacement();
|
| o.pysparkJob = buildPySparkJob();
|
| o.reference = buildJobReference();
|
| + o.scheduling = buildJobScheduling();
|
| o.sparkJob = buildSparkJob();
|
| o.sparkSqlJob = buildSparkSqlJob();
|
| o.status = buildJobStatus();
|
| - o.statusHistory = buildUnnamed447();
|
| - o.yarnApplications = buildUnnamed448();
|
| + o.statusHistory = buildUnnamed450();
|
| + o.yarnApplications = buildUnnamed451();
|
| }
|
| buildCounterJob--;
|
| return o;
|
| @@ -766,16 +784,17 @@ checkJob(api.Job o) {
|
| unittest.expect(o.driverOutputResourceUri, unittest.equals('foo'));
|
| checkHadoopJob(o.hadoopJob);
|
| checkHiveJob(o.hiveJob);
|
| - checkUnnamed446(o.labels);
|
| + checkUnnamed449(o.labels);
|
| checkPigJob(o.pigJob);
|
| checkJobPlacement(o.placement);
|
| checkPySparkJob(o.pysparkJob);
|
| checkJobReference(o.reference);
|
| + checkJobScheduling(o.scheduling);
|
| checkSparkJob(o.sparkJob);
|
| checkSparkSqlJob(o.sparkSqlJob);
|
| checkJobStatus(o.status);
|
| - checkUnnamed447(o.statusHistory);
|
| - checkUnnamed448(o.yarnApplications);
|
| + checkUnnamed450(o.statusHistory);
|
| + checkUnnamed451(o.yarnApplications);
|
| }
|
| buildCounterJob--;
|
| }
|
| @@ -822,6 +841,25 @@ checkJobReference(api.JobReference o) {
|
| buildCounterJobReference--;
|
| }
|
|
|
| +core.int buildCounterJobScheduling = 0;
|
| +buildJobScheduling() {
|
| + var o = new api.JobScheduling();
|
| + buildCounterJobScheduling++;
|
| + if (buildCounterJobScheduling < 3) {
|
| + o.maxFailuresPerHour = 42;
|
| + }
|
| + buildCounterJobScheduling--;
|
| + return o;
|
| +}
|
| +
|
| +checkJobScheduling(api.JobScheduling o) {
|
| + buildCounterJobScheduling++;
|
| + if (buildCounterJobScheduling < 3) {
|
| + unittest.expect(o.maxFailuresPerHour, unittest.equals(42));
|
| + }
|
| + buildCounterJobScheduling--;
|
| +}
|
| +
|
| core.int buildCounterJobStatus = 0;
|
| buildJobStatus() {
|
| var o = new api.JobStatus();
|
| @@ -845,14 +883,14 @@ checkJobStatus(api.JobStatus o) {
|
| buildCounterJobStatus--;
|
| }
|
|
|
| -buildUnnamed449() {
|
| +buildUnnamed452() {
|
| var o = new core.List<api.Cluster>();
|
| o.add(buildCluster());
|
| o.add(buildCluster());
|
| return o;
|
| }
|
|
|
| -checkUnnamed449(core.List<api.Cluster> o) {
|
| +checkUnnamed452(core.List<api.Cluster> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCluster(o[0]);
|
| checkCluster(o[1]);
|
| @@ -863,7 +901,7 @@ buildListClustersResponse() {
|
| var o = new api.ListClustersResponse();
|
| buildCounterListClustersResponse++;
|
| if (buildCounterListClustersResponse < 3) {
|
| - o.clusters = buildUnnamed449();
|
| + o.clusters = buildUnnamed452();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListClustersResponse--;
|
| @@ -873,20 +911,20 @@ buildListClustersResponse() {
|
| checkListClustersResponse(api.ListClustersResponse o) {
|
| buildCounterListClustersResponse++;
|
| if (buildCounterListClustersResponse < 3) {
|
| - checkUnnamed449(o.clusters);
|
| + checkUnnamed452(o.clusters);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListClustersResponse--;
|
| }
|
|
|
| -buildUnnamed450() {
|
| +buildUnnamed453() {
|
| var o = new core.List<api.Job>();
|
| o.add(buildJob());
|
| o.add(buildJob());
|
| return o;
|
| }
|
|
|
| -checkUnnamed450(core.List<api.Job> o) {
|
| +checkUnnamed453(core.List<api.Job> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkJob(o[0]);
|
| checkJob(o[1]);
|
| @@ -897,7 +935,7 @@ buildListJobsResponse() {
|
| var o = new api.ListJobsResponse();
|
| buildCounterListJobsResponse++;
|
| if (buildCounterListJobsResponse < 3) {
|
| - o.jobs = buildUnnamed450();
|
| + o.jobs = buildUnnamed453();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListJobsResponse--;
|
| @@ -907,20 +945,20 @@ buildListJobsResponse() {
|
| checkListJobsResponse(api.ListJobsResponse o) {
|
| buildCounterListJobsResponse++;
|
| if (buildCounterListJobsResponse < 3) {
|
| - checkUnnamed450(o.jobs);
|
| + checkUnnamed453(o.jobs);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListJobsResponse--;
|
| }
|
|
|
| -buildUnnamed451() {
|
| +buildUnnamed454() {
|
| var o = new core.List<api.Operation>();
|
| o.add(buildOperation());
|
| o.add(buildOperation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed451(core.List<api.Operation> o) {
|
| +checkUnnamed454(core.List<api.Operation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperation(o[0]);
|
| checkOperation(o[1]);
|
| @@ -932,7 +970,7 @@ buildListOperationsResponse() {
|
| buildCounterListOperationsResponse++;
|
| if (buildCounterListOperationsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.operations = buildUnnamed451();
|
| + o.operations = buildUnnamed454();
|
| }
|
| buildCounterListOperationsResponse--;
|
| return o;
|
| @@ -942,19 +980,19 @@ checkListOperationsResponse(api.ListOperationsResponse o) {
|
| buildCounterListOperationsResponse++;
|
| if (buildCounterListOperationsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed451(o.operations);
|
| + checkUnnamed454(o.operations);
|
| }
|
| buildCounterListOperationsResponse--;
|
| }
|
|
|
| -buildUnnamed452() {
|
| +buildUnnamed455() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed452(core.Map<core.String, core.String> o) {
|
| +checkUnnamed455(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'));
|
| @@ -965,7 +1003,7 @@ buildLoggingConfig() {
|
| var o = new api.LoggingConfig();
|
| buildCounterLoggingConfig++;
|
| if (buildCounterLoggingConfig < 3) {
|
| - o.driverLogLevels = buildUnnamed452();
|
| + o.driverLogLevels = buildUnnamed455();
|
| }
|
| buildCounterLoggingConfig--;
|
| return o;
|
| @@ -974,7 +1012,7 @@ buildLoggingConfig() {
|
| checkLoggingConfig(api.LoggingConfig o) {
|
| buildCounterLoggingConfig++;
|
| if (buildCounterLoggingConfig < 3) {
|
| - checkUnnamed452(o.driverLogLevels);
|
| + checkUnnamed455(o.driverLogLevels);
|
| }
|
| buildCounterLoggingConfig--;
|
| }
|
| @@ -1021,27 +1059,27 @@ checkNodeInitializationAction(api.NodeInitializationAction o) {
|
| buildCounterNodeInitializationAction--;
|
| }
|
|
|
| -buildUnnamed453() {
|
| +buildUnnamed456() {
|
| var o = new core.Map<core.String, core.Object>();
|
| o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| return o;
|
| }
|
|
|
| -checkUnnamed453(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed456(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo'));
|
| var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed454() {
|
| +buildUnnamed457() {
|
| var o = new core.Map<core.String, core.Object>();
|
| o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| return o;
|
| }
|
|
|
| -checkUnnamed454(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed457(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo'));
|
| var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo'));
|
| @@ -1054,9 +1092,9 @@ buildOperation() {
|
| if (buildCounterOperation < 3) {
|
| o.done = true;
|
| o.error = buildStatus();
|
| - o.metadata = buildUnnamed453();
|
| + o.metadata = buildUnnamed456();
|
| o.name = "foo";
|
| - o.response = buildUnnamed454();
|
| + o.response = buildUnnamed457();
|
| }
|
| buildCounterOperation--;
|
| return o;
|
| @@ -1067,26 +1105,39 @@ checkOperation(api.Operation o) {
|
| if (buildCounterOperation < 3) {
|
| unittest.expect(o.done, unittest.isTrue);
|
| checkStatus(o.error);
|
| - checkUnnamed453(o.metadata);
|
| + checkUnnamed456(o.metadata);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed454(o.response);
|
| + checkUnnamed457(o.response);
|
| }
|
| buildCounterOperation--;
|
| }
|
|
|
| -buildUnnamed455() {
|
| +buildUnnamed458() {
|
| var o = new core.List<api.OperationStatus>();
|
| o.add(buildOperationStatus());
|
| o.add(buildOperationStatus());
|
| return o;
|
| }
|
|
|
| -checkUnnamed455(core.List<api.OperationStatus> o) {
|
| +checkUnnamed458(core.List<api.OperationStatus> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperationStatus(o[0]);
|
| checkOperationStatus(o[1]);
|
| }
|
|
|
| +buildUnnamed459() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed459(core.List<core.String> o) {
|
| + unittest.expect(o, unittest.hasLength(2));
|
| + unittest.expect(o[0], unittest.equals('foo'));
|
| + unittest.expect(o[1], unittest.equals('foo'));
|
| +}
|
| +
|
| core.int buildCounterOperationMetadata = 0;
|
| buildOperationMetadata() {
|
| var o = new api.OperationMetadata();
|
| @@ -1103,7 +1154,8 @@ buildOperationMetadata() {
|
| o.startTime = "foo";
|
| o.state = "foo";
|
| o.status = buildOperationStatus();
|
| - o.statusHistory = buildUnnamed455();
|
| + o.statusHistory = buildUnnamed458();
|
| + o.warnings = buildUnnamed459();
|
| }
|
| buildCounterOperationMetadata--;
|
| return o;
|
| @@ -1123,7 +1175,8 @@ checkOperationMetadata(api.OperationMetadata o) {
|
| unittest.expect(o.startTime, unittest.equals('foo'));
|
| unittest.expect(o.state, unittest.equals('foo'));
|
| checkOperationStatus(o.status);
|
| - checkUnnamed455(o.statusHistory);
|
| + checkUnnamed458(o.statusHistory);
|
| + checkUnnamed459(o.warnings);
|
| }
|
| buildCounterOperationMetadata--;
|
| }
|
| @@ -1153,40 +1206,40 @@ checkOperationStatus(api.OperationStatus o) {
|
| buildCounterOperationStatus--;
|
| }
|
|
|
| -buildUnnamed456() {
|
| +buildUnnamed460() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed456(core.List<core.String> o) {
|
| +checkUnnamed460(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'));
|
| }
|
|
|
| -buildUnnamed457() {
|
| +buildUnnamed461() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed457(core.Map<core.String, core.String> o) {
|
| +checkUnnamed461(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'));
|
| }
|
|
|
| -buildUnnamed458() {
|
| +buildUnnamed462() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed458(core.Map<core.String, core.String> o) {
|
| +checkUnnamed462(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'));
|
| @@ -1198,12 +1251,12 @@ buildPigJob() {
|
| buildCounterPigJob++;
|
| if (buildCounterPigJob < 3) {
|
| o.continueOnFailure = true;
|
| - o.jarFileUris = buildUnnamed456();
|
| + o.jarFileUris = buildUnnamed460();
|
| o.loggingConfig = buildLoggingConfig();
|
| - o.properties = buildUnnamed457();
|
| + o.properties = buildUnnamed461();
|
| o.queryFileUri = "foo";
|
| o.queryList = buildQueryList();
|
| - o.scriptVariables = buildUnnamed458();
|
| + o.scriptVariables = buildUnnamed462();
|
| }
|
| buildCounterPigJob--;
|
| return o;
|
| @@ -1213,89 +1266,89 @@ checkPigJob(api.PigJob o) {
|
| buildCounterPigJob++;
|
| if (buildCounterPigJob < 3) {
|
| unittest.expect(o.continueOnFailure, unittest.isTrue);
|
| - checkUnnamed456(o.jarFileUris);
|
| + checkUnnamed460(o.jarFileUris);
|
| checkLoggingConfig(o.loggingConfig);
|
| - checkUnnamed457(o.properties);
|
| + checkUnnamed461(o.properties);
|
| unittest.expect(o.queryFileUri, unittest.equals('foo'));
|
| checkQueryList(o.queryList);
|
| - checkUnnamed458(o.scriptVariables);
|
| + checkUnnamed462(o.scriptVariables);
|
| }
|
| buildCounterPigJob--;
|
| }
|
|
|
| -buildUnnamed459() {
|
| +buildUnnamed463() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed459(core.List<core.String> o) {
|
| +checkUnnamed463(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'));
|
| }
|
|
|
| -buildUnnamed460() {
|
| +buildUnnamed464() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed460(core.List<core.String> o) {
|
| +checkUnnamed464(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'));
|
| }
|
|
|
| -buildUnnamed461() {
|
| +buildUnnamed465() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed461(core.List<core.String> o) {
|
| +checkUnnamed465(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'));
|
| }
|
|
|
| -buildUnnamed462() {
|
| +buildUnnamed466() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed462(core.List<core.String> o) {
|
| +checkUnnamed466(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'));
|
| }
|
|
|
| -buildUnnamed463() {
|
| +buildUnnamed467() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed463(core.Map<core.String, core.String> o) {
|
| +checkUnnamed467(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'));
|
| }
|
|
|
| -buildUnnamed464() {
|
| +buildUnnamed468() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed464(core.List<core.String> o) {
|
| +checkUnnamed468(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'));
|
| @@ -1306,14 +1359,14 @@ buildPySparkJob() {
|
| var o = new api.PySparkJob();
|
| buildCounterPySparkJob++;
|
| if (buildCounterPySparkJob < 3) {
|
| - o.archiveUris = buildUnnamed459();
|
| - o.args = buildUnnamed460();
|
| - o.fileUris = buildUnnamed461();
|
| - o.jarFileUris = buildUnnamed462();
|
| + o.archiveUris = buildUnnamed463();
|
| + o.args = buildUnnamed464();
|
| + o.fileUris = buildUnnamed465();
|
| + o.jarFileUris = buildUnnamed466();
|
| o.loggingConfig = buildLoggingConfig();
|
| o.mainPythonFileUri = "foo";
|
| - o.properties = buildUnnamed463();
|
| - o.pythonFileUris = buildUnnamed464();
|
| + o.properties = buildUnnamed467();
|
| + o.pythonFileUris = buildUnnamed468();
|
| }
|
| buildCounterPySparkJob--;
|
| return o;
|
| @@ -1322,26 +1375,26 @@ buildPySparkJob() {
|
| checkPySparkJob(api.PySparkJob o) {
|
| buildCounterPySparkJob++;
|
| if (buildCounterPySparkJob < 3) {
|
| - checkUnnamed459(o.archiveUris);
|
| - checkUnnamed460(o.args);
|
| - checkUnnamed461(o.fileUris);
|
| - checkUnnamed462(o.jarFileUris);
|
| + checkUnnamed463(o.archiveUris);
|
| + checkUnnamed464(o.args);
|
| + checkUnnamed465(o.fileUris);
|
| + checkUnnamed466(o.jarFileUris);
|
| checkLoggingConfig(o.loggingConfig);
|
| unittest.expect(o.mainPythonFileUri, unittest.equals('foo'));
|
| - checkUnnamed463(o.properties);
|
| - checkUnnamed464(o.pythonFileUris);
|
| + checkUnnamed467(o.properties);
|
| + checkUnnamed468(o.pythonFileUris);
|
| }
|
| buildCounterPySparkJob--;
|
| }
|
|
|
| -buildUnnamed465() {
|
| +buildUnnamed469() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed465(core.List<core.String> o) {
|
| +checkUnnamed469(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'));
|
| @@ -1352,7 +1405,7 @@ buildQueryList() {
|
| var o = new api.QueryList();
|
| buildCounterQueryList++;
|
| if (buildCounterQueryList < 3) {
|
| - o.queries = buildUnnamed465();
|
| + o.queries = buildUnnamed469();
|
| }
|
| buildCounterQueryList--;
|
| return o;
|
| @@ -1361,19 +1414,19 @@ buildQueryList() {
|
| checkQueryList(api.QueryList o) {
|
| buildCounterQueryList++;
|
| if (buildCounterQueryList < 3) {
|
| - checkUnnamed465(o.queries);
|
| + checkUnnamed469(o.queries);
|
| }
|
| buildCounterQueryList--;
|
| }
|
|
|
| -buildUnnamed466() {
|
| +buildUnnamed470() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed466(core.Map<core.String, core.String> o) {
|
| +checkUnnamed470(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'));
|
| @@ -1385,7 +1438,7 @@ buildSoftwareConfig() {
|
| buildCounterSoftwareConfig++;
|
| if (buildCounterSoftwareConfig < 3) {
|
| o.imageVersion = "foo";
|
| - o.properties = buildUnnamed466();
|
| + o.properties = buildUnnamed470();
|
| }
|
| buildCounterSoftwareConfig--;
|
| return o;
|
| @@ -1395,71 +1448,71 @@ checkSoftwareConfig(api.SoftwareConfig o) {
|
| buildCounterSoftwareConfig++;
|
| if (buildCounterSoftwareConfig < 3) {
|
| unittest.expect(o.imageVersion, unittest.equals('foo'));
|
| - checkUnnamed466(o.properties);
|
| + checkUnnamed470(o.properties);
|
| }
|
| buildCounterSoftwareConfig--;
|
| }
|
|
|
| -buildUnnamed467() {
|
| +buildUnnamed471() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed467(core.List<core.String> o) {
|
| +checkUnnamed471(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'));
|
| }
|
|
|
| -buildUnnamed468() {
|
| +buildUnnamed472() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed468(core.List<core.String> o) {
|
| +checkUnnamed472(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'));
|
| }
|
|
|
| -buildUnnamed469() {
|
| +buildUnnamed473() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed469(core.List<core.String> o) {
|
| +checkUnnamed473(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'));
|
| }
|
|
|
| -buildUnnamed470() {
|
| +buildUnnamed474() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed470(core.List<core.String> o) {
|
| +checkUnnamed474(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'));
|
| }
|
|
|
| -buildUnnamed471() {
|
| +buildUnnamed475() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed471(core.Map<core.String, core.String> o) {
|
| +checkUnnamed475(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'));
|
| @@ -1470,14 +1523,14 @@ buildSparkJob() {
|
| var o = new api.SparkJob();
|
| buildCounterSparkJob++;
|
| if (buildCounterSparkJob < 3) {
|
| - o.archiveUris = buildUnnamed467();
|
| - o.args = buildUnnamed468();
|
| - o.fileUris = buildUnnamed469();
|
| - o.jarFileUris = buildUnnamed470();
|
| + o.archiveUris = buildUnnamed471();
|
| + o.args = buildUnnamed472();
|
| + o.fileUris = buildUnnamed473();
|
| + o.jarFileUris = buildUnnamed474();
|
| o.loggingConfig = buildLoggingConfig();
|
| o.mainClass = "foo";
|
| o.mainJarFileUri = "foo";
|
| - o.properties = buildUnnamed471();
|
| + o.properties = buildUnnamed475();
|
| }
|
| buildCounterSparkJob--;
|
| return o;
|
| @@ -1486,52 +1539,52 @@ buildSparkJob() {
|
| checkSparkJob(api.SparkJob o) {
|
| buildCounterSparkJob++;
|
| if (buildCounterSparkJob < 3) {
|
| - checkUnnamed467(o.archiveUris);
|
| - checkUnnamed468(o.args);
|
| - checkUnnamed469(o.fileUris);
|
| - checkUnnamed470(o.jarFileUris);
|
| + checkUnnamed471(o.archiveUris);
|
| + checkUnnamed472(o.args);
|
| + checkUnnamed473(o.fileUris);
|
| + checkUnnamed474(o.jarFileUris);
|
| checkLoggingConfig(o.loggingConfig);
|
| unittest.expect(o.mainClass, unittest.equals('foo'));
|
| unittest.expect(o.mainJarFileUri, unittest.equals('foo'));
|
| - checkUnnamed471(o.properties);
|
| + checkUnnamed475(o.properties);
|
| }
|
| buildCounterSparkJob--;
|
| }
|
|
|
| -buildUnnamed472() {
|
| +buildUnnamed476() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed472(core.List<core.String> o) {
|
| +checkUnnamed476(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'));
|
| }
|
|
|
| -buildUnnamed473() {
|
| +buildUnnamed477() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed473(core.Map<core.String, core.String> o) {
|
| +checkUnnamed477(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'));
|
| }
|
|
|
| -buildUnnamed474() {
|
| +buildUnnamed478() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed474(core.Map<core.String, core.String> o) {
|
| +checkUnnamed478(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'));
|
| @@ -1542,12 +1595,12 @@ buildSparkSqlJob() {
|
| var o = new api.SparkSqlJob();
|
| buildCounterSparkSqlJob++;
|
| if (buildCounterSparkSqlJob < 3) {
|
| - o.jarFileUris = buildUnnamed472();
|
| + o.jarFileUris = buildUnnamed476();
|
| o.loggingConfig = buildLoggingConfig();
|
| - o.properties = buildUnnamed473();
|
| + o.properties = buildUnnamed477();
|
| o.queryFileUri = "foo";
|
| o.queryList = buildQueryList();
|
| - o.scriptVariables = buildUnnamed474();
|
| + o.scriptVariables = buildUnnamed478();
|
| }
|
| buildCounterSparkSqlJob--;
|
| return o;
|
| @@ -1556,40 +1609,40 @@ buildSparkSqlJob() {
|
| checkSparkSqlJob(api.SparkSqlJob o) {
|
| buildCounterSparkSqlJob++;
|
| if (buildCounterSparkSqlJob < 3) {
|
| - checkUnnamed472(o.jarFileUris);
|
| + checkUnnamed476(o.jarFileUris);
|
| checkLoggingConfig(o.loggingConfig);
|
| - checkUnnamed473(o.properties);
|
| + checkUnnamed477(o.properties);
|
| unittest.expect(o.queryFileUri, unittest.equals('foo'));
|
| checkQueryList(o.queryList);
|
| - checkUnnamed474(o.scriptVariables);
|
| + checkUnnamed478(o.scriptVariables);
|
| }
|
| buildCounterSparkSqlJob--;
|
| }
|
|
|
| -buildUnnamed475() {
|
| +buildUnnamed479() {
|
| var o = new core.Map<core.String, core.Object>();
|
| o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| return o;
|
| }
|
|
|
| -checkUnnamed475(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed479(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)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo'));
|
| var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed476() {
|
| +buildUnnamed480() {
|
| var o = new core.List<core.Map<core.String, core.Object>>();
|
| - o.add(buildUnnamed475());
|
| - o.add(buildUnnamed475());
|
| + o.add(buildUnnamed479());
|
| + o.add(buildUnnamed479());
|
| return o;
|
| }
|
|
|
| -checkUnnamed476(core.List<core.Map<core.String, core.Object>> o) {
|
| +checkUnnamed480(core.List<core.Map<core.String, core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed475(o[0]);
|
| - checkUnnamed475(o[1]);
|
| + checkUnnamed479(o[0]);
|
| + checkUnnamed479(o[1]);
|
| }
|
|
|
| core.int buildCounterStatus = 0;
|
| @@ -1598,7 +1651,7 @@ buildStatus() {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| o.code = 42;
|
| - o.details = buildUnnamed476();
|
| + o.details = buildUnnamed480();
|
| o.message = "foo";
|
| }
|
| buildCounterStatus--;
|
| @@ -1609,7 +1662,7 @@ checkStatus(api.Status o) {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| unittest.expect(o.code, unittest.equals(42));
|
| - checkUnnamed476(o.details);
|
| + checkUnnamed480(o.details);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterStatus--;
|
| @@ -1832,6 +1885,15 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-JobScheduling", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildJobScheduling();
|
| + var od = new api.JobScheduling.fromJson(o.toJson());
|
| + checkJobScheduling(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-JobStatus", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildJobStatus();
|
| @@ -2270,9 +2332,9 @@ main() {
|
| api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).projects.regions.clusters;
|
| var arg_projectId = "foo";
|
| var arg_region = "foo";
|
| - var arg_filter = "foo";
|
| - var arg_pageSize = 42;
|
| var arg_pageToken = "foo";
|
| + var arg_pageSize = 42;
|
| + var arg_filter = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -2313,9 +2375,9 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
|
|
|
|
| var h = {
|
| @@ -2324,7 +2386,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListClustersResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_projectId, arg_region, filter: arg_filter, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListClustersResponse response) {
|
| + res.list(arg_projectId, arg_region, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListClustersResponse response) {
|
| checkListClustersResponse(response);
|
| })));
|
| });
|
| @@ -2605,11 +2667,11 @@ main() {
|
| api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).projects.regions.jobs;
|
| var arg_projectId = "foo";
|
| var arg_region = "foo";
|
| - var arg_pageSize = 42;
|
| var arg_pageToken = "foo";
|
| + var arg_pageSize = 42;
|
| var arg_clusterName = "foo";
|
| - var arg_jobStateMatcher = "foo";
|
| var arg_filter = "foo";
|
| + var arg_jobStateMatcher = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -2650,11 +2712,11 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clusterName));
|
| - unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_jobStateMatcher));
|
| unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_jobStateMatcher));
|
|
|
|
|
| var h = {
|
| @@ -2663,11 +2725,80 @@ main() {
|
| var resp = convert.JSON.encode(buildListJobsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_projectId, arg_region, pageSize: arg_pageSize, pageToken: arg_pageToken, clusterName: arg_clusterName, jobStateMatcher: arg_jobStateMatcher, filter: arg_filter).then(unittest.expectAsync(((api.ListJobsResponse response) {
|
| + res.list(arg_projectId, arg_region, pageToken: arg_pageToken, pageSize: arg_pageSize, clusterName: arg_clusterName, filter: arg_filter, jobStateMatcher: arg_jobStateMatcher).then(unittest.expectAsync(((api.ListJobsResponse response) {
|
| checkListJobsResponse(response);
|
| })));
|
| });
|
|
|
| + unittest.test("method--patch", () {
|
| +
|
| + var mock = new HttpServerMock();
|
| + api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).projects.regions.jobs;
|
| + var arg_request = buildJob();
|
| + var arg_projectId = "foo";
|
| + var arg_region = "foo";
|
| + var arg_jobId = "foo";
|
| + var arg_updateMask = "foo";
|
| + mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.Job.fromJson(json);
|
| + checkJob(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 + 12), unittest.equals("v1/projects/"));
|
| + pathOffset += 12;
|
| + index = path.indexOf("/regions/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_projectId"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/regions/"));
|
| + pathOffset += 9;
|
| + index = path.indexOf("/jobs/", pathOffset);
|
| + unittest.expect(index >= 0, unittest.isTrue);
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + pathOffset = index;
|
| + unittest.expect(subPart, unittest.equals("$arg_region"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/jobs/"));
|
| + pathOffset += 6;
|
| + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| + pathOffset = path.length;
|
| + unittest.expect(subPart, unittest.equals("$arg_jobId"));
|
| +
|
| + 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));
|
| +
|
| +
|
| + var h = {
|
| + "content-type" : "application/json; charset=utf-8",
|
| + };
|
| + var resp = convert.JSON.encode(buildJob());
|
| + return new async.Future.value(stringResponse(200, h, resp));
|
| + }), true);
|
| + res.patch(arg_request, arg_projectId, arg_region, arg_jobId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Job response) {
|
| + checkJob(response);
|
| + })));
|
| + });
|
| +
|
| unittest.test("method--submit", () {
|
|
|
| var mock = new HttpServerMock();
|
| @@ -2875,8 +3006,8 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).projects.regions.operations;
|
| var arg_name = "foo";
|
| - var arg_filter = "foo";
|
| var arg_pageSize = 42;
|
| + var arg_filter = "foo";
|
| var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| @@ -2905,8 +3036,8 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| 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));
|
|
|
|
|
| @@ -2916,7 +3047,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListOperationsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_name, filter: arg_filter, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response) {
|
| + res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response) {
|
| checkListOperationsResponse(response);
|
| })));
|
| });
|
|
|